diff --git a/dist/main.bundle.js b/dist/main.bundle.js index 0808981fd..0de5ea48a 100644 --- a/dist/main.bundle.js +++ b/dist/main.bundle.js @@ -1,4 +1,4 @@ -!function(t){function e(e){for(var a,o,s=e[0],l=e[1],c=e[2],u=0,m=[];uObject(o.a)({unbuyable:{color:t.palette.action.disabled},money:{color:t.colors.money}}));function l(t){const e=s();if(void 0!==t.player){if("number"!=typeof t.money)throw new Error("if player if provided, money should be number, contact dev");if(!t.player.canAfford(t.money))return a.createElement("span",{className:e.unbuyable},r.a.formatMoney(t.money))}return a.createElement("span",{className:e.money},"number"==typeof t.money?r.a.formatMoney(t.money):t.money)}},,function(t,e,n){"use strict";n.d(e,"d",(function(){return m})),n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"g",(function(){return p})),n.d(e,"e",(function(){return g})),n.d(e,"a",(function(){return y})),n.d(e,"f",(function(){return b})),n.d(e,"i",(function(){return E})),n.d(e,"h",(function(){return v})),n.d(e,"j",(function(){return k}));var a=n(46),r=n(367),i=n(341),o=n(33),s=n(28),l=n(1021),c=n(89),f=n(18);let u={};function m(t){if(u.hasOwnProperty(t)){const e=u[t];if(e)return e}if(!Object(l.a)(t))return function(t){for(const e of Object.keys(u)){const n=u[e];if(n.hostname==t)return n}return null}(t);const e=function(t){for(const e of Object.keys(u)){const n=u[e];if(n.ip===t)return n}}(t);return void 0!==e?e:null}function h(){const t=[];for(const e of Object.keys(u))t.push(u[e]);return t}function d(t){for(const e of Object.keys(u)){const n=u[e];if(n.ip===t||n.hostname===t){delete u[e];break}}}function p(t){return null!=u[t]}function g(){let t;do{t=Object(i.a)()}while(p(t));return t}function y(t){if(m(t.hostname))throw console.warn("Hostname of the server thats being added: "+t.hostname),console.warn("The server that already has this IP is: "+u[t.hostname].hostname),new Error("Error: Trying to add a server with an existing IP");u[t.hostname]=t}function b(t){const e=[];for(let t=0;t<15;t++)e.push([]);const n=["hackDifficulty","moneyAvailable","requiredHackingSkill","serverGrowth"],i=t=>{switch(typeof t){case"number":return t;case"object":return Object(o.a)(t.min,t.max);default:throw Error(`Do not know how to convert the type '${typeof t}' to a number`)}};for(const t of r.a){const r={hostname:t.hostname,ip:g(),numOpenPortsRequired:t.numOpenPortsRequired,organizationName:t.organizationName};void 0!==t.maxRamExponent&&(r.maxRam=Math.pow(2,i(t.maxRamExponent)));for(const e of n)void 0!==t[e]&&(r[e]=i(t[e]));const o=new a.a(r);for(const e of t.literature||[])o.messages.push(e);o.hostname===c.a.WorldDaemon&&(o.requiredHackingSkill*=f.a.WorldDaemonDifficulty),y(o),void 0!==t.networkLayer&&e[i(t.networkLayer)-1].push(o)}const s=(t,e)=>{for(const r of t)n=r,a=e(),n.serversOnNetwork.push(a.hostname),a.serversOnNetwork.push(n.hostname);var n,a};s(e[0],()=>t);for(let t=1;t{return(n=e[t-1])[Math.floor(Math.random()*n.length)];var n})}function E(){for(const t of Object.keys(u))delete u[t];u={}}function v(t){u=JSON.parse(t,s.c)}function k(t=!1){const e=JSON.parse(JSON.stringify(u),s.c);for(const n of Object.keys(e)){const a=e[n];if(t)a.runningScripts=[];else for(let t=0;t{let e=""+t%1e3;for(;e.length<3;)e="0"+e;return e})();let f="";return a>0&&(f+=a+" days "),i>0&&(f+=i+" hours "),s>0&&(f+=s+" minutes "),f+=(e?`${l}.${c}`:""+l)+" seconds",f}function i(t){if(!o(t))return"";if(0===t.length)return"";const e=t.concat().sort(),n=e[0],a=e[e.length-1],r=n.length;let i=0;for(;i>>16,2246822507)^Math.imul(a^a>>>13,3266489909),a=Math.imul(a^a>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&a)+(n>>>0)).toString(16)}},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t[t.ActiveScripts=0]="ActiveScripts",t[t.Augmentations=1]="Augmentations",t[t.BitVerse=2]="BitVerse",t[t.Bladeburner=3]="Bladeburner",t[t.City=4]="City",t[t.Corporation=5]="Corporation",t[t.CreateProgram=6]="CreateProgram",t[t.ScriptEditor=7]="ScriptEditor",t[t.DevMenu=8]="DevMenu",t[t.Faction=9]="Faction",t[t.Factions=10]="Factions",t[t.Gang=11]="Gang",t[t.Hacknet=12]="Hacknet",t[t.Infiltration=13]="Infiltration",t[t.Job=14]="Job",t[t.Milestones=15]="Milestones",t[t.Options=16]="Options",t[t.Grafting=17]="Grafting",t[t.Sleeves=18]="Sleeves",t[t.Stats=19]="Stats",t[t.StockMarket=20]="StockMarket",t[t.Terminal=21]="Terminal",t[t.Travel=22]="Travel",t[t.Tutorial=23]="Tutorial",t[t.Work=24]="Work",t[t.BladeburnerCinematic=25]="BladeburnerCinematic",t[t.Location=26]="Location",t[t.Loading=27]="Loading",t[t.StaneksGift=28]="StaneksGift",t[t.Recovery=29]="Recovery",t[t.Achievements=30]="Achievements",t[t.ThemeBrowser=31]="ThemeBrowser",t[t.ImportSave=32]="ImportSave"}(a||(a={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return c}));var a=n(186),r=n(376),i=n(28);let o={};function s(t){o=JSON.parse(t,i.c);for(const t of Object.keys(o))try{o[t].getInfo()}catch(e){console.error("deleting "+t),delete o[t]}}function l(t){return o.hasOwnProperty(t)}function c(){for(const t of Object.keys(r.a))f(new a.a(t))}function f(t){if(!(t instanceof a.a))throw new Error("Invalid argument 'newFactionObject' passed into resetFaction()");const e=t.name;l(e)&&(t.favor=o[e].favor,delete o[e]),function(t){const e=t.name;o[e]=t}(t)}},function(t,e,n){"use strict";let a,r;n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r})),function(t){t.ENTER="Enter",t.ESC="Escape",t.TAB="Tab",t.SPACE=" ",t.BACKSPACE="Backspace",t.UP_ARROW="ArrowUp",t.DOWN_ARROW="ArrowDown",t.LEFT_ARROW="ArrowLeft",t.RIGHT_ARROW="ArrowRight",t.QUOTE="'",t.DOUBLE_QUOTE='"',t.OPEN_BRACKET="[",t.CLOSE_BRACKET="]",t.LESS_THAN="<",t.GREATER_THAN=">",t.OPEN_PARENTHESIS="(",t.CLOSE_PARENTHESIS=")",t.OPEN_BRACE="{",t.CLOSE_BRACE="}",t.PIPE="|",t.DOT=".",t.FORWARD_SLASH="/",t.HYPHEN="-",t.HASH="#",t.k0="0",t.k1="1",t.k2="2",t.k3="3",t.k4="4",t.k5="5",t.k6="6",t.k7="7",t.k8="8",t.k9="9",t.A="a",t.B="b",t.C="c",t.D="d",t.E="e",t.F="f",t.G="g",t.H="h",t.I="i",t.J="j",t.K="k",t.L="l",t.M="m",t.N="n",t.O="o",t.P="p",t.Q="q",t.R="r",t.S="s",t.T="t",t.U="u",t.V="v",t.W="w",t.X="x",t.Y="y",t.Z="z"}(a||(a={})),function(t){t.ENTER="Enter",t.ESC="Escape",t.TAB="Tab",t.SPACE="Space",t.BACKSPACE="Backspace",t.UP_ARROW="ArrowUp",t.DOWN_ARROW="ArrowDown",t.LEFT_ARROW="ArrowLeft",t.RIGHT_ARROW="ArrowRight",t.BACKWARD_SLASH="Backslash",t.BACKQUOTE="Backquote",t.COMMA="Comma",t.DOT="Period",t.EQUAL="Equal",t.FORWARD_SLASH="Slash",t.HYPHEN="Minus",t.SEMICOLON="Semicolon",t.QUOTE="Quote",t.k0="Digit0",t.k1="Digit1",t.k2="Digit2",t.k3="Digit3",t.k4="Digit4",t.k5="Digit5",t.k6="Digit6",t.k7="Digit7",t.k8="Digit8",t.k9="Digit9",t.A="KeyA",t.B="KeyB",t.C="KeyC",t.D="KeyD",t.E="KeyE",t.F="KeyF",t.G="KeyG",t.H="KeyH",t.I="KeyI",t.J="KeyJ",t.K="KeyK",t.L="KeyL",t.M="KeyM",t.N="KeyN",t.O="KeyO",t.P="KeyP",t.Q="KeyQ",t.R="KeyR",t.S="KeyS",t.T="KeyT",t.U="KeyU",t.V="KeyV",t.W="KeyW",t.X="KeyX",t.Y="KeyY",t.Z="KeyZ"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var a=n(384);function r(t,e){if(null==e)return null;if("object"==typeof e&&"string"==typeof e.ctor&&void 0!==e.data){if("AllServersMap"===e.ctor)return console.warn("Converting AllServersMap for v0.43.1"),e.data;const t=r.constructors[e.ctor];if("function"==typeof t&&"function"==typeof t.fromJSON){const n=t.fromJSON(e);return void 0!==t.validationData&&Object(a.b)(n,t.validationData),n}}return e}function i(t,e,n){n||(n=Object.keys(e));const a={};for(let t=0;tObject(a.useContext)(i.Player),Router:()=>Object(a.useContext)(i.Router)}},,function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),n.d(e,"d",(function(){return r})),n.d(e,"i",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"h",(function(){return l})),n.d(e,"a",(function(){return c})),n.d(e,"e",(function(){return f})),n.d(e,"k",(function(){return u})),n.d(e,"c",(function(){return m})),n.d(e,"g",(function(){return h}));const a=["Software Engineering Intern","Junior Software Engineer","Senior Software Engineer","Lead Software Developer","Head of Software","Head of Engineering","Vice President of Technology","Chief Technology Officer"],r=["IT Intern","IT Analyst","IT Manager","Systems Administrator"],i=["Security Engineer"],o=["Network Engineer","Network Administrator"],s=["Business Intern","Business Analyst","Business Manager","Operations Manager","Chief Financial Officer","Chief Executive Officer"],l=["Police Officer","Police Chief","Security Guard","Security Officer","Security Supervisor","Head of Security"],c=["Field Agent","Secret Agent","Special Operative"],f=["Waiter","Employee"],u=["Software Consultant","Senior Software Consultant"],m=["Business Consultant","Senior Business Consultant"],h=["Part-time Waiter","Part-time Employee"]},,function(t,e,n){"use strict";function a(t,e){const n=Math.min(t,e),a=Math.max(t,e);return Math.floor(Math.random()*(a-n+1))+n}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";let a,r,i,o;n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),function(t){t.None="",t.Company="Working for Company",t.CompanyPartTime="Working for Company part-time",t.Faction="Working for Faction",t.CreateProgram="Working on Create a Program",t.StudyClass="Studying or Taking a class at university",t.Crime="Committing a crime",t.GraftAugmentation="Grafting an Augmentation"}(a||(a={})),function(t){t.None="",t.Hacking="Faction Hacking Work",t.Field="Faction Field Work",t.Security="Faction Security Work"}(r||(r={})),function(t){t.None="",t.StudyComputerScience="studying Computer Science",t.DataStructures="taking a Data Structures course",t.Networks="taking a Networks course",t.Algorithms="taking an Algorithms course",t.Management="taking a Management course",t.Leadership="taking a Leadership course",t.GymStrength="training your strength at a gym",t.GymDefense="training your defense at a gym",t.GymDexterity="training your dexterity at a gym",t.GymAgility="training your agility at a gym"}(i||(i={})),function(t){t.None="",t.Shoplift="shoplift",t.RobStore="rob a store",t.Mug="mug someone",t.Larceny="commit larceny",t.Drugs="deal drugs",t.BondForgery="forge corporate bonds",t.TraffickArms="traffick illegal arms",t.Homicide="commit homicide",t.GrandTheftAuto="commit grand theft auto",t.Kidnap="kidnap someone for ransom",t.Assassination="assassinate a high-profile target",t.Heist="pull off the ultimate heist"}(o||(o={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var a=n(0),r=n(26),i=n(5),o=n(20),s=n(28),l=n(4),c=n(12),f=n(10),u=n(79),m=n(18),h=n(119),d=n(352);function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class g{constructor(t={info:"",moneyCost:0,name:"",repCost:0,factions:[]}){p(this,"baseCost",0),p(this,"baseRepRequirement",0),p(this,"isSpecial",!1),p(this,"name",""),p(this,"prereqs",[]),p(this,"mults",{}),p(this,"factions",[]),this.name=t.name,this.info=t.info,this.prereqs=t.prereqs?t.prereqs:[],this.baseRepRequirement=t.repCost,Object.freeze(this.baseRepRequirement),this.baseCost=t.moneyCost,Object.freeze(this.baseCost),this.factions=t.factions,t.isSpecial&&(this.isSpecial=!0),t.hacking_mult&&(this.mults.hacking_mult=t.hacking_mult),t.strength_mult&&(this.mults.strength_mult=t.strength_mult),t.defense_mult&&(this.mults.defense_mult=t.defense_mult),t.dexterity_mult&&(this.mults.dexterity_mult=t.dexterity_mult),t.agility_mult&&(this.mults.agility_mult=t.agility_mult),t.charisma_mult&&(this.mults.charisma_mult=t.charisma_mult),t.hacking_exp_mult&&(this.mults.hacking_exp_mult=t.hacking_exp_mult),t.strength_exp_mult&&(this.mults.strength_exp_mult=t.strength_exp_mult),t.defense_exp_mult&&(this.mults.defense_exp_mult=t.defense_exp_mult),t.dexterity_exp_mult&&(this.mults.dexterity_exp_mult=t.dexterity_exp_mult),t.agility_exp_mult&&(this.mults.agility_exp_mult=t.agility_exp_mult),t.charisma_exp_mult&&(this.mults.charisma_exp_mult=t.charisma_exp_mult),t.hacking_chance_mult&&(this.mults.hacking_chance_mult=t.hacking_chance_mult),t.hacking_speed_mult&&(this.mults.hacking_speed_mult=t.hacking_speed_mult),t.hacking_money_mult&&(this.mults.hacking_money_mult=t.hacking_money_mult),t.hacking_grow_mult&&(this.mults.hacking_grow_mult=t.hacking_grow_mult),t.company_rep_mult&&(this.mults.company_rep_mult=t.company_rep_mult),t.faction_rep_mult&&(this.mults.faction_rep_mult=t.faction_rep_mult),t.crime_money_mult&&(this.mults.crime_money_mult=t.crime_money_mult),t.crime_success_mult&&(this.mults.crime_success_mult=t.crime_success_mult),t.work_money_mult&&(this.mults.work_money_mult=t.work_money_mult),t.hacknet_node_money_mult&&(this.mults.hacknet_node_money_mult=t.hacknet_node_money_mult),t.hacknet_node_purchase_cost_mult&&(this.mults.hacknet_node_purchase_cost_mult=t.hacknet_node_purchase_cost_mult),t.hacknet_node_ram_cost_mult&&(this.mults.hacknet_node_ram_cost_mult=t.hacknet_node_ram_cost_mult),t.hacknet_node_core_cost_mult&&(this.mults.hacknet_node_core_cost_mult=t.hacknet_node_core_cost_mult),t.hacknet_node_level_cost_mult&&(this.mults.hacknet_node_level_cost_mult=t.hacknet_node_level_cost_mult),t.bladeburner_max_stamina_mult&&(this.mults.bladeburner_max_stamina_mult=t.bladeburner_max_stamina_mult),t.bladeburner_stamina_gain_mult&&(this.mults.bladeburner_stamina_gain_mult=t.bladeburner_stamina_gain_mult),t.bladeburner_analysis_mult&&(this.mults.bladeburner_analysis_mult=t.bladeburner_analysis_mult),t.bladeburner_success_chance_mult&&(this.mults.bladeburner_success_chance_mult=t.bladeburner_success_chance_mult),t.infiltration_base_rep_increase&&(this.mults.infiltration_base_rep_increase=t.infiltration_base_rep_increase),t.infiltration_rep_mult&&(this.mults.infiltration_rep_mult=t.infiltration_rep_mult),t.infiltration_trade_mult&&(this.mults.infiltration_trade_mult=t.infiltration_trade_mult),t.infiltration_sell_mult&&(this.mults.infiltration_sell_mult=t.infiltration_sell_mult),t.infiltration_timer_mult&&(this.mults.infiltration_timer_mult=t.infiltration_timer_mult),t.infiltration_damage_reduction_mult&&(this.mults.infiltration_damage_reduction_mult=t.infiltration_damage_reduction_mult),void 0===t.stats?this.stats=function(t,e,n){const r=(t,e=0)=>t===1.0777-1?"7.77%":t===1.777-1?"77.7%":i.a.formatPercentage(t,e);let s=a.createElement(a.Fragment,null,"Effects:");return t.hacking_mult&&t.hacking_mult==t.strength_mult&&t.hacking_mult==t.defense_mult&&t.hacking_mult==t.dexterity_mult&&t.hacking_mult==t.agility_mult&&t.hacking_mult==t.charisma_mult?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_mult-1)," all skills"):(t.hacking_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_mult-1)," hacking skill")),t.strength_mult&&t.strength_mult==t.defense_mult&&t.strength_mult==t.dexterity_mult&&t.strength_mult==t.agility_mult?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.strength_mult-1)," combat skills"):(t.strength_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.strength_mult-1)," strength skill")),t.defense_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.defense_mult-1)," defense skill")),t.dexterity_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.dexterity_mult-1)," dexterity skill")),t.agility_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.agility_mult-1)," agility skill"))),t.charisma_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.charisma_mult-1)," charisma skill"))),t.hacking_exp_mult&&t.hacking_exp_mult===t.strength_exp_mult&&t.hacking_exp_mult===t.defense_exp_mult&&t.hacking_exp_mult===t.dexterity_exp_mult&&t.hacking_exp_mult===t.agility_exp_mult&&t.hacking_exp_mult===t.charisma_exp_mult?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_exp_mult-1)," exp for all skills"):(t.hacking_exp_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_exp_mult-1)," hacking exp")),t.strength_exp_mult&&t.strength_exp_mult===t.defense_exp_mult&&t.strength_exp_mult===t.dexterity_exp_mult&&t.strength_exp_mult===t.agility_exp_mult?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.strength_exp_mult-1)," combat exp"):(t.strength_exp_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.strength_exp_mult-1)," strength exp")),t.defense_exp_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.defense_exp_mult-1)," defense exp")),t.dexterity_exp_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.dexterity_exp_mult-1)," dexterity exp")),t.agility_exp_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.agility_exp_mult-1)," agility exp"))),t.charisma_exp_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.charisma_exp_mult-1)," charisma exp"))),t.hacking_speed_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_speed_mult-1)," faster hack(), grow(), and weaken()")),t.hacking_chance_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_chance_mult-1)," hack() success chance")),t.hacking_money_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_money_mult-1)," hack() power")),t.hacking_grow_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_grow_mult-1)," grow() power")),t.faction_rep_mult&&t.faction_rep_mult===t.company_rep_mult?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.faction_rep_mult-1)," reputation from factions and companies"):(t.faction_rep_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.faction_rep_mult-1)," reputation from factions")),t.company_rep_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.company_rep_mult-1)," reputation from companies"))),t.crime_money_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.crime_money_mult-1)," crime money")),t.crime_success_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.crime_success_mult-1)," crime success rate")),t.work_money_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.work_money_mult-1)," work money")),t.hacknet_node_money_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacknet_node_money_mult-1)," hacknet production")),t.hacknet_node_purchase_cost_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"-",r(-(t.hacknet_node_purchase_cost_mult-1))," hacknet nodes cost")),t.hacknet_node_level_cost_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"-",r(-(t.hacknet_node_level_cost_mult-1))," hacknet nodes upgrade cost")),t.bladeburner_max_stamina_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.bladeburner_max_stamina_mult-1)," Bladeburner Max Stamina")),t.bladeburner_stamina_gain_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.bladeburner_stamina_gain_mult-1)," Bladeburner Stamina gain")),t.bladeburner_analysis_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.bladeburner_analysis_mult-1)," Bladeburner Field Analysis effectiveness")),t.bladeburner_success_chance_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.bladeburner_success_chance_mult-1)," Bladeburner Contracts and Operations success chance")),t.infiltration_base_rep_increase&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.infiltration_base_rep_increase-1)," Infiltration ",l.a.ShadowsOfAnarchy," Reputation base reward")),t.infiltration_rep_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.infiltration_rep_mult-1)," Infiltration ",l.a.ShadowsOfAnarchy," Reputation reward")),t.infiltration_trade_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.infiltration_trade_mult-1)," Infiltration Reputation for trading information")),t.infiltration_sell_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.infiltration_sell_mult-1)," Infiltration cash reward for selling information")),t.infiltration_timer_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.infiltration_timer_mult-1)," Infiltration time per minigame")),t.infiltration_damage_reduction_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),r(t.infiltration_damage_reduction_mult-1)," Infiltration health lost per failed minigame")),n&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"Start with ",a.createElement(o.a,{money:n})," after installing Augmentations.")),e&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"Start with ",e.join(" and ")," after installing Augmentations.")),s}(this.mults,t.programs,t.startingMoney):this.stats=t.stats}addToFactions(t){for(let e=0;et.name),i=Math.pow(f.a.SoACostMult,r.filter(e=>t.hasAugmentation(e)).length);n=e.baseCost*i,r.find(t=>t===e.name)&&(a=e.baseRepRequirement*i)}else n=e.baseCost*Object(h.d)()*m.a.AugmentationMoneyCost,a=e.baseRepRequirement*m.a.AugmentationRepCost;return{moneyCost:n,repCost:a}}getLevel(t){if(this.name===c.a.NeuroFluxGovernor){let e=0;for(let n=0;nObject(o.a)({modal:{display:"flex",alignItems:"center",justifyContent:"center"},paper:{backgroundColor:t.palette.background.default,border:"2px solid "+t.palette.primary.main,boxShadow:`0px 3px 5px -1px ${t.palette.primary.dark},0px 5px 8px 0px ${t.palette.primary.dark},0px 1px 14px 0px ${t.palette.primary.dark}`,padding:2,maxWidth:"80%",maxHeight:"80%",overflow:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"}})),u=t=>{const e=f();return c.a.createElement(i.a,{disableRestoreFocus:!0,disableScrollLock:!0,disableEnforceFocus:!0,disableAutoFocus:!0,open:t.open,onClose:t.onClose,closeAfterTransition:!0,className:e.modal,sx:t.sx},c.a.createElement(r.a,{in:t.open},c.a.createElement("div",{className:e.paper},c.a.createElement(a.a,{sx:{m:2}},t.children))))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(15);const r=["START","PURCHASE","PRODUCTION","SALE","EXPORT"],i={INITIALSHARES:1e9,SHARESPERPRICEUPDATE:1e6,IssueNewSharesCooldown:216e3,SellSharesCooldown:18e3,CyclesPerMarketCycle:50,CyclesPerIndustryStateCycle:50/r.length,SecsPerMarketCycle:10,Cities:[a.a.Aevum,a.a.Chongqing,a.a.Sector12,a.a.NewTokyo,a.a.Ishima,a.a.Volhaven],WarehouseInitialCost:5e9,WarehouseInitialSize:100,WarehouseUpgradeBaseCost:1e9,OfficeInitialCost:4e9,OfficeInitialSize:3,OfficeUpgradeBaseCost:1e9,BribeThreshold:1e14,BribeToRepRatio:1e9,ProductProductionCostRatio:5,DividendMaxPercentage:1,EmployeeSalaryMultiplier:3,CyclesPerEmployeeRaise:400,EmployeeRaiseAmount:50,BaseMaxProducts:3,AllCorporationStates:r,AllMaterials:["Water","Energy","Food","Plants","Metal","Hardware","Chemicals","Drugs","Robots","AI Cores","Real Estate"],FundingRoundShares:[.1,.35,.25,.2],FundingRoundMultiplier:[4,3,3,2.5],AvgProfitLength:1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i}));const a={MoneyGainPerLevel:1.5,BaseCost:1e3,LevelBaseCost:1,RamBaseCost:3e4,CoreBaseCost:5e5,PurchaseNextMult:1.85,UpgradeLevelMult:1.04,UpgradeRamMult:1.28,UpgradeCoreMult:1.48,MaxLevel:200,MaxRam:64,MaxCores:16},r={x1:1,x5:5,x10:10,MAX:"MAX"},i={HashesPerLevel:.001,BaseCost:5e4,RamBaseCost:2e5,CoreBaseCost:1e6,CacheBaseCost:1e7,PurchaseMult:3.2,UpgradeLevelMult:1.1,UpgradeRamMult:1.4,UpgradeCoreMult:1.55,UpgradeCacheMult:1.85,MaxServers:20,MaxLevel:300,MaxRam:8192,MaxCores:128,MaxCache:15}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d}));const a={ScriptBaseRamCost:1.6,ScriptDomRamCost:25,ScriptCorporationRamCost:1022.4,ScriptHackRamCost:.1,ScriptHackAnalyzeRamCost:1,ScriptGrowRamCost:.15,ScriptGrowthAnalyzeRamCost:1,ScriptWeakenRamCost:.15,ScriptWeakenAnalyzeRamCost:1,ScriptScanRamCost:.2,ScriptRecentScriptsRamCost:.2,ScriptPortProgramRamCost:.05,ScriptRunRamCost:1,ScriptExecRamCost:1.3,ScriptSpawnRamCost:2,ScriptScpRamCost:.6,ScriptKillRamCost:.5,ScriptHasRootAccessRamCost:.05,ScriptGetHostnameRamCost:.05,ScriptGetHackingLevelRamCost:.05,ScriptGetMultipliersRamCost:4,ScriptGetServerRamCost:.1,ScriptGetServerMaxRam:.05,ScriptGetServerUsedRam:.05,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,ScriptGetRunningScriptRamCost:.3,ScriptGetHackTimeRamCost:.05,ScriptGetFavorToDonate:.1,ScriptCodingContractBaseRamCost:10,ScriptSleeveBaseRamCost:4,ScriptGetOwnedSourceFiles:5,ScriptClearTerminalCost:.2,ScriptSingularityFn1RamCost:2,ScriptSingularityFn2RamCost:3,ScriptSingularityFn3RamCost:5,ScriptGangApiBaseRamCost:4,ScriptBladeburnerApiBaseRamCost:4,ScriptStanekWidth:.4,ScriptStanekHeight:.4,ScriptStanekCharge:.4,ScriptStanekFragmentDefinitions:0,ScriptStanekPlacedFragments:5,ScriptStanekClear:0,ScriptStanekCanPlace:.5,ScriptStanekPlace:5,ScriptStanekFragmentAt:2,ScriptStanekDeleteAt:.15,ScriptInfiltrationCalculateDifficulty:2.5,ScriptInfiltrationCalculateRewards:2.5,ScriptInfiltrationGetLocations:5,ScriptInfiltrationGetInfiltrations:15,ScriptStanekAcceptGift:2};function r(t){return e=>{if(4===e.bitNodeN)return t;const n=e.sourceFileLvl(4);return n<=1?16*t:2===n?4*t:t}}const i={getSymbols:a.ScriptGetStockRamCost,getPrice:a.ScriptGetStockRamCost,getAskPrice:a.ScriptGetStockRamCost,getBidPrice:a.ScriptGetStockRamCost,getPosition:a.ScriptGetStockRamCost,getMaxShares:a.ScriptGetStockRamCost,getPurchaseCost:a.ScriptGetStockRamCost,getSaleGain:a.ScriptGetStockRamCost,buy:a.ScriptBuySellStockRamCost,sell:a.ScriptBuySellStockRamCost,short:a.ScriptBuySellStockRamCost,sellShort:a.ScriptBuySellStockRamCost,placeOrder:a.ScriptBuySellStockRamCost,cancelOrder:a.ScriptBuySellStockRamCost,getOrders:a.ScriptBuySellStockRamCost,getVolatility:a.ScriptBuySellStockRamCost,getForecast:a.ScriptBuySellStockRamCost,purchase4SMarketData:a.ScriptBuySellStockRamCost,purchase4SMarketDataTixApi:a.ScriptBuySellStockRamCost,purchaseWseAccount:a.ScriptBuySellStockRamCost,purchaseTixApi:a.ScriptBuySellStockRamCost},o={universityCourse:r(a.ScriptSingularityFn1RamCost),gymWorkout:r(a.ScriptSingularityFn1RamCost),travelToCity:r(a.ScriptSingularityFn1RamCost),goToLocation:r(a.ScriptSingularityFn3RamCost),purchaseTor:r(a.ScriptSingularityFn1RamCost),purchaseProgram:r(a.ScriptSingularityFn1RamCost),getCurrentServer:r(a.ScriptSingularityFn1RamCost),connect:r(a.ScriptSingularityFn1RamCost),manualHack:r(a.ScriptSingularityFn1RamCost),installBackdoor:r(a.ScriptSingularityFn1RamCost),getDarkwebProgramCost:r(a.ScriptSingularityFn1RamCost/4),getDarkwebPrograms:r(a.ScriptSingularityFn1RamCost/4),getStats:r(a.ScriptSingularityFn1RamCost/4),getCharacterInformation:r(a.ScriptSingularityFn1RamCost/4),hospitalize:r(a.ScriptSingularityFn1RamCost/4),isBusy:r(a.ScriptSingularityFn1RamCost/4),stopAction:r(a.ScriptSingularityFn1RamCost/2),upgradeHomeRam:r(a.ScriptSingularityFn2RamCost),upgradeHomeCores:r(a.ScriptSingularityFn2RamCost),getUpgradeHomeRamCost:r(a.ScriptSingularityFn2RamCost/2),getUpgradeHomeCoresCost:r(a.ScriptSingularityFn2RamCost/2),workForCompany:r(a.ScriptSingularityFn2RamCost),applyToCompany:r(a.ScriptSingularityFn2RamCost),quitJob:r(a.ScriptSingularityFn2RamCost),getCompanyRep:r(a.ScriptSingularityFn2RamCost/3),getCompanyFavor:r(a.ScriptSingularityFn2RamCost/3),getCompanyFavorGain:r(a.ScriptSingularityFn2RamCost/4),checkFactionInvitations:r(a.ScriptSingularityFn2RamCost),joinFaction:r(a.ScriptSingularityFn2RamCost),workForFaction:r(a.ScriptSingularityFn2RamCost),getFactionRep:r(a.ScriptSingularityFn2RamCost/3),getFactionFavor:r(a.ScriptSingularityFn2RamCost/3),getFactionFavorGain:r(a.ScriptSingularityFn2RamCost/4),donateToFaction:r(a.ScriptSingularityFn3RamCost),createProgram:r(a.ScriptSingularityFn3RamCost),commitCrime:r(a.ScriptSingularityFn3RamCost),getCrimeChance:r(a.ScriptSingularityFn3RamCost),getCrimeStats:r(a.ScriptSingularityFn3RamCost),getOwnedAugmentations:r(a.ScriptSingularityFn3RamCost),getAugmentationsFromFaction:r(a.ScriptSingularityFn3RamCost),getAugmentationCost:r(a.ScriptSingularityFn3RamCost),getAugmentationPrereq:r(a.ScriptSingularityFn3RamCost),getAugmentationPrice:r(a.ScriptSingularityFn3RamCost/2),getAugmentationRepReq:r(a.ScriptSingularityFn3RamCost/2),getAugmentationStats:r(a.ScriptSingularityFn3RamCost),purchaseAugmentation:r(a.ScriptSingularityFn3RamCost),softReset:r(a.ScriptSingularityFn3RamCost),installAugmentations:r(a.ScriptSingularityFn3RamCost),isFocused:r(.1),setFocus:r(.1),b1tflum3:r(16),destroyW0r1dD43m0n:r(32)},s={createGang:a.ScriptGangApiBaseRamCost/4,inGang:a.ScriptGangApiBaseRamCost/4,getMemberNames:a.ScriptGangApiBaseRamCost/4,getGangInformation:a.ScriptGangApiBaseRamCost/2,getOtherGangInformation:a.ScriptGangApiBaseRamCost/2,getMemberInformation:a.ScriptGangApiBaseRamCost/2,canRecruitMember:a.ScriptGangApiBaseRamCost/4,recruitMember:a.ScriptGangApiBaseRamCost/2,getTaskNames:a.ScriptGangApiBaseRamCost/4,getTaskStats:a.ScriptGangApiBaseRamCost/4,setMemberTask:a.ScriptGangApiBaseRamCost/2,getEquipmentNames:a.ScriptGangApiBaseRamCost/4,getEquipmentCost:a.ScriptGangApiBaseRamCost/2,getEquipmentType:a.ScriptGangApiBaseRamCost/2,getEquipmentStats:a.ScriptGangApiBaseRamCost/2,purchaseEquipment:a.ScriptGangApiBaseRamCost,ascendMember:a.ScriptGangApiBaseRamCost,getAscensionResult:a.ScriptGangApiBaseRamCost/2,setTerritoryWarfare:a.ScriptGangApiBaseRamCost/2,getChanceToWinClash:a.ScriptGangApiBaseRamCost,getBonusTime:0},l={getContractNames:a.ScriptBladeburnerApiBaseRamCost/10,getOperationNames:a.ScriptBladeburnerApiBaseRamCost/10,getBlackOpNames:a.ScriptBladeburnerApiBaseRamCost/10,getBlackOpRank:a.ScriptBladeburnerApiBaseRamCost/2,getGeneralActionNames:a.ScriptBladeburnerApiBaseRamCost/10,getSkillNames:a.ScriptBladeburnerApiBaseRamCost/10,startAction:a.ScriptBladeburnerApiBaseRamCost,stopBladeburnerAction:a.ScriptBladeburnerApiBaseRamCost/2,getCurrentAction:a.ScriptBladeburnerApiBaseRamCost/4,getActionTime:a.ScriptBladeburnerApiBaseRamCost,getActionEstimatedSuccessChance:a.ScriptBladeburnerApiBaseRamCost,getActionRepGain:a.ScriptBladeburnerApiBaseRamCost,getActionCountRemaining:a.ScriptBladeburnerApiBaseRamCost,getActionMaxLevel:a.ScriptBladeburnerApiBaseRamCost,getActionCurrentLevel:a.ScriptBladeburnerApiBaseRamCost,getActionAutolevel:a.ScriptBladeburnerApiBaseRamCost,setActionAutolevel:a.ScriptBladeburnerApiBaseRamCost,setActionLevel:a.ScriptBladeburnerApiBaseRamCost,getRank:a.ScriptBladeburnerApiBaseRamCost,getSkillPoints:a.ScriptBladeburnerApiBaseRamCost,getSkillLevel:a.ScriptBladeburnerApiBaseRamCost,getSkillUpgradeCost:a.ScriptBladeburnerApiBaseRamCost,upgradeSkill:a.ScriptBladeburnerApiBaseRamCost,getTeamSize:a.ScriptBladeburnerApiBaseRamCost,setTeamSize:a.ScriptBladeburnerApiBaseRamCost,getCityEstimatedPopulation:a.ScriptBladeburnerApiBaseRamCost,getCityCommunities:a.ScriptBladeburnerApiBaseRamCost,getCityChaos:a.ScriptBladeburnerApiBaseRamCost,getCity:a.ScriptBladeburnerApiBaseRamCost,switchCity:a.ScriptBladeburnerApiBaseRamCost,getStamina:a.ScriptBladeburnerApiBaseRamCost,joinBladeburnerFaction:a.ScriptBladeburnerApiBaseRamCost,joinBladeburnerDivision:a.ScriptBladeburnerApiBaseRamCost,getBonusTime:0},c={calculateDifficulty:a.ScriptInfiltrationCalculateDifficulty,calculateRewards:a.ScriptInfiltrationCalculateRewards,calculateGetLocations:a.ScriptInfiltrationGetLocations,calculateGetInfiltrations:a.ScriptInfiltrationGetInfiltrations},f={attempt:a.ScriptCodingContractBaseRamCost,getContractType:a.ScriptCodingContractBaseRamCost/2,getData:a.ScriptCodingContractBaseRamCost/2,getDescription:a.ScriptCodingContractBaseRamCost/2,getNumTriesRemaining:a.ScriptCodingContractBaseRamCost/5},u={getNumSleeves:a.ScriptSleeveBaseRamCost,setToShockRecovery:a.ScriptSleeveBaseRamCost,setToSynchronize:a.ScriptSleeveBaseRamCost,setToCommitCrime:a.ScriptSleeveBaseRamCost,setToUniversityCourse:a.ScriptSleeveBaseRamCost,travel:a.ScriptSleeveBaseRamCost,setToCompanyWork:a.ScriptSleeveBaseRamCost,setToFactionWork:a.ScriptSleeveBaseRamCost,setToGymWorkout:a.ScriptSleeveBaseRamCost,getSleeveStats:a.ScriptSleeveBaseRamCost,getTask:a.ScriptSleeveBaseRamCost,getInformation:a.ScriptSleeveBaseRamCost,getSleeveAugmentations:a.ScriptSleeveBaseRamCost,getSleevePurchasableAugs:a.ScriptSleeveBaseRamCost,purchaseSleeveAug:a.ScriptSleeveBaseRamCost},m={giftWidth:a.ScriptStanekWidth,giftHeight:a.ScriptStanekHeight,chargeFragment:a.ScriptStanekCharge,fragmentDefinitions:a.ScriptStanekFragmentDefinitions,activeFragments:a.ScriptStanekPlacedFragments,clearGift:a.ScriptStanekClear,canPlaceFragment:a.ScriptStanekCanPlace,placeFragment:a.ScriptStanekPlace,getFragment:a.ScriptStanekFragmentAt,removeFragment:a.ScriptStanekDeleteAt,acceptGift:a.ScriptStanekAcceptGift},h={hacknet:{numNodes:0,purchaseNode:0,getPurchaseNodeCost:0,getNodeStats:0,upgradeLevel:0,upgradeRam:0,upgradeCore:0,upgradeCache:0,getLevelUpgradeCost:0,getRamUpgradeCost:0,getCoreUpgradeCost:0,getCacheUpgradeCost:0,numHashes:0,hashCost:0,spendHashes:0},stock:i,singularity:o,...o,gang:s,bladeburner:l,infiltration:c,codingcontract:f,sleeve:u,stanek:m,ui:{getTheme:0,setTheme:0,resetTheme:0,getStyles:0,setStyles:0,resetStyles:0,getGameInfo:0},grafting:{getAugmentationGraftPrice:3.75,getAugmentationGraftTime:3.75,getGraftableAugmentations:5,graftAugmentation:7.5},sprintf:0,vsprintf:0,scan:a.ScriptScanRamCost,hack:a.ScriptHackRamCost,hackAnalyzeThreads:a.ScriptHackAnalyzeRamCost,hackAnalyze:a.ScriptHackAnalyzeRamCost,hackAnalyzeSecurity:a.ScriptHackAnalyzeRamCost,hackAnalyzeChance:a.ScriptHackAnalyzeRamCost,sleep:0,asleep:0,share:2.4,getSharePower:.2,grow:a.ScriptGrowRamCost,growthAnalyze:a.ScriptGrowthAnalyzeRamCost,growthAnalyzeSecurity:a.ScriptGrowthAnalyzeRamCost,weaken:a.ScriptWeakenRamCost,weakenAnalyze:a.ScriptWeakenAnalyzeRamCost,print:0,printf:0,tprint:0,clearLog:0,disableLog:0,enableLog:0,isLogEnabled:0,getScriptLogs:0,clearTerminal:a.ScriptClearTerminalCost,nuke:a.ScriptPortProgramRamCost,brutessh:a.ScriptPortProgramRamCost,ftpcrack:a.ScriptPortProgramRamCost,relaysmtp:a.ScriptPortProgramRamCost,httpworm:a.ScriptPortProgramRamCost,sqlinject:a.ScriptPortProgramRamCost,run:a.ScriptRunRamCost,exec:a.ScriptExecRamCost,spawn:a.ScriptSpawnRamCost,kill:a.ScriptKillRamCost,killall:a.ScriptKillRamCost,exit:0,atExit:0,scp:a.ScriptScpRamCost,ls:a.ScriptScanRamCost,ps:a.ScriptScanRamCost,getRecentScripts:a.ScriptRecentScriptsRamCost,hasRootAccess:a.ScriptHasRootAccessRamCost,getIp:a.ScriptGetHostnameRamCost,getHostname:a.ScriptGetHostnameRamCost,getHackingLevel:a.ScriptGetHackingLevelRamCost,getHackingMultipliers:a.ScriptGetMultipliersRamCost,getHacknetMultipliers:a.ScriptGetMultipliersRamCost,getBitNodeMultipliers:a.ScriptGetMultipliersRamCost,getServer:a.ScriptGetMultipliersRamCost/2,getServerMoneyAvailable:a.ScriptGetServerRamCost,getServerSecurityLevel:a.ScriptGetServerRamCost,getServerBaseSecurityLevel:a.ScriptGetServerRamCost,getServerMinSecurityLevel:a.ScriptGetServerRamCost,getServerRequiredHackingLevel:a.ScriptGetServerRamCost,getServerMaxMoney:a.ScriptGetServerRamCost,getServerGrowth:a.ScriptGetServerRamCost,getServerNumPortsRequired:a.ScriptGetServerRamCost,getServerRam:a.ScriptGetServerRamCost,getServerMaxRam:a.ScriptGetServerMaxRam,getServerUsedRam:a.ScriptGetServerUsedRam,serverExists:a.ScriptGetServerRamCost,fileExists:a.ScriptFileExistsRamCost,isRunning:a.ScriptIsRunningRamCost,getPurchasedServerLimit:a.ScriptGetPurchasedServerLimit,getPurchasedServerMaxRam:a.ScriptGetPurchasedServerMaxRam,getPurchasedServerCost:a.ScriptGetPurchaseServerRamCost,purchaseServer:a.ScriptPurchaseServerRamCost,deleteServer:a.ScriptPurchaseServerRamCost,getPurchasedServers:a.ScriptPurchaseServerRamCost,write:0,tryWritePort:0,read:0,peek:0,clear:0,writePort:0,readPort:0,getPortHandle:0,rm:a.ScriptReadWriteRamCost,scriptRunning:a.ScriptArbScriptRamCost,scriptKill:a.ScriptArbScriptRamCost,getScriptName:0,getScriptRam:a.ScriptGetScriptRamCost,getHackTime:a.ScriptGetHackTimeRamCost,getGrowTime:a.ScriptGetHackTimeRamCost,getWeakenTime:a.ScriptGetHackTimeRamCost,getScriptIncome:a.ScriptGetScriptRamCost,getScriptExpGain:a.ScriptGetScriptRamCost,getRunningScript:a.ScriptGetRunningScriptRamCost,nFormat:0,tFormat:0,getTimeSinceLastAug:a.ScriptGetHackTimeRamCost,prompt:0,wget:0,getFavorToDonate:a.ScriptGetFavorToDonate,getPlayer:a.ScriptSingularityFn1RamCost/4,mv:0,getOwnedSourceFiles:a.ScriptGetOwnedSourceFiles,tail:0,toast:0,heart:{break:0}};function d(t,...e){if(0===e.length)return console.warn("No arguments passed to getRamCost()"),0;let n=h[e[0]];for(let t=1;ta.Start&&(s.currStep-=1),o.a.emit()}function u(){s.isRunning=!1,s.currStep=a.Start,r.a.getHomeComputer().messages.push(i.a.HackersStartingHandbook),o.a.emit()}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var a=n(578),r=n(18),i=n(1018),o=n(341),s=n(28);function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class c extends a.a{constructor(t={hostname:"",ip:Object(o.a)()}){super(t),l(this,"backdoorInstalled",!1),l(this,"baseDifficulty",1),l(this,"hackDifficulty",1),l(this,"minDifficulty",1),l(this,"moneyAvailable",0),l(this,"moneyMax",0),l(this,"numOpenPortsRequired",5),l(this,"openPortCount",0),l(this,"requiredHackingSkill",1),l(this,"serverGrowth",1),this.hostname.startsWith("hacknet-node-")&&(this.hostname=Object(i.a)(10)),this.purchasedByPlayer=null!=t.purchasedByPlayer&&t.purchasedByPlayer,this.maxRam=null!=t.maxRam?t.maxRam:0,this.requiredHackingSkill=null!=t.requiredHackingSkill?t.requiredHackingSkill:1,this.moneyAvailable=null!=t.moneyAvailable?t.moneyAvailable*r.a.ServerStartingMoney:0,this.moneyMax=25*this.moneyAvailable*r.a.ServerMaxMoney,this.hackDifficulty=null!=t.hackDifficulty?t.hackDifficulty*r.a.ServerStartingSecurity:1,this.baseDifficulty=this.hackDifficulty,this.minDifficulty=Math.max(1,Math.round(this.hackDifficulty/3)),this.serverGrowth=null!=t.serverGrowth?t.serverGrowth:1,this.numOpenPortsRequired=null!=t.numOpenPortsRequired?t.numOpenPortsRequired:5}capDifficulty(){this.hackDifficulty100&&(this.hackDifficulty=100)}changeMinimumSecurity(t,e=!1){e?this.minDifficulty*=t:this.minDifficulty+=t,this.minDifficulty=Math.max(1,this.minDifficulty)}changeMaximumMoney(t){if(this.moneyMax>1e13){const e=this.moneyMax-1e13;t=1+(t-1)/Math.log(e)/Math.log(8)}this.moneyMax*=t}fortify(t){this.hackDifficulty+=t,this.capDifficulty()}weaken(t){this.hackDifficulty-=t*r.a.ServerWeakenRate,this.capDifficulty()}toJSON(){return Object(s.b)("Server",this)}static fromJSON(t){return Object(s.a)(c,t.data)}}s.c.constructors.Server=c},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={Operations:"Operations",Engineer:"Engineer",Business:"Business",Management:"Management",RandD:"Research & Development",Training:"Training",Unassigned:"Unassigned"}},function(t,e,n){"use strict";n.d(e,"gb",(function(){return tt})),n.d(e,"jb",(function(){return et})),n.d(e,"kb",(function(){return nt})),n.d(e,"sb",(function(){return at})),n.d(e,"o",(function(){return rt})),n.d(e,"p",(function(){return it})),n.d(e,"Rb",(function(){return ot})),n.d(e,"vb",(function(){return st})),n.d(e,"eb",(function(){return lt})),n.d(e,"yb",(function(){return ct})),n.d(e,"M",(function(){return ft})),n.d(e,"ib",(function(){return ut})),n.d(e,"s",(function(){return mt})),n.d(e,"tb",(function(){return ht})),n.d(e,"K",(function(){return dt})),n.d(e,"N",(function(){return pt})),n.d(e,"I",(function(){return gt})),n.d(e,"J",(function(){return yt})),n.d(e,"F",(function(){return bt})),n.d(e,"G",(function(){return Et})),n.d(e,"L",(function(){return vt})),n.d(e,"nb",(function(){return kt})),n.d(e,"wb",(function(){return _t})),n.d(e,"mb",(function(){return wt})),n.d(e,"Lb",(function(){return St})),n.d(e,"lb",(function(){return xt})),n.d(e,"t",(function(){return Ct})),n.d(e,"Sb",(function(){return Lt})),n.d(e,"D",(function(){return Ot})),n.d(e,"Mb",(function(){return Mt})),n.d(e,"Ub",(function(){return Tt})),n.d(e,"E",(function(){return At})),n.d(e,"Jb",(function(){return Rt})),n.d(e,"Nb",(function(){return Nt})),n.d(e,"Ib",(function(){return Pt})),n.d(e,"Gb",(function(){return It})),n.d(e,"Fb",(function(){return Ft})),n.d(e,"Hb",(function(){return Dt})),n.d(e,"Tb",(function(){return jt})),n.d(e,"B",(function(){return Bt})),n.d(e,"X",(function(){return Gt})),n.d(e,"W",(function(){return Wt})),n.d(e,"Z",(function(){return Ht})),n.d(e,"U",(function(){return Ut})),n.d(e,"V",(function(){return qt})),n.d(e,"S",(function(){return $t})),n.d(e,"T",(function(){return Kt})),n.d(e,"Y",(function(){return zt})),n.d(e,"Db",(function(){return Vt})),n.d(e,"x",(function(){return Yt})),n.d(e,"z",(function(){return Jt})),n.d(e,"Kb",(function(){return Xt})),n.d(e,"w",(function(){return Qt})),n.d(e,"C",(function(){return Zt})),n.d(e,"Cb",(function(){return te})),n.d(e,"Ob",(function(){return ee})),n.d(e,"y",(function(){return ne})),n.d(e,"Eb",(function(){return ae})),n.d(e,"v",(function(){return re})),n.d(e,"A",(function(){return ie})),n.d(e,"Ab",(function(){return oe})),n.d(e,"Pb",(function(){return se})),n.d(e,"ub",(function(){return le})),n.d(e,"fb",(function(){return ce})),n.d(e,"f",(function(){return fe})),n.d(e,"R",(function(){return ue})),n.d(e,"pb",(function(){return me})),n.d(e,"db",(function(){return he})),n.d(e,"m",(function(){return de})),n.d(e,"l",(function(){return pe})),n.d(e,"e",(function(){return ge})),n.d(e,"j",(function(){return ye})),n.d(e,"g",(function(){return be})),n.d(e,"c",(function(){return Ee})),n.d(e,"b",(function(){return ve})),n.d(e,"k",(function(){return ke})),n.d(e,"a",(function(){return _e})),n.d(e,"d",(function(){return we})),n.d(e,"h",(function(){return Se})),n.d(e,"n",(function(){return xe})),n.d(e,"i",(function(){return Ce})),n.d(e,"hb",(function(){return Le})),n.d(e,"qb",(function(){return Oe})),n.d(e,"rb",(function(){return Me})),n.d(e,"u",(function(){return Te})),n.d(e,"xb",(function(){return Ae})),n.d(e,"ob",(function(){return Re})),n.d(e,"H",(function(){return Ne})),n.d(e,"Qb",(function(){return Pe})),n.d(e,"cb",(function(){return Ie})),n.d(e,"r",(function(){return Fe})),n.d(e,"bb",(function(){return De})),n.d(e,"ab",(function(){return je})),n.d(e,"P",(function(){return Be})),n.d(e,"O",(function(){return Ge})),n.d(e,"Q",(function(){return We})),n.d(e,"zb",(function(){return He})),n.d(e,"q",(function(){return Ue})),n.d(e,"Bb",(function(){return qe}));var a=n(119),r=n(342),i=n(12),o=n(18),s=n(116),l=n(237),c=n(67),f=n(687),u=n(538),m=n(95),h=n(31),d=n(10),p=n(66),g=n(380),y=n(87),b=n(186),E=n(26),v=n(81),k=n(154),_=n(187),w=n(15),S=n(9),x=n(327),C=n(182),L=n(285),O=n(243),M=n(22),T=n(46),A=n(135),R=n(89),N=n(1414),P=n(1415),I=n(372),F=n(530),D=n(407),j=n(93),B=n(5),G=n(386),W=n(14),H=n(24),U=n(127),q=n(20),$=n(0),K=n.n($),z=n(367),V=n(99),Y=n(796),J=n(301),X=n(4),Q=n(268),Z=n(34);function tt(){const t=Object(A.g)({adminRights:!0,hostname:"home",ip:Object(M.e)(),isConnectedTo:!0,maxRam:8,organizationName:"Home PC",purchasedByPlayer:!0});this.currentServer=R.a.Home,Object(M.a)(t),this.getHomeComputer().programs.push(p.a.NukeProgram.name)}function et(){this.currentServer=R.a.Home,this.numPeopleKilled=0,this.hacking=1,this.strength=1,this.defense=1,this.dexterity=1,this.agility=1,this.charisma=1,this.hacking_exp=0,this.strength_exp=0,this.defense_exp=0,this.dexterity_exp=0,this.agility_exp=0,this.charisma_exp=0,this.money=1e3+d.a.Donations,this.city=w.a.Sector12,this.location=S.a.TravelAgency,this.companyName="",this.jobs={},this.purchasedServers=[],this.factions=[],this.factionInvitations=[],this.queuedAugmentations=[];const t=Math.min(3,this.sourceFileLvl(10)+(10===this.bitNodeN?1:0))+this.sleevesFromCovenant;this.sleeves.length>t&&(this.sleeves.length=t);for(let e=this.sleeves.length;e=100?this.sleeves[t].synchronize(this):this.sleeves[t].shockRecovery(this));this.isWorking=!1,this.currentWorkFactionName="",this.currentWorkFactionDescription="",this.createProgramName="",this.className=Z.a.None,this.crimeType=Z.b.None,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.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.lastUpdate=(new Date).getTime(),this.playtimeSinceLastAug=0,this.scriptProdSinceLastAug=0,this.moneySourceA.reset(),this.hacknetNodes.length=0,this.hashManager.prestige(),this.reapplyAllAugmentations(!0),this.hp=this.max_hp}function nt(){this.entropy=0,this.prestigeAugmentation(),this.karma=0;for(let t=0;t0?this.intelligence=Math.floor(this.calculateSkill(this.intelligence_exp)):this.intelligence=0;const t=this.hp/this.max_hp;this.max_hp=Math.floor(10+this.defense/10),this.hp=Math.round(this.max_hp*t)}function st(){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}function lt(t){const e=this.getHomeComputer();if(null==e)return!1;for(let n=0;n=t}function ht(t,e){this.moneySourceA instanceof G.a||(console.warn("Player.moneySourceA was not properly initialized. Resetting"),this.moneySourceA=new G.a),this.moneySourceB instanceof G.a||(console.warn("Player.moneySourceB was not properly initialized. Resetting"),this.moneySourceB=new G.a),this.moneySourceA.record(t,e),this.moneySourceB.record(t,e)}function dt(t){isNaN(t)?console.error("ERR: NaN passed into Player.gainHackingExp()"):(this.hacking_exp+=t,this.hacking_exp<0&&(this.hacking_exp=0),this.hacking=Object(C.b)(this.hacking_exp,this.hacking_mult*o.a.HackingLevelMultiplier))}function pt(t){isNaN(t)?console.error("ERR: NaN passed into Player.gainStrengthExp()"):(this.strength_exp+=t,this.strength_exp<0&&(this.strength_exp=0),this.strength=Object(C.b)(this.strength_exp,this.strength_mult*o.a.StrengthLevelMultiplier))}function gt(t){if(isNaN(t))return void console.error("ERR: NaN passed into player.gainDefenseExp()");this.defense_exp+=t,this.defense_exp<0&&(this.defense_exp=0),this.defense=Object(C.b)(this.defense_exp,this.defense_mult*o.a.DefenseLevelMultiplier);const e=this.hp/this.max_hp;this.max_hp=Math.floor(10+this.defense/10),this.hp=Math.round(this.max_hp*e)}function yt(t){isNaN(t)?console.error("ERR: NaN passed into Player.gainDexterityExp()"):(this.dexterity_exp+=t,this.dexterity_exp<0&&(this.dexterity_exp=0),this.dexterity=Object(C.b)(this.dexterity_exp,this.dexterity_mult*o.a.DexterityLevelMultiplier))}function bt(t){isNaN(t)?console.error("ERR: NaN passed into Player.gainAgilityExp()"):(this.agility_exp+=t,this.agility_exp<0&&(this.agility_exp=0),this.agility=Object(C.b)(this.agility_exp,this.agility_mult*o.a.AgilityLevelMultiplier))}function Et(t){isNaN(t)?console.error("ERR: NaN passed into Player.gainCharismaExp()"):(this.charisma_exp+=t,this.charisma_exp<0&&(this.charisma_exp=0),this.charisma=Object(C.b)(this.charisma_exp,this.charisma_mult*o.a.CharismaLevelMultiplier))}function vt(t){isNaN(t)?console.error("ERROR: NaN passed into Player.gainIntelligenceExp()"):(this.sourceFileLvl(5)>0||this.intelligence>0)&&(this.intelligence_exp+=t,this.intelligence=Math.floor(this.calculateSkill(this.intelligence_exp)))}function kt(t){const e=t.toLowerCase();return e.includes("hack")?this.hacking:e.includes("str")?this.strength:e.includes("def")?this.defense:e.includes("dex")?this.dexterity:e.includes("agi")?this.agility:e.includes("cha")?this.charisma:e.includes("int")?this.intelligence:0}function _t(t,e,n){this.workType!==Z.d.Faction&&t===this.workType&&e===this.companyName||t===this.workType&&e===this.currentWorkFactionName&&n===this.factionWorkType||(this.isWorking&&this.singularityStopWork(),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.timeWorkedGraftAugmentation=0,this.currentWorkFactionName="",this.currentWorkFactionDescription="",this.createProgramName="",this.graftAugmentationName="",this.className=Z.a.None,this.workType=Z.d.None)}function wt(t=1){let e=1;this.hasAugmentation(i.a.NeuroreceptorManager)||(e=this.focus?1:d.a.BaseFocusBonus);const n=e*this.workHackExpGainRate*t,a=e*this.workStrExpGainRate*t,r=e*this.workDefExpGainRate*t,o=e*this.workDexExpGainRate*t,s=e*this.workAgiExpGainRate*t,l=e*this.workChaExpGainRate*t,c=(this.workMoneyGainRate-this.workMoneyLossRate)*t;this.gainHackingExp(n),this.gainStrengthExp(a),this.gainDefenseExp(r),this.gainDexterityExp(o),this.gainAgilityExp(s),this.gainCharismaExp(l),this.gainMoney(c,this.className?"class":"work"),this.workHackExpGained+=n,this.workStrExpGained+=a,this.workDefExpGained+=r,this.workDexExpGained+=o,this.workAgiExpGained+=s,this.workChaExpGained+=l,this.workRepGained+=e*this.workRepGainRate*t,this.workMoneyGained+=e*this.workMoneyGainRate*t,this.workMoneyGained-=e*this.workMoneyLossRate*t}function St(t){this.resetWorkStatus(Z.d.Company,t),this.isWorking=!0,this.companyName=t,this.workType=Z.d.Company,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=d.a.MillisecondsPer8Hours}function xt(t,e=1){this.isWorking&&(this.workType===Z.d.Faction?this.workForFaction(e)&&t.toFaction(E.a[this.currentWorkFactionName]):this.workType===Z.d.CreateProgram?this.createProgramWork(e)&&t.toTerminal():this.workType===Z.d.StudyClass?this.takeClass(e)&&t.toCity():this.workType===Z.d.Crime?this.commitCrime(e)&&t.toLocation(_.a[S.a.Slums]):this.workType===Z.d.CompanyPartTime?this.workPartTime(e)&&t.toCity():this.workType===Z.d.GraftAugmentation?this.graftAugmentationWork(e)&&t.toGrafting():this.work(e)&&t.toCity())}function Ct(){const t=z.a.find(t=>t.specialName===this.companyName);if(!t)return.5;const e=Object(M.d)(t.hostname);return e instanceof T.a&&e&&e.backdoorInstalled?.75:.5}function Lt(t){let e=!1;this.timeWorked+d.a._idleSpeed*t>=d.a.MillisecondsPer8Hours&&(e=!0,t=Math.round((d.a.MillisecondsPer8Hours-this.timeWorked)/d.a._idleSpeed)),this.timeWorked+=d.a._idleSpeed*t,this.workRepGainRate=this.getWorkRepGain(),this.workMoneyGainRate=this.getWorkMoneyGain(),this.processWorkEarnings(t);const n=c.a[this.companyName];return Object(F.a)(n,this.workRepGainRate,t),!!(e||this.timeWorked>=d.a.MillisecondsPer8Hours)&&(this.finishWork(!1),!0)}function Ot(t,e=!1){t&&(this.workRepGained*=this.cancelationPenalty());const n=.5===this.cancelationPenalty()?"half":"three-quarters";c.a[this.companyName].playerReputation+=this.workRepGained,this.updateSkillLevels();let a=K.a.createElement(K.a.Fragment,null,"You earned a total of: ",K.a.createElement("br",null),K.a.createElement(q.a,{money:this.workMoneyGained}),K.a.createElement("br",null),K.a.createElement(U.a,{reputation:this.workRepGained})," reputation for the company ",K.a.createElement("br",null),this.workHackExpGained>0&&K.a.createElement(K.a.Fragment,null,B.a.formatExp(this.workHackExpGained)," hacking exp ",K.a.createElement("br",null)),this.workStrExpGained>0&&K.a.createElement(K.a.Fragment,null,B.a.formatExp(this.workStrExpGained)," strength exp ",K.a.createElement("br",null)),this.workDefExpGained>0&&K.a.createElement(K.a.Fragment,null,B.a.formatExp(this.workDefExpGained)," defense exp ",K.a.createElement("br",null)),this.workDexExpGained>0&&K.a.createElement(K.a.Fragment,null,B.a.formatExp(this.workDexExpGained)," dexterity exp ",K.a.createElement("br",null)),this.workAgiExpGained>0&&K.a.createElement(K.a.Fragment,null,B.a.formatExp(this.workAgiExpGained)," agility exp ",K.a.createElement("br",null)),this.workChaExpGained>0&&K.a.createElement(K.a.Fragment,null,B.a.formatExp(this.workChaExpGained)," charisma exp ",K.a.createElement("br",null)),K.a.createElement("br",null));if(a=t?K.a.createElement(K.a.Fragment,null,"You worked a short shift of ",Object(H.b)(this.timeWorked)," ",K.a.createElement("br",null),K.a.createElement("br",null),"Since you cancelled your work early, you only gained ",n," of the reputation you earned. ",K.a.createElement("br",null),K.a.createElement("br",null),a):K.a.createElement(K.a.Fragment,null,"You worked a full shift of 8 hours! ",K.a.createElement("br",null),K.a.createElement("br",null),a),e||Object(W.a)(a),this.isWorking=!1,this.focus=!1,this.resetWorkStatus(),e){return"You worked a short shift of "+Object(H.b)(this.timeWorked)+" and earned $"+B.a.formatMoney(this.workMoneyGained)+", "+B.a.formatReputation(this.workRepGained)+" reputation, "+B.a.formatExp(this.workHackExpGained)+" hacking exp, "+B.a.formatExp(this.workStrExpGained)+" strength exp, "+B.a.formatExp(this.workDefExpGained)+" defense exp, "+B.a.formatExp(this.workDexExpGained)+" dexterity exp, "+B.a.formatExp(this.workAgiExpGained)+" agility exp, and "+B.a.formatExp(this.workChaExpGained)+" charisma exp."}return""}function Mt(t){this.resetWorkStatus(Z.d.CompanyPartTime,t),this.isWorking=!0,this.companyName=t,this.workType=Z.d.CompanyPartTime,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=d.a.MillisecondsPer8Hours}function Tt(t){let e=!1;return this.timeWorked+d.a._idleSpeed*t>=d.a.MillisecondsPer8Hours&&(e=!0,t=Math.round((d.a.MillisecondsPer8Hours-this.timeWorked)/d.a._idleSpeed)),this.timeWorked+=d.a._idleSpeed*t,this.workRepGainRate=this.getWorkRepGain(),this.processWorkEarnings(t),!!(e||this.timeWorked>=d.a.MillisecondsPer8Hours)&&(this.finishWorkPartTime(),!0)}function At(t=!1){c.a[this.companyName].playerReputation+=this.workRepGained,this.updateSkillLevels();const e=K.a.createElement(K.a.Fragment,null,"You worked for ",Object(H.b)(this.timeWorked),K.a.createElement("br",null),K.a.createElement("br",null),"You earned a total of: ",K.a.createElement("br",null),K.a.createElement(q.a,{money:this.workMoneyGained}),K.a.createElement("br",null),K.a.createElement(U.a,{reputation:this.workRepGained})," reputation for the company ",K.a.createElement("br",null),B.a.formatExp(this.workHackExpGained)," hacking exp ",K.a.createElement("br",null),B.a.formatExp(this.workStrExpGained)," strength exp ",K.a.createElement("br",null),B.a.formatExp(this.workDefExpGained)," defense exp ",K.a.createElement("br",null),B.a.formatExp(this.workDexExpGained)," dexterity exp ",K.a.createElement("br",null),B.a.formatExp(this.workAgiExpGained)," agility exp ",K.a.createElement("br",null),B.a.formatExp(this.workChaExpGained)," charisma exp",K.a.createElement("br",null));if(t||Object(W.a)(e),this.isWorking=!1,this.resetWorkStatus(),t){return"You worked for "+Object(H.b)(this.timeWorked)+" and earned a total of $"+B.a.formatMoney(this.workMoneyGained)+", "+B.a.formatReputation(this.workRepGained)+" reputation, "+B.a.formatExp(this.workHackExpGained)+" hacking exp, "+B.a.formatExp(this.workStrExpGained)+" strength exp, "+B.a.formatExp(this.workDefExpGained)+" defense exp, "+B.a.formatExp(this.workDexExpGained)+" dexterity exp, "+B.a.formatExp(this.workAgiExpGained)+" agility exp, and "+B.a.formatExp(this.workChaExpGained)+" charisma exp"}return""}function Rt(){this.focus=!0}function Nt(){this.focus=!1}function Pt(t){let e=1+t.favor/100;isNaN(e)&&(e=1),this.workRepGainRate*=e,this.workRepGainRate*=o.a.FactionWorkRepGain,this.isWorking=!0,this.workType=Z.d.Faction,this.currentWorkFactionName=t.name,this.timeNeededToCompleteWork=d.a.MillisecondsPer20Hours}function It(t){this.resetWorkStatus(Z.d.Faction,t.name,Z.c.Hacking),this.workHackExpGainRate=.15*this.hacking_exp_mult*o.a.FactionWorkExpGain,this.workRepGainRate=Object(O.c)(this,t),this.factionWorkType=Z.c.Hacking,this.currentWorkFactionDescription="carrying out hacking contracts",this.startFactionWork(t)}function Ft(t){this.resetWorkStatus(Z.d.Faction,t.name,Z.c.Field),this.workHackExpGainRate=.1*this.hacking_exp_mult*o.a.FactionWorkExpGain,this.workStrExpGainRate=.1*this.strength_exp_mult*o.a.FactionWorkExpGain,this.workDefExpGainRate=.1*this.defense_exp_mult*o.a.FactionWorkExpGain,this.workDexExpGainRate=.1*this.dexterity_exp_mult*o.a.FactionWorkExpGain,this.workAgiExpGainRate=.1*this.agility_exp_mult*o.a.FactionWorkExpGain,this.workChaExpGainRate=.1*this.charisma_exp_mult*o.a.FactionWorkExpGain,this.workRepGainRate=Object(O.a)(this,t),this.factionWorkType=Z.c.Field,this.currentWorkFactionDescription="carrying out field missions",this.startFactionWork(t)}function Dt(t){this.resetWorkStatus(Z.d.Faction,t.name,Z.c.Security),this.workHackExpGainRate=.05*this.hacking_exp_mult*o.a.FactionWorkExpGain,this.workStrExpGainRate=.15*this.strength_exp_mult*o.a.FactionWorkExpGain,this.workDefExpGainRate=.15*this.defense_exp_mult*o.a.FactionWorkExpGain,this.workDexExpGainRate=.15*this.dexterity_exp_mult*o.a.FactionWorkExpGain,this.workAgiExpGainRate=.15*this.agility_exp_mult*o.a.FactionWorkExpGain,this.workChaExpGainRate=0*this.charisma_exp_mult*o.a.FactionWorkExpGain,this.workRepGainRate=Object(O.b)(this,t),this.factionWorkType=Z.c.Security,this.currentWorkFactionDescription="performing security detail",this.startFactionWork(t)}function jt(t){const e=E.a[this.currentWorkFactionName];if(!e)return!1;switch(this.factionWorkType){case Z.c.Hacking:this.workRepGainRate=Object(O.c)(this,e);break;case Z.c.Field:this.workRepGainRate=Object(O.a)(this,e);break;case Z.c.Security:this.workRepGainRate=Object(O.b)(this,e)}this.workRepGainRate*=o.a.FactionWorkRepGain;let n=!1;return this.timeWorked+d.a._idleSpeed*t>=d.a.MillisecondsPer20Hours&&(n=!0,t=Math.round((d.a.MillisecondsPer20Hours-this.timeWorked)/d.a._idleSpeed)),this.timeWorked+=d.a._idleSpeed*t,this.processWorkEarnings(t),!!(n||this.timeWorked>=d.a.MillisecondsPer20Hours)&&(this.finishFactionWork(!1),!0)}function Bt(t,e=!1){const n=E.a[this.currentWorkFactionName];if(n.playerReputation+=this.workRepGained,this.updateSkillLevels(),e||Object(W.a)(K.a.createElement(K.a.Fragment,null,"You worked for your faction ",n.name," for a total of ",Object(H.b)(this.timeWorked)," ",K.a.createElement("br",null),K.a.createElement("br",null),"You earned a total of: ",K.a.createElement("br",null),K.a.createElement(q.a,{money:this.workMoneyGained}),K.a.createElement("br",null),K.a.createElement(U.a,{reputation:this.workRepGained})," reputation for the faction ",K.a.createElement("br",null),B.a.formatExp(this.workHackExpGained)," hacking exp ",K.a.createElement("br",null),B.a.formatExp(this.workStrExpGained)," strength exp ",K.a.createElement("br",null),B.a.formatExp(this.workDefExpGained)," defense exp ",K.a.createElement("br",null),B.a.formatExp(this.workDexExpGained)," dexterity exp ",K.a.createElement("br",null),B.a.formatExp(this.workAgiExpGained)," agility exp ",K.a.createElement("br",null),B.a.formatExp(this.workChaExpGained)," charisma exp",K.a.createElement("br",null))),this.isWorking=!1,this.resetWorkStatus(),e){return"You worked for your faction "+n.name+" for a total of "+Object(H.b)(this.timeWorked)+". You earned "+B.a.formatReputation(this.workRepGained)+" rep, "+B.a.formatExp(this.workHackExpGained)+" hacking exp, "+B.a.formatExp(this.workStrExpGained)+" str exp, "+B.a.formatExp(this.workDefExpGained)+" def exp, "+B.a.formatExp(this.workDexExpGained)+" dex exp, "+B.a.formatExp(this.workAgiExpGained)+" agi exp, and "+B.a.formatExp(this.workChaExpGained)+" cha exp."}return""}function Gt(){let t=1;const e=c.a[this.companyName];this.sourceFileLvl(11)>0&&(t=1+e.favor/100);const n=this.jobs[this.companyName],a=m.a[n];return null==a?(console.error(`Could not find CompanyPosition object for ${n}. Work salary will be 0`),0):a.baseSalary*e.salaryMultiplier*this.work_money_mult*o.a.CompanyWorkMoney*t}function Wt(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];return null==t||null==n?(console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work hack exp gain will be 0"].join(" ")),0):n.hackingExpGain*t.expMultiplier*this.hacking_exp_mult*o.a.CompanyWorkExpGain}function Ht(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];return null==t||null==n?(console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work str exp gain will be 0"].join(" ")),0):n.strengthExpGain*t.expMultiplier*this.strength_exp_mult*o.a.CompanyWorkExpGain}function Ut(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];return null==t||null==n?(console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work def exp gain will be 0"].join(" ")),0):n.defenseExpGain*t.expMultiplier*this.defense_exp_mult*o.a.CompanyWorkExpGain}function qt(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];return null==t||null==n?(console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work dex exp gain will be 0"].join(" ")),0):n.dexterityExpGain*t.expMultiplier*this.dexterity_exp_mult*o.a.CompanyWorkExpGain}function $t(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];return null==t||null==n?(console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work agi exp gain will be 0"].join(" ")),0):n.agilityExpGain*t.expMultiplier*this.agility_exp_mult*o.a.CompanyWorkExpGain}function Kt(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];return null==t||null==n?(console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work cha exp gain will be 0"].join(" ")),0):n.charismaExpGain*t.expMultiplier*this.charisma_exp_mult*o.a.CompanyWorkExpGain}function zt(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];if(null==t||null==n)return console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work rep gain will be 0"].join(" ")),0;let a=n.calculateJobPerformance(this.hacking,this.strength,this.defense,this.dexterity,this.agility,this.charisma);a+=this.intelligence/d.a.MaxSkillLevel;let r=1+t.favor/100;return isNaN(r)&&(r=1),a*this.company_rep_mult*r}function Vt(t,e,n){this.resetWorkStatus(),this.isWorking=!0,this.workType=Z.d.CreateProgram,this.createProgramReqLvl=n,this.timeNeededToCompleteWork=e;for(let e=0;e=100)break;this.timeWorkedCreateProgram=a/100*this.timeNeededToCompleteWork,this.getHomeComputer().programs.splice(e,1)}}this.createProgramName=t}function Yt(t){let e=1;this.hasAugmentation(i.a.NeuroreceptorManager)||(e=this.focus?1:d.a.BaseFocusBonus);const n=this.createProgramReqLvl;let a=this.hacking/n*this.getIntelligenceBonus(3);return a=1+(a-1)/5,a*=e,this.timeWorked+=d.a._idleSpeed*t,this.timeWorkedCreateProgram+=d.a._idleSpeed*t*a,this.timeWorkedCreateProgram>=this.timeNeededToCompleteWork&&(this.finishCreateProgramWork(!1),!0)}function Jt(t){const e=this.createProgramName;if(t){if(!this.getHomeComputer().programs.includes(e)){const t=e+"-"+(Math.floor(this.timeWorkedCreateProgram/this.timeNeededToCompleteWork*1e4)/100).toString()+"%-INC";this.getHomeComputer().programs.push(t)}}else this.gainIntelligenceExp(d.a.IntelligenceProgramBaseExpGain*this.timeWorked/1e3),Object(W.a)(`You've finished creating ${e}!
The new program can be found on your home computer.`),this.getHomeComputer().programs.includes(e)||this.getHomeComputer().programs.push(e);return this.isWorking=!1,this.resetWorkStatus(),"You've finished creating "+e+"! The new program can be found on your home computer."}function Xt(t,e){this.resetWorkStatus(),this.isWorking=!0,this.workType=Z.d.GraftAugmentation,this.timeNeededToCompleteWork=e,this.graftAugmentationName=t}function Qt(t){let e=1;this.hasAugmentation(i.a.NeuroreceptorManager)||(e=this.focus?1:d.a.BaseFocusBonus);let n=Object(Q.c)(this);return n*=e,this.timeWorked+=d.a._idleSpeed*t,this.timeWorkedGraftAugmentation+=d.a._idleSpeed*t*n,this.timeWorkedGraftAugmentation>=this.timeNeededToCompleteWork&&(this.finishGraftAugmentationWork(!1),!0)}function Zt(t,e=!1){const n=this.graftAugmentationName;return!1===t?(Object(a.a)({name:n,level:1}),this.hasAugmentation(i.a.CongruityImplant)||(this.entropy+=1,this.applyEntropy(this.entropy)),Object(W.a)(`You've finished grafting ${n}.
The augmentation has been applied to your body`+(this.hasAugmentation(i.a.CongruityImplant)?".":", but you feel a bit off."))):t&&!1===e&&Object(W.a)(`You cancelled the grafting of ${n}.
Your money was not returned to you.`),t||this.gainIntelligenceExp(d.a.IntelligenceGraftBaseExpGain*this.timeWorked/1e4),this.isWorking=!1,this.resetWorkStatus(),`Grafting of ${n} has ended.`}function te(t,e,n){this.resetWorkStatus(),this.isWorking=!0,this.workType=Z.d.StudyClass,this.workCostMult=t,this.workExpMult=e,this.className=n;const a=Object(Y.a)(this);this.workMoneyLossRate=a.workMoneyLossRate,this.workHackExpGainRate=a.workHackExpGainRate,this.workStrExpGainRate=a.workStrExpGainRate,this.workDefExpGainRate=a.workDefExpGainRate,this.workDexExpGainRate=a.workDexExpGainRate,this.workAgiExpGainRate=a.workAgiExpGainRate,this.workChaExpGainRate=a.workChaExpGainRate}function ee(t){this.timeWorked+=d.a._idleSpeed*t;const e=Object(Y.a)(this);return this.workMoneyLossRate=e.workMoneyLossRate,this.workHackExpGainRate=e.workHackExpGainRate,this.workStrExpGainRate=e.workStrExpGainRate,this.workDefExpGainRate=e.workDefExpGainRate,this.workDexExpGainRate=e.workDexExpGainRate,this.workAgiExpGainRate=e.workAgiExpGainRate,this.workChaExpGainRate=e.workChaExpGainRate,this.processWorkEarnings(t),!1}function ne(t=!1){if(this.gainIntelligenceExp(d.a.IntelligenceClassBaseExpGain*Math.round(this.timeWorked/1e3)),this.workMoneyGained>0)throw new Error("ERR: Somehow gained money while taking class");if(this.updateSkillLevels(),t||Object(W.a)(K.a.createElement(K.a.Fragment,null,"After ",this.className," for ",Object(H.b)(this.timeWorked),", ",K.a.createElement("br",null),"you spent a total of ",K.a.createElement(q.a,{money:-this.workMoneyGained}),". ",K.a.createElement("br",null),K.a.createElement("br",null),"You earned a total of: ",K.a.createElement("br",null),B.a.formatExp(this.workHackExpGained)," hacking exp ",K.a.createElement("br",null),B.a.formatExp(this.workStrExpGained)," strength exp ",K.a.createElement("br",null),B.a.formatExp(this.workDefExpGained)," defense exp ",K.a.createElement("br",null),B.a.formatExp(this.workDexExpGained)," dexterity exp ",K.a.createElement("br",null),B.a.formatExp(this.workAgiExpGained)," agility exp ",K.a.createElement("br",null),B.a.formatExp(this.workChaExpGained)," charisma exp",K.a.createElement("br",null))),this.isWorking=!1,t){const t="After "+this.className+" for "+Object(H.b)(this.timeWorked)+", you spent a total of "+B.a.formatMoney(-1*this.workMoneyGained)+". You earned a total of: "+B.a.formatExp(this.workHackExpGained)+" hacking exp, "+B.a.formatExp(this.workStrExpGained)+" strength exp, "+B.a.formatExp(this.workDefExpGained)+" defense exp, "+B.a.formatExp(this.workDexExpGained)+" dexterity exp, "+B.a.formatExp(this.workAgiExpGained)+" agility exp, and "+B.a.formatExp(this.workChaExpGained)+" charisma exp";return this.resetWorkStatus(),t}return this.resetWorkStatus(),""}function ae(t,e,n,a,r,i,s,l,c,f,u=null){this.crimeType=e,this.resetWorkStatus(),this.isWorking=!0,this.focus=!0,this.workType=Z.d.Crime,null!==u&&(this.committingCrimeThruSingFn=!0,this.singFnCrimeWorkerScript=u),this.workHackExpGained=n*this.hacking_exp_mult*o.a.CrimeExpGain,this.workStrExpGained=a*this.strength_exp_mult*o.a.CrimeExpGain,this.workDefExpGained=r*this.defense_exp_mult*o.a.CrimeExpGain,this.workDexExpGained=i*this.dexterity_exp_mult*o.a.CrimeExpGain,this.workAgiExpGained=s*this.agility_exp_mult*o.a.CrimeExpGain,this.workChaExpGained=l*this.charisma_exp_mult*o.a.CrimeExpGain,this.workMoneyGained=c*this.crime_money_mult*o.a.CrimeMoney,this.timeNeededToCompleteWork=f,t.toWork()}function re(t){return this.timeWorked+=d.a._idleSpeed*t,this.timeWorked>=this.timeNeededToCompleteWork&&(this.finishCrime(!1),!0)}function ie(t){if(!t){if(Object(g.a)(this,this.crimeType)){let t=null;for(const e of Object.keys(y.a))if(y.a[e].type==this.crimeType){t=y.a[e];break}if(null==t)return Object(W.a)(`ERR: Unrecognized crime type (${this.crimeType}). This is probably a bug please contact the developer`),"";this.gainMoney(this.workMoneyGained,"crime"),this.karma-=t.karma,this.numPeopleKilled+=t.kills,t.intelligence_exp>0&&this.gainIntelligenceExp(t.intelligence_exp),this.workHackExpGained*=2,this.workStrExpGained*=2,this.workDefExpGained*=2,this.workDexExpGained*=2,this.workAgiExpGained*=2,this.workChaExpGained*=2;const e=this.singFnCrimeWorkerScript;this.committingCrimeThruSingFn&&null!==e?null==e.disableLogs.ALL&&null==e.disableLogs.commitCrime&&e.scriptRef.log("SUCCESS: Crime successful! Gained "+B.a.formatMoney(this.workMoneyGained)+", "+B.a.formatExp(this.workHackExpGained)+" hack exp, "+B.a.formatExp(this.workStrExpGained)+" str exp, "+B.a.formatExp(this.workDefExpGained)+" def exp, "+B.a.formatExp(this.workDexExpGained)+" dex exp, "+B.a.formatExp(this.workAgiExpGained)+" agi exp, "+B.a.formatExp(this.workChaExpGained)+" cha exp."):Object(W.a)(K.a.createElement(K.a.Fragment,null,"Crime successful!",K.a.createElement("br",null),K.a.createElement("br",null),"You gained:",K.a.createElement("br",null),K.a.createElement(q.a,{money:this.workMoneyGained}),K.a.createElement("br",null),B.a.formatExp(this.workHackExpGained)," hacking experience ",K.a.createElement("br",null),B.a.formatExp(this.workStrExpGained)," strength experience",K.a.createElement("br",null),B.a.formatExp(this.workDefExpGained)," defense experience",K.a.createElement("br",null),B.a.formatExp(this.workDexExpGained)," dexterity experience",K.a.createElement("br",null),B.a.formatExp(this.workAgiExpGained)," agility experience",K.a.createElement("br",null),B.a.formatExp(this.workChaExpGained)," charisma experience"))}else{this.workHackExpGained/=2,this.workStrExpGained/=2,this.workDefExpGained/=2,this.workDexExpGained/=2,this.workAgiExpGained/=2,this.workChaExpGained/=2;const t=this.singFnCrimeWorkerScript;this.committingCrimeThruSingFn&&null!==t?null==t.disableLogs.ALL&&null==t.disableLogs.commitCrime&&t.scriptRef.log("FAIL: Crime failed! Gained "+B.a.formatExp(this.workHackExpGained)+" hack exp, "+B.a.formatExp(this.workStrExpGained)+" str exp, "+B.a.formatExp(this.workDefExpGained)+" def exp, "+B.a.formatExp(this.workDexExpGained)+" dex exp, "+B.a.formatExp(this.workAgiExpGained)+" agi exp, "+B.a.formatExp(this.workChaExpGained)+" cha exp."):Object(W.a)(K.a.createElement(K.a.Fragment,null,"Crime failed!",K.a.createElement("br",null),K.a.createElement("br",null),"You gained:",K.a.createElement("br",null),B.a.formatExp(this.workHackExpGained)," hacking experience ",K.a.createElement("br",null),B.a.formatExp(this.workStrExpGained)," strength experience",K.a.createElement("br",null),B.a.formatExp(this.workDefExpGained)," defense experience",K.a.createElement("br",null),B.a.formatExp(this.workDexExpGained)," dexterity experience",K.a.createElement("br",null),B.a.formatExp(this.workAgiExpGained)," agility experience",K.a.createElement("br",null),B.a.formatExp(this.workChaExpGained)," 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)}return this.committingCrimeThruSingFn=!1,this.singFnCrimeWorkerScript=null,this.isWorking=!1,this.crimeType=Z.b.None,this.resetWorkStatus(),""}function oe(){if(!this.isWorking)return"";let t="";switch(this.workType){case Z.d.StudyClass:t=this.finishClass(!0);break;case Z.d.Company:t=this.finishWork(!0,!0);break;case Z.d.CompanyPartTime:t=this.finishWorkPartTime(!0);break;case Z.d.Faction:t=this.finishFactionWork(!0,!0);break;case Z.d.CreateProgram:t=this.finishCreateProgramWork(!0);break;case Z.d.Crime:t=this.finishCrime(!0);break;case Z.d.GraftAugmentation:t=this.finishGraftAugmentationWork(!0,!0);break;default:return console.error(`Unrecognized work type (${this.workType})`),""}return t}function se(t){return"number"!=typeof t?(console.warn("Player.takeDamage() called without a numeric argument: "+t),!1):(this.hp-=t,this.hp<=0&&(this.hospitalize(),!0))}function le(t){"number"==typeof t?(this.hp+=t,this.hp>this.max_hp&&(this.hp=this.max_hp)):console.warn("Player.regenerateHp() called without a numeric argument: "+t)}function ce(){const t=Object(D.b)(this);return V.b.emit("You've been Hospitalized for "+B.a.formatMoney(t),V.d.WARNING,2e3),this.loseMoney(t,"hospitalization"),this.hp=this.max_hp,t}function fe(t,e=!1){const n=c.a[this.location];if(!(n instanceof l.a))return console.error(`Could not find company that matches the location: ${this.location}. Player.applyToCompany() failed`),!1;let a=t;if(!this.isQualified(n,a))return e||Object(W.a)("Unfortunately, you do not qualify for this position
"+Object(u.a)(n,a)),!1;if(!n.hasPosition(a))return console.error(`Company ${n.name} does not have position ${a}. Player.applyToCompany() failed`),!1;for(;;){const t=Object(f.a)(a);if(null==t)break;if(!n.hasPosition(t)||!this.isQualified(n,t))break;a=t}if(this.jobs[n.name]===a.name){if(!e){const t=Object(f.a)(a);if(null!=t&&n.hasPosition(t)){const e=Object(u.a)(n,t);Object(W.a)("Unfortunately, you do not qualify for a promotion
"+e)}else Object(W.a)("You are already at the highest position for your field! No promotion available")}return!1}return this.jobs[n.name]=a.name,this.isWorking&&this.workType===Z.d.Company||(this.companyName=n.name),e||Object(W.a)("Congratulations! You were offered a new job at "+n.name+" as a "+a.name+"!"),!0}function ue(t,e){let n=null;if(""!==this.companyName&&(n=c.a[this.companyName]),null==n||n.name!=t.name)return e;const a=this.jobs[this.companyName];if(!a)return e;const r=m.a[a];return r.isSoftwareJob()&&e.isSoftwareJob()||r.isITJob()&&e.isITJob()||r.isBusinessJob()&&e.isBusinessJob()||r.isSecurityEngineerJob()&&e.isSecurityEngineerJob()||r.isNetworkEngineerJob()&&e.isNetworkEngineerJob()||r.isSecurityJob()&&e.isSecurityJob()||r.isAgentJob()&&e.isAgentJob()||r.isSoftwareConsultantJob()&&e.isSoftwareConsultantJob()||r.isBusinessConsultantJob()&&e.isBusinessConsultantJob()||r.isPartTimeJob()&&e.isPartTimeJob()?Object(f.a)(r):e}function me(t,e=!1){1==this.isWorking&&this.workType!==Z.d.Company&&this.companyName==t&&this.finishWork(!0),delete this.jobs[t],this.companyName===t&&(this.companyName=this.hasJob()?Object.keys(this.jobs)[0]:"")}function he(){return Boolean(Object.keys(this.jobs).length)}function de(t=!1){return this.applyForJob(m.a[h.j[0]],t)}function pe(t=!1){return this.applyForJob(m.a[h.k[0]],t)}function ge(t=!1){return this.applyForJob(m.a[h.d[0]],t)}function ye(t=!1){const e=c.a[this.location];return this.isQualified(e,m.a[h.i[0]])?this.applyForJob(m.a[h.i[0]],t):(t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1)}function be(t=!1){const e=c.a[this.location];if(this.isQualified(e,m.a[h.f[0]])){const e=m.a[h.f[0]];return this.applyForJob(e,t)}return t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1}function Ee(t=!1){return this.applyForJob(m.a[h.b[0]],t)}function ve(t=!1){return this.applyForJob(m.a[h.c[0]],t)}function ke(t=!1){return this.applyForJob(m.a[h.h[2]],t)}function _e(t=!1){const e=c.a[this.location];if(this.isQualified(e,m.a[h.a[0]])){const e=m.a[h.a[0]];return this.applyForJob(e,t)}return t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1}function we(t=!1){const e=c.a[this.location],n=h.e[1];return!!e.hasPosition(n)&&(this.isQualified(e,m.a[n])?(this.jobs[e.name]=n,!this.focus&&this.isWorking&&this.companyName!==e.name&&this.resetWorkStatus(),this.companyName=e.name,t||Object(W.a)("Congratulations, you are now employed at "+this.location),!0):(t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1))}function Se(t=!1){const e=c.a[this.location],n=h.g[1];return!!e.hasPosition(n)&&(this.isQualified(e,m.a[n])?(this.jobs[e.name]=n,!this.focus&&this.isWorking&&this.companyName!==e.name&&this.resetWorkStatus(),this.companyName=e.name,t||Object(W.a)("Congratulations, you are now employed part-time at "+this.location),!0):(t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1))}function xe(t=!1){const e=c.a[this.location],n=h.e[0];return!!e.hasPosition(n)&&(this.isQualified(e,m.a[n])?(this.jobs[e.name]=n,!this.focus&&this.isWorking&&this.companyName!==e.name&&this.resetWorkStatus(),this.companyName=e.name,t||Object(W.a)("Congratulations, you are now employed as a waiter at "+this.location),!0):(t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1))}function Ce(t=!1){const e=c.a[this.location],n=h.g[0];return!!e.hasPosition(n)&&(this.isQualified(e,m.a[n])?(this.jobs[e.name]=n,!this.focus&&this.isWorking&&this.companyName!==e.name&&this.resetWorkStatus(),this.companyName=e.name,t||Object(W.a)("Congratulations, you are now employed as a part-time waiter at "+this.location),!0):(t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1))}function Le(t,e){const n=t.jobStatReqOffset,a=e.requiredHacking>0?e.requiredHacking+n:0,r=e.requiredStrength>0?e.requiredStrength+n:0,i=e.requiredDefense>0?e.requiredDefense+n:0,o=e.requiredDexterity>0?e.requiredDexterity+n:0,s=e.requiredDexterity>0?e.requiredDexterity+n:0,l=e.requiredCharisma>0?e.requiredCharisma+n:0;return this.hacking>=a&&this.strength>=r&&this.defense>=i&&this.dexterity>=o&&this.agility>=s&&this.charisma>=l&&t.playerReputation>=e.requiredReputation}function Oe(t=!0){t&&this.resetMultipliers();for(let t=0;te}const i=E.a[X.a.Illuminati];!i.isBanned&&!i.isMember&&!i.alreadyInvited&&e>=30&&this.money>=15e10&&this.hacking>=1500&&this.strength>=1200&&this.defense>=1200&&this.dexterity>=1200&&this.agility>=1200&&t.push(i);const s=E.a[X.a.Daedalus];!s.isBanned&&!s.isMember&&!s.alreadyInvited&&e>=o.a.DaedalusAugsRequirement&&this.money>=1e11&&(this.hacking>=2500||this.strength>=1500&&this.defense>=1500&&this.dexterity>=1500&&this.agility>=1500)&&t.push(s);const l=E.a[X.a.TheCovenant];!l.isBanned&&!l.isMember&&!l.alreadyInvited&&e>=20&&this.money>=75e9&&this.hacking>=850&&this.strength>=850&&this.defense>=850&&this.dexterity>=850&&this.agility>=850&&t.push(l);const f=E.a[X.a.ECorp];f.isBanned||f.isMember||f.alreadyInvited||!r(S.a.AevumECorp)||t.push(f);const u=E.a[X.a.MegaCorp];u.isBanned||u.isMember||u.alreadyInvited||!r(S.a.Sector12MegaCorp)||t.push(u);const m=E.a[X.a.BachmanAssociates];m.isBanned||m.isMember||m.alreadyInvited||!r(S.a.AevumBachmanAndAssociates)||t.push(m);const h=E.a[X.a.BladeIndustries];h.isBanned||h.isMember||h.alreadyInvited||!r(S.a.Sector12BladeIndustries)||t.push(h);const p=E.a[X.a.NWO];p.isBanned||p.isMember||p.alreadyInvited||!r(S.a.VolhavenNWO)||t.push(p);const g=E.a[X.a.ClarkeIncorporated];g.isBanned||g.isMember||g.alreadyInvited||!r(S.a.AevumClarkeIncorporated)||t.push(g);const y=E.a[X.a.OmniTekIncorporated];y.isBanned||y.isMember||y.alreadyInvited||!r(S.a.VolhavenOmniTekIncorporated)||t.push(y);const b=E.a[X.a.FourSigma];b.isBanned||b.isMember||b.alreadyInvited||!r(S.a.Sector12FourSigma)||t.push(b);const v=E.a[X.a.KuaiGongInternational];v.isBanned||v.isMember||v.alreadyInvited||!r(S.a.ChongqingKuaiGongInternational)||t.push(v);const k=E.a[X.a.FulcrumSecretTechnologies],_=Object(M.d)(R.a.FulcrumSecretTechnologies);if(!(_ instanceof T.a))throw new Error(X.a.FulcrumSecretTechnologies+" should be normal server");null==_?console.error(`Could not find ${X.a.FulcrumSecretTechnologies} Server`):k.isBanned||k.isMember||k.alreadyInvited||!_.backdoorInstalled||!r(S.a.AevumFulcrumTechnologies,25e4)||t.push(k);const x=E.a[X.a.BitRunners],C=Object(M.d)(R.a.BitRunnersServer);if(!(C instanceof T.a))throw new Error(X.a.BitRunners+" should be normal server");null==C?console.error(`Could not find ${X.a.BitRunners} Server`):x.isBanned||x.isMember||!C.backdoorInstalled||x.alreadyInvited||t.push(x);const L=E.a[X.a.TheBlackHand],O=Object(M.d)(R.a.TheBlackHandServer);if(!(O instanceof T.a))throw new Error(X.a.TheBlackHand+" should be normal server");null==O?console.error(`Could not find ${X.a.TheBlackHand} Server`):L.isBanned||L.isMember||!O.backdoorInstalled||L.alreadyInvited||t.push(L);const A=E.a[X.a.NiteSec],N=Object(M.d)(R.a.NiteSecServer);if(!(N instanceof T.a))throw new Error(X.a.NiteSec+" should be normal server");null==N?console.error(`Could not find ${X.a.NiteSec} Server`):A.isBanned||A.isMember||!N.backdoorInstalled||A.alreadyInvited||t.push(A);const P=E.a[X.a.Chongqing];!P.isBanned&&!P.isMember&&!P.alreadyInvited&&this.money>=2e7&&this.city==w.a.Chongqing&&t.push(P);const I=E.a[X.a.Sector12];!I.isBanned&&!I.isMember&&!I.alreadyInvited&&this.money>=15e6&&this.city==w.a.Sector12&&t.push(I);const F=E.a[X.a.NewTokyo];!F.isBanned&&!F.isMember&&!F.alreadyInvited&&this.money>=2e7&&this.city==w.a.NewTokyo&&t.push(F);const D=E.a[X.a.Aevum];!D.isBanned&&!D.isMember&&!D.alreadyInvited&&this.money>=4e7&&this.city==w.a.Aevum&&t.push(D);const B=E.a[X.a.Ishima];!B.isBanned&&!B.isMember&&!B.alreadyInvited&&this.money>=3e7&&this.city==w.a.Ishima&&t.push(B);const G=E.a[X.a.Volhaven];!G.isBanned&&!G.isMember&&!G.alreadyInvited&&this.money>=5e7&&this.city==w.a.Volhaven&&t.push(G);const W=E.a[X.a.SpeakersForTheDead];!W.isBanned&&!W.isMember&&!W.alreadyInvited&&this.hacking>=100&&this.strength>=300&&this.defense>=300&&this.dexterity>=300&&this.agility>=300&&this.numPeopleKilled>=30&&this.karma<=-45&&!n.includes(S.a.Sector12CIA)&&!n.includes(S.a.Sector12NSA)&&t.push(W);const H=E.a[X.a.TheDarkArmy];!H.isBanned&&!H.isMember&&!H.alreadyInvited&&this.hacking>=300&&this.strength>=300&&this.defense>=300&&this.dexterity>=300&&this.agility>=300&&this.city==w.a.Chongqing&&this.numPeopleKilled>=5&&this.karma<=-45&&!n.includes(S.a.Sector12CIA)&&!n.includes(S.a.Sector12NSA)&&t.push(H);const U=E.a[X.a.TheSyndicate];!U.isBanned&&!U.isMember&&!U.alreadyInvited&&this.hacking>=200&&this.strength>=200&&this.defense>=200&&this.dexterity>=200&&this.agility>=200&&(this.city==w.a.Aevum||this.city==w.a.Sector12)&&this.money>=1e7&&this.karma<=-90&&!n.includes(S.a.Sector12CIA)&&!n.includes(S.a.Sector12NSA)&&t.push(U);const q=E.a[X.a.Silhouette];!q.isBanned&&!q.isMember&&!q.alreadyInvited&&(a.includes("Chief Technology Officer")||a.includes("Chief Financial Officer")||a.includes("Chief Executive Officer"))&&this.money>=15e6&&this.karma<=-22&&t.push(q);const $=E.a[X.a.Tetrads];!$.isBanned&&!$.isMember&&!$.alreadyInvited&&(this.city==w.a.Chongqing||this.city==w.a.NewTokyo||this.city==w.a.Ishima)&&this.strength>=75&&this.defense>=75&&this.dexterity>=75&&this.agility>=75&&this.karma<=-18&&t.push($);const K=E.a[X.a.SlumSnakes];!K.isBanned&&!K.isMember&&!K.alreadyInvited&&this.strength>=30&&this.defense>=30&&this.dexterity>=30&&this.agility>=30&&this.karma<=-9&&this.money>=1e6&&t.push(K);const z=E.a[X.a.Netburners];let V=0,Y=0,J=0;for(let t=0;t=80&&V>=8&&Y>=4&&J>=100&&t.push(z);const Q=E.a[X.a.TianDiHui];!Q.isBanned&&!Q.isMember&&!Q.alreadyInvited&&this.money>=1e6&&this.hacking>=50&&(this.city==w.a.Chongqing||this.city==w.a.NewTokyo||this.city==w.a.Ishima)&&t.push(Q);const Z=E.a[X.a.CyberSec],tt=Object(M.d)(R.a.CyberSecServer);if(!(tt instanceof T.a))throw new Error(X.a.CyberSec+" should be normal server");return null==tt?console.error(`Could not find ${X.a.CyberSec} Server`):Z.isBanned||Z.isMember||!tt.backdoorInstalled||Z.alreadyInvited||t.push(Z),t}function Ae(t){this.bitNodeN=t}function Re(t){for(const e of this.queuedAugmentations)if(e.name==t)return void console.warn(`tried to queue ${t} twice, this may be a bug`);for(const e of this.augmentations)if(e.name==t)return void console.warn(`tried to queue ${t} twice, this may be a bug`);this.queuedAugmentations.push(new r.a(t))}function Ne(t,e=1){if(null==t||null==t.type)return"No reward for this contract";switch(t.type){case s.c.FactionReputation:if(null==t.name||!(E.a[t.name]instanceof b.a))return t.type=s.c.FactionReputationAll,this.gainCodingContractReward(t);const n=d.a.CodingContractBaseFactionRepGain*e;return E.a[t.name].playerReputation+=n,`Gained ${n} faction reputation for ${t.name}`;case s.c.FactionReputationAll:const a=d.a.CodingContractBaseFactionRepGain*e,r=[X.a.Bladeburners],i=this.factions.slice().filter(t=>!r.includes(t));if(0==i.length)return t.type=s.c.Money,this.gainCodingContractReward(t,e);const f=Math.floor(a/i.length);for(const t of i)E.a[t]instanceof b.a&&(E.a[t].playerReputation+=f);return`Gained ${f} reputation for each of the following factions: ${i.toString()}`;case s.c.CompanyReputation:{if(null==t.name||!(c.a[t.name]instanceof l.a))return t.type=s.c.FactionReputationAll,this.gainCodingContractReward(t);const n=d.a.CodingContractBaseCompanyRepGain*e;return c.a[t.name].playerReputation+=n,`Gained ${n} company reputation for ${t.name}`}case s.c.Money:default:{const t=d.a.CodingContractBaseMoneyGain*e*o.a.CodingContractMoney;return this.gainMoney(t,"codingcontract"),"Gained "+B.a.formatMoney(t)}}}function Pe(t){return null==k.a[t]?(console.warn("Player.travel() called with invalid city: "+t),!1):(this.city=t,!0)}function Ie(t){return null==_.a[t]?(console.warn("Player.gotoLocation() called with invalid location: "+t),!1):(this.location=t,!0)}function Fe(){return 10===this.bitNodeN||this.sourceFileLvl(10)>0}function De(t){this.exploits.includes(t)||(this.exploits.push(t),V.b.emit("SF -1 acquired!",V.d.SUCCESS,2e3))}function je(t){const e=J.a[t];e&&(this.achievements.map(t=>t.ID).includes(t)||(this.achievements.push({ID:t,unlockedOn:(new Date).getTime()}),V.b.emit(`Unlocked Achievement: "${e.Name}"`,V.d.SUCCESS,2e3)))}function Be(t){return Object(L.a)(this.intelligence,t)}function Ge(){return this.moneySourceA.casino}function We(t){return this.hasOwnProperty(t)?this[t]:1}function He(t,e){this.hasOwnProperty(t)&&(this[t]=e)}function Ue(){return 13===this.bitNodeN||this.sourceFileLvl(13)>0}function qe(t){const e=this.sourceFiles.find(e=>e.n===t);return e?e.lvl:0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s}));var a=n(0),r=n.n(a);const i={Corporation:r.a.createContext({}),Division:r.a.createContext({})},o=()=>Object(a.useContext)(i.Corporation),s=()=>Object(a.useContext)(i.Division)},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return f})),n.d(e,"e",(function(){return u}));var a=n(0),r=n.n(a),i=n(137),o=n(145);const s={Energy:"Energy",Utilities:"Water Utilities",Agriculture:"Agriculture",Fishing:"Fishing",Mining:"Mining",Food:"Food",Tobacco:"Tobacco",Chemical:"Chemical",Pharmaceutical:"Pharmaceutical",Computer:"Computer Hardware",Robotics:"Robotics",Software:"Software",Healthcare:"Healthcare",RealEstate:"RealEstate"},l={Energy:225e9,Utilities:15e10,Agriculture:4e10,Fishing:8e10,Mining:3e11,Food:1e10,Tobacco:2e10,Chemical:7e10,Pharmaceutical:2e11,Computer:5e11,Robotics:1e12,Software:25e9,Healthcare:75e10,RealEstate:6e11},c={Energy:t=>r.a.createElement(r.a.Fragment,null,"Engage in the production and distribution of energy.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Energy,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Utilities:t=>r.a.createElement(r.a.Fragment,null,"Distribute water and provide wastewater services.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Utilities,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Agriculture:t=>r.a.createElement(r.a.Fragment,null,"Cultivate crops and breed livestock to produce food.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Agriculture,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Fishing:t=>r.a.createElement(r.a.Fragment,null,"Produce food through the breeding and processing of fish and fish products.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Fishing,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Mining:t=>r.a.createElement(r.a.Fragment,null,"Extract and process metals from the earth.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Mining,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Food:t=>r.a.createElement(r.a.Fragment,null,"Create your own restaurants all around the world.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Food,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Tobacco:t=>r.a.createElement(r.a.Fragment,null,"Create and distribute tobacco and tobacco-related products.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Tobacco,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Chemical:t=>r.a.createElement(r.a.Fragment,null,"Produce industrial chemicals.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Chemical,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Pharmaceutical:t=>r.a.createElement(r.a.Fragment,null,"Discover, develop, and create new pharmaceutical drugs.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Pharmaceutical,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Computer:t=>r.a.createElement(r.a.Fragment,null,"Develop and manufacture new computer hardware and networking infrastructures.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Computer,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Robotics:t=>r.a.createElement(r.a.Fragment,null,"Develop and create robots.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Robotics,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Software:t=>r.a.createElement(r.a.Fragment,null,"Develop computer software and create AI Cores.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Software,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Healthcare:t=>r.a.createElement(r.a.Fragment,null,"Create and manage hospitals.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Healthcare,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),RealEstate:t=>r.a.createElement(r.a.Fragment,null,"Develop and manage real estate properties.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.RealEstate,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO")},f={Energy:Object(i.a)(),Utilities:Object(i.a)(),Agriculture:Object(i.a)(),Fishing:Object(i.a)(),Mining:Object(i.a)(),Food:Object(i.b)(),Tobacco:Object(i.b)(),Chemical:Object(i.a)(),Pharmaceutical:Object(i.b)(),Computer:Object(i.b)(),Robotics:Object(i.b)(),Software:Object(i.b)(),Healthcare:Object(i.b)(),RealEstate:Object(i.b)()};function u(){f.Energy=Object(i.a)(),f.Utilities=Object(i.a)(),f.Agriculture=Object(i.a)(),f.Fishing=Object(i.a)(),f.Mining=Object(i.a)(),f.Food=Object(i.b)(),f.Tobacco=Object(i.b)(),f.Chemical=Object(i.a)(),f.Pharmaceutical=Object(i.b)(),f.Computer=Object(i.b)(),f.Robotics=Object(i.b)(),f.Software=Object(i.b)(),f.Healthcare=Object(i.b)(),f.RealEstate=Object(i.b)()}},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t[t.Company=0]="Company",t[t.Gym=1]="Gym",t[t.Hospital=2]="Hospital",t[t.Slums=3]="Slums",t[t.Special=4]="Special",t[t.StockMarket=5]="StockMarket",t[t.TechVendor=6]="TechVendor",t[t.TravelAgency=7]="TravelAgency",t[t.University=8]="University",t[t.Casino=9]="Casino"}(a||(a={}))},,,,function(t,e,n){"use strict";n.d(e,"g",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"h",(function(){return g})),n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return b})),n.d(e,"e",(function(){return E})),n.d(e,"f",(function(){return v})),n.d(e,"d",(function(){return k})),n.d(e,"c",(function(){return _})),n.d(e,"n",(function(){return w})),n.d(e,"o",(function(){return S})),n.d(e,"k",(function(){return x})),n.d(e,"j",(function(){return C})),n.d(e,"i",(function(){return L})),n.d(e,"p",(function(){return M})),n.d(e,"m",(function(){return T}));var a=n(224),r=n(212),i=n(156),o=n(41),s=n(93),l=n(377),c=n(240),f=n(378),u=n(44),m=n(22),h=n(46);function d(t){return 9===t.bitNodeN||t.sourceFileLvl(9)>0}function p(t){if(u.a.isRunning){if(u.a.currStep!==u.f.HacknetNodesIntroduction)return-1;Object(u.c)()}const e=t.hacknetNodes.length;if(d(t)){const n=b(t);if(isNaN(n))throw new Error("Calculated cost of purchasing HacknetServer is NaN");return!t.canAfford(n)||e>=o.b.MaxServers?-1:(t.loseMoney(n,"hacknet_expenses"),t.createHacknetServer(),M(t),e)}{const n=y(t);if(isNaN(n))throw new Error("Calculated cost of purchasing HacknetNode is NaN");if(!t.canAfford(n))return-1;const r="hacknet-node-"+e,i=new a.a(r,t.hacknet_node_money_mult);return t.loseMoney(n,"hacknet_expenses"),t.hacknetNodes.push(i),e}}function g(t){return d(t)&&t.hacknetNodes.length>=o.b.MaxServers}function y(t){return Object(r.d)(t.hacknetNodes.length+1,t.hacknet_node_purchase_cost_mult)}function b(t){return Object(i.f)(t.hacknetNodes.length+1,t.hacknet_node_purchase_cost_mult)}function E(t,e,n){if(null==n)throw new Error("getMaxNumberLevelUpgrades() called without maxLevel arg");if(t.moneye.calculateLevelUpgradeCost(i,t.hacknet_node_level_cost_mult))return i;for(;a<=r;){const o=(a+r)/2|0;if(o!==n&&t.money>e.calculateLevelUpgradeCost(o,t.hacknet_node_level_cost_mult)&&t.moneye.calculateLevelUpgradeCost(o,t.hacknet_node_level_cost_mult)))return Math.min(i,o);a=o+1}}return 0}function v(t,e,n){if(null==n)throw new Error("getMaxNumberRamUpgrades() called without maxLevel arg");if(t.moneye.calculateRamUpgradeCost(a,t.hacknet_node_ram_cost_mult))return a;for(let n=a-1;n>=0;--n)if(t.money>e.calculateRamUpgradeCost(n,t.hacknet_node_ram_cost_mult))return n;return 0}function k(t,e,n){if(null==n)throw new Error("getMaxNumberCoreUpgrades() called without maxLevel arg");if(t.moneye.calculateCoreUpgradeCost(i,t.hacknet_node_core_cost_mult))return i;for(;a<=r;){const o=(a+r)/2|0;if(o!=n&&t.money>e.calculateCoreUpgradeCost(o,t.hacknet_node_core_cost_mult)&&t.moneye.calculateCoreUpgradeCost(o,t.hacknet_node_core_cost_mult)))return Math.min(i,o);a=o+1}}return 0}function _(t,e,n){if(null==n)throw new Error("getMaxNumberCacheUpgrades() called without maxLevel arg");if(!t.canAfford(e.calculateCacheUpgradeCost(1)))return 0;let a=1,r=n-1;const i=n-e.cache;if(t.canAfford(e.calculateCacheUpgradeCost(i)))return i;for(;a<=r;){const o=(a+r)/2|0;if(o!=n&&t.canAfford(e.calculateCacheUpgradeCost(o))&&!t.canAfford(e.calculateCacheUpgradeCost(o+1)))return Math.min(i,o);if(t.canAfford(e.calculateCacheUpgradeCost(o))){if(!t.canAfford(e.calculateCacheUpgradeCost(o)))return Math.min(i,o);a=o+1}else r=o-1}return 0}function w(t,e,n=1){const a=Math.round(n),r=e.calculateLevelUpgradeCost(a,t.hacknet_node_level_cost_mult);if(isNaN(r)||r<=0||a<0)return!1;const i=e instanceof s.a;if(e.level>=(i?o.b.MaxLevel:o.a.MaxLevel))return!1;if(e.level+a>(i?o.b.MaxLevel:o.a.MaxLevel)){return w(t,e,Math.max(0,(i?o.b.MaxLevel:o.a.MaxLevel)-e.level))}return!!t.canAfford(r)&&(t.loseMoney(r,"hacknet_expenses"),e.upgradeLevel(a,t.hacknet_node_money_mult),!0)}function S(t,e,n=1){const r=Math.round(n),i=e.calculateRamUpgradeCost(r,t.hacknet_node_ram_cost_mult);if(isNaN(i)||i<=0||r<0)return!1;if(e instanceof s.a&&e.maxRam>=o.b.MaxRam)return!1;if(e instanceof a.a&&e.ram>=o.a.MaxRam)return!1;if(e instanceof s.a){if(e.maxRam*Math.pow(2,r)>o.b.MaxRam){return S(t,e,Math.max(0,Math.log2(Math.round(o.b.MaxRam/e.maxRam))))}}else if(e instanceof a.a&&e.ram*Math.pow(2,r)>o.a.MaxRam){return S(t,e,Math.max(0,Math.log2(Math.round(o.a.MaxRam/e.ram))))}return!!t.canAfford(i)&&(t.loseMoney(i,"hacknet_expenses"),e.upgradeRam(r,t.hacknet_node_money_mult),!0)}function x(t,e,n=1){const a=Math.round(n),r=e.calculateCoreUpgradeCost(a,t.hacknet_node_core_cost_mult);if(isNaN(r)||r<=0||a<0)return!1;const i=e instanceof s.a;if(e.cores>=(i?o.b.MaxCores:o.a.MaxCores))return!1;if(e.cores+a>(i?o.b.MaxCores:o.a.MaxCores)){return x(t,e,Math.max(0,(i?o.b.MaxCores:o.a.MaxCores)-e.cores))}return!!t.canAfford(r)&&(t.loseMoney(r,"hacknet_expenses"),e.upgradeCore(a,t.hacknet_node_money_mult),!0)}function C(t,e,n=1){const a=Math.round(n),r=e.calculateCacheUpgradeCost(a);if(isNaN(r)||r<=0||a<0)return!1;if(!(e instanceof s.a))return console.warn("purchaseCacheUpgrade() called for a non-HacknetNode"),!1;if(e.cache+a>o.b.MaxCache){return C(t,e,Math.max(0,o.b.MaxCache-e.cache))}return!!t.canAfford(r)&&(t.loseMoney(r,"hacknet_expenses"),e.upgradeCache(a),!0)}function L(t,e){return 0===t.hacknetNodes.length?0:d(t)?function(t,e){if(!(t.hashManager instanceof l.a))throw new Error("Player does not have a HashManager (should be in 'hashManager' prop)");let n=0;for(let r=0;r0){const e=c.a["Sell for Money"];if(null===e)throw new Error("Could not get the hash upgrade");if(!e.cost)throw new Error("Upgrade is not properly configured");const n=Math.floor(r/e.cost);n>0&&t.gainMoney(e.value*n,"hacknet")}return n}(t,e):t.hacknetNodes[0]instanceof a.a?function(t,e){let n=0;for(let a=0;ae==t))throw new Error(`You have already expanded into the ${e} industry!`);for(let e=0;e_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.DividendMaxPercentage)throw new Error("Invalid value. Must be an integer between 0 and "+_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.DividendMaxPercentage);t.dividendPercentage=100*e}function SellMaterial(mat,amt,price){""===price&&(price="0"),""===amt&&(amt="0");let cost=price.replace(/\s+/g,"");cost=cost.replace(/[^-()\d/*+.MPe]/g,"");let temp=cost.replace(/MP/g,mat.bCost+"");try{temp=eval(temp)}catch(t){throw new Error("Invalid value or expression for sell price field: "+t)}if(null==temp||isNaN(parseFloat(temp))||parseFloat(temp)<0)throw new Error("Invalid value or expression for sell price field");if(cost.includes("MP")?mat.sCost=cost:mat.sCost=temp,amt=amt.toUpperCase(),amt.includes("MAX")||amt.includes("PROD")){let q=amt.replace(/\s+/g,"");q=q.replace(/[^-()\d/*+.MAXPROD]/g,"");let tempQty=q.replace(/MAX/g,mat.maxsll.toString());tempQty=tempQty.replace(/PROD/g,mat.prd.toString());try{tempQty=eval(tempQty)}catch(t){throw new Error("Invalid value or expression for sell quantity field: "+t)}if(null==tempQty||isNaN(parseFloat(tempQty))||parseFloat(tempQty)<0)throw new Error("Invalid value or expression for sell quantity field");mat.sllman[0]=!0,mat.sllman[1]=q}else{if(isNaN(parseFloat(amt))||parseFloat(amt)<0)throw new Error("Invalid value for sell quantity field! Must be numeric or 'PROD' or 'MAX'");{let t=parseFloat(amt);isNaN(t)&&(t=0),0===t?(mat.sllman[0]=!1,mat.sllman[1]=0):(mat.sllman[0]=!0,mat.sllman[1]=t)}}}function SellProduct(product,city,amt,price,all){if(price.includes("MP")){price=price.replace(/\s+/g,""),price=price.replace(/[^-()\d/*+.MP]/g,"");let temp=price.replace(/MP/g,"1");try{temp=eval(temp)}catch(t){throw new Error("Invalid value or expression for sell price field: "+t)}if(null==temp||isNaN(parseFloat(temp))||parseFloat(temp)<0)throw new Error("Invalid value or expression for sell price field.");product.sCost=price}else{const t=parseFloat(price);if(isNaN(t))throw new Error("Invalid value for sell price field");product.sCost=t}const cities=Object.keys(_Locations_Cities__WEBPACK_IMPORTED_MODULE_7__.a);if(amt=amt.toUpperCase(),amt.includes("MAX")||amt.includes("PROD")){let qty=amt.replace(/\s+/g,"");qty=qty.replace(/[^-()\d/*+.MAXPROD]/g,"");let temp=qty.replace(/MAX/g,product.maxsll.toString());temp=temp.replace(/PROD/g,product.data[city][1].toString());try{temp=eval(temp)}catch(t){throw new Error("Invalid value or expression for sell quantity field: "+t)}if(null==temp||isNaN(parseFloat(temp))||parseFloat(temp)<0)throw new Error("Invalid value or expression for sell quantity field");if(all)for(let t=0;ti)throw new Error("You do not have enough warehouse size to fit this purchase");const o=a*n.bCost;if(!(t.funds>=o))throw new Error("You cannot afford this purchase.");t.funds=t.funds-o,n.qty+=a}function SellShares(t,e,n){if(isNaN(n))throw new Error("Invalid value for number of shares");if(n<0)throw new Error("Invalid value for number of shares");if(n>t.numShares)throw new Error("You don't have that many shares to sell!");if(!t.public)throw new Error("You haven't gone public!");if(t.shareSaleCooldown)throw new Error("Share sale on cooldown!");const a=t.calculateShareSale(n),r=a[0],i=a[1],o=a[2];return t.numShares-=n,t.issuedShares+=n,t.sharePrice=i,t.shareSalesUntilPriceUpdate=o,t.shareSaleCooldown=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SellSharesCooldown,e.gainMoney(r,"corporation"),r}function BuyBackShares(t,e,n){if(isNaN(n))throw new Error("Invalid value for number of shares");if(n<0)throw new Error("Invalid value for number of shares");if(n>t.issuedShares)throw new Error("You don't have that many shares to buy!");if(!t.public)throw new Error("You haven't gone public!");const a=1.1*t.sharePrice;if(e.moneye+_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.WarehouseUpgradeBaseCost*Math.pow(1.07,t.level+1+n),0)}function UpgradeWarehouse(t,e,n,a=1){const r=UpgradeWarehouseCost(n,a);t.funds=o)throw new Error(`You are already at the max products (${o}) for division: ${e.name}!`);const l=new _Product__WEBPACK_IMPORTED_MODULE_5__.a({name:a.replace(/[<>]/g,"").trim(),createCity:n,designCost:r,advCost:i});if(s[l.name]instanceof _Product__WEBPACK_IMPORTED_MODULE_5__.a)throw new Error("You already have a product with this name!");t.funds=t.funds-(r+i),s[l.name]=l}function Research(t,e){const n=_IndustryData__WEBPACK_IMPORTED_MODULE_1__.c[t.type];if(void 0===n)throw new Error(`No research tree for industry '${t.type}'`);if(!n.getAllNodes().includes(e))throw new Error(`No research named '${e}'`);const a=_ResearchMap__WEBPACK_IMPORTED_MODULE_10__.a[e];if(t.sciResearch.qty{var e;null!=o[(e=t).name]&&console.warn("Duplicate Company Position being defined: "+e.name),o[e.name]=new r.a(e)});for(const e of Object.keys(o)){const n=o[e];t[e]instanceof r.a?(n.favor=t[e].favor,isNaN(n.favor)&&(n.favor=0)):n.favor=0}}function l(t){o=JSON.parse(t,i.c)}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(30),o=n(149),s=n(121);function l(){return(l=Object.assign||function(t){for(var e=1;er.a.createElement(i.a,l({},t,{classes:{root:c().root,...t.classes}})),u=t=>r.a.createElement(o.a,l({},t,{classes:{root:c().small,...t.classes}}))},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(50),o=n(30),s=n(1),l=n(5),c=n(24),f=n(302);const u=({name:t,color:e,classes:n=Object(f.b)(),children:a,data:u})=>{let m="";return u&&(void 0!==u.content?m=u.content:void 0!==u.level&&void 0!==u.exp?m=`${Object(c.d)(u.level,0)} (${l.a.formatExp(u.exp)} exp)`:void 0!==u.level&&void 0===u.exp&&(m=""+Object(c.d)(u.level,0))),r.a.createElement(i.a,null,r.a.createElement(o.a,{classes:{root:n.cellNone}},r.a.createElement(s.a,{style:{color:e}},t)),r.a.createElement(o.a,{align:"right",classes:{root:n.cellNone}},m?r.a.createElement(s.a,{style:{color:e}},m):r.a.createElement(r.a.Fragment,null),a))}},,function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t.Long="L",t.Short="S"}(a||(a={}))},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t[t.Idle=0]="Idle",t[t.Company=1]="Company",t[t.Faction=2]="Faction",t[t.Crime=3]="Crime",t[t.Class=4]="Class",t[t.Gym=5]="Gym",t[t.Recovery=6]="Recovery",t[t.Synchro=7]="Synchro"}(a||(a={}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s}));var a=n(4),r=n(28);let i={[a.a.SlumSnakes]:{power:1,territory:1/7},[a.a.Tetrads]:{power:1,territory:1/7},[a.a.TheSyndicate]:{power:1,territory:1/7},[a.a.TheDarkArmy]:{power:1,territory:1/7},[a.a.SpeakersForTheDead]:{power:1,territory:1/7},[a.a.NiteSec]:{power:1,territory:1/7},[a.a.TheBlackHand]:{power:1,territory:1/7}};function o(){i={[a.a.SlumSnakes]:{power:1,territory:1/7},[a.a.Tetrads]:{power:1,territory:1/7},[a.a.TheSyndicate]:{power:1,territory:1/7},[a.a.TheDarkArmy]:{power:1,territory:1/7},[a.a.SpeakersForTheDead]:{power:1,territory:1/7},[a.a.NiteSec]:{power:1,territory:1/7},[a.a.TheBlackHand]:{power:1,territory:1/7}}}function s(t){i=JSON.parse(t,r.c)}},,function(t,e,n){"use strict";function a(t){return t.startsWith("/")?t.slice(1):t}function r(t){return t.endsWith("/")?t.slice(0,-1):t}function i(t){return null!=t.match(/^[.a-zA-Z0-9_-]+[.][a-zA-Z0-9]+(?:-\d+(?:\.\d*)?%-INC)?$/)}function o(t){return null!=t.match(/^(?:[-.%]|\w)*[-%a-zA-Z0-9_]$/)}function s(t){let e=t;if(0===e.length)return!1;if(1===e.length)return"/"===e;if(!e.startsWith("/"))return!1;e=e.slice(1),e=r(e);const n=e.split("/");for(const t of n)if("."!==t&&".."!==t&&!o(t))return!1;return!0}function l(t){if(null==t||"string"!=typeof t)return!1;const e=t;if(e.length<3)return!1;if(e.endsWith("/"))return!1;const n=e.lastIndexOf("/");if(-1===n)return i(e);const a=e.slice(n+1);return s(e.slice(0,n+1))&&i(a)}function c(t){let e=t;if(e=a(e),e=r(e),-1===e.lastIndexOf("/"))return"/";const n=e.split("/");return 0===n.length?"/":n[0]+"/"}function f(t){const e=t,n=e.lastIndexOf("/");return-1===n?"":e.slice(0,n+1)}function u(t,e,n){const a=h(t,n);if(null===a)return t;{const t=r(a),n=function(t){const e=t,n=e.lastIndexOf("/");if(-1===n)return e;return e.slice(n+1)}(e);return t+"/"+n}}function m(t){return!!l(t)&&(null!=t&&0!==t.length&&t.lastIndexOf("/")<=0)}function h(t,e){let n=t;if(n.startsWith("/")||null==e||(n=e+(e.endsWith("/")?"":"/")+n),!s(n))return null;n=a(n),n=r(n);const i=n.split("/"),o=[];for(const t of i)if("."!==t)if(".."===t){if(null==o.pop())return null}else o.push(t);return"/"+o.join("/")}function d(t,e){let n=t;if(n.startsWith("/")||null==e||(n=e+(e.endsWith("/")?"":"/")+n),!l(n))return null;n=a(n);const r=n.split("/"),i=[];for(const t of r)if("."!==t)if(".."===t){if(null==i.pop())return null}else i.push(t);return"/"+i.join("/")}function p(t,e){return t.startsWith("/")||(t="/"+t),e.startsWith("/")||(e="/"+e),t===e}function g(t,e){return t.endsWith(".ns")||t.endsWith(".js")||(t+=".js"),e.endsWith(".ns")||e.endsWith(".js")||(e+=".js"),p(t,e)}n.d(e,"k",(function(){return a})),n.d(e,"l",(function(){return r})),n.d(e,"i",(function(){return s})),n.d(e,"j",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"e",(function(){return f})),n.d(e,"f",(function(){return u})),n.d(e,"h",(function(){return m})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return g}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a=new(n(949).a)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(274),r=n(10),i=n(34);const o={Shoplift:new a.a("Shoplift",i.b.Shoplift,2e3,15e3,.05,.1,{dexterity_success_weight:1,agility_success_weight:1,dexterity_exp:2,agility_exp:2}),RobStore:new a.a("Rob Store",i.b.RobStore,6e4,4e5,.2,.5,{hacking_exp:30,dexterity_exp:45,agility_exp:45,hacking_success_weight:.5,dexterity_success_weight:2,agility_success_weight:1,intelligence_exp:7.5*r.a.IntelligenceCrimeBaseExpGain}),Mug:new a.a("Mug",i.b.Mug,4e3,36e3,.2,.25,{strength_exp:3,defense_exp:3,dexterity_exp:3,agility_exp:3,strength_success_weight:1.5,defense_success_weight:.5,dexterity_success_weight:1.5,agility_success_weight:.5}),Larceny:new a.a("Larceny",i.b.Larceny,9e4,8e5,1/3,1.5,{hacking_exp:45,dexterity_exp:60,agility_exp:60,hacking_success_weight:.5,dexterity_success_weight:1,agility_success_weight:1,intelligence_exp:15*r.a.IntelligenceCrimeBaseExpGain}),DealDrugs:new a.a("Deal Drugs",i.b.Drugs,1e4,12e4,1,.5,{dexterity_exp:5,agility_exp:5,charisma_exp:10,charisma_success_weight:3,dexterity_success_weight:2,agility_success_weight:1}),BondForgery:new a.a("Bond Forgery",i.b.BondForgery,3e5,45e5,.5,.1,{hacking_exp:100,dexterity_exp:150,charisma_exp:15,hacking_success_weight:.05,dexterity_success_weight:1.25,intelligence_exp:60*r.a.IntelligenceCrimeBaseExpGain}),TraffickArms:new a.a("Traffick Arms",i.b.TraffickArms,4e4,6e5,2,1,{strength_exp:20,defense_exp:20,dexterity_exp:20,agility_exp:20,charisma_exp:40,charisma_success_weight:1,strength_success_weight:1,defense_success_weight:1,dexterity_success_weight:1,agility_success_weight:1}),Homicide:new a.a("Homicide",i.b.Homicide,3e3,45e3,1,3,{strength_exp:2,defense_exp:2,dexterity_exp:2,agility_exp:2,strength_success_weight:2,defense_success_weight:2,dexterity_success_weight:.5,agility_success_weight:.5,kills:1}),GrandTheftAuto:new a.a("Grand Theft Auto",i.b.GrandTheftAuto,8e4,16e5,8,5,{strength_exp:20,defense_exp:20,dexterity_exp:20,agility_exp:80,charisma_exp:40,hacking_success_weight:1,strength_success_weight:1,dexterity_success_weight:4,agility_success_weight:2,charisma_success_weight:2,intelligence_exp:16*r.a.IntelligenceCrimeBaseExpGain}),Kidnap:new a.a("Kidnap",i.b.Kidnap,12e4,36e5,5,6,{strength_exp:80,defense_exp:80,dexterity_exp:80,agility_exp:80,charisma_exp:80,charisma_success_weight:1,strength_success_weight:1,dexterity_success_weight:1,agility_success_weight:1,intelligence_exp:26*r.a.IntelligenceCrimeBaseExpGain}),Assassination:new a.a("Assassination",i.b.Assassination,3e5,12e6,8,10,{strength_exp:300,defense_exp:300,dexterity_exp:300,agility_exp:300,strength_success_weight:1,dexterity_success_weight:2,agility_success_weight:1,intelligence_exp:65*r.a.IntelligenceCrimeBaseExpGain,kills:1}),Heist:new a.a("Heist",i.b.Heist,6e5,12e7,18,15,{hacking_exp:450,strength_exp:450,defense_exp:450,dexterity_exp:450,agility_exp:450,charisma_exp:450,hacking_success_weight:1,strength_success_weight:1,defense_success_weight:1,dexterity_success_weight:1,agility_success_weight:1,charisma_success_weight:1,intelligence_exp:130*r.a.IntelligenceCrimeBaseExpGain})}},function(t,e,n){"use strict";function a(t){return function(e){e.isTrusted&&t()}}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={Home:"home",FulcrumSecretTechnologies:"fulcrumassets",CyberSecServer:"CSEC",NiteSecServer:"avmnite-02h",TheBlackHandServer:"I.I.I.I",BitRunnersServer:"run4theh111z",TheDarkArmyServer:".",DaedalusServer:"The-Cave",WorldDaemon:"w0r1d_d43m0n",DarkWeb:"darkweb"}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return Ct})),n.d(e,"a",(function(){return Lt}));var a=n(0),r=n.n(a),i=n(119),o=n(112),s=n(348),l=n(9),c=n(187),f=n(44),u=n(1066),m=n(379),h=n(460),d=n(14),p=n(22),g=n(26),y=n(244),b=n(104),E=n(121),v=n(146),k=n(19),_=n(1),w=n(25),S=n(1085),x=n(1089),C=n(1113),L=n(1118),O=n(1144),M=n(1173),T=n(1192),A=n(1229),R=n(1242),N=n(1243),P=n(1244),I=n(1286),F=n(1295),D=n(1304),j=n(1329),B=n(412),G=n(639),W=n(1342),H=n(1343),U=n(1348),q=n(1349),$=n(413),K=n(1360),z=n(1368),V=n(638),Y=n(1369),J=n(1378),X=n(1381),Q=n(102),Z=n(302),tt=n(1388),et=n(198),nt=n(1389),at=n(99),rt=n(179),it=n(340),ot=n(408),st=n(595),lt=n(301),ct=n(417),ft=n(29),ut=n(418),mt=n(1391),ht=n(1394),dt=n(6),pt=n(1395),gt=n(1400),yt=n(1405),bt=n(1406),Et=n.n(bt),vt=n(1407),kt=n.n(vt),_t=n(463);const wt=location,St=Object(E.a)(t=>Object(v.a)({root:{"-ms-overflow-style":"none","scrollbar-width":"none",margin:t.spacing(0),flexGrow:1,display:"block",padding:"8px",minHeight:"100vh",boxSizing:"border-box"}})),xt=()=>{throw new Error("Router called before initialization")};let Ct={isInitialized:!1,page:xt,allowRouting:xt,toActiveScripts:xt,toAugmentations:xt,toBitVerse:xt,toBladeburner:xt,toStats:xt,toCity:xt,toCorporation:xt,toCreateProgram:xt,toDevMenu:xt,toFaction:xt,toFactions:xt,toGameOptions:xt,toGang:xt,toHacknetNodes:xt,toInfiltration:xt,toJob:xt,toMilestones:xt,toGrafting:xt,toScriptEditor:xt,toSleeves:xt,toStockMarket:xt,toTerminal:xt,toTravel:xt,toTutorial:xt,toWork:xt,toBladeburnerCinematic:xt,toLocation:xt,toStaneksGift:xt,toAchievements:xt,toThemeBrowser:xt,toImportSave:xt};function Lt({player:t,engine:e,terminal:n}){const E=St(),[{files:v,vim:bt},vt]=Object(a.useState)({files:{},vim:!1}),[xt,Lt]=Object(a.useState)(function(t){return ut.b?w.a.Recovery:t.isWorking?w.a.Work:w.a.Terminal}(t)),Ot=Object(a.useState)(0)[1],[Mt,Tt]=Object(a.useState)(!1),[At,Rt]=Object(a.useState)(t.currentWorkFactionName?g.a[t.currentWorkFactionName]:void 0);if(void 0===At&&xt===w.a.Faction)throw new Error("Trying to go to a page without the proper setup");const[Nt,Pt]=Object(a.useState)(!1),[It,Ft]=Object(a.useState)(!1),[Dt,jt]=Object(a.useState)(void 0);if(void 0===Dt&&(xt===w.a.Infiltration||xt===w.a.Location||xt===w.a.Job))throw new Error("Trying to go to a page without the proper setup");const[Bt,Gt]=Object(a.useState)(""),[Wt,Ht]=Object(a.useState)(0),[Ut,qt]=Object(a.useState)(dt.a.IsSidebarOpened),[$t,Kt]=Object(a.useState)(void 0),[zt,Vt]=Object(a.useState)(!1);if(void 0===$t&&xt===w.a.ImportSave)throw new Error("Trying to go to a page without the proper setup");const[Yt,Jt]=Object(a.useState)(!0);function Xt(){Ot(t=>t+1)}function Qt(){for(const t of Object(p.c)())t.runningScripts=[];o.c.saveGame(),setTimeout(()=>wt.reload(),2e3)}function Zt(){Object(d.a)("Soft Reset!"),Object(i.f)(!0),Ht(Wt+1),Ct.toTerminal()}Object(a.useEffect)(()=>m.a.subscribe(Xt),[]),Ct={isInitialized:!0,page:()=>xt,allowRouting:t=>Jt(t),toActiveScripts:()=>Lt(w.a.ActiveScripts),toAugmentations:()=>Lt(w.a.Augmentations),toBladeburner:()=>Lt(w.a.Bladeburner),toStats:()=>Lt(w.a.Stats),toCorporation:()=>Lt(w.a.Corporation),toCreateProgram:()=>Lt(w.a.CreateProgram),toDevMenu:()=>Lt(w.a.DevMenu),toFaction:(t,e=!1)=>{Tt(e),Lt(w.a.Faction),t&&Rt(t)},toFactions:()=>Lt(w.a.Factions),toGameOptions:()=>Lt(w.a.Options),toGang:()=>Lt(w.a.Gang),toHacknetNodes:()=>Lt(w.a.Hacknet),toMilestones:()=>Lt(w.a.Milestones),toGrafting:()=>Lt(w.a.Grafting),toScriptEditor:(t,e)=>{vt({files:t,vim:!(null==e||!e.vim)}),Lt(w.a.ScriptEditor)},toSleeves:()=>Lt(w.a.Sleeves),toStockMarket:()=>Lt(w.a.StockMarket),toTerminal:()=>Lt(w.a.Terminal),toTutorial:()=>Lt(w.a.Tutorial),toJob:()=>{jt(c.a[t.companyName]),Lt(w.a.Job)},toCity:()=>{Lt(w.a.City)},toTravel:()=>{t.gotoLocation(l.a.TravelAgency),Lt(w.a.Travel)},toBitVerse:(t,e)=>{Pt(t),Ft(e),Object(lt.b)(),Lt(w.a.BitVerse)},toInfiltration:t=>{jt(t),Lt(w.a.Infiltration)},toWork:()=>Lt(w.a.Work),toBladeburnerCinematic:()=>{Lt(w.a.BladeburnerCinematic),Gt(Bt)},toLocation:t=>{jt(t),Lt(w.a.Location)},toStaneksGift:()=>{Lt(w.a.StaneksGift)},toAchievements:()=>{Lt(w.a.Achievements)},toThemeBrowser:()=>{Lt(w.a.ThemeBrowser)},toImportSave:(t,e=!1)=>{Kt(t),Vt(e),Lt(w.a.ImportSave)}},Object(a.useEffect)(()=>{kt()(Ct).filter(t=>t.startsWith("to")).forEach(t=>{Ct[t]=Et()(Ct[t],(e,...n)=>{if(Yt)return e(...n);console.log(`Routing is currently disabled - Attempted router.${t}()`)})})}),Object(a.useEffect)(()=>{xt!==w.a.Terminal&&window.scrollTo(0,0)});let te=r.a.createElement(_.a,null,"Cannot load"),ee=!0,ne=!0,ae=!1;switch(xt){case w.a.Recovery:te=r.a.createElement(ut.c,{router:Ct,softReset:Zt}),ee=!1,ne=!1,ae=!0;break;case w.a.BitVerse:te=r.a.createElement(J.a,{flume:Nt,enter:ct.a,quick:It}),ee=!1,ne=!1;break;case w.a.Infiltration:te=r.a.createElement(A.a,{location:Dt}),ee=!1,ne=!1;break;case w.a.BladeburnerCinematic:te=r.a.createElement(tt.a,null),ee=!1,ne=!1;break;case w.a.Work:te=r.a.createElement(N.a,null),ee=!1;break;case w.a.Terminal:te=r.a.createElement(H.a,{terminal:n,router:Ct,player:t});break;case w.a.Sleeves:te=r.a.createElement(I.a,null);break;case w.a.StaneksGift:te=r.a.createElement(X.a,{staneksGift:Q.c});break;case w.a.Stats:te=r.a.createElement(z.a,null);break;case w.a.ScriptEditor:te=r.a.createElement(G.a,{files:v,hostname:t.getCurrentServer().hostname,player:t,router:Ct,vim:bt});break;case w.a.ActiveScripts:te=r.a.createElement(q.a,{workerScripts:et.a});break;case w.a.Hacknet:te=r.a.createElement(F.a,{player:t});break;case w.a.CreateProgram:te=r.a.createElement(B.a,null);break;case w.a.Factions:te=r.a.createElement($.a,{player:t,router:Ct});break;case w.a.Faction:te=r.a.createElement(K.a,{faction:At,augPage:Mt});break;case w.a.Milestones:te=r.a.createElement(W.a,{player:t});break;case w.a.Tutorial:te=r.a.createElement(U.a,{reactivateTutorial:()=>{Object(h.a)(),Ct.toTerminal(),Object(f.e)()}});break;case w.a.DevMenu:te=r.a.createElement(L.a,{player:t,engine:e,router:Ct});break;case w.a.Gang:te=r.a.createElement(M.a,null);break;case w.a.Corporation:te=r.a.createElement(T.a,null);break;case w.a.Bladeburner:te=r.a.createElement(O.a,null);break;case w.a.Grafting:te=r.a.createElement(R.a,null);break;case w.a.Travel:te=r.a.createElement(V.a,{p:t,router:Ct});break;case w.a.StockMarket:te=r.a.createElement(Y.a,{buyStockLong:y.a,buyStockShort:y.d,cancelOrder:b.c,eventEmitterForReset:b.e,initStockMarket:b.g,p:t,placeOrder:b.j,sellStockLong:y.c,sellStockShort:y.b,stockMarket:b.a});break;case w.a.City:te=r.a.createElement(j.a,null);break;case w.a.Job:case w.a.Location:te=r.a.createElement(D.a,{loc:Dt});break;case w.a.Options:te=r.a.createElement(P.a,{player:t,router:Ct,save:()=>o.c.saveGame(),export:()=>{Object(s.c)(t),o.c.exportGame()},forceKill:Qt,softReset:Zt});break;case w.a.Augmentations:te=r.a.createElement(C.a,{exportGameFn:()=>{Object(s.c)(t),o.c.exportGame()},installAugmentationsFn:()=>{Object(i.f)()}});break;case w.a.Achievements:te=r.a.createElement(mt.a,null);break;case w.a.ThemeBrowser:te=r.a.createElement(pt.a,{router:Ct});break;case w.a.ImportSave:te=r.a.createElement(gt.a,{importString:$t,automatic:zt,router:Ct}),ee=!1,ne=!1,ae=!0}return r.a.createElement(ft.a.Player.Provider,{value:t},r.a.createElement(ft.a.Router.Provider,{value:Ct},r.a.createElement(ht.a,{key:Wt,router:Ct,softReset:Zt},r.a.createElement(yt.a,{content:ae?te:null},r.a.createElement(at.c,null,r.a.createElement(S.a,{mode:f.a.isRunning?"tutorial":"overview"},f.a.isRunning?r.a.createElement(u.a,null):r.a.createElement(Z.a,{save:()=>o.c.saveGame(),killScripts:Qt})),ee?r.a.createElement(k.a,{display:"flex",flexDirection:"row",width:"100%"},r.a.createElement(x.a,{player:t,router:Ct,page:xt,opened:Ut,onToggled:t=>{qt(t),dt.a.IsSidebarOpened=t}}),r.a.createElement(k.a,{className:E.root},te)):r.a.createElement(k.a,{className:E.root},te),r.a.createElement(nt.a,null),ne&&r.a.createElement(r.a.Fragment,null,r.a.createElement(rt.d,null),r.a.createElement(it.b,null),r.a.createElement(ot.b,null),r.a.createElement(st.b,null),r.a.createElement(at.a,null)),r.a.createElement(_t.a,null))))))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(10),r=n(578),i=n(41),o=n(156),s=n(341),l=n(28);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class f extends r.a{constructor(t={hostname:"",ip:Object(s.a)()}){super(t),c(this,"cache",1),c(this,"cores",1),c(this,"hashCapacity",0),c(this,"hashRate",0),c(this,"level",1),c(this,"onlineTimeSeconds",0),c(this,"totalHashesGenerated",0),c(this,"purchasedByPlayer",!0),this.maxRam=1,this.updateHashCapacity()}calculateCacheUpgradeCost(t){return Object(o.a)(this.cache,t)}calculateCoreUpgradeCost(t,e){return Object(o.b)(this.cores,t,e)}calculateLevelUpgradeCost(t,e){return Object(o.d)(this.level,t,e)}calculateRamUpgradeCost(t,e){return Object(o.e)(this.maxRam,t,e)}process(t=1){const e=t*a.a.MilliPerCycle/1e3;this.onlineTimeSeconds+=e;const n=this.hashRate*e;return this.totalHashesGenerated+=n,n}upgradeCache(t){this.cache=Math.min(i.b.MaxCache,Math.round(this.cache+t)),this.updateHashCapacity()}upgradeCore(t,e){this.cores=Math.min(i.b.MaxCores,Math.round(this.cores+t)),this.updateHashRate(e),this.cpuCores=this.cores}upgradeLevel(t,e){this.level=Math.min(i.b.MaxLevel,Math.round(this.level+t)),this.updateHashRate(e)}upgradeRam(t,e){for(let e=0;e{var e;null!=i[(e=t).name]&&console.warn("Duplicate Company Position being defined: "+e.name),i[e.name]=new r.a(e)})},,,,function(t,e,n){"use strict";n.d(e,"d",(function(){return u})),n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(772),o=n(121),s=n(125),l=n(1770),c=n(45),f=n(179);let u;!function(t){t.SUCCESS="success",t.WARNING="warning",t.ERROR="error",t.INFO="info"}(u||(u={}));const m=Object(o.a)(()=>({snackbar:{zIndex:f.e+1e3+" !important","& .MuiAlert-icon":{alignSelf:"center"}}}));function h(t){const e=m();return r.a.createElement(i.a,{dense:!0,maxSnack:9,anchorOrigin:{horizontal:"right",vertical:"bottom"},autoHideDuration:2e3,classes:{containerRoot:e.snackbar}},t.children)}const d=new s.a;function p(){const{enqueueSnackbar:t,closeSnackbar:e}=Object(i.b)();return Object(a.useEffect)(()=>d.subscribe((n,a,i)=>{const o=t(r.a.createElement(l.a,{severity:a},n),{content:(t,e)=>r.a.createElement(c.a,{key:t},e),variant:a,autoHideDuration:i,onClick:()=>e(o)})})),r.a.createElement(r.a.Fragment,null)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(9);const r={};r[a.a.AevumECorp]="ECP",r[a.a.Sector12MegaCorp]="MGCP",r[a.a.Sector12BladeIndustries]="BLD",r[a.a.AevumClarkeIncorporated]="CLRK",r[a.a.VolhavenOmniTekIncorporated]="OMTK",r[a.a.Sector12FourSigma]="FSIG",r[a.a.ChongqingKuaiGongInternational]="KGI",r[a.a.AevumFulcrumTechnologies]="FLCM",r[a.a.IshimaStormTechnologies]="STM",r[a.a.NewTokyoDefComm]="DCOMM",r[a.a.VolhavenHeliosLabs]="HLS",r[a.a.NewTokyoVitaLife]="VITA",r[a.a.Sector12IcarusMicrosystems]="ICRS",r[a.a.Sector12UniversalEnergy]="UNV",r[a.a.AevumAeroCorp]="AERO",r[a.a.VolhavenOmniaCybersystems]="OMN",r[a.a.ChongqingSolarisSpaceSystems]="SLRS",r[a.a.NewTokyoGlobalPharmaceuticals]="GPH",r[a.a.IshimaNovaMedical]="NVMD",r[a.a.AevumWatchdogSecurity]="WDS",r[a.a.VolhavenLexoCorp]="LXO",r[a.a.AevumRhoConstruction]="RHOC",r[a.a.Sector12AlphaEnterprises]="APHE",r[a.a.VolhavenSysCoreSecurities]="SYSC",r[a.a.VolhavenCompuTek]="CTK",r[a.a.AevumNetLinkTechnologies]="NTLK",r[a.a.IshimaOmegaSoftware]="OMGA",r[a.a.Sector12FoodNStuff]="FNS",r[a.a.Sector12JoesGuns]="JGN",r["Sigma Cosmetics"]="SGC",r["Catalyst Ventures"]="CTYS",r["Microdyne Technologies"]="MDYN",r["Titan Laboratories"]="TITN"},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r}));const a=[".js",".script",".ns"];function r(t){return a.some(e=>t.endsWith(e))}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return l}));var a=n(28),r=n(770);let i=new r.a;function o(t){i=t?JSON.parse(t,a.c):new r.a}function s(t){const e=[];for(let n=0;n1?1:i<0?0:i}function o(t,e){null==t.baseDifficulty&&(t.baseDifficulty=t.hackDifficulty);let n=3;return n+=.3*t.baseDifficulty,n*e.hacking_exp_mult*a.a.HackExpGain}function s(t,e){const n=(100-t.hackDifficulty)/100*((e.hacking-(t.requiredHackingSkill-1))/e.hacking)*e.hacking_money_mult*a.a.ScriptHackMoney/240;return n<0?0:n>1?1:n}function l(t,e){let n=2.5*(t.requiredHackingSkill*t.hackDifficulty)+500;n/=e.hacking+50;return 5*n/(e.hacking_speed_mult*Object(r.a)(e.intelligence,1))}function c(t,e){return 3.2*l(t,e)}function f(t,e){return 4*l(t,e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return y})),n.d(e,"j",(function(){return b})),n.d(e,"c",(function(){return E})),n.d(e,"i",(function(){return v})),n.d(e,"d",(function(){return k})),n.d(e,"f",(function(){return _})),n.d(e,"h",(function(){return w})),n.d(e,"k",(function(){return x})),n.d(e,"g",(function(){return C})),n.d(e,"e",(function(){return L}));var a=n(769),r=n(332),i=n(153),o=n(665),s=n(1031),l=n(117),c=n(76),f=n(100),u=n(10),m=n(125),h=n(5),d=n(14),p=n(28);let g={lastUpdate:0,Orders:{},storedCycles:0,ticksUntilCycle:0};const y={};function b(t,e,n,o,s,l=null){if(!(t instanceof i.a))return l?l.log("stock.placeOrder",()=>`Invalid stock: '${t}'`):Object(d.a)("ERROR: Invalid stock passed to placeOrder() function"),!1;if("number"!=typeof e||"number"!=typeof n)return l?l.log("stock.placeOrder",()=>`Invalid arguments: shares='${e}' price='${n}'`):Object(d.a)("ERROR: Invalid numeric value provided for either 'shares' or 'price' argument"),!1;const c=new a.a(t.symbol,e,n,o,s);if(null==g.Orders){const t={};for(const e of Object.keys(g)){const n=g[e];n instanceof i.a&&(t[n.symbol]=[])}g.Orders=t}g.Orders[t.symbol].push(c);const f={stockMarket:g,symbolToStockMap:y};return Object(r.a)(t,c.type,c.pos,f),!0}function E(t,e=null){if(null==g.Orders)return!1;if(t.order&&t.order instanceof a.a){const e=t.order,n=g.Orders[e.stockSymbol];for(let t=0;t=e.cap&&(o=.1,e.b=!1),isNaN(o)&&(o=.5);const s=Math.random(),f={stockMarket:g,symbolToStockMap:y};st);c.a.factions.sort((t,n)=>e.indexOf(t)-e.indexOf(n));const n=t.getInfo();for(const t of n.enemies)l.a[t]instanceof s.a&&(l.a[t].isBanned=!0);for(let e=0;ec.a.hasAugmentation(t))}function E(t,e,n=!1){const a=b(t),o=t.getCost(c.a);if(a)if(0!==o.moneyCost&&c.a.money=o.moneyCost){const e=new r.a(t.name);if(t.name==i.a.NeuroFluxGovernor&&(e.level=t.getLevel(c.a)),c.a.queuedAugmentations.push(e),c.a.loseMoney(o.moneyCost,"augmentations"),n)return"You purchased "+t.name;f.a.SuppressBuyAugmentationConfirmation||Object(m.a)("You purchased "+t.name+". Its enhancements will not take effect until they are installed. To install your augmentations, go to the 'Augmentations' tab on the left-hand navigation menu. Purchasing additional augmentations will now be more expensive.")}else Object(m.a)("Hmm, something went wrong when trying to purchase an Augmentation. Please report this to the game developer with an explanation of how to reproduce this.");else{const e=`You must first purchase or install ${t.prereqs.filter(t=>!c.a.hasAugmentation(t)).join(",")} before you can purchase this one.`;if(n)return e;Object(m.a)(e)}return""}function v(t){for(const e of Object.keys(l.a)){if(e===c.a.currentWorkFactionName)continue;if(!l.a.hasOwnProperty(e))continue;const n=l.a[e];if(!n.isMember)continue;if(!n.getInfo().offersWork())continue;if(c.a.getGangName()===e)continue;const a=Math.min(.1,n.favor/1e3+.01),r=Object(u.c)(c.a,n),i=Object(u.b)(c.a,n),s=Object(u.a)(c.a,n),f=Math.max(r*a,i*a,s*a,1/120);n.playerReputation+=f*t*c.a.faction_rep_mult*o.a.FactionPassiveRepGain}}const k=(t,e)=>{if(t.hasGangWith(e.name)){let n=Object.values(a.a);n=n.filter(t=>!t.isSpecial&&t.name!==i.a.CongruityImplant),2===t.bitNodeN&&n.push(a.a[i.a.TheRedPill]);const r=Object(p.b)(`BN${t.bitNodeN}.${t.sourceFileLvl(t.bitNodeN)}`),s=t=>t.factions.length>1||(!!e.augmentations.includes(t.name)||r()>=1-o.a.GangUniqueAugs);return n=n.filter(s),n.map(t=>t.name)}return e.augmentations.slice()}},,,function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),function(t){t.Bypass="Bypass",t.PrototypeTampering="PrototypeTampering",t.Unclickable="Unclickable",t.UndocumentedFunctionCall="UndocumentedFunctionCall",t.TimeCompression="TimeCompression",t.RealityAlteration="RealityAlteration",t.N00dles="N00dles",t.YoureNotMeantToAccessThis="YoureNotMeantToAccessThis",t.TrueRecursion="TrueRecursion",t.INeedARainbow="INeedARainbow",t.EditSaveFile="EditSaveFile"}(a||(a={}));const r={Bypass:"by circumventing the ram cost of document.",EditSaveFile:"by editing your save file.",PrototypeTampering:"by tampering with Numbers prototype.",TimeCompression:"by compressing time.",Unclickable:"by clicking the unclickable.",UndocumentedFunctionCall:"by looking beyond the documentation.",RealityAlteration:"by altering reality to suit your whims.",N00dles:"by harnessing the power of the n00dles.",YoureNotMeantToAccessThis:"by accessing the dev menu.",TrueRecursion:"by truly recursing.",INeedARainbow:"by using the power of the rainbow."};function i(t){return r[t]}function o(t){return t=t.filter(t=>Object.keys(a).includes(t)),[...new Set(t)]}},function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return c}));var a=n(148),r=n(22),i=n(181);function o(t,e){return e.delayReject&&e.delayReject(),new Promise((function(n,a){e.delay=window.setTimeout(()=>{e.delay=null,e.delayReject=void 0,e.infiniteLoopSafetyCounter=0,e.env.stopFlag?a(new i.a(e)):n()},t),e.delayReject=a}))}function s(t,e){const n=Object(r.d)(t.hostname);if(null==n)throw new Error("WorkerScript constructed with invalid server ip: "+t.hostname);for(const n of t.scriptRef.dependencies){var a,i;e=null!==(a=null===(i=e)||void 0===i?void 0:i.replace(new RegExp(n.url,"g"),n.filename))&&void 0!==a?a:e}return"|DELIMITER|"+n.hostname+"|DELIMITER|"+t.name+"|DELIMITER|"+e}function l(t,e,n){const a=t.scriptRef.threads;if(!n)return isNaN(a)||a<1?1:a;const r=0|n;if(isNaN(n)||r<1)throw s(t,`Invalid thread count passed to ${e}: ${n}. Threads must be a positive number.`);if(r>a)throw s(t,`Too many threads requested by ${e}. Requested: ${n}. Has: ${a}.`);return r}function c(t){if(!Object(a.a)(t))return!1;return 4==t.split("|DELIMITER|").length}},,function(t,e,n){"use strict";n.d(e,"c",(function(){return I})),n.d(e,"b",(function(){return A})),n.d(e,"a",(function(){return P}));var a=n(157),r=n(67),i=n(10),o=n(26),s=n(81),l=n(2),c=n(22),f=n(6),u=n(104),m=n(102),h=n(99),d=n(348),p=n(14),g=n(28),y=n(343),b=n(1063),E=n(12),v=n(342),k=n(9),_=n(594),w=n(299),S=n(123),x=n(4),C=n(186),L=n(135),O=n(89);function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class T{constructor(){M(this,"PlayerSave",""),M(this,"AllServersSave",""),M(this,"CompaniesSave",""),M(this,"FactionsSave",""),M(this,"AliasesSave",""),M(this,"GlobalAliasesSave",""),M(this,"StockMarketSave",""),M(this,"SettingsSave",""),M(this,"VersionSave",""),M(this,"AllGangsSave",""),M(this,"LastExportBonus",""),M(this,"StaneksGiftSave","")}getSaveString(t=!1){this.PlayerSave=JSON.stringify(l.a),this.AllServersSave=Object(c.j)(t),this.CompaniesSave=JSON.stringify(r.a),this.FactionsSave=JSON.stringify(o.a),this.AliasesSave=JSON.stringify(a.a),this.GlobalAliasesSave=JSON.stringify(a.b),this.StockMarketSave=JSON.stringify(u.a),this.SettingsSave=JSON.stringify(f.a),this.VersionSave=JSON.stringify(i.a.VersionNumber),this.LastExportBonus=JSON.stringify(d.a),this.StaneksGiftSave=JSON.stringify(m.c),l.a.inGang()&&(this.AllGangsSave=JSON.stringify(s.a));return btoa(unescape(encodeURIComponent(JSON.stringify(this))))}saveGame(t=!0){const e=(new Date).getTime();l.a.lastSave=e;const n=this.getSaveString(f.a.ExcludeRunningScriptsFromSave);return new Promise((a,r)=>{Object(y.c)(n).then(()=>{const r={playerIdentifier:l.a.identifier,fileName:this.getSaveFileName(),save:n,savedOn:e};return Object(w.d)(r),t&&h.b.emit("Game Saved!",h.d.INFO,2e3),a()}).catch(t=>(console.error(t),r()))})}getSaveFileName(t=!1){const e=Math.round(Date.now()/1e3),n=l.a.bitNodeN;let a=`bitburnerSave_${e}_BN${n}x${l.a.sourceFileLvl(n)+1}.json`;return t&&(a="RECOVERY"+a),a}exportGame(){const t=this.getSaveString(f.a.ExcludeRunningScriptsFromSave);P(this.getSaveFileName(),t)}importGame(t,e=!0){if(!t||""===t)throw new Error("Invalid import string");return Object(y.c)(t).then(()=>(e&&setTimeout(()=>location.reload(),1e3),Promise.resolve()))}getImportStringFromFile(t){if(null===t)return Promise.reject(new Error("No file selected"));const e=t[0];if(!e)return Promise.reject(new Error("Invalid file selected"));const n=new FileReader,a=new Promise((t,e)=>{n.onload=function(n){const a=n.target;if(null===a)return e(new Error("Error importing file"));const r=a.result;if("string"!=typeof r)return e(new Error("FileReader event was not type string"));t(r)}});return n.readAsText(e),a}async getImportDataFromString(t){var e,n,a,r,i,o,s,c;if(!t||""===t)throw new Error("Invalid import string");let f,u;try{f=window.atob(t),f=f.trim()}catch(t){console.error(t)}if(!f||""===f)return Promise.reject(new Error("Save game had not content or was not base64 encoded"));try{u=JSON.parse(f)}catch(t){console.log(t)}if(!u||"BitburnerSaveObject"!==u.ctor||!u.data)return Promise.reject(new Error("Save game did not seem valid"));const m={base64:t,parsed:u},h=_.a.fromJSON(JSON.parse(u.data.PlayerSave)),d={identifier:h.identifier,lastSave:h.lastSave,totalPlaytime:h.totalPlaytime,money:h.money,hacking:h.hacking,augmentations:null!==(e=null===(n=h.augmentations)||void 0===n?void 0:n.reduce((t,e)=>t+e.level,0))&&void 0!==e?e:0,factions:null!==(a=null===(r=h.factions)||void 0===r?void 0:r.length)&&void 0!==a?a:0,achievements:null!==(i=null===(o=h.achievements)||void 0===o?void 0:o.length)&&void 0!==i?i:0,bitNode:h.bitNodeN,bitNodeLevel:h.sourceFileLvl(l.a.bitNodeN)+1,sourceFiles:null!==(s=null===(c=h.sourceFiles)||void 0===c?void 0:c.reduce((t,e)=>t+e.lvl,0))&&void 0!==s?s:0};return m.playerData=d,Promise.resolve(m)}toJSON(){return Object(g.b)("BitburnerSaveObject",this)}static fromJSON(t){return Object(g.a)(T,t.data)}}function A(t){if(-1!==navigator.userAgent.indexOf("wv")&&-1!==navigator.userAgent.indexOf("Chrome/")&&setInterval(()=>{Object(p.a)("SCAM ALERT. This app is not official and you should uninstall it.")},1e3),!t)return!1;t=decodeURIComponent(escape(atob(t)));const e=JSON.parse(t,g.c);if(Object(l.b)(e.PlayerSave),Object(c.h)(e.AllServersSave),Object(r.c)(e.CompaniesSave),Object(o.d)(e.FactionsSave),e.hasOwnProperty("StaneksGiftSave")?Object(m.b)(e.StaneksGiftSave):(console.warn("Could not load Staneks Gift from save"),Object(m.b)("")),e.hasOwnProperty("AliasesSave"))try{Object(a.c)(e.AliasesSave)}catch(t){console.warn("Could not load Aliases from save"),Object(a.c)("")}else console.warn("Save file did not contain an Aliases property"),Object(a.c)("");if(e.hasOwnProperty("GlobalAliasesSave"))try{Object(a.d)(e.GlobalAliasesSave)}catch(t){console.warn("Could not load GlobalAliases from save"),Object(a.d)("")}else console.warn("Save file did not contain a GlobalAliases property"),Object(a.d)("");if(e.hasOwnProperty("StockMarketSave"))try{Object(u.i)(e.StockMarketSave)}catch(t){Object(u.i)("")}else Object(u.i)("");if(e.hasOwnProperty("SettingsSave"))try{f.a.load(e.SettingsSave)}catch(t){console.error("ERROR: Failed to parse Settings. Re-initing default values"),f.a.init()}else f.a.init();if(e.hasOwnProperty("LastExportBonus"))try{d.d(JSON.parse(e.LastExportBonus))}catch(t){d.d((new Date).getTime()),console.error("ERROR: Failed to parse last export bonus Settings "+t)}if(l.a.inGang()&&e.hasOwnProperty("AllGangsSave"))try{Object(s.b)(e.AllGangsSave)}catch(t){console.error("ERROR: Failed to parse AllGangsSave: "+t)}if(e.hasOwnProperty("VersionSave"))try{const t=JSON.parse(e.VersionSave,g.c);!function(t){const e=l.a;if("string"==typeof t){if(t<="0.41.2"){null!=e.companyPosition&&"string"!=typeof e.companyPosition&&(e.companyPosition=e.companyPosition.data.positionName,null==e.companyPosition&&(e.companyPosition=""));for(const t of Object.keys(r.a)){const e=r.a[t];if(0==e.name&&null!=e.companyName&&(e.name=e.companyName),e.companyPositions instanceof Array){const t={};for(let n=0;nt.name===E.a.NeuroFluxGovernor);if(t)t.level+=10;else{const t=new v.a(E.a.NeuroFluxGovernor);t.level=10,l.a.augmentations.push(t)}l.a.reapplyAllAugmentations(!0),l.a.reapplyAllSourceFiles()}if(t<3&&(e.money=parseFloat(e.money),e.corporation)){e.corporation.funds=parseFloat(e.corporation.funds),e.corporation.revenue=parseFloat(e.corporation.revenue),e.corporation.expenses=parseFloat(e.corporation.expenses);for(let t=0;t0)for(const t of e.sleeves)if(t.augmentations&&0!==t.augmentations.length)for(const e of t.augmentations)"Graphene BranchiBlades Upgrade"===e.name&&(e.name="Graphene BrachiBlades Upgrade");if(t<12&&void 0!==e.resleeves&&delete e.resleeves,t<15&&(f.a.EditorTheme={...S.a}),t<16){o.a[x.a.ShadowsOfAnarchy]=new C.a(x.a.ShadowsOfAnarchy);for(const t of Object(c.c)())for(const e of t.contracts)"HammingCodes: Integer to encoded Binary"==e.type&&(e.type="HammingCodes: Integer to Encoded Binary")}if(t<17){let t=[...l.a.augmentations];t=t.filter(t=>t.name===E.a.NeuroFluxGovernor);const e=new v.a(E.a.NeuroFluxGovernor);e.level=0;for(const n of t)e.level+=n.level;l.a.augmentations=[...l.a.augmentations.filter(t=>t.name!==E.a.NeuroFluxGovernor),e],l.a.reapplyAllAugmentations(!0),l.a.reapplyAllSourceFiles()}if(t<18){if(!Object(c.d)(O.a.DarkWeb)){const t=Object(L.g)({ip:Object(c.e)(),hostname:O.a.DarkWeb,organizationName:"",isConnectedTo:!1,adminRights:!1,purchasedByPlayer:!1,maxRam:1});Object(c.a)(t)}}}}(t),window.location.href.toLowerCase().includes("bitburner-beta")?Object(p.a)("You are playing on the beta environment! This branch of the game features the latest developments in the game. This version may be unstable.
Please report any bugs/issues through the github repository (https://github.com/danielyxie/bitburner/issues) or the Bitburner subreddit (reddit.com/r/bitburner).

"+i.a.LatestUpdate,R):t!==i.a.VersionNumber&&N()}catch(t){N()}else N();return!0}const R={"& h1, & h2, & h3, & h4, & p, & a, & ul":{margin:0,color:f.a.theme.primary,whiteSpace:"initial"},"& ul":{paddingLeft:"1.5em",lineHeight:1.5}};function N(){setTimeout(()=>Object(p.a)("New update!
Please report any bugs/issues through the github repository or the Bitburner subreddit (reddit.com/r/bitburner).

"+i.a.LatestUpdate,R),1e3)}function P(t,e){const n=new Blob([e],{type:"text/plain"}),a=window.navigator;if(a.msSaveOrOpenBlob)a.msSaveOrOpenBlob(n,t);else{const e=document.createElement("a"),a=URL.createObjectURL(n);e.href=a,e.download=t,document.body.appendChild(e),e.click(),setTimeout((function(){document.body.removeChild(e),window.URL.revokeObjectURL(a)}),0)}}g.c.constructors.BitburnerSaveObject=T;const I=new T},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(5),o=n(20);function s({money:t}){return r.a.createElement(o.a,{money:i.a.formatMoney(t)+" / sec"})}},function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return f}));var a=n(969),r=n(28),i=n(579);class o{constructor(t,e,n,a,r,i){this.name=t,this.desc=e,this.generate=n,this.solver=a,this.difficulty=r,this.numTries=i}}const s={};for(const t of a.a)s[t.name]=new o(t.name,t.desc,t.gen,t.solver,t.difficulty,t.numTries);let l,c;!function(t){t[t.FactionReputation=0]="FactionReputation",t[t.FactionReputationAll=1]="FactionReputationAll",t[t.CompanyReputation=2]="CompanyReputation",t[t.Money=3]="Money"}(l||(l={})),function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure",t[t.Cancelled=2]="Cancelled"}(c||(c={}));class f{constructor(t="",e="Find Largest Prime Factor",n=null){var a,r,i;if(i=0,(r="tries")in(a=this)?Object.defineProperty(a,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[r]=i,this.fn=t,this.fn.endsWith(".cct")||(this.fn+=".cct"),null==s[e])throw new Error(`Error: invalid contract type: ${e} please contact developer`);this.type=e,this.data=s[e].generate(),this.reward=n}getData(){return this.data}getDescription(){return s[this.type].desc(this.data)}getDifficulty(){return s[this.type].difficulty}getMaxNumTries(){return s[this.type].numTries}getType(){return s[this.type].name}isSolution(t){return s[this.type].solver(this.data,t)}async prompt(){return new Promise(t=>{const e={c:this,onClose:()=>{t(c.Cancelled)},onAttempt:e=>{this.isSolution(e)?t(c.Success):t(c.Failure)}};i.a.emit(e)})}toJSON(){return Object(r.b)("CodingContract",this)}static fromJSON(t){return Object(r.a)(f,t.data)}}r.c.constructors.CodingContract=f},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t.LimitBuy="Limit Buy Order",t.LimitSell="Limit Sell Order",t.StopBuy="Stop Buy Order",t.StopSell="Stop Sell Order"}(a||(a={}))},,function(t,e,n){"use strict";n.d(e,"c",(function(){return y})),n.d(e,"d",(function(){return b})),n.d(e,"g",(function(){return w})),n.d(e,"f",(function(){return k})),n.d(e,"e",(function(){return g})),n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return _}));var a=n(35),r=n(79),i=n(342),o=n(12),s=n(10),l=n(26),c=n(2),f=n(460),u=n(14),m=n(1410),h=n(4),d=n(352),p=n(91);function g(){!function(){for(const t of Object.keys(l.a))l.a.hasOwnProperty(t)&&(l.a[t].augmentations=[])}(),Object(m.a)(r.a),[Object(d.d)(),Object(d.f)(),...Object(d.c)(),...Object(d.e)(),...Object(l.b)(h.a.Bladeburners)?Object(d.a)():[],...Object(l.b)(h.a.ChurchOfTheMachineGod)?Object(d.b)():[]].map(E),c.a.reapplyAllAugmentations()}function y(){return s.a.MultipleAugMultiplier*[1,.96,.94,.93][c.a.sourceFileLvl(11)]}function b(){return Math.pow(y(),c.a.queuedAugmentations.length)}function E(t){t.addToFactions(t.factions);const e=t.name;_(e)&&delete r.a[e],function(t){const e=t.name;r.a[e]=t}(t)}function v(t,e=!1){const n=r.a[t.name];for(const t of Object.keys(n.mults)){const e=c.a.getMult(t)*n.mults[t];c.a.setMult(t,e)}t.name!==o.a.CongruityImplant||e||(c.a.entropy=0,c.a.applyEntropy(c.a.entropy));const a=c.a.augmentations.find(t=>t.name===o.a.NeuroFluxGovernor);if(t.name!==o.a.NeuroFluxGovernor||e||!a){if(!e){const e=new i.a(t.name);c.a.augmentations.push(e)}}else a.level=t.level}function k(t){if(0==c.a.queuedAugmentations.length&&!t)return Object(u.a)("You have not purchased any Augmentations to install!"),!1;let e="",n=-1;for(let t=c.a.queuedAugmentations.length-1;t>=0;t--)if(c.a.queuedAugmentations[t].name===o.a.NeuroFluxGovernor){n=t;break}for(let t=0;t"}return c.a.queuedAugmentations=[],t||Object(u.a)("You slowly drift to sleep as scientists put you under in order to install the following Augmentations:
"+e+"
You wake up in your home...you feel different..."),Object(f.a)(),p.b.toTerminal(),!0}function _(t){return r.a.hasOwnProperty(t)}function w(t){return(t instanceof a.a?t.name:t)===o.a.NeuroFluxGovernor}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return c}));var a=n(62),r=n(215);const i=[];class o{constructor(t,e,n,a,r){this.id=t,this.shape=e,this.type=n,this.power=a,this.limit=r}fullAt(t,e,n){if(e<0)return!1;if(e>=this.height(n))return!1;if(t<0)return!1;if(t>=this.width(n))return!1;let[a,r,i,o]=[0,0,1,1];1===n?[a,r,i,o]=[this.width(n)-1,0,-1,1]:2===n?[a,r,i,o]=[this.width(n)-1,this.height(n)-1,-1,-1]:3===n&&([a,r,i,o]=[0,this.height(n)-1,1,-1]);let[s,l]=[a+i*t,r+o*e];return n%2==1&&([s,l]=[l,s]),this.shape[l][s]}width(t){return t%2==0?this.shape[0].length:this.shape.length}height(t){return t%2==0?this.shape.length:this.shape[0].length}neighboors(t){const e=[],n=(n,a)=>{this.fullAt(n,a,t)||e.some(t=>t[0]===n&&t[1]===a)||e.push([n,a])};for(let e=0;ee[0]===t[0]&&e[1]===t[1])||a.push(t);return a}copy(){return Object.assign({},this)}}function s(t){for(const e of i)if(e.id===t)return e;return null}!function(){const t=!1,e=!0;i.push(new o(0,r.a.S,a.b.Hacking,1,1)),i.push(new o(1,r.a.Z,a.b.Hacking,1,1)),i.push(new o(5,r.a.T,a.b.HackingSpeed,1.3,1)),i.push(new o(6,r.a.I,a.b.HackingMoney,2,1)),i.push(new o(7,r.a.J,a.b.HackingGrow,.5,1)),i.push(new o(10,r.a.T,a.b.Strength,2,1)),i.push(new o(12,r.a.L,a.b.Defense,2,1)),i.push(new o(14,r.a.L,a.b.Dexterity,2,1)),i.push(new o(16,r.a.S,a.b.Agility,2,1)),i.push(new o(18,r.a.S,a.b.Charisma,3,1)),i.push(new o(20,r.a.I,a.b.HacknetMoney,1,1)),i.push(new o(21,r.a.O,a.b.HacknetCost,2,1)),i.push(new o(25,r.a.J,a.b.Rep,.5,1)),i.push(new o(27,r.a.J,a.b.WorkMoney,10,1)),i.push(new o(28,r.a.L,a.b.Crime,2,1)),i.push(new o(30,r.a.S,a.b.Bladeburner,.4,1)),i.push(new o(100,[[t,e,e],[e,e,t],[t,e,t]],a.b.Booster,1.1,99)),i.push(new o(101,[[e,e,e,e],[e,t,t,t]],a.b.Booster,1.1,99)),i.push(new o(102,[[t,e,e,e],[e,e,t,t]],a.b.Booster,1.1,99)),i.push(new o(103,[[e,e,e,t],[t,t,e,e]],a.b.Booster,1.1,99)),i.push(new o(104,[[t,e,e],[t,e,t],[e,e,t]],a.b.Booster,1.1,99)),i.push(new o(105,[[t,t,e],[t,e,e],[e,e,t]],a.b.Booster,1.1,99)),i.push(new o(106,[[e,t,t],[e,e,e],[e,t,t]],a.b.Booster,1.1,99)),i.push(new o(107,[[t,e,t],[e,e,e],[t,e,t]],a.b.Booster,1.1,99))}();const l=new o(-2,[],a.b.None,0,1/0),c=new o(-2,[],a.b.Delete,0,1/0)},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s}));const a={base:"vs-dark",inherit:!0,common:{accent:"B5CEA8",bg:"1E1E1E",fg:"D4D4D4"},syntax:{tag:"569CD6",entity:"569CD6",string:"CE9178",regexp:"646695",markup:"569CD6",keyword:"569CD6",comment:"6A9955",constant:"569CD6",error:"F44747"},ui:{line:"1E1E1E",panel:{bg:"252526",selected:"252526",border:"1E1E1E"},selection:{bg:"ADD6FF26"}}},r=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,i=t=>{for(const[e,n]of Object.entries(t)){switch(e){case"base":["vs-dark","vs"].includes(t.base)||(t.base="vs-dark");continue;case"inherit":"boolean"!=typeof t.inherit&&(t.inherit=!0);continue}const a=t=>{for(const[e,n]of Object.entries(t))"object"==typeof n?a(n):n.match(r)||(t[e]="FF0000")};a(n)}};function o(t){const e=[{token:"",background:t.ui.line,foreground:t.common.fg},{token:"identifier",foreground:t.common.accent},{token:"keyword",foreground:t.syntax.keyword},{token:"string",foreground:t.syntax.string},{token:"string.escape",foreground:t.syntax.regexp},{token:"comment",foreground:t.syntax.comment},{token:"constant",foreground:t.syntax.constant},{token:"entity",foreground:t.syntax.entity},{token:"type",foreground:t.syntax.tag},{token:"tag",foreground:t.syntax.tag},{token:"regexp",foreground:t.syntax.regexp},{token:"attribute",foreground:t.syntax.tag},{token:"constructor",foreground:t.syntax.markup},{token:"invalid",foreground:t.syntax.error},{token:"number",foreground:t.common.accent},{token:"delimiter",foreground:t.common.fg},{token:"ns",foreground:t.syntax.tag},{token:"netscriptfunction",foreground:t.syntax.markup},{token:"otherkeywords",foreground:t.syntax.keyword},{token:"otherkeyvars",foreground:t.common.accent},{token:"this",foreground:t.syntax.tag}],n=Object.fromEntries([["editor.background",t.common.bg],["editor.foreground",t.common.fg],["editor.lineHighlightBackground",t.ui.line],["editor.selectionBackground",t.ui.selection.bg],["editorSuggestWidget.background",t.ui.panel.bg],["editorSuggestWidget.border",t.ui.panel.border],["editorSuggestWidget.selectedBackground",t.ui.panel.selected],["editorHoverWidget.background",t.ui.panel.bg],["editorHoverWidget.border",t.ui.panel.border],["editorWidget.background",t.ui.panel.bg],["editorWidget.border",t.ui.panel.border],["input.background",t.ui.panel.bg],["input.border",t.ui.panel.border]].map(([t,e])=>[t,"#"+e]));return{base:t.base,inherit:t.inherit,rules:e,colors:n}}async function s(t){t.editor.defineTheme("monokai",{base:"vs-dark",inherit:!0,rules:[{background:"272822",token:""},{foreground:"75715e",token:"comment"},{foreground:"e6db74",token:"string"},{token:"number",foreground:"ae81ff"},{token:"otherkeyvars",foreground:"ae81ff"},{foreground:"ae81ff",token:"function"},{foreground:"f92672",token:"keyword"},{token:"storage.type.function.js",foreground:"ae81ff"},{token:"ns",foreground:"97d92b"},{token:"netscriptfunction",foreground:"53d3e4"},{token:"otherkeywords",foreground:"53d3e4"},{token:"this",foreground:"fd971f"}],colors:{"editor.foreground":"#F8F8F2","editor.background":"#272822","editor.selectionBackground":"#49483E","editor.lineHighlightBackground":"#3E3D32","editorCursor.foreground":"#F8F8F0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}}),t.editor.defineTheme("solarized-dark",{base:"vs-dark",inherit:!0,rules:[{background:"002b36",token:""},{foreground:"586e75",token:"comment"},{foreground:"00afaf",token:"string"},{token:"number",foreground:"00afaf"},{token:"otherkeyvars",foreground:"268bd2"},{foreground:"268bd2",token:"function"},{foreground:"859900",token:"keyword"},{token:"storage.type.function.js",foreground:"cb4b16"},{token:"ns",foreground:"cb4b16"},{token:"netscriptfunction",foreground:"268bd2"},{token:"otherkeywords",foreground:"268bd2"},{token:"type.identifier.js",foreground:"b58900"},{token:"delimiter.square.js",foreground:"0087ff"},{token:"delimiter.bracket.js",foreground:"0087ff"},{token:"this",foreground:"cb4b16"}],colors:{"editor.foreground":"#839496","editor.background":"#002b36","editor.selectionBackground":"#073642","editor.lineHighlightBackground":"#073642","editorCursor.foreground":"#819090","editorWhitespace.foreground":"#073642","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}}),t.editor.defineTheme("solarized-light",{base:"vs",inherit:!0,rules:[{foreground:"657b83",background:"fdf6e3",token:""},{foreground:"586e75",token:"comment"},{foreground:"2aa198",token:"string"},{token:"number",foreground:"2aa198"},{token:"otherkeyvars",foreground:"268bd2"},{foreground:"268bd2",token:"function"},{foreground:"859900",token:"keyword"},{token:"storage.type.function.js",foreground:"bc4b16"},{token:"ns",foreground:"cb4b16"},{token:"netscriptfunction",foreground:"268bd2"},{token:"otherkeywords",foreground:"268bd2"},{token:"type.identifier.js",foreground:"b58900"},{token:"delimiter.square.js",foreground:"0087ff"},{token:"delimiter.bracket.js",foreground:"0087ff"},{token:"this",foreground:"cb4b16"}],colors:{"editor.foreground":"#657b83","editor.background":"#fdf6e3","editor.selectionBackground":"#eee8d5","editor.lineHighlightBackground":"#eee8d5","editorCursor.foreground":"#657b83","editorWhitespace.foreground":"#eee8d5","editorIndentGuide.activeBackground":"#eee8d5","editor.selectionHighlightBorder":"#073642"}}),t.editor.defineTheme("dracula",{base:"vs-dark",inherit:!0,rules:[{background:"282A36",foreground:"F8F8F2",token:""},{foreground:"6272A4",token:"comment"},{foreground:"F1FA8C",token:"string"},{token:"number",foreground:"BD93F9"},{token:"otherkeyvars",foreground:"BD93F9"},{foreground:"FF79C6",token:"function"},{foreground:"FF79C6",token:"keyword"},{token:"storage.type.function.js",foreground:"FF79C6"},{token:"ns",foreground:"FFB86C",fontStyle:"italic"},{token:"netscriptfunction",foreground:"FF79C6"},{token:"otherkeywords",foreground:"FF68A7"},{token:"type.identifier.js",foreground:"7EE9FD",fontStyle:"italic"},{token:"delimiter.square.js",foreground:"FFD709"},{token:"delimiter.parenthesis.js",foreground:"FFD709"},{token:"delimiter.bracket.js",foreground:"FFD709"},{token:"this",foreground:"BD93F9",fontStyle:"italic"}],colors:{"editor.foreground":"#F8F8F2","editor.background":"#282A36","editorLineNumber.foreground":"#6272A4","editor.selectionBackground":"#44475A","editor.selectionHighlightBackground":"#424450","editor.foldBackground":"#21222C","editor.wordHighlightBackground":"#8BE9FD50","editor.wordHighlightStrongBackground":"#50FA7B50","editor.findMatchBackground":"#FFB86C80","editor.findMatchHighlightBackground":"#FFFFFF40","editor.findRangeHighlightBackground":"#44475A75","editor.hoverHighlightBackground":"#8BE9FD50","editor.lineHighlightBorder":"#44475A","editor.rangeHighlightBackground":"#BD93F915","editor.snippetTabstopHighlightBackground":"#282A36","editor.snippetTabstopHighlightBorder":"#6272A4","editor.snippetFinalTabstopHighlightBackground":"#282A36","editor.snippetFinalTabstopHighlightBorder":"#50FA7B"}}),t.editor.defineTheme("one-dark",{base:"vs-dark",inherit:!0,rules:[{token:"",background:"333842",foreground:"ABB2BF"},{token:"comment",foreground:"5C6370"},{token:"string",foreground:"98C379"},{token:"number",foreground:"D19A66"},{token:"function",foreground:"C678DD"},{token:"keyword",foreground:"C678DD"},{token:"otherkeyvars",foreground:"D19A66"},{token:"otherkeywords",foreground:"C678DD"},{token:"ns",foreground:"E06C75"},{token:"netscriptfunction",foreground:"61AFEF"},{token:"type.identifier",foreground:"E5C07B"},{token:"delimiter",foreground:"ABB2BF"},{token:"this",foreground:"E06C75"}],colors:{"editor.background":"#282C34","editor.foreground":"#ABB2BF","editor.lineHighlightBackground":"#99BBFF0A","editor.selectionBackground":"#3E4451","editor.findMatchHighlightBackground":"#528BFF3D","editorCursor.foreground":"#528BFF","editorHoverWidget.background":"#21252B","editorHoverWidget.border":"#181A1F","editorIndentGuide.background":"#ABB2BF26","editorIndentGuide.activeBackground":"#626772","editorLineNumber.foreground":"#636D83","editorLineNumber.activeForeground":"#ABB2BF","editorSuggestWidget.background":"#21252B","editorSuggestWidget.border":"#181A1F","editorSuggestWidget.selectedBackground":"#2C313A","editorWhitespace.foreground":"#ABB2BF26","editorWidget.background":"#21252B","editorWidget.border":"#3A3F4B","input.background":"#1B1D23","input.border":"#181A1F","peekView.border":"#528BFF","peekViewResult.background":"#21252B","peekViewResult.selectionBackground":"#2C313A","peekViewTitle.background":"#1B1D23","peekViewEditor.background":"#1B1D23","scrollbarSlider.background":"#4E566680","scrollbarSlider.activeBackground":"#747D9180","scrollbarSlider.hoverBackground":"#5A637580"}})}},,function(t,e,n){"use strict";function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}n.d(e,"a",(function(){return r}));class r{constructor(){var t,e,n;n={},(e="subscribers")in(t=this)?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}subscribe(t){let e=a();for(;void 0!==this.subscribers[e];)e=a();return this.subscribers[e]=t,()=>{delete this.subscribers[e]}}emit(...t){for(const e in this.subscribers){const n=this.subscribers[e];void 0!==n&&n(...t)}}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n(5),i=n(121),o=n(146);const s=Object(i.a)(t=>Object(o.a)({reputation:{color:t.colors.rep}}));function l({reputation:t}){const e=s();return a.createElement("span",{className:e.reputation},"number"==typeof t?r.a.formatReputation(t):t)}},,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(613),o=n.n(i),s=n(1122),l=n.n(s),c=n(111),f=n(1123),u=n.n(f),m=n(610),h=n.n(m),d=n(78),p=n(21);function g(t){const[e,n]=Object(a.useState)("");const{label:i,placeholder:s,add:f,subtract:m,reset:g,tons:y}=t;return r.a.createElement(r.a.Fragment,null,r.a.createElement(d.a,{label:i,value:e,onChange:function(t){""===t.target.value?n(""):n(parseFloat(t.target.value))},placeholder:s,type:"number",InputProps:{startAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{title:"Add a lot"},r.a.createElement(c.a,{onClick:y,size:"large"},r.a.createElement(h.a,{style:{transform:"rotate(-90deg)"}}))),r.a.createElement(p.a,{title:"Add"},r.a.createElement(c.a,{onClick:()=>f("string"!=typeof e?e:0),size:"large"},r.a.createElement(o.a,null)))),endAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{title:"Remove"},r.a.createElement(c.a,{onClick:()=>m("string"!=typeof e?e:0),size:"large"},r.a.createElement(l.a,null))),r.a.createElement(p.a,{title:"Reset"},r.a.createElement(c.a,{onClick:g,size:"large"},r.a.createElement(u.a,null))))}}))}},function(t,e,n){"use strict";n.d(e,"g",(function(){return u})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return h})),n.d(e,"f",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return y}));var a=n(22),r=n(46),i=n(598),o=n(18),s=n(10),l=n(66),c=n(65),f=n(768);function u(t){let e=t.hostname.replace(/ /g,"-");if(null!=t.ip&&Object(a.g)(t.ip)&&(t.ip=Object(a.e)()),null!=Object(a.d)(e)){e+="-0";for(let t=0;t<200&&(e=e.replace(/-[0-9]+$/,"-"+t),null!=Object(a.d)(e));++t);}return t.hostname=e,new r.a(t)}function m(t,e,n,a=1){let r=1+(s.a.ServerBaseGrowthRate-1)/t.hackDifficulty;r>s.a.ServerMaxGrowthRate&&(r=s.a.ServerMaxGrowthRate);const i=t.serverGrowth/100,l=1+(a-1)/16;return Math.log(e)/(Math.log(r)*n.hacking_grow_mult*i*o.a.ServerGrowthRate*l)}function h(t,e,n,a,r=1){if(n<0&&(n=0),e>t.moneyMax&&(e=t.moneyMax),e<=n)return 0;const i=1+(s.a.ServerBaseGrowthRate-1)/t.hackDifficulty,l=Math.min(i,s.a.ServerMaxGrowthRate),c=1+(r-1)/16,f=t.serverGrowth/100*a.hacking_grow_mult*c*o.a.ServerGrowthRate,u=f*Math.log(l),m=n*u+Math.log(e*u);let h;if(m0&&(h-=Math.log(m));let d=h/u-n;const p=l**f;let g=1/0;do{const t=p**d,a=n+d;g=(a*t-e)/(a*u+1)/t,d-=g}while(Math.abs(g)>=1);const y=Math.floor(d);if(e<=(n+y)*Math.pow(l,y*f))return y;const b=Math.ceil(d);return e<=(n+b)*Math.pow(l,b*f)?b:b+1}function d(t,e,n,a=1){let r=Object(i.a)(t,e,n,a);r<1&&(console.warn("serverGrowth calculated to be less than 1"),r=1);const o=t.moneyAvailable;if(t.moneyAvailable+=1*e,t.moneyAvailable*=r,Object(f.a)(t.moneyMax)&&isNaN(t.moneyAvailable)&&(t.moneyAvailable=t.moneyMax),Object(f.a)(t.moneyMax)&&t.moneyAvailable>t.moneyMax&&(t.moneyAvailable=t.moneyMax),o!==t.moneyAvailable){let r=h(t,t.moneyAvailable,o,n,a);r=Math.min(Math.max(0,Math.ceil(r)),e),t.fortify(2*s.a.ServerFortifyAmount*r)}return t.moneyAvailable/o}function p(t,e){const n=e.programs.includes(l.a.BitFlume.name);e.programs.length=0,e.runningScripts=[],e.serversOnNetwork=[],e.isConnectedTo=!0,e.ramUsed=0,e.programs.push(l.a.NukeProgram.name),n&&e.programs.push(l.a.BitFlume.name),e.scripts.forEach((function(n){n.updateRamUsage(t,e.scripts)})),e.messages.length=0,e.messages.push(c.a.HackersStartingHandbook)}function g(t,e){return e>t.serversOnNetwork.length?(console.error("Tried to get server on network that was out of range"),null):Object(a.d)(t.serversOnNetwork[e])}function y(t){return t instanceof r.a&&t.backdoorInstalled}},function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"g",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return f}));var a=n(27);function r(t,e){return Math.random()*(e-t)+t}const i="↑",o="↓",s="←",l="→";function c(t){switch(t.key){case a.a.UP_ARROW:case a.a.W:return i;case a.a.LEFT_ARROW:case a.a.A:return s;case a.a.DOWN_ARROW:case a.a.S:return o;case a.a.RIGHT_ARROW:case a.a.D:return l}return""}function f(t){switch(t.key){case a.a.DOWN_ARROW:case a.a.S:return i;case a.a.RIGHT_ARROW:case a.a.D:return s;case a.a.UP_ARROW:case a.a.W:return o;case a.a.LEFT_ARROW:case a.a.A:return l}return""}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l}));var a=n(286),r=n(662);function i(t){const e=a.a[t];if(null==e)throw new Error("Invalid research name: "+t);return new r.a({text:e.name,cost:e.cost})}function o(){const t=i("Hi-Tech R&D Laboratory"),e=i("AutoBrew"),n=i("AutoPartyManager"),a=i("Automatic Drug Administration"),r=i("Bulk Purchasing"),o=i("CPH4 Injections"),s=i("Drones"),l=i("Drones - Assembly"),c=i("Drones - Transport"),f=i("Go-Juice"),u=i("HRBuddy-Recruitment"),m=i("HRBuddy-Training"),h=i("JoyWire"),d=i("Market-TA.I"),p=i("Market-TA.II"),g=i("Overclock"),y=i("Self-Correcting Assemblers"),b=i("Sti.mu");return a.addChild(f),a.addChild(o),s.addChild(l),s.addChild(c),u.addChild(m),d.addChild(p),g.addChild(b),t.addChild(e),t.addChild(n),t.addChild(a),t.addChild(r),t.addChild(s),t.addChild(u),t.addChild(h),t.addChild(d),t.addChild(g),t.addChild(y),t}function s(){const t=new r.b;return t.setRoot(o()),t}function l(){const t=new r.b,e=o(),n=i("uPgrade: Fulcrum"),a=i("uPgrade: Capacity.I"),s=i("uPgrade: Capacity.II"),l=i("uPgrade: Dashboard");return a.addChild(s),n.addChild(a),n.addChild(l),e.addChild(n),t.setRoot(e),t}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={BladesIntuition:"Blade's Intuition",Cloak:"Cloak",Marksman:"Marksman",WeaponProficiency:"Weapon Proficiency",ShortCircuit:"Short-Circuit",DigitalObserver:"Digital Observer",Tracer:"Tracer",Overclock:"Overclock",Reaper:"Reaper",EvasiveSystem:"Evasive System",Datamancer:"Datamancer",CybersEdge:"Cyber's Edge",HandsOfMidas:"Hands of Midas",Hyperdrive:"Hyperdrive"}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(351),r=n(28);class i extends a.a{constructor(t=null){super(t),this.count=1}getActionTimePenalty(){return 1.5}getChaosCompetencePenalty(){return 1}getChaosDifficultyBonus(){return 1}toJSON(){return Object(r.b)("BlackOperation",this)}static fromJSON(t){return Object(r.a)(i,t.data)}}r.c.constructors.BlackOperation=i},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var a=n(0);const r={Gang:n.n(a).a.createContext({})},i=()=>Object(a.useContext)(r.Gang)},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var a=n(181),r=n(422),i=n(198),o=n(298),s=n(369),l=n(22),c=n(322),f=n(14),u=n(462),m=n(2);function h(t,e,n){if(null!=n&&"boolean"==typeof n||(n=!0),t instanceof r.a)return p(t),!0;if(t instanceof s.a&&"string"==typeof e){const a=d(t.pid,n);if(a)return a;for(const a of i.a.values())if(a.name==t.filename&&a.hostname==e&&Object(c.a)(a.args,t.args))return p(a,n),!0;return!1}return"number"==typeof t?d(t,n):(console.error("killWorkerScript() called with invalid argument:"),console.error(t),!1)}function d(t,e=!0){const n=i.a.get(t);return n instanceof r.a&&(p(n,e),!0)}function p(t,e=!0){if("function"==typeof t.atExit){try{t.atExit()}catch(e){Object(f.a)(`Error trying to call atExit for script ${t.name} on ${t.hostname} ${t.scriptRef.args} ${e}`)}t.atExit=void 0}t.env.stopFlag=!0,function(t){t instanceof r.a&&t.delay&&(clearTimeout(t.delay),t.delayReject&&t.delayReject(new a.a(t)))}(t),function(t,e=!0){const n=t.hostname,a=t.name,r=Object(l.d)(n);if(null==r)return void console.error("Could not find server on which this script is running: "+n);for(let e=0;eObject(o.a)({unbuyable:{color:t.palette.action.disabled},money:{color:t.colors.money}}));function l(t){const e=s();return t.corp.funds>t.money?a.createElement("span",{className:e.money},r.a.formatMoney(t.money)):a.createElement("span",{className:e.unbuyable},r.a.formatMoney(t.money))}},,,function(t,e,n){"use strict";function a(t){return"string"==typeof t||t instanceof String}n.d(e,"a",(function(){return a}))},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return m}));var a=n(0),r=n.n(a),i=n(18),o=n(4),s=n(15);class l{constructor(t,e,n,a="",i=r.a.createElement(r.a.Fragment,null)){this.number=t,this.difficulty=e,this.name=n,this.desc=a,this.info=i}}const c={};c.BitNode1=new l(1,0,"Source Genesis","The original BitNode",r.a.createElement(r.a.Fragment,null,"The first BitNode created by the Enders to imprison the minds of humans. It became the prototype and testing-grounds for all of the BitNodes that followed.",r.a.createElement("br",null),r.a.createElement("br",null),"This is the first BitNode that you play through. It has no special modifications or mechanics.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 1, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets the player start with 32GB of RAM on his/her home computer when entering a new BitNode, and also increases all of the player's multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 16%",r.a.createElement("br",null),"Level 2: 24%",r.a.createElement("br",null),"Level 3: 28%")),c.BitNode2=new l(2,0,"Rise of the Underworld","From the shadows, they rose",r.a.createElement(r.a.Fragment,null,"From the shadows, they rose.",r.a.createElement("br",null),r.a.createElement("br",null),"Organized crime groups quickly filled the void of power left behind from the collapse of Western government in the 2050s. As society and civilization broke down, people quickly succumbed to the innate human impulse of evil and savagery. The organized crime factions quickly rose to the top of the modern world.",r.a.createElement("br",null),r.a.createElement("br",null),"Certain Factions (",o.a.SlumSnakes,", ",o.a.Tetrads,", ",o.a.TheSyndicate,","," ",o.a.TheDarkArmy,", ",o.a.SpeakersForTheDead,", ",o.a.NiteSec,", ",o.a.TheBlackHand,") give the player the ability to form and manage their own gangs. These gangs will earn the player money and reputation with the corresponding Faction",r.a.createElement("br",null),"Every Augmentation in the game will be available through the Factions listed above",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 2, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File allows you to form gangs in other BitNodes once your karma decreases to a certain value. It also increases the player's crime success rate, crime money, and charisma multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 24%",r.a.createElement("br",null),"Level 2: 36%",r.a.createElement("br",null),"Level 3: 42%")),c.BitNode3=new l(3,0,"Corporatocracy","The Price of Civilization",r.a.createElement(r.a.Fragment,null,"Our greatest illusion is that a healthy society can revolve around a single-minded pursuit of wealth.",r.a.createElement("br",null),r.a.createElement("br",null),"Sometime in the early 21st century economic and political globalization turned the world into a corporatocracy, and it never looked back. Now, the privileged elite will happily bankrupt their own countrymen, decimate their own community, and evict their neighbors from houses in their desperate bid to increase their wealth.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you can create and manage your own corporation. Running a successful corporation has the potential of generating massive profits.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 3, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets you create corporations on other BitNodes (although some BitNodes will disable this mechanic). This Source-File also increases your charisma and company salary multipliers by:",r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode4=new l(4,1,"The Singularity","The Man and the Machine",r.a.createElement(r.a.Fragment,null,"The Singularity has arrived. The human race is gone, replaced by artificially superintelligent beings that are more machine than man. ",r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you will gain access to a new set of Netscript Functions known as Singularity Functions. These functions allow you to control most aspects of the game through scripts, including working for factions/companies, purchasing/installing Augmentations, and creating programs.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 4, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets you access and use the Singularity Functions in other BitNodes. Each level of this Source-File reduces the RAM cost of singularity functions.")),c.BitNode5=new l(5,1,"Artificial Intelligence","Posthuman",r.a.createElement(r.a.Fragment,null,"They said it couldn't be done. They said the human brain, along with its consciousness and intelligence, couldn't be replicated. They said the complexity of the brain results from unpredictable, nonlinear interactions that couldn't be modeled by 1's and 0's. They were wrong.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 5, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants you a special new stat called Intelligence. Intelligence is unique because it is permanent and persistent (it never gets reset back to 1). However gaining Intelligence experience is much slower than other stats. Higher Intelligence levels will boost your production for many actions in the game. ",r.a.createElement("br",null),r.a.createElement("br",null),"In addition, this Source-File will unlock the getBitNodeMultipliers() Netscript function and let you start with Formulas.exe, and will also raise all of your hacking-related multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode6=new l(6,1,o.a.Bladeburners,"Like Tears in Rain",r.a.createElement(r.a.Fragment,null,"In the middle of the 21st century, ",o.a.OmniTekIncorporated," began designing and manufacturing advanced synthetic androids, or Synthoids for short. They achieved a major technological breakthrough in the sixth generation of their Synthoid design, called MK-VI, by developing a hyperintelligent AI. Many argue that this was the first sentient AI ever created. This resulted in Synthoid models that were stronger, faster, and more intelligent than the humans that had created them.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you will be able to access the ",o.a.Bladeburners," Division at the NSA, which provides a new mechanic for progression.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 6, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File allows you to access the NSA's ",o.a.Bladeburners," Division in other BitNodes. In addition, this Source-File will raise both the level and experience gain rate of all your combat stats by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode7=new l(7,2,o.a.Bladeburners+" 2079","More human than humans",r.a.createElement(r.a.Fragment,null,"In the middle of the 21st century, you were doing cutting-edge work at ",o.a.OmniTekIncorporated," as part of the AI design team for advanced synthetic androids, or Synthoids for short. You helped achieve a major technological breakthrough in the sixth generation of the company's Synthoid design, called MK-VI, by developing a hyperintelligent AI. Many argue that this was the first sentient AI ever created. This resulted in Synthoid models that were stronger, faster, and more intelligent than the humans that had created them.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you will be able to access the ",o.a.Bladeburners," API, which allows you to access"," ",o.a.Bladeburners,"functionality through Netscript.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 7, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File allows you to access the ",o.a.Bladeburners," Netscript API in other BitNodes. In addition, this Source-File will increase all of your ",o.a.Bladeburners," multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode8=new l(8,2,"Ghost of Wall Street","Money never sleeps",r.a.createElement(r.a.Fragment,null,"You are trying to make a name for yourself as an up-and-coming hedge fund manager on Wall Street.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode:",r.a.createElement("br",null),r.a.createElement("br",null),"You start with $250 million",r.a.createElement("br",null),"You start with a WSE membership and access to the TIX API",r.a.createElement("br",null),"You are able to short stocks and place different types of orders (limit/stop)",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 8, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants the following benefits:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: Permanent access to WSE and TIX API",r.a.createElement("br",null),"Level 2: Ability to short stocks in other BitNodes",r.a.createElement("br",null),"Level 3: Ability to use limit/stop orders in other BitNodes",r.a.createElement("br",null),r.a.createElement("br",null),"This Source-File also increases your hacking growth multipliers by:",r.a.createElement("br",null),"Level 1: 12%",r.a.createElement("br",null),"Level 2: 18%",r.a.createElement("br",null),"Level 3: 21%")),c.BitNode9=new l(9,2,"Hacktocracy","Hacknet Unleashed",r.a.createElement(r.a.Fragment,null,"When ",o.a.FulcrumSecretTechnologies," released their open-source Linux distro Chapeau, it quickly became the OS of choice for the underground hacking community. Chapeau became especially notorious for powering the Hacknet, a global, decentralized network used for nefarious purposes. ",o.a.FulcrumSecretTechnologies," ","quickly abandoned the project and dissociated themselves from it.",r.a.createElement("br",null),r.a.createElement("br",null),"This BitNode unlocks the Hacknet Server, an upgraded version of the Hacknet Node. Hacknet Servers generate hashes, which can be spent on a variety of different upgrades.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 9, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants the following benefits:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: Permanently unlocks the Hacknet Server in other BitNodes",r.a.createElement("br",null),"Level 2: You start with 128GB of RAM on your home computer when entering a new BitNode",r.a.createElement("br",null),"Level 3: Grants a highly-upgraded Hacknet Server when entering a new BitNode",r.a.createElement("br",null),r.a.createElement("br",null),"(Note that the Level 3 effect of this Source-File only applies when entering a new BitNode, NOT when installing Augmentations)",r.a.createElement("br",null),r.a.createElement("br",null),"This Source-File also increases your hacknet multipliers by:",r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode10=new l(10,2,"Digital Carbon","Your body is not who you are",r.a.createElement(r.a.Fragment,null,"In 2084, VitaLife unveiled to the world the Persona Core, a technology that allowed people to digitize their consciousness. Their consciousness could then be transferred into Synthoids or other bodies by trasmitting the digitized data. Human bodies became nothing more than 'sleeves' for the human consciousness. Mankind had finally achieved immortality - at least for those that could afford it.",r.a.createElement("br",null),r.a.createElement("br",null),"This BitNode unlocks Sleeve technology. Sleeve technology allows you to:",r.a.createElement("br",null),r.a.createElement("br",null),"1. Grafting: Visit VitaLife in New Tokyo to be able to obtain Augmentations without needing to install",r.a.createElement("br",null),"2. Duplicate Sleeves: Duplicate your consciousness into Synthoids, allowing you to perform different tasks synchronously.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 10, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File unlocks Sleeve technology in other BitNodes. Each level of this Source-File also grants you a Duplicate Sleeve")),c.BitNode11=new l(11,1,"The Big Crash","Okay. Sell it all.",r.a.createElement(r.a.Fragment,null,"The 2050s was defined by the massive amounts of violent civil unrest and anarchic rebellion that rose all around the world. It was this period of disorder that eventually lead to the governmental reformation of many global superpowers, most notably the USA and China. But just as the world was slowly beginning to recover from these dark times, financial catastrophe hit.",r.a.createElement("br",null),r.a.createElement("br",null),"In many countries, the high cost of trying to deal with the civil disorder bankrupted the governments. In all of this chaos and confusion, hackers were able to steal billions of dollars from the world's largest electronic banks, prompting an international banking crisis as governments were unable to bail out insolvent banks. Now, the world is slowly crumbling in the middle of the biggest economic crisis of all time.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 11, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File makes it so that company favor increases BOTH the player's salary and reputation gain rate at that company by 1% per favor (rather than just the reputation gain). This Source-File also increases the player's company salary and reputation gain multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 32%",r.a.createElement("br",null),"Level 2: 48%",r.a.createElement("br",null),"Level 3: 56%",r.a.createElement("br",null),r.a.createElement("br",null),"It also reduces the price increase for every aug bought by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 4%",r.a.createElement("br",null),"Level 2: 6%",r.a.createElement("br",null),"Level 3: 7%")),c.BitNode12=new l(12,0,"The Recursion","Repeat.",r.a.createElement(r.a.Fragment,null,"To iterate is human, to recurse divine.",r.a.createElement("br",null),r.a.createElement("br",null),"Every time this BitNode is destroyed, it becomes slightly harder. Destroying this BitNode will give you Source-File 12, or if you already have this Source-File it will upgrade its level. There is no maximum level for Source-File 12. Each level of Source-File 12 lets you start any BitNodes with NeuroFlux Governor equal to the level of this source file.")),c.BitNode13=new l(13,2,"They're lunatics","1 step back, 2 steps forward",r.a.createElement(r.a.Fragment,null,"With the invention of Augmentations in the 2040s a religious group known as the"," ",o.a.ChurchOfTheMachineGod," has rallied far more support than anyone would have hoped.",r.a.createElement("br",null),r.a.createElement("br",null),'Their leader, Allison "Mother" Stanek is said to have created her own Augmentation whose power goes beyond any other. Find her in ',s.a.Chongqing," and gain her trust.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 13, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets the ",o.a.ChurchOfTheMachineGod," appear in other BitNodes.",r.a.createElement("br",null),r.a.createElement("br",null),"Each level of this Source-File increases the size of Stanek's Gift."));const f={HackingLevelMultiplier:1,StrengthLevelMultiplier:1,DefenseLevelMultiplier:1,DexterityLevelMultiplier:1,AgilityLevelMultiplier:1,CharismaLevelMultiplier:1,ServerGrowthRate:1,ServerMaxMoney:1,ServerStartingMoney:1,ServerStartingSecurity:1,ServerWeakenRate:1,HomeComputerRamCost:1,PurchasedServerCost:1,PurchasedServerSoftcap:1,PurchasedServerLimit:1,PurchasedServerMaxRam:1,CompanyWorkMoney:1,CrimeMoney:1,HacknetNodeMoney:1,ManualHackMoney:1,ScriptHackMoney:1,ScriptHackMoneyGain:1,CodingContractMoney: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,FourSigmaMarketDataCost:1,FourSigmaMarketDataApiCost:1,CorporationValuation:1,CorporationSoftcap:1,BladeburnerRank:1,BladeburnerSkillCost:1,GangSoftcap:1,GangUniqueAugs:1,DaedalusAugsRequirement:30,StaneksGiftPowerMultiplier:1,StaneksGiftExtraSize:0,WorldDaemonDifficulty:1};function u(t,e){const n=Object.assign({},f);switch(t){case 1:return n;case 2:return Object.assign(n,{HackingLevelMultiplier:.8,ServerGrowthRate:.8,ServerMaxMoney:.2,ServerStartingMoney:.4,CrimeMoney:3,InfiltrationMoney:3,FactionWorkRepGain:.5,FactionPassiveRepGain:0,StaneksGiftPowerMultiplier:2,StaneksGiftExtraSize:-6,PurchasedServerSoftcap:1.3,CorporationSoftcap:.9,WorldDaemonDifficulty:5});case 3:return Object.assign(n,{HackingLevelMultiplier:.8,RepToDonateToFaction:.5,AugmentationRepCost:3,AugmentationMoneyCost:3,ServerMaxMoney:.2,ServerStartingMoney:.2,ServerGrowthRate:.2,ScriptHackMoney:.2,CompanyWorkMoney:.25,CrimeMoney:.25,HacknetNodeMoney:.25,HomeComputerRamCost:1.5,PurchasedServerCost:2,StaneksGiftPowerMultiplier:.75,StaneksGiftExtraSize:-2,PurchasedServerSoftcap:1.3,GangSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.5});case 4:return Object.assign(n,{ServerMaxMoney:.15,ServerStartingMoney:.75,ScriptHackMoney:.2,CompanyWorkMoney:.1,CrimeMoney:.2,HacknetNodeMoney:.05,CompanyWorkExpGain:.5,ClassGymExpGain:.5,FactionWorkExpGain:.5,HackExpGain:.4,CrimeExpGain:.5,FactionWorkRepGain:.75,StaneksGiftPowerMultiplier:1.5,StaneksGiftExtraSize:0,PurchasedServerSoftcap:1.2,WorldDaemonDifficulty:3,GangUniqueAugs:.5});case 5:return Object.assign(n,{ServerMaxMoney:2,ServerStartingSecurity:2,ServerStartingMoney:.5,ScriptHackMoney:.15,HacknetNodeMoney:.2,CrimeMoney:.5,InfiltrationRep:1.5,InfiltrationMoney:1.5,AugmentationMoneyCost:2,HackExpGain:.5,CorporationValuation:.5,StaneksGiftPowerMultiplier:1.3,StaneksGiftExtraSize:0,PurchasedServerSoftcap:1.2,WorldDaemonDifficulty:1.5,GangUniqueAugs:.5});case 6:return Object.assign(n,{HackingLevelMultiplier:.35,ServerMaxMoney:.4,ServerStartingMoney:.5,ServerStartingSecurity:1.5,ScriptHackMoney:.75,CompanyWorkMoney:.5,CrimeMoney:.75,InfiltrationMoney:.75,CorporationValuation:.2,HacknetNodeMoney:.2,HackExpGain:.25,DaedalusAugsRequirement:35,PurchasedServerSoftcap:2,StaneksGiftPowerMultiplier:.5,StaneksGiftExtraSize:2,GangSoftcap:.7,CorporationSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.2});case 7:return Object.assign(n,{BladeburnerRank:.6,BladeburnerSkillCost:2,AugmentationMoneyCost:3,HackingLevelMultiplier:.35,ServerMaxMoney:.4,ServerStartingMoney:.5,ServerStartingSecurity:1.5,ScriptHackMoney:.5,CompanyWorkMoney:.5,CrimeMoney:.75,InfiltrationMoney:.75,CorporationValuation:.2,HacknetNodeMoney:.2,HackExpGain:.25,FourSigmaMarketDataCost:2,FourSigmaMarketDataApiCost:2,DaedalusAugsRequirement:35,PurchasedServerSoftcap:2,StaneksGiftPowerMultiplier:.9,StaneksGiftExtraSize:-1,GangSoftcap:.7,CorporationSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.2});case 8:return Object.assign(n,{ScriptHackMoney:.3,ScriptHackMoneyGain:0,ManualHackMoney:0,CompanyWorkMoney:0,CrimeMoney:0,HacknetNodeMoney:0,InfiltrationMoney:0,RepToDonateToFaction:0,CorporationValuation:0,CodingContractMoney:0,StaneksGiftExtraSize:-99,PurchasedServerSoftcap:4,GangSoftcap:0,CorporationSoftcap:0,GangUniqueAugs:0});case 9:return Object.assign(n,{HackingLevelMultiplier:.5,StrengthLevelMultiplier:.45,DefenseLevelMultiplier:.45,DexterityLevelMultiplier:.45,AgilityLevelMultiplier:.45,CharismaLevelMultiplier:.45,PurchasedServerLimit:0,HomeComputerRamCost:5,CrimeMoney:.5,ScriptHackMoney:.1,HackExpGain:.05,ServerStartingMoney:.1,ServerMaxMoney:.1,ServerStartingSecurity:2.5,CorporationValuation:.5,FourSigmaMarketDataCost:5,FourSigmaMarketDataApiCost:4,BladeburnerRank:.9,BladeburnerSkillCost:1.2,StaneksGiftPowerMultiplier:.5,StaneksGiftExtraSize:2,GangSoftcap:.8,CorporationSoftcap:.7,WorldDaemonDifficulty:2,GangUniqueAugs:.25});case 10:return Object.assign(n,{HackingLevelMultiplier:.35,StrengthLevelMultiplier:.4,DefenseLevelMultiplier:.4,DexterityLevelMultiplier:.4,AgilityLevelMultiplier:.4,CharismaLevelMultiplier:.4,CompanyWorkMoney:.5,CrimeMoney:.5,HacknetNodeMoney:.5,ManualHackMoney:.5,ScriptHackMoney:.5,CodingContractMoney:.5,InfiltrationMoney:.5,CorporationValuation:.5,AugmentationMoneyCost:5,AugmentationRepCost:2,HomeComputerRamCost:1.5,PurchasedServerCost:5,PurchasedServerLimit:.6,PurchasedServerMaxRam:.5,BladeburnerRank:.8,StaneksGiftPowerMultiplier:.75,StaneksGiftExtraSize:-3,PurchasedServerSoftcap:1.1,GangSoftcap:.9,CorporationSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.25});case 11:return Object.assign(n,{HackingLevelMultiplier:.6,HackExpGain:.5,ServerMaxMoney:.1,ServerStartingMoney:.1,ServerGrowthRate:.2,ServerWeakenRate:2,CrimeMoney:3,CompanyWorkMoney:.5,HacknetNodeMoney:.1,AugmentationMoneyCost:2,InfiltrationMoney:2.5,InfiltrationRep:2.5,CorporationValuation:.1,CodingContractMoney:.25,FourSigmaMarketDataCost:4,FourSigmaMarketDataApiCost:4,PurchasedServerSoftcap:2,CorporationSoftcap:.9,WorldDaemonDifficulty:1.5,GangUniqueAugs:.75});case 12:{const t=Math.pow(1.02,e),a=1/t;return Object.assign(n,{DaedalusAugsRequirement:Math.floor(Math.min(n.DaedalusAugsRequirement+t,40)),HackingLevelMultiplier:a,StrengthLevelMultiplier:a,DefenseLevelMultiplier:a,DexterityLevelMultiplier:a,AgilityLevelMultiplier:a,CharismaLevelMultiplier:a,ServerMaxMoney:a,ServerStartingMoney:a,ServerGrowthRate:a,ServerWeakenRate:a,ServerStartingSecurity:1.5,HomeComputerRamCost:t,PurchasedServerCost:t,PurchasedServerLimit:a,PurchasedServerMaxRam:a,PurchasedServerSoftcap:t,ManualHackMoney:a,ScriptHackMoney:a,CompanyWorkMoney:a,CrimeMoney:a,HacknetNodeMoney:a,CodingContractMoney:a,CompanyWorkExpGain:a,ClassGymExpGain:a,FactionWorkExpGain:a,HackExpGain:a,CrimeExpGain:a,FactionWorkRepGain:a,FactionPassiveRepGain:a,RepToDonateToFaction:t,AugmentationRepCost:t,AugmentationMoneyCost:t,InfiltrationMoney:a,InfiltrationRep:a,FourSigmaMarketDataCost:t,FourSigmaMarketDataApiCost:t,CorporationValuation:a,BladeburnerRank:a,BladeburnerSkillCost:t,StaneksGiftPowerMultiplier:t,StaneksGiftExtraSize:t,GangSoftcap:.8,CorporationSoftcap:.8,WorldDaemonDifficulty:t,GangUniqueAugs:a})}case 13:return Object.assign(n,{PurchasedServerSoftcap:1.6,HackingLevelMultiplier:.25,StrengthLevelMultiplier:.7,DefenseLevelMultiplier:.7,DexterityLevelMultiplier:.7,AgilityLevelMultiplier:.7,ServerMaxMoney:.45,ServerStartingMoney:.75,ServerStartingSecurity:3,ScriptHackMoney:.2,CompanyWorkMoney:.4,CrimeMoney:.4,HacknetNodeMoney:.4,CodingContractMoney:.4,CompanyWorkExpGain:.5,ClassGymExpGain:.5,FactionWorkExpGain:.5,HackExpGain:.1,CrimeExpGain:.5,FactionWorkRepGain:.6,FourSigmaMarketDataCost:10,FourSigmaMarketDataApiCost:10,CorporationValuation:.001,BladeburnerRank:.45,BladeburnerSkillCost:2,StaneksGiftPowerMultiplier:2,StaneksGiftExtraSize:1,GangSoftcap:.3,CorporationSoftcap:.3,WorldDaemonDifficulty:3,GangUniqueAugs:.1});default:throw new Error("Invalid BitNodeN")}}function m(t){Object.assign(i.a,u(t.bitNodeN,t.sourceFileLvl(t.bitNodeN)))}Object.freeze(f)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(28),r=n(33);const i={b:!0,initPrice:1e4,marketCap:1e12,mv:1,name:"",otlkMag:0,spreadPerc:0,shareTxForMovement:1e6,symbol:""};function o(t){let e;switch(typeof t){case"number":return t;case"object":{const n=t;e=Object(r.a)(n.min,n.max);break}default:throw Error(`Do not know how to convert the type '${typeof t}' to a number`)}return"object"==typeof t&&"number"==typeof t.divisor?e/t.divisor:e}class s{constructor(t=i){this.name=t.name,this.symbol=t.symbol,this.price=o(t.initPrice),this.lastPrice=this.price,this.playerShares=0,this.playerAvgPx=0,this.playerShortShares=0,this.playerAvgShortPx=0,this.mv=o(t.mv),this.b=t.b,this.otlkMag=t.otlkMag,this.otlkMagForecast=this.getAbsoluteForecast(),this.cap=Object(r.a)(1e3*this.price,25e3*this.price),this.spreadPerc=o(t.spreadPerc),this.shareTxForMovement=o(t.shareTxForMovement),this.shareTxUntilMovement=this.shareTxForMovement;const e=t.marketCap/this.price;this.totalShares=1e5*Math.round(e/1e5);this.maxShares=1e5*Math.round(.2*this.totalShares/1e5)}changeForecastForecast(t){this.otlkMagForecast=t,this.otlkMagForecast>100?this.otlkMagForecast=100:this.otlkMagForecast<0&&(this.otlkMagForecast=0)}changePrice(t){this.lastPrice=this.price,this.price=t}cycleForecast(t=.1){const e=this.getForecastIncreaseChance();Math.random()5&&(this.otlkMag=Math.max(5,this.otlkMag-t))}influenceForecastForecast(t){this.otlkMagForecast>50?(this.otlkMagForecast-=t,this.otlkMagForecast=Math.max(50,this.otlkMagForecast)):this.otlkMagForecast<50&&(this.otlkMagForecast+=t,this.otlkMagForecast=Math.min(50,this.otlkMagForecast))}toJSON(){return Object(a.b)("Stock",this)}static fromJSON(t){return Object(a.a)(s,t.data)}}a.c.constructors.Stock=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={}},,function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return c})),n.d(e,"f",(function(){return f}));var a=n(18),r=n(41);function i(t,e,n,i,o){return r.b.HashesPerLevel*t*Math.pow(1.07,Math.log2(n))*(1+(i-1)/5)*(1-e/n)*o*a.a.HacknetNodeMoney}function o(t,e=1,n=1){const a=Math.round(e);if(isNaN(a)||a<1)return 0;if(t>=r.b.MaxLevel)return 1/0;const i=r.b.UpgradeLevelMult;let o=0,s=t;for(let t=0;t=r.b.MaxRam)return 1/0;let i=0,o=Math.round(Math.log2(t)),s=t;for(let t=0;t=r.b.MaxCores)return 1/0;const i=r.b.UpgradeCoreMult;let o=0,s=t;for(let t=0;t=r.b.MaxCache)return 1/0;const a=r.b.UpgradeCacheMult;let i=0,o=t;for(let t=0;t=r.b.MaxServers?1/0:r.b.BaseCost*Math.pow(r.b.PurchaseMult,t-1)*e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"e",(function(){return c})),n.d(e,"g",(function(){return m})),n.d(e,"h",(function(){return h}));var a=n(85);let r={},i={};function o(t){r=""===t?{}:JSON.parse(t)}function s(t){i=""===t?{}:JSON.parse(t)}function l(){for(const t of Object.keys(r))r.hasOwnProperty(t)&&a.a.print("alias "+t+"="+r[t]);for(const t of Object.keys(i))i.hasOwnProperty(t)&&a.a.print("global alias "+t+"="+i[t])}function c(t,e=!1){const n=t.match(/^([\w|!%,@-]+)=(("(.+)")|('(.+)'))$/);return null!=n&&7==n.length&&(e?function(t,e){t in r&&delete r[t];i[t]=e.trim()}(n[1],n[4]||n[6]):function(t,e){t in i&&delete i[t];r[t]=e.trim()}(n[1],n[4]||n[6]),!0)}function f(t){return r.hasOwnProperty(t)?r[t]:null}function u(t){return i.hasOwnProperty(t)?i[t]:null}function m(t){return r.hasOwnProperty(t)?(delete r[t],!0):!!i.hasOwnProperty(t)&&(delete i[t],!0)}function h(t){const e=t.split(" ");if(e.length>0){if("unalias"===e[0]||"alias"===e[0])return e.join(" ");let t=!0,r=0;for(;t&&r<10;){var n;r++,t=!1;const i=null===(n=f(e[0]))||void 0===n?void 0:n.split(" ");null!=i&&(t=!0,e.splice(0,1,...i));for(let n=0;ne(f),[f]),l.a.createElement(a.a,{control:l.a.createElement(r.a,{checked:f,onChange:function(t){u(t.target.checked)}}),label:l.a.createElement(i.a,{title:l.a.createElement(o.a,null,c)},l.a.createElement(o.a,null,n))})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));class a{constructor(t,e,n){this.title=t,this.fn=e,this.txt=n}}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(1),o=n(21);function s(t){const[e,n]=Object(a.useState)(!1);return r.a.createElement(o.a,{open:e,title:r.a.createElement(i.a,null,"Copied!")},r.a.createElement(i.a,{variant:t.variant,color:t.color,onClick:function(){const e=document.createElement("textarea");e.value=t.value,document.body.appendChild(e),e.select(),e.setSelectionRange(0,1e10),document.execCommand("copy"),document.body.removeChild(e),n(!0),setTimeout(()=>n(!1),1e3)}},t.value))}},,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"a",(function(){return h}));var a=n(0),r=n.n(a),i=n(654),o=n(946),s=n(1744),l=n(125),c=n(6);const f=new l.a;let u;function m(){var t,e;u=Object(i.a)({colors:{hp:c.a.theme.hp,money:c.a.theme.money,hack:c.a.theme.hack,combat:c.a.theme.combat,cha:c.a.theme.cha,int:c.a.theme.int,rep:c.a.theme.rep,backgroundprimary:c.a.theme.backgroundprimary,backgroundsecondary:c.a.theme.backgroundsecondary,button:c.a.theme.button,successlight:c.a.theme.successlight,success:c.a.theme.success,successdark:c.a.theme.successdark,white:c.a.theme.white,black:c.a.theme.black},palette:{primary:{light:c.a.theme.primarylight,main:c.a.theme.primary,dark:c.a.theme.primarydark},secondary:{light:c.a.theme.secondarylight,main:c.a.theme.secondary,dark:c.a.theme.secondarydark},error:{light:c.a.theme.errorlight,main:c.a.theme.error,dark:c.a.theme.errordark},info:{light:c.a.theme.infolight,main:c.a.theme.info,dark:c.a.theme.infodark},warning:{light:c.a.theme.warninglight,main:c.a.theme.warning,dark:c.a.theme.warningdark},success:{light:c.a.theme.successlight,main:c.a.theme.success,dark:c.a.theme.successdark},background:{default:c.a.theme.backgroundprimary,paper:c.a.theme.well},action:{disabled:c.a.theme.disabled}},typography:{fontFamily:c.a.styles.fontFamily,button:{textTransform:"none"}},components:{MuiInputBase:{styleOverrides:{root:{backgroundColor:c.a.theme.well,color:c.a.theme.primary},input:{"&::placeholder":{userSelect:"none",color:c.a.theme.primarydark}}}},MuiInput:{styleOverrides:{root:{backgroundColor:c.a.theme.well,borderBottomColor:"#fff"},underline:{"&:hover":{borderBottomColor:c.a.theme.primarydark},"&:before":{borderBottomColor:c.a.theme.primary},"&:after":{borderBottomColor:c.a.theme.primarylight}}}},MuiInputLabel:{styleOverrides:{root:{color:c.a.theme.primarydark,userSelect:"none","&:before":{color:c.a.theme.primarylight}}}},MuiButtonGroup:{styleOverrides:{root:{"& .MuiButton-root:not(:last-of-type)":{marginRight:"1px"}}}},MuiButton:{styleOverrides:{root:{backgroundColor:c.a.theme.button,border:"1px solid "+c.a.theme.well,"&:hover":{backgroundColor:c.a.theme.backgroundsecondary},borderRadius:0}}},MuiSelect:{styleOverrides:{icon:{color:c.a.theme.primary}},defaultProps:{variant:"standard"}},MuiTextField:{defaultProps:{variant:"standard"}},MuiTypography:{defaultProps:{color:"primary"},styleOverrides:{root:{lineHeight:c.a.styles.lineHeight}}},MuiMenu:{styleOverrides:{list:{backgroundColor:c.a.theme.well}}},MuiMenuItem:{styleOverrides:{root:{color:c.a.theme.primary}}},MuiAccordionSummary:{styleOverrides:{root:{backgroundColor:"#111"}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:c.a.theme.backgroundsecondary}}},MuiIconButton:{styleOverrides:{root:{color:c.a.theme.primary}}},MuiTooltip:{styleOverrides:{tooltip:{fontSize:"1em",color:c.a.theme.primary,backgroundColor:c.a.theme.well,borderRadius:0,border:"2px solid white",maxWidth:"100vh"}},defaultProps:{disableInteractive:!0}},MuiSlider:{styleOverrides:{valueLabel:{color:c.a.theme.primary,backgroundColor:c.a.theme.well}}},MuiDrawer:{styleOverrides:{paper:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",backgroundColor:c.a.theme.backgroundsecondary},paperAnchorDockedLeft:{borderRight:"1px solid "+c.a.theme.welllight}}},MuiDivider:{styleOverrides:{root:{backgroundColor:c.a.theme.welllight}}},MuiFormControlLabel:{styleOverrides:{root:{color:c.a.theme.primary}}},MuiSwitch:{styleOverrides:{switchBase:{color:c.a.theme.primarydark},track:{backgroundColor:c.a.theme.welllight}}},MuiPaper:{styleOverrides:{root:{borderRadius:0,backgroundColor:c.a.theme.backgroundsecondary,border:"1px solid "+c.a.theme.welllight}}},MuiTablePagination:{styleOverrides:{select:{color:c.a.theme.primary},selectLabel:{color:c.a.theme.primary},displayedRows:{color:c.a.theme.primary}}},MuiTab:{styleOverrides:{textColorPrimary:{color:c.a.theme.secondary,"&.Mui-selected":{color:c.a.theme.primary}},root:{backgroundColor:c.a.theme.backgroundsecondary,border:"1px solid "+c.a.theme.well,margin:"3px","&.Mui-selected":{backgroundColor:c.a.theme.button}}}},MuiTabs:{styleOverrides:{scrollButtons:{backgroundColor:c.a.theme.backgroundsecondary,color:c.a.theme.secondary,margin:"3px",opacity:1,width:"fit-content","&.Mui-disabled":{opacity:.5}}},defaultProps:{TabIndicatorProps:{style:{display:"none"}}}},MuiAlert:{styleOverrides:{root:{backgroundColor:c.a.theme.black,borderRadius:0,border:"1px solid "+c.a.theme.well},standardSuccess:{color:c.a.theme.successlight},standardError:{color:c.a.theme.errorlight},standardWarning:{color:c.a.theme.warninglight},standardInfo:{color:c.a.theme.infolight}}}}}),document.body.style.backgroundColor=null!==(t=null===(e=u.colors.backgroundprimary)||void 0===e?void 0:e.toString())&&void 0!==t?t:"black"}m();const h=({children:t})=>r.a.createElement(o.a,{injectFirst:!0},r.a.createElement(s.a,{theme:u},t))},,function(t,e,n){"use strict";let a,r;n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r})),function(t){t[t.Cost=0]="Cost",t[t.Default=1]="Default",t[t.Reputation=2]="Reputation",t[t.Purchasable=3]="Purchasable"}(a||(a={})),function(t){t[t.Alphabetically=0]="Alphabetically",t[t.AcquirementTime=1]="AcquirementTime"}(r||(r={}))},,,,,,function(t,e,n){"use strict";n.d(e,"c",(function(){return C})),n.d(e,"b",(function(){return L})),n.d(e,"a",(function(){return O})),n.d(e,"d",(function(){return T})),n.d(e,"e",(function(){return R}));var a=n(0),r=n.n(a),i=n(125),o=n(144),s=n(1),l=n(19),c=n(8),f=n(45),u=n(453),m=n.n(u),h=n(1032),d=n(121),p=n(146),g=n(599),y=n.n(g),b=n(198),E=n(197),v=n(22),k=n(235),_=n(2),w=n(114),S=n(6);let x=0;const C=new i.a,L=new i.a,O=new i.a;let M=[];function T(){const t=Object(a.useState)(!0)[1];function e(){t(t=>!t)}return Object(a.useEffect)(()=>C.subscribe(t=>{const n=t.server+"-"+t.filename+t.args.map(t=>""+t).join("-");M.find(t=>t.id===n)||(M.push({id:n,script:t}),e())}),[]),Object(a.useEffect)(()=>L.subscribe(t=>{!function(t){M=M.filter(e=>e.script.pid!=t),e()}(t)}),[]),Object(a.useEffect)(()=>O.subscribe(()=>{M=[],e()})),r.a.createElement(r.a.Fragment,null,M.map(t=>r.a.createElement(N,{key:t.id,script:t.script,id:t.id,onClose:()=>{return n=t.id,M=M.filter(t=>t.id!==n),void e();var n}})))}const A=Object(d.a)(t=>Object(p.a)({logs:{overflowY:"scroll",overflowX:"hidden",scrollbarWidth:"auto",flexDirection:"column-reverse",whiteSpace:"pre-wrap"},titleButton:{padding:"1px 0",height:"100%"}})),R=1500;function N(t){const e=Object(a.useRef)(null),n=Object(a.useRef)(null),[i,u]=Object(a.useState)(t.script),d=A(),p=Object(a.useRef)(null),g=Object(a.useState)(!1)[1],[C,L]=Object(a.useState)(!1);function O(){g(t=>!t)}function M(){Object(o.a)(i,i.server,!0)}function T(){const t=Object(v.d)(i.server);if(null===t)return;const e=Object(k.a)(i.filename,i.args,t);null===e?Object(E.e)(_.a,i,t):u(e)}function N(){const t=p.current;null!==t&&(t.style.zIndex=R+x+"",x++,O())}function P(t=!1){const e=`${i.filename} ${i.args.map(t=>""+t).join(" ")}`;return t||e.length<=30?e:e.slice(0,27)+"..."}function I(){L(!C)}Object(a.useEffect)(()=>{N();const t=setInterval(O,1e3);return()=>clearInterval(t)},[]),Object(a.useEffect)(()=>(window.addEventListener("resize",F),()=>{window.removeEventListener("resize",F)}),[]);const F=Object(w.debounce)(()=>{const t=null==e?void 0:e.current;t&&(D(t)||j())},100),D=t=>{const e=t.getBoundingClientRect();return!(e.right<0||e.bottom<0||e.left>innerWidth||e.top>outerWidth)},j=()=>{const t=null==n?void 0:n.current;if(!t)return;const e=t.state;e.x=0,e.y=0,t.setState(e)},B=[250,33];return r.a.createElement(m.a,{handle:".drag",onDrag:t=>{if(t.clientX<0||t.clientY<0||t.clientX>innerWidth||t.clientY>innerHeight)return!1},ref:n,onMouseDown:N},r.a.createElement(l.a,{display:"flex",sx:{flexFlow:"column",position:"fixed",left:"40%",top:"30%",zIndex:1400,minWidth:B[0]+"px",minHeight:B[1]+"px",...C?{border:"none",margin:0,maxHeight:0,padding:0}:{border:"1px solid "+S.a.theme.welllight}},ref:p},r.a.createElement(h.ResizableBox,{height:500,width:500,minConstraints:B,handle:r.a.createElement("span",{style:{position:"absolute",right:"-10px",bottom:"-16px",cursor:"nw-resize",display:C?"none":"inline-block"}},r.a.createElement(y.a,{color:"primary",style:{transform:"rotate(45deg)",fontSize:"1.75rem"}}))},r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{className:"drag",sx:{display:"flex",alignItems:"center",cursor:"grab"},ref:e},r.a.createElement(s.a,{variant:"h6",sx:{marginRight:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},title:P(!0)},P(!0)),r.a.createElement("span",{style:{minWidth:"fit-content",height:B[1]+"px"}},b.a.has(i.pid)?r.a.createElement(c.a,{className:d.titleButton,onClick:M,onTouchEnd:M},"Kill"):r.a.createElement(c.a,{className:d.titleButton,onClick:T,onTouchEnd:T},"Run"),r.a.createElement(c.a,{className:d.titleButton,onClick:I,onTouchEnd:I},C?"🗖":"🗕"),r.a.createElement(c.a,{className:d.titleButton,onClick:t.onClose,onTouchEnd:t.onClose},"Close"))),r.a.createElement(f.a,{className:d.logs,sx:{height:`calc(100% - ${B[1]}px)`,display:C?"none":"flex"}},r.a.createElement("span",{style:{display:"flex",flexDirection:"column"}},i.logs.map((t,e)=>{return r.a.createElement(s.a,{key:e,sx:{color:(n=t,n.match(/(^\[[^\]]+\] )?ERROR/)||n.match(/(^\[[^\]]+\] )?FAIL/)?S.a.theme.error:n.match(/(^\[[^\]]+\] )?SUCCESS/)?S.a.theme.success:n.match(/(^\[[^\]]+\] )?WARN/)?S.a.theme.warning:n.match(/(^\[[^\]]+\] )?INFO/)?S.a.theme.info:S.a.theme.primary)}},t,r.a.createElement("br",null));var n})))))))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={Water:.05,Energy:.01,Food:.03,Plants:.05,Metal:.1,Hardware:.06,Chemicals:.05,Drugs:.02,Robots:.5,AICores:.1,RealEstate:.005,"Real Estate":.005,"AI Cores":.1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));class a{constructor(t){var e,n,a;a="",(n="errorMessage")in(e=this)?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,this.pid=t.pid,this.name=t.name,this.hostname=t.hostname,this.errorMessage=t.errorMessage,Object.freeze(this)}}Object.freeze(a),Object.freeze(a.prototype)},function(t,e,n){"use strict";function a(t,e=1){return Math.max(Math.floor(e*(32*Math.log(t+534.5)-200)),1)}function r(t,e=1){return Math.exp((t/e+200)/32)-534.6}function i(t,e=1){const n=a(t,e),i=n+1;let o=r(n,e);o<0&&(o=0);let s=r(i,e);s<0&&(s=0);let l=s-o!=0?100*(t-o)/(s-o):99.99;l<0&&(l=0),l>100&&(l=100);let c=t-o,f=s-t;return c<0&&(c=0),f<0&&(f=0),{currentSkill:n,nextSkill:i,baseExperience:o,experience:t,nextExperience:s,currentExperience:c,remainingExperience:f,progress:l}}n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i}))},,function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r})),function(t){t.Weapon="w",t.Armor="a",t.Vehicle="v",t.Rootkit="r",t.Augmentation="g"}(a||(a={}));const r=[{cost:1e6,mults:{str:1.04,def:1.04},name:"Baseball Bat",upgType:a.Weapon},{cost:12e6,mults:{str:1.08,def:1.08,dex:1.08},name:"Katana",upgType:a.Weapon},{cost:25e6,mults:{str:1.1,def:1.1,dex:1.1,agi:1.1},name:"Glock 18C",upgType:a.Weapon},{cost:5e7,mults:{str:1.12,def:1.1,agi:1.1},name:"P90C",upgType:a.Weapon},{cost:6e7,mults:{str:1.2,def:1.15},name:"Steyr AUG",upgType:a.Weapon},{cost:1e8,mults:{str:1.25,def:1.2},name:"AK-47",upgType:a.Weapon},{cost:15e7,mults:{str:1.3,def:1.25},name:"M15A10 Assault Rifle",upgType:a.Weapon},{cost:225e6,mults:{str:1.3,dex:1.25,agi:1.3},name:"AWM Sniper Rifle",upgType:a.Weapon},{cost:2e6,mults:{def:1.04},name:"Bulletproof Vest",upgType:a.Armor},{cost:5e6,mults:{def:1.08},name:"Full Body Armor",upgType:a.Armor},{cost:25e6,mults:{def:1.15,agi:1.15},name:"Liquid Body Armor",upgType:a.Armor},{cost:4e7,mults:{def:1.2},name:"Graphene Plating Armor",upgType:a.Armor},{cost:3e6,mults:{agi:1.04,cha:1.04},name:"Ford Flex V20",upgType:a.Vehicle},{cost:9e6,mults:{agi:1.08,cha:1.08},name:"ATX1070 Superbike",upgType:a.Vehicle},{cost:18e6,mults:{agi:1.12,cha:1.12},name:"Mercedes-Benz S9001",upgType:a.Vehicle},{cost:3e7,mults:{agi:1.16,cha:1.16},name:"White Ferrari",upgType:a.Vehicle},{cost:5e6,mults:{hack:1.05},name:"NUKE Rootkit",upgType:a.Rootkit},{cost:25e6,mults:{hack:1.1},name:"Soulstealer Rootkit",upgType:a.Rootkit},{cost:75e6,mults:{hack:1.15},name:"Demon Rootkit",upgType:a.Rootkit},{cost:4e7,mults:{hack:1.12},name:"Hmap Node",upgType:a.Rootkit},{cost:75e6,mults:{hack:1.15},name:"Jack the Ripper",upgType:a.Rootkit},{cost:1e10,mults:{str:1.3,dex:1.3},name:"Bionic Arms",upgType:a.Augmentation},{cost:1e10,mults:{agi:1.6},name:"Bionic Legs",upgType:a.Augmentation},{cost:15e9,mults:{str:1.15,def:1.15,dex:1.15,agi:1.15},name:"Bionic Spine",upgType:a.Augmentation},{cost:2e10,mults:{str:1.4,def:1.4},name:"BrachiBlades",upgType:a.Augmentation},{cost:12e9,mults:{str:1.2,def:1.2},name:"Nanofiber Weave",upgType:a.Augmentation},{cost:25e9,mults:{str:1.5,agi:1.5},name:"Synthetic Heart",upgType:a.Augmentation},{cost:15e9,mults:{str:1.3,def:1.3},name:"Synfibril Muscle",upgType:a.Augmentation},{cost:5e9,mults:{hack:1.05},name:"BitWire",upgType:a.Augmentation},{cost:1e10,mults:{hack:1.15},name:"Neuralstimulator",upgType:a.Augmentation},{cost:75e8,mults:{hack:1.1},name:"DataJack",upgType:a.Augmentation},{cost:5e10,mults:{str:1.7,def:1.7},name:"Graphene Bone Lacings",upgType:a.Augmentation}]},,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(376),r=n(347),i=n(28);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class s{constructor(t=""){o(this,"alreadyInvited",!1),o(this,"augmentations",[]),o(this,"favor",0),o(this,"isBanned",!1),o(this,"isMember",!1),o(this,"name",""),o(this,"playerReputation",0),this.name=t}getInfo(){const t=a.a[this.name];if(null==t)throw new Error(`Missing faction from FactionInfos: ${this.name} this probably means the faction got corrupted somehow`);return t}gainFavor(){null==this.favor&&(this.favor=0),this.favor+=this.getFavorGain()}getFavorGain(){null==this.favor&&(this.favor=0);const t=Math.max(0,Object(r.a)(this.favor))+this.playerReputation;return Object(r.b)(t)-this.favor}toJSON(){return Object(i.b)("Faction",this)}static fromJSON(t){return Object(i.a)(s,t.data)}}i.c.constructors.Faction=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(435),r=n(154),i=n(771),o=n(15),s=n(603);const l={};function c(t){if(!t.name)throw new Error("Invalid constructor parameters for Location. No 'name' property");return l[t.name]instanceof i.a&&console.warn(`Property with name ${t.name} already exists and is being overwritten`),l[t.name]=new i.a(t),l[t.name]}r.a[o.a.Aevum]=new a.a(o.a.Aevum),r.a[o.a.Chongqing]=new a.a(o.a.Chongqing),r.a[o.a.Ishima]=new a.a(o.a.Ishima),r.a[o.a.NewTokyo]=new a.a(o.a.NewTokyo),r.a[o.a.Sector12]=new a.a(o.a.Sector12),r.a[o.a.Volhaven]=new a.a(o.a.Volhaven),r.a[o.a.Aevum].asciiArt="\n [aevum police headquarters] 26 \n o \n I \\ [bachman & associates] \n \\ 56 B \n x \\ [summit university] \n \\ \\ 28 \n \\ [snap fitness gym] x o--L-----------N \n K \\ / \n \\ \\ Q [casino] \n x 58 \\ / [travel agency] \n \\ 94 95 o \n 90 x 59 o------o | \n \\ / \\ | 98 102 103 \n o--------O------x----o 93 96 o-----+------------o o----o \n \\ | \\ / \n [hospital] \\ 61 [ecorp] x 31 99 o-F-o 101 \n o | \n | o---E-- | [fulcrum tech.] \n x 62 / A [aerocorp] \n [crush fitness gym] | / | \n | / | \n o--------D------+--o o \n | |\\ [rho construction] \n H [netlink tech.] | J \n | | \\ \n | 34 x \\ \n [clarke inc.] C | \\ [world stock exchange] \n | | \\ \n | | o-M-------R--------o \n[galactic cybersystems] G 35 x \n | [watchdog security] \n | \n 67 o \n \n [the slums] P ",r.a[o.a.Chongqing].asciiArt="\n | \n 75 o \n \\ \n o 76 \n 7 | | \n | + 77 \n [world stock exchange] F | \n \\ o 78 [kuaigong international] \n \\ / \n 38 o----x--x------x------A------G-- \n / 39 | 41 [church] \n 37 o + 79 o--x--x-C-0 \n / | / \n / x-----+-----x-----0 [hospital] \n[solaris space system] B | \n | + 80 \n | | \n 34 o E [travel agency] \n | \n | \n x 82 \n [the slums] D ",r.a[o.a.Ishima].asciiArt="\n o 59 \n o o | \n [storm tech.] | | G [world stock exchange] \n | | 28 | \n 23 o--C------o--------+----x----o | \n / / 25 | 27 \\ x 57 \n / / | \\ | \n / / | \\ | \n o 22 o | \\| 29/56 \n | | o \n | [hospital] D / \\ 3 2 1 \n o | / \\ o-------x------o \n / o / \\ / \n 48 o / 55 x \\ / \n \\ / / x [glitch] \n \\ / [nova medical] / 4/30 \\ \n 49 x A \\ H \n / \\ / \\ \n / \\ [travel agency] F o 31 \n / \\ 51 / \n / o----B------x-----o \n o 50 52 \n [omega soft.] \n [the slums] E ",r.a[o.a.NewTokyo].asciiArt="\n \n \n o \n \\ \n [arcade] E [defcomm] \n \\ \n o--x---A--x--o [travel agency] \n 7 8 10 H \n [vitalife] o 12 [global pharmaceuticals] \n | \n o--D-x----x-------x-C-+--------x--x-B-x---x-o \n 21 22 23 \\ 24 25 26 27 \n \\ \n [noodle bar] x 14 \n \\ \n \\ \n [hospital] o 15 [world stock exchange] \n | \n o--x--F--x-----x-----x---+---x----x--I--x-o \n | \n | \n o 17 \n \n \n \n G [the slums] \n ",r.a[o.a.Sector12].asciiArt="\n 78 o 97 \n o [icarus microsystems] / \n N [powerhouse gym] o I \n 1 | | / \n o-----+---x----o 4 A [alpha ent.] o-------o / \n | 3 \\ | \\ / \n | \\ | [iron gym] x 95 \n (79) x \\ | / \\ \n | o-E----+----x----J--o 10 / o----T--o \n | | 8 \\ 94 x \n 80 x [city hall] | x 11 / [world stock exchange]\n | | \\ / \n | C [cia] \\ / \n Q [hospital] | F P [universal energy] \n | o [deltaone] \\ / \n | 35 o---------x 13/92/36 \n L [megacorp] 33 / / \\ \n | o------------o 34 / \\ \n (29) | / [carmichael sec.] D \\ \n o-----+-----x------o / O [rothman university] \n | 31 32 [nsa] M \n | / \n B [blade industries] H \n | / [four sigma] \n | [joe's guns] / \n | / \n 85 o--G--------K--------S-------o 88 [the slums] R \n \n [foodnstuff] [travel agency] ",r.a[o.a.Volhaven].asciiArt="\n [omnia cybersystems] \n 17 66 68 \n o o------G-------o \n \\ / \\ \n \\ o 65 o 69 \n [syscore sec.] H | | \n \\ | | [millenium fitness gym] \n \\ | 21 22 23 24 | 26 \n o----+--x--x----x---x---+-----x-------D-----o \n 19 | | 28 \n | F [omnitek inc.] \n [hospital] J 63 o \n | / 72 \n 3 | 5 6 / 9 \n o--------+----x-----x----+----------M-------o \n / | | \n / 61 x [helios labs] B [world stock exchange] \n [travel agency] L | | \n / | o \n / E [nwo] / 75 \n / [computek] | / \n / A-------o------I-----o \n 1 o | | \n | [zb] o 77 \n [lexocorp] C \n | \n o \n 57 \n \n \n [the slums] K ";for(const t of s.a){const e=c(t),n=e.city;if(null===n)for(const t of Object.keys(r.a))r.a[t].addLocation(e.name);else r.a[n].addLocation(e.name)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(4);const r={GangRespectToReputationRatio:75,MaximumGangMembers:12,CyclesPerTerritoryAndPowerUpdate:100,AscensionMultiplierRatio:.15,Names:[a.a.SlumSnakes,a.a.Tetrads,a.a.TheSyndicate,a.a.TheDarkArmy,a.a.SpeakersForTheDead,a.a.NiteSec,a.a.TheBlackHand],GangKarmaRequirement:-54e3}},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t[t.Field=0]="Field",t[t.Hacking=1]="Hacking",t[t.None=2]="None",t[t.Security=3]="Security"}(a||(a={}))},,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return A})),n.d(e,"c",(function(){return R})),n.d(e,"e",(function(){return P})),n.d(e,"f",(function(){return F})),n.d(e,"b",(function(){return D})),n.d(e,"d",(function(){return j}));var a=n(144),r=n(181),i=n(422),o=n(198),s=n(298),l=n(528),c=n(10),f=n(596),u=n(110),m=n(529),h=n(644),d=n(1409),p=n(369),g=n(652),y=n(235),b=n(22),E=n(6),v=n(684),k=n(14),_=n(255),w=n(527),S=n(148),x=n(423),C=n(254),L=n(304),O=n(83),M=n(2),T=n(85);const A=[];for(let t=0;t{i=!0;let e=t.source.value;e.startsWith("./")&&(e=e.slice(2));const n=function(t){for(let e=0;e{n.push(t.id.name),a.push(t)}}),r+=`var ${e};\n(function (namespace) {\n`,a.forEach(t=>{r+=Object(v.generate)(t),r+="\n"}),n.forEach(t=>{r+="namespace."+t+" = "+t,r+="\n"}),r+=`})(${e} || (" + namespace + " = {}));\n`}else{const e=[];t.specifiers.forEach(t=>{e.push(t.local.name)});const n=[];Object(L.b)(o,{FunctionDeclaration:t=>{e.includes(t.id.name)&&n.push(t)}}),n.forEach(t=>{r+=Object(v.generate)(t),r+="\n"})}}}),!i)return{code:t,lineOffset:0};let o=0;if("Program"!==n.type||null==n.body)throw new Error("Code could not be properly parsed");for(let t=n.body.length-1;t>=0;--t)"ImportDeclaration"===n.body[t].type&&(n.body.splice(t,1),++o);const s=(r.match(/\n/g)||[]).length-o;t=Object(v.generate)(n);return{code:t=r+t,lineOffset:s}}(e,t);n=a.code,i=a.lineOffset}catch(e){return Object(k.a)("Error processing Imports in "+t.name+":
"+e),t.env.stopFlag=!0,t.running=!1,Object(a.a)(t),Promise.resolve()}const o=function(e,n){const i=Object(m.a)(t);for(const o of Object.keys(i)){const s=i[o];if("function"==typeof s)if(["hack","grow","weaken","sleep","prompt","manualHack","scp","write","share","wget"].includes(o)){const i=function(...n){const i=[];for(let t=0;t`;return s+="
",s+=o,Object(k.a)(s),t.env.stopFlag=!0,t.running=!1,Object(a.a)(t),Promise.resolve()}}))};e.setProperty(n,o,e.createAsyncFunction(i))}else if("sprintf"===o||"vsprintf"===o||"scp"===o||"write"==o||"tryWrite"===o||"run"===o||"exec"===o){const t=function(...t){const n=[];for(let a=0;a"+e),t.env.stopFlag=!0,t.running=!1,Object(a.a)(t),Promise.resolve()}return new Promise((function(e,n){try{!function a(){try{if(t.env.stopFlag)return n(new r.a(t));let i=!0,o=0;for(;o<3&&i;)i=i&&s.step(),o++;i?setTimeout(a,E.a.CodeInstructionRunTime):e()}catch(e){return e=e.toString(),Object(u.a)(e)||(e=Object(u.b)(t,e)),t.errorMessage=e,n(new r.a(t))}}()}catch(e){return Object(S.a)(e)?(t.errorMessage=e,n(new r.a(t))):e instanceof r.a?n(e):(console.error(e),n(new r.a(t)))}}))}function P(t,e,n,a){return I(t,e,n,a)?(n.runScript(e),e.pid):0}function I(t,e,n,c){let f=1;e.threads&&!isNaN(e.threads)?f=e.threads:e.threads=1;const d=Object(g.a)(e),p=Object(w.a)(d*f);if(p>n.maxRam-n.ramUsed+.001)return Object(k.a)(`Not enough RAM to run script ${e.filename} with args `+Object(_.a)(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.)"),!1;n.updateRamUsed(Object(w.a)(n.ramUsed+p),M.a);const y=Object(l.a)();if(-1===y)throw new Error("Failed to start script because could not find available PID. This is most because you have too many scripts running.");const b=new i.a(e,y,m.a);b.ramUsage=d,o.a.set(y,b),s.a.emit();let E=null;if(b.name.endsWith(".js")||b.name.endsWith(".ns"))E=function(t,e){e.running=!0;let n=null;function a(t,a){return function(...i){if(e.env.stopFlag)throw new r.a(e);if("asleep"===t)return a(...i);if(n)throw e.errorMessage=Object(u.b)(e,Object(x.sprintf)("Concurrent calls to Netscript functions are not allowed! Did you forget to await hack(), grow(), or some other promise-returning function? (Currently running: %s tried to run: %s)",n,t)),new r.a(e);let o;n=t;try{o=a(...i)}catch(t){throw n=null,t}return o&&void 0!==o.finally?o.finally((function(){n=null})):(n=null,o)}}return function t(e,...n){for(const r of Object.keys(e))switch(typeof e[r]){case"function":e[r]=a([...n,r].join("."),e[r]);break;case"object":if(Array.isArray(e[r]))continue;t(e[r],...n,r)}}(e.env.vars),new Promise((n,a)=>{Object(h.b)(t,e.getServer().scripts,e).then(()=>{n()}).catch(t=>a(t))}).catch(t=>{if(t instanceof Error)throw t instanceof SyntaxError?e.errorMessage=Object(u.b)(e,t.message+" (sorry we can't be more helpful)"):e.errorMessage=Object(u.b)(e,t.message+(t.stack&&"\nstack:\n"+t.stack.toString()||"")),new r.a(e);if(Object(u.a)(t))throw e.errorMessage=t,new r.a(e);if(t instanceof r.a)throw t;throw e.errorMessage=Object(u.b)(e,""+t),new r.a(e)})}(t,b);else if(E=N(b),!(E instanceof Promise))return!1;return E.then((function(){b.running=!1,b.env.stopFlag=!0,void 0!==c&&c.running&&(c.scriptRef.onlineExpGained+=e.onlineExpGained,c.scriptRef.onlineMoneyMade+=e.onlineMoneyMade),Object(a.a)(b),b.log("",()=>"Script finished running")})).catch((function(t){if(t instanceof Error)return Object(k.a)("Script runtime unknown error. This is a bug please contact game developer"),void console.error("Evaluating workerscript returns an Error. THIS SHOULDN'T HAPPEN: "+t.toString());if(t instanceof r.a){if(!Object(u.a)(b.errorMessage))return void b.log("",()=>"Script killed");{const t=b.errorMessage.split("|DELIMITER|");if(4!=t.length)return console.error("ERROR: Something wrong with Error text in evaluator..."),void console.error("Error text: "+b.errorMessage);const e=t[1],n=t[2],a=t[3];let r=`RUNTIME ERROR
${n}@${e} (PID - ${b.pid})
`;b.args.length>0&&(r+=`Args: ${Object(_.a)(b.args)}
`),r+="
",r+=a,Object(k.a)(r),b.log("",()=>"Script crashed with runtime error")}}else{if(Object(u.a)(t))return Object(k.a)("Script runtime unknown error. This is a bug please contact game developer"),void console.error("ERROR: Evaluating workerscript returns only error message rather than WorkerScript object. THIS SHOULDN'T HAPPEN: "+t.toString());Object(k.a)("An unknown script died for an unknown reason. This is a bug please contact game dev"),console.error(t)}Object(a.a)(b)})),!0}function F(t=1){const e=t*c.a._idleSpeed/1e3;for(const t of o.a.values())t.scriptRef.onlineRunningTime+=e}function D(t){const e=-1!==window.location.href.toLowerCase().indexOf("?noscripts");e&&(T.a.warn("Skipped loading player scripts during startup"),console.info("Skipping the load of any scripts during startup"));for(const n of Object(b.c)()){n.ramUsed=0;for(let t=0;t`Invalid arguments: scriptname='${a} args='${r}'`),console.error("runScriptFromScript() failed due to invalid arguments"),0;r.forEach((t,e)=>{if("string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t)throw new Error(`Only strings, numbers, and booleans can be passed as arguments to other scripts.\n${a} argument index ${e} is of type ${typeof t} and value ${JSON.stringify(t)}`)});if(null!=n.getRunningScript(a,r))return o.log(e,()=>`'${a}' is already running on '${n.hostname}'`),0;for(let t=0;t"Cannot execute a script with null/undefined as an argument"),0;for(let i=0;i`You do not have root access on '${n.hostname}'`),0;if(c>f+.001)return o.log(e,()=>`Cannot run script '${a}' (t=${s}) on '${n.hostname}' because there is not enough available RAM!`),0;o.log(e,()=>`'${a}' on '${n.hostname}' with ${s} threads and args: ${Object(_.a)(r)}.`);const u=new p.a(l,r);return u.threads=s,u.server=n.hostname,P(t,u,n,o)}return o.log(e,()=>`Could not find script '${a}' on '${n.hostname}'`),0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a=new Map},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(69),o=n(142),s=n(149),l=n(50),c=n(1);function f({rows:t,title:e,wide:n}){const a=n?s.a:i.a;return r.a.createElement(r.a.Fragment,null,e&&r.a.createElement(c.a,null,e),r.a.createElement(a,{size:"small",padding:"none"},r.a.createElement(o.a,null,t.map((t,e)=>r.a.createElement(l.a,{key:e},t.map((t,e)=>r.a.createElement(i.b,{key:e,align:0!==e?"right":"left"},r.a.createElement(c.a,{noWrap:!0},t))))))))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(28);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class i{constructor(t={}){r(this,"name","InitName"),r(this,"qty",0),r(this,"qlt",0),r(this,"dmd",0),r(this,"dmdR",[0,0]),r(this,"cmp",0),r(this,"cmpR",[0,0]),r(this,"mv",0),r(this,"mku",0),r(this,"buy",0),r(this,"sll",0),r(this,"prd",0),r(this,"imp",0),r(this,"exp",[]),r(this,"totalExp",0),r(this,"bCost",0),r(this,"sCost",0),r(this,"prdman",[!1,0]),r(this,"sllman",[!1,0]),r(this,"marketTa1",!1),r(this,"marketTa2",!1),r(this,"marketTa2Price",0),r(this,"maxsll",0),t.name&&(this.name=t.name),this.init()}getMarkupLimit(){return this.qlt/this.mku}init(){switch(this.name){case"Water":this.dmd=75,this.dmdR=[65,85],this.cmp=50,this.cmpR=[40,60],this.bCost=1500,this.mv=.2,this.mku=6;break;case"Energy":this.dmd=90,this.dmdR=[80,99],this.cmp=80,this.cmpR=[65,95],this.bCost=2e3,this.mv=.2,this.mku=6;break;case"Food":this.dmd=80,this.dmdR=[70,90],this.cmp=60,this.cmpR=[35,85],this.bCost=5e3,this.mv=1,this.mku=3;break;case"Plants":this.dmd=70,this.dmdR=[20,90],this.cmp=50,this.cmpR=[30,70],this.bCost=3e3,this.mv=.6,this.mku=3.75;break;case"Metal":this.dmd=80,this.dmdR=[75,85],this.cmp=70,this.cmpR=[60,80],this.bCost=2650,this.mv=1,this.mku=6;break;case"Hardware":this.dmd=85,this.dmdR=[80,90],this.cmp=80,this.cmpR=[65,95],this.bCost=8e3,this.mv=.5,this.mku=1;break;case"Chemicals":this.dmd=55,this.dmdR=[40,70],this.cmp=60,this.cmpR=[40,80],this.bCost=9e3,this.mv=1.2,this.mku=2;break;case"Real Estate":this.dmd=50,this.dmdR=[5,99],this.cmp=50,this.cmpR=[25,75],this.bCost=8e4,this.mv=1.5,this.mku=1.5;break;case"Drugs":this.dmd=60,this.dmdR=[45,75],this.cmp=70,this.cmpR=[40,99],this.bCost=4e4,this.mv=1.6,this.mku=1;break;case"Robots":this.dmd=90,this.dmdR=[80,99],this.cmp=90,this.cmpR=[80,99],this.bCost=75e3,this.mv=.5,this.mku=1;break;case"AI Cores":this.dmd=90,this.dmdR=[80,99],this.cmp=90,this.cmpR=[80,99],this.bCost=15e3,this.mv=.8,this.mku=.5;break;case"Scientific Research":case"InitName":break;default:console.error("Invalid material type in init(): "+this.name)}}processMarket(){const t=1+Math.random()*this.mv/300,e=1+Math.random()*this.mv/100;Math.random()<.5?(this.cmp*=e,this.cmp>this.cmpR[1]&&(this.cmp=this.cmpR[1]),this.bCost*=1/t):(this.cmp*=1/e,this.cmpthis.dmdR[1]&&(this.dmd=this.dmdR[1]),this.bCost*=t):(this.dmd*=1/n,this.dmd{const e=setInterval(()=>{c(e=>(e<=0&&t.onExpire(),e-200/f*100))},200);return()=>{clearInterval(e)}},[]),t.noPaper?i.a.createElement(l.a,{variant:"determinate",value:n,color:"primary"}):i.a.createElement(a.a,{sx:{p:1,mb:1}},i.a.createElement(l.a,{variant:"determinate",value:n,color:"primary"}))}},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return F}));var a=n(28),r=n(259),i=n(43),o=n(546),s=n(269),l=n(141),c=n(351),f=n(660),u=n(257),m=n(24),h=n(227),d=n(246),p=n(433),g=n(25),y=n(661),b=n(266),E=n(33),v=n(61),k=n(5),_=n(18),w=n(305),S=n(186),x=n(26),C=n(407),L=n(14),O=n(6),M=n(12),T=n(1022),A=n(106),R=n(4),N=n(58),P=n(27);function I(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class F{constructor(t){I(this,"numHosp",0),I(this,"moneyLost",0),I(this,"rank",0),I(this,"maxRank",0),I(this,"skillPoints",0),I(this,"totalSkillPoints",0),I(this,"teamSize",0),I(this,"teamLost",0),I(this,"hpLost",0),I(this,"storedCycles",0),I(this,"randomEventCounter",Object(E.a)(240,600)),I(this,"actionTimeToComplete",0),I(this,"actionTimeCurrent",0),I(this,"actionTimeOverflow",0),I(this,"action",new r.a({type:i.a.Idle})),I(this,"cities",{}),I(this,"city",v.a.CityNames[2]),I(this,"skills",{}),I(this,"skillMultipliers",{}),I(this,"staminaBonus",0),I(this,"maxStamina",0),I(this,"stamina",0),I(this,"contracts",{}),I(this,"operations",{}),I(this,"blackops",{}),I(this,"logging",{general:!0,contracts:!0,ops:!0,blackops:!0,events:!0}),I(this,"automateEnabled",!1),I(this,"automateActionHigh",new r.a({type:i.a.Idle})),I(this,"automateThreshHigh",0),I(this,"automateActionLow",new r.a({type:i.a.Idle})),I(this,"automateThreshLow",0),I(this,"consoleHistory",[]),I(this,"consoleLogs",["Bladeburner Console","Type 'help' to see console commands"]);for(let t=0;tthis.rank)return{error:"Tried to start a Black Operation without the rank requirement"};const n=[];for(const t of Object.keys(s.a))s.a.hasOwnProperty(t)&&n.push(t);n.sort((function(t,e){return s.a[t].reqdRank-s.a[e].reqdRank}));const a=n.indexOf(t.name);return-1===a?{error:`Invalid Black Op: '${name}'`}:a>0&&null==this.blackops[n[a-1]]?{error:`Preceding Black Op must be completed before starting '${t.name}'.`}:{isAvailable:!0,action:e}}startAction(t,e){if(null!=e)switch(this.action=e,this.actionTimeCurrent=0,e.type){case i.a.Idle:this.actionTimeToComplete=0;break;case i.a.Contract:try{const t=this.getActionObject(e);if(null==t)throw new Error("Failed to get Contract Object for: "+e.name);if(t.count<1)return this.resetAction();this.actionTimeToComplete=t.getActionTime(this)}catch(t){Object(b.a)(t)}break;case i.a.Operation:try{const t=this.getActionObject(e);if(null==t)throw new Error("Failed to get Operation Object for: "+e.name);if(t.count<1)return this.resetAction();if("Raid"===e.name&&0===this.getCurrentCity().comms)return this.resetAction();this.actionTimeToComplete=t.getActionTime(this)}catch(t){Object(b.a)(t)}break;case i.a.BlackOp:case i.a.BlackOperation:try{const t=this.canAttemptBlackOp(e);if(!t.isAvailable){this.resetAction(),this.log("Error: "+t.error);break}if(void 0===t.action)throw new Error("action should not be null");this.actionTimeToComplete=t.action.getActionTime(this)}catch(t){Object(b.a)(t)}break;case i.a.Recruitment:this.actionTimeToComplete=this.getRecruitmentTime(t);break;case i.a.Training:case i.a.FieldAnalysis:case i.a["Field Analysis"]:this.actionTimeToComplete=30;break;case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:this.actionTimeToComplete=60;break;default:throw new Error("Invalid Action Type in startAction(Bladeburner,player, ): "+e.type)}}upgradeSkill(t){const e=t.name;if(this.skills[e]?++this.skills[e]:this.skills[e]=1,isNaN(this.skills[e])||this.skills[e]<0)throw new Error("Level of Skill "+e+" is invalid: "+this.skills[e]);this.updateSkillMultipliers()}executeConsoleCommands(t,e){try{this.consoleHistory[this.consoleHistory.length-1]!=e&&(this.consoleHistory.push(e),this.consoleHistory.length>50&&this.consoleHistory.splice(0,1));const n=e.split(";");for(let e=0;e100&&this.consoleLogs.shift())}log(t){this.postToConsole(`[${Object(T.a)()}] ${t}`)}resetAction(){this.action=new r.a({type:i.a.Idle})}clearConsole(){this.consoleLogs.length=0}prestige(){this.resetAction();const t=x.a[R.a.Bladeburners];this.rank>=v.a.RankNeededForFaction&&Object(A.d)(t)}storeCycles(t=0){this.storedCycles+=t}getActionIdFromTypeAndName(t="",e=""){if(""===t||""===e)return null;const n=new r.a,a=t.toLowerCase().trim(),o=e.toLowerCase().trim();switch(a){case"contract":case"contracts":case"contr":return n.type=i.a.Contract,this.contracts.hasOwnProperty(e)?(n.name=e,n):null;case"operation":case"operations":case"op":case"ops":return n.type=i.a.Operation,this.operations.hasOwnProperty(e)?(n.name=e,n):null;case"blackoperation":case"black operation":case"black operations":case"black op":case"black ops":case"blackop":case"blackops":return n.type=i.a.BlackOp,s.a.hasOwnProperty(e)?(n.name=e,n):null;case"general":case"general action":case"gen":break;default:return null}if(a.startsWith("gen")){switch(o){case"training":n.type=i.a.Training,n.name="Training";break;case"recruitment":case"recruit":n.type=i.a.Recruitment,n.name="Recruitment";break;case"field analysis":case"fieldanalysis":n.type=i.a["Field Analysis"],n.name="Field Analysis";break;case"diplomacy":n.type=i.a.Diplomacy,n.name="Diplomacy";break;case"hyperbolic regeneration chamber":n.type=i.a["Hyperbolic Regeneration Chamber"],n.name="Hyperbolic Regeneration Chamber";break;case"incite violence":n.type=i.a["Incite Violence"],n.name="Incite Violence";break;default:return null}return n}return null}executeStartConsoleCommand(t,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");const n=e[2];switch(e[1].toLowerCase()){case"general":case"gen":null!=u.a[n]?(this.action.type=i.a[n],this.action.name=n,this.startAction(t,this.action)):this.postToConsole("Invalid action name specified: "+e[2]);break;case"contract":case"contracts":null!=this.contracts[n]?(this.action.type=i.a.Contract,this.action.name=n,this.startAction(t,this.action)):this.postToConsole("Invalid contract name specified: "+e[2]);break;case"ops":case"op":case"operations":case"operation":null!=this.operations[n]?(this.action.type=i.a.Operation,this.action.name=n,this.startAction(t,this.action)):this.postToConsole("Invalid Operation name specified: "+e[2]);break;case"blackops":case"blackop":case"black operations":case"black operation":null!=s.a[n]?(this.action.type=i.a.BlackOperation,this.action.name=n,this.startAction(t,this.action)):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]")}}executeSkillConsoleCommand(t){switch(t.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"===t[1].toLowerCase()){this.postToConsole("Skills: ");const t=Object.keys(h.a);for(let e=0;e=n.maxLvl?this.postToConsole(`This skill ${n.name} is already at max level (${t}/${n.maxLvl}).`):this.skillPoints>=a?(this.skillPoints-=a,this.upgradeSkill(n),this.log(n.name+" upgraded to Level "+this.skills[e])):this.postToConsole("You do not have enough Skill Points to upgrade this. You need "+Object(m.d)(a,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")}}executeLogConsoleCommand(t){if(t.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");let e=!0;switch(t[1].toLowerCase().includes("d")&&(e=!1),t[2].toLowerCase()){case"general":case"gen":this.logging.general=e,this.log("Logging "+(e?"enabled":"disabled")+" for general actions");break;case"contract":case"contracts":this.logging.contracts=e,this.log("Logging "+(e?"enabled":"disabled")+" for Contracts");break;case"ops":case"op":case"operations":case"operation":this.logging.ops=e,this.log("Logging "+(e?"enabled":"disabled")+" for Operations");break;case"blackops":case"blackop":case"black operations":case"black operation":this.logging.blackops=e,this.log("Logging "+(e?"enabled":"disabled")+" for BlackOps");break;case"event":case"events":this.logging.events=e,this.log("Logging "+(e?"enabled":"disabled")+" for events");break;case"all":this.logging.general=e,this.logging.contracts=e,this.logging.ops=e,this.logging.blackops=e,this.logging.events=e,this.log("Logging "+(e?"enabled":"disabled")+" for everything");break;default:this.postToConsole("Invalid action/event type specified: "+t[2]),this.postToConsole("Examples of valid action/event identifiers are: [general, contracts, ops, blackops, events]")}}executeHelpConsoleCommand(t){if(1===t.length)for(const t of y.a.helpList)this.postToConsole(t);else for(let e=1;e0&&(i*=Object(E.a)(2,4),--a.comms,++n.comms);const o=Math.round(a.pop*i);a.pop-=o,n.pop+=o}triggerPotentialMigration(t,e){(null==e||isNaN(e))&&console.error("Invalid 'chance' parameter passed into Bladeburner.triggerPotentialMigration()"),e>1&&(e/=100),Math.random()=1){let a;a=t?Math.ceil(n/2):Math.floor(n);const r=Object(E.a)(0,a);this.teamSize-=r,this.teamLost+=r,this.logging.ops&&r>0&&this.log("Lost "+Object(m.d)(r,0)+" team members during this "+e.name)}const a=this.getCurrentCity();switch(e.name){case"Investigation":t?a.improvePopulationEstimateByPercentage(.4*this.skillMultipliers.successChanceEstimate):this.triggerPotentialMigration(this.city,.1);break;case"Undercover Operation":t?a.improvePopulationEstimateByPercentage(.8*this.skillMultipliers.successChanceEstimate):this.triggerPotentialMigration(this.city,.15);break;case"Sting Operation":t&&a.changePopulationByPercentage(-.1,{changeEstEqually:!0,nonZero:!0}),a.changeChaosByCount(.1);break;case"Raid":if(t)a.changePopulationByPercentage(-1,{changeEstEqually:!0,nonZero:!0}),--a.comms;else{const t=Object(E.a)(-10,-5)/10;a.changePopulationByPercentage(t,{nonZero:!0,changeEstEqually:!1})}a.changeChaosByPercentage(Object(E.a)(1,5));break;case"Stealth Retirement Operation":t&&a.changePopulationByPercentage(-.5,{changeEstEqually:!0,nonZero:!0}),a.changeChaosByPercentage(Object(E.a)(-3,-1));break;case"Assassination":t&&a.changePopulationByCount(-1,{estChange:-1,estOffset:0}),a.changeChaosByPercentage(Object(E.a)(-5,5));break;default:throw new Error("Invalid Action name in completeOperation: "+this.action.name)}}getActionObject(t){switch(t.type){case i.a.Contract:return this.contracts[t.name];case i.a.Operation:return this.operations[t.name];case i.a.BlackOp:case i.a.BlackOperation:return s.a[t.name];case i.a.Training:return u.a.Training;case i.a["Field Analysis"]:return u.a["Field Analysis"];case i.a.Recruitment:return u.a.Recruitment;case i.a.Diplomacy:return u.a.Diplomacy;case i.a["Hyperbolic Regeneration Chamber"]:return u.a["Hyperbolic Regeneration Chamber"];case i.a["Incite Violence"]:return u.a["Incite Violence"];default:return null}}completeContract(t){if(this.action.type!==i.a.Contract)throw new Error("completeContract() called even though current action is not a Contract");const e=this.getCurrentCity();if(t)switch(this.action.name){case"Tracking":e.improvePopulationEstimateByCount(Object(E.a)(100,1e3));break;case"Bounty Hunter":e.changePopulationByCount(-1,{estChange:-1,estOffset:0}),e.changeChaosByCount(.02);break;case"Retirement":e.changePopulationByCount(-1,{estChange:-1,estOffset:0}),e.changeChaosByCount(.04);break;default:throw new Error("Invalid Action name in completeContract: "+this.action.name)}}completeAction(t,e){switch(this.action.type){case i.a.Contract:case i.a.Operation:try{const t=this.action.type===i.a.Operation,n=this.getActionObject(this.action);if(null==n)throw new Error("Failed to get Contract/Operation Object for: "+this.action.name);const a=n.getDifficulty(),r=Math.pow(a,v.a.DiffMultExponentialFactor)+a/v.a.DiffMultLinearFactor,o=Math.pow(n.rewardFac,n.level-1);if(this.stamina-=v.a.BaseStaminaLoss*r,this.stamina<0&&(this.stamina=0),n.attempt(this)){this.gainActionStats(e,n,!0),++n.successes,--n.count;let a=0;if(t||(a=v.a.ContractBaseMoneyGain*o*this.skillMultipliers.money,e.gainMoney(a,"bladeburner")),t?n.setMaxLevel(v.a.OperationSuccessesPerLevel):n.setMaxLevel(v.a.ContractSuccessesPerLevel),n.rankGain){const r=Object(w.a)(n.rankGain*o*_.a.BladeburnerRank,10);this.changeRank(e,r),t&&this.logging.ops?this.log(n.name+" successfully completed! Gained "+Object(m.d)(r,3)+" rank"):!t&&this.logging.contracts&&this.log(n.name+" contract successfully completed! Gained "+Object(m.d)(r,3)+" rank and "+k.a.formatMoney(a))}t?this.completeOperation(!0):this.completeContract(!0)}else{this.gainActionStats(e,n,!1),++n.failures;let a=0,i=0;if(n.rankLoss&&(a=Object(w.a)(n.rankLoss*o,10),this.changeRank(e,-1*a)),n.hpLoss){i=n.hpLoss*r,i=Math.ceil(Object(w.a)(i,10)),this.hpLost+=i;const t=Object(C.a)(e,i);e.takeDamage(i)&&(++this.numHosp,this.moneyLost+=t)}let s="";a>0&&(s+="Lost "+Object(m.d)(a,3)+" rank. "),i>0&&(s+="Took "+Object(m.d)(i,0)+" damage."),t&&this.logging.ops?this.log(n.name+" failed! "+s):!t&&this.logging.contracts&&this.log(n.name+" contract failed! "+s),t?this.completeOperation(!1):this.completeContract(!1)}n.autoLevel&&(n.level=n.maxLevel),this.startAction(e,this.action)}catch(t){Object(b.a)(t)}break;case i.a.BlackOp:case i.a.BlackOperation:try{const n=this.getActionObject(this.action);if(null==n||!(n instanceof l.a))throw new Error("Failed to get BlackOperation Object for: "+this.action.name);const a=n.getDifficulty(),r=Math.pow(a,v.a.DiffMultExponentialFactor)+a/v.a.DiffMultLinearFactor;this.stamina-=v.a.BaseStaminaLoss*r,this.stamina<0&&(this.stamina=0);const i=n.teamCount;let o;if(n.attempt(this)){this.gainActionStats(e,n,!0),n.count=0,this.blackops[n.name]=!0;let a=0;if(n.rankGain&&(a=Object(w.a)(n.rankGain*_.a.BladeburnerRank,10),this.changeRank(e,a)),o=Math.ceil(i/2),n.name===N.a.OperationDaedalus)return this.resetAction(),t.toBitVerse(!1,!1);this.logging.blackops&&this.log(n.name+" successful! Gained "+Object(m.d)(a,1)+" rank")}else{this.gainActionStats(e,n,!1);let t=0,a=0;if(n.rankLoss&&(t=Object(w.a)(n.rankLoss,10),this.changeRank(e,-1*t)),n.hpLoss){a=n.hpLoss*r,a=Math.ceil(Object(w.a)(a,10));const t=Object(C.a)(e,a);e.takeDamage(a)&&(++this.numHosp,this.moneyLost+=t)}o=Math.floor(i),this.logging.blackops&&this.log(n.name+" failed! Lost "+Object(m.d)(t,1)+" rank and took "+Object(m.d)(a,0)+" damage")}if(this.resetAction(),i>=1){const t=Object(E.a)(1,o);this.teamSize-=t,this.teamLost+=t,this.logging.blackops&&this.log("You lost "+Object(m.d)(t,0)+" team members during "+n.name)}}catch(t){Object(b.a)(t)}break;case i.a.Training:{this.stamina-=.5*v.a.BaseStaminaLoss;const t=30*e.strength_exp_mult,n=30*e.defense_exp_mult,a=30*e.dexterity_exp_mult,r=30*e.agility_exp_mult,i=.04*this.skillMultipliers.stamina;e.gainStrengthExp(t),e.gainDefenseExp(n),e.gainDexterityExp(a),e.gainAgilityExp(r),this.staminaBonus+=i,this.logging.general&&this.log("Training completed. Gained: "+Object(m.d)(t,1)+" str exp, "+Object(m.d)(n,1)+" def exp, "+Object(m.d)(a,1)+" dex exp, "+Object(m.d)(r,1)+" agi exp, "+Object(m.d)(i,3)+" max stamina"),this.startAction(e,this.action);break}case i.a.FieldAnalysis:case i.a["Field Analysis"]:{let t=.04*Math.pow(e.hacking,.3)+.04*Math.pow(e.intelligence,.9)+.02*Math.pow(e.charisma,.3);if(t*=e.bladeburner_analysis_mult,isNaN(t)||t<0)throw new Error("Field Analysis Effectiveness calculated to be NaN or negative");const n=20*e.hacking_exp_mult,a=20*e.charisma_exp_mult,r=.1*_.a.BladeburnerRank;e.gainHackingExp(n),e.gainIntelligenceExp(v.a.BaseIntGain),e.gainCharismaExp(a),this.changeRank(e,r),this.getCurrentCity().improvePopulationEstimateByPercentage(t*this.skillMultipliers.successChanceEstimate),this.logging.general&&this.log(`Field analysis completed. Gained ${Object(m.d)(r,2)} rank, `+Object(m.d)(n,1)+" hacking exp, and "+Object(m.d)(a,1)+" charisma exp"),this.startAction(e,this.action);break}case i.a.Recruitment:{const t=this.getRecruitmentSuccessChance(e);if(Math.random()=a){const t=Math.floor((this.maxRank-a)/v.a.RanksPerSkillPoint+1);this.skillPoints+=t,this.totalSkillPoints+=t}}processAction(t,e,n){if(this.action.type!==i.a.Idle){if(this.actionTimeToComplete<=0)throw new Error(`Invalid actionTimeToComplete value: ${this.actionTimeToComplete}, type; ${this.action.type}`);if(!(this.action instanceof r.a))throw new Error("Bladeburner.action is not an ActionIdentifier Object");return this.actionTimeCurrent+=n+this.actionTimeOverflow,this.actionTimeOverflow=0,this.actionTimeCurrent>=this.actionTimeToComplete?(this.actionTimeOverflow=this.actionTimeCurrent-this.actionTimeToComplete,this.completeAction(t,e)):void 0}}calculateStaminaGainPerSecond(t){const e=t.agility*this.skillMultipliers.effAgi,n=this.maxStamina/v.a.MaxStaminaToGainFactor;return(v.a.StaminaGainPerSecond+n)*Math.pow(e,.17)*(this.skillMultipliers.stamina*t.bladeburner_stamina_gain_mult)}calculateMaxStamina(t){const e=t.agility*this.skillMultipliers.effAgi,n=(Math.pow(e,.8)+this.staminaBonus)*this.skillMultipliers.stamina*t.bladeburner_max_stamina_mult;if(this.maxStamina!==n){const t=this.maxStamina;this.maxStamina=n,this.stamina=this.maxStamina*this.stamina/t}if(isNaN(n))throw new Error("Max Stamina calculated to be NaN in Bladeburner.calculateMaxStamina()")}create(){this.contracts.Tracking=new f.a({name:"Tracking",baseDifficulty:125,difficultyFac:1.02,rewardFac:1.041,rankGain:.3,hpLoss:.5,count:Object(E.a)(25,150),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 f.a({name:"Bounty Hunter",baseDifficulty:250,difficultyFac:1.04,rewardFac:1.085,rankGain:.9,hpLoss:1,count:Object(E.a)(5,150),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 f.a({name:"Retirement",baseDifficulty:200,difficultyFac:1.03,rewardFac:1.065,rankGain:.6,hpLoss:1,count:Object(E.a)(5,150),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 c.a({name:"Investigation",baseDifficulty:400,difficultyFac:1.03,rewardFac:1.07,reqdRank:25,rankGain:2.2,rankLoss:.2,count:Object(E.a)(1,100),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 c.a({name:"Undercover Operation",baseDifficulty:500,difficultyFac:1.04,rewardFac:1.09,reqdRank:100,rankGain:4.4,rankLoss:.4,hpLoss:2,count:Object(E.a)(1,100),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 c.a({name:"Sting Operation",baseDifficulty:650,difficultyFac:1.04,rewardFac:1.095,reqdRank:500,rankGain:5.5,rankLoss:.5,hpLoss:2.5,count:Object(E.a)(1,150),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 c.a({name:"Raid",baseDifficulty:800,difficultyFac:1.045,rewardFac:1.1,reqdRank:3e3,rankGain:55,rankLoss:2.5,hpLoss:50,count:Object(E.a)(1,150),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 c.a({name:"Stealth Retirement Operation",baseDifficulty:1e3,difficultyFac:1.05,rewardFac:1.11,reqdRank:2e4,rankGain:22,rankLoss:2,hpLoss:10,count:Object(E.a)(1,150),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 c.a({name:"Assassination",baseDifficulty:1500,difficultyFac:1.06,rewardFac:1.14,reqdRank:5e4,rankGain:44,rankLoss:4,hpLoss:5,count:Object(E.a)(1,150),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})}process(t,e){if(t.isInitialized){if(t.page()!==g.a.BitVerse&&this.blackops.hasOwnProperty(N.a.OperationDaedalus))return t.toBitVerse(!1,!1);if(!e.hasAugmentation(M.a.BladesSimulacrum,!0)&&e.isWorking){if(this.action.type!==i.a.Idle){let t="Your Bladeburner action was cancelled because you started doing something else.";this.automateEnabled&&(t+="

Your automation was disabled as well. You will have to re-enable it through the Bladeburner console",this.automateEnabled=!1),O.a.SuppressBladeburnerPopup||Object(L.a)(t)}this.resetAction()}if(this.stamina<=0&&(this.log("Your Bladeburner action was cancelled because your stamina hit 0"),this.resetAction()),this.storedCycles>=v.a.CyclesPerSecond){let n=Math.floor(this.storedCycles/v.a.CyclesPerSecond);n=Math.min(n,5),this.storedCycles-=n*v.a.CyclesPerSecond,this.calculateMaxStamina(e),this.stamina+=this.calculateStaminaGainPerSecond(e)*n,this.stamina=Math.min(this.maxStamina,this.stamina);for(const t of Object.values(this.contracts)){const e=o.a[t.name];if(void 0===e)throw new Error(`growth formula for action '${t.name}' is undefined`);t.count+=n*e()/v.a.ActionCountGrowthPeriod}for(const t of Object.values(this.operations)){const e=o.a[t.name];if(void 0===e)throw new Error(`growth formula for action '${t.name}' is undefined`);void 0!==e&&(t.count+=n*e()/v.a.ActionCountGrowthPeriod)}for(const t of v.a.CityNames){const e=this.cities[t];if(!(e instanceof p.a))throw new Error("Invalid City object when processing passive chaos reduction in Bladeburner.process");e.chaos-=1e-4*n,e.chaos=Math.max(0,e.chaos)}this.randomEventCounter-=n,this.randomEventCounter<=0&&(this.randomEvent(),this.randomEventCounter+=Object(E.a)(240,600)),this.processAction(t,e,n),this.automateEnabled&&(this.stamina<=this.automateThreshLow?this.action.name===this.automateActionLow.name&&this.action.type===this.automateActionLow.type||(this.action=new r.a({type:this.automateActionLow.type,name:this.automateActionLow.name}),this.startAction(e,this.action)):this.stamina>=this.automateThreshHigh&&(this.action.name===this.automateActionHigh.name&&this.action.type===this.automateActionHigh.type||(this.action=new r.a({type:this.automateActionHigh.type,name:this.automateActionHigh.name}),this.startAction(e,this.action))))}}}getTypeAndNameFromActionId(t){const e={type:"",name:""},n=Object.keys(i.a);for(let a=0;ar),!1;if(o.type===i.a.BlackOp){const t=this.canAttemptBlackOp(o);if(!t.isAvailable)return a.log("bladeburner.startAction",()=>t.error+""),!1}try{return this.startAction(t,o),a.log("bladeburner.startAction",()=>`Starting bladeburner action with type '${e}' and name '${n}'`),!0}catch(t){return this.resetAction(),a.log("bladeburner.startAction",()=>r),!1}}getActionTimeNetscriptFn(t,e,n,a){const r=`Invalid action: type='${e}' name='${n}'`,o=this.getActionIdFromTypeAndName(e,n);if(null==o)return a.log("bladeburner.getActionTime",()=>r),-1;const s=this.getActionObject(o);if(null==s)return a.log("bladeburner.getActionTime",()=>r),-1;switch(o.type){case i.a.Contract:case i.a.Operation:case i.a.BlackOp:case i.a.BlackOperation:return 1e3*s.getActionTime(this);case i.a.Training:case i.a["Field Analysis"]:case i.a.FieldAnalysis:return 3e4;case i.a.Recruitment:return 1e3*this.getRecruitmentTime(t);case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:return 6e4;default:return a.log("bladeburner.getActionTime",()=>r),-1}}getActionEstimatedSuccessChanceNetscriptFn(t,e,n,a){const r=`Invalid action: type='${e}' name='${n}'`,o=this.getActionIdFromTypeAndName(e,n);if(null==o)return a.log("bladeburner.getActionEstimatedSuccessChance",()=>r),[-1,-1];const s=this.getActionObject(o);if(null==s)return a.log("bladeburner.getActionEstimatedSuccessChance",()=>r),[-1,-1];switch(o.type){case i.a.Contract:case i.a.Operation:case i.a.BlackOp:case i.a.BlackOperation:return s.getEstSuccessChance(this);case i.a.Training:case i.a["Field Analysis"]:case i.a.FieldAnalysis:case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:return[1,1];case i.a.Recruitment:{const e=this.getRecruitmentSuccessChance(t);return[e,e]}default:return a.log("bladeburner.getActionEstimatedSuccessChance",()=>r),[-1,-1]}}getActionCountRemainingNetscriptFn(t,e,n){const a=`Invalid action: type='${t}' name='${e}'`,r=this.getActionIdFromTypeAndName(t,e);if(null==r)return n.log("bladeburner.getActionCountRemaining",()=>a),-1;const o=this.getActionObject(r);if(null==o)return n.log("bladeburner.getActionCountRemaining",()=>a),-1;switch(r.type){case i.a.Contract:case i.a.Operation:return Math.floor(o.count);case i.a.BlackOp:case i.a.BlackOperation:return null!=this.blackops[e]?0:1;case i.a.Training:case i.a.Recruitment:case i.a["Field Analysis"]:case i.a.FieldAnalysis:case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:return 1/0;default:return n.log("bladeburner.getActionCountRemaining",()=>a),-1}}getSkillLevelNetscriptFn(t,e){return""!==t&&h.a.hasOwnProperty(t)?null==this.skills[t]?0:this.skills[t]:(e.log("bladeburner.getSkillLevel",()=>`Invalid skill: '${t}'`),-1)}getSkillUpgradeCostNetscriptFn(t,e){if(""===t||!h.a.hasOwnProperty(t))return e.log("bladeburner.getSkillUpgradeCost",()=>`Invalid skill: '${t}'`),-1;const n=h.a[t];return null==this.skills[t]?n.calculateCost(0):n.calculateCost(this.skills[t])}upgradeSkillNetscriptFn(t,e){const n=`Invalid skill: '${t}'`;if(!h.a.hasOwnProperty(t))return e.log("bladeburner.upgradeSkill",()=>n),!1;const a=h.a[t];let r=0;this.skills[t]&&!isNaN(this.skills[t])&&(r=this.skills[t]);const i=a.calculateCost(r);return a.maxLvl&&r>=a.maxLvl?(e.log("bladeburner.upgradeSkill",()=>`Skill '${t}' is already maxed.`),!1):this.skillPoints`You do not have enough skill points to upgrade ${t} (You have ${this.skillPoints}, you need ${i})`),!1):(this.skillPoints-=i,this.upgradeSkill(a),e.log("bladeburner.upgradeSkill",()=>`'${t}' upgraded to level ${this.skills[t]}`),!0)}getTeamSizeNetscriptFn(t,e,n){if(""===t&&""===e)return this.teamSize;const a=`Invalid action: type='${t}' name='${e}'`,r=this.getActionIdFromTypeAndName(t,e);if(null==r)return n.log("bladeburner.getTeamSize",()=>a),-1;const o=this.getActionObject(r);return null==o?(n.log("bladeburner.getTeamSize",()=>a),-1):r.type===i.a.Operation||r.type===i.a.BlackOp||r.type===i.a.BlackOperation?o.teamCount:0}setTeamSizeNetscriptFn(t,e,n,a){const r=`Invalid action: type='${t}' name='${e}'`,o=this.getActionIdFromTypeAndName(t,e);if(null==o)return a.log("bladeburner.setTeamSize",()=>r),-1;if(o.type!==i.a.Operation&&o.type!==i.a.BlackOp&&o.type!==i.a.BlackOperation)return a.log("bladeburner.setTeamSize",()=>"Only valid for 'Operations' and 'BlackOps'"),-1;const s=this.getActionObject(o);if(null==s)return a.log("bladeburner.setTeamSize",()=>r),-1;let l=Math.round(n);return isNaN(l)||l<0?(a.log("bladeburner.setTeamSize",()=>"Invalid size: "+n),-1):(this.teamSize`Team size for '${e}' set to ${l}.`),l)}joinBladeburnerFactionNetscriptFn(t){const e=x.a[R.a.Bladeburners];return!!e.isMember||(this.rank>=v.a.RankNeededForFaction?(Object(A.d)(e),t.log("bladeburner.joinBladeburnerFaction",()=>`Joined ${R.a.Bladeburners} faction.`),!0):(t.log("bladeburner.joinBladeburnerFaction",()=>`You do not have the required rank (${this.rank}/${v.a.RankNeededForFaction}).`),!1))}toJSON(){return Object(a.b)("Bladeburner",this)}static fromJSON(t){return Object(a.a)(F,t.data)}}a.c.constructors.Bladeburner=F},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return c}));var a=n(18),r=n(41);function i(t,e,n,i){return t*r.a.MoneyGainPerLevel*Math.pow(1.035,e-1)*((n+5)/6)*i*a.a.HacknetNodeMoney}function o(t,e=1,n=1){const a=Math.round(e);if(isNaN(a)||a<1)return 0;if(t>=r.a.MaxLevel)return 1/0;const i=r.a.UpgradeLevelMult;let o=0,s=t;for(let t=0;t=r.a.MaxRam)return 1/0;let i=0,o=Math.round(Math.log2(t)),s=t;for(let t=0;t=r.a.MaxCores)return 1/0;const i=r.a.CoreBaseCost,o=r.a.UpgradeCoreMult;let s=0,l=t;for(let t=0;t1e10;return e&&Object(r.a)(a.createElement(a.Fragment,null,"Alright cheater get out of here. You're not allowed here anymore.")),e}class s extends a.Component{win(t,e){t.gainMoney(e,"casino")}reachedLimit(t){const e=t.getCasinoWinnings()>1e10;return e&&Object(r.a)(a.createElement(a.Fragment,null,"Alright cheater get out of here. You're not allowed here anymore.")),e}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const a=!1,r=!0,i={O:[[r,r],[r,r]],I:[[r,r,r,r]],L:[[a,a,r],[r,r,r]],J:[[r,a,a],[r,r,r]],S:[[a,r,r],[r,r,a]],Z:[[r,r,a],[a,r,r]],T:[[r,r,r],[a,r,a]]}},,,,,function(t,e,n){"use strict";function a(t,e,n){function a(t,e,a){function r(t,e,n){return(1-n)*t+n*e}for(const i of Object.keys(t))n[i]=r(t[i],e[i],a);return t}return e<0?a(t.Trivial,t.Trivial,0):e>=0&&e<1?a(t.Trivial,t.Normal,e):e>=1&&e<2?a(t.Normal,t.Hard,e-1):e>=2&&e<3?a(t.Hard,t.Impossible,e-2):a(t.Impossible,t.Impossible,0)}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(0),r=n.n(a);function i(t){return Object(a.useEffect)(()=>{function e(e){if(!e.isTrusted)return;t.onKeyDown.bind(this)(e)}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),r.a.createElement(r.a.Fragment,null)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n(5),i=n(121),o=n(146);const s=Object(i.a)(t=>Object(o.a)({money:{color:t.colors.money}}));function l({hashes:t}){const e=s();return a.createElement("span",{className:e.money},"number"==typeof t?r.a.formatHashes(t):t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(10),r=n(212),i=n(41),o=n(14),s=n(28),l=n(384);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class f{constructor(t="",e=1){c(this,"cores",1),c(this,"level",1),c(this,"moneyGainRatePerSecond",0),c(this,"onlineTimeSeconds",0),c(this,"ram",1),c(this,"totalMoneyGenerated",0),this.name=t,this.updateMoneyGainRate(e)}calculateCoreUpgradeCost(t=1,e){return Object(r.a)(this.cores,t,e)}calculateLevelUpgradeCost(t=1,e){return Object(r.b)(this.level,t,e)}calculateRamUpgradeCost(t=1,e){return Object(r.e)(this.ram,t,e)}process(t=1){const e=t*a.a.MilliPerCycle/1e3;let n=this.moneyGainRatePerSecond*e;return isNaN(n)&&(console.error(`Hacknet Node ${this.name} calculated earnings of NaN`),n=0),this.totalMoneyGenerated+=n,this.onlineTimeSeconds+=e,n}upgradeCore(t=1,e){this.cores=Math.min(i.a.MaxCores,Math.round(this.cores+t)),this.updateMoneyGainRate(e)}upgradeLevel(t=1,e){this.level=Math.min(i.a.MaxLevel,Math.round(this.level+t)),this.updateMoneyGainRate(e)}upgradeRam(t=1,e){for(let e=0;eu())return 1/0;const n=Math.max(0,Math.log(e)/Math.log(2)-6);return e*o.a.BaseCostFor1GBOfRamServer*i.a.PurchasedServerCost*Math.pow(i.a.PurchasedServerSoftcap,n)}function f(){return Math.round(o.a.PurchasedServerLimit*i.a.PurchasedServerLimit)}function u(){const t=Math.round(o.a.PurchasedServerMaxRam*i.a.PurchasedServerMaxRam);return 1<<31-Math.clz32(t)}function m(t,e,n,i){if(!i.canAfford(n))return void Object(s.a)("You don't have enough money to purchase this server!");if(i.purchasedServers.length>=f())return void Object(s.a)("You have reached the maximum limit of "+f()+" servers. You cannot purchase any more. You can delete some of your purchased servers using the deleteServer() Netscript function in a script");if(""==t)return void Object(s.a)("You must enter a hostname for your new server!");const o=Object(r.g)({adminRights:!0,hostname:t,ip:Object(a.e)(),isConnectedTo:!1,maxRam:e,organizationName:"",purchasedByPlayer:!0});Object(a.a)(o),i.purchasedServers.push(o.hostname);const l=i.getHomeComputer();l.serversOnNetwork.push(o.hostname),o.serversOnNetwork.push(l.hostname),i.loseMoney(n,"servers"),Object(s.a)("Server successfully purchased with hostname "+o.hostname)}function h(t){const e=t.getUpgradeHomeRamCost();if(!t.canAfford(e))return void Object(s.a)("You do not have enough money to purchase additional RAM for your home computer");const n=t.getHomeComputer();n.maxRam>=o.a.HomeComputerMaxRam?Object(s.a)("You cannot upgrade your home computer RAM because it is at its maximum possible value"):(n.maxRam*=2,t.loseMoney(e,"servers"))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return l}));var a=n(14),r=n(28),i=n(83);class o{get filename(){return this.fn}set filename(t){this.fn=t}constructor(t="",e=""){this.fn=(t.endsWith(".txt")?t:t+".txt").replace(/\s+/g,""),this.text=e}append(t){this.text+=t}download(){const t=this.fn,e=new Blob([this.text],{type:"text/plain"}),n=window.navigator;if(n.msSaveOrOpenBlob)n.msSaveOrOpenBlob(e,t);else{const t=document.createElement("a"),n=URL.createObjectURL(e);t.href=n,t.download=this.fn,document.body.appendChild(t),t.click(),setTimeout(()=>{document.body.removeChild(t),window.URL.revokeObjectURL(n)},0)}}read(){return this.text}show(){Object(a.a)(`${this.fn}

${this.text}`)}toJSON(){return Object(r.b)("TextFile",this)}write(t){this.text=t}static fromJSON(t){return Object(r.a)(o,t.data)}}function s(t,e){let n=t.endsWith(".txt")?t:t+".txt";Object(i.h)(n)&&(n=Object(i.k)(n));for(const t of e.textFiles)if(t.fn===n)return t;return null}function l(t,e,n){if(null!==s(t,n))return void console.error(`A file named "${t}" already exists on server ${n.hostname}.`);const a=new o(t,e);return n.textFiles.push(a),a}r.c.constructors.TextFile=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(246),r=n(139);const i={};i[r.a.BladesIntuition]=new a.a({name:r.a.BladesIntuition,desc:"Each level of this skill increases your success chance for all Contracts, Operations, and BlackOps by 3%",baseCost:3,costInc:2.1,successChanceAll:3}),i[r.a.Cloak]=new a.a({name:r.a.Cloak,desc:"Each level of this skill increases your success chance in stealth-related Contracts, Operations, and BlackOps by 5.5%",baseCost:2,costInc:1.1,successChanceStealth:5.5}),i[r.a.ShortCircuit]=new a.a({name:r.a.ShortCircuit,desc:"Each level of this skill increases your success chance in Contracts, Operations, and BlackOps that involve retirement by 5.5%",baseCost:2,costInc:2.1,successChanceKill:5.5}),i[r.a.DigitalObserver]=new a.a({name:r.a.DigitalObserver,desc:"Each level of this skill increases your success chance in all Operations and BlackOps by 4%",baseCost:2,costInc:2.1,successChanceOperation:4}),i[r.a.Tracer]=new a.a({name:r.a.Tracer,desc:"Each level of this skill increases your success chance in all Contracts by 4%",baseCost:2,costInc:2.1,successChanceContract:4}),i[r.a.Overclock]=new a.a({name:r.a.Overclock,desc:"Each level of this skill decreases the time it takes to attempt a Contract, Operation, and BlackOp by 1% (Max Level: 90)",baseCost:3,costInc:1.4,maxLvl:90,actionTime:1}),i[r.a.Reaper]=new a.a({name:r.a.Reaper,desc:"Each level of this skill increases your effective combat stats for Bladeburner actions by 2%",baseCost:2,costInc:2.1,effStr:2,effDef:2,effDex:2,effAgi:2}),i[r.a.EvasiveSystem]=new a.a({name:r.a.EvasiveSystem,desc:"Each level of this skill increases your effective dexterity and agility for Bladeburner actions by 4%",baseCost:2,costInc:2.1,effDex:4,effAgi:4}),i[r.a.Datamancer]=new a.a({name:r.a.Datamancer,desc:"Each level of this skill increases your effectiveness in synthoid population analysis and investigation by 5%. This affects all actions that can potentially increase the accuracy of your synthoid population/community estimates.",baseCost:3,costInc:1,successChanceEstimate:5}),i[r.a.CybersEdge]=new a.a({name:r.a.CybersEdge,desc:"Each level of this skill increases your max stamina by 2%",baseCost:1,costInc:3,stamina:2}),i[r.a.HandsOfMidas]=new a.a({name:r.a.HandsOfMidas,desc:"Each level of this skill increases the amount of money you receive from Contracts by 10%",baseCost:2,costInc:2.5,money:10}),i[r.a.Hyperdrive]=new a.a({name:r.a.Hyperdrive,desc:"Each level of this skill increases the experience earned from Contracts, Operations, and BlackOps by 10%",baseCost:1,costInc:2.5,expGain:10})},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return c}));var a=n(153),r=n(76),i=n(10);function o(t,e,n){if(isNaN(e)||e<=0||!(t instanceof a.a))return null;e=Math.min(e,t.maxShares);return n===r.a.Long?e*t.getAskPrice()+i.a.StockMarketCommission:e*t.getBidPrice()+i.a.StockMarketCommission}function s(t,e,n){if(isNaN(e)||e<=0||!(t instanceof a.a))return null;e=Math.min(e,t.maxShares);if(n===r.a.Long)return e*t.getBidPrice()-i.a.StockMarketCommission;return e*t.playerAvgShortPx+((t.playerAvgShortPx-t.getAskPrice())*e-i.a.StockMarketCommission)}function l(t,e){if(isNaN(e)||e<=0||!(t instanceof a.a))return;e=Math.min(e,t.maxShares);const n=t.shareTxUntilMovement;if(e<=n)return t.shareTxUntilMovement-=e,void(t.shareTxUntilMovement<=0&&(t.shareTxUntilMovement=t.shareTxForMovement,t.influenceForecast(.006),t.influenceForecastForecast(t.mv/100*.006)));const r=e-n;let i=1+Math.ceil(r/t.shareTxForMovement);t.shareTxUntilMovement=t.shareTxForMovement-(e-t.shareTxUntilMovement)%t.shareTxForMovement,(t.shareTxUntilMovement===t.shareTxForMovement||t.shareTxUntilMovement<=0)&&(++i,t.shareTxUntilMovement=t.shareTxForMovement);const o=.006*(i-1),s=o*(t.mv/100);t.influenceForecast(o),t.influenceForecastForecast(s)}function c(t,e,n){if(!(t instanceof a.a))return 0;const o=e===r.a.Long,s=n-i.a.StockMarketCommission,l=o?t.getAskPrice():t.getBidPrice();return Math.floor(s/l)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(184),r=n(1036);const i={};a.b.forEach(t=>{i[t.name]=new r.a(t.name,t.cost,t.upgType,t.mults)})},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return l}));var a=n(18),r=n(10);function i(){return r.a.MarketData4SCost*a.a.FourSigmaMarketDataCost}function o(){return r.a.MarketDataTixApi4SCost*a.a.FourSigmaMarketDataApiCost}function s(){return r.a.WSEAccountCost}function l(){return r.a.TIXAPICost}},,,,,function(t,e,n){"use strict";n.d(e,"c",(function(){return f})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return m}));var a=n(10),r=n(2),i=n(46),o=n(135),s=n(22),l=n(5),c=n(322);function f(t){const e=((new Date).getTime()-r.a.lastUpdate)/1e3;let n=t.onlineRunningTime/14400;n>=1&&(n=1);for(const n of Object.keys(t.dataMap))if(t.dataMap.hasOwnProperty(n)){if(0==t.dataMap[n][2]||null==t.dataMap[n][2])continue;const a=Object(s.d)(n);if(null==a)continue;const c=Math.round(.5*t.dataMap[n][2]/t.onlineRunningTime*e);t.log(`Called on ${a.hostname} ${c} times while offline`);const f=Object(s.d)(t.server);if(null===f)throw new Error("getServer of null key?");if(!(a instanceof i.a))throw new Error("trying to grow a non-normal server");const u=Object(o.f)(a,c,r.a,f.cpuCores);t.log(`'${a.hostname}' grown by ${l.a.format(100*u-100,"0.000000%")} while offline`)}const c=n*(t.onlineExpGained/t.onlineRunningTime)*e;r.a.gainHackingExp(c),t.offlineRunningTime+=e,t.offlineExpGained+=c;for(const n of Object.keys(t.dataMap))if(t.dataMap.hasOwnProperty(n)){if(0==t.dataMap[n][3]||null==t.dataMap[n][3])continue;const r=Object(s.d)(n);if(null==r)continue;if(!(r instanceof i.a))throw new Error("trying to weaken a non-normal server");const o=Object(s.d)(t.server);if(null===o)throw new Error("getServer of null key?");const l=Math.round(.5*t.dataMap[n][3]/t.onlineRunningTime*e);t.log(`Called weaken() on ${r.hostname} ${l} times while offline`);const c=1+(o.cpuCores-1)/16;r.weaken(a.a.ServerWeakenAmount*l*c)}}function u(t,e,n){for(let a=0;a{i[t.name]=new r.a(t.name,t.desc,t.isHacking,t.isCombat,t.params)})},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(200),r=n(180),i=n(28),o=n(266);function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class l{constructor(t={}){var e;s(this,"level",1),s(this,"sizeUsed",0),s(this,"smartSupplyEnabled",!1),s(this,"smartSupplyUseLeftovers",{}),s(this,"smartSupplyStore",0),this.loc=t.loc?t.loc:"",this.size=t.size?t.size:0,this.materials={Water:new a.a({name:"Water"}),Energy:new a.a({name:"Energy"}),Food:new a.a({name:"Food"}),Plants:new a.a({name:"Plants"}),Metal:new a.a({name:"Metal"}),Hardware:new a.a({name:"Hardware"}),Chemicals:new a.a({name:"Chemicals"}),Drugs:new a.a({name:"Drugs"}),Robots:new a.a({name:"Robots"}),AICores:new a.a({name:"AI Cores"}),RealEstate:new a.a({name:"Real Estate"})},this.smartSupplyUseLeftovers={Water:!0,Energy:!0,Food:!0,Plants:!0,Metal:!0,Hardware:!0,Chemicals:!0,Drugs:!0,Robots:!0,AICores:!0,RealEstate:!0},t.corp&&t.industry&&this.updateSize(t.corp,t.industry),null!==(e=t.corp)&&void 0!==e&&e.unlockUpgrades[1]&&(this.smartSupplyEnabled=!0)}updateMaterialSizeUsed(){this.sizeUsed=0;for(const t of Object.keys(this.materials)){const e=this.materials[t];r.a.hasOwnProperty(t)&&(this.sizeUsed+=e.qty*r.a[t])}this.sizeUsed>this.size&&console.warn("Warehouse size used greater than capacity, something went wrong")}updateSize(t,e){try{this.size=100*this.level*t.getStorageMultiplier()*e.getStorageMultiplier()}catch(t){Object(o.a)(t)}}toJSON(){return Object(i.b)("Warehouse",this)}static fromJSON(t){return Object(i.a)(l,t.data)}}i.c.constructors.Warehouse=l},function(t,e,n){"use strict";n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return c}));var a=n(10),r=n(18),i=n(421);function o(t){let e=1+t.favor/100;return isNaN(e)&&(e=1),e*r.a.FactionWorkRepGain}function s(t,e){return(t.hacking+t.intelligence/3)/a.a.MaxSkillLevel*t.faction_rep_mult*t.getIntelligenceBonus(1)*o(e)*Object(i.a)()}function l(t,e){return.9*(t.strength+t.defense+t.dexterity+t.agility+(t.hacking+t.intelligence)*Object(i.a)())/a.a.MaxSkillLevel/4.5*t.faction_rep_mult*o(e)*t.getIntelligenceBonus(1)}function c(t,e){return.9*(t.strength+t.defense+t.dexterity+t.agility+t.charisma+(t.hacking+t.intelligence)*Object(i.a)())/a.a.MaxSkillLevel/5.5*t.faction_rep_mult*o(e)*t.getIntelligenceBonus(1)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return h})),n.d(e,"b",(function(){return d}));var a=n(228),r=n(76),i=n(10),o=n(2),s=n(5),l=n(20),c=n(14),f=n(0);function u(t,e,n=null,u={}){if((e=Math.round(e))<=0)return!1;if(null==t||isNaN(e))return n?n.log("stock.buy",()=>`Invalid arguments: stock='${t}' shares='${e}'`):!0!==u.suppressDialog&&Object(c.a)("Failed to buy stock. This may be a bug, contact developer"),!1;const m=Object(a.b)(t,e,r.a.Long);if(null==m)return!1;if(o.a.money`You do not have enough money to purchase this position. You need ${s.a.formatMoney(m)}.`):!0!==u.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"You do not have enough money to purchase this. You need ",f.createElement(l.a,{money:m}))),!1;if(e+t.playerShares+t.playerShortShares>t.maxShares)return n?n.log("stock.buy",()=>`Purchasing '${e+t.playerShares+t.playerShortShares}' shares would exceed ${t.symbol}'s maximum (${t.maxShares}) number of shares`):!0!==u.suppressDialog&&Object(c.a)(`You cannot purchase this many shares. ${t.symbol} has a maximum of ${s.a.formatShares(t.maxShares)} shares.`),!1;const h=t.playerShares*t.playerAvgPx;o.a.loseMoney(m,"stock");const d=h+m-i.a.StockMarketCommission;if(t.playerShares=Math.round(t.playerShares+e),t.playerAvgPx=d/t.playerShares,Object(a.d)(t,e),null!=u.rerenderFn&&"function"==typeof u.rerenderFn&&u.rerenderFn(),n){const a=`Bought ${s.a.formatShares(e)} shares of ${t.symbol} for ${s.a.formatMoney(m)}. Paid ${s.a.formatMoney(i.a.StockMarketCommission)} in commission fees.`;n.log("stock.buy",()=>a)}else!0!==u.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"Bought ",s.a.formatShares(e)," shares of ",t.symbol," for ",f.createElement(l.a,{money:m}),". Paid"," ",f.createElement(l.a,{money:i.a.StockMarketCommission})," in commission fees."));return!0}function m(t,e,n=null,i={}){if(null==t||e<0||isNaN(e))return n?n.log("stock.sell",()=>`Invalid arguments: stock='${t}' shares='${e}'`):!0!==i.suppressDialog&&Object(c.a)("Failed to sell stock. This is probably due to an invalid quantity. Otherwise, this may be a bug, contact developer"),!1;if((e=Math.round(e))>t.playerShares&&(e=t.playerShares),0===e)return!1;const u=Object(a.c)(t,e,r.a.Long);if(null==u)return!1;let m=u-t.playerAvgPx*e;if(isNaN(m)&&(m=0),o.a.gainMoney(u,"stock"),n&&(n.scriptRef.onlineMoneyMade+=m,o.a.scriptProdSinceLastAug+=m),t.playerShares=Math.round(t.playerShares-e),0===t.playerShares&&(t.playerAvgPx=0),Object(a.d)(t,e),null!=i.rerenderFn&&"function"==typeof i.rerenderFn&&i.rerenderFn(),n){const a=`Sold ${s.a.formatShares(e)} shares of ${t.symbol}. After commissions, you gained a total of ${s.a.formatMoney(u)}.`;n.log("stock.sell",()=>a)}else!0!==i.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"Sold ",s.a.formatShares(e)," shares of ",t.symbol,". After commissions, you gained a total of"," ",f.createElement(l.a,{money:u}),"."));return!0}function h(t,e,n=null,u={}){if((e=Math.round(e))<=0)return!1;if(null==t||isNaN(e))return n?n.log("stock.short",()=>`Invalid arguments: stock='${t}' shares='${e}'`):!0!==u.suppressDialog&&Object(c.a)("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;const m=Object(a.b)(t,e,r.a.Short);if(null==m)return!1;if(o.a.money"You do not have enough money to purchase this short position. You need "+s.a.formatMoney(m)):!0!==u.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"You do not have enough money to purchase this short position. You need ",f.createElement(l.a,{money:m}))),!1;if(e+t.playerShares+t.playerShortShares>t.maxShares)return n?n.log("stock.short",()=>`This '${e+t.playerShares+t.playerShortShares}' short shares would exceed ${t.symbol}'s maximum (${t.maxShares}) number of shares.`):!0!==u.suppressDialog&&Object(c.a)(`You cannot purchase this many shares. ${t.symbol} has a maximum of ${t.maxShares} shares.`),!1;const h=t.playerShortShares*t.playerAvgShortPx;o.a.loseMoney(m,"stock");const d=h+m-i.a.StockMarketCommission;if(t.playerShortShares=Math.round(t.playerShortShares+e),t.playerAvgShortPx=d/t.playerShortShares,Object(a.d)(t,e),null!=u.rerenderFn&&"function"==typeof u.rerenderFn&&u.rerenderFn(),n){const a=`Bought a short position of ${s.a.formatShares(e)} shares of ${t.symbol} for ${s.a.formatMoney(m)}. Paid ${s.a.formatMoney(i.a.StockMarketCommission)} in commission fees.`;n.log("stock.short",()=>a)}else u.suppressDialog||Object(c.a)(f.createElement(f.Fragment,null,"Bought a short position of ",s.a.formatShares(e)," shares of ",t.symbol," for"," ",f.createElement(l.a,{money:m}),". Paid ",f.createElement(l.a,{money:i.a.StockMarketCommission})," in commission fees."));return!0}function d(t,e,n=null,i={}){if(null==t||isNaN(e)||e<0)return n?n.log("stock.sellShort",()=>`Invalid arguments: stock='${t}' shares='${e}'`):i.suppressDialog||Object(c.a)("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((e=Math.round(e))>t.playerShortShares&&(e=t.playerShortShares),0===e)return!1;const u=e*t.playerAvgShortPx,m=Object(a.c)(t,e,r.a.Short);if(null==m||isNaN(m)||null==u)return n?n.log("stock.sellShort",()=>"Failed to sell short position in a stock. This is probably either due to invalid arguments, or a bug"):i.suppressDialog||Object(c.a)("Failed to sell short position in a stock. This is probably either due to invalid arguments, or a bug"),!1;let h=m-u;if(isNaN(h)&&(h=0),o.a.gainMoney(m,"stock"),n&&(n.scriptRef.onlineMoneyMade+=h,o.a.scriptProdSinceLastAug+=h),t.playerShortShares=Math.round(t.playerShortShares-e),0===t.playerShortShares&&(t.playerAvgShortPx=0),Object(a.d)(t,e),null!=i.rerenderFn&&"function"==typeof i.rerenderFn&&i.rerenderFn(),n){const a=`Sold your short position of ${s.a.formatShares(e)} shares of ${t.symbol}. After commissions, you gained a total of `+s.a.formatMoney(m);n.log("stock.sellShort",()=>a)}else i.suppressDialog||Object(c.a)(f.createElement(f.Fragment,null,"Sold your short position of ",s.a.formatShares(e)," shares of ",t.symbol,". After commissions, you gained a total of ",f.createElement(l.a,{money:m})));return!0}},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return c})),n.d(e,"d",(function(){return f}));var a=n(0),r=n.n(a),i=n(6),o=n(375);class s{constructor(t,e){i.a.TimestampsFormat&&(t="["+Object(o.a)(i.a.TimestampsFormat)+"] "+t),this.text=t,this.color=e}}class l{constructor(t){i.a.TimestampsFormat&&(t=r.a.createElement(r.a.Fragment,null,"[",Object(o.a)(i.a.TimestampsFormat),"] ",t)),this.raw=t}}class c{constructor(t,e){i.a.TimestampsFormat&&(t="["+Object(o.a)(i.a.TimestampsFormat)+"] "+t),this.hostname=e,this.dashes=t}}class f{constructor(t,e,n){this.time=t,this.timeLeft=t,this.action=e,this.server=n}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(18);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class i{constructor(t={name:"foo",desc:"foo"}){if(r(this,"baseCost",1),r(this,"costInc",1),r(this,"maxLvl",0),r(this,"successChanceAll",0),r(this,"successChanceStealth",0),r(this,"successChanceKill",0),r(this,"successChanceContract",0),r(this,"successChanceOperation",0),r(this,"successChanceEstimate",0),r(this,"actionTime",0),r(this,"effHack",0),r(this,"effStr",0),r(this,"effDef",0),r(this,"effDex",0),r(this,"effAgi",0),r(this,"effCha",0),r(this,"stamina",0),r(this,"money",0),r(this,"expGain",0),!t.name)throw new Error("Failed to initialize Bladeburner Skill. No name was specified in ctor");if(!t.desc)throw new Error("Failed to initialize Bladeburner Skills. No desc was specified in ctor");this.name=t.name,this.desc=t.desc,this.baseCost=t.baseCost?t.baseCost:1,this.costInc=t.costInc?t.costInc:1,t.maxLvl&&(this.maxLvl=t.maxLvl),t.successChanceAll&&(this.successChanceAll=t.successChanceAll),t.successChanceStealth&&(this.successChanceStealth=t.successChanceStealth),t.successChanceKill&&(this.successChanceKill=t.successChanceKill),t.successChanceContract&&(this.successChanceContract=t.successChanceContract),t.successChanceOperation&&(this.successChanceOperation=t.successChanceOperation),t.successChanceEstimate&&(this.successChanceEstimate=t.successChanceEstimate),t.actionTime&&(this.actionTime=t.actionTime),t.effHack&&(this.effHack=t.effHack),t.effStr&&(this.effStr=t.effStr),t.effDef&&(this.effDef=t.effDef),t.effDex&&(this.effDex=t.effDex),t.effAgi&&(this.effAgi=t.effAgi),t.effCha&&(this.effCha=t.effCha),t.stamina&&(this.stamina=t.stamina),t.money&&(this.money=t.money),t.expGain&&(this.expGain=t.expGain)}calculateCost(t){return Math.floor((this.baseCost+t*this.costInc)*a.a.BladeburnerSkillCost)}getMultiplier(t){return"successChanceAll"===t?this.successChanceAll:"successChanceStealth"===t?this.successChanceStealth:"successChanceKill"===t?this.successChanceKill:"successChanceContract"===t?this.successChanceContract:"successChanceOperation"===t?this.successChanceOperation:"successChanceEstimate"===t?this.successChanceEstimate:"actionTime"===t?this.actionTime:"effHack"===t?this.effHack:"effStr"===t?this.effStr:"effDef"===t?this.effDef:"effDex"===t?this.effDex:"effAgi"===t?this.effAgi:"effCha"===t?this.effCha:"stamina"===t?this.stamina:"money"===t?this.money:"expGain"===t?this.expGain:0}}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(38),o=n(8),s=n(1);function l(t){return r.a.createElement(i.a,{open:t.open,onClose:t.onClose},r.a.createElement(r.a.Fragment,null,r.a.createElement(s.a,null,t.confirmationText),r.a.createElement(o.a,{onClick:()=>{t.onConfirm()}},"Confirm"),t.additionalButton&&r.a.createElement(r.a.Fragment,null,t.additionalButton)))}},function(t,e,n){"use strict";function a(t){const e=Object.assign({},{progress:0,totalTicks:20},t);e.progress=Math.max(Math.min(e.progress,1),0);const n=Math.max(Math.floor(e.progress/(1/e.totalTicks)),1),a=Math.max(e.totalTicks-n,0);return`[${"|".repeat(n)}${"-".repeat(a)}]`}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";function a(){try{return"4cc518f3"}catch(t){}return"DEV"}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(526),r=n(28),i=n(527);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let s=0;class l{constructor(t=null,e="",n="",a="",r=[]){o(this,"code",""),o(this,"filename",""),o(this,"url",""),o(this,"module",""),o(this,"dependencies",[]),o(this,"dependents",[]),o(this,"ramUsage",0),o(this,"server",""),this.filename=e,this.code=n,this.ramUsage=0,this.server=a,this.module="",this.moduleSequenceNumber=++s,""!==this.code&&null!==t&&this.updateRamUsage(t,r)}download(){const t=this.filename,e=new Blob([this.code],{type:"text/plain"}),n=window.navigator;if(n.msSaveOrOpenBlob)n.msSaveOrOpenBlob(e,t);else{const n=document.createElement("a"),a=URL.createObjectURL(e);n.href=a,n.download=t,document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(a)}),0)}}markUpdated(){this.module="",this.moduleSequenceNumber=++s}saveScript(t,e,n,a,r){this.code=l.formatCode(n),this.filename=e,this.server=a,this.updateRamUsage(t,r),this.markUpdated();for(const t of this.dependents){const[e]=r.filter(e=>e.filename===t.filename&&e.server==t.server);null!==e&&e.markUpdated()}}async updateRamUsage(t,e){const n=await Object(a.a)(t,this.code,e);n.cost>0&&(this.ramUsage=Object(i.a)(n.cost),this.ramUsageEntries=n.entries),this.markUpdated()}imports(){return[]}toJSON(){return Object(r.b)("Script",this)}static fromJSON(t){const e=Object(r.a)(l,t.data);return e.url="",e.dependents=[],e}static formatCode(t){return t.replace(/^\s+|\s+$/g,"")}}r.c.constructors.Script=l},,function(t,e,n){"use strict";function a(t){const e=[];for(let n=0;n13)throw new Error("Card instantiated with improper value: "+t)}formatValue(){switch(this.value){case 1:return"A";case 11:return"J";case 12:return"Q";case 13:return"K";default:return""+this.value}}isRedSuit(){return this.suit===a.Hearts||this.suit===a.Diamonds}getStringRepresentation(){return`${this.formatValue()} of ${this.suit}`}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(28);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class i{constructor(t={}){r(this,"name",""),r(this,"type",-1),t.name&&(this.name=t.name),t.type&&(this.type=t.type)}toJSON(){return Object(a.b)("ActionIdentifier",this)}static fromJSON(t){return Object(a.a)(i,t.data)}}a.c.constructors.ActionIdentifier=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(152);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class i{constructor(t,e){r(this,"lvl",1),r(this,"owned",!1);const n="BitNode"+t,i=a.a[n];if(null==i)throw new Error("Invalid Bit Node for this Source File");this.n=t,this.name=`Source-File ${t}: ${i.name}`,this.info=e}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return f}));var a=n(18),r=n(15),i=n(10),o=n(182),s=n(285);function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(){return{hack:0,str:0,def:0,dex:0,agi:0,cha:0,money:0}}class f{constructor(){l(this,"hacking",1),l(this,"strength",1),l(this,"defense",1),l(this,"dexterity",1),l(this,"agility",1),l(this,"charisma",1),l(this,"intelligence",1),l(this,"hp",10),l(this,"max_hp",10),l(this,"hacking_exp",0),l(this,"strength_exp",0),l(this,"defense_exp",0),l(this,"dexterity_exp",0),l(this,"agility_exp",0),l(this,"charisma_exp",0),l(this,"intelligence_exp",0),l(this,"hacking_mult",1),l(this,"strength_mult",1),l(this,"defense_mult",1),l(this,"dexterity_mult",1),l(this,"agility_mult",1),l(this,"charisma_mult",1),l(this,"hacking_exp_mult",1),l(this,"strength_exp_mult",1),l(this,"defense_exp_mult",1),l(this,"dexterity_exp_mult",1),l(this,"agility_exp_mult",1),l(this,"charisma_exp_mult",1),l(this,"hacking_chance_mult",1),l(this,"hacking_speed_mult",1),l(this,"hacking_money_mult",1),l(this,"hacking_grow_mult",1),l(this,"company_rep_mult",1),l(this,"faction_rep_mult",1),l(this,"crime_money_mult",1),l(this,"crime_success_mult",1),l(this,"work_money_mult",1),l(this,"hacknet_node_money_mult",1),l(this,"hacknet_node_purchase_cost_mult",1),l(this,"hacknet_node_ram_cost_mult",1),l(this,"hacknet_node_core_cost_mult",1),l(this,"hacknet_node_level_cost_mult",1),l(this,"bladeburner_max_stamina_mult",1),l(this,"bladeburner_stamina_gain_mult",1),l(this,"bladeburner_analysis_mult",1),l(this,"bladeburner_success_chance_mult",1),l(this,"infiltration_base_rep_increase",0),l(this,"infiltration_rep_mult",1),l(this,"infiltration_trade_mult",1),l(this,"infiltration_sell_mult",1),l(this,"infiltration_timer_mult",1),l(this,"infiltration_damage_reduction_mult",1),l(this,"augmentations",[]),l(this,"queuedAugmentations",[]),l(this,"city",r.a.Sector12)}applyAugmentation(t){for(const e of Object.keys(t.mults))null==this[e]?console.warn("Augmentation has unrecognized multiplier property: "+e):this[e]*=t.mults[e]}calculateStat(t,e=1){return Object(o.b)(t,e)}getFactionFieldWorkRepGain(){return.9*(this.hacking/i.a.MaxSkillLevel+this.strength/i.a.MaxSkillLevel+this.defense/i.a.MaxSkillLevel+this.dexterity/i.a.MaxSkillLevel+this.agility/i.a.MaxSkillLevel+this.charisma/i.a.MaxSkillLevel)/5.5*this.faction_rep_mult}getFactionHackingWorkRepGain(){return this.hacking/i.a.MaxSkillLevel*this.faction_rep_mult}getFactionSecurityWorkRepGain(){return.9*(this.hacking/i.a.MaxSkillLevel+this.strength/i.a.MaxSkillLevel+this.defense/i.a.MaxSkillLevel+this.dexterity/i.a.MaxSkillLevel+this.agility/i.a.MaxSkillLevel)/4.5*this.faction_rep_mult}resetMultipliers(){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.work_money_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.bladeburner_max_stamina_mult=1,this.bladeburner_stamina_gain_mult=1,this.bladeburner_analysis_mult=1,this.bladeburner_success_chance_mult=1,this.infiltration_base_rep_increase=0,this.infiltration_rep_mult=1,this.infiltration_trade_mult=1,this.infiltration_sell_mult=1,this.infiltration_timer_mult=1,this.infiltration_damage_reduction_mult=1}updateStatLevels(){this.hacking=Math.max(1,Math.floor(this.calculateStat(this.hacking_exp,this.hacking_mult*a.a.HackingLevelMultiplier))),this.strength=Math.max(1,Math.floor(this.calculateStat(this.strength_exp,this.strength_mult*a.a.StrengthLevelMultiplier))),this.defense=Math.max(1,Math.floor(this.calculateStat(this.defense_exp,this.defense_mult*a.a.DefenseLevelMultiplier))),this.dexterity=Math.max(1,Math.floor(this.calculateStat(this.dexterity_exp,this.dexterity_mult*a.a.DexterityLevelMultiplier))),this.agility=Math.max(1,Math.floor(this.calculateStat(this.agility_exp,this.agility_mult*a.a.AgilityLevelMultiplier))),this.charisma=Math.max(1,Math.floor(this.calculateStat(this.charisma_exp,this.charisma_mult*a.a.CharismaLevelMultiplier)));const t=this.hp/this.max_hp;this.max_hp=Math.floor(10+this.defense/10),this.hp=Math.round(this.max_hp*t)}getIntelligenceBonus(t){return Object(s.a)(this.intelligence,t)}}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(777);function o({children:t}){return r.a.createElement(i.MathJaxContext,{version:3,src:"dist/ext/MathJax-3.2.0/es5/tex-chtml.js"},r.a.createElement(i.MathJax,null,t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(14);function r(t){console.error(t),Object(a.a)("Caught an exception: "+t+"

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

Line Number: "+(t.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 save doesn't get corrupted")}},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r})),function(t){t[t.Export=0]="Export",t[t.SmartSupply=1]="SmartSupply",t[t.MarketResearchDemand=2]="MarketResearchDemand",t[t.MarketDataCompetition=3]="MarketDataCompetition",t[t.VeChain=4]="VeChain",t[t.ShadyAccounting=5]="ShadyAccounting",t[t.GovernmentPartnership=6]="GovernmentPartnership",t[t.WarehouseAPI=7]="WarehouseAPI",t[t.OfficeAPI=8]="OfficeAPI"}(a||(a={}));const r={[a.Export]:{index:0,price:2e10,name:"Export",desc:"Develop infrastructure to export your materials to your other facilities. This allows you to move materials around between different divisions and cities."},[a.SmartSupply]:{index:1,price:25e9,name:"Smart Supply",desc:"Use advanced AI to anticipate your supply needs. This allows you to purchase exactly however many materials you need for production."},[a.MarketResearchDemand]:{index:2,price:5e9,name:"Market Research - Demand",desc:"Mine and analyze market data to determine the demand of all resources. The demand attribute, which affects sales, will be displayed for every material and product."},[a.MarketDataCompetition]:{index:3,price:5e9,name:"Market Data - Competition",desc:"Mine and analyze market data to determine how much competition there is on the market for all resources. The competition attribute, which affects sales, will be displayed for every material and product."},[a.VeChain]:{index:4,price:1e10,name:"VeChain",desc:"Use AI and blockchain technology to identify where you can improve your supply chain systems. This upgrade will allow you to view a wide array of useful statistics about your Corporation."},[a.ShadyAccounting]:{index:5,price:5e14,name:"Shady Accounting",desc:"Utilize unscrupulous accounting practices and pay off government officials to save money on taxes. This reduces the dividend tax rate by 5%."},[a.GovernmentPartnership]:{index:6,price:2e15,name:"Government Partnership",desc:"Help national governments further their agendas in exchange for lowered taxes. This reduces the dividend tax rate by 10%"},[a.WarehouseAPI]:{index:7,price:5e10,name:"Warehouse API",desc:"Enables the warehouse API."},[a.OfficeAPI]:{index:8,price:5e10,name:"Office API",desc:"Enables the office API."}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var a=n(79);const r=t=>{const e=[];for(const[t,n]of Object.entries(a.a))n.isSpecial||e.push(t);return e.filter(e=>!t.hasAugmentation(e))},i=t=>1+(t.getIntelligenceBonus(3)-1)/3,o=(t,e)=>e.time/i(t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(141),r=n(58);const i={};i[r.a.OperationTyphoon]=new a.a({name:r.a.OperationTyphoon,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}),i[r.a.OperationZero]=new a.a({name:r.a.OperationZero,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}),i[r.a.OperationX]=new a.a({name:r.a.OperationX,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}),i[r.a.OperationTitan]=new a.a({name:r.a.OperationTitan,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}),i[r.a.OperationAres]=new a.a({name:r.a.OperationAres,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}),i[r.a.OperationArchangel]=new a.a({name:r.a.OperationArchangel,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}),i[r.a.OperationJuggernaut]=new a.a({name:r.a.OperationJuggernaut,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}),i[r.a.OperationRedDragon]=new a.a({name:r.a.OperationRedDragon,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}),i[r.a.OperationK]=new a.a({name:r.a.OperationK,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}),i[r.a.OperationDeckard]=new a.a({name:r.a.OperationDeckard,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}),i[r.a.OperationTyrell]=new a.a({name:r.a.OperationTyrell,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}),i[r.a.OperationWallace]=new a.a({name:r.a.OperationWallace,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}),i[r.a.OperationShoulderOfOrion]=new a.a({name:r.a.OperationShoulderOfOrion,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}),i[r.a.OperationHyron]=new a.a({name:r.a.OperationHyron,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}),i[r.a.OperationMorpheus]=new a.a({name:r.a.OperationMorpheus,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}),i[r.a.OperationIonStorm]=new a.a({name:r.a.OperationIonStorm,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}),i[r.a.OperationAnnihilus]=new a.a({name:r.a.OperationAnnihilus,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}),i[r.a.OperationUltron]=new a.a({name:r.a.OperationUltron,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}),i[r.a.OperationCenturion]=new a.a({name:r.a.OperationCenturion,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}}),i[r.a.OperationVindictus]=new a.a({name:r.a.OperationVindictus,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}}),i[r.a.OperationDaedalus]=new a.a({name:r.a.OperationDaedalus,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}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(120),r=n(28);class i{constructor(t){t?(this.id=t.fragment.id,this.x=t.x,this.y=t.y,this.highestCharge=0,this.numCharge=0,this.rotation=t.rotation):(this.id=-1,this.x=-1,this.y=-1,this.highestCharge=0,this.numCharge=0,this.rotation=0)}collide(t){const e=this.fragment(),n=t.fragment(),a=t.x-this.x,r=t.y-this.y,i=Math.max(e.shape.length,e.shape[0].length);for(let o=0;o[this.x+t[0],this.y+t[1]])}copy(){return Object.assign({},this)}toJSON(){return Object(r.b)("ActiveFragment",this)}static fromJSON(t){return Object(r.a)(i,t.data)}}r.c.constructors.ActiveFragment=i},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(10);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class i{constructor(t="",e,n=0,a=0,i=0,o=0,s={}){r(this,"difficulty",0),r(this,"karma",0),r(this,"kills",0),r(this,"money",0),r(this,"name",""),r(this,"time",0),r(this,"hacking_success_weight",0),r(this,"strength_success_weight",0),r(this,"defense_success_weight",0),r(this,"dexterity_success_weight",0),r(this,"agility_success_weight",0),r(this,"charisma_success_weight",0),r(this,"hacking_exp",0),r(this,"strength_exp",0),r(this,"defense_exp",0),r(this,"dexterity_exp",0),r(this,"agility_exp",0),r(this,"charisma_exp",0),r(this,"intelligence_exp",0),this.name=t,this.type=e,this.time=n,this.money=a,this.difficulty=i,this.karma=o,this.hacking_success_weight=s.hacking_success_weight?s.hacking_success_weight:0,this.strength_success_weight=s.strength_success_weight?s.strength_success_weight:0,this.defense_success_weight=s.defense_success_weight?s.defense_success_weight:0,this.dexterity_success_weight=s.dexterity_success_weight?s.dexterity_success_weight:0,this.agility_success_weight=s.agility_success_weight?s.agility_success_weight:0,this.charisma_success_weight=s.charisma_success_weight?s.charisma_success_weight:0,this.hacking_exp=s.hacking_exp?s.hacking_exp:0,this.strength_exp=s.strength_exp?s.strength_exp:0,this.defense_exp=s.defense_exp?s.defense_exp:0,this.dexterity_exp=s.dexterity_exp?s.dexterity_exp:0,this.agility_exp=s.agility_exp?s.agility_exp:0,this.charisma_exp=s.charisma_exp?s.charisma_exp:0,this.intelligence_exp=s.intelligence_exp?s.intelligence_exp:0,this.kills=s.kills?s.kills:0}commit(t,e,n=1,a=null){return n<=0&&(n=1),e.startCrime(t,this.type,this.hacking_exp/n,this.strength_exp/n,this.defense_exp/n,this.dexterity_exp/n,this.agility_exp/n,this.charisma_exp/n,this.money/n,this.time,a),this.time}successRate(t){let e=this.hacking_success_weight*t.hacking+this.strength_success_weight*t.strength+this.defense_success_weight*t.defense+this.dexterity_success_weight*t.dexterity+this.agility_success_weight*t.agility+this.charisma_success_weight*t.charisma+a.a.IntelligenceCrimeWeight*t.intelligence;return e/=a.a.MaxSkillLevel,e/=this.difficulty,e*=t.crime_success_mult,e*=t.getIntelligenceBonus(1),Math.min(e,1)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var a=n(42),r=n(110),i=n(2),o=n(6),s=n(10);function l(t,e,n,l,...c){const f=c.join("."),u=c.pop();if("string"!=typeof u)throw Object(r.b)(n,"Failure occured while wrapping netscript api");const m={makeRuntimeErrorMsg:e=>t.makeRuntimeErrorMsg(f,e),log:t=>{n.log(f,t)},workerScript:n,function:u,helper:{makeRuntimeErrorMsg:e=>t.makeRuntimeErrorMsg(f,e),string:(e,n)=>t.string(f,e,n),number:(e,n)=>t.number(f,e,n),city:(e,n)=>t.city(f,e,n),boolean:t.boolean,getServer:e=>t.getServer(e,f),checkSingularityAccess:()=>t.checkSingularityAccess(u),hack:t.hack,getValidPort:e=>t.getValidPort(f,e)}},h=o.a.InfinityLoopSafety;const d=function(t,...e){let n=t;for(const t of e)void 0===n[t]&&(n[t]={}),n=n[t];return n}(e,...c);Object.defineProperty(d,u,{value:function(...e){if(t.updateDynamicRam(m.function,Object(a.c)(i.a,...c,m.function)),h&&n.infiniteLoopSafetyCounter++,n.infiniteLoopSafetyCounter>s.a.InfiniteLoopLimit)throw new Error(`Infinite loop without sleep detected. ${s.a.InfiniteLoopLimit} ns functions were called without sleep. This will cause your UI to hang.`);return l(m)(...e)},writable:!0,enumerable:!0})}function c(t,e,n,a,...r){if("object"!=typeof a)throw new Error("Invalid namespace?");for(const i of Object.getOwnPropertyNames(a))switch(typeof a[i]){case"function":l(t,e,n,a[i],...r,i);break;case"object":c(t,e,n,a[i],...r,i);break;default:f(e,a[i],...r,i)}return e}function f(t,e,...n){let a=t;const r=n.pop();if("string"!=typeof r)throw new Error("Failure occured while wrapping netscript api (setNestedProperty)");for(const t of n)void 0===a[t]&&(a[t]={}),a=a[t];a[r]=e}},,,,,,,,,,function(t,e,n){"use strict";function a(t,e=1){return 1+e*Math.pow(t,.8)/600}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(1025),r=n(1026);const i={};for(const t of r.a)null!=i[(o=t).name]&&console.warn("Duplicate Research being defined: "+o.name),i[o.name]=new a.a(o);var o},,function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t[t.SYSTEM=0]="SYSTEM",t[t.INTERFACE=1]="INTERFACE",t[t.GAMEPLAY=2]="GAMEPLAY",t[t.MISC=3]="MISC"}(a||(a={}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(5),o=n(223);function s({hashes:t}){return r.a.createElement(o.a,{hashes:i.a.formatHashes(t)+" h / s"})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));class a{constructor(t,e){this.filename=t,this.msg=e}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n(538),i=n(29),o=n(8),s=n(21);function l(t){const e=i.b.Player();return a.createElement(a.Fragment,null,a.createElement(s.a,{title:a.createElement("span",{dangerouslySetInnerHTML:{__html:function(){const n=e.getNextCompanyPosition(t.company,t.entryPosType);return null==n?"":t.company.hasPosition(n)?Object(r.a)(t.company,n,!0):""}()}})},a.createElement(o.a,{onClick:t.onClick},t.text)))}},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a=new(n(125).a)},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"c",(function(){return g})),n.d(e,"e",(function(){return y})),n.d(e,"b",(function(){return b}));var a=n(2),r=n(91),i=n(83),o=n(85),s=n(99),l=n(22),c=n(112),f=n(6),u=n(604),m=n(10),h=n(252);function d(){navigator.userAgent.toLowerCase().indexOf(" electron/")>-1&&(document.achievements=[],function(){function e(t){return t=t.replace(/\/\/+/g,"/"),(t=Object(i.k)(t)).includes("/")&&(t="/"+Object(i.k)(t)),t}document.getFiles=function(){const t=Object(l.d)("home");return null===t?{res:!1,msg:"Home server does not exist."}:{res:!0,data:{files:t.scripts.map(t=>({filename:t.filename,code:t.code,ramUsage:t.ramUsage}))}}},document.deleteFile=function(t){t=e(t);const n=Object(l.d)("home");return null===n?{res:!1,msg:"Home server does not exist."}:n.removeFile(t)},document.saveFile=function(n,r){var i;n=e(n),r=t.from(r,"base64").toString();const o=Object(l.d)("home");if(null===o)return{res:!1,msg:"Home server does not exist."};const{success:s,overwritten:c}=o.writeToScriptFile(a.a,n,r);let f;return s&&(f=o.getScript(n)),{res:s,data:{overwritten:c,ramUsage:null===(i=f)||void 0===i?void 0:i.ramUsage}}}}(),function(){const t={terminal:(t,e)=>{const n={info:o.a.info,warn:o.a.warn,error:o.a.error,success:o.a.success};let a;e&&(a=n[e]),a||(a=o.a.print),a.bind(o.a)(t)},toast:(t,e,n=2e3)=>s.b.emit(t,e,n)};window.appNotifier=t}(),function(){const t={triggerSave:()=>c.c.saveGame(!0),triggerGameExport:()=>{try{c.c.exportGame()}catch(t){console.log(t),s.b.emit("Could not export game.",s.d.ERROR,2e3)}},triggerScriptsExport:()=>Object(u.b)("*",a.a.getHomeComputer()),getSaveData:()=>({save:c.c.getSaveString(f.a.ExcludeRunningScriptsFromSave),fileName:c.c.getSaveFileName()}),getSaveInfo:async t=>{try{return(await c.c.getImportDataFromString(t)).playerData}catch(t){return void console.error(t)}},pushSaveData:(t,e=!1)=>r.b.toImportSave(t,e)};window.appSaveFns=t}(),function(){const t=window.electronBridge;if(!t)return;t.receive("get-save-data-request",()=>{const e=window.appSaveFns.getSaveData();t.send("get-save-data-response",e)}),t.receive("get-save-info-request",async e=>{const n=await window.appSaveFns.getSaveInfo(e);t.send("get-save-info-response",n)}),t.receive("push-save-request",({save:t,automatic:e=!1})=>{window.appSaveFns.pushSaveData(t,e)}),t.receive("trigger-save",()=>window.appSaveFns.triggerSave().then(()=>{t.send("save-completed")}).catch(t=>{console.log(t),s.b.emit("Could not save game.",s.d.ERROR,2e3)})),t.receive("trigger-game-export",()=>{try{window.appSaveFns.triggerGameExport()}catch(t){console.log(t),s.b.emit("Could not export game.",s.d.ERROR,2e3)}}),t.receive("trigger-scripts-export",()=>{try{window.appSaveFns.triggerScriptsExport()}catch(t){console.log(t),s.b.emit("Could not export scripts.",s.d.ERROR,2e3)}})}())}function p(t){const e=window.electronBridge;e&&e.send("push-game-saved",t)}function g(){const t=window.electronBridge;t&&t.send("push-game-ready",{player:{identifier:a.a.identifier,playtime:a.a.totalPlaytime,lastSave:a.a.lastSave},game:{version:m.a.VersionString,hash:Object(h.a)()}})}function y(t){const e=window.electronBridge;e&&(e.send("push-import-result",{wasImported:t}),b())}function b(){const t=window.electronBridge;t&&t.send("push-disable-restore",{duration:6e4})}}).call(this,n(165).Buffer)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return R})),n.d(e,"b",(function(){return N}));var a=n(12),r=n(139),i=n(227),o=n(10),s=n(52),l=n(109),c=n(26),f=n(81),u=n(188),m=n(41),h=n(57),d=n(224),p=n(93),g=n(15),y=n(2),b=n(66),E=n(22),v=n(89),k=n(46),_=n(91),w=n(25),S=n(1140),x=n(4),C=n(58),L=n(34);const O=S.a;function M(){const t=Object(E.d)(v.a.WorldDaemon);return t instanceof k.a&&(!!t.backdoorInstalled||null!==y.a.bladeburner&&y.a.bladeburner.blackops.hasOwnProperty(C.a.OperationDaedalus))}function T(t,e){return t.bitNodeN===e||t.sourceFiles.some(t=>t.n===e)}function A(t){return t.sourceFiles.some(t=>1===t.n)}const R={[x.a.CyberSec.toUpperCase()]:{...O[x.a.CyberSec.toUpperCase()],Icon:"CSEC",Condition:()=>y.a.factions.includes(x.a.CyberSec)},[x.a.NiteSec.toUpperCase()]:{...O[x.a.NiteSec.toUpperCase()],Icon:x.a.NiteSec,Condition:()=>y.a.factions.includes(x.a.NiteSec)},THE_BLACK_HAND:{...O.THE_BLACK_HAND,Icon:"TBH",Condition:()=>y.a.factions.includes(x.a.TheBlackHand)},[x.a.BitRunners.toUpperCase()]:{...O[x.a.BitRunners.toUpperCase()],Icon:x.a.BitRunners.toLowerCase(),Condition:()=>y.a.factions.includes(x.a.BitRunners)},[x.a.Daedalus.toUpperCase()]:{...O[x.a.Daedalus.toUpperCase()],Icon:x.a.Daedalus.toLowerCase(),Condition:()=>y.a.factions.includes(x.a.Daedalus)},THE_COVENANT:{...O.THE_COVENANT,Icon:x.a.TheCovenant.toLowerCase().replace(/ /g,""),Condition:()=>y.a.factions.includes(x.a.TheCovenant)},[x.a.Illuminati.toUpperCase()]:{...O[x.a.Illuminati.toUpperCase()],Icon:x.a.Illuminati.toLowerCase(),Condition:()=>y.a.factions.includes(x.a.Illuminati)},"BRUTESSH.EXE":{...O["BRUTESSH.EXE"],Icon:"p0",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.BruteSSHProgram.name)},"FTPCRACK.EXE":{...O["FTPCRACK.EXE"],Icon:"p1",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.FTPCrackProgram.name)},"RELAYSMTP.EXE":{...O["RELAYSMTP.EXE"],Icon:"p2",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.RelaySMTPProgram.name)},"HTTPWORM.EXE":{...O["HTTPWORM.EXE"],Icon:"p3",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.HTTPWormProgram.name)},"SQLINJECT.EXE":{...O["SQLINJECT.EXE"],Icon:"p4",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.SQLInjectProgram.name)},"FORMULAS.EXE":{...O["FORMULAS.EXE"],Icon:"formulas",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.Formulas.name)},"SF1.1":{...O["SF1.1"],Icon:"SF1.1",Visible:()=>T(y.a,1),Condition:()=>y.a.sourceFileLvl(1)>=1},"SF2.1":{...O["SF2.1"],Icon:"SF2.1",Visible:()=>T(y.a,2),Condition:()=>y.a.sourceFileLvl(2)>=1},"SF3.1":{...O["SF3.1"],Icon:"SF3.1",Visible:()=>T(y.a,3),Condition:()=>y.a.sourceFileLvl(3)>=1},"SF4.1":{...O["SF4.1"],Icon:"SF4.1",Visible:()=>T(y.a,4),Condition:()=>y.a.sourceFileLvl(4)>=1},"SF5.1":{...O["SF5.1"],Icon:"SF5.1",Visible:()=>T(y.a,5),Condition:()=>y.a.sourceFileLvl(5)>=1},"SF6.1":{...O["SF6.1"],Icon:"SF6.1",Visible:()=>T(y.a,6),Condition:()=>y.a.sourceFileLvl(6)>=1},"SF7.1":{...O["SF7.1"],Icon:"SF7.1",Visible:()=>T(y.a,7),Condition:()=>y.a.sourceFileLvl(7)>=1},"SF8.1":{...O["SF8.1"],Icon:"SF8.1",Visible:()=>T(y.a,8),Condition:()=>y.a.sourceFileLvl(8)>=1},"SF9.1":{...O["SF9.1"],Icon:"SF9.1",Visible:()=>T(y.a,9),Condition:()=>y.a.sourceFileLvl(9)>=1},"SF10.1":{...O["SF10.1"],Icon:"SF10.1",Visible:()=>T(y.a,10),Condition:()=>y.a.sourceFileLvl(10)>=1},"SF11.1":{...O["SF11.1"],Icon:"SF11.1",Visible:()=>T(y.a,11),Condition:()=>y.a.sourceFileLvl(11)>=1},"SF12.1":{...O["SF12.1"],Icon:"SF12.1",Visible:()=>T(y.a,12),Condition:()=>y.a.sourceFileLvl(12)>=1},MONEY_1Q:{...O.MONEY_1Q,Icon:"$1Q",Condition:()=>y.a.money>=1e18},MONEY_M1B:{...O.MONEY_M1B,Icon:"-1b",Secret:!0,Condition:()=>y.a.money<=-1e9},INSTALL_1:{...O.INSTALL_1,Icon:"install",Condition:()=>y.a.augmentations.length>=1},INSTALL_100:{...O.INSTALL_100,Icon:"install_100",Condition:()=>y.a.augmentations.length>=100},QUEUE_40:{...O.QUEUE_40,Icon:"queue40",Condition:()=>y.a.queuedAugmentations.length>=40},HACKING_100000:{...O.HACKING_100000,Icon:"hack100000",Condition:()=>y.a.hacking>=1e5},COMBAT_3000:{...O.COMBAT_3000,Icon:"combat3000",Condition:()=>y.a.strength>=3e3&&y.a.defense>=3e3&&y.a.dexterity>=3e3&&y.a.agility>=3e3},NEUROFLUX_255:{...O.NEUROFLUX_255,Icon:"nf255",Condition:()=>y.a.augmentations.some(t=>t.name===a.a.NeuroFluxGovernor&&t.level>=255)},NS2:{...O.NS2,Icon:"ns2",Condition:()=>y.a.getHomeComputer().scripts.some(t=>t.filename.endsWith(".js")||t.filename.endsWith(".ns"))},FROZE:{...O.FROZE,Icon:"forze",Condition:()=>location.href.includes("noScripts")},RUNNING_SCRIPTS_1000:{...O.RUNNING_SCRIPTS_1000,Icon:"run1000",Condition:()=>{let t=0;for(const e of Object(E.c)())t+=e.runningScripts.length;return t>=1e3}},DRAIN_SERVER:{...O.DRAIN_SERVER,Icon:"drain",Condition:()=>{for(const t of Object(E.c)())if(t instanceof k.a&&t.moneyMax>0&&0===t.moneyAvailable)return!0;return!1}},MAX_RAM:{...O.MAX_RAM,Icon:"maxram",Condition:()=>y.a.getHomeComputer().maxRam===o.a.HomeComputerMaxRam},MAX_CORES:{...O.MAX_CORES,Icon:"maxcores",Condition:()=>8===y.a.getHomeComputer().cpuCores},SCRIPTS_30:{...O.SCRIPTS_30,Icon:"folders",Condition:()=>y.a.getHomeComputer().scripts.length>=30},KARMA_1000000:{...O.KARMA_1000000,Icon:"karma",Secret:!0,Condition:()=>y.a.karma<=-1e6},STOCK_1q:{...O.STOCK_1q,Icon:"$1Q",Condition:()=>y.a.moneySourceB.stock>=1e15},DISCOUNT:{...O.DISCOUNT,Icon:"discount",Condition:()=>{const t=Object(E.d)("powerhouse-fitness");return t instanceof k.a&&t.backdoorInstalled}},SCRIPT_32GB:{...O.SCRIPT_32GB,Icon:"bigcost",Condition:()=>y.a.getHomeComputer().scripts.some(t=>t.ramUsage>=32)},FIRST_HACKNET_NODE:{...O.FIRST_HACKNET_NODE,Icon:"node",Condition:()=>!Object(h.g)(y.a)&&y.a.hacknetNodes.length>0},"30_HACKNET_NODE":{...O["30_HACKNET_NODE"],Icon:"hacknet-all",Condition:()=>!Object(h.g)(y.a)&&y.a.hacknetNodes.length>=30},MAX_HACKNET_NODE:{...O.MAX_HACKNET_NODE,Icon:"hacknet-max",Condition:()=>{if(Object(h.g)(y.a))return!1;for(const t of y.a.hacknetNodes){if(!(t instanceof d.a))return!1;if(t.ram===m.a.MaxRam&&t.cores===m.a.MaxCores&&t.level===m.a.MaxLevel)return!0}return!1}},HACKNET_NODE_10M:{...O.HACKNET_NODE_10M,Icon:"hacknet-10m",Condition:()=>!Object(h.g)(y.a)&&y.a.moneySourceB.hacknet>=1e7},REPUTATION_10M:{...O.REPUTATION_10M,Icon:"reputation",Condition:()=>Object.values(c.a).some(t=>t.playerReputation>=1e7)},DONATION:{...O.DONATION,Icon:"donation",Condition:()=>Object.values(c.a).some(t=>t.favor>=150)},TRAVEL:{...O.TRAVEL,Icon:"TRAVEL",Condition:()=>y.a.city!==g.a.Sector12},WORKOUT:{...O.WORKOUT,Icon:"WORKOUT",Condition:()=>[L.a.GymStrength,L.a.GymDefense,L.a.GymDexterity,L.a.GymAgility].includes(y.a.className)},TOR:{...O.TOR,Icon:"TOR",Condition:()=>y.a.hasTorRouter()},HOSPITALIZED:{...O.HOSPITALIZED,Icon:"OUCH",Condition:()=>0!==y.a.moneySourceB.hospitalization},GANG:{...O.GANG,Icon:"GANG",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang},FULL_GANG:{...O.FULL_GANG,Icon:"GANGMAX",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang&&y.a.gang.members.length===u.a.MaximumGangMembers},GANG_TERRITORY:{...O.GANG_TERRITORY,Icon:"GANG100%",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang&&f.a[y.a.gang.facName].territory>=.999},GANG_MEMBER_POWER:{...O.GANG_MEMBER_POWER,Icon:"GANG10000",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang&&y.a.gang.members.some(t=>t.hack>=1e4||t.str>=1e4||t.def>=1e4||t.dex>=1e4||t.agi>=1e4||t.cha>=1e4)},CORPORATION:{...O.CORPORATION,Icon:"CORP",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation},CORPORATION_BRIBE:{...O.CORPORATION_BRIBE,Icon:"CORPLOBBY",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation&&1===y.a.corporation.unlockUpgrades[6]},CORPORATION_PROD_1000:{...O.CORPORATION_PROD_1000,Icon:"CORP1000",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation&&y.a.corporation.divisions.some(t=>t.prodMult>=1e3)},CORPORATION_EMPLOYEE_3000:{...O.CORPORATION_EMPLOYEE_3000,Icon:"CORPCITY",Visible:()=>T(y.a,3),Condition:()=>{if(null===y.a.corporation)return!1;for(const t of y.a.corporation.divisions)for(const e of Object.values(t.offices))if(0!==e&&e.employees.length>=3e3)return!0;return!1}},CORPORATION_REAL_ESTATE:{...O.CORPORATION_REAL_ESTATE,Icon:"CORPRE",Name:"Own the land",Description:"Expand to the Real Estate division.",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation&&y.a.corporation.divisions.some(t=>t.type===s.a.RealEstate)},INTELLIGENCE_255:{...O.INTELLIGENCE_255,Icon:"INT255",Visible:()=>T(y.a,5),Condition:()=>y.a.intelligence>=255},BLADEBURNER_DIVISION:{...O.BLADEBURNER_DIVISION,Icon:"BLADE",Visible:()=>T(y.a,6),Condition:()=>null!==y.a.bladeburner},BLADEBURNER_OVERCLOCK:{...O.BLADEBURNER_OVERCLOCK,Icon:"BLADEOVERCLOCK",Visible:()=>T(y.a,6),Condition:()=>null!==y.a.bladeburner&&y.a.bladeburner.skills[r.a.Overclock]===i.a[r.a.Overclock].maxLvl},BLADEBURNER_UNSPENT_100000:{...O.BLADEBURNER_UNSPENT_100000,Icon:"BLADE100K",Visible:()=>T(y.a,6),Condition:()=>null!==y.a.bladeburner&&y.a.bladeburner.skillPoints>=1e5},"4S":{...O["4S"],Icon:"4S",Condition:()=>y.a.has4SData},FIRST_HACKNET_SERVER:{...O.FIRST_HACKNET_SERVER,Icon:"HASHNET",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.hacknetNodes.length>0,AdditionalUnlock:[O.FIRST_HACKNET_NODE.ID]},ALL_HACKNET_SERVER:{...O.ALL_HACKNET_SERVER,Icon:"HASHNETALL",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.hacknetNodes.length===m.b.MaxServers,AdditionalUnlock:[O["30_HACKNET_NODE"].ID]},MAX_HACKNET_SERVER:{...O.MAX_HACKNET_SERVER,Icon:"HASHNETALL",Visible:()=>T(y.a,9),Condition:()=>{if(!Object(h.g)(y.a))return!1;for(const t of y.a.hacknetNodes){if("string"!=typeof t)return!1;const e=Object(E.d)(t);if(!(e instanceof p.a))return!1;if(e.maxRam===m.b.MaxRam&&e.cores===m.b.MaxCores&&e.level===m.b.MaxLevel&&e.cache===m.b.MaxCache)return!0}return!1},AdditionalUnlock:[O.MAX_HACKNET_NODE.ID]},HACKNET_SERVER_1B:{...O.HACKNET_SERVER_1B,Icon:"HASHNETMONEY",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.moneySourceB.hacknet>=1e9,AdditionalUnlock:[O.HACKNET_NODE_10M.ID]},MAX_CACHE:{...O.MAX_CACHE,Icon:"HASHNETCAP",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.hashManager.hashes===y.a.hashManager.capacity&&y.a.hashManager.capacity>0},SLEEVE_8:{...O.SLEEVE_8,Icon:"SLEEVE8",Visible:()=>T(y.a,10),Condition:()=>8===y.a.sleeves.length&&3===y.a.sourceFileLvl(10)},INDECISIVE:{...O.INDECISIVE,Icon:"1H",Visible:()=>A(y.a),Condition:function(){let t=0;return setInterval(()=>{_.b.page()===w.a.BitVerse?t++:t=0},6e4),()=>t>60}()},FAST_BN:{...O.FAST_BN,Icon:"2DAYS",Visible:()=>A(y.a),Condition:()=>M()&&y.a.playtimeSinceLastBitnode<1728e5},CHALLENGE_BN1:{...O.CHALLENGE_BN1,Icon:"BN1+",Visible:()=>A(y.a),Condition:()=>1===y.a.bitNodeN&&M()&&y.a.getHomeComputer().maxRam<=128&&1===y.a.getHomeComputer().cpuCores},CHALLENGE_BN2:{...O.CHALLENGE_BN2,Icon:"BN2+",Visible:()=>T(y.a,2),Condition:()=>2===y.a.bitNodeN&&M()&&null===y.a.gang},CHALLENGE_BN3:{...O.CHALLENGE_BN3,Icon:"BN3+",Visible:()=>T(y.a,3),Condition:()=>3===y.a.bitNodeN&&M()&&null===y.a.corporation},CHALLENGE_BN6:{...O.CHALLENGE_BN6,Icon:"BN6+",Visible:()=>T(y.a,6),Condition:()=>6===y.a.bitNodeN&&M()&&null===y.a.bladeburner},CHALLENGE_BN7:{...O.CHALLENGE_BN7,Icon:"BN7+",Visible:()=>T(y.a,7),Condition:()=>7===y.a.bitNodeN&&M()&&null===y.a.bladeburner},CHALLENGE_BN8:{...O.CHALLENGE_BN8,Icon:"BN8+",Visible:()=>T(y.a,8),Condition:()=>8===y.a.bitNodeN&&M()&&!y.a.has4SData&&!y.a.has4SDataTixApi},CHALLENGE_BN9:{...O.CHALLENGE_BN9,Icon:"BN9+",Visible:()=>T(y.a,9),Condition:()=>9===y.a.bitNodeN&&M()&&0===y.a.moneySourceB.hacknet&&0===y.a.moneySourceB.hacknet_expenses},CHALLENGE_BN10:{...O.CHALLENGE_BN10,Icon:"BN10+",Visible:()=>T(y.a,10),Condition:()=>10===y.a.bitNodeN&&M()&&!y.a.sleeves.some(t=>t.augmentations.length>0||t.hacking_exp>0||t.strength_exp>0||t.defense_exp>0||t.agility_exp>0||t.dexterity_exp>0||t.charisma_exp>0)},CHALLENGE_BN12:{...O.CHALLENGE_BN12,Icon:"BN12+",Visible:()=>T(y.a,12),Condition:()=>y.a.sourceFileLvl(12)>=50},BYPASS:{...O.BYPASS,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.Bypass)},PROTOTYPETAMPERING:{...O.PROTOTYPETAMPERING,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.PrototypeTampering)},UNCLICKABLE:{...O.UNCLICKABLE,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.Unclickable)},UNDOCUMENTEDFUNCTIONCALL:{...O.UNDOCUMENTEDFUNCTIONCALL,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.UndocumentedFunctionCall)},TIMECOMPRESSION:{...O.TIMECOMPRESSION,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.TimeCompression)},REALITYALTERATION:{...O.REALITYALTERATION,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.RealityAlteration)},N00DLES:{...O.N00DLES,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.N00dles)},EDITSAVEFILE:{...O.EDITSAVEFILE,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.EditSaveFile)},UNACHIEVABLE:{...O.UNACHIEVABLE,Icon:"SF-1",Secret:!0,Condition:()=>!1},CHALLENGE_BN13:{...O.CHALLENGE_BN13,Icon:"BN13+",Visible:()=>T(y.a,13),Condition:()=>13===y.a.bitNodeN&&M()&&!y.a.augmentations.some(t=>t.name===a.a.StaneksGift1)},DEVMENU:{...O.DEVMENU,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.YoureNotMeantToAccessThis)},RAINBOW:{...O.RAINBOW,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.INeedARainbow)},TRUE_RECURSION:{...O.TRUE_RECURSION,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.TrueRecursion)}};function N(){const t=y.a.achievements.map(t=>t.ID),e=Object.values(R).filter(e=>!t.includes(e.ID)&&e.Condition()).flatMap(t=>[t.ID,...t.AdditionalUnlock||[]]);for(const t of e)y.a.giveAchievement(t);document.achievements=[...y.a.achievements.map(t=>t.ID)]}},function(t,e,n){"use strict";n.d(e,"b",(function(){return P})),n.d(e,"a",(function(){return I}));var a=n(0),r=n.n(a),i=n(132),o=n(121),s=n(146),l=n(5),c=n(127),f=n(1181),u=n(24),m=n(149),h=n(142),d=n(30),p=n(50),g=n(1),y=n(8),b=n(111),E=n(468),v=n.n(E),k=n(1183),_=n.n(k),w=n(6),S=n(29),x=n(394),C=n(18),L=n(21),O=n(19),M=n(34);function T(){const t=Object(i.a)(),e=S.b.Player(),n=P();if(0===e.intelligence)return r.a.createElement(r.a.Fragment,null);const a=e.calculateSkillProgress(e.intelligence_exp);return r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:n.cell}},r.a.createElement(g.a,{classes:{root:n.int}},"Int ")),r.a.createElement(d.a,{align:"right",classes:{root:n.cell}},r.a.createElement(g.a,{classes:{root:n.int}},l.a.formatSkill(e.intelligence))),r.a.createElement(d.a,{align:"right",classes:{root:n.cell}},r.a.createElement(g.a,{id:"overview-int-hook",classes:{root:n.int}}))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:a,color:t.colors.int})))}function A(){const t=S.b.Player(),e=P(),n=t.bladeburner;if(null===n)return r.a.createElement(r.a.Fragment,null);const a=n.getTypeAndNameFromActionId(n.action);return"Idle"===a.type?r.a.createElement(r.a.Fragment,null):r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:e.cellNone}},r.a.createElement(g.a,null,"Bladeburner:"))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:e.cellNone}},r.a.createElement(g.a,null,a.type,": ",a.name))))}function R({tooltip:t,children:e,onClickFocus:n,header:a}){const i=P();return r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:i.workCell}},r.a.createElement(L.a,{title:r.a.createElement(r.a.Fragment,null,t)},r.a.createElement(g.a,{className:i.workHeader,sx:{pt:1,pb:.5}},a)))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:i.workCell}},r.a.createElement(g.a,{className:i.workSubtitles},e))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",align:"center",colSpan:2,classes:{root:i.cellNone}},r.a.createElement(y.a,{sx:{mt:1},onClick:n},"Focus"))))}function N(){const t=S.b.Player(),e=S.b.Router();if(!t.isWorking||t.focus)return r.a.createElement(r.a.Fragment,null);let n=r.a.createElement(r.a.Fragment,null),a=r.a.createElement(r.a.Fragment,null),i=r.a.createElement(r.a.Fragment,null);switch(t.workType){case M.d.CompanyPartTime:case M.d.Company:n=r.a.createElement(r.a.Fragment,null,t.jobs[t.companyName]," at ",r.a.createElement("strong",null,t.companyName)),a=r.a.createElement(r.a.Fragment,null,"Working at ",r.a.createElement("strong",null,t.companyName)),i=r.a.createElement(r.a.Fragment,null,"+",r.a.createElement(c.a,{reputation:t.workRepGained})," rep");break;case M.d.Faction:n=r.a.createElement(r.a.Fragment,null,t.factionWorkType," for ",r.a.createElement("strong",null,t.currentWorkFactionName)),a=r.a.createElement(r.a.Fragment,null,"Working for ",r.a.createElement("strong",null,t.currentWorkFactionName)),i=r.a.createElement(r.a.Fragment,null,"+",r.a.createElement(c.a,{reputation:t.workRepGained})," rep");break;case M.d.StudyClass:n=r.a.createElement(r.a.Fragment,null,t.workType),a=r.a.createElement(r.a.Fragment,null,"You are ",t.className),i=r.a.createElement(r.a.Fragment,null,Object(u.b)(t.timeWorked));break;case M.d.CreateProgram:n=r.a.createElement(r.a.Fragment,null,"Coding ",t.createProgramName),a=r.a.createElement(r.a.Fragment,null,"Creating a program"),i=r.a.createElement(r.a.Fragment,null,t.createProgramName," ",(t.timeWorkedCreateProgram/t.timeNeededToCompleteWork*100).toFixed(2),"%");break;case M.d.GraftAugmentation:n=r.a.createElement(r.a.Fragment,null,"Grafting ",t.graftAugmentationName),a=r.a.createElement(r.a.Fragment,null,"Grafting an Augmentation"),i=r.a.createElement(r.a.Fragment,null,r.a.createElement("strong",null,(t.timeWorkedGraftAugmentation/t.timeNeededToCompleteWork*100).toFixed(2),"%")," ","done")}return r.a.createElement(R,{tooltip:n,header:a,onClickFocus:()=>{t.startFocusing(),e.toWork()}},i)}const P=Object(o.a)(t=>Object(s.a)({workCell:{textAlign:"center",maxWidth:"200px",borderBottom:"none",padding:0,margin:0},workHeader:{fontSize:"0.9rem"},workSubtitles:{fontSize:"0.8rem"},cellNone:{borderBottom:"none",padding:0,margin:0},cell:{padding:0,margin:0},hp:{color:t.colors.hp},money:{color:t.colors.money},hack:{color:t.colors.hack},combat:{color:t.colors.combat},cha:{color:t.colors.cha},int:{color:t.colors.int}}));function I({save:t,killScripts:e}){const[n,o]=Object(a.useState)(!1),s=S.b.Player(),c=Object(a.useState)(!1)[1];Object(a.useEffect)(()=>{const t=setInterval(()=>c(t=>!t),600);return()=>clearInterval(t)},[]);const u=P(),y=Object(i.a)(),E=s.calculateSkillProgress(s.hacking_exp,s.hacking_mult*C.a.HackingLevelMultiplier),k=s.calculateSkillProgress(s.strength_exp,s.strength_mult*C.a.StrengthLevelMultiplier),M=s.calculateSkillProgress(s.defense_exp,s.defense_mult*C.a.DefenseLevelMultiplier),R=s.calculateSkillProgress(s.dexterity_exp,s.dexterity_mult*C.a.DexterityLevelMultiplier),I=s.calculateSkillProgress(s.agility_exp,s.agility_mult*C.a.AgilityLevelMultiplier),F=s.calculateSkillProgress(s.charisma_exp,s.charisma_mult*C.a.CharismaLevelMultiplier);return r.a.createElement(r.a.Fragment,null,r.a.createElement(m.a,{sx:{display:"block",m:1}},r.a.createElement(h.a,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hp}},"HP ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hp}},l.a.formatHp(s.hp)," / ",l.a.formatHp(s.max_hp))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-hp-hook",classes:{root:u.hp}}))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.money}},"Money ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.money}},l.a.formatMoney(s.money))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-money-hook",classes:{root:u.money}}))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hack}},"Hack ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hack}},l.a.formatSkill(s.hacking)))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:E,color:y.colors.hack})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cell}},r.a.createElement(g.a,{classes:{root:u.hack}})),r.a.createElement(d.a,{align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-hack-hook",classes:{root:u.hack}}))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},"Str ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.strength))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-str-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:k,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},"Def ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.defense))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-def-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:M,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},"Dex ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.dexterity))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-dex-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:R,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cell}},r.a.createElement(g.a,{classes:{root:u.combat}},"Agi ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.agility))),r.a.createElement(d.a,{align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-agi-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:I,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.cha}},"Cha ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.cha}},l.a.formatSkill(s.charisma))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-cha-hook",classes:{root:u.cha}}))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:F,color:y.colors.cha})),r.a.createElement(T,null),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-extra-hook-0",classes:{root:u.hack}})),r.a.createElement(d.a,{component:"th",scope:"row",align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-extra-hook-1",classes:{root:u.hack}})),r.a.createElement(d.a,{component:"th",scope:"row",align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-extra-hook-2",classes:{root:u.hack}}))),r.a.createElement(N,null),r.a.createElement(A,null))),r.a.createElement(O.a,{sx:{display:"flex",borderTop:"1px solid "+w.a.theme.welllight}},r.a.createElement(O.a,{sx:{display:"flex",flex:1,justifyContent:"flex-start",alignItems:"center"}},r.a.createElement(b.a,{"aria-label":"save game",onClick:t},r.a.createElement(L.a,{title:0!==w.a.AutosaveInterval?"Save game":"Save game (auto-saves are disabled!)"},r.a.createElement(v.a,{color:0!==w.a.AutosaveInterval?"primary":"error"})))),r.a.createElement(O.a,{sx:{display:"flex",flex:1,justifyContent:"flex-end",alignItems:"center"}},r.a.createElement(b.a,{"aria-label":"kill all scripts",onClick:()=>o(!0)},r.a.createElement(L.a,{title:"Kill all running scripts"},r.a.createElement(_.a,{color:"error"}))))),r.a.createElement(f.a,{open:n,onClose:()=>o(!1),killScripts:e}))}},,,function(t,e,n){"use strict";function a(t,e){if(e<0||e>100)return t;const n=t*(e/100);return t+(Math.random()*(2*n)-n)}n.d(e,"a",(function(){return a}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));class a{constructor(t,e,n){this.program=t,this.price=e,this.description=n}}},,,,,,,,function(t,e,n){"use strict";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o}));const r=new class{constructor(){a(this,"m",1024),a(this,"a",341),a(this,"c",1),this.x=0,this.reset()}step(){this.x=(this.a*this.x+this.c)%this.m}random(){return this.step(),this.x/this.m}reset(){this.x=(new Date).getTime()%this.m}};class i{constructor(t){a(this,"s1",0),a(this,"s2",0),a(this,"s3",0);const e=t/1e3%3e4;this.s1=e,this.s2=e,this.s3=e}step(){this.s1=171*this.s1%30269,this.s2=172*this.s2%30307,this.s3=170*this.s3%30323}random(){return this.step(),(this.s1/30269+this.s2/30307+this.s3/30323)%1}}function o(t){let e=1779033703^t.length;for(let n=0;n>>19;const n=()=>(e=Math.imul(e^e>>>16,2246822507),e=Math.imul(e^e>>>13,3266489909),(e^=e>>>16)>>>0);let a=n(),r=n(),i=n(),o=n();return()=>{a>>>=0,r>>>=0,i>>>=0,o>>>=0;let t=a+r|0;return a=r^r>>>9,r=i+(i<<3)|0,i=i<<21|i>>>11,o=o+1|0,t=t+o|0,i=i+t|0,(t>>>0)/4294967296}}},,,,,,,function(t,e,n){"use strict";function a(t,e){if(t.length!==e.length)return!1;for(let n=0;nObject(o.a)({favor:{color:t.colors.rep}}));function l({favor:t}){const e=s();return a.createElement("span",{className:e.favor},"number"==typeof t?r.a.formatFavor(t):t)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var a=n(77),r=n(261),i=n(18),o=n(87),s=n(67),l=n(237),c=n(95),f=n(10),u=n(186),m=n(26),h=n(189),d=n(15),p=n(9),g=n(28);function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class b extends r.a{constructor(t=null){super(),y(this,"className",""),y(this,"crimeType",""),y(this,"currentTask",a.a.Idle),y(this,"currentTaskLocation",""),y(this,"currentTaskMaxTime",0),y(this,"currentTaskTime",0),y(this,"earningsForSleeves",Object(r.b)()),y(this,"earningsForPlayer",Object(r.b)()),y(this,"earningsForTask",Object(r.b)()),y(this,"factionWorkType",h.a.None),y(this,"gainRatesForTask",Object(r.b)()),y(this,"gymStatType",""),y(this,"logs",[]),y(this,"memory",1),y(this,"shock",1),y(this,"storedCycles",0),y(this,"sync",1),null!=t&&this.shockRecovery(t)}commitCrime(t,e){const n=o.a[e]||Object.values(o.a).find(t=>t.name===e);return!!n&&(this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus(),this.gainRatesForTask.hack=n.hacking_exp*this.hacking_exp_mult*i.a.CrimeExpGain,this.gainRatesForTask.str=n.strength_exp*this.strength_exp_mult*i.a.CrimeExpGain,this.gainRatesForTask.def=n.defense_exp*this.defense_exp_mult*i.a.CrimeExpGain,this.gainRatesForTask.dex=n.dexterity_exp*this.dexterity_exp_mult*i.a.CrimeExpGain,this.gainRatesForTask.agi=n.agility_exp*this.agility_exp_mult*i.a.CrimeExpGain,this.gainRatesForTask.cha=n.charisma_exp*this.charisma_exp_mult*i.a.CrimeExpGain,this.gainRatesForTask.money=n.money*this.crime_money_mult*i.a.CrimeMoney,this.currentTaskLocation=String(this.gainRatesForTask.money),this.crimeType=n.name,this.currentTaskMaxTime=n.time,this.currentTask=a.a.Crime,!0)}finishTask(t){let e=Object(r.b)();if(this.currentTask===a.a.Crime&&this.currentTaskTime>=this.currentTaskMaxTime){const n=Object.values(o.a).find(t=>t.name===this.crimeType);if(!n)return console.error("Invalid data stored in sleeve.crimeType: "+this.crimeType),this.resetTaskStatus(),e;if(Math.random()0&&(this.hacking_exp+=e.hack),e.str>0&&(this.strength_exp+=e.str),e.def>0&&(this.defense_exp+=e.def),e.dex>0&&(this.dexterity_exp+=e.dex),e.agi>0&&(this.agility_exp+=e.agi),e.cha>0&&(this.charisma_exp+=e.cha),Object(r.b)();const i=this.shock/100*(this.sync/100)*n,o=e.hack*i,s=e.str*i,l=e.def*i,c=e.dex*i,f=e.agi*i,u=e.cha*i;return o>0&&(this.hacking_exp+=o,t.gainHackingExp(o),this.earningsForPlayer.hack+=o,this.earningsForTask.hack+=o),s>0&&(this.strength_exp+=s,t.gainStrengthExp(s),this.earningsForPlayer.str+=s,this.earningsForTask.str+=s),l>0&&(this.defense_exp+=l,t.gainDefenseExp(l),this.earningsForPlayer.def+=l,this.earningsForTask.def+=l),c>0&&(this.dexterity_exp+=c,t.gainDexterityExp(c),this.earningsForPlayer.dex+=c,this.earningsForTask.dex+=c),f>0&&(this.agility_exp+=f,t.gainAgilityExp(f),this.earningsForPlayer.agi+=f,this.earningsForTask.agi+=f),u>0&&(this.charisma_exp+=u,t.gainCharismaExp(u),this.earningsForPlayer.cha+=u,this.earningsForTask.cha+=u),this.earningsForSleeves.hack+=o*(this.sync/100),this.earningsForSleeves.str+=s*(this.sync/100),this.earningsForSleeves.def+=l*(this.sync/100),this.earningsForSleeves.dex+=c*(this.sync/100),this.earningsForSleeves.agi+=f*(this.sync/100),this.earningsForSleeves.cha+=u*(this.sync/100),{hack:o*(this.sync/100),str:s*(this.sync/100),def:l*(this.sync/100),dex:c*(this.sync/100),agi:f*(this.sync/100),cha:u*(this.sync/100),money:0}}gainMoney(t,e,n=1){const a=e.money*n;this.earningsForTask.money+=a,this.earningsForPlayer.money+=a,t.gainMoney(a,"sleeves")}getMemoryUpgradeCost(t){const e=Math.round(t);if(e<0)return 0;if(this.memory+e>100)return this.getMemoryUpgradeCost(100-this.memory);let n=0,a=this.memory-1;for(let e=0;e50&&this.logs.shift()}prestige(t){this.hacking_exp=0,this.strength_exp=0,this.defense_exp=0,this.dexterity_exp=0,this.agility_exp=0,this.charisma_exp=0,this.resetTaskStatus(),this.earningsForSleeves=Object(r.b)(),this.earningsForPlayer=Object(r.b)(),this.shockRecovery(t),this.augmentations=[],this.resetMultipliers(),this.city=d.a.Sector12,this.shock=1,this.storedCycles=0,this.sync=Math.max(this.memory,1),this.logs=[]}process(t,e=1){const n=1e3/f.a.MilliPerCycle;if(this.storedCycles+=e,this.storedCyclesthis.currentTaskMaxTime&&(o=this.currentTaskMaxTime-this.currentTaskTime,i=Math.floor(o/f.a.MilliPerCycle),(o<0||i<0)&&(console.warn("Sleeve.process() calculated negative cycle usage"),o=0,i=0)),this.currentTaskTime+=o,this.shock=Math.min(100,this.shock+1e-4*i);let c=Object(r.b)();switch(this.currentTask){case a.a.Idle:break;case a.a.Class:case a.a.Gym:this.updateTaskGainRates(t),c=this.gainExperience(t,this.gainRatesForTask,i),this.gainMoney(t,this.gainRatesForTask,i);break;case a.a.Faction:{c=this.gainExperience(t,this.gainRatesForTask,i),this.gainMoney(t,this.gainRatesForTask,i);const e=m.a[this.currentTaskLocation];if(!(e instanceof u.a)){console.error("Invalid faction for Sleeve task: "+this.currentTaskLocation);break}t.gang&&e.name===t.gang.facName&&this.resetTaskStatus(),e.playerReputation+=this.getRepGain(t)*i;break}case a.a.Company:{c=this.gainExperience(t,this.gainRatesForTask,i),this.gainMoney(t,this.gainRatesForTask,i);const e=s.a[this.currentTaskLocation];if(!(e instanceof l.a)){console.error("Invalid company for Sleeve task: "+this.currentTaskLocation);break}e.playerReputation+=this.getRepGain(t)*i;break}case a.a.Recovery:this.shock=Math.min(100,this.shock+2e-4*i),this.shock>=100&&this.resetTaskStatus();break;case a.a.Synchro:this.sync=Math.min(100,this.sync+2e-4*t.getIntelligenceBonus(.5)*i),this.sync>=100&&this.resetTaskStatus()}return 0!==this.currentTaskMaxTime&&this.currentTaskTime>=this.currentTaskMaxTime&&(this.currentTask===a.a.Crime?c=this.finishTask(t):this.finishTask(t)),this.updateStatLevels(),this.storedCycles-=i,c}resetTaskStatus(){this.earningsForTask=Object(r.b)(),this.gainRatesForTask=Object(r.b)(),this.currentTask=a.a.Idle,this.currentTaskTime=0,this.currentTaskMaxTime=0,this.factionWorkType=h.a.None,this.crimeType="",this.currentTaskLocation="",this.gymStatType="",this.className=""}shockRecovery(t){return this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus(),this.currentTask=a.a.Recovery,!0}synchronize(t){return this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus(),this.currentTask=a.a.Synchro,!0}takeUniversityCourse(t,e,n){this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus();let r=1;switch(e.toLowerCase()){case p.a.AevumSummitUniversity.toLowerCase():if(this.city!==d.a.Aevum)return!1;this.currentTaskLocation=p.a.AevumSummitUniversity,r=4;break;case p.a.Sector12RothmanUniversity.toLowerCase():if(this.city!==d.a.Sector12)return!1;this.currentTaskLocation=p.a.Sector12RothmanUniversity,r=3;break;case p.a.VolhavenZBInstituteOfTechnology.toLowerCase():if(this.city!==d.a.Volhaven)return!1;this.currentTaskLocation=p.a.VolhavenZBInstituteOfTechnology,r=5;break;default:return!1}switch(n.toLowerCase()){case"study computer science":break;case"data structures":this.gainRatesForTask.money=f.a.ClassDataStructuresBaseCost*r*-1;break;case"networks":this.gainRatesForTask.money=f.a.ClassNetworksBaseCost*r*-1;break;case"algorithms":this.gainRatesForTask.money=f.a.ClassAlgorithmsBaseCost*r*-1;break;case"management":this.gainRatesForTask.money=f.a.ClassManagementBaseCost*r*-1;break;case"leadership":this.gainRatesForTask.money=f.a.ClassLeadershipBaseCost*r*-1;break;default:return!1}return this.className=n,this.currentTask=a.a.Class,!0}travel(t,e){return t.loseMoney(f.a.TravelCost,"sleeves"),this.city=e,!0}tryBuyAugmentation(t,e){return!!t.canAfford(e.baseCost)&&(!this.augmentations.some(t=>t.name===e.name)&&(t.loseMoney(e.baseCost,"sleeves"),this.installAugmentation(e),!0))}updateTaskGainRates(t){if(this.currentTask!==a.a.Class)if(this.currentTask!==a.a.Gym)console.warn("Sleeve.updateTaskGainRates() called for unexpected task type "+this.currentTask);else{let e=1;switch(this.currentTaskLocation.toLowerCase()){case p.a.AevumCrushFitnessGym.toLowerCase():e=2;break;case p.a.AevumSnapFitnessGym.toLowerCase():e=5;break;case p.a.Sector12IronGym.toLowerCase():e=1;break;case p.a.Sector12PowerhouseGym.toLowerCase():e=10;break;case p.a.VolhavenMilleniumFitnessGym.toLowerCase():e=4;break;default:return}const n=1,a=t.hashManager.getTrainingMult()*e,r=this.gymStatType.toLowerCase();r.includes("str")?this.gainRatesForTask.str=n*a*this.strength_exp_mult:r.includes("def")?this.gainRatesForTask.def=n*a*this.defense_exp_mult:r.includes("dex")?this.gainRatesForTask.dex=n*a*this.dexterity_exp_mult:r.includes("agi")&&(this.gainRatesForTask.agi=n*a*this.agility_exp_mult)}else{let e=1;switch(this.currentTaskLocation.toLowerCase()){case p.a.AevumSummitUniversity.toLowerCase():e=3;break;case p.a.Sector12RothmanUniversity.toLowerCase():e=2;break;case p.a.VolhavenZBInstituteOfTechnology.toLowerCase():e=4;break;default:return}const n=e*t.hashManager.getStudyMult();switch(this.className.toLowerCase()){case"study computer science":this.gainRatesForTask.hack=f.a.ClassStudyComputerScienceBaseExp*n*this.hacking_exp_mult;break;case"data structures":this.gainRatesForTask.hack=f.a.ClassDataStructuresBaseExp*n*this.hacking_exp_mult;break;case"networks":this.gainRatesForTask.hack=f.a.ClassNetworksBaseExp*n*this.hacking_exp_mult;break;case"algorithms":this.gainRatesForTask.hack=f.a.ClassAlgorithmsBaseExp*n*this.hacking_exp_mult;break;case"management":this.gainRatesForTask.cha=f.a.ClassManagementBaseExp*n*this.charisma_exp_mult;break;case"leadership":this.gainRatesForTask.cha=f.a.ClassLeadershipBaseExp*n*this.charisma_exp_mult}}}upgradeMemory(t){t<0?console.warn("Sleeve.upgradeMemory() called with negative value: "+t):this.memory=Math.min(100,Math.round(this.memory+t))}workForCompany(t,e){if(!(s.a[e]instanceof l.a)||null==t.jobs[e])return!1;this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus();const n=s.a[e],r=c.a[t.jobs[e]];return null!=n&&(null!=r&&(this.gainRatesForTask.money=r.baseSalary*n.salaryMultiplier*this.work_money_mult*i.a.CompanyWorkMoney,this.gainRatesForTask.hack=r.hackingExpGain*n.expMultiplier*this.hacking_exp_mult*i.a.CompanyWorkExpGain,this.gainRatesForTask.str=r.strengthExpGain*n.expMultiplier*this.strength_exp_mult*i.a.CompanyWorkExpGain,this.gainRatesForTask.def=r.defenseExpGain*n.expMultiplier*this.defense_exp_mult*i.a.CompanyWorkExpGain,this.gainRatesForTask.dex=r.dexterityExpGain*n.expMultiplier*this.dexterity_exp_mult*i.a.CompanyWorkExpGain,this.gainRatesForTask.agi=r.agilityExpGain*n.expMultiplier*this.agility_exp_mult*i.a.CompanyWorkExpGain,this.gainRatesForTask.cha=r.charismaExpGain*n.expMultiplier*this.charisma_exp_mult*i.a.CompanyWorkExpGain,this.currentTaskLocation=e,this.currentTask=a.a.Company,!0))}workForFaction(t,e,n){const r=m.a[e];if(!(""!==e&&r&&r instanceof u.a&&t.factions.includes(e)))return!1;this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus();const o=r.getInfo(),s=n.toLowerCase();if(s.includes("hack")){if(!o.offerHackingWork)return!1;this.factionWorkType=h.a.Hacking,this.gainRatesForTask.hack=.15*this.hacking_exp_mult*i.a.FactionWorkExpGain}else if(s.includes("field")){if(!o.offerFieldWork)return!1;this.factionWorkType=h.a.Field,this.gainRatesForTask.hack=.1*this.hacking_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.str=.1*this.strength_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.def=.1*this.defense_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.dex=.1*this.dexterity_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.agi=.1*this.agility_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.cha=.1*this.charisma_exp_mult*i.a.FactionWorkExpGain}else{if(!s.includes("security"))return!1;if(!o.offerSecurityWork)return!1;this.factionWorkType=h.a.Security,this.gainRatesForTask.hack=.1*this.hacking_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.str=.15*this.strength_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.def=.15*this.defense_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.dex=.15*this.dexterity_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.agi=.15*this.agility_exp_mult*i.a.FactionWorkExpGain}return this.currentTaskLocation=e,this.currentTask=a.a.Faction,!0}workoutAtGym(t,e,n){this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus();let r=1;switch(e.toLowerCase()){case p.a.AevumCrushFitnessGym.toLowerCase():if(this.city!=d.a.Aevum)return!1;this.currentTaskLocation=p.a.AevumCrushFitnessGym,r=3;break;case p.a.AevumSnapFitnessGym.toLowerCase():if(this.city!=d.a.Aevum)return!1;this.currentTaskLocation=p.a.AevumSnapFitnessGym,r=10;break;case p.a.Sector12IronGym.toLowerCase():if(this.city!=d.a.Sector12)return!1;this.currentTaskLocation=p.a.Sector12IronGym,r=1;break;case p.a.Sector12PowerhouseGym.toLowerCase():if(this.city!=d.a.Sector12)return!1;this.currentTaskLocation=p.a.Sector12PowerhouseGym,r=20;break;case p.a.VolhavenMilleniumFitnessGym.toLowerCase():if(this.city!=d.a.Volhaven)return!1;this.currentTaskLocation=p.a.VolhavenMilleniumFitnessGym,r=7;break;default:return!1}const i=n.toLowerCase();return this.gainRatesForTask.money=f.a.ClassGymBaseCost*r*-1,!!(i.includes("str")||i.includes("def")||i.includes("dex")||i.includes("agi"))&&(this.gymStatType=n,this.currentTask=a.a.Gym,!0)}toJSON(){return Object(g.b)("Sleeve",this)}static fromJSON(t){return Object(g.a)(b,t.data)}}g.c.constructors.Sleeve=b},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t[t.SyntaxError=-1]="SyntaxError",t[t.ImportError=-2]="ImportError",t[t.URLImportError=-3]="URLImportError"}(a||(a={}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var a=n(125);const r=new a.a,i=new a.a},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var a=n(244),r=n(153),i=n(117),o=n(76),s=n(5),l=n(20),c=n(14),f=n(6),u=n(0);function m(t,e,n,a){const s=a.stockMarket.Orders;if(null==s){const t={};for(const e of Object.keys(a.stockMarket)){const n=a.stockMarket[e];n instanceof r.a&&(t[n.symbol]=[])}return void(a.stockMarket.Orders=t)}let l=s[t.symbol];if(null==l||l.constructor!==Array)return console.error(`Invalid Order book for ${t.symbol} in processOrders(): ${l}`),void(l=[]);for(const r of l)if(r.type===e&&r.pos===n)switch(r.type){case i.a.LimitBuy:(r.pos===o.a.Long&&t.price<=r.price||r.pos===o.a.Short&&t.price>=r.price)&&h(r,a);break;case i.a.LimitSell:case i.a.StopBuy:(r.pos===o.a.Long&&t.price>=r.price||r.pos===o.a.Short&&t.price<=r.price)&&h(r,a);break;case i.a.StopSell:(r.pos===o.a.Long&&t.price<=r.price||r.pos===o.a.Short&&t.price>=r.price)&&h(r,a);break;default:return void console.warn("Invalid order type: "+r.type)}}function h(t,e){const n=e.symbolToStockMap[t.stockSymbol];if(!(n instanceof r.a))return void console.error("Could not find stock for this order: "+t.stockSymbol);const m=e.stockMarket.Orders[n.symbol],h={suppressDialog:!0};let d=!0,p=!1;switch(t.type){case i.a.LimitBuy:case i.a.StopBuy:p=!0,t.pos===o.a.Long?d=Object(a.a)(n,t.shares,null,h)&&d:t.pos===o.a.Short&&(d=Object(a.d)(n,t.shares,null,h)&&d);break;case i.a.LimitSell:case i.a.StopSell:t.pos===o.a.Long?d=Object(a.c)(n,t.shares,null,h)&&d:t.pos===o.a.Short&&(d=Object(a.b)(n,t.shares,null,h)&&d);break;default:return void console.warn("Invalid order type: "+t.type)}const g=t.pos===o.a.Long?"Long":"Short";if(d){for(let e=0;e({...a})},,function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return m}));var a=n(0),r=n.n(a),i=n(125),o=n(38),s=n(1),l=n(19),c=n(766);const f=new i.a;let u=0;function m(){const[t,e]=Object(a.useState)([]);return Object(a.useEffect)(()=>f.subscribe(t=>{const n=u+"";u++,e(e=>{const a=function(t){return"string"==typeof t?Object(c.sha256)(t):Object(c.sha256)(JSON.stringify(t.props))}(t);return e.some(t=>t.hash===a)?(console.log("Duplicate message"),e):[...e,{id:n,text:t,hash:a}]})}),[]),Object(a.useEffect)(()=>{function t(t){"Escape"===t.code&&e([])}return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[]),r.a.createElement(r.a.Fragment,null,t.length>0&&r.a.createElement(o.a,{open:!0,onClose:function(){e(t=>t.slice(1,1e99))}},r.a.createElement(l.a,{overflow:"scroll",sx:{overflowWrap:"break-word",whiteSpace:"pre-line"}},r.a.createElement(s.a,{component:"span"},t[0].text))))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(545);function r(){return Object(a.a)(99)+"."+Object(a.a)(9)+"."+Object(a.a)(9)+"."+Object(a.a)(9)}},function(t,e,n){"use strict";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}));class r{constructor(t=""){a(this,"level",1),a(this,"name",""),this.name=t}}},function(t,e,n){"use strict";function a(){return new Promise((t,e)=>{window.indexedDB||e("Indexed DB does not exists");const n=window.indexedDB.open("bitburnerSave",1);n.onupgradeneeded=function(){this.result.createObjectStore("savestring")},n.onerror=function(t){e("Failed to get IDB "+t)},n.onsuccess=function(){const n=this.result;n?t(n.transaction(["savestring"],"readwrite").objectStore("savestring")):e("database loading result was undefined")}})}function r(){return new Promise((t,e)=>{a().then(e=>new Promise((t,n)=>{const a=e.get("save");a.onerror=function(t){n("Error in Database request to get savestring: "+t)},a.onsuccess=function(){t(this.result)}}).then(e=>t(e))).catch(t=>e(t))})}function i(t){return a().then(e=>new Promise((n,a)=>{const r=e.put(t,"save");r.onerror=function(t){a("Error saving game to IndexedDB: "+t)},r.onsuccess=()=>n()}))}function o(){return a().then(t=>{t.delete("save")})}n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return E})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return g}));var a=n(291),r=n(12),i=n(91),o=n(66),s=n(2),l=n(25),c=n(22),f=n(89),u=n(6),m=n(14),h=n(4),d=n(46);function p(t,e=!1){!e&&u.a.SuppressMessages||g(t.filename),function(t){if(y(t))return;const e=Object(c.d)("home");if(null==e)throw new Error("The home server doesn't exist. You done goofed.");e.messages.push(t.filename)}(t)}function g(t){const e=v[t];if(!(e instanceof a.a))throw new Error("trying to display unexistent message");const n="Message received from unknown sender:

"+e.msg+"

This message was saved as "+e.filename+" onto your home computer.";Object(m.a)(n)}function y(t){const e=Object(c.d)("home");if(null==e)throw new Error("The home server doesn't exist. You done goofed.");return e.messages.includes(t.filename)}function b(){if(i.b.page()===l.a.BitVerse)return;const t=v[E.Jumper0],e=v[E.Jumper1],n=v[E.Jumper2],a=v[E.Jumper3],u=v[E.Jumper4],m=v[E.CyberSecTest],h=v[E.NiteSecTest],g=v[E.BitRunnersTest],b=v[E.TruthGazer],k=v[E.RedPill];if(s.a.hasAugmentation(r.a.TheRedPill)){const t=Object(c.d)(f.a.WorldDaemon);if(!(t instanceof d.a))throw new Error("The world daemon is not a server???? Please un-break reality");s.a.hacking>=t.requiredHackingSkill?p(k,0===s.a.sourceFiles.length):y(b)||p(b)}else if(!y(t)&&s.a.hacking>=25){p(t);const e=o.a.Flight.name,n=s.a.getHomeComputer();n.programs.includes(e)||n.programs.push(e)}else!y(e)&&s.a.hacking>=40?p(e):!y(m)&&s.a.hacking>=50?p(m):!y(n)&&s.a.hacking>=175?p(n):!y(h)&&s.a.hacking>=200?p(h):!y(a)&&s.a.hacking>=350?p(a):!y(u)&&s.a.hacking>=490?p(u):!y(g)&&s.a.hacking>=500&&p(g)}let E;!function(t){t.Jumper0="j0.msg",t.Jumper1="j1.msg",t.Jumper2="j2.msg",t.Jumper3="j3.msg",t.Jumper4="j4.msg",t.CyberSecTest="csec-test.msg",t.NiteSecTest="nitesec-test.msg",t.BitRunnersTest="19dfj3l1nd.msg",t.TruthGazer="truthgazer.msg",t.RedPill="icarus.msg"}(E||(E={}));const v={[E.Jumper0]:new a.a(E.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"),[E.Jumper1]:new a.a(E.Jumper1,`Soon you will be contacted by a hacking group known as ${h.a.NiteSec}. 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`),[E.Jumper2]:new a.a(E.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 ${h.a.NiteSec}.

-jump3R`),[E.Jumper3]:new a.a(E.Jumper3,`You must learn to walk before you can run. And you must run before you can fly. Look for ${h.a.TheBlackHand}.

I.I.I.I

-jump3R`),[E.Jumper4]:new a.a(E.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"),[E.CyberSecTest]:new a.a(E.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 install the backdoor on our server.

-"+h.a.CyberSec),[E.NiteSecTest]:new a.a(E.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 install the backdoor on our server, avmnite-02h. Then, we will contact you again.

-"+h.a.NiteSec),[E.BitRunnersTest]:new a.a(E.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"),[E.TruthGazer]:new a.a(E.TruthGazer,"@&*($#@&__TH3__#@A&#@*)__TRU1H__(*)&*)($#@&()E&R)W&
%@*$^$()@&$)$*@__CAN__()(@^#)@&@)#__N0__(#@&#)@&@&(
*(__LON6ER__^#)@)(()*#@)@__ESCAP3__)#(@(#@*@()@(#*$
()@)#$*%)$#()$#__Y0UR__(*)$#()%(&(%)*!)($__GAZ3__#("),[E.RedPill]:new a.a(E.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(t,e,n){"use strict";function a(t){const e=25e3*(Math.pow(1.02,t)-1);return Math.round(1e4*e)/1e4}function r(t){const e=Math.log(t/25e3+1)/Math.log(1.02);return Math.round(1e4*e)/1e4}n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}));var a=n(26);let r=0;function i(){return(new Date).getTime()-r>864e5}function o(t){if(i()){for(const e of t.factions)a.a[e].favor++;r=(new Date).getTime()}}function s(t){r=t}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n(1),i=n(8),o=n(45),s=n(19);function l(t){return a.createElement(s.a,null,a.createElement(o.a,{sx:{my:1,p:1}},a.createElement(i.a,{onClick:t.onClick},t.buttonText),a.createElement(r.a,null,t.infoText)))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(61),r=n(461),i=n(28);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class s extends r.a{constructor(t=null){super(t),o(this,"reqdRank",100),o(this,"teamCount",0),t&&t.reqdRank&&(this.reqdRank=t.reqdRank),t&&t.teamCount&&(this.teamCount=t.teamCount)}getTeamSuccessBonus(t){if(this.teamCount&&this.teamCount>0){this.teamCount=Math.min(this.teamCount,t.teamSize);return Math.pow(this.teamCount,.05)}return 1}getActionTypeSkillSuccessBonus(t){return t.skillMultipliers.successChanceOperation}getChaosDifficultyBonus(t){const e=t.getCurrentCity();if(e.chaos>a.a.ChaosThreshold){const t=e.chaos-a.a.ChaosThreshold+1;return Math.pow(t,.5)}return 1}toJSON(){return Object(i.b)("Operation",this)}static fromJSON(t){return Object(i.a)(s,t.data)}}i.c.constructors.Operation=s},function(t,e,n){"use strict";n.d(e,"e",(function(){return m})),n.d(e,"c",(function(){return h})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"d",(function(){return g})),n.d(e,"f",(function(){return y}));var a=n(35),r=n(12),i=n(2),o=n(66),s=n(315),l=n(0),c=n.n(l),f=n(4),u=n(10);const m=()=>[new a.a({name:r.a.WKSharmonizer,repCost:1e4,moneyCost:1e6,info:`A copy of the WKS harmonizer from the MIA leader of the ${f.a.ShadowsOfAnarchy} injects *Γ-based cells that provides general enhancement to the body.`,stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes many aspect of infiltration easier and more productive. Such as increased timer, rewards, reduced damage taken, etc."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.MightOfAres,repCost:1e4,moneyCost:1e6,info:"Extra-occular neurons taken from old martial art master. Injecting the user the ability to predict enemy attack before they even know it themself.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Slash minigame easier by showing you via an indictor when the slash in coming."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.WisdomOfAthena,repCost:1e4,moneyCost:1e6,info:"A connective brain implant to SASHA that focuses in pattern recognition and predictive templating.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Bracket minigame easier by removing all '[' ']'."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.ChaosOfDionysus,repCost:1e4,moneyCost:1e6,info:"Opto-occipito implant to process visual signal before brain interpretation.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Backwards minigame easier by flipping the words."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.BeautyOfAphrodite,repCost:1e4,moneyCost:1e6,info:"Pheromone extruder injected in the thoracodorsal nerve. Emits pleasing scent guaranteed to make conversational partners more agreeable.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Bribe minigame easier by indicating the incorrect paths."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.TrickeryOfHermes,repCost:1e4,moneyCost:1e6,info:"Penta-dynamo-neurovascular-valve inserted in the carpal ligament, enhances dexterity.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Cheat Code minigame easier by allowing the opposite character."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.FloodOfPoseidon,repCost:1e4,moneyCost:1e6,info:"Transtinatium VVD reticulator used in optico-sterbing recognition.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Symbol matching minigame easier by indicating the correct choice."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.HuntOfArtemis,repCost:1e4,moneyCost:1e6,info:"magneto-turboencabulator based on technology by Micha Eike Siemon, increases the users electro-magnetic sensitivity.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Minesweeper minigame easier by showing the location of all mines and keeping their position."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.KnowledgeOfApollo,repCost:1e4,moneyCost:1e6,info:"Neodynic retention fjengeln spoofer using -φ karmions, net positive effect on implantees delta wave.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Wire Cutting minigame easier by indicating the incorrect wires."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]})],h=()=>[new a.a({name:r.a.HemoRecirculator,moneyCost:45e6,repCost:1e4,info:"A heart implant that greatly increases the body's ability to effectively use and pump blood.",strength_mult:1.08,defense_mult:1.08,agility_mult:1.08,dexterity_mult:1.08,factions:[f.a.Tetrads,f.a.TheDarkArmy,f.a.TheSyndicate]}),new a.a({name:r.a.Targeting1,moneyCost:15e6,repCost:5e3,info:"A cranial implant that is embedded within the inner ear structures and optic nerves. It regulates and enhances balance and hand-eye coordination.",dexterity_mult:1.1,factions:[f.a.SlumSnakes,f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Sector12,f.a.Ishima,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.Targeting2,moneyCost:425e5,repCost:8750,info:"This upgraded version of the 'Augmented Targeting' implant is capable of augmenting reality by digitally displaying weaknesses and vital signs of threats.",prereqs:[r.a.Targeting1],dexterity_mult:1.2,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Sector12,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.Targeting3,moneyCost:115e6,repCost:27500,info:"The latest version of the 'Augmented Targeting' implant adds the ability to lock-on and track threats.",prereqs:[r.a.Targeting2,r.a.Targeting1],dexterity_mult:1.3,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries,f.a.TheCovenant]}),new a.a({name:r.a.SyntheticHeart,moneyCost:2875e6,repCost:75e4,info:"This advanced artificial heart, created from plasteel and graphene, is capable of pumping blood more efficiently than an organic heart.",agility_mult:1.5,strength_mult:1.5,factions:[f.a.KuaiGongInternational,f.a.FulcrumSecretTechnologies,f.a.SpeakersForTheDead,f.a.NWO,f.a.TheCovenant,f.a.Daedalus,f.a.Illuminati]}),new a.a({name:r.a.SynfibrilMuscle,repCost:437500,moneyCost:1125e6,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'.",strength_mult:1.3,defense_mult:1.3,factions:[f.a.KuaiGongInternational,f.a.FulcrumSecretTechnologies,f.a.SpeakersForTheDead,f.a.NWO,f.a.TheCovenant,f.a.Daedalus,f.a.Illuminati,f.a.BladeIndustries]}),new a.a({name:r.a.CombatRib1,repCost:7500,moneyCost:2375e4,info:"The rib cage is augmented to continuously release boosters into the bloodstream which increase the oxygen-carrying capacity of blood.",strength_mult:1.1,defense_mult:1.1,factions:[f.a.SlumSnakes,f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Volhaven,f.a.Ishima,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.CombatRib2,repCost:18750,moneyCost:65e6,info:"An upgraded version of the 'Combat Rib' augmentation that adds potent stimulants which improve focus and endurance while decreasing reaction time and fatigue.",prereqs:[r.a.CombatRib1],strength_mult:1.14,defense_mult:1.14,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Volhaven,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.CombatRib3,repCost:35e3,moneyCost:12e7,info:"The latest version of the 'Combat Rib' augmentation releases advanced anabolic steroids that improve muscle mass and physical performance while being safe and free of side effects.",prereqs:[r.a.CombatRib2,r.a.CombatRib1],strength_mult:1.18,defense_mult:1.18,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries,f.a.TheCovenant]}),new a.a({name:r.a.NanofiberWeave,repCost:37500,moneyCost:125e6,info:"Synthetic nanofibers are woven into the skin's extracellular matrix using electrospinning, which improves its regenerative and extracellular homeostasis abilities.",strength_mult:1.2,defense_mult:1.2,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.OmniTekIncorporated,f.a.BladeIndustries,f.a.TianDiHui,f.a.SpeakersForTheDead,f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.SubdermalArmor,repCost:875e3,moneyCost:325e7,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 or electrical traumas.",defense_mult:2.2,factions:[f.a.TheSyndicate,f.a.FulcrumSecretTechnologies,f.a.Illuminati,f.a.Daedalus,f.a.TheCovenant]}),new a.a({name:r.a.WiredReflexes,repCost:1250,moneyCost:25e5,info:"Synthetic nerve-enhancements are injected into all major parts of the somatic nervous system, supercharging the spread of neural signals and increasing reflex speed.",agility_mult:1.05,dexterity_mult:1.05,factions:[f.a.TianDiHui,f.a.SlumSnakes,f.a.Sector12,f.a.Volhaven,f.a.Aevum,f.a.Ishima,f.a.TheSyndicate,f.a.TheDarkArmy,f.a.SpeakersForTheDead]}),new a.a({name:r.a.GrapheneBoneLacings,repCost:1125e3,moneyCost:425e7,info:"Graphene is grafted and fused into the skeletal structure, enhancing bone density and tensile strength.",strength_mult:1.7,defense_mult:1.7,factions:[f.a.FulcrumSecretTechnologies,f.a.TheCovenant]}),new a.a({name:r.a.BionicSpine,repCost:45e3,moneyCost:125e6,info:"The spine is reconstructed using plasteel and carbon fibers. It is now capable of stimulating and regulating neural signals passing through the spinal cord, improving senses and reaction speed. The 'Bionic Spine' also interfaces with all other 'Bionic' implants.",strength_mult:1.15,defense_mult:1.15,agility_mult:1.15,dexterity_mult:1.15,factions:[f.a.SpeakersForTheDead,f.a.TheSyndicate,f.a.KuaiGongInternational,f.a.OmniTekIncorporated,f.a.BladeIndustries]}),new a.a({name:r.a.GrapheneBionicSpine,repCost:1625e3,moneyCost:6e9,info:"An upgrade to the 'Bionic Spine' augmentation. The spine is fused with graphene which enhances durability and supercharges all body functions.",prereqs:[r.a.BionicSpine],strength_mult:1.6,defense_mult:1.6,agility_mult:1.6,dexterity_mult:1.6,factions:[f.a.FulcrumSecretTechnologies,f.a.ECorp]}),new a.a({name:r.a.BionicLegs,repCost:15e4,moneyCost:375e6,info:"Cybernetic legs, created from plasteel and carbon fibers, enhance running speed.",agility_mult:1.6,factions:[f.a.SpeakersForTheDead,f.a.TheSyndicate,f.a.KuaiGongInternational,f.a.OmniTekIncorporated,f.a.BladeIndustries]}),new a.a({name:r.a.GrapheneBionicLegs,repCost:75e4,moneyCost:45e8,info:"An upgrade to the 'Bionic Legs' augmentation. The legs are fused with graphene, greatly enhancing jumping ability.",prereqs:[r.a.BionicLegs],agility_mult:2.5,factions:[f.a.MegaCorp,f.a.ECorp,f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.SpeechProcessor,repCost:7500,moneyCost:5e7,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.",charisma_mult:1.2,factions:[f.a.TianDiHui,f.a.Chongqing,f.a.Sector12,f.a.NewTokyo,f.a.Aevum,f.a.Ishima,f.a.Volhaven,f.a.Silhouette]}),new a.a({name:r.a.TITN41Injection,repCost:25e3,moneyCost:19e7,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.",charisma_mult:1.15,charisma_exp_mult:1.15,factions:[f.a.Silhouette]}),new a.a({name:r.a.EnhancedSocialInteractionImplant,repCost:375e3,moneyCost:1375e6,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 expressions, body language, and the voice tone, and 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.",charisma_mult:1.6,charisma_exp_mult:1.6,factions:[f.a.BachmanAssociates,f.a.NWO,f.a.ClarkeIncorporated,f.a.OmniTekIncorporated,f.a.FourSigma]}),new a.a({name:r.a.BitWire,repCost:3750,moneyCost:1e7,info:"A small brain implant embedded in the cerebrum. This regulates and improves the brain's computing capabilities.",hacking_mult:1.05,factions:[f.a.CyberSec,f.a.NiteSec]}),new a.a({name:r.a.ArtificialBioNeuralNetwork,repCost:275e3,moneyCost:3e9,info:"A network consisting of millions of nanoprocessors is embedded into the brain. The network is meant to mimic the way a biological brain solves a problem, with 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 the user to solve much more complex problems at a much faster rate.",hacking_speed_mult:1.03,hacking_money_mult:1.15,hacking_mult:1.12,factions:[f.a.BitRunners,f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.ArtificialSynapticPotentiation,repCost:6250,moneyCost:8e7,info:"The body is injected with a chemical that artificially induces synaptic potentiation, otherwise known as the strengthening of synapses. This results in enhanced cognitive abilities.",hacking_speed_mult:1.02,hacking_chance_mult:1.05,hacking_exp_mult:1.05,factions:[f.a.TheBlackHand,f.a.NiteSec]}),new a.a({name:r.a.EnhancedMyelinSheathing,repCost:1e5,moneyCost:1375e6,info:"Electrical signals are used to induce a new, artificial form of myelinogenesis 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.",hacking_speed_mult:1.03,hacking_exp_mult:1.1,hacking_mult:1.08,factions:[f.a.FulcrumSecretTechnologies,f.a.BitRunners,f.a.TheBlackHand]}),new a.a({name:r.a.SynapticEnhancement,repCost:2e3,moneyCost:75e5,info:"A small cranial implant that continuously uses weak electrical signals to stimulate the brain and induce stronger synaptic activity. This improves the user's cognitive abilities.",hacking_speed_mult:1.03,factions:[f.a.CyberSec,f.a.Aevum]}),new a.a({name:r.a.NeuralRetentionEnhancement,repCost:2e4,moneyCost:25e7,info:"Chemical injections are used to permanently alter and strengthen the brain's neuronal circuits, strengthening the ability to retain information.",hacking_exp_mult:1.25,factions:[f.a.NiteSec]}),new a.a({name:r.a.DataJack,repCost:112500,moneyCost:45e7,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.",hacking_money_mult:1.25,factions:[f.a.BitRunners,f.a.TheBlackHand,f.a.NiteSec,f.a.Chongqing,f.a.NewTokyo]}),new a.a({name:r.a.ENM,repCost:15e3,moneyCost:25e7,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.",hacking_mult:1.08,factions:[f.a.BitRunners,f.a.TheBlackHand,f.a.NiteSec,f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.BladeIndustries]}),new a.a({name:r.a.ENMCore,repCost:175e3,moneyCost:25e8,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.",prereqs:[r.a.ENM],hacking_speed_mult:1.03,hacking_money_mult:1.1,hacking_chance_mult:1.03,hacking_exp_mult:1.07,hacking_mult:1.07,factions:[f.a.BitRunners,f.a.TheBlackHand,f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.BladeIndustries]}),new a.a({name:r.a.ENMCoreV2,repCost:1e6,moneyCost:45e8,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 information on a network by re-routing traffic, spoofing IP addresses, and altering the data inside network packets.",prereqs:[r.a.ENMCore,r.a.ENM],hacking_speed_mult:1.05,hacking_money_mult:1.3,hacking_chance_mult:1.05,hacking_exp_mult:1.15,hacking_mult:1.08,factions:[f.a.BitRunners,f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.BladeIndustries,f.a.OmniTekIncorporated,f.a.KuaiGongInternational]}),new a.a({name:r.a.ENMCoreV3,repCost:175e4,moneyCost:75e8,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.",prereqs:[r.a.ENMCoreV2,r.a.ENMCore,r.a.ENM],hacking_speed_mult:1.05,hacking_money_mult:1.4,hacking_chance_mult:1.1,hacking_exp_mult:1.25,hacking_mult:1.1,factions:[f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.Daedalus,f.a.TheCovenant,f.a.Illuminati]}),new a.a({name:r.a.ENMAnalyzeEngine,repCost:625e3,moneyCost:6e9,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.",prereqs:[r.a.ENM],hacking_speed_mult:1.1,factions:[f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.Daedalus,f.a.TheCovenant,f.a.Illuminati]}),new a.a({name:r.a.ENMDMA,repCost:1e6,moneyCost:7e9,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.",prereqs:[r.a.ENM],hacking_money_mult:1.4,hacking_chance_mult:1.2,factions:[f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.Daedalus,f.a.TheCovenant,f.a.Illuminati]}),new a.a({name:r.a.Neuralstimulator,repCost:5e4,moneyCost:3e9,info:"A cranial implant that intelligently stimulates certain areas of the brain in order to improve cognitive functions.",hacking_speed_mult:1.02,hacking_chance_mult:1.1,hacking_exp_mult:1.12,factions:[f.a.TheBlackHand,f.a.Chongqing,f.a.Sector12,f.a.NewTokyo,f.a.Aevum,f.a.Ishima,f.a.Volhaven,f.a.BachmanAssociates,f.a.ClarkeIncorporated,f.a.FourSigma]}),new a.a({name:r.a.NeuralAccelerator,repCost:2e5,moneyCost:175e7,info:"A microprocessor that accelerates the processing speed of biological neural networks. This is a cranial implant that is embedded inside the brain.",hacking_mult:1.1,hacking_exp_mult:1.15,hacking_money_mult:1.2,factions:[f.a.BitRunners]}),new a.a({name:r.a.CranialSignalProcessorsG1,repCost:1e4,moneyCost:7e7,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.",hacking_speed_mult:1.01,hacking_mult:1.05,factions:[f.a.CyberSec,f.a.NiteSec]}),new a.a({name:r.a.CranialSignalProcessorsG2,repCost:18750,moneyCost:125e6,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.",prereqs:[r.a.CranialSignalProcessorsG1],hacking_speed_mult:1.02,hacking_chance_mult:1.05,hacking_mult:1.07,factions:[f.a.CyberSec,f.a.NiteSec]}),new a.a({name:r.a.CranialSignalProcessorsG3,repCost:5e4,moneyCost:55e7,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.",prereqs:[r.a.CranialSignalProcessorsG2,r.a.CranialSignalProcessorsG1],hacking_speed_mult:1.02,hacking_money_mult:1.15,hacking_mult:1.09,factions:[f.a.NiteSec,f.a.TheBlackHand,f.a.BitRunners]}),new a.a({name:r.a.CranialSignalProcessorsG4,repCost:125e3,moneyCost:11e8,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.",prereqs:[r.a.CranialSignalProcessorsG3,r.a.CranialSignalProcessorsG2,r.a.CranialSignalProcessorsG1],hacking_speed_mult:1.02,hacking_money_mult:1.2,hacking_grow_mult:1.25,factions:[f.a.TheBlackHand,f.a.BitRunners]}),new a.a({name:r.a.CranialSignalProcessorsG5,repCost:25e4,moneyCost:225e7,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.",prereqs:[r.a.CranialSignalProcessorsG4,r.a.CranialSignalProcessorsG3,r.a.CranialSignalProcessorsG2,r.a.CranialSignalProcessorsG1],hacking_mult:1.3,hacking_money_mult:1.25,hacking_grow_mult:1.75,factions:[f.a.BitRunners]}),new a.a({name:r.a.NeuronalDensification,repCost:187500,moneyCost:1375e6,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.",hacking_mult:1.15,hacking_exp_mult:1.1,hacking_speed_mult:1.03,factions:[f.a.ClarkeIncorporated]}),new a.a({name:r.a.NuoptimalInjectorImplant,repCost:5e3,moneyCost:2e7,info:"This torso implant automatically injects nootropic supplements into the bloodstream to improve memory, increase focus, and provide other cognitive enhancements.",company_rep_mult:1.2,factions:[f.a.TianDiHui,f.a.Volhaven,f.a.NewTokyo,f.a.Chongqing,f.a.ClarkeIncorporated,f.a.FourSigma,f.a.BachmanAssociates]}),new a.a({name:r.a.SpeechEnhancement,repCost:2500,moneyCost:125e5,info:"An advanced neural implant that improves your speaking abilities, making you more convincing and likable in conversations and overall improving your social interactions.",company_rep_mult:1.1,charisma_mult:1.1,factions:[f.a.TianDiHui,f.a.SpeakersForTheDead,f.a.FourSigma,f.a.KuaiGongInternational,f.a.ClarkeIncorporated,f.a.BachmanAssociates]}),new a.a({name:r.a.FocusWire,repCost:75e3,moneyCost:9e8,info:"A cranial implant that stops procrastination by blocking specific neural pathways in the brain.",hacking_exp_mult:1.05,strength_exp_mult:1.05,defense_exp_mult:1.05,dexterity_exp_mult:1.05,agility_exp_mult:1.05,charisma_exp_mult:1.05,company_rep_mult:1.1,work_money_mult:1.2,factions:[f.a.BachmanAssociates,f.a.ClarkeIncorporated,f.a.FourSigma,f.a.KuaiGongInternational]}),new a.a({name:r.a.PCDNI,repCost:375e3,moneyCost:375e7,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.",company_rep_mult:1.3,hacking_mult:1.08,factions:[f.a.FourSigma,f.a.OmniTekIncorporated,f.a.ECorp,f.a.BladeIndustries]}),new a.a({name:r.a.PCDNIOptimizer,repCost:5e5,moneyCost:45e8,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 a connected computer.",prereqs:[r.a.PCDNI],company_rep_mult:1.75,hacking_mult:1.1,factions:[f.a.FulcrumSecretTechnologies,f.a.ECorp,f.a.BladeIndustries]}),new a.a({name:r.a.PCDNINeuralNetwork,repCost:15e5,moneyCost:75e8,info:"This is an additional installation that upgrades the functionality of the PC Direct-Neural Interface augmentation. When connected to a computer, The Neural Network upgrade allows the user to use their own brain's processing power to aid the computer in computational tasks.",prereqs:[r.a.PCDNI],company_rep_mult:2,hacking_mult:1.1,hacking_speed_mult:1.05,factions:[f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.ADRPheromone1,repCost:3750,moneyCost:175e5,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.",company_rep_mult:1.1,faction_rep_mult:1.1,factions:[f.a.TianDiHui,f.a.TheSyndicate,f.a.NWO,f.a.MegaCorp,f.a.FourSigma]}),new a.a({name:r.a.ADRPheromone2,repCost:62500,moneyCost:55e7,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.",company_rep_mult:1.2,faction_rep_mult:1.2,factions:[f.a.Silhouette,f.a.FourSigma,f.a.BachmanAssociates,f.a.ClarkeIncorporated]}),new a.a({name:r.a.ShadowsSimulacrum,repCost:37500,moneyCost:4e8,info:"A crude but functional matter phase-shifter module that is embedded in the brainstem and cerebellum. This augmentation was developed by criminal organizations and allows the user to project and control holographic simulacrums within a large radius. These simulacrums are commonly used for espionage and surveillance work.",company_rep_mult:1.15,faction_rep_mult:1.15,factions:[f.a.TheSyndicate,f.a.TheDarkArmy,f.a.SpeakersForTheDead]}),new a.a({name:r.a.HacknetNodeCPUUpload,repCost:3750,moneyCost:11e6,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.",hacknet_node_money_mult:1.15,hacknet_node_purchase_cost_mult:.85,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeCacheUpload,repCost:2500,moneyCost:55e5,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.",hacknet_node_money_mult:1.1,hacknet_node_level_cost_mult:.85,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeNICUpload,repCost:1875,moneyCost:45e5,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.",hacknet_node_money_mult:1.1,hacknet_node_purchase_cost_mult:.9,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeKernelDNI,repCost:7500,moneyCost:4e7,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 electrochemical signals.",hacknet_node_money_mult:1.25,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeCoreDNI,repCost:12500,moneyCost:6e7,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 electrochemical signals.",hacknet_node_money_mult:1.45,factions:[f.a.Netburners]}),new a.a({name:r.a.Neurotrainer1,repCost:1e3,moneyCost:4e6,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.",hacking_exp_mult:1.1,strength_exp_mult:1.1,defense_exp_mult:1.1,dexterity_exp_mult:1.1,agility_exp_mult:1.1,charisma_exp_mult:1.1,factions:[f.a.CyberSec,f.a.Aevum]}),new a.a({name:r.a.Neurotrainer2,repCost:1e4,moneyCost:45e6,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.",hacking_exp_mult:1.15,strength_exp_mult:1.15,defense_exp_mult:1.15,dexterity_exp_mult:1.15,agility_exp_mult:1.15,charisma_exp_mult:1.15,factions:[f.a.BitRunners,f.a.NiteSec]}),new a.a({name:r.a.Neurotrainer3,repCost:25e3,moneyCost:13e7,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.",hacking_exp_mult:1.2,strength_exp_mult:1.2,defense_exp_mult:1.2,dexterity_exp_mult:1.2,agility_exp_mult:1.2,charisma_exp_mult:1.2,factions:[f.a.NWO,f.a.FourSigma]}),new a.a({name:r.a.Hypersight,repCost:15e4,moneyCost:275e7,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 walls, thus providing 'x-ray vision'-like capabilities.",dexterity_mult:1.4,hacking_speed_mult:1.03,hacking_money_mult:1.1,factions:[f.a.BladeIndustries,f.a.KuaiGongInternational]}),new a.a({name:r.a.LuminCloaking1,repCost:1500,moneyCost:5e6,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 to the naked eye.",agility_mult:1.05,crime_money_mult:1.1,factions:[f.a.SlumSnakes,f.a.Tetrads]}),new a.a({name:r.a.LuminCloaking2,repCost:5e3,moneyCost:3e7,info:"This is a more advanced version of the LuminCloaking-V1 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.",prereqs:[r.a.LuminCloaking1],agility_mult:1.1,defense_mult:1.1,crime_money_mult:1.25,factions:[f.a.SlumSnakes,f.a.Tetrads]}),new a.a({name:r.a.SmartSonar,repCost:22500,moneyCost:75e6,info:"A cochlear implant that helps the player detect and locate enemies using sound propagation.",dexterity_mult:1.1,dexterity_exp_mult:1.15,crime_money_mult:1.25,factions:[f.a.SlumSnakes]}),new a.a({name:r.a.PowerRecirculator,repCost:25e3,moneyCost:18e7,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.",hacking_mult:1.05,strength_mult:1.05,defense_mult:1.05,dexterity_mult:1.05,agility_mult:1.05,charisma_mult:1.05,hacking_exp_mult:1.1,strength_exp_mult:1.1,defense_exp_mult:1.1,dexterity_exp_mult:1.1,agility_exp_mult:1.1,charisma_exp_mult:1.1,factions:[f.a.Tetrads,f.a.TheDarkArmy,f.a.TheSyndicate,f.a.NWO]}),new a.a({name:r.a.QLink,repCost:1875e3,moneyCost:25e12,info:`A brain implant that wirelessly connects you to the ${f.a.Illuminati}'s quantum supercomputer, allowing you to access and use its incredible computing power.`,hacking_mult:1.75,hacking_speed_mult:2,hacking_chance_mult:2.5,hacking_money_mult:4,factions:[f.a.Illuminati]}),new a.a({name:r.a.SPTN97,repCost:125e4,moneyCost:4875e6,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.",strength_mult:1.75,defense_mult:1.75,dexterity_mult:1.75,agility_mult:1.75,hacking_mult:1.15,factions:[f.a.TheCovenant]}),new a.a({name:r.a.HiveMind,repCost:15e5,moneyCost:55e8,info:`A brain implant developed by ${f.a.ECorp}. They do not reveal what exactly the implant does, but they promise that it will greatly enhance your abilities.`,hacking_grow_mult:3,stats:null,factions:[f.a.ECorp]}),new a.a({name:r.a.TheRedPill,repCost:25e5,moneyCost:0,info:"It's time to leave the cave.",stats:null,isSpecial:!0,factions:[f.a.Daedalus]}),new a.a({name:r.a.CordiARCReactor,repCost:1125e3,moneyCost:5e9,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 amounts of clean energy for the body.",strength_mult:1.35,defense_mult:1.35,dexterity_mult:1.35,agility_mult:1.35,strength_exp_mult:1.35,defense_exp_mult:1.35,dexterity_exp_mult:1.35,agility_exp_mult:1.35,factions:[f.a.MegaCorp]}),new a.a({name:r.a.SmartJaw,repCost:375e3,moneyCost:275e7,info:"A bionic jaw that contains advanced hardware and software capable of psychoanalyzing and profiling the personality of others using optical imaging software.",charisma_mult:1.5,charisma_exp_mult:1.5,company_rep_mult:1.25,faction_rep_mult:1.25,factions:[f.a.BachmanAssociates]}),new a.a({name:r.a.Neotra,repCost:562500,moneyCost:2875e6,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.",strength_mult:1.55,defense_mult:1.55,factions:[f.a.BladeIndustries]}),new a.a({name:r.a.Xanipher,repCost:875e3,moneyCost:425e7,info:"A concoction of advanced nanobots that is orally ingested into the body. These nanobots induce physiological changes and significantly improve the body's functioning in all aspects.",hacking_mult:1.2,strength_mult:1.2,defense_mult:1.2,dexterity_mult:1.2,agility_mult:1.2,charisma_mult:1.2,hacking_exp_mult:1.15,strength_exp_mult:1.15,defense_exp_mult:1.15,dexterity_exp_mult:1.15,agility_exp_mult:1.15,charisma_exp_mult:1.15,factions:[f.a.NWO]}),new a.a({name:r.a.HydroflameLeftArm,repCost:125e4,moneyCost:25e11,info:"The left arm of a legendary BitRunner who ascended beyond this world. It projects a light blue energy shield that protects the exposed inner parts. Even though it contains no weapons, the advanced tungsten titanium alloy increases the user's strength to unbelievable levels. The augmentation gets more powerful over time for seemingly no reason.",strength_mult:2.7,factions:[f.a.NWO]}),new a.a({name:r.a.nextSENS,repCost:437500,moneyCost:1925e6,info:"The body is genetically re-engineered to maintain a state of negligible senescence, preventing the body from deteriorating with age.",hacking_mult:1.2,strength_mult:1.2,defense_mult:1.2,dexterity_mult:1.2,agility_mult:1.2,charisma_mult:1.2,factions:[f.a.ClarkeIncorporated]}),new a.a({name:r.a.OmniTekInfoLoad,repCost:625e3,moneyCost:2875e6,info:"OmniTek's data and information repository is uploaded into your brain, enhancing your programming and hacking abilities.",hacking_mult:1.2,hacking_exp_mult:1.25,factions:[f.a.OmniTekIncorporated]}),new a.a({name:r.a.PhotosyntheticCells,repCost:562500,moneyCost:275e7,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.",strength_mult:1.4,defense_mult:1.4,agility_mult:1.4,factions:[f.a.KuaiGongInternational]}),new a.a({name:r.a.Neurolink,repCost:875e3,moneyCost:4375e6,info:`A brain implant that provides a high-bandwidth, direct neural link between your mind and the ${f.a.BitRunners}' data servers, which reportedly contain the largest database of hacking tools and information in the world.`,hacking_mult:1.15,hacking_exp_mult:1.2,hacking_chance_mult:1.1,hacking_speed_mult:1.05,programs:[o.a.FTPCrackProgram.name,o.a.RelaySMTPProgram.name],factions:[f.a.BitRunners]}),new a.a({name:r.a.TheBlackHand,repCost:1e5,moneyCost:55e7,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 by just touching them.",strength_mult:1.15,dexterity_mult:1.15,hacking_mult:1.1,hacking_speed_mult:1.02,hacking_money_mult:1.1,factions:[f.a.TheBlackHand]}),new a.a({name:r.a.CRTX42AA,repCost:45e3,moneyCost:225e6,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.",hacking_mult:1.08,hacking_exp_mult:1.15,factions:[f.a.NiteSec]}),new a.a({name:r.a.Neuregen,repCost:37500,moneyCost:375e6,info:"A drug that genetically modifies the neurons in the brain resulting in neurons that never die, continuously regenerate, and strengthen themselves.",hacking_exp_mult:1.4,factions:[f.a.Chongqing]}),new a.a({name:r.a.CashRoot,repCost:12500,moneyCost:125e6,info:c.a.createElement(c.a.Fragment,null,"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."),startingMoney:1e6,programs:[o.a.BruteSSHProgram.name],factions:[f.a.Sector12]}),new a.a({name:r.a.NutriGen,repCost:6250,moneyCost:25e5,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.",strength_exp_mult:1.2,defense_exp_mult:1.2,dexterity_exp_mult:1.2,agility_exp_mult:1.2,factions:[f.a.NewTokyo]}),new a.a({name:r.a.PCMatrix,repCost:1e5,moneyCost:2e9,info:"A 'Probability Computation Matrix' is installed in the frontal cortex. This implant uses advanced mathematical algorithims to rapidly identify and compute statistical outcomes of nearly every situation.",charisma_mult:1.0777,charisma_exp_mult:1.0777,work_money_mult:1.777,faction_rep_mult:1.0777,company_rep_mult:1.0777,crime_success_mult:1.0777,crime_money_mult:1.0777,programs:[o.a.DeepscanV1.name,o.a.AutoLink.name],factions:[f.a.Aevum]}),new a.a({name:r.a.INFRARet,repCost:7500,moneyCost:3e7,info:"A tiny chip that sits behind the retinae. This implant lets the user visually detect infrared radiation.",crime_success_mult:1.25,crime_money_mult:1.1,dexterity_mult:1.1,factions:[f.a.Ishima]}),new a.a({name:r.a.DermaForce,repCost:15e3,moneyCost:5e7,info:"Synthetic skin that is grafted onto the body. This skin consists of millions of nanobots capable of projecting high-density muon beams, creating an energy barrier around the user.",defense_mult:1.4,factions:[f.a.Volhaven]}),new a.a({name:r.a.GrapheneBrachiBlades,repCost:225e3,moneyCost:25e8,info:"An upgrade to the BrachiBlades augmentation. It infuses the retractable blades with an advanced graphene material making them stronger and lighter.",prereqs:[r.a.BrachiBlades],strength_mult:1.4,defense_mult:1.4,crime_success_mult:1.1,crime_money_mult:1.3,factions:[f.a.SpeakersForTheDead]}),new a.a({name:r.a.GrapheneBionicArms,repCost:5e5,moneyCost:375e7,info:"An upgrade to the Bionic Arms augmentation. It infuses the prosthetic arms with an advanced graphene material to make them stronger and lighter.",prereqs:[r.a.BionicArms],strength_mult:1.85,dexterity_mult:1.85,factions:[f.a.TheDarkArmy]}),new a.a({name:r.a.BrachiBlades,repCost:12500,moneyCost:9e7,info:"A set of retractable plasteel blades that are implanted in the arm, underneath the skin.",strength_mult:1.15,defense_mult:1.15,crime_success_mult:1.1,crime_money_mult:1.15,factions:[f.a.TheSyndicate]}),new a.a({name:r.a.BionicArms,repCost:62500,moneyCost:275e6,info:"Cybernetic arms created from plasteel and carbon fibers that completely replace the user's organic arms.",strength_mult:1.3,dexterity_mult:1.3,factions:[f.a.Tetrads]}),new a.a({name:r.a.SNA,repCost:6250,moneyCost:3e7,info:"A cranial implant that affects the user's personality, making them better at negotiation in social situations.",work_money_mult:1.1,company_rep_mult:1.15,faction_rep_mult:1.15,factions:[f.a.TianDiHui]}),new a.a({name:r.a.NeuroreceptorManager,repCost:75e3,moneyCost:55e7,info:"A brain implant carefully assembled around the synapses, which micromanages the activity and levels of various neuroreceptor chemicals and modulates electrical activity to optimize concentration, allowing the user to multitask much more effectively.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation removes the penalty for not focusing on actions such as working in a job or working for a faction."),factions:[f.a.TianDiHui]}),new a.a({name:r.a.CongruityImplant,repCost:1/0,moneyCost:5e13,info:c.a.createElement(c.a.Fragment,null,"Developed by a pioneer in Grafting research, this implant generates pulses of stability which seem to have a nullifying effect versus the Entropy virus.",c.a.createElement("br",null),c.a.createElement("br",null),c.a.createElement("b",null,"Note:")," For unknown reasons, the lowercase ",c.a.createElement("code",null,"n")," appears to be an integral component to its functionality."),stats:c.a.createElement(c.a.Fragment,null,"This Augmentation removes the Entropy virus, and prevents it from affecting you again."),factions:[]})],d=()=>[new a.a({name:r.a.EsperEyewear,repCost:1250,moneyCost:165e6,info:"Ballistic-grade protective and retractable eyewear that was designed specifically 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, lasers, blinding flashes, and gas. It is also embedded with a data processing chip that can be programmed to display an AR HUD to assist the user in field missions.",bladeburner_success_chance_mult:1.03,dexterity_mult:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.EMS4Recombination,repCost:2500,moneyCost:275e6,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, improve reflexes, and improve memory among other things.",bladeburner_success_chance_mult:1.03,bladeburner_analysis_mult:1.05,bladeburner_stamina_gain_mult:1.02,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.OrionShoulder,repCost:6250,moneyCost:55e7,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.",defense_mult:1.05,strength_mult:1.05,dexterity_mult:1.05,bladeburner_success_chance_mult:1.04,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.HyperionV1,repCost:12500,moneyCost:275e7,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.",bladeburner_success_chance_mult:1.06,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.HyperionV2,repCost:25e3,moneyCost:55e8,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-efficient, more accurate, and can fire plasma bolts at a much higher velocity than the V1 model.",prereqs:[r.a.HyperionV1],bladeburner_success_chance_mult:1.08,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.GolemSerum,repCost:31250,moneyCost:11e9,info:"A serum that permanently enhances many aspects of human capabilities, including strength, speed, immune system enhancements, and mitochondrial efficiency. The serum was originally developed by the Chinese military in an attempt to create super soldiers.",strength_mult:1.07,defense_mult:1.07,dexterity_mult:1.07,agility_mult:1.07,bladeburner_stamina_gain_mult:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.VangelisVirus,repCost:18750,moneyCost:275e7,info:"A synthetic symbiotic virus that is injected into human brain tissue. The Vangelis virus heightens the senses and focus of its host, and also enhances its intuition.",dexterity_exp_mult:1.1,bladeburner_analysis_mult:1.1,bladeburner_success_chance_mult:1.04,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.VangelisVirus3,repCost:37500,moneyCost:11e9,info:"An improved version of Vangelis, a synthetic symbiotic virus that is injected into human brain tissue. On top of the benefits of the original virus, this also grants an accelerated healing factor and enhanced reflexes.",prereqs:[r.a.VangelisVirus],defense_exp_mult:1.1,dexterity_exp_mult:1.1,bladeburner_analysis_mult:1.15,bladeburner_success_chance_mult:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.INTERLINKED,repCost:25e3,moneyCost:55e8,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.",strength_exp_mult:1.05,defense_exp_mult:1.05,dexterity_exp_mult:1.05,agility_exp_mult:1.05,bladeburner_max_stamina_mult:1.1,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeRunner,repCost:2e4,moneyCost:825e7,info:`A cybernetic foot augmentation that was specifically created for ${f.a.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.`,agility_mult:1.05,bladeburner_max_stamina_mult:1.05,bladeburner_stamina_gain_mult:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmor,repCost:12500,moneyCost:1375e6,info:`A powered exoskeleton suit designed as armor for ${f.a.Bladeburners} 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 physical abilities.`,strength_mult:1.04,defense_mult:1.04,dexterity_mult:1.04,agility_mult:1.04,bladeburner_stamina_gain_mult:1.02,bladeburner_success_chance_mult:1.03,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorPowerCells,repCost:18750,moneyCost:275e7,info:"Upgrades the BLADE-51b Tesla Armor with Ion Power Cells, which are capable of more efficiently storing and using power.",prereqs:[r.a.BladeArmor],bladeburner_success_chance_mult:1.05,bladeburner_stamina_gain_mult:1.02,bladeburner_max_stamina_mult:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorEnergyShielding,repCost:21250,moneyCost:55e8,info:"Upgrades the BLADE-51b Tesla Armor with a plasma energy propulsion system that is capable of projecting an energy shielding force field.",prereqs:[r.a.BladeArmor],defense_mult:1.05,bladeburner_success_chance_mult:1.06,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorUnibeam,repCost:31250,moneyCost:165e8,info:"Upgrades the BLADE-51b Tesla Armor with a concentrated deuterium-fluoride laser weapon. It's precision and accuracy makes it useful for quickly neutralizing threats while keeping casualties to a minimum.",prereqs:[r.a.BladeArmor],bladeburner_success_chance_mult:1.08,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorOmnibeam,repCost:62500,moneyCost:275e8,info:"Upgrades the BLADE-51b Tesla Armor Unibeam augmentation to use a multiple-fiber system. This upgraded weapon uses multiple fiber laser modules that combine together to form a single, more powerful beam of up to 2000MW.",prereqs:[r.a.BladeArmorUnibeam],bladeburner_success_chance_mult:1.1,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorIPU,repCost:15e3,moneyCost:11e8,info:"Upgrades the BLADE-51b Tesla Armor with an AI Information Processing Unit that was specially designed to analyze Synthoid related data and information.",prereqs:[r.a.BladeArmor],bladeburner_analysis_mult:1.15,bladeburner_success_chance_mult:1.02,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladesSimulacrum,repCost:1250,moneyCost:15e10,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 specifically weaponized by Bladeburner units to be used against Synthoids.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation allows you to perform Bladeburner actions and other actions (such as working, commiting crimes, etc.) at the same time."),isSpecial:!0,factions:[f.a.Bladeburners]})],p=()=>[new a.a({name:r.a.StaneksGift1,repCost:0,moneyCost:0,info:'Allison "Mother" Stanek imparts you with her gift. An experimental Augmentation implanted at the base of the neck. It allows you to overclock your entire system by carefully changing the configuration.',isSpecial:!0,hacking_chance_mult:.9,hacking_speed_mult:.9,hacking_money_mult:.9,hacking_grow_mult:.9,hacking_mult:.9,strength_mult:.9,defense_mult:.9,dexterity_mult:.9,agility_mult:.9,charisma_mult:.9,hacking_exp_mult:.9,strength_exp_mult:.9,defense_exp_mult:.9,dexterity_exp_mult:.9,agility_exp_mult:.9,charisma_exp_mult:.9,company_rep_mult:.9,faction_rep_mult:.9,crime_money_mult:.9,crime_success_mult:.9,hacknet_node_money_mult:.9,hacknet_node_purchase_cost_mult:1.1,hacknet_node_ram_cost_mult:1.1,hacknet_node_core_cost_mult:1.1,hacknet_node_level_cost_mult:1.1,work_money_mult:.9,stats:c.a.createElement(c.a.Fragment,null,"Its unstable nature decreases all your stats by 10%"),factions:[f.a.ChurchOfTheMachineGod]}),new a.a({name:r.a.StaneksGift2,repCost:1e6,moneyCost:0,info:"The next evolution is near, a coming together of man and machine. A synthesis greater than the birth of the human organism. Time spent with the gift has allowed for acclimatization of the invasive augment and the toll it takes upon your frame granting lesser penalty of 5% to all stats.",prereqs:[r.a.StaneksGift1],isSpecial:!0,hacking_chance_mult:.95/.9,hacking_speed_mult:.95/.9,hacking_money_mult:.95/.9,hacking_grow_mult:.95/.9,hacking_mult:.95/.9,strength_mult:.95/.9,defense_mult:.95/.9,dexterity_mult:.95/.9,agility_mult:.95/.9,charisma_mult:.95/.9,hacking_exp_mult:.95/.9,strength_exp_mult:.95/.9,defense_exp_mult:.95/.9,dexterity_exp_mult:.95/.9,agility_exp_mult:.95/.9,charisma_exp_mult:.95/.9,company_rep_mult:.95/.9,faction_rep_mult:.95/.9,crime_money_mult:.95/.9,crime_success_mult:.95/.9,hacknet_node_money_mult:.95/.9,hacknet_node_purchase_cost_mult:1.05/1.1,hacknet_node_ram_cost_mult:1.05/1.1,hacknet_node_core_cost_mult:1.05/1.1,hacknet_node_level_cost_mult:1.05/1.1,work_money_mult:.95/.9,stats:c.a.createElement(c.a.Fragment,null,"The penalty for the gift is reduced to 5%"),factions:[f.a.ChurchOfTheMachineGod]}),new a.a({name:r.a.StaneksGift3,repCost:1e8,moneyCost:0,info:"The synthesis of human and machine is nothing to fear. It is our destiny. You will become greater than the sum of our parts. As One. Embrace your gift fully and wholly free of it's accursed toll. Serenity brings tranquility the form of no longer suffering a stat penalty. ",prereqs:[r.a.StaneksGift2,r.a.StaneksGift1],isSpecial:!0,hacking_chance_mult:1/.95,hacking_speed_mult:1/.95,hacking_money_mult:1/.95,hacking_grow_mult:1/.95,hacking_mult:1/.95,strength_mult:1/.95,defense_mult:1/.95,dexterity_mult:1/.95,agility_mult:1/.95,charisma_mult:1/.95,hacking_exp_mult:1/.95,strength_exp_mult:1/.95,defense_exp_mult:1/.95,dexterity_exp_mult:1/.95,agility_exp_mult:1/.95,charisma_exp_mult:1/.95,company_rep_mult:1/.95,faction_rep_mult:1/.95,crime_money_mult:1/.95,crime_success_mult:1/.95,hacknet_node_money_mult:1/.95,hacknet_node_purchase_cost_mult:1/1.05,hacknet_node_ram_cost_mult:1/1.05,hacknet_node_core_cost_mult:1/1.05,hacknet_node_level_cost_mult:1/1.05,work_money_mult:1/.95,stats:c.a.createElement(c.a.Fragment,null,"Stanek's Gift has no penalty."),factions:[f.a.ChurchOfTheMachineGod]})];function g(){const t=u.a.Donations/1e6/100;return new a.a({name:r.a.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.",stats:c.a.createElement(c.a.Fragment,null,"This special augmentation can be leveled up infinitely. Each level of this augmentation increases MOST multipliers by 1% (+",(100*t).toFixed(6),"% boosted by real life blood donations), stacking multiplicatively."),isSpecial:!0,hacking_chance_mult:1.01+t,hacking_speed_mult:1.01+t,hacking_money_mult:1.01+t,hacking_grow_mult:1.01+t,hacking_mult:1.01+t,strength_mult:1.01+t,defense_mult:1.01+t,dexterity_mult:1.01+t,agility_mult:1.01+t,charisma_mult:1.01+t,hacking_exp_mult:1.01+t,strength_exp_mult:1.01+t,defense_exp_mult:1.01+t,dexterity_exp_mult:1.01+t,agility_exp_mult:1.01+t,charisma_exp_mult:1.01+t,company_rep_mult:1.01+t,faction_rep_mult:1.01+t,crime_money_mult:1.01+t,crime_success_mult:1.01+t,hacknet_node_money_mult:1.01+t,hacknet_node_purchase_cost_mult:1/(1.01+t),hacknet_node_ram_cost_mult:1/(1.01+t),hacknet_node_core_cost_mult:1/(1.01+t),hacknet_node_level_cost_mult:1/(1.01+t),work_money_mult:1.01+t,factions:Object.values(f.a).filter(t=>![f.a.ShadowsOfAnarchy,f.a.Bladeburners,f.a.ChurchOfTheMachineGod].includes(t))})}function y(){const t=function(){const t=[{bonuses:{hacking_chance_mult:1.25,hacking_speed_mult:1.1,hacking_money_mult:1.25,hacking_grow_mult:1.1},description:"Increases the player's hacking chance by 25%.
Increases the player's hacking speed by 10%.
Increases the amount of money the player's gains from hacking by 25%.
Improves grow() by 10%."},{bonuses:{hacking_mult:1.15,hacking_exp_mult:2},description:"Increases the player's hacking skill by 15%.
Increases the player's hacking experience gain rate by 100%."},{bonuses:{strength_mult:1.25,strength_exp_mult:2,defense_mult:1.25,defense_exp_mult:2,dexterity_mult:1.25,dexterity_exp_mult:2,agility_mult:1.25,agility_exp_mult:2},description:"Increases all of the player's combat stats by 25%.
Increases all of the player's combat stat experience gain rate by 100%."},{bonuses:{charisma_mult:1.5,charisma_exp_mult:2},description:"This augmentation increases the player's charisma by 50%.
Increases the player's charisma experience gain rate by 100%."},{bonuses:{hacknet_node_money_mult:1.2,hacknet_node_purchase_cost_mult:.85,hacknet_node_ram_cost_mult:.85,hacknet_node_core_cost_mult:.85,hacknet_node_level_cost_mult:.85},description:"Increases the amount of money produced by Hacknet Nodes by 20%.
Decreases all costs related to Hacknet Node by 15%."},{bonuses:{company_rep_mult:1.25,faction_rep_mult:1.15,work_money_mult:1.7},description:"Increases the amount of money the player gains from working by 70%.
Increases the amount of reputation the player gains when working for a company by 25%.
Increases the amount of reputation the player gains for a faction by 15%."},{bonuses:{crime_success_mult:2,crime_money_mult:2},description:"Increases the player's crime success rate by 100%.
Increases the amount of money the player gains from crimes by 100%."}],e=new s.c(Math.floor(i.a.lastUpdate/36e5));for(let t=0;t<5;t++)e.step();return t[Math.floor(t.length*e.random())]}(),e={name:r.a.UnstableCircadianModulator,moneyCost:5e9,repCost:362500,info:"An experimental nanobot injection. Its unstable nature leads to unpredictable results based on your circadian rhythm.",factions:[f.a.SpeakersForTheDead]};return Object.keys(t.bonuses).forEach(n=>e[n]=t.bonuses[n]),new a.a(e)}},,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(4),r=n(9),i=n(65),o=n(89);const s=[{hackDifficulty:99,hostname:r.a.AevumECorp.toLowerCase(),moneyAvailable:{max:7e10,min:3e10},networkLayer:15,numOpenPortsRequired:5,organizationName:r.a.AevumECorp,requiredHackingSkill:{max:1400,min:1050},serverGrowth:99,specialName:r.a.AevumECorp},{hackDifficulty:99,hostname:r.a.Sector12MegaCorp.toLowerCase(),moneyAvailable:{max:6e10,min:4e10},networkLayer:15,numOpenPortsRequired:5,organizationName:r.a.Sector12MegaCorp,requiredHackingSkill:{max:1350,min:1100},serverGrowth:99,specialName:r.a.Sector12MegaCorp},{hackDifficulty:{max:88,min:72},hostname:"b-and-a",moneyAvailable:{max:3e10,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.AevumBachmanAndAssociates,requiredHackingSkill:{max:1150,min:900},serverGrowth:{max:80,min:60},specialName:r.a.AevumBachmanAndAssociates},{hackDifficulty:{max:97,min:88},hostname:"blade",literature:[i.a.BeyondMan],maxRamExponent:{max:9,min:5},moneyAvailable:{max:4e10,min:1e10},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.Sector12BladeIndustries,requiredHackingSkill:{max:1200,min:900},serverGrowth:{max:85,min:55},specialName:r.a.Sector12BladeIndustries},{hackDifficulty:99,hostname:r.a.VolhavenNWO.toLowerCase(),literature:[i.a.TheHiddenWorld],moneyAvailable:{max:4e10,min:2e10},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.VolhavenNWO,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:95,min:65},specialName:r.a.VolhavenNWO},{hackDifficulty:{max:65,min:45},hostname:"clarkinc",literature:[i.a.BeyondMan,i.a.CostOfImmortality],moneyAvailable:{max:25e9,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.AevumClarkeIncorporated,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:75,min:45},specialName:r.a.AevumClarkeIncorporated},{hackDifficulty:{max:99,min:90},hostname:"omnitek",literature:[i.a.CodedIntelligence,i.a.HistoryOfSynthoids],maxRamExponent:{max:9,min:7},moneyAvailable:{max:22e9,min:13e9},networkLayer:13,numOpenPortsRequired:5,organizationName:r.a.VolhavenOmniTekIncorporated,requiredHackingSkill:{max:1100,min:900},serverGrowth:{max:99,min:95},specialName:r.a.VolhavenOmniTekIncorporated},{hackDifficulty:{max:75,min:55},hostname:"4sigma",moneyAvailable:{max:25e9,min:15e9},networkLayer:13,numOpenPortsRequired:5,organizationName:r.a.Sector12FourSigma,requiredHackingSkill:{max:1250,min:900},serverGrowth:{max:99,min:75},specialName:r.a.Sector12FourSigma},{hackDifficulty:{max:99,min:95},hostname:"kuai-gong",moneyAvailable:{max:3e10,min:2e10},networkLayer:13,numOpenPortsRequired:5,organizationName:r.a.ChongqingKuaiGongInternational,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:99,min:90},specialName:r.a.ChongqingKuaiGongInternational},{hackDifficulty:{max:97,min:83},hostname:"fulcrumtech",literature:[i.a.SimulatedReality],maxRamExponent:{max:11,min:7},moneyAvailable:{max:18e8,min:14e8},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.AevumFulcrumTechnologies,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:99,min:80},specialName:r.a.AevumFulcrumTechnologies},{hackDifficulty:99,hostname:"fulcrumassets",moneyAvailable:1e6,networkLayer:15,numOpenPortsRequired:5,organizationName:r.a.AevumFulcrumTechnologies,requiredHackingSkill:{max:1600,min:1100},serverGrowth:1,specialName:o.a.FulcrumSecretTechnologies},{hackDifficulty:{max:92,min:78},hostname:"stormtech",moneyAvailable:{max:12e8,min:1e9},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.IshimaStormTechnologies,requiredHackingSkill:{max:1075,min:875},serverGrowth:{max:92,min:68},specialName:r.a.IshimaStormTechnologies},{hackDifficulty:{max:96,min:84},hostname:"defcomm",moneyAvailable:{max:95e7,min:8e8},networkLayer:9,numOpenPortsRequired:5,organizationName:r.a.NewTokyoDefComm,requiredHackingSkill:{max:1050,min:850},serverGrowth:{max:73,min:47},specialName:r.a.NewTokyoDefComm},{hackDifficulty:{max:90,min:70},hostname:"infocomm",moneyAvailable:{max:9e8,min:6e8},networkLayer:10,numOpenPortsRequired:5,organizationName:"InfoComm",requiredHackingSkill:{max:950,min:875},serverGrowth:{max:75,min:35}},{hackDifficulty:{max:95,min:85},hostname:"helios",literature:[i.a.BeyondMan],maxRamExponent:{max:8,min:5},moneyAvailable:{max:75e7,min:55e7},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.VolhavenHeliosLabs,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:80,min:70},specialName:r.a.VolhavenHeliosLabs},{hackDifficulty:{max:90,min:80},hostname:r.a.NewTokyoVitaLife.toLowerCase(),literature:[i.a.AGreenTomorrow],maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.NewTokyoVitaLife,requiredHackingSkill:{max:900,min:775},serverGrowth:{max:80,min:60},specialName:r.a.NewTokyoVitaLife},{hackDifficulty:{max:95,min:85},hostname:"icarus",moneyAvailable:{max:1e9,min:9e8},networkLayer:9,numOpenPortsRequired:5,organizationName:r.a.Sector12IcarusMicrosystems,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:95,min:85},specialName:r.a.Sector12IcarusMicrosystems},{hackDifficulty:{max:90,min:80},hostname:"univ-energy",maxRamExponent:{max:7,min:4},moneyAvailable:{max:12e8,min:11e8},networkLayer:9,numOpenPortsRequired:4,organizationName:r.a.Sector12UniversalEnergy,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:90,min:80},specialName:r.a.Sector12UniversalEnergy},{hackDifficulty:{max:80,min:70},hostname:"titan-labs",literature:[i.a.CodedIntelligence],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:75e7},networkLayer:11,numOpenPortsRequired:5,organizationName:"Titan Laboratories",requiredHackingSkill:{max:875,min:800},serverGrowth:{max:80,min:60}},{hackDifficulty:{max:75,min:65},hostname:"microdyne",literature:[i.a.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:11,numOpenPortsRequired:5,organizationName:"Microdyne Technologies",requiredHackingSkill:{max:875,min:800},serverGrowth:{max:90,min:70}},{hackDifficulty:{max:80,min:70},hostname:"taiyang-digital",literature:[i.a.AGreenTomorrow,i.a.BrighterThanTheSun],moneyAvailable:{max:9e8,min:8e8},networkLayer:10,numOpenPortsRequired:5,organizationName:"Taiyang Digital",requiredHackingSkill:{max:950,min:850},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:65,min:55},hostname:"galactic-cyber",moneyAvailable:{max:85e7,min:75e7},networkLayer:7,numOpenPortsRequired:5,organizationName:r.a.AevumGalacticCybersystems,requiredHackingSkill:{max:875,min:825},serverGrowth:{max:90,min:70},specialName:r.a.AevumGalacticCybersystems},{hackDifficulty:{max:90,min:80},hostname:r.a.AevumAeroCorp.toLowerCase(),literature:[i.a.ManAndMachine],moneyAvailable:{max:12e8,min:1e9},networkLayer:7,numOpenPortsRequired:5,organizationName:r.a.AevumAeroCorp,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:65,min:55},specialName:r.a.AevumAeroCorp},{hackDifficulty:{max:95,min:85},hostname:"omnia",literature:[i.a.HistoryOfSynthoids],maxRamExponent:{max:6,min:4},moneyAvailable:{max:1e9,min:9e8},networkLayer:8,numOpenPortsRequired:5,organizationName:r.a.VolhavenOmniaCybersystems,requiredHackingSkill:{max:950,min:850},serverGrowth:{max:70,min:60},specialName:r.a.VolhavenOmniaCybersystems},{hackDifficulty:{max:65,min:55},hostname:"zb-def",literature:[i.a.SyntheticMuscles],moneyAvailable:{max:11e8,min:9e8},networkLayer:10,numOpenPortsRequired:4,organizationName:"ZB Defense Industries",requiredHackingSkill:{max:825,min:775},serverGrowth:{max:75,min:65}},{hackDifficulty:{max:80,min:60},hostname:"applied-energetics",moneyAvailable:{max:1e9,min:7e8},networkLayer:11,numOpenPortsRequired:4,organizationName:"Applied Energetics",requiredHackingSkill:{max:850,min:775},serverGrowth:{max:75,min:70}},{hackDifficulty:{max:80,min:70},hostname:"solaris",literature:[i.a.AGreenTomorrow,i.a.TheFailedFrontier],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:7e8},networkLayer:9,numOpenPortsRequired:5,organizationName:r.a.ChongqingSolarisSpaceSystems,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:80,min:70},specialName:r.a.ChongqingSolarisSpaceSystems},{hackDifficulty:{max:85,min:75},hostname:r.a.Sector12DeltaOne.toLowerCase(),moneyAvailable:{max:17e8,min:13e8},networkLayer:8,numOpenPortsRequired:5,organizationName:r.a.Sector12DeltaOne,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:70,min:50},specialName:r.a.Sector12DeltaOne},{hackDifficulty:{max:85,min:75},hostname:"global-pharm",literature:[i.a.AGreenTomorrow],maxRamExponent:{max:6,min:3},moneyAvailable:{max:175e7,min:15e8},networkLayer:7,numOpenPortsRequired:4,organizationName:r.a.NewTokyoGlobalPharmaceuticals,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:90,min:80},specialName:r.a.NewTokyoGlobalPharmaceuticals},{hackDifficulty:{max:80,min:60},hostname:"nova-med",moneyAvailable:{max:125e7,min:11e8},networkLayer:10,numOpenPortsRequired:4,organizationName:r.a.IshimaNovaMedical,requiredHackingSkill:{max:850,min:775},serverGrowth:{max:85,min:65},specialName:r.a.IshimaNovaMedical},{hackDifficulty:{max:90,min:70},hostname:"zeus-med",moneyAvailable:{max:15e8,min:13e8},networkLayer:9,numOpenPortsRequired:5,organizationName:"Zeus Medical",requiredHackingSkill:{max:850,min:800},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:80,min:70},hostname:"unitalife",maxRamExponent:{max:6,min:4},moneyAvailable:{max:11e8,min:1e9},networkLayer:8,numOpenPortsRequired:4,organizationName:"UnitaLife Group",requiredHackingSkill:{max:825,min:775},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:80,min:60},hostname:"lexo-corp",maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:6,numOpenPortsRequired:4,organizationName:r.a.VolhavenLexoCorp,requiredHackingSkill:{max:750,min:650},serverGrowth:{max:65,min:55},specialName:r.a.VolhavenLexoCorp},{hackDifficulty:{max:60,min:40},hostname:"rho-construction",maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:6,numOpenPortsRequired:3,organizationName:r.a.AevumRhoConstruction,requiredHackingSkill:{max:525,min:475},serverGrowth:{max:60,min:40},specialName:r.a.AevumRhoConstruction},{hackDifficulty:{max:70,min:50},hostname:"alpha-ent",literature:[i.a.Sector12Crime],maxRamExponent:{max:7,min:4},moneyAvailable:{max:75e7,min:6e8},networkLayer:6,numOpenPortsRequired:4,organizationName:r.a.Sector12AlphaEnterprises,requiredHackingSkill:{max:600,min:500},serverGrowth:{max:60,min:50},specialName:r.a.Sector12AlphaEnterprises},{hackDifficulty:{max:80,min:70},hostname:"aevum-police",maxRamExponent:{max:6,min:4},moneyAvailable:{max:4e8,min:2e8},networkLayer:6,numOpenPortsRequired:4,organizationName:r.a.AevumPolice,requiredHackingSkill:{max:450,min:400},serverGrowth:{max:50,min:30},specialName:r.a.AevumPolice},{hackDifficulty:{max:55,min:45},hostname:"rothman-uni",literature:[i.a.SecretSocieties,i.a.TheFailedFrontier,i.a.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:25e7,min:175e6},networkLayer:5,numOpenPortsRequired:3,organizationName:r.a.Sector12RothmanUniversity,requiredHackingSkill:{max:430,min:370},serverGrowth:{max:45,min:35},specialName:r.a.Sector12RothmanUniversity},{hackDifficulty:{max:85,min:65},hostname:"zb-institute",maxRamExponent:{max:7,min:4},moneyAvailable:{max:11e8,min:8e8},networkLayer:5,numOpenPortsRequired:5,organizationName:r.a.VolhavenZBInstituteOfTechnology,requiredHackingSkill:{max:775,min:725},serverGrowth:{max:85,min:75},specialName:r.a.VolhavenZBInstituteOfTechnology},{hackDifficulty:{max:65,min:45},hostname:"summit-uni",literature:[i.a.SecretSocieties,i.a.TheFailedFrontier,i.a.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:35e7,min:2e8},networkLayer:5,numOpenPortsRequired:3,organizationName:r.a.AevumSummitUniversity,requiredHackingSkill:{max:475,min:425},serverGrowth:{max:60,min:40},specialName:r.a.AevumSummitUniversity},{hackDifficulty:{max:80,min:60},hostname:"syscore",moneyAvailable:{max:6e8,min:4e8},networkLayer:5,numOpenPortsRequired:4,organizationName:r.a.VolhavenSysCoreSecurities,requiredHackingSkill:{max:650,min:550},serverGrowth:{max:70,min:60},specialName:r.a.VolhavenSysCoreSecurities},{hackDifficulty:{max:70,min:60},hostname:"catalyst",literature:[i.a.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:55e7,min:3e8},networkLayer:5,numOpenPortsRequired:3,organizationName:"Catalyst Ventures",requiredHackingSkill:{max:450,min:400},serverGrowth:{max:55,min:25}},{hackDifficulty:{max:45,min:35},hostname:"the-hub",maxRamExponent:{max:6,min:3},moneyAvailable:{max:2e8,min:15e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"The Hub",requiredHackingSkill:{max:325,min:275},serverGrowth:{max:55,min:45}},{hackDifficulty:{max:65,min:55},hostname:r.a.VolhavenCompuTek.toLowerCase(),literature:[i.a.ManAndMachine],moneyAvailable:{max:25e7,min:22e7},networkLayer:4,numOpenPortsRequired:3,organizationName:r.a.VolhavenCompuTek,requiredHackingSkill:{max:400,min:300},serverGrowth:{max:65,min:45},specialName:r.a.VolhavenCompuTek},{hackDifficulty:{max:80,min:60},hostname:"netlink",literature:[i.a.SimulatedReality],maxRamExponent:{max:7,min:4},moneyAvailable:275e6,networkLayer:4,numOpenPortsRequired:3,organizationName:r.a.AevumNetLinkTechnologies,requiredHackingSkill:{max:425,min:375},serverGrowth:{max:75,min:45},specialName:r.a.AevumNetLinkTechnologies},{hackDifficulty:{max:65,min:35},hostname:"johnson-ortho",moneyAvailable:{max:85e6,min:7e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"Johnson Orthopedics",requiredHackingSkill:{max:300,min:250},serverGrowth:{max:65,min:35}},{hackDifficulty:1,hostname:"n00dles",literature:[],maxRamExponent:2,moneyAvailable:7e4,networkLayer:1,numOpenPortsRequired:0,organizationName:r.a.NewTokyoNoodleBar,requiredHackingSkill:1,serverGrowth:3e3,specialName:r.a.NewTokyoNoodleBar},{hackDifficulty:10,hostname:r.a.Sector12FoodNStuff.toLowerCase(),literature:[i.a.Sector12Crime],maxRamExponent:4,moneyAvailable:2e6,networkLayer:1,numOpenPortsRequired:0,organizationName:r.a.Sector12FoodNStuff,requiredHackingSkill:1,serverGrowth:5,specialName:r.a.Sector12FoodNStuff},{hackDifficulty:10,hostname:"sigma-cosmetics",maxRamExponent:4,moneyAvailable:23e5,networkLayer:1,numOpenPortsRequired:0,organizationName:"Sigma Cosmetics",requiredHackingSkill:5,serverGrowth:10},{hackDifficulty:15,hostname:"joesguns",maxRamExponent:4,moneyAvailable:25e5,networkLayer:1,numOpenPortsRequired:0,organizationName:r.a.Sector12JoesGuns,requiredHackingSkill:10,serverGrowth:20,specialName:r.a.Sector12JoesGuns},{hackDifficulty:25,hostname:"zer0",maxRamExponent:5,moneyAvailable:75e5,networkLayer:2,numOpenPortsRequired:1,organizationName:"ZER0 Nightclub",requiredHackingSkill:75,serverGrowth:40},{hackDifficulty:20,hostname:"nectar-net",maxRamExponent:4,moneyAvailable:275e4,networkLayer:2,numOpenPortsRequired:0,organizationName:"Nectar Nightclub Network",requiredHackingSkill:20,serverGrowth:25},{hackDifficulty:25,hostname:"neo-net",literature:[i.a.TheHiddenWorld],maxRamExponent:5,moneyAvailable:5e6,networkLayer:3,numOpenPortsRequired:1,organizationName:"Neo Nightclub Network",requiredHackingSkill:50,serverGrowth:25},{hackDifficulty:30,hostname:"silver-helix",literature:[i.a.NewTriads],maxRamExponent:6,moneyAvailable:45e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Silver Helix",requiredHackingSkill:150,serverGrowth:30},{hackDifficulty:15,hostname:"hong-fang-tea",literature:[i.a.BrighterThanTheSun],maxRamExponent:4,moneyAvailable:3e6,networkLayer:1,numOpenPortsRequired:0,organizationName:"HongFang Teahouse",requiredHackingSkill:30,serverGrowth:20},{hackDifficulty:15,hostname:"harakiri-sushi",maxRamExponent:4,moneyAvailable:4e6,networkLayer:1,numOpenPortsRequired:0,organizationName:"HaraKiri Sushi Bar Network",requiredHackingSkill:40,serverGrowth:40},{hackDifficulty:20,hostname:"phantasy",maxRamExponent:5,moneyAvailable:24e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Phantasy Club",requiredHackingSkill:100,serverGrowth:35},{hackDifficulty:15,hostname:"max-hardware",maxRamExponent:5,moneyAvailable:1e7,networkLayer:2,numOpenPortsRequired:1,organizationName:"Max Hardware Store",requiredHackingSkill:80,serverGrowth:30},{hackDifficulty:{max:35,min:25},hostname:"omega-net",literature:[i.a.TheNewGod],maxRamExponent:5,moneyAvailable:{max:7e7,min:6e7},networkLayer:3,numOpenPortsRequired:2,organizationName:r.a.IshimaOmegaSoftware,requiredHackingSkill:{max:220,min:180},serverGrowth:{max:40,min:30},specialName:r.a.IshimaOmegaSoftware},{hackDifficulty:{max:45,min:35},hostname:"crush-fitness",moneyAvailable:{max:6e7,min:4e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"Crush Fitness",requiredHackingSkill:{max:275,min:225},serverGrowth:{max:33,min:27},specialName:r.a.AevumCrushFitnessGym},{hackDifficulty:30,hostname:"iron-gym",maxRamExponent:5,moneyAvailable:2e7,networkLayer:1,numOpenPortsRequired:1,organizationName:r.a.Sector12IronGym+" Network",requiredHackingSkill:100,serverGrowth:20,specialName:r.a.Sector12IronGym},{hackDifficulty:{max:55,min:45},hostname:"millenium-fitness",maxRamExponent:{max:8,min:4},moneyAvailable:25e7,networkLayer:6,numOpenPortsRequired:3,organizationName:"Millenium Fitness Network",requiredHackingSkill:{max:525,min:475},serverGrowth:{max:45,min:25},specialName:r.a.VolhavenMilleniumFitnessGym},{hackDifficulty:{max:65,min:55},hostname:"powerhouse-fitness",maxRamExponent:{max:6,min:4},moneyAvailable:9e8,networkLayer:14,numOpenPortsRequired:5,organizationName:"Powerhouse Fitness",requiredHackingSkill:{max:1100,min:950},serverGrowth:{max:60,min:50},specialName:r.a.Sector12PowerhouseGym},{hackDifficulty:{max:60,min:40},hostname:"snap-fitness",moneyAvailable:45e7,networkLayer:7,numOpenPortsRequired:4,organizationName:"Snap Fitness",requiredHackingSkill:{max:800,min:675},serverGrowth:{max:60,min:40},specialName:r.a.AevumSnapFitnessGym},{hackDifficulty:0,hostname:"run4theh111z",literature:[i.a.SimulatedReality,i.a.TheNewGod],maxRamExponent:{max:9,min:5},moneyAvailable:0,networkLayer:11,numOpenPortsRequired:4,organizationName:"The Runners",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:o.a.BitRunnersServer},{hackDifficulty:0,hostname:"I.I.I.I",literature:[i.a.DemocracyIsDead],maxRamExponent:{max:8,min:4},moneyAvailable:0,networkLayer:5,numOpenPortsRequired:3,organizationName:"I.I.I.I",requiredHackingSkill:{max:365,min:340},serverGrowth:0,specialName:o.a.TheBlackHandServer},{hackDifficulty:0,hostname:"avmnite-02h",literature:[i.a.DemocracyIsDead],maxRamExponent:{max:7,min:4},moneyAvailable:0,networkLayer:4,numOpenPortsRequired:2,organizationName:a.a.NiteSec,requiredHackingSkill:{max:220,min:202},serverGrowth:0,specialName:o.a.NiteSecServer},{hackDifficulty:0,hostname:".",maxRamExponent:4,moneyAvailable:0,networkLayer:13,numOpenPortsRequired:4,organizationName:".",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:o.a.TheDarkArmyServer},{hackDifficulty:0,hostname:"CSEC",literature:[i.a.DemocracyIsDead],maxRamExponent:3,moneyAvailable:0,networkLayer:2,numOpenPortsRequired:1,organizationName:a.a.CyberSec,requiredHackingSkill:{max:60,min:51},serverGrowth:0,specialName:o.a.CyberSecServer},{hackDifficulty:0,hostname:"The-Cave",literature:[i.a.AlphaOmega],moneyAvailable:0,networkLayer:15,numOpenPortsRequired:5,organizationName:"Helios",requiredHackingSkill:925,serverGrowth:0,specialName:o.a.DaedalusServer},{hackDifficulty:0,hostname:"w0r1d_d43m0n",moneyAvailable:0,numOpenPortsRequired:5,organizationName:"w0r1d_d43m0n",requiredHackingSkill:3e3,serverGrowth:0,specialName:o.a.WorldDaemon},{hostname:o.a.DarkWeb,moneyAvailable:0,numOpenPortsRequired:5,organizationName:o.a.DarkWeb,requiredHackingSkill:1,specialName:o.a.DarkWeb}]},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(10),r=n(31);class i{constructor(t){this.name=t.name,this.nextPosition=t.nextPosition,this.baseSalary=t.baseSalary,this.repMultiplier=t.repMultiplier,this.requiredHacking=null!=t.reqdHacking?t.reqdHacking:0,this.requiredStrength=null!=t.reqdStrength?t.reqdStrength:0,this.requiredDefense=null!=t.reqdDefense?t.reqdDefense:0,this.requiredDexterity=null!=t.reqdDexterity?t.reqdDexterity:0,this.requiredAgility=null!=t.reqdAgility?t.reqdAgility:0,this.requiredCharisma=null!=t.reqdCharisma?t.reqdCharisma:0,this.requiredReputation=null!=t.reqdReputation?t.reqdReputation:0,this.hackingEffectiveness=null!=t.hackingEffectiveness?t.hackingEffectiveness:0,this.strengthEffectiveness=null!=t.strengthEffectiveness?t.strengthEffectiveness:0,this.defenseEffectiveness=null!=t.defenseEffectiveness?t.defenseEffectiveness:0,this.dexterityEffectiveness=null!=t.dexterityEffectiveness?t.dexterityEffectiveness:0,this.agilityEffectiveness=null!=t.agilityEffectiveness?t.agilityEffectiveness:0,this.charismaEffectiveness=null!=t.charismaEffectiveness?t.charismaEffectiveness:0,100!==Math.round(this.hackingEffectiveness+this.strengthEffectiveness+this.defenseEffectiveness+this.dexterityEffectiveness+this.agilityEffectiveness+this.charismaEffectiveness)&&console.error(`CompanyPosition ${this.name} parameters do not sum to 100`),this.hackingExpGain=null!=t.hackingExpGain?t.hackingExpGain:0,this.strengthExpGain=null!=t.strengthExpGain?t.strengthExpGain:0,this.defenseExpGain=null!=t.defenseExpGain?t.defenseExpGain:0,this.dexterityExpGain=null!=t.dexterityExpGain?t.dexterityExpGain:0,this.agilityExpGain=null!=t.agilityExpGain?t.agilityExpGain:0,this.charismaExpGain=null!=t.charismaExpGain?t.charismaExpGain:0}calculateJobPerformance(t,e,n,r,i,o){const s=this.hackingEffectiveness*t/a.a.MaxSkillLevel,l=this.strengthEffectiveness*e/a.a.MaxSkillLevel,c=this.defenseEffectiveness*n/a.a.MaxSkillLevel,f=this.dexterityEffectiveness*r/a.a.MaxSkillLevel,u=this.agilityEffectiveness*i/a.a.MaxSkillLevel,m=this.charismaEffectiveness*o/a.a.MaxSkillLevel;let h=this.repMultiplier*(s+l+c+f+u+m)/100;return isNaN(h)&&(console.error("Company reputation gain calculated to be NaN"),h=0),h}isSoftwareJob(){return r.j.includes(this.name)}isITJob(){return r.d.includes(this.name)}isSecurityEngineerJob(){return r.i.includes(this.name)}isNetworkEngineerJob(){return r.f.includes(this.name)}isBusinessJob(){return r.b.includes(this.name)}isSecurityJob(){return r.h.includes(this.name)}isAgentJob(){return r.a.includes(this.name)}isSoftwareConsultantJob(){return r.k.includes(this.name)}isBusinessConsultantJob(){return r.c.includes(this.name)}isPartTimeJob(){return r.g.includes(this.name)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(6),r=n(85),i=n(28),o=n(375);function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class l{constructor(t=null,e=[]){s(this,"args",[]),s(this,"dataMap",{}),s(this,"filename",""),s(this,"logs",[]),s(this,"logUpd",!1),s(this,"offlineExpGained",0),s(this,"offlineMoneyMade",0),s(this,"offlineRunningTime",.01),s(this,"onlineExpGained",0),s(this,"onlineMoneyMade",0),s(this,"onlineRunningTime",.01),s(this,"pid",-1),s(this,"ramUsage",0),s(this,"server",""),s(this,"threads",1),s(this,"dependencies",[]),null!=t&&(this.filename=t.filename,this.args=e,this.server=t.server,this.ramUsage=t.ramUsage,this.dependencies=t.dependencies)}log(t){this.logs.length>a.a.MaxLogCapacity&&this.logs.shift();let e=t;a.a.TimestampsFormat&&(e="["+Object(o.a)(a.a.TimestampsFormat)+"] "+e),this.logs.push(e),this.logUpd=!0}displayLog(){for(let t=0;tH4CK||3T 8URN3R5**>?>\\~~"),offerHackingWork:!0}),[i.a.TianDiHui]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Obey Heaven and work righteously."),offerHackingWork:!0,offerSecurityWork:!0}),[i.a.CyberSec]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The Internet is the first thing that was built that we don't fully understand, the largest experiment in anarchy that we have ever had. And as the world becomes increasingly dominated by it, society approaches the brink of total chaos. We serve only to protect society, to protect humanity, to protect the world from imminent collapse."),offerHackingWork:!0}),[i.a.Bladeburners]:new c({infoText:r.a.createElement(r.a.Fragment,null,"It's too bad they won't live. But then again, who does?",r.a.createElement("br",null),r.a.createElement("br",null),"Note that for this faction, reputation can only be gained through ",i.a.Bladeburners," actions."," ","Completing ",i.a.Bladeburners," contracts/operations will increase your reputation."),special:!0,assignment:()=>{const t=o.b.Router();return r.a.createElement(s.a,{buttonText:"Open Bladeburner headquarters",infoText:"You can gain reputation with bladeburner by completing contracts and operations.",onClick:()=>t.toBladeburner()})}}),[i.a.ChurchOfTheMachineGod]:new c({infoText:r.a.createElement(r.a.Fragment,null," `` ",r.a.createElement("br",null)," -odmmNmds: ",r.a.createElement("br",null)," `hNmo:..-omNh. ",r.a.createElement("br",null)," yMd` `hNh ",r.a.createElement("br",null)," mMd oNm ",r.a.createElement("br",null)," oMNo .mM/ ",r.a.createElement("br",null)," `dMN+ -mM+ ",r.a.createElement("br",null)," -mMNo -mN+ ",r.a.createElement("br",null)," .+- :mMNo/mN/ ",r.a.createElement("br",null),":yNMd. :NMNNN/ ",r.a.createElement("br",null),"-mMMMh. /NMMh` ",r.a.createElement("br",null)," .dMMMd. /NMMMy` ",r.a.createElement("br",null)," `yMMMd. /NNyNMMh` ",r.a.createElement("br",null)," `sMMMd. +Nm: +NMMh. ",r.a.createElement("br",null)," oMMMm- oNm: /NMMd. ",r.a.createElement("br",null)," +NMMmsMm- :mMMd. ",r.a.createElement("br",null)," /NMMMm- -mMMd. ",r.a.createElement("br",null)," /MMMm- -mMMd. ",r.a.createElement("br",null)," `sMNMMm- .mMmo ",r.a.createElement("br",null)," `sMd:hMMm. ./. ",r.a.createElement("br",null)," `yMy` `yNMd` ",r.a.createElement("br",null)," `hMs` oMMy ",r.a.createElement("br",null)," `hMh sMN- ",r.a.createElement("br",null)," /MM- .NMo ",r.a.createElement("br",null)," +MM: :MM+ ",r.a.createElement("br",null)," sNNo-.`.-omNy` ",r.a.createElement("br",null)," -smNNNNmdo- ",r.a.createElement("br",null)," `..` ",r.a.createElement("br",null),r.a.createElement("br",null),"Many cultures predict an end to humanity in the near future, a final Armageddon that will end the world; but we disagree."),offerHackingWork:!1,offerFieldWork:!1,offerSecurityWork:!1,special:!0,keepOnInstall:!0,assignment:()=>{const t=o.b.Router();return r.a.createElement(s.a,{buttonText:"Open Staneks Gift",infoText:"Stanek's Gift is a powerful augmentation that powers up the stat you chose to boost.Gaining reputation with the Church of the Machine God can only be done by charging the gift.",onClick:()=>t.toStaneksGift()})}}),[i.a.ShadowsOfAnarchy]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The government is ruled by the corporations that we have allowed to consume it. To release the world from its shackles, the gods grant us their strength."),special:!0,keepOnInstall:!0,assignment:()=>r.a.createElement(l.a,null,i.a.ShadowsOfAnarchy," can only gain reputation by infiltrating.")})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(240),r=n(28);function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class o{constructor(){i(this,"capacity",0),i(this,"hashes",0),i(this,"upgrades",{});for(const t of Object.keys(a.a))this.upgrades[t]=0}getMult(t){const e=a.a[t],n=this.upgrades[t];return null==e||null==n?(console.error("Could not find Hash Study upgrade"),1):1+e.value*n/100}getStudyMult(){return this.getMult("Improve Studying")}getTrainingMult(){return this.getMult("Improve Gym Training")}getUpgrade(t){const e=a.a[t];return e||(console.error("Invalid Upgrade Name given to HashManager.getUpgrade(): "+t),null)}getUpgradeCost(t){const e=this.getUpgrade(t),n=this.upgrades[t];return null==e||null==n?(console.error("Invalid Upgrade Name given to HashManager.getUpgradeCost(): "+t),1/0):e.getCost(n)}prestige(){for(const t of Object.keys(a.a))this.upgrades[t]=0;this.hashes=0,this.updateCapacity(0)}refundUpgrade(t){const e=a.a[t];--this.upgrades[t];const n=this.upgrades[t];if(null==e||null==n||n<0)return void console.error("Invalid Upgrade Name given to HashManager.upgrade(): "+t);const r=e.getCost(n);this.hashes+=r}storeHashes(t){this.hashes+=t;let e=this.hashes;return this.hashes=Math.min(this.hashes,this.capacity),e-=this.hashes,e}updateCapacity(t){t<0&&(this.capacity=0),this.capacity=Math.max(t,0)}upgrade(t){if(null==a.a[t])return console.error("Invalid Upgrade Name given to HashManager.upgrade(): "+t),!1;const e=this.getUpgradeCost(t);return!(this.hashes{try{return r.a[t].getInfo().offerHackingWork}catch(t){return console.error("Error when trying to filter Hacking Factions for Coding Contract Generation: "+t),!1}});return e===a.c.FactionReputation&&0===n.length&&(e=a.c.CompanyReputation),e===a.c.FactionReputationAll&&0===n.length&&(e=a.c.CompanyReputation),e===a.c.CompanyReputation&&0===Object.keys(i.a.jobs).length&&(e=a.c.Money),e}(t.type);const e=i.a.factions.filter(t=>r.a[t].getInfo().offerHackingWork);switch(t.type){case a.c.FactionReputation:{const n=e.length,a=e[Object(c.a)(0,n-1)];t.name=a;break}case a.c.CompanyReputation:{const e=Object.keys(i.a.jobs);e.length>0?t.name=e[Object(c.a)(0,e.length-1)]:t.type=a.c.Money;break}}return t}function p(){const t=Object(o.c)();let e=Object(c.a)(0,t.length-1),n=t[e];for(let a=0;a<200&&(!(n instanceof l.a)||n.purchasedByPlayer||n.hostname===s.a.WorldDaemon);++a)e=Object(c.a)(0,t.length-1),n=t[e];return n}function g(t,e){let n="contract-"+Object(c.a)(0,1e6);for(let e=0;e<1e3&&!(t.contracts.filter(t=>t.fn===n).length<=0);++e)n="contract-"+Object(c.a)(0,1e6);return e.name&&(n+="-"+e.name.replace(/\s/g,"")),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a=new(n(125).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var a=n(87),r=n(14);function i(t,e){let n=0,i=!1;for(const r of Object.keys(a.a)){const o=a.a[r];if(o.type===e){n=o.successRate(t),i=!0;break}}return i?Math.random()<=n:(Object(r.a)(`ERR: Unrecognized crime type: ${e} This is probably a bug please contact the developer`),!1)}function o(t){return(t=t.toLowerCase()).includes("shoplift")?a.a.Shoplift:t.includes("rob")&&t.includes("store")?a.a.RobStore:t.includes("mug")?a.a.Mug:t.includes("larceny")?a.a.Larceny:t.includes("drugs")?a.a.DealDrugs:t.includes("bond")&&t.includes("forge")?a.a.BondForgery:(t.includes("traffic")||t.includes("illegal"))&&t.includes("arms")?a.a.TraffickArms:t.includes("homicide")?a.a.Homicide:t.includes("grand")&&t.includes("auto")?a.a.GrandTheftAuto:t.includes("kidnap")?a.a.Kidnap:t.includes("assassin")?a.a.Assassination:t.includes("heist")?a.a.Heist:null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(47),r=n(40),i=n(33),o=n(24),s=n(28),l=n(1052);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class f{constructor(t={}){c(this,"minEne",0),c(this,"maxEne",100),c(this,"minHap",0),c(this,"maxHap",100),c(this,"maxMor",100),c(this,"employees",[]),c(this,"employeeProd",{[a.a.Operations]:0,[a.a.Engineer]:0,[a.a.Business]:0,[a.a.Management]:0,[a.a.RandD]:0,total:0}),c(this,"employeeJobs",{[a.a.Operations]:0,[a.a.Engineer]:0,[a.a.Business]:0,[a.a.Management]:0,[a.a.RandD]:0,[a.a.Training]:0,[a.a.Unassigned]:0,total:0}),this.loc=t.loc?t.loc:"",this.size=t.size?t.size:1}atCapacity(){return this.employees.length>=this.size}process(t=1,e,n){if(n.hasResearch("HRBuddy-Recruitment")&&!this.atCapacity()){const t=this.hireRandomEmployee();n.hasResearch("HRBuddy-Training")&&void 0!==t&&(t.pos=a.a.Training)}this.calculateTotalEmployees(),this.maxEne=100,this.maxHap=100,this.maxMor=100,n.hasResearch("Go-Juice")&&(this.maxEne+=10),n.hasResearch("JoyWire")&&(this.maxHap+=10),n.hasResearch("Sti.mu")&&(this.maxMor+=10);let r=1;e.funds<0&&n.lastCycleRevenue<0?r=Math.pow(.99,t):e.funds>0&&n.lastCycleRevenue>0&&(r=Math.pow(1.01,t));const i=n.hasResearch("AutoBrew"),o=n.hasResearch("AutoPartyManager");let s=0;for(let e=0;en.pos===t?e+1:e,0);for(const r of this.employees){if(n==e)return!0;r.pos===a.a.Unassigned&&n<=e?(r.pos=t,n++):r.pos===t&&n>=e&&(r.pos=a.a.Unassigned,n--)}return n===e}toJSON(){return Object(s.b)("OfficeSpace",this)}static fromJSON(t){return Object(s.a)(f,t.data)}}s.c.constructors.OfficeSpace=f},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return r})),function(t){t[t.SmartFactories=0]="SmartFactories",t[t.SmartStorage=1]="SmartStorage",t[t.DreamSense=2]="DreamSense",t[t.WilsonAnalytics=3]="WilsonAnalytics",t[t.NuoptimalNootropicInjectorImplants=4]="NuoptimalNootropicInjectorImplants",t[t.SpeechProcessorImplants=5]="SpeechProcessorImplants",t[t.NeuralAccelerators=6]="NeuralAccelerators",t[t.FocusWires=7]="FocusWires",t[t.ABCSalesBots=8]="ABCSalesBots",t[t.ProjectInsight=9]="ProjectInsight"}(a||(a={}));const r={[a.SmartFactories]:{index:a.SmartFactories,basePrice:2e9,priceMult:1.06,benefit:.03,name:"Smart Factories",desc:"Advanced AI automatically optimizes the operation and productivity of factories. Each level of this upgrade increases your global production by 3% (additive)."},[a.SmartStorage]:{index:a.SmartStorage,basePrice:2e9,priceMult:1.06,benefit:.1,name:"Smart Storage",desc:"Advanced AI automatically optimizes your warehouse storage methods. Each level of this upgrade increases your global warehouse storage size by 10% (additive)."},[a.DreamSense]:{index:a.DreamSense,basePrice:4e9,priceMult:1.1,benefit:.001,name:"DreamSense",desc:"Use DreamSense LCC Technologies to advertise your corporation to consumers through their dreams. Each level of this upgrade provides a passive increase in awareness of all of your companies (divisions) by 0.004 / market cycle,and in popularity by 0.001 / market cycle. A market cycle is approximately 15 seconds."},[a.WilsonAnalytics]:{index:a.WilsonAnalytics,basePrice:4e9,priceMult:1.5,benefit:.005,name:"Wilson Analytics",desc:"Purchase data and analysis from Wilson, a marketing research firm. Each level of this upgrades increases the effectiveness of your advertising by 0.5% (additive)."},[a.NuoptimalNootropicInjectorImplants]:{index:a.NuoptimalNootropicInjectorImplants,basePrice:1e9,priceMult:1.06,benefit:.1,name:"Nuoptimal Nootropic Injector Implants",desc:"Purchase the Nuoptimal Nootropic Injector augmentation for your employees. Each level of this upgrade globally increases the creativity of your employees by 10% (additive)."},[a.SpeechProcessorImplants]:{index:a.SpeechProcessorImplants,basePrice:1e9,priceMult:1.06,benefit:.1,name:"Speech Processor Implants",desc:"Purchase the Speech Processor augmentation for your employees. Each level of this upgrade globally increases the charisma of your employees by 10% (additive)."},[a.NeuralAccelerators]:{index:a.NeuralAccelerators,basePrice:1e9,priceMult:1.06,benefit:.1,name:"Neural Accelerators",desc:"Purchase the Neural Accelerator augmentation for your employees. Each level of this upgrade globally increases the intelligence of your employees by 10% (additive)."},[a.FocusWires]:{index:a.FocusWires,basePrice:1e9,priceMult:1.06,benefit:.1,name:"FocusWires",desc:"Purchase the FocusWire augmentation for your employees. Each level of this upgrade globally increases the efficiency of your employees by 10% (additive)."},[a.ABCSalesBots]:{index:a.ABCSalesBots,basePrice:1e9,priceMult:1.07,benefit:.01,name:"ABC SalesBots",desc:"Always Be Closing. Purchase these robotic salesmen to increase the amount of materials and products you sell. Each level of this upgrade globally increases your sales by 1% (additive)."},[a.ProjectInsight]:{index:a.ProjectInsight,basePrice:5e9,priceMult:1.07,benefit:.05,name:"Project Insight",desc:"Purchase 'Project Insight', a R&D service provided by the secretive Fulcrum Technologies. Each level of this upgrade globally increases the amount of Scientific Research you produce by 5% (additive)."}}},,function(t,e,n){"use strict";function a(t,e){for(const n of Object.keys(e)){const a=e[n];void 0!==a&&("function"==typeof a?a(t,n):void 0!==a.func?a.func(t,e,n):(typeof t[n]!=typeof a.default&&(t[n]=a.default),"number"==typeof t[n]&&void 0!==a.min&&t[n]a.max&&(t[n]=a.max)))}}function r(t,e,n){return(a,r)=>{"number"==typeof a[r]?(a[r]n&&(a[r]=n)):a[r]=t}}n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return l}));var a=n(18),r=n(603),i=n(12);function o(t,e,n,r){const o=n*Math.pow(1.01,n);return Math.pow(e+1,2)*Math.pow(r,3)*3e3*o*(t.hasAugmentation(i.a.WKSharmonizer,!0)?1.5:1)*a.a.InfiltrationMoney}function s(t,e,n,r){const o=n*Math.pow(1.01,n);return Math.pow(e+1,1.1)*Math.pow(r,1.2)*30*o*(t.hasAugmentation(i.a.WKSharmonizer,!0)?1.5:1)*a.a.InfiltrationRep}function l(t,e,n){return n/r.a.reduce((t,e)=>{var n;const a=(null===(n=e.infiltrationData)||void 0===n?void 0:n.startingSecurityLevel)||0;return t>a?t:a},0)*5e3*(t.hasAugmentation(i.a.WKSharmonizer,!0)?2:1)*(1+e.favor/100)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(28);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class i{constructor(){r(this,"bladeburner",0),r(this,"casino",0),r(this,"class",0),r(this,"codingcontract",0),r(this,"corporation",0),r(this,"crime",0),r(this,"gang",0),r(this,"hacking",0),r(this,"hacknet",0),r(this,"hacknet_expenses",0),r(this,"hospitalization",0),r(this,"infiltration",0),r(this,"sleeves",0),r(this,"stock",0),r(this,"total",0),r(this,"work",0),r(this,"servers",0),r(this,"other",0),r(this,"augmentations",0)}record(t,e){const n=e.toLowerCase();"number"==typeof this[n]?(this[n]+=t,this.total+=t):console.warn("MoneySourceTracker.record() called with invalid source: "+e)}reset(){for(const t in this)"number"==typeof this[t]&&(this[t]=0)}toJSON(){return Object(a.b)("MoneySourceTracker",this)}static fromJSON(t){return Object(a.a)(i,t.data)}}a.c.constructors.MoneySourceTracker=i},,function(t,e,n){"use strict";function a(){const t=Math.random();return t<.4?"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(26*Math.random())]:t<.8?"abcdefghijklmnopqrstuvwxyz"[Math.floor(26*Math.random())]:"01234567689"[Math.floor(10*Math.random())]}function r(){const t=50+Math.floor(25*(Math.random()+Math.random()));let e="";for(;e.lengthe.length)continue;for(let a=0;aArray(10).fill(null)),a=Array.from(Array(10),()=>Array(10));function r(t,e,n,a){const r=t[e][n];(null==r||a.length9||n+1+a>t.length)return null;if(e+=t.substring(n+1,n+1+a),n+=1+a,n>=t.length)break;const r=t.charCodeAt(n)-48;if(r<0||r>9)return null;if(0===r)++n;else{if(n+1>=t.length)return null;const a=t.charCodeAt(n+1)-48;if(r>0&&(a<1||a>9)||a>e.length)return null;for(let t=0;t=1}function l(){const t=this.gang;if(null===t)throw new Error("Cannot get gang faction because player is not in a gang.");const e=a.a[t.facName];if(null==e)throw new Error("Gang has invalid faction name: "+t.facName);return e}function c(){if(!this.inGang())return"";const t=this.gang;if(null===t)throw new Error("Cannot get gang faction because player is not in a gang.");return t.facName}function f(t){if(!this.inGang())return!1;const e=this.gang;if(null===e)throw new Error("Cannot get gang faction because player is not in a gang.");return e.facName===t}function u(){return null!=this.gang&&null!=this.gang&&this.gang instanceof r.a}function m(t,e){this.gang=new r.a(t,e);const n=a.a[t];if(null==n)throw new Error("Invalid faction name when creating gang: "+t);n.playerReputation=0}},,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={lineHeight:1.5,fontFamily:"Lucida Console, Lucida Sans Unicode, Fira Mono, Consolas, Courier New, Courier, monospace, Times New Roman"}},,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var a=n(10);function r(t){return t.money<0?0:Math.min(.1*t.money,(t.max_hp-t.hp)*a.a.HospitalCostPerHp)}function i(t,e){const n=t.hp;t.hp-=e;const a=r(t);return t.hp=n,a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var a=n(0),r=n.n(a),i=n(125),o=n(38),s=n(1),l=n(8),c=n(129),f=n(78),u=n(75),m=n(27);const h=new i.a;function d(){var t,e,n;const[i,l]=Object(a.useState)(null);if(Object(a.useEffect)(()=>h.subscribe(t=>{l(t)}),[]),null===i)return r.a.createElement(r.a.Fragment,null);const c={text:g,select:y};let f=p;null!=i&&null!==(t=i.options)&&void 0!==t&&t.type&&["text","select"].includes(null==i||null===(e=i.options)||void 0===e?void 0:e.type)&&(f=c[null==i||null===(n=i.options)||void 0===n?void 0:n.type]);return r.a.createElement(o.a,{open:!0,onClose:function(){var t,e;null!==i&&(["text","select"].includes(null!==(t=null==i||null===(e=i.options)||void 0===e?void 0:e.type)&&void 0!==t?t:"")?i.resolve(""):i.resolve(!1),l(null))}},r.a.createElement("pre",null,r.a.createElement(s.a,null,i.txt)),r.a.createElement(f,{prompt:i,resolve:t=>{i.resolve(t),l(null)}}))}function p({resolve:t}){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"10px"}},r.a.createElement(l.a,{style:{marginRight:"auto"},onClick:()=>t(!0)},"Yes"),r.a.createElement(l.a,{onClick:()=>t(!1)},"No")))}function g({resolve:t}){const[e,n]=Object(a.useState)(""),i=()=>t(e);return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:"flex",alignItems:"center",paddingTop:"10px"}},r.a.createElement(f.a,{autoFocus:!0,value:e,onInput:t=>{n(t.target.value)},onKeyDown:t=>{t.stopPropagation(),t.key===m.a.ENTER&&(t.preventDefault(),i())},style:{flex:"1 0 auto"},InputProps:{endAdornment:r.a.createElement(l.a,{onClick:i},"Confirm")}})))}function y({prompt:t,resolve:e}){var n;const[i,o]=Object(a.useState)("");return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:"flex",alignItems:"center",paddingTop:"10px"}},r.a.createElement(c.a,{onChange:t=>{o(t.target.value)},value:i,style:{flex:"1 0 auto"}},(t=>{const e=[];for(const n of t)e.push(r.a.createElement(u.a,{key:n,value:n},n));return e})((null==t||null===(n=t.options)||void 0===n?void 0:n.choices)||[])),r.a.createElement(l.a,{onClick:()=>e(i),disabled:""===i},"Confirm")))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(47),r=n(180),i=n(1053),o=n(547),s=n(28),l=n(33);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class f{constructor(t={}){c(this,"name",""),c(this,"dmd",0),c(this,"cmp",0),c(this,"mku",0),c(this,"pCost",0),c(this,"sCost",0),c(this,"fin",!1),c(this,"prog",0),c(this,"createCity",""),c(this,"designCost",0),c(this,"advCost",0),c(this,"rat",0),c(this,"qlt",0),c(this,"per",0),c(this,"dur",0),c(this,"rel",0),c(this,"aes",0),c(this,"fea",0),c(this,"data",Object(o.a)([0,0,0])),c(this,"loc",""),c(this,"siz",0),c(this,"reqMats",{}),c(this,"prdman",Object(o.a)([!1,0])),c(this,"sllman",Object(o.a)([!1,0])),c(this,"marketTa1",!1),c(this,"marketTa2",!1),c(this,"marketTa2Price",Object(o.a)(0)),c(this,"maxsll",0),this.name=t.name?t.name:"",this.dmd=t.demand?t.demand:0,this.cmp=t.competition?t.competition:0,this.mku=t.markup?t.markup:0,this.createCity=t.createCity?t.createCity:"",this.designCost=t.designCost?t.designCost:0,this.advCost=t.advCost?t.advCost:0,this.qlt=t.quality?t.quality:0,this.per=t.performance?t.performance:0,this.dur=t.durability?t.durability:0,this.rel=t.reliability?t.reliability:0,this.aes=t.aesthetics?t.aesthetics:0,this.fea=t.features?t.features:0,this.loc=t.loc?t.loc:"",this.siz=t.size?t.size:0,this.reqMats=t.req?t.req:{}}createProduct(t=1,e=1){this.fin||(this.prog+=.01*t*e)}finishProduct(t,e){this.fin=!0;const n=this.prog/100,i=t[a.a.Engineer]/t.total,o=t[a.a.Management]/t.total,s=t[a.a.RandD]/t.total,c=t[a.a.Operations]/t.total,f=t[a.a.Business]/t.total,u=n*(1.2*i+.9*o+1.3*s+1.5*c+f)*(1+Math.pow(this.designCost,.1)/100)*(1+Math.pow(e.sciResearch.qty,e.sciFac)/800);this.qlt=u*(.1*t[a.a.Engineer]+.05*t[a.a.Management]+.05*t[a.a.RandD]+.02*t[a.a.Operations]+.02*t[a.a.Business]),this.per=u*(.15*t[a.a.Engineer]+.02*t[a.a.Management]+.02*t[a.a.RandD]+.02*t[a.a.Operations]+.02*t[a.a.Business]),this.dur=u*(.05*t[a.a.Engineer]+.02*t[a.a.Management]+.08*t[a.a.RandD]+.05*t[a.a.Operations]+.05*t[a.a.Business]),this.rel=u*(.02*t[a.a.Engineer]+.08*t[a.a.Management]+.02*t[a.a.RandD]+.05*t[a.a.Operations]+.08*t[a.a.Business]),this.aes=u*(0*t[a.a.Engineer]+.08*t[a.a.Management]+.05*t[a.a.RandD]+.02*t[a.a.Operations]+.1*t[a.a.Business]),this.fea=u*(.08*t[a.a.Engineer]+.05*t[a.a.Management]+.02*t[a.a.RandD]+.05*t[a.a.Operations]+.05*t[a.a.Business]),this.calculateRating(e);const m=1+Math.pow(this.advCost,.1)/100,h=Math.max(f+o,1/t.total);this.mku=100/(m*Math.pow(this.qlt+.001,.65)*h),0!==this.mku&&isFinite(this.mku)||(this.mku=1),this.dmd=0===e.awareness?20:Math.min(100,m*(e.popularity/e.awareness*100)),this.cmp=Object(l.a)(0,70);for(const t of Object.keys(e.reqMats))if(e.reqMats.hasOwnProperty(t)){const n=e.reqMats[t];if(void 0===n)continue;this.reqMats[t]=n}this.siz=0;for(const t of Object.keys(e.reqMats)){const n=e.reqMats[t];void 0!==n&&(this.siz+=r.a[t]*n)}}calculateRating(t){const e=i.a[t.type];null!=e?(this.rat=0,this.rat+=e.Quality?this.qlt*e.Quality:0,this.rat+=e.Performance?this.per*e.Performance:0,this.rat+=e.Durability?this.dur*e.Durability:0,this.rat+=e.Reliability?this.rel*e.Reliability:0,this.rat+=e.Aesthetics?this.aes*e.Aesthetics:0,this.rat+=e.Features?this.fea*e.Features:0):console.error("Could not find product rating weights for: "+t)}toJSON(){return Object(s.b)("Product",this)}static fromJSON(t){return Object(s.a)(f,t.data)}}s.c.constructors.Product=f},function(t,e,n){"use strict";function a(t,e){return!!Object.keys(e.reqMats).includes(t)||(!!e.prodMats.includes(t)||!!["Hardware","Robots","AICores","RealEstate","AI Cores","Real Estate"].includes(t))}n.d(e,"a",(function(){return a}))},,function(t,e,n){"use strict";n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return b}));var a=n(0),r=n.n(a),i=n(114),o=n(248),s=n(1),l=n(19),c=n(45),f=n(8),u=n(1773),m=n(1774),h=n(1775),d=n(29),p=n(6),g=n(66);const y=[];function b(){const t=d.b.Player(),e=d.b.Router(),n=Object(a.useState)(!1)[1];function b(){n(t=>!t)}const E=[...Object.values(g.a)].filter(e=>{const n=e.create;return null!==n&&("b1t_flum3.exe"!==e.name||n.req(t))}).sort((e,n)=>{var a,r,i,o;return t.hasProgram(e.name)?1:t.hasProgram(n.name)?-1:(null!==(a=null===(r=e.create)||void 0===r?void 0:r.level)&&void 0!==a?a:0)-(null!==(i=null===(o=n.create)||void 0===o?void 0:o.level)&&void 0!==i?i:0)});Object(a.useEffect)(()=>{E.forEach(t=>{y.includes(t.name)||y.push(t.name)})},[]),Object(a.useEffect)(()=>{const t=setInterval(b,200);return()=>clearInterval(t)},[]);const v=e=>Math.ceil(Math.max(e-(t.hacking+t.intelligence/2),0));return r.a.createElement(o.a,{disableGutters:!0,maxWidth:"lg",sx:{mx:0,mb:10}},r.a.createElement(s.a,{variant:"h4"},"Create program"),r.a.createElement(s.a,null,"This page displays any programs that you are able to create. Writing the code for a program takes time, which can vary based on how complex the program is. If you are working on creating a program you can cancel at any time. Your progress will be saved and you can continue later."),r.a.createElement(l.a,{sx:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",my:1}},E.map(n=>{const a=n.create;if(null===a)return r.a.createElement(r.a.Fragment,null);const o=(e=>{const n=Object(i.find)(t.getHomeComputer().programs,t=>t.startsWith(e)&&t.endsWith("%-INC"));if(!n)return-1;const a=n.split("-");if(3!=a.length)return-1;const r=Number(a[1].slice(0,-1));return isNaN(r)||r<0||r>=100?-1:r})(n.name);return r.a.createElement(l.a,{component:c.a,sx:{p:1,opacity:t.hasProgram(n.name)?.75:1},key:n.name},r.a.createElement(s.a,{variant:"h6",sx:{display:"flex",alignItems:"center",flexWrap:"wrap"}},t.hasProgram(n.name)&&r.a.createElement(u.a,{sx:{mr:1}})||a.req(t)&&r.a.createElement(m.a,{sx:{mr:1}})||r.a.createElement(h.a,{sx:{mr:1}}),n.name),!t.hasProgram(n.name)&&a.req(t)&&r.a.createElement(f.a,{sx:{my:1,width:"100%"},onClick:r=>{r.isTrusted&&(t.startCreateProgramWork(n.name,a.time,a.level),t.startFocusing(),e.toWork())}},"Create program"),t.hasProgram(n.name)||0===v(a.level)||r.a.createElement(s.a,{color:p.a.theme.hack},r.a.createElement("b",null,"Unlocks in:")," ",v(a.level)," hacking levels"),-1!==o&&r.a.createElement(s.a,{color:p.a.theme.infolight},r.a.createElement("b",null,"Current completion:")," ",o,"%"),r.a.createElement(s.a,null,a.tooltip))})))}},function(t,e,n){"use strict";n.d(e,"b",(function(){return g})),n.d(e,"a",(function(){return y}));var a=n(0),r=n.n(a),i=n(248),o=n(1),s=n(45),l=n(142),c=n(50),f=n(19),u=n(8),m=n(69),h=n(106),d=n(26),p=n(4);const g=[];function y(t){const e=Object(a.useState)(!1)[1];function n(){e(t=>!t)}Object(a.useEffect)(()=>{const t=setInterval(n,200);return()=>clearInterval(t)},[]),Object(a.useEffect)(()=>{t.player.factionInvitations.forEach(t=>{g.includes(t)||g.push(t)})},[]);const y=Object.values(p.a).map(t=>t),b=t.player.factions.slice(0);return b.sort((t,e)=>y.indexOf(t)-y.indexOf(e)),r.a.createElement(i.a,{disableGutters:!0,maxWidth:"md",sx:{mx:0,mb:10}},r.a.createElement(o.a,{variant:"h4"},"Factions"),r.a.createElement(o.a,{mb:4},"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."),r.a.createElement(o.a,{variant:"h5",color:"primary",mt:2,mb:1},"Factions you have joined:"),b.length>0&&r.a.createElement(s.a,{sx:{my:1,p:1,pb:0,display:"inline-block"}},r.a.createElement(m.a,{padding:"none",style:{width:"fit-content"}},r.a.createElement(l.a,null,b.map(e=>r.a.createElement(c.a,{key:e},r.a.createElement(m.b,null,r.a.createElement(o.a,{noWrap:!0,mb:1},e)),r.a.createElement(m.b,{align:"right"},r.a.createElement(f.a,{ml:1,mb:1},r.a.createElement(u.a,{onClick:()=>function(e){t.router.toFaction(e)}(d.a[e])},"Details"))),r.a.createElement(m.b,{align:"right"},r.a.createElement(f.a,{ml:1,mb:1},r.a.createElement(u.a,{sx:{width:"100%"},onClick:()=>function(e){t.router.toFaction(e,!0)}(d.a[e])},"Augmentations Left: ",((t,e)=>Object(h.a)(e,t).filter(t=>!e.hasAugmentation(t)).length)(d.a[e],t.player)))))))))||r.a.createElement(o.a,null,"You haven't joined any factions."),r.a.createElement(o.a,{variant:"h5",color:"primary",mt:4,mb:1},"Outstanding Faction Invitations"),r.a.createElement(o.a,{mb:1},"Factions you have been invited to. You can accept these faction invitations at any time:"),t.player.factionInvitations.length>0&&r.a.createElement(s.a,{sx:{my:1,mb:4,p:1,pb:0,display:"inline-block"}},r.a.createElement(m.a,{padding:"none"},r.a.createElement(l.a,null,t.player.factionInvitations.map(t=>r.a.createElement(c.a,{key:t},r.a.createElement(m.b,null,r.a.createElement(o.a,{noWrap:!0,mb:1},t)),r.a.createElement(m.b,{align:"right"},r.a.createElement(f.a,{ml:1,mb:1},r.a.createElement(u.a,{onClick:n=>function(t,n){t.isTrusted&&(Object(h.d)(d.a[n]),e(t=>!t))}(n,t)},"Join!"))))))))||r.a.createElement(o.a,null,"You have no outstanding faction invites."))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(1477),r=n(1783);const i=Object(r.a)(t=>({root:{backgroundColor:t.palette.background.paper},bar:{transition:"none",backgroundColor:t.palette.primary.main}}))(a.a)},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(2),o=n(460),s=n(614),l=n(372),c=n(14);function f(t,e,n,a){e?0===i.a.sourceFileLvl(5)&&5!==a&&(i.a.intelligence=0,i.a.intelligence_exp=0):function(t){const e="SourceFile"+t.toString(),n=l.a[e];if(null==n)return void console.error("Could not find source file for Bit node: "+t);let a=!1,o=null;for(let e=0;e=3&&12!==o.n?Object(c.a)(`The Source-File for the BitNode you just destroyed, ${n.name}, is already at max level!`):(++o.lvl,Object(c.a)(n.name+" was upgraded to level "+o.lvl+" for destroying its corresponding BitNode!"));else{const e=new s.a(t,1);i.a.sourceFiles.push(e),5===t&&0===i.a.intelligence&&(i.a.intelligence=1),Object(c.a)(r.a.createElement(r.a.Fragment,null,"You received a Source-File for destroying a BitNode!",r.a.createElement("br",null),r.a.createElement("br",null),n.name,r.a.createElement("br",null),r.a.createElement("br",null),n.info))}}(n),5===a&&0===i.a.intelligence&&(i.a.intelligence=1),i.a.bitNodeN=a,6===a?t.toBladeburnerCinematic():t.toTerminal(),Object(o.b)(e)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return w})),n.d(e,"a",(function(){return S})),n.d(e,"c",(function(){return x}));var a=n(0),r=n.n(a),i=n(19),o=n(1),s=n(150),l=n(356),c=n(21),f=n(8),u=n(45),m=n(78),h=n(6),d=n(343),p=n(112),g=n(540),y=n(634),b=n(636),E=n(651),v=n.n(E),k=n(1390),_=n.n(k);let w=!1;function S(){w=!0}function x({router:t,softReset:e,errorData:n,resetError:E}){var k,S;return h.a.AutosaveInterval=0,Object(a.useEffect)(()=>{Object(d.b)().then(t=>{const e=`RECOVERY_BITBURNER_${Math.round(Date.now()/1e3)}.json`;Object(p.a)(e,t)})},[]),r.a.createElement(i.a,{sx:{padding:"8px 16px",minHeight:"100vh",maxWidth:"1200px",boxSizing:"border-box"}},r.a.createElement(o.a,{variant:"h3"},"RECOVERY MODE ACTIVATED"),r.a.createElement(o.a,null,"There was an error with your save file and the game went into recovery mode. In this mode saving is disabled and the game will automatically export your save file (to prevent corruption)."),r.a.createElement(o.a,null,"At this point it is recommended to alert a developer."),r.a.createElement(o.a,null,r.a.createElement(s.a,{href:null!==(k=null==n?void 0:n.issueUrl)&&void 0!==k?k:g.b,target:"_blank"},"File an issue on github")),r.a.createElement(o.a,null,r.a.createElement(s.a,{href:"https://www.reddit.com/r/Bitburner/",target:"_blank"},"Make a reddit post")),r.a.createElement(o.a,null,r.a.createElement(s.a,{href:"https://discord.gg/TFc3hKD",target:"_blank"},"Post in the #bug-report channel on Discord.")),r.a.createElement(o.a,null,"Please include your save file."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,null,"You can disable recovery mode now. But chances are the game will not work correctly."),r.a.createElement(l.a,{sx:{my:2}},r.a.createElement(c.a,{title:"Disables the recovery mode & attempt to head back to the terminal page. This may or may not work. Ensure you have saved the recovery file."},r.a.createElement(f.a,{onClick:function(){E&&E(),w=!1,t.toTerminal()},startIcon:r.a.createElement(v.a,null)},"Disable Recovery Mode")),r.a.createElement(b.a,{color:"warning",onTriggered:e}),r.a.createElement(y.a,{color:"error"})),n&&r.a.createElement(u.a,{sx:{px:2,pt:1,pb:2,mt:2}},r.a.createElement(o.a,{variant:"h5"},n.title),r.a.createElement(i.a,{sx:{my:2}},r.a.createElement(m.a,{label:"Bug Report Text",value:n.body,variant:"outlined",color:"secondary",multiline:!0,fullWidth:!0,rows:12,sx:{"& .MuiOutlinedInput-root":{color:h.a.theme.secondary}}})),r.a.createElement(c.a,{title:"Submitting an issue to GitHub really help us improve the game!"},r.a.createElement(f.a,{component:s.a,startIcon:r.a.createElement(_.a,null),color:"info",sx:{px:2},href:null!==(S=n.issueUrl)&&void 0!==S?S:g.b,target:"_blank"},"Submit Issue to GitHub"))))}},,,function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var a=n(1023);let r=1;function i(t){return r+=t,()=>r-=t}function o(){return Object(a.a)(r)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(1029),r=n(42),i=n(22);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class s{constructor(t,e,n){o(this,"code",""),o(this,"delay",null),o(this,"disableLogs",{}),o(this,"dynamicLoadedFns",{}),o(this,"dynamicRamUsage",r.a.ScriptBaseRamCost),o(this,"errorMessage",""),o(this,"loadedFns",{}),o(this,"output",""),o(this,"ramUsage",0),o(this,"running",!1),o(this,"infiniteLoopSafetyCounter",0),this.name=t.filename,this.hostname=t.server;const s=Math.round(e);if("number"!=typeof s||isNaN(s))throw new Error("Invalid PID when constructing WorkerScript: "+e);this.pid=s,t.pid=s;const l=Object(i.d)(this.hostname);if(null==l)throw new Error("WorkerScript constructed with invalid server ip: "+this.hostname);let c=!1;for(let t=0;t=s.a.CyclesPerIndustryStateCycle){const e=this.getState(),n=1,a=n*s.a.CyclesPerIndustryStateCycle;if(this.storedCycles-=a,this.divisions.forEach(t=>{t.process(n,e,this)}),this.shareSaleCooldown>0&&(this.shareSaleCooldown-=a),this.issueNewSharesCooldown>0&&(this.issueNewSharesCooldown-=a),"START"===e){this.revenue=0,this.expenses=0,this.divisions.forEach(t=>{t.lastCycleRevenue!==-1/0&&t.lastCycleRevenue!==1/0&&t.lastCycleExpenses!==-1/0&&t.lastCycleExpenses!==1/0&&(this.revenue=this.revenue+t.lastCycleRevenue,this.expenses=this.expenses+t.lastCycleExpenses)});const e=this.revenue-this.expenses;this.avgProfit=(this.avgProfit*(s.a.AvgProfitLength-1)+e)/s.a.AvgProfitLength;const a=e*(n*s.a.SecsPerMarketCycle);if((isNaN(this.funds)||this.funds===1/0||this.funds===-1/0)&&(Object(u.a)("There was an error calculating your Corporations funds and they got reset to 0. This is a bug. Please report to game developer.

(Your funds have been set to $150b for the inconvenience)"),this.funds=15e10),this.dividendPercentage>0&&a>0)if(isNaN(this.dividendPercentage)||this.dividendPercentage<0||this.dividendPercentage>100*s.a.DividendMaxPercentage)console.error("Invalid Corporation dividend percentage: "+this.dividendPercentage);else{const e=a-this.dividendPercentage/100*a;t.gainMoney(this.getDividends(),"corporation"),this.addFunds(e)}else this.addFunds(a);this.updateSharePrice()}this.state.nextState()}}getDividends(){const t=(this.revenue-this.expenses)*s.a.SecsPerMarketCycle,e=this.dividendPercentage/100*t/this.totalShares,n=this.numShares*e;let a=-.15;return 1===this.unlockUpgrades[5]&&(a+=.05),1===this.unlockUpgrades[6]&&(a+=.1),Math.pow(n,l.a.CorporationSoftcap+a)}determineValuation(){let t,e=this.avgProfit;return this.public?(this.dividendPercentage>0&&(e*=(100-this.dividendPercentage)/100),t=this.funds+85e3*e,t*=Math.pow(1.1,this.divisions.length),t=Math.max(t,0)):(t=1e10+Math.max(this.funds,0)/3,e>0?(t+=315e3*e,t*=Math.pow(1.1,this.divisions.length)):t=1e10*Math.pow(1.1,this.divisions.length),t-=t%1e6),t*l.a.CorporationValuation}getTargetSharePrice(){return this.determineValuation()/(2*(this.totalShares-this.numShares)+1)}updateSharePrice(){const t=this.getTargetSharePrice();this.sharePrice<=t?this.sharePrice*=1+.01*Math.random():this.sharePrice*=1-.01*Math.random(),this.sharePrice<=.01&&(this.sharePrice=.01)}immediatelyUpdateSharePrice(){this.sharePrice=this.getTargetSharePrice()}calculateShareSale(t){let e=t,n=this.shareSalesUntilPriceUpdate,a=this.sharePrice,r=0,i=0;const o=Math.ceil(t/s.a.SHARESPERPRICEUPDATE);if(isNaN(o)||o>1e7)return console.error("Something went wrong or unexpected when calculating share sale. Maxiterations calculated to be "+o),[0,0,0];for(let t=0;t3600?Math.floor(e/3600)+" hour(s)":e>60?Math.floor(e/60)+" minute(s)":Math.floor(e)+" second(s)"}unlock(t){const e=t.index,n=t.price;for(;this.unlockUpgrades.length<=e;)this.unlockUpgrades.push(0);this.fundsthis.pop&&(this.popEst=this.pop)):this.popEst>this.pop&&(this.popEst-=t,this.popEstthis.pop&&(this.popEst=this.pop)):this.popEst>this.pop&&(this.popEst*=1-t/100,this.popEst0?1:-1),this.pop+=n,e.changeEstEqually&&(this.popEst+=n,this.popEst<0&&(this.popEst=0)),n}changeChaosByCount(t){if(isNaN(t))throw new Error("NaN passed into City.changeChaosByCount()");0!==t&&(this.chaos+=t,this.chaos<0&&(this.chaos=0))}toJSON(){return Object(i.b)("City",this)}static fromJSON(t){return Object(i.a)(l,t.data)}}i.c.constructors.City=l},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));class a{constructor(t,e=[],n=""){this.name=t,this.locations=e,this.asciiArt=n}addLocation(t){this.locations.push(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var a=n(19),r=n(21),i=n(1),o=n(1788),s=n(0),l=n.n(s);const c=t=>{const[e,n]=Object(s.useState)(t.initialValue);return l.a.createElement(a.a,null,l.a.createElement(r.a,{title:l.a.createElement(i.a,null,t.tooltip)},l.a.createElement(i.a,null,t.label)),l.a.createElement(o.a,{value:e,onChange:(t,e)=>{n(e)},onChangeCommitted:t.callback,step:t.step,min:t.min,max:t.max,valueLabelDisplay:"auto",sx:{"& .MuiSlider-thumb":{height:"12px",width:"12px"}},marks:t.marks}))}},,,function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return f}));var a=n(0),r=n(1),i=n(21),o=n(8),s=n(78);let l;function c(t){let e="",n="";return t.tickerDisplayMode===l.Portfolio?(e="Switch to 'All Stocks' Mode",n="Displays all stocks on the WSE"):(e="Switch to 'Portfolio' Mode",n="Displays only the stocks for which you have shares or orders"),a.createElement(i.a,{title:a.createElement(r.a,null,n)},a.createElement(o.a,{onClick:t.changeDisplayMode},e))}function f(t){return a.createElement(a.Fragment,null,a.createElement(c,t),a.createElement("br",null),a.createElement(s.a,{sx:{width:"100%"},onChange:t.changeWatchlistFilter,placeholder:"Filter Stocks by symbol (comma-separated list)",type:"text"}))}!function(t){t[t.AllStocks=0]="AllStocks",t[t.Portfolio=1]="Portfolio"}(l||(l={}))},function(t,e,n){"use strict";n.d(e,"f",(function(){return c})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return u})),n.d(e,"e",(function(){return m})),n.d(e,"d",(function(){return h})),n.d(e,"a",(function(){return d}));var a=n(10),r=n(18),i=n(46),o=n(93),s=n(22),l=n(89);function c(){return this.getHomeComputer().serversOnNetwork.includes(l.a.DarkWeb)}function f(){const t=Object(s.d)(this.currentServer);if(null===t)throw new Error("somehow connected to a server that does not exist. "+this.currentServer);return t}function u(){const t=Object(s.d)("home");if(t instanceof i.a)return t;throw new Error("home computer was not a normal server")}function m(){const t=this.getHomeComputer().maxRam,e=Math.log2(t),n=Math.pow(1.58,e);return t*a.a.BaseCostFor1GBOfRamHome*n*r.a.HomeComputerRamCost}function h(){return 1e9*Math.pow(7.5,this.getHomeComputer().cpuCores)}function d(){const t="hacknet-node-"+this.hacknetNodes.length,e=new o.a({adminRights:!0,hostname:t,ip:Object(s.e)()});this.hacknetNodes.push(e.hostname),Object(s.a)(e);return this.getHomeComputer().serversOnNetwork.push(e.hostname),e.serversOnNetwork.push(l.a.Home),e}},,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return N})),n.d(e,"b",(function(){return P}));var a=n(4),r=n(15),i=n(79),o=n(119),s=n(12),l=n(152),c=n(211),f=n(67),u=n(52),m=n(66),h=n(186),d=n(26),p=n(106),g=n(57),y=n(197),b=n(2),E=n(91),v=n(528),k=n(65),_=n(22),w=n(135),S=n(89),x=n(104),C=n(85),L=n(14),O=n(102),M=n(412),T=n(413),A=n(10),R=n(179);function N(){Object(l.d)(b.a);const t=b.a.factions.concat(b.a.factionInvitations).filter((function(t){return d.a[t].getInfo().keep}));b.a.prestigeAugmentation(),Object(y.c)();const e=b.a.getHomeComputer();Object(_.i)(),Object(_.a)(e),Object(w.e)(b.a,e),Object(o.b)(s.a.Neurolink)&&b.a.hasAugmentation(s.a.Neurolink)&&(e.programs.push(m.a.FTPCrackProgram.name),e.programs.push(m.a.RelaySMTPProgram.name)),Object(o.b)(s.a.CashRoot)&&b.a.hasAugmentation(s.a.CashRoot)&&(b.a.setMoney(1e6),e.programs.push(m.a.BruteSSHProgram.name)),Object(o.b)(s.a.PCMatrix)&&b.a.hasAugmentation(s.a.PCMatrix)&&(e.programs.push(m.a.DeepscanV1.name),e.programs.push(m.a.AutoLink.name)),(b.a.sourceFileLvl(5)>0||5===b.a.bitNodeN)&&e.programs.push(m.a.Formulas.name),Object(_.f)(b.a.getHomeComputer());for(const t of Object.keys(f.a))f.a.hasOwnProperty(t)&&f.a[t].gainFavor();for(const t of Object.keys(d.a))d.a.hasOwnProperty(t)&&d.a[t].gainFavor();null!==C.a.action&&C.a.finishAction(E.b,b.a,!0),C.a.clear(),R.a.emit(),Object(d.c)(),b.a.factionInvitations=b.a.factionInvitations.concat(t),Object(o.e)(),b.a.reapplyAllSourceFiles(),Object(f.b)(),b.a.applyEntropy(b.a.entropy);const n=b.a.gang;if(b.a.inGang()&&null!==n){const t=d.a[n.facName];t instanceof h.a&&Object(p.d)(t);const e=.95;for(const t of n.members)t.hack_asc_points*=e,t.str_asc_points*=e,t.def_asc_points*=e,t.dex_asc_points*=e,t.agi_asc_points*=e,t.cha_asc_points*=e}if(3===b.a.bitNodeN&&e.messages.push(k.a.CorporationManagementHandbook),b.a.bladeburner instanceof c.a&&b.a.bladeburner.prestige(),8===b.a.bitNodeN&&(b.a.money=25e7),(8===b.a.bitNodeN||b.a.sourceFileLvl(8)>0)&&(b.a.hasWseAccount=!0,b.a.hasTixApiAccess=!0),b.a.hasWseAccount&&(Object(x.f)(),Object(x.h)()),Object(o.b)(s.a.TheRedPill)&&b.a.hasAugmentation(s.a.TheRedPill)){const t=Object(_.d)(S.a.WorldDaemon),e=Object(_.d)(S.a.DaedalusServer);t&&e&&(t.serversOnNetwork.push(e.hostname),e.serversOnNetwork.push(t.hostname))}Object(o.b)(s.a.StaneksGift1)&&b.a.hasAugmentation(s.a.StaneksGift1)&&Object(p.d)(d.a[a.a.ChurchOfTheMachineGod]),O.c.prestigeAugmentation(),Object(v.b)(),M.b.splice(0,M.b.length),T.b.splice(0,T.b.length)}function P(t){Object(l.d)(b.a),b.a.prestigeSourceFile(),Object(y.c)();const e=b.a.getHomeComputer();null!==C.a.action&&C.a.finishAction(E.b,b.a,!0),C.a.clear(),R.a.emit(),Object(_.i)(),Object(_.a)(e),Object(w.e)(b.a,e),Object(_.f)(b.a.getHomeComputer()),b.a.sourceFileLvl(9)>=2?e.setMaxRam(128):b.a.sourceFileLvl(1)>0?e.setMaxRam(32):e.setMaxRam(8),e.cpuCores=1;for(const t of Object.keys(f.a))f.a.hasOwnProperty(t)&&(f.a[t].favor=0);for(const t of Object.keys(d.a))d.a.hasOwnProperty(t)&&(d.a[t].favor=0);null!==C.a.action&&C.a.finishAction(E.b,b.a,!0);for(const t of Object.keys(i.a))i.a.hasOwnProperty(t)&&delete i.a[t];if(b.a.sourceFileLvl(12)>0&&b.a.augmentations.push({name:s.a.NeuroFluxGovernor,level:b.a.sourceFileLvl(12)}),Object(d.c)(),Object(o.e)(),b.a.reapplyAllSourceFiles(),Object(f.b)(),(b.a.sourceFileLvl(5)>0||5===b.a.bitNodeN)&&e.programs.push(m.a.Formulas.name),3===b.a.bitNodeN&&(e.messages.push(k.a.CorporationManagementHandbook),Object(L.a)("You received a copy of the Corporation Management Handbook on your home computer. Read it if you need help getting started with Corporations!")),8===b.a.bitNodeN&&(b.a.money=25e7),(8===b.a.bitNodeN||b.a.sourceFileLvl(8)>0)&&(b.a.hasWseAccount=!0,b.a.hasTixApiAccess=!0),10===b.a.bitNodeN&&Object(L.a)("Visit VitaLife in New Tokyo if you'd like to purchase a new sleeve!"),13===b.a.bitNodeN&&Object(L.a)("Trouble is brewing in "+r.a.Chongqing),b.a.hasWseAccount?(Object(x.f)(),Object(x.h)()):Object(x.d)(),b.a.gang=null,b.a.corporation=null,Object(u.e)(),b.a.bladeburner=null,b.a.sourceFileLvl(9)>=3){const t=b.a.createHacknetServer();t.level=100,t.cores=10,t.cache=5,t.updateHashRate(b.a.hacknet_node_money_mult),t.updateHashCapacity(),Object(g.p)(b.a)}13===b.a.bitNodeN&&(b.a.money=A.a.TravelCost),O.c.prestigeSourceFile(),0===b.a.sourceFileLvl(5)||t||b.a.gainIntelligenceExp(300),Object(v.b)()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var a=n(2),r=n(33),i=n(305),o=n(28),s=n(61);function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class c{constructor(t=null){l(this,"name",""),l(this,"level",1),l(this,"maxLevel",1),l(this,"autoLevel",!0),l(this,"baseDifficulty",100),l(this,"difficultyFac",1.01),l(this,"rewardFac",1.02),l(this,"successes",0),l(this,"failures",0),l(this,"rankGain",0),l(this,"rankLoss",0),l(this,"hpLoss",0),l(this,"hpLost",0),l(this,"isStealth",!1),l(this,"isKill",!1),l(this,"count",Object(r.a)(1e3,25e3)),l(this,"weights",{hack:1/7,str:1/7,def:1/7,dex:1/7,agi:1/7,cha:1/7,int:1/7}),l(this,"decays",{hack:.9,str:.9,def:.9,dex:.9,agi:.9,cha:.9,int:.9}),l(this,"teamCount",0),t&&t.name&&(this.name=t.name),t&&t.baseDifficulty&&(this.baseDifficulty=Object(i.a)(t.baseDifficulty,10)),t&&t.difficultyFac&&(this.difficultyFac=t.difficultyFac),t&&t.rewardFac&&(this.rewardFac=t.rewardFac),t&&t.rankGain&&(this.rankGain=t.rankGain),t&&t.rankLoss&&(this.rankLoss=t.rankLoss),t&&t.hpLoss&&(this.hpLoss=t.hpLoss),t&&t.isStealth&&(this.isStealth=t.isStealth),t&&t.isKill&&(this.isKill=t.isKill),t&&t.count&&(this.count=t.count),t&&t.weights&&(this.weights=t.weights),t&&t.decays&&(this.decays=t.decays);let e=0;for(const t of Object.keys(this.weights))this.weights.hasOwnProperty(t)&&(e+=this.weights[t]);if(e-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(const t of Object.keys(this.decays))if(this.decays.hasOwnProperty(t)&&this.decays[t]>1)throw new Error(`Invalid decays when constructing Action ${this.name}. Decay value cannot be greater than 1`)}getDifficulty(){const t=this.baseDifficulty*Math.pow(this.difficultyFac,this.level-1);if(isNaN(t))throw new Error("Calculated NaN in Action.getDifficulty()");return t}attempt(t){return Math.random()s.a.ChaosThreshold){const t=e.chaos-s.a.ChaosThreshold+1;return Math.pow(t,.5)}return 1}getEstSuccessChance(t){function e(t){return Math.max(0,Math.min(t,1))}const n=this.getSuccessChance(t,{est:!0}),a=this.getSuccessChance(t),r=Math.abs(a-n);let i=a-r,o=a+r;const s=t.getCurrentCity(),l=s.pop/s.popEst;return l<1?i*=l:o*=l,[e(i),e(o)]}getSuccessChance(t,e={est:!1}){if(null==t)throw new Error("Invalid Bladeburner instance passed into Action.getSuccessChance");let n=this.getDifficulty(),r=0;for(const e of Object.keys(this.weights))if(this.weights.hasOwnProperty(e)){const n=a.a.queryStatFromString(e),i="eff"+e.charAt(0).toUpperCase()+e.slice(1);let o=t.skillMultipliers[i];null==o&&(console.error("Failed to find Bladeburner Skill multiplier for: "+e),o=1),r+=this.weights[e]*Math.pow(o*n,this.decays[e])}if(r*=a.a.getIntelligenceBonus(.75),r*=t.calculateStaminaPenalty(),r*=this.getTeamSuccessBonus(t),r*=this.getChaosCompetencePenalty(t,e),n*=this.getChaosDifficultyBonus(t),"Raid"==this.name&&t.getCurrentCity().comms<=0)return 0;if(r*=t.skillMultipliers.successChanceAll,r*=this.getActionTypeSkillSuccessBonus(t),this.isStealth&&(r*=t.skillMultipliers.successChanceStealth),this.isKill&&(r*=t.skillMultipliers.successChanceKill),r*=a.a.bladeburner_success_chance_mult,isNaN(r))throw new Error("Competence calculated as NaN in Action.getSuccessChance()");return Math.min(1,r/n)}getSuccessesNeededForNextLevel(t){return Math.ceil(.5*this.maxLevel*(2*t+(this.maxLevel-1)))}setMaxLevel(t){this.successes>=this.getSuccessesNeededForNextLevel(t)&&++this.maxLevel}toJSON(){return Object(o.b)("Action",this)}static fromJSON(t){return Object(o.a)(c,t.data)}}o.c.constructors.Action=c},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var a=n(6);const r=[];function i(t){if(r.find(e=>e.runningScript.pid===t.pid))return;const e=new Date;for(r.unshift({timeOfDeath:e,runningScript:t.scriptRef});r.length>a.a.MaxRecentScriptsCapacity;)r.pop()}},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(125),o=n(38);const s=["ttftfffttttttttttfffffffttftt1ttttttt111tttt1111111tttt1tt111tttt111111tttt1ttttttttttttttt111111111\nttfttttttttttttttttfLLLftfffffffffftttt111tt11111ttffffftttt1111111111111111ttttttfttttttttt111111t1\nttttttttttttttttffffLfftffffffffLLffttttttftt111ttfffffftttttttt111111ttttttffffttfffttttttt111111tt\nttttttttttttttttfffLfttffffffLLffffttttttttttt1tfffffffffftttttt111111tffffffffftttfffftttt11111ttt1\nttttttttttttffLfttfffttfffffffffttfftttttt1t1tt11tfffffftttttt111t111111ttffffLLffttfffftt111111tttt\nttttttttttffLLLLfttttffLLLfttttftfLftttttttffffttttffffttttfftt11t111tt111ttfffLffttfftttttt1111tttt\nttttttttffLLLLLLLffttfLLffttfffftfLfttttttffttt11111ttttffffffftt1111tft11111ttffffttt11tfftt11ttttt\ntttttttfffLLLLLLLLfftffttttffLffftfftttttft1i;;::::;iitffffffffftt111tft1tttt1ttffLfttttfffffttttttt\ntttttttfffLLLLLLLLfttttffftffffftfttttttff1:,,,,,,,,::itfffffffft11111111ttttttttttt1tfffffffffffttt\ntttffttffLLLLLLLLLfttfftffffffffLLLftttttt;::,:::;;;;::1tfffftfft11111ttt1ttt1tfttt11ttffffffffLfttt\ntffffffffLLLLLLLffftfLfffttfLLffLLLfttttti;;;iii11111;:i11ttffft111111tfft11t11tt1tttttfffLLLLLLfttf\ntfffffttttfLLLffttttfffffttLLLLfLLLftttfti:;;;iiiiiiii;it111tt111t1111tffttfftt11ttftttfffLLLLLLffff\nttttfttttffffftttttttttttttfLLLffLLfttttt1;;;;;;iiiiii;1tft11tt1111111tfftfffftttttttttttfLLfffttfff\ntfffffffffftttfffffffffttffttLLfffLfttttt11i;;;;iiiiiii1tt11tfftt11111ttt1fffttt1tttttttttfffftttttt\nttffffffffftttfffffffffttffftffttftttttff1ii;;;;iii1iii111tt1ttttt1111t111ffttffttfffffLffttttffffff\nttffffffffttttffffffffttttttttttffftttttft1ii;;;ii1iii111tfft11ttt111111t1tt1tfft1ttffffLLftttLLLLLL\ntttffffffffttfffffffftttttttt11fffftttt1t111iiii;iiiii11ttffft11111111ttttttt1tt11ttffffLfftttfLLLLf\ntttttttffffttfffttttttttffttt11tffttttttt11ttii;;;iiii11i1ffftt1111111tttt111tttt11ttttffffftffLLLff\ntfttttttttttttttttttttfffftttt11tfftttttt111t1i;;;iiii1i,,:;i1111t1111ttt111t1tfftt11111ttfftffffftt\nttttfffftttttttfffftttffffttffttttft111tt11111i;;;iiii1;,,....,:::;i11tt111tt11tffftttttttt1tttttttt\nt11ttffffftttffffffttttfffttffttttft1111111111;;;;;;;it;,...........,:it111ttt1tffftttttfft11ttfffff\ntt1ttfffftt1ttfffft111tffttfttttttt1111t1i;:;11i1i;;1t1:,,............,itt11tt1tfftt1tfffffft1tffLLf\ntfttttfttttt11tttt1ttt11ttttttftt111111i:,..:1111iii11;,...............;tt111t11ttttttttffttt11ffLLf\ntfftttttttfftttttttffftt111ttffftt11i;,.,...,iiii;;;;:,,...............:1ttt1111ttfffttttft1tt1ttfft\nttttttttttttttt11ttttttttttfffffft1:,..........::::::,,,...............,1ttttt11ttfffffttttffftttttt\ntfffttttffffftt11ttttttttttfffffft1:...........:;::;:..................,1tttttt1ttfffffttttttttftttf\ntfffttttfffffft1ttftttfftttttffft11:...........,:::::..................,1tttft11tfffffffttfffffffttf\ntfffttttffffff11tttttttttttttttttt1;...........,::::,...................;t1t1111tfffffLfttfffffffttf\ntfffttttfftttt11tttttttt1tfftttttt1:...........,::::,...... ............,1111tt11fffffLftttffttffttf\ntttttttttttttt11tttttttt1tffftttft1:...........,:::,,....................it1ttt11tfffffftttffttffttt\nttttt1tttttttt11ttttttttttffttttttt:...........,::,,.....................:111tt11tttttttt1tttttttttt\nttttt1tttttttt11tftttttftttttttttt1;,:;:.......,:,,,....................,,1111t11ttttttt11ttttttfttt\n1tttt1ttfffttt11ttffffffttttfffft11ii1i:.......,:,,,.....................,1tt1111ttttttt111tttttfttt\n1ttt11tttttttt11tttttttttttttttttti;;;;:.......,:,,,....... .............,itt1111tttt11t111ttttttt1t\n111111tttttttt11111111ttttttttttt1i;;;;:.......,:,,,......................itt11111111111111111111111\n1111111111111111111111ttttttttttt1;;;;;:...... ,:,,,,.....................itt11t11111111111111111111\n1111111111111111111111tttttttttt1;:,::;,...... ,:...,.....................ittttt11111111111111111111\n111111111111111111111111tttttttt1i,..... .... .:........................,i1tttt11111111111111111111\n1111111111111111111111111t11t11111;,....,,.... ,:::,,,...................,11ttttt11t1111111t11111111\n11111111111111111111111111111111111iiiiii. ... .::::::,..................,11t1ttt111t11111tttttt1111\n1111111111111111111111111111111111111111:.,.....::::::,..................:111tttttt1tttt11tttttt1111\n1111111111111111111111111111111111111111:::,...,::::;::,..,,.............:11tt1ttttttttttttttttt1111\n","ttftfffttttttttttffffffftfftttttttttt111tttt1111111ttttttt111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttftfLLLftfffffffffftt11111tt11111ttffffttttt1111111111111111ttttttfttttttttt111111tt\nttftttttttttttttffffLftttfffffffLLLfttttttftt111ttfffffftttttttt111111tttttffffftfffftttttt1111111tt\nttttttttttttttttfffLLttffffffLLffffttttttttttt1tffffffffffttttttt11111tffffffffftttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttfftttttt1tttt1ttftfffftt1ttt111t111111ttffffLLffttfffft1111111tttt\nttttttttttffLLLLfttttffLLLfttttttfLftttttttfft11i;;:;;i11ttfftt11t111tt111tttffffftttttttttt111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLttttttfff1;,,,,,,,,:;tffffft11111tft11111ttffffttt11tffftt1ttttt\ntttttttfffLLLLLLLLfftffttttffLffftfftttttfft1;:,,,,,::::,;tffftttt111tft1tttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffffftfftttttfffti:;;;iiii11i;:tffffft11111111ttftttttttt1ttffffffffffttt\ntttffttffLLLLLLLLLftffftfLftfftfLLLftttttfft::i;iiiiii11i:1ffftft11111ttt1ttt1ttttt11ttfffffLLfLfttt\nttfLfffffLLLLLLLLfftfLLfffffLfffLLLfttttt1tt;:;;;;;iiiiiii1tffft11111tffft11t11tt1tttttfffLLLLLLffff\ntffftfttttfLLLffttttfffffttLLLLfLLLftttft111i;;;;;;iiiiii111tt111t1111tffttfftt11tfft1tfffLLLLLLLffL\ntttfftttttffLftttttttttttttfLfLffLLfttttttt1iii;;;;;ii11i1t11t11111111tffttfffttttttt11ttfLLLLffftff\nttfLffffffftttfffffffffttfftfLLfffLftttttfft1ii;;;;iii1i1tt1tfftt11111ttt1tffttt1ttt1tttttffffttffft\nttffffffffftttffffffffttfffftffffftttttfffft111;;;;iiii1111t1ttttt1111tt11ffttfftttfffffLfttttfffffL\nttffffffffttttffffffffttttttttttffftttttttt11ttii;iiiiii11tft11ttt111111t11t1tfft1tfffffLLftttLLLLLL\n1ttffffffffttfffffffftttttttt11ffffttttt1111tftiii;;iiii1;,;1111111111tttt11111111ttffffLfftttffLLLf\nttttttttfffttfffttttttttffttt11tffftttttt11ttf1;;;i;iiii1:,,.,,::;ii11tttt111tttt11ttffffffftffLLLff\ntfttttttttttttttttttttfffftttt11tfftttttt111tt1;;;i;;ii1t:,,........,:;1t111t1tfftt11111ttfftffffftt\ntftttffffttttttfftftttffffttffttttftt11tt111i;;;;;;;;;it1,,............,;11tt11tffffttttttt1tttttttt\ntttttffffftttfffffft1ttffftfffttttft111111;:,.;iii;;;i11,.,.............,1tttt1tffftttttfft111tfffff\n1tttffffftt1ttfffftt11tffttfttttttt1111i;,....,1iii;ii;,................,111tt1tfft11tffffftt1tLffLf\ntftttfftt1ttt1tttt1tttt1ttttttttt1111;:,.......i1;;;:::.................,it11t11ttttttttffftt11fffLf\ntfftttttttfftt1111ttfftt11ttfffftt1ti..........:i;::;:,..................ittt111t1tffttttft1tt1tffft\nttttttttttttttt11tttttttt1tffffffftti,.........,::::::,..................itttt11ttffffftttttfftttttt\ntfffttttfffffft11ttttttttttffffffft1i,.........,:,:::,...................,1tttt11tfffffttttttttffttf\ntfffttttfffffft11tftttfftttttffft1111:.........,:,:::,....................;tt111tfffffffttfffffffttf\ntfffttttfffffft1tttttttftttttttttt111;.........,:,::,,....................,111111fffffLfttfffffffttf\ntffftttttttffft11tttttttttffttttfft11i.........,:.:,,......................:1tt11fffffLftttffttffttf\ntttttttttttttt111ttttttt1tffftttfft111:....... ,:.:,,.......................1tt11tfffffftttffftffttt\nttttt1tttttttt11ttttttttttfttttttft111i,...... ,:,,,,......................,itt11ttttttt11ttttttfttt\nttttt1tttttttt11tfttttfftttttffttt1111i,...... ,:.,,,......................:11111ttttttt11ttttttfttt\n1tttt1ttftfttt11tfffffffttttfffft11111,....... ,,.,,....... ...............it1111ttttttt111tttttfttt\n1tttt1tttttttt11ttttttttttttttttt1111;,....... ,,.,,......................:tt11111ttt11t111ttttttt1t\n11t111tttttttt111t1111tttttttttt1iiii:,,...... ,,.........................;t111111111111111111111111\n111111111tt11111111111ttttttttt1;;iiii:....... ,,............ ...........;tttt1111111111111111111111\n1111111111111111111111ttttttttt1;;;iii;... ....,::::,....,:::,,.........;1ttttt111111111111111111111\n111111111111111111111111tttttttt1i;;ii: .,....,:::::... .;;;;;:,.....,;1ttttttttt111111111111111111\n1111111111111111111111111tt1111111i,,.,:;i: ...,:::::.....:;;;;;:.....,1ttttttttt11t1111111t11111111\n11111111111111111111111111111111111:.:1tti,....,:::::.... ,;;;;;;,.....ittttttttt111t11111ttttt11111\n1111111111111111111111111111111111111ttt;,,....,:::::,... .,;;;;:,.,,..:ttttttttttt1tttt11tttttt1111\n11111111111111111111111111111111111111t1,,,....:;;::::,.....:;;;:......,1ttttttttttttttttttttttt1111\n","ttftffftttttttttffffffLftfftttttttttt111tttt1111111tttt1tt111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftfffffffffttt11111tt11111ttfffft1ttt1111111111111111tttttffttttttttt111111tt\nttftttttttttttttffffLffttfffffffLLLfttttttfttt11tffffffftttttttt111111tttttffffftfffftttttt1111111tt\nttttttttttttttttfffLLttffffffLLffffttttttttttt1ttt1iiiii1tttttttt11111tffffffffftttfffffttt1111t1tt1\nttttttttttttffffttffftffffffffffttffttttt11tttt1i::,,,,,,:;111111t111111ttffffLLffttfLfftt11111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfft1i;,,,,,,,,,:;ttt11t111tt111tttffffftttftttttt111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLtttttffffti;::;;;;;iii::1ftt11111tft11111ttffffttt11tffftt1ttttt\ntttttttfffLLLLLLLLLftffttttffLffftffttttffffft;:;iiii11111i:iftttt111ttt1tttt11tffLfttttfffffttttttt\ntttttttffLLLLLLLLLfttttffftffLLftfftttttffffft;:;;;;;iiiiii;1fftt11111111ttftttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttttffffti;;;;;;;ii;iiitffft11111ttt1ttt1tfttt11ttfffffLLfLfttt\nttfLfffffLLLLLLLLffffLLfffffLfffLLLLtttttttff1iii;;i;;iii111tfft111111ffft11t11tt1tttttfffLLLLLLffff\ntffftftttffLLLffttttfffffttLLLLfLLLffttftt11t1iii;;;;;iiiii1tt111t1111tffttfftt11tfft1tfffLLLLLLLfff\nttffftttttffLftttttttttttttfLLLffLLftttttttft111i;;;;iiii1111111111111tffttfffttttttt11ttfLLffffftff\nttfLffffffftttfffffffffttfttfLLfffLftttttfffft11i;;;;iiii1t1ttttt11111ttt1tffttt11ttttttttfffftfttft\nttffffffffftttffffffffttfffftffffftttttfffft11t1i;;;;;iii1ii1ttttt1111t111ffttfft1tfffffLfttttfffffL\nttffffffffttttffffffffttttttttttffftttttttt11tft1i;;;;iii1i,:;i1ttt11111t11t1tfft1ttffffLLfttfLLLLLL\ntttffffffffttfffffffftttttttt11ffffttttt1111tfti;ii;;iiii1;,,...,:;ii1tttt1111tt11ttffffffftttffLLLf\nttttttttfffttfffttttttttffttt11tffftttttt11t1iii;;ii;;;i1t:,.........,:;1t111ttt111ttffffffftffLLLLf\ntfttttttttttttttttttttfffftttt11tfftt11tt1i:,.:;;;i;;;itti,,............,;1111ttttt11111ttfftffffftt\ntfttfffftttttttfffftttffffttffttttft1111i:....,;;;ii;i11;.,,.............:1tt1ttffffttttttt1ttttttft\ntttttffffftttffftffttttffftfffttttft1i:,.......:;;;;;;;:,................:tttt1tffftttttfft11ttfffff\n1t1tffffftt1ttfffftt11tffttftttttttt1,.........,ii;;;;;,.................:11tt1tfft11tfffffft1fLLfLf\ntftttfftt1ttt1tftt1ttt11ttttttttt111i,.........,11;:;;:,.................,1t1t11ttttttttfftt111fffLf\ntfftttttttffttt111ttfftt11ttffffftt11,.........,i;::::,..................,1tt11111ffft1ttt11tt1tffft\nttttttttttttttt11tttttttt1tffffffft11;..........::::::,...................;tt1111tfffftttttffftttttt\ntfffttttfffffft11ttttttttttffffffft11:..........:::::,..,;:,...............ittt1tttttffttttttttffttf\ntfffttttfffffft11tftttffttttfffft1111:..........:::::,..;1i;:,..............1t11tfffffffttfffffffttf\ntfffttttfffffft1tttttttftttttttttt111;..........::,:,...;ii;;;,.............:1111tffffLfttfffffffttf\ntffftttttttfft11ttttttttttfftttttft11i,.........::,,,...;;;;;i:..............;111tffffLfttfffttffttf\ntttttttttttttt111tttttttttffftttfft11i,.........::,,,...;;;;;i:..............:111tfffffftttffttffttt\ntttttttttttttt11ttttttttttfftttttft111:.........:,,,....::;;;;:.............,1t11ttttttt11tttttffttt\nttttt1tttttttt11tfttttfftttttfftttt111:.........:,,,......,::::..,.........,i1111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfffffffttttfffft1111i:,........:,,,..... .......,,...... .it1111ttttttt111tttttft1t\n1tttt1tttttttt11ttttttttttttttttt1iiii;,........:........... ...........:itt11111ttt1t1111ttttttt1t\n111111tttttttt111tt111tttttttttti;;;iii:... ....:,,...................:i1tttt11111111111111111111111\n111111111tt11111111111tttttttttt1;;;;;;;. .,....::::..................:1tttttt1111111111111111111111\n1111111111111111111111ttttttttttt1i;;::..:;1,...::::...................;ttttttt111111111111111111111\n1111111111111111111111111tttttttt111i,.,it1;....::::,..................,1ttttttttt111111111111111111\n1111111111111111111111111tttt11111111ii1t1i:...,::::,........,..........itttttttt11t1111111tt1t11111\n11111111111111111111111111111111111111tt1;:....::::;:.......,...........:1ttttttt111t11111ttttt11111\n111111111111111111111111111111111111111ti,,....:;:;::,..................,ittttttttt1tttt11tttttt1111\n111111111111111111111111111111111111111t:,:.,.:;;;;:::,..................;111t1ttttttttttttttttt1111\n","ttftffftttttttttffffffLftfftttttttttt111tttt1111111tttt11t111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftfffffffffttttt1111t11111ttffffftttt1111111111111111tttttfftttttttt1111111tt\nttftttttttttttttffffLffttffffffffLLfttttttfttt11ttt1iiii;i11tttt111111tttttffffftffffttttttt111111tt\nttttttttttttttttfffLLttffffffLLffffttttttttttt1tt1::,,,,,,:;1ttt111111tfftfffffftttfffffttt1111t1tt1\nttttttttttttffffttffftffffffffffttfftttttt1ttt11i;:,,,,,,,,,:1111t1111111tffffLLffttfLfftt11111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttffft1;:::;;;;;;;::it11t111tt111tttffffftttfttttt1111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLtttttfffffti:;;ii111111i:itt11111tft11111ttffffttt1ttffftt1ttttt\ntttttttfffLLLLLLLLLftffftttffLffftffttttfffffft;:;;;;;iiiiii;ittt1111ttt1tttt11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLLftfftttttffffffti;;;;;;;ii;iiitttt11111111ttftttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttttfffff1iii;;i;;i1i1i1tttt11111ttt1ttt1tfttt111tfffffLLfLfttt\nttfLffffffLLLLLLLffffLLfffffLfffLLLftttttttfft1i;;;;;;;iiiiitfft111111ffft11t11tt1tttttffffLLLLLffft\ntffftfttttfLLLffttttffffftfLLLLfLLLftttftt1111111i;;;;iiii111t111t1111tffttfftt11tfft1tffLLLLLLLLfff\nttffftttttffLftttttttttttttfLLLffLLftttt1tttt11tti;;;iiiii111111111111tffttffftttttttt1ttfLLLfffffff\nttfLffffffftttfffffffffttfttfLLfffLftttttffft1111i;;;;;ii111tfttt11111ttt1tffttt11ttttttttfLfftfttft\nttffffffffftttfffffffffttffftffffftttttfffft11t11i;;;;iii1i:;1ttft11111111ffttfftttfffffLfttttfffffL\nttffffffffttttffffffffttttttttttffftttttft111tttiii;;iiii1;,,,:;i1111111111t1tfft1ttffffLLftttfLLLLL\ntttffffffffttffffffffttttttttttfffftttt1111i;:;iiii;;;i;11:,,.....,:;i1tft1111tt111tffffLfftttffLLLf\nttttttttfffttfffttttttttfftt111tfffttt11i;,,..:i;;;i;ii1t1,,..........,:i1111ttt1111tffffffftffLLLLf\ntfttttttttttttttttttttffffttttt1tffti;:,,.....,;;;iiii1ti,,,.............;1111ttttt11111ttfftffffftt\ntttttffffttttttfffftttffffttffttttf1:.........,;:;;;;;;;,.,,,............:1tt1ttffff11ttttt1ttttttft\ntttttffffftttffftfft1ttffftfffttttf1,..........,;;;;;;;:.:ii;;:,.........:tttt1tfffttttffft111tfffff\n1tttffffftt1ttfffftt11tffttfttttt1t1,...........ii;;;::,,;i;;ii:.........:tttt1tfft11tfffffft1fLLfLf\ntftttffttttt11tftt1tttt1ttttttttt11i,..........,1i;;::,.:i;;;;i:.........,1t1t11ttttttttfftt111fffLf\ntfftttttttffttt11tttffttt1tttffft11i,..........,ii;:::,.,:;;iii:..........it111111tfft1ttt11tt1tffft\nttttttttttttttt11tttttttt1tfffffftti,...........:::::,....:;;ii:..........:tt111ttfffftttttffftttttt\ntfffttttfffffft11ttttttttttfffffft1i,...........:::::,.....,:;;:.... ......,1t111ttttffttttttttffttf\ntfffttttfffffft11tftttffttttfffft111:...........:::::,........,..,..........,1111tffffffttfffffffttf\ntfffttttfffffft1tttttttftttttttttt11:...........::,:,........ ...:;,.........:111tffffLfttfffttffttf\ntffftttttttfft11ttttttttttffttttttti,...........:::,,.............,...........,i1tffffLfttfffttffttf\ntttttttttttttt111tttttttttffftttfft;,:;:........:::,.............. ...........:11tfffffftttffttffttt\ntttttttttttttt11ttttttttttfftttttftii1i;:.......:::,.......... ..............:t111tttttt11tttttffttt\nttttt1tttttttt11tfttttfftttttffttt1ii;ii;,......::,,........................:1111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfffffffttttfffft11i;;ii;,......:,,,..........:........ .;t1111ttttttt111tttttft1t\n1tttt1tttttttt11tttttttttttttttttt11;:;i:,,.....:,.................. .;i;;1tt1111tttt1t1111ttttttt1t\n111111tttttttt111t111ttttttttttttt11i:,,:1;....,::....................:1ttttt11111111111111111111111\n111111111tt1111111111tttttttttttttt11i;;1t:....:::::...................;tttttttt11111111111111111111\n1111111111111111111111ttttttttttttt111ttt1,,,.,:::::,..................,1ttttttt11111111111111111111\n111111111111111111111111tttttttttt1111111i,::.,;::;:,...................;ttttttttt111111111111111111\n1111111111111111111111111ttttttt11111111t;.,,.,;;;;;,...................,1ttttttt11t1111111tttt11111\n111111111111111111111111111111111111111t1:..,,:;;;;;:,...................;ttttttt111t11111ttttt11111\n111111111111111111111111111111111111111ti,,,::;;;;;;;:,..................,1tttttttt1tttt11tttttt1111\n111111111111111111111111111111111111111t;,,::,;;;ii;;::,..................it1tttttttttttttttttt11111\n","ttftffftttttttttffffffLftfftttttttttt111tttt1111111tttt111111tttt1111111ttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftfffffffffttttt111tt11111ttffffftttt1111111111111111tttttfftttttttt1111111tt\nttftttttttttttttffffLffttfffffffLLLftttttttttt11ttt1iiii;i11tttt111111ttttttfffftffffttttttt111111t1\nttttttttttttttttfffLLttffffffLLffffttttttttttt1ttt;:,,,,,,,:itttt11111tfftfffffftttfffffttt1111t1ttt\nttttttttttttffffttffftffffffffffttfftttttt1tttt11i:,,,,,,,,,:i111t1111111tffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttffft1;::;;;;;;;;;,;t111111tt111tttffffftttftt1tt1111ttttt\nttttttttffLLLLLLLffttfLLffttfffftfLLtttttffffff1,:iiii111111;:tt11111tft11111ttffffttt11tffft11ttttt\ntttttttfffLLLLLLLLLftffftttffLffftffttttfffffffi:;;;;;iiiii1;;ttt1111ttt1tttt11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLLftfftttttfffffff1;;;;;;;ii;;ii1ttt11111111ttftttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLffffftfLftffffLLLftttttfffff1iiiiii;;iiii1itttt11111ttt1ttt11tttt11ttfffffLLfLfttt\ntffLLffffLLLLLLLLffffLLftffLLLffLLLftttttttffftiii;;;;;ii1ii1tft111111ffft11t11tt1tttttffffLLLLLffft\ntfffffttftfLLLffttttfffffttLLLLfLLLftttft111tt111i;;;;iiiii1tt111t1111tffttfftt11tfft1tffLLLLLLLLfff\nttttfttfffffLftttttttttttttfLLLffLLftttt1tttt11tti;;;iiiii111t11111111tffttffftttttttt1ttfLLLfffffff\nttffffffffftttfffffffffttfftfLLfffLftttttffft11t1i;;;;;iii11ttttt11111ttt1tffttt11ttttttttfLfftftttt\nttffffffffftttfffffffffttffftffftftttttffft111t11i;;;;iii1ii11tttt1111tt11ffttfftttfffffLfttttffffff\nttffffffffttttffffffffttttttttttffftttttttt11111iii;;iiii1;,:;1tttt11111t11t1tfft1ttffffLLftttfLLLLL\ntttffffffffttffffffffttttttttt1tffftttt11i;:,:i;;i;;;;;i11,,..,,:;i111tttt1111tt11ttffffLfftttffLLLf\nttttttttfffttfffttttttttffttt11ttff1ii;:,....,;::;i;;i11ti,,.......,:;ittt111ttt1111ttffffffttfLLLLf\ntfttttttttttttttttttttfffftttt11tff;,,........;;;;iii1tti,,,,:;;::,....,i11111ttttt11111ttfftffffftt\ntfttfffffttttttfffft1tffffttfft1ttt:..........:;;;;;;;i;...,;i;iii:.....,i1tt1ttffff11ttt1t1ttttttft\nttttfffffftttfffffft11tffftffftttti,..........,:;;;;;;;,...,;;iiii,......;tttt1tffftttttftt111tfffff\n1tttffffftt1ttfffftt111ffttft11tt1;,...........;i;;;;;:,.....:;iii,......;tttt1tfft11tffffftt1fLLfLf\ntttttffttttt11tftt1tttt1tttt1tttti,............;1;::;;,......,;iii,......;t11t11ttttttttfftt111fffLf\ntfftttttttffttt111ttfftt111ttfffti.............;i;::::,.......,;;;,......;ttt11111tfft1tttt1tt1tffft\nttttttttttttttt11ttttttt11tffffffi,............,::;:::,..........,.......:ttt1111tfffftt1tttfftttttt\ntfffttttfffffft11tttttttttttffffti,............,:::::,..............,....,ittt11ttttttft1ttttttffttf\ntfffttttfffffft11tffttff11t1tfff1;...... ....,.,:::::,.....................;11111tffffffttfffffffttf\ntfffttttfffffft1tttttttfttttttti:,......:iiii;,,:::,:.......................,;111tffffffttfffttffttf\ntffftttttttfft11ttftttttttfftti,,::,.,:;1i;;;;.,::::,.........................,i1tffffLfttfffttffttf\ntttttttttttttt111ttttttt1ttfft1:::,,,:,:;;;;i:.,:::,,..........................;1tfffffftttffttffttt\nttttt1tttttttt11ttttttttttfttt1;,...,...:;;;:, ,:::,..........................;11ttttttt11ttttttfttt\nttttt1tttttttt11tfttttfftttttfti,..,....,,,....,:::,.........................:111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfffffffttttffft1;::::,,.......,:,:,.................. .:1111ttttttt111tttttfttt\n1tttt1tttttttt11ttttttttttttttttttt11111:......,:,,,..................,::,:1tt1111ttt1t1111ttttttt1t\n111111tttttttt111t1111tttttttttttt111111:......,,.....................,1tttttt1111111111111111111111\n1111111111t11111111111ttttttttttttt11111:......,:,,....................:1t1ttttt11111111111111111111\n1111111111111111111111ttttttttttttt1111t:......,;;::....................:1ttttttt1111111111111111111\n111111111111111111111111ttttttttt1111111:......,::::,...................,itttttt11111111111111111111\n111111111111111111111111111tttt111111111:......,;;::,....................:1ttttttt1tt11111ttttt11111\n1111111111111111111111111111111111111111:......:;;;::,...................,ittttttt11t11111ttttt11111\n11111111111111111111111111111111111111t1:......:;i;;::,...................:11tttttt1tttt11ttttt11111\n1111111111111111111111111111111111111111,......:;;;;;::,..................,1tttttttttttttttttttt1111\n","ttftfffttttttttttfffffLftfftttttttttt111tttt1111111tttt111111ttttt11111tttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftffffffffftttttt111111111ttfffftt1tt1111111111111111ttttttftttttttt1111111tt\nttftttttttttttttffffLftttfffffffLLLft1tttttft111tfftttfttttttttt111111ttttttfffftffffttttttt11111tt1\nttttttttttttttttfffLfttffffffLLffffttttttttttt1ttti;;;;::;i1tttt111111tffffffffftttfffffttt11111ttt1\ntttttttttttfffffttffftffffffffffttfftttttt1ttt111i,,,,,,,,,;11111t1111111tffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttffft1i::,,,,,,,,,:1t11t111tt1111ttffffftttftt1tt1111ttttt\nttttttttffLLLLLLLffttfLLLfttfLfftfLLtttttfffffti:;;iiiiiiii::1tt11111tftt1111ttffffttt11tffft11ttttt\ntttttttfffLLLLLLLLLftffftttffLffftfftttttffffft::;;iii1i111i:1ttt1111ttt1tttt11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftfftttttfffffft;;;;;;;iiiiii;tttt11111111ttftttttttt11tffffffffffttt\ntttfftfffLLLLLLLLLfttfftfLfffffffLLftttttfffft1ii;;;;;iiiiiitfttt11111ttt1ttt11tttt11ttfffffLLfLfttt\nttfLLfffffLLLLLLLfftfLLftfffLLffLLLftttttttfftiii;;i;;ii111itfft111111tfft11t11tt1tttttfffLLLLLLLfff\ntfffffttftfLLLffttttffffftfLLLLfLLLftttft111tt1iii;;;;iiiii1tt111tt111tffttfftt11tfftttffLLLLLLLLfff\nttttfttffttffftttttttttttttfLLLffLLftttt1tttt11t1i;;;iiii1111t11111111tffttffftttttttt1ttfLLLfffffff\nttfLffffffftttfffffffffttftttfLfffLftttttfffft11i;;;;iiii111tfttt11111ttt1fffttt1ttt1tttttfLLffftttt\nttffffffffftttfffffffffttfftttfttttttttffft11111i;;;;;iii1tt11tttt1111t111ffttffttfffffLLfttttfLffff\nttffffffffttttffffffffttttttttttffftt11ttt1111t1i;;;iii1i1itt11ttt111111t11t1ttft1ttffffLLftttfLLLLL\ntttffffffffttfffffffftttttt1111tffftttt11i;::i1iii;;;iii1i,:;i11t11111tttt1111tt11ttffffLfftttffLLLf\nttttttttfffttfffttttttttffttt11ttft1ii;:,....;i;;;ii;;i1t:,...,:;i1111tttt111ttt1111tttffffftfLLLLLf\ntfttttttttttttttttttttfffftttt11t1:,,........ii:;;iii1tt1,,,......,,;i1tt11111ttttt11111ttfftffffftt\ntfttfffffttttttfffft1tffffttfft11;,..........:;::;ii11t1:,,,...,,:,...,it11tt11tffffttttttt1ttttffft\nttttfffffftttfffffft11tfffttfttt1,....,,......,:;;;;;;i,.......:iii;;,.,1t1ttt1tffftttttfftt11tfffff\n1tttffffftt1ttfffft1111tfttft11ti,.............;i;;;;;:........:iiiii:..it11tt1tfftt1tfffffft1fLffLf\ntttttffttttt11tttt1tttt1tttt1tt;,..............i1;;;;;,........,;iii;,..it111t11ttttttttfftt111fffLf\ntfftttttttfftt1111ttfft11111tft:...............;i;;;;:,.........:;ii:..,ittt111111tfftttttt1tt1tffft\nttttttttttttttt11ttttttt11ttff1,...............,::::::......... ,;ii:...itttt111ttffffft1tttfttttttt\ntfffttttffftttt11ttttttt111tft;,........... ..,:;:::,...........,:;:...;ttttt11ttfffffttttttttffttf\ntfffttttfffffft11ttttttf11111;:,..... .....,:::::::::...............,...:1ttt1111fffffffttfffffffttf\ntfffttttfffffft11ttttttt11ti,,...........,:;i;;;:::::..................,.:tt11111tffffffttfffffffttf\ntffftttttttfff111ttttttt111,.,,,,...,,..,;;;;;i;:,::,....................,;i1t111tffffLfttfffftffttt\ntttttttttttttt111ttttttt11t:.......,....,:;;;;;:::,:,.......................:1t11tfffffftttffttffttt\nttttt11ttttttt11tttttttt11t1,............,,,...,::::.........................:111ttttttt11ttttttfttt\nttttt1tttttttt11ttttttfft1t1:,............ .. ,:::,........................,i111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfftttfftttttt1;::,,::.........,:,,,........................i1111ttttttt111tttttfttt\n1ttt11tttttttt11tttttttttttttttttt111i.........,::,,................. . .;t11111ttt1tt111ttttttt1t\n11t111tttt1tt111111111tttttttttttt111i,........,:,,...................,..,itttt111111111111111111111\n1111111111111111111111tttttttttttt111i,....... ,:....................i111ttttttt11111111111111111111\n1111111111111111111111ttttttttttt1111i,....... ,:,::,................,i1t11tttttt1t11111111111111111\n111111111111111111111111tttttttt11111i,........,::;:,..................;1ttttttt11111111111111111111\n1111111111111111111111111tttt11111111i........ ,,:::,..................,1ttttttttttt1111111tt1t11111\n1111111111111111111111111111111111111i,........,,:::,...................it111ttttt11t11111ttttt11111\n111111111111111111111111111111111111t1,........,,,:::,..................,1t1ttttttt1tttt11ttttt11111\n11111111111111111111111111111111111111,........,,,;;::,..................i111ttttttttttttttttttt1111\n","ttftffftttttttffffffffLfttftttttttttt111tttt1111111tttt111111tttt1111111ttttttttttttttttttt11111111t\nttfttttttttttttttftfLLLftffftffffftttttt111111111ttfffftt1tt1111111111111111ttftttftttttttt1111111tt\nttftttttttttttttffffLftttfffffffLLLft11tttfft111tfffffffttt1ttttt11111ttttttfffftffffttttttt11111tt1\nttttttttttttttttfffffttffffffLLffffttt1ttttttt1tt111ii11tft1ttttt11111tfftfffffftttfffffttt11111ttt1\nttttttttttttffffttfffttfffffffffttffftttt111ttt1:,,,,,,,:i1111111t111111ttffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLLfttttttftt1;:,,,,,,,,,;1tt111t1111t111tttffffftttftt1ttt111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLfttttffft1i;;;;;;;;;;::1tttt11111ttt11111ttffffttt11tffft11ttttt\ntttttttfffLLLLLLLLLftffftttffLLfftfftttttffffi:;iii111111i:ittttt1111ttt1tttt11tfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftfftttttfffff;:;;;;iiiiiii:ittttt11111111ttttttttttt11tffffffffffttt\ntttffftffLLLLLLLLLfttfftfLftfffffLLftttttffff1i;;;;;ii;iiiittttft11111ttt1ttt1ttttt11ttfffffLLfLfttt\nttfLLfffffLLLLLLLfftfLLftfffLfffLLLftttttttf1i1i;i;;iiii1i1tffft111111tfft11t11tt1tttttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttft1111iii;;;;ii1i1i11tt111t1111tffttfftt11tfftttfffLLLLLLLfff\ntttffttfftffLftttttttttttttfLLLffLLfttttttttt11i;;;;iiii11t11111111111tffttfffttttttt11ttfLLLfffffff\nttfLffffffftttfffffffffttftttfLfffLftttttffft11i;;;iiiii1t11ttttt11111ttt1fffttt1tttttttttfLLftftttt\nttffffffffftttfffffffffttffttfffttttttttfft1111i;;;;iii1111111tttt1111tt11ffttffttfffffLffttftffffff\nttffffffffttttffffffffttttttttttffftt11tttt11t1ii;;;iii11tfft11ttt111111t11tttfft1ttffffLLfttffLLLLL\ntttffffffffttfffffffftt1ttt1111fffft1tt11iiii1iiii;iiii1i:1tft11111111tttt111ttt11ttffffLfftttffLLLf\nttttttttfffttfffttttt1ttfft11111tft11i;:,..,;ti;;;i;iii1;,,,:;i1111111tttt111ttt1111tffffffftfLLLLLf\ntfttttttttttttttttttttfffftttt11i;::,,......iti::;i;iitt:,,....,:;i111ttt111t1ttttt11111ttfftffffftt\ntfttfffffttttttfffftttffffttft11:...........;ii::;i11tti,,,,.......,:itt111tt1ttffff11ttt111ttttttft\nttttfffffftttffftfft11tfffttftt;,............,:;;;;;11;,..............;1111ttt1tffftttttfftt1ttfffLf\n1t1tffffft11ttfffft1111tfttft11:.............,:ii;;;;;,...............:11t11tt1tfft11tfffffft1ffffLf\ntttttfftt1tt11tttt1ttt11t1111t;,..............:i1;;;;:,...............,111111t11ftttttttfftt11tfffLf\ntfftttttttfftt1111tttft11111t1,...............:ii;;;;,............,,,.,1tttt11111ttfftttttt1tt1tffft\nttttttttttttttt11ttttttt11ttfi................:;::;::,...........,;i;;:1tttttt11ttffffftttttfftttttf\ntfffttttftttttt11ttttttt11ttfi................,;;:::,............,;iiii1tttttft1ttffftfttttttttftttf\ntfffttttfffffft11ttttttt11111;........ .......:;:::,............:iiiii11ttftt11tfffffffttfffffffttf\ntfffttttftffff111ttttttt11ti:,....... ,:::;;:,.,;:::,............:;;ii:i11tt1111tfffffffttfffffffttf\ntffftttttfffft111ttttttt11i,.........,iii;;;,..,:::,.............::;;,.it1111tt11tffffffttfffftffttf\ntttttttttttttt111ttttttt11,.,,,,..,,,:;;;;;;,..,:::,.............,::;..:i111ttt11tfffffftttffttffttt\nttttt1tttttttt111ttttttt11;,,,...... .:;;;;:...,:,,,.....................:111tt11ttttttt11tttttffttt\nttttt1tttttttt11tttttttt111,..........,,,,.....,:,,.......................:111111ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfft11i:,.....,.... .....,::,......................,1t11111ttttttt111tttttft1t\n1tttt1tttttttt11ttttttttttttt1ii;;;:...........,:,,.....................,it111111ttttttt111ttttttt1t\n11t1111tttttt111111111tt1tttttttt11:...........,:,,.............. .;t11111111111111111111111111\n1111111111111111111111ttttttttttt11,.......... ,,................,:,,,:i1tttt1t111111111111111111111\n1111111111111111111111tttttttttt11i,...........,,,,..............:1t11ttttttttttt1111111111111111111\n111111111111111111111111tttttt1111;........... ,,:;,..............:11ttttttttttttt111111111111111111\n11111111111111111111111111tttt1111;........... ,,:;:...............:111tttttttttt11t1111111tttt11111\n1111111111111111111111111111111111;....,,......,,,::................i1ttttttttttttt1t11111ttttt11111\n1111111111111111111111111111111111;............:,,;:,...............;1tttttttttttttttttt11ttttt11111\n1111111111111111111111111111111111:............,,:;;:...............,1t1tttttttttttttttttttttttt1111\n","ttftffftttttttfffffttfLfttftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttftffLLftffffffffttttttt111111111ttfffft1ttt1111111111111111ttttttftttttttt111111ttt\nttftttttttttttttffffLftttfffffffLLLftt1tttttt111ttfffffftttttttt111111tttttffffftffffttttttt111tttt1\nttttttttttttttttfffLfttffffffLLffffttt1tttttt11tffffffffffttttttt11111tffffffffftttfffffttt11111tttt\nttttttttttttffffttfffttfffffffffttffftttt11111111i;i11ttt11tt1111t111111ttffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLLfttttttfti:::,,,,:;i1ttfttt11t111tt111tttffffftttftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLftttttft1;,,,,,,,,,,;tffffft11111tft11111ttffLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLfLftffttttfffti;:;;;;iii;::1fffffttt111ttt1tttt1ttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLfftfftttttfffi;;iiiii1111i:iffffftt11111111ttttttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttttffi:;;;;iiiiiii:1ftttfftt1111ttt1ttt1ttttt111tffffffLfLfttt\ntffLLfffffLLLLLLLfftfLLftftfLfffLLLLttttt1t1i;;;;;ii;iiii1ttffft111111tfft1tt11tt1tt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttft11i1i;;;;i111iii111tt111t1111fffttfftt11tfftttfffLLLLLLLffL\ntttffttfftffLftttttttttttttfLLLffLLftttt1tti1i;;;;ii1iii1tt11111111111tffttffftttttttttttfLLLLfffffL\nttfLfffffffttffffffffffttftttfLfffLftttttfftt1;;;;iiii11ttt1ttftt11111tfttffftt111ttttttttfLLftftttt\nttffffffffftttfffffffffttffttfftttttttttfft111i;;;iiii1t111t1ttttt1111tt11ffttffttfffffLLfttffffffff\nttffffffffttttffffffffttttttttttfffttt1tft1111i;;;iiii111tfft11ttt111111t11tttfft1tfffffLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt1111tffft11t111111iiii;;iii111fffft11111111ttft111ttt11tfffffLfftttfLLLLf\ntttttttttffttfffttttt1ttfft1t11ttfftttt1iiii1i;;;iii1i1i,;i1ttt1111111tttt111tttt111tffffffftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tff11i;:,,,:11i;;iii;it;....,:;i111111ttt111t1ttftt11111ttfftffffftt\ntfttfffffttttttfffftttffffttfft1ii;:,,.....:11;:;;;;1tt;,,,.....,,;i11tt111tt1ttfffftttttt11ttttttft\nttttfffffftttffftfft11tfffttft1;,..........:1ii;;ii1tti,,,..........,it1111ttt1tfffttttffftt1ttfffLf\n1tttffffftt1ttfffft1111tfttft1i,............,:;ii;;i1i,..............:111111tt1tfft11tfffffft1ffffLf\ntftttffttttt11tttt1ttt11t1111t;..............,;1i;;;;,...............,1111111t11ftttttttfftt11tfffLf\ntfftttttttfftt1111ttttt11111tt:............. ,;ii;;;:,...............,i111tt11111tffftttttt1tttttfft\nttttttttttttttt11ttttttt11ttft,...............;;;;;:,.................ittttttt11ttffffftttttfffttttt\ntfffftttftttttt11ttttttt11ttf1,...............:;;;::,.......,,,.......;tttttfftttfffftfttttttttffttf\ntfffttttfffffft11ttttttt1111t1,...............:;;;::........,;i;:,....;t1ttfttt1tfffffffttfffffffttf\ntfffttttftffft111ttttttt11t111,...............,::::,........:iiiii:...;t11tt1111tffffLffttfffffffttf\ntffft1tttfffft111ttttttt11ttt1,..... ..........::::,.......,;iiii;,...it11111tt1tfffLfLfttfffftffttf\ntttttttttttttt111ttttttt11tt1:... .,..........,:::.........:;;i;,...,1t1t11tft11tfffffftttffttffttt\nttttt1tttttttt111ttttttt1tt1:,...:;ii:.........,::,.........,:;;:.....,it1111tt11ttttttt11tttttffttt\nttttt1tttttttt11ttttttttt1t;::,;iiii;,.........,:,,...........,,,......,;11111111ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfft1ti:,,;;;:;;,.........,:,,.......... ..........:tttt1111ttttttt111tttttfttt\n11ttt1tttttttt11ttttttttttt1,.,::::;;:.........,:,,...............,....;ttttt1111ttttttt111ttttttt1t\n11tt11tttt1tt111111111111ttti:,,,::;:..........,:,,............ ......;ttttt11111111111111111111t111\n1111111111111111111111tttttttt1:,,,............,:,.............,. .,;11tttttt1111111111111111111111\n1111111111111111111111tttttttttt1:.............,,............ .11ii1ttttttt1111111111111111111111111\n111111111111111111111111tttttt111,.............,::,,...........ittttttttttttt11111111111111111111111\n11111111111111111111111111111111;..............,;;;:,..........:11tttttttttttttt11111111111111t11111\n11111111111111111111111111111111;..............,;;;:,...........:11tttttttttttttttt1111111ttttt11111\n11111111111111111111111111111111:..............,;;;;:...........:1ttttttttttttttttttttttt1ttttt11111\n11111111111111111111111111111111:..............,;i;::,..........,1tttttttttttttttttttttttttttttt1111\n","ttftffftttttttfffffttfffttftttttttttt111tttt1111111ttttt11111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttftffLLftffffffffttttttt111111111ttfffffttttt111111111111111ttffttftttttttt11111tttt\ntfttttttttttttttffffLffttfffffffLLLft11tttttt111tfffffffttttttttt11111ttttfffffftfLLfttttttt1111ttt1\nttttttttttttttttfffLfttffffffLLffffttt1ttttttt1ttfffffffffttttttt1111ttfftffffLftttfffffttt11111tttt\nttttttttttttffffttfffttffffffffftttfttttt111ttt1ttffffffttttt1111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttfLLLfftttttffLftttttttt11ii11fffft1ttfftt11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLfttttt1i:;:,,::;i1tttffffftt11111tft11111ttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttffLffftffttttfti:,,,,,,,,,:;tfffffttttt111tftttttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftffttttttti:::::;;;;;,,1ffttffttt11111111ttttttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLfftfftffftffffLLLfttttti;iiiii11111;:1ttfffffftt1111ttt1ttt1tftttt11tfffffLLfLfttt\nttfLLffffLLLLLLLLfftfLLftttfffffLLLLttttt;;i;;iiiiii1;:i11tfffft111111ffft1tt11tt1tt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttft1ii;;;ii;;iii;tt11ttt111t1111tffttfftt11tfftttffLLLLLLLLffL\ntttffttfftffLftttttttttttttfLLLffLLftttt11ti;;;iiii1iii1ttt1ttt1111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttftttfLfffLfttttt11i;;;iii1iii1tttt1tfftt11111tfttffftt11tttttttttfLLffftttt\nttffffffffftttfffffffffttfftttfftffttttfft11;;;iiiii11tt111ttttttt1111tt1tffttffttfffffLLfttftfLffff\nttffffffffttttffffffffttttttttttfffttt1tft11i;iii11i11111tfft11ttt11111tt11tttfft1tffffLLLfttfLLLLLL\nttfffffffffttfffffffftt1ttt111tfffftttt11111i;i;iiii111ttfffft11111111tttt11tttt11tffffLLfftttfLLLLf\nttttttttfffttfffttttt1ttfftt111tfffttt111111;;i;;iii11i1ttffft11111111tttt111tttt11ttfffffLftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tffttt1t1ii1;;i;;iiii1;,::i11tt1tt1111ttt11tt1tfftt11111ttfftfLffftt\ntfttfffffttttttfffft1tffffttfft11tft11i::,,1ii;:;ii;it:,,...,,:;i11111tt111tt1ttfffftttttt11tttttfft\nttttfffffftttffftfft11tfffttfttttt1i:,....,it1i;;;;i1t;,,,,.......,;111t111ttt1tfffttttffftt11tffLLf\n1tttffffftt1ttfffft111ttfttft11i;:,........i1tt1ii1tt1:,,...........:1111111tt1tfftt1tfffffft1ffffLf\ntftttffttttt11tttt1ttt11t1111t;,...........,;;;11;;;;:..............,1t111111t1tftttttttfftt11tfffLf\ntfftttttttfftt1111ttttt11111tt:..............:;ii;;:,................it111tt11111tffftttttt1tttttfft\nttttttttttttttt11ttttttt11ttf1,..............,;;;;::,................it1tttttt1ttfffffftttttfffttttt\ntfffttttffttttt11ttttttt11ttfi................;;;:::,,:;:,...........;tttttttftttffffffttttttttffttf\ntfffttttfffffft11ttttttt1111ti................:;:::,.:;iii;,.........:111ttfftt1tfffffffttfffffffttf\ntfffttttftffff111ttttttt11t11;................,;:::,.;iiiii:.........:tt11ttt111tfffLfLfttfffffffttf\ntffft1tttfffft111ttttttt1tttt;................,::::,.:;;ii;,.........;ttt1111tt1tfffLLLfttfffftffttf\ntttttttttttttt111tttt1tt11ttti.................:::,...,;;i;,.........itttt11ttt11ffffffftttfftfffttt\ntttttttttttttt111ttttttt11tt1;.................:::,....,:;:,.........,1tt1111tt11ttttttt11tttttffttt\nttttt1tttttttt11ttttttttt1t11:.................:::,.... ..............:1111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfft11ti;,................,::,.........,......... :ttttt1111ttttttt111tttttfttt\n11tt11tttttttt11tttttttt1tt1iiii:..............::,,...................:1tttt111111tttttt111ttttttt1t\n11t1111tttttt1111111111t111iiiiii:.............,:,,,.................:1ttttt11111111111111111111t111\n11111111111111111111111t11i;;iiii;.............,:,,,........... .,;ttttttttt1111111111111111111111\n1111111111111111111111tt1t1i;;ii;,.............,,........... :i;;i1tttttttt1111111111111111111111111\n1111111111111111111111111ttti:,,...............,,,.......... :ttttttttttttttt1t111111111111111111111\n11111111111111111111111111111;::...............:;;::,........,i11ttttttttttttttt1111111111111tt11111\n111111111111111111111111111111t;...............:ii;;:,........;t1tttttttttttttttt1t1111111ttttt11111\n1111111111111111111111111111111:...............:;i;:::........:tttttttttttttttttttt1ttttt1ttttt11111\n1111111111111111111111111111111:............. ,;ii;;;:,..,,...:ttttttttttttttttttttttttttttttttt1111\n","ttfttfftttttttffffftfffftfftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttttffLLttffffffftttttt1t111111111tfffffftttt1111111111111111ttffttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffLLLftt1tttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt111ttttt\nttttttttttttttttfffffttffffffLLffffttttttttttt1tffffffffffttttttt11111tfffffffLftttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttffttttt1111tt1ttffffffttttt1111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffttttffffftttffftt11t111tt111ttfffLLftttftt1tt111tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLftttttt11i;;;;i1tftttffffffftt1111tftt1111tffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttffLLfftffttttti:::,,,,::;i1tffffffffttt111tft1tttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftfftttt11;,,,,,,,:,,,;tffffffffttt1111t11ttttttttttt1ttffffffLfffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttt1i;;;;iiiii:,:1tttfffffftt1111ttt1ttt1tfttt111tfffffLLfLfttt\nttfLfffffLLLLLLLLfftfLLftttfLfffLLLLttt1i1iiiii1111i::1111ttffft111111ffft1tt11tt1tt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttt11;;;iiiiiii:;ttt111tt111tt111tffttfftt11tfftttffLLLLLLLLffL\ntttffttffttfLftttttttttttttfLLLffLLftttt1i;;;iii;iii;ittfft11tt1111111tfftfffftttttttttttfLLLLffffff\nttffffffffftttfffffffffttfttfLLfffLfttt111;;;i111111iitfttt1tfftt11111tfttfffttt1tttttttttfLLftfttft\nttffffffffftttfffffffffttffttffftfftttttt1i;;iiiii1i1tft11tttttttt1111tt1tffttffttfffffLLfttftffffff\nttffffffffftttffffffffttttttttttfffttt1ttti;;;i111iitt111tfft11ttt111111t1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111tfffftttt111ii;iii;ii11111tfffft11111111tfft11tttt11tffffLLfftttfLLLLL\nttttttttfffttfffttttt1ttfft1111tffftttt1111;;;i;;;i111ttttffftt1111111tttt111tttt11ttfffffLftfLLLLLf\ntfttttttttttttttttt1ttfffftttt11tfft111tt1i;;;i;;i1i1;i11tffftt11t1111ttt11tt1tfftt11111ttfftfLffftt\ntfttffffftt11ttfffftttffffttfft11tft11ii;ii;;;;:;iii1,.,,,:;iii1ttt111tt111tt1ttfffftttttt11ttttfftt\nttttfffffftttffftfft11tfffttftttttt1;:,..:11;;i;;;;11:,,,.....,,:i1111tt111ttt1tffftttttfftt1ttffLLf\ntt1tffffftt1ttfffft1111tfttft1111i:,.....,i11iiiii1tt:.,..........:111111t11tt1tffft1tfffffft1fLffLf\ntftttffttttt11tttt1ttt11t11111;:,.........;i11i1111t;..............;t11111111t1tfttttttfffftt1tfffLf\ntfftttttttfftt1111ttfft111111:.............,::;ii;;:...............:111111ttt111ttffftttfft1tttttfft\nttttttttttttttt11ttttttt11tt1,..............::;;;;;,...............,1111tttttt11tffLffftttttfftttttt\ntfffftttffttttt11ttttttt11tfi,..............,::;;::,,...............i111ttttfftttffffffttttttttffttf\ntfffttttfffffft11ttttttt111ti................::::::,:;;::,..........it111ttffttttfffLfLfttfffffffttf\ntfffttttftffff111ttttttt1tt1;................,;::::.:iiiii,.........;11111ttt11ttfffLfLfttfffffffttf\ntffft1tttfffft111ttttttt11tti,................::::,.:ii;ii:.........;tttt1111ttttfffLLLfttfffftffttf\ntttttttttttttt111ttttttt1ttf1.................,:::,.,:;iii:.. ......:ttttt11tft11tfffffftttfftfffttt\ntttttttttttttt111ttttttt1ttt;::...............,:::,. .:;ii:..........;ttt1111tt11tttttft11tttttffttt\nttttt1tttttttt11ttttttttt1t111i;,..............:::,....,::,...........;1111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfftt1iiiiii:.............:::,.... ............. :ttttt1111ttttttt111ttttffttt\nt1ttt1tttttttt111ttttttttt1i;iiii;,............,:,,,................. ,1tttt111111tttttt111ttttttt1t\n11t1111tt1ttt11111111111111i;iii1i,............,::,,.................:1tttt11111111111111111111tt111\n11111111111111111111111111t1;;;;;,.............,:,,,.......... .:1tttttt111111111111111111111111\n1111111111111111111111111t11;,.................,:,,..........,;:::;1ttttttt1111111111111111111111111\n11111111111111111111111111111:..,..............,,............:ttttttttttttttttt111111111111111111111\n111111111111111111111111111111ii;..............,::,...........i111ttttttttttt11111t11111111111111111\n111111111111111111111111111111t;...............,;ii;::,.......:1ttttttttttttt11t1tt1111111ttttt11111\n111111111111111111111111111111i,...............:;ii;;;:,......,1ttttttttttttttttttt111111tttttt11111\n11111111111111111111111111111ti,...............:;ii;;;;:,..:..,1ttttttttttttttttttttttttttttttt11111\n","ttfttfffttttttffffttfffftfftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLttffffffffftttttt111111111tfffffftttt1111111111111111ttftttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffLLLftt1tttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttfffffttffffffLLffffttttttttttt1tffffffffffttttttt1111ttfffffffLftttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttffftttt1111tt1ttffffffttttt1111t111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffft1ttfffftttffftt11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLftttttfttttttttttftttffffffftt1111tftt1111tffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttffLffftffttttt1ii::::;111tttffffffffttt111tft1tttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLfftffttttt1:,,,,,,,,:;ittffffffffttt1111t11ttttttttttt1ttffffffffffttt\ntttffttffLLLLLLLLLftffftfLftffffLLLftttti::,::::::,,,;ttttfffffftt1111tft1ttt1tffttt11tfffffLLfLfttt\nttfLffffffLLLLLLLfftfLLftttfLfffLLLfftt11iiiii111i;,,;t111tfffft111111ffft1tt11ttttt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttt1iiiii1111i:,iftt111ttt11tt111tffttfftt11tfftttffLLLLLLLLffL\nttttftttttffLftttttttttttttfLLLffLLftttti;;;ii;iiii::1ttttt11tt1111111tfftfffftttttttttttfLLLLffffff\nttfLfffffffttffffffffffttfttfLLfffLfttt1i;;i1i;iiii:;tftttt1tfftt11111tfttfffttt1tttttttttfLLftftttt\nttffffffffftttffffffffftfffttffftffttttti;;iii111i1iitft11tttttttt1111tt11ffttffttfffffLLfttftfffffL\nttffffffffftttffffffffttttttttttfffttttti;;;ii1111ii1t111tfft11ttt111111t11tttfft1tfffffLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111tfffftttt1i;;;iiiiii11111ttfffft11111111tfftt1tttt11tfffffLfftttfLLLLf\nttttttttfffttfffttttt1ttfft1111ttffttt111i;;ii;;;itt11ttttfffft1111111tttt111tttt11tttfffffftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tfft1t1t1i;;;ii;;it111ttttffftt11t1111ttt111t1tfftt11111ttfftfLffftt\ntfttffffftt11ttfffftttffffttfft1ttft11ii1;;;;i;:;i1;;i11tttft111tt1111tt111tt1tffffftttttt11ttttfftt\nttttfffffftttffftfft11tfffttftttt1i;:,,:1i;;;;i;;;1;.,,,;;i11111111111tt111ttt1tffftttttfftt1ttffLLf\n1tttffffftt1ttfffft111tffttft1ii:,.....,11iiiiiii1t:,,,.....,:;i111111111t11tt1tffft1tfffffft1fLffLf\ntftttffttttt11tttt1ttt11t11i;:,........,i1tt1ii11tt:,,,,........:t11111111111t1tfftttttfffftt1tfffLf\ntfftttttttfftt1111ttfftt11i,............::;;iiiii1;,,............it1111111ttt111ttffftttfft1tttttfft\nttttttttttttttt11ttttttt11;...............:;;;;:;;...............:111111tttttttttffLffftttttfftttttt\ntfffftttffttttt11ttttttt11:...............,;;;;;;:,..............,111111ttttfftttffffffttttttttffttf\ntfffttttfffffft11ttttttt11,...............,:;;;;:,...............,1111111ttffttttfffLfLfttfffffffttf\ntfffttttftffff111ttttttt11:...... ........:;;;;:,...............,11111111ttt1tttfffLfLfttfffffffttf\ntffft1tttfffft111ttttttt11:.......:;;;:....,;;::::.......,::,....,1tt11tt1111tt1tfffLLLfttfffftffttf\ntttttttttttttt111ttttttt11:.....:;;;;;:.....:;:::,.......,:iii;,.,1t1t11tt11tft1tffffffftttfftfffttt\ntttttttttttttt111ttttttt1i,.....:;:;;;:.....,::::,........;;iii;..;t1111t1111tt11tttttftt1tttttffttt\nttttt1tttttttt11tttttttt1i,.....:::;;;,......::::,.......,;;ii;:..,;1t11111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttttttti....,,,,:;;,.......,:::,,.......,;;;;,....,it11tttt1111ttttttt111ttttffttt\n11tt11tttttttt111ttttttt1:,,.,,,..,,,.........::::,........,:;,..... ,1tttttt11111ttttt1111ttttttt1t\n1111111tttttt11111111111i,,..,,,.... .........::::,..................itttt111111111111111111111tt111\n1111111111111111111111111,...,,...............,::,,,...........,,...;tttttt1111111111111111111111111\n11111111111111111111111111,..... .............,::,,,......... . .:1tttttt1111111111111111111111111\n1111111111111111111111111ti,,,.,,..............::,,..........,,,::i1tttttttttt1111111111111111111111\n11111111111111111111111111111i11;..............:,............,1tttttttttttttt11111111111111111111111\n1111111111111111111111111111111i...............:;:::::,.......;tttttttttttttt11t1ttt111111ttttt11111\n1111111111111111111111111111111:...............:iiii;;::,......ittttttttttttttttttttt1111tttttt11111\n1111111111111111111111111111111,...............:iiiii;;:,......,1tttttttttttttttttttttttttttttt11111\n","tttttfftttttttffffftfffftfftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLftfffffffffttt1tt111111111tfffffftttt1111111111111111ttftttftttttttt11111tttt\nttttttttttttttttfffffftttfffffffLLLftt1tttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttfffffttffffffLLffffttttttttttt1tffffffffffttttttt11111tfffffffLfttffffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttfftttttt11ttt1ttfffffftttttt11tt111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffft1tffffftttffftt11t111tt111ttfffLLffttfft1tt111tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLfttttttffffffttttftttffffffftt1111tftt1111tffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttfLLffftfftttttftttttttffttttffffffffftt111tftttttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftffttttttiii;::::i1ttttffffffffftt1111t11ttttttttttttttffffffffffttt\ntttffttffLLLLLLLLLftffftfLfttfffLLLfttt11:,,,,,,,:::itttttfffffft11111tft1ttt1tffttt11tfffffLLfLfttt\ntffLffffffLLLLLLLfftfLLftttfLfffLLLLfttt1i::::,,::,,,itt11tfffft111111ffft1tt11tt1tt1ttffLLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttttiiiiii1i;:,,:ttt111ttt11tt111tffttfftt1ttfftttffLLLLLLLLffL\nttttftttttffLftttttttttttttfLLLffLLftttti;iiii111i;:,iftftt11ttt11111tffftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttfttfLLfffLfttt1;;;ii;iiii;::1ffttt1tffft11111ffttfffttt11ttttttttfLfftftttt\nttffffffffftttffffffffftfffttffftfftttt1;;i1i;;iii;:itft11tttttfttt111tt1tffttffttfffffLLftfftfffffL\nttffffffffftttffffffffttttttttttffftttt1;;iiii111iii1t111tfft1tttt111111t1ttttfftttfffffLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111ttffftttti;;iiiiiiiii1111ttfffft11111111tffttttttt11tfffffLfftttfLLLLL\nttttttttfffttfffttttt1ttfft1111ttfftttt1;;;iiii;;itt11tffffffft1111111tttt111tftt11tttfffffftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tfftttt1i;;;;ii;;it1111tftfffft11t1111ttt111t1tfftt11111ttfftfLffftt\ntfttfffffttt1ttfffftttffftttfft11tft111i;;;;;ii;;i111111tttft111tt1111ttt11tt1tffffftttttt11ttttffft\nttttfffffftttffftfft11tfffttfttt11i;;:ii;;;;iiiii1;11tt111t11111tt1111tt111tft1tffffttfffftt11tffLLf\n1tttffffft11ttfffft1111tfttftii;:,....;1i;;;;ii111,,:;i1tt11tt11111111111t11tt1tffft1tfffffft1fLffLf\ntftttffttttt11ttt11ttt1111i;:,.......,i1tiiii;;11i,,,..,:;i1t1t111t1111111111t1tfftttttfffftt1tfffLf\ntfftttttttffttt111ttttt1i:...........,ii111iii11i:.,,......,:;1t111111111tttt111ttfLftttfftttttttfft\nttttttttttttttt11tttt11t;..............,::;;i1ti:,............,1t1111111tttffttttffLfffttttffffttttt\ntfffttttfftfttt11tttttt1,...............:;:;;;;;:..............;tt111111tttffftttffffffftttttttffttf\ntfffttttfffffft11tttttt1................,;;;;;;;:..............:t11111111ttffttttffLLfLfttfffffffttf\ntfffttttfttftt111tttttti............... .:;;;;;:,..............:1111111111tttttttffLLfLfttfffffffttf\ntffft1ttttttft111tttttt;............. .:;;;;;;:::..............:111tt11tt111ttt1tfffLLLfttfffftffttf\ntttttttttttttt111ttttt1,..............:;i;;i;::::..............:1ttt1111tt11tff1tffffffftttfftfffttt\nttttttttttt1tt111ttttt;..............:;;;;;i:::::..............;1111111111111tt11tttttftt1tttttffttt\nttttt1tttttttt11tttttt:..............:;;;::;:::::..............;t1111111111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttt1,........... .,,:,...,:::::..............,11i;;i111tttt1111ttttttt111ttttffttt\n11tt11ttttttt1111tttt;............,..... ...,::::...............:i;:;;i1ttttt11111tttttt111ttttttt1t\n11111111t1tt111111111,............,.........,::::,..............,:::;ii1tt111111111111111111111tt111\n111111111111111111111,............ .........,,,::,..............::::;i11tt11111111111111111111111111\n1111111111111111111111:....... .............,,:,,..............,::::i111t11111111111111111111111111\n11111111111111111111111:....,,,,.............,:::,,..................,1t1111111111111111111111111111\n111111111111111111111111iiii11t; .............,:,..,........ ..:1tttttt11111111111111111111111\n111111111111111111111111111111t:...............:,,,:,,......,,,,,:;;1tttttttt1t111tt1111111tttt11111\n111111111111111111111111111111t: .............::;ii;::,.....,i111ttttttttttttttt11ttt111111tttt11111\n111111111111111111111111111111t:..............:;;iiii;:,.....,i1ttttttttttttttttttttttttttttttt11111\n","tttttfttttttttffffffffffffftttttttttt111tttt1111111ttttttt111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLftfffffffffttt1tt111111t11tfffffftttt1111111111111111ttftttftttttttt111111ttt\nttttttttttttttttffffLftttfffffffLLLfttttttttt111tfffffffftttttttt11111tttttffffftffLfttttttt11111ttt\nttttttttttttttttfffffttffffffLLffffttt1ttttttt1tffffffffffttttttt11111tfffffffLffttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttfftttttt11ttt1ttfffffftttttt11tt111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffft1ttfffffttffftt11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLfttttttffffffttttffttffffffftt1111tftt111ttffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLffftfftttttfftffffffftttfffffffffftt111tft1tttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftfftttttt1iii::;i1ttttfffffffffftt1111t11ttttttttttttttffffffffffttt\nttttfttfLLLLLLLLLLfftfftfLfttfffLLLfttt11:,::,,,,,:;1tttttfffffftt1111tft1ttt1tffttt11tfffffLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLLffLLLffttt1;:,,,,,,,,,;ttt11tfffft111111ffft1tt11ttttt1ttffLLLLLLLLfff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttt1iiiiiiii;:,,iftt111ttt11tt111tffttfftt11tfftttffLLLLLLLLffL\nttttftttttffLftttttttttttttfLLLffLLfttt1i;iii1111i:,:1ftfft11ttt111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttfLfffLfttt1;;;i;iii1i:,;tffttt1tffft11111tfttfffttt11ttttttttfLLftfttft\nttffffffffftttffffffffftffftttfffffttt11;;;ii;;iii::1fft11tttttfttt111tt1tffttffttfffffLLffffffffffL\nttffffffffftttffffffffttttttttttfffttt1i;;iiiii11i;itt111tfft1tttt111111t1ttttfftttffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111ttfffttt1i;;iiiiiiiii1111ttfffft11t11111tffttttttt11ttffffLfftttfLLLLL\nttttttttfffttfffttttt1ttfft1111ttffttt1i;;;iiii;;;1t11tffffffft1111111ttttt1ttfft11ttffffLfftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tfftt111;;iiiii;;;1111ttftfffft11t1111tttt1tt1tffttt1111ttfftfLffftt\ntfttfffffttt1ttftfftttffftttfft11tft1i1i;;;;iii;;;111111tttft111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffftttt11tfftttfttt11i;;;1;;;;;iiii;i1t11t111t11111tt1111tt111tft1fffffttfffftt11tffLLf\n1t1tffffft11ttffttt1111tftttti;:,,...:1i;;;;iiii1i:;i1ttt111tt11111111111t11tt1tffft1tffffffttfLffLf\ntftttfftt11t11ttt11ttt111i;:,,.......:11ii;;ii;11i,.,,:;11tt11tt11t1111111111t1tffttttffffftt1tfffLf\ntffttttttttftt1111ttttt1:............:1111iiii1ti;,,....,,;i1tttt11111111tttt111ttfLffttfftttttttfft\nttttttttttttttt111ttt1t;...............,:;;i1tt1;,..........,itttt111111tttttttttffLfffttttffffttttf\ntfffttttfftfttt11ttttt1,................:::::;i;:,...........,1ttt111111ttttfftttffffffftttttttffttf\ntffft1ttffffff111ttttti.................,;;;;;;;:,...........,1t111111111ttffttttffLLfLfttfffffffttf\ntffft1ttfttttt111ttttti................,,;;;;;;::,............it1111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttt;.............:;iii;;:;;:::,............it1111111tt111tttttfffLLLfttfffftffttf\nttttt1tttttttt111tttti,............,;;iiii::;::::,...........,1ttttt111ttt11tft1tfffffLftttfftfffttt\nttttt1tttt11tt111ttt1:.............:;;;iii;::::::............,1tttt1111111111tt1tttfttftt1tttttffttt\nttttt1tttttttt11tttti..............,;;;;:,,:::,,:............:tt11t11111111111t11ttttttt11tttttffttt\n1tttt1tttttttt11tttt:............. ,::,. .::,,,:........... :t1111111t111ttt1111ttttttt111ttttffttt\n11tt11tttttt111111ti.......................,:::::.............it111t11111tttt1111tttttt1111ttttttt1t\n1111111111111111111,.............,.........,:::::.............:1t11ii;:;11111111111111111111111tt111\n1111111111111111111:........................,,:::..............;ii;:;:;ii111111111111111111111111111\n11111111111111111111:....... ..............,,,:,...............,:::::;i1111111111111111111111111111\n111111111111111111111:......,,..............,,,:,...............:::;::;i11t1111111111111111111111111\n1111111111111111111111iiiiii1;...............,,,,.,..............,::::;11111111111111111111111111111\n11111111111111111111111111111;................,,:,,,...... .it1111111111111111111111111111\n1111111111111111111111111111t;...............;i;;;::,.....,,.....,,,;i1ttttttttt11tt111111ttttt11111\n1111111111111111111111111111t;...............:i;;i;::,....:i111111tttttttttttttttttttttttttttttt1111\n","tttttfttttttttffffftfffftfftttttttttt111tttt1111111ttttttt111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLftfffffffftttt1t1111111t11tfffffftttt1111111111111111ttftttftttttttt111111ttt\nttttttttttttttttffffLftttfffffffLLfftt1tttttt111tfffffffftttttttt11111tttttffffftffLfttttttt11111ttt\nttttttttttttttttfffffttffffffLLLfffttt1ttttttt1tffffffffffttttttt11111tfffffffLffttfffffttt1111ttttt\nttttttttttttffffttfffttffffffffftttftttttt11ttt1ttfffffftttttt11tt111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfffttttt1tfffft1ttfffffttfffft11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLftttttttfffffftttffttffffffftt1111tftt111ttffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLffftffttttt111i;iitfftttfffffffffftt111tft1tttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftfftttt1;:,::,,,:;ittttffffffffftt1111t11ttttttttttttttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttfffLLLftt1i:,,,,,,,,,,:1tttttfffffftt1111tft1ttt1tffttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLLffLLLftt1i;;;;;;;i;:,:tftt11tfffft11111tffft1tt11ttttt1ttfffLLLLLLLfff\ntfffffttttfLLLffttttfffffttLLLLfLLLft1;iiiii11111i::tffft11tttt11t111tfffttfftt1ttfftttffLLLLLLLLffL\ntttfftttttffLftttttttttttttfLLLffLLftt11;;;iiiiiii:;tffffft11tt1111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttLLfffLft11i;;;;i;;iii;tffffttt1tffft11111tfttfffttt1tttttttttfLLftffttt\nttffffffffftttffffffffftffffttfftfttt11i;;;i1iii1iitffft11tttttfft1111tt1tffttffttfffffLLfffftfLffLL\nttffffffffftttffffffffttttttttttffftt11i;;;iii111ii1tt111tfft1ttft111111t1ttttfftttffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111ttffftttti;;;;iiiiii11111ttfffft11t11111tfftttttttt1tfffffLLftttfLLLLf\nttttttttfffttfffttttt1ttfft1111ttffttt1i;;;iiii;;itt11tffffffft1111111ttttt1ttfft11ttffffLfftfLLLLLf\ntftttttttttttt1tttt11tfffft1tt11tfft111;;;;;iii;;it111ttfffffft11t1111tttt1tt1tffftt1111ttfftfLffftt\ntfttffffftt11ttftfftttffftttfft11tti;;1;;;:;iii::i111111ttfft111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffftttt11tfftttft1i;:,..,1i;;;;iii;i;:;;1t111t11111tt1111tt111tft1fffffttfffftt11tffLLf\n1tttffffft11ttffftt1111tt1ii:,,......,i1i;;;ii;11;...,:;i111tt11111111111t11tf1tfffttfffffffttfLffLf\ntfttttftt11t11ttt11ttt11;,,..........,11t1iiii1t1:,,.....,:i111111t1111111111t1tffttttffffttt1tfffLf\ntffttttttttfttt111ttttti,.............:;;iii11t1i,,.........,ittt11111111tttt11tttfLffttffttttttffft\nttttttttttttttt111tttt1:................:;;;;;i;:,...........:ttt1111111tttffttttffLLffttttffftttttf\ntfffttttftttttt11ttttti.................,;;;ii;;:............,1ttt11111ttttffftttffffffttttttttffttf\ntffft1ttfffftf111ttttti..................:;;;i;;:,...........,1tt11111111ttffttttffLLfLfttfffffffttf\ntffft1ttfttttt111ttttt;..................,;;;;;::,...........,1t1111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttt;...........,,.....,;;:;:::............,111111111tt111tttttfffLLLfttfffftffttf\nttttt1tttttttt111tttti,........,;ii:......:;:::::............,ittttt111ttt11tft1tfffffLftttfftfffttt\nttttt1tttt111t111tttt;........:;;;;:,.....,;:::::.............ittttt1111t1111tt1ttfttttttttttttffttt\nttttt1tttttttt11tttt1,.......,:::;;;,......::::::.............;tt1t1111111ttt1tttfttttttt1tttttffttt\n1tttt1tttttttt11tttti.........,:::;:.......,:::::..........,,:;1t11111111ttff1111ttttttt111ttttffttt\n111111tttttt111111t1,..........,:::........,:::::..........,:;;i1111t111ttttt11111ttttt1111ttttttt1t\n1111111111111111111;............,,.........,::::,.........,:;;;i1111111111111111111111111111111tt111\n11111111111111111111:.......................,:::,.. ......,:;;ii111111111111111111111111111111111111\n111111111111111111111:.......,..............,:::,..........,::i11t1111111111111111111111111111111111\n1111111111111111111111:,,..,, ..............,,,::,............,1111111111111111111111111111111111111\n1111111111111111111111111i11:...............,..,:,,..... ..:1t11111111111111111111111111111111111\n111111111111111111111111111;................,::::,,.....::::;i11tttt111111t1111111111111111111111111\n111111111111111111111111111,.................ii;;::,....:1tttt1ttttttttttttttttt11tt111111ttttt11111\n1111111111111111111111111ti..................;i;;;:,.....;t1ttttttttttttttttttttt1ttttttttttttt11111\n","ttffftfffttttttttftttfffttftttttttttt111tttt111111tttttttt111tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLLftfffffffftttt1t111t111t11tfffffftttt111111111111111tttftttfttttttttt1111tttt\nttttttttttttttttffffLftttfffffffLLffttttttttt111tfffffffftttttttt11111ttttfffffftfLLfttttttt111tttt1\nttttttttttttttftfffffttffffffLLffffttttttttttt1tffffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttffffttfffttffffffffftttfttttt1111tt1ttffffffttttt1111tt11111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttffftttt11tttffttttfffffttfffft11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLftt11ii;i;;ii1tttffttffffffftt1111tftt111ttffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLffftfftt1:,,,,,,,,:iftttfffffffffftt111tft1tttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftff1i;;:,,,,,,,,:;ttttfffffffffftt1111t11ttttttttttttttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttfffLLLt;,,:;;;;;iiii:ittttttffffffftt1111tft1ttt1tftttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLLffLLLfi,:iiii111111;1ffftt11tfffft11111tffftt1t1tttttt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfffffi:;;;;;iiiiiiitffffft11tttt11t111tfffttffft1ttfftttffLLLLLLLLffL\ntttfftttttfffftttttttttttttfLLLffLLti;;;;;i;;iiii1ftffffftt11tt1111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttfLfffLtii;;;ii;;i1111tfffffttt1tffft11111tfttffftttttttttttttfLLfffffft\nttffffffffftttffffffffftffffttfftftt1ii;;;;;;iii11ttffft11tttttfftt111tt1tffttffttfffffLLffffffLffLL\nttffffffffftttffffffffttttttttttffftt11i;;;;;i111111tt111tfft1ttft11111tt1ttttfftttffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt1111tfffttti;;;;;;iiiii11111ttfffft11t11111tfftttttttt1ttfffLLLftttfLLLLf\nttttttttfffttfffttttt1ttfft11111tfft11i;;;:;;ii;;itt11ttfffffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntftttttttttttt1tttt11ttffft1tt11ttti::i;;;:;iii;;;i;i1ttftfffft1tt1111tttt1tt1tffftt1111tffftfLffftt\ntfttffffftt11ttftfft1tffftttff1i;:,...;1;;;;;i;:;i,..,:;i1tft111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffftttt11tfft11i;:,......,11;iii;;iii,,,....,:;i1111t1111tt111tft1fffffttfffftt11tffLLf\n1tttffffft11ttffftt1111t1;;,..........,i1t11ii11i:.,........,111111111111t11tt1tfffttfffffffttfLffLf\ntfttttftt11t11ttt11ttt11:..............;iiiiiii11,,,......,,,itt11t1111111111t1tffttttffffftt1tfffLf\ntffttttttttfttt111ttttt;................,;;;i;;ii,...........;ttt11111111ttt111tttfLffttfft1ttttffft\nttttttttttttttt111ttt11:.................:;;;i;::............;ttt1111111tttftttttffLLffttttffffttttf\ntfffttttftttttt11ttttt1,.................,;;;;;;:............:ttttt11111tttffftttffffffftttttttffttf\ntffft1ttfffftf111ttttt1,..................:;;;:::............:1tt11111111ttffttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttti...................,;;::::............,111111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttt:...................,::::::,:::,.......,1t1t11111tt111tttttfffLLLfttfffftffttf\nttttt1tttttttt111tttt1,....................,::::::;;;ii:......ittt11111ttt1ttff1tfffffLftttfftfffttt\nttttt1ttttt11t111tttti.....................,:::::,;;;ii;,.....itttt1111tt111tttttttttttttttttttffttt\nttttt1tttttttt11ttttt;........ .............:::::,;;;ii;,.....:1t1t1111111tttttttfttttttt1tttttffttt\n1tttt1tttttttt11ttttt:.... :i;:.............:::::..,;;i:.......it11111111ttff1111tfttttt11tttttffttt\n11tt11tttttt1111111t1,...,;iiii;, ..........::::,. .,:,......;111111111ttttt1111ttttttt111ttttttt1t\n11111111111111111111i..,.,;;;iii;...........:::::.......,....itt1111111111111111111111111111111tt111\n11t111111111111111111;....::;;ii;...........::::,..........,;111111111111111111111111111111111111111\n1111111111111111111111, ...,:;;;,............,,:,.....,,:;11tt11111111111111111111111111111111111111\n1111111111111111111111i:,....... ............,,:,.....:1tttttt11111111111111111111111111111111111111\n1111111111111111111111111;.,. ..............;;;:,,....,it11ttt11111111111t11111111111111111111111111\n111111111111111111111111i,..................;ii;:,.....,1t1ttttt1111111111t1111111111111111111111111\n111111111111111111111111:...................;ii;;:......;ttttttttttt11tttt1t111111tt11111111ttt11111\n111111111111111111111111:...................:i;:;;,.....:t1tttttttttttttttttttttt1tttttttttttttt1111\n","ttffftfffttttttttttttfffttftt111ttttt111tttt111111ttttttttt11tttt111111ttttttttttttttttttttt111111tt\nttfftttttttttttttttffLLftfffffffftttt111111111t11tffffffttttt11111111111111tttftttfttttttttt1111tttt\nttttttttttttttttffffLftttfffffffLLfft111ttttt111tfffffffftttttttt11111ttttfffffftfLLfttttttt111ttttt\nttttttttttttttttfffffttffffffLLLfffttt1ttttttt1tffffffffffttttttt1111ttffffffLffttffffffttt1111tttt1\nttttttttttttfffftttffttffffffffftttftt1t1iii11111tfffffftttttt11tt111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttffft11i:,,,::::;1tfffftttfffft11t111tt111ttfffLLfttfftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfft1;:,,,,,,,,,:tttttttffffffftt1111tftt111tttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffLfftt1::,,,,,:::::;itfttttffffffffftt111tft1ttfttttfLLfttttfffffftttttt\ntttttttfLLLLLLLLLLfttttffftffffttf1,,,,:;iii1111itftttfffffffffftt1111t11ttffttttttttttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttffffft:,,,:;iii111ii1tttttttffffffftt1111tft1ttt1tftttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLfffLft:,,:;;;;iiiiii1tffftt11tfffft111111ffftt1t1tttttttttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttfLLfffft;:::;;;iii;iii1tffffft11tttt11tt111fffttffft1ttfftttffLLLLLLLLffL\ntttfftttttfffftttttttttttttfLLLffffti;;;i;;iii;iitfffffffft1tttt1t1111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttfLftfft1i;;;;;iiiii11ffffftttt1tffft11111tfttffftttttttttttttfLLffffftt\nttffffffffftttfffffffftttfftttftttttt1;;;;;iiiii11ttffft11tttttfftt111tt1tffttffttfffffLLffffffLffLL\nttffffffffftttffffffffttttttttttfftt11i;;;;;;ii1111ttt111tfft1ttft11111tt1ttttfftttffffLLLfttffLLLLL\ntttffffffffttfffffffft11ttt1111ttff1;i;;;;;;;ii;iiii111ttfffft11t11111tfftttttttt1tffffLLLftttfLLLLf\nttttttttfffttffftt1tt1tttft1111tt1;,.:i;;;;;iii::;;,,:;i1tfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntfttttttttttttttttt11ttffft1tti;:,...,ii;;;;ii;::;;.....,:itftt1tt1111tttt1tt1tffftt1111tffftfLffftt\ntfttffffftt11ttftfft1tttft1i;:,.......:11iiii;;;:;:,,,,,,..;t111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffttttt11tti;:,..........,1tt1ii11i;;,,.,.,,,,,1111t11111tt111tft1tffffttfffftt11tffLLf\n1tttffffft11ttttttt1111;...............:11iiii;;1;.,.,,.,..,1t11111111111t11tf1tfffttfffffffttfLffLf\ntfttttftt11t11ttt111tt1,................,;;;ii;i1:.........,111t1111111111111t1tffttttffffftt1tfffLf\ntffttttttttftt11111ttt;..................:;;;;:;i:..........itttt11111111ttt111tttfLffttfft1tttttfft\ntttttttttttttt1111ttt1:..................,;;;;:::,..,.......;tttt1111111tttffttttffLLffttttffftttttf\ntfffttttftttttt11tttt;....................:;;::::,,.........:ttttt111111ttttfftttffffffftttttttffttf\ntffft1ttfftttt111tttt:....................,;:::,:;;;;:,.....:1ttt11111111ttffttttffLLfLfttfffffffttf\ntffft1ttfttttt111ttt1,.....................:::,,::;iii;,.....itt1111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttt;......................,::,,::;;;i;,.....:111111111tt111tttttfffLLLfttfffftffttf\nttttt11ttttttt111tt1:......................,:,..:,:;;i;.......:tttt1111ttt1ttffttffffffftttfftfffttt\nttttt1ttttt111111tt1:......................,:,..:. .:;:......,itttt1111tt111ttttttfttffft1tftttffttt\nttttt1tttttttt111tt1:........... .........,,,.,:...........,1tt11tt111111ttt1ttttffftttt1tftttffttt\nttttt1tttttttt11ttti,......... .,..........,,,.,:..........,it11111111111ttft1111ttttttt11tttttffttt\n11tt11ttttt111111tt:..........,::;,........,,,.,:......,:i11t11111111111ttttt1111ttttttt111ttttttt1t\n11111111111111111111:........:;;ii;.........,,.,,.....i1ttt11t11t111111111111111111111111111111tt111\n1111111111111111111ti........,:;;i;,...........,,.....;t11111111111111111111111111111111111111111111\n11111111111111111111ti;,......,:;;;. ......,:,.,:.....,1t1t11111111111111111111111111111111111111111\n11111111111111111111111;........,,,........:;::,,......;t1tttt11111111111111111111111111111111111111\n1111111111111111111111i......... ........:;;::,......,1ttttt11111111111t11111111111111111111111111\n1111111111111111111111:........ ...........:;;;::.......it1ttttt1111111111t1111111111111111111111111\n111111111111111111111i,........,......... ,ii;;::,......:ttttttttttt11ttt1tt11t111tt111111t1tttt1111\n11111111111111111111t;.........,..........:iiii;::,.....,1ttttttttttttttt1ttt1ttt1tttttttttttttt1111\n","ttttftfffttttttttttttfffttttt111ttttt111tttt111111ttttttttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLLftffftfffftttt111111111t11tffffffttttt11111111111111tttftttfttttttttt1111tttt\nttttttttttttttttfffffftttfffffffLLLft111tttttt11tfffffffftttttttt11111ttttfffffftfLLfttttttt111ttttt\nttttttttttttttttfffffttfffffffffffft11111;:::;;i1tffffffffttttttt1111ttffffffLffttffffffttt1111tttt1\nttttttttttttfffftttffttffffffffftttft1;::,,,,,,,,ifffffftttttt11tt111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttff1;:,,,,,,,,,,:itfffftttfffft11t111tt111ttfffLLfttfftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffttt1:,,,,:::;;i;;1tttftttffffffftt1111tftt111tttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffLfftt;,,,,,:;ii11t11tfttttffffffffftt111tft1ttfttttfLLfttttfffffftttttt\ntttttttfLLLLLLLLLLfttttffffffffttt;,,,,:;;;iii1111ttttfffffffffftt1111t11ttffttttttt1ttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttttfft:,,,,:;;;iiiiii1tttttttffffffftt1111tft1ttt1tftttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfffftttfLftfLfi;;;;;;;iii1iii1tffftt11tfffft111111ffftt1t1tttttttttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttfLLftfffi;;;i;;;;iiiii1fffffft11tttt11tt111fffttffft1ttfftttffLLLLLLLLffL\ntttfftttttffffttttttttttttttffftffft;;;;;;;;iiii1tttfffffft1tttt1t1111tfftfffftttttttttttfLLLLffffff\nttffffffffftttfffffffffttftttffftfft1;;;;;;;;iii1ttfffffttt1tffft11111tfttfLftttttttttttttfLLftffftt\nttffffffffftttfffffffftttfftttftttt1i;;;;;;;;ii111tffftt11tttttfftt111tt1tffttffttfffffLLffffffLffLL\nttffffffffttttfffffffft1tt1111ttt1::i;;;;;;;i1i;i111ttt11tfft1ttft11111tt1ttttfftttffffLLLfttffLLLLL\ntttffffffffttffffffftt111tt111i;:,..;i;;i;iii11;;;;,::;1tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\nttttttttfffttffttttt111ttt1;:,......,ii;;iii;11;:;;,...,:1fffft1111111ttftt1ttfft11ttffffffftfLLLLLf\ntftttttttttttt11tt111tt1;:,..........;11iii;1t1;:;;,,,,,.:tfttt1tt1111tttt1tt1tffftt1111ttfftfLffftt\ntfttffffftt11tttttt111:..............:1tt1ii11i::;:,,,,,,,if1111tt1111ttt11tf1tfffffttttttttttttffft\n111tfffffft1tfftttt11;................:ii;;i;:,,;;,.,,.,..it1111111111tt111tft1tffffttfffftt1ttffLLf\n1tttffffft111tttttt1i,............,....:;;;;;;:,1i,..,,,..;ttt11111111111t11tt1tfffttfffffffttfLfLLL\ntfttttftt1t111ttt111;..................,;;;;;:,:1i,.......it111t11t1111111111t1tffttttffffftt1tffLLf\ntffttttttttft1111111,...................:;;;::,,;;,.......it1tttt11111111ttt111tttfLffttfft1tttttfft\ntttttttttttttt1111t;....................,;;:::,.:,..,.....:tttttt1111111tttffttttffLLffttttffffttttf\ntfffttttfttttt111t1,.....................;;:::..:,........,1tttttt111111ttttfftttffffffftttttttffttf\ntffft1ttfftttt111ti......................::::,..:,.....,:::i1ttt111111111ttffttttffLLfLfttfffffffttf\nttfft1tttttttt111t:......................,:::,..:,....,:;iiiitt11111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt1111;.......................,:,...:,....:;;iiii1111111111tt111tftttfffLLLfttfffftffttf\nttttt11ttttttt111t;...................,,,,,,,...,......,;;ii1111ttt1111ttt1tfffttffffffftttfftfffttt\nttttt11tt11111111i,.................,::::::,....:........,,:i1111tt1111tt111ttttttfffffft1tftttffttt\nttttt11ttttttt11t;.................,:;;;;;;,....:.... .. .,1t11ttt1111111ttt1ttttffffttt1tftttffttt\nttttt11ttttttt1111:................,::::;i:.....:.,..,,,:;i11tttt111111111tft1111ttttttt11tttttffttt\n111tt11ttt1111111t1:. ............::::;:.....,:....it11111tt1tt1111111ttttt1111ttttttt111ttttttt1t\n11111111111111111111i:,..............,,,,......,:....:1tt111111t1111111111111111111111111111111tt111\n11111111111111111111t11:........,.... . ..,....:.....it1t111t11111111111111111111111111111111111111\n11111111111111111111111:,..................:....:.....:1ttt11t11t11111111111111111111111111111111111\n1111111111111111111111i,...................:....:......it1ttttt1tt11111111111t1111111111111111111111\n1111111111111111111111;....................,,..,:,.....:tttttttt111111111111111111111111111111111111\n1111111111111111111111:.................. .::..,:......,1t1ttttt11t1t11111t1111111111111111111111111\n11111111111111111111ti,.................. ,;::,,:.......itttttttttttt111t1tt11t111tt111tttt1tttt1111\n11111111111111111111t;....................,;;;:,:.......:tttttttttttttttt1ttt1ttt1tttttttttttttt1111\n","tttttttttttttttttttttffftttt1111111tt1111tt1111111ttttttttt11tttt1111111ttttttttttttttttttt1111111tt\nttfttttttttttttttttffLfttffttfffttttt1111111111111tffffftttt111111111111111tttffttftttttttt11111tttt\nttttttttttttttttffffLftttfffffffffftt11111iii1i11ffffffffttttttt111111tttttffffftfLLfttttttt111ttttt\nttttttttttttttttffffftttffffffffffttt11;::,,,,,:;1ffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffttttt1;:,,,,,,,,,,:tffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLfttttttft;,,,,,,,,:::,:itfffftttfffft11t111tt111ttfffLLfttfftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffttt;,,,,,,:;ii1111tttttttffffffftt1111tftt111tttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffffft1:,,,,,:;iii11111fttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLLLLLLLLLffttttffftfffftt1:,,,,,:;;;iiiii1ftttfffffffffftt1111t11ttffttttttt1ttffffffffffttt\ntttffttfLLLLLLLLLLfttfttffftttttft::;;::;;iiiiiii1ttttttttfffffftt1111tft1ttt1tffttt11tffffLLLLLfttt\nttffffffffLLLLLLffftfffttttffftfLfi:;i;;;;;iiiiii1tffftt11tfffft111111ffftt1tt1tt1tttttfffLLLLLLffff\ntffftfttttfLLLfftttttffffttfLLftfff;:;;;;;;;iiiii1tffffftt1tttt11tt111fffttffft1ttfftttffLLLLLLLLffL\ntttttttttttfffttttttttttttttffffffft;;;;;;;;iiii1ttffffffft1ttt1111111tfftfffftttttttttttfLLLLffffff\nttffffffffftttfffffffffttft1tfffttt1i;;;;;;;;iii1ttfffftttt1tffft11111tfttffftttttttttttttfLLfffffft\nttffffffffftttfffffffftttffttttti::i;;;i;;;;ii1111tttttt11tttttfftt111tt1tffttffttfffffLLffffffLLfLL\nttffffffffttttfffffffft1ttt11i;:,.,ii;;iiiii11:i1111tt111tfft1ttft11111tt1ttttffttttfffLLLfttfLLLLLL\ntttffffffffttffffffftt111i;:,......:11;;iiiii1::;;;::;i1ttffft11t11111tfftttttttt1ttffffLfftttLLLLLf\nttttttttfffttfttt1111ii;:,.........,it1iii;;1ti::;;,..,:1tfffft1111111ttttt11tfft11ttffffffftfLLLLLf\ntfttttttttt1tt111111;,..............;1111ii1ti:;:;;,,,,.:tffftt11t1111tttt1tt1tffftt1111ttfftfLffftt\ntfttfffftt1111ttttti,................:;;;i;;;,,:;;:,,,,,,itt1111tt1111ttt11tf1tffffftttttt1tttttffft\n111tfffffft1ttttttt:..........,,......:;;;;;;,.,i;,,,,,,.;t111111111111t111tft1tffffttfffftt1ttffLLf\n111ttfffft111ttttt1,............,.....,;;;;;:,.:1i,......;11t111111111111t11tt1tfffttfffffffttfLfLLL\ntttt1tftt11111tt11;....................:;;;;:,.:1i,......:tt11111111111111111t1tffttttffffftt1tffLLf\nttft11ttttttt1111i,....................,:;:;:.,,;:,......:111tttt11111111tttt11tttfLffttfft1tttttfft\ntttttt1ttttttt111;......................,;:;:..,:,.......:11tttttt111111tttffttttffLLffttttffffttttf\ntffft11ttttttt11i,.......................:::,..,:,.......,1tttttttt11111ttttfftttffffffftttftttffttf\ntffft11ttttttt11;........................,:::,..:,........;11tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt11;......................,:;;;;;;,:,........,111tt1111111111tttttttffLLfLfttfffffffttf\ntfttt11ttttttt11i.....................:::;;;;;:.:,....... ,1t11111111111t111tftttfffLLLfttfffftffttf\ntttt111ttttttt11:....................,:::;;;;;.,:,..........,:;iii11111ttt11tffttffffffftttfftfffttt\nttttt11tt1111111,....................,:::;;;;,.,:.......... .::;;;;ii11111ttftttftfffft1tftttffttt\nttttt11ttttttt11i................. ....,,,,.....:.... ........,:::;;;;ii111tt1tttfffffttt1tftttffttt\nttttt11ttttttt11ti,. .........,... .. ....,..:,.. ....,:::;;;iii1ttt1111ttttttt11tttttffttt\n11111111ttt111111t1ii;;;,.......................:..,.:1;:,,.. ..,;i1i1t1ttt1111ttttttt111ttttttt1t\n1111111111111111111ttttt:,......................:.. ,tttt111i;;;;i1tt1111111111111111111111111tt111\n111111111111111111111111:,..................,...:.....it1t1ttttttttt11111111111111111111111111111111\n111111111111111111111111;,..................,...:.... ;tttt11t11t11111111111111111111111111111111111\n111111111111111111111111:...................,..,:.....:ttttttttttt1111111111111111111111111111111111\n11111111111111111111111i,...................:,.,:.....,1ttttttttt11111111111111111111111111111111111\n11111111111111111111111;...................,::..:.....,1ttttttttt1t11t1111t1111111111111111111111111\n11111111111111111111111:.................. :;:,,:......itttttttttttttt111ttt11t1111t111t1ttttttt1111\n111111111111111111111t1:.................. :;;:::......;ttttttttttttttttt1ttt1ttt11ttttttttttttt1111\n","tttftttttttttttttttttffftttt1111111tt1111tt11111111tttt1ttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfftfftttffttttt111111111111ttffffftttt1111111111111111ttffttfttttttttt1111tttt\ntttttttttttttttttffffftttffffffffffft111tt111111ttffffffttttttttt11111tttttffffftfLLftttttt11111ttt1\nttttttttttttttttffffftttffffffLffftt111i;;:::::;1tffffffffttttttt11111tfffffffLfftfffffftttt111ttttt\nttttttttttttfffftttffttffffffffttttt1i;,,,,,,,,,,;fffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLftttttttti:,,,,,,,,,,,,;tfffftttfffft11t111tt111tttffLLfttfftt1tt111tttttt\nttttttttffLLLLLLLffttfLLffttfffttti,,,,,,:;;;ii;itttttttffffffftt1111tftt1tttttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffffft1:,,,,::;i111tt1tfttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLfLLLLLLLLfttttffftfffftti,,,,,,:;;iiii1i1ftttfffffffffft11111t11ttftttttttttttfffffLLfLfttt\ntttffttfLLLLLLLLLLfttfttffftttttf1,,::,:;iiiiiiii1ttttttttfffffftt1111tft1ttt1ttfttt11tffffLLLLLfttt\nttfffftfffLLLLLfffftfffttttffftfLf;:ii;;;;iii11ii1tfffft11tfffft111111ffft11t1ttt1tt1tffffLLLLLLLfff\ntffftfttttfLLLfttttttffffttfLLftff1:;ii;;;;iiiiii1ffffftt11tttt1ttt111fffttfffttttfft1tffLLLLLLLLffL\ntttttttttttfffttttttttttttttfffffff1;;;;;;;iiiii1tffffffftt1ttt1111111tfftfffftttttttttttfLLLLffffff\nttffffffffftttffffffffftttt1tffftft1i;;;;;;;iiii1ttfffffttt1tffft11111tfttfffttt1tttttttttfLLftfffft\nttffffffffttttfffffffft1tftt1tft1;ii;;;;;;;;ii1111ttftft11tttttfft1111tt1tffttffttfffffLLffffffLffLL\nttffffffffttttfffffffft1tttt1ii;,.:i;;;i;iii111t111ttt111tffttttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffftfttt111ii;:,....,i1;;iiiii1i:;;;i11111tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\ntttttttttffttfttt1111ii;:,.........;11iiii;;11;::;;,:;1tftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntft1ttttttt1t1111111:,.............:1tt1iii1t1;;:;:,,.,:1tffftt11t1111ttt11tt1tffftt1111ttfftfLLfftt\ntttttffttt1111ttttt;................:iiiiii11,:;:;:,,,,.:tttt111tt1111ttt11tf1tffffftttttt1ttttttfft\n1tttfffffft1tftttt1,.................,;;;;:;:.,:i:,,,,,,,it11111111111tt111tft1tffffttfffftt11tffLLf\n111ttfffft111ttttti...................:;;;;;:,,:1;.......;t1tt11111111111t11tf1tfffttfffffffttfLfLLf\ntttt1tftt11111ttt1:...................,;:;;;:..;1;.......:tt111t11t1111111111t1tffttttffffftt11ffLLf\nttft1111ttttt1111;.....................:;:;;,..,;:.......,111tttt11111111tttt11tttfLffttfft1tt1tffft\n1tttt11ttttttt111,.....................,::;;,..,:,.......,1ttttttt111111tttffttttffLLffttttffffttttf\ntfftt11ttttttt11;.......................:::;,..,:,........itttttttt1111tttttfftttffffffftttftttffttf\nttfft11ttttttt11,.......................,;;;;:,,:,........;11tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt1i,.....................,::;i;;;,,:.........:111tt1111111111tttttttffLLfLfttfffffffttf\nttttt11ttttttt1i.....................,:::;i;i:.,:,........,1t1111t111111t111ttfttffLLLLfttfffttffttf\ntttt111ttt11t11;.....................,:::;;;;,.,:..........1tt111tt11111ttt1tffttffffffftttffftffttt\nttttt11t1111111:......................:::::,...,:..........:i1tttt1tt111t1111tttttfttffft1tttttffttt\nttttt11tttt11t1i.......................... ....,,.......... .,,:i11iii11111tt1t1ttffffttt1ttttttfttt\nttttt11tttttt111;... ......................,:............ .,:::;iiii1111111tfttttt11ttttttfttt\n11111111t1111111t1i;;::::......................,:..,:.. .......,::;;;;;;iii11111tttttt111ttttttt1t\n11111111111111111ttttttt1,.....................,:......:,.. ..,:;;;:;;;iiii11111111111111111tt111\n111111111111111111111111i,.................,::..,.... ,tt1ii;,,.. ..,:i;;iii111111111111111111111111\n111111111111111111111111i,.................,;:,,,......1tttttt11i;;::itt11t1111111111111111111111111\n111111111111111111111111i,................ ,;:::,......it1t1tttttttttt11tt11t111111111111111111t1111\n111111111111111111111111;................. ,;;::,......it1tttttttt1111111t11111111111111111111111111\n111111111111111111111111:................. .;;:::......;t1ttttttt1ttttt111t1111111111111111111111111\n111111111111111111111111,...................;i;::,.....;tt1ttttttttttt11tttttttt111t111111tttttt1111\n111111111111111111111111:...................:i;:::.....ittttttttttttttttttttt1ttt111tttttttttttt1111\n","tttftttttttttttttttttffftttt1111111tt1111tt11111111tttt1ttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfftfftttffttttt111111111111ttffffftttt1111111111111111ttffttfttttttttt1111tttt\ntttttttttttttttttffffftttffffffffffft1111tttt111ttffffffttttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttffffftttffffffLffftt11111i;iiii1tfffffffffttttttt11111tfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffttttt11;::,,,,,,::1fffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLftttttttf1;:,,,,,,,,,,,itfffftttfffft11t111tt111tttffLLfttfftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLffttfffttt1,,,,,,,::::::itttftttffffffftt1111tftt11t11tfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffLfft1:,,,,,:;ii11111ffttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLfLLLLLLLLfttttffftfffftt1:,,,,:;;iii1111fftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfLLLLLLLLLLfttfttffftttttf1,,,,,:;iiii;iii1ttttttttfffffftt1111ttt1ttt1ttfttt11tfffffLLLLfttt\nttfffftfffLLLLLfffftfffttttffftfLt:;;;:;;iiiiiii11tfffft11tfffft111111ffft1tt1ttt1tt1tfffLLLLLLLffff\ntffftfttttfLLLfttttttffftttfLLftff1;;;i;;;iii1iiitfffffft11tttt1ttt111fffttfffttttfftttffLLLLLLLLffL\ntttttttttttfffttttttttttttttffftfffi;;;;;;iiiiii1tffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttffffffffftttt1tffftffti;;;;;;iiiii1tttffffttt1tffft11111tfttfffttt1tttttttttfLLftfffft\nttffffffffftttfffffffftttftt1tftt111i;;;;;;;;ii111tfftft11tttttfft1111tt1tffttffttfffffLLffffffLffLL\ntttfffffffttttfffffffft1tt111111i::i;;;i;;;;i11t111ttt111tffttttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffftfftt111111i;:,..,ii;;iiiii11:;;;111111tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\ntttttttttffttfttt1111111i;:,.......:11;iiii;11;::;;,:i1tftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntfttttttttt1t1111111i;:,...........:1t1iii;itt;;;;:.,,,:itffftt11t1111ttt11tt1tffftt1111ttfftfLffftt\ntttttffftt1111ttttt1:..............,i111ii1tti:;;;:,,,,.,1tft111tt1111ttt11tf1tffffftttttt1ttttttftt\n111tfffffft1tfttttt;.................:;;;;;;;,.:i:.,,,,,.;t11111111111tt111tft1tffffttfffftt11tfffLf\n111ttfffft111ttttt1,..................:;;;;;:,.:1;.....,.:11tt11111111111t11tf1tfffttfffffffttfLfLLf\ntttt1tftt111111tt11,..................,;;;;;:,.;1;.......,1t111t11t1111111111tttffttttffffftt11fffLf\ntttt111tttttt11111;....................::;;;,..,;:.......,i11tttt11111111tttt11tttfLffttfft1tt1tffft\n1tttt11ttttttt111i.....................,::;;,..,:.........ittttttt111111tttffttttffLLffttttffffttttf\ntfftt11ttttttt111,......................::::,..,:,........itttttttt11111ttttfftttffffffftttttttffttf\nttfft11ttttttt11;.......................,:::,..,:,........;11tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt11:........................,:,,..,:,........,111tt1111111111tftttttffLLfLfttfffffffttf\nttttt11ttttttt11,.......................,,::,..,:..........it11111t11111t111tttttffLLLLfttffftfffttf\ntttt111tttt1t11i......................::;;;;;:.,:..........;t11tttt11111tt11tffttffffffftttffftffttt\nttttt11tt111111:....................,:::;i;;i,.,:..........;ttttttt1111111111tttttfttffft1tttttffttt\nttttt11ttttttt1;....................,:::;i;;:..,,...........:;iii1111111111tt1t1ttfffttt11ttttttfttt\nttttt11tttttt111:...................,:::;;;;...,,........... .,:;;;:;i1111ttt1111ttttttt11ttttttfttt\n11111111t11t11111;,.. ...............,,,....,:.... .......,:::::;;11tt11111111tt1tt1111ttttttt1t\n11111111111111111t11i;;;:.......,..... ......,,....,,. ...,::;::;i1111111111111111111111111tt111\n11111111111111111111tttti,...................,.,,... :1i:,. .,,;;i1111111111111111111111111111111\n111111111111111111111111i,...................:,,,.....ittt1i:,.. ,1tttt111111111111111111111111t1111\n111111111111111111111111;,...................,,::.... .111tttt1ii1ttt11111111t11111111111111111t1111\n111111111111111111111111;....................,:::......it1t11ttttt1111111111111111111111111111111111\n111111111111111111111111;....................,::,......;t1tttttt11tt1tt111t1111111111111111111111111\n11111111111111111111111t:....................::::......:1111ttttttttttt1tt11ttt11111111111tttttt1111\n11111111111111111111111t:....................:;::,.....,1tttttttttttttttttttttttt111tttttttttttt1111\n","tttftttttttttttttttttffftttttt11ttttt1111tt11111111tttt1ttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfftfffttffttttt111111111t11ttffffftttt1111111111111111ttffttfttttttttt1111tttt\ntttttttttttttttttffffftttffffffffffft1111tttt111tfffffffttttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttffffftttffffffLfffttt1111ttttt1tffffffffffttttttt11111tfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttftttffffffffttttft1i;:;;;;;i11tfffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLfttttttfft1;:,,,,,,,,:1ttfffftttfffft11t111tt111tttffLLfttffft1ttt11tttttt\nttttttttfffLLLLLLffttfLLffttfffttti::,,,,,,,,,,;ttttftttffffffftt1111tftt11t11tfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfffffti,,,,::;;;iiiii1ffttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLLLLLLLLLLftttttfftfffftt1:,,,;iii1111111fftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfttffftttttff:,,:;;;iiii1ii1tttttttttfffffftt1111ttt1ttt1ttfttt11tfffffLLLLfttt\nttfffftfffLLLLLfffttfffttttffftfLt;:,:;;;;iiiiii11tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffftfttttfLLffttttttffftttfLLftff1;;;;;iiiii;i11ttfffftt11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttfffLtfffii;;;;;ii;;iittffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttft1tffftffti;;;;;iiiii1ttttffffttt1tffft11111tfttfffttt1tttttttttfLLfffffft\nttffffffffftttfffffffftttfttttfttttti;;;;;iiii1111tfftft11ttttffff1111tt1tffttffttfffffLLffffffLffLL\nttffffffffttttfffffffft1tt11111tft11i;;;;;;;iit11111tt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffftttfffftfftt1111111111i:,;i;;;;;;ii1i;;;111111tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\nttttt1tttffttfttt11t111tttt1i;:,...:1i;ii;ii;1i:;;i;;i1tftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntfttttttttt1tt1111111ttt1;:,,.......;ti;iii;it1;;;;,..,:i1fffft11t1111ttt11tt1tffftt1111ttfftfLffftt\nttttfffftt1111ttttt111;:,...........;tt11iii1t1::;;,,,,,.,1ft111tt1111ttt11tf1tffffftttttt1ttttttftt\n111tfffffft1ttttttt11,..............:i11iii111:,;;,,,,,,,.;t1111t11111tt111tft1tffffttfffftt11tfffLf\n111ttfffft111ttttttt;.................:;;;;;;:.,ii,....,,.:1tt11111111111t11tf1tfffttfffffffttfLfLLf\ntttt1tftt11111ttt111:.................,;;i;;;,.,1i,.......:t111111t1111111111tttffttttffffftt11fffLf\ntttt11ttttttt1111111,..................:;;;;;,,,;;,.......:11tttt11111111tttt11tttfLffttfft1tt1tffft\n1tttt11ttttttt11111i...................,;;;;:,..:,........:1tttttt111111tttffttttfLLLLfttttffffttttf\ntfftt11ttttttt11111:....................:i;;:,.,:,........,1ttttttt1111ttttffftttffffffftttttttffttf\nttfft11ttftttt111ti,.....................;;::,..:,........,i1tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt111t;......................,::,...:,.........;11t11111111111ttt1tttffLLLLfttfffffffttf\nttttt11ttttttt111t:......................,::,...:,...,,....it11111111111t111tttttfffLLLfttfffftffttf\ntttt11tttt11tt1111,.......................,,,...:,...,:;;;;itt11ttt1111ttt1ttftttffffffftttffftffttt\nttttt11t111111111i.........................,,...:,...,:;iiii11111t111111t111tttttttttffft1tftttffttt\nttttt11ttttttt111,.........................,,...:....,:;;iii11111111111111ttttt1ttfffttt11ttttttfttt\nttttt11ttttttt111;...................,,,,..,....,......,:;ii1ttt1111111111ttt1111tfttttt11ttttttfttt\n11111111t11t11111t;...............,:::::::..,...:.........,,it11tt1111111tttt1111ttt1tt1111ttttttt1t\n1111111111111111111,.............:::::;;i:......:..... :1ttttt111111111111111111111111111111t111\n11111111111111111111;,.. ........,::::;;:.......,... ,i;;;i1tttt111111111111111111111111111111111111\n11111111111111111111t11i,.........,:::;;. ..,:,.:.....itttttttt1111111t111111111111111111111111t1111\n11111111111111111111111t;...........,,,.... ,:,,:......it1111ttt1111111111111111111111111111111t1111\n111111111111111111111111;.......... .... .:,,:,. ...:tttt11tt111111111111111111111111111111111111\n111111111111111111111111;....................::::..,,..,1tttttttt1tttt1111t1111111111111111111111111\n11111111111111111111111t;....................::::..,,...;t1tttttttttttt1t11ttttt111t111111tttttt1111\n11111111111111111111111ti....................:;::,......:11tttttttttttttttttttttt11t11t1111ttttt1111\n","tttftftttttttttttttttfffttttt1111tttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfttfffttffttttt111111111t11tfffffftttt1111111111111111ttffttfttttttttt1111tttt\nttttttttttttttttfffffftttffffffffffftt11ttttt111tffffffftttttttt11111ttttttffffftfLLfttttttt1111ttt1\nttttttttttttttttffffftttffffffLfffttttt11tttt11tffffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffftttft1tttt11ttt1ttfffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLftttttttfft11iiiiiittt1ttfffffttfffft11t111tt111tttffLLfttffft1ttt11tttttt\nttttttttfffLLLLLLffttfLLffttfffttfft;::,,,,,,:itttttffttffffffftt1111tftt11t11tfLLftttt1tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffffft11i:,,,,,,,,:,;fffttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttfffttffftt1;:::::;;;iii;:tfftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfttfLfttttfft;:;iii111111i;1ttttttttffffffftt1111ttt1ttt1ttftt11ttfffffLLLLfttt\nttfffftfffLLLLLLffftfffttttfffffLf;:;;;;ii1iiiii11tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffffftttffLLffftttttffffttfLLffffi:i;;;;;ii;ii11ttffffft11tttt1ttt11tfffttffft1ttfftttffLLLLLLLLffL\ntttttttttttffftttttttttttttfLfftffi;ii;ii;i11111tfffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttftttfLftf1;;;;;;;;i1111tttffffftttttffft11111tfttfffttt1tttttttttfLLfffffft\nttffffffffftttfffffffftttfftttftttt1i;;;;;iiii1111ttftft11ttttffff1111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffft1ttt1111tfftt1i;;;;iii1tt111ttt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttffffttftt111t11111ttfft1;;;;;;ii1ti;;i11111ttffft11t11111tfft1tttttt1tfffffLfftttfLLLLL\nttttt1tttffttfttt111111tttt11111tti:i;;;;;;iii1;:;i1i1ttftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntfttttttttt1tt11t1111ttfftt1tt1i;:..;i;;;;;iii1i:;;:,,:;i1ffftt11t1111ttt11tt1tffftt1111ttfftfLffftt\ntfttfffftt1111tttttt1tttttt1i;,.....:11;ii;;;iti:;;,,,...,:1t111tt1111ttt11tf1tffffftttttt1tttttfftt\n1t1tfffffft1tttttttt111tti:,....,...,i11iii;i1ti;i,,,,,,,,.,i111t11111tt111tft1tffffttfffftt11tffLLf\n1t1ttfffft111tttttt1111:,...........,i1t1iii11i,;1,....,,...;t11111111111t11tf1tfffttfffffffttfLLLLf\ntftt1tftt1tt11ttt111tt;..............,:;i;;;;;,.i1,.........:11111t1111111111tttffttttffffftt1tffLLf\ntfftttttttttt111111ttt:................,;;i;;:,,:;,.........:tttt11111111tttt11tttfLffttfft1tt1tffft\ntttttt1ttttttt1111ttti,................,:;;;;:,.,:..........,ttttt111111tttffttttfLLLLfttttffffttttf\ntffft11ttttttt1111ttt;..................,;;;::,.,,..........,1tttt111111tttffftttffffffftttttttffttf\ntffft11ttftttt111tttt:...................:;;::..::,,.........ittt11111111ttffttttffLLfLfttfffffffttf\ntffft11ttttttt111ttt1:...................,;::,,::;;;i;,......;t11111111111ttt1tttffLLLLfttfffffffttf\ntttft11ttttttt111ttt1,....................,::,,::;;iii;. ...,it11tt11111t111tttttfffLLLfttfffftffttf\nttttt1tttttttt111t1ti.....................,:,,,,::;iii;.....,it11tt1111ttt1ttftttffffffftttffftffttt\nttttt11tt11111111t1ti......................,:,. ,,,:;i:.......;11tt11111t111tttttttttffft1tttttffttt\nttttt11tttt11t11tttt;......................,,,..,, .,,.......,;11111111111ttttt1ttfffttt11ttttttfttt\nttttt1tttttttt111ttt:.......................,,..,,.....,....:1ttt111111111ttt1111tfttttt11ttttttfttt\n1111111ttt1t11111tt1,.......................,,..:,.........:1t11111111111tttt1111ttt1ttt111ttttttt1t\n11111111111111111111;....... ............,,..:,.....,;ii1t1t111111111111111111111111111111111t111\n111111111111111111111,.... .,::,................:....,11ttt11tt11t1111111111111111111111111111111111\n111111111111111111111;.....;i;;;,...............:,....it1111ttt1tt1111t111111111111111111111111t1111\n1111111111111111111111i:.,iii;;i:.......... ,::,:......itttttttt1111111111111111111111111111111t1111\n111111111111111111111111i,:;;;ii;,......... ,;;::,.....:1ttttttt11111111111t111111111111111111111111\n111111111111111111111111i,.,::;;:.......... ,;;;::......itttttttt1tttt11t1tt111111111111111111111111\n111111111111111111111111i..,.................;;;::,.,,..:1tt1tttttttttttt11ttttt11111111tttttttt1111\n111111111111111111111111i..... .............;i;:::,.....itttttttttttttt1tttttttt11t11t1111ttttt1111\n","tttfttfttttttttttttttfffttttt1111tttt111tttt111111ttttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLfftfftttffftttt111111111111tfffffftttt111111111111111tttffttfttttttttt11111ttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tffffffffttttttt111111ttttffffLfffLLfttttttt1111t1t1\nttttttttttttttttffffftttffffffLffffttttttttttt1tffffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffftttftttttt11ttt1ttfffffftttttt111t111111ttffffLLffttfLLfft111111tttt\nttttttttttffLLLLftttttfLLLftttttttfftttttttfffft1tffffftttfffft11t111tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftffft11i;ii1ttffttttffttffffffftt1111tftt11t11tfLLfftt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffLfLftti;:;:,,,:;;itffftttfffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffffftt1;,,,,,,,,::,:tfftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfftfLftttffff1;::::;;iii;,:1ttttttttffffffftt1111ttt1ttt1ttfttt1ttfffffLLLLfttt\nttfffftfffLLLLLfffftfffftttfLfffLfi;iiii11111i;:i1tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffffftttffLLfffttttfffffttfLLffLf;;;;iiiiiiii;:1tfffffft11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttffLLffLt;;:;;ii;;iii;ttffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttftttfLftf11i;;;i1ii11ii1tfffffftttttffft11111tfttfffttt1tttttttttfLLfffffft\nttffffffffftttfffffffftttfftttfttt11i;;;;i1111i111ttffft11ttttffft1111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffftttttt111tfft11;;;;iiiii1t1111tt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffffffft111tt1111ttfft1i;;;iiiii1;;;111111ttffft11t11111tfft1tttttt1tfffffLfftttfLLLLL\nttttt1tttffttfftttttt11ttttt111tttft1i;;;;iiiii;;;1t11ttftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tffftt1tt11tff1ii;;;;;iiii:;;i;;i1tttffftt11t1111ttt11tt1tffftt1111ttfftfLffftt\nttttffffttt11tttttft1tttttt1ttt11i;,:i;;;;;iii;;;;:...,,,:;i1111tt1111ttt11tt1tffffftttttt1ttttttftt\n111tfffffft1ttfftttt11tttt1tfti;,...,i1i;;ii;;i1i;,.........,i11111111tt111tft1tffffttfffftt11tffLLf\n1t1ttfffft111tftttt1111ttt11;:,......;11iii;;1t11;......,.,,.,i1111111111t11tt1tfffttfffffffttfLLLLf\ntftt1tftt1tt11ttt11ttt11i;:,.........:1tt1i;i1111;............;t11t1111111111tttffttttffffftt1tffLLf\ntfftttttttttt111111tttt1,.............:;;;;;;;;:;:............:tt11111111tttt11tttffftttfft1tt1tffft\n1ttttt1ttttttt1111tt11ti................:;;;;;:,:,............,1tt111111tttffttttfLLLLfttttffffttttf\ntffftttttttttt111tttt1ti................,;;;;::,:,.............ittt11111tttffftttffffffftttttttffttf\ntfffttttfftttt111tttttt;.................:;;:::,:,.............:tt1111111ttffttttffLLfLfttfffffffttf\ntffftttttttttt111tttttt;.................,:;:::,:.,:,,.........,it11111111ttt1tttffLLLLfttfffffffttf\ntttft11ttttttt111tttttt:..................,::::,:,,;;;;;:,......itt11111t111tttttffLLLLfttfffftffttf\nttttt1tttttttt1111t1ttt;...................,::,,:,:;;;iii;.....,1tt1111ttt11tftttffffffftttffftffttt\nttttt11tt1111t111tt1ttt:...................,::,,:::;;iiii;,.....:i1t1111t111tttttttttffft1tftttffttt\nttttt11ttttttt11ttttttt:....................::,,:..,,:;ii:...... .1t111111ttttt1ttffffft11ttttttfttt\nttttt1tttttttt111tttttt:....................,::,:. ..::,......,1t1111111ttt1111tfttttt11ttttttfttt\n1111111tttttt1111ttt1tt:.... ...............,:,,:..............,1t1111111tttt1111ttt1ttt111ttttttt1t\n11111111111111111111111;;;;:,...............,:,,:....... ...,,:1ttt11111111111111111111111111111t111\n11111111111111111111111iiiiii:...............,,,:........,:i11tt1tt111111111111111111111111111111111\n11111111111111111111111iiiiiii...............,,,:.......,1tttt11tt1111t111111111111111111111111t1111\n1111111111111111111111i;iiiiii,..............,.,:........ittt11t111111111111111111111111111111111111\n111111111111111111111111iiii;,...............::::,,......:1ttttt11t111111111111111111111111111111111\n1111111111111111111111111i:,. ...............:i;:::,......itttttt1ttt111t1tt111111111111111111111111\n11111111111111111111111111:................. :i;;;::,.....;ttttttttttttttt1ttttt111111111ttttttt1111\n11111111111111111111111111:................. :i;;;;::,....:tttttttttttttttttttttt11t11t1111ttttt1111\n","tttftttttttttttttttttfffttttt1t1ttttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLLftffftfffftttt111111111t11tfffffftttt1111111111111111ttffttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tfffffffftttttttt11111tttttfffffffLLfttttttt111tttt1\nttttttttttttttttfffffttfffffffLffffttttttttttt1tffffffffffttttttt1111ttffffffLLfttffffffttt1111tttt1\nttttttttttttfffftttftttffffffffftttfttttt111ttt1ttfffffftttttt111tt11111ttffffLLffttfLLff111111ttttt\nttttttttttffLLLLftttttfLLLftttttttffttttttttffft1tffffftttfffft11tt11tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLffttfffftfffttttttfffffftfttffttffffffftt1111tftt11t11tfLLfftt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffffffttft111i;ii1ttfffftttffffffffffft111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftft1i:::,,,,::;;1fftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfftfLffftfffLf1;,,,,,,,::,,:1tttttttffffffftt1111ttt1ttt1ttfttt1ttfffffLLLLfttt\nttfLfftfffLLLLLfffftfLfftttfffffLLf1;;;;;iiiii:,:1tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffffftttffLLfffttttfffffttfLLLffLfiiiii111111i::1tffffft11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttftttttttffftttttttttttttfffLffLfii;;;iiiiiii;:1ftffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttfttffLfffLti;:;;ii;ii1;;ttffffftttttffft11111tfttffftttttttttttttfLLfffftft\nttffffffffftttfffffffftttfftttftttt1i;;;ii11111ii1ttffft11ttttffft1111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffftttttt111tfff1ii;;;iiiiiii1111tt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\n1tfffffffffttfffffffftt1ttt1111tffft1i;;;iiiiii;;i111111tfffft11t11111tfft1tttttt1tfffffLfftttfLLLLL\ntttttttttffttfftttttt1ttfft1111tttftt1;;;iiiiii;:;tt11ttftfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tfffft1tt11ttft11;;;;;iiii;;;1t11ttttffftt11t1111tftt1tt1tffftt1111ttfftfLffftt\nttttffffttt11tttttft1ttfffttfft11tftiii;;;;iiii;;;;:;ii1tttft111tt1111ttt11tt1tffffftttttttttttttftt\n111tfffffft1ttfttttt11tfftttfttt11i:,ii;;;;;iii;i:.....,,::;i111t11111tt111tft1fffffttfffftt11tffLLf\n1t1ttfffft111tffttt1111tft1ft1i;:,...;1i;;;;;;i11:...........,;1111111111t11tt1tfffttfffffffttfLLLLf\ntftt1tftt1tt11tft11ttt111111;:,......,111ii;;i1t1:........,,...;11t1111111111tttffttttffffftt1tffLLf\ntffttttttttttt1111ttttt11;:,.........,i111i;i1t1;,.............,1t1111111tttt11t1tfLftttfft1tt1tffft\n1ttttttttttttt1111ttt11ti,............,::::;;;i;:,..............it111111tttffttttfLLLffttttffffttttf\ntfffttttffttttt11ttttttti...............,;;;;;;;:...............:t111111tttffftttffffffftttttttffttf\ntfffttttfffttft11ttttttt;...............,:;;;;:::...............,1t111111ttffttttffLLfLfttfffffffttf\ntffft1ttttttttt11ttttttt:................,;;;;:::................it1111111ttt1tttffLLLLfttfffffffttf\ntffft1tttttttt111ttttttt:................,:;;::::................:t1111tt111tttttffLLLLfttfffftffttf\nttttt1tttttttt111111tt1t;.................,::::::................,1t111ttt11tftttfffffffttfffftffttt\nttttt1tttt11tt111ttttttt:.,:;:............,::::::................,itt111t111ttt1tttttfft11tftttffttt\nttttt1tttttttt11tttttttt;:;iii:............,:::::...........,:,....:1t11111tttt11tfffttt11ttttttfttt\nttttt1tttttttt111ttttttt;;iiiii:. ..........:::::...........,;;;;:..it1111tft1111ttttttt11ttttttfttt\n1111111tttttt1111ttttttt:;iiiii;............,::::,........,::;;iii;it111ttttt11111tt1ttt111ttttttt1t\n111111111111111111111111:;;iiii;,...........,:,::,.........,;;iiii;it111111111111111111111111111tt11\n111111111111111111111111;:;:;;;,............,::::,...........:;;ii;it1111111111111111111111111111111\n111111111111111111111111;::.... .............,:::,,......... .,,:i1t1111111111111111111111111111111\n111111111111111111111111i;,..................,,,:,,....... .;,..,;11111111111111111111111111111t1111\n1111111111111111111111111i;:;i;,..............,,:,,,........1tii11t111111111111111111111111111111111\n111111111111111111111111111111:..............,:::;;:,.......;ttttttttt11t1tt111111111111111111111111\n11111111111111111111111111111;,..............:i;;ii;;:,.....,1ttt1tttttttt1ttttt1111111111tttttt1111\n1111111111111111111111111111i,...............,i;;iiii;:......ittttttttttttttttttt11t11t1111ttttt1111\n","tttftttttttttttttttttfffttttt1t1ttttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLLftffftfffftttt111111111t11ttffffftttt1111111111111111ttftttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt111tttt1\nttttttttttttttttfffffttfffffffLfffftttttttttt11tffffffffffttttttt1111ttfffffffLftttfffffttt1111tttt1\nttttttttttttfffftttftttffffffffftttfttttt111ttt1ttfffffftttttt111tt11111ttffffLLffttfLLff111111ttttt\nttttttttttffLLLLftttttfLLLftttttttffttttttttffft1ttfffffttfffft11tt11tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftffftttttfffffffffttffttffffffftt1111tftt11t11tfLLfftt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffLffftfftttttfftffffffftttffffffffffft111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftfftt11iii;:;;i1tfftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfLLLLLLLLLLfttfftfLffttfffLLft1;:::,,,,::;;1ttttttffffffftt1111ttt1ttt1ttfttt1ttffffLLLLLfttt\nttfLLftfffLLLLLLLfftfLfftttfLfffLLLfti;,,,,:::::,,;fffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntfffffttttfLLfffttttfffffttLLLLffLLf1ii;;iiii11i:,;tfffft11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttfffLffLLf1iiiiiii1111;:;tffffftt1ttt111111tffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttfttffLfffLf111;;;ii;;i1i:itfffftttttffft11111tfttffftttttttttttttfLLfffftft\nttffffffffftttffffffffttffftttftttttt1i;;;iii;iii;ifftft11tttttffft111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffftttttt111tffft11i;;;ii11111111tt111tffftttft11111tt1ttttfft1tffffLLLfttfLLLLLL\n1tfffffffffttfffffffftt1ttt1111fffft111i;;;iiiiiii11111ttfffft11111111tfft1tttttt1tfffffLfftttfLLLLL\ntttttttttffttfftttttt1ttftt1111ttffttt1i;;;iiii;;;1t11ttttfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt1ttfffftttt11ttft1t1i;;iiiii;:;1t111tttffftt11t1111tftt1tt1tffftt1111ttfftfLffftt\nttttfffftttt1ttttfft1tffffttfft11tft111i;;;;;ii;:;i11111ttttt1111t1111ttt11tt1tfffffttttttttttttffft\n111tfffffftttffftttt11tfftttfttt1ttt1i1i;;;;iiiiii::;i111tt11111t11111tt111tft1fffffttfffftt1ttfLLLf\n1t1ttfffft111tffttt1111tfttft11tti;::,i1;;;;;iii11:...,,::;i1tt1111111111t11tt1tfffttfffffffttfLLLLf\ntttt1tftt1tt11ttt11ttt1111tt11i;,,....;1i;;;;;;i11:.,.......,,:i11t1111111111tttffttttffffftt1tffLLf\ntffttttttttttt1111ttttt111i;:,........;1t1ii;;i1ii,.............;t1111111tttt11t1tfLftttfft1tt1tffft\n1ttttttttttttt1111tttttt11:...........:iiiiii1tti,..............,1t11111tttttttttfLLLffttttffffttttf\ntfffttttffttttt11ttttttt1i,.............,:::;;ii;,...............;t11111ttttfftttffffffftttttttffttf\ntfffttttfffffft11ttttttt1;..............,:;;;;;;:,...............,1111111ttffttttffLLfLfttfffffffttf\ntffftttttttttt111ttttttt1:.......... ....:;;;;;;:,................it111111tttttttffLLLLfttfffffffttf\ntffft1tttttttt111ttttttt1,........,,:;:,.,;;;;;:;,................;t1111t111tttttffffLLfttfffffffttf\nttttt1tttttttt1111t1tttt1,.......;;;;;:,..:;;::::,................,1t11ttt11tftttfffffffttfffftffttt\nttttt1tttt11tt111ttttttt1:......;;;;;;;:,.:;;::::,................,it111t1111tt11ttttfft11tftttffttt\nttttt1tttttttt11tttttttti,......:;:;;;:...,:;::::,.................:1t11111tt1t11tfffttt11ttttttfttt\nttttt1tttttttt11tttttttti,......:;:;;:.....,:::::,..................:11111ttt1111ttttttt11ttttttfttt\n1t1t111tttttt111111ttttt;...,,,.,:::. ......:::::,...................,111tttt11111ttttt1111ttttttt1t\n111111111111111111111111,,,,,,,.............,:::::,..................,1t111111111111111111111111tt11\n11111111111111111111111i,,..:,..............,,::::,,.................,11tt11111111111111111111111111\n111111111111111111111111;...................,:,,::,,.................,;ii11t111111111111111111111111\n111111111111111111111111i,..................,:::::,,................:::;;;i111t111111111111111111111\n1111111111111111111111111i;;;;i1:............::,:,,,,........... ..::;;;;i1111111111111111111111111\n111111111111111111111111111111t1,............,.,:,,,:,,........:,,..,:;;;i11t11111111111111111111111\n1111111111111111111111111111111i.............,,::;;;i;:,...... :111i;::;;;1ttttt11t1111111tttttt1111\n111111111111111111111111111111ti.............:1;;1iiii;:,.......i1tttt11111tt1tt111111t1111ttttt1111\n","tttttttttttttttttttttfffttttt1111tttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLLftffftfffftttt111111111t11ttffffftttt1111111111111111ttftttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttfffffttfffffffLfffftttttttttt11tffffffffffttttttt11111tffffffffftttfffffttt11111ttt1\nttttttttttttfffftttffttffffffffftttfttttt111ttt1ttfffffftttttt11tt111111ttffffLLffttfLLff111111ttttt\nttttttttttffLLLLftttttfLLLfttttttffffttttttfffft1tffffffttfffft11t111tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftfffttttttfffffftfttfftffffffffttt111tftt11t11tfLLLftt11tffft1tttttt\ntttttttfLfLLLLLLLLffttfttttffLLfftffttttffffffffffftttfffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLLftffttttttt11i;ii1tftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfLLLLLLLLLLfttfftfffffffffLLfttt1i;::,,,,:;;1tttttffffffftt1111ttt1ttt1ttfttt1ttfffffLLLLfttt\nttfLLftfffLLLLLLLfftfLfftttfLfffLLLLttt1;,,,,,,,::,:iftt11tfffft11111tffft1tt11tt1ttttfffLLLLLLLLfff\ntfffffttttfLLfffttttfffffttLLLLfLLLftt1i;;;;;;iiii:,;fftt11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttffLLffLLftt1;iiiii11111i::tfffft1ttt111111tffftfffftttttttt1ttfLLLLffffff\nttfLffffffftttfffffffffttfttffLfffLftt1;i;;;iiiiiii;;tfftttttffft11111tfttffftttttttttttttfLLftfffft\nttffffffffftttffffffffftffftttfttftttttii;;;;ii;;ii;iftt11tttttfft1111tt1tffttffttfffffLLfffffffffLL\nttffffffffttttfffffffftttttt11ttfffttt11ii;;ii1111ii11111tffftttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\n1ttffffffffttfffffffftt1ttt111tffffttt1i1i;;;iiiiii1111ttfffft11t11111tfft1tttttt1ttffffLfftttfLLLLf\ntttttttttffttfftttttt1ttfff1111ttffttttt1i;;;;i;:;it11ttftfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tfffftttt11tfftt11tt1;;;ii;;;1t111tttffftt11t1111tttt1tt1tffftt1111ttfftfLffftt\ntfttfffftttt1ttttfft1tffffttfftt1tft1111t1;;;;i;:;i11111tttft111tt1111ttt11tt1tfffffttttttttttttffft\n1tttfffffftttffftfft11tfffttfttttttt11111i;;:;iiii1i;i1t1tt11111t11111tt111tft1fffffttfffftt1ttffLLf\n1t1tffffft111tffttt1111tfttft11tt1t1i;;;1i;;;;ii1ii1,.,:;ii1tt11111111111t11tt1tfffttfffffffttfLfLLf\ntfttttftt1tt11ttt11ttt11t1t11tt11i:,...,11;;;;;it111,,.....,:;i11tt1111111111tttffttttffffftt1tffLLf\ntffttttttttttt1111ttftt111111i;:,......:1t1i;;;;i1t1,..........,:i1111111tttt11t1tfLftttfft1tt1tffft\n1ttttttttttttt1111ttttt111tt;..........:1111iii1;11:.............,it1111tttttt1ttfLLLffttttffffttttf\ntfffttttffttttt11ttttttt11t1,...........,,:::;;i;;:...............:t1111ttttfft1tffffffftttttttffttf\ntfffttttfffffft11ttttttt111i..............:;:::;;::...............,1t1111ttffttttffLLfLfttfffffffttf\ntfffttttttttttt11ttttttt111:..............,;;;;;;:,................;t11111ttt1t1tffLLLLfttfffffffttf\ntffft1tttttttt111ttttttt11i,..........,::::;;;;;;:,................,1t11t111tttttffffLLfttfffffffttf\nttttt1tttttttt111tt1tttt11i.........:;;;;:,;;::::::.................;t1ttt11tftttffffffftttffftffttt\nttttt1tttt11tt111ttttttt111,.......;;;;;;:,:;::::::,................:tttt1111tt11ttfttft11tftttffttt\nttttt1tttttttt11tttttttt11;,......,;;;;;;:::;::::::,................,itt111t11t11ttftttt11ttttttfttt\nttttt1tttttttt11tttttttt11;,......:;;;;i;...,:::::,,.................:tt1tttt1111ttttttt11ttttttfttt\n1t1t111tttttt111tttttttt1;,.,.....,:;:......,:::::,,..................it1tttt11111tttt11111ttttttt1t\n1111111111111111111111111:,,,......,,. .....,,::::,,..................,1t11111111111111111111111tt11\n1111111111111111111111111,,....,,...........,,,:::::,..................itt11111111111111111111111111\n1111111111111111111111111;,.................,:::::::,,................:1tt11111111111111111111111111\n11111111111111111111111111:.... ............,:::,:,,.................,1tt11111111111111111111111111\n11111111111111111111111111ii;;;;;i, .........,,::,,,,,................,:;;1tt11111111111111111111111\n11111111111111111111111111111111t1,..........,,,:,,:,:,,. ...........,:::;;i11tt11111111111111111111\n11111111111111111111111111111111t;.............,:::;;;;:,........ .,:::;;:;i1t111111111ttttttt11111\n111111111111111111111111111111111:...........,;;;i1iiii;:,.......::,,::::;;i1ttt111t11t1111ttttt1111\n","tttftttttttttttttttttfffttttt1111tttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt11111111t\nttfftttttttttttttttffLLftffftfffftttt111111111t11ttffffftttt1111111111111111ttftttfttttttttt1111tttt\nttftttttttttttttffffLffttfffffffLfffttttttttt111tfffffffftttttttt11111ttttttfffftfLLfttttttt111tttt1\nttttttttttttttttfffffttfffffffLfffftttttttttt11tffffffffffttttttt11111tfffffffffttffffffttt11111ttt1\ntttttttttttffffftttffttffffffffftttfttttt111ttt1ttfffffftttttt11tt111111ttffffLLffttfLLfft11111ttttt\nttttttttttffLLLLftttttfLLLfttttttffLftttttttffft1ttfffffttfffft11t111tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLfttttttffffffffftftttfffffffttt111tftt11t11tfLLfftt11tffft11ttttt\ntttttttfffLLLLLLLLffttfttttfLLLfftffttttffftt1iii11tttfffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLffffftttttfti;;::,,,:;i1tffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttfffffLLLLLLLLLLfttfftfLfffffffLLfttttt1;,,,,,,,::,:ittffffffftt1111ttt1ttt1tftttt1ttffffLLLLLfttt\nttfLLffffLLLLLLLLfftfLfftttfLfffLLLLfttt1i;:::;;iiii;,;t11tfffft11111tffft1tt1ttt1ttttfffLLLLLLLLfff\ntffffftttffLLLffttttfffffttLLLLfLLLffttf1;;iiii11111i::1t11tttt1ttt11tfffttfftttttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttfffLffLLftttti:;;;;iiiiiii;;tftt1ttt111111tffftfffftttttttt1ttfLLLLffffff\nttfLffffffftttfffffffffttfttffLfffLfttttti;;;;;iii;i1iiftttttffft11111tfttffftttttttttttttfLLftfffft\nttffffffffftttffffffffftfffftffffftttttft11i;;;iiii1iiit11tttttfft1111tt11ffttffttfffffLLfffffffffLL\nttffffffffttttfffffffftttttt1tttffftttttti1i;;;ii11iii111tffftttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\n1ttffffffffttfffffffftt1ttt1111tfffftttt111i;;iiiiii111ttfffft11t11111tfftttttttt1ttffffLfftttfLLLLf\ntttttttttffttfftttttt1ttfftttt1ttfftttttt111i;i;:;ii11ttftfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tfffftttt11tfftt1ttt111;;i;;;iii1ttttffftt11t1111ttt11tt1tffttt1111ttfftfLffftt\ntfttffffttt11tttttft1tffffttffttttft111ttt11;;;;:;i1i1;;11tft111tt1111tt111tt1tfffffttttt11tttttffft\n1tttfffffftttffftfft11tfftttffttttft1111iii1;;;i;iiii1i,,,:;;i11tt1111tt111tft1fffffttfffftt11tffLLf\n111ttfffftt1ttffttt1111tfttft11tt1t1i;:,,,;1i;;i1ii;iti,,.....,:;i1t11111t11tt1tfffttffffffft1fffLLf\ntfttttftt1tt11tft11ttt11tttt1tt11i;:,.....;11i;i1i;1tt;,,.........,:i11111111t1tffttttffffftt1tfffLf\ntffttttttttftt1111ttttt11111tft;,.........;11111i1ttti,.............,1111tttt1111tffftttfft1tt1tffft\n1ttttttttttttt1111tttttt11tfff1,...........,:;;;;;11i:...............itttttttt1ttfffLffttttffffttttf\ntfffttttffttttt11ttttttt11tfffi............ ,:;;;;;;;,...............;t1ttttfft1tffffffftttttttffttf\ntfffttttfffffft11tttttttttt1tf;..............:;;;;;;;,...............:111ttttttttfffLfLfttfffffffttf\ntfffttttftftft111ttttttt11t111:..............:;;;;;::,...............,1t11ttt1t1tffLLLLfttfffffffttf\ntfffttttfttttt111ttttttt11ttt1:..............,;;;::;::................itt111tttttffffLLfttfffffffttf\ntttttttttttttt111ttttttt1ttfft:..............,;;;;::::................:1tt11tft1tffffffftttffttffttt\nttttt1tttt11tt11tttttttt1tttt1;.,::,..........:;:::;::,...............,1t1111tt11tttttft11tfttttfttt\nttttt1tttttttt11ttttttttt1ttt1;,:;;:..........,::::::,,................it11111111ttftttt11ttttttfttt\nttttt1tttttttt11tttttttttttttiiiiii;,.........,:::::::,................:ttttt1111ttttttt11ttttttfttt\n1t1111tttttttt11tttttttt1ttt1;;;;ii;,.........,:::::::,.................ittttt1111tttt11111ttttttt1t\n11111111111111111111111111tt1;;;;ii;...........::::::::................ :1t111111111111111111111t111\n11111111111111111111111111tt1;::;;i:...........,:::::::,...............,itttt11111111111111111111111\n11111111111111111111111tttttt;,,,::............,::::::,,...............ittttt11111111111111111111111\n1111111111111111111111111tttt1:,,..............,:::::,,,,.......,:;::,:1t1111111111111111111111t1111\n11111111111111111111111111111111i;;i:..........,:,,,.,,.,.......::;;i;it1ttt111111111111111111111111\n1111111111111111111111111111111111ti...........,,.,:,:;::,......,:;;ii1ttttt11111111111111111t111111\n1111111111111111111111111111111111t;...........,;iiiiiii;:,......:;;;i1ttttt111t1111111111tttttt1111\n11111111111111111111111111111111111:...........,;i11iiii;:,.......,:i1tttttt1ttttt1t11t1111ttttt1111\n"];const l=new i.a;function c(){const[t,e]=Object(a.useState)(function(){const t=new Date;return 3===t.getMonth()&&1===t.getDate()}()),[n,i]=Object(a.useState)(0);return Object(a.useEffect)(()=>{const t=setInterval(()=>i(t=>(t+1)%s.length),100);return()=>clearInterval(t)},[]),Object(a.useEffect)(()=>l.subscribe(()=>{e(!0)}),[]),t?r.a.createElement(o.a,{open:t,onClose:()=>e(!1)},r.a.createElement("pre",{style:{color:"#0f0"}},s[n]),r.a.createElement("div",{style:{display:"none"}},r.a.createElement("iframe",{width:"560",height:"315",src:"https://www.youtube.com/embed/a3Z7zEc7AXQ?autoplay=1",title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"}))):r.a.createElement(r.a.Fragment,null)}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(15),o=n(1),s=n(21),l=n(121),c=n(146);const f=Object(l.a)(t=>Object(c.a)({travel:{color:t.colors.white,lineHeight:"1em",whiteSpace:"pre",cursor:"pointer"}}));function u(t){const e=f();return t.city!==t.currentCity?r.a.createElement(s.a,{title:r.a.createElement(o.a,null,t.city)},r.a.createElement("span",{onClick:()=>t.onTravel(t.city),className:e.travel},t.city[0])):r.a.createElement("span",null,t.city[0])}function m(t){return r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ,_ . ._. _. ."),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," , _-\\','|~\\~ ~/ ;-'_ _-' ,;_;_, ~~-"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," /~~-\\_/-'~'--' \\~~| ', ,' / / ~|-_\\_/~/~ ~~--~~~~'--_"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / ,/'-/~ '\\ ,' _ , '",r.a.createElement(u,{onTravel:t.onTravel,currentCity:t.currentCity,city:i.a.Volhaven}),",'|~ ._/-, /~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ~/-'~\\_, '-,| '|. ' ~ ,\\ /'~ / /_ /~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},".-~ '| '',\\~|\\ _\\~ ,_ , ",r.a.createElement(u,{onTravel:t.onTravel,currentCity:t.currentCity,city:i.a.Chongqing})," /,"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," '\\ ",r.a.createElement(u,{onTravel:t.onTravel,currentCity:t.currentCity,city:i.a.Sector12})," /'~ |_/~\\\\,-,~ \\ \" ,_,/ |"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | / ._-~'\\_ _~| \\ ) ",r.a.createElement(u,{onTravel:t.onTravel,currentCity:t.currentCity,city:i.a.NewTokyo})),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\ __-\\ '/ ~ |\\ \\_ / ~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ., '\\ |, ~-_ - | \\\\_' ~| /\\ \\~ ,"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ~-_' _; '\\ '-, \\,' /\\/ |"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," '\\_,~'\\_ \\_ _, /' ' |, /|'"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / \\_ ~ | / \\ ~'; -,_."),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ~\\ | | , '-_, ,; ~ ~\\"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\, ",r.a.createElement(u,{onTravel:t.onTravel,currentCity:t.currentCity,city:i.a.Aevum})," / \\ / /| ,-, , -,"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ,/ | |' |/ ,- ~ \\ '."),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ,| ,/ \\ ,/ \\ ",r.a.createElement(u,{onTravel:t.onTravel,currentCity:t.currentCity,city:i.a.Ishima})," |"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / | ~ -~~-, / _"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ,-' ~ /"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / ,' ~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ',| ~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ~'"))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(24),o=n(1157),s=n(1158);function l(t){const e=t.action.getEstSuccessChance(t.bladeburner);let n=r.a.createElement(r.a.Fragment,null);return n=e[0]===e[1]?r.a.createElement(r.a.Fragment,null,Object(i.d)(100*e[0],1),"%"):r.a.createElement(r.a.Fragment,null,Object(i.d)(100*e[0],1),"% ~ ",Object(i.d)(100*e[1],1),"%"),r.a.createElement(r.a.Fragment,null,"Estimated success chance: ",n," ",t.action.isStealth?r.a.createElement(o.a,null):r.a.createElement(r.a.Fragment,null),t.action.isKill?r.a.createElement(s.a,null):r.a.createElement(r.a.Fragment,null))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(38);function o(t){return r.a.createElement(i.a,{open:t.open,onClose:t.onClose},t.children)}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(0),r=n.n(a);function i(t,e,n){return t.substring(0,e)+n+t.substring(e+1)}function o(t){const[e,n]=Object(a.useState)(t.content);return Object(a.useEffect)(()=>{let t=5;const a=[],r=setInterval(()=>{if(t--,t>0)return;t=5*Math.random();const r=Math.random()*e.length,o=e.charAt(r);n(t=>i(t,r,function(t){const e=t=>t[Math.floor(Math.random()*t.length)],n=["abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ","1234567890"," _","()[]{}<>"];for(const a of n)if(a.includes(t))return e(a);return e("!@#$%^&*()_+|\\';\"/.,?`~")}(o))),a.push(window.setTimeout(()=>{n(t=>i(t,r,o))},500))},20);return()=>{clearInterval(r),a.forEach(t=>clearTimeout(t))}},[]),r.a.createElement("span",null,e)}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(1413),r=n(14);function i(t){const e=a.a[t];if(null==e)return;const n=`${e.title}

${e.txt}`;Object(r.a)(n)}},,,,,,function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return m})),n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(256),o=n(2),s=n(85),l=n(89),c=n(5),f=n(20);function u(){const t=o.a.getCurrentServer();null!==t&&l.a.DarkWeb==t.hostname&&s.a.print("You are now connected to the dark web. From the dark web you can purchase illegal items. Use the 'buy -l' command to display a list of all the items you can buy. Use 'buy [item-name]' to purchase an item. Use 'buy -a' to purchase all unowned items.")}function m(){for(const t of Object.keys(i.a)){const e=i.a[t],n=o.a.getHomeComputer().programs.includes(e.program)?r.a.createElement("span",{style:{color:"green"}},"[OWNED]"):r.a.createElement(f.a,{money:e.price});s.a.printRaw(r.a.createElement(r.a.Fragment,null,r.a.createElement("span",null,e.program)," - ",r.a.createElement("span",null,n)," - ",r.a.createElement("span",null,e.description)))}}function h(t){t=t.toLowerCase();let e=null;for(const n of Object.keys(i.a)){const a=i.a[n];a.program.toLowerCase()==t&&(e=a)}null!==e?o.a.hasProgram(e.program)?s.a.print("You already have the "+e.program+" program"):o.a.moneyo.a.money)s.a.error("Not enough money to purchase remaining programs, "+c.a.formatMoney(e)+" required");else for(const e of t)h(e.program);else s.a.print("All available programs have been purchased already.")}},function(t,e,n){"use strict";function a(t,e){const n=t.hostname;return"requiredHackingSkill"in t?!1===t.hasAdminRights?{res:!1,msg:`Cannot ${e} ${n} server because you do not have root access`}:{res:!0}:{res:!1,msg:`Cannot ${e} ${n} server because it is a Hacknet Node`}}function r(t,e){const n=a(t,"hack");if(!n.res)return n;return t.requiredHackingSkill>e.hacking?{res:!1,msg:`Cannot hack ${t.hostname} server because your hacking skill is not high enough`}:{res:!0}}function i(t){return a(t,"grow")}function o(t){return a(t,"weaken")}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var a=n(182);function r(t,e,n){const a=n-Math.pow(e,.9)/250-t.intelligence/1600;return a<0?0:a>3?3:a}function i(t,e){return r(t,t.strength+t.defense+t.dexterity+t.agility+t.charisma,e)}function o(t,e){return r(t,Object(a.b)(9e3*t.strength_exp_mult,t.strength_mult)+Object(a.b)(9e3*t.defense_exp_mult,t.defense_mult)+Object(a.b)(9e3*t.agility_exp_mult,t.agility_mult)+Object(a.b)(9e3*t.dexterity_exp_mult,t.dexterity_mult)+Object(a.b)(9e3*t.charisma_exp_mult,t.charisma_mult),e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(114),r=n(10);class i{constructor(t){this.augmentation=t}get cost(){return this.augmentation.baseCost*r.a.AugmentationGraftingCostMult}get time(){const t=Math.max(Object(a.sum)(Object.values(this.augmentation.mults)),1),e=Math.log2(t);return(r.a.AugmentationGraftingTimeBase*e+r.a.MillisecondsPerHalfHour)/2}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(5),o=n(127);function s({reputation:t}){return r.a.createElement(o.a,{reputation:i.a.formatReputation(t)+" / sec"})}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var a=n(27),r=n(157);function i(t){return"string"==typeof t&&(!isNaN(t)&&!isNaN(parseFloat(t)))}function o(t){const e=(t=(t=t.trim()).replace(/\s\s+/g," ")).match(/(?:'[^']*'|"[^"]*"|[^;"])*/g);if(!e)return[];const n=e.map(r.h).map(t=>t.match(/(?:'[^']*'|"[^"]*"|[^;"])*/g)).flat(),a=[];for(const t of n)null!==t&&(t.match(/^\s*$/)||a.push(t.trim()));return a}function s(t){let e="";const n=[];let r=0,o=0,s="";for(;o=1&&(s=t.charAt(o-1),"\\"===s&&(l=!0));const c=t.charAt(o);if(c===a.a.DOUBLE_QUOTE)if(l||s!==a.a.SPACE)""===e?e=a.a.DOUBLE_QUOTE:e===a.a.DOUBLE_QUOTE&&(e="");else{const e=t.indexOf(a.a.DOUBLE_QUOTE,o+1);if(-1!==e&&(e===t.length-1||t.charAt(e+1)===a.a.SPACE)){n.push(t.substr(o+1,e-o-1)),r=o=e===t.length-1?e+1:e+2;continue}}else if(c===a.a.QUOTE)if(l||s!==a.a.SPACE)""===e?e=a.a.QUOTE:e===a.a.QUOTE&&(e="");else{const e=t.indexOf(a.a.QUOTE,o+1);if(-1!==e&&(e===t.length-1||t.charAt(e+1)===a.a.SPACE)){n.push(t.substr(o+1,e-o-1)),r=o=e===t.length-1?e+1:e+2;continue}}else if(c===a.a.SPACE&&""===e){const e=t.substr(r,o-r);i(e)?n.push(parseFloat(e)):"true"===e?n.push(!0):"false"===e?n.push(!1):n.push(e),r=o+1}++o}if(r!==o){const e=t.substr(r,o-r);i(e)?n.push(parseFloat(e)):"true"===e?n.push(!0):"false"===e?n.push(!1):n.push(e)}return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(1380),o=n(1),s=n(8);function l(t){const[e,n]=Object(a.useState)(0),[l,c]=Object(a.useState)(!1);return r.a.createElement(r.a.Fragment,null,t.lines.slice(0,e).map((t,e)=>r.a.createElement(o.a,{key:e},t)),t.lines.length>e&&r.a.createElement(i.a,{key:e,text:t.lines[e],onDone:function(){const a=e+1;n(a),a>=t.lines.length&&(t.onDone&&t.auto&&t.onDone(),c(!0))}}),!t.auto&&t.onDone&&l&&r.a.createElement(s.a,{onClick:t.onDone},"Continue ..."))}},,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r}));const a=5,r=1e13},,,,,,,,,,,,,,,,,,,,,,,,,function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return checkInfiniteLoop})),__webpack_require__.d(__webpack_exports__,"a",(function(){return calculateRamUsage}));var acorn_walk__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(304),acorn__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(254),_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(328),_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(42),_Terminal_DirectoryHelpers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(83);const specialReferenceIF="__SPECIAL_referenceIf",specialReferenceFOR="__SPECIAL_referenceFor",specialReferenceWHILE="__SPECIAL_referenceWhile",memCheckGlobalKey=".__GLOBAL__";async function parseOnlyRamCalculate(player,otherScripts,code,workerScript){try{let dependencyMap={};const completedParses=new Set,parseQueue=[];function parseCode(t,e){const n=parseOnlyCalculateDeps(t,e);completedParses.add(e);for(let t=0;t0;){const nextModule=parseQueue.shift();if(void 0===nextModule)throw new Error("nextModule should not be undefined");let code;if(nextModule.startsWith("https://")||nextModule.startsWith("http://"))try{const module=await eval("import(nextModule)");code="";for(const t in module)"function"==typeof module[t]&&(code+=module[t].toString()+";\n")}catch(t){return console.error(`Error dynamically importing module from ${nextModule} for RAM calculations: ${t}`),{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.URLImportError}}else{if(!Array.isArray(otherScripts))return console.warn("parseOnlyRamCalculate() not called with array of scripts"),{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.ImportError};let t=null;const e=nextModule.startsWith("./")?nextModule.slice(2):nextModule;for(const n of otherScripts)if(Object(_Terminal_DirectoryHelpers__WEBPACK_IMPORTED_MODULE_4__.b)(n.filename,e)){t=n;break}if(null==t)return{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.ImportError};code=t.code}parseCode(code,nextModule)}let ram=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptBaseRamCost;const detailedCosts=[{type:"misc",name:"baseCost",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptBaseRamCost}],unresolvedRefs=Object.keys(dependencyMap).filter(t=>t.startsWith(initialModule)),resolvedRefs=new Set;for(;unresolvedRefs.length>0;){const t=unresolvedRefs.shift();if(void 0===t)throw new Error("ref should not be undefined");if("hacknet"!==t||resolvedRefs.has("hacknet")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptHacknetNodesRamCost,detailedCosts.push({type:"ns",name:"hacknet",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptHacknetNodesRamCost})),"document"!==t||resolvedRefs.has("document")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost,detailedCosts.push({type:"dom",name:"document",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost})),"window"!==t||resolvedRefs.has("window")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost,detailedCosts.push({type:"dom",name:"window",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost})),"corporation"!==t||resolvedRefs.has("corporation")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptCorporationRamCost,detailedCosts.push({type:"ns",name:"corporation",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptCorporationRamCost})),resolvedRefs.add(t),t.endsWith(".*")){const e=t.slice(0,t.length-2);for(const t of Object.keys(dependencyMap).filter(t=>t.startsWith(e)))for(const e of dependencyMap[t]||[])resolvedRefs.has(e)||unresolvedRefs.push(e)}else for(const e of dependencyMap[t]||[])resolvedRefs.has(e)||unresolvedRefs.push(e);try{function applyFuncRam(t){return"number"==typeof t?t:"function"==typeof t?t(player):0}if(workerScript.loadedFns[t])continue;let e;workerScript.loadedFns[t]=!0;let n="n/a";t in workerScript.env.vars.bladeburner?(e=workerScript.env.vars.bladeburner[t],n="bladeburner."+t):t in workerScript.env.vars.codingcontract?(e=workerScript.env.vars.codingcontract[t],n="codingcontract."+t):t in workerScript.env.vars.stanek?(e=workerScript.env.vars.stanek[t],n="stanek."+t):t in workerScript.env.vars.infiltration?(e=workerScript.env.vars.infiltration[t],n="infiltration."+t):t in workerScript.env.vars.gang?(e=workerScript.env.vars.gang[t],n="gang."+t):t in workerScript.env.vars.sleeve?(e=workerScript.env.vars.sleeve[t],n="sleeve."+t):t in workerScript.env.vars.stock?(e=workerScript.env.vars.stock[t],n="stock."+t):t in workerScript.env.vars.ui?(e=workerScript.env.vars.ui[t],n="ui."+t):t in workerScript.env.vars.grafting?(e=workerScript.env.vars.grafting[t],n="grafting."+t):t in workerScript.env.vars.singularity?(e=workerScript.env.vars.singularity[t],n="singularity."+t):(e=workerScript.env.vars[t],n=""+t);const a=applyFuncRam(e);ram+=a,detailedCosts.push({type:"fn",name:n,cost:a})}catch(t){continue}}return{cost:ram,entries:detailedCosts.filter(t=>t.cost>0)}}catch(t){return{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.SyntaxError}}}function checkInfiniteLoop(t){const e=Object(acorn__WEBPACK_IMPORTED_MODULE_1__.a)(t,{sourceType:"module",ecmaVersion:"latest"});let n=-1;return acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(e,{},{WhileStatement:(e,a,r)=>{!function(t){return"Literal"===t.type&&"true"===t.raw}(e.test)||function(t){let e=!1;return acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(t,{},{AwaitExpression:()=>{e=!0}}),e}(e)?e.body&&r(e.body,a):n=(t.slice(0,e.start).match(/\n/g)||[]).length+1}}),n}function parseOnlyCalculateDeps(t,e){const n=Object(acorn__WEBPACK_IMPORTED_MODULE_1__.a)(t,{sourceType:"module",ecmaVersion:"latest"}),a=e+memCheckGlobalKey,r={};r[a]=new Set;const i={},o=[];function s(t,n){const a=r[t]||(r[t]=new Set),o=i[n];void 0!==o&&a.add(o),a.add(e+"."+n),a.add(n)}const l=Object.getOwnPropertyNames(Object.prototype);function c(){return{Identifier:(t,e)=>{l.includes(t.name)||s(e.key,t.name)},WhileStatement:(t,e,n)=>{s(e.key,specialReferenceWHILE),t.test&&n(t.test,e),t.body&&n(t.body,e)},DoWhileStatement:(t,e,n)=>{s(e.key,specialReferenceWHILE),t.test&&n(t.test,e),t.body&&n(t.body,e)},ForStatement:(t,e,n)=>{s(e.key,specialReferenceFOR),t.init&&n(t.init,e),t.test&&n(t.test,e),t.update&&n(t.update,e),t.body&&n(t.body,e)},IfStatement:(t,e,n)=>{s(e.key,specialReferenceIF),t.test&&n(t.test,e),t.consequent&&n(t.consequent,e),t.alternate&&n(t.alternate,e)},MemberExpression:(t,e,n)=>{t.object&&n(t.object,e),t.property&&n(t.property,e)}}}return acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(n,{key:a},Object.assign({ImportDeclaration:(t,e)=>{const n=t.source.value;o.push(n);const a=r[e.key];if(void 0===a)throw new Error("set should not be undefined");a.add(n+memCheckGlobalKey);for(let a=0;a{const n=e+"."+(null===t.id?"__SPECIAL_DEFAULT_EXPORT__":t.id.name);acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(t,{key:n},c())}},c())),{dependencyMap:r,additionalModules:o}}async function calculateRamUsage(t,e,n){const a={loadedFns:{},env:{vars:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.b}};try{return await parseOnlyRamCalculate(t,n,e,a)}catch(t){return console.error("Failed to parse script for RAM calculations:"),console.error(t),{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.SyntaxError}}}},function(t,e,n){"use strict";function a(t){return+(Math.round(parseFloat(t+"e+2"))+"e-2")}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var a=n(198);let r=1;function i(){let t=r,e=!1;for(let n=0;n<1e6;){if(!a.a.has(t+n)){e=!0,t+=n;break}n===Number.MAX_SAFE_INTEGER-1?n=1:++n}return e?(r=t+1,r>=Number.MAX_SAFE_INTEGER&&(r=1),t):-1}function o(){r=1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return ot}));var a=n(597),r=n.n(a),i=n(423),o=n(42),s=n(298),l=n(18),c=n(10),f=n(103),u=n(482),m=n(93),h=n(85),d=n(2),p=n(66),g=n(253),y=n(235),b=n(101),E=n(408),v=n(22),k=n(135),_=n(225),w=n(46),S=n(530),x=n(83),C=n(226),L=n(197),O=n(144),M=n(198),T=n(110),A=n(5),R=n(24),N=n(179),P=n(255),I=n(148),F=n(1033),D=n(1038),j=n(1039),B=n(1041),G=n(1042),W=n(1044),H=n(1045),U=n(1046),q=n(1047),$=n(1049),K=n(1054),z=n(1055),V=n(1056),Y=n(1408),J=n(646),X=n(14),Q=n(99),Z=n(370),tt=n(645),et=n(285),nt=n(421),at=n(462),rt=n(15),it=n(275);function ot(t){const e=function(e,n){if(t.dynamicLoadedFns[e])return;t.dynamicLoadedFns[e]=!0;let a=t.scriptRef.threads;if("number"!=typeof a&&(console.warn(`WorkerScript detected NaN for threadcount for ${t.name} on ${t.hostname}`),a=1),t.dynamicRamUsage+=n,t.dynamicRamUsage>1.01*t.ramUsage)throw Object(T.b)(t,`Dynamic RAM usage calculated to be greater than initial RAM usage on fn: ${e}.\n This is probably because you somehow circumvented the static RAM calculation.\n\n Threads: ${a}\n Dynamic RAM Usage: ${A.a.formatRAM(t.dynamicRamUsage)}\n Static RAM Usage: ${A.a.formatRAM(t.ramUsage)}\n\n One of these could be the reason:\n * Using eval() to get a reference to a ns function\n   const myScan = eval('ns.scan');\n\n * Using map access to do the same\n   const myScan = ns['scan'];\n\n Sorry :(`)},n=function(t,e){const n=Object(v.d)(t);if(null==n)throw ut(e,"Invalid hostname: "+t);return n},a=function(e,a,r,i){if("string"==typeof r&&""!==r||(r="getRunningScript"),!Array.isArray(i))throw Object(T.b)(t,`Invalid scriptArgs argument passed into getRunningScript() from ${r}(). This is probably a bug. Please report to game developer`);if(null!=e&&"string"==typeof e){null==a&&(a=t.hostname);const o=n(a,r);return Object(y.a)(e,i,o)}return t.scriptRef},st=function(t,e){"string"==typeof e&&""!==e||(e="getRunningScriptgetRunningScriptByPid");for(const e of Object(v.c)()){const n=Object(y.b)(t,e);if(n)return n}return null},lt=function(t){return{args:t.args.slice(),filename:t.filename,logs:t.logs.slice(),offlineExpGained:t.offlineExpGained,offlineMoneyMade:t.offlineMoneyMade,offlineRunningTime:t.offlineRunningTime,onlineExpGained:t.onlineExpGained,onlineMoneyMade:t.onlineMoneyMade,onlineRunningTime:t.onlineRunningTime,pid:t.pid,ramUsage:t.ramUsage,server:t.server,threads:t.threads}},ct=function(t,e,n){return Array.isArray(n)||(n=[]),`Cannot find running script ${t} on server ${e} with args: ${Object(P.a)(n)}`},ft=function(e,n=""){return e instanceof m.a&&(t.log(n,()=>"Does not work on Hacknet Servers"),!0)},ut=function(e,n){const a=(new Error).stack;if(void 0===a)throw new Error("how did we not throw an error?");const r=a.split("\n").slice(1),i=t.getServer().scripts,o=[];for(const t of r){let e;for(const n of i){n.url&&t.includes(n.url)&&(e=n.filename);for(const a of n.dependencies)t.includes(a.url)&&(e=a.filename)}if(!e)continue;function s(t){const e=t.match(/.*:(\d+):\d+.*/),n=t.match(/.*at (.+) \(.*/);return e&&n?{line:e[1],func:n[1]}:null}let n={line:"-1",func:"unknown"};const a=s(t);function l(t){const e=t.match(/.*:(\d+):\d+$/),n=t.lastIndexOf("@");return e&&-1!==n?{line:e[1],func:t.slice(0,n)}:null}a&&(n=a);const r=l(t);r&&(n=r),o.push(`${e}:L${n.line}@${n.func}`)}t.log(e,()=>n);let c=`${e}: ${n}`;return 0!==o.length&&(c+="

Stack:
"+o.join("
")),Object(T.b)(t,c)},mt=async function(e,a,{threads:r,stock:i}={}){if(void 0===e)throw ut("hack","Takes 1 argument.");const o=Object(T.d)(t,"hack",r),s=n(e,"hack");if(!(s instanceof w.a))throw ut("hack","Cannot be executed on this server.");const m=Object(f.d)(s,d.a),h=Object(u.b)(s,d.a);if(!h.res)throw ut("hack",h.msg||"");return t.log("hack",()=>`Executing on '${s.hostname}' in ${Object(R.b)(1e3*m,!0)} (t=${A.a.formatThreads(o)})`),Object(T.c)(1e3*m,t).then((function(){const e=Object(f.b)(s,d.a),n=Math.random();let r=Object(f.c)(s,d.a)*o;const u=r/4;if(ns.moneyAvailable&&(m=s.moneyAvailable),s.moneyAvailable-=m,s.moneyAvailable<0&&(s.moneyAvailable=0);const h=m*l.a.ScriptHackMoneyGain;return d.a.gainMoney(h,"hacking"),t.scriptRef.onlineMoneyMade+=h,d.a.scriptProdSinceLastAug+=h,t.scriptRef.recordHack(s.hostname,h,o),d.a.gainHackingExp(r),a&&d.a.gainIntelligenceExp(.005),t.scriptRef.onlineExpGained+=r,t.log("hack",()=>`Successfully hacked '${s.hostname}' for ${A.a.formatMoney(h)} and ${A.a.formatExp(r)} exp (t=${A.a.formatThreads(o)})`),s.fortify(c.a.ServerFortifyAmount*Math.min(o,n)),i&&Object(S.c)(s,m),a&&(s.backdoorInstalled=!0),Promise.resolve(h)}return d.a.gainHackingExp(u),t.scriptRef.onlineExpGained+=u,t.log("hack",()=>`Failed to hack '${s.hostname}'. Gained ${A.a.formatExp(u)} exp (t=${A.a.formatThreads(o)})`),Promise.resolve(0)}))},ht=function(t){let e="";for(let n of t)n=Object(J.a)(n),e+="object"==typeof n?JSON.stringify(n):""+n;return e},dt={updateDynamicRam:e,makeRuntimeErrorMsg:ut,string:(t,e,n)=>{if("string"==typeof n)return n;if("number"==typeof n)return n+"";throw ut(t,e+" should be a string.")},number:(t,e,n)=>{if("string"==typeof n){const t=parseFloat(n);if(!isNaN(t))return t}else if("number"==typeof n){if(isNaN(n))throw ut(t,e+" is NaN.");return n}throw ut(t,e+" should be a number.")},boolean:t=>!!t,city:(t,e,n)=>{if("string"!=typeof n)throw ut(t,e+" should be a city name.");const a=n;if(!Object.values(rt.a).includes(a))throw ut(t,e+" should be a city name.");return a},getServer:n,checkSingularityAccess:function(t){if(4!==d.a.bitNodeN&&0===d.a.sourceFileLvl(4))throw ut(t,"This singularity function requires Source-File 4 to run. A power up you obtain later in the game. It will be very obvious when and how you can obtain it.")},hack:mt,getValidPort:(t,e)=>{if(isNaN(e))throw ut(t,`Invalid argument. Must be a port number between 1 and ${c.a.NumNetscriptPorts}, is ${e}`);if((e=Math.round(e))<1||e>c.a.NumNetscriptPorts)throw ut(t,`Trying to use an invalid port: ${e}. Only ports 1-${c.a.NumNetscriptPorts} are valid.`);const n=L.a[e-1];if(null==n||!(n instanceof Object))throw ut(t,`Could not find port: ${e}. This is a bug. Report to dev.`);return n}},pt=Object(j.a)(d.a,t,dt),gt=Object(K.a)(d.a,t,dt),yt=Object(it.a)(dt,{},t,Object(F.a)(d.a,t),"gang").gang,bt=Object(it.a)(dt,{},t,Object(D.a)(d.a),"sleeve").sleeve,Et=Object(it.a)(dt,{},t,Object(B.a)(d.a,t),"hacknet").hacknet,vt=Object(it.a)(dt,{},t,Object(U.a)(d.a,t),"bladeburner").bladeburner,kt=Object(it.a)(dt,{},t,Object(q.a)(d.a,t),"codingcontract").codingcontract,_t=Object(it.a)(dt,{},t,Object(W.a)(d.a),"infiltration").infiltration,wt=Object(it.a)(dt,{},t,Object(G.a)(d.a,t,dt),"stanek").stanek,St=Object(it.a)(dt,{},t,Object($.a)(d.a,t),"corporation").corporation,xt=Object(it.a)(dt,{},t,Object(Y.a)(d.a,t),"singularity").singularity,Ct=Object(it.a)(dt,{},t,Object(z.a)(d.a,t),"stock").stock,Lt=Object(it.a)(dt,{},t,Object(H.a)(),"ui").ui,Ot=Object(it.a)(dt,{},t,Object(V.a)(d.a),"grafting").grafting,Mt={...{...xt,singularity:xt,gang:yt,bladeburner:vt,codingcontract:kt,sleeve:bt,corporation:St,stanek:wt,infiltration:_t,ui:Lt,formulas:gt,stock:Ct,grafting:Ot,args:t.args,hacknet:Et,sprintf:i.sprintf,vsprintf:i.vsprintf,scan:function(a=t.hostname){e("scan",Object(o.c)(d.a,"scan"));const r=dt.string("scan","hostname",a),i=n(r,"scan"),s=[];for(let t=0;t`returned ${i.serversOnNetwork.length} connections for ${i.hostname}`),s},hack:function(t,{threads:n,stock:a}={}){e("hack",Object(o.c)(d.a,"hack"));const r=dt.string("hack","hostname",t);return mt(r,!1,{threads:n,stock:a})},hackAnalyzeThreads:function(a,r){e("hackAnalyzeThreads",Object(o.c)(d.a,"hackAnalyzeThreads"));const i=dt.string("hackAnalyzeThreads","hostname",a),s=dt.number("hackAnalyzeThreads","hackAmount",r),l=n(i,"hackAnalyzeThreads");if(!(l instanceof w.a))return t.log("hackAnalyzeThreads",()=>"Cannot be executed on this server."),-1;if(isNaN(s))throw ut("hackAnalyzeThreads",`Invalid hackAmount argument passed into hackAnalyzeThreads: ${s}. Must be numeric.`);if(s<0||s>l.moneyAvailable)return-1;if(0===s)return 0;const c=Object(f.e)(l,d.a);return 0===c||0===l.moneyAvailable?0:s/Math.floor(l.moneyAvailable*c)},hackAnalyze:function(a){e("hackAnalyze",Object(o.c)(d.a,"hackAnalyze"));const r=dt.string("hackAnalyze","hostname",a),i=n(r,"hackAnalyze");return i instanceof w.a?Object(f.e)(i,d.a):(t.log("hackAnalyze",()=>"Cannot be executed on this server."),0)},hackAnalyzeSecurity:function(a,r){e("hackAnalyzeSecurity",Object(o.c)(d.a,"hackAnalyzeSecurity"));let i=dt.number("hackAnalyzeSecurity","threads",a);if(r){const e=dt.string("hackAnalyzeSecurity","hostname",r),a=n(e,"hackAnalyze");if(!(a instanceof w.a))return t.log("hackAnalyzeSecurity",()=>"Cannot be executed on this server."),0;const o=Object(f.e)(a,d.a);o>0&&(i=Math.min(i,Math.ceil(1/o)))}return c.a.ServerFortifyAmount*i},hackAnalyzeChance:function(a){e("hackAnalyzeChance",Object(o.c)(d.a,"hackAnalyzeChance"));const r=dt.string("hackAnalyzeChance","hostname",a),i=n(r,"hackAnalyzeChance");return i instanceof w.a?Object(f.b)(i,d.a):(t.log("hackAnalyzeChance",()=>"Cannot be executed on this server."),0)},sleep:async function(n=0){e("sleep",Object(o.c)(d.a,"sleep"));const a=dt.number("sleep","time",n);if(void 0===a)throw ut("sleep","Takes 1 argument.");return t.log("sleep",()=>`Sleeping for ${a} milliseconds`),Object(T.c)(a,t).then((function(){return Promise.resolve(!0)}))},asleep:function(n=0){e("asleep",Object(o.c)(d.a,"asleep"));const a=dt.number("asleep","time",n);if(void 0===a)throw ut("asleep","Takes 1 argument.");return t.log("asleep",()=>`Sleeping for ${a} milliseconds`),new Promise(t=>setTimeout(()=>t(!0),a))},grow:async function(a,{threads:r,stock:i}={}){e("grow",Object(o.c)(d.a,"grow"));const s=dt.string("grow","hostname",a),l=Object(T.d)(t,"grow",null!=r?r:t.scriptRef.threads);if(void 0===s)throw ut("grow","Takes 1 argument.");const c=n(s,"grow");if(!(c instanceof w.a))return t.log("grow",()=>"Cannot be executed on this server."),Promise.resolve(0);const m=Object(v.d)(t.hostname);if(null===m)throw new Error("Workerscript host is null");const h=Object(u.a)(c);if(!h.res)throw ut("grow",h.msg||"");const p=Object(f.a)(c,d.a);return t.log("grow",()=>`Executing on '${c.hostname}' in ${Object(R.b)(1e3*p,!0)} (t=${A.a.formatThreads(l)}).`),Object(T.c)(1e3*p,t).then((function(){const e=c.moneyAvailable<=0?1:c.moneyAvailable;Object(k.f)(c,l,d.a,m.cpuCores);const n=c.moneyAvailable;t.scriptRef.recordGrow(c.hostname,l);const a=Object(f.c)(c,d.a)*l,r=n/e-1;return t.log("grow",()=>`Available money on '${c.hostname}' grown by ${A.a.formatPercentage(r,6)}. Gained ${A.a.formatExp(a)} hacking exp (t=${A.a.formatThreads(l)}).`),t.scriptRef.onlineExpGained+=a,d.a.gainHackingExp(a),i&&Object(S.b)(c,n-e),Promise.resolve(n/e)}))},growthAnalyze:function(a,r,i=1){e("growthAnalyze",Object(o.c)(d.a,"growthAnalyze"));const s=dt.string("growthAnalyze","hostname",a),l=dt.number("growthAnalyze","growth",r),c=dt.number("growthAnalyze","cores",i),f=n(s,"growthAnalyze");if(!(f instanceof w.a))return t.log("growthAnalyze",()=>"Cannot be executed on this server."),0;if("number"!=typeof l||isNaN(l)||l<1||!isFinite(l))throw ut("growthAnalyze",`Invalid argument: growth must be numeric and >= 1, is ${l}.`);return Object(k.c)(f,Number(l),d.a,c)},growthAnalyzeSecurity:function(a,r,i){e("growthAnalyzeSecurity",Object(o.c)(d.a,"growthAnalyzeSecurity"));let s=dt.number("growthAnalyzeSecurity","threads",a);if(r){const e=dt.number("growthAnalyzeSecurity","cores",i)||1,a=dt.string("growthAnalyzeSecurity","hostname",r),o=n(a,"growthAnalyzeSecurity");if(!(o instanceof w.a))return t.log("growthAnalyzeSecurity",()=>"Cannot be executed on this server."),0;const l=Math.ceil(Object(k.d)(o,o.moneyMax,o.moneyAvailable,d.a,e));s=Math.min(s,l)}return 2*c.a.ServerFortifyAmount*s},weaken:async function(a,{threads:r}={}){e("weaken",Object(o.c)(d.a,"weaken"));const i=dt.string("weaken","hostname",a),s=Object(T.d)(t,"weaken",null!=r?r:t.scriptRef.threads);if(void 0===i)throw ut("weaken","Takes 1 argument.");const l=n(i,"weaken");if(!(l instanceof w.a))return t.log("weaken",()=>"Cannot be executed on this server."),Promise.resolve(0);const m=Object(u.c)(l);if(!m.res)throw ut("weaken",m.msg||"");const h=Object(f.f)(l,d.a);return t.log("weaken",()=>`Executing on '${l.hostname}' in ${Object(R.b)(1e3*h,!0)} (t=${A.a.formatThreads(s)})`),Object(T.c)(1e3*h,t).then((function(){const e=Object(v.d)(t.hostname);if(null===e)return t.log("weaken",()=>"Server is null, did it die?"),Promise.resolve(0);const n=1+(e.cpuCores-1)/16;l.weaken(c.a.ServerWeakenAmount*s*n),t.scriptRef.recordWeaken(l.hostname,s);const a=Object(f.c)(l,d.a)*s;return t.log("weaken",()=>`'${l.hostname}' security level weakened to ${l.hackDifficulty}. Gained ${A.a.formatExp(a)} hacking exp (t=${A.a.formatThreads(s)})`),t.scriptRef.onlineExpGained+=a,d.a.gainHackingExp(a),Promise.resolve(c.a.ServerWeakenAmount*s*n)}))},weakenAnalyze:function(t,n=1){e("weakenAnalyze",Object(o.c)(d.a,"weakenAnalyze"));const a=dt.number("weakenAnalyze","threads",t),r=1+(dt.number("weakenAnalyze","cores",n)-1)/16;return c.a.ServerWeakenAmount*a*r*l.a.ServerWeakenRate},share:async function(){e("share",Object(o.c)(d.a,"share")),t.log("share",()=>"Sharing this computer.");const n=Object(nt.b)(t.scriptRef.threads*Object(et.a)(d.a.intelligence,2));return Object(T.c)(1e4,t).finally((function(){t.log("share",()=>"Finished sharing this computer."),n()}))},getSharePower:function(){return e("getSharePower",Object(o.c)(d.a,"getSharePower")),Object(nt.a)()},print:function(...n){if(e("print",Object(o.c)(d.a,"print")),0===n.length)throw ut("print","Takes at least 1 argument.");t.print(ht(n))},printf:function(n,...a){e("printf",Object(o.c)(d.a,"printf"));const r=dt.string("printf","format",n);if("string"!=typeof r)throw ut("printf","First argument must be string for the format.");t.print(Object(i.vsprintf)(r,a))},tprint:function(...n){if(e("tprint",Object(o.c)(d.a,"tprint")),0===n.length)throw ut("tprint","Takes at least 1 argument.");const a=ht(n);a.startsWith("ERROR")||a.startsWith("FAIL")?h.a.error(`${t.scriptRef.filename}: ${a}`):a.startsWith("SUCCESS")?h.a.success(`${t.scriptRef.filename}: ${a}`):a.startsWith("WARN")?h.a.warn(`${t.scriptRef.filename}: ${a}`):a.startsWith("INFO")?h.a.info(`${t.scriptRef.filename}: ${a}`):h.a.print(`${t.scriptRef.filename}: ${a}`)},tprintf:function(t,...n){e("tprintf",Object(o.c)(d.a,"tprintf"));const a=dt.string("printf","format",t);if("string"!=typeof a)throw ut("tprintf","First argument must be string for the format.");const r=Object(i.vsprintf)(a,n);r.startsWith("ERROR")||r.startsWith("FAIL")?h.a.error(""+r):r.startsWith("SUCCESS")?h.a.success(""+r):r.startsWith("WARN")?h.a.warn(""+r):r.startsWith("INFO")?h.a.info(""+r):h.a.print(""+r)},clearLog:function(){e("clearLog",Object(o.c)(d.a,"clearLog")),t.scriptRef.clearLog()},disableLog:function(n){e("disableLog",Object(o.c)(d.a,"disableLog"));const a=dt.string("disableLog","fn",n);if("ALL"===a){for(const e of Object.keys(Tt))t.disableLogs[e]=!0;t.log("disableLog",()=>"Disabled logging for all functions")}else{if(void 0===Tt[a])throw ut("disableLog",`Invalid argument: ${a}.`);t.disableLogs[a]=!0,t.log("disableLog",()=>"Disabled logging for "+a)}},enableLog:function(n){e("enableLog",Object(o.c)(d.a,"enableLog"));const a=dt.string("enableLog","fn",n);if("ALL"===a){for(const e of Object.keys(Tt))delete t.disableLogs[e];t.log("enableLog",()=>"Enabled logging for all functions")}else if(void 0===Tt[a])throw ut("enableLog",`Invalid argument: ${a}.`);delete t.disableLogs[a],t.log("enableLog",()=>"Enabled logging for "+a)},isLogEnabled:function(n){e("isLogEnabled",Object(o.c)(d.a,"isLogEnabled"));const a=dt.string("isLogEnabled","fn",n);if(void 0===Tt[a])throw ut("isLogEnabled",`Invalid argument: ${a}.`);return!t.disableLogs[a]},getScriptLogs:function(n,r,...i){e("getScriptLogs",Object(o.c)(d.a,"getScriptLogs"));const s=a(n,r,"getScriptLogs",i);return null==s?(t.log("getScriptLogs",()=>ct(n,r,i)),[]):s.logs.slice()},tail:function(n,r=t.hostname,...i){let s;e("tail",Object(o.c)(d.a,"tail")),s=0===arguments.length?t.scriptRef:"number"==typeof n?st(n,"tail"):a(n,r,"tail",i),null!=s?N.c.emit(s):t.log("tail",()=>ct(n,r,i))},closeTail:function(n=t.scriptRef.pid){e("closeTail",Object(o.c)(d.a,"closeTail"));const a=dt.number("closeTail","pid",n);N.b.emit(a)},nuke:function(a){e("nuke",Object(o.c)(d.a,"nuke"));const r=dt.string("tail","hostname",a);if(void 0===r)throw ut("nuke","Takes 1 argument.");const i=n(r,"nuke");if(!(i instanceof w.a))return t.log("nuke",()=>"Cannot be executed on this server."),!1;if(i.hasAdminRights)return t.log("nuke",()=>`Already have root access to '${i.hostname}'.`),!0;if(!d.a.hasProgram(p.a.NukeProgram.name))throw ut("nuke","You do not have the NUKE.exe virus!");if(i.openPortCount`Executed NUKE.exe virus on '${i.hostname}' to gain root access.`),!0},brutessh:function(a){e("brutessh",Object(o.c)(d.a,"brutessh"));const r=dt.string("brutessh","hostname",a);if(void 0===r)throw ut("brutessh","Takes 1 argument.");const i=n(r,"brutessh");if(!(i instanceof w.a))return t.log("brutessh",()=>"Cannot be executed on this server."),!1;if(!d.a.hasProgram(p.a.BruteSSHProgram.name))throw ut("brutessh","You do not have the BruteSSH.exe program!");return i.sshPortOpen?t.log("brutessh",()=>`SSH Port (22) already opened on '${i.hostname}'.`):(t.log("brutessh",()=>`Executed BruteSSH.exe on '${i.hostname}' to open SSH port (22).`),i.sshPortOpen=!0,++i.openPortCount),!0},ftpcrack:function(a){e("ftpcrack",Object(o.c)(d.a,"ftpcrack"));const r=dt.string("ftpcrack","hostname",a);if(void 0===r)throw ut("ftpcrack","Takes 1 argument.");const i=n(r,"ftpcrack");if(!(i instanceof w.a))return t.log("ftpcrack",()=>"Cannot be executed on this server."),!1;if(!d.a.hasProgram(p.a.FTPCrackProgram.name))throw ut("ftpcrack","You do not have the FTPCrack.exe program!");return i.ftpPortOpen?t.log("ftpcrack",()=>`FTP Port (21) already opened on '${i.hostname}'.`):(t.log("ftpcrack",()=>`Executed FTPCrack.exe on '${i.hostname}' to open FTP port (21).`),i.ftpPortOpen=!0,++i.openPortCount),!0},relaysmtp:function(a){e("relaysmtp",Object(o.c)(d.a,"relaysmtp"));const r=dt.string("relaysmtp","hostname",a);if(void 0===r)throw ut("relaysmtp","Takes 1 argument.");const i=n(r,"relaysmtp");if(!(i instanceof w.a))return t.log("relaysmtp",()=>"Cannot be executed on this server."),!1;if(!d.a.hasProgram(p.a.RelaySMTPProgram.name))throw ut("relaysmtp","You do not have the relaySMTP.exe program!");return i.smtpPortOpen?t.log("relaysmtp",()=>`SMTP Port (25) already opened on '${i.hostname}'.`):(t.log("relaysmtp",()=>`Executed relaySMTP.exe on '${i.hostname}' to open SMTP port (25).`),i.smtpPortOpen=!0,++i.openPortCount),!0},httpworm:function(a){e("httpworm",Object(o.c)(d.a,"httpworm"));const r=dt.string("httpworm","hostname",a);if(void 0===r)throw ut("httpworm","Takes 1 argument");const i=n(r,"httpworm");if(!(i instanceof w.a))return t.log("httpworm",()=>"Cannot be executed on this server."),!1;if(!d.a.hasProgram(p.a.HTTPWormProgram.name))throw ut("httpworm","You do not have the HTTPWorm.exe program!");return i.httpPortOpen?t.log("httpworm",()=>`HTTP Port (80) already opened on '${i.hostname}'.`):(t.log("httpworm",()=>`Executed HTTPWorm.exe on '${i.hostname}' to open HTTP port (80).`),i.httpPortOpen=!0,++i.openPortCount),!0},sqlinject:function(a){e("sqlinject",Object(o.c)(d.a,"sqlinject"));const r=dt.string("sqlinject","hostname",a);if(void 0===r)throw ut("sqlinject","Takes 1 argument.");const i=n(r,"sqlinject");if(!(i instanceof w.a))return t.log("sqlinject",()=>"Cannot be executed on this server."),!1;if(!d.a.hasProgram(p.a.SQLInjectProgram.name))throw ut("sqlinject","You do not have the SQLInject.exe program!");return i.sqlPortOpen?t.log("sqlinject",()=>`SQL Port (1433) already opened on '${i.hostname}'.`):(t.log("sqlinject",()=>`Executed SQLInject.exe on '${i.hostname}' to open SQL port (1433).`),i.sqlPortOpen=!0,++i.openPortCount),!0},run:function(n,a=1,...r){e("run",Object(o.c)(d.a,"run"));const i=dt.string("run","scriptname",n),s=dt.number("run","threads",a);if(void 0===i)throw ut("run","Usage: run(scriptname, [numThreads], [arg1], [arg2]...)");if(isNaN(s)||s<=0)throw ut("run","Invalid thread count. Must be numeric and > 0, is "+s);const l=Object(v.d)(t.hostname);if(null==l)throw ut("run","Could not find server. This is a bug. Report to dev.");return Object(L.d)(d.a,"run",l,i,r,t,s)},exec:function(a,r,i=1,...s){e("exec",Object(o.c)(d.a,"exec"));const l=dt.string("exec","scriptname",a),c=dt.string("exec","hostname",r),f=dt.number("exec","threads",i);if(void 0===l||void 0===c)throw ut("exec","Usage: exec(scriptname, server, [numThreads], [arg1], [arg2]...)");if(isNaN(f)||f<=0)throw ut("exec","Invalid thread count. Must be numeric and > 0, is "+f);const u=n(c,"exec");return Object(L.d)(d.a,"exec",u,l,s,t,f)},spawn:function(n,a=1,...r){e("spawn",Object(o.c)(d.a,"spawn"));const i=dt.string("spawn","scriptname",n),s=dt.number("spawn","threads",a);if(!i||!s)throw ut("spawn","Usage: spawn(scriptname, threads)");setTimeout(()=>{if(isNaN(s)||s<=0)throw ut("spawn","Invalid thread count. Must be numeric and > 0, is "+s);const e=Object(v.d)(t.hostname);if(null==e)throw ut("spawn","Could not find server. This is a bug. Report to dev");return Object(L.d)(d.a,"spawn",e,i,r,t,s)},1e4),t.log("spawn",()=>`Will execute '${i}' in 10 seconds`),t.running=!1,Object(O.a)(t)&&t.log("spawn",()=>"Exiting...")},kill:function(r,i,...s){let l;e("kill",Object(o.c)(d.a,"kill"));const c="number"==typeof r;if(c)l=Object(O.a)(r);else{if(void 0===r||void 0===i)throw ut("kill","Usage: kill(scriptname, server, [arg1], [arg2]...)");const e=n(i,"kill"),o=a(r,i,"kill",s);if(null==o)return t.log("kill",()=>ct(r,i,s)),!1;l=Object(O.a)(o,e.hostname)}return l?(c?t.log("kill",()=>"Killing script with PID "+r):t.log("kill",()=>`Killing '${r}' on '${i}' with args: ${Object(P.a)(s)}.`),!0):(c?t.log("kill",()=>"No script with PID "+r):t.log("kill",()=>`No such script '${r}' on '${i}' with args: ${Object(P.a)(s)}`),!1)},killall:function(a=t.hostname,r=!0){e("killall",Object(o.c)(d.a,"killall"));const i=dt.string("killall","hostname",a),l=dt.boolean(r);if(void 0===i)throw ut("killall","Usage: killall(hostname, [safetyguard boolean])");const c=n(i,"killall");let f=0;for(let e=c.runningScripts.length-1;e>=0;--e)!0===l&&c.runningScripts[e].pid==t.pid||(Object(O.a)(c.runningScripts[e],c.hostname,!1),++f);return s.a.emit(),t.log("killall",()=>`Killing all scripts on '${c.hostname}'. May take a few minutes for the scripts to die.`),f>0},exit:function(){e("exit",Object(o.c)(d.a,"exit")),t.running=!1,Object(O.a)(t)?t.log("exit",()=>"Exiting..."):t.log("exit",()=>"Failed. This is a bug. Report to dev.")},scp:async function(a,r,i){e("scp",Object(o.c)(d.a,"scp"));const s=dt.string("scp","hostname1",r);if(2!==arguments.length&&3!==arguments.length)throw ut("scp","Takes 2 or 3 arguments");if(a&&a.constructor===Array){const e=a;if(0===e.length)throw ut("scp","No scripts to copy");let n=!0;return await Promise.all(e.map((async function(e){await ot(t).scp(e,s,i)||(n=!1)}))),Promise.resolve(n)}if(!Object(x.j)(a))throw ut("scp",`Invalid filename: '${a}'`);if(!a.endsWith(".lit")&&!Object(b.a)(a)&&!a.endsWith("txt"))throw ut("scp","Only works for scripts, .lit and .txt files");let l,c;if(null!=i){if(void 0===a||void 0===s||void 0===i)throw ut("scp","Takes 2 or 3 arguments");l=n(i,"scp"),c=n(s,"scp")}else{if(null==s)throw ut("scp","Takes 2 or 3 arguments");if(void 0===a||void 0===s)throw ut("scp","Takes 2 or 3 arguments");if(l=n(s,"scp"),c=Object(v.d)(t.hostname),null==c)throw ut("scp","Could not find server hostname for this script. This is a bug. Report to dev.")}if(a.endsWith(".lit")){let e=!1;for(let t=0;t`File '${a}' does not exist.`),Promise.resolve(!1);for(let e=0;e{var t;return`File '${a}' copied over to '${null===(t=l)||void 0===t?void 0:t.hostname}'.`}),Promise.resolve(!0);return l.messages.push(a),t.log("scp",()=>{var t;return`File '${a}' copied over to '${null===(t=l)||void 0===t?void 0:t.hostname}'.`}),Promise.resolve(!0)}if(a.endsWith(".txt")){let e;for(let t=0;t`File '${a}' does not exist.`),Promise.resolve(!1);for(let n=0;n{var t;return`File '${a}' copied over to '${null===(t=l)||void 0===t?void 0:t.hostname}'.`}),Promise.resolve(!0);const n=new C.a(e.fn,e.text);return l.textFiles.push(n),t.log("scp",()=>{var t;return`File '${a}' copied over to '${null===(t=l)||void 0===t?void 0:t.hostname}'.`}),Promise.resolve(!0)}let f=null;for(let t=0;t`File '${a}' does not exist.`),Promise.resolve(!1);for(let e=0;e{var t;return`WARNING: File '${a}' overwritten on '${null===(t=l)||void 0===t?void 0:t.hostname}'`});const n=l.scripts[e];return n.code===f.code||(n.code=f.code,n.ramUsage=f.ramUsage,n.markUpdated()),Promise.resolve(!0)}const u=new g.a(d.a,a);return u.code=f.code,u.ramUsage=f.ramUsage,u.server=l.hostname,l.scripts.push(u),t.log("scp",()=>{var t;return`File '${a}' copied over to '${null===(t=l)||void 0===t?void 0:t.hostname}'.`}),new Promise(t=>{null!==l?u.updateRamUsage(d.a,l.scripts).then(()=>t(!0)):t(!1)})},ls:function(t,a=""){e("ls",Object(o.c)(d.a,"ls"));const r=dt.string("ls","hostname",t),i=dt.string("ls","grep",a);if(void 0===r)throw ut("ls","Usage: ls(hostname/ip, [grep filter])");const s=n(r,"ls");let l="";arguments.length>=2&&(l=i.toString());const c=[];for(let t=0;t({timeOfDeath:t.timeOfDeath,...lt(t.runningScript)}))},ps:function(a=t.hostname){e("ps",Object(o.c)(d.a,"ps"));const r=dt.string("ps","hostname",a),i=n(r,"ps"),s=[];for(const t of i.runningScripts)s.push({filename:t.filename,threads:t.threads,args:t.args.slice(),pid:t.pid});return s},hasRootAccess:function(t){e("hasRootAccess",Object(o.c)(d.a,"hasRootAccess"));const a=dt.string("hasRootAccess","hostname",t);if(void 0===a)throw ut("hasRootAccess","Takes 1 argument");return n(a,"hasRootAccess").hasAdminRights},getHostname:function(){e("getHostname",Object(o.c)(d.a,"getHostname"));const n=Object(v.d)(t.hostname);if(null==n)throw ut("getHostname","Could not find server. This is a bug. Report to dev.");return n.hostname},getHackingLevel:function(){return e("getHackingLevel",Object(o.c)(d.a,"getHackingLevel")),d.a.updateSkillLevels(),t.log("getHackingLevel",()=>"returned "+d.a.hacking),d.a.hacking},getHackingMultipliers:function(){return e("getHackingMultipliers",Object(o.c)(d.a,"getHackingMultipliers")),{chance:d.a.hacking_chance_mult,speed:d.a.hacking_speed_mult,money:d.a.hacking_money_mult,growth:d.a.hacking_grow_mult}},getHacknetMultipliers:function(){return e("getHacknetMultipliers",Object(o.c)(d.a,"getHacknetMultipliers")),{production:d.a.hacknet_node_money_mult,purchaseCost:d.a.hacknet_node_purchase_cost_mult,ramCost:d.a.hacknet_node_ram_cost_mult,coreCost:d.a.hacknet_node_core_cost_mult,levelCost:d.a.hacknet_node_level_cost_mult}},getBitNodeMultipliers:function(){if(e("getBitNodeMultipliers",Object(o.c)(d.a,"getBitNodeMultipliers")),d.a.sourceFileLvl(5)<=0&&5!==d.a.bitNodeN)throw ut("getBitNodeMultipliers","Requires Source-File 5 to run.");return Object.assign({},l.a)},getServer:function(a=t.hostname){e("getServer",Object(o.c)(d.a,"getServer"));const r=dt.string("getServer","hostname",a),i=n(r,"getServer"),s=Object.assign({},i);return s.contracts=void 0,s.messages=void 0,s.runningScripts=void 0,s.scripts=void 0,s.textFiles=void 0,s.programs=void 0,s.serversOnNetwork=void 0,s.baseDifficulty||(s.baseDifficulty=0),s.hackDifficulty||(s.hackDifficulty=0),s.minDifficulty||(s.minDifficulty=0),s.moneyAvailable||(s.moneyAvailable=0),s.moneyMax||(s.moneyMax=0),s.numOpenPortsRequired||(s.numOpenPortsRequired=0),s.openPortCount||(s.openPortCount=0),s.requiredHackingSkill||(s.requiredHackingSkill=0),s.serverGrowth||(s.serverGrowth=0),s},getServerMoneyAvailable:function(a){e("getServerMoneyAvailable",Object(o.c)(d.a,"getServerMoneyAvailable"));const r=dt.string("getServerMoneyAvailable","hostname",a),i=n(r,"getServerMoneyAvailable");return i instanceof w.a?ft(i,"getServerMoneyAvailable")?0:"home"==i.hostname?(t.log("getServerMoneyAvailable",()=>"returned player's money: "+A.a.formatMoney(d.a.money)),d.a.money):(t.log("getServerMoneyAvailable",()=>`returned ${A.a.formatMoney(i.moneyAvailable)} for '${i.hostname}'`),i.moneyAvailable):(t.log("getServerMoneyAvailable",()=>"Cannot be executed on this server."),0)},getServerSecurityLevel:function(a){e("getServerSecurityLevel",Object(o.c)(d.a,"getServerSecurityLevel"));const r=dt.string("getServerSecurityLevel","hostname",a),i=n(r,"getServerSecurityLevel");return i instanceof w.a?ft(i,"getServerSecurityLevel")?1:(t.log("getServerSecurityLevel",()=>`returned ${A.a.formatServerSecurity(i.hackDifficulty)} for '${i.hostname}'`),i.hackDifficulty):(t.log("getServerSecurityLevel",()=>"Cannot be executed on this server."),1)},getServerBaseSecurityLevel:function(a){e("getServerBaseSecurityLevel",Object(o.c)(d.a,"getServerBaseSecurityLevel"));const r=dt.string("getServerBaseSecurityLevel","hostname",a);t.log("getServerBaseSecurityLevel",()=>"getServerBaseSecurityLevel is deprecated because it's not useful.");const i=n(r,"getServerBaseSecurityLevel");return i instanceof w.a?ft(i,"getServerBaseSecurityLevel")?1:(t.log("getServerBaseSecurityLevel",()=>`returned ${A.a.formatServerSecurity(i.baseDifficulty)} for '${i.hostname}'`),i.baseDifficulty):(t.log("getServerBaseSecurityLevel",()=>"Cannot be executed on this server."),1)},getServerMinSecurityLevel:function(a){e("getServerMinSecurityLevel",Object(o.c)(d.a,"getServerMinSecurityLevel"));const r=dt.string("getServerMinSecurityLevel","hostname",a),i=n(r,"getServerMinSecurityLevel");return i instanceof w.a?ft(i,"getServerMinSecurityLevel")?1:(t.log("getServerMinSecurityLevel",()=>`returned ${A.a.formatServerSecurity(i.minDifficulty)} for ${i.hostname}`),i.minDifficulty):(t.log("getServerMinSecurityLevel",()=>"Cannot be executed on this server."),1)},getServerRequiredHackingLevel:function(a){e("getServerRequiredHackingLevel",Object(o.c)(d.a,"getServerRequiredHackingLevel"));const r=dt.string("getServerRequiredHackingLevel","hostname",a),i=n(r,"getServerRequiredHackingLevel");return i instanceof w.a?ft(i,"getServerRequiredHackingLevel")?1:(t.log("getServerRequiredHackingLevel",()=>`returned ${A.a.formatSkill(i.requiredHackingSkill)} for '${i.hostname}'`),i.requiredHackingSkill):(t.log("getServerRequiredHackingLevel",()=>"Cannot be executed on this server."),1)},getServerMaxMoney:function(a){e("getServerMaxMoney",Object(o.c)(d.a,"getServerMaxMoney"));const r=dt.string("getServerMaxMoney","hostname",a),i=n(r,"getServerMaxMoney");return i instanceof w.a?ft(i,"getServerMaxMoney")?0:(t.log("getServerMaxMoney",()=>`returned ${A.a.formatMoney(i.moneyMax)} for '${i.hostname}'`),i.moneyMax):(t.log("getServerMaxMoney",()=>"Cannot be executed on this server."),0)},getServerGrowth:function(a){e("getServerGrowth",Object(o.c)(d.a,"getServerGrowth"));const r=dt.string("getServerGrowth","hostname",a),i=n(r,"getServerGrowth");return i instanceof w.a?ft(i,"getServerGrowth")?1:(t.log("getServerGrowth",()=>`returned ${i.serverGrowth} for '${i.hostname}'`),i.serverGrowth):(t.log("getServerGrowth",()=>"Cannot be executed on this server."),1)},getServerNumPortsRequired:function(a){e("getServerNumPortsRequired",Object(o.c)(d.a,"getServerNumPortsRequired"));const r=dt.string("getServerNumPortsRequired","hostname",a),i=n(r,"getServerNumPortsRequired");return i instanceof w.a?ft(i,"getServerNumPortsRequired")?5:(t.log("getServerNumPortsRequired",()=>`returned ${i.numOpenPortsRequired} for '${i.hostname}'`),i.numOpenPortsRequired):(t.log("getServerNumPortsRequired",()=>"Cannot be executed on this server."),5)},getServerRam:function(a){e("getServerRam",Object(o.c)(d.a,"getServerRam"));const r=dt.string("getServerRam","hostname",a);t.log("getServerRam",()=>"getServerRam is deprecated in favor of getServerMaxRam / getServerUsedRam");const i=n(r,"getServerRam");return t.log("getServerRam",()=>`returned [${A.a.formatRAM(i.maxRam)}, ${A.a.formatRAM(i.ramUsed)}]`),[i.maxRam,i.ramUsed]},getServerMaxRam:function(a){e("getServerMaxRam",Object(o.c)(d.a,"getServerMaxRam"));const r=dt.string("getServerMaxRam","hostname",a),i=n(r,"getServerMaxRam");return t.log("getServerMaxRam",()=>"returned "+A.a.formatRAM(i.maxRam)),i.maxRam},getServerUsedRam:function(a){e("getServerUsedRam",Object(o.c)(d.a,"getServerUsedRam"));const r=dt.string("getServerUsedRam","hostname",a),i=n(r,"getServerUsedRam");return t.log("getServerUsedRam",()=>"returned "+A.a.formatRAM(i.ramUsed)),i.ramUsed},serverExists:function(t){e("serverExists",Object(o.c)(d.a,"serverExists"));const n=dt.string("serverExists","hostname",t);return null!==Object(v.d)(n)},fileExists:function(a,r=t.hostname){e("fileExists",Object(o.c)(d.a,"fileExists"));const i=dt.string("fileExists","filename",a),s=dt.string("fileExists","hostname",r);if(void 0===i)throw ut("fileExists","Usage: fileExists(scriptname, [server])");const l=n(s,"fileExists");for(let t=0;t`Invalid argument: ram='${a}'`),1/0):r},purchaseServer:function(n,a){e("purchaseServer",Object(o.c)(d.a,"purchaseServer"));const r=dt.string("purchaseServer","name",n),i=dt.number("purchaseServer","ram",a);if(2!==arguments.length)throw ut("purchaseServer","Takes 2 arguments");let s=String(r);if(s=s.replace(/\s+/g,""),""==s)return t.log("purchaseServer",()=>`Invalid argument: hostname='${s}'`),"";if(d.a.purchasedServers.length>=Object(_.b)())return t.log("purchaseServer",()=>`You have reached the maximum limit of ${Object(_.b)()} servers. You cannot purchase any more.`),"";const l=Object(_.a)(i);if(l===1/0)return i>Object(_.c)()?t.log("purchaseServer",()=>`Invalid argument: ram='${i}' must not be greater than getPurchaseServerMaxRam`):t.log("purchaseServer",()=>`Invalid argument: ram='${i}' must be a positive power of 2`),"";if(d.a.money"Not enough money to purchase server. Need "+A.a.formatMoney(l)),"";const c=Object(k.g)({ip:Object(v.e)(),hostname:s,organizationName:"",isConnectedTo:!1,adminRights:!0,purchasedByPlayer:!0,maxRam:i});Object(v.a)(c),d.a.purchasedServers.push(c.hostname);const f=d.a.getHomeComputer();return f.serversOnNetwork.push(c.hostname),c.serversOnNetwork.push(f.hostname),d.a.loseMoney(l,"servers"),t.log("purchaseServer",()=>`Purchased new server with hostname '${c.hostname}' for ${A.a.formatMoney(l)}`),c.hostname},deleteServer:function(n){e("deleteServer",Object(o.c)(d.a,"deleteServer"));const a=dt.string("purchaseServer","name",n);let r=String(a);r=r.replace(/\s\s+/g,"");const i=Object(v.d)(r);if(!(i instanceof w.a))return t.log("deleteServer",()=>`Invalid argument: hostname='${r}'`),!1;if(!i.purchasedByPlayer||"home"===i.hostname)return t.log("deleteServer",()=>"Cannot delete non-purchased server."),!1;const s=i.hostname;if(i.isConnectedTo)return t.log("deleteServer",()=>"You are currently connected to the server you are trying to delete."),!1;if(s===t.hostname)return t.log("deleteServer",()=>"Cannot delete the server this script is running on."),!1;if(i.runningScripts.length>0)return t.log("deleteServer",()=>`Cannot delete server '${s}' because it still has scripts running.`),!1;let l=!1;for(let t=0;t`Could not identify server ${s} as a purchased server. This is a bug. Report to dev.`),!1;Object(v.b)(s),l=!1;const c=d.a.getHomeComputer();for(let e=0;e"Deleted server '"+r),!0;return t.log("deleteServer",()=>`Could not find server ${s} as a purchased server. This is a bug. Report to dev.`),!1},getPurchasedServers:function(){e("getPurchasedServers",Object(o.c)(d.a,"getPurchasedServers"));const t=[];return d.a.purchasedServers.forEach((function(e){t.push(e)})),t},writePort:function(t,n=""){e("writePort",Object(o.c)(d.a,"writePort"));const a=dt.number("writePort","port",t);if("string"!=typeof n&&"number"!=typeof n)throw ut("writePort","Trying to write invalid data to a port: only strings and numbers are valid.");const r=dt.getValidPort("writePort",a);return Promise.resolve(r.write(n))},write:function(n,a="",r="a"){e("write",Object(o.c)(d.a,"write"));const i=dt.string("write","port",n),s=dt.string("write","mode",r);if(Object(I.a)(i)){let e=i;if(!Object(x.j)(e))throw ut("write","Invalid filepath: "+e);0===e.lastIndexOf("/")&&(e=Object(x.k)(e));try{a=String(a)}catch(t){throw ut("write",`Invalid data (${t}). Data being written must be convertible to a string`)}const n=t.getServer();if(null==n)throw ut("write","Error getting Server. This is a bug. Report to dev.");if(Object(b.a)(e)){let r=t.getScriptOnServer(e,n);return null==r?(r=new g.a(d.a,e,a,n.hostname,n.scripts),n.scripts.push(r),r.updateRamUsage(d.a,n.scripts)):("w"===s?r.code=a:r.code+=a,r.updateRamUsage(d.a,n.scripts))}{const t=Object(C.c)(e,n);if(null==t)return Object(C.b)(e,a,n),Promise.resolve();"w"===s?t.write(a):t.append(a)}return Promise.resolve()}throw ut("write","Invalid argument: "+i)},tryWritePort:function(t,n=""){e("tryWritePort",Object(o.c)(d.a,"tryWritePort"));let a=dt.number("tryWritePort","port",t);if("string"!=typeof n&&"number"!=typeof n)throw ut("tryWritePort","Trying to write invalid data to a port: only strings and numbers are valid.");if(isNaN(a))throw ut("tryWritePort","Invalid argument: "+a);{if(a=Math.round(a),a<1||a>c.a.NumNetscriptPorts)throw ut("tryWritePort",`Invalid port: ${a}. Only ports 1-${c.a.NumNetscriptPorts} are valid.`);const t=L.a[a-1];if(null==t||!(t instanceof Object))throw ut("tryWritePort",`Could not find port: ${a}. This is a bug. Report to dev.`);return Promise.resolve(t.tryWrite(n))}},readPort:function(t){e("readPort",Object(o.c)(d.a,"readPort"));const n=dt.number("readPort","port",t);return dt.getValidPort("readPort",n).read()},read:function(n){e("read",Object(o.c)(d.a,"read"));const a=dt.string("read","port",n);if(Object(I.a)(a)){const e=a,n=Object(v.d)(t.hostname);if(null==n)throw ut("read","Error getting Server. This is a bug. Report to dev.");if(Object(b.a)(e)){const a=t.getScriptOnServer(e,n);return null==a?"":a.code}{const t=Object(C.c)(e,n);return null!==t?t.text:""}}throw ut("read","Invalid argument: "+a)},peek:function(t){e("peek",Object(o.c)(d.a,"peek"));const n=dt.number("peek","port",t);return dt.getValidPort("peek",n).peek()},clear:function(n){e("clear",Object(o.c)(d.a,"clear"));const a=dt.string("peek","file",n);if(!Object(I.a)(a))throw ut("clear","Invalid argument: "+a);{const e=a,n=Object(v.d)(t.hostname);if(null==n)throw ut("clear","Error getting Server. This is a bug. Report to dev.");const r=Object(C.c)(e,n);null!=r&&r.write("")}},clearPort:function(t){e("clearPort",Object(o.c)(d.a,"clearPort"));const n=dt.number("clearPort","port",t);dt.getValidPort("clearPort",n).clear()},getPortHandle:function(t){e("getPortHandle",Object(o.c)(d.a,"getPortHandle"));const n=dt.number("getPortHandle","port",t);return dt.getValidPort("getPortHandle",n)},rm:function(a,r){e("rm",Object(o.c)(d.a,"rm"));const i=dt.string("rm","fn",a);null!=r&&""!==r||(r=t.hostname);const s=n(r,"rm").removeFile(i);return s.res||t.log("rm",()=>s.msg+""),s.res},scriptRunning:function(t,a){e("scriptRunning",Object(o.c)(d.a,"scriptRunning"));const r=dt.string("scriptRunning","scriptname",t),i=dt.string("scriptRunning","hostname",a),s=n(i,"scriptRunning");for(let t=0;t"invalid for this kind of server"),1/0)},getGrowTime:function(a=t.hostname){e("getGrowTime",Object(o.c)(d.a,"getGrowTime"));const r=dt.string("getGrowTime","hostname",a),i=n(r,"getGrowTime");return i instanceof w.a?ft(i,"getGrowTime")?1/0:1e3*Object(f.a)(i,d.a):(t.log("getGrowTime",()=>"invalid for this kind of server"),1/0)},getWeakenTime:function(a=t.hostname){e("getWeakenTime",Object(o.c)(d.a,"getWeakenTime"));const r=dt.string("getWeakenTime","hostname",a),i=n(r,"getWeakenTime");return i instanceof w.a?ft(i,"getWeakenTime")?1/0:1e3*Object(f.f)(i,d.a):(t.log("getWeakenTime",()=>"invalid for this kind of server"),1/0)},getScriptIncome:function(a,r,...i){if(e("getScriptIncome",Object(o.c)(d.a,"getScriptIncome")),0===arguments.length){const t=[];let e=0;for(const t of M.a.values())e+=t.scriptRef.onlineMoneyMade/t.scriptRef.onlineRunningTime;return t.push(e),t.push(d.a.scriptProdSinceLastAug/(d.a.playtimeSinceLastAug/1e3)),t}{const e=n(r,"getScriptIncome"),o=Object(y.a)(a,i,e);return null==o?(t.log("getScriptIncome",()=>`No such script '${a}' on '${e.hostname}' with args: ${Object(P.a)(i)}`),-1):o.onlineMoneyMade/o.onlineRunningTime}},getScriptExpGain:function(a,r,...i){if(e("getScriptExpGain",Object(o.c)(d.a,"getScriptExpGain")),0===arguments.length){let t=0;for(const e of M.a.values())t+=e.scriptRef.onlineExpGained/e.scriptRef.onlineRunningTime;return t}{const e=n(r,"getScriptExpGain"),o=Object(y.a)(a,i,e);return null==o?(t.log("getScriptExpGain",()=>`No such script '${a}' on '${e.hostname}' with args: ${Object(P.a)(i)}`),-1):o.onlineExpGained/o.onlineRunningTime}},nFormat:function(t,n){e("nFormat",Object(o.c)(d.a,"nFormat"));const a=dt.number("nFormat","n",t),r=dt.string("nFormat","format",n);return isNaN(a)?"":A.a.format(a,r)},tFormat:function(t,n=!1){e("tFormat",Object(o.c)(d.a,"tFormat"));const a=dt.number("tFormat","milliseconds",t),r=dt.boolean(n);return Object(R.b)(a,r)},getTimeSinceLastAug:function(){return e("getTimeSinceLastAug",Object(o.c)(d.a,"getTimeSinceLastAug")),d.a.playtimeSinceLastAug},alert:function(t){e("alert",Object(o.c)(d.a,"alert"));const n=dt.string("alert","message",t);Object(X.a)(n)},toast:function(t,n=Q.d.SUCCESS,a=2e3){e("toast",Object(o.c)(d.a,"toast"));const r=dt.string("toast","message",t),i=dt.string("toast","variant",n);if(!Object(Z.a)(Q.d,i))throw new Error("variant must be one of "+Object.values(Q.d).join(", "));Q.b.emit(r,i,a)},prompt:function(t,n){e("prompt",Object(o.c)(d.a,"prompt"));const a=dt.string("toast","txt",t);return new Promise((function(t){E.a.emit({txt:a,options:n,resolve:t})}))},wget:async function(a,i,s=t.hostname){e("wget",Object(o.c)(d.a,"wget"));const l=dt.string("wget","url",a),c=dt.string("wget","target",i),f=dt.string("wget","hostname",s);if(!Object(b.a)(c)&&!c.endsWith(".txt"))return t.log("wget",()=>`Invalid target file: '${c}'. Must be a script or text file.`),Promise.resolve(!1);const u=n(f,"wget");return new Promise((function(e){r.a.get(l,(function(n){let a;return a=Object(b.a)(c)?u.writeToScriptFile(d.a,c,n):u.writeToTextFile(c,n),a.success?a.overwritten?(t.log("wget",()=>`Successfully retrieved content and overwrote '${c}' on '${f}'`),e(!0)):(t.log("wget",()=>`Successfully retrieved content to new file '${c}' on '${f}'`),e(!0)):(t.log("wget",()=>"Failed."),e(!1))}),"text").fail((function(n){return t.log("wget",()=>JSON.stringify(n)),e(!1)}))}))},getFavorToDonate:function(){return e("getFavorToDonate",Object(o.c)(d.a,"getFavorToDonate")),Math.floor(c.a.BaseFavorToDonate*l.a.RepToDonateToFaction)},getOwnedSourceFiles:function(){e("getOwnedSourceFiles",Object(o.c)(d.a,"getOwnedSourceFiles"));const t=[];for(let e=0;e{n()}},mv:function(t,a,r){e("mv",Object(o.c)(d.a,"mv"));const i=dt.string("mv","host",t),s=dt.string("mv","source",a),l=dt.string("mv","destination",r);if(!Object(x.j)(s))throw ut("mv",`Invalid filename: '${s}'`);if(!Object(x.j)(l))throw ut("mv",`Invalid filename: '${l}'`);const c=s.endsWith(".txt"),f=l.endsWith(".txt");if(!Object(b.a)(s)&&!c)throw ut("mv","'mv' can only be used on scripts and text files (.txt)");if(c!=f)throw ut("mv","Source and destination files must have the same type");if(s===l)return;const u=n(i,"mv");if(!c&&u.isRunning(s))throw ut("mv","Cannot use 'mv' on a script that is running");const m=c?u.textFiles:u.scripts;let h=null,p=null;for(let t=0;t[t,!0]));return Mt}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var a=n(153),r=n(104);function i(t,e){const n=t.organizationName;let i=null;if("string"==typeof n&&""!==n&&(i=r.a[n]),!(i instanceof a.a))return;const o=e/t.moneyMax;Math.random()e&&(n=1),this.wanted=n,this.wanted<1&&(this.wanted=1)}e.gainMoney(n*t,"gang")}processTerritoryAndPowerGains(t=1){if(this.storedTerritoryAndPowerCycles+=t,this.storedTerritoryAndPowerCycles0&&(this.territoryClashChance=Math.max(0,this.territoryClashChance-.01));const n=c.a.Names.filter(t=>m.a[t].territory>0||t===e);if(n.length>1)for(let t=0;te!==n[t]),i=Object(l.a)(0,r.length-1),o=n[t],s=r[i];if(!(o!==e&&s!==e||Math.random()t.territory).reduce((t,e)=>t+e,0);console.log(u),Object.values(m.a).forEach(t=>t.territory/=u)}}processExperienceGains(t=1){for(let e=0;e=0;--t){const n=this.members[t];if("Territory Warfare"!==n.task)continue;const a=e/Math.pow(n.def,.6);Math.random()=c.a.MaximumGangMembers)&&this.respect>=this.getRespectNeededToRecruitMember()}getRespectNeededToRecruitMember(){if(this.members.length<3)return 0;const t=this.members.length-2;return Math.pow(5,t)}recruitMember(t){if(""===(t=String(t))||!this.canRecruitMember())return!1;if(this.members.filter(e=>e.name===t).length>=1)return!1;const e=new h.a(t);return this.members.push(e),!0}getWantedPenalty(){return this.respect/(this.respect+this.wanted)}calculatePower(){let t=0;for(let e=0;e"Ascended Gang member "+t.name),n}catch(t){throw null==e&&Object(s.a)(t),t}}getDiscount(){const t=this.getPower(),e=this.respect,n=Math.pow(e,.01)+e/5e6+Math.pow(t,.01)+t/1e6-1;return Math.max(1,n)}getAllTaskNames(){return Object.keys(u.a).filter(t=>{const e=u.a[t];return null!=e&&("Unassigned"!==e.name&&(this.isHackingGang===e.isHacking||!this.isHackingGang===e.isCombat))})}getUpgradeCost(t){return null==t?1/0:t.cost/this.getDiscount()}toJSON(){return Object(o.b)("Gang",this)}static fromJSON(t){return Object(o.a)(p,t.data)}}o.c.constructors.Gang=p},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(10);function r(t,e){return t/a.a.DonateMoneyToRepDivisor*e.faction_rep_mult}},,,,,,function(t,e,n){"use strict";function a(t,e,n=!1){let a="";const r=t.jobStatReqOffset,i=e.requiredHacking>0?e.requiredHacking+r:0,o=e.requiredStrength>0?e.requiredStrength+r:0,s=e.requiredDefense>0?e.requiredDefense+r:0,l=e.requiredDexterity>0?e.requiredDexterity+r:0,c=e.requiredDexterity>0?e.requiredDexterity+r:0,f=e.requiredCharisma>0?e.requiredCharisma+r:0,u=e.requiredReputation;return n?(a="Requires:
",a+=i.toString()+" hacking
",a+=o.toString()+" strength
",a+=s.toString()+" defense
",a+=l.toString()+" dexterity
",a+=c.toString()+" agility
",a+=f.toString()+" charisma
",a+=u.toString()+" reputation"):(a="(Requires ",i>0&&(a+=i+" hacking, "),o>0&&(a+=o+" strength, "),s>0&&(a+=s+" defense, "),l>0&&(a+=l+" dexterity, "),c>0&&(a+=c+" agility, "),f>0&&(a+=f+" charisma, "),u>1&&(a+=u+" reputation, "),a=a.substring(0,a.length-2),a+=")"),a}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return i}));const a=["Type 'help name' to learn more about the command "," ",' alias [-g] [name="value"] Create or display Terminal aliases'," analyze Get information about the current machine "," backdoor Install a backdoor on the current machine "," buy [-l/-a/program] Purchase a program through the Dark Web"," cat [file] Display a .msg, .lit, or .txt file"," cd [dir] Change to a new directory"," check [script] [args...] Print a script's logs to Terminal"," clear Clear all text on the terminal "," cls See 'clear' command "," connect [hostname] Connects to a remote server"," cp [src] [dst] Copy a file"," download [script/text file] Downloads scripts or text files to your computer"," expr [math expression] Evaluate a mathematical expression"," free Check the machine's memory (RAM) usage"," grow Spoof money in a servers bank account, increasing the amount available."," hack Hack the current machine"," help [command] Display this help text, or the help text for a command"," history [-c] Display the terminal history"," home Connect to home computer"," hostname Displays the hostname of the machine"," kill [script/pid] [args...] Stops the specified script on the current server "," killall Stops all running scripts on the current machine"," ls [dir] [--grep pattern] Displays all files on the machine"," lscpu Displays the number of CPU cores on the machine"," mem [script] [-t n] Displays the amount of RAM required to run the script"," mv [src] [dest] Move/rename a text or script file"," nano [file ...] Text editor - Open up and edit one or more scripts or text files"," ps Display all scripts that are currently running"," rm [file] Delete a file from the server"," run [name] [-t n] [--tail] [args...] Execute a program or script"," scan Prints all immediately-available network connections"," scan-analyze [d] [-a] Prints info for all servers up to d nodes away"," scp [file ...] [server] Copies a file to a destination server"," sudov Shows whether you have root access on this computer"," tail [script] [args...] Displays dynamic logs for the specified script"," top Displays all running scripts and their RAM usage"," unalias [alias name] Deletes the specified alias"," vim [file ...] Text editor - Open up and edit one or more scripts or text files in vim mode"," weaken Reduce the security of the current machine"," wget [url] [target file] Retrieves code/text from a web server"," "],r=t=>[`Usage: ${t} [file ...] | [glob]`," ","Opens up the specified file(s) in the Script Editor. Only scripts (.js, .ns, .script) or text files (.txt) ","can be edited using the Script Editor. If a file does not exist a new one will be created"," ",`If provided a glob as the only argument, ${t} can spider directories and open all matching `,`files at once. ${t} cannot create files using globs, so your scripts must already exist.`," ","Examples:"," ",` ${t} test.js`,` ${t} test.js test2.js`," ",` ${t} test.*`,` ${t} /my-dir/*.js`," "],i={alias:['Usage: alias [-g] [name="value"] '," ","Create or display aliases. An alias enables a replacement of a word with another string. ","It can be used to abbreviate a commonly used command, or commonly used parts of a command. The NAME ","of an alias defines the word that will be replaced, while the VALUE defines what it will be replaced by. For example, ","you could create the alias 'nuke' for the Terminal command 'run NUKE.exe' using the following: "," ",' alias nuke="run NUKE.exe"'," ","Then, to run the NUKE.exe program you would just have to enter 'nuke' in Terminal rather than the full command. ","It is important to note that 'default' aliases will only be substituted for the first word of a Terminal command. For ","example, if the following alias was set: "," ",' alias worm="HTTPWorm.exe"'," ","and then you tried to run the following terminal command: "," "," run worm"," ","This would fail because the worm alias is not the first word of a Terminal command. To allow an alias to be substituted ","anywhere in a Terminal command, rather than just the first word, you must set it to be a global alias using the -g flag: "," ",' alias -g worm="HTTPWorm.exe"'," ","Now, the 'worm' alias will be substituted anytime it shows up as an individual word in a Terminal command. "," ","Entering just the command 'alias' without any arguments prints the list of all defined aliases in the reusable form ","'alias NAME=VALUE' on the Terminal. "," ","The 'unalias' command can be used to remove aliases."," "],analyze:["Usage: analyze"," ","Prints details and statistics about the current server. The information that is printed includes basic ","server details such as the hostname, whether the player has root access, what ports are opened/closed, and also ","hacking-related information such as an estimated chance to successfully hack, an estimate of how much money is ","available on the server, etc."," "],backdoor:["Usage: backdoor"," ","Install a backdoor on the current machine, grants a secret bonus depending on the machine."," ","Requires root access to run."," "],buy:["Usage: buy [-l / -a / program]"," ","Purchase a program through the Dark Web. Requires a TOR router to use."," ","If this command is ran with the '-l' flag, it will display a list of all programs that can be bought through the ","dark web to the Terminal, as well as their costs."," ","If this command is ran with the '-a' flag, it will attempt to purchase all unowned programs."," ","Otherwise, the name of the program must be passed in as a parameter. This name is NOT case-sensitive."," "],cat:["Usage: cat [file]"," ","Display message (.msg), literature (.lit), or text (.txt) files. Examples:"," "," cat j1.msg"," "," cat foo.lit"," "," cat servers.txt"," "],cd:["Usage: cd [dir]"," ","Change to the specified directory. Note that this works even for directories that don't exist. If you ","change to a directory that does not exist, it will not be 'created'. Examples:"," "," cd scripts/hacking"," "," cd /logs"," "," cd ../"," "],check:["Usage: check [script name] [args...]"," ","Print the logs of the script specified by the script name and arguments to the Terminal. Each argument must be separated by ","a space. Remember that a running script is uniquely ","identified both by its name and the arguments that are used to start it. So, if a script was ran with the following arguments: "," "," run foo.script 1 2 foodnstuff"," ","Then to run the 'check' command on this script you would have to pass the same arguments in: "," "," check foo.script 1 2 foodnstuff"," "],clear:["Usage: clear"," ","Clear the Terminal screen, deleting all of the text. Note that this does not delete the user's command history, so using the up ","and down arrow keys is still valid. Also note that this is permanent and there is no way to undo this. Synonymous with 'cls' command"," "],cls:["Usage: cls"," ","Clear the Terminal screen, deleting all of the text. Note that this does not delete the user's command history, so using the up ","and down arrow keys is still valid. Also note that this is permanent and there is no way to undo this. Synonymous with 'clear' command"," "],connect:["Usage: connect [hostname]"," ","Connect to a remote server. The hostname of the remote server must be given as the argument ","to this command. Note that only servers that are immediately adjacent to the current server in the network and the ones that have","a backdoor installed can be connected to. To see which servers can be connected to, use the 'scan' command."," "],cp:["Usage: cp [src] [dst]"," ","Copy a file on this server. To copy a file to another server use scp."," "],download:["Usage: download [script/text file]"," ","Downloads a script or text file to your computer (like your real life computer)."," ","You can also download all of your scripts/text files as a zip file using the following Terminal commands:"," ","Download all scripts and text files: download *"," ","Download all scripts: download *.script"," ","Download all text files: download *.txt"," "],expr:["Usage: expr [mathematical expression]"," ","Evaluate a simple mathematical expression. Supports native JavaScript operators:"," ","+, -, /, *, **, %"," ","Example:"," "," expr 25 * 2 ** 10"," ","Note that letters (non-digits) are not allowed and will be removed from the input."," "],free:["Usage: free"," ","Displays the memory usage on the current machine. Print the amount of RAM that is available on the current server as well as ","how much of it is being used."," "],grow:["Usage: grow"," ","Spoof transactions in the current server. Increasing the money available by hacking. Requires root access.","See the wiki page for hacking mechanics."," "],hack:["Usage: hack"," ","Attempt to hack the current server. Requires root access in order to be run. See the wiki page for hacking mechanics"," "],help:["Usage: help [command]"," ","Display Terminal help information. Without arguments, 'help' prints a list of all valid Terminal commands and a brief ","description of their functionality. You can also pass the name of a Terminal command as an argument to 'help' to print ","more detailed information about the Terminal command. Examples: "," "," help alias"," "," help scan-analyze"," "],history:["Usage: history [-c]"," ","Without arguments, displays the terminal command history. To clear the history, pass in the '-c' argument."," "],home:["Usage: home"," ","Connect to your home computer. This will work no matter what server you are currently connected to."," "],hostname:["Usage: hostname"," ","Prints the hostname of the current server"," "],kill:["Usage: kill [script name] [args...] or kill [pid"," ","Kill the script specified by the script name and arguments OR by its PID."," ","If you are killing the script using its filename and arguments, then each ","argument must be separated by a space. Remember that a running script is ","uniquely identified by both its name and the arguments that are used to start ","it. So, if a script was ran with the following arguments:"," "," run foo.script 1 sigma-cosmetics"," ","Then to kill this script the same arguments would have to be used:"," "," kill foo.script 1 sigma-cosmetics"," ","If you are killing the script using its PID, then the PID argument must be numeric"," "],killall:["Usage: killall"," ","Kills all scripts on the current server. ","Note that after the 'kill' command is issued for a script, it may take a while for the script to actually stop running. ","This will happen if the script is in the middle of a command such as grow() or weaken() that takes time to execute. ","The script will not be stopped/killed until after that time has elapsed."," "],ls:["Usage: ls [dir] [-l] [--grep pattern]"," ","The ls command, with no arguments, prints all files and directories on the current server's directory to the Terminal screen. ","The files will be displayed in alphabetical order. "," ","The 'dir' optional parameter can be used to display files/directories in another directory."," ","The '-l' optional parameter allows you to force each item onto a single line."," ","The '--grep pattern' optional parameter can be used to only display files whose filenames match the specified pattern."," ","Examples:"," ","List all files with the '.script' extension in the current directory:"," "," ls -l --grep .script"," ","List all files with the '.js' extension in the root directory:"," "," ls / -l --grep .js"," ","List all files with the word 'purchase' in the filename, in the 'scripts' directory:"," "," ls scripts -l --grep purchase"," "],lscpu:["Usage: lscpu"," ","Prints the number of CPU Cores the current server has"," "],mem:["Usage: mem [script name] [-t num_threads]"," ","Displays the amount of RAM needed to run the specified script with a single thread. The command can also be used to print ","the amount of RAM needed to run a script with multiple threads using the '-t' flag. If the '-t' flag is specified, then ","an argument for the number of threads must be passed in afterwards. Examples:"," "," mem foo.script"," "," mem foo.script -t 50"," ","The first example above will print the amount of RAM needed to run 'foo.script' with a single thread. The second example ","above will print the amount of RAM needed to run 'foo.script' with 50 threads."," "],mv:["Usage: mv [src] [dest]"," ","Move the source file to the specified destination. This can also be used to rename files. ","This command only works for scripts and text files (.txt). This command CANNOT be used to ","convert to different file types"," ","Note that, unlike the Linux 'mv' command, the destination argument must be the ","full filepath. ","Examples: "," "," mv hacking-controller.script scripts/hacking-controller.script"," "," mv myScript.js myOldScript.js"," "],nano:r("nano"),ps:["Usage: ps"," ","Prints all scripts that are running on the current server"," "],rm:["Usage: rm [file]"," ","Removes the specified file from the current server. A file can be a script, a program, or a message file. "," ","WARNING: This is permanent and cannot be undone"," "],run:["Usage: run [file name] [-t] [num threads] [args...]"," ","Execute a program, script or coding contract."," ","The '[-t]', '[num threads]', and '[args...]' arguments are only valid when running a script. The '-t' flag is used ","to indicate that the script should be run with the specified number of threads. If the flag is omitted, ","then the script will be run with a single thread by default. ","If the '-t' flag is used, then it MUST come immediately ","after the script name, and the [num threads] argument MUST come immediately afterwards. "," ","[args...] represents a variable number of arguments that will be passed into the script. See the documentation ","about script arguments. Each specified argument must be separated by a space. "," "],scan:["Usage: scan"," ","Prints all immediately-available network connection. This will print a list of all servers that you can currently connect ","to using the 'connect' Terminal command."," "],"scan-analyze":["Usage: scan-analyze [depth] [-a]"," ","Prints detailed information about all servers up to [depth] nodes away on the network. Calling ","'scan-analyze 1' will display information for the same servers that are shown by the 'scan' Terminal ","command. This command also shows the relative paths to reach each server."," ","By default, the maximum depth that can be specified for 'scan-analyze' is 3. However, once you have ","the DeepscanV1.exe and DeepscanV2.exe programs, you can execute 'scan-analyze' with a depth up to ","5 and 10, respectively."," ","The information 'scan-analyze' displays about each server includes whether or not you have root access to it, ","its required hacking level, the number of open ports required to run NUKE.exe on it, and how much RAM ","it has."," ","By default, this command will not display servers that you have purchased. However, you can pass in the ","-a flag at the end of the command if you would like to enable that."," "],scp:["Usage: scp [filename ...] [target server]"," ","Copies the specified file(s) from the current server to the target server. ","This command only works for script files (.script or .js extension), literature files (.lit extension), ","and text files (.txt extension). ","The second argument passed in must be the hostname or IP of the target server. Examples:"," "," scp foo.script n00dles"," "," scp foo.script bar.script n00dles"," "],sudov:["Usage: sudov"," ","Prints whether or not you have root access to the current machine"," "],tail:["Usage: tail [script name] [args...]"," ","Displays dynamic logs for the script specified by the script name and arguments. Each argument must be separated ","by a space. Remember that a running script is uniquely identified by both its name and the arguments that were used ","to run it. So, if a script was ran with the following arguments: "," "," run foo.script 10 50000"," ","Then in order to check its logs with 'tail' the same arguments must be used: "," "," tail foo.script 10 50000"," "],top:["Usage: top"," ","Prints a list of all scripts running on the current server as well as their thread count and how much ","RAM they are using in total."," "],unalias:["Usage: unalias [alias name]"," ","Deletes the specified alias. Note that the double quotation marks are required. "," ","As an example, if an alias was declared using:"," ",' alias r="run"'," ","Then it could be removed using:"," "," unalias r"," ","It is not necessary to differentiate between global and non-global aliases when using 'unalias'"," "],vim:r("vim"),weaken:["Usage: weaken"," ","Reduces the security level of the current server. Decreasing the time it takes for all operations on this server.","Requires root access. See the wiki page for hacking mechanics."," "],wget:["Usage: wget [url] [target file]"," ","Retrieves data from a URL and downloads it to a file on the current server. The data can only ","be downloaded to a script (.script, .ns, .js) or a text file (.txt). If the file already exists, ","it will be overwritten by this command."," ","Note that it will not be possible to download data from many websites because they do not allow ","cross-origin resource sharing (CORS). Example:"," "," wget https://raw.githubusercontent.com/danielyxie/bitburner/master/README.md game_readme.txt"," "]}},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return c}));var a,r,i=n(25),o=n(252),s=n(10);!function(t){t[t.Production=0]="Production",t[t.Development=1]="Development"}(a||(a={})),function(t){t[t.Browser=0]="Browser",t[t.Steam=1]="Steam"}(r||(r={}));const l="https://github.com/danielyxie/bitburner/issues/new";function c(t,e,n){var c,f,u;const m=function(t,e,n){const i=navigator.userAgent.toLowerCase().indexOf(" electron/")>-1,l=a.Production,c={version:s.a.VersionString,hash:Object(o.a)(),toDisplay:()=>`v${s.a.VersionString} (${Object(o.a)()})`},f={userAgent:navigator.userAgent,language:navigator.language,cookiesEnabled:navigator.cookieEnabled,doNotTrack:navigator.doNotTrack,indexedDb:!!window.indexedDB};return{platform:i?r.Steam:r.Browser,environment:l,version:c,features:f,error:t,errorInfo:e,page:n}}(t,e,n),h=m.error.fileName,d=`lang=${m.features.language} cookiesEnabled=${m.features.cookiesEnabled.toString()} doNotTrack=${m.features.doNotTrack} indexedDb=${m.features.indexedDb.toString()}`,p=`${m.error.name}: ${m.error.message}${m.page&&` (at "${i.a[m.page]}")`}`,g=`\n## ${p}\n\n### How did this happen?\n\nPlease fill this information with details if relevant.\n\n- [ ] Save file\n- [ ] Minimal scripts to reproduce the issue\n- [ ] Steps to reproduce\n\n### Environment\n\n* Error: ${null!==(c=null===(f=m.error)||void 0===f?void 0:f.toString())&&void 0!==c?c:"n/a"}\n* Page: ${m.page?i.a[m.page]:"n/a"}\n* Version: ${m.version.toDisplay()}\n* Environment: ${a[m.environment]}\n* Platform: ${r[m.platform]}\n* UserAgent: ${navigator.userAgent}\n* Features: ${d}\n* Source: ${null!=h?h:"n/a"}\n\n${m.environment===a.Development?`\n### Stack Trace\n\`\`\`\n${null===(u=m.errorInfo)||void 0===u?void 0:u.componentStack.toString().trim()}\n\`\`\`\n`:""}\n### Save\n\`\`\`\nCopy your save here if possible\n\`\`\`\n`.trim();return{metadata:m,fileName:h,features:d,title:p,body:g,issueUrl:`${l}?title=${encodeURIComponent(p)}&body=${encodeURIComponent(g)}`}}},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(33);function r(t){const e=Math.max(Math.min(t,255),0);return Object(a.a)(0,e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(33);const r={Tracking:()=>Object(a.a)(5,75)/10,"Bounty Hunter":()=>Object(a.a)(5,75)/10,Retirement:()=>Object(a.a)(5,75)/10,Investigation:()=>Object(a.a)(10,40)/10,"Undercover Operation":()=>Object(a.a)(10,40)/10,"Sting Operation":()=>Object(a.a)(3,40)/10,Raid:()=>Object(a.a)(2,40)/10,"Stealth Retirement Operation":()=>Object(a.a)(1,20)/10,Assassination:()=>Object(a.a)(1,20)/10}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(154);function r(t){const e={},n=Object.keys(a.a);for(let a=0;a{var e;return c.a.createElement(a.a,{sx:{height:"fit-content",p:1}},c.a.createElement(r.a,{variant:"h6"},t.title),(null===(e=t.children)||void 0===e?void 0:e.length)>1?c.a.createElement(i.a,{disablePadding:!0,dense:!0},t.children.filter(t=>t).map((t,e)=>c.a.createElement(o.a,{key:Object(s.uniqueId)(String(e)),sx:{px:0,display:"block"}},t))):t.children)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));class a{constructor(t){this.cards=t}addCards(...t){return new a([...this.cards,...t])}removeByIndex(t){if(t>=this.cards.length)throw new Error("Tried to remove invalid card from Hand by index: "+t);return new a([...this.cards.slice().splice(t,1)])}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(0),r=n(1),i=n(21),o=n(8);function s(t){return a.createElement(i.a,{title:null!=t.tooltip?a.createElement(r.a,null,t.tooltip):""},a.createElement(o.a,{onClick:t.onClick},t.text))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var a=n(19),r=n(149),i=n(0),o=n(1387),s=n(650),l=n(102);function c(t){const e=new o.a(t.width,t.height,t.fragments),n=Object(l.a)(e),c=Object(l.d)([t.width,t.height]);return i.createElement(a.a,null,i.createElement(r.a,{sx:{width:t.width,height:t.height}},i.createElement(s.a,{width:t.width,height:t.height,activeGrid:n,ghostGrid:c,gift:e,enter:()=>{},click:()=>{}})))}},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var a=n(116),r=n(253),i=n(83),o=n(226),s=n(101),l=n(341),c=n(322);function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class u{constructor(t={hostname:"",ip:Object(l.a)()}){f(this,"contracts",[]),f(this,"cpuCores",1),f(this,"ftpPortOpen",!1),f(this,"hasAdminRights",!1),f(this,"hostname",""),f(this,"httpPortOpen",!1),f(this,"ip",""),f(this,"isConnectedTo",!1),f(this,"maxRam",0),f(this,"messages",[]),f(this,"organizationName",""),f(this,"programs",[]),f(this,"ramUsed",0),f(this,"runningScripts",[]),f(this,"scripts",[]),f(this,"serversOnNetwork",[]),f(this,"smtpPortOpen",!1),f(this,"sqlPortOpen",!1),f(this,"sshPortOpen",!1),f(this,"textFiles",[]),f(this,"purchasedByPlayer",!1),this.ip=t.ip?t.ip:Object(l.a)(),this.hostname=t.hostname,this.organizationName=null!=t.organizationName?t.organizationName:"",this.isConnectedTo=null!=t.isConnectedTo&&t.isConnectedTo,this.hasAdminRights=null!=t.adminRights&&t.adminRights}addContract(t){this.contracts.push(t)}getContract(t){for(const e of this.contracts)if(e.fn===t)return e;return null}getRunningScript(t,e){for(const n of this.runningScripts)if(n.filename===t&&Object(c.a)(n.args,e))return n;return null}getScript(t){for(let e=0;ee.fn!==t.fn):this.contracts=this.contracts.filter(e=>e.fn!==t)}removeFile(t){if(t.endsWith(".exe")||null!=t.match(/^.+\.exe-\d+(?:\.\d*)?%-INC$/)){for(let e=0;ee.startsWith(t));e>-1&&this.programs.splice(e,1),this.programs.push(t)}writeToScriptFile(t,e,n){const a={success:!1,overwritten:!1};if(!Object(i.j)(e)||!Object(s.a)(e))return a;for(let r=0;r{h.subscribe(t=>e(t))}),null===t)return r.a.createElement(r.a.Fragment,null);function d(){null!==t&&(t.onClose(),e(null))}const p=o.d[t.c.type],g=[];for(const[e,n]of p.desc(t.c.data).split("\n").entries())g.push(r.a.createElement("span",{key:e,dangerouslySetInnerHTML:{__html:n+"
"}}));return r.a.createElement(l.a,{open:null!==t,onClose:d},r.a.createElement(s.a,{variant:"h4",value:t.c.type}),r.a.createElement(f.a,null,"You are attempting to solve a Coding Contract. You have ",t.c.getMaxNumTries()-t.c.tries," tries remaining, after which the contract will self-destruct."),r.a.createElement("br",null),r.a.createElement(f.a,null,g),r.a.createElement("br",null),r.a.createElement(u.a,{autoFocus:!0,placeholder:"Enter Solution here",value:n,onChange:function(t){c(t.target.value)},onKeyDown:function(e){if(null===t)return;const a=e.target.value;e.key===i.a.ENTER&&""!==a&&(e.preventDefault(),t.onAttempt(n),c(""),d())},InputProps:{endAdornment:r.a.createElement(m.a,{onClick:()=>{t.onAttempt(n),c(""),d()}},"Solve")}}))}},,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return u}));var a=n(0),r=n.n(a),i=n(38),o=n(29),s=n(125),l=n(1),c=n(8);const f=new s.a;function u(){const t=o.b.Router(),[e,n]=Object(a.useState)(!1);return Object(a.useEffect)(()=>f.subscribe(()=>n(!0)),[]),r.a.createElement(i.a,{open:e,onClose:()=>n(!1)},r.a.createElement(l.a,null,"WARNING: USING THIS PROGRAM WILL CAUSE YOU TO LOSE ALL OF YOUR PROGRESS ON THE CURRENT BITNODE.",r.a.createElement("br",null),r.a.createElement("br",null),"Do you want to travel to the BitNode Nexus? This allows you to reset the current BitNode and select a new one."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(c.a,{onClick:function(){t.toBitVerse(!0,!1),n(!1)}},"Travel to the BitVerse"))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var a=n(767),r=n(685),i=n(686),o=n(395),s=n(48),l=n(440),c=n(9),f=n(377),u=n(15),m=n(386),h=n(28),d=n(24),p=n(33),g=n(10),y=n(34);class b{constructor(){this.hacking=1,this.hp=10,this.max_hp=10,this.strength=1,this.defense=1,this.dexterity=1,this.agility=1,this.charisma=1,this.intelligence=0,this.hacking_chance_mult=1,this.hacking_speed_mult=1,this.hacking_money_mult=1,this.hacking_grow_mult=1,this.hacking_exp=0,this.strength_exp=0,this.defense_exp=0,this.dexterity_exp=0,this.agility_exp=0,this.charisma_exp=0,this.intelligence_exp=0,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.money=1e3+g.a.Donations,this.city=u.a.Sector12,this.location=c.a.TravelAgency,this.jobs={},this.companyName="",this.currentServer="",this.purchasedServers=[],this.hacknetNodes=[],this.hashManager=new f.a,this.factions=[],this.factionInvitations=[],this.queuedAugmentations=[],this.augmentations=[],this.sourceFiles=[],this.numPeopleKilled=0,this.karma=0,this.crime_money_mult=1,this.crime_success_mult=1,this.isWorking=!1,this.focus=!1,this.workType=y.d.None,this.workCostMult=1,this.workExpMult=1,this.currentWorkFactionName="",this.currentWorkFactionDescription="",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.createProgramName="",this.createProgramReqLvl=0,this.graftAugmentationName="",this.timeWorkedGraftAugmentation=0,this.className=y.a.None,this.crimeType=y.b.None,this.timeWorked=0,this.timeWorkedCreateProgram=0,this.timeNeededToCompleteWork=0,this.work_money_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.hasWseAccount=!1,this.hasTixApiAccess=!1,this.has4SData=!1,this.has4SDataTixApi=!1,this.gang=null,this.corporation=null,this.bladeburner=null,this.bladeburner_max_stamina_mult=1,this.bladeburner_stamina_gain_mult=1,this.bladeburner_analysis_mult=1,this.bladeburner_success_chance_mult=1,this.sleeves=[],this.sleevesFromCovenant=0,this.bitNodeN=1,this.entropy=0,this.lastUpdate=0,this.lastSave=0,this.totalPlaytime=0,this.playtimeSinceLastAug=0,this.playtimeSinceLastBitnode=0,this.moneySourceA=new m.a,this.moneySourceB=new m.a,this.scriptProdSinceLastAug=0,this.exploits=[],this.achievements=[],this.terminalCommandHistory=[],this.identifier=Object(d.c)("I-"+(new Date).getTime()+navigator.userAgent+window.innerWidth+window.innerHeight+Object(p.a)(100,999)),this.init=s.gb,this.prestigeAugmentation=s.jb,this.prestigeSourceFile=s.kb,this.receiveInvite=s.sb,this.calculateSkill=s.o,this.calculateSkillProgress=s.p,this.updateSkillLevels=s.Rb,this.resetMultipliers=s.vb,this.hasProgram=s.eb,this.setMoney=s.yb,this.gainMoney=s.M,this.loseMoney=s.ib,this.canAfford=s.s,this.recordMoneySource=s.tb,this.gainHackingExp=s.K,this.gainStrengthExp=s.N,this.gainDefenseExp=s.I,this.gainDexterityExp=s.J,this.gainAgilityExp=s.F,this.gainCharismaExp=s.G,this.gainIntelligenceExp=s.L,this.queryStatFromString=s.nb,this.resetWorkStatus=s.wb,this.processWorkEarnings=s.mb,this.startWork=s.Lb,this.cancelationPenalty=s.t,this.work=s.Sb,this.finishWork=s.D,this.startWorkPartTime=s.Mb,this.workPartTime=s.Ub,this.finishWorkPartTime=s.E,this.startFocusing=s.Jb,this.stopFocusing=s.Nb,this.startFactionWork=s.Ib,this.startFactionHackWork=s.Gb,this.startFactionFieldWork=s.Fb,this.startFactionSecurityWork=s.Hb,this.workForFaction=s.Tb,this.finishFactionWork=s.B,this.getWorkMoneyGain=s.X,this.getWorkHackExpGain=s.W,this.getWorkStrExpGain=s.Z,this.getWorkDefExpGain=s.U,this.getWorkDexExpGain=s.V,this.getWorkAgiExpGain=s.S,this.getWorkChaExpGain=s.T,this.getWorkRepGain=s.Y,this.process=s.lb,this.startCreateProgramWork=s.Db,this.createProgramWork=s.x,this.finishCreateProgramWork=s.z,this.startGraftAugmentationWork=s.Kb,this.graftAugmentationWork=s.w,this.finishGraftAugmentationWork=s.C,this.startClass=s.Cb,this.takeClass=s.Ob,this.finishClass=s.y,this.startCrime=s.Eb,this.commitCrime=s.v,this.finishCrime=s.A,this.singularityStopWork=s.Ab,this.takeDamage=s.Pb,this.regenerateHp=s.ub,this.hospitalize=s.fb,this.applyForJob=s.f,this.getNextCompanyPosition=s.R,this.quitJob=s.pb,this.hasJob=s.db,this.applyForSoftwareJob=s.m,this.applyForSoftwareConsultantJob=s.l,this.applyForItJob=s.e,this.applyForSecurityEngineerJob=s.j,this.applyForNetworkEngineerJob=s.g,this.applyForBusinessJob=s.c,this.applyForBusinessConsultantJob=s.b,this.applyForSecurityJob=s.k,this.applyForAgentJob=s.a,this.applyForEmployeeJob=s.d,this.applyForPartTimeEmployeeJob=s.h,this.applyForWaiterJob=s.n,this.applyForPartTimeWaiterJob=s.i,this.isQualified=s.hb,this.reapplyAllAugmentations=s.qb,this.reapplyAllSourceFiles=s.rb,this.checkForFactionInvitations=s.u,this.setBitNodeNumber=s.xb,this.queueAugmentation=s.ob,this.gainCodingContractReward=s.H,this.travel=s.Qb,this.gotoLocation=s.cb,this.canAccessGrafting=s.r,this.giveExploit=s.bb,this.giveAchievement=s.ab,this.getIntelligenceBonus=s.P,this.getCasinoWinnings=s.O,this.hasAugmentation=a.b,this.canAccessBladeburner=r.a,this.inBladeburner=r.b,this.startBladeburner=r.c,this.canAccessCorporation=i.a,this.hasCorporation=i.b,this.startCorporation=i.c,this.canAccessGang=o.a,this.isAwareOfGang=o.f,this.getGangFaction=o.b,this.getGangName=o.c,this.hasGangWith=o.d,this.inGang=o.e,this.startGang=o.g,this.hasTorRouter=l.f,this.getCurrentServer=l.b,this.getHomeComputer=l.c,this.getUpgradeHomeRamCost=l.e,this.getUpgradeHomeCoresCost=l.d,this.createHacknetServer=l.a,this.factionWorkType=y.c.None,this.committingCrimeThruSingFn=!1,this.singFnCrimeWorkerScript=null,this.getMult=s.Q,this.setMult=s.zb,this.canAccessCotMG=s.q,this.sourceFileLvl=s.Bb,this.applyEntropy=a.a}toJSON(){return Object(h.b)("PlayerObject",this)}static fromJSON(t){return Object(h.a)(b,t.data)}}h.c.constructors.PlayerObject=b},function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return m}));var a=n(0),r=n.n(a),i=n(106),o=n(38),s=n(29),l=n(125),c=n(1),f=n(8);const u=new l.a;function m(){const[t,e]=Object(a.useState)(null),n=s.b.Player();return Object(a.useEffect)(()=>u.subscribe(t=>e(t)),[]),r.a.createElement(o.a,{open:null!==t,onClose:()=>e(null)},r.a.createElement(c.a,{variant:"h4"},"You have received a faction invitation."),r.a.createElement(c.a,null,"Would you like to join ",(t||{name:""}).name,"? ",r.a.createElement("br",null),r.a.createElement("br",null),"Warning: Joining this faction may prevent you from joining other factions during this run!"),r.a.createElement(f.a,{onClick:function(){if(null===t)return;-1===n.factionInvitations.findIndex(e=>e===t.name)&&console.error("Could not find faction in Player.factionInvitations"),Object(i.d)(t),e(null)}},"Join!"),r.a.createElement(f.a,{onClick:()=>e(null)},"Decide later"))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(254),r=function(t,e,n=0){this.sourceCode=t,this.sourceCodeLineOffset=n,"string"==typeof t&&(t=a.a(t,r.PARSE_OPTIONS)),this.ast=t,this.initFunc_=e,this.paused_=!1,this.polyfills_=[],this.functionCounter_=0,this.stepFunctions_=Object.create(null);var i,o,s=/^step([A-Z]\w*)$/;for(var l in this)"function"==typeof this[l]&&(i=l.match(s))&&(this.stepFunctions_[i[1]]=this[l].bind(this));this.global=this.createScope(this.ast,null),this.ast=a.a(this.polyfills_.join("\n"),r.PARSE_OPTIONS),this.polyfills_=void 0,this.stripLocations_(this.ast,void 0,void 0),(o=new r.State(this.ast,this.global)).done=!1,this.stateStack=[o],this.run(),this.value=void 0,this.ast=t,(o=new r.State(this.ast,this.global)).done=!1,this.stateStack.length=0,this.stateStack[0]=o,this.nodeConstructor=o.node.constructor,this.stateStack=this.stateStack}; +!function(t){function e(e){for(var a,o,s=e[0],l=e[1],c=e[2],u=0,m=[];uObject(o.a)({unbuyable:{color:t.palette.action.disabled},money:{color:t.colors.money}}));function l(t){const e=s();if(void 0!==t.player){if("number"!=typeof t.money)throw new Error("if player if provided, money should be number, contact dev");if(!t.player.canAfford(t.money))return a.createElement("span",{className:e.unbuyable},r.a.formatMoney(t.money))}return a.createElement("span",{className:e.money},"number"==typeof t.money?r.a.formatMoney(t.money):t.money)}},,function(t,e,n){"use strict";n.d(e,"d",(function(){return m})),n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"g",(function(){return p})),n.d(e,"e",(function(){return g})),n.d(e,"a",(function(){return y})),n.d(e,"f",(function(){return b})),n.d(e,"i",(function(){return E})),n.d(e,"h",(function(){return v})),n.d(e,"j",(function(){return k}));var a=n(46),r=n(367),i=n(341),o=n(33),s=n(28),l=n(1021),c=n(89),f=n(18);let u={};function m(t){if(u.hasOwnProperty(t)){const e=u[t];if(e)return e}if(!Object(l.a)(t))return function(t){for(const e of Object.keys(u)){const n=u[e];if(n.hostname==t)return n}return null}(t);const e=function(t){for(const e of Object.keys(u)){const n=u[e];if(n.ip===t)return n}}(t);return void 0!==e?e:null}function h(){const t=[];for(const e of Object.keys(u))t.push(u[e]);return t}function d(t){for(const e of Object.keys(u)){const n=u[e];if(n.ip===t||n.hostname===t){delete u[e];break}}}function p(t){return null!=u[t]}function g(){let t;do{t=Object(i.a)()}while(p(t));return t}function y(t){if(m(t.hostname))throw console.warn("Hostname of the server thats being added: "+t.hostname),console.warn("The server that already has this IP is: "+u[t.hostname].hostname),new Error("Error: Trying to add a server with an existing IP");u[t.hostname]=t}function b(t){const e=[];for(let t=0;t<15;t++)e.push([]);const n=["hackDifficulty","moneyAvailable","requiredHackingSkill","serverGrowth"],i=t=>{switch(typeof t){case"number":return t;case"object":return Object(o.a)(t.min,t.max);default:throw Error(`Do not know how to convert the type '${typeof t}' to a number`)}};for(const t of r.a){const r={hostname:t.hostname,ip:g(),numOpenPortsRequired:t.numOpenPortsRequired,organizationName:t.organizationName};void 0!==t.maxRamExponent&&(r.maxRam=Math.pow(2,i(t.maxRamExponent)));for(const e of n)void 0!==t[e]&&(r[e]=i(t[e]));const o=new a.a(r);for(const e of t.literature||[])o.messages.push(e);o.hostname===c.a.WorldDaemon&&(o.requiredHackingSkill*=f.a.WorldDaemonDifficulty),y(o),void 0!==t.networkLayer&&e[i(t.networkLayer)-1].push(o)}const s=(t,e)=>{for(const r of t)n=r,a=e(),n.serversOnNetwork.push(a.hostname),a.serversOnNetwork.push(n.hostname);var n,a};s(e[0],()=>t);for(let t=1;t{return(n=e[t-1])[Math.floor(Math.random()*n.length)];var n})}function E(){for(const t of Object.keys(u))delete u[t];u={}}function v(t){u=JSON.parse(t,s.c)}function k(t=!1){const e=JSON.parse(JSON.stringify(u),s.c);for(const n of Object.keys(e)){const a=e[n];if(t)a.runningScripts=[];else for(let t=0;t{let e=""+t%1e3;for(;e.length<3;)e="0"+e;return e})();let f="";return a>0&&(f+=a+" days "),i>0&&(f+=i+" hours "),s>0&&(f+=s+" minutes "),f+=(e?`${l}.${c}`:""+l)+" seconds",f}function i(t){if(!o(t))return"";if(0===t.length)return"";const e=t.concat().sort(),n=e[0],a=e[e.length-1],r=n.length;let i=0;for(;i>>16,2246822507)^Math.imul(a^a>>>13,3266489909),a=Math.imul(a^a>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&a)+(n>>>0)).toString(16)}},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t[t.ActiveScripts=0]="ActiveScripts",t[t.Augmentations=1]="Augmentations",t[t.BitVerse=2]="BitVerse",t[t.Bladeburner=3]="Bladeburner",t[t.City=4]="City",t[t.Corporation=5]="Corporation",t[t.CreateProgram=6]="CreateProgram",t[t.ScriptEditor=7]="ScriptEditor",t[t.DevMenu=8]="DevMenu",t[t.Faction=9]="Faction",t[t.Factions=10]="Factions",t[t.Gang=11]="Gang",t[t.Hacknet=12]="Hacknet",t[t.Infiltration=13]="Infiltration",t[t.Job=14]="Job",t[t.Milestones=15]="Milestones",t[t.Options=16]="Options",t[t.Grafting=17]="Grafting",t[t.Sleeves=18]="Sleeves",t[t.Stats=19]="Stats",t[t.StockMarket=20]="StockMarket",t[t.Terminal=21]="Terminal",t[t.Travel=22]="Travel",t[t.Tutorial=23]="Tutorial",t[t.Work=24]="Work",t[t.BladeburnerCinematic=25]="BladeburnerCinematic",t[t.Location=26]="Location",t[t.Loading=27]="Loading",t[t.StaneksGift=28]="StaneksGift",t[t.Recovery=29]="Recovery",t[t.Achievements=30]="Achievements",t[t.ThemeBrowser=31]="ThemeBrowser",t[t.ImportSave=32]="ImportSave"}(a||(a={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return c}));var a=n(186),r=n(376),i=n(28);let o={};function s(t){o=JSON.parse(t,i.c);for(const t of Object.keys(o))try{o[t].getInfo()}catch(e){console.error("deleting "+t),delete o[t]}}function l(t){return o.hasOwnProperty(t)}function c(){for(const t of Object.keys(r.a))f(new a.a(t))}function f(t){if(!(t instanceof a.a))throw new Error("Invalid argument 'newFactionObject' passed into resetFaction()");const e=t.name;l(e)&&(t.favor=o[e].favor,delete o[e]),function(t){const e=t.name;o[e]=t}(t)}},function(t,e,n){"use strict";let a,r;n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r})),function(t){t.ENTER="Enter",t.ESC="Escape",t.TAB="Tab",t.SPACE=" ",t.BACKSPACE="Backspace",t.UP_ARROW="ArrowUp",t.DOWN_ARROW="ArrowDown",t.LEFT_ARROW="ArrowLeft",t.RIGHT_ARROW="ArrowRight",t.QUOTE="'",t.DOUBLE_QUOTE='"',t.OPEN_BRACKET="[",t.CLOSE_BRACKET="]",t.LESS_THAN="<",t.GREATER_THAN=">",t.OPEN_PARENTHESIS="(",t.CLOSE_PARENTHESIS=")",t.OPEN_BRACE="{",t.CLOSE_BRACE="}",t.PIPE="|",t.DOT=".",t.FORWARD_SLASH="/",t.HYPHEN="-",t.HASH="#",t.k0="0",t.k1="1",t.k2="2",t.k3="3",t.k4="4",t.k5="5",t.k6="6",t.k7="7",t.k8="8",t.k9="9",t.A="a",t.B="b",t.C="c",t.D="d",t.E="e",t.F="f",t.G="g",t.H="h",t.I="i",t.J="j",t.K="k",t.L="l",t.M="m",t.N="n",t.O="o",t.P="p",t.Q="q",t.R="r",t.S="s",t.T="t",t.U="u",t.V="v",t.W="w",t.X="x",t.Y="y",t.Z="z"}(a||(a={})),function(t){t.ENTER="Enter",t.ESC="Escape",t.TAB="Tab",t.SPACE="Space",t.BACKSPACE="Backspace",t.UP_ARROW="ArrowUp",t.DOWN_ARROW="ArrowDown",t.LEFT_ARROW="ArrowLeft",t.RIGHT_ARROW="ArrowRight",t.BACKWARD_SLASH="Backslash",t.BACKQUOTE="Backquote",t.COMMA="Comma",t.DOT="Period",t.EQUAL="Equal",t.FORWARD_SLASH="Slash",t.HYPHEN="Minus",t.SEMICOLON="Semicolon",t.QUOTE="Quote",t.k0="Digit0",t.k1="Digit1",t.k2="Digit2",t.k3="Digit3",t.k4="Digit4",t.k5="Digit5",t.k6="Digit6",t.k7="Digit7",t.k8="Digit8",t.k9="Digit9",t.A="KeyA",t.B="KeyB",t.C="KeyC",t.D="KeyD",t.E="KeyE",t.F="KeyF",t.G="KeyG",t.H="KeyH",t.I="KeyI",t.J="KeyJ",t.K="KeyK",t.L="KeyL",t.M="KeyM",t.N="KeyN",t.O="KeyO",t.P="KeyP",t.Q="KeyQ",t.R="KeyR",t.S="KeyS",t.T="KeyT",t.U="KeyU",t.V="KeyV",t.W="KeyW",t.X="KeyX",t.Y="KeyY",t.Z="KeyZ"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var a=n(384);function r(t,e){if(null==e)return null;if("object"==typeof e&&"string"==typeof e.ctor&&void 0!==e.data){if("AllServersMap"===e.ctor)return console.warn("Converting AllServersMap for v0.43.1"),e.data;const t=r.constructors[e.ctor];if("function"==typeof t&&"function"==typeof t.fromJSON){const n=t.fromJSON(e);return void 0!==t.validationData&&Object(a.b)(n,t.validationData),n}}return e}function i(t,e,n){n||(n=Object.keys(e));const a={};for(let t=0;tObject(a.useContext)(i.Player),Router:()=>Object(a.useContext)(i.Router)}},,function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),n.d(e,"d",(function(){return r})),n.d(e,"i",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"h",(function(){return l})),n.d(e,"a",(function(){return c})),n.d(e,"e",(function(){return f})),n.d(e,"k",(function(){return u})),n.d(e,"c",(function(){return m})),n.d(e,"g",(function(){return h}));const a=["Software Engineering Intern","Junior Software Engineer","Senior Software Engineer","Lead Software Developer","Head of Software","Head of Engineering","Vice President of Technology","Chief Technology Officer"],r=["IT Intern","IT Analyst","IT Manager","Systems Administrator"],i=["Security Engineer"],o=["Network Engineer","Network Administrator"],s=["Business Intern","Business Analyst","Business Manager","Operations Manager","Chief Financial Officer","Chief Executive Officer"],l=["Police Officer","Police Chief","Security Guard","Security Officer","Security Supervisor","Head of Security"],c=["Field Agent","Secret Agent","Special Operative"],f=["Waiter","Employee"],u=["Software Consultant","Senior Software Consultant"],m=["Business Consultant","Senior Business Consultant"],h=["Part-time Waiter","Part-time Employee"]},,function(t,e,n){"use strict";function a(t,e){const n=Math.min(t,e),a=Math.max(t,e);return Math.floor(Math.random()*(a-n+1))+n}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";let a,r,i,o;n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),function(t){t.None="",t.Company="Working for Company",t.CompanyPartTime="Working for Company part-time",t.Faction="Working for Faction",t.CreateProgram="Working on Create a Program",t.StudyClass="Studying or Taking a class at university",t.Crime="Committing a crime",t.GraftAugmentation="Grafting an Augmentation"}(a||(a={})),function(t){t.None="",t.Hacking="Faction Hacking Work",t.Field="Faction Field Work",t.Security="Faction Security Work"}(r||(r={})),function(t){t.None="",t.StudyComputerScience="studying Computer Science",t.DataStructures="taking a Data Structures course",t.Networks="taking a Networks course",t.Algorithms="taking an Algorithms course",t.Management="taking a Management course",t.Leadership="taking a Leadership course",t.GymStrength="training your strength at a gym",t.GymDefense="training your defense at a gym",t.GymDexterity="training your dexterity at a gym",t.GymAgility="training your agility at a gym"}(i||(i={})),function(t){t.None="",t.Shoplift="shoplift",t.RobStore="rob a store",t.Mug="mug someone",t.Larceny="commit larceny",t.Drugs="deal drugs",t.BondForgery="forge corporate bonds",t.TraffickArms="traffick illegal arms",t.Homicide="commit homicide",t.GrandTheftAuto="commit grand theft auto",t.Kidnap="kidnap someone for ransom",t.Assassination="assassinate a high-profile target",t.Heist="pull off the ultimate heist"}(o||(o={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var a=n(0),r=n(26),i=n(5),o=n(20),s=n(28),l=n(4),c=n(12),f=n(10),u=n(79),m=n(18),h=n(119),d=n(352);function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class g{constructor(t={info:"",moneyCost:0,name:"",repCost:0,factions:[]}){p(this,"baseCost",0),p(this,"baseRepRequirement",0),p(this,"isSpecial",!1),p(this,"name",""),p(this,"prereqs",[]),p(this,"mults",{}),p(this,"factions",[]),this.name=t.name,this.info=t.info,this.prereqs=t.prereqs?t.prereqs:[],this.baseRepRequirement=t.repCost,Object.freeze(this.baseRepRequirement),this.baseCost=t.moneyCost,Object.freeze(this.baseCost),this.factions=t.factions,t.isSpecial&&(this.isSpecial=!0),t.hacking_mult&&(this.mults.hacking_mult=t.hacking_mult),t.strength_mult&&(this.mults.strength_mult=t.strength_mult),t.defense_mult&&(this.mults.defense_mult=t.defense_mult),t.dexterity_mult&&(this.mults.dexterity_mult=t.dexterity_mult),t.agility_mult&&(this.mults.agility_mult=t.agility_mult),t.charisma_mult&&(this.mults.charisma_mult=t.charisma_mult),t.hacking_exp_mult&&(this.mults.hacking_exp_mult=t.hacking_exp_mult),t.strength_exp_mult&&(this.mults.strength_exp_mult=t.strength_exp_mult),t.defense_exp_mult&&(this.mults.defense_exp_mult=t.defense_exp_mult),t.dexterity_exp_mult&&(this.mults.dexterity_exp_mult=t.dexterity_exp_mult),t.agility_exp_mult&&(this.mults.agility_exp_mult=t.agility_exp_mult),t.charisma_exp_mult&&(this.mults.charisma_exp_mult=t.charisma_exp_mult),t.hacking_chance_mult&&(this.mults.hacking_chance_mult=t.hacking_chance_mult),t.hacking_speed_mult&&(this.mults.hacking_speed_mult=t.hacking_speed_mult),t.hacking_money_mult&&(this.mults.hacking_money_mult=t.hacking_money_mult),t.hacking_grow_mult&&(this.mults.hacking_grow_mult=t.hacking_grow_mult),t.company_rep_mult&&(this.mults.company_rep_mult=t.company_rep_mult),t.faction_rep_mult&&(this.mults.faction_rep_mult=t.faction_rep_mult),t.crime_money_mult&&(this.mults.crime_money_mult=t.crime_money_mult),t.crime_success_mult&&(this.mults.crime_success_mult=t.crime_success_mult),t.work_money_mult&&(this.mults.work_money_mult=t.work_money_mult),t.hacknet_node_money_mult&&(this.mults.hacknet_node_money_mult=t.hacknet_node_money_mult),t.hacknet_node_purchase_cost_mult&&(this.mults.hacknet_node_purchase_cost_mult=t.hacknet_node_purchase_cost_mult),t.hacknet_node_ram_cost_mult&&(this.mults.hacknet_node_ram_cost_mult=t.hacknet_node_ram_cost_mult),t.hacknet_node_core_cost_mult&&(this.mults.hacknet_node_core_cost_mult=t.hacknet_node_core_cost_mult),t.hacknet_node_level_cost_mult&&(this.mults.hacknet_node_level_cost_mult=t.hacknet_node_level_cost_mult),t.bladeburner_max_stamina_mult&&(this.mults.bladeburner_max_stamina_mult=t.bladeburner_max_stamina_mult),t.bladeburner_stamina_gain_mult&&(this.mults.bladeburner_stamina_gain_mult=t.bladeburner_stamina_gain_mult),t.bladeburner_analysis_mult&&(this.mults.bladeburner_analysis_mult=t.bladeburner_analysis_mult),t.bladeburner_success_chance_mult&&(this.mults.bladeburner_success_chance_mult=t.bladeburner_success_chance_mult),t.infiltration_base_rep_increase&&(this.mults.infiltration_base_rep_increase=t.infiltration_base_rep_increase),t.infiltration_rep_mult&&(this.mults.infiltration_rep_mult=t.infiltration_rep_mult),t.infiltration_trade_mult&&(this.mults.infiltration_trade_mult=t.infiltration_trade_mult),t.infiltration_sell_mult&&(this.mults.infiltration_sell_mult=t.infiltration_sell_mult),t.infiltration_timer_mult&&(this.mults.infiltration_timer_mult=t.infiltration_timer_mult),t.infiltration_damage_reduction_mult&&(this.mults.infiltration_damage_reduction_mult=t.infiltration_damage_reduction_mult),void 0===t.stats?this.stats=function(t,e,n){const r=(t,e=0)=>t===1.0777-1?"7.77%":t===1.777-1?"77.7%":i.a.formatPercentage(t,e);let s=a.createElement(a.Fragment,null,"Effects:");return t.hacking_mult&&t.hacking_mult==t.strength_mult&&t.hacking_mult==t.defense_mult&&t.hacking_mult==t.dexterity_mult&&t.hacking_mult==t.agility_mult&&t.hacking_mult==t.charisma_mult?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_mult-1)," all skills"):(t.hacking_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_mult-1)," hacking skill")),t.strength_mult&&t.strength_mult==t.defense_mult&&t.strength_mult==t.dexterity_mult&&t.strength_mult==t.agility_mult?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.strength_mult-1)," combat skills"):(t.strength_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.strength_mult-1)," strength skill")),t.defense_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.defense_mult-1)," defense skill")),t.dexterity_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.dexterity_mult-1)," dexterity skill")),t.agility_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.agility_mult-1)," agility skill"))),t.charisma_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.charisma_mult-1)," charisma skill"))),t.hacking_exp_mult&&t.hacking_exp_mult===t.strength_exp_mult&&t.hacking_exp_mult===t.defense_exp_mult&&t.hacking_exp_mult===t.dexterity_exp_mult&&t.hacking_exp_mult===t.agility_exp_mult&&t.hacking_exp_mult===t.charisma_exp_mult?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_exp_mult-1)," exp for all skills"):(t.hacking_exp_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_exp_mult-1)," hacking exp")),t.strength_exp_mult&&t.strength_exp_mult===t.defense_exp_mult&&t.strength_exp_mult===t.dexterity_exp_mult&&t.strength_exp_mult===t.agility_exp_mult?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.strength_exp_mult-1)," combat exp"):(t.strength_exp_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.strength_exp_mult-1)," strength exp")),t.defense_exp_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.defense_exp_mult-1)," defense exp")),t.dexterity_exp_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.dexterity_exp_mult-1)," dexterity exp")),t.agility_exp_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.agility_exp_mult-1)," agility exp"))),t.charisma_exp_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.charisma_exp_mult-1)," charisma exp"))),t.hacking_speed_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_speed_mult-1)," faster hack(), grow(), and weaken()")),t.hacking_chance_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_chance_mult-1)," hack() success chance")),t.hacking_money_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_money_mult-1)," hack() power")),t.hacking_grow_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacking_grow_mult-1)," grow() power")),t.faction_rep_mult&&t.faction_rep_mult===t.company_rep_mult?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.faction_rep_mult-1)," reputation from factions and companies"):(t.faction_rep_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.faction_rep_mult-1)," reputation from factions")),t.company_rep_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.company_rep_mult-1)," reputation from companies"))),t.crime_money_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.crime_money_mult-1)," crime money")),t.crime_success_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.crime_success_mult-1)," crime success rate")),t.work_money_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.work_money_mult-1)," work money")),t.hacknet_node_money_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.hacknet_node_money_mult-1)," hacknet production")),t.hacknet_node_purchase_cost_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"-",r(-(t.hacknet_node_purchase_cost_mult-1))," hacknet nodes cost")),t.hacknet_node_level_cost_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"-",r(-(t.hacknet_node_level_cost_mult-1))," hacknet nodes upgrade cost")),t.bladeburner_max_stamina_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.bladeburner_max_stamina_mult-1)," Bladeburner Max Stamina")),t.bladeburner_stamina_gain_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.bladeburner_stamina_gain_mult-1)," Bladeburner Stamina gain")),t.bladeburner_analysis_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.bladeburner_analysis_mult-1)," Bladeburner Field Analysis effectiveness")),t.bladeburner_success_chance_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.bladeburner_success_chance_mult-1)," Bladeburner Contracts and Operations success chance")),t.infiltration_base_rep_increase&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.infiltration_base_rep_increase-1)," Infiltration ",l.a.ShadowsOfAnarchy," Reputation base reward")),t.infiltration_rep_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.infiltration_rep_mult-1)," Infiltration ",l.a.ShadowsOfAnarchy," Reputation reward")),t.infiltration_trade_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.infiltration_trade_mult-1)," Infiltration Reputation for trading information")),t.infiltration_sell_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.infiltration_sell_mult-1)," Infiltration cash reward for selling information")),t.infiltration_timer_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(t.infiltration_timer_mult-1)," Infiltration time per minigame")),t.infiltration_damage_reduction_mult&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),r(t.infiltration_damage_reduction_mult-1)," Infiltration health lost per failed minigame")),n&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"Start with ",a.createElement(o.a,{money:n})," after installing Augmentations.")),e&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"Start with ",e.join(" and ")," after installing Augmentations.")),s}(this.mults,t.programs,t.startingMoney):this.stats=t.stats}addToFactions(t){for(let e=0;et.name),i=Math.pow(f.a.SoACostMult,r.filter(e=>t.hasAugmentation(e)).length);n=e.baseCost*i,r.find(t=>t===e.name)&&(a=e.baseRepRequirement*i)}else n=e.baseCost*Object(h.d)()*m.a.AugmentationMoneyCost,a=e.baseRepRequirement*m.a.AugmentationRepCost;return{moneyCost:n,repCost:a}}getLevel(t){if(this.name===c.a.NeuroFluxGovernor){let e=0;for(let n=0;nObject(o.a)({modal:{display:"flex",alignItems:"center",justifyContent:"center"},paper:{backgroundColor:t.palette.background.default,border:"2px solid "+t.palette.primary.main,boxShadow:`0px 3px 5px -1px ${t.palette.primary.dark},0px 5px 8px 0px ${t.palette.primary.dark},0px 1px 14px 0px ${t.palette.primary.dark}`,padding:2,maxWidth:"80%",maxHeight:"80%",overflow:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"}})),u=t=>{const e=f();return c.a.createElement(i.a,{disableRestoreFocus:!0,disableScrollLock:!0,disableEnforceFocus:!0,disableAutoFocus:!0,open:t.open,onClose:t.onClose,closeAfterTransition:!0,className:e.modal,sx:t.sx},c.a.createElement(r.a,{in:t.open},c.a.createElement("div",{className:e.paper},c.a.createElement(a.a,{sx:{m:2}},t.children))))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(15);const r=["START","PURCHASE","PRODUCTION","SALE","EXPORT"],i={INITIALSHARES:1e9,SHARESPERPRICEUPDATE:1e6,IssueNewSharesCooldown:216e3,SellSharesCooldown:18e3,CyclesPerMarketCycle:50,CyclesPerIndustryStateCycle:50/r.length,SecsPerMarketCycle:10,Cities:[a.a.Aevum,a.a.Chongqing,a.a.Sector12,a.a.NewTokyo,a.a.Ishima,a.a.Volhaven],WarehouseInitialCost:5e9,WarehouseInitialSize:100,WarehouseUpgradeBaseCost:1e9,OfficeInitialCost:4e9,OfficeInitialSize:3,OfficeUpgradeBaseCost:1e9,BribeThreshold:1e14,BribeToRepRatio:1e9,ProductProductionCostRatio:5,DividendMaxPercentage:1,EmployeeSalaryMultiplier:3,CyclesPerEmployeeRaise:400,EmployeeRaiseAmount:50,BaseMaxProducts:3,AllCorporationStates:r,AllMaterials:["Water","Energy","Food","Plants","Metal","Hardware","Chemicals","Drugs","Robots","AI Cores","Real Estate"],FundingRoundShares:[.1,.35,.25,.2],FundingRoundMultiplier:[4,3,3,2.5],AvgProfitLength:1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i}));const a={MoneyGainPerLevel:1.5,BaseCost:1e3,LevelBaseCost:1,RamBaseCost:3e4,CoreBaseCost:5e5,PurchaseNextMult:1.85,UpgradeLevelMult:1.04,UpgradeRamMult:1.28,UpgradeCoreMult:1.48,MaxLevel:200,MaxRam:64,MaxCores:16},r={x1:1,x5:5,x10:10,MAX:"MAX"},i={HashesPerLevel:.001,BaseCost:5e4,RamBaseCost:2e5,CoreBaseCost:1e6,CacheBaseCost:1e7,PurchaseMult:3.2,UpgradeLevelMult:1.1,UpgradeRamMult:1.4,UpgradeCoreMult:1.55,UpgradeCacheMult:1.85,MaxServers:20,MaxLevel:300,MaxRam:8192,MaxCores:128,MaxCache:15}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d}));const a={ScriptBaseRamCost:1.6,ScriptDomRamCost:25,ScriptCorporationRamCost:1022.4,ScriptHackRamCost:.1,ScriptHackAnalyzeRamCost:1,ScriptGrowRamCost:.15,ScriptGrowthAnalyzeRamCost:1,ScriptWeakenRamCost:.15,ScriptWeakenAnalyzeRamCost:1,ScriptScanRamCost:.2,ScriptRecentScriptsRamCost:.2,ScriptPortProgramRamCost:.05,ScriptRunRamCost:1,ScriptExecRamCost:1.3,ScriptSpawnRamCost:2,ScriptScpRamCost:.6,ScriptKillRamCost:.5,ScriptHasRootAccessRamCost:.05,ScriptGetHostnameRamCost:.05,ScriptGetHackingLevelRamCost:.05,ScriptGetMultipliersRamCost:4,ScriptGetServerRamCost:.1,ScriptGetServerMaxRam:.05,ScriptGetServerUsedRam:.05,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,ScriptGetRunningScriptRamCost:.3,ScriptGetHackTimeRamCost:.05,ScriptGetFavorToDonate:.1,ScriptCodingContractBaseRamCost:10,ScriptSleeveBaseRamCost:4,ScriptGetOwnedSourceFiles:5,ScriptClearTerminalCost:.2,ScriptSingularityFn1RamCost:2,ScriptSingularityFn2RamCost:3,ScriptSingularityFn3RamCost:5,ScriptGangApiBaseRamCost:4,ScriptBladeburnerApiBaseRamCost:4,ScriptStanekWidth:.4,ScriptStanekHeight:.4,ScriptStanekCharge:.4,ScriptStanekFragmentDefinitions:0,ScriptStanekPlacedFragments:5,ScriptStanekClear:0,ScriptStanekCanPlace:.5,ScriptStanekPlace:5,ScriptStanekFragmentAt:2,ScriptStanekDeleteAt:.15,ScriptInfiltrationCalculateDifficulty:2.5,ScriptInfiltrationCalculateRewards:2.5,ScriptInfiltrationGetLocations:5,ScriptInfiltrationGetInfiltrations:15,ScriptStanekAcceptGift:2};function r(t){return e=>{if(4===e.bitNodeN)return t;const n=e.sourceFileLvl(4);return n<=1?16*t:2===n?4*t:t}}const i={getSymbols:a.ScriptGetStockRamCost,getPrice:a.ScriptGetStockRamCost,getAskPrice:a.ScriptGetStockRamCost,getBidPrice:a.ScriptGetStockRamCost,getPosition:a.ScriptGetStockRamCost,getMaxShares:a.ScriptGetStockRamCost,getPurchaseCost:a.ScriptGetStockRamCost,getSaleGain:a.ScriptGetStockRamCost,buy:a.ScriptBuySellStockRamCost,sell:a.ScriptBuySellStockRamCost,short:a.ScriptBuySellStockRamCost,sellShort:a.ScriptBuySellStockRamCost,placeOrder:a.ScriptBuySellStockRamCost,cancelOrder:a.ScriptBuySellStockRamCost,getOrders:a.ScriptBuySellStockRamCost,getVolatility:a.ScriptBuySellStockRamCost,getForecast:a.ScriptBuySellStockRamCost,purchase4SMarketData:a.ScriptBuySellStockRamCost,purchase4SMarketDataTixApi:a.ScriptBuySellStockRamCost,purchaseWseAccount:a.ScriptBuySellStockRamCost,purchaseTixApi:a.ScriptBuySellStockRamCost},o={universityCourse:r(a.ScriptSingularityFn1RamCost),gymWorkout:r(a.ScriptSingularityFn1RamCost),travelToCity:r(a.ScriptSingularityFn1RamCost),goToLocation:r(a.ScriptSingularityFn3RamCost),purchaseTor:r(a.ScriptSingularityFn1RamCost),purchaseProgram:r(a.ScriptSingularityFn1RamCost),getCurrentServer:r(a.ScriptSingularityFn1RamCost),connect:r(a.ScriptSingularityFn1RamCost),manualHack:r(a.ScriptSingularityFn1RamCost),installBackdoor:r(a.ScriptSingularityFn1RamCost),getDarkwebProgramCost:r(a.ScriptSingularityFn1RamCost/4),getDarkwebPrograms:r(a.ScriptSingularityFn1RamCost/4),getStats:r(a.ScriptSingularityFn1RamCost/4),getCharacterInformation:r(a.ScriptSingularityFn1RamCost/4),hospitalize:r(a.ScriptSingularityFn1RamCost/4),isBusy:r(a.ScriptSingularityFn1RamCost/4),stopAction:r(a.ScriptSingularityFn1RamCost/2),upgradeHomeRam:r(a.ScriptSingularityFn2RamCost),upgradeHomeCores:r(a.ScriptSingularityFn2RamCost),getUpgradeHomeRamCost:r(a.ScriptSingularityFn2RamCost/2),getUpgradeHomeCoresCost:r(a.ScriptSingularityFn2RamCost/2),workForCompany:r(a.ScriptSingularityFn2RamCost),applyToCompany:r(a.ScriptSingularityFn2RamCost),quitJob:r(a.ScriptSingularityFn2RamCost),getCompanyRep:r(a.ScriptSingularityFn2RamCost/3),getCompanyFavor:r(a.ScriptSingularityFn2RamCost/3),getCompanyFavorGain:r(a.ScriptSingularityFn2RamCost/4),checkFactionInvitations:r(a.ScriptSingularityFn2RamCost),joinFaction:r(a.ScriptSingularityFn2RamCost),workForFaction:r(a.ScriptSingularityFn2RamCost),getFactionRep:r(a.ScriptSingularityFn2RamCost/3),getFactionFavor:r(a.ScriptSingularityFn2RamCost/3),getFactionFavorGain:r(a.ScriptSingularityFn2RamCost/4),donateToFaction:r(a.ScriptSingularityFn3RamCost),createProgram:r(a.ScriptSingularityFn3RamCost),commitCrime:r(a.ScriptSingularityFn3RamCost),getCrimeChance:r(a.ScriptSingularityFn3RamCost),getCrimeStats:r(a.ScriptSingularityFn3RamCost),getOwnedAugmentations:r(a.ScriptSingularityFn3RamCost),getAugmentationsFromFaction:r(a.ScriptSingularityFn3RamCost),getAugmentationCost:r(a.ScriptSingularityFn3RamCost),getAugmentationPrereq:r(a.ScriptSingularityFn3RamCost),getAugmentationPrice:r(a.ScriptSingularityFn3RamCost/2),getAugmentationRepReq:r(a.ScriptSingularityFn3RamCost/2),getAugmentationStats:r(a.ScriptSingularityFn3RamCost),purchaseAugmentation:r(a.ScriptSingularityFn3RamCost),softReset:r(a.ScriptSingularityFn3RamCost),installAugmentations:r(a.ScriptSingularityFn3RamCost),isFocused:r(.1),setFocus:r(.1),b1tflum3:r(16),destroyW0r1dD43m0n:r(32)},s={createGang:a.ScriptGangApiBaseRamCost/4,inGang:a.ScriptGangApiBaseRamCost/4,getMemberNames:a.ScriptGangApiBaseRamCost/4,getGangInformation:a.ScriptGangApiBaseRamCost/2,getOtherGangInformation:a.ScriptGangApiBaseRamCost/2,getMemberInformation:a.ScriptGangApiBaseRamCost/2,canRecruitMember:a.ScriptGangApiBaseRamCost/4,recruitMember:a.ScriptGangApiBaseRamCost/2,getTaskNames:a.ScriptGangApiBaseRamCost/4,getTaskStats:a.ScriptGangApiBaseRamCost/4,setMemberTask:a.ScriptGangApiBaseRamCost/2,getEquipmentNames:a.ScriptGangApiBaseRamCost/4,getEquipmentCost:a.ScriptGangApiBaseRamCost/2,getEquipmentType:a.ScriptGangApiBaseRamCost/2,getEquipmentStats:a.ScriptGangApiBaseRamCost/2,purchaseEquipment:a.ScriptGangApiBaseRamCost,ascendMember:a.ScriptGangApiBaseRamCost,getAscensionResult:a.ScriptGangApiBaseRamCost/2,setTerritoryWarfare:a.ScriptGangApiBaseRamCost/2,getChanceToWinClash:a.ScriptGangApiBaseRamCost,getBonusTime:0},l={getContractNames:a.ScriptBladeburnerApiBaseRamCost/10,getOperationNames:a.ScriptBladeburnerApiBaseRamCost/10,getBlackOpNames:a.ScriptBladeburnerApiBaseRamCost/10,getBlackOpRank:a.ScriptBladeburnerApiBaseRamCost/2,getGeneralActionNames:a.ScriptBladeburnerApiBaseRamCost/10,getSkillNames:a.ScriptBladeburnerApiBaseRamCost/10,startAction:a.ScriptBladeburnerApiBaseRamCost,stopBladeburnerAction:a.ScriptBladeburnerApiBaseRamCost/2,getCurrentAction:a.ScriptBladeburnerApiBaseRamCost/4,getActionTime:a.ScriptBladeburnerApiBaseRamCost,getActionEstimatedSuccessChance:a.ScriptBladeburnerApiBaseRamCost,getActionRepGain:a.ScriptBladeburnerApiBaseRamCost,getActionCountRemaining:a.ScriptBladeburnerApiBaseRamCost,getActionMaxLevel:a.ScriptBladeburnerApiBaseRamCost,getActionCurrentLevel:a.ScriptBladeburnerApiBaseRamCost,getActionAutolevel:a.ScriptBladeburnerApiBaseRamCost,setActionAutolevel:a.ScriptBladeburnerApiBaseRamCost,setActionLevel:a.ScriptBladeburnerApiBaseRamCost,getRank:a.ScriptBladeburnerApiBaseRamCost,getSkillPoints:a.ScriptBladeburnerApiBaseRamCost,getSkillLevel:a.ScriptBladeburnerApiBaseRamCost,getSkillUpgradeCost:a.ScriptBladeburnerApiBaseRamCost,upgradeSkill:a.ScriptBladeburnerApiBaseRamCost,getTeamSize:a.ScriptBladeburnerApiBaseRamCost,setTeamSize:a.ScriptBladeburnerApiBaseRamCost,getCityEstimatedPopulation:a.ScriptBladeburnerApiBaseRamCost,getCityCommunities:a.ScriptBladeburnerApiBaseRamCost,getCityChaos:a.ScriptBladeburnerApiBaseRamCost,getCity:a.ScriptBladeburnerApiBaseRamCost,switchCity:a.ScriptBladeburnerApiBaseRamCost,getStamina:a.ScriptBladeburnerApiBaseRamCost,joinBladeburnerFaction:a.ScriptBladeburnerApiBaseRamCost,joinBladeburnerDivision:a.ScriptBladeburnerApiBaseRamCost,getBonusTime:0},c={calculateDifficulty:a.ScriptInfiltrationCalculateDifficulty,calculateRewards:a.ScriptInfiltrationCalculateRewards,calculateGetLocations:a.ScriptInfiltrationGetLocations,calculateGetInfiltrations:a.ScriptInfiltrationGetInfiltrations},f={attempt:a.ScriptCodingContractBaseRamCost,getContractType:a.ScriptCodingContractBaseRamCost/2,getData:a.ScriptCodingContractBaseRamCost/2,getDescription:a.ScriptCodingContractBaseRamCost/2,getNumTriesRemaining:a.ScriptCodingContractBaseRamCost/5},u={getNumSleeves:a.ScriptSleeveBaseRamCost,setToShockRecovery:a.ScriptSleeveBaseRamCost,setToSynchronize:a.ScriptSleeveBaseRamCost,setToCommitCrime:a.ScriptSleeveBaseRamCost,setToUniversityCourse:a.ScriptSleeveBaseRamCost,travel:a.ScriptSleeveBaseRamCost,setToCompanyWork:a.ScriptSleeveBaseRamCost,setToFactionWork:a.ScriptSleeveBaseRamCost,setToGymWorkout:a.ScriptSleeveBaseRamCost,getSleeveStats:a.ScriptSleeveBaseRamCost,getTask:a.ScriptSleeveBaseRamCost,getInformation:a.ScriptSleeveBaseRamCost,getSleeveAugmentations:a.ScriptSleeveBaseRamCost,getSleevePurchasableAugs:a.ScriptSleeveBaseRamCost,purchaseSleeveAug:a.ScriptSleeveBaseRamCost},m={giftWidth:a.ScriptStanekWidth,giftHeight:a.ScriptStanekHeight,chargeFragment:a.ScriptStanekCharge,fragmentDefinitions:a.ScriptStanekFragmentDefinitions,activeFragments:a.ScriptStanekPlacedFragments,clearGift:a.ScriptStanekClear,canPlaceFragment:a.ScriptStanekCanPlace,placeFragment:a.ScriptStanekPlace,getFragment:a.ScriptStanekFragmentAt,removeFragment:a.ScriptStanekDeleteAt,acceptGift:a.ScriptStanekAcceptGift},h={hacknet:{numNodes:0,purchaseNode:0,getPurchaseNodeCost:0,getNodeStats:0,upgradeLevel:0,upgradeRam:0,upgradeCore:0,upgradeCache:0,getLevelUpgradeCost:0,getRamUpgradeCost:0,getCoreUpgradeCost:0,getCacheUpgradeCost:0,numHashes:0,hashCost:0,spendHashes:0},stock:i,singularity:o,...o,gang:s,bladeburner:l,infiltration:c,codingcontract:f,sleeve:u,stanek:m,ui:{getTheme:0,setTheme:0,resetTheme:0,getStyles:0,setStyles:0,resetStyles:0,getGameInfo:0},grafting:{getAugmentationGraftPrice:3.75,getAugmentationGraftTime:3.75,getGraftableAugmentations:5,graftAugmentation:7.5},sprintf:0,vsprintf:0,scan:a.ScriptScanRamCost,hack:a.ScriptHackRamCost,hackAnalyzeThreads:a.ScriptHackAnalyzeRamCost,hackAnalyze:a.ScriptHackAnalyzeRamCost,hackAnalyzeSecurity:a.ScriptHackAnalyzeRamCost,hackAnalyzeChance:a.ScriptHackAnalyzeRamCost,sleep:0,asleep:0,share:2.4,getSharePower:.2,grow:a.ScriptGrowRamCost,growthAnalyze:a.ScriptGrowthAnalyzeRamCost,growthAnalyzeSecurity:a.ScriptGrowthAnalyzeRamCost,weaken:a.ScriptWeakenRamCost,weakenAnalyze:a.ScriptWeakenAnalyzeRamCost,print:0,printf:0,tprint:0,clearLog:0,disableLog:0,enableLog:0,isLogEnabled:0,getScriptLogs:0,clearTerminal:a.ScriptClearTerminalCost,nuke:a.ScriptPortProgramRamCost,brutessh:a.ScriptPortProgramRamCost,ftpcrack:a.ScriptPortProgramRamCost,relaysmtp:a.ScriptPortProgramRamCost,httpworm:a.ScriptPortProgramRamCost,sqlinject:a.ScriptPortProgramRamCost,run:a.ScriptRunRamCost,exec:a.ScriptExecRamCost,spawn:a.ScriptSpawnRamCost,kill:a.ScriptKillRamCost,killall:a.ScriptKillRamCost,exit:0,atExit:0,scp:a.ScriptScpRamCost,ls:a.ScriptScanRamCost,ps:a.ScriptScanRamCost,getRecentScripts:a.ScriptRecentScriptsRamCost,hasRootAccess:a.ScriptHasRootAccessRamCost,getIp:a.ScriptGetHostnameRamCost,getHostname:a.ScriptGetHostnameRamCost,getHackingLevel:a.ScriptGetHackingLevelRamCost,getHackingMultipliers:a.ScriptGetMultipliersRamCost,getHacknetMultipliers:a.ScriptGetMultipliersRamCost,getBitNodeMultipliers:a.ScriptGetMultipliersRamCost,getServer:a.ScriptGetMultipliersRamCost/2,getServerMoneyAvailable:a.ScriptGetServerRamCost,getServerSecurityLevel:a.ScriptGetServerRamCost,getServerBaseSecurityLevel:a.ScriptGetServerRamCost,getServerMinSecurityLevel:a.ScriptGetServerRamCost,getServerRequiredHackingLevel:a.ScriptGetServerRamCost,getServerMaxMoney:a.ScriptGetServerRamCost,getServerGrowth:a.ScriptGetServerRamCost,getServerNumPortsRequired:a.ScriptGetServerRamCost,getServerRam:a.ScriptGetServerRamCost,getServerMaxRam:a.ScriptGetServerMaxRam,getServerUsedRam:a.ScriptGetServerUsedRam,serverExists:a.ScriptGetServerRamCost,fileExists:a.ScriptFileExistsRamCost,isRunning:a.ScriptIsRunningRamCost,getPurchasedServerLimit:a.ScriptGetPurchasedServerLimit,getPurchasedServerMaxRam:a.ScriptGetPurchasedServerMaxRam,getPurchasedServerCost:a.ScriptGetPurchaseServerRamCost,purchaseServer:a.ScriptPurchaseServerRamCost,deleteServer:a.ScriptPurchaseServerRamCost,getPurchasedServers:a.ScriptPurchaseServerRamCost,write:0,tryWritePort:0,read:0,peek:0,clear:0,writePort:0,readPort:0,getPortHandle:0,rm:a.ScriptReadWriteRamCost,scriptRunning:a.ScriptArbScriptRamCost,scriptKill:a.ScriptArbScriptRamCost,getScriptName:0,getScriptRam:a.ScriptGetScriptRamCost,getHackTime:a.ScriptGetHackTimeRamCost,getGrowTime:a.ScriptGetHackTimeRamCost,getWeakenTime:a.ScriptGetHackTimeRamCost,getScriptIncome:a.ScriptGetScriptRamCost,getScriptExpGain:a.ScriptGetScriptRamCost,getRunningScript:a.ScriptGetRunningScriptRamCost,nFormat:0,tFormat:0,getTimeSinceLastAug:a.ScriptGetHackTimeRamCost,prompt:0,wget:0,getFavorToDonate:a.ScriptGetFavorToDonate,getPlayer:a.ScriptSingularityFn1RamCost/4,mv:0,getOwnedSourceFiles:a.ScriptGetOwnedSourceFiles,tail:0,toast:0,heart:{break:0}};function d(t,...e){if(0===e.length)return console.warn("No arguments passed to getRamCost()"),0;let n=h[e[0]];for(let t=1;ta.Start&&(s.currStep-=1),o.a.emit()}function u(){s.isRunning=!1,s.currStep=a.Start,r.a.getHomeComputer().messages.push(i.a.HackersStartingHandbook),o.a.emit()}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var a=n(578),r=n(18),i=n(1018),o=n(341),s=n(28);function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class c extends a.a{constructor(t={hostname:"",ip:Object(o.a)()}){super(t),l(this,"backdoorInstalled",!1),l(this,"baseDifficulty",1),l(this,"hackDifficulty",1),l(this,"minDifficulty",1),l(this,"moneyAvailable",0),l(this,"moneyMax",0),l(this,"numOpenPortsRequired",5),l(this,"openPortCount",0),l(this,"requiredHackingSkill",1),l(this,"serverGrowth",1),this.hostname.startsWith("hacknet-node-")&&(this.hostname=Object(i.a)(10)),this.purchasedByPlayer=null!=t.purchasedByPlayer&&t.purchasedByPlayer,this.maxRam=null!=t.maxRam?t.maxRam:0,this.requiredHackingSkill=null!=t.requiredHackingSkill?t.requiredHackingSkill:1,this.moneyAvailable=null!=t.moneyAvailable?t.moneyAvailable*r.a.ServerStartingMoney:0,this.moneyMax=25*this.moneyAvailable*r.a.ServerMaxMoney,this.hackDifficulty=null!=t.hackDifficulty?t.hackDifficulty*r.a.ServerStartingSecurity:1,this.baseDifficulty=this.hackDifficulty,this.minDifficulty=Math.max(1,Math.round(this.hackDifficulty/3)),this.serverGrowth=null!=t.serverGrowth?t.serverGrowth:1,this.numOpenPortsRequired=null!=t.numOpenPortsRequired?t.numOpenPortsRequired:5}capDifficulty(){this.hackDifficulty100&&(this.hackDifficulty=100)}changeMinimumSecurity(t,e=!1){e?this.minDifficulty*=t:this.minDifficulty+=t,this.minDifficulty=Math.max(1,this.minDifficulty)}changeMaximumMoney(t){if(this.moneyMax>1e13){const e=this.moneyMax-1e13;t=1+(t-1)/Math.log(e)/Math.log(8)}this.moneyMax*=t}fortify(t){this.hackDifficulty+=t,this.capDifficulty()}weaken(t){this.hackDifficulty-=t*r.a.ServerWeakenRate,this.capDifficulty()}toJSON(){return Object(s.b)("Server",this)}static fromJSON(t){return Object(s.a)(c,t.data)}}s.c.constructors.Server=c},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={Operations:"Operations",Engineer:"Engineer",Business:"Business",Management:"Management",RandD:"Research & Development",Training:"Training",Unassigned:"Unassigned"}},function(t,e,n){"use strict";n.d(e,"gb",(function(){return tt})),n.d(e,"jb",(function(){return et})),n.d(e,"kb",(function(){return nt})),n.d(e,"sb",(function(){return at})),n.d(e,"o",(function(){return rt})),n.d(e,"p",(function(){return it})),n.d(e,"Rb",(function(){return ot})),n.d(e,"vb",(function(){return st})),n.d(e,"eb",(function(){return lt})),n.d(e,"yb",(function(){return ct})),n.d(e,"M",(function(){return ft})),n.d(e,"ib",(function(){return ut})),n.d(e,"s",(function(){return mt})),n.d(e,"tb",(function(){return ht})),n.d(e,"K",(function(){return dt})),n.d(e,"N",(function(){return pt})),n.d(e,"I",(function(){return gt})),n.d(e,"J",(function(){return yt})),n.d(e,"F",(function(){return bt})),n.d(e,"G",(function(){return Et})),n.d(e,"L",(function(){return vt})),n.d(e,"nb",(function(){return kt})),n.d(e,"wb",(function(){return _t})),n.d(e,"mb",(function(){return wt})),n.d(e,"Lb",(function(){return St})),n.d(e,"lb",(function(){return xt})),n.d(e,"t",(function(){return Ct})),n.d(e,"Sb",(function(){return Lt})),n.d(e,"D",(function(){return Ot})),n.d(e,"Mb",(function(){return Mt})),n.d(e,"Ub",(function(){return Tt})),n.d(e,"E",(function(){return At})),n.d(e,"Jb",(function(){return Rt})),n.d(e,"Nb",(function(){return Nt})),n.d(e,"Ib",(function(){return Pt})),n.d(e,"Gb",(function(){return It})),n.d(e,"Fb",(function(){return Ft})),n.d(e,"Hb",(function(){return Dt})),n.d(e,"Tb",(function(){return jt})),n.d(e,"B",(function(){return Bt})),n.d(e,"X",(function(){return Gt})),n.d(e,"W",(function(){return Wt})),n.d(e,"Z",(function(){return Ht})),n.d(e,"U",(function(){return Ut})),n.d(e,"V",(function(){return qt})),n.d(e,"S",(function(){return $t})),n.d(e,"T",(function(){return Kt})),n.d(e,"Y",(function(){return zt})),n.d(e,"Db",(function(){return Vt})),n.d(e,"x",(function(){return Yt})),n.d(e,"z",(function(){return Jt})),n.d(e,"Kb",(function(){return Xt})),n.d(e,"w",(function(){return Qt})),n.d(e,"C",(function(){return Zt})),n.d(e,"Cb",(function(){return te})),n.d(e,"Ob",(function(){return ee})),n.d(e,"y",(function(){return ne})),n.d(e,"Eb",(function(){return ae})),n.d(e,"v",(function(){return re})),n.d(e,"A",(function(){return ie})),n.d(e,"Ab",(function(){return oe})),n.d(e,"Pb",(function(){return se})),n.d(e,"ub",(function(){return le})),n.d(e,"fb",(function(){return ce})),n.d(e,"f",(function(){return fe})),n.d(e,"R",(function(){return ue})),n.d(e,"pb",(function(){return me})),n.d(e,"db",(function(){return he})),n.d(e,"m",(function(){return de})),n.d(e,"l",(function(){return pe})),n.d(e,"e",(function(){return ge})),n.d(e,"j",(function(){return ye})),n.d(e,"g",(function(){return be})),n.d(e,"c",(function(){return Ee})),n.d(e,"b",(function(){return ve})),n.d(e,"k",(function(){return ke})),n.d(e,"a",(function(){return _e})),n.d(e,"d",(function(){return we})),n.d(e,"h",(function(){return Se})),n.d(e,"n",(function(){return xe})),n.d(e,"i",(function(){return Ce})),n.d(e,"hb",(function(){return Le})),n.d(e,"qb",(function(){return Oe})),n.d(e,"rb",(function(){return Me})),n.d(e,"u",(function(){return Te})),n.d(e,"xb",(function(){return Ae})),n.d(e,"ob",(function(){return Re})),n.d(e,"H",(function(){return Ne})),n.d(e,"Qb",(function(){return Pe})),n.d(e,"cb",(function(){return Ie})),n.d(e,"r",(function(){return Fe})),n.d(e,"bb",(function(){return De})),n.d(e,"ab",(function(){return je})),n.d(e,"P",(function(){return Be})),n.d(e,"O",(function(){return Ge})),n.d(e,"Q",(function(){return We})),n.d(e,"zb",(function(){return He})),n.d(e,"q",(function(){return Ue})),n.d(e,"Bb",(function(){return qe}));var a=n(119),r=n(342),i=n(12),o=n(18),s=n(116),l=n(237),c=n(67),f=n(687),u=n(538),m=n(95),h=n(31),d=n(10),p=n(66),g=n(380),y=n(87),b=n(186),E=n(26),v=n(81),k=n(154),_=n(187),w=n(15),S=n(9),x=n(327),C=n(182),L=n(285),O=n(243),M=n(22),T=n(46),A=n(135),R=n(89),N=n(1414),P=n(1415),I=n(372),F=n(530),D=n(407),j=n(93),B=n(5),G=n(386),W=n(14),H=n(24),U=n(127),q=n(20),$=n(0),K=n.n($),z=n(367),V=n(99),Y=n(796),J=n(301),X=n(4),Q=n(268),Z=n(34);function tt(){const t=Object(A.g)({adminRights:!0,hostname:"home",ip:Object(M.e)(),isConnectedTo:!0,maxRam:8,organizationName:"Home PC",purchasedByPlayer:!0});this.currentServer=R.a.Home,Object(M.a)(t),this.getHomeComputer().programs.push(p.a.NukeProgram.name)}function et(){this.currentServer=R.a.Home,this.numPeopleKilled=0,this.hacking=1,this.strength=1,this.defense=1,this.dexterity=1,this.agility=1,this.charisma=1,this.hacking_exp=0,this.strength_exp=0,this.defense_exp=0,this.dexterity_exp=0,this.agility_exp=0,this.charisma_exp=0,this.money=1e3+d.a.Donations,this.city=w.a.Sector12,this.location=S.a.TravelAgency,this.companyName="",this.jobs={},this.purchasedServers=[],this.factions=[],this.factionInvitations=[],this.queuedAugmentations=[];const t=Math.min(3,this.sourceFileLvl(10)+(10===this.bitNodeN?1:0))+this.sleevesFromCovenant;this.sleeves.length>t&&(this.sleeves.length=t);for(let e=this.sleeves.length;e=100?this.sleeves[t].synchronize(this):this.sleeves[t].shockRecovery(this));this.isWorking=!1,this.currentWorkFactionName="",this.currentWorkFactionDescription="",this.createProgramName="",this.className=Z.a.None,this.crimeType=Z.b.None,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.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.lastUpdate=(new Date).getTime(),this.playtimeSinceLastAug=0,this.scriptProdSinceLastAug=0,this.moneySourceA.reset(),this.hacknetNodes.length=0,this.hashManager.prestige(),this.reapplyAllAugmentations(!0),this.hp=this.max_hp}function nt(){this.entropy=0,this.prestigeAugmentation(),this.karma=0;for(let t=0;t0?this.intelligence=Math.floor(this.calculateSkill(this.intelligence_exp)):this.intelligence=0;const t=this.hp/this.max_hp;this.max_hp=Math.floor(10+this.defense/10),this.hp=Math.round(this.max_hp*t)}function st(){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}function lt(t){const e=this.getHomeComputer();if(null==e)return!1;for(let n=0;n=t}function ht(t,e){this.moneySourceA instanceof G.a||(console.warn("Player.moneySourceA was not properly initialized. Resetting"),this.moneySourceA=new G.a),this.moneySourceB instanceof G.a||(console.warn("Player.moneySourceB was not properly initialized. Resetting"),this.moneySourceB=new G.a),this.moneySourceA.record(t,e),this.moneySourceB.record(t,e)}function dt(t){isNaN(t)?console.error("ERR: NaN passed into Player.gainHackingExp()"):(this.hacking_exp+=t,this.hacking_exp<0&&(this.hacking_exp=0),this.hacking=Object(C.b)(this.hacking_exp,this.hacking_mult*o.a.HackingLevelMultiplier))}function pt(t){isNaN(t)?console.error("ERR: NaN passed into Player.gainStrengthExp()"):(this.strength_exp+=t,this.strength_exp<0&&(this.strength_exp=0),this.strength=Object(C.b)(this.strength_exp,this.strength_mult*o.a.StrengthLevelMultiplier))}function gt(t){if(isNaN(t))return void console.error("ERR: NaN passed into player.gainDefenseExp()");this.defense_exp+=t,this.defense_exp<0&&(this.defense_exp=0),this.defense=Object(C.b)(this.defense_exp,this.defense_mult*o.a.DefenseLevelMultiplier);const e=this.hp/this.max_hp;this.max_hp=Math.floor(10+this.defense/10),this.hp=Math.round(this.max_hp*e)}function yt(t){isNaN(t)?console.error("ERR: NaN passed into Player.gainDexterityExp()"):(this.dexterity_exp+=t,this.dexterity_exp<0&&(this.dexterity_exp=0),this.dexterity=Object(C.b)(this.dexterity_exp,this.dexterity_mult*o.a.DexterityLevelMultiplier))}function bt(t){isNaN(t)?console.error("ERR: NaN passed into Player.gainAgilityExp()"):(this.agility_exp+=t,this.agility_exp<0&&(this.agility_exp=0),this.agility=Object(C.b)(this.agility_exp,this.agility_mult*o.a.AgilityLevelMultiplier))}function Et(t){isNaN(t)?console.error("ERR: NaN passed into Player.gainCharismaExp()"):(this.charisma_exp+=t,this.charisma_exp<0&&(this.charisma_exp=0),this.charisma=Object(C.b)(this.charisma_exp,this.charisma_mult*o.a.CharismaLevelMultiplier))}function vt(t){isNaN(t)?console.error("ERROR: NaN passed into Player.gainIntelligenceExp()"):(this.sourceFileLvl(5)>0||this.intelligence>0)&&(this.intelligence_exp+=t,this.intelligence=Math.floor(this.calculateSkill(this.intelligence_exp)))}function kt(t){const e=t.toLowerCase();return e.includes("hack")?this.hacking:e.includes("str")?this.strength:e.includes("def")?this.defense:e.includes("dex")?this.dexterity:e.includes("agi")?this.agility:e.includes("cha")?this.charisma:e.includes("int")?this.intelligence:0}function _t(t,e,n){this.workType!==Z.d.Faction&&t===this.workType&&e===this.companyName||t===this.workType&&e===this.currentWorkFactionName&&n===this.factionWorkType||(this.isWorking&&this.singularityStopWork(),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.timeWorkedGraftAugmentation=0,this.currentWorkFactionName="",this.currentWorkFactionDescription="",this.createProgramName="",this.graftAugmentationName="",this.className=Z.a.None,this.workType=Z.d.None)}function wt(t=1){let e=1;this.hasAugmentation(i.a.NeuroreceptorManager)||(e=this.focus?1:d.a.BaseFocusBonus);const n=e*this.workHackExpGainRate*t,a=e*this.workStrExpGainRate*t,r=e*this.workDefExpGainRate*t,o=e*this.workDexExpGainRate*t,s=e*this.workAgiExpGainRate*t,l=e*this.workChaExpGainRate*t,c=(this.workMoneyGainRate-this.workMoneyLossRate)*t;this.gainHackingExp(n),this.gainStrengthExp(a),this.gainDefenseExp(r),this.gainDexterityExp(o),this.gainAgilityExp(s),this.gainCharismaExp(l),this.gainMoney(c,this.className?"class":"work"),this.workHackExpGained+=n,this.workStrExpGained+=a,this.workDefExpGained+=r,this.workDexExpGained+=o,this.workAgiExpGained+=s,this.workChaExpGained+=l,this.workRepGained+=e*this.workRepGainRate*t,this.workMoneyGained+=e*this.workMoneyGainRate*t,this.workMoneyGained-=e*this.workMoneyLossRate*t}function St(t){this.resetWorkStatus(Z.d.Company,t),this.isWorking=!0,this.companyName=t,this.workType=Z.d.Company,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=d.a.MillisecondsPer8Hours}function xt(t,e=1){this.isWorking&&(this.workType===Z.d.Faction?this.workForFaction(e)&&t.toFaction(E.a[this.currentWorkFactionName]):this.workType===Z.d.CreateProgram?this.createProgramWork(e)&&t.toTerminal():this.workType===Z.d.StudyClass?this.takeClass(e)&&t.toCity():this.workType===Z.d.Crime?this.commitCrime(e)&&t.toLocation(_.a[S.a.Slums]):this.workType===Z.d.CompanyPartTime?this.workPartTime(e)&&t.toCity():this.workType===Z.d.GraftAugmentation?this.graftAugmentationWork(e)&&t.toGrafting():this.work(e)&&t.toCity())}function Ct(){const t=z.a.find(t=>t.specialName===this.companyName);if(!t)return.5;const e=Object(M.d)(t.hostname);return e instanceof T.a&&e&&e.backdoorInstalled?.75:.5}function Lt(t){let e=!1;this.timeWorked+d.a._idleSpeed*t>=d.a.MillisecondsPer8Hours&&(e=!0,t=Math.round((d.a.MillisecondsPer8Hours-this.timeWorked)/d.a._idleSpeed)),this.timeWorked+=d.a._idleSpeed*t,this.workRepGainRate=this.getWorkRepGain(),this.workMoneyGainRate=this.getWorkMoneyGain(),this.processWorkEarnings(t);const n=c.a[this.companyName];return Object(F.a)(n,this.workRepGainRate,t),!!(e||this.timeWorked>=d.a.MillisecondsPer8Hours)&&(this.finishWork(!1),!0)}function Ot(t,e=!1){t&&(this.workRepGained*=this.cancelationPenalty());const n=.5===this.cancelationPenalty()?"half":"three-quarters";c.a[this.companyName].playerReputation+=this.workRepGained,this.updateSkillLevels();let a=K.a.createElement(K.a.Fragment,null,"You earned a total of: ",K.a.createElement("br",null),K.a.createElement(q.a,{money:this.workMoneyGained}),K.a.createElement("br",null),K.a.createElement(U.a,{reputation:this.workRepGained})," reputation for the company ",K.a.createElement("br",null),this.workHackExpGained>0&&K.a.createElement(K.a.Fragment,null,B.a.formatExp(this.workHackExpGained)," hacking exp ",K.a.createElement("br",null)),this.workStrExpGained>0&&K.a.createElement(K.a.Fragment,null,B.a.formatExp(this.workStrExpGained)," strength exp ",K.a.createElement("br",null)),this.workDefExpGained>0&&K.a.createElement(K.a.Fragment,null,B.a.formatExp(this.workDefExpGained)," defense exp ",K.a.createElement("br",null)),this.workDexExpGained>0&&K.a.createElement(K.a.Fragment,null,B.a.formatExp(this.workDexExpGained)," dexterity exp ",K.a.createElement("br",null)),this.workAgiExpGained>0&&K.a.createElement(K.a.Fragment,null,B.a.formatExp(this.workAgiExpGained)," agility exp ",K.a.createElement("br",null)),this.workChaExpGained>0&&K.a.createElement(K.a.Fragment,null,B.a.formatExp(this.workChaExpGained)," charisma exp ",K.a.createElement("br",null)),K.a.createElement("br",null));if(a=t?K.a.createElement(K.a.Fragment,null,"You worked a short shift of ",Object(H.b)(this.timeWorked)," ",K.a.createElement("br",null),K.a.createElement("br",null),"Since you cancelled your work early, you only gained ",n," of the reputation you earned. ",K.a.createElement("br",null),K.a.createElement("br",null),a):K.a.createElement(K.a.Fragment,null,"You worked a full shift of 8 hours! ",K.a.createElement("br",null),K.a.createElement("br",null),a),e||Object(W.a)(a),this.isWorking=!1,this.focus=!1,this.resetWorkStatus(),e){return"You worked a short shift of "+Object(H.b)(this.timeWorked)+" and earned $"+B.a.formatMoney(this.workMoneyGained)+", "+B.a.formatReputation(this.workRepGained)+" reputation, "+B.a.formatExp(this.workHackExpGained)+" hacking exp, "+B.a.formatExp(this.workStrExpGained)+" strength exp, "+B.a.formatExp(this.workDefExpGained)+" defense exp, "+B.a.formatExp(this.workDexExpGained)+" dexterity exp, "+B.a.formatExp(this.workAgiExpGained)+" agility exp, and "+B.a.formatExp(this.workChaExpGained)+" charisma exp."}return""}function Mt(t){this.resetWorkStatus(Z.d.CompanyPartTime,t),this.isWorking=!0,this.companyName=t,this.workType=Z.d.CompanyPartTime,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=d.a.MillisecondsPer8Hours}function Tt(t){let e=!1;return this.timeWorked+d.a._idleSpeed*t>=d.a.MillisecondsPer8Hours&&(e=!0,t=Math.round((d.a.MillisecondsPer8Hours-this.timeWorked)/d.a._idleSpeed)),this.timeWorked+=d.a._idleSpeed*t,this.workRepGainRate=this.getWorkRepGain(),this.processWorkEarnings(t),!!(e||this.timeWorked>=d.a.MillisecondsPer8Hours)&&(this.finishWorkPartTime(),!0)}function At(t=!1){c.a[this.companyName].playerReputation+=this.workRepGained,this.updateSkillLevels();const e=K.a.createElement(K.a.Fragment,null,"You worked for ",Object(H.b)(this.timeWorked),K.a.createElement("br",null),K.a.createElement("br",null),"You earned a total of: ",K.a.createElement("br",null),K.a.createElement(q.a,{money:this.workMoneyGained}),K.a.createElement("br",null),K.a.createElement(U.a,{reputation:this.workRepGained})," reputation for the company ",K.a.createElement("br",null),B.a.formatExp(this.workHackExpGained)," hacking exp ",K.a.createElement("br",null),B.a.formatExp(this.workStrExpGained)," strength exp ",K.a.createElement("br",null),B.a.formatExp(this.workDefExpGained)," defense exp ",K.a.createElement("br",null),B.a.formatExp(this.workDexExpGained)," dexterity exp ",K.a.createElement("br",null),B.a.formatExp(this.workAgiExpGained)," agility exp ",K.a.createElement("br",null),B.a.formatExp(this.workChaExpGained)," charisma exp",K.a.createElement("br",null));if(t||Object(W.a)(e),this.isWorking=!1,this.resetWorkStatus(),t){return"You worked for "+Object(H.b)(this.timeWorked)+" and earned a total of $"+B.a.formatMoney(this.workMoneyGained)+", "+B.a.formatReputation(this.workRepGained)+" reputation, "+B.a.formatExp(this.workHackExpGained)+" hacking exp, "+B.a.formatExp(this.workStrExpGained)+" strength exp, "+B.a.formatExp(this.workDefExpGained)+" defense exp, "+B.a.formatExp(this.workDexExpGained)+" dexterity exp, "+B.a.formatExp(this.workAgiExpGained)+" agility exp, and "+B.a.formatExp(this.workChaExpGained)+" charisma exp"}return""}function Rt(){this.focus=!0}function Nt(){this.focus=!1}function Pt(t){let e=1+t.favor/100;isNaN(e)&&(e=1),this.workRepGainRate*=e,this.workRepGainRate*=o.a.FactionWorkRepGain,this.isWorking=!0,this.workType=Z.d.Faction,this.currentWorkFactionName=t.name,this.timeNeededToCompleteWork=d.a.MillisecondsPer20Hours}function It(t){this.resetWorkStatus(Z.d.Faction,t.name,Z.c.Hacking),this.workHackExpGainRate=.15*this.hacking_exp_mult*o.a.FactionWorkExpGain,this.workRepGainRate=Object(O.c)(this,t),this.factionWorkType=Z.c.Hacking,this.currentWorkFactionDescription="carrying out hacking contracts",this.startFactionWork(t)}function Ft(t){this.resetWorkStatus(Z.d.Faction,t.name,Z.c.Field),this.workHackExpGainRate=.1*this.hacking_exp_mult*o.a.FactionWorkExpGain,this.workStrExpGainRate=.1*this.strength_exp_mult*o.a.FactionWorkExpGain,this.workDefExpGainRate=.1*this.defense_exp_mult*o.a.FactionWorkExpGain,this.workDexExpGainRate=.1*this.dexterity_exp_mult*o.a.FactionWorkExpGain,this.workAgiExpGainRate=.1*this.agility_exp_mult*o.a.FactionWorkExpGain,this.workChaExpGainRate=.1*this.charisma_exp_mult*o.a.FactionWorkExpGain,this.workRepGainRate=Object(O.a)(this,t),this.factionWorkType=Z.c.Field,this.currentWorkFactionDescription="carrying out field missions",this.startFactionWork(t)}function Dt(t){this.resetWorkStatus(Z.d.Faction,t.name,Z.c.Security),this.workHackExpGainRate=.05*this.hacking_exp_mult*o.a.FactionWorkExpGain,this.workStrExpGainRate=.15*this.strength_exp_mult*o.a.FactionWorkExpGain,this.workDefExpGainRate=.15*this.defense_exp_mult*o.a.FactionWorkExpGain,this.workDexExpGainRate=.15*this.dexterity_exp_mult*o.a.FactionWorkExpGain,this.workAgiExpGainRate=.15*this.agility_exp_mult*o.a.FactionWorkExpGain,this.workChaExpGainRate=0*this.charisma_exp_mult*o.a.FactionWorkExpGain,this.workRepGainRate=Object(O.b)(this,t),this.factionWorkType=Z.c.Security,this.currentWorkFactionDescription="performing security detail",this.startFactionWork(t)}function jt(t){const e=E.a[this.currentWorkFactionName];if(!e)return!1;switch(this.factionWorkType){case Z.c.Hacking:this.workRepGainRate=Object(O.c)(this,e);break;case Z.c.Field:this.workRepGainRate=Object(O.a)(this,e);break;case Z.c.Security:this.workRepGainRate=Object(O.b)(this,e)}this.workRepGainRate*=o.a.FactionWorkRepGain;let n=!1;return this.timeWorked+d.a._idleSpeed*t>=d.a.MillisecondsPer20Hours&&(n=!0,t=Math.round((d.a.MillisecondsPer20Hours-this.timeWorked)/d.a._idleSpeed)),this.timeWorked+=d.a._idleSpeed*t,this.processWorkEarnings(t),!!(n||this.timeWorked>=d.a.MillisecondsPer20Hours)&&(this.finishFactionWork(!1),!0)}function Bt(t,e=!1){const n=E.a[this.currentWorkFactionName];if(n.playerReputation+=this.workRepGained,this.updateSkillLevels(),e||Object(W.a)(K.a.createElement(K.a.Fragment,null,"You worked for your faction ",n.name," for a total of ",Object(H.b)(this.timeWorked)," ",K.a.createElement("br",null),K.a.createElement("br",null),"You earned a total of: ",K.a.createElement("br",null),K.a.createElement(q.a,{money:this.workMoneyGained}),K.a.createElement("br",null),K.a.createElement(U.a,{reputation:this.workRepGained})," reputation for the faction ",K.a.createElement("br",null),B.a.formatExp(this.workHackExpGained)," hacking exp ",K.a.createElement("br",null),B.a.formatExp(this.workStrExpGained)," strength exp ",K.a.createElement("br",null),B.a.formatExp(this.workDefExpGained)," defense exp ",K.a.createElement("br",null),B.a.formatExp(this.workDexExpGained)," dexterity exp ",K.a.createElement("br",null),B.a.formatExp(this.workAgiExpGained)," agility exp ",K.a.createElement("br",null),B.a.formatExp(this.workChaExpGained)," charisma exp",K.a.createElement("br",null))),this.isWorking=!1,this.resetWorkStatus(),e){return"You worked for your faction "+n.name+" for a total of "+Object(H.b)(this.timeWorked)+". You earned "+B.a.formatReputation(this.workRepGained)+" rep, "+B.a.formatExp(this.workHackExpGained)+" hacking exp, "+B.a.formatExp(this.workStrExpGained)+" str exp, "+B.a.formatExp(this.workDefExpGained)+" def exp, "+B.a.formatExp(this.workDexExpGained)+" dex exp, "+B.a.formatExp(this.workAgiExpGained)+" agi exp, and "+B.a.formatExp(this.workChaExpGained)+" cha exp."}return""}function Gt(){let t=1;const e=c.a[this.companyName];this.sourceFileLvl(11)>0&&(t=1+e.favor/100);const n=this.jobs[this.companyName],a=m.a[n];return null==a?(console.error(`Could not find CompanyPosition object for ${n}. Work salary will be 0`),0):a.baseSalary*e.salaryMultiplier*this.work_money_mult*o.a.CompanyWorkMoney*t}function Wt(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];return null==t||null==n?(console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work hack exp gain will be 0"].join(" ")),0):n.hackingExpGain*t.expMultiplier*this.hacking_exp_mult*o.a.CompanyWorkExpGain}function Ht(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];return null==t||null==n?(console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work str exp gain will be 0"].join(" ")),0):n.strengthExpGain*t.expMultiplier*this.strength_exp_mult*o.a.CompanyWorkExpGain}function Ut(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];return null==t||null==n?(console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work def exp gain will be 0"].join(" ")),0):n.defenseExpGain*t.expMultiplier*this.defense_exp_mult*o.a.CompanyWorkExpGain}function qt(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];return null==t||null==n?(console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work dex exp gain will be 0"].join(" ")),0):n.dexterityExpGain*t.expMultiplier*this.dexterity_exp_mult*o.a.CompanyWorkExpGain}function $t(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];return null==t||null==n?(console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work agi exp gain will be 0"].join(" ")),0):n.agilityExpGain*t.expMultiplier*this.agility_exp_mult*o.a.CompanyWorkExpGain}function Kt(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];return null==t||null==n?(console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work cha exp gain will be 0"].join(" ")),0):n.charismaExpGain*t.expMultiplier*this.charisma_exp_mult*o.a.CompanyWorkExpGain}function zt(){const t=c.a[this.companyName],e=this.jobs[this.companyName],n=m.a[e];if(null==t||null==n)return console.error(["Could not find Company object for "+this.companyName,`or CompanyPosition object for ${e}.`,"Work rep gain will be 0"].join(" ")),0;let a=n.calculateJobPerformance(this.hacking,this.strength,this.defense,this.dexterity,this.agility,this.charisma);a+=this.intelligence/d.a.MaxSkillLevel;let r=1+t.favor/100;return isNaN(r)&&(r=1),a*this.company_rep_mult*r}function Vt(t,e,n){this.resetWorkStatus(),this.isWorking=!0,this.workType=Z.d.CreateProgram,this.createProgramReqLvl=n,this.timeNeededToCompleteWork=e;for(let e=0;e=100)break;this.timeWorkedCreateProgram=a/100*this.timeNeededToCompleteWork,this.getHomeComputer().programs.splice(e,1)}}this.createProgramName=t}function Yt(t){let e=1;this.hasAugmentation(i.a.NeuroreceptorManager)||(e=this.focus?1:d.a.BaseFocusBonus);const n=this.createProgramReqLvl;let a=this.hacking/n*this.getIntelligenceBonus(3);return a=1+(a-1)/5,a*=e,this.timeWorked+=d.a._idleSpeed*t,this.timeWorkedCreateProgram+=d.a._idleSpeed*t*a,this.timeWorkedCreateProgram>=this.timeNeededToCompleteWork&&(this.finishCreateProgramWork(!1),!0)}function Jt(t){const e=this.createProgramName;if(t){if(!this.getHomeComputer().programs.includes(e)){const t=e+"-"+(Math.floor(this.timeWorkedCreateProgram/this.timeNeededToCompleteWork*1e4)/100).toString()+"%-INC";this.getHomeComputer().programs.push(t)}}else this.gainIntelligenceExp(d.a.IntelligenceProgramBaseExpGain*this.timeWorked/1e3),Object(W.a)(`You've finished creating ${e}!
The new program can be found on your home computer.`),this.getHomeComputer().programs.includes(e)||this.getHomeComputer().programs.push(e);return this.isWorking=!1,this.resetWorkStatus(),"You've finished creating "+e+"! The new program can be found on your home computer."}function Xt(t,e){this.resetWorkStatus(),this.isWorking=!0,this.workType=Z.d.GraftAugmentation,this.timeNeededToCompleteWork=e,this.graftAugmentationName=t}function Qt(t){let e=1;this.hasAugmentation(i.a.NeuroreceptorManager)||(e=this.focus?1:d.a.BaseFocusBonus);let n=Object(Q.c)(this);return n*=e,this.timeWorked+=d.a._idleSpeed*t,this.timeWorkedGraftAugmentation+=d.a._idleSpeed*t*n,this.timeWorkedGraftAugmentation>=this.timeNeededToCompleteWork&&(this.finishGraftAugmentationWork(!1),!0)}function Zt(t,e=!1){const n=this.graftAugmentationName;return!1===t?(Object(a.a)({name:n,level:1}),this.hasAugmentation(i.a.CongruityImplant)||(this.entropy+=1,this.applyEntropy(this.entropy)),Object(W.a)(`You've finished grafting ${n}.
The augmentation has been applied to your body`+(this.hasAugmentation(i.a.CongruityImplant)?".":", but you feel a bit off."))):t&&!1===e&&Object(W.a)(`You cancelled the grafting of ${n}.
Your money was not returned to you.`),t||this.gainIntelligenceExp(d.a.IntelligenceGraftBaseExpGain*this.timeWorked/1e4),this.isWorking=!1,this.resetWorkStatus(),`Grafting of ${n} has ended.`}function te(t,e,n){this.resetWorkStatus(),this.isWorking=!0,this.workType=Z.d.StudyClass,this.workCostMult=t,this.workExpMult=e,this.className=n;const a=Object(Y.a)(this);this.workMoneyLossRate=a.workMoneyLossRate,this.workHackExpGainRate=a.workHackExpGainRate,this.workStrExpGainRate=a.workStrExpGainRate,this.workDefExpGainRate=a.workDefExpGainRate,this.workDexExpGainRate=a.workDexExpGainRate,this.workAgiExpGainRate=a.workAgiExpGainRate,this.workChaExpGainRate=a.workChaExpGainRate}function ee(t){this.timeWorked+=d.a._idleSpeed*t;const e=Object(Y.a)(this);return this.workMoneyLossRate=e.workMoneyLossRate,this.workHackExpGainRate=e.workHackExpGainRate,this.workStrExpGainRate=e.workStrExpGainRate,this.workDefExpGainRate=e.workDefExpGainRate,this.workDexExpGainRate=e.workDexExpGainRate,this.workAgiExpGainRate=e.workAgiExpGainRate,this.workChaExpGainRate=e.workChaExpGainRate,this.processWorkEarnings(t),!1}function ne(t=!1){if(this.gainIntelligenceExp(d.a.IntelligenceClassBaseExpGain*Math.round(this.timeWorked/1e3)),this.workMoneyGained>0)throw new Error("ERR: Somehow gained money while taking class");if(this.updateSkillLevels(),t||Object(W.a)(K.a.createElement(K.a.Fragment,null,"After ",this.className," for ",Object(H.b)(this.timeWorked),", ",K.a.createElement("br",null),"you spent a total of ",K.a.createElement(q.a,{money:-this.workMoneyGained}),". ",K.a.createElement("br",null),K.a.createElement("br",null),"You earned a total of: ",K.a.createElement("br",null),B.a.formatExp(this.workHackExpGained)," hacking exp ",K.a.createElement("br",null),B.a.formatExp(this.workStrExpGained)," strength exp ",K.a.createElement("br",null),B.a.formatExp(this.workDefExpGained)," defense exp ",K.a.createElement("br",null),B.a.formatExp(this.workDexExpGained)," dexterity exp ",K.a.createElement("br",null),B.a.formatExp(this.workAgiExpGained)," agility exp ",K.a.createElement("br",null),B.a.formatExp(this.workChaExpGained)," charisma exp",K.a.createElement("br",null))),this.isWorking=!1,t){const t="After "+this.className+" for "+Object(H.b)(this.timeWorked)+", you spent a total of "+B.a.formatMoney(-1*this.workMoneyGained)+". You earned a total of: "+B.a.formatExp(this.workHackExpGained)+" hacking exp, "+B.a.formatExp(this.workStrExpGained)+" strength exp, "+B.a.formatExp(this.workDefExpGained)+" defense exp, "+B.a.formatExp(this.workDexExpGained)+" dexterity exp, "+B.a.formatExp(this.workAgiExpGained)+" agility exp, and "+B.a.formatExp(this.workChaExpGained)+" charisma exp";return this.resetWorkStatus(),t}return this.resetWorkStatus(),""}function ae(t,e,n,a,r,i,s,l,c,f,u=null){this.crimeType=e,this.resetWorkStatus(),this.isWorking=!0,this.focus=!0,this.workType=Z.d.Crime,null!==u&&(this.committingCrimeThruSingFn=!0,this.singFnCrimeWorkerScript=u),this.workHackExpGained=n*this.hacking_exp_mult*o.a.CrimeExpGain,this.workStrExpGained=a*this.strength_exp_mult*o.a.CrimeExpGain,this.workDefExpGained=r*this.defense_exp_mult*o.a.CrimeExpGain,this.workDexExpGained=i*this.dexterity_exp_mult*o.a.CrimeExpGain,this.workAgiExpGained=s*this.agility_exp_mult*o.a.CrimeExpGain,this.workChaExpGained=l*this.charisma_exp_mult*o.a.CrimeExpGain,this.workMoneyGained=c*this.crime_money_mult*o.a.CrimeMoney,this.timeNeededToCompleteWork=f,t.toWork()}function re(t){return this.timeWorked+=d.a._idleSpeed*t,this.timeWorked>=this.timeNeededToCompleteWork&&(this.finishCrime(!1),!0)}function ie(t){if(!t){if(Object(g.a)(this,this.crimeType)){let t=null;for(const e of Object.keys(y.a))if(y.a[e].type==this.crimeType){t=y.a[e];break}if(null==t)return Object(W.a)(`ERR: Unrecognized crime type (${this.crimeType}). This is probably a bug please contact the developer`),"";this.gainMoney(this.workMoneyGained,"crime"),this.karma-=t.karma,this.numPeopleKilled+=t.kills,t.intelligence_exp>0&&this.gainIntelligenceExp(t.intelligence_exp),this.workHackExpGained*=2,this.workStrExpGained*=2,this.workDefExpGained*=2,this.workDexExpGained*=2,this.workAgiExpGained*=2,this.workChaExpGained*=2;const e=this.singFnCrimeWorkerScript;this.committingCrimeThruSingFn&&null!==e?null==e.disableLogs.ALL&&null==e.disableLogs.commitCrime&&e.scriptRef.log("SUCCESS: Crime successful! Gained "+B.a.formatMoney(this.workMoneyGained)+", "+B.a.formatExp(this.workHackExpGained)+" hack exp, "+B.a.formatExp(this.workStrExpGained)+" str exp, "+B.a.formatExp(this.workDefExpGained)+" def exp, "+B.a.formatExp(this.workDexExpGained)+" dex exp, "+B.a.formatExp(this.workAgiExpGained)+" agi exp, "+B.a.formatExp(this.workChaExpGained)+" cha exp."):Object(W.a)(K.a.createElement(K.a.Fragment,null,"Crime successful!",K.a.createElement("br",null),K.a.createElement("br",null),"You gained:",K.a.createElement("br",null),K.a.createElement(q.a,{money:this.workMoneyGained}),K.a.createElement("br",null),B.a.formatExp(this.workHackExpGained)," hacking experience ",K.a.createElement("br",null),B.a.formatExp(this.workStrExpGained)," strength experience",K.a.createElement("br",null),B.a.formatExp(this.workDefExpGained)," defense experience",K.a.createElement("br",null),B.a.formatExp(this.workDexExpGained)," dexterity experience",K.a.createElement("br",null),B.a.formatExp(this.workAgiExpGained)," agility experience",K.a.createElement("br",null),B.a.formatExp(this.workChaExpGained)," charisma experience"))}else{this.workHackExpGained/=2,this.workStrExpGained/=2,this.workDefExpGained/=2,this.workDexExpGained/=2,this.workAgiExpGained/=2,this.workChaExpGained/=2;const t=this.singFnCrimeWorkerScript;this.committingCrimeThruSingFn&&null!==t?null==t.disableLogs.ALL&&null==t.disableLogs.commitCrime&&t.scriptRef.log("FAIL: Crime failed! Gained "+B.a.formatExp(this.workHackExpGained)+" hack exp, "+B.a.formatExp(this.workStrExpGained)+" str exp, "+B.a.formatExp(this.workDefExpGained)+" def exp, "+B.a.formatExp(this.workDexExpGained)+" dex exp, "+B.a.formatExp(this.workAgiExpGained)+" agi exp, "+B.a.formatExp(this.workChaExpGained)+" cha exp."):Object(W.a)(K.a.createElement(K.a.Fragment,null,"Crime failed!",K.a.createElement("br",null),K.a.createElement("br",null),"You gained:",K.a.createElement("br",null),B.a.formatExp(this.workHackExpGained)," hacking experience ",K.a.createElement("br",null),B.a.formatExp(this.workStrExpGained)," strength experience",K.a.createElement("br",null),B.a.formatExp(this.workDefExpGained)," defense experience",K.a.createElement("br",null),B.a.formatExp(this.workDexExpGained)," dexterity experience",K.a.createElement("br",null),B.a.formatExp(this.workAgiExpGained)," agility experience",K.a.createElement("br",null),B.a.formatExp(this.workChaExpGained)," 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)}return this.committingCrimeThruSingFn=!1,this.singFnCrimeWorkerScript=null,this.isWorking=!1,this.crimeType=Z.b.None,this.resetWorkStatus(),""}function oe(){if(!this.isWorking)return"";let t="";switch(this.workType){case Z.d.StudyClass:t=this.finishClass(!0);break;case Z.d.Company:t=this.finishWork(!0,!0);break;case Z.d.CompanyPartTime:t=this.finishWorkPartTime(!0);break;case Z.d.Faction:t=this.finishFactionWork(!0,!0);break;case Z.d.CreateProgram:t=this.finishCreateProgramWork(!0);break;case Z.d.Crime:t=this.finishCrime(!0);break;case Z.d.GraftAugmentation:t=this.finishGraftAugmentationWork(!0,!0);break;default:return console.error(`Unrecognized work type (${this.workType})`),""}return t}function se(t){return"number"!=typeof t?(console.warn("Player.takeDamage() called without a numeric argument: "+t),!1):(this.hp-=t,this.hp<=0&&(this.hospitalize(),!0))}function le(t){"number"==typeof t?(this.hp+=t,this.hp>this.max_hp&&(this.hp=this.max_hp)):console.warn("Player.regenerateHp() called without a numeric argument: "+t)}function ce(){const t=Object(D.b)(this);return V.b.emit("You've been Hospitalized for "+B.a.formatMoney(t),V.d.WARNING,2e3),this.loseMoney(t,"hospitalization"),this.hp=this.max_hp,t}function fe(t,e=!1){const n=c.a[this.location];if(!(n instanceof l.a))return console.error(`Could not find company that matches the location: ${this.location}. Player.applyToCompany() failed`),!1;let a=t;if(!this.isQualified(n,a))return e||Object(W.a)("Unfortunately, you do not qualify for this position
"+Object(u.a)(n,a)),!1;if(!n.hasPosition(a))return console.error(`Company ${n.name} does not have position ${a}. Player.applyToCompany() failed`),!1;for(;;){const t=Object(f.a)(a);if(null==t)break;if(!n.hasPosition(t)||!this.isQualified(n,t))break;a=t}if(this.jobs[n.name]===a.name){if(!e){const t=Object(f.a)(a);if(null!=t&&n.hasPosition(t)){const e=Object(u.a)(n,t);Object(W.a)("Unfortunately, you do not qualify for a promotion
"+e)}else Object(W.a)("You are already at the highest position for your field! No promotion available")}return!1}return this.jobs[n.name]=a.name,this.isWorking&&this.workType===Z.d.Company||(this.companyName=n.name),e||Object(W.a)("Congratulations! You were offered a new job at "+n.name+" as a "+a.name+"!"),!0}function ue(t,e){let n=null;if(""!==this.companyName&&(n=c.a[this.companyName]),null==n||n.name!=t.name)return e;const a=this.jobs[this.companyName];if(!a)return e;const r=m.a[a];return r.isSoftwareJob()&&e.isSoftwareJob()||r.isITJob()&&e.isITJob()||r.isBusinessJob()&&e.isBusinessJob()||r.isSecurityEngineerJob()&&e.isSecurityEngineerJob()||r.isNetworkEngineerJob()&&e.isNetworkEngineerJob()||r.isSecurityJob()&&e.isSecurityJob()||r.isAgentJob()&&e.isAgentJob()||r.isSoftwareConsultantJob()&&e.isSoftwareConsultantJob()||r.isBusinessConsultantJob()&&e.isBusinessConsultantJob()||r.isPartTimeJob()&&e.isPartTimeJob()?Object(f.a)(r):e}function me(t,e=!1){1==this.isWorking&&this.workType!==Z.d.Company&&this.companyName==t&&this.finishWork(!0),delete this.jobs[t],this.companyName===t&&(this.companyName=this.hasJob()?Object.keys(this.jobs)[0]:"")}function he(){return Boolean(Object.keys(this.jobs).length)}function de(t=!1){return this.applyForJob(m.a[h.j[0]],t)}function pe(t=!1){return this.applyForJob(m.a[h.k[0]],t)}function ge(t=!1){return this.applyForJob(m.a[h.d[0]],t)}function ye(t=!1){const e=c.a[this.location];return this.isQualified(e,m.a[h.i[0]])?this.applyForJob(m.a[h.i[0]],t):(t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1)}function be(t=!1){const e=c.a[this.location];if(this.isQualified(e,m.a[h.f[0]])){const e=m.a[h.f[0]];return this.applyForJob(e,t)}return t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1}function Ee(t=!1){return this.applyForJob(m.a[h.b[0]],t)}function ve(t=!1){return this.applyForJob(m.a[h.c[0]],t)}function ke(t=!1){return this.applyForJob(m.a[h.h[2]],t)}function _e(t=!1){const e=c.a[this.location];if(this.isQualified(e,m.a[h.a[0]])){const e=m.a[h.a[0]];return this.applyForJob(e,t)}return t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1}function we(t=!1){const e=c.a[this.location],n=h.e[1];return!!e.hasPosition(n)&&(this.isQualified(e,m.a[n])?(this.jobs[e.name]=n,!this.focus&&this.isWorking&&this.companyName!==e.name&&this.resetWorkStatus(),this.companyName=e.name,t||Object(W.a)("Congratulations, you are now employed at "+this.location),!0):(t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1))}function Se(t=!1){const e=c.a[this.location],n=h.g[1];return!!e.hasPosition(n)&&(this.isQualified(e,m.a[n])?(this.jobs[e.name]=n,!this.focus&&this.isWorking&&this.companyName!==e.name&&this.resetWorkStatus(),this.companyName=e.name,t||Object(W.a)("Congratulations, you are now employed part-time at "+this.location),!0):(t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1))}function xe(t=!1){const e=c.a[this.location],n=h.e[0];return!!e.hasPosition(n)&&(this.isQualified(e,m.a[n])?(this.jobs[e.name]=n,!this.focus&&this.isWorking&&this.companyName!==e.name&&this.resetWorkStatus(),this.companyName=e.name,t||Object(W.a)("Congratulations, you are now employed as a waiter at "+this.location),!0):(t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1))}function Ce(t=!1){const e=c.a[this.location],n=h.g[0];return!!e.hasPosition(n)&&(this.isQualified(e,m.a[n])?(this.jobs[e.name]=n,!this.focus&&this.isWorking&&this.companyName!==e.name&&this.resetWorkStatus(),this.companyName=e.name,t||Object(W.a)("Congratulations, you are now employed as a part-time waiter at "+this.location),!0):(t||Object(W.a)("Unfortunately, you do not qualify for this position"),!1))}function Le(t,e){const n=t.jobStatReqOffset,a=e.requiredHacking>0?e.requiredHacking+n:0,r=e.requiredStrength>0?e.requiredStrength+n:0,i=e.requiredDefense>0?e.requiredDefense+n:0,o=e.requiredDexterity>0?e.requiredDexterity+n:0,s=e.requiredDexterity>0?e.requiredDexterity+n:0,l=e.requiredCharisma>0?e.requiredCharisma+n:0;return this.hacking>=a&&this.strength>=r&&this.defense>=i&&this.dexterity>=o&&this.agility>=s&&this.charisma>=l&&t.playerReputation>=e.requiredReputation}function Oe(t=!0){t&&this.resetMultipliers();for(let t=0;te}const i=E.a[X.a.Illuminati];!i.isBanned&&!i.isMember&&!i.alreadyInvited&&e>=30&&this.money>=15e10&&this.hacking>=1500&&this.strength>=1200&&this.defense>=1200&&this.dexterity>=1200&&this.agility>=1200&&t.push(i);const s=E.a[X.a.Daedalus];!s.isBanned&&!s.isMember&&!s.alreadyInvited&&e>=o.a.DaedalusAugsRequirement&&this.money>=1e11&&(this.hacking>=2500||this.strength>=1500&&this.defense>=1500&&this.dexterity>=1500&&this.agility>=1500)&&t.push(s);const l=E.a[X.a.TheCovenant];!l.isBanned&&!l.isMember&&!l.alreadyInvited&&e>=20&&this.money>=75e9&&this.hacking>=850&&this.strength>=850&&this.defense>=850&&this.dexterity>=850&&this.agility>=850&&t.push(l);const f=E.a[X.a.ECorp];f.isBanned||f.isMember||f.alreadyInvited||!r(S.a.AevumECorp)||t.push(f);const u=E.a[X.a.MegaCorp];u.isBanned||u.isMember||u.alreadyInvited||!r(S.a.Sector12MegaCorp)||t.push(u);const m=E.a[X.a.BachmanAssociates];m.isBanned||m.isMember||m.alreadyInvited||!r(S.a.AevumBachmanAndAssociates)||t.push(m);const h=E.a[X.a.BladeIndustries];h.isBanned||h.isMember||h.alreadyInvited||!r(S.a.Sector12BladeIndustries)||t.push(h);const p=E.a[X.a.NWO];p.isBanned||p.isMember||p.alreadyInvited||!r(S.a.VolhavenNWO)||t.push(p);const g=E.a[X.a.ClarkeIncorporated];g.isBanned||g.isMember||g.alreadyInvited||!r(S.a.AevumClarkeIncorporated)||t.push(g);const y=E.a[X.a.OmniTekIncorporated];y.isBanned||y.isMember||y.alreadyInvited||!r(S.a.VolhavenOmniTekIncorporated)||t.push(y);const b=E.a[X.a.FourSigma];b.isBanned||b.isMember||b.alreadyInvited||!r(S.a.Sector12FourSigma)||t.push(b);const v=E.a[X.a.KuaiGongInternational];v.isBanned||v.isMember||v.alreadyInvited||!r(S.a.ChongqingKuaiGongInternational)||t.push(v);const k=E.a[X.a.FulcrumSecretTechnologies],_=Object(M.d)(R.a.FulcrumSecretTechnologies);if(!(_ instanceof T.a))throw new Error(X.a.FulcrumSecretTechnologies+" should be normal server");null==_?console.error(`Could not find ${X.a.FulcrumSecretTechnologies} Server`):k.isBanned||k.isMember||k.alreadyInvited||!_.backdoorInstalled||!r(S.a.AevumFulcrumTechnologies,25e4)||t.push(k);const x=E.a[X.a.BitRunners],C=Object(M.d)(R.a.BitRunnersServer);if(!(C instanceof T.a))throw new Error(X.a.BitRunners+" should be normal server");null==C?console.error(`Could not find ${X.a.BitRunners} Server`):x.isBanned||x.isMember||!C.backdoorInstalled||x.alreadyInvited||t.push(x);const L=E.a[X.a.TheBlackHand],O=Object(M.d)(R.a.TheBlackHandServer);if(!(O instanceof T.a))throw new Error(X.a.TheBlackHand+" should be normal server");null==O?console.error(`Could not find ${X.a.TheBlackHand} Server`):L.isBanned||L.isMember||!O.backdoorInstalled||L.alreadyInvited||t.push(L);const A=E.a[X.a.NiteSec],N=Object(M.d)(R.a.NiteSecServer);if(!(N instanceof T.a))throw new Error(X.a.NiteSec+" should be normal server");null==N?console.error(`Could not find ${X.a.NiteSec} Server`):A.isBanned||A.isMember||!N.backdoorInstalled||A.alreadyInvited||t.push(A);const P=E.a[X.a.Chongqing];!P.isBanned&&!P.isMember&&!P.alreadyInvited&&this.money>=2e7&&this.city==w.a.Chongqing&&t.push(P);const I=E.a[X.a.Sector12];!I.isBanned&&!I.isMember&&!I.alreadyInvited&&this.money>=15e6&&this.city==w.a.Sector12&&t.push(I);const F=E.a[X.a.NewTokyo];!F.isBanned&&!F.isMember&&!F.alreadyInvited&&this.money>=2e7&&this.city==w.a.NewTokyo&&t.push(F);const D=E.a[X.a.Aevum];!D.isBanned&&!D.isMember&&!D.alreadyInvited&&this.money>=4e7&&this.city==w.a.Aevum&&t.push(D);const B=E.a[X.a.Ishima];!B.isBanned&&!B.isMember&&!B.alreadyInvited&&this.money>=3e7&&this.city==w.a.Ishima&&t.push(B);const G=E.a[X.a.Volhaven];!G.isBanned&&!G.isMember&&!G.alreadyInvited&&this.money>=5e7&&this.city==w.a.Volhaven&&t.push(G);const W=E.a[X.a.SpeakersForTheDead];!W.isBanned&&!W.isMember&&!W.alreadyInvited&&this.hacking>=100&&this.strength>=300&&this.defense>=300&&this.dexterity>=300&&this.agility>=300&&this.numPeopleKilled>=30&&this.karma<=-45&&!n.includes(S.a.Sector12CIA)&&!n.includes(S.a.Sector12NSA)&&t.push(W);const H=E.a[X.a.TheDarkArmy];!H.isBanned&&!H.isMember&&!H.alreadyInvited&&this.hacking>=300&&this.strength>=300&&this.defense>=300&&this.dexterity>=300&&this.agility>=300&&this.city==w.a.Chongqing&&this.numPeopleKilled>=5&&this.karma<=-45&&!n.includes(S.a.Sector12CIA)&&!n.includes(S.a.Sector12NSA)&&t.push(H);const U=E.a[X.a.TheSyndicate];!U.isBanned&&!U.isMember&&!U.alreadyInvited&&this.hacking>=200&&this.strength>=200&&this.defense>=200&&this.dexterity>=200&&this.agility>=200&&(this.city==w.a.Aevum||this.city==w.a.Sector12)&&this.money>=1e7&&this.karma<=-90&&!n.includes(S.a.Sector12CIA)&&!n.includes(S.a.Sector12NSA)&&t.push(U);const q=E.a[X.a.Silhouette];!q.isBanned&&!q.isMember&&!q.alreadyInvited&&(a.includes("Chief Technology Officer")||a.includes("Chief Financial Officer")||a.includes("Chief Executive Officer"))&&this.money>=15e6&&this.karma<=-22&&t.push(q);const $=E.a[X.a.Tetrads];!$.isBanned&&!$.isMember&&!$.alreadyInvited&&(this.city==w.a.Chongqing||this.city==w.a.NewTokyo||this.city==w.a.Ishima)&&this.strength>=75&&this.defense>=75&&this.dexterity>=75&&this.agility>=75&&this.karma<=-18&&t.push($);const K=E.a[X.a.SlumSnakes];!K.isBanned&&!K.isMember&&!K.alreadyInvited&&this.strength>=30&&this.defense>=30&&this.dexterity>=30&&this.agility>=30&&this.karma<=-9&&this.money>=1e6&&t.push(K);const z=E.a[X.a.Netburners];let V=0,Y=0,J=0;for(let t=0;t=80&&V>=8&&Y>=4&&J>=100&&t.push(z);const Q=E.a[X.a.TianDiHui];!Q.isBanned&&!Q.isMember&&!Q.alreadyInvited&&this.money>=1e6&&this.hacking>=50&&(this.city==w.a.Chongqing||this.city==w.a.NewTokyo||this.city==w.a.Ishima)&&t.push(Q);const Z=E.a[X.a.CyberSec],tt=Object(M.d)(R.a.CyberSecServer);if(!(tt instanceof T.a))throw new Error(X.a.CyberSec+" should be normal server");return null==tt?console.error(`Could not find ${X.a.CyberSec} Server`):Z.isBanned||Z.isMember||!tt.backdoorInstalled||Z.alreadyInvited||t.push(Z),t}function Ae(t){this.bitNodeN=t}function Re(t){for(const e of this.queuedAugmentations)if(e.name==t)return void console.warn(`tried to queue ${t} twice, this may be a bug`);for(const e of this.augmentations)if(e.name==t)return void console.warn(`tried to queue ${t} twice, this may be a bug`);this.queuedAugmentations.push(new r.a(t))}function Ne(t,e=1){if(null==t||null==t.type)return"No reward for this contract";switch(t.type){case s.c.FactionReputation:if(null==t.name||!(E.a[t.name]instanceof b.a))return t.type=s.c.FactionReputationAll,this.gainCodingContractReward(t);const n=d.a.CodingContractBaseFactionRepGain*e;return E.a[t.name].playerReputation+=n,`Gained ${n} faction reputation for ${t.name}`;case s.c.FactionReputationAll:const a=d.a.CodingContractBaseFactionRepGain*e,r=[X.a.Bladeburners],i=this.factions.slice().filter(t=>!r.includes(t));if(0==i.length)return t.type=s.c.Money,this.gainCodingContractReward(t,e);const f=Math.floor(a/i.length);for(const t of i)E.a[t]instanceof b.a&&(E.a[t].playerReputation+=f);return`Gained ${f} reputation for each of the following factions: ${i.toString()}`;case s.c.CompanyReputation:{if(null==t.name||!(c.a[t.name]instanceof l.a))return t.type=s.c.FactionReputationAll,this.gainCodingContractReward(t);const n=d.a.CodingContractBaseCompanyRepGain*e;return c.a[t.name].playerReputation+=n,`Gained ${n} company reputation for ${t.name}`}case s.c.Money:default:{const t=d.a.CodingContractBaseMoneyGain*e*o.a.CodingContractMoney;return this.gainMoney(t,"codingcontract"),"Gained "+B.a.formatMoney(t)}}}function Pe(t){return null==k.a[t]?(console.warn("Player.travel() called with invalid city: "+t),!1):(this.city=t,!0)}function Ie(t){return null==_.a[t]?(console.warn("Player.gotoLocation() called with invalid location: "+t),!1):(this.location=t,!0)}function Fe(){return 10===this.bitNodeN||this.sourceFileLvl(10)>0}function De(t){this.exploits.includes(t)||(this.exploits.push(t),V.b.emit("SF -1 acquired!",V.d.SUCCESS,2e3))}function je(t){const e=J.a[t];e&&(this.achievements.map(t=>t.ID).includes(t)||(this.achievements.push({ID:t,unlockedOn:(new Date).getTime()}),V.b.emit(`Unlocked Achievement: "${e.Name}"`,V.d.SUCCESS,2e3)))}function Be(t){return Object(L.a)(this.intelligence,t)}function Ge(){return this.moneySourceA.casino}function We(t){return this.hasOwnProperty(t)?this[t]:1}function He(t,e){this.hasOwnProperty(t)&&(this[t]=e)}function Ue(){return 13===this.bitNodeN||this.sourceFileLvl(13)>0}function qe(t){const e=this.sourceFiles.find(e=>e.n===t);return e?e.lvl:0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s}));var a=n(0),r=n.n(a);const i={Corporation:r.a.createContext({}),Division:r.a.createContext({})},o=()=>Object(a.useContext)(i.Corporation),s=()=>Object(a.useContext)(i.Division)},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return f})),n.d(e,"e",(function(){return u}));var a=n(0),r=n.n(a),i=n(137),o=n(145);const s={Energy:"Energy",Utilities:"Water Utilities",Agriculture:"Agriculture",Fishing:"Fishing",Mining:"Mining",Food:"Food",Tobacco:"Tobacco",Chemical:"Chemical",Pharmaceutical:"Pharmaceutical",Computer:"Computer Hardware",Robotics:"Robotics",Software:"Software",Healthcare:"Healthcare",RealEstate:"RealEstate"},l={Energy:225e9,Utilities:15e10,Agriculture:4e10,Fishing:8e10,Mining:3e11,Food:1e10,Tobacco:2e10,Chemical:7e10,Pharmaceutical:2e11,Computer:5e11,Robotics:1e12,Software:25e9,Healthcare:75e10,RealEstate:6e11},c={Energy:t=>r.a.createElement(r.a.Fragment,null,"Engage in the production and distribution of energy.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Energy,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Utilities:t=>r.a.createElement(r.a.Fragment,null,"Distribute water and provide wastewater services.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Utilities,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Agriculture:t=>r.a.createElement(r.a.Fragment,null,"Cultivate crops and breed livestock to produce food.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Agriculture,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Fishing:t=>r.a.createElement(r.a.Fragment,null,"Produce food through the breeding and processing of fish and fish products.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Fishing,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Mining:t=>r.a.createElement(r.a.Fragment,null,"Extract and process metals from the earth.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Mining,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Food:t=>r.a.createElement(r.a.Fragment,null,"Create your own restaurants all around the world.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Food,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Tobacco:t=>r.a.createElement(r.a.Fragment,null,"Create and distribute tobacco and tobacco-related products.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Tobacco,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Chemical:t=>r.a.createElement(r.a.Fragment,null,"Produce industrial chemicals.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Chemical,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Pharmaceutical:t=>r.a.createElement(r.a.Fragment,null,"Discover, develop, and create new pharmaceutical drugs.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Pharmaceutical,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Computer:t=>r.a.createElement(r.a.Fragment,null,"Develop and manufacture new computer hardware and networking infrastructures.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Computer,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Robotics:t=>r.a.createElement(r.a.Fragment,null,"Develop and create robots.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Robotics,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Software:t=>r.a.createElement(r.a.Fragment,null,"Develop computer software and create AI Cores.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Software,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Healthcare:t=>r.a.createElement(r.a.Fragment,null,"Create and manage hospitals.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Healthcare,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO"),RealEstate:t=>r.a.createElement(r.a.Fragment,null,"Develop and manage real estate properties.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.RealEstate,corp:t}),r.a.createElement("br",null),"Recommended starting Industry: NO")},f={Energy:Object(i.a)(),Utilities:Object(i.a)(),Agriculture:Object(i.a)(),Fishing:Object(i.a)(),Mining:Object(i.a)(),Food:Object(i.b)(),Tobacco:Object(i.b)(),Chemical:Object(i.a)(),Pharmaceutical:Object(i.b)(),Computer:Object(i.b)(),Robotics:Object(i.b)(),Software:Object(i.b)(),Healthcare:Object(i.b)(),RealEstate:Object(i.b)()};function u(){f.Energy=Object(i.a)(),f.Utilities=Object(i.a)(),f.Agriculture=Object(i.a)(),f.Fishing=Object(i.a)(),f.Mining=Object(i.a)(),f.Food=Object(i.b)(),f.Tobacco=Object(i.b)(),f.Chemical=Object(i.a)(),f.Pharmaceutical=Object(i.b)(),f.Computer=Object(i.b)(),f.Robotics=Object(i.b)(),f.Software=Object(i.b)(),f.Healthcare=Object(i.b)(),f.RealEstate=Object(i.b)()}},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t[t.Company=0]="Company",t[t.Gym=1]="Gym",t[t.Hospital=2]="Hospital",t[t.Slums=3]="Slums",t[t.Special=4]="Special",t[t.StockMarket=5]="StockMarket",t[t.TechVendor=6]="TechVendor",t[t.TravelAgency=7]="TravelAgency",t[t.University=8]="University",t[t.Casino=9]="Casino"}(a||(a={}))},,,,function(t,e,n){"use strict";n.d(e,"g",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"h",(function(){return g})),n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return b})),n.d(e,"e",(function(){return E})),n.d(e,"f",(function(){return v})),n.d(e,"d",(function(){return k})),n.d(e,"c",(function(){return _})),n.d(e,"n",(function(){return w})),n.d(e,"o",(function(){return S})),n.d(e,"k",(function(){return x})),n.d(e,"j",(function(){return C})),n.d(e,"i",(function(){return L})),n.d(e,"p",(function(){return M})),n.d(e,"m",(function(){return T}));var a=n(224),r=n(212),i=n(156),o=n(41),s=n(93),l=n(377),c=n(240),f=n(378),u=n(44),m=n(22),h=n(46);function d(t){return 9===t.bitNodeN||t.sourceFileLvl(9)>0}function p(t){if(u.a.isRunning){if(u.a.currStep!==u.f.HacknetNodesIntroduction)return-1;Object(u.c)()}const e=t.hacknetNodes.length;if(d(t)){const n=b(t);if(isNaN(n))throw new Error("Calculated cost of purchasing HacknetServer is NaN");return!t.canAfford(n)||e>=o.b.MaxServers?-1:(t.loseMoney(n,"hacknet_expenses"),t.createHacknetServer(),M(t),e)}{const n=y(t);if(isNaN(n))throw new Error("Calculated cost of purchasing HacknetNode is NaN");if(!t.canAfford(n))return-1;const r="hacknet-node-"+e,i=new a.a(r,t.hacknet_node_money_mult);return t.loseMoney(n,"hacknet_expenses"),t.hacknetNodes.push(i),e}}function g(t){return d(t)&&t.hacknetNodes.length>=o.b.MaxServers}function y(t){return Object(r.d)(t.hacknetNodes.length+1,t.hacknet_node_purchase_cost_mult)}function b(t){return Object(i.f)(t.hacknetNodes.length+1,t.hacknet_node_purchase_cost_mult)}function E(t,e,n){if(null==n)throw new Error("getMaxNumberLevelUpgrades() called without maxLevel arg");if(t.moneye.calculateLevelUpgradeCost(i,t.hacknet_node_level_cost_mult))return i;for(;a<=r;){const o=(a+r)/2|0;if(o!==n&&t.money>e.calculateLevelUpgradeCost(o,t.hacknet_node_level_cost_mult)&&t.moneye.calculateLevelUpgradeCost(o,t.hacknet_node_level_cost_mult)))return Math.min(i,o);a=o+1}}return 0}function v(t,e,n){if(null==n)throw new Error("getMaxNumberRamUpgrades() called without maxLevel arg");if(t.moneye.calculateRamUpgradeCost(a,t.hacknet_node_ram_cost_mult))return a;for(let n=a-1;n>=0;--n)if(t.money>e.calculateRamUpgradeCost(n,t.hacknet_node_ram_cost_mult))return n;return 0}function k(t,e,n){if(null==n)throw new Error("getMaxNumberCoreUpgrades() called without maxLevel arg");if(t.moneye.calculateCoreUpgradeCost(i,t.hacknet_node_core_cost_mult))return i;for(;a<=r;){const o=(a+r)/2|0;if(o!=n&&t.money>e.calculateCoreUpgradeCost(o,t.hacknet_node_core_cost_mult)&&t.moneye.calculateCoreUpgradeCost(o,t.hacknet_node_core_cost_mult)))return Math.min(i,o);a=o+1}}return 0}function _(t,e,n){if(null==n)throw new Error("getMaxNumberCacheUpgrades() called without maxLevel arg");if(!t.canAfford(e.calculateCacheUpgradeCost(1)))return 0;let a=1,r=n-1;const i=n-e.cache;if(t.canAfford(e.calculateCacheUpgradeCost(i)))return i;for(;a<=r;){const o=(a+r)/2|0;if(o!=n&&t.canAfford(e.calculateCacheUpgradeCost(o))&&!t.canAfford(e.calculateCacheUpgradeCost(o+1)))return Math.min(i,o);if(t.canAfford(e.calculateCacheUpgradeCost(o))){if(!t.canAfford(e.calculateCacheUpgradeCost(o)))return Math.min(i,o);a=o+1}else r=o-1}return 0}function w(t,e,n=1){const a=Math.round(n),r=e.calculateLevelUpgradeCost(a,t.hacknet_node_level_cost_mult);if(isNaN(r)||r<=0||a<0)return!1;const i=e instanceof s.a;if(e.level>=(i?o.b.MaxLevel:o.a.MaxLevel))return!1;if(e.level+a>(i?o.b.MaxLevel:o.a.MaxLevel)){return w(t,e,Math.max(0,(i?o.b.MaxLevel:o.a.MaxLevel)-e.level))}return!!t.canAfford(r)&&(t.loseMoney(r,"hacknet_expenses"),e.upgradeLevel(a,t.hacknet_node_money_mult),!0)}function S(t,e,n=1){const r=Math.round(n),i=e.calculateRamUpgradeCost(r,t.hacknet_node_ram_cost_mult);if(isNaN(i)||i<=0||r<0)return!1;if(e instanceof s.a&&e.maxRam>=o.b.MaxRam)return!1;if(e instanceof a.a&&e.ram>=o.a.MaxRam)return!1;if(e instanceof s.a){if(e.maxRam*Math.pow(2,r)>o.b.MaxRam){return S(t,e,Math.max(0,Math.log2(Math.round(o.b.MaxRam/e.maxRam))))}}else if(e instanceof a.a&&e.ram*Math.pow(2,r)>o.a.MaxRam){return S(t,e,Math.max(0,Math.log2(Math.round(o.a.MaxRam/e.ram))))}return!!t.canAfford(i)&&(t.loseMoney(i,"hacknet_expenses"),e.upgradeRam(r,t.hacknet_node_money_mult),!0)}function x(t,e,n=1){const a=Math.round(n),r=e.calculateCoreUpgradeCost(a,t.hacknet_node_core_cost_mult);if(isNaN(r)||r<=0||a<0)return!1;const i=e instanceof s.a;if(e.cores>=(i?o.b.MaxCores:o.a.MaxCores))return!1;if(e.cores+a>(i?o.b.MaxCores:o.a.MaxCores)){return x(t,e,Math.max(0,(i?o.b.MaxCores:o.a.MaxCores)-e.cores))}return!!t.canAfford(r)&&(t.loseMoney(r,"hacknet_expenses"),e.upgradeCore(a,t.hacknet_node_money_mult),!0)}function C(t,e,n=1){const a=Math.round(n),r=e.calculateCacheUpgradeCost(a);if(isNaN(r)||r<=0||a<0)return!1;if(!(e instanceof s.a))return console.warn("purchaseCacheUpgrade() called for a non-HacknetNode"),!1;if(e.cache+a>o.b.MaxCache){return C(t,e,Math.max(0,o.b.MaxCache-e.cache))}return!!t.canAfford(r)&&(t.loseMoney(r,"hacknet_expenses"),e.upgradeCache(a),!0)}function L(t,e){return 0===t.hacknetNodes.length?0:d(t)?function(t,e){if(!(t.hashManager instanceof l.a))throw new Error("Player does not have a HashManager (should be in 'hashManager' prop)");let n=0;for(let r=0;r0){const e=c.a["Sell for Money"];if(null===e)throw new Error("Could not get the hash upgrade");if(!e.cost)throw new Error("Upgrade is not properly configured");const n=Math.floor(r/e.cost);n>0&&t.gainMoney(e.value*n,"hacknet")}return n}(t,e):t.hacknetNodes[0]instanceof a.a?function(t,e){let n=0;for(let a=0;ae==t))throw new Error(`You have already expanded into the ${e} industry!`);for(let e=0;e_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.DividendMaxPercentage)throw new Error("Invalid value. Must be an integer between 0 and "+_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.DividendMaxPercentage);t.dividendPercentage=100*e}function SellMaterial(mat,amt,price){""===price&&(price="0"),""===amt&&(amt="0");let cost=price.replace(/\s+/g,"");cost=cost.replace(/[^-()\d/*+.MPe]/g,"");let temp=cost.replace(/MP/g,mat.bCost+"");try{temp=eval(temp)}catch(t){throw new Error("Invalid value or expression for sell price field: "+t)}if(null==temp||isNaN(parseFloat(temp))||parseFloat(temp)<0)throw new Error("Invalid value or expression for sell price field");if(cost.includes("MP")?mat.sCost=cost:mat.sCost=temp,amt=amt.toUpperCase(),amt.includes("MAX")||amt.includes("PROD")){let q=amt.replace(/\s+/g,"");q=q.replace(/[^-()\d/*+.MAXPROD]/g,"");let tempQty=q.replace(/MAX/g,mat.maxsll.toString());tempQty=tempQty.replace(/PROD/g,mat.prd.toString());try{tempQty=eval(tempQty)}catch(t){throw new Error("Invalid value or expression for sell quantity field: "+t)}if(null==tempQty||isNaN(parseFloat(tempQty))||parseFloat(tempQty)<0)throw new Error("Invalid value or expression for sell quantity field");mat.sllman[0]=!0,mat.sllman[1]=q}else{if(isNaN(parseFloat(amt))||parseFloat(amt)<0)throw new Error("Invalid value for sell quantity field! Must be numeric or 'PROD' or 'MAX'");{let t=parseFloat(amt);isNaN(t)&&(t=0),0===t?(mat.sllman[0]=!1,mat.sllman[1]=0):(mat.sllman[0]=!0,mat.sllman[1]=t)}}}function SellProduct(product,city,amt,price,all){if(price.includes("MP")){price=price.replace(/\s+/g,""),price=price.replace(/[^-()\d/*+.MP]/g,"");let temp=price.replace(/MP/g,"1");try{temp=eval(temp)}catch(t){throw new Error("Invalid value or expression for sell price field: "+t)}if(null==temp||isNaN(parseFloat(temp))||parseFloat(temp)<0)throw new Error("Invalid value or expression for sell price field.");product.sCost=price}else{const t=parseFloat(price);if(isNaN(t))throw new Error("Invalid value for sell price field");product.sCost=t}const cities=Object.keys(_Locations_Cities__WEBPACK_IMPORTED_MODULE_7__.a);if(amt=amt.toUpperCase(),amt.includes("MAX")||amt.includes("PROD")){let qty=amt.replace(/\s+/g,"");qty=qty.replace(/[^-()\d/*+.MAXPROD]/g,"");let temp=qty.replace(/MAX/g,product.maxsll.toString());temp=temp.replace(/PROD/g,product.data[city][1].toString());try{temp=eval(temp)}catch(t){throw new Error("Invalid value or expression for sell quantity field: "+t)}if(null==temp||isNaN(parseFloat(temp))||parseFloat(temp)<0)throw new Error("Invalid value or expression for sell quantity field");if(all)for(let t=0;ti)throw new Error("You do not have enough warehouse size to fit this purchase");const o=a*n.bCost;if(!(t.funds>=o))throw new Error("You cannot afford this purchase.");t.funds=t.funds-o,n.qty+=a}function SellShares(t,e,n){if(isNaN(n))throw new Error("Invalid value for number of shares");if(n<0)throw new Error("Invalid value for number of shares");if(n>t.numShares)throw new Error("You don't have that many shares to sell!");if(!t.public)throw new Error("You haven't gone public!");if(t.shareSaleCooldown)throw new Error("Share sale on cooldown!");const a=t.calculateShareSale(n),r=a[0],i=a[1],o=a[2];return t.numShares-=n,t.issuedShares+=n,t.sharePrice=i,t.shareSalesUntilPriceUpdate=o,t.shareSaleCooldown=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SellSharesCooldown,e.gainMoney(r,"corporation"),r}function BuyBackShares(t,e,n){if(isNaN(n))throw new Error("Invalid value for number of shares");if(n<0)throw new Error("Invalid value for number of shares");if(n>t.issuedShares)throw new Error("You don't have that many shares to buy!");if(!t.public)throw new Error("You haven't gone public!");const a=1.1*t.sharePrice;if(e.moneye+_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.WarehouseUpgradeBaseCost*Math.pow(1.07,t.level+1+n),0)}function UpgradeWarehouse(t,e,n,a=1){const r=UpgradeWarehouseCost(n,a);t.funds=o)throw new Error(`You are already at the max products (${o}) for division: ${e.name}!`);const l=new _Product__WEBPACK_IMPORTED_MODULE_5__.a({name:a.replace(/[<>]/g,"").trim(),createCity:n,designCost:r,advCost:i});if(s[l.name]instanceof _Product__WEBPACK_IMPORTED_MODULE_5__.a)throw new Error("You already have a product with this name!");t.funds=t.funds-(r+i),s[l.name]=l}function Research(t,e){const n=_IndustryData__WEBPACK_IMPORTED_MODULE_1__.c[t.type];if(void 0===n)throw new Error(`No research tree for industry '${t.type}'`);if(!n.getAllNodes().includes(e))throw new Error(`No research named '${e}'`);const a=_ResearchMap__WEBPACK_IMPORTED_MODULE_10__.a[e];if(t.sciResearch.qty{var e;null!=o[(e=t).name]&&console.warn("Duplicate Company Position being defined: "+e.name),o[e.name]=new r.a(e)});for(const e of Object.keys(o)){const n=o[e];t[e]instanceof r.a?(n.favor=t[e].favor,isNaN(n.favor)&&(n.favor=0)):n.favor=0}}function l(t){o=JSON.parse(t,i.c)}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(30),o=n(149),s=n(121);function l(){return(l=Object.assign||function(t){for(var e=1;er.a.createElement(i.a,l({},t,{classes:{root:c().root,...t.classes}})),u=t=>r.a.createElement(o.a,l({},t,{classes:{root:c().small,...t.classes}}))},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(50),o=n(30),s=n(1),l=n(5),c=n(24),f=n(302);const u=({name:t,color:e,classes:n=Object(f.b)(),children:a,data:u})=>{let m="";return u&&(void 0!==u.content?m=u.content:void 0!==u.level&&void 0!==u.exp?m=`${Object(c.d)(u.level,0)} (${l.a.formatExp(u.exp)} exp)`:void 0!==u.level&&void 0===u.exp&&(m=""+Object(c.d)(u.level,0))),r.a.createElement(i.a,null,r.a.createElement(o.a,{classes:{root:n.cellNone}},r.a.createElement(s.a,{style:{color:e}},t)),r.a.createElement(o.a,{align:"right",classes:{root:n.cellNone}},m?r.a.createElement(s.a,{style:{color:e}},m):r.a.createElement(r.a.Fragment,null),a))}},,function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t.Long="L",t.Short="S"}(a||(a={}))},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t[t.Idle=0]="Idle",t[t.Company=1]="Company",t[t.Faction=2]="Faction",t[t.Crime=3]="Crime",t[t.Class=4]="Class",t[t.Gym=5]="Gym",t[t.Recovery=6]="Recovery",t[t.Synchro=7]="Synchro"}(a||(a={}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s}));var a=n(4),r=n(28);let i={[a.a.SlumSnakes]:{power:1,territory:1/7},[a.a.Tetrads]:{power:1,territory:1/7},[a.a.TheSyndicate]:{power:1,territory:1/7},[a.a.TheDarkArmy]:{power:1,territory:1/7},[a.a.SpeakersForTheDead]:{power:1,territory:1/7},[a.a.NiteSec]:{power:1,territory:1/7},[a.a.TheBlackHand]:{power:1,territory:1/7}};function o(){i={[a.a.SlumSnakes]:{power:1,territory:1/7},[a.a.Tetrads]:{power:1,territory:1/7},[a.a.TheSyndicate]:{power:1,territory:1/7},[a.a.TheDarkArmy]:{power:1,territory:1/7},[a.a.SpeakersForTheDead]:{power:1,territory:1/7},[a.a.NiteSec]:{power:1,territory:1/7},[a.a.TheBlackHand]:{power:1,territory:1/7}}}function s(t){i=JSON.parse(t,r.c)}},,function(t,e,n){"use strict";function a(t){return t.startsWith("/")?t.slice(1):t}function r(t){return t.endsWith("/")?t.slice(0,-1):t}function i(t){return null!=t.match(/^[.a-zA-Z0-9_-]+[.][a-zA-Z0-9]+(?:-\d+(?:\.\d*)?%-INC)?$/)}function o(t){return null!=t.match(/^(?:[-.%]|\w)*[-%a-zA-Z0-9_]$/)}function s(t){let e=t;if(0===e.length)return!1;if(1===e.length)return"/"===e;if(!e.startsWith("/"))return!1;e=e.slice(1),e=r(e);const n=e.split("/");for(const t of n)if("."!==t&&".."!==t&&!o(t))return!1;return!0}function l(t){if(null==t||"string"!=typeof t)return!1;const e=t;if(e.length<3)return!1;if(e.endsWith("/"))return!1;const n=e.lastIndexOf("/");if(-1===n)return i(e);const a=e.slice(n+1);return s(e.slice(0,n+1))&&i(a)}function c(t){let e=t;if(e=a(e),e=r(e),-1===e.lastIndexOf("/"))return"/";const n=e.split("/");return 0===n.length?"/":n[0]+"/"}function f(t){const e=t,n=e.lastIndexOf("/");return-1===n?"":e.slice(0,n+1)}function u(t,e,n){const a=h(t,n);if(null===a)return t;{const t=r(a),n=function(t){const e=t,n=e.lastIndexOf("/");if(-1===n)return e;return e.slice(n+1)}(e);return t+"/"+n}}function m(t){return!!l(t)&&(null!=t&&0!==t.length&&t.lastIndexOf("/")<=0)}function h(t,e){let n=t;if(n.startsWith("/")||null==e||(n=e+(e.endsWith("/")?"":"/")+n),!s(n))return null;n=a(n),n=r(n);const i=n.split("/"),o=[];for(const t of i)if("."!==t)if(".."===t){if(null==o.pop())return null}else o.push(t);return"/"+o.join("/")}function d(t,e){let n=t;if(n.startsWith("/")||null==e||(n=e+(e.endsWith("/")?"":"/")+n),!l(n))return null;n=a(n);const r=n.split("/"),i=[];for(const t of r)if("."!==t)if(".."===t){if(null==i.pop())return null}else i.push(t);return"/"+i.join("/")}function p(t,e){return t.startsWith("/")||(t="/"+t),e.startsWith("/")||(e="/"+e),t===e}function g(t,e){return t.endsWith(".ns")||t.endsWith(".js")||(t+=".js"),e.endsWith(".ns")||e.endsWith(".js")||(e+=".js"),p(t,e)}n.d(e,"k",(function(){return a})),n.d(e,"l",(function(){return r})),n.d(e,"i",(function(){return s})),n.d(e,"j",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"e",(function(){return f})),n.d(e,"f",(function(){return u})),n.d(e,"h",(function(){return m})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return g}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a=new(n(949).a)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(274),r=n(10),i=n(34);const o={Shoplift:new a.a("Shoplift",i.b.Shoplift,2e3,15e3,.05,.1,{dexterity_success_weight:1,agility_success_weight:1,dexterity_exp:2,agility_exp:2}),RobStore:new a.a("Rob Store",i.b.RobStore,6e4,4e5,.2,.5,{hacking_exp:30,dexterity_exp:45,agility_exp:45,hacking_success_weight:.5,dexterity_success_weight:2,agility_success_weight:1,intelligence_exp:7.5*r.a.IntelligenceCrimeBaseExpGain}),Mug:new a.a("Mug",i.b.Mug,4e3,36e3,.2,.25,{strength_exp:3,defense_exp:3,dexterity_exp:3,agility_exp:3,strength_success_weight:1.5,defense_success_weight:.5,dexterity_success_weight:1.5,agility_success_weight:.5}),Larceny:new a.a("Larceny",i.b.Larceny,9e4,8e5,1/3,1.5,{hacking_exp:45,dexterity_exp:60,agility_exp:60,hacking_success_weight:.5,dexterity_success_weight:1,agility_success_weight:1,intelligence_exp:15*r.a.IntelligenceCrimeBaseExpGain}),DealDrugs:new a.a("Deal Drugs",i.b.Drugs,1e4,12e4,1,.5,{dexterity_exp:5,agility_exp:5,charisma_exp:10,charisma_success_weight:3,dexterity_success_weight:2,agility_success_weight:1}),BondForgery:new a.a("Bond Forgery",i.b.BondForgery,3e5,45e5,.5,.1,{hacking_exp:100,dexterity_exp:150,charisma_exp:15,hacking_success_weight:.05,dexterity_success_weight:1.25,intelligence_exp:60*r.a.IntelligenceCrimeBaseExpGain}),TraffickArms:new a.a("Traffick Arms",i.b.TraffickArms,4e4,6e5,2,1,{strength_exp:20,defense_exp:20,dexterity_exp:20,agility_exp:20,charisma_exp:40,charisma_success_weight:1,strength_success_weight:1,defense_success_weight:1,dexterity_success_weight:1,agility_success_weight:1}),Homicide:new a.a("Homicide",i.b.Homicide,3e3,45e3,1,3,{strength_exp:2,defense_exp:2,dexterity_exp:2,agility_exp:2,strength_success_weight:2,defense_success_weight:2,dexterity_success_weight:.5,agility_success_weight:.5,kills:1}),GrandTheftAuto:new a.a("Grand Theft Auto",i.b.GrandTheftAuto,8e4,16e5,8,5,{strength_exp:20,defense_exp:20,dexterity_exp:20,agility_exp:80,charisma_exp:40,hacking_success_weight:1,strength_success_weight:1,dexterity_success_weight:4,agility_success_weight:2,charisma_success_weight:2,intelligence_exp:16*r.a.IntelligenceCrimeBaseExpGain}),Kidnap:new a.a("Kidnap",i.b.Kidnap,12e4,36e5,5,6,{strength_exp:80,defense_exp:80,dexterity_exp:80,agility_exp:80,charisma_exp:80,charisma_success_weight:1,strength_success_weight:1,dexterity_success_weight:1,agility_success_weight:1,intelligence_exp:26*r.a.IntelligenceCrimeBaseExpGain}),Assassination:new a.a("Assassination",i.b.Assassination,3e5,12e6,8,10,{strength_exp:300,defense_exp:300,dexterity_exp:300,agility_exp:300,strength_success_weight:1,dexterity_success_weight:2,agility_success_weight:1,intelligence_exp:65*r.a.IntelligenceCrimeBaseExpGain,kills:1}),Heist:new a.a("Heist",i.b.Heist,6e5,12e7,18,15,{hacking_exp:450,strength_exp:450,defense_exp:450,dexterity_exp:450,agility_exp:450,charisma_exp:450,hacking_success_weight:1,strength_success_weight:1,defense_success_weight:1,dexterity_success_weight:1,agility_success_weight:1,charisma_success_weight:1,intelligence_exp:130*r.a.IntelligenceCrimeBaseExpGain})}},function(t,e,n){"use strict";function a(t){return function(e){e.isTrusted&&t()}}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={Home:"home",FulcrumSecretTechnologies:"fulcrumassets",CyberSecServer:"CSEC",NiteSecServer:"avmnite-02h",TheBlackHandServer:"I.I.I.I",BitRunnersServer:"run4theh111z",TheDarkArmyServer:".",DaedalusServer:"The-Cave",WorldDaemon:"w0r1d_d43m0n",DarkWeb:"darkweb"}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return Ct})),n.d(e,"a",(function(){return Lt}));var a=n(0),r=n.n(a),i=n(119),o=n(112),s=n(348),l=n(9),c=n(187),f=n(44),u=n(1066),m=n(379),h=n(460),d=n(14),p=n(22),g=n(26),y=n(244),b=n(104),E=n(121),v=n(146),k=n(19),_=n(1),w=n(25),S=n(1085),x=n(1089),C=n(1113),L=n(1118),O=n(1144),M=n(1173),T=n(1192),A=n(1229),R=n(1242),N=n(1243),P=n(1244),I=n(1286),F=n(1295),D=n(1304),j=n(1329),B=n(412),G=n(639),W=n(1342),H=n(1343),U=n(1348),q=n(1349),$=n(413),K=n(1360),z=n(1368),V=n(638),Y=n(1369),J=n(1378),X=n(1381),Q=n(102),Z=n(302),tt=n(1388),et=n(198),nt=n(1389),at=n(99),rt=n(179),it=n(340),ot=n(408),st=n(595),lt=n(301),ct=n(417),ft=n(29),ut=n(418),mt=n(1391),ht=n(1394),dt=n(6),pt=n(1395),gt=n(1400),yt=n(1405),bt=n(1406),Et=n.n(bt),vt=n(1407),kt=n.n(vt),_t=n(463);const wt=location,St=Object(E.a)(t=>Object(v.a)({root:{"-ms-overflow-style":"none","scrollbar-width":"none",margin:t.spacing(0),flexGrow:1,display:"block",padding:"8px",minHeight:"100vh",boxSizing:"border-box"}})),xt=()=>{throw new Error("Router called before initialization")};let Ct={isInitialized:!1,page:xt,allowRouting:xt,toActiveScripts:xt,toAugmentations:xt,toBitVerse:xt,toBladeburner:xt,toStats:xt,toCity:xt,toCorporation:xt,toCreateProgram:xt,toDevMenu:xt,toFaction:xt,toFactions:xt,toGameOptions:xt,toGang:xt,toHacknetNodes:xt,toInfiltration:xt,toJob:xt,toMilestones:xt,toGrafting:xt,toScriptEditor:xt,toSleeves:xt,toStockMarket:xt,toTerminal:xt,toTravel:xt,toTutorial:xt,toWork:xt,toBladeburnerCinematic:xt,toLocation:xt,toStaneksGift:xt,toAchievements:xt,toThemeBrowser:xt,toImportSave:xt};function Lt({player:t,engine:e,terminal:n}){const E=St(),[{files:v,vim:bt},vt]=Object(a.useState)({files:{},vim:!1}),[xt,Lt]=Object(a.useState)(function(t){return ut.b?w.a.Recovery:t.isWorking?w.a.Work:w.a.Terminal}(t)),Ot=Object(a.useState)(0)[1],[Mt,Tt]=Object(a.useState)(!1),[At,Rt]=Object(a.useState)(t.currentWorkFactionName?g.a[t.currentWorkFactionName]:void 0);if(void 0===At&&xt===w.a.Faction)throw new Error("Trying to go to a page without the proper setup");const[Nt,Pt]=Object(a.useState)(!1),[It,Ft]=Object(a.useState)(!1),[Dt,jt]=Object(a.useState)(void 0);if(void 0===Dt&&(xt===w.a.Infiltration||xt===w.a.Location||xt===w.a.Job))throw new Error("Trying to go to a page without the proper setup");const[Bt,Gt]=Object(a.useState)(""),[Wt,Ht]=Object(a.useState)(0),[Ut,qt]=Object(a.useState)(dt.a.IsSidebarOpened),[$t,Kt]=Object(a.useState)(void 0),[zt,Vt]=Object(a.useState)(!1);if(void 0===$t&&xt===w.a.ImportSave)throw new Error("Trying to go to a page without the proper setup");const[Yt,Jt]=Object(a.useState)(!0);function Xt(){Ot(t=>t+1)}function Qt(){for(const t of Object(p.c)())t.runningScripts=[];o.c.saveGame(),setTimeout(()=>wt.reload(),2e3)}function Zt(){Object(d.a)("Soft Reset!"),Object(i.f)(!0),Ht(Wt+1),Ct.toTerminal()}Object(a.useEffect)(()=>m.a.subscribe(Xt),[]),Ct={isInitialized:!0,page:()=>xt,allowRouting:t=>Jt(t),toActiveScripts:()=>Lt(w.a.ActiveScripts),toAugmentations:()=>Lt(w.a.Augmentations),toBladeburner:()=>Lt(w.a.Bladeburner),toStats:()=>Lt(w.a.Stats),toCorporation:()=>Lt(w.a.Corporation),toCreateProgram:()=>Lt(w.a.CreateProgram),toDevMenu:()=>Lt(w.a.DevMenu),toFaction:(t,e=!1)=>{Tt(e),Lt(w.a.Faction),t&&Rt(t)},toFactions:()=>Lt(w.a.Factions),toGameOptions:()=>Lt(w.a.Options),toGang:()=>Lt(w.a.Gang),toHacknetNodes:()=>Lt(w.a.Hacknet),toMilestones:()=>Lt(w.a.Milestones),toGrafting:()=>Lt(w.a.Grafting),toScriptEditor:(t,e)=>{vt({files:t,vim:!(null==e||!e.vim)}),Lt(w.a.ScriptEditor)},toSleeves:()=>Lt(w.a.Sleeves),toStockMarket:()=>Lt(w.a.StockMarket),toTerminal:()=>Lt(w.a.Terminal),toTutorial:()=>Lt(w.a.Tutorial),toJob:()=>{jt(c.a[t.companyName]),Lt(w.a.Job)},toCity:()=>{Lt(w.a.City)},toTravel:()=>{t.gotoLocation(l.a.TravelAgency),Lt(w.a.Travel)},toBitVerse:(t,e)=>{Pt(t),Ft(e),Object(lt.b)(),Lt(w.a.BitVerse)},toInfiltration:t=>{jt(t),Lt(w.a.Infiltration)},toWork:()=>Lt(w.a.Work),toBladeburnerCinematic:()=>{Lt(w.a.BladeburnerCinematic),Gt(Bt)},toLocation:t=>{jt(t),Lt(w.a.Location)},toStaneksGift:()=>{Lt(w.a.StaneksGift)},toAchievements:()=>{Lt(w.a.Achievements)},toThemeBrowser:()=>{Lt(w.a.ThemeBrowser)},toImportSave:(t,e=!1)=>{Kt(t),Vt(e),Lt(w.a.ImportSave)}},Object(a.useEffect)(()=>{kt()(Ct).filter(t=>t.startsWith("to")).forEach(t=>{Ct[t]=Et()(Ct[t],(e,...n)=>{if(Yt)return e(...n);console.log(`Routing is currently disabled - Attempted router.${t}()`)})})}),Object(a.useEffect)(()=>{xt!==w.a.Terminal&&window.scrollTo(0,0)});let te=r.a.createElement(_.a,null,"Cannot load"),ee=!0,ne=!0,ae=!1;switch(xt){case w.a.Recovery:te=r.a.createElement(ut.c,{router:Ct,softReset:Zt}),ee=!1,ne=!1,ae=!0;break;case w.a.BitVerse:te=r.a.createElement(J.a,{flume:Nt,enter:ct.a,quick:It}),ee=!1,ne=!1;break;case w.a.Infiltration:te=r.a.createElement(A.a,{location:Dt}),ee=!1,ne=!1;break;case w.a.BladeburnerCinematic:te=r.a.createElement(tt.a,null),ee=!1,ne=!1;break;case w.a.Work:te=r.a.createElement(N.a,null),ee=!1;break;case w.a.Terminal:te=r.a.createElement(H.a,{terminal:n,router:Ct,player:t});break;case w.a.Sleeves:te=r.a.createElement(I.a,null);break;case w.a.StaneksGift:te=r.a.createElement(X.a,{staneksGift:Q.c});break;case w.a.Stats:te=r.a.createElement(z.a,null);break;case w.a.ScriptEditor:te=r.a.createElement(G.a,{files:v,hostname:t.getCurrentServer().hostname,player:t,router:Ct,vim:bt});break;case w.a.ActiveScripts:te=r.a.createElement(q.a,{workerScripts:et.a});break;case w.a.Hacknet:te=r.a.createElement(F.a,{player:t});break;case w.a.CreateProgram:te=r.a.createElement(B.a,null);break;case w.a.Factions:te=r.a.createElement($.a,{player:t,router:Ct});break;case w.a.Faction:te=r.a.createElement(K.a,{faction:At,augPage:Mt});break;case w.a.Milestones:te=r.a.createElement(W.a,{player:t});break;case w.a.Tutorial:te=r.a.createElement(U.a,{reactivateTutorial:()=>{Object(h.a)(),Ct.toTerminal(),Object(f.e)()}});break;case w.a.DevMenu:te=r.a.createElement(L.a,{player:t,engine:e,router:Ct});break;case w.a.Gang:te=r.a.createElement(M.a,null);break;case w.a.Corporation:te=r.a.createElement(T.a,null);break;case w.a.Bladeburner:te=r.a.createElement(O.a,null);break;case w.a.Grafting:te=r.a.createElement(R.a,null);break;case w.a.Travel:te=r.a.createElement(V.a,{p:t,router:Ct});break;case w.a.StockMarket:te=r.a.createElement(Y.a,{buyStockLong:y.a,buyStockShort:y.d,cancelOrder:b.c,eventEmitterForReset:b.e,initStockMarket:b.g,p:t,placeOrder:b.j,sellStockLong:y.c,sellStockShort:y.b,stockMarket:b.a});break;case w.a.City:te=r.a.createElement(j.a,null);break;case w.a.Job:case w.a.Location:te=r.a.createElement(D.a,{loc:Dt});break;case w.a.Options:te=r.a.createElement(P.a,{player:t,router:Ct,save:()=>o.c.saveGame(),export:()=>{Object(s.c)(t),o.c.exportGame()},forceKill:Qt,softReset:Zt});break;case w.a.Augmentations:te=r.a.createElement(C.a,{exportGameFn:()=>{Object(s.c)(t),o.c.exportGame()},installAugmentationsFn:()=>{Object(i.f)()}});break;case w.a.Achievements:te=r.a.createElement(mt.a,null);break;case w.a.ThemeBrowser:te=r.a.createElement(pt.a,{router:Ct});break;case w.a.ImportSave:te=r.a.createElement(gt.a,{importString:$t,automatic:zt,router:Ct}),ee=!1,ne=!1,ae=!0}return r.a.createElement(ft.a.Player.Provider,{value:t},r.a.createElement(ft.a.Router.Provider,{value:Ct},r.a.createElement(ht.a,{key:Wt,router:Ct,softReset:Zt},r.a.createElement(yt.a,{content:ae?te:null},r.a.createElement(at.c,null,r.a.createElement(S.a,{mode:f.a.isRunning?"tutorial":"overview"},f.a.isRunning?r.a.createElement(u.a,null):r.a.createElement(Z.a,{save:()=>o.c.saveGame(),killScripts:Qt})),ee?r.a.createElement(k.a,{display:"flex",flexDirection:"row",width:"100%"},r.a.createElement(x.a,{player:t,router:Ct,page:xt,opened:Ut,onToggled:t=>{qt(t),dt.a.IsSidebarOpened=t}}),r.a.createElement(k.a,{className:E.root},te)):r.a.createElement(k.a,{className:E.root},te),r.a.createElement(nt.a,null),ne&&r.a.createElement(r.a.Fragment,null,r.a.createElement(rt.d,null),r.a.createElement(it.b,null),r.a.createElement(ot.b,null),r.a.createElement(st.b,null),r.a.createElement(at.a,null)),r.a.createElement(_t.a,null))))))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(10),r=n(578),i=n(41),o=n(156),s=n(341),l=n(28);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class f extends r.a{constructor(t={hostname:"",ip:Object(s.a)()}){super(t),c(this,"cache",1),c(this,"cores",1),c(this,"hashCapacity",0),c(this,"hashRate",0),c(this,"level",1),c(this,"onlineTimeSeconds",0),c(this,"totalHashesGenerated",0),c(this,"purchasedByPlayer",!0),this.maxRam=1,this.updateHashCapacity()}calculateCacheUpgradeCost(t){return Object(o.a)(this.cache,t)}calculateCoreUpgradeCost(t,e){return Object(o.b)(this.cores,t,e)}calculateLevelUpgradeCost(t,e){return Object(o.d)(this.level,t,e)}calculateRamUpgradeCost(t,e){return Object(o.e)(this.maxRam,t,e)}process(t=1){const e=t*a.a.MilliPerCycle/1e3;this.onlineTimeSeconds+=e;const n=this.hashRate*e;return this.totalHashesGenerated+=n,n}upgradeCache(t){this.cache=Math.min(i.b.MaxCache,Math.round(this.cache+t)),this.updateHashCapacity()}upgradeCore(t,e){this.cores=Math.min(i.b.MaxCores,Math.round(this.cores+t)),this.updateHashRate(e),this.cpuCores=this.cores}upgradeLevel(t,e){this.level=Math.min(i.b.MaxLevel,Math.round(this.level+t)),this.updateHashRate(e)}upgradeRam(t,e){for(let e=0;e{var e;null!=i[(e=t).name]&&console.warn("Duplicate Company Position being defined: "+e.name),i[e.name]=new r.a(e)})},,,,function(t,e,n){"use strict";n.d(e,"d",(function(){return u})),n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(772),o=n(121),s=n(125),l=n(1770),c=n(45),f=n(179);let u;!function(t){t.SUCCESS="success",t.WARNING="warning",t.ERROR="error",t.INFO="info"}(u||(u={}));const m=Object(o.a)(()=>({snackbar:{zIndex:f.e+1e3+" !important","& .MuiAlert-icon":{alignSelf:"center"}}}));function h(t){const e=m();return r.a.createElement(i.a,{dense:!0,maxSnack:9,anchorOrigin:{horizontal:"right",vertical:"bottom"},autoHideDuration:2e3,classes:{containerRoot:e.snackbar}},t.children)}const d=new s.a;function p(){const{enqueueSnackbar:t,closeSnackbar:e}=Object(i.b)();return Object(a.useEffect)(()=>d.subscribe((n,a,i)=>{const o=t(r.a.createElement(l.a,{severity:a},n),{content:(t,e)=>r.a.createElement(c.a,{key:t},e),variant:a,autoHideDuration:i,onClick:()=>e(o)})})),r.a.createElement(r.a.Fragment,null)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(9);const r={};r[a.a.AevumECorp]="ECP",r[a.a.Sector12MegaCorp]="MGCP",r[a.a.Sector12BladeIndustries]="BLD",r[a.a.AevumClarkeIncorporated]="CLRK",r[a.a.VolhavenOmniTekIncorporated]="OMTK",r[a.a.Sector12FourSigma]="FSIG",r[a.a.ChongqingKuaiGongInternational]="KGI",r[a.a.AevumFulcrumTechnologies]="FLCM",r[a.a.IshimaStormTechnologies]="STM",r[a.a.NewTokyoDefComm]="DCOMM",r[a.a.VolhavenHeliosLabs]="HLS",r[a.a.NewTokyoVitaLife]="VITA",r[a.a.Sector12IcarusMicrosystems]="ICRS",r[a.a.Sector12UniversalEnergy]="UNV",r[a.a.AevumAeroCorp]="AERO",r[a.a.VolhavenOmniaCybersystems]="OMN",r[a.a.ChongqingSolarisSpaceSystems]="SLRS",r[a.a.NewTokyoGlobalPharmaceuticals]="GPH",r[a.a.IshimaNovaMedical]="NVMD",r[a.a.AevumWatchdogSecurity]="WDS",r[a.a.VolhavenLexoCorp]="LXO",r[a.a.AevumRhoConstruction]="RHOC",r[a.a.Sector12AlphaEnterprises]="APHE",r[a.a.VolhavenSysCoreSecurities]="SYSC",r[a.a.VolhavenCompuTek]="CTK",r[a.a.AevumNetLinkTechnologies]="NTLK",r[a.a.IshimaOmegaSoftware]="OMGA",r[a.a.Sector12FoodNStuff]="FNS",r[a.a.Sector12JoesGuns]="JGN",r["Sigma Cosmetics"]="SGC",r["Catalyst Ventures"]="CTYS",r["Microdyne Technologies"]="MDYN",r["Titan Laboratories"]="TITN"},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r}));const a=[".js",".script",".ns"];function r(t){return a.some(e=>t.endsWith(e))}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return l}));var a=n(28),r=n(770);let i=new r.a;function o(t){i=t?JSON.parse(t,a.c):new r.a}function s(t){const e=[];for(let n=0;n1?1:i<0?0:i}function o(t,e){null==t.baseDifficulty&&(t.baseDifficulty=t.hackDifficulty);let n=3;return n+=.3*t.baseDifficulty,n*e.hacking_exp_mult*a.a.HackExpGain}function s(t,e){const n=(100-t.hackDifficulty)/100*((e.hacking-(t.requiredHackingSkill-1))/e.hacking)*e.hacking_money_mult*a.a.ScriptHackMoney/240;return n<0?0:n>1?1:n}function l(t,e){let n=2.5*(t.requiredHackingSkill*t.hackDifficulty)+500;n/=e.hacking+50;return 5*n/(e.hacking_speed_mult*Object(r.a)(e.intelligence,1))}function c(t,e){return 3.2*l(t,e)}function f(t,e){return 4*l(t,e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return y})),n.d(e,"j",(function(){return b})),n.d(e,"c",(function(){return E})),n.d(e,"i",(function(){return v})),n.d(e,"d",(function(){return k})),n.d(e,"f",(function(){return _})),n.d(e,"h",(function(){return w})),n.d(e,"k",(function(){return x})),n.d(e,"g",(function(){return C})),n.d(e,"e",(function(){return L}));var a=n(769),r=n(332),i=n(153),o=n(665),s=n(1031),l=n(117),c=n(76),f=n(100),u=n(10),m=n(125),h=n(5),d=n(14),p=n(28);let g={lastUpdate:0,Orders:{},storedCycles:0,ticksUntilCycle:0};const y={};function b(t,e,n,o,s,l=null){if(!(t instanceof i.a))return l?l.log("stock.placeOrder",()=>`Invalid stock: '${t}'`):Object(d.a)("ERROR: Invalid stock passed to placeOrder() function"),!1;if("number"!=typeof e||"number"!=typeof n)return l?l.log("stock.placeOrder",()=>`Invalid arguments: shares='${e}' price='${n}'`):Object(d.a)("ERROR: Invalid numeric value provided for either 'shares' or 'price' argument"),!1;const c=new a.a(t.symbol,e,n,o,s);if(null==g.Orders){const t={};for(const e of Object.keys(g)){const n=g[e];n instanceof i.a&&(t[n.symbol]=[])}g.Orders=t}g.Orders[t.symbol].push(c);const f={stockMarket:g,symbolToStockMap:y};return Object(r.a)(t,c.type,c.pos,f),!0}function E(t,e=null){if(null==g.Orders)return!1;if(t.order&&t.order instanceof a.a){const e=t.order,n=g.Orders[e.stockSymbol];for(let t=0;t=e.cap&&(o=.1,e.b=!1),isNaN(o)&&(o=.5);const s=Math.random(),f={stockMarket:g,symbolToStockMap:y};st);c.a.factions.sort((t,n)=>e.indexOf(t)-e.indexOf(n));const n=t.getInfo();for(const t of n.enemies)l.a[t]instanceof s.a&&(l.a[t].isBanned=!0);for(let e=0;ec.a.hasAugmentation(t))}function E(t,e,n=!1){const a=b(t),o=t.getCost(c.a);if(a)if(0!==o.moneyCost&&c.a.money=o.moneyCost){const e=new r.a(t.name);if(t.name==i.a.NeuroFluxGovernor&&(e.level=t.getLevel(c.a)),c.a.queuedAugmentations.push(e),c.a.loseMoney(o.moneyCost,"augmentations"),n)return"You purchased "+t.name;f.a.SuppressBuyAugmentationConfirmation||Object(m.a)("You purchased "+t.name+". Its enhancements will not take effect until they are installed. To install your augmentations, go to the 'Augmentations' tab on the left-hand navigation menu. Purchasing additional augmentations will now be more expensive.")}else Object(m.a)("Hmm, something went wrong when trying to purchase an Augmentation. Please report this to the game developer with an explanation of how to reproduce this.");else{const e=`You must first purchase or install ${t.prereqs.filter(t=>!c.a.hasAugmentation(t)).join(",")} before you can purchase this one.`;if(n)return e;Object(m.a)(e)}return""}function v(t){for(const e of Object.keys(l.a)){if(e===c.a.currentWorkFactionName)continue;if(!l.a.hasOwnProperty(e))continue;const n=l.a[e];if(!n.isMember)continue;if(!n.getInfo().offersWork())continue;if(c.a.getGangName()===e)continue;const a=Math.min(.1,n.favor/1e3+.01),r=Object(u.c)(c.a,n),i=Object(u.b)(c.a,n),s=Object(u.a)(c.a,n),f=Math.max(r*a,i*a,s*a,1/120);n.playerReputation+=f*t*c.a.faction_rep_mult*o.a.FactionPassiveRepGain}}const k=(t,e)=>{if(t.hasGangWith(e.name)){let n=Object.values(a.a);n=n.filter(t=>!t.isSpecial&&t.name!==i.a.CongruityImplant),2===t.bitNodeN&&n.push(a.a[i.a.TheRedPill]);const r=Object(p.b)(`BN${t.bitNodeN}.${t.sourceFileLvl(t.bitNodeN)}`),s=t=>t.factions.length>1||(!!e.augmentations.includes(t.name)||r()>=1-o.a.GangUniqueAugs);return n=n.filter(s),n.map(t=>t.name)}return e.augmentations.slice()}},,,function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),function(t){t.Bypass="Bypass",t.PrototypeTampering="PrototypeTampering",t.Unclickable="Unclickable",t.UndocumentedFunctionCall="UndocumentedFunctionCall",t.TimeCompression="TimeCompression",t.RealityAlteration="RealityAlteration",t.N00dles="N00dles",t.YoureNotMeantToAccessThis="YoureNotMeantToAccessThis",t.TrueRecursion="TrueRecursion",t.INeedARainbow="INeedARainbow",t.EditSaveFile="EditSaveFile"}(a||(a={}));const r={Bypass:"by circumventing the ram cost of document.",EditSaveFile:"by editing your save file.",PrototypeTampering:"by tampering with Numbers prototype.",TimeCompression:"by compressing time.",Unclickable:"by clicking the unclickable.",UndocumentedFunctionCall:"by looking beyond the documentation.",RealityAlteration:"by altering reality to suit your whims.",N00dles:"by harnessing the power of the n00dles.",YoureNotMeantToAccessThis:"by accessing the dev menu.",TrueRecursion:"by truly recursing.",INeedARainbow:"by using the power of the rainbow."};function i(t){return r[t]}function o(t){return t=t.filter(t=>Object.keys(a).includes(t)),[...new Set(t)]}},function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return c}));var a=n(148),r=n(22),i=n(181);function o(t,e){return e.delayReject&&e.delayReject(),new Promise((function(n,a){e.delay=window.setTimeout(()=>{e.delay=null,e.delayReject=void 0,e.infiniteLoopSafetyCounter=0,e.env.stopFlag?a(new i.a(e)):n()},t),e.delayReject=a}))}function s(t,e){const n=Object(r.d)(t.hostname);if(null==n)throw new Error("WorkerScript constructed with invalid server ip: "+t.hostname);for(const n of t.scriptRef.dependencies){var a,i;e=null!==(a=null===(i=e)||void 0===i?void 0:i.replace(new RegExp(n.url,"g"),n.filename))&&void 0!==a?a:e}return"|DELIMITER|"+n.hostname+"|DELIMITER|"+t.name+"|DELIMITER|"+e}function l(t,e,n){const a=t.scriptRef.threads;if(!n)return isNaN(a)||a<1?1:a;const r=0|n;if(isNaN(n)||r<1)throw s(t,`Invalid thread count passed to ${e}: ${n}. Threads must be a positive number.`);if(r>a)throw s(t,`Too many threads requested by ${e}. Requested: ${n}. Has: ${a}.`);return r}function c(t){if(!Object(a.a)(t))return!1;return 4==t.split("|DELIMITER|").length}},,function(t,e,n){"use strict";n.d(e,"c",(function(){return I})),n.d(e,"b",(function(){return A})),n.d(e,"a",(function(){return P}));var a=n(157),r=n(67),i=n(10),o=n(26),s=n(81),l=n(2),c=n(22),f=n(6),u=n(104),m=n(102),h=n(99),d=n(348),p=n(14),g=n(28),y=n(343),b=n(1063),E=n(12),v=n(342),k=n(9),_=n(594),w=n(299),S=n(123),x=n(4),C=n(186),L=n(135),O=n(89);function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class T{constructor(){M(this,"PlayerSave",""),M(this,"AllServersSave",""),M(this,"CompaniesSave",""),M(this,"FactionsSave",""),M(this,"AliasesSave",""),M(this,"GlobalAliasesSave",""),M(this,"StockMarketSave",""),M(this,"SettingsSave",""),M(this,"VersionSave",""),M(this,"AllGangsSave",""),M(this,"LastExportBonus",""),M(this,"StaneksGiftSave","")}getSaveString(t=!1){this.PlayerSave=JSON.stringify(l.a),this.AllServersSave=Object(c.j)(t),this.CompaniesSave=JSON.stringify(r.a),this.FactionsSave=JSON.stringify(o.a),this.AliasesSave=JSON.stringify(a.a),this.GlobalAliasesSave=JSON.stringify(a.b),this.StockMarketSave=JSON.stringify(u.a),this.SettingsSave=JSON.stringify(f.a),this.VersionSave=JSON.stringify(i.a.VersionNumber),this.LastExportBonus=JSON.stringify(d.a),this.StaneksGiftSave=JSON.stringify(m.c),l.a.inGang()&&(this.AllGangsSave=JSON.stringify(s.a));return btoa(unescape(encodeURIComponent(JSON.stringify(this))))}saveGame(t=!0){const e=(new Date).getTime();l.a.lastSave=e;const n=this.getSaveString(f.a.ExcludeRunningScriptsFromSave);return new Promise((a,r)=>{Object(y.c)(n).then(()=>{const r={playerIdentifier:l.a.identifier,fileName:this.getSaveFileName(),save:n,savedOn:e};return Object(w.d)(r),t&&h.b.emit("Game Saved!",h.d.INFO,2e3),a()}).catch(t=>(console.error(t),r()))})}getSaveFileName(t=!1){const e=Math.round(Date.now()/1e3),n=l.a.bitNodeN;let a=`bitburnerSave_${e}_BN${n}x${l.a.sourceFileLvl(n)+1}.json`;return t&&(a="RECOVERY"+a),a}exportGame(){const t=this.getSaveString(f.a.ExcludeRunningScriptsFromSave);P(this.getSaveFileName(),t)}importGame(t,e=!0){if(!t||""===t)throw new Error("Invalid import string");return Object(y.c)(t).then(()=>(e&&setTimeout(()=>location.reload(),1e3),Promise.resolve()))}getImportStringFromFile(t){if(null===t)return Promise.reject(new Error("No file selected"));const e=t[0];if(!e)return Promise.reject(new Error("Invalid file selected"));const n=new FileReader,a=new Promise((t,e)=>{n.onload=function(n){const a=n.target;if(null===a)return e(new Error("Error importing file"));const r=a.result;if("string"!=typeof r)return e(new Error("FileReader event was not type string"));t(r)}});return n.readAsText(e),a}async getImportDataFromString(t){var e,n,a,r,i,o,s,c;if(!t||""===t)throw new Error("Invalid import string");let f,u;try{f=window.atob(t),f=f.trim()}catch(t){console.error(t)}if(!f||""===f)return Promise.reject(new Error("Save game had not content or was not base64 encoded"));try{u=JSON.parse(f)}catch(t){console.log(t)}if(!u||"BitburnerSaveObject"!==u.ctor||!u.data)return Promise.reject(new Error("Save game did not seem valid"));const m={base64:t,parsed:u},h=_.a.fromJSON(JSON.parse(u.data.PlayerSave)),d={identifier:h.identifier,lastSave:h.lastSave,totalPlaytime:h.totalPlaytime,money:h.money,hacking:h.hacking,augmentations:null!==(e=null===(n=h.augmentations)||void 0===n?void 0:n.reduce((t,e)=>t+e.level,0))&&void 0!==e?e:0,factions:null!==(a=null===(r=h.factions)||void 0===r?void 0:r.length)&&void 0!==a?a:0,achievements:null!==(i=null===(o=h.achievements)||void 0===o?void 0:o.length)&&void 0!==i?i:0,bitNode:h.bitNodeN,bitNodeLevel:h.sourceFileLvl(l.a.bitNodeN)+1,sourceFiles:null!==(s=null===(c=h.sourceFiles)||void 0===c?void 0:c.reduce((t,e)=>t+e.lvl,0))&&void 0!==s?s:0};return m.playerData=d,Promise.resolve(m)}toJSON(){return Object(g.b)("BitburnerSaveObject",this)}static fromJSON(t){return Object(g.a)(T,t.data)}}function A(t){if(-1!==navigator.userAgent.indexOf("wv")&&-1!==navigator.userAgent.indexOf("Chrome/")&&setInterval(()=>{Object(p.a)("SCAM ALERT. This app is not official and you should uninstall it.")},1e3),!t)return!1;t=decodeURIComponent(escape(atob(t)));const e=JSON.parse(t,g.c);if(Object(l.b)(e.PlayerSave),Object(c.h)(e.AllServersSave),Object(r.c)(e.CompaniesSave),Object(o.d)(e.FactionsSave),e.hasOwnProperty("StaneksGiftSave")?Object(m.b)(e.StaneksGiftSave):(console.warn("Could not load Staneks Gift from save"),Object(m.b)("")),e.hasOwnProperty("AliasesSave"))try{Object(a.c)(e.AliasesSave)}catch(t){console.warn("Could not load Aliases from save"),Object(a.c)("")}else console.warn("Save file did not contain an Aliases property"),Object(a.c)("");if(e.hasOwnProperty("GlobalAliasesSave"))try{Object(a.d)(e.GlobalAliasesSave)}catch(t){console.warn("Could not load GlobalAliases from save"),Object(a.d)("")}else console.warn("Save file did not contain a GlobalAliases property"),Object(a.d)("");if(e.hasOwnProperty("StockMarketSave"))try{Object(u.i)(e.StockMarketSave)}catch(t){Object(u.i)("")}else Object(u.i)("");if(e.hasOwnProperty("SettingsSave"))try{f.a.load(e.SettingsSave)}catch(t){console.error("ERROR: Failed to parse Settings. Re-initing default values"),f.a.init()}else f.a.init();if(e.hasOwnProperty("LastExportBonus"))try{d.d(JSON.parse(e.LastExportBonus))}catch(t){d.d((new Date).getTime()),console.error("ERROR: Failed to parse last export bonus Settings "+t)}if(l.a.inGang()&&e.hasOwnProperty("AllGangsSave"))try{Object(s.b)(e.AllGangsSave)}catch(t){console.error("ERROR: Failed to parse AllGangsSave: "+t)}if(e.hasOwnProperty("VersionSave"))try{const t=JSON.parse(e.VersionSave,g.c);!function(t){const e=l.a;if("string"==typeof t){if(t<="0.41.2"){null!=e.companyPosition&&"string"!=typeof e.companyPosition&&(e.companyPosition=e.companyPosition.data.positionName,null==e.companyPosition&&(e.companyPosition=""));for(const t of Object.keys(r.a)){const e=r.a[t];if(0==e.name&&null!=e.companyName&&(e.name=e.companyName),e.companyPositions instanceof Array){const t={};for(let n=0;nt.name===E.a.NeuroFluxGovernor);if(t)t.level+=10;else{const t=new v.a(E.a.NeuroFluxGovernor);t.level=10,l.a.augmentations.push(t)}l.a.reapplyAllAugmentations(!0),l.a.reapplyAllSourceFiles()}if(t<3&&(e.money=parseFloat(e.money),e.corporation)){e.corporation.funds=parseFloat(e.corporation.funds),e.corporation.revenue=parseFloat(e.corporation.revenue),e.corporation.expenses=parseFloat(e.corporation.expenses);for(let t=0;t0)for(const t of e.sleeves)if(t.augmentations&&0!==t.augmentations.length)for(const e of t.augmentations)"Graphene BranchiBlades Upgrade"===e.name&&(e.name="Graphene BrachiBlades Upgrade");if(t<12&&void 0!==e.resleeves&&delete e.resleeves,t<15&&(f.a.EditorTheme={...S.a}),t<16){o.a[x.a.ShadowsOfAnarchy]=new C.a(x.a.ShadowsOfAnarchy);for(const t of Object(c.c)())for(const e of t.contracts)"HammingCodes: Integer to encoded Binary"==e.type&&(e.type="HammingCodes: Integer to Encoded Binary")}if(t<17){let t=[...l.a.augmentations];t=t.filter(t=>t.name===E.a.NeuroFluxGovernor);const e=new v.a(E.a.NeuroFluxGovernor);e.level=0;for(const n of t)e.level+=n.level;l.a.augmentations=[...l.a.augmentations.filter(t=>t.name!==E.a.NeuroFluxGovernor),e],l.a.reapplyAllAugmentations(!0),l.a.reapplyAllSourceFiles()}if(t<18){if(!Object(c.d)(O.a.DarkWeb)){const t=Object(L.g)({ip:Object(c.e)(),hostname:O.a.DarkWeb,organizationName:"",isConnectedTo:!1,adminRights:!1,purchasedByPlayer:!1,maxRam:1});Object(c.a)(t)}}}}(t),window.location.href.toLowerCase().includes("bitburner-beta")?Object(p.a)("You are playing on the beta environment! This branch of the game features the latest developments in the game. This version may be unstable.
Please report any bugs/issues through the github repository (https://github.com/danielyxie/bitburner/issues) or the Bitburner subreddit (reddit.com/r/bitburner).

"+i.a.LatestUpdate,R):t!==i.a.VersionNumber&&N()}catch(t){N()}else N();return!0}const R={"& h1, & h2, & h3, & h4, & p, & a, & ul":{margin:0,color:f.a.theme.primary,whiteSpace:"initial"},"& ul":{paddingLeft:"1.5em",lineHeight:1.5}};function N(){setTimeout(()=>Object(p.a)("New update!
Please report any bugs/issues through the github repository or the Bitburner subreddit (reddit.com/r/bitburner).

"+i.a.LatestUpdate,R),1e3)}function P(t,e){const n=new Blob([e],{type:"text/plain"}),a=window.navigator;if(a.msSaveOrOpenBlob)a.msSaveOrOpenBlob(n,t);else{const e=document.createElement("a"),a=URL.createObjectURL(n);e.href=a,e.download=t,document.body.appendChild(e),e.click(),setTimeout((function(){document.body.removeChild(e),window.URL.revokeObjectURL(a)}),0)}}g.c.constructors.BitburnerSaveObject=T;const I=new T},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(5),o=n(20);function s({money:t}){return r.a.createElement(o.a,{money:i.a.formatMoney(t)+" / sec"})}},function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return f}));var a=n(969),r=n(28),i=n(579);class o{constructor(t,e,n,a,r,i){this.name=t,this.desc=e,this.generate=n,this.solver=a,this.difficulty=r,this.numTries=i}}const s={};for(const t of a.a)s[t.name]=new o(t.name,t.desc,t.gen,t.solver,t.difficulty,t.numTries);let l,c;!function(t){t[t.FactionReputation=0]="FactionReputation",t[t.FactionReputationAll=1]="FactionReputationAll",t[t.CompanyReputation=2]="CompanyReputation",t[t.Money=3]="Money"}(l||(l={})),function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure",t[t.Cancelled=2]="Cancelled"}(c||(c={}));class f{constructor(t="",e="Find Largest Prime Factor",n=null){var a,r,i;if(i=0,(r="tries")in(a=this)?Object.defineProperty(a,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[r]=i,this.fn=t,this.fn.endsWith(".cct")||(this.fn+=".cct"),null==s[e])throw new Error(`Error: invalid contract type: ${e} please contact developer`);this.type=e,this.data=s[e].generate(),this.reward=n}getData(){return this.data}getDescription(){return s[this.type].desc(this.data)}getDifficulty(){return s[this.type].difficulty}getMaxNumTries(){return s[this.type].numTries}getType(){return s[this.type].name}isSolution(t){return s[this.type].solver(this.data,t)}async prompt(){return new Promise(t=>{const e={c:this,onClose:()=>{t(c.Cancelled)},onAttempt:e=>{this.isSolution(e)?t(c.Success):t(c.Failure)}};i.a.emit(e)})}toJSON(){return Object(r.b)("CodingContract",this)}static fromJSON(t){return Object(r.a)(f,t.data)}}r.c.constructors.CodingContract=f},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t.LimitBuy="Limit Buy Order",t.LimitSell="Limit Sell Order",t.StopBuy="Stop Buy Order",t.StopSell="Stop Sell Order"}(a||(a={}))},,function(t,e,n){"use strict";n.d(e,"c",(function(){return y})),n.d(e,"d",(function(){return b})),n.d(e,"g",(function(){return w})),n.d(e,"f",(function(){return k})),n.d(e,"e",(function(){return g})),n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return _}));var a=n(35),r=n(79),i=n(342),o=n(12),s=n(10),l=n(26),c=n(2),f=n(460),u=n(14),m=n(1410),h=n(4),d=n(352),p=n(91);function g(){!function(){for(const t of Object.keys(l.a))l.a.hasOwnProperty(t)&&(l.a[t].augmentations=[])}(),Object(m.a)(r.a),[Object(d.d)(),Object(d.f)(),...Object(d.c)(),...Object(d.e)(),...Object(l.b)(h.a.Bladeburners)?Object(d.a)():[],...Object(l.b)(h.a.ChurchOfTheMachineGod)?Object(d.b)():[]].map(E),c.a.reapplyAllAugmentations()}function y(){return s.a.MultipleAugMultiplier*[1,.96,.94,.93][c.a.sourceFileLvl(11)]}function b(){return Math.pow(y(),c.a.queuedAugmentations.length)}function E(t){t.addToFactions(t.factions);const e=t.name;_(e)&&delete r.a[e],function(t){const e=t.name;r.a[e]=t}(t)}function v(t,e=!1){const n=r.a[t.name];for(const t of Object.keys(n.mults)){const e=c.a.getMult(t)*n.mults[t];c.a.setMult(t,e)}t.name!==o.a.CongruityImplant||e||(c.a.entropy=0,c.a.applyEntropy(c.a.entropy));const a=c.a.augmentations.find(t=>t.name===o.a.NeuroFluxGovernor);if(t.name!==o.a.NeuroFluxGovernor||e||!a){if(!e){const e=new i.a(t.name);c.a.augmentations.push(e)}}else a.level=t.level}function k(t){if(0==c.a.queuedAugmentations.length&&!t)return Object(u.a)("You have not purchased any Augmentations to install!"),!1;let e="",n=-1;for(let t=c.a.queuedAugmentations.length-1;t>=0;t--)if(c.a.queuedAugmentations[t].name===o.a.NeuroFluxGovernor){n=t;break}for(let t=0;t"}return c.a.queuedAugmentations=[],t||Object(u.a)("You slowly drift to sleep as scientists put you under in order to install the following Augmentations:
"+e+"
You wake up in your home...you feel different..."),Object(f.a)(),p.b.toTerminal(),!0}function _(t){return r.a.hasOwnProperty(t)}function w(t){return(t instanceof a.a?t.name:t)===o.a.NeuroFluxGovernor}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return c}));var a=n(62),r=n(215);const i=[];class o{constructor(t,e,n,a,r){this.id=t,this.shape=e,this.type=n,this.power=a,this.limit=r}fullAt(t,e,n){if(e<0)return!1;if(e>=this.height(n))return!1;if(t<0)return!1;if(t>=this.width(n))return!1;let[a,r,i,o]=[0,0,1,1];1===n?[a,r,i,o]=[this.width(n)-1,0,-1,1]:2===n?[a,r,i,o]=[this.width(n)-1,this.height(n)-1,-1,-1]:3===n&&([a,r,i,o]=[0,this.height(n)-1,1,-1]);let[s,l]=[a+i*t,r+o*e];return n%2==1&&([s,l]=[l,s]),this.shape[l][s]}width(t){return t%2==0?this.shape[0].length:this.shape.length}height(t){return t%2==0?this.shape.length:this.shape[0].length}neighboors(t){const e=[],n=(n,a)=>{this.fullAt(n,a,t)||e.some(t=>t[0]===n&&t[1]===a)||e.push([n,a])};for(let e=0;ee[0]===t[0]&&e[1]===t[1])||a.push(t);return a}copy(){return Object.assign({},this)}}function s(t){for(const e of i)if(e.id===t)return e;return null}!function(){const t=!1,e=!0;i.push(new o(0,r.a.S,a.b.Hacking,1,1)),i.push(new o(1,r.a.Z,a.b.Hacking,1,1)),i.push(new o(5,r.a.T,a.b.HackingSpeed,1.3,1)),i.push(new o(6,r.a.I,a.b.HackingMoney,2,1)),i.push(new o(7,r.a.J,a.b.HackingGrow,.5,1)),i.push(new o(10,r.a.T,a.b.Strength,2,1)),i.push(new o(12,r.a.L,a.b.Defense,2,1)),i.push(new o(14,r.a.L,a.b.Dexterity,2,1)),i.push(new o(16,r.a.S,a.b.Agility,2,1)),i.push(new o(18,r.a.S,a.b.Charisma,3,1)),i.push(new o(20,r.a.I,a.b.HacknetMoney,1,1)),i.push(new o(21,r.a.O,a.b.HacknetCost,2,1)),i.push(new o(25,r.a.J,a.b.Rep,.5,1)),i.push(new o(27,r.a.J,a.b.WorkMoney,10,1)),i.push(new o(28,r.a.L,a.b.Crime,2,1)),i.push(new o(30,r.a.S,a.b.Bladeburner,.4,1)),i.push(new o(100,[[t,e,e],[e,e,t],[t,e,t]],a.b.Booster,1.1,99)),i.push(new o(101,[[e,e,e,e],[e,t,t,t]],a.b.Booster,1.1,99)),i.push(new o(102,[[t,e,e,e],[e,e,t,t]],a.b.Booster,1.1,99)),i.push(new o(103,[[e,e,e,t],[t,t,e,e]],a.b.Booster,1.1,99)),i.push(new o(104,[[t,e,e],[t,e,t],[e,e,t]],a.b.Booster,1.1,99)),i.push(new o(105,[[t,t,e],[t,e,e],[e,e,t]],a.b.Booster,1.1,99)),i.push(new o(106,[[e,t,t],[e,e,e],[e,t,t]],a.b.Booster,1.1,99)),i.push(new o(107,[[t,e,t],[e,e,e],[t,e,t]],a.b.Booster,1.1,99))}();const l=new o(-2,[],a.b.None,0,1/0),c=new o(-2,[],a.b.Delete,0,1/0)},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s}));const a={base:"vs-dark",inherit:!0,common:{accent:"B5CEA8",bg:"1E1E1E",fg:"D4D4D4"},syntax:{tag:"569CD6",entity:"569CD6",string:"CE9178",regexp:"646695",markup:"569CD6",keyword:"569CD6",comment:"6A9955",constant:"569CD6",error:"F44747"},ui:{line:"1E1E1E",panel:{bg:"252526",selected:"252526",border:"1E1E1E"},selection:{bg:"ADD6FF26"}}},r=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,i=t=>{for(const[e,n]of Object.entries(t)){switch(e){case"base":["vs-dark","vs"].includes(t.base)||(t.base="vs-dark");continue;case"inherit":"boolean"!=typeof t.inherit&&(t.inherit=!0);continue}const a=t=>{for(const[e,n]of Object.entries(t))"object"==typeof n?a(n):n.match(r)||(t[e]="FF0000")};a(n)}};function o(t){const e=[{token:"",background:t.ui.line,foreground:t.common.fg},{token:"identifier",foreground:t.common.accent},{token:"keyword",foreground:t.syntax.keyword},{token:"string",foreground:t.syntax.string},{token:"string.escape",foreground:t.syntax.regexp},{token:"comment",foreground:t.syntax.comment},{token:"constant",foreground:t.syntax.constant},{token:"entity",foreground:t.syntax.entity},{token:"type",foreground:t.syntax.tag},{token:"tag",foreground:t.syntax.tag},{token:"regexp",foreground:t.syntax.regexp},{token:"attribute",foreground:t.syntax.tag},{token:"constructor",foreground:t.syntax.markup},{token:"invalid",foreground:t.syntax.error},{token:"number",foreground:t.common.accent},{token:"delimiter",foreground:t.common.fg},{token:"ns",foreground:t.syntax.tag},{token:"netscriptfunction",foreground:t.syntax.markup},{token:"otherkeywords",foreground:t.syntax.keyword},{token:"otherkeyvars",foreground:t.common.accent},{token:"this",foreground:t.syntax.tag}],n=Object.fromEntries([["editor.background",t.common.bg],["editor.foreground",t.common.fg],["editor.lineHighlightBackground",t.ui.line],["editor.selectionBackground",t.ui.selection.bg],["editorSuggestWidget.background",t.ui.panel.bg],["editorSuggestWidget.border",t.ui.panel.border],["editorSuggestWidget.selectedBackground",t.ui.panel.selected],["editorHoverWidget.background",t.ui.panel.bg],["editorHoverWidget.border",t.ui.panel.border],["editorWidget.background",t.ui.panel.bg],["editorWidget.border",t.ui.panel.border],["input.background",t.ui.panel.bg],["input.border",t.ui.panel.border]].map(([t,e])=>[t,"#"+e]));return{base:t.base,inherit:t.inherit,rules:e,colors:n}}async function s(t){t.editor.defineTheme("monokai",{base:"vs-dark",inherit:!0,rules:[{background:"272822",token:""},{foreground:"75715e",token:"comment"},{foreground:"e6db74",token:"string"},{token:"number",foreground:"ae81ff"},{token:"otherkeyvars",foreground:"ae81ff"},{foreground:"ae81ff",token:"function"},{foreground:"f92672",token:"keyword"},{token:"storage.type.function.js",foreground:"ae81ff"},{token:"ns",foreground:"97d92b"},{token:"netscriptfunction",foreground:"53d3e4"},{token:"otherkeywords",foreground:"53d3e4"},{token:"this",foreground:"fd971f"}],colors:{"editor.foreground":"#F8F8F2","editor.background":"#272822","editor.selectionBackground":"#49483E","editor.lineHighlightBackground":"#3E3D32","editorCursor.foreground":"#F8F8F0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}}),t.editor.defineTheme("solarized-dark",{base:"vs-dark",inherit:!0,rules:[{background:"002b36",token:""},{foreground:"586e75",token:"comment"},{foreground:"00afaf",token:"string"},{token:"number",foreground:"00afaf"},{token:"otherkeyvars",foreground:"268bd2"},{foreground:"268bd2",token:"function"},{foreground:"859900",token:"keyword"},{token:"storage.type.function.js",foreground:"cb4b16"},{token:"ns",foreground:"cb4b16"},{token:"netscriptfunction",foreground:"268bd2"},{token:"otherkeywords",foreground:"268bd2"},{token:"type.identifier.js",foreground:"b58900"},{token:"delimiter.square.js",foreground:"0087ff"},{token:"delimiter.bracket.js",foreground:"0087ff"},{token:"this",foreground:"cb4b16"}],colors:{"editor.foreground":"#839496","editor.background":"#002b36","editor.selectionBackground":"#073642","editor.lineHighlightBackground":"#073642","editorCursor.foreground":"#819090","editorWhitespace.foreground":"#073642","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}}),t.editor.defineTheme("solarized-light",{base:"vs",inherit:!0,rules:[{foreground:"657b83",background:"fdf6e3",token:""},{foreground:"586e75",token:"comment"},{foreground:"2aa198",token:"string"},{token:"number",foreground:"2aa198"},{token:"otherkeyvars",foreground:"268bd2"},{foreground:"268bd2",token:"function"},{foreground:"859900",token:"keyword"},{token:"storage.type.function.js",foreground:"bc4b16"},{token:"ns",foreground:"cb4b16"},{token:"netscriptfunction",foreground:"268bd2"},{token:"otherkeywords",foreground:"268bd2"},{token:"type.identifier.js",foreground:"b58900"},{token:"delimiter.square.js",foreground:"0087ff"},{token:"delimiter.bracket.js",foreground:"0087ff"},{token:"this",foreground:"cb4b16"}],colors:{"editor.foreground":"#657b83","editor.background":"#fdf6e3","editor.selectionBackground":"#eee8d5","editor.lineHighlightBackground":"#eee8d5","editorCursor.foreground":"#657b83","editorWhitespace.foreground":"#eee8d5","editorIndentGuide.activeBackground":"#eee8d5","editor.selectionHighlightBorder":"#073642"}}),t.editor.defineTheme("dracula",{base:"vs-dark",inherit:!0,rules:[{background:"282A36",foreground:"F8F8F2",token:""},{foreground:"6272A4",token:"comment"},{foreground:"F1FA8C",token:"string"},{token:"number",foreground:"BD93F9"},{token:"otherkeyvars",foreground:"BD93F9"},{foreground:"FF79C6",token:"function"},{foreground:"FF79C6",token:"keyword"},{token:"storage.type.function.js",foreground:"FF79C6"},{token:"ns",foreground:"FFB86C",fontStyle:"italic"},{token:"netscriptfunction",foreground:"FF79C6"},{token:"otherkeywords",foreground:"FF68A7"},{token:"type.identifier.js",foreground:"7EE9FD",fontStyle:"italic"},{token:"delimiter.square.js",foreground:"FFD709"},{token:"delimiter.parenthesis.js",foreground:"FFD709"},{token:"delimiter.bracket.js",foreground:"FFD709"},{token:"this",foreground:"BD93F9",fontStyle:"italic"}],colors:{"editor.foreground":"#F8F8F2","editor.background":"#282A36","editorLineNumber.foreground":"#6272A4","editor.selectionBackground":"#44475A","editor.selectionHighlightBackground":"#424450","editor.foldBackground":"#21222C","editor.wordHighlightBackground":"#8BE9FD50","editor.wordHighlightStrongBackground":"#50FA7B50","editor.findMatchBackground":"#FFB86C80","editor.findMatchHighlightBackground":"#FFFFFF40","editor.findRangeHighlightBackground":"#44475A75","editor.hoverHighlightBackground":"#8BE9FD50","editor.lineHighlightBorder":"#44475A","editor.rangeHighlightBackground":"#BD93F915","editor.snippetTabstopHighlightBackground":"#282A36","editor.snippetTabstopHighlightBorder":"#6272A4","editor.snippetFinalTabstopHighlightBackground":"#282A36","editor.snippetFinalTabstopHighlightBorder":"#50FA7B"}}),t.editor.defineTheme("one-dark",{base:"vs-dark",inherit:!0,rules:[{token:"",background:"333842",foreground:"ABB2BF"},{token:"comment",foreground:"5C6370"},{token:"string",foreground:"98C379"},{token:"number",foreground:"D19A66"},{token:"function",foreground:"C678DD"},{token:"keyword",foreground:"C678DD"},{token:"otherkeyvars",foreground:"D19A66"},{token:"otherkeywords",foreground:"C678DD"},{token:"ns",foreground:"E06C75"},{token:"netscriptfunction",foreground:"61AFEF"},{token:"type.identifier",foreground:"E5C07B"},{token:"delimiter",foreground:"ABB2BF"},{token:"this",foreground:"E06C75"}],colors:{"editor.background":"#282C34","editor.foreground":"#ABB2BF","editor.lineHighlightBackground":"#99BBFF0A","editor.selectionBackground":"#3E4451","editor.findMatchHighlightBackground":"#528BFF3D","editorCursor.foreground":"#528BFF","editorHoverWidget.background":"#21252B","editorHoverWidget.border":"#181A1F","editorIndentGuide.background":"#ABB2BF26","editorIndentGuide.activeBackground":"#626772","editorLineNumber.foreground":"#636D83","editorLineNumber.activeForeground":"#ABB2BF","editorSuggestWidget.background":"#21252B","editorSuggestWidget.border":"#181A1F","editorSuggestWidget.selectedBackground":"#2C313A","editorWhitespace.foreground":"#ABB2BF26","editorWidget.background":"#21252B","editorWidget.border":"#3A3F4B","input.background":"#1B1D23","input.border":"#181A1F","peekView.border":"#528BFF","peekViewResult.background":"#21252B","peekViewResult.selectionBackground":"#2C313A","peekViewTitle.background":"#1B1D23","peekViewEditor.background":"#1B1D23","scrollbarSlider.background":"#4E566680","scrollbarSlider.activeBackground":"#747D9180","scrollbarSlider.hoverBackground":"#5A637580"}})}},,function(t,e,n){"use strict";function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}n.d(e,"a",(function(){return r}));class r{constructor(){var t,e,n;n={},(e="subscribers")in(t=this)?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}subscribe(t){let e=a();for(;void 0!==this.subscribers[e];)e=a();return this.subscribers[e]=t,()=>{delete this.subscribers[e]}}emit(...t){for(const e in this.subscribers){const n=this.subscribers[e];void 0!==n&&n(...t)}}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n(5),i=n(121),o=n(146);const s=Object(i.a)(t=>Object(o.a)({reputation:{color:t.colors.rep}}));function l({reputation:t}){const e=s();return a.createElement("span",{className:e.reputation},"number"==typeof t?r.a.formatReputation(t):t)}},,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(613),o=n.n(i),s=n(1122),l=n.n(s),c=n(111),f=n(1123),u=n.n(f),m=n(610),h=n.n(m),d=n(78),p=n(21);function g(t){const[e,n]=Object(a.useState)("");const{label:i,placeholder:s,add:f,subtract:m,reset:g,tons:y}=t;return r.a.createElement(r.a.Fragment,null,r.a.createElement(d.a,{label:i,value:e,onChange:function(t){""===t.target.value?n(""):n(parseFloat(t.target.value))},placeholder:s,type:"number",InputProps:{startAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{title:"Add a lot"},r.a.createElement(c.a,{onClick:y,size:"large"},r.a.createElement(h.a,{style:{transform:"rotate(-90deg)"}}))),r.a.createElement(p.a,{title:"Add"},r.a.createElement(c.a,{onClick:()=>f("string"!=typeof e?e:0),size:"large"},r.a.createElement(o.a,null)))),endAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{title:"Remove"},r.a.createElement(c.a,{onClick:()=>m("string"!=typeof e?e:0),size:"large"},r.a.createElement(l.a,null))),r.a.createElement(p.a,{title:"Reset"},r.a.createElement(c.a,{onClick:g,size:"large"},r.a.createElement(u.a,null))))}}))}},function(t,e,n){"use strict";n.d(e,"g",(function(){return u})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return h})),n.d(e,"f",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return y}));var a=n(22),r=n(46),i=n(598),o=n(18),s=n(10),l=n(66),c=n(65),f=n(768);function u(t){let e=t.hostname.replace(/ /g,"-");if(null!=t.ip&&Object(a.g)(t.ip)&&(t.ip=Object(a.e)()),null!=Object(a.d)(e)){e+="-0";for(let t=0;t<200&&(e=e.replace(/-[0-9]+$/,"-"+t),null!=Object(a.d)(e));++t);}return t.hostname=e,new r.a(t)}function m(t,e,n,a=1){let r=1+(s.a.ServerBaseGrowthRate-1)/t.hackDifficulty;r>s.a.ServerMaxGrowthRate&&(r=s.a.ServerMaxGrowthRate);const i=t.serverGrowth/100,l=1+(a-1)/16;return Math.log(e)/(Math.log(r)*n.hacking_grow_mult*i*o.a.ServerGrowthRate*l)}function h(t,e,n,a,r=1){if(n<0&&(n=0),e>t.moneyMax&&(e=t.moneyMax),e<=n)return 0;const i=1+(s.a.ServerBaseGrowthRate-1)/t.hackDifficulty,l=Math.min(i,s.a.ServerMaxGrowthRate),c=1+(r-1)/16,f=t.serverGrowth/100*a.hacking_grow_mult*c*o.a.ServerGrowthRate,u=f*Math.log(l),m=n*u+Math.log(e*u);let h;if(m0&&(h-=Math.log(m));let d=h/u-n;const p=l**f;let g=1/0;do{const t=p**d,a=n+d;g=(a*t-e)/(a*u+1)/t,d-=g}while(Math.abs(g)>=1);const y=Math.floor(d);if(e<=(n+y)*Math.pow(l,y*f))return y;const b=Math.ceil(d);return e<=(n+b)*Math.pow(l,b*f)?b:b+1}function d(t,e,n,a=1){let r=Object(i.a)(t,e,n,a);r<1&&(console.warn("serverGrowth calculated to be less than 1"),r=1);const o=t.moneyAvailable;if(t.moneyAvailable+=1*e,t.moneyAvailable*=r,Object(f.a)(t.moneyMax)&&isNaN(t.moneyAvailable)&&(t.moneyAvailable=t.moneyMax),Object(f.a)(t.moneyMax)&&t.moneyAvailable>t.moneyMax&&(t.moneyAvailable=t.moneyMax),o!==t.moneyAvailable){let r=h(t,t.moneyAvailable,o,n,a);r=Math.min(Math.max(0,Math.ceil(r)),e),t.fortify(2*s.a.ServerFortifyAmount*r)}return t.moneyAvailable/o}function p(t,e){const n=e.programs.includes(l.a.BitFlume.name);e.programs.length=0,e.runningScripts=[],e.serversOnNetwork=[],e.isConnectedTo=!0,e.ramUsed=0,e.programs.push(l.a.NukeProgram.name),n&&e.programs.push(l.a.BitFlume.name),e.scripts.forEach((function(n){n.updateRamUsage(t,e.scripts)})),e.messages.length=0,e.messages.push(c.a.HackersStartingHandbook)}function g(t,e){return e>t.serversOnNetwork.length?(console.error("Tried to get server on network that was out of range"),null):Object(a.d)(t.serversOnNetwork[e])}function y(t){return t instanceof r.a&&t.backdoorInstalled}},function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"g",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return f}));var a=n(27);function r(t,e){return Math.random()*(e-t)+t}const i="↑",o="↓",s="←",l="→";function c(t){switch(t.key){case a.a.UP_ARROW:case a.a.W:return i;case a.a.LEFT_ARROW:case a.a.A:return s;case a.a.DOWN_ARROW:case a.a.S:return o;case a.a.RIGHT_ARROW:case a.a.D:return l}return""}function f(t){switch(t.key){case a.a.DOWN_ARROW:case a.a.S:return i;case a.a.RIGHT_ARROW:case a.a.D:return s;case a.a.UP_ARROW:case a.a.W:return o;case a.a.LEFT_ARROW:case a.a.A:return l}return""}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l}));var a=n(286),r=n(662);function i(t){const e=a.a[t];if(null==e)throw new Error("Invalid research name: "+t);return new r.a({text:e.name,cost:e.cost})}function o(){const t=i("Hi-Tech R&D Laboratory"),e=i("AutoBrew"),n=i("AutoPartyManager"),a=i("Automatic Drug Administration"),r=i("Bulk Purchasing"),o=i("CPH4 Injections"),s=i("Drones"),l=i("Drones - Assembly"),c=i("Drones - Transport"),f=i("Go-Juice"),u=i("HRBuddy-Recruitment"),m=i("HRBuddy-Training"),h=i("JoyWire"),d=i("Market-TA.I"),p=i("Market-TA.II"),g=i("Overclock"),y=i("Self-Correcting Assemblers"),b=i("Sti.mu");return a.addChild(f),a.addChild(o),s.addChild(l),s.addChild(c),u.addChild(m),d.addChild(p),g.addChild(b),t.addChild(e),t.addChild(n),t.addChild(a),t.addChild(r),t.addChild(s),t.addChild(u),t.addChild(h),t.addChild(d),t.addChild(g),t.addChild(y),t}function s(){const t=new r.b;return t.setRoot(o()),t}function l(){const t=new r.b,e=o(),n=i("uPgrade: Fulcrum"),a=i("uPgrade: Capacity.I"),s=i("uPgrade: Capacity.II"),l=i("uPgrade: Dashboard");return a.addChild(s),n.addChild(a),n.addChild(l),e.addChild(n),t.setRoot(e),t}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={BladesIntuition:"Blade's Intuition",Cloak:"Cloak",Marksman:"Marksman",WeaponProficiency:"Weapon Proficiency",ShortCircuit:"Short-Circuit",DigitalObserver:"Digital Observer",Tracer:"Tracer",Overclock:"Overclock",Reaper:"Reaper",EvasiveSystem:"Evasive System",Datamancer:"Datamancer",CybersEdge:"Cyber's Edge",HandsOfMidas:"Hands of Midas",Hyperdrive:"Hyperdrive"}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(351),r=n(28);class i extends a.a{constructor(t=null){super(t),this.count=1}getActionTimePenalty(){return 1.5}getChaosCompetencePenalty(){return 1}getChaosDifficultyBonus(){return 1}toJSON(){return Object(r.b)("BlackOperation",this)}static fromJSON(t){return Object(r.a)(i,t.data)}}r.c.constructors.BlackOperation=i},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var a=n(0);const r={Gang:n.n(a).a.createContext({})},i=()=>Object(a.useContext)(r.Gang)},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var a=n(181),r=n(422),i=n(198),o=n(298),s=n(369),l=n(22),c=n(322),f=n(14),u=n(462),m=n(2);function h(t,e,n){if(null!=n&&"boolean"==typeof n||(n=!0),t instanceof r.a)return p(t),!0;if(t instanceof s.a&&"string"==typeof e){const a=d(t.pid,n);if(a)return a;for(const a of i.a.values())if(a.name==t.filename&&a.hostname==e&&Object(c.a)(a.args,t.args))return p(a,n),!0;return!1}return"number"==typeof t?d(t,n):(console.error("killWorkerScript() called with invalid argument:"),console.error(t),!1)}function d(t,e=!0){const n=i.a.get(t);return n instanceof r.a&&(p(n,e),!0)}function p(t,e=!0){if("function"==typeof t.atExit){try{t.atExit()}catch(e){Object(f.a)(`Error trying to call atExit for script ${t.name} on ${t.hostname} ${t.scriptRef.args} ${e}`)}t.atExit=void 0}t.env.stopFlag=!0,function(t){t instanceof r.a&&t.delay&&(clearTimeout(t.delay),t.delayReject&&t.delayReject(new a.a(t)))}(t),function(t,e=!0){const n=t.hostname,a=t.name,r=Object(l.d)(n);if(null==r)return void console.error("Could not find server on which this script is running: "+n);for(let e=0;eObject(o.a)({unbuyable:{color:t.palette.action.disabled},money:{color:t.colors.money}}));function l(t){const e=s();return t.corp.funds>t.money?a.createElement("span",{className:e.money},r.a.formatMoney(t.money)):a.createElement("span",{className:e.unbuyable},r.a.formatMoney(t.money))}},,,function(t,e,n){"use strict";function a(t){return"string"==typeof t||t instanceof String}n.d(e,"a",(function(){return a}))},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return m}));var a=n(0),r=n.n(a),i=n(18),o=n(4),s=n(15);class l{constructor(t,e,n,a="",i=r.a.createElement(r.a.Fragment,null)){this.number=t,this.difficulty=e,this.name=n,this.desc=a,this.info=i}}const c={};c.BitNode1=new l(1,0,"Source Genesis","The original BitNode",r.a.createElement(r.a.Fragment,null,"The first BitNode created by the Enders to imprison the minds of humans. It became the prototype and testing-grounds for all of the BitNodes that followed.",r.a.createElement("br",null),r.a.createElement("br",null),"This is the first BitNode that you play through. It has no special modifications or mechanics.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 1, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets the player start with 32GB of RAM on his/her home computer when entering a new BitNode, and also increases all of the player's multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 16%",r.a.createElement("br",null),"Level 2: 24%",r.a.createElement("br",null),"Level 3: 28%")),c.BitNode2=new l(2,0,"Rise of the Underworld","From the shadows, they rose",r.a.createElement(r.a.Fragment,null,"From the shadows, they rose.",r.a.createElement("br",null),r.a.createElement("br",null),"Organized crime groups quickly filled the void of power left behind from the collapse of Western government in the 2050s. As society and civilization broke down, people quickly succumbed to the innate human impulse of evil and savagery. The organized crime factions quickly rose to the top of the modern world.",r.a.createElement("br",null),r.a.createElement("br",null),"Certain Factions (",o.a.SlumSnakes,", ",o.a.Tetrads,", ",o.a.TheSyndicate,","," ",o.a.TheDarkArmy,", ",o.a.SpeakersForTheDead,", ",o.a.NiteSec,", ",o.a.TheBlackHand,") give the player the ability to form and manage their own gangs. These gangs will earn the player money and reputation with the corresponding Faction",r.a.createElement("br",null),"Every Augmentation in the game will be available through the Factions listed above",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 2, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File allows you to form gangs in other BitNodes once your karma decreases to a certain value. It also increases the player's crime success rate, crime money, and charisma multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 24%",r.a.createElement("br",null),"Level 2: 36%",r.a.createElement("br",null),"Level 3: 42%")),c.BitNode3=new l(3,0,"Corporatocracy","The Price of Civilization",r.a.createElement(r.a.Fragment,null,"Our greatest illusion is that a healthy society can revolve around a single-minded pursuit of wealth.",r.a.createElement("br",null),r.a.createElement("br",null),"Sometime in the early 21st century economic and political globalization turned the world into a corporatocracy, and it never looked back. Now, the privileged elite will happily bankrupt their own countrymen, decimate their own community, and evict their neighbors from houses in their desperate bid to increase their wealth.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you can create and manage your own corporation. Running a successful corporation has the potential of generating massive profits.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 3, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets you create corporations on other BitNodes (although some BitNodes will disable this mechanic). This Source-File also increases your charisma and company salary multipliers by:",r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode4=new l(4,1,"The Singularity","The Man and the Machine",r.a.createElement(r.a.Fragment,null,"The Singularity has arrived. The human race is gone, replaced by artificially superintelligent beings that are more machine than man. ",r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you will gain access to a new set of Netscript Functions known as Singularity Functions. These functions allow you to control most aspects of the game through scripts, including working for factions/companies, purchasing/installing Augmentations, and creating programs.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 4, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets you access and use the Singularity Functions in other BitNodes. Each level of this Source-File reduces the RAM cost of singularity functions.")),c.BitNode5=new l(5,1,"Artificial Intelligence","Posthuman",r.a.createElement(r.a.Fragment,null,"They said it couldn't be done. They said the human brain, along with its consciousness and intelligence, couldn't be replicated. They said the complexity of the brain results from unpredictable, nonlinear interactions that couldn't be modeled by 1's and 0's. They were wrong.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 5, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants you a special new stat called Intelligence. Intelligence is unique because it is permanent and persistent (it never gets reset back to 1). However gaining Intelligence experience is much slower than other stats. Higher Intelligence levels will boost your production for many actions in the game. ",r.a.createElement("br",null),r.a.createElement("br",null),"In addition, this Source-File will unlock the getBitNodeMultipliers() Netscript function and let you start with Formulas.exe, and will also raise all of your hacking-related multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode6=new l(6,1,o.a.Bladeburners,"Like Tears in Rain",r.a.createElement(r.a.Fragment,null,"In the middle of the 21st century, ",o.a.OmniTekIncorporated," began designing and manufacturing advanced synthetic androids, or Synthoids for short. They achieved a major technological breakthrough in the sixth generation of their Synthoid design, called MK-VI, by developing a hyperintelligent AI. Many argue that this was the first sentient AI ever created. This resulted in Synthoid models that were stronger, faster, and more intelligent than the humans that had created them.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you will be able to access the ",o.a.Bladeburners," Division at the NSA, which provides a new mechanic for progression.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 6, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File allows you to access the NSA's ",o.a.Bladeburners," Division in other BitNodes. In addition, this Source-File will raise both the level and experience gain rate of all your combat stats by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode7=new l(7,2,o.a.Bladeburners+" 2079","More human than humans",r.a.createElement(r.a.Fragment,null,"In the middle of the 21st century, you were doing cutting-edge work at ",o.a.OmniTekIncorporated," as part of the AI design team for advanced synthetic androids, or Synthoids for short. You helped achieve a major technological breakthrough in the sixth generation of the company's Synthoid design, called MK-VI, by developing a hyperintelligent AI. Many argue that this was the first sentient AI ever created. This resulted in Synthoid models that were stronger, faster, and more intelligent than the humans that had created them.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you will be able to access the ",o.a.Bladeburners," API, which allows you to access"," ",o.a.Bladeburners,"functionality through Netscript.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 7, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File allows you to access the ",o.a.Bladeburners," Netscript API in other BitNodes. In addition, this Source-File will increase all of your ",o.a.Bladeburners," multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode8=new l(8,2,"Ghost of Wall Street","Money never sleeps",r.a.createElement(r.a.Fragment,null,"You are trying to make a name for yourself as an up-and-coming hedge fund manager on Wall Street.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode:",r.a.createElement("br",null),r.a.createElement("br",null),"You start with $250 million",r.a.createElement("br",null),"You start with a WSE membership and access to the TIX API",r.a.createElement("br",null),"You are able to short stocks and place different types of orders (limit/stop)",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 8, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants the following benefits:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: Permanent access to WSE and TIX API",r.a.createElement("br",null),"Level 2: Ability to short stocks in other BitNodes",r.a.createElement("br",null),"Level 3: Ability to use limit/stop orders in other BitNodes",r.a.createElement("br",null),r.a.createElement("br",null),"This Source-File also increases your hacking growth multipliers by:",r.a.createElement("br",null),"Level 1: 12%",r.a.createElement("br",null),"Level 2: 18%",r.a.createElement("br",null),"Level 3: 21%")),c.BitNode9=new l(9,2,"Hacktocracy","Hacknet Unleashed",r.a.createElement(r.a.Fragment,null,"When ",o.a.FulcrumSecretTechnologies," released their open-source Linux distro Chapeau, it quickly became the OS of choice for the underground hacking community. Chapeau became especially notorious for powering the Hacknet, a global, decentralized network used for nefarious purposes. ",o.a.FulcrumSecretTechnologies," ","quickly abandoned the project and dissociated themselves from it.",r.a.createElement("br",null),r.a.createElement("br",null),"This BitNode unlocks the Hacknet Server, an upgraded version of the Hacknet Node. Hacknet Servers generate hashes, which can be spent on a variety of different upgrades.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 9, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants the following benefits:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: Permanently unlocks the Hacknet Server in other BitNodes",r.a.createElement("br",null),"Level 2: You start with 128GB of RAM on your home computer when entering a new BitNode",r.a.createElement("br",null),"Level 3: Grants a highly-upgraded Hacknet Server when entering a new BitNode",r.a.createElement("br",null),r.a.createElement("br",null),"(Note that the Level 3 effect of this Source-File only applies when entering a new BitNode, NOT when installing Augmentations)",r.a.createElement("br",null),r.a.createElement("br",null),"This Source-File also increases your hacknet multipliers by:",r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode10=new l(10,2,"Digital Carbon","Your body is not who you are",r.a.createElement(r.a.Fragment,null,"In 2084, VitaLife unveiled to the world the Persona Core, a technology that allowed people to digitize their consciousness. Their consciousness could then be transferred into Synthoids or other bodies by trasmitting the digitized data. Human bodies became nothing more than 'sleeves' for the human consciousness. Mankind had finally achieved immortality - at least for those that could afford it.",r.a.createElement("br",null),r.a.createElement("br",null),"This BitNode unlocks Sleeve technology. Sleeve technology allows you to:",r.a.createElement("br",null),r.a.createElement("br",null),"1. Grafting: Visit VitaLife in New Tokyo to be able to obtain Augmentations without needing to install",r.a.createElement("br",null),"2. Duplicate Sleeves: Duplicate your consciousness into Synthoids, allowing you to perform different tasks synchronously.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 10, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File unlocks Sleeve technology in other BitNodes. Each level of this Source-File also grants you a Duplicate Sleeve")),c.BitNode11=new l(11,1,"The Big Crash","Okay. Sell it all.",r.a.createElement(r.a.Fragment,null,"The 2050s was defined by the massive amounts of violent civil unrest and anarchic rebellion that rose all around the world. It was this period of disorder that eventually lead to the governmental reformation of many global superpowers, most notably the USA and China. But just as the world was slowly beginning to recover from these dark times, financial catastrophe hit.",r.a.createElement("br",null),r.a.createElement("br",null),"In many countries, the high cost of trying to deal with the civil disorder bankrupted the governments. In all of this chaos and confusion, hackers were able to steal billions of dollars from the world's largest electronic banks, prompting an international banking crisis as governments were unable to bail out insolvent banks. Now, the world is slowly crumbling in the middle of the biggest economic crisis of all time.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 11, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File makes it so that company favor increases BOTH the player's salary and reputation gain rate at that company by 1% per favor (rather than just the reputation gain). This Source-File also increases the player's company salary and reputation gain multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 32%",r.a.createElement("br",null),"Level 2: 48%",r.a.createElement("br",null),"Level 3: 56%",r.a.createElement("br",null),r.a.createElement("br",null),"It also reduces the price increase for every aug bought by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 4%",r.a.createElement("br",null),"Level 2: 6%",r.a.createElement("br",null),"Level 3: 7%")),c.BitNode12=new l(12,0,"The Recursion","Repeat.",r.a.createElement(r.a.Fragment,null,"To iterate is human, to recurse divine.",r.a.createElement("br",null),r.a.createElement("br",null),"Every time this BitNode is destroyed, it becomes slightly harder. Destroying this BitNode will give you Source-File 12, or if you already have this Source-File it will upgrade its level. There is no maximum level for Source-File 12. Each level of Source-File 12 lets you start any BitNodes with NeuroFlux Governor equal to the level of this source file.")),c.BitNode13=new l(13,2,"They're lunatics","1 step back, 2 steps forward",r.a.createElement(r.a.Fragment,null,"With the invention of Augmentations in the 2040s a religious group known as the"," ",o.a.ChurchOfTheMachineGod," has rallied far more support than anyone would have hoped.",r.a.createElement("br",null),r.a.createElement("br",null),'Their leader, Allison "Mother" Stanek is said to have created her own Augmentation whose power goes beyond any other. Find her in ',s.a.Chongqing," and gain her trust.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 13, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets the ",o.a.ChurchOfTheMachineGod," appear in other BitNodes.",r.a.createElement("br",null),r.a.createElement("br",null),"Each level of this Source-File increases the size of Stanek's Gift."));const f={HackingLevelMultiplier:1,StrengthLevelMultiplier:1,DefenseLevelMultiplier:1,DexterityLevelMultiplier:1,AgilityLevelMultiplier:1,CharismaLevelMultiplier:1,ServerGrowthRate:1,ServerMaxMoney:1,ServerStartingMoney:1,ServerStartingSecurity:1,ServerWeakenRate:1,HomeComputerRamCost:1,PurchasedServerCost:1,PurchasedServerSoftcap:1,PurchasedServerLimit:1,PurchasedServerMaxRam:1,CompanyWorkMoney:1,CrimeMoney:1,HacknetNodeMoney:1,ManualHackMoney:1,ScriptHackMoney:1,ScriptHackMoneyGain:1,CodingContractMoney: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,FourSigmaMarketDataCost:1,FourSigmaMarketDataApiCost:1,CorporationValuation:1,CorporationSoftcap:1,BladeburnerRank:1,BladeburnerSkillCost:1,GangSoftcap:1,GangUniqueAugs:1,DaedalusAugsRequirement:30,StaneksGiftPowerMultiplier:1,StaneksGiftExtraSize:0,WorldDaemonDifficulty:1};function u(t,e){const n=Object.assign({},f);switch(t){case 1:return n;case 2:return Object.assign(n,{HackingLevelMultiplier:.8,ServerGrowthRate:.8,ServerMaxMoney:.2,ServerStartingMoney:.4,CrimeMoney:3,InfiltrationMoney:3,FactionWorkRepGain:.5,FactionPassiveRepGain:0,StaneksGiftPowerMultiplier:2,StaneksGiftExtraSize:-6,PurchasedServerSoftcap:1.3,CorporationSoftcap:.9,WorldDaemonDifficulty:5});case 3:return Object.assign(n,{HackingLevelMultiplier:.8,RepToDonateToFaction:.5,AugmentationRepCost:3,AugmentationMoneyCost:3,ServerMaxMoney:.2,ServerStartingMoney:.2,ServerGrowthRate:.2,ScriptHackMoney:.2,CompanyWorkMoney:.25,CrimeMoney:.25,HacknetNodeMoney:.25,HomeComputerRamCost:1.5,PurchasedServerCost:2,StaneksGiftPowerMultiplier:.75,StaneksGiftExtraSize:-2,PurchasedServerSoftcap:1.3,GangSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.5});case 4:return Object.assign(n,{ServerMaxMoney:.15,ServerStartingMoney:.75,ScriptHackMoney:.2,CompanyWorkMoney:.1,CrimeMoney:.2,HacknetNodeMoney:.05,CompanyWorkExpGain:.5,ClassGymExpGain:.5,FactionWorkExpGain:.5,HackExpGain:.4,CrimeExpGain:.5,FactionWorkRepGain:.75,StaneksGiftPowerMultiplier:1.5,StaneksGiftExtraSize:0,PurchasedServerSoftcap:1.2,WorldDaemonDifficulty:3,GangUniqueAugs:.5});case 5:return Object.assign(n,{ServerMaxMoney:2,ServerStartingSecurity:2,ServerStartingMoney:.5,ScriptHackMoney:.15,HacknetNodeMoney:.2,CrimeMoney:.5,InfiltrationRep:1.5,InfiltrationMoney:1.5,AugmentationMoneyCost:2,HackExpGain:.5,CorporationValuation:.5,StaneksGiftPowerMultiplier:1.3,StaneksGiftExtraSize:0,PurchasedServerSoftcap:1.2,WorldDaemonDifficulty:1.5,GangUniqueAugs:.5});case 6:return Object.assign(n,{HackingLevelMultiplier:.35,ServerMaxMoney:.4,ServerStartingMoney:.5,ServerStartingSecurity:1.5,ScriptHackMoney:.75,CompanyWorkMoney:.5,CrimeMoney:.75,InfiltrationMoney:.75,CorporationValuation:.2,HacknetNodeMoney:.2,HackExpGain:.25,DaedalusAugsRequirement:35,PurchasedServerSoftcap:2,StaneksGiftPowerMultiplier:.5,StaneksGiftExtraSize:2,GangSoftcap:.7,CorporationSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.2});case 7:return Object.assign(n,{BladeburnerRank:.6,BladeburnerSkillCost:2,AugmentationMoneyCost:3,HackingLevelMultiplier:.35,ServerMaxMoney:.4,ServerStartingMoney:.5,ServerStartingSecurity:1.5,ScriptHackMoney:.5,CompanyWorkMoney:.5,CrimeMoney:.75,InfiltrationMoney:.75,CorporationValuation:.2,HacknetNodeMoney:.2,HackExpGain:.25,FourSigmaMarketDataCost:2,FourSigmaMarketDataApiCost:2,DaedalusAugsRequirement:35,PurchasedServerSoftcap:2,StaneksGiftPowerMultiplier:.9,StaneksGiftExtraSize:-1,GangSoftcap:.7,CorporationSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.2});case 8:return Object.assign(n,{ScriptHackMoney:.3,ScriptHackMoneyGain:0,ManualHackMoney:0,CompanyWorkMoney:0,CrimeMoney:0,HacknetNodeMoney:0,InfiltrationMoney:0,RepToDonateToFaction:0,CorporationValuation:0,CodingContractMoney:0,StaneksGiftExtraSize:-99,PurchasedServerSoftcap:4,GangSoftcap:0,CorporationSoftcap:0,GangUniqueAugs:0});case 9:return Object.assign(n,{HackingLevelMultiplier:.5,StrengthLevelMultiplier:.45,DefenseLevelMultiplier:.45,DexterityLevelMultiplier:.45,AgilityLevelMultiplier:.45,CharismaLevelMultiplier:.45,PurchasedServerLimit:0,HomeComputerRamCost:5,CrimeMoney:.5,ScriptHackMoney:.1,HackExpGain:.05,ServerStartingMoney:.1,ServerMaxMoney:.1,ServerStartingSecurity:2.5,CorporationValuation:.5,FourSigmaMarketDataCost:5,FourSigmaMarketDataApiCost:4,BladeburnerRank:.9,BladeburnerSkillCost:1.2,StaneksGiftPowerMultiplier:.5,StaneksGiftExtraSize:2,GangSoftcap:.8,CorporationSoftcap:.7,WorldDaemonDifficulty:2,GangUniqueAugs:.25});case 10:return Object.assign(n,{HackingLevelMultiplier:.35,StrengthLevelMultiplier:.4,DefenseLevelMultiplier:.4,DexterityLevelMultiplier:.4,AgilityLevelMultiplier:.4,CharismaLevelMultiplier:.4,CompanyWorkMoney:.5,CrimeMoney:.5,HacknetNodeMoney:.5,ManualHackMoney:.5,ScriptHackMoney:.5,CodingContractMoney:.5,InfiltrationMoney:.5,CorporationValuation:.5,AugmentationMoneyCost:5,AugmentationRepCost:2,HomeComputerRamCost:1.5,PurchasedServerCost:5,PurchasedServerLimit:.6,PurchasedServerMaxRam:.5,BladeburnerRank:.8,StaneksGiftPowerMultiplier:.75,StaneksGiftExtraSize:-3,PurchasedServerSoftcap:1.1,GangSoftcap:.9,CorporationSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.25});case 11:return Object.assign(n,{HackingLevelMultiplier:.6,HackExpGain:.5,ServerMaxMoney:.1,ServerStartingMoney:.1,ServerGrowthRate:.2,ServerWeakenRate:2,CrimeMoney:3,CompanyWorkMoney:.5,HacknetNodeMoney:.1,AugmentationMoneyCost:2,InfiltrationMoney:2.5,InfiltrationRep:2.5,CorporationValuation:.1,CodingContractMoney:.25,FourSigmaMarketDataCost:4,FourSigmaMarketDataApiCost:4,PurchasedServerSoftcap:2,CorporationSoftcap:.9,WorldDaemonDifficulty:1.5,GangUniqueAugs:.75});case 12:{const t=Math.pow(1.02,e),a=1/t;return Object.assign(n,{DaedalusAugsRequirement:Math.floor(Math.min(n.DaedalusAugsRequirement+t,40)),HackingLevelMultiplier:a,StrengthLevelMultiplier:a,DefenseLevelMultiplier:a,DexterityLevelMultiplier:a,AgilityLevelMultiplier:a,CharismaLevelMultiplier:a,ServerMaxMoney:a,ServerStartingMoney:a,ServerGrowthRate:a,ServerWeakenRate:a,ServerStartingSecurity:1.5,HomeComputerRamCost:t,PurchasedServerCost:t,PurchasedServerLimit:a,PurchasedServerMaxRam:a,PurchasedServerSoftcap:t,ManualHackMoney:a,ScriptHackMoney:a,CompanyWorkMoney:a,CrimeMoney:a,HacknetNodeMoney:a,CodingContractMoney:a,CompanyWorkExpGain:a,ClassGymExpGain:a,FactionWorkExpGain:a,HackExpGain:a,CrimeExpGain:a,FactionWorkRepGain:a,FactionPassiveRepGain:a,RepToDonateToFaction:t,AugmentationRepCost:t,AugmentationMoneyCost:t,InfiltrationMoney:a,InfiltrationRep:a,FourSigmaMarketDataCost:t,FourSigmaMarketDataApiCost:t,CorporationValuation:a,BladeburnerRank:a,BladeburnerSkillCost:t,StaneksGiftPowerMultiplier:t,StaneksGiftExtraSize:t,GangSoftcap:.8,CorporationSoftcap:.8,WorldDaemonDifficulty:t,GangUniqueAugs:a})}case 13:return Object.assign(n,{PurchasedServerSoftcap:1.6,HackingLevelMultiplier:.25,StrengthLevelMultiplier:.7,DefenseLevelMultiplier:.7,DexterityLevelMultiplier:.7,AgilityLevelMultiplier:.7,ServerMaxMoney:.45,ServerStartingMoney:.75,ServerStartingSecurity:3,ScriptHackMoney:.2,CompanyWorkMoney:.4,CrimeMoney:.4,HacknetNodeMoney:.4,CodingContractMoney:.4,CompanyWorkExpGain:.5,ClassGymExpGain:.5,FactionWorkExpGain:.5,HackExpGain:.1,CrimeExpGain:.5,FactionWorkRepGain:.6,FourSigmaMarketDataCost:10,FourSigmaMarketDataApiCost:10,CorporationValuation:.001,BladeburnerRank:.45,BladeburnerSkillCost:2,StaneksGiftPowerMultiplier:2,StaneksGiftExtraSize:1,GangSoftcap:.3,CorporationSoftcap:.3,WorldDaemonDifficulty:3,GangUniqueAugs:.1});default:throw new Error("Invalid BitNodeN")}}function m(t){Object.assign(i.a,u(t.bitNodeN,t.sourceFileLvl(t.bitNodeN)))}Object.freeze(f)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(28),r=n(33);const i={b:!0,initPrice:1e4,marketCap:1e12,mv:1,name:"",otlkMag:0,spreadPerc:0,shareTxForMovement:1e6,symbol:""};function o(t){let e;switch(typeof t){case"number":return t;case"object":{const n=t;e=Object(r.a)(n.min,n.max);break}default:throw Error(`Do not know how to convert the type '${typeof t}' to a number`)}return"object"==typeof t&&"number"==typeof t.divisor?e/t.divisor:e}class s{constructor(t=i){this.name=t.name,this.symbol=t.symbol,this.price=o(t.initPrice),this.lastPrice=this.price,this.playerShares=0,this.playerAvgPx=0,this.playerShortShares=0,this.playerAvgShortPx=0,this.mv=o(t.mv),this.b=t.b,this.otlkMag=t.otlkMag,this.otlkMagForecast=this.getAbsoluteForecast(),this.cap=Object(r.a)(1e3*this.price,25e3*this.price),this.spreadPerc=o(t.spreadPerc),this.shareTxForMovement=o(t.shareTxForMovement),this.shareTxUntilMovement=this.shareTxForMovement;const e=t.marketCap/this.price;this.totalShares=1e5*Math.round(e/1e5);this.maxShares=1e5*Math.round(.2*this.totalShares/1e5)}changeForecastForecast(t){this.otlkMagForecast=t,this.otlkMagForecast>100?this.otlkMagForecast=100:this.otlkMagForecast<0&&(this.otlkMagForecast=0)}changePrice(t){this.lastPrice=this.price,this.price=t}cycleForecast(t=.1){const e=this.getForecastIncreaseChance();Math.random()5&&(this.otlkMag=Math.max(5,this.otlkMag-t))}influenceForecastForecast(t){this.otlkMagForecast>50?(this.otlkMagForecast-=t,this.otlkMagForecast=Math.max(50,this.otlkMagForecast)):this.otlkMagForecast<50&&(this.otlkMagForecast+=t,this.otlkMagForecast=Math.min(50,this.otlkMagForecast))}toJSON(){return Object(a.b)("Stock",this)}static fromJSON(t){return Object(a.a)(s,t.data)}}a.c.constructors.Stock=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={}},,function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return c})),n.d(e,"f",(function(){return f}));var a=n(18),r=n(41);function i(t,e,n,i,o){return r.b.HashesPerLevel*t*Math.pow(1.07,Math.log2(n))*(1+(i-1)/5)*(1-e/n)*o*a.a.HacknetNodeMoney}function o(t,e=1,n=1){const a=Math.round(e);if(isNaN(a)||a<1)return 0;if(t>=r.b.MaxLevel)return 1/0;const i=r.b.UpgradeLevelMult;let o=0,s=t;for(let t=0;t=r.b.MaxRam)return 1/0;let i=0,o=Math.round(Math.log2(t)),s=t;for(let t=0;t=r.b.MaxCores)return 1/0;const i=r.b.UpgradeCoreMult;let o=0,s=t;for(let t=0;t=r.b.MaxCache)return 1/0;const a=r.b.UpgradeCacheMult;let i=0,o=t;for(let t=0;t=r.b.MaxServers?1/0:r.b.BaseCost*Math.pow(r.b.PurchaseMult,t-1)*e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"e",(function(){return c})),n.d(e,"g",(function(){return m})),n.d(e,"h",(function(){return h}));var a=n(85);let r={},i={};function o(t){r=""===t?{}:JSON.parse(t)}function s(t){i=""===t?{}:JSON.parse(t)}function l(){for(const t of Object.keys(r))r.hasOwnProperty(t)&&a.a.print("alias "+t+"="+r[t]);for(const t of Object.keys(i))i.hasOwnProperty(t)&&a.a.print("global alias "+t+"="+i[t])}function c(t,e=!1){const n=t.match(/^([\w|!%,@-]+)=(("(.+)")|('(.+)'))$/);return null!=n&&7==n.length&&(e?function(t,e){t in r&&delete r[t];i[t]=e.trim()}(n[1],n[4]||n[6]):function(t,e){t in i&&delete i[t];r[t]=e.trim()}(n[1],n[4]||n[6]),!0)}function f(t){return r.hasOwnProperty(t)?r[t]:null}function u(t){return i.hasOwnProperty(t)?i[t]:null}function m(t){return r.hasOwnProperty(t)?(delete r[t],!0):!!i.hasOwnProperty(t)&&(delete i[t],!0)}function h(t){const e=t.split(" ");if(e.length>0){if("unalias"===e[0]||"alias"===e[0])return e.join(" ");let t=!0,r=0;for(;t&&r<10;){var n;r++,t=!1;const i=null===(n=f(e[0]))||void 0===n?void 0:n.split(" ");null!=i&&(t=!0,e.splice(0,1,...i));for(let n=0;ne(f),[f]),l.a.createElement(a.a,{control:l.a.createElement(r.a,{checked:f,onChange:function(t){u(t.target.checked)}}),label:l.a.createElement(i.a,{title:l.a.createElement(o.a,null,c)},l.a.createElement(o.a,null,n))})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));class a{constructor(t,e,n){this.title=t,this.fn=e,this.txt=n}}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(1),o=n(21);function s(t){const[e,n]=Object(a.useState)(!1);return r.a.createElement(o.a,{open:e,title:r.a.createElement(i.a,null,"Copied!")},r.a.createElement(i.a,{variant:t.variant,color:t.color,onClick:function(){const e=document.createElement("textarea");e.value=t.value,document.body.appendChild(e),e.select(),e.setSelectionRange(0,1e10),document.execCommand("copy"),document.body.removeChild(e),n(!0),setTimeout(()=>n(!1),1e3)}},t.value))}},,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"a",(function(){return h}));var a=n(0),r=n.n(a),i=n(654),o=n(946),s=n(1744),l=n(125),c=n(6);const f=new l.a;let u;function m(){var t,e;u=Object(i.a)({colors:{hp:c.a.theme.hp,money:c.a.theme.money,hack:c.a.theme.hack,combat:c.a.theme.combat,cha:c.a.theme.cha,int:c.a.theme.int,rep:c.a.theme.rep,backgroundprimary:c.a.theme.backgroundprimary,backgroundsecondary:c.a.theme.backgroundsecondary,button:c.a.theme.button,successlight:c.a.theme.successlight,success:c.a.theme.success,successdark:c.a.theme.successdark,white:c.a.theme.white,black:c.a.theme.black},palette:{primary:{light:c.a.theme.primarylight,main:c.a.theme.primary,dark:c.a.theme.primarydark},secondary:{light:c.a.theme.secondarylight,main:c.a.theme.secondary,dark:c.a.theme.secondarydark},error:{light:c.a.theme.errorlight,main:c.a.theme.error,dark:c.a.theme.errordark},info:{light:c.a.theme.infolight,main:c.a.theme.info,dark:c.a.theme.infodark},warning:{light:c.a.theme.warninglight,main:c.a.theme.warning,dark:c.a.theme.warningdark},success:{light:c.a.theme.successlight,main:c.a.theme.success,dark:c.a.theme.successdark},background:{default:c.a.theme.backgroundprimary,paper:c.a.theme.well},action:{disabled:c.a.theme.disabled}},typography:{fontFamily:c.a.styles.fontFamily,button:{textTransform:"none"}},components:{MuiInputBase:{styleOverrides:{root:{backgroundColor:c.a.theme.well,color:c.a.theme.primary},input:{"&::placeholder":{userSelect:"none",color:c.a.theme.primarydark}}}},MuiInput:{styleOverrides:{root:{backgroundColor:c.a.theme.well,borderBottomColor:"#fff"},underline:{"&:hover":{borderBottomColor:c.a.theme.primarydark},"&:before":{borderBottomColor:c.a.theme.primary},"&:after":{borderBottomColor:c.a.theme.primarylight}}}},MuiInputLabel:{styleOverrides:{root:{color:c.a.theme.primarydark,userSelect:"none","&:before":{color:c.a.theme.primarylight}}}},MuiButtonGroup:{styleOverrides:{root:{"& .MuiButton-root:not(:last-of-type)":{marginRight:"1px"}}}},MuiButton:{styleOverrides:{root:{backgroundColor:c.a.theme.button,border:"1px solid "+c.a.theme.well,"&:hover":{backgroundColor:c.a.theme.backgroundsecondary},borderRadius:0}}},MuiSelect:{styleOverrides:{icon:{color:c.a.theme.primary}},defaultProps:{variant:"standard"}},MuiTextField:{defaultProps:{variant:"standard"}},MuiTypography:{defaultProps:{color:"primary"},styleOverrides:{root:{lineHeight:c.a.styles.lineHeight}}},MuiMenu:{styleOverrides:{list:{backgroundColor:c.a.theme.well}}},MuiMenuItem:{styleOverrides:{root:{color:c.a.theme.primary}}},MuiAccordionSummary:{styleOverrides:{root:{backgroundColor:"#111"}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:c.a.theme.backgroundsecondary}}},MuiIconButton:{styleOverrides:{root:{color:c.a.theme.primary}}},MuiTooltip:{styleOverrides:{tooltip:{fontSize:"1em",color:c.a.theme.primary,backgroundColor:c.a.theme.well,borderRadius:0,border:"2px solid white",maxWidth:"100vh"}},defaultProps:{disableInteractive:!0}},MuiSlider:{styleOverrides:{valueLabel:{color:c.a.theme.primary,backgroundColor:c.a.theme.well}}},MuiDrawer:{styleOverrides:{paper:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",backgroundColor:c.a.theme.backgroundsecondary},paperAnchorDockedLeft:{borderRight:"1px solid "+c.a.theme.welllight}}},MuiDivider:{styleOverrides:{root:{backgroundColor:c.a.theme.welllight}}},MuiFormControlLabel:{styleOverrides:{root:{color:c.a.theme.primary}}},MuiSwitch:{styleOverrides:{switchBase:{color:c.a.theme.primarydark},track:{backgroundColor:c.a.theme.welllight}}},MuiPaper:{styleOverrides:{root:{borderRadius:0,backgroundColor:c.a.theme.backgroundsecondary,border:"1px solid "+c.a.theme.welllight}}},MuiTablePagination:{styleOverrides:{select:{color:c.a.theme.primary},selectLabel:{color:c.a.theme.primary},displayedRows:{color:c.a.theme.primary}}},MuiTab:{styleOverrides:{textColorPrimary:{color:c.a.theme.secondary,"&.Mui-selected":{color:c.a.theme.primary}},root:{backgroundColor:c.a.theme.backgroundsecondary,border:"1px solid "+c.a.theme.well,margin:"3px","&.Mui-selected":{backgroundColor:c.a.theme.button}}}},MuiTabs:{styleOverrides:{scrollButtons:{backgroundColor:c.a.theme.backgroundsecondary,color:c.a.theme.secondary,margin:"3px",opacity:1,width:"fit-content","&.Mui-disabled":{opacity:.5}}},defaultProps:{TabIndicatorProps:{style:{display:"none"}}}},MuiAlert:{styleOverrides:{root:{backgroundColor:c.a.theme.black,borderRadius:0,border:"1px solid "+c.a.theme.well},standardSuccess:{color:c.a.theme.successlight},standardError:{color:c.a.theme.errorlight},standardWarning:{color:c.a.theme.warninglight},standardInfo:{color:c.a.theme.infolight}}}}}),document.body.style.backgroundColor=null!==(t=null===(e=u.colors.backgroundprimary)||void 0===e?void 0:e.toString())&&void 0!==t?t:"black"}m();const h=({children:t})=>r.a.createElement(o.a,{injectFirst:!0},r.a.createElement(s.a,{theme:u},t))},,function(t,e,n){"use strict";let a,r;n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r})),function(t){t[t.Cost=0]="Cost",t[t.Default=1]="Default",t[t.Reputation=2]="Reputation",t[t.Purchasable=3]="Purchasable"}(a||(a={})),function(t){t[t.Alphabetically=0]="Alphabetically",t[t.AcquirementTime=1]="AcquirementTime"}(r||(r={}))},,,,,,function(t,e,n){"use strict";n.d(e,"c",(function(){return C})),n.d(e,"b",(function(){return L})),n.d(e,"a",(function(){return O})),n.d(e,"d",(function(){return T})),n.d(e,"e",(function(){return R}));var a=n(0),r=n.n(a),i=n(125),o=n(144),s=n(1),l=n(19),c=n(8),f=n(45),u=n(453),m=n.n(u),h=n(1032),d=n(121),p=n(146),g=n(599),y=n.n(g),b=n(198),E=n(197),v=n(22),k=n(235),_=n(2),w=n(114),S=n(6);let x=0;const C=new i.a,L=new i.a,O=new i.a;let M=[];function T(){const t=Object(a.useState)(!0)[1];function e(){t(t=>!t)}return Object(a.useEffect)(()=>C.subscribe(t=>{const n=t.server+"-"+t.filename+t.args.map(t=>""+t).join("-");M.find(t=>t.id===n)||(M.push({id:n,script:t}),e())}),[]),Object(a.useEffect)(()=>L.subscribe(t=>{!function(t){M=M.filter(e=>e.script.pid!=t),e()}(t)}),[]),Object(a.useEffect)(()=>O.subscribe(()=>{M=[],e()})),r.a.createElement(r.a.Fragment,null,M.map(t=>r.a.createElement(N,{key:t.id,script:t.script,id:t.id,onClose:()=>{return n=t.id,M=M.filter(t=>t.id!==n),void e();var n}})))}const A=Object(d.a)(t=>Object(p.a)({logs:{overflowY:"scroll",overflowX:"hidden",scrollbarWidth:"auto",flexDirection:"column-reverse",whiteSpace:"pre-wrap"},titleButton:{padding:"1px 0",height:"100%"}})),R=1500;function N(t){const e=Object(a.useRef)(null),n=Object(a.useRef)(null),[i,u]=Object(a.useState)(t.script),d=A(),p=Object(a.useRef)(null),g=Object(a.useState)(!1)[1],[C,L]=Object(a.useState)(!1);function O(){g(t=>!t)}function M(){Object(o.a)(i,i.server,!0)}function T(){const t=Object(v.d)(i.server);if(null===t)return;const e=Object(k.a)(i.filename,i.args,t);null===e?Object(E.e)(_.a,i,t):u(e)}function N(){const t=p.current;null!==t&&(t.style.zIndex=R+x+"",x++,O())}function P(t=!1){const e=`${i.filename} ${i.args.map(t=>""+t).join(" ")}`;return t||e.length<=30?e:e.slice(0,27)+"..."}function I(){L(!C)}Object(a.useEffect)(()=>{N();const t=setInterval(O,1e3);return()=>clearInterval(t)},[]),Object(a.useEffect)(()=>(window.addEventListener("resize",F),()=>{window.removeEventListener("resize",F)}),[]);const F=Object(w.debounce)(()=>{const t=null==e?void 0:e.current;t&&(D(t)||j())},100),D=t=>{const e=t.getBoundingClientRect();return!(e.right<0||e.bottom<0||e.left>innerWidth||e.top>outerWidth)},j=()=>{const t=null==n?void 0:n.current;if(!t)return;const e=t.state;e.x=0,e.y=0,t.setState(e)},B=[250,33];return r.a.createElement(m.a,{handle:".drag",onDrag:t=>{if(t.clientX<0||t.clientY<0||t.clientX>innerWidth||t.clientY>innerHeight)return!1},ref:n,onMouseDown:N},r.a.createElement(l.a,{display:"flex",sx:{flexFlow:"column",position:"fixed",left:"40%",top:"30%",zIndex:1400,minWidth:B[0]+"px",minHeight:B[1]+"px",...C?{border:"none",margin:0,maxHeight:0,padding:0}:{border:"1px solid "+S.a.theme.welllight}},ref:p},r.a.createElement(h.ResizableBox,{height:500,width:500,minConstraints:B,handle:r.a.createElement("span",{style:{position:"absolute",right:"-10px",bottom:"-16px",cursor:"nw-resize",display:C?"none":"inline-block"}},r.a.createElement(y.a,{color:"primary",style:{transform:"rotate(45deg)",fontSize:"1.75rem"}}))},r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{className:"drag",sx:{display:"flex",alignItems:"center",cursor:"grab"},ref:e},r.a.createElement(s.a,{variant:"h6",sx:{marginRight:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},title:P(!0)},P(!0)),r.a.createElement("span",{style:{minWidth:"fit-content",height:B[1]+"px"}},b.a.has(i.pid)?r.a.createElement(c.a,{className:d.titleButton,onClick:M,onTouchEnd:M},"Kill"):r.a.createElement(c.a,{className:d.titleButton,onClick:T,onTouchEnd:T},"Run"),r.a.createElement(c.a,{className:d.titleButton,onClick:I,onTouchEnd:I},C?"🗖":"🗕"),r.a.createElement(c.a,{className:d.titleButton,onClick:t.onClose,onTouchEnd:t.onClose},"Close"))),r.a.createElement(f.a,{className:d.logs,sx:{height:`calc(100% - ${B[1]}px)`,display:C?"none":"flex"}},r.a.createElement("span",{style:{display:"flex",flexDirection:"column"}},i.logs.map((t,e)=>{return r.a.createElement(s.a,{key:e,sx:{color:(n=t,n.match(/(^\[[^\]]+\] )?ERROR/)||n.match(/(^\[[^\]]+\] )?FAIL/)?S.a.theme.error:n.match(/(^\[[^\]]+\] )?SUCCESS/)?S.a.theme.success:n.match(/(^\[[^\]]+\] )?WARN/)?S.a.theme.warning:n.match(/(^\[[^\]]+\] )?INFO/)?S.a.theme.info:S.a.theme.primary)}},t,r.a.createElement("br",null));var n})))))))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={Water:.05,Energy:.01,Food:.03,Plants:.05,Metal:.1,Hardware:.06,Chemicals:.05,Drugs:.02,Robots:.5,AICores:.1,RealEstate:.005,"Real Estate":.005,"AI Cores":.1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));class a{constructor(t){var e,n,a;a="",(n="errorMessage")in(e=this)?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,this.pid=t.pid,this.name=t.name,this.hostname=t.hostname,this.errorMessage=t.errorMessage,Object.freeze(this)}}Object.freeze(a),Object.freeze(a.prototype)},function(t,e,n){"use strict";function a(t,e=1){return Math.max(Math.floor(e*(32*Math.log(t+534.5)-200)),1)}function r(t,e=1){return Math.exp((t/e+200)/32)-534.6}function i(t,e=1){const n=a(t,e),i=n+1;let o=r(n,e);o<0&&(o=0);let s=r(i,e);s<0&&(s=0);let l=s-o!=0?100*(t-o)/(s-o):99.99;l<0&&(l=0),l>100&&(l=100);let c=t-o,f=s-t;return c<0&&(c=0),f<0&&(f=0),{currentSkill:n,nextSkill:i,baseExperience:o,experience:t,nextExperience:s,currentExperience:c,remainingExperience:f,progress:l}}n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i}))},,function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r})),function(t){t.Weapon="w",t.Armor="a",t.Vehicle="v",t.Rootkit="r",t.Augmentation="g"}(a||(a={}));const r=[{cost:1e6,mults:{str:1.04,def:1.04},name:"Baseball Bat",upgType:a.Weapon},{cost:12e6,mults:{str:1.08,def:1.08,dex:1.08},name:"Katana",upgType:a.Weapon},{cost:25e6,mults:{str:1.1,def:1.1,dex:1.1,agi:1.1},name:"Glock 18C",upgType:a.Weapon},{cost:5e7,mults:{str:1.12,def:1.1,agi:1.1},name:"P90C",upgType:a.Weapon},{cost:6e7,mults:{str:1.2,def:1.15},name:"Steyr AUG",upgType:a.Weapon},{cost:1e8,mults:{str:1.25,def:1.2},name:"AK-47",upgType:a.Weapon},{cost:15e7,mults:{str:1.3,def:1.25},name:"M15A10 Assault Rifle",upgType:a.Weapon},{cost:225e6,mults:{str:1.3,dex:1.25,agi:1.3},name:"AWM Sniper Rifle",upgType:a.Weapon},{cost:2e6,mults:{def:1.04},name:"Bulletproof Vest",upgType:a.Armor},{cost:5e6,mults:{def:1.08},name:"Full Body Armor",upgType:a.Armor},{cost:25e6,mults:{def:1.15,agi:1.15},name:"Liquid Body Armor",upgType:a.Armor},{cost:4e7,mults:{def:1.2},name:"Graphene Plating Armor",upgType:a.Armor},{cost:3e6,mults:{agi:1.04,cha:1.04},name:"Ford Flex V20",upgType:a.Vehicle},{cost:9e6,mults:{agi:1.08,cha:1.08},name:"ATX1070 Superbike",upgType:a.Vehicle},{cost:18e6,mults:{agi:1.12,cha:1.12},name:"Mercedes-Benz S9001",upgType:a.Vehicle},{cost:3e7,mults:{agi:1.16,cha:1.16},name:"White Ferrari",upgType:a.Vehicle},{cost:5e6,mults:{hack:1.05},name:"NUKE Rootkit",upgType:a.Rootkit},{cost:25e6,mults:{hack:1.1},name:"Soulstealer Rootkit",upgType:a.Rootkit},{cost:75e6,mults:{hack:1.15},name:"Demon Rootkit",upgType:a.Rootkit},{cost:4e7,mults:{hack:1.12},name:"Hmap Node",upgType:a.Rootkit},{cost:75e6,mults:{hack:1.15},name:"Jack the Ripper",upgType:a.Rootkit},{cost:1e10,mults:{str:1.3,dex:1.3},name:"Bionic Arms",upgType:a.Augmentation},{cost:1e10,mults:{agi:1.6},name:"Bionic Legs",upgType:a.Augmentation},{cost:15e9,mults:{str:1.15,def:1.15,dex:1.15,agi:1.15},name:"Bionic Spine",upgType:a.Augmentation},{cost:2e10,mults:{str:1.4,def:1.4},name:"BrachiBlades",upgType:a.Augmentation},{cost:12e9,mults:{str:1.2,def:1.2},name:"Nanofiber Weave",upgType:a.Augmentation},{cost:25e9,mults:{str:1.5,agi:1.5},name:"Synthetic Heart",upgType:a.Augmentation},{cost:15e9,mults:{str:1.3,def:1.3},name:"Synfibril Muscle",upgType:a.Augmentation},{cost:5e9,mults:{hack:1.05},name:"BitWire",upgType:a.Augmentation},{cost:1e10,mults:{hack:1.15},name:"Neuralstimulator",upgType:a.Augmentation},{cost:75e8,mults:{hack:1.1},name:"DataJack",upgType:a.Augmentation},{cost:5e10,mults:{str:1.7,def:1.7},name:"Graphene Bone Lacings",upgType:a.Augmentation}]},,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(376),r=n(347),i=n(28);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class s{constructor(t=""){o(this,"alreadyInvited",!1),o(this,"augmentations",[]),o(this,"favor",0),o(this,"isBanned",!1),o(this,"isMember",!1),o(this,"name",""),o(this,"playerReputation",0),this.name=t}getInfo(){const t=a.a[this.name];if(null==t)throw new Error(`Missing faction from FactionInfos: ${this.name} this probably means the faction got corrupted somehow`);return t}gainFavor(){null==this.favor&&(this.favor=0),this.favor+=this.getFavorGain()}getFavorGain(){null==this.favor&&(this.favor=0);const t=Math.max(0,Object(r.a)(this.favor))+this.playerReputation;return Object(r.b)(t)-this.favor}toJSON(){return Object(i.b)("Faction",this)}static fromJSON(t){return Object(i.a)(s,t.data)}}i.c.constructors.Faction=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(435),r=n(154),i=n(771),o=n(15),s=n(603);const l={};function c(t){if(!t.name)throw new Error("Invalid constructor parameters for Location. No 'name' property");return l[t.name]instanceof i.a&&console.warn(`Property with name ${t.name} already exists and is being overwritten`),l[t.name]=new i.a(t),l[t.name]}r.a[o.a.Aevum]=new a.a(o.a.Aevum),r.a[o.a.Chongqing]=new a.a(o.a.Chongqing),r.a[o.a.Ishima]=new a.a(o.a.Ishima),r.a[o.a.NewTokyo]=new a.a(o.a.NewTokyo),r.a[o.a.Sector12]=new a.a(o.a.Sector12),r.a[o.a.Volhaven]=new a.a(o.a.Volhaven),r.a[o.a.Aevum].asciiArt="\n [aevum police headquarters] 26 \n o \n I \\ [bachman & associates] \n \\ 56 B \n x \\ [summit university] \n \\ \\ 28 \n \\ [snap fitness gym] x o--L-----------N \n K \\ / \n \\ \\ Q [casino] \n x 58 \\ / [travel agency] \n \\ 94 95 o \n 90 x 59 o------o | \n \\ / \\ | 98 102 103 \n o--------O------x----o 93 96 o-----+------------o o----o \n \\ | \\ / \n [hospital] \\ 61 [ecorp] x 31 99 o-F-o 101 \n o | \n | o---E-- | [fulcrum tech.] \n x 62 / A [aerocorp] \n [crush fitness gym] | / | \n | / | \n o--------D------+--o o \n | |\\ [rho construction] \n H [netlink tech.] | J \n | | \\ \n | 34 x \\ \n [clarke inc.] C | \\ [world stock exchange] \n | | \\ \n | | o-M-------R--------o \n[galactic cybersystems] G 35 x \n | [watchdog security] \n | \n 67 o \n \n [the slums] P ",r.a[o.a.Chongqing].asciiArt="\n | \n 75 o \n \\ \n o 76 \n 7 | | \n | + 77 \n [world stock exchange] F | \n \\ o 78 [kuaigong international] \n \\ / \n 38 o----x--x------x------A------G-- \n / 39 | 41 [church] \n 37 o + 79 o--x--x-C-0 \n / | / \n / x-----+-----x-----0 [hospital] \n[solaris space system] B | \n | + 80 \n | | \n 34 o E [travel agency] \n | \n | \n x 82 \n [the slums] D ",r.a[o.a.Ishima].asciiArt="\n o 59 \n o o | \n [storm tech.] | | G [world stock exchange] \n | | 28 | \n 23 o--C------o--------+----x----o | \n / / 25 | 27 \\ x 57 \n / / | \\ | \n / / | \\ | \n o 22 o | \\| 29/56 \n | | o \n | [hospital] D / \\ 3 2 1 \n o | / \\ o-------x------o \n / o / \\ / \n 48 o / 55 x \\ / \n \\ / / x [glitch] \n \\ / [nova medical] / 4/30 \\ \n 49 x A \\ H \n / \\ / \\ \n / \\ [travel agency] F o 31 \n / \\ 51 / \n / o----B------x-----o \n o 50 52 \n [omega soft.] \n [the slums] E ",r.a[o.a.NewTokyo].asciiArt="\n \n \n o \n \\ \n [arcade] E [defcomm] \n \\ \n o--x---A--x--o [travel agency] \n 7 8 10 H \n [vitalife] o 12 [global pharmaceuticals] \n | \n o--D-x----x-------x-C-+--------x--x-B-x---x-o \n 21 22 23 \\ 24 25 26 27 \n \\ \n [noodle bar] x 14 \n \\ \n \\ \n [hospital] o 15 [world stock exchange] \n | \n o--x--F--x-----x-----x---+---x----x--I--x-o \n | \n | \n o 17 \n \n \n \n G [the slums] \n ",r.a[o.a.Sector12].asciiArt="\n 78 o 97 \n o [icarus microsystems] / \n N [powerhouse gym] o I \n 1 | | / \n o-----+---x----o 4 A [alpha ent.] o-------o / \n | 3 \\ | \\ / \n | \\ | [iron gym] x 95 \n (79) x \\ | / \\ \n | o-E----+----x----J--o 10 / o----T--o \n | | 8 \\ 94 x \n 80 x [city hall] | x 11 / [world stock exchange]\n | | \\ / \n | C [cia] \\ / \n Q [hospital] | F P [universal energy] \n | o [deltaone] \\ / \n | 35 o---------x 13/92/36 \n L [megacorp] 33 / / \\ \n | o------------o 34 / \\ \n (29) | / [carmichael sec.] D \\ \n o-----+-----x------o / O [rothman university] \n | 31 32 [nsa] M \n | / \n B [blade industries] H \n | / [four sigma] \n | [joe's guns] / \n | / \n 85 o--G--------K--------S-------o 88 [the slums] R \n \n [foodnstuff] [travel agency] ",r.a[o.a.Volhaven].asciiArt="\n [omnia cybersystems] \n 17 66 68 \n o o------G-------o \n \\ / \\ \n \\ o 65 o 69 \n [syscore sec.] H | | \n \\ | | [millenium fitness gym] \n \\ | 21 22 23 24 | 26 \n o----+--x--x----x---x---+-----x-------D-----o \n 19 | | 28 \n | F [omnitek inc.] \n [hospital] J 63 o \n | / 72 \n 3 | 5 6 / 9 \n o--------+----x-----x----+----------M-------o \n / | | \n / 61 x [helios labs] B [world stock exchange] \n [travel agency] L | | \n / | o \n / E [nwo] / 75 \n / [computek] | / \n / A-------o------I-----o \n 1 o | | \n | [zb] o 77 \n [lexocorp] C \n | \n o \n 57 \n \n \n [the slums] K ";for(const t of s.a){const e=c(t),n=e.city;if(null===n)for(const t of Object.keys(r.a))r.a[t].addLocation(e.name);else r.a[n].addLocation(e.name)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(4);const r={GangRespectToReputationRatio:75,MaximumGangMembers:12,CyclesPerTerritoryAndPowerUpdate:100,AscensionMultiplierRatio:.15,Names:[a.a.SlumSnakes,a.a.Tetrads,a.a.TheSyndicate,a.a.TheDarkArmy,a.a.SpeakersForTheDead,a.a.NiteSec,a.a.TheBlackHand],GangKarmaRequirement:-54e3}},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t[t.Field=0]="Field",t[t.Hacking=1]="Hacking",t[t.None=2]="None",t[t.Security=3]="Security"}(a||(a={}))},,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return A})),n.d(e,"c",(function(){return R})),n.d(e,"e",(function(){return P})),n.d(e,"f",(function(){return F})),n.d(e,"b",(function(){return D})),n.d(e,"d",(function(){return j}));var a=n(144),r=n(181),i=n(422),o=n(198),s=n(298),l=n(528),c=n(10),f=n(596),u=n(110),m=n(529),h=n(644),d=n(1409),p=n(369),g=n(652),y=n(235),b=n(22),E=n(6),v=n(684),k=n(14),_=n(255),w=n(527),S=n(148),x=n(423),C=n(254),L=n(304),O=n(83),M=n(2),T=n(85);const A=[];for(let t=0;t{i=!0;let e=t.source.value;e.startsWith("./")&&(e=e.slice(2));const n=function(t){for(let e=0;e{n.push(t.id.name),a.push(t)}}),r+=`var ${e};\n(function (namespace) {\n`,a.forEach(t=>{r+=Object(v.generate)(t),r+="\n"}),n.forEach(t=>{r+="namespace."+t+" = "+t,r+="\n"}),r+=`})(${e} || (" + namespace + " = {}));\n`}else{const e=[];t.specifiers.forEach(t=>{e.push(t.local.name)});const n=[];Object(L.b)(o,{FunctionDeclaration:t=>{e.includes(t.id.name)&&n.push(t)}}),n.forEach(t=>{r+=Object(v.generate)(t),r+="\n"})}}}),!i)return{code:t,lineOffset:0};let o=0;if("Program"!==n.type||null==n.body)throw new Error("Code could not be properly parsed");for(let t=n.body.length-1;t>=0;--t)"ImportDeclaration"===n.body[t].type&&(n.body.splice(t,1),++o);const s=(r.match(/\n/g)||[]).length-o;t=Object(v.generate)(n);return{code:t=r+t,lineOffset:s}}(e,t);n=a.code,i=a.lineOffset}catch(e){return Object(k.a)("Error processing Imports in "+t.name+":
"+e),t.env.stopFlag=!0,t.running=!1,Object(a.a)(t),Promise.resolve()}const o=function(e,n){const i=Object(m.a)(t);for(const o of Object.keys(i)){const s=i[o];if("function"==typeof s)if(["hack","grow","weaken","sleep","prompt","manualHack","scp","write","share","wget"].includes(o)){const i=function(...n){const i=[];for(let t=0;t`;return s+="
",s+=o,Object(k.a)(s),t.env.stopFlag=!0,t.running=!1,Object(a.a)(t),Promise.resolve()}}))};e.setProperty(n,o,e.createAsyncFunction(i))}else if("sprintf"===o||"vsprintf"===o||"scp"===o||"write"==o||"tryWrite"===o||"run"===o||"exec"===o){const t=function(...t){const n=[];for(let a=0;a"+e),t.env.stopFlag=!0,t.running=!1,Object(a.a)(t),Promise.resolve()}return new Promise((function(e,n){try{!function a(){try{if(t.env.stopFlag)return n(new r.a(t));let i=!0,o=0;for(;o<3&&i;)i=i&&s.step(),o++;i?setTimeout(a,E.a.CodeInstructionRunTime):e()}catch(e){return e=e.toString(),Object(u.a)(e)||(e=Object(u.b)(t,e)),t.errorMessage=e,n(new r.a(t))}}()}catch(e){return Object(S.a)(e)?(t.errorMessage=e,n(new r.a(t))):e instanceof r.a?n(e):(console.error(e),n(new r.a(t)))}}))}function P(t,e,n,a){return I(t,e,n,a)?(n.runScript(e),e.pid):0}function I(t,e,n,c){let f=1;e.threads&&!isNaN(e.threads)?f=e.threads:e.threads=1;const d=Object(g.a)(e),p=Object(w.a)(d*f);if(p>n.maxRam-n.ramUsed+.001)return Object(k.a)(`Not enough RAM to run script ${e.filename} with args `+Object(_.a)(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.)"),!1;n.updateRamUsed(Object(w.a)(n.ramUsed+p),M.a);const y=Object(l.a)();if(-1===y)throw new Error("Failed to start script because could not find available PID. This is most because you have too many scripts running.");const b=new i.a(e,y,m.a);b.ramUsage=d,o.a.set(y,b),s.a.emit();let E=null;if(b.name.endsWith(".js")||b.name.endsWith(".ns"))E=function(t,e){e.running=!0;let n=null;function a(t,a){return function(...i){if(e.env.stopFlag)throw new r.a(e);if("asleep"===t)return a(...i);if(n)throw e.errorMessage=Object(u.b)(e,Object(x.sprintf)("Concurrent calls to Netscript functions are not allowed! Did you forget to await hack(), grow(), or some other promise-returning function? (Currently running: %s tried to run: %s)",n,t)),new r.a(e);let o;n=t;try{o=a(...i)}catch(t){throw n=null,t}return o&&void 0!==o.finally?o.finally((function(){n=null})):(n=null,o)}}return function t(e,...n){for(const r of Object.keys(e))switch(typeof e[r]){case"function":e[r]=a([...n,r].join("."),e[r]);break;case"object":if(Array.isArray(e[r]))continue;t(e[r],...n,r)}}(e.env.vars),new Promise((n,a)=>{Object(h.b)(t,e.getServer().scripts,e).then(()=>{n()}).catch(t=>a(t))}).catch(t=>{if(t instanceof Error)throw t instanceof SyntaxError?e.errorMessage=Object(u.b)(e,t.message+" (sorry we can't be more helpful)"):e.errorMessage=Object(u.b)(e,t.message+(t.stack&&"\nstack:\n"+t.stack.toString()||"")),new r.a(e);if(Object(u.a)(t))throw e.errorMessage=t,new r.a(e);if(t instanceof r.a)throw t;throw e.errorMessage=Object(u.b)(e,""+t),new r.a(e)})}(t,b);else if(E=N(b),!(E instanceof Promise))return!1;return E.then((function(){b.running=!1,b.env.stopFlag=!0,void 0!==c&&c.running&&(c.scriptRef.onlineExpGained+=e.onlineExpGained,c.scriptRef.onlineMoneyMade+=e.onlineMoneyMade),Object(a.a)(b),b.log("",()=>"Script finished running")})).catch((function(t){if(t instanceof Error)return Object(k.a)("Script runtime unknown error. This is a bug please contact game developer"),void console.error("Evaluating workerscript returns an Error. THIS SHOULDN'T HAPPEN: "+t.toString());if(t instanceof r.a){if(!Object(u.a)(b.errorMessage))return void b.log("",()=>"Script killed");{const t=b.errorMessage.split("|DELIMITER|");if(4!=t.length)return console.error("ERROR: Something wrong with Error text in evaluator..."),void console.error("Error text: "+b.errorMessage);const e=t[1],n=t[2],a=t[3];let r=`RUNTIME ERROR
${n}@${e} (PID - ${b.pid})
`;b.args.length>0&&(r+=`Args: ${Object(_.a)(b.args)}
`),r+="
",r+=a,Object(k.a)(r),b.log("",()=>"Script crashed with runtime error")}}else{if(Object(u.a)(t))return Object(k.a)("Script runtime unknown error. This is a bug please contact game developer"),void console.error("ERROR: Evaluating workerscript returns only error message rather than WorkerScript object. THIS SHOULDN'T HAPPEN: "+t.toString());Object(k.a)("An unknown script died for an unknown reason. This is a bug please contact game dev"),console.error(t)}Object(a.a)(b)})),!0}function F(t=1){const e=t*c.a._idleSpeed/1e3;for(const t of o.a.values())t.scriptRef.onlineRunningTime+=e}function D(t){const e=-1!==window.location.href.toLowerCase().indexOf("?noscripts");e&&(T.a.warn("Skipped loading player scripts during startup"),console.info("Skipping the load of any scripts during startup"));for(const n of Object(b.c)()){n.ramUsed=0;for(let t=0;t`Invalid arguments: scriptname='${a} args='${r}'`),console.error("runScriptFromScript() failed due to invalid arguments"),0;r.forEach((t,e)=>{if("string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t)throw new Error(`Only strings, numbers, and booleans can be passed as arguments to other scripts.\n${a} argument index ${e} is of type ${typeof t} and value ${JSON.stringify(t)}`)});if(null!=n.getRunningScript(a,r))return o.log(e,()=>`'${a}' is already running on '${n.hostname}'`),0;for(let t=0;t"Cannot execute a script with null/undefined as an argument"),0;for(let i=0;i`You do not have root access on '${n.hostname}'`),0;if(c>f+.001)return o.log(e,()=>`Cannot run script '${a}' (t=${s}) on '${n.hostname}' because there is not enough available RAM!`),0;o.log(e,()=>`'${a}' on '${n.hostname}' with ${s} threads and args: ${Object(_.a)(r)}.`);const u=new p.a(l,r);return u.threads=s,u.server=n.hostname,P(t,u,n,o)}return o.log(e,()=>`Could not find script '${a}' on '${n.hostname}'`),0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a=new Map},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(69),o=n(142),s=n(149),l=n(50),c=n(1);function f({rows:t,title:e,wide:n}){const a=n?s.a:i.a;return r.a.createElement(r.a.Fragment,null,e&&r.a.createElement(c.a,null,e),r.a.createElement(a,{size:"small",padding:"none"},r.a.createElement(o.a,null,t.map((t,e)=>r.a.createElement(l.a,{key:e},t.map((t,e)=>r.a.createElement(i.b,{key:e,align:0!==e?"right":"left"},r.a.createElement(c.a,{noWrap:!0},t))))))))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(28);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class i{constructor(t={}){r(this,"name","InitName"),r(this,"qty",0),r(this,"qlt",0),r(this,"dmd",0),r(this,"dmdR",[0,0]),r(this,"cmp",0),r(this,"cmpR",[0,0]),r(this,"mv",0),r(this,"mku",0),r(this,"buy",0),r(this,"sll",0),r(this,"prd",0),r(this,"imp",0),r(this,"exp",[]),r(this,"totalExp",0),r(this,"bCost",0),r(this,"sCost",0),r(this,"prdman",[!1,0]),r(this,"sllman",[!1,0]),r(this,"marketTa1",!1),r(this,"marketTa2",!1),r(this,"marketTa2Price",0),r(this,"maxsll",0),t.name&&(this.name=t.name),this.init()}getMarkupLimit(){return this.qlt/this.mku}init(){switch(this.name){case"Water":this.dmd=75,this.dmdR=[65,85],this.cmp=50,this.cmpR=[40,60],this.bCost=1500,this.mv=.2,this.mku=6;break;case"Energy":this.dmd=90,this.dmdR=[80,99],this.cmp=80,this.cmpR=[65,95],this.bCost=2e3,this.mv=.2,this.mku=6;break;case"Food":this.dmd=80,this.dmdR=[70,90],this.cmp=60,this.cmpR=[35,85],this.bCost=5e3,this.mv=1,this.mku=3;break;case"Plants":this.dmd=70,this.dmdR=[20,90],this.cmp=50,this.cmpR=[30,70],this.bCost=3e3,this.mv=.6,this.mku=3.75;break;case"Metal":this.dmd=80,this.dmdR=[75,85],this.cmp=70,this.cmpR=[60,80],this.bCost=2650,this.mv=1,this.mku=6;break;case"Hardware":this.dmd=85,this.dmdR=[80,90],this.cmp=80,this.cmpR=[65,95],this.bCost=8e3,this.mv=.5,this.mku=1;break;case"Chemicals":this.dmd=55,this.dmdR=[40,70],this.cmp=60,this.cmpR=[40,80],this.bCost=9e3,this.mv=1.2,this.mku=2;break;case"Real Estate":this.dmd=50,this.dmdR=[5,99],this.cmp=50,this.cmpR=[25,75],this.bCost=8e4,this.mv=1.5,this.mku=1.5;break;case"Drugs":this.dmd=60,this.dmdR=[45,75],this.cmp=70,this.cmpR=[40,99],this.bCost=4e4,this.mv=1.6,this.mku=1;break;case"Robots":this.dmd=90,this.dmdR=[80,99],this.cmp=90,this.cmpR=[80,99],this.bCost=75e3,this.mv=.5,this.mku=1;break;case"AI Cores":this.dmd=90,this.dmdR=[80,99],this.cmp=90,this.cmpR=[80,99],this.bCost=15e3,this.mv=.8,this.mku=.5;break;case"Scientific Research":case"InitName":break;default:console.error("Invalid material type in init(): "+this.name)}}processMarket(){const t=1+Math.random()*this.mv/300,e=1+Math.random()*this.mv/100;Math.random()<.5?(this.cmp*=e,this.cmp>this.cmpR[1]&&(this.cmp=this.cmpR[1]),this.bCost*=1/t):(this.cmp*=1/e,this.cmpthis.dmdR[1]&&(this.dmd=this.dmdR[1]),this.bCost*=t):(this.dmd*=1/n,this.dmd{const e=setInterval(()=>{c(e=>(e<=0&&t.onExpire(),e-200/f*100))},200);return()=>{clearInterval(e)}},[]),t.noPaper?i.a.createElement(l.a,{variant:"determinate",value:n,color:"primary"}):i.a.createElement(a.a,{sx:{p:1,mb:1}},i.a.createElement(l.a,{variant:"determinate",value:n,color:"primary"}))}},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return F}));var a=n(28),r=n(259),i=n(43),o=n(546),s=n(269),l=n(141),c=n(351),f=n(660),u=n(257),m=n(24),h=n(227),d=n(246),p=n(433),g=n(25),y=n(661),b=n(266),E=n(33),v=n(61),k=n(5),_=n(18),w=n(305),S=n(186),x=n(26),C=n(407),L=n(14),O=n(6),M=n(12),T=n(1022),A=n(106),R=n(4),N=n(58),P=n(27);function I(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class F{constructor(t){I(this,"numHosp",0),I(this,"moneyLost",0),I(this,"rank",0),I(this,"maxRank",0),I(this,"skillPoints",0),I(this,"totalSkillPoints",0),I(this,"teamSize",0),I(this,"teamLost",0),I(this,"hpLost",0),I(this,"storedCycles",0),I(this,"randomEventCounter",Object(E.a)(240,600)),I(this,"actionTimeToComplete",0),I(this,"actionTimeCurrent",0),I(this,"actionTimeOverflow",0),I(this,"action",new r.a({type:i.a.Idle})),I(this,"cities",{}),I(this,"city",v.a.CityNames[2]),I(this,"skills",{}),I(this,"skillMultipliers",{}),I(this,"staminaBonus",0),I(this,"maxStamina",0),I(this,"stamina",0),I(this,"contracts",{}),I(this,"operations",{}),I(this,"blackops",{}),I(this,"logging",{general:!0,contracts:!0,ops:!0,blackops:!0,events:!0}),I(this,"automateEnabled",!1),I(this,"automateActionHigh",new r.a({type:i.a.Idle})),I(this,"automateThreshHigh",0),I(this,"automateActionLow",new r.a({type:i.a.Idle})),I(this,"automateThreshLow",0),I(this,"consoleHistory",[]),I(this,"consoleLogs",["Bladeburner Console","Type 'help' to see console commands"]);for(let t=0;tthis.rank)return{error:"Tried to start a Black Operation without the rank requirement"};const n=[];for(const t of Object.keys(s.a))s.a.hasOwnProperty(t)&&n.push(t);n.sort((function(t,e){return s.a[t].reqdRank-s.a[e].reqdRank}));const a=n.indexOf(t.name);return-1===a?{error:`Invalid Black Op: '${name}'`}:a>0&&null==this.blackops[n[a-1]]?{error:`Preceding Black Op must be completed before starting '${t.name}'.`}:{isAvailable:!0,action:e}}startAction(t,e){if(null!=e)switch(this.action=e,this.actionTimeCurrent=0,e.type){case i.a.Idle:this.actionTimeToComplete=0;break;case i.a.Contract:try{const t=this.getActionObject(e);if(null==t)throw new Error("Failed to get Contract Object for: "+e.name);if(t.count<1)return this.resetAction();this.actionTimeToComplete=t.getActionTime(this)}catch(t){Object(b.a)(t)}break;case i.a.Operation:try{const t=this.getActionObject(e);if(null==t)throw new Error("Failed to get Operation Object for: "+e.name);if(t.count<1)return this.resetAction();if("Raid"===e.name&&0===this.getCurrentCity().comms)return this.resetAction();this.actionTimeToComplete=t.getActionTime(this)}catch(t){Object(b.a)(t)}break;case i.a.BlackOp:case i.a.BlackOperation:try{const t=this.canAttemptBlackOp(e);if(!t.isAvailable){this.resetAction(),this.log("Error: "+t.error);break}if(void 0===t.action)throw new Error("action should not be null");this.actionTimeToComplete=t.action.getActionTime(this)}catch(t){Object(b.a)(t)}break;case i.a.Recruitment:this.actionTimeToComplete=this.getRecruitmentTime(t);break;case i.a.Training:case i.a.FieldAnalysis:case i.a["Field Analysis"]:this.actionTimeToComplete=30;break;case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:this.actionTimeToComplete=60;break;default:throw new Error("Invalid Action Type in startAction(Bladeburner,player, ): "+e.type)}}upgradeSkill(t){const e=t.name;if(this.skills[e]?++this.skills[e]:this.skills[e]=1,isNaN(this.skills[e])||this.skills[e]<0)throw new Error("Level of Skill "+e+" is invalid: "+this.skills[e]);this.updateSkillMultipliers()}executeConsoleCommands(t,e){try{this.consoleHistory[this.consoleHistory.length-1]!=e&&(this.consoleHistory.push(e),this.consoleHistory.length>50&&this.consoleHistory.splice(0,1));const n=e.split(";");for(let e=0;e100&&this.consoleLogs.shift())}log(t){this.postToConsole(`[${Object(T.a)()}] ${t}`)}resetAction(){this.action=new r.a({type:i.a.Idle})}clearConsole(){this.consoleLogs.length=0}prestige(){this.resetAction();const t=x.a[R.a.Bladeburners];this.rank>=v.a.RankNeededForFaction&&Object(A.d)(t)}storeCycles(t=0){this.storedCycles+=t}getActionIdFromTypeAndName(t="",e=""){if(""===t||""===e)return null;const n=new r.a,a=t.toLowerCase().trim(),o=e.toLowerCase().trim();switch(a){case"contract":case"contracts":case"contr":return n.type=i.a.Contract,this.contracts.hasOwnProperty(e)?(n.name=e,n):null;case"operation":case"operations":case"op":case"ops":return n.type=i.a.Operation,this.operations.hasOwnProperty(e)?(n.name=e,n):null;case"blackoperation":case"black operation":case"black operations":case"black op":case"black ops":case"blackop":case"blackops":return n.type=i.a.BlackOp,s.a.hasOwnProperty(e)?(n.name=e,n):null;case"general":case"general action":case"gen":break;default:return null}if(a.startsWith("gen")){switch(o){case"training":n.type=i.a.Training,n.name="Training";break;case"recruitment":case"recruit":n.type=i.a.Recruitment,n.name="Recruitment";break;case"field analysis":case"fieldanalysis":n.type=i.a["Field Analysis"],n.name="Field Analysis";break;case"diplomacy":n.type=i.a.Diplomacy,n.name="Diplomacy";break;case"hyperbolic regeneration chamber":n.type=i.a["Hyperbolic Regeneration Chamber"],n.name="Hyperbolic Regeneration Chamber";break;case"incite violence":n.type=i.a["Incite Violence"],n.name="Incite Violence";break;default:return null}return n}return null}executeStartConsoleCommand(t,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");const n=e[2];switch(e[1].toLowerCase()){case"general":case"gen":null!=u.a[n]?(this.action.type=i.a[n],this.action.name=n,this.startAction(t,this.action)):this.postToConsole("Invalid action name specified: "+e[2]);break;case"contract":case"contracts":null!=this.contracts[n]?(this.action.type=i.a.Contract,this.action.name=n,this.startAction(t,this.action)):this.postToConsole("Invalid contract name specified: "+e[2]);break;case"ops":case"op":case"operations":case"operation":null!=this.operations[n]?(this.action.type=i.a.Operation,this.action.name=n,this.startAction(t,this.action)):this.postToConsole("Invalid Operation name specified: "+e[2]);break;case"blackops":case"blackop":case"black operations":case"black operation":null!=s.a[n]?(this.action.type=i.a.BlackOperation,this.action.name=n,this.startAction(t,this.action)):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]")}}executeSkillConsoleCommand(t){switch(t.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"===t[1].toLowerCase()){this.postToConsole("Skills: ");const t=Object.keys(h.a);for(let e=0;e=n.maxLvl?this.postToConsole(`This skill ${n.name} is already at max level (${t}/${n.maxLvl}).`):this.skillPoints>=a?(this.skillPoints-=a,this.upgradeSkill(n),this.log(n.name+" upgraded to Level "+this.skills[e])):this.postToConsole("You do not have enough Skill Points to upgrade this. You need "+Object(m.d)(a,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")}}executeLogConsoleCommand(t){if(t.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");let e=!0;switch(t[1].toLowerCase().includes("d")&&(e=!1),t[2].toLowerCase()){case"general":case"gen":this.logging.general=e,this.log("Logging "+(e?"enabled":"disabled")+" for general actions");break;case"contract":case"contracts":this.logging.contracts=e,this.log("Logging "+(e?"enabled":"disabled")+" for Contracts");break;case"ops":case"op":case"operations":case"operation":this.logging.ops=e,this.log("Logging "+(e?"enabled":"disabled")+" for Operations");break;case"blackops":case"blackop":case"black operations":case"black operation":this.logging.blackops=e,this.log("Logging "+(e?"enabled":"disabled")+" for BlackOps");break;case"event":case"events":this.logging.events=e,this.log("Logging "+(e?"enabled":"disabled")+" for events");break;case"all":this.logging.general=e,this.logging.contracts=e,this.logging.ops=e,this.logging.blackops=e,this.logging.events=e,this.log("Logging "+(e?"enabled":"disabled")+" for everything");break;default:this.postToConsole("Invalid action/event type specified: "+t[2]),this.postToConsole("Examples of valid action/event identifiers are: [general, contracts, ops, blackops, events]")}}executeHelpConsoleCommand(t){if(1===t.length)for(const t of y.a.helpList)this.postToConsole(t);else for(let e=1;e0&&(i*=Object(E.a)(2,4),--a.comms,++n.comms);const o=Math.round(a.pop*i);a.pop-=o,n.pop+=o}triggerPotentialMigration(t,e){(null==e||isNaN(e))&&console.error("Invalid 'chance' parameter passed into Bladeburner.triggerPotentialMigration()"),e>1&&(e/=100),Math.random()=1){let a;a=t?Math.ceil(n/2):Math.floor(n);const r=Object(E.a)(0,a);this.teamSize-=r,this.teamLost+=r,this.logging.ops&&r>0&&this.log("Lost "+Object(m.d)(r,0)+" team members during this "+e.name)}const a=this.getCurrentCity();switch(e.name){case"Investigation":t?a.improvePopulationEstimateByPercentage(.4*this.skillMultipliers.successChanceEstimate):this.triggerPotentialMigration(this.city,.1);break;case"Undercover Operation":t?a.improvePopulationEstimateByPercentage(.8*this.skillMultipliers.successChanceEstimate):this.triggerPotentialMigration(this.city,.15);break;case"Sting Operation":t&&a.changePopulationByPercentage(-.1,{changeEstEqually:!0,nonZero:!0}),a.changeChaosByCount(.1);break;case"Raid":if(t)a.changePopulationByPercentage(-1,{changeEstEqually:!0,nonZero:!0}),--a.comms;else{const t=Object(E.a)(-10,-5)/10;a.changePopulationByPercentage(t,{nonZero:!0,changeEstEqually:!1})}a.changeChaosByPercentage(Object(E.a)(1,5));break;case"Stealth Retirement Operation":t&&a.changePopulationByPercentage(-.5,{changeEstEqually:!0,nonZero:!0}),a.changeChaosByPercentage(Object(E.a)(-3,-1));break;case"Assassination":t&&a.changePopulationByCount(-1,{estChange:-1,estOffset:0}),a.changeChaosByPercentage(Object(E.a)(-5,5));break;default:throw new Error("Invalid Action name in completeOperation: "+this.action.name)}}getActionObject(t){switch(t.type){case i.a.Contract:return this.contracts[t.name];case i.a.Operation:return this.operations[t.name];case i.a.BlackOp:case i.a.BlackOperation:return s.a[t.name];case i.a.Training:return u.a.Training;case i.a["Field Analysis"]:return u.a["Field Analysis"];case i.a.Recruitment:return u.a.Recruitment;case i.a.Diplomacy:return u.a.Diplomacy;case i.a["Hyperbolic Regeneration Chamber"]:return u.a["Hyperbolic Regeneration Chamber"];case i.a["Incite Violence"]:return u.a["Incite Violence"];default:return null}}completeContract(t){if(this.action.type!==i.a.Contract)throw new Error("completeContract() called even though current action is not a Contract");const e=this.getCurrentCity();if(t)switch(this.action.name){case"Tracking":e.improvePopulationEstimateByCount(Object(E.a)(100,1e3));break;case"Bounty Hunter":e.changePopulationByCount(-1,{estChange:-1,estOffset:0}),e.changeChaosByCount(.02);break;case"Retirement":e.changePopulationByCount(-1,{estChange:-1,estOffset:0}),e.changeChaosByCount(.04);break;default:throw new Error("Invalid Action name in completeContract: "+this.action.name)}}completeAction(t,e){switch(this.action.type){case i.a.Contract:case i.a.Operation:try{const t=this.action.type===i.a.Operation,n=this.getActionObject(this.action);if(null==n)throw new Error("Failed to get Contract/Operation Object for: "+this.action.name);const a=n.getDifficulty(),r=Math.pow(a,v.a.DiffMultExponentialFactor)+a/v.a.DiffMultLinearFactor,o=Math.pow(n.rewardFac,n.level-1);if(this.stamina-=v.a.BaseStaminaLoss*r,this.stamina<0&&(this.stamina=0),n.attempt(this)){this.gainActionStats(e,n,!0),++n.successes,--n.count;let a=0;if(t||(a=v.a.ContractBaseMoneyGain*o*this.skillMultipliers.money,e.gainMoney(a,"bladeburner")),t?n.setMaxLevel(v.a.OperationSuccessesPerLevel):n.setMaxLevel(v.a.ContractSuccessesPerLevel),n.rankGain){const r=Object(w.a)(n.rankGain*o*_.a.BladeburnerRank,10);this.changeRank(e,r),t&&this.logging.ops?this.log(n.name+" successfully completed! Gained "+Object(m.d)(r,3)+" rank"):!t&&this.logging.contracts&&this.log(n.name+" contract successfully completed! Gained "+Object(m.d)(r,3)+" rank and "+k.a.formatMoney(a))}t?this.completeOperation(!0):this.completeContract(!0)}else{this.gainActionStats(e,n,!1),++n.failures;let a=0,i=0;if(n.rankLoss&&(a=Object(w.a)(n.rankLoss*o,10),this.changeRank(e,-1*a)),n.hpLoss){i=n.hpLoss*r,i=Math.ceil(Object(w.a)(i,10)),this.hpLost+=i;const t=Object(C.a)(e,i);e.takeDamage(i)&&(++this.numHosp,this.moneyLost+=t)}let s="";a>0&&(s+="Lost "+Object(m.d)(a,3)+" rank. "),i>0&&(s+="Took "+Object(m.d)(i,0)+" damage."),t&&this.logging.ops?this.log(n.name+" failed! "+s):!t&&this.logging.contracts&&this.log(n.name+" contract failed! "+s),t?this.completeOperation(!1):this.completeContract(!1)}n.autoLevel&&(n.level=n.maxLevel),this.startAction(e,this.action)}catch(t){Object(b.a)(t)}break;case i.a.BlackOp:case i.a.BlackOperation:try{const n=this.getActionObject(this.action);if(null==n||!(n instanceof l.a))throw new Error("Failed to get BlackOperation Object for: "+this.action.name);const a=n.getDifficulty(),r=Math.pow(a,v.a.DiffMultExponentialFactor)+a/v.a.DiffMultLinearFactor;this.stamina-=v.a.BaseStaminaLoss*r,this.stamina<0&&(this.stamina=0);const i=n.teamCount;let o;if(n.attempt(this)){this.gainActionStats(e,n,!0),n.count=0,this.blackops[n.name]=!0;let a=0;if(n.rankGain&&(a=Object(w.a)(n.rankGain*_.a.BladeburnerRank,10),this.changeRank(e,a)),o=Math.ceil(i/2),n.name===N.a.OperationDaedalus)return this.resetAction(),t.toBitVerse(!1,!1);this.logging.blackops&&this.log(n.name+" successful! Gained "+Object(m.d)(a,1)+" rank")}else{this.gainActionStats(e,n,!1);let t=0,a=0;if(n.rankLoss&&(t=Object(w.a)(n.rankLoss,10),this.changeRank(e,-1*t)),n.hpLoss){a=n.hpLoss*r,a=Math.ceil(Object(w.a)(a,10));const t=Object(C.a)(e,a);e.takeDamage(a)&&(++this.numHosp,this.moneyLost+=t)}o=Math.floor(i),this.logging.blackops&&this.log(n.name+" failed! Lost "+Object(m.d)(t,1)+" rank and took "+Object(m.d)(a,0)+" damage")}if(this.resetAction(),i>=1){const t=Object(E.a)(1,o);this.teamSize-=t,this.teamLost+=t,this.logging.blackops&&this.log("You lost "+Object(m.d)(t,0)+" team members during "+n.name)}}catch(t){Object(b.a)(t)}break;case i.a.Training:{this.stamina-=.5*v.a.BaseStaminaLoss;const t=30*e.strength_exp_mult,n=30*e.defense_exp_mult,a=30*e.dexterity_exp_mult,r=30*e.agility_exp_mult,i=.04*this.skillMultipliers.stamina;e.gainStrengthExp(t),e.gainDefenseExp(n),e.gainDexterityExp(a),e.gainAgilityExp(r),this.staminaBonus+=i,this.logging.general&&this.log("Training completed. Gained: "+Object(m.d)(t,1)+" str exp, "+Object(m.d)(n,1)+" def exp, "+Object(m.d)(a,1)+" dex exp, "+Object(m.d)(r,1)+" agi exp, "+Object(m.d)(i,3)+" max stamina"),this.startAction(e,this.action);break}case i.a.FieldAnalysis:case i.a["Field Analysis"]:{let t=.04*Math.pow(e.hacking,.3)+.04*Math.pow(e.intelligence,.9)+.02*Math.pow(e.charisma,.3);if(t*=e.bladeburner_analysis_mult,isNaN(t)||t<0)throw new Error("Field Analysis Effectiveness calculated to be NaN or negative");const n=20*e.hacking_exp_mult,a=20*e.charisma_exp_mult,r=.1*_.a.BladeburnerRank;e.gainHackingExp(n),e.gainIntelligenceExp(v.a.BaseIntGain),e.gainCharismaExp(a),this.changeRank(e,r),this.getCurrentCity().improvePopulationEstimateByPercentage(t*this.skillMultipliers.successChanceEstimate),this.logging.general&&this.log(`Field analysis completed. Gained ${Object(m.d)(r,2)} rank, `+Object(m.d)(n,1)+" hacking exp, and "+Object(m.d)(a,1)+" charisma exp"),this.startAction(e,this.action);break}case i.a.Recruitment:{const t=this.getRecruitmentSuccessChance(e);if(Math.random()=a){const t=Math.floor((this.maxRank-a)/v.a.RanksPerSkillPoint+1);this.skillPoints+=t,this.totalSkillPoints+=t}}processAction(t,e,n){if(this.action.type!==i.a.Idle){if(this.actionTimeToComplete<=0)throw new Error(`Invalid actionTimeToComplete value: ${this.actionTimeToComplete}, type; ${this.action.type}`);if(!(this.action instanceof r.a))throw new Error("Bladeburner.action is not an ActionIdentifier Object");return this.actionTimeCurrent+=n+this.actionTimeOverflow,this.actionTimeOverflow=0,this.actionTimeCurrent>=this.actionTimeToComplete?(this.actionTimeOverflow=this.actionTimeCurrent-this.actionTimeToComplete,this.completeAction(t,e)):void 0}}calculateStaminaGainPerSecond(t){const e=t.agility*this.skillMultipliers.effAgi,n=this.maxStamina/v.a.MaxStaminaToGainFactor;return(v.a.StaminaGainPerSecond+n)*Math.pow(e,.17)*(this.skillMultipliers.stamina*t.bladeburner_stamina_gain_mult)}calculateMaxStamina(t){const e=t.agility*this.skillMultipliers.effAgi,n=(Math.pow(e,.8)+this.staminaBonus)*this.skillMultipliers.stamina*t.bladeburner_max_stamina_mult;if(this.maxStamina!==n){const t=this.maxStamina;this.maxStamina=n,this.stamina=this.maxStamina*this.stamina/t}if(isNaN(n))throw new Error("Max Stamina calculated to be NaN in Bladeburner.calculateMaxStamina()")}create(){this.contracts.Tracking=new f.a({name:"Tracking",baseDifficulty:125,difficultyFac:1.02,rewardFac:1.041,rankGain:.3,hpLoss:.5,count:Object(E.a)(25,150),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 f.a({name:"Bounty Hunter",baseDifficulty:250,difficultyFac:1.04,rewardFac:1.085,rankGain:.9,hpLoss:1,count:Object(E.a)(5,150),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 f.a({name:"Retirement",baseDifficulty:200,difficultyFac:1.03,rewardFac:1.065,rankGain:.6,hpLoss:1,count:Object(E.a)(5,150),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 c.a({name:"Investigation",baseDifficulty:400,difficultyFac:1.03,rewardFac:1.07,reqdRank:25,rankGain:2.2,rankLoss:.2,count:Object(E.a)(1,100),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 c.a({name:"Undercover Operation",baseDifficulty:500,difficultyFac:1.04,rewardFac:1.09,reqdRank:100,rankGain:4.4,rankLoss:.4,hpLoss:2,count:Object(E.a)(1,100),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 c.a({name:"Sting Operation",baseDifficulty:650,difficultyFac:1.04,rewardFac:1.095,reqdRank:500,rankGain:5.5,rankLoss:.5,hpLoss:2.5,count:Object(E.a)(1,150),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 c.a({name:"Raid",baseDifficulty:800,difficultyFac:1.045,rewardFac:1.1,reqdRank:3e3,rankGain:55,rankLoss:2.5,hpLoss:50,count:Object(E.a)(1,150),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 c.a({name:"Stealth Retirement Operation",baseDifficulty:1e3,difficultyFac:1.05,rewardFac:1.11,reqdRank:2e4,rankGain:22,rankLoss:2,hpLoss:10,count:Object(E.a)(1,150),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 c.a({name:"Assassination",baseDifficulty:1500,difficultyFac:1.06,rewardFac:1.14,reqdRank:5e4,rankGain:44,rankLoss:4,hpLoss:5,count:Object(E.a)(1,150),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})}process(t,e){if(t.isInitialized){if(t.page()!==g.a.BitVerse&&this.blackops.hasOwnProperty(N.a.OperationDaedalus))return t.toBitVerse(!1,!1);if(!e.hasAugmentation(M.a.BladesSimulacrum,!0)&&e.isWorking){if(this.action.type!==i.a.Idle){let t="Your Bladeburner action was cancelled because you started doing something else.";this.automateEnabled&&(t+="

Your automation was disabled as well. You will have to re-enable it through the Bladeburner console",this.automateEnabled=!1),O.a.SuppressBladeburnerPopup||Object(L.a)(t)}this.resetAction()}if(this.stamina<=0&&(this.log("Your Bladeburner action was cancelled because your stamina hit 0"),this.resetAction()),this.storedCycles>=v.a.CyclesPerSecond){let n=Math.floor(this.storedCycles/v.a.CyclesPerSecond);n=Math.min(n,5),this.storedCycles-=n*v.a.CyclesPerSecond,this.calculateMaxStamina(e),this.stamina+=this.calculateStaminaGainPerSecond(e)*n,this.stamina=Math.min(this.maxStamina,this.stamina);for(const t of Object.values(this.contracts)){const e=o.a[t.name];if(void 0===e)throw new Error(`growth formula for action '${t.name}' is undefined`);t.count+=n*e()/v.a.ActionCountGrowthPeriod}for(const t of Object.values(this.operations)){const e=o.a[t.name];if(void 0===e)throw new Error(`growth formula for action '${t.name}' is undefined`);void 0!==e&&(t.count+=n*e()/v.a.ActionCountGrowthPeriod)}for(const t of v.a.CityNames){const e=this.cities[t];if(!(e instanceof p.a))throw new Error("Invalid City object when processing passive chaos reduction in Bladeburner.process");e.chaos-=1e-4*n,e.chaos=Math.max(0,e.chaos)}this.randomEventCounter-=n,this.randomEventCounter<=0&&(this.randomEvent(),this.randomEventCounter+=Object(E.a)(240,600)),this.processAction(t,e,n),this.automateEnabled&&(this.stamina<=this.automateThreshLow?this.action.name===this.automateActionLow.name&&this.action.type===this.automateActionLow.type||(this.action=new r.a({type:this.automateActionLow.type,name:this.automateActionLow.name}),this.startAction(e,this.action)):this.stamina>=this.automateThreshHigh&&(this.action.name===this.automateActionHigh.name&&this.action.type===this.automateActionHigh.type||(this.action=new r.a({type:this.automateActionHigh.type,name:this.automateActionHigh.name}),this.startAction(e,this.action))))}}}getTypeAndNameFromActionId(t){const e={type:"",name:""},n=Object.keys(i.a);for(let a=0;ar),!1;if(o.type===i.a.BlackOp){const t=this.canAttemptBlackOp(o);if(!t.isAvailable)return a.log("bladeburner.startAction",()=>t.error+""),!1}try{return this.startAction(t,o),a.log("bladeburner.startAction",()=>`Starting bladeburner action with type '${e}' and name '${n}'`),!0}catch(t){return this.resetAction(),a.log("bladeburner.startAction",()=>r),!1}}getActionTimeNetscriptFn(t,e,n,a){const r=`Invalid action: type='${e}' name='${n}'`,o=this.getActionIdFromTypeAndName(e,n);if(null==o)return a.log("bladeburner.getActionTime",()=>r),-1;const s=this.getActionObject(o);if(null==s)return a.log("bladeburner.getActionTime",()=>r),-1;switch(o.type){case i.a.Contract:case i.a.Operation:case i.a.BlackOp:case i.a.BlackOperation:return 1e3*s.getActionTime(this);case i.a.Training:case i.a["Field Analysis"]:case i.a.FieldAnalysis:return 3e4;case i.a.Recruitment:return 1e3*this.getRecruitmentTime(t);case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:return 6e4;default:return a.log("bladeburner.getActionTime",()=>r),-1}}getActionEstimatedSuccessChanceNetscriptFn(t,e,n,a){const r=`Invalid action: type='${e}' name='${n}'`,o=this.getActionIdFromTypeAndName(e,n);if(null==o)return a.log("bladeburner.getActionEstimatedSuccessChance",()=>r),[-1,-1];const s=this.getActionObject(o);if(null==s)return a.log("bladeburner.getActionEstimatedSuccessChance",()=>r),[-1,-1];switch(o.type){case i.a.Contract:case i.a.Operation:case i.a.BlackOp:case i.a.BlackOperation:return s.getEstSuccessChance(this);case i.a.Training:case i.a["Field Analysis"]:case i.a.FieldAnalysis:case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:return[1,1];case i.a.Recruitment:{const e=this.getRecruitmentSuccessChance(t);return[e,e]}default:return a.log("bladeburner.getActionEstimatedSuccessChance",()=>r),[-1,-1]}}getActionCountRemainingNetscriptFn(t,e,n){const a=`Invalid action: type='${t}' name='${e}'`,r=this.getActionIdFromTypeAndName(t,e);if(null==r)return n.log("bladeburner.getActionCountRemaining",()=>a),-1;const o=this.getActionObject(r);if(null==o)return n.log("bladeburner.getActionCountRemaining",()=>a),-1;switch(r.type){case i.a.Contract:case i.a.Operation:return Math.floor(o.count);case i.a.BlackOp:case i.a.BlackOperation:return null!=this.blackops[e]?0:1;case i.a.Training:case i.a.Recruitment:case i.a["Field Analysis"]:case i.a.FieldAnalysis:case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:return 1/0;default:return n.log("bladeburner.getActionCountRemaining",()=>a),-1}}getSkillLevelNetscriptFn(t,e){return""!==t&&h.a.hasOwnProperty(t)?null==this.skills[t]?0:this.skills[t]:(e.log("bladeburner.getSkillLevel",()=>`Invalid skill: '${t}'`),-1)}getSkillUpgradeCostNetscriptFn(t,e){if(""===t||!h.a.hasOwnProperty(t))return e.log("bladeburner.getSkillUpgradeCost",()=>`Invalid skill: '${t}'`),-1;const n=h.a[t];return null==this.skills[t]?n.calculateCost(0):n.calculateCost(this.skills[t])}upgradeSkillNetscriptFn(t,e){const n=`Invalid skill: '${t}'`;if(!h.a.hasOwnProperty(t))return e.log("bladeburner.upgradeSkill",()=>n),!1;const a=h.a[t];let r=0;this.skills[t]&&!isNaN(this.skills[t])&&(r=this.skills[t]);const i=a.calculateCost(r);return a.maxLvl&&r>=a.maxLvl?(e.log("bladeburner.upgradeSkill",()=>`Skill '${t}' is already maxed.`),!1):this.skillPoints`You do not have enough skill points to upgrade ${t} (You have ${this.skillPoints}, you need ${i})`),!1):(this.skillPoints-=i,this.upgradeSkill(a),e.log("bladeburner.upgradeSkill",()=>`'${t}' upgraded to level ${this.skills[t]}`),!0)}getTeamSizeNetscriptFn(t,e,n){if(""===t&&""===e)return this.teamSize;const a=`Invalid action: type='${t}' name='${e}'`,r=this.getActionIdFromTypeAndName(t,e);if(null==r)return n.log("bladeburner.getTeamSize",()=>a),-1;const o=this.getActionObject(r);return null==o?(n.log("bladeburner.getTeamSize",()=>a),-1):r.type===i.a.Operation||r.type===i.a.BlackOp||r.type===i.a.BlackOperation?o.teamCount:0}setTeamSizeNetscriptFn(t,e,n,a){const r=`Invalid action: type='${t}' name='${e}'`,o=this.getActionIdFromTypeAndName(t,e);if(null==o)return a.log("bladeburner.setTeamSize",()=>r),-1;if(o.type!==i.a.Operation&&o.type!==i.a.BlackOp&&o.type!==i.a.BlackOperation)return a.log("bladeburner.setTeamSize",()=>"Only valid for 'Operations' and 'BlackOps'"),-1;const s=this.getActionObject(o);if(null==s)return a.log("bladeburner.setTeamSize",()=>r),-1;let l=Math.round(n);return isNaN(l)||l<0?(a.log("bladeburner.setTeamSize",()=>"Invalid size: "+n),-1):(this.teamSize`Team size for '${e}' set to ${l}.`),l)}joinBladeburnerFactionNetscriptFn(t){const e=x.a[R.a.Bladeburners];return!!e.isMember||(this.rank>=v.a.RankNeededForFaction?(Object(A.d)(e),t.log("bladeburner.joinBladeburnerFaction",()=>`Joined ${R.a.Bladeburners} faction.`),!0):(t.log("bladeburner.joinBladeburnerFaction",()=>`You do not have the required rank (${this.rank}/${v.a.RankNeededForFaction}).`),!1))}toJSON(){return Object(a.b)("Bladeburner",this)}static fromJSON(t){return Object(a.a)(F,t.data)}}a.c.constructors.Bladeburner=F},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return c}));var a=n(18),r=n(41);function i(t,e,n,i){return t*r.a.MoneyGainPerLevel*Math.pow(1.035,e-1)*((n+5)/6)*i*a.a.HacknetNodeMoney}function o(t,e=1,n=1){const a=Math.round(e);if(isNaN(a)||a<1)return 0;if(t>=r.a.MaxLevel)return 1/0;const i=r.a.UpgradeLevelMult;let o=0,s=t;for(let t=0;t=r.a.MaxRam)return 1/0;let i=0,o=Math.round(Math.log2(t)),s=t;for(let t=0;t=r.a.MaxCores)return 1/0;const i=r.a.CoreBaseCost,o=r.a.UpgradeCoreMult;let s=0,l=t;for(let t=0;t1e10;return e&&Object(r.a)(a.createElement(a.Fragment,null,"Alright cheater get out of here. You're not allowed here anymore.")),e}class s extends a.Component{win(t,e){t.gainMoney(e,"casino")}reachedLimit(t){const e=t.getCasinoWinnings()>1e10;return e&&Object(r.a)(a.createElement(a.Fragment,null,"Alright cheater get out of here. You're not allowed here anymore.")),e}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const a=!1,r=!0,i={O:[[r,r],[r,r]],I:[[r,r,r,r]],L:[[a,a,r],[r,r,r]],J:[[r,a,a],[r,r,r]],S:[[a,r,r],[r,r,a]],Z:[[r,r,a],[a,r,r]],T:[[r,r,r],[a,r,a]]}},,,,,function(t,e,n){"use strict";function a(t,e,n){function a(t,e,a){function r(t,e,n){return(1-n)*t+n*e}for(const i of Object.keys(t))n[i]=r(t[i],e[i],a);return t}return e<0?a(t.Trivial,t.Trivial,0):e>=0&&e<1?a(t.Trivial,t.Normal,e):e>=1&&e<2?a(t.Normal,t.Hard,e-1):e>=2&&e<3?a(t.Hard,t.Impossible,e-2):a(t.Impossible,t.Impossible,0)}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(0),r=n.n(a);function i(t){return Object(a.useEffect)(()=>{function e(e){if(!e.isTrusted)return;t.onKeyDown.bind(this)(e)}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),r.a.createElement(r.a.Fragment,null)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n(5),i=n(121),o=n(146);const s=Object(i.a)(t=>Object(o.a)({money:{color:t.colors.money}}));function l({hashes:t}){const e=s();return a.createElement("span",{className:e.money},"number"==typeof t?r.a.formatHashes(t):t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(10),r=n(212),i=n(41),o=n(14),s=n(28),l=n(384);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class f{constructor(t="",e=1){c(this,"cores",1),c(this,"level",1),c(this,"moneyGainRatePerSecond",0),c(this,"onlineTimeSeconds",0),c(this,"ram",1),c(this,"totalMoneyGenerated",0),this.name=t,this.updateMoneyGainRate(e)}calculateCoreUpgradeCost(t=1,e){return Object(r.a)(this.cores,t,e)}calculateLevelUpgradeCost(t=1,e){return Object(r.b)(this.level,t,e)}calculateRamUpgradeCost(t=1,e){return Object(r.e)(this.ram,t,e)}process(t=1){const e=t*a.a.MilliPerCycle/1e3;let n=this.moneyGainRatePerSecond*e;return isNaN(n)&&(console.error(`Hacknet Node ${this.name} calculated earnings of NaN`),n=0),this.totalMoneyGenerated+=n,this.onlineTimeSeconds+=e,n}upgradeCore(t=1,e){this.cores=Math.min(i.a.MaxCores,Math.round(this.cores+t)),this.updateMoneyGainRate(e)}upgradeLevel(t=1,e){this.level=Math.min(i.a.MaxLevel,Math.round(this.level+t)),this.updateMoneyGainRate(e)}upgradeRam(t=1,e){for(let e=0;eu())return 1/0;const n=Math.max(0,Math.log(e)/Math.log(2)-6);return e*o.a.BaseCostFor1GBOfRamServer*i.a.PurchasedServerCost*Math.pow(i.a.PurchasedServerSoftcap,n)}function f(){return Math.round(o.a.PurchasedServerLimit*i.a.PurchasedServerLimit)}function u(){const t=Math.round(o.a.PurchasedServerMaxRam*i.a.PurchasedServerMaxRam);return 1<<31-Math.clz32(t)}function m(t,e,n,i){if(!i.canAfford(n))return void Object(s.a)("You don't have enough money to purchase this server!");if(i.purchasedServers.length>=f())return void Object(s.a)("You have reached the maximum limit of "+f()+" servers. You cannot purchase any more. You can delete some of your purchased servers using the deleteServer() Netscript function in a script");if(""==t)return void Object(s.a)("You must enter a hostname for your new server!");const o=Object(r.g)({adminRights:!0,hostname:t,ip:Object(a.e)(),isConnectedTo:!1,maxRam:e,organizationName:"",purchasedByPlayer:!0});Object(a.a)(o),i.purchasedServers.push(o.hostname);const l=i.getHomeComputer();l.serversOnNetwork.push(o.hostname),o.serversOnNetwork.push(l.hostname),i.loseMoney(n,"servers"),Object(s.a)("Server successfully purchased with hostname "+o.hostname)}function h(t){const e=t.getUpgradeHomeRamCost();if(!t.canAfford(e))return void Object(s.a)("You do not have enough money to purchase additional RAM for your home computer");const n=t.getHomeComputer();n.maxRam>=o.a.HomeComputerMaxRam?Object(s.a)("You cannot upgrade your home computer RAM because it is at its maximum possible value"):(n.maxRam*=2,t.loseMoney(e,"servers"))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return l}));var a=n(14),r=n(28),i=n(83);class o{get filename(){return this.fn}set filename(t){this.fn=t}constructor(t="",e=""){this.fn=(t.endsWith(".txt")?t:t+".txt").replace(/\s+/g,""),this.text=e}append(t){this.text+=t}download(){const t=this.fn,e=new Blob([this.text],{type:"text/plain"}),n=window.navigator;if(n.msSaveOrOpenBlob)n.msSaveOrOpenBlob(e,t);else{const t=document.createElement("a"),n=URL.createObjectURL(e);t.href=n,t.download=this.fn,document.body.appendChild(t),t.click(),setTimeout(()=>{document.body.removeChild(t),window.URL.revokeObjectURL(n)},0)}}read(){return this.text}show(){Object(a.a)(`${this.fn}

${this.text}`)}toJSON(){return Object(r.b)("TextFile",this)}write(t){this.text=t}static fromJSON(t){return Object(r.a)(o,t.data)}}function s(t,e){let n=t.endsWith(".txt")?t:t+".txt";Object(i.h)(n)&&(n=Object(i.k)(n));for(const t of e.textFiles)if(t.fn===n)return t;return null}function l(t,e,n){if(null!==s(t,n))return void console.error(`A file named "${t}" already exists on server ${n.hostname}.`);const a=new o(t,e);return n.textFiles.push(a),a}r.c.constructors.TextFile=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(246),r=n(139);const i={};i[r.a.BladesIntuition]=new a.a({name:r.a.BladesIntuition,desc:"Each level of this skill increases your success chance for all Contracts, Operations, and BlackOps by 3%",baseCost:3,costInc:2.1,successChanceAll:3}),i[r.a.Cloak]=new a.a({name:r.a.Cloak,desc:"Each level of this skill increases your success chance in stealth-related Contracts, Operations, and BlackOps by 5.5%",baseCost:2,costInc:1.1,successChanceStealth:5.5}),i[r.a.ShortCircuit]=new a.a({name:r.a.ShortCircuit,desc:"Each level of this skill increases your success chance in Contracts, Operations, and BlackOps that involve retirement by 5.5%",baseCost:2,costInc:2.1,successChanceKill:5.5}),i[r.a.DigitalObserver]=new a.a({name:r.a.DigitalObserver,desc:"Each level of this skill increases your success chance in all Operations and BlackOps by 4%",baseCost:2,costInc:2.1,successChanceOperation:4}),i[r.a.Tracer]=new a.a({name:r.a.Tracer,desc:"Each level of this skill increases your success chance in all Contracts by 4%",baseCost:2,costInc:2.1,successChanceContract:4}),i[r.a.Overclock]=new a.a({name:r.a.Overclock,desc:"Each level of this skill decreases the time it takes to attempt a Contract, Operation, and BlackOp by 1% (Max Level: 90)",baseCost:3,costInc:1.4,maxLvl:90,actionTime:1}),i[r.a.Reaper]=new a.a({name:r.a.Reaper,desc:"Each level of this skill increases your effective combat stats for Bladeburner actions by 2%",baseCost:2,costInc:2.1,effStr:2,effDef:2,effDex:2,effAgi:2}),i[r.a.EvasiveSystem]=new a.a({name:r.a.EvasiveSystem,desc:"Each level of this skill increases your effective dexterity and agility for Bladeburner actions by 4%",baseCost:2,costInc:2.1,effDex:4,effAgi:4}),i[r.a.Datamancer]=new a.a({name:r.a.Datamancer,desc:"Each level of this skill increases your effectiveness in synthoid population analysis and investigation by 5%. This affects all actions that can potentially increase the accuracy of your synthoid population/community estimates.",baseCost:3,costInc:1,successChanceEstimate:5}),i[r.a.CybersEdge]=new a.a({name:r.a.CybersEdge,desc:"Each level of this skill increases your max stamina by 2%",baseCost:1,costInc:3,stamina:2}),i[r.a.HandsOfMidas]=new a.a({name:r.a.HandsOfMidas,desc:"Each level of this skill increases the amount of money you receive from Contracts by 10%",baseCost:2,costInc:2.5,money:10}),i[r.a.Hyperdrive]=new a.a({name:r.a.Hyperdrive,desc:"Each level of this skill increases the experience earned from Contracts, Operations, and BlackOps by 10%",baseCost:1,costInc:2.5,expGain:10})},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return c}));var a=n(153),r=n(76),i=n(10);function o(t,e,n){if(isNaN(e)||e<=0||!(t instanceof a.a))return null;e=Math.min(e,t.maxShares);return n===r.a.Long?e*t.getAskPrice()+i.a.StockMarketCommission:e*t.getBidPrice()+i.a.StockMarketCommission}function s(t,e,n){if(isNaN(e)||e<=0||!(t instanceof a.a))return null;e=Math.min(e,t.maxShares);if(n===r.a.Long)return e*t.getBidPrice()-i.a.StockMarketCommission;return e*t.playerAvgShortPx+((t.playerAvgShortPx-t.getAskPrice())*e-i.a.StockMarketCommission)}function l(t,e){if(isNaN(e)||e<=0||!(t instanceof a.a))return;e=Math.min(e,t.maxShares);const n=t.shareTxUntilMovement;if(e<=n)return t.shareTxUntilMovement-=e,void(t.shareTxUntilMovement<=0&&(t.shareTxUntilMovement=t.shareTxForMovement,t.influenceForecast(.006),t.influenceForecastForecast(t.mv/100*.006)));const r=e-n;let i=1+Math.ceil(r/t.shareTxForMovement);t.shareTxUntilMovement=t.shareTxForMovement-(e-t.shareTxUntilMovement)%t.shareTxForMovement,(t.shareTxUntilMovement===t.shareTxForMovement||t.shareTxUntilMovement<=0)&&(++i,t.shareTxUntilMovement=t.shareTxForMovement);const o=.006*(i-1),s=o*(t.mv/100);t.influenceForecast(o),t.influenceForecastForecast(s)}function c(t,e,n){if(!(t instanceof a.a))return 0;const o=e===r.a.Long,s=n-i.a.StockMarketCommission,l=o?t.getAskPrice():t.getBidPrice();return Math.floor(s/l)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(184),r=n(1036);const i={};a.b.forEach(t=>{i[t.name]=new r.a(t.name,t.cost,t.upgType,t.mults)})},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return l}));var a=n(18),r=n(10);function i(){return r.a.MarketData4SCost*a.a.FourSigmaMarketDataCost}function o(){return r.a.MarketDataTixApi4SCost*a.a.FourSigmaMarketDataApiCost}function s(){return r.a.WSEAccountCost}function l(){return r.a.TIXAPICost}},,,,,function(t,e,n){"use strict";n.d(e,"c",(function(){return f})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return m}));var a=n(10),r=n(2),i=n(46),o=n(135),s=n(22),l=n(5),c=n(322);function f(t){const e=((new Date).getTime()-r.a.lastUpdate)/1e3;let n=t.onlineRunningTime/14400;n>=1&&(n=1);for(const n of Object.keys(t.dataMap))if(t.dataMap.hasOwnProperty(n)){if(0==t.dataMap[n][2]||null==t.dataMap[n][2])continue;const a=Object(s.d)(n);if(null==a)continue;const c=Math.round(.5*t.dataMap[n][2]/t.onlineRunningTime*e);t.log(`Called on ${a.hostname} ${c} times while offline`);const f=Object(s.d)(t.server);if(null===f)throw new Error("getServer of null key?");if(!(a instanceof i.a))throw new Error("trying to grow a non-normal server");const u=Object(o.f)(a,c,r.a,f.cpuCores);t.log(`'${a.hostname}' grown by ${l.a.format(100*u-100,"0.000000%")} while offline`)}const c=n*(t.onlineExpGained/t.onlineRunningTime)*e;r.a.gainHackingExp(c),t.offlineRunningTime+=e,t.offlineExpGained+=c;for(const n of Object.keys(t.dataMap))if(t.dataMap.hasOwnProperty(n)){if(0==t.dataMap[n][3]||null==t.dataMap[n][3])continue;const r=Object(s.d)(n);if(null==r)continue;if(!(r instanceof i.a))throw new Error("trying to weaken a non-normal server");const o=Object(s.d)(t.server);if(null===o)throw new Error("getServer of null key?");const l=Math.round(.5*t.dataMap[n][3]/t.onlineRunningTime*e);t.log(`Called weaken() on ${r.hostname} ${l} times while offline`);const c=1+(o.cpuCores-1)/16;r.weaken(a.a.ServerWeakenAmount*l*c)}}function u(t,e,n){for(let a=0;a{i[t.name]=new r.a(t.name,t.desc,t.isHacking,t.isCombat,t.params)})},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(200),r=n(180),i=n(28),o=n(266);function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class l{constructor(t={}){var e;s(this,"level",1),s(this,"sizeUsed",0),s(this,"smartSupplyEnabled",!1),s(this,"smartSupplyUseLeftovers",{}),s(this,"smartSupplyStore",0),this.loc=t.loc?t.loc:"",this.size=t.size?t.size:0,this.materials={Water:new a.a({name:"Water"}),Energy:new a.a({name:"Energy"}),Food:new a.a({name:"Food"}),Plants:new a.a({name:"Plants"}),Metal:new a.a({name:"Metal"}),Hardware:new a.a({name:"Hardware"}),Chemicals:new a.a({name:"Chemicals"}),Drugs:new a.a({name:"Drugs"}),Robots:new a.a({name:"Robots"}),AICores:new a.a({name:"AI Cores"}),RealEstate:new a.a({name:"Real Estate"})},this.smartSupplyUseLeftovers={Water:!0,Energy:!0,Food:!0,Plants:!0,Metal:!0,Hardware:!0,Chemicals:!0,Drugs:!0,Robots:!0,AICores:!0,RealEstate:!0},t.corp&&t.industry&&this.updateSize(t.corp,t.industry),null!==(e=t.corp)&&void 0!==e&&e.unlockUpgrades[1]&&(this.smartSupplyEnabled=!0)}updateMaterialSizeUsed(){this.sizeUsed=0;for(const t of Object.keys(this.materials)){const e=this.materials[t];r.a.hasOwnProperty(t)&&(this.sizeUsed+=e.qty*r.a[t])}this.sizeUsed>this.size&&console.warn("Warehouse size used greater than capacity, something went wrong")}updateSize(t,e){try{this.size=100*this.level*t.getStorageMultiplier()*e.getStorageMultiplier()}catch(t){Object(o.a)(t)}}toJSON(){return Object(i.b)("Warehouse",this)}static fromJSON(t){return Object(i.a)(l,t.data)}}i.c.constructors.Warehouse=l},function(t,e,n){"use strict";n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return c}));var a=n(10),r=n(18),i=n(421);function o(t){let e=1+t.favor/100;return isNaN(e)&&(e=1),e*r.a.FactionWorkRepGain}function s(t,e){return(t.hacking+t.intelligence/3)/a.a.MaxSkillLevel*t.faction_rep_mult*t.getIntelligenceBonus(1)*o(e)*Object(i.a)()}function l(t,e){return.9*(t.strength+t.defense+t.dexterity+t.agility+(t.hacking+t.intelligence)*Object(i.a)())/a.a.MaxSkillLevel/4.5*t.faction_rep_mult*o(e)*t.getIntelligenceBonus(1)}function c(t,e){return.9*(t.strength+t.defense+t.dexterity+t.agility+t.charisma+(t.hacking+t.intelligence)*Object(i.a)())/a.a.MaxSkillLevel/5.5*t.faction_rep_mult*o(e)*t.getIntelligenceBonus(1)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return h})),n.d(e,"b",(function(){return d}));var a=n(228),r=n(76),i=n(10),o=n(2),s=n(5),l=n(20),c=n(14),f=n(0);function u(t,e,n=null,u={}){if((e=Math.round(e))<=0)return!1;if(null==t||isNaN(e))return n?n.log("stock.buy",()=>`Invalid arguments: stock='${t}' shares='${e}'`):!0!==u.suppressDialog&&Object(c.a)("Failed to buy stock. This may be a bug, contact developer"),!1;const m=Object(a.b)(t,e,r.a.Long);if(null==m)return!1;if(o.a.money`You do not have enough money to purchase this position. You need ${s.a.formatMoney(m)}.`):!0!==u.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"You do not have enough money to purchase this. You need ",f.createElement(l.a,{money:m}))),!1;if(e+t.playerShares+t.playerShortShares>t.maxShares)return n?n.log("stock.buy",()=>`Purchasing '${e+t.playerShares+t.playerShortShares}' shares would exceed ${t.symbol}'s maximum (${t.maxShares}) number of shares`):!0!==u.suppressDialog&&Object(c.a)(`You cannot purchase this many shares. ${t.symbol} has a maximum of ${s.a.formatShares(t.maxShares)} shares.`),!1;const h=t.playerShares*t.playerAvgPx;o.a.loseMoney(m,"stock");const d=h+m-i.a.StockMarketCommission;if(t.playerShares=Math.round(t.playerShares+e),t.playerAvgPx=d/t.playerShares,Object(a.d)(t,e),null!=u.rerenderFn&&"function"==typeof u.rerenderFn&&u.rerenderFn(),n){const a=`Bought ${s.a.formatShares(e)} shares of ${t.symbol} for ${s.a.formatMoney(m)}. Paid ${s.a.formatMoney(i.a.StockMarketCommission)} in commission fees.`;n.log("stock.buy",()=>a)}else!0!==u.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"Bought ",s.a.formatShares(e)," shares of ",t.symbol," for ",f.createElement(l.a,{money:m}),". Paid"," ",f.createElement(l.a,{money:i.a.StockMarketCommission})," in commission fees."));return!0}function m(t,e,n=null,i={}){if(null==t||e<0||isNaN(e))return n?n.log("stock.sell",()=>`Invalid arguments: stock='${t}' shares='${e}'`):!0!==i.suppressDialog&&Object(c.a)("Failed to sell stock. This is probably due to an invalid quantity. Otherwise, this may be a bug, contact developer"),!1;if((e=Math.round(e))>t.playerShares&&(e=t.playerShares),0===e)return!1;const u=Object(a.c)(t,e,r.a.Long);if(null==u)return!1;let m=u-t.playerAvgPx*e;if(isNaN(m)&&(m=0),o.a.gainMoney(u,"stock"),n&&(n.scriptRef.onlineMoneyMade+=m,o.a.scriptProdSinceLastAug+=m),t.playerShares=Math.round(t.playerShares-e),0===t.playerShares&&(t.playerAvgPx=0),Object(a.d)(t,e),null!=i.rerenderFn&&"function"==typeof i.rerenderFn&&i.rerenderFn(),n){const a=`Sold ${s.a.formatShares(e)} shares of ${t.symbol}. After commissions, you gained a total of ${s.a.formatMoney(u)}.`;n.log("stock.sell",()=>a)}else!0!==i.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"Sold ",s.a.formatShares(e)," shares of ",t.symbol,". After commissions, you gained a total of"," ",f.createElement(l.a,{money:u}),"."));return!0}function h(t,e,n=null,u={}){if((e=Math.round(e))<=0)return!1;if(null==t||isNaN(e))return n?n.log("stock.short",()=>`Invalid arguments: stock='${t}' shares='${e}'`):!0!==u.suppressDialog&&Object(c.a)("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;const m=Object(a.b)(t,e,r.a.Short);if(null==m)return!1;if(o.a.money"You do not have enough money to purchase this short position. You need "+s.a.formatMoney(m)):!0!==u.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"You do not have enough money to purchase this short position. You need ",f.createElement(l.a,{money:m}))),!1;if(e+t.playerShares+t.playerShortShares>t.maxShares)return n?n.log("stock.short",()=>`This '${e+t.playerShares+t.playerShortShares}' short shares would exceed ${t.symbol}'s maximum (${t.maxShares}) number of shares.`):!0!==u.suppressDialog&&Object(c.a)(`You cannot purchase this many shares. ${t.symbol} has a maximum of ${t.maxShares} shares.`),!1;const h=t.playerShortShares*t.playerAvgShortPx;o.a.loseMoney(m,"stock");const d=h+m-i.a.StockMarketCommission;if(t.playerShortShares=Math.round(t.playerShortShares+e),t.playerAvgShortPx=d/t.playerShortShares,Object(a.d)(t,e),null!=u.rerenderFn&&"function"==typeof u.rerenderFn&&u.rerenderFn(),n){const a=`Bought a short position of ${s.a.formatShares(e)} shares of ${t.symbol} for ${s.a.formatMoney(m)}. Paid ${s.a.formatMoney(i.a.StockMarketCommission)} in commission fees.`;n.log("stock.short",()=>a)}else u.suppressDialog||Object(c.a)(f.createElement(f.Fragment,null,"Bought a short position of ",s.a.formatShares(e)," shares of ",t.symbol," for"," ",f.createElement(l.a,{money:m}),". Paid ",f.createElement(l.a,{money:i.a.StockMarketCommission})," in commission fees."));return!0}function d(t,e,n=null,i={}){if(null==t||isNaN(e)||e<0)return n?n.log("stock.sellShort",()=>`Invalid arguments: stock='${t}' shares='${e}'`):i.suppressDialog||Object(c.a)("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((e=Math.round(e))>t.playerShortShares&&(e=t.playerShortShares),0===e)return!1;const u=e*t.playerAvgShortPx,m=Object(a.c)(t,e,r.a.Short);if(null==m||isNaN(m)||null==u)return n?n.log("stock.sellShort",()=>"Failed to sell short position in a stock. This is probably either due to invalid arguments, or a bug"):i.suppressDialog||Object(c.a)("Failed to sell short position in a stock. This is probably either due to invalid arguments, or a bug"),!1;let h=m-u;if(isNaN(h)&&(h=0),o.a.gainMoney(m,"stock"),n&&(n.scriptRef.onlineMoneyMade+=h,o.a.scriptProdSinceLastAug+=h),t.playerShortShares=Math.round(t.playerShortShares-e),0===t.playerShortShares&&(t.playerAvgShortPx=0),Object(a.d)(t,e),null!=i.rerenderFn&&"function"==typeof i.rerenderFn&&i.rerenderFn(),n){const a=`Sold your short position of ${s.a.formatShares(e)} shares of ${t.symbol}. After commissions, you gained a total of `+s.a.formatMoney(m);n.log("stock.sellShort",()=>a)}else i.suppressDialog||Object(c.a)(f.createElement(f.Fragment,null,"Sold your short position of ",s.a.formatShares(e)," shares of ",t.symbol,". After commissions, you gained a total of ",f.createElement(l.a,{money:m})));return!0}},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return c})),n.d(e,"d",(function(){return f}));var a=n(0),r=n.n(a),i=n(6),o=n(375);class s{constructor(t,e){i.a.TimestampsFormat&&(t="["+Object(o.a)(i.a.TimestampsFormat)+"] "+t),this.text=t,this.color=e}}class l{constructor(t){i.a.TimestampsFormat&&(t=r.a.createElement(r.a.Fragment,null,"[",Object(o.a)(i.a.TimestampsFormat),"] ",t)),this.raw=t}}class c{constructor(t,e){i.a.TimestampsFormat&&(t="["+Object(o.a)(i.a.TimestampsFormat)+"] "+t),this.hostname=e,this.dashes=t}}class f{constructor(t,e,n){this.time=t,this.timeLeft=t,this.action=e,this.server=n}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(18);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class i{constructor(t={name:"foo",desc:"foo"}){if(r(this,"baseCost",1),r(this,"costInc",1),r(this,"maxLvl",0),r(this,"successChanceAll",0),r(this,"successChanceStealth",0),r(this,"successChanceKill",0),r(this,"successChanceContract",0),r(this,"successChanceOperation",0),r(this,"successChanceEstimate",0),r(this,"actionTime",0),r(this,"effHack",0),r(this,"effStr",0),r(this,"effDef",0),r(this,"effDex",0),r(this,"effAgi",0),r(this,"effCha",0),r(this,"stamina",0),r(this,"money",0),r(this,"expGain",0),!t.name)throw new Error("Failed to initialize Bladeburner Skill. No name was specified in ctor");if(!t.desc)throw new Error("Failed to initialize Bladeburner Skills. No desc was specified in ctor");this.name=t.name,this.desc=t.desc,this.baseCost=t.baseCost?t.baseCost:1,this.costInc=t.costInc?t.costInc:1,t.maxLvl&&(this.maxLvl=t.maxLvl),t.successChanceAll&&(this.successChanceAll=t.successChanceAll),t.successChanceStealth&&(this.successChanceStealth=t.successChanceStealth),t.successChanceKill&&(this.successChanceKill=t.successChanceKill),t.successChanceContract&&(this.successChanceContract=t.successChanceContract),t.successChanceOperation&&(this.successChanceOperation=t.successChanceOperation),t.successChanceEstimate&&(this.successChanceEstimate=t.successChanceEstimate),t.actionTime&&(this.actionTime=t.actionTime),t.effHack&&(this.effHack=t.effHack),t.effStr&&(this.effStr=t.effStr),t.effDef&&(this.effDef=t.effDef),t.effDex&&(this.effDex=t.effDex),t.effAgi&&(this.effAgi=t.effAgi),t.effCha&&(this.effCha=t.effCha),t.stamina&&(this.stamina=t.stamina),t.money&&(this.money=t.money),t.expGain&&(this.expGain=t.expGain)}calculateCost(t){return Math.floor((this.baseCost+t*this.costInc)*a.a.BladeburnerSkillCost)}getMultiplier(t){return"successChanceAll"===t?this.successChanceAll:"successChanceStealth"===t?this.successChanceStealth:"successChanceKill"===t?this.successChanceKill:"successChanceContract"===t?this.successChanceContract:"successChanceOperation"===t?this.successChanceOperation:"successChanceEstimate"===t?this.successChanceEstimate:"actionTime"===t?this.actionTime:"effHack"===t?this.effHack:"effStr"===t?this.effStr:"effDef"===t?this.effDef:"effDex"===t?this.effDex:"effAgi"===t?this.effAgi:"effCha"===t?this.effCha:"stamina"===t?this.stamina:"money"===t?this.money:"expGain"===t?this.expGain:0}}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(38),o=n(8),s=n(1);function l(t){return r.a.createElement(i.a,{open:t.open,onClose:t.onClose},r.a.createElement(r.a.Fragment,null,r.a.createElement(s.a,null,t.confirmationText),r.a.createElement(o.a,{onClick:()=>{t.onConfirm()}},"Confirm"),t.additionalButton&&r.a.createElement(r.a.Fragment,null,t.additionalButton)))}},function(t,e,n){"use strict";function a(t){const e=Object.assign({},{progress:0,totalTicks:20},t);e.progress=Math.max(Math.min(e.progress,1),0);const n=Math.max(Math.floor(e.progress/(1/e.totalTicks)),1),a=Math.max(e.totalTicks-n,0);return`[${"|".repeat(n)}${"-".repeat(a)}]`}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";function a(){try{return"f5efdfa8"}catch(t){}return"DEV"}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(526),r=n(28),i=n(527);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let s=0;class l{constructor(t=null,e="",n="",a="",r=[]){o(this,"code",""),o(this,"filename",""),o(this,"url",""),o(this,"module",""),o(this,"dependencies",[]),o(this,"dependents",[]),o(this,"ramUsage",0),o(this,"server",""),this.filename=e,this.code=n,this.ramUsage=0,this.server=a,this.module="",this.moduleSequenceNumber=++s,""!==this.code&&null!==t&&this.updateRamUsage(t,r)}download(){const t=this.filename,e=new Blob([this.code],{type:"text/plain"}),n=window.navigator;if(n.msSaveOrOpenBlob)n.msSaveOrOpenBlob(e,t);else{const n=document.createElement("a"),a=URL.createObjectURL(e);n.href=a,n.download=t,document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(a)}),0)}}markUpdated(){this.module="",this.moduleSequenceNumber=++s}saveScript(t,e,n,a,r){this.code=l.formatCode(n),this.filename=e,this.server=a,this.updateRamUsage(t,r),this.markUpdated();for(const t of this.dependents){const[e]=r.filter(e=>e.filename===t.filename&&e.server==t.server);null!==e&&e.markUpdated()}}async updateRamUsage(t,e){const n=await Object(a.a)(t,this.code,e);n.cost>0&&(this.ramUsage=Object(i.a)(n.cost),this.ramUsageEntries=n.entries),this.markUpdated()}imports(){return[]}toJSON(){return Object(r.b)("Script",this)}static fromJSON(t){const e=Object(r.a)(l,t.data);return e.url="",e.dependents=[],e}static formatCode(t){return t.replace(/^\s+|\s+$/g,"")}}r.c.constructors.Script=l},,function(t,e,n){"use strict";function a(t){const e=[];for(let n=0;n13)throw new Error("Card instantiated with improper value: "+t)}formatValue(){switch(this.value){case 1:return"A";case 11:return"J";case 12:return"Q";case 13:return"K";default:return""+this.value}}isRedSuit(){return this.suit===a.Hearts||this.suit===a.Diamonds}getStringRepresentation(){return`${this.formatValue()} of ${this.suit}`}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(28);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class i{constructor(t={}){r(this,"name",""),r(this,"type",-1),t.name&&(this.name=t.name),t.type&&(this.type=t.type)}toJSON(){return Object(a.b)("ActionIdentifier",this)}static fromJSON(t){return Object(a.a)(i,t.data)}}a.c.constructors.ActionIdentifier=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(152);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class i{constructor(t,e){r(this,"lvl",1),r(this,"owned",!1);const n="BitNode"+t,i=a.a[n];if(null==i)throw new Error("Invalid Bit Node for this Source File");this.n=t,this.name=`Source-File ${t}: ${i.name}`,this.info=e}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return f}));var a=n(18),r=n(15),i=n(10),o=n(182),s=n(285);function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(){return{hack:0,str:0,def:0,dex:0,agi:0,cha:0,money:0}}class f{constructor(){l(this,"hacking",1),l(this,"strength",1),l(this,"defense",1),l(this,"dexterity",1),l(this,"agility",1),l(this,"charisma",1),l(this,"intelligence",1),l(this,"hp",10),l(this,"max_hp",10),l(this,"hacking_exp",0),l(this,"strength_exp",0),l(this,"defense_exp",0),l(this,"dexterity_exp",0),l(this,"agility_exp",0),l(this,"charisma_exp",0),l(this,"intelligence_exp",0),l(this,"hacking_mult",1),l(this,"strength_mult",1),l(this,"defense_mult",1),l(this,"dexterity_mult",1),l(this,"agility_mult",1),l(this,"charisma_mult",1),l(this,"hacking_exp_mult",1),l(this,"strength_exp_mult",1),l(this,"defense_exp_mult",1),l(this,"dexterity_exp_mult",1),l(this,"agility_exp_mult",1),l(this,"charisma_exp_mult",1),l(this,"hacking_chance_mult",1),l(this,"hacking_speed_mult",1),l(this,"hacking_money_mult",1),l(this,"hacking_grow_mult",1),l(this,"company_rep_mult",1),l(this,"faction_rep_mult",1),l(this,"crime_money_mult",1),l(this,"crime_success_mult",1),l(this,"work_money_mult",1),l(this,"hacknet_node_money_mult",1),l(this,"hacknet_node_purchase_cost_mult",1),l(this,"hacknet_node_ram_cost_mult",1),l(this,"hacknet_node_core_cost_mult",1),l(this,"hacknet_node_level_cost_mult",1),l(this,"bladeburner_max_stamina_mult",1),l(this,"bladeburner_stamina_gain_mult",1),l(this,"bladeburner_analysis_mult",1),l(this,"bladeburner_success_chance_mult",1),l(this,"infiltration_base_rep_increase",0),l(this,"infiltration_rep_mult",1),l(this,"infiltration_trade_mult",1),l(this,"infiltration_sell_mult",1),l(this,"infiltration_timer_mult",1),l(this,"infiltration_damage_reduction_mult",1),l(this,"augmentations",[]),l(this,"queuedAugmentations",[]),l(this,"city",r.a.Sector12)}applyAugmentation(t){for(const e of Object.keys(t.mults))null==this[e]?console.warn("Augmentation has unrecognized multiplier property: "+e):this[e]*=t.mults[e]}calculateStat(t,e=1){return Object(o.b)(t,e)}getFactionFieldWorkRepGain(){return.9*(this.hacking/i.a.MaxSkillLevel+this.strength/i.a.MaxSkillLevel+this.defense/i.a.MaxSkillLevel+this.dexterity/i.a.MaxSkillLevel+this.agility/i.a.MaxSkillLevel+this.charisma/i.a.MaxSkillLevel)/5.5*this.faction_rep_mult}getFactionHackingWorkRepGain(){return this.hacking/i.a.MaxSkillLevel*this.faction_rep_mult}getFactionSecurityWorkRepGain(){return.9*(this.hacking/i.a.MaxSkillLevel+this.strength/i.a.MaxSkillLevel+this.defense/i.a.MaxSkillLevel+this.dexterity/i.a.MaxSkillLevel+this.agility/i.a.MaxSkillLevel)/4.5*this.faction_rep_mult}resetMultipliers(){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.work_money_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.bladeburner_max_stamina_mult=1,this.bladeburner_stamina_gain_mult=1,this.bladeburner_analysis_mult=1,this.bladeburner_success_chance_mult=1,this.infiltration_base_rep_increase=0,this.infiltration_rep_mult=1,this.infiltration_trade_mult=1,this.infiltration_sell_mult=1,this.infiltration_timer_mult=1,this.infiltration_damage_reduction_mult=1}updateStatLevels(){this.hacking=Math.max(1,Math.floor(this.calculateStat(this.hacking_exp,this.hacking_mult*a.a.HackingLevelMultiplier))),this.strength=Math.max(1,Math.floor(this.calculateStat(this.strength_exp,this.strength_mult*a.a.StrengthLevelMultiplier))),this.defense=Math.max(1,Math.floor(this.calculateStat(this.defense_exp,this.defense_mult*a.a.DefenseLevelMultiplier))),this.dexterity=Math.max(1,Math.floor(this.calculateStat(this.dexterity_exp,this.dexterity_mult*a.a.DexterityLevelMultiplier))),this.agility=Math.max(1,Math.floor(this.calculateStat(this.agility_exp,this.agility_mult*a.a.AgilityLevelMultiplier))),this.charisma=Math.max(1,Math.floor(this.calculateStat(this.charisma_exp,this.charisma_mult*a.a.CharismaLevelMultiplier)));const t=this.hp/this.max_hp;this.max_hp=Math.floor(10+this.defense/10),this.hp=Math.round(this.max_hp*t)}getIntelligenceBonus(t){return Object(s.a)(this.intelligence,t)}}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(777);function o({children:t}){return r.a.createElement(i.MathJaxContext,{version:3,src:"dist/ext/MathJax-3.2.0/es5/tex-chtml.js"},r.a.createElement(i.MathJax,null,t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(14);function r(t){console.error(t),Object(a.a)("Caught an exception: "+t+"

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

Line Number: "+(t.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 save doesn't get corrupted")}},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r})),function(t){t[t.Export=0]="Export",t[t.SmartSupply=1]="SmartSupply",t[t.MarketResearchDemand=2]="MarketResearchDemand",t[t.MarketDataCompetition=3]="MarketDataCompetition",t[t.VeChain=4]="VeChain",t[t.ShadyAccounting=5]="ShadyAccounting",t[t.GovernmentPartnership=6]="GovernmentPartnership",t[t.WarehouseAPI=7]="WarehouseAPI",t[t.OfficeAPI=8]="OfficeAPI"}(a||(a={}));const r={[a.Export]:{index:0,price:2e10,name:"Export",desc:"Develop infrastructure to export your materials to your other facilities. This allows you to move materials around between different divisions and cities."},[a.SmartSupply]:{index:1,price:25e9,name:"Smart Supply",desc:"Use advanced AI to anticipate your supply needs. This allows you to purchase exactly however many materials you need for production."},[a.MarketResearchDemand]:{index:2,price:5e9,name:"Market Research - Demand",desc:"Mine and analyze market data to determine the demand of all resources. The demand attribute, which affects sales, will be displayed for every material and product."},[a.MarketDataCompetition]:{index:3,price:5e9,name:"Market Data - Competition",desc:"Mine and analyze market data to determine how much competition there is on the market for all resources. The competition attribute, which affects sales, will be displayed for every material and product."},[a.VeChain]:{index:4,price:1e10,name:"VeChain",desc:"Use AI and blockchain technology to identify where you can improve your supply chain systems. This upgrade will allow you to view a wide array of useful statistics about your Corporation."},[a.ShadyAccounting]:{index:5,price:5e14,name:"Shady Accounting",desc:"Utilize unscrupulous accounting practices and pay off government officials to save money on taxes. This reduces the dividend tax rate by 5%."},[a.GovernmentPartnership]:{index:6,price:2e15,name:"Government Partnership",desc:"Help national governments further their agendas in exchange for lowered taxes. This reduces the dividend tax rate by 10%"},[a.WarehouseAPI]:{index:7,price:5e10,name:"Warehouse API",desc:"Enables the warehouse API."},[a.OfficeAPI]:{index:8,price:5e10,name:"Office API",desc:"Enables the office API."}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var a=n(79);const r=t=>{const e=[];for(const[t,n]of Object.entries(a.a))n.isSpecial||e.push(t);return e.filter(e=>!t.hasAugmentation(e))},i=t=>1+(t.getIntelligenceBonus(3)-1)/3,o=(t,e)=>e.time/i(t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(141),r=n(58);const i={};i[r.a.OperationTyphoon]=new a.a({name:r.a.OperationTyphoon,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}),i[r.a.OperationZero]=new a.a({name:r.a.OperationZero,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}),i[r.a.OperationX]=new a.a({name:r.a.OperationX,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}),i[r.a.OperationTitan]=new a.a({name:r.a.OperationTitan,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}),i[r.a.OperationAres]=new a.a({name:r.a.OperationAres,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}),i[r.a.OperationArchangel]=new a.a({name:r.a.OperationArchangel,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}),i[r.a.OperationJuggernaut]=new a.a({name:r.a.OperationJuggernaut,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}),i[r.a.OperationRedDragon]=new a.a({name:r.a.OperationRedDragon,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}),i[r.a.OperationK]=new a.a({name:r.a.OperationK,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}),i[r.a.OperationDeckard]=new a.a({name:r.a.OperationDeckard,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}),i[r.a.OperationTyrell]=new a.a({name:r.a.OperationTyrell,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}),i[r.a.OperationWallace]=new a.a({name:r.a.OperationWallace,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}),i[r.a.OperationShoulderOfOrion]=new a.a({name:r.a.OperationShoulderOfOrion,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}),i[r.a.OperationHyron]=new a.a({name:r.a.OperationHyron,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}),i[r.a.OperationMorpheus]=new a.a({name:r.a.OperationMorpheus,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}),i[r.a.OperationIonStorm]=new a.a({name:r.a.OperationIonStorm,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}),i[r.a.OperationAnnihilus]=new a.a({name:r.a.OperationAnnihilus,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}),i[r.a.OperationUltron]=new a.a({name:r.a.OperationUltron,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}),i[r.a.OperationCenturion]=new a.a({name:r.a.OperationCenturion,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}}),i[r.a.OperationVindictus]=new a.a({name:r.a.OperationVindictus,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}}),i[r.a.OperationDaedalus]=new a.a({name:r.a.OperationDaedalus,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}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(120),r=n(28);class i{constructor(t){t?(this.id=t.fragment.id,this.x=t.x,this.y=t.y,this.highestCharge=0,this.numCharge=0,this.rotation=t.rotation):(this.id=-1,this.x=-1,this.y=-1,this.highestCharge=0,this.numCharge=0,this.rotation=0)}collide(t){const e=this.fragment(),n=t.fragment(),a=t.x-this.x,r=t.y-this.y,i=Math.max(e.shape.length,e.shape[0].length);for(let o=0;o[this.x+t[0],this.y+t[1]])}copy(){return Object.assign({},this)}toJSON(){return Object(r.b)("ActiveFragment",this)}static fromJSON(t){return Object(r.a)(i,t.data)}}r.c.constructors.ActiveFragment=i},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(10);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class i{constructor(t="",e,n=0,a=0,i=0,o=0,s={}){r(this,"difficulty",0),r(this,"karma",0),r(this,"kills",0),r(this,"money",0),r(this,"name",""),r(this,"time",0),r(this,"hacking_success_weight",0),r(this,"strength_success_weight",0),r(this,"defense_success_weight",0),r(this,"dexterity_success_weight",0),r(this,"agility_success_weight",0),r(this,"charisma_success_weight",0),r(this,"hacking_exp",0),r(this,"strength_exp",0),r(this,"defense_exp",0),r(this,"dexterity_exp",0),r(this,"agility_exp",0),r(this,"charisma_exp",0),r(this,"intelligence_exp",0),this.name=t,this.type=e,this.time=n,this.money=a,this.difficulty=i,this.karma=o,this.hacking_success_weight=s.hacking_success_weight?s.hacking_success_weight:0,this.strength_success_weight=s.strength_success_weight?s.strength_success_weight:0,this.defense_success_weight=s.defense_success_weight?s.defense_success_weight:0,this.dexterity_success_weight=s.dexterity_success_weight?s.dexterity_success_weight:0,this.agility_success_weight=s.agility_success_weight?s.agility_success_weight:0,this.charisma_success_weight=s.charisma_success_weight?s.charisma_success_weight:0,this.hacking_exp=s.hacking_exp?s.hacking_exp:0,this.strength_exp=s.strength_exp?s.strength_exp:0,this.defense_exp=s.defense_exp?s.defense_exp:0,this.dexterity_exp=s.dexterity_exp?s.dexterity_exp:0,this.agility_exp=s.agility_exp?s.agility_exp:0,this.charisma_exp=s.charisma_exp?s.charisma_exp:0,this.intelligence_exp=s.intelligence_exp?s.intelligence_exp:0,this.kills=s.kills?s.kills:0}commit(t,e,n=1,a=null){return n<=0&&(n=1),e.startCrime(t,this.type,this.hacking_exp/n,this.strength_exp/n,this.defense_exp/n,this.dexterity_exp/n,this.agility_exp/n,this.charisma_exp/n,this.money/n,this.time,a),this.time}successRate(t){let e=this.hacking_success_weight*t.hacking+this.strength_success_weight*t.strength+this.defense_success_weight*t.defense+this.dexterity_success_weight*t.dexterity+this.agility_success_weight*t.agility+this.charisma_success_weight*t.charisma+a.a.IntelligenceCrimeWeight*t.intelligence;return e/=a.a.MaxSkillLevel,e/=this.difficulty,e*=t.crime_success_mult,e*=t.getIntelligenceBonus(1),Math.min(e,1)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var a=n(42),r=n(110),i=n(2),o=n(6),s=n(10);function l(t,e,n,l,...c){const f=c.join("."),u=c.pop();if("string"!=typeof u)throw Object(r.b)(n,"Failure occured while wrapping netscript api");const m={makeRuntimeErrorMsg:e=>t.makeRuntimeErrorMsg(f,e),log:t=>{n.log(f,t)},workerScript:n,function:u,helper:{makeRuntimeErrorMsg:e=>t.makeRuntimeErrorMsg(f,e),string:(e,n)=>t.string(f,e,n),number:(e,n)=>t.number(f,e,n),city:(e,n)=>t.city(f,e,n),boolean:t.boolean,getServer:e=>t.getServer(e,f),checkSingularityAccess:()=>t.checkSingularityAccess(u),hack:t.hack,getValidPort:e=>t.getValidPort(f,e)}},h=o.a.InfinityLoopSafety;const d=function(t,...e){let n=t;for(const t of e)void 0===n[t]&&(n[t]={}),n=n[t];return n}(e,...c);Object.defineProperty(d,u,{value:function(...e){if(t.updateDynamicRam(m.function,Object(a.c)(i.a,...c,m.function)),h&&n.infiniteLoopSafetyCounter++,n.infiniteLoopSafetyCounter>s.a.InfiniteLoopLimit)throw new Error(`Infinite loop without sleep detected. ${s.a.InfiniteLoopLimit} ns functions were called without sleep. This will cause your UI to hang.`);return l(m)(...e)},writable:!0,enumerable:!0})}function c(t,e,n,a,...r){if("object"!=typeof a)throw new Error("Invalid namespace?");for(const i of Object.getOwnPropertyNames(a))switch(typeof a[i]){case"function":l(t,e,n,a[i],...r,i);break;case"object":c(t,e,n,a[i],...r,i);break;default:f(e,a[i],...r,i)}return e}function f(t,e,...n){let a=t;const r=n.pop();if("string"!=typeof r)throw new Error("Failure occured while wrapping netscript api (setNestedProperty)");for(const t of n)void 0===a[t]&&(a[t]={}),a=a[t];a[r]=e}},,,,,,,,,,function(t,e,n){"use strict";function a(t,e=1){return 1+e*Math.pow(t,.8)/600}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(1025),r=n(1026);const i={};for(const t of r.a)null!=i[(o=t).name]&&console.warn("Duplicate Research being defined: "+o.name),i[o.name]=new a.a(o);var o},,function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t[t.SYSTEM=0]="SYSTEM",t[t.INTERFACE=1]="INTERFACE",t[t.GAMEPLAY=2]="GAMEPLAY",t[t.MISC=3]="MISC"}(a||(a={}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(5),o=n(223);function s({hashes:t}){return r.a.createElement(o.a,{hashes:i.a.formatHashes(t)+" h / s"})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));class a{constructor(t,e){this.filename=t,this.msg=e}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n(538),i=n(29),o=n(8),s=n(21);function l(t){const e=i.b.Player();return a.createElement(a.Fragment,null,a.createElement(s.a,{title:a.createElement("span",{dangerouslySetInnerHTML:{__html:function(){const n=e.getNextCompanyPosition(t.company,t.entryPosType);return null==n?"":t.company.hasPosition(n)?Object(r.a)(t.company,n,!0):""}()}})},a.createElement(o.a,{onClick:t.onClick},t.text)))}},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a=new(n(125).a)},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"c",(function(){return g})),n.d(e,"e",(function(){return y})),n.d(e,"b",(function(){return b}));var a=n(2),r=n(91),i=n(83),o=n(85),s=n(99),l=n(22),c=n(112),f=n(6),u=n(604),m=n(10),h=n(252);function d(){navigator.userAgent.toLowerCase().indexOf(" electron/")>-1&&(document.achievements=[],function(){function e(t){return t=t.replace(/\/\/+/g,"/"),(t=Object(i.k)(t)).includes("/")&&(t="/"+Object(i.k)(t)),t}document.getFiles=function(){const t=Object(l.d)("home");return null===t?{res:!1,msg:"Home server does not exist."}:{res:!0,data:{files:t.scripts.map(t=>({filename:t.filename,code:t.code,ramUsage:t.ramUsage}))}}},document.deleteFile=function(t){t=e(t);const n=Object(l.d)("home");return null===n?{res:!1,msg:"Home server does not exist."}:n.removeFile(t)},document.saveFile=function(n,r){var i;n=e(n),r=t.from(r,"base64").toString();const o=Object(l.d)("home");if(null===o)return{res:!1,msg:"Home server does not exist."};const{success:s,overwritten:c}=o.writeToScriptFile(a.a,n,r);let f;return s&&(f=o.getScript(n)),{res:s,data:{overwritten:c,ramUsage:null===(i=f)||void 0===i?void 0:i.ramUsage}}}}(),function(){const t={terminal:(t,e)=>{const n={info:o.a.info,warn:o.a.warn,error:o.a.error,success:o.a.success};let a;e&&(a=n[e]),a||(a=o.a.print),a.bind(o.a)(t)},toast:(t,e,n=2e3)=>s.b.emit(t,e,n)};window.appNotifier=t}(),function(){const t={triggerSave:()=>c.c.saveGame(!0),triggerGameExport:()=>{try{c.c.exportGame()}catch(t){console.log(t),s.b.emit("Could not export game.",s.d.ERROR,2e3)}},triggerScriptsExport:()=>Object(u.b)("*",a.a.getHomeComputer()),getSaveData:()=>({save:c.c.getSaveString(f.a.ExcludeRunningScriptsFromSave),fileName:c.c.getSaveFileName()}),getSaveInfo:async t=>{try{return(await c.c.getImportDataFromString(t)).playerData}catch(t){return void console.error(t)}},pushSaveData:(t,e=!1)=>r.b.toImportSave(t,e)};window.appSaveFns=t}(),function(){const t=window.electronBridge;if(!t)return;t.receive("get-save-data-request",()=>{const e=window.appSaveFns.getSaveData();t.send("get-save-data-response",e)}),t.receive("get-save-info-request",async e=>{const n=await window.appSaveFns.getSaveInfo(e);t.send("get-save-info-response",n)}),t.receive("push-save-request",({save:t,automatic:e=!1})=>{window.appSaveFns.pushSaveData(t,e)}),t.receive("trigger-save",()=>window.appSaveFns.triggerSave().then(()=>{t.send("save-completed")}).catch(t=>{console.log(t),s.b.emit("Could not save game.",s.d.ERROR,2e3)})),t.receive("trigger-game-export",()=>{try{window.appSaveFns.triggerGameExport()}catch(t){console.log(t),s.b.emit("Could not export game.",s.d.ERROR,2e3)}}),t.receive("trigger-scripts-export",()=>{try{window.appSaveFns.triggerScriptsExport()}catch(t){console.log(t),s.b.emit("Could not export scripts.",s.d.ERROR,2e3)}})}())}function p(t){const e=window.electronBridge;e&&e.send("push-game-saved",t)}function g(){const t=window.electronBridge;t&&t.send("push-game-ready",{player:{identifier:a.a.identifier,playtime:a.a.totalPlaytime,lastSave:a.a.lastSave},game:{version:m.a.VersionString,hash:Object(h.a)()}})}function y(t){const e=window.electronBridge;e&&(e.send("push-import-result",{wasImported:t}),b())}function b(){const t=window.electronBridge;t&&t.send("push-disable-restore",{duration:6e4})}}).call(this,n(165).Buffer)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return R})),n.d(e,"b",(function(){return N}));var a=n(12),r=n(139),i=n(227),o=n(10),s=n(52),l=n(109),c=n(26),f=n(81),u=n(188),m=n(41),h=n(57),d=n(224),p=n(93),g=n(15),y=n(2),b=n(66),E=n(22),v=n(89),k=n(46),_=n(91),w=n(25),S=n(1140),x=n(4),C=n(58),L=n(34);const O=S.a;function M(){const t=Object(E.d)(v.a.WorldDaemon);return t instanceof k.a&&(!!t.backdoorInstalled||null!==y.a.bladeburner&&y.a.bladeburner.blackops.hasOwnProperty(C.a.OperationDaedalus))}function T(t,e){return t.bitNodeN===e||t.sourceFiles.some(t=>t.n===e)}function A(t){return t.sourceFiles.some(t=>1===t.n)}const R={[x.a.CyberSec.toUpperCase()]:{...O[x.a.CyberSec.toUpperCase()],Icon:"CSEC",Condition:()=>y.a.factions.includes(x.a.CyberSec)},[x.a.NiteSec.toUpperCase()]:{...O[x.a.NiteSec.toUpperCase()],Icon:x.a.NiteSec,Condition:()=>y.a.factions.includes(x.a.NiteSec)},THE_BLACK_HAND:{...O.THE_BLACK_HAND,Icon:"TBH",Condition:()=>y.a.factions.includes(x.a.TheBlackHand)},[x.a.BitRunners.toUpperCase()]:{...O[x.a.BitRunners.toUpperCase()],Icon:x.a.BitRunners.toLowerCase(),Condition:()=>y.a.factions.includes(x.a.BitRunners)},[x.a.Daedalus.toUpperCase()]:{...O[x.a.Daedalus.toUpperCase()],Icon:x.a.Daedalus.toLowerCase(),Condition:()=>y.a.factions.includes(x.a.Daedalus)},THE_COVENANT:{...O.THE_COVENANT,Icon:x.a.TheCovenant.toLowerCase().replace(/ /g,""),Condition:()=>y.a.factions.includes(x.a.TheCovenant)},[x.a.Illuminati.toUpperCase()]:{...O[x.a.Illuminati.toUpperCase()],Icon:x.a.Illuminati.toLowerCase(),Condition:()=>y.a.factions.includes(x.a.Illuminati)},"BRUTESSH.EXE":{...O["BRUTESSH.EXE"],Icon:"p0",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.BruteSSHProgram.name)},"FTPCRACK.EXE":{...O["FTPCRACK.EXE"],Icon:"p1",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.FTPCrackProgram.name)},"RELAYSMTP.EXE":{...O["RELAYSMTP.EXE"],Icon:"p2",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.RelaySMTPProgram.name)},"HTTPWORM.EXE":{...O["HTTPWORM.EXE"],Icon:"p3",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.HTTPWormProgram.name)},"SQLINJECT.EXE":{...O["SQLINJECT.EXE"],Icon:"p4",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.SQLInjectProgram.name)},"FORMULAS.EXE":{...O["FORMULAS.EXE"],Icon:"formulas",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.Formulas.name)},"SF1.1":{...O["SF1.1"],Icon:"SF1.1",Visible:()=>T(y.a,1),Condition:()=>y.a.sourceFileLvl(1)>=1},"SF2.1":{...O["SF2.1"],Icon:"SF2.1",Visible:()=>T(y.a,2),Condition:()=>y.a.sourceFileLvl(2)>=1},"SF3.1":{...O["SF3.1"],Icon:"SF3.1",Visible:()=>T(y.a,3),Condition:()=>y.a.sourceFileLvl(3)>=1},"SF4.1":{...O["SF4.1"],Icon:"SF4.1",Visible:()=>T(y.a,4),Condition:()=>y.a.sourceFileLvl(4)>=1},"SF5.1":{...O["SF5.1"],Icon:"SF5.1",Visible:()=>T(y.a,5),Condition:()=>y.a.sourceFileLvl(5)>=1},"SF6.1":{...O["SF6.1"],Icon:"SF6.1",Visible:()=>T(y.a,6),Condition:()=>y.a.sourceFileLvl(6)>=1},"SF7.1":{...O["SF7.1"],Icon:"SF7.1",Visible:()=>T(y.a,7),Condition:()=>y.a.sourceFileLvl(7)>=1},"SF8.1":{...O["SF8.1"],Icon:"SF8.1",Visible:()=>T(y.a,8),Condition:()=>y.a.sourceFileLvl(8)>=1},"SF9.1":{...O["SF9.1"],Icon:"SF9.1",Visible:()=>T(y.a,9),Condition:()=>y.a.sourceFileLvl(9)>=1},"SF10.1":{...O["SF10.1"],Icon:"SF10.1",Visible:()=>T(y.a,10),Condition:()=>y.a.sourceFileLvl(10)>=1},"SF11.1":{...O["SF11.1"],Icon:"SF11.1",Visible:()=>T(y.a,11),Condition:()=>y.a.sourceFileLvl(11)>=1},"SF12.1":{...O["SF12.1"],Icon:"SF12.1",Visible:()=>T(y.a,12),Condition:()=>y.a.sourceFileLvl(12)>=1},MONEY_1Q:{...O.MONEY_1Q,Icon:"$1Q",Condition:()=>y.a.money>=1e18},MONEY_M1B:{...O.MONEY_M1B,Icon:"-1b",Secret:!0,Condition:()=>y.a.money<=-1e9},INSTALL_1:{...O.INSTALL_1,Icon:"install",Condition:()=>y.a.augmentations.length>=1},INSTALL_100:{...O.INSTALL_100,Icon:"install_100",Condition:()=>y.a.augmentations.length>=100},QUEUE_40:{...O.QUEUE_40,Icon:"queue40",Condition:()=>y.a.queuedAugmentations.length>=40},HACKING_100000:{...O.HACKING_100000,Icon:"hack100000",Condition:()=>y.a.hacking>=1e5},COMBAT_3000:{...O.COMBAT_3000,Icon:"combat3000",Condition:()=>y.a.strength>=3e3&&y.a.defense>=3e3&&y.a.dexterity>=3e3&&y.a.agility>=3e3},NEUROFLUX_255:{...O.NEUROFLUX_255,Icon:"nf255",Condition:()=>y.a.augmentations.some(t=>t.name===a.a.NeuroFluxGovernor&&t.level>=255)},NS2:{...O.NS2,Icon:"ns2",Condition:()=>y.a.getHomeComputer().scripts.some(t=>t.filename.endsWith(".js")||t.filename.endsWith(".ns"))},FROZE:{...O.FROZE,Icon:"forze",Condition:()=>location.href.includes("noScripts")},RUNNING_SCRIPTS_1000:{...O.RUNNING_SCRIPTS_1000,Icon:"run1000",Condition:()=>{let t=0;for(const e of Object(E.c)())t+=e.runningScripts.length;return t>=1e3}},DRAIN_SERVER:{...O.DRAIN_SERVER,Icon:"drain",Condition:()=>{for(const t of Object(E.c)())if(t instanceof k.a&&t.moneyMax>0&&0===t.moneyAvailable)return!0;return!1}},MAX_RAM:{...O.MAX_RAM,Icon:"maxram",Condition:()=>y.a.getHomeComputer().maxRam===o.a.HomeComputerMaxRam},MAX_CORES:{...O.MAX_CORES,Icon:"maxcores",Condition:()=>8===y.a.getHomeComputer().cpuCores},SCRIPTS_30:{...O.SCRIPTS_30,Icon:"folders",Condition:()=>y.a.getHomeComputer().scripts.length>=30},KARMA_1000000:{...O.KARMA_1000000,Icon:"karma",Secret:!0,Condition:()=>y.a.karma<=-1e6},STOCK_1q:{...O.STOCK_1q,Icon:"$1Q",Condition:()=>y.a.moneySourceB.stock>=1e15},DISCOUNT:{...O.DISCOUNT,Icon:"discount",Condition:()=>{const t=Object(E.d)("powerhouse-fitness");return t instanceof k.a&&t.backdoorInstalled}},SCRIPT_32GB:{...O.SCRIPT_32GB,Icon:"bigcost",Condition:()=>y.a.getHomeComputer().scripts.some(t=>t.ramUsage>=32)},FIRST_HACKNET_NODE:{...O.FIRST_HACKNET_NODE,Icon:"node",Condition:()=>!Object(h.g)(y.a)&&y.a.hacknetNodes.length>0},"30_HACKNET_NODE":{...O["30_HACKNET_NODE"],Icon:"hacknet-all",Condition:()=>!Object(h.g)(y.a)&&y.a.hacknetNodes.length>=30},MAX_HACKNET_NODE:{...O.MAX_HACKNET_NODE,Icon:"hacknet-max",Condition:()=>{if(Object(h.g)(y.a))return!1;for(const t of y.a.hacknetNodes){if(!(t instanceof d.a))return!1;if(t.ram===m.a.MaxRam&&t.cores===m.a.MaxCores&&t.level===m.a.MaxLevel)return!0}return!1}},HACKNET_NODE_10M:{...O.HACKNET_NODE_10M,Icon:"hacknet-10m",Condition:()=>!Object(h.g)(y.a)&&y.a.moneySourceB.hacknet>=1e7},REPUTATION_10M:{...O.REPUTATION_10M,Icon:"reputation",Condition:()=>Object.values(c.a).some(t=>t.playerReputation>=1e7)},DONATION:{...O.DONATION,Icon:"donation",Condition:()=>Object.values(c.a).some(t=>t.favor>=150)},TRAVEL:{...O.TRAVEL,Icon:"TRAVEL",Condition:()=>y.a.city!==g.a.Sector12},WORKOUT:{...O.WORKOUT,Icon:"WORKOUT",Condition:()=>[L.a.GymStrength,L.a.GymDefense,L.a.GymDexterity,L.a.GymAgility].includes(y.a.className)},TOR:{...O.TOR,Icon:"TOR",Condition:()=>y.a.hasTorRouter()},HOSPITALIZED:{...O.HOSPITALIZED,Icon:"OUCH",Condition:()=>0!==y.a.moneySourceB.hospitalization},GANG:{...O.GANG,Icon:"GANG",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang},FULL_GANG:{...O.FULL_GANG,Icon:"GANGMAX",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang&&y.a.gang.members.length===u.a.MaximumGangMembers},GANG_TERRITORY:{...O.GANG_TERRITORY,Icon:"GANG100%",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang&&f.a[y.a.gang.facName].territory>=.999},GANG_MEMBER_POWER:{...O.GANG_MEMBER_POWER,Icon:"GANG10000",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang&&y.a.gang.members.some(t=>t.hack>=1e4||t.str>=1e4||t.def>=1e4||t.dex>=1e4||t.agi>=1e4||t.cha>=1e4)},CORPORATION:{...O.CORPORATION,Icon:"CORP",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation},CORPORATION_BRIBE:{...O.CORPORATION_BRIBE,Icon:"CORPLOBBY",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation&&1===y.a.corporation.unlockUpgrades[6]},CORPORATION_PROD_1000:{...O.CORPORATION_PROD_1000,Icon:"CORP1000",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation&&y.a.corporation.divisions.some(t=>t.prodMult>=1e3)},CORPORATION_EMPLOYEE_3000:{...O.CORPORATION_EMPLOYEE_3000,Icon:"CORPCITY",Visible:()=>T(y.a,3),Condition:()=>{if(null===y.a.corporation)return!1;for(const t of y.a.corporation.divisions)for(const e of Object.values(t.offices))if(0!==e&&e.employees.length>=3e3)return!0;return!1}},CORPORATION_REAL_ESTATE:{...O.CORPORATION_REAL_ESTATE,Icon:"CORPRE",Name:"Own the land",Description:"Expand to the Real Estate division.",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation&&y.a.corporation.divisions.some(t=>t.type===s.a.RealEstate)},INTELLIGENCE_255:{...O.INTELLIGENCE_255,Icon:"INT255",Visible:()=>T(y.a,5),Condition:()=>y.a.intelligence>=255},BLADEBURNER_DIVISION:{...O.BLADEBURNER_DIVISION,Icon:"BLADE",Visible:()=>T(y.a,6),Condition:()=>null!==y.a.bladeburner},BLADEBURNER_OVERCLOCK:{...O.BLADEBURNER_OVERCLOCK,Icon:"BLADEOVERCLOCK",Visible:()=>T(y.a,6),Condition:()=>null!==y.a.bladeburner&&y.a.bladeburner.skills[r.a.Overclock]===i.a[r.a.Overclock].maxLvl},BLADEBURNER_UNSPENT_100000:{...O.BLADEBURNER_UNSPENT_100000,Icon:"BLADE100K",Visible:()=>T(y.a,6),Condition:()=>null!==y.a.bladeburner&&y.a.bladeburner.skillPoints>=1e5},"4S":{...O["4S"],Icon:"4S",Condition:()=>y.a.has4SData},FIRST_HACKNET_SERVER:{...O.FIRST_HACKNET_SERVER,Icon:"HASHNET",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.hacknetNodes.length>0,AdditionalUnlock:[O.FIRST_HACKNET_NODE.ID]},ALL_HACKNET_SERVER:{...O.ALL_HACKNET_SERVER,Icon:"HASHNETALL",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.hacknetNodes.length===m.b.MaxServers,AdditionalUnlock:[O["30_HACKNET_NODE"].ID]},MAX_HACKNET_SERVER:{...O.MAX_HACKNET_SERVER,Icon:"HASHNETALL",Visible:()=>T(y.a,9),Condition:()=>{if(!Object(h.g)(y.a))return!1;for(const t of y.a.hacknetNodes){if("string"!=typeof t)return!1;const e=Object(E.d)(t);if(!(e instanceof p.a))return!1;if(e.maxRam===m.b.MaxRam&&e.cores===m.b.MaxCores&&e.level===m.b.MaxLevel&&e.cache===m.b.MaxCache)return!0}return!1},AdditionalUnlock:[O.MAX_HACKNET_NODE.ID]},HACKNET_SERVER_1B:{...O.HACKNET_SERVER_1B,Icon:"HASHNETMONEY",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.moneySourceB.hacknet>=1e9,AdditionalUnlock:[O.HACKNET_NODE_10M.ID]},MAX_CACHE:{...O.MAX_CACHE,Icon:"HASHNETCAP",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.hashManager.hashes===y.a.hashManager.capacity&&y.a.hashManager.capacity>0},SLEEVE_8:{...O.SLEEVE_8,Icon:"SLEEVE8",Visible:()=>T(y.a,10),Condition:()=>8===y.a.sleeves.length&&3===y.a.sourceFileLvl(10)},INDECISIVE:{...O.INDECISIVE,Icon:"1H",Visible:()=>A(y.a),Condition:function(){let t=0;return setInterval(()=>{_.b.page()===w.a.BitVerse?t++:t=0},6e4),()=>t>60}()},FAST_BN:{...O.FAST_BN,Icon:"2DAYS",Visible:()=>A(y.a),Condition:()=>M()&&y.a.playtimeSinceLastBitnode<1728e5},CHALLENGE_BN1:{...O.CHALLENGE_BN1,Icon:"BN1+",Visible:()=>A(y.a),Condition:()=>1===y.a.bitNodeN&&M()&&y.a.getHomeComputer().maxRam<=128&&1===y.a.getHomeComputer().cpuCores},CHALLENGE_BN2:{...O.CHALLENGE_BN2,Icon:"BN2+",Visible:()=>T(y.a,2),Condition:()=>2===y.a.bitNodeN&&M()&&null===y.a.gang},CHALLENGE_BN3:{...O.CHALLENGE_BN3,Icon:"BN3+",Visible:()=>T(y.a,3),Condition:()=>3===y.a.bitNodeN&&M()&&null===y.a.corporation},CHALLENGE_BN6:{...O.CHALLENGE_BN6,Icon:"BN6+",Visible:()=>T(y.a,6),Condition:()=>6===y.a.bitNodeN&&M()&&null===y.a.bladeburner},CHALLENGE_BN7:{...O.CHALLENGE_BN7,Icon:"BN7+",Visible:()=>T(y.a,7),Condition:()=>7===y.a.bitNodeN&&M()&&null===y.a.bladeburner},CHALLENGE_BN8:{...O.CHALLENGE_BN8,Icon:"BN8+",Visible:()=>T(y.a,8),Condition:()=>8===y.a.bitNodeN&&M()&&!y.a.has4SData&&!y.a.has4SDataTixApi},CHALLENGE_BN9:{...O.CHALLENGE_BN9,Icon:"BN9+",Visible:()=>T(y.a,9),Condition:()=>9===y.a.bitNodeN&&M()&&0===y.a.moneySourceB.hacknet&&0===y.a.moneySourceB.hacknet_expenses},CHALLENGE_BN10:{...O.CHALLENGE_BN10,Icon:"BN10+",Visible:()=>T(y.a,10),Condition:()=>10===y.a.bitNodeN&&M()&&!y.a.sleeves.some(t=>t.augmentations.length>0||t.hacking_exp>0||t.strength_exp>0||t.defense_exp>0||t.agility_exp>0||t.dexterity_exp>0||t.charisma_exp>0)},CHALLENGE_BN12:{...O.CHALLENGE_BN12,Icon:"BN12+",Visible:()=>T(y.a,12),Condition:()=>y.a.sourceFileLvl(12)>=50},BYPASS:{...O.BYPASS,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.Bypass)},PROTOTYPETAMPERING:{...O.PROTOTYPETAMPERING,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.PrototypeTampering)},UNCLICKABLE:{...O.UNCLICKABLE,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.Unclickable)},UNDOCUMENTEDFUNCTIONCALL:{...O.UNDOCUMENTEDFUNCTIONCALL,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.UndocumentedFunctionCall)},TIMECOMPRESSION:{...O.TIMECOMPRESSION,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.TimeCompression)},REALITYALTERATION:{...O.REALITYALTERATION,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.RealityAlteration)},N00DLES:{...O.N00DLES,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.N00dles)},EDITSAVEFILE:{...O.EDITSAVEFILE,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.EditSaveFile)},UNACHIEVABLE:{...O.UNACHIEVABLE,Icon:"SF-1",Secret:!0,Condition:()=>!1},CHALLENGE_BN13:{...O.CHALLENGE_BN13,Icon:"BN13+",Visible:()=>T(y.a,13),Condition:()=>13===y.a.bitNodeN&&M()&&!y.a.augmentations.some(t=>t.name===a.a.StaneksGift1)},DEVMENU:{...O.DEVMENU,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.YoureNotMeantToAccessThis)},RAINBOW:{...O.RAINBOW,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.INeedARainbow)},TRUE_RECURSION:{...O.TRUE_RECURSION,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.TrueRecursion)}};function N(){const t=y.a.achievements.map(t=>t.ID),e=Object.values(R).filter(e=>!t.includes(e.ID)&&e.Condition()).flatMap(t=>[t.ID,...t.AdditionalUnlock||[]]);for(const t of e)y.a.giveAchievement(t);document.achievements=[...y.a.achievements.map(t=>t.ID)]}},function(t,e,n){"use strict";n.d(e,"b",(function(){return P})),n.d(e,"a",(function(){return I}));var a=n(0),r=n.n(a),i=n(132),o=n(121),s=n(146),l=n(5),c=n(127),f=n(1181),u=n(24),m=n(149),h=n(142),d=n(30),p=n(50),g=n(1),y=n(8),b=n(111),E=n(468),v=n.n(E),k=n(1183),_=n.n(k),w=n(6),S=n(29),x=n(394),C=n(18),L=n(21),O=n(19),M=n(34);function T(){const t=Object(i.a)(),e=S.b.Player(),n=P();if(0===e.intelligence)return r.a.createElement(r.a.Fragment,null);const a=e.calculateSkillProgress(e.intelligence_exp);return r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:n.cell}},r.a.createElement(g.a,{classes:{root:n.int}},"Int ")),r.a.createElement(d.a,{align:"right",classes:{root:n.cell}},r.a.createElement(g.a,{classes:{root:n.int}},l.a.formatSkill(e.intelligence))),r.a.createElement(d.a,{align:"right",classes:{root:n.cell}},r.a.createElement(g.a,{id:"overview-int-hook",classes:{root:n.int}}))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:a,color:t.colors.int})))}function A(){const t=S.b.Player(),e=P(),n=t.bladeburner;if(null===n)return r.a.createElement(r.a.Fragment,null);const a=n.getTypeAndNameFromActionId(n.action);return"Idle"===a.type?r.a.createElement(r.a.Fragment,null):r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:e.cellNone}},r.a.createElement(g.a,null,"Bladeburner:"))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:e.cellNone}},r.a.createElement(g.a,null,a.type,": ",a.name))))}function R({tooltip:t,children:e,onClickFocus:n,header:a}){const i=P();return r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:i.workCell}},r.a.createElement(L.a,{title:r.a.createElement(r.a.Fragment,null,t)},r.a.createElement(g.a,{className:i.workHeader,sx:{pt:1,pb:.5}},a)))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:i.workCell}},r.a.createElement(g.a,{className:i.workSubtitles},e))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",align:"center",colSpan:2,classes:{root:i.cellNone}},r.a.createElement(y.a,{sx:{mt:1},onClick:n},"Focus"))))}function N(){const t=S.b.Player(),e=S.b.Router();if(!t.isWorking||t.focus)return r.a.createElement(r.a.Fragment,null);let n=r.a.createElement(r.a.Fragment,null),a=r.a.createElement(r.a.Fragment,null),i=r.a.createElement(r.a.Fragment,null);switch(t.workType){case M.d.CompanyPartTime:case M.d.Company:n=r.a.createElement(r.a.Fragment,null,t.jobs[t.companyName]," at ",r.a.createElement("strong",null,t.companyName)),a=r.a.createElement(r.a.Fragment,null,"Working at ",r.a.createElement("strong",null,t.companyName)),i=r.a.createElement(r.a.Fragment,null,"+",r.a.createElement(c.a,{reputation:t.workRepGained})," rep");break;case M.d.Faction:n=r.a.createElement(r.a.Fragment,null,t.factionWorkType," for ",r.a.createElement("strong",null,t.currentWorkFactionName)),a=r.a.createElement(r.a.Fragment,null,"Working for ",r.a.createElement("strong",null,t.currentWorkFactionName)),i=r.a.createElement(r.a.Fragment,null,"+",r.a.createElement(c.a,{reputation:t.workRepGained})," rep");break;case M.d.StudyClass:n=r.a.createElement(r.a.Fragment,null,t.workType),a=r.a.createElement(r.a.Fragment,null,"You are ",t.className),i=r.a.createElement(r.a.Fragment,null,Object(u.b)(t.timeWorked));break;case M.d.CreateProgram:n=r.a.createElement(r.a.Fragment,null,"Coding ",t.createProgramName),a=r.a.createElement(r.a.Fragment,null,"Creating a program"),i=r.a.createElement(r.a.Fragment,null,t.createProgramName," ",(t.timeWorkedCreateProgram/t.timeNeededToCompleteWork*100).toFixed(2),"%");break;case M.d.GraftAugmentation:n=r.a.createElement(r.a.Fragment,null,"Grafting ",t.graftAugmentationName),a=r.a.createElement(r.a.Fragment,null,"Grafting an Augmentation"),i=r.a.createElement(r.a.Fragment,null,r.a.createElement("strong",null,(t.timeWorkedGraftAugmentation/t.timeNeededToCompleteWork*100).toFixed(2),"%")," ","done")}return r.a.createElement(R,{tooltip:n,header:a,onClickFocus:()=>{t.startFocusing(),e.toWork()}},i)}const P=Object(o.a)(t=>Object(s.a)({workCell:{textAlign:"center",maxWidth:"200px",borderBottom:"none",padding:0,margin:0},workHeader:{fontSize:"0.9rem"},workSubtitles:{fontSize:"0.8rem"},cellNone:{borderBottom:"none",padding:0,margin:0},cell:{padding:0,margin:0},hp:{color:t.colors.hp},money:{color:t.colors.money},hack:{color:t.colors.hack},combat:{color:t.colors.combat},cha:{color:t.colors.cha},int:{color:t.colors.int}}));function I({save:t,killScripts:e}){const[n,o]=Object(a.useState)(!1),s=S.b.Player(),c=Object(a.useState)(!1)[1];Object(a.useEffect)(()=>{const t=setInterval(()=>c(t=>!t),600);return()=>clearInterval(t)},[]);const u=P(),y=Object(i.a)(),E=s.calculateSkillProgress(s.hacking_exp,s.hacking_mult*C.a.HackingLevelMultiplier),k=s.calculateSkillProgress(s.strength_exp,s.strength_mult*C.a.StrengthLevelMultiplier),M=s.calculateSkillProgress(s.defense_exp,s.defense_mult*C.a.DefenseLevelMultiplier),R=s.calculateSkillProgress(s.dexterity_exp,s.dexterity_mult*C.a.DexterityLevelMultiplier),I=s.calculateSkillProgress(s.agility_exp,s.agility_mult*C.a.AgilityLevelMultiplier),F=s.calculateSkillProgress(s.charisma_exp,s.charisma_mult*C.a.CharismaLevelMultiplier);return r.a.createElement(r.a.Fragment,null,r.a.createElement(m.a,{sx:{display:"block",m:1}},r.a.createElement(h.a,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hp}},"HP ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hp}},l.a.formatHp(s.hp)," / ",l.a.formatHp(s.max_hp))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-hp-hook",classes:{root:u.hp}}))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.money}},"Money ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.money}},l.a.formatMoney(s.money))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-money-hook",classes:{root:u.money}}))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hack}},"Hack ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hack}},l.a.formatSkill(s.hacking)))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:E,color:y.colors.hack})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cell}},r.a.createElement(g.a,{classes:{root:u.hack}})),r.a.createElement(d.a,{align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-hack-hook",classes:{root:u.hack}}))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},"Str ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.strength))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-str-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:k,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},"Def ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.defense))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-def-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:M,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},"Dex ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.dexterity))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-dex-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:R,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cell}},r.a.createElement(g.a,{classes:{root:u.combat}},"Agi ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.agility))),r.a.createElement(d.a,{align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-agi-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:I,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.cha}},"Cha ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.cha}},l.a.formatSkill(s.charisma))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-cha-hook",classes:{root:u.cha}}))),r.a.createElement(p.a,null,!w.a.DisableOverviewProgressBars&&r.a.createElement(x.a,{progress:F,color:y.colors.cha})),r.a.createElement(T,null),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-extra-hook-0",classes:{root:u.hack}})),r.a.createElement(d.a,{component:"th",scope:"row",align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-extra-hook-1",classes:{root:u.hack}})),r.a.createElement(d.a,{component:"th",scope:"row",align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-extra-hook-2",classes:{root:u.hack}}))),r.a.createElement(N,null),r.a.createElement(A,null))),r.a.createElement(O.a,{sx:{display:"flex",borderTop:"1px solid "+w.a.theme.welllight}},r.a.createElement(O.a,{sx:{display:"flex",flex:1,justifyContent:"flex-start",alignItems:"center"}},r.a.createElement(b.a,{"aria-label":"save game",onClick:t},r.a.createElement(L.a,{title:0!==w.a.AutosaveInterval?"Save game":"Save game (auto-saves are disabled!)"},r.a.createElement(v.a,{color:0!==w.a.AutosaveInterval?"primary":"error"})))),r.a.createElement(O.a,{sx:{display:"flex",flex:1,justifyContent:"flex-end",alignItems:"center"}},r.a.createElement(b.a,{"aria-label":"kill all scripts",onClick:()=>o(!0)},r.a.createElement(L.a,{title:"Kill all running scripts"},r.a.createElement(_.a,{color:"error"}))))),r.a.createElement(f.a,{open:n,onClose:()=>o(!1),killScripts:e}))}},,,function(t,e,n){"use strict";function a(t,e){if(e<0||e>100)return t;const n=t*(e/100);return t+(Math.random()*(2*n)-n)}n.d(e,"a",(function(){return a}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));class a{constructor(t,e,n){this.program=t,this.price=e,this.description=n}}},,,,,,,,function(t,e,n){"use strict";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o}));const r=new class{constructor(){a(this,"m",1024),a(this,"a",341),a(this,"c",1),this.x=0,this.reset()}step(){this.x=(this.a*this.x+this.c)%this.m}random(){return this.step(),this.x/this.m}reset(){this.x=(new Date).getTime()%this.m}};class i{constructor(t){a(this,"s1",0),a(this,"s2",0),a(this,"s3",0);const e=t/1e3%3e4;this.s1=e,this.s2=e,this.s3=e}step(){this.s1=171*this.s1%30269,this.s2=172*this.s2%30307,this.s3=170*this.s3%30323}random(){return this.step(),(this.s1/30269+this.s2/30307+this.s3/30323)%1}}function o(t){let e=1779033703^t.length;for(let n=0;n>>19;const n=()=>(e=Math.imul(e^e>>>16,2246822507),e=Math.imul(e^e>>>13,3266489909),(e^=e>>>16)>>>0);let a=n(),r=n(),i=n(),o=n();return()=>{a>>>=0,r>>>=0,i>>>=0,o>>>=0;let t=a+r|0;return a=r^r>>>9,r=i+(i<<3)|0,i=i<<21|i>>>11,o=o+1|0,t=t+o|0,i=i+t|0,(t>>>0)/4294967296}}},,,,,,,function(t,e,n){"use strict";function a(t,e){if(t.length!==e.length)return!1;for(let n=0;nObject(o.a)({favor:{color:t.colors.rep}}));function l({favor:t}){const e=s();return a.createElement("span",{className:e.favor},"number"==typeof t?r.a.formatFavor(t):t)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var a=n(77),r=n(261),i=n(18),o=n(87),s=n(67),l=n(237),c=n(95),f=n(10),u=n(186),m=n(26),h=n(189),d=n(15),p=n(9),g=n(28);function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class b extends r.a{constructor(t=null){super(),y(this,"className",""),y(this,"crimeType",""),y(this,"currentTask",a.a.Idle),y(this,"currentTaskLocation",""),y(this,"currentTaskMaxTime",0),y(this,"currentTaskTime",0),y(this,"earningsForSleeves",Object(r.b)()),y(this,"earningsForPlayer",Object(r.b)()),y(this,"earningsForTask",Object(r.b)()),y(this,"factionWorkType",h.a.None),y(this,"gainRatesForTask",Object(r.b)()),y(this,"gymStatType",""),y(this,"logs",[]),y(this,"memory",1),y(this,"shock",1),y(this,"storedCycles",0),y(this,"sync",1),null!=t&&this.shockRecovery(t)}commitCrime(t,e){const n=o.a[e]||Object.values(o.a).find(t=>t.name===e);return!!n&&(this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus(),this.gainRatesForTask.hack=n.hacking_exp*this.hacking_exp_mult*i.a.CrimeExpGain,this.gainRatesForTask.str=n.strength_exp*this.strength_exp_mult*i.a.CrimeExpGain,this.gainRatesForTask.def=n.defense_exp*this.defense_exp_mult*i.a.CrimeExpGain,this.gainRatesForTask.dex=n.dexterity_exp*this.dexterity_exp_mult*i.a.CrimeExpGain,this.gainRatesForTask.agi=n.agility_exp*this.agility_exp_mult*i.a.CrimeExpGain,this.gainRatesForTask.cha=n.charisma_exp*this.charisma_exp_mult*i.a.CrimeExpGain,this.gainRatesForTask.money=n.money*this.crime_money_mult*i.a.CrimeMoney,this.currentTaskLocation=String(this.gainRatesForTask.money),this.crimeType=n.name,this.currentTaskMaxTime=n.time,this.currentTask=a.a.Crime,!0)}finishTask(t){let e=Object(r.b)();if(this.currentTask===a.a.Crime&&this.currentTaskTime>=this.currentTaskMaxTime){const n=Object.values(o.a).find(t=>t.name===this.crimeType);if(!n)return console.error("Invalid data stored in sleeve.crimeType: "+this.crimeType),this.resetTaskStatus(),e;if(Math.random()0&&(this.hacking_exp+=e.hack),e.str>0&&(this.strength_exp+=e.str),e.def>0&&(this.defense_exp+=e.def),e.dex>0&&(this.dexterity_exp+=e.dex),e.agi>0&&(this.agility_exp+=e.agi),e.cha>0&&(this.charisma_exp+=e.cha),Object(r.b)();const i=this.shock/100*(this.sync/100)*n,o=e.hack*i,s=e.str*i,l=e.def*i,c=e.dex*i,f=e.agi*i,u=e.cha*i;return o>0&&(this.hacking_exp+=o,t.gainHackingExp(o),this.earningsForPlayer.hack+=o,this.earningsForTask.hack+=o),s>0&&(this.strength_exp+=s,t.gainStrengthExp(s),this.earningsForPlayer.str+=s,this.earningsForTask.str+=s),l>0&&(this.defense_exp+=l,t.gainDefenseExp(l),this.earningsForPlayer.def+=l,this.earningsForTask.def+=l),c>0&&(this.dexterity_exp+=c,t.gainDexterityExp(c),this.earningsForPlayer.dex+=c,this.earningsForTask.dex+=c),f>0&&(this.agility_exp+=f,t.gainAgilityExp(f),this.earningsForPlayer.agi+=f,this.earningsForTask.agi+=f),u>0&&(this.charisma_exp+=u,t.gainCharismaExp(u),this.earningsForPlayer.cha+=u,this.earningsForTask.cha+=u),this.earningsForSleeves.hack+=o*(this.sync/100),this.earningsForSleeves.str+=s*(this.sync/100),this.earningsForSleeves.def+=l*(this.sync/100),this.earningsForSleeves.dex+=c*(this.sync/100),this.earningsForSleeves.agi+=f*(this.sync/100),this.earningsForSleeves.cha+=u*(this.sync/100),{hack:o*(this.sync/100),str:s*(this.sync/100),def:l*(this.sync/100),dex:c*(this.sync/100),agi:f*(this.sync/100),cha:u*(this.sync/100),money:0}}gainMoney(t,e,n=1){const a=e.money*n;this.earningsForTask.money+=a,this.earningsForPlayer.money+=a,t.gainMoney(a,"sleeves")}getMemoryUpgradeCost(t){const e=Math.round(t);if(e<0)return 0;if(this.memory+e>100)return this.getMemoryUpgradeCost(100-this.memory);let n=0,a=this.memory-1;for(let e=0;e50&&this.logs.shift()}prestige(t){this.hacking_exp=0,this.strength_exp=0,this.defense_exp=0,this.dexterity_exp=0,this.agility_exp=0,this.charisma_exp=0,this.resetTaskStatus(),this.earningsForSleeves=Object(r.b)(),this.earningsForPlayer=Object(r.b)(),this.shockRecovery(t),this.augmentations=[],this.resetMultipliers(),this.city=d.a.Sector12,this.shock=1,this.storedCycles=0,this.sync=Math.max(this.memory,1),this.logs=[]}process(t,e=1){const n=1e3/f.a.MilliPerCycle;if(this.storedCycles+=e,this.storedCyclesthis.currentTaskMaxTime&&(o=this.currentTaskMaxTime-this.currentTaskTime,i=Math.floor(o/f.a.MilliPerCycle),(o<0||i<0)&&(console.warn("Sleeve.process() calculated negative cycle usage"),o=0,i=0)),this.currentTaskTime+=o,this.shock=Math.min(100,this.shock+1e-4*i);let c=Object(r.b)();switch(this.currentTask){case a.a.Idle:break;case a.a.Class:case a.a.Gym:this.updateTaskGainRates(t),c=this.gainExperience(t,this.gainRatesForTask,i),this.gainMoney(t,this.gainRatesForTask,i);break;case a.a.Faction:{c=this.gainExperience(t,this.gainRatesForTask,i),this.gainMoney(t,this.gainRatesForTask,i);const e=m.a[this.currentTaskLocation];if(!(e instanceof u.a)){console.error("Invalid faction for Sleeve task: "+this.currentTaskLocation);break}t.gang&&e.name===t.gang.facName&&this.resetTaskStatus(),e.playerReputation+=this.getRepGain(t)*i;break}case a.a.Company:{c=this.gainExperience(t,this.gainRatesForTask,i),this.gainMoney(t,this.gainRatesForTask,i);const e=s.a[this.currentTaskLocation];if(!(e instanceof l.a)){console.error("Invalid company for Sleeve task: "+this.currentTaskLocation);break}e.playerReputation+=this.getRepGain(t)*i;break}case a.a.Recovery:this.shock=Math.min(100,this.shock+2e-4*i),this.shock>=100&&this.resetTaskStatus();break;case a.a.Synchro:this.sync=Math.min(100,this.sync+2e-4*t.getIntelligenceBonus(.5)*i),this.sync>=100&&this.resetTaskStatus()}return 0!==this.currentTaskMaxTime&&this.currentTaskTime>=this.currentTaskMaxTime&&(this.currentTask===a.a.Crime?c=this.finishTask(t):this.finishTask(t)),this.updateStatLevels(),this.storedCycles-=i,c}resetTaskStatus(){this.earningsForTask=Object(r.b)(),this.gainRatesForTask=Object(r.b)(),this.currentTask=a.a.Idle,this.currentTaskTime=0,this.currentTaskMaxTime=0,this.factionWorkType=h.a.None,this.crimeType="",this.currentTaskLocation="",this.gymStatType="",this.className=""}shockRecovery(t){return this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus(),this.currentTask=a.a.Recovery,!0}synchronize(t){return this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus(),this.currentTask=a.a.Synchro,!0}takeUniversityCourse(t,e,n){this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus();let r=1;switch(e.toLowerCase()){case p.a.AevumSummitUniversity.toLowerCase():if(this.city!==d.a.Aevum)return!1;this.currentTaskLocation=p.a.AevumSummitUniversity,r=4;break;case p.a.Sector12RothmanUniversity.toLowerCase():if(this.city!==d.a.Sector12)return!1;this.currentTaskLocation=p.a.Sector12RothmanUniversity,r=3;break;case p.a.VolhavenZBInstituteOfTechnology.toLowerCase():if(this.city!==d.a.Volhaven)return!1;this.currentTaskLocation=p.a.VolhavenZBInstituteOfTechnology,r=5;break;default:return!1}switch(n.toLowerCase()){case"study computer science":break;case"data structures":this.gainRatesForTask.money=f.a.ClassDataStructuresBaseCost*r*-1;break;case"networks":this.gainRatesForTask.money=f.a.ClassNetworksBaseCost*r*-1;break;case"algorithms":this.gainRatesForTask.money=f.a.ClassAlgorithmsBaseCost*r*-1;break;case"management":this.gainRatesForTask.money=f.a.ClassManagementBaseCost*r*-1;break;case"leadership":this.gainRatesForTask.money=f.a.ClassLeadershipBaseCost*r*-1;break;default:return!1}return this.className=n,this.currentTask=a.a.Class,!0}travel(t,e){return t.loseMoney(f.a.TravelCost,"sleeves"),this.city=e,!0}tryBuyAugmentation(t,e){return!!t.canAfford(e.baseCost)&&(!this.augmentations.some(t=>t.name===e.name)&&(t.loseMoney(e.baseCost,"sleeves"),this.installAugmentation(e),!0))}updateTaskGainRates(t){if(this.currentTask!==a.a.Class)if(this.currentTask!==a.a.Gym)console.warn("Sleeve.updateTaskGainRates() called for unexpected task type "+this.currentTask);else{let e=1;switch(this.currentTaskLocation.toLowerCase()){case p.a.AevumCrushFitnessGym.toLowerCase():e=2;break;case p.a.AevumSnapFitnessGym.toLowerCase():e=5;break;case p.a.Sector12IronGym.toLowerCase():e=1;break;case p.a.Sector12PowerhouseGym.toLowerCase():e=10;break;case p.a.VolhavenMilleniumFitnessGym.toLowerCase():e=4;break;default:return}const n=1,a=t.hashManager.getTrainingMult()*e,r=this.gymStatType.toLowerCase();r.includes("str")?this.gainRatesForTask.str=n*a*this.strength_exp_mult:r.includes("def")?this.gainRatesForTask.def=n*a*this.defense_exp_mult:r.includes("dex")?this.gainRatesForTask.dex=n*a*this.dexterity_exp_mult:r.includes("agi")&&(this.gainRatesForTask.agi=n*a*this.agility_exp_mult)}else{let e=1;switch(this.currentTaskLocation.toLowerCase()){case p.a.AevumSummitUniversity.toLowerCase():e=3;break;case p.a.Sector12RothmanUniversity.toLowerCase():e=2;break;case p.a.VolhavenZBInstituteOfTechnology.toLowerCase():e=4;break;default:return}const n=e*t.hashManager.getStudyMult();switch(this.className.toLowerCase()){case"study computer science":this.gainRatesForTask.hack=f.a.ClassStudyComputerScienceBaseExp*n*this.hacking_exp_mult;break;case"data structures":this.gainRatesForTask.hack=f.a.ClassDataStructuresBaseExp*n*this.hacking_exp_mult;break;case"networks":this.gainRatesForTask.hack=f.a.ClassNetworksBaseExp*n*this.hacking_exp_mult;break;case"algorithms":this.gainRatesForTask.hack=f.a.ClassAlgorithmsBaseExp*n*this.hacking_exp_mult;break;case"management":this.gainRatesForTask.cha=f.a.ClassManagementBaseExp*n*this.charisma_exp_mult;break;case"leadership":this.gainRatesForTask.cha=f.a.ClassLeadershipBaseExp*n*this.charisma_exp_mult}}}upgradeMemory(t){t<0?console.warn("Sleeve.upgradeMemory() called with negative value: "+t):this.memory=Math.min(100,Math.round(this.memory+t))}workForCompany(t,e){if(!(s.a[e]instanceof l.a)||null==t.jobs[e])return!1;this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus();const n=s.a[e],r=c.a[t.jobs[e]];return null!=n&&(null!=r&&(this.gainRatesForTask.money=r.baseSalary*n.salaryMultiplier*this.work_money_mult*i.a.CompanyWorkMoney,this.gainRatesForTask.hack=r.hackingExpGain*n.expMultiplier*this.hacking_exp_mult*i.a.CompanyWorkExpGain,this.gainRatesForTask.str=r.strengthExpGain*n.expMultiplier*this.strength_exp_mult*i.a.CompanyWorkExpGain,this.gainRatesForTask.def=r.defenseExpGain*n.expMultiplier*this.defense_exp_mult*i.a.CompanyWorkExpGain,this.gainRatesForTask.dex=r.dexterityExpGain*n.expMultiplier*this.dexterity_exp_mult*i.a.CompanyWorkExpGain,this.gainRatesForTask.agi=r.agilityExpGain*n.expMultiplier*this.agility_exp_mult*i.a.CompanyWorkExpGain,this.gainRatesForTask.cha=r.charismaExpGain*n.expMultiplier*this.charisma_exp_mult*i.a.CompanyWorkExpGain,this.currentTaskLocation=e,this.currentTask=a.a.Company,!0))}workForFaction(t,e,n){const r=m.a[e];if(!(""!==e&&r&&r instanceof u.a&&t.factions.includes(e)))return!1;this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus();const o=r.getInfo(),s=n.toLowerCase();if(s.includes("hack")){if(!o.offerHackingWork)return!1;this.factionWorkType=h.a.Hacking,this.gainRatesForTask.hack=.15*this.hacking_exp_mult*i.a.FactionWorkExpGain}else if(s.includes("field")){if(!o.offerFieldWork)return!1;this.factionWorkType=h.a.Field,this.gainRatesForTask.hack=.1*this.hacking_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.str=.1*this.strength_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.def=.1*this.defense_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.dex=.1*this.dexterity_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.agi=.1*this.agility_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.cha=.1*this.charisma_exp_mult*i.a.FactionWorkExpGain}else{if(!s.includes("security"))return!1;if(!o.offerSecurityWork)return!1;this.factionWorkType=h.a.Security,this.gainRatesForTask.hack=.1*this.hacking_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.str=.15*this.strength_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.def=.15*this.defense_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.dex=.15*this.dexterity_exp_mult*i.a.FactionWorkExpGain,this.gainRatesForTask.agi=.15*this.agility_exp_mult*i.a.FactionWorkExpGain}return this.currentTaskLocation=e,this.currentTask=a.a.Faction,!0}workoutAtGym(t,e,n){this.currentTask!==a.a.Idle?this.finishTask(t):this.resetTaskStatus();let r=1;switch(e.toLowerCase()){case p.a.AevumCrushFitnessGym.toLowerCase():if(this.city!=d.a.Aevum)return!1;this.currentTaskLocation=p.a.AevumCrushFitnessGym,r=3;break;case p.a.AevumSnapFitnessGym.toLowerCase():if(this.city!=d.a.Aevum)return!1;this.currentTaskLocation=p.a.AevumSnapFitnessGym,r=10;break;case p.a.Sector12IronGym.toLowerCase():if(this.city!=d.a.Sector12)return!1;this.currentTaskLocation=p.a.Sector12IronGym,r=1;break;case p.a.Sector12PowerhouseGym.toLowerCase():if(this.city!=d.a.Sector12)return!1;this.currentTaskLocation=p.a.Sector12PowerhouseGym,r=20;break;case p.a.VolhavenMilleniumFitnessGym.toLowerCase():if(this.city!=d.a.Volhaven)return!1;this.currentTaskLocation=p.a.VolhavenMilleniumFitnessGym,r=7;break;default:return!1}const i=n.toLowerCase();return this.gainRatesForTask.money=f.a.ClassGymBaseCost*r*-1,!!(i.includes("str")||i.includes("def")||i.includes("dex")||i.includes("agi"))&&(this.gymStatType=n,this.currentTask=a.a.Gym,!0)}toJSON(){return Object(g.b)("Sleeve",this)}static fromJSON(t){return Object(g.a)(b,t.data)}}g.c.constructors.Sleeve=b},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return a})),function(t){t[t.SyntaxError=-1]="SyntaxError",t[t.ImportError=-2]="ImportError",t[t.URLImportError=-3]="URLImportError"}(a||(a={}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var a=n(125);const r=new a.a,i=new a.a},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var a=n(244),r=n(153),i=n(117),o=n(76),s=n(5),l=n(20),c=n(14),f=n(6),u=n(0);function m(t,e,n,a){const s=a.stockMarket.Orders;if(null==s){const t={};for(const e of Object.keys(a.stockMarket)){const n=a.stockMarket[e];n instanceof r.a&&(t[n.symbol]=[])}return void(a.stockMarket.Orders=t)}let l=s[t.symbol];if(null==l||l.constructor!==Array)return console.error(`Invalid Order book for ${t.symbol} in processOrders(): ${l}`),void(l=[]);for(const r of l)if(r.type===e&&r.pos===n)switch(r.type){case i.a.LimitBuy:(r.pos===o.a.Long&&t.price<=r.price||r.pos===o.a.Short&&t.price>=r.price)&&h(r,a);break;case i.a.LimitSell:case i.a.StopBuy:(r.pos===o.a.Long&&t.price>=r.price||r.pos===o.a.Short&&t.price<=r.price)&&h(r,a);break;case i.a.StopSell:(r.pos===o.a.Long&&t.price<=r.price||r.pos===o.a.Short&&t.price>=r.price)&&h(r,a);break;default:return void console.warn("Invalid order type: "+r.type)}}function h(t,e){const n=e.symbolToStockMap[t.stockSymbol];if(!(n instanceof r.a))return void console.error("Could not find stock for this order: "+t.stockSymbol);const m=e.stockMarket.Orders[n.symbol],h={suppressDialog:!0};let d=!0,p=!1;switch(t.type){case i.a.LimitBuy:case i.a.StopBuy:p=!0,t.pos===o.a.Long?d=Object(a.a)(n,t.shares,null,h)&&d:t.pos===o.a.Short&&(d=Object(a.d)(n,t.shares,null,h)&&d);break;case i.a.LimitSell:case i.a.StopSell:t.pos===o.a.Long?d=Object(a.c)(n,t.shares,null,h)&&d:t.pos===o.a.Short&&(d=Object(a.b)(n,t.shares,null,h)&&d);break;default:return void console.warn("Invalid order type: "+t.type)}const g=t.pos===o.a.Long?"Long":"Short";if(d){for(let e=0;e({...a})},,function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return m}));var a=n(0),r=n.n(a),i=n(125),o=n(38),s=n(1),l=n(19),c=n(766);const f=new i.a;let u=0;function m(){const[t,e]=Object(a.useState)([]);return Object(a.useEffect)(()=>f.subscribe(t=>{const n=u+"";u++,e(e=>{const a=function(t){return"string"==typeof t?Object(c.sha256)(t):Object(c.sha256)(JSON.stringify(t.props))}(t);return e.some(t=>t.hash===a)?(console.log("Duplicate message"),e):[...e,{id:n,text:t,hash:a}]})}),[]),Object(a.useEffect)(()=>{function t(t){"Escape"===t.code&&e([])}return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[]),r.a.createElement(r.a.Fragment,null,t.length>0&&r.a.createElement(o.a,{open:!0,onClose:function(){e(t=>t.slice(1,1e99))}},r.a.createElement(l.a,{overflow:"scroll",sx:{overflowWrap:"break-word",whiteSpace:"pre-line"}},r.a.createElement(s.a,{component:"span"},t[0].text))))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(545);function r(){return Object(a.a)(99)+"."+Object(a.a)(9)+"."+Object(a.a)(9)+"."+Object(a.a)(9)}},function(t,e,n){"use strict";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}));class r{constructor(t=""){a(this,"level",1),a(this,"name",""),this.name=t}}},function(t,e,n){"use strict";function a(){return new Promise((t,e)=>{window.indexedDB||e("Indexed DB does not exists");const n=window.indexedDB.open("bitburnerSave",1);n.onupgradeneeded=function(){this.result.createObjectStore("savestring")},n.onerror=function(t){e("Failed to get IDB "+t)},n.onsuccess=function(){const n=this.result;n?t(n.transaction(["savestring"],"readwrite").objectStore("savestring")):e("database loading result was undefined")}})}function r(){return new Promise((t,e)=>{a().then(e=>new Promise((t,n)=>{const a=e.get("save");a.onerror=function(t){n("Error in Database request to get savestring: "+t)},a.onsuccess=function(){t(this.result)}}).then(e=>t(e))).catch(t=>e(t))})}function i(t){return a().then(e=>new Promise((n,a)=>{const r=e.put(t,"save");r.onerror=function(t){a("Error saving game to IndexedDB: "+t)},r.onsuccess=()=>n()}))}function o(){return a().then(t=>{t.delete("save")})}n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return E})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return g}));var a=n(291),r=n(12),i=n(91),o=n(66),s=n(2),l=n(25),c=n(22),f=n(89),u=n(6),m=n(14),h=n(4),d=n(46);function p(t,e=!1){!e&&u.a.SuppressMessages||g(t.filename),function(t){if(y(t))return;const e=Object(c.d)("home");if(null==e)throw new Error("The home server doesn't exist. You done goofed.");e.messages.push(t.filename)}(t)}function g(t){const e=v[t];if(!(e instanceof a.a))throw new Error("trying to display unexistent message");const n="Message received from unknown sender:

"+e.msg+"

This message was saved as "+e.filename+" onto your home computer.";Object(m.a)(n)}function y(t){const e=Object(c.d)("home");if(null==e)throw new Error("The home server doesn't exist. You done goofed.");return e.messages.includes(t.filename)}function b(){if(i.b.page()===l.a.BitVerse)return;const t=v[E.Jumper0],e=v[E.Jumper1],n=v[E.Jumper2],a=v[E.Jumper3],u=v[E.Jumper4],m=v[E.CyberSecTest],h=v[E.NiteSecTest],g=v[E.BitRunnersTest],b=v[E.TruthGazer],k=v[E.RedPill];if(s.a.hasAugmentation(r.a.TheRedPill)){const t=Object(c.d)(f.a.WorldDaemon);if(!(t instanceof d.a))throw new Error("The world daemon is not a server???? Please un-break reality");s.a.hacking>=t.requiredHackingSkill?p(k,0===s.a.sourceFiles.length):y(b)||p(b)}else if(!y(t)&&s.a.hacking>=25){p(t);const e=o.a.Flight.name,n=s.a.getHomeComputer();n.programs.includes(e)||n.programs.push(e)}else!y(e)&&s.a.hacking>=40?p(e):!y(m)&&s.a.hacking>=50?p(m):!y(n)&&s.a.hacking>=175?p(n):!y(h)&&s.a.hacking>=200?p(h):!y(a)&&s.a.hacking>=350?p(a):!y(u)&&s.a.hacking>=490?p(u):!y(g)&&s.a.hacking>=500&&p(g)}let E;!function(t){t.Jumper0="j0.msg",t.Jumper1="j1.msg",t.Jumper2="j2.msg",t.Jumper3="j3.msg",t.Jumper4="j4.msg",t.CyberSecTest="csec-test.msg",t.NiteSecTest="nitesec-test.msg",t.BitRunnersTest="19dfj3l1nd.msg",t.TruthGazer="truthgazer.msg",t.RedPill="icarus.msg"}(E||(E={}));const v={[E.Jumper0]:new a.a(E.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"),[E.Jumper1]:new a.a(E.Jumper1,`Soon you will be contacted by a hacking group known as ${h.a.NiteSec}. 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`),[E.Jumper2]:new a.a(E.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 ${h.a.NiteSec}.

-jump3R`),[E.Jumper3]:new a.a(E.Jumper3,`You must learn to walk before you can run. And you must run before you can fly. Look for ${h.a.TheBlackHand}.

I.I.I.I

-jump3R`),[E.Jumper4]:new a.a(E.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"),[E.CyberSecTest]:new a.a(E.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 install the backdoor on our server.

-"+h.a.CyberSec),[E.NiteSecTest]:new a.a(E.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 install the backdoor on our server, avmnite-02h. Then, we will contact you again.

-"+h.a.NiteSec),[E.BitRunnersTest]:new a.a(E.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"),[E.TruthGazer]:new a.a(E.TruthGazer,"@&*($#@&__TH3__#@A&#@*)__TRU1H__(*)&*)($#@&()E&R)W&
%@*$^$()@&$)$*@__CAN__()(@^#)@&@)#__N0__(#@&#)@&@&(
*(__LON6ER__^#)@)(()*#@)@__ESCAP3__)#(@(#@*@()@(#*$
()@)#$*%)$#()$#__Y0UR__(*)$#()%(&(%)*!)($__GAZ3__#("),[E.RedPill]:new a.a(E.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(t,e,n){"use strict";function a(t){const e=25e3*(Math.pow(1.02,t)-1);return Math.round(1e4*e)/1e4}function r(t){const e=Math.log(t/25e3+1)/Math.log(1.02);return Math.round(1e4*e)/1e4}n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}));var a=n(26);let r=0;function i(){return(new Date).getTime()-r>864e5}function o(t){if(i()){for(const e of t.factions)a.a[e].favor++;r=(new Date).getTime()}}function s(t){r=t}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n(1),i=n(8),o=n(45),s=n(19);function l(t){return a.createElement(s.a,null,a.createElement(o.a,{sx:{my:1,p:1}},a.createElement(i.a,{onClick:t.onClick},t.buttonText),a.createElement(r.a,null,t.infoText)))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(61),r=n(461),i=n(28);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class s extends r.a{constructor(t=null){super(t),o(this,"reqdRank",100),o(this,"teamCount",0),t&&t.reqdRank&&(this.reqdRank=t.reqdRank),t&&t.teamCount&&(this.teamCount=t.teamCount)}getTeamSuccessBonus(t){if(this.teamCount&&this.teamCount>0){this.teamCount=Math.min(this.teamCount,t.teamSize);return Math.pow(this.teamCount,.05)}return 1}getActionTypeSkillSuccessBonus(t){return t.skillMultipliers.successChanceOperation}getChaosDifficultyBonus(t){const e=t.getCurrentCity();if(e.chaos>a.a.ChaosThreshold){const t=e.chaos-a.a.ChaosThreshold+1;return Math.pow(t,.5)}return 1}toJSON(){return Object(i.b)("Operation",this)}static fromJSON(t){return Object(i.a)(s,t.data)}}i.c.constructors.Operation=s},function(t,e,n){"use strict";n.d(e,"e",(function(){return m})),n.d(e,"c",(function(){return h})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"d",(function(){return g})),n.d(e,"f",(function(){return y}));var a=n(35),r=n(12),i=n(2),o=n(66),s=n(315),l=n(0),c=n.n(l),f=n(4),u=n(10);const m=()=>[new a.a({name:r.a.WKSharmonizer,repCost:1e4,moneyCost:1e6,info:`A copy of the WKS harmonizer from the MIA leader of the ${f.a.ShadowsOfAnarchy} injects *Γ-based cells that provides general enhancement to the body.`,stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes many aspect of infiltration easier and more productive. Such as increased timer, rewards, reduced damage taken, etc."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.MightOfAres,repCost:1e4,moneyCost:1e6,info:"Extra-occular neurons taken from old martial art master. Injecting the user the ability to predict enemy attack before they even know it themself.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Slash minigame easier by showing you via an indictor when the slash in coming."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.WisdomOfAthena,repCost:1e4,moneyCost:1e6,info:"A connective brain implant to SASHA that focuses in pattern recognition and predictive templating.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Bracket minigame easier by removing all '[' ']'."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.ChaosOfDionysus,repCost:1e4,moneyCost:1e6,info:"Opto-occipito implant to process visual signal before brain interpretation.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Backwards minigame easier by flipping the words."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.BeautyOfAphrodite,repCost:1e4,moneyCost:1e6,info:"Pheromone extruder injected in the thoracodorsal nerve. Emits pleasing scent guaranteed to make conversational partners more agreeable.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Bribe minigame easier by indicating the incorrect paths."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.TrickeryOfHermes,repCost:1e4,moneyCost:1e6,info:"Penta-dynamo-neurovascular-valve inserted in the carpal ligament, enhances dexterity.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Cheat Code minigame easier by allowing the opposite character."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.FloodOfPoseidon,repCost:1e4,moneyCost:1e6,info:"Transtinatium VVD reticulator used in optico-sterbing recognition.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Symbol matching minigame easier by indicating the correct choice."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.HuntOfArtemis,repCost:1e4,moneyCost:1e6,info:"magneto-turboencabulator based on technology by Micha Eike Siemon, increases the users electro-magnetic sensitivity.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Minesweeper minigame easier by showing the location of all mines and keeping their position."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.KnowledgeOfApollo,repCost:1e4,moneyCost:1e6,info:"Neodynic retention fjengeln spoofer using -φ karmions, net positive effect on implantees delta wave.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Wire Cutting minigame easier by indicating the incorrect wires."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]})],h=()=>[new a.a({name:r.a.HemoRecirculator,moneyCost:45e6,repCost:1e4,info:"A heart implant that greatly increases the body's ability to effectively use and pump blood.",strength_mult:1.08,defense_mult:1.08,agility_mult:1.08,dexterity_mult:1.08,factions:[f.a.Tetrads,f.a.TheDarkArmy,f.a.TheSyndicate]}),new a.a({name:r.a.Targeting1,moneyCost:15e6,repCost:5e3,info:"A cranial implant that is embedded within the inner ear structures and optic nerves. It regulates and enhances balance and hand-eye coordination.",dexterity_mult:1.1,factions:[f.a.SlumSnakes,f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Sector12,f.a.Ishima,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.Targeting2,moneyCost:425e5,repCost:8750,info:"This upgraded version of the 'Augmented Targeting' implant is capable of augmenting reality by digitally displaying weaknesses and vital signs of threats.",prereqs:[r.a.Targeting1],dexterity_mult:1.2,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Sector12,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.Targeting3,moneyCost:115e6,repCost:27500,info:"The latest version of the 'Augmented Targeting' implant adds the ability to lock-on and track threats.",prereqs:[r.a.Targeting2,r.a.Targeting1],dexterity_mult:1.3,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries,f.a.TheCovenant]}),new a.a({name:r.a.SyntheticHeart,moneyCost:2875e6,repCost:75e4,info:"This advanced artificial heart, created from plasteel and graphene, is capable of pumping blood more efficiently than an organic heart.",agility_mult:1.5,strength_mult:1.5,factions:[f.a.KuaiGongInternational,f.a.FulcrumSecretTechnologies,f.a.SpeakersForTheDead,f.a.NWO,f.a.TheCovenant,f.a.Daedalus,f.a.Illuminati]}),new a.a({name:r.a.SynfibrilMuscle,repCost:437500,moneyCost:1125e6,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'.",strength_mult:1.3,defense_mult:1.3,factions:[f.a.KuaiGongInternational,f.a.FulcrumSecretTechnologies,f.a.SpeakersForTheDead,f.a.NWO,f.a.TheCovenant,f.a.Daedalus,f.a.Illuminati,f.a.BladeIndustries]}),new a.a({name:r.a.CombatRib1,repCost:7500,moneyCost:2375e4,info:"The rib cage is augmented to continuously release boosters into the bloodstream which increase the oxygen-carrying capacity of blood.",strength_mult:1.1,defense_mult:1.1,factions:[f.a.SlumSnakes,f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Volhaven,f.a.Ishima,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.CombatRib2,repCost:18750,moneyCost:65e6,info:"An upgraded version of the 'Combat Rib' augmentation that adds potent stimulants which improve focus and endurance while decreasing reaction time and fatigue.",prereqs:[r.a.CombatRib1],strength_mult:1.14,defense_mult:1.14,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Volhaven,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.CombatRib3,repCost:35e3,moneyCost:12e7,info:"The latest version of the 'Combat Rib' augmentation releases advanced anabolic steroids that improve muscle mass and physical performance while being safe and free of side effects.",prereqs:[r.a.CombatRib2,r.a.CombatRib1],strength_mult:1.18,defense_mult:1.18,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries,f.a.TheCovenant]}),new a.a({name:r.a.NanofiberWeave,repCost:37500,moneyCost:125e6,info:"Synthetic nanofibers are woven into the skin's extracellular matrix using electrospinning, which improves its regenerative and extracellular homeostasis abilities.",strength_mult:1.2,defense_mult:1.2,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.OmniTekIncorporated,f.a.BladeIndustries,f.a.TianDiHui,f.a.SpeakersForTheDead,f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.SubdermalArmor,repCost:875e3,moneyCost:325e7,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 or electrical traumas.",defense_mult:2.2,factions:[f.a.TheSyndicate,f.a.FulcrumSecretTechnologies,f.a.Illuminati,f.a.Daedalus,f.a.TheCovenant]}),new a.a({name:r.a.WiredReflexes,repCost:1250,moneyCost:25e5,info:"Synthetic nerve-enhancements are injected into all major parts of the somatic nervous system, supercharging the spread of neural signals and increasing reflex speed.",agility_mult:1.05,dexterity_mult:1.05,factions:[f.a.TianDiHui,f.a.SlumSnakes,f.a.Sector12,f.a.Volhaven,f.a.Aevum,f.a.Ishima,f.a.TheSyndicate,f.a.TheDarkArmy,f.a.SpeakersForTheDead]}),new a.a({name:r.a.GrapheneBoneLacings,repCost:1125e3,moneyCost:425e7,info:"Graphene is grafted and fused into the skeletal structure, enhancing bone density and tensile strength.",strength_mult:1.7,defense_mult:1.7,factions:[f.a.FulcrumSecretTechnologies,f.a.TheCovenant]}),new a.a({name:r.a.BionicSpine,repCost:45e3,moneyCost:125e6,info:"The spine is reconstructed using plasteel and carbon fibers. It is now capable of stimulating and regulating neural signals passing through the spinal cord, improving senses and reaction speed. The 'Bionic Spine' also interfaces with all other 'Bionic' implants.",strength_mult:1.15,defense_mult:1.15,agility_mult:1.15,dexterity_mult:1.15,factions:[f.a.SpeakersForTheDead,f.a.TheSyndicate,f.a.KuaiGongInternational,f.a.OmniTekIncorporated,f.a.BladeIndustries]}),new a.a({name:r.a.GrapheneBionicSpine,repCost:1625e3,moneyCost:6e9,info:"An upgrade to the 'Bionic Spine' augmentation. The spine is fused with graphene which enhances durability and supercharges all body functions.",prereqs:[r.a.BionicSpine],strength_mult:1.6,defense_mult:1.6,agility_mult:1.6,dexterity_mult:1.6,factions:[f.a.FulcrumSecretTechnologies,f.a.ECorp]}),new a.a({name:r.a.BionicLegs,repCost:15e4,moneyCost:375e6,info:"Cybernetic legs, created from plasteel and carbon fibers, enhance running speed.",agility_mult:1.6,factions:[f.a.SpeakersForTheDead,f.a.TheSyndicate,f.a.KuaiGongInternational,f.a.OmniTekIncorporated,f.a.BladeIndustries]}),new a.a({name:r.a.GrapheneBionicLegs,repCost:75e4,moneyCost:45e8,info:"An upgrade to the 'Bionic Legs' augmentation. The legs are fused with graphene, greatly enhancing jumping ability.",prereqs:[r.a.BionicLegs],agility_mult:2.5,factions:[f.a.MegaCorp,f.a.ECorp,f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.SpeechProcessor,repCost:7500,moneyCost:5e7,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.",charisma_mult:1.2,factions:[f.a.TianDiHui,f.a.Chongqing,f.a.Sector12,f.a.NewTokyo,f.a.Aevum,f.a.Ishima,f.a.Volhaven,f.a.Silhouette]}),new a.a({name:r.a.TITN41Injection,repCost:25e3,moneyCost:19e7,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.",charisma_mult:1.15,charisma_exp_mult:1.15,factions:[f.a.Silhouette]}),new a.a({name:r.a.EnhancedSocialInteractionImplant,repCost:375e3,moneyCost:1375e6,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 expressions, body language, and the voice tone, and 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.",charisma_mult:1.6,charisma_exp_mult:1.6,factions:[f.a.BachmanAssociates,f.a.NWO,f.a.ClarkeIncorporated,f.a.OmniTekIncorporated,f.a.FourSigma]}),new a.a({name:r.a.BitWire,repCost:3750,moneyCost:1e7,info:"A small brain implant embedded in the cerebrum. This regulates and improves the brain's computing capabilities.",hacking_mult:1.05,factions:[f.a.CyberSec,f.a.NiteSec]}),new a.a({name:r.a.ArtificialBioNeuralNetwork,repCost:275e3,moneyCost:3e9,info:"A network consisting of millions of nanoprocessors is embedded into the brain. The network is meant to mimic the way a biological brain solves a problem, with 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 the user to solve much more complex problems at a much faster rate.",hacking_speed_mult:1.03,hacking_money_mult:1.15,hacking_mult:1.12,factions:[f.a.BitRunners,f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.ArtificialSynapticPotentiation,repCost:6250,moneyCost:8e7,info:"The body is injected with a chemical that artificially induces synaptic potentiation, otherwise known as the strengthening of synapses. This results in enhanced cognitive abilities.",hacking_speed_mult:1.02,hacking_chance_mult:1.05,hacking_exp_mult:1.05,factions:[f.a.TheBlackHand,f.a.NiteSec]}),new a.a({name:r.a.EnhancedMyelinSheathing,repCost:1e5,moneyCost:1375e6,info:"Electrical signals are used to induce a new, artificial form of myelinogenesis 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.",hacking_speed_mult:1.03,hacking_exp_mult:1.1,hacking_mult:1.08,factions:[f.a.FulcrumSecretTechnologies,f.a.BitRunners,f.a.TheBlackHand]}),new a.a({name:r.a.SynapticEnhancement,repCost:2e3,moneyCost:75e5,info:"A small cranial implant that continuously uses weak electrical signals to stimulate the brain and induce stronger synaptic activity. This improves the user's cognitive abilities.",hacking_speed_mult:1.03,factions:[f.a.CyberSec,f.a.Aevum]}),new a.a({name:r.a.NeuralRetentionEnhancement,repCost:2e4,moneyCost:25e7,info:"Chemical injections are used to permanently alter and strengthen the brain's neuronal circuits, strengthening the ability to retain information.",hacking_exp_mult:1.25,factions:[f.a.NiteSec]}),new a.a({name:r.a.DataJack,repCost:112500,moneyCost:45e7,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.",hacking_money_mult:1.25,factions:[f.a.BitRunners,f.a.TheBlackHand,f.a.NiteSec,f.a.Chongqing,f.a.NewTokyo]}),new a.a({name:r.a.ENM,repCost:15e3,moneyCost:25e7,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.",hacking_mult:1.08,factions:[f.a.BitRunners,f.a.TheBlackHand,f.a.NiteSec,f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.BladeIndustries]}),new a.a({name:r.a.ENMCore,repCost:175e3,moneyCost:25e8,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.",prereqs:[r.a.ENM],hacking_speed_mult:1.03,hacking_money_mult:1.1,hacking_chance_mult:1.03,hacking_exp_mult:1.07,hacking_mult:1.07,factions:[f.a.BitRunners,f.a.TheBlackHand,f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.BladeIndustries]}),new a.a({name:r.a.ENMCoreV2,repCost:1e6,moneyCost:45e8,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 information on a network by re-routing traffic, spoofing IP addresses, and altering the data inside network packets.",prereqs:[r.a.ENMCore,r.a.ENM],hacking_speed_mult:1.05,hacking_money_mult:1.3,hacking_chance_mult:1.05,hacking_exp_mult:1.15,hacking_mult:1.08,factions:[f.a.BitRunners,f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.BladeIndustries,f.a.OmniTekIncorporated,f.a.KuaiGongInternational]}),new a.a({name:r.a.ENMCoreV3,repCost:175e4,moneyCost:75e8,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.",prereqs:[r.a.ENMCoreV2,r.a.ENMCore,r.a.ENM],hacking_speed_mult:1.05,hacking_money_mult:1.4,hacking_chance_mult:1.1,hacking_exp_mult:1.25,hacking_mult:1.1,factions:[f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.Daedalus,f.a.TheCovenant,f.a.Illuminati]}),new a.a({name:r.a.ENMAnalyzeEngine,repCost:625e3,moneyCost:6e9,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.",prereqs:[r.a.ENM],hacking_speed_mult:1.1,factions:[f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.Daedalus,f.a.TheCovenant,f.a.Illuminati]}),new a.a({name:r.a.ENMDMA,repCost:1e6,moneyCost:7e9,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.",prereqs:[r.a.ENM],hacking_money_mult:1.4,hacking_chance_mult:1.2,factions:[f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.Daedalus,f.a.TheCovenant,f.a.Illuminati]}),new a.a({name:r.a.Neuralstimulator,repCost:5e4,moneyCost:3e9,info:"A cranial implant that intelligently stimulates certain areas of the brain in order to improve cognitive functions.",hacking_speed_mult:1.02,hacking_chance_mult:1.1,hacking_exp_mult:1.12,factions:[f.a.TheBlackHand,f.a.Chongqing,f.a.Sector12,f.a.NewTokyo,f.a.Aevum,f.a.Ishima,f.a.Volhaven,f.a.BachmanAssociates,f.a.ClarkeIncorporated,f.a.FourSigma]}),new a.a({name:r.a.NeuralAccelerator,repCost:2e5,moneyCost:175e7,info:"A microprocessor that accelerates the processing speed of biological neural networks. This is a cranial implant that is embedded inside the brain.",hacking_mult:1.1,hacking_exp_mult:1.15,hacking_money_mult:1.2,factions:[f.a.BitRunners]}),new a.a({name:r.a.CranialSignalProcessorsG1,repCost:1e4,moneyCost:7e7,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.",hacking_speed_mult:1.01,hacking_mult:1.05,factions:[f.a.CyberSec,f.a.NiteSec]}),new a.a({name:r.a.CranialSignalProcessorsG2,repCost:18750,moneyCost:125e6,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.",prereqs:[r.a.CranialSignalProcessorsG1],hacking_speed_mult:1.02,hacking_chance_mult:1.05,hacking_mult:1.07,factions:[f.a.CyberSec,f.a.NiteSec]}),new a.a({name:r.a.CranialSignalProcessorsG3,repCost:5e4,moneyCost:55e7,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.",prereqs:[r.a.CranialSignalProcessorsG2,r.a.CranialSignalProcessorsG1],hacking_speed_mult:1.02,hacking_money_mult:1.15,hacking_mult:1.09,factions:[f.a.NiteSec,f.a.TheBlackHand,f.a.BitRunners]}),new a.a({name:r.a.CranialSignalProcessorsG4,repCost:125e3,moneyCost:11e8,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.",prereqs:[r.a.CranialSignalProcessorsG3,r.a.CranialSignalProcessorsG2,r.a.CranialSignalProcessorsG1],hacking_speed_mult:1.02,hacking_money_mult:1.2,hacking_grow_mult:1.25,factions:[f.a.TheBlackHand,f.a.BitRunners]}),new a.a({name:r.a.CranialSignalProcessorsG5,repCost:25e4,moneyCost:225e7,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.",prereqs:[r.a.CranialSignalProcessorsG4,r.a.CranialSignalProcessorsG3,r.a.CranialSignalProcessorsG2,r.a.CranialSignalProcessorsG1],hacking_mult:1.3,hacking_money_mult:1.25,hacking_grow_mult:1.75,factions:[f.a.BitRunners]}),new a.a({name:r.a.NeuronalDensification,repCost:187500,moneyCost:1375e6,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.",hacking_mult:1.15,hacking_exp_mult:1.1,hacking_speed_mult:1.03,factions:[f.a.ClarkeIncorporated]}),new a.a({name:r.a.NuoptimalInjectorImplant,repCost:5e3,moneyCost:2e7,info:"This torso implant automatically injects nootropic supplements into the bloodstream to improve memory, increase focus, and provide other cognitive enhancements.",company_rep_mult:1.2,factions:[f.a.TianDiHui,f.a.Volhaven,f.a.NewTokyo,f.a.Chongqing,f.a.ClarkeIncorporated,f.a.FourSigma,f.a.BachmanAssociates]}),new a.a({name:r.a.SpeechEnhancement,repCost:2500,moneyCost:125e5,info:"An advanced neural implant that improves your speaking abilities, making you more convincing and likable in conversations and overall improving your social interactions.",company_rep_mult:1.1,charisma_mult:1.1,factions:[f.a.TianDiHui,f.a.SpeakersForTheDead,f.a.FourSigma,f.a.KuaiGongInternational,f.a.ClarkeIncorporated,f.a.BachmanAssociates]}),new a.a({name:r.a.FocusWire,repCost:75e3,moneyCost:9e8,info:"A cranial implant that stops procrastination by blocking specific neural pathways in the brain.",hacking_exp_mult:1.05,strength_exp_mult:1.05,defense_exp_mult:1.05,dexterity_exp_mult:1.05,agility_exp_mult:1.05,charisma_exp_mult:1.05,company_rep_mult:1.1,work_money_mult:1.2,factions:[f.a.BachmanAssociates,f.a.ClarkeIncorporated,f.a.FourSigma,f.a.KuaiGongInternational]}),new a.a({name:r.a.PCDNI,repCost:375e3,moneyCost:375e7,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.",company_rep_mult:1.3,hacking_mult:1.08,factions:[f.a.FourSigma,f.a.OmniTekIncorporated,f.a.ECorp,f.a.BladeIndustries]}),new a.a({name:r.a.PCDNIOptimizer,repCost:5e5,moneyCost:45e8,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 a connected computer.",prereqs:[r.a.PCDNI],company_rep_mult:1.75,hacking_mult:1.1,factions:[f.a.FulcrumSecretTechnologies,f.a.ECorp,f.a.BladeIndustries]}),new a.a({name:r.a.PCDNINeuralNetwork,repCost:15e5,moneyCost:75e8,info:"This is an additional installation that upgrades the functionality of the PC Direct-Neural Interface augmentation. When connected to a computer, The Neural Network upgrade allows the user to use their own brain's processing power to aid the computer in computational tasks.",prereqs:[r.a.PCDNI],company_rep_mult:2,hacking_mult:1.1,hacking_speed_mult:1.05,factions:[f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.ADRPheromone1,repCost:3750,moneyCost:175e5,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.",company_rep_mult:1.1,faction_rep_mult:1.1,factions:[f.a.TianDiHui,f.a.TheSyndicate,f.a.NWO,f.a.MegaCorp,f.a.FourSigma]}),new a.a({name:r.a.ADRPheromone2,repCost:62500,moneyCost:55e7,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.",company_rep_mult:1.2,faction_rep_mult:1.2,factions:[f.a.Silhouette,f.a.FourSigma,f.a.BachmanAssociates,f.a.ClarkeIncorporated]}),new a.a({name:r.a.ShadowsSimulacrum,repCost:37500,moneyCost:4e8,info:"A crude but functional matter phase-shifter module that is embedded in the brainstem and cerebellum. This augmentation was developed by criminal organizations and allows the user to project and control holographic simulacrums within a large radius. These simulacrums are commonly used for espionage and surveillance work.",company_rep_mult:1.15,faction_rep_mult:1.15,factions:[f.a.TheSyndicate,f.a.TheDarkArmy,f.a.SpeakersForTheDead]}),new a.a({name:r.a.HacknetNodeCPUUpload,repCost:3750,moneyCost:11e6,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.",hacknet_node_money_mult:1.15,hacknet_node_purchase_cost_mult:.85,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeCacheUpload,repCost:2500,moneyCost:55e5,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.",hacknet_node_money_mult:1.1,hacknet_node_level_cost_mult:.85,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeNICUpload,repCost:1875,moneyCost:45e5,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.",hacknet_node_money_mult:1.1,hacknet_node_purchase_cost_mult:.9,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeKernelDNI,repCost:7500,moneyCost:4e7,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 electrochemical signals.",hacknet_node_money_mult:1.25,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeCoreDNI,repCost:12500,moneyCost:6e7,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 electrochemical signals.",hacknet_node_money_mult:1.45,factions:[f.a.Netburners]}),new a.a({name:r.a.Neurotrainer1,repCost:1e3,moneyCost:4e6,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.",hacking_exp_mult:1.1,strength_exp_mult:1.1,defense_exp_mult:1.1,dexterity_exp_mult:1.1,agility_exp_mult:1.1,charisma_exp_mult:1.1,factions:[f.a.CyberSec,f.a.Aevum]}),new a.a({name:r.a.Neurotrainer2,repCost:1e4,moneyCost:45e6,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.",hacking_exp_mult:1.15,strength_exp_mult:1.15,defense_exp_mult:1.15,dexterity_exp_mult:1.15,agility_exp_mult:1.15,charisma_exp_mult:1.15,factions:[f.a.BitRunners,f.a.NiteSec]}),new a.a({name:r.a.Neurotrainer3,repCost:25e3,moneyCost:13e7,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.",hacking_exp_mult:1.2,strength_exp_mult:1.2,defense_exp_mult:1.2,dexterity_exp_mult:1.2,agility_exp_mult:1.2,charisma_exp_mult:1.2,factions:[f.a.NWO,f.a.FourSigma]}),new a.a({name:r.a.Hypersight,repCost:15e4,moneyCost:275e7,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 walls, thus providing 'x-ray vision'-like capabilities.",dexterity_mult:1.4,hacking_speed_mult:1.03,hacking_money_mult:1.1,factions:[f.a.BladeIndustries,f.a.KuaiGongInternational]}),new a.a({name:r.a.LuminCloaking1,repCost:1500,moneyCost:5e6,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 to the naked eye.",agility_mult:1.05,crime_money_mult:1.1,factions:[f.a.SlumSnakes,f.a.Tetrads]}),new a.a({name:r.a.LuminCloaking2,repCost:5e3,moneyCost:3e7,info:"This is a more advanced version of the LuminCloaking-V1 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.",prereqs:[r.a.LuminCloaking1],agility_mult:1.1,defense_mult:1.1,crime_money_mult:1.25,factions:[f.a.SlumSnakes,f.a.Tetrads]}),new a.a({name:r.a.SmartSonar,repCost:22500,moneyCost:75e6,info:"A cochlear implant that helps the player detect and locate enemies using sound propagation.",dexterity_mult:1.1,dexterity_exp_mult:1.15,crime_money_mult:1.25,factions:[f.a.SlumSnakes]}),new a.a({name:r.a.PowerRecirculator,repCost:25e3,moneyCost:18e7,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.",hacking_mult:1.05,strength_mult:1.05,defense_mult:1.05,dexterity_mult:1.05,agility_mult:1.05,charisma_mult:1.05,hacking_exp_mult:1.1,strength_exp_mult:1.1,defense_exp_mult:1.1,dexterity_exp_mult:1.1,agility_exp_mult:1.1,charisma_exp_mult:1.1,factions:[f.a.Tetrads,f.a.TheDarkArmy,f.a.TheSyndicate,f.a.NWO]}),new a.a({name:r.a.QLink,repCost:1875e3,moneyCost:25e12,info:`A brain implant that wirelessly connects you to the ${f.a.Illuminati}'s quantum supercomputer, allowing you to access and use its incredible computing power.`,hacking_mult:1.75,hacking_speed_mult:2,hacking_chance_mult:2.5,hacking_money_mult:4,factions:[f.a.Illuminati]}),new a.a({name:r.a.SPTN97,repCost:125e4,moneyCost:4875e6,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.",strength_mult:1.75,defense_mult:1.75,dexterity_mult:1.75,agility_mult:1.75,hacking_mult:1.15,factions:[f.a.TheCovenant]}),new a.a({name:r.a.HiveMind,repCost:15e5,moneyCost:55e8,info:`A brain implant developed by ${f.a.ECorp}. They do not reveal what exactly the implant does, but they promise that it will greatly enhance your abilities.`,hacking_grow_mult:3,stats:null,factions:[f.a.ECorp]}),new a.a({name:r.a.TheRedPill,repCost:25e5,moneyCost:0,info:"It's time to leave the cave.",stats:null,isSpecial:!0,factions:[f.a.Daedalus]}),new a.a({name:r.a.CordiARCReactor,repCost:1125e3,moneyCost:5e9,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 amounts of clean energy for the body.",strength_mult:1.35,defense_mult:1.35,dexterity_mult:1.35,agility_mult:1.35,strength_exp_mult:1.35,defense_exp_mult:1.35,dexterity_exp_mult:1.35,agility_exp_mult:1.35,factions:[f.a.MegaCorp]}),new a.a({name:r.a.SmartJaw,repCost:375e3,moneyCost:275e7,info:"A bionic jaw that contains advanced hardware and software capable of psychoanalyzing and profiling the personality of others using optical imaging software.",charisma_mult:1.5,charisma_exp_mult:1.5,company_rep_mult:1.25,faction_rep_mult:1.25,factions:[f.a.BachmanAssociates]}),new a.a({name:r.a.Neotra,repCost:562500,moneyCost:2875e6,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.",strength_mult:1.55,defense_mult:1.55,factions:[f.a.BladeIndustries]}),new a.a({name:r.a.Xanipher,repCost:875e3,moneyCost:425e7,info:"A concoction of advanced nanobots that is orally ingested into the body. These nanobots induce physiological changes and significantly improve the body's functioning in all aspects.",hacking_mult:1.2,strength_mult:1.2,defense_mult:1.2,dexterity_mult:1.2,agility_mult:1.2,charisma_mult:1.2,hacking_exp_mult:1.15,strength_exp_mult:1.15,defense_exp_mult:1.15,dexterity_exp_mult:1.15,agility_exp_mult:1.15,charisma_exp_mult:1.15,factions:[f.a.NWO]}),new a.a({name:r.a.HydroflameLeftArm,repCost:125e4,moneyCost:25e11,info:"The left arm of a legendary BitRunner who ascended beyond this world. It projects a light blue energy shield that protects the exposed inner parts. Even though it contains no weapons, the advanced tungsten titanium alloy increases the user's strength to unbelievable levels. The augmentation gets more powerful over time for seemingly no reason.",strength_mult:2.7,factions:[f.a.NWO]}),new a.a({name:r.a.nextSENS,repCost:437500,moneyCost:1925e6,info:"The body is genetically re-engineered to maintain a state of negligible senescence, preventing the body from deteriorating with age.",hacking_mult:1.2,strength_mult:1.2,defense_mult:1.2,dexterity_mult:1.2,agility_mult:1.2,charisma_mult:1.2,factions:[f.a.ClarkeIncorporated]}),new a.a({name:r.a.OmniTekInfoLoad,repCost:625e3,moneyCost:2875e6,info:"OmniTek's data and information repository is uploaded into your brain, enhancing your programming and hacking abilities.",hacking_mult:1.2,hacking_exp_mult:1.25,factions:[f.a.OmniTekIncorporated]}),new a.a({name:r.a.PhotosyntheticCells,repCost:562500,moneyCost:275e7,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.",strength_mult:1.4,defense_mult:1.4,agility_mult:1.4,factions:[f.a.KuaiGongInternational]}),new a.a({name:r.a.Neurolink,repCost:875e3,moneyCost:4375e6,info:`A brain implant that provides a high-bandwidth, direct neural link between your mind and the ${f.a.BitRunners}' data servers, which reportedly contain the largest database of hacking tools and information in the world.`,hacking_mult:1.15,hacking_exp_mult:1.2,hacking_chance_mult:1.1,hacking_speed_mult:1.05,programs:[o.a.FTPCrackProgram.name,o.a.RelaySMTPProgram.name],factions:[f.a.BitRunners]}),new a.a({name:r.a.TheBlackHand,repCost:1e5,moneyCost:55e7,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 by just touching them.",strength_mult:1.15,dexterity_mult:1.15,hacking_mult:1.1,hacking_speed_mult:1.02,hacking_money_mult:1.1,factions:[f.a.TheBlackHand]}),new a.a({name:r.a.CRTX42AA,repCost:45e3,moneyCost:225e6,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.",hacking_mult:1.08,hacking_exp_mult:1.15,factions:[f.a.NiteSec]}),new a.a({name:r.a.Neuregen,repCost:37500,moneyCost:375e6,info:"A drug that genetically modifies the neurons in the brain resulting in neurons that never die, continuously regenerate, and strengthen themselves.",hacking_exp_mult:1.4,factions:[f.a.Chongqing]}),new a.a({name:r.a.CashRoot,repCost:12500,moneyCost:125e6,info:c.a.createElement(c.a.Fragment,null,"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."),startingMoney:1e6,programs:[o.a.BruteSSHProgram.name],factions:[f.a.Sector12]}),new a.a({name:r.a.NutriGen,repCost:6250,moneyCost:25e5,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.",strength_exp_mult:1.2,defense_exp_mult:1.2,dexterity_exp_mult:1.2,agility_exp_mult:1.2,factions:[f.a.NewTokyo]}),new a.a({name:r.a.PCMatrix,repCost:1e5,moneyCost:2e9,info:"A 'Probability Computation Matrix' is installed in the frontal cortex. This implant uses advanced mathematical algorithims to rapidly identify and compute statistical outcomes of nearly every situation.",charisma_mult:1.0777,charisma_exp_mult:1.0777,work_money_mult:1.777,faction_rep_mult:1.0777,company_rep_mult:1.0777,crime_success_mult:1.0777,crime_money_mult:1.0777,programs:[o.a.DeepscanV1.name,o.a.AutoLink.name],factions:[f.a.Aevum]}),new a.a({name:r.a.INFRARet,repCost:7500,moneyCost:3e7,info:"A tiny chip that sits behind the retinae. This implant lets the user visually detect infrared radiation.",crime_success_mult:1.25,crime_money_mult:1.1,dexterity_mult:1.1,factions:[f.a.Ishima]}),new a.a({name:r.a.DermaForce,repCost:15e3,moneyCost:5e7,info:"Synthetic skin that is grafted onto the body. This skin consists of millions of nanobots capable of projecting high-density muon beams, creating an energy barrier around the user.",defense_mult:1.4,factions:[f.a.Volhaven]}),new a.a({name:r.a.GrapheneBrachiBlades,repCost:225e3,moneyCost:25e8,info:"An upgrade to the BrachiBlades augmentation. It infuses the retractable blades with an advanced graphene material making them stronger and lighter.",prereqs:[r.a.BrachiBlades],strength_mult:1.4,defense_mult:1.4,crime_success_mult:1.1,crime_money_mult:1.3,factions:[f.a.SpeakersForTheDead]}),new a.a({name:r.a.GrapheneBionicArms,repCost:5e5,moneyCost:375e7,info:"An upgrade to the Bionic Arms augmentation. It infuses the prosthetic arms with an advanced graphene material to make them stronger and lighter.",prereqs:[r.a.BionicArms],strength_mult:1.85,dexterity_mult:1.85,factions:[f.a.TheDarkArmy]}),new a.a({name:r.a.BrachiBlades,repCost:12500,moneyCost:9e7,info:"A set of retractable plasteel blades that are implanted in the arm, underneath the skin.",strength_mult:1.15,defense_mult:1.15,crime_success_mult:1.1,crime_money_mult:1.15,factions:[f.a.TheSyndicate]}),new a.a({name:r.a.BionicArms,repCost:62500,moneyCost:275e6,info:"Cybernetic arms created from plasteel and carbon fibers that completely replace the user's organic arms.",strength_mult:1.3,dexterity_mult:1.3,factions:[f.a.Tetrads]}),new a.a({name:r.a.SNA,repCost:6250,moneyCost:3e7,info:"A cranial implant that affects the user's personality, making them better at negotiation in social situations.",work_money_mult:1.1,company_rep_mult:1.15,faction_rep_mult:1.15,factions:[f.a.TianDiHui]}),new a.a({name:r.a.NeuroreceptorManager,repCost:75e3,moneyCost:55e7,info:"A brain implant carefully assembled around the synapses, which micromanages the activity and levels of various neuroreceptor chemicals and modulates electrical activity to optimize concentration, allowing the user to multitask much more effectively.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation removes the penalty for not focusing on actions such as working in a job or working for a faction."),factions:[f.a.TianDiHui]}),new a.a({name:r.a.CongruityImplant,repCost:1/0,moneyCost:5e13,info:c.a.createElement(c.a.Fragment,null,"Developed by a pioneer in Grafting research, this implant generates pulses of stability which seem to have a nullifying effect versus the Entropy virus.",c.a.createElement("br",null),c.a.createElement("br",null),c.a.createElement("b",null,"Note:")," For unknown reasons, the lowercase ",c.a.createElement("code",null,"n")," appears to be an integral component to its functionality."),stats:c.a.createElement(c.a.Fragment,null,"This Augmentation removes the Entropy virus, and prevents it from affecting you again."),factions:[]})],d=()=>[new a.a({name:r.a.EsperEyewear,repCost:1250,moneyCost:165e6,info:"Ballistic-grade protective and retractable eyewear that was designed specifically 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, lasers, blinding flashes, and gas. It is also embedded with a data processing chip that can be programmed to display an AR HUD to assist the user in field missions.",bladeburner_success_chance_mult:1.03,dexterity_mult:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.EMS4Recombination,repCost:2500,moneyCost:275e6,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, improve reflexes, and improve memory among other things.",bladeburner_success_chance_mult:1.03,bladeburner_analysis_mult:1.05,bladeburner_stamina_gain_mult:1.02,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.OrionShoulder,repCost:6250,moneyCost:55e7,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.",defense_mult:1.05,strength_mult:1.05,dexterity_mult:1.05,bladeburner_success_chance_mult:1.04,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.HyperionV1,repCost:12500,moneyCost:275e7,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.",bladeburner_success_chance_mult:1.06,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.HyperionV2,repCost:25e3,moneyCost:55e8,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-efficient, more accurate, and can fire plasma bolts at a much higher velocity than the V1 model.",prereqs:[r.a.HyperionV1],bladeburner_success_chance_mult:1.08,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.GolemSerum,repCost:31250,moneyCost:11e9,info:"A serum that permanently enhances many aspects of human capabilities, including strength, speed, immune system enhancements, and mitochondrial efficiency. The serum was originally developed by the Chinese military in an attempt to create super soldiers.",strength_mult:1.07,defense_mult:1.07,dexterity_mult:1.07,agility_mult:1.07,bladeburner_stamina_gain_mult:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.VangelisVirus,repCost:18750,moneyCost:275e7,info:"A synthetic symbiotic virus that is injected into human brain tissue. The Vangelis virus heightens the senses and focus of its host, and also enhances its intuition.",dexterity_exp_mult:1.1,bladeburner_analysis_mult:1.1,bladeburner_success_chance_mult:1.04,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.VangelisVirus3,repCost:37500,moneyCost:11e9,info:"An improved version of Vangelis, a synthetic symbiotic virus that is injected into human brain tissue. On top of the benefits of the original virus, this also grants an accelerated healing factor and enhanced reflexes.",prereqs:[r.a.VangelisVirus],defense_exp_mult:1.1,dexterity_exp_mult:1.1,bladeburner_analysis_mult:1.15,bladeburner_success_chance_mult:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.INTERLINKED,repCost:25e3,moneyCost:55e8,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.",strength_exp_mult:1.05,defense_exp_mult:1.05,dexterity_exp_mult:1.05,agility_exp_mult:1.05,bladeburner_max_stamina_mult:1.1,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeRunner,repCost:2e4,moneyCost:825e7,info:`A cybernetic foot augmentation that was specifically created for ${f.a.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.`,agility_mult:1.05,bladeburner_max_stamina_mult:1.05,bladeburner_stamina_gain_mult:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmor,repCost:12500,moneyCost:1375e6,info:`A powered exoskeleton suit designed as armor for ${f.a.Bladeburners} 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 physical abilities.`,strength_mult:1.04,defense_mult:1.04,dexterity_mult:1.04,agility_mult:1.04,bladeburner_stamina_gain_mult:1.02,bladeburner_success_chance_mult:1.03,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorPowerCells,repCost:18750,moneyCost:275e7,info:"Upgrades the BLADE-51b Tesla Armor with Ion Power Cells, which are capable of more efficiently storing and using power.",prereqs:[r.a.BladeArmor],bladeburner_success_chance_mult:1.05,bladeburner_stamina_gain_mult:1.02,bladeburner_max_stamina_mult:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorEnergyShielding,repCost:21250,moneyCost:55e8,info:"Upgrades the BLADE-51b Tesla Armor with a plasma energy propulsion system that is capable of projecting an energy shielding force field.",prereqs:[r.a.BladeArmor],defense_mult:1.05,bladeburner_success_chance_mult:1.06,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorUnibeam,repCost:31250,moneyCost:165e8,info:"Upgrades the BLADE-51b Tesla Armor with a concentrated deuterium-fluoride laser weapon. It's precision and accuracy makes it useful for quickly neutralizing threats while keeping casualties to a minimum.",prereqs:[r.a.BladeArmor],bladeburner_success_chance_mult:1.08,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorOmnibeam,repCost:62500,moneyCost:275e8,info:"Upgrades the BLADE-51b Tesla Armor Unibeam augmentation to use a multiple-fiber system. This upgraded weapon uses multiple fiber laser modules that combine together to form a single, more powerful beam of up to 2000MW.",prereqs:[r.a.BladeArmorUnibeam],bladeburner_success_chance_mult:1.1,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorIPU,repCost:15e3,moneyCost:11e8,info:"Upgrades the BLADE-51b Tesla Armor with an AI Information Processing Unit that was specially designed to analyze Synthoid related data and information.",prereqs:[r.a.BladeArmor],bladeburner_analysis_mult:1.15,bladeburner_success_chance_mult:1.02,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladesSimulacrum,repCost:1250,moneyCost:15e10,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 specifically weaponized by Bladeburner units to be used against Synthoids.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation allows you to perform Bladeburner actions and other actions (such as working, commiting crimes, etc.) at the same time."),isSpecial:!0,factions:[f.a.Bladeburners]})],p=()=>[new a.a({name:r.a.StaneksGift1,repCost:0,moneyCost:0,info:'Allison "Mother" Stanek imparts you with her gift. An experimental Augmentation implanted at the base of the neck. It allows you to overclock your entire system by carefully changing the configuration.',isSpecial:!0,hacking_chance_mult:.9,hacking_speed_mult:.9,hacking_money_mult:.9,hacking_grow_mult:.9,hacking_mult:.9,strength_mult:.9,defense_mult:.9,dexterity_mult:.9,agility_mult:.9,charisma_mult:.9,hacking_exp_mult:.9,strength_exp_mult:.9,defense_exp_mult:.9,dexterity_exp_mult:.9,agility_exp_mult:.9,charisma_exp_mult:.9,company_rep_mult:.9,faction_rep_mult:.9,crime_money_mult:.9,crime_success_mult:.9,hacknet_node_money_mult:.9,hacknet_node_purchase_cost_mult:1.1,hacknet_node_ram_cost_mult:1.1,hacknet_node_core_cost_mult:1.1,hacknet_node_level_cost_mult:1.1,work_money_mult:.9,stats:c.a.createElement(c.a.Fragment,null,"Its unstable nature decreases all your stats by 10%"),factions:[f.a.ChurchOfTheMachineGod]}),new a.a({name:r.a.StaneksGift2,repCost:1e6,moneyCost:0,info:"The next evolution is near, a coming together of man and machine. A synthesis greater than the birth of the human organism. Time spent with the gift has allowed for acclimatization of the invasive augment and the toll it takes upon your frame granting lesser penalty of 5% to all stats.",prereqs:[r.a.StaneksGift1],isSpecial:!0,hacking_chance_mult:.95/.9,hacking_speed_mult:.95/.9,hacking_money_mult:.95/.9,hacking_grow_mult:.95/.9,hacking_mult:.95/.9,strength_mult:.95/.9,defense_mult:.95/.9,dexterity_mult:.95/.9,agility_mult:.95/.9,charisma_mult:.95/.9,hacking_exp_mult:.95/.9,strength_exp_mult:.95/.9,defense_exp_mult:.95/.9,dexterity_exp_mult:.95/.9,agility_exp_mult:.95/.9,charisma_exp_mult:.95/.9,company_rep_mult:.95/.9,faction_rep_mult:.95/.9,crime_money_mult:.95/.9,crime_success_mult:.95/.9,hacknet_node_money_mult:.95/.9,hacknet_node_purchase_cost_mult:1.05/1.1,hacknet_node_ram_cost_mult:1.05/1.1,hacknet_node_core_cost_mult:1.05/1.1,hacknet_node_level_cost_mult:1.05/1.1,work_money_mult:.95/.9,stats:c.a.createElement(c.a.Fragment,null,"The penalty for the gift is reduced to 5%"),factions:[f.a.ChurchOfTheMachineGod]}),new a.a({name:r.a.StaneksGift3,repCost:1e8,moneyCost:0,info:"The synthesis of human and machine is nothing to fear. It is our destiny. You will become greater than the sum of our parts. As One. Embrace your gift fully and wholly free of it's accursed toll. Serenity brings tranquility the form of no longer suffering a stat penalty. ",prereqs:[r.a.StaneksGift2,r.a.StaneksGift1],isSpecial:!0,hacking_chance_mult:1/.95,hacking_speed_mult:1/.95,hacking_money_mult:1/.95,hacking_grow_mult:1/.95,hacking_mult:1/.95,strength_mult:1/.95,defense_mult:1/.95,dexterity_mult:1/.95,agility_mult:1/.95,charisma_mult:1/.95,hacking_exp_mult:1/.95,strength_exp_mult:1/.95,defense_exp_mult:1/.95,dexterity_exp_mult:1/.95,agility_exp_mult:1/.95,charisma_exp_mult:1/.95,company_rep_mult:1/.95,faction_rep_mult:1/.95,crime_money_mult:1/.95,crime_success_mult:1/.95,hacknet_node_money_mult:1/.95,hacknet_node_purchase_cost_mult:1/1.05,hacknet_node_ram_cost_mult:1/1.05,hacknet_node_core_cost_mult:1/1.05,hacknet_node_level_cost_mult:1/1.05,work_money_mult:1/.95,stats:c.a.createElement(c.a.Fragment,null,"Stanek's Gift has no penalty."),factions:[f.a.ChurchOfTheMachineGod]})];function g(){const t=u.a.Donations/1e6/100;return new a.a({name:r.a.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.",stats:c.a.createElement(c.a.Fragment,null,"This special augmentation can be leveled up infinitely. Each level of this augmentation increases MOST multipliers by 1% (+",(100*t).toFixed(6),"% boosted by real life blood donations), stacking multiplicatively."),isSpecial:!0,hacking_chance_mult:1.01+t,hacking_speed_mult:1.01+t,hacking_money_mult:1.01+t,hacking_grow_mult:1.01+t,hacking_mult:1.01+t,strength_mult:1.01+t,defense_mult:1.01+t,dexterity_mult:1.01+t,agility_mult:1.01+t,charisma_mult:1.01+t,hacking_exp_mult:1.01+t,strength_exp_mult:1.01+t,defense_exp_mult:1.01+t,dexterity_exp_mult:1.01+t,agility_exp_mult:1.01+t,charisma_exp_mult:1.01+t,company_rep_mult:1.01+t,faction_rep_mult:1.01+t,crime_money_mult:1.01+t,crime_success_mult:1.01+t,hacknet_node_money_mult:1.01+t,hacknet_node_purchase_cost_mult:1/(1.01+t),hacknet_node_ram_cost_mult:1/(1.01+t),hacknet_node_core_cost_mult:1/(1.01+t),hacknet_node_level_cost_mult:1/(1.01+t),work_money_mult:1.01+t,factions:Object.values(f.a).filter(t=>![f.a.ShadowsOfAnarchy,f.a.Bladeburners,f.a.ChurchOfTheMachineGod].includes(t))})}function y(){const t=function(){const t=[{bonuses:{hacking_chance_mult:1.25,hacking_speed_mult:1.1,hacking_money_mult:1.25,hacking_grow_mult:1.1},description:"Increases the player's hacking chance by 25%.
Increases the player's hacking speed by 10%.
Increases the amount of money the player's gains from hacking by 25%.
Improves grow() by 10%."},{bonuses:{hacking_mult:1.15,hacking_exp_mult:2},description:"Increases the player's hacking skill by 15%.
Increases the player's hacking experience gain rate by 100%."},{bonuses:{strength_mult:1.25,strength_exp_mult:2,defense_mult:1.25,defense_exp_mult:2,dexterity_mult:1.25,dexterity_exp_mult:2,agility_mult:1.25,agility_exp_mult:2},description:"Increases all of the player's combat stats by 25%.
Increases all of the player's combat stat experience gain rate by 100%."},{bonuses:{charisma_mult:1.5,charisma_exp_mult:2},description:"This augmentation increases the player's charisma by 50%.
Increases the player's charisma experience gain rate by 100%."},{bonuses:{hacknet_node_money_mult:1.2,hacknet_node_purchase_cost_mult:.85,hacknet_node_ram_cost_mult:.85,hacknet_node_core_cost_mult:.85,hacknet_node_level_cost_mult:.85},description:"Increases the amount of money produced by Hacknet Nodes by 20%.
Decreases all costs related to Hacknet Node by 15%."},{bonuses:{company_rep_mult:1.25,faction_rep_mult:1.15,work_money_mult:1.7},description:"Increases the amount of money the player gains from working by 70%.
Increases the amount of reputation the player gains when working for a company by 25%.
Increases the amount of reputation the player gains for a faction by 15%."},{bonuses:{crime_success_mult:2,crime_money_mult:2},description:"Increases the player's crime success rate by 100%.
Increases the amount of money the player gains from crimes by 100%."}],e=new s.c(Math.floor(i.a.lastUpdate/36e5));for(let t=0;t<5;t++)e.step();return t[Math.floor(t.length*e.random())]}(),e={name:r.a.UnstableCircadianModulator,moneyCost:5e9,repCost:362500,info:"An experimental nanobot injection. Its unstable nature leads to unpredictable results based on your circadian rhythm.",factions:[f.a.SpeakersForTheDead]};return Object.keys(t.bonuses).forEach(n=>e[n]=t.bonuses[n]),new a.a(e)}},,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(4),r=n(9),i=n(65),o=n(89);const s=[{hackDifficulty:99,hostname:r.a.AevumECorp.toLowerCase(),moneyAvailable:{max:7e10,min:3e10},networkLayer:15,numOpenPortsRequired:5,organizationName:r.a.AevumECorp,requiredHackingSkill:{max:1400,min:1050},serverGrowth:99,specialName:r.a.AevumECorp},{hackDifficulty:99,hostname:r.a.Sector12MegaCorp.toLowerCase(),moneyAvailable:{max:6e10,min:4e10},networkLayer:15,numOpenPortsRequired:5,organizationName:r.a.Sector12MegaCorp,requiredHackingSkill:{max:1350,min:1100},serverGrowth:99,specialName:r.a.Sector12MegaCorp},{hackDifficulty:{max:88,min:72},hostname:"b-and-a",moneyAvailable:{max:3e10,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.AevumBachmanAndAssociates,requiredHackingSkill:{max:1150,min:900},serverGrowth:{max:80,min:60},specialName:r.a.AevumBachmanAndAssociates},{hackDifficulty:{max:97,min:88},hostname:"blade",literature:[i.a.BeyondMan],maxRamExponent:{max:9,min:5},moneyAvailable:{max:4e10,min:1e10},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.Sector12BladeIndustries,requiredHackingSkill:{max:1200,min:900},serverGrowth:{max:85,min:55},specialName:r.a.Sector12BladeIndustries},{hackDifficulty:99,hostname:r.a.VolhavenNWO.toLowerCase(),literature:[i.a.TheHiddenWorld],moneyAvailable:{max:4e10,min:2e10},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.VolhavenNWO,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:95,min:65},specialName:r.a.VolhavenNWO},{hackDifficulty:{max:65,min:45},hostname:"clarkinc",literature:[i.a.BeyondMan,i.a.CostOfImmortality],moneyAvailable:{max:25e9,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.AevumClarkeIncorporated,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:75,min:45},specialName:r.a.AevumClarkeIncorporated},{hackDifficulty:{max:99,min:90},hostname:"omnitek",literature:[i.a.CodedIntelligence,i.a.HistoryOfSynthoids],maxRamExponent:{max:9,min:7},moneyAvailable:{max:22e9,min:13e9},networkLayer:13,numOpenPortsRequired:5,organizationName:r.a.VolhavenOmniTekIncorporated,requiredHackingSkill:{max:1100,min:900},serverGrowth:{max:99,min:95},specialName:r.a.VolhavenOmniTekIncorporated},{hackDifficulty:{max:75,min:55},hostname:"4sigma",moneyAvailable:{max:25e9,min:15e9},networkLayer:13,numOpenPortsRequired:5,organizationName:r.a.Sector12FourSigma,requiredHackingSkill:{max:1250,min:900},serverGrowth:{max:99,min:75},specialName:r.a.Sector12FourSigma},{hackDifficulty:{max:99,min:95},hostname:"kuai-gong",moneyAvailable:{max:3e10,min:2e10},networkLayer:13,numOpenPortsRequired:5,organizationName:r.a.ChongqingKuaiGongInternational,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:99,min:90},specialName:r.a.ChongqingKuaiGongInternational},{hackDifficulty:{max:97,min:83},hostname:"fulcrumtech",literature:[i.a.SimulatedReality],maxRamExponent:{max:11,min:7},moneyAvailable:{max:18e8,min:14e8},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.AevumFulcrumTechnologies,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:99,min:80},specialName:r.a.AevumFulcrumTechnologies},{hackDifficulty:99,hostname:"fulcrumassets",moneyAvailable:1e6,networkLayer:15,numOpenPortsRequired:5,organizationName:r.a.AevumFulcrumTechnologies,requiredHackingSkill:{max:1600,min:1100},serverGrowth:1,specialName:o.a.FulcrumSecretTechnologies},{hackDifficulty:{max:92,min:78},hostname:"stormtech",moneyAvailable:{max:12e8,min:1e9},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.IshimaStormTechnologies,requiredHackingSkill:{max:1075,min:875},serverGrowth:{max:92,min:68},specialName:r.a.IshimaStormTechnologies},{hackDifficulty:{max:96,min:84},hostname:"defcomm",moneyAvailable:{max:95e7,min:8e8},networkLayer:9,numOpenPortsRequired:5,organizationName:r.a.NewTokyoDefComm,requiredHackingSkill:{max:1050,min:850},serverGrowth:{max:73,min:47},specialName:r.a.NewTokyoDefComm},{hackDifficulty:{max:90,min:70},hostname:"infocomm",moneyAvailable:{max:9e8,min:6e8},networkLayer:10,numOpenPortsRequired:5,organizationName:"InfoComm",requiredHackingSkill:{max:950,min:875},serverGrowth:{max:75,min:35}},{hackDifficulty:{max:95,min:85},hostname:"helios",literature:[i.a.BeyondMan],maxRamExponent:{max:8,min:5},moneyAvailable:{max:75e7,min:55e7},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.VolhavenHeliosLabs,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:80,min:70},specialName:r.a.VolhavenHeliosLabs},{hackDifficulty:{max:90,min:80},hostname:r.a.NewTokyoVitaLife.toLowerCase(),literature:[i.a.AGreenTomorrow],maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.NewTokyoVitaLife,requiredHackingSkill:{max:900,min:775},serverGrowth:{max:80,min:60},specialName:r.a.NewTokyoVitaLife},{hackDifficulty:{max:95,min:85},hostname:"icarus",moneyAvailable:{max:1e9,min:9e8},networkLayer:9,numOpenPortsRequired:5,organizationName:r.a.Sector12IcarusMicrosystems,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:95,min:85},specialName:r.a.Sector12IcarusMicrosystems},{hackDifficulty:{max:90,min:80},hostname:"univ-energy",maxRamExponent:{max:7,min:4},moneyAvailable:{max:12e8,min:11e8},networkLayer:9,numOpenPortsRequired:4,organizationName:r.a.Sector12UniversalEnergy,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:90,min:80},specialName:r.a.Sector12UniversalEnergy},{hackDifficulty:{max:80,min:70},hostname:"titan-labs",literature:[i.a.CodedIntelligence],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:75e7},networkLayer:11,numOpenPortsRequired:5,organizationName:"Titan Laboratories",requiredHackingSkill:{max:875,min:800},serverGrowth:{max:80,min:60}},{hackDifficulty:{max:75,min:65},hostname:"microdyne",literature:[i.a.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:11,numOpenPortsRequired:5,organizationName:"Microdyne Technologies",requiredHackingSkill:{max:875,min:800},serverGrowth:{max:90,min:70}},{hackDifficulty:{max:80,min:70},hostname:"taiyang-digital",literature:[i.a.AGreenTomorrow,i.a.BrighterThanTheSun],moneyAvailable:{max:9e8,min:8e8},networkLayer:10,numOpenPortsRequired:5,organizationName:"Taiyang Digital",requiredHackingSkill:{max:950,min:850},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:65,min:55},hostname:"galactic-cyber",moneyAvailable:{max:85e7,min:75e7},networkLayer:7,numOpenPortsRequired:5,organizationName:r.a.AevumGalacticCybersystems,requiredHackingSkill:{max:875,min:825},serverGrowth:{max:90,min:70},specialName:r.a.AevumGalacticCybersystems},{hackDifficulty:{max:90,min:80},hostname:r.a.AevumAeroCorp.toLowerCase(),literature:[i.a.ManAndMachine],moneyAvailable:{max:12e8,min:1e9},networkLayer:7,numOpenPortsRequired:5,organizationName:r.a.AevumAeroCorp,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:65,min:55},specialName:r.a.AevumAeroCorp},{hackDifficulty:{max:95,min:85},hostname:"omnia",literature:[i.a.HistoryOfSynthoids],maxRamExponent:{max:6,min:4},moneyAvailable:{max:1e9,min:9e8},networkLayer:8,numOpenPortsRequired:5,organizationName:r.a.VolhavenOmniaCybersystems,requiredHackingSkill:{max:950,min:850},serverGrowth:{max:70,min:60},specialName:r.a.VolhavenOmniaCybersystems},{hackDifficulty:{max:65,min:55},hostname:"zb-def",literature:[i.a.SyntheticMuscles],moneyAvailable:{max:11e8,min:9e8},networkLayer:10,numOpenPortsRequired:4,organizationName:"ZB Defense Industries",requiredHackingSkill:{max:825,min:775},serverGrowth:{max:75,min:65}},{hackDifficulty:{max:80,min:60},hostname:"applied-energetics",moneyAvailable:{max:1e9,min:7e8},networkLayer:11,numOpenPortsRequired:4,organizationName:"Applied Energetics",requiredHackingSkill:{max:850,min:775},serverGrowth:{max:75,min:70}},{hackDifficulty:{max:80,min:70},hostname:"solaris",literature:[i.a.AGreenTomorrow,i.a.TheFailedFrontier],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:7e8},networkLayer:9,numOpenPortsRequired:5,organizationName:r.a.ChongqingSolarisSpaceSystems,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:80,min:70},specialName:r.a.ChongqingSolarisSpaceSystems},{hackDifficulty:{max:85,min:75},hostname:r.a.Sector12DeltaOne.toLowerCase(),moneyAvailable:{max:17e8,min:13e8},networkLayer:8,numOpenPortsRequired:5,organizationName:r.a.Sector12DeltaOne,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:70,min:50},specialName:r.a.Sector12DeltaOne},{hackDifficulty:{max:85,min:75},hostname:"global-pharm",literature:[i.a.AGreenTomorrow],maxRamExponent:{max:6,min:3},moneyAvailable:{max:175e7,min:15e8},networkLayer:7,numOpenPortsRequired:4,organizationName:r.a.NewTokyoGlobalPharmaceuticals,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:90,min:80},specialName:r.a.NewTokyoGlobalPharmaceuticals},{hackDifficulty:{max:80,min:60},hostname:"nova-med",moneyAvailable:{max:125e7,min:11e8},networkLayer:10,numOpenPortsRequired:4,organizationName:r.a.IshimaNovaMedical,requiredHackingSkill:{max:850,min:775},serverGrowth:{max:85,min:65},specialName:r.a.IshimaNovaMedical},{hackDifficulty:{max:90,min:70},hostname:"zeus-med",moneyAvailable:{max:15e8,min:13e8},networkLayer:9,numOpenPortsRequired:5,organizationName:"Zeus Medical",requiredHackingSkill:{max:850,min:800},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:80,min:70},hostname:"unitalife",maxRamExponent:{max:6,min:4},moneyAvailable:{max:11e8,min:1e9},networkLayer:8,numOpenPortsRequired:4,organizationName:"UnitaLife Group",requiredHackingSkill:{max:825,min:775},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:80,min:60},hostname:"lexo-corp",maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:6,numOpenPortsRequired:4,organizationName:r.a.VolhavenLexoCorp,requiredHackingSkill:{max:750,min:650},serverGrowth:{max:65,min:55},specialName:r.a.VolhavenLexoCorp},{hackDifficulty:{max:60,min:40},hostname:"rho-construction",maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:6,numOpenPortsRequired:3,organizationName:r.a.AevumRhoConstruction,requiredHackingSkill:{max:525,min:475},serverGrowth:{max:60,min:40},specialName:r.a.AevumRhoConstruction},{hackDifficulty:{max:70,min:50},hostname:"alpha-ent",literature:[i.a.Sector12Crime],maxRamExponent:{max:7,min:4},moneyAvailable:{max:75e7,min:6e8},networkLayer:6,numOpenPortsRequired:4,organizationName:r.a.Sector12AlphaEnterprises,requiredHackingSkill:{max:600,min:500},serverGrowth:{max:60,min:50},specialName:r.a.Sector12AlphaEnterprises},{hackDifficulty:{max:80,min:70},hostname:"aevum-police",maxRamExponent:{max:6,min:4},moneyAvailable:{max:4e8,min:2e8},networkLayer:6,numOpenPortsRequired:4,organizationName:r.a.AevumPolice,requiredHackingSkill:{max:450,min:400},serverGrowth:{max:50,min:30},specialName:r.a.AevumPolice},{hackDifficulty:{max:55,min:45},hostname:"rothman-uni",literature:[i.a.SecretSocieties,i.a.TheFailedFrontier,i.a.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:25e7,min:175e6},networkLayer:5,numOpenPortsRequired:3,organizationName:r.a.Sector12RothmanUniversity,requiredHackingSkill:{max:430,min:370},serverGrowth:{max:45,min:35},specialName:r.a.Sector12RothmanUniversity},{hackDifficulty:{max:85,min:65},hostname:"zb-institute",maxRamExponent:{max:7,min:4},moneyAvailable:{max:11e8,min:8e8},networkLayer:5,numOpenPortsRequired:5,organizationName:r.a.VolhavenZBInstituteOfTechnology,requiredHackingSkill:{max:775,min:725},serverGrowth:{max:85,min:75},specialName:r.a.VolhavenZBInstituteOfTechnology},{hackDifficulty:{max:65,min:45},hostname:"summit-uni",literature:[i.a.SecretSocieties,i.a.TheFailedFrontier,i.a.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:35e7,min:2e8},networkLayer:5,numOpenPortsRequired:3,organizationName:r.a.AevumSummitUniversity,requiredHackingSkill:{max:475,min:425},serverGrowth:{max:60,min:40},specialName:r.a.AevumSummitUniversity},{hackDifficulty:{max:80,min:60},hostname:"syscore",moneyAvailable:{max:6e8,min:4e8},networkLayer:5,numOpenPortsRequired:4,organizationName:r.a.VolhavenSysCoreSecurities,requiredHackingSkill:{max:650,min:550},serverGrowth:{max:70,min:60},specialName:r.a.VolhavenSysCoreSecurities},{hackDifficulty:{max:70,min:60},hostname:"catalyst",literature:[i.a.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:55e7,min:3e8},networkLayer:5,numOpenPortsRequired:3,organizationName:"Catalyst Ventures",requiredHackingSkill:{max:450,min:400},serverGrowth:{max:55,min:25}},{hackDifficulty:{max:45,min:35},hostname:"the-hub",maxRamExponent:{max:6,min:3},moneyAvailable:{max:2e8,min:15e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"The Hub",requiredHackingSkill:{max:325,min:275},serverGrowth:{max:55,min:45}},{hackDifficulty:{max:65,min:55},hostname:r.a.VolhavenCompuTek.toLowerCase(),literature:[i.a.ManAndMachine],moneyAvailable:{max:25e7,min:22e7},networkLayer:4,numOpenPortsRequired:3,organizationName:r.a.VolhavenCompuTek,requiredHackingSkill:{max:400,min:300},serverGrowth:{max:65,min:45},specialName:r.a.VolhavenCompuTek},{hackDifficulty:{max:80,min:60},hostname:"netlink",literature:[i.a.SimulatedReality],maxRamExponent:{max:7,min:4},moneyAvailable:275e6,networkLayer:4,numOpenPortsRequired:3,organizationName:r.a.AevumNetLinkTechnologies,requiredHackingSkill:{max:425,min:375},serverGrowth:{max:75,min:45},specialName:r.a.AevumNetLinkTechnologies},{hackDifficulty:{max:65,min:35},hostname:"johnson-ortho",moneyAvailable:{max:85e6,min:7e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"Johnson Orthopedics",requiredHackingSkill:{max:300,min:250},serverGrowth:{max:65,min:35}},{hackDifficulty:1,hostname:"n00dles",literature:[],maxRamExponent:2,moneyAvailable:7e4,networkLayer:1,numOpenPortsRequired:0,organizationName:r.a.NewTokyoNoodleBar,requiredHackingSkill:1,serverGrowth:3e3,specialName:r.a.NewTokyoNoodleBar},{hackDifficulty:10,hostname:r.a.Sector12FoodNStuff.toLowerCase(),literature:[i.a.Sector12Crime],maxRamExponent:4,moneyAvailable:2e6,networkLayer:1,numOpenPortsRequired:0,organizationName:r.a.Sector12FoodNStuff,requiredHackingSkill:1,serverGrowth:5,specialName:r.a.Sector12FoodNStuff},{hackDifficulty:10,hostname:"sigma-cosmetics",maxRamExponent:4,moneyAvailable:23e5,networkLayer:1,numOpenPortsRequired:0,organizationName:"Sigma Cosmetics",requiredHackingSkill:5,serverGrowth:10},{hackDifficulty:15,hostname:"joesguns",maxRamExponent:4,moneyAvailable:25e5,networkLayer:1,numOpenPortsRequired:0,organizationName:r.a.Sector12JoesGuns,requiredHackingSkill:10,serverGrowth:20,specialName:r.a.Sector12JoesGuns},{hackDifficulty:25,hostname:"zer0",maxRamExponent:5,moneyAvailable:75e5,networkLayer:2,numOpenPortsRequired:1,organizationName:"ZER0 Nightclub",requiredHackingSkill:75,serverGrowth:40},{hackDifficulty:20,hostname:"nectar-net",maxRamExponent:4,moneyAvailable:275e4,networkLayer:2,numOpenPortsRequired:0,organizationName:"Nectar Nightclub Network",requiredHackingSkill:20,serverGrowth:25},{hackDifficulty:25,hostname:"neo-net",literature:[i.a.TheHiddenWorld],maxRamExponent:5,moneyAvailable:5e6,networkLayer:3,numOpenPortsRequired:1,organizationName:"Neo Nightclub Network",requiredHackingSkill:50,serverGrowth:25},{hackDifficulty:30,hostname:"silver-helix",literature:[i.a.NewTriads],maxRamExponent:6,moneyAvailable:45e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Silver Helix",requiredHackingSkill:150,serverGrowth:30},{hackDifficulty:15,hostname:"hong-fang-tea",literature:[i.a.BrighterThanTheSun],maxRamExponent:4,moneyAvailable:3e6,networkLayer:1,numOpenPortsRequired:0,organizationName:"HongFang Teahouse",requiredHackingSkill:30,serverGrowth:20},{hackDifficulty:15,hostname:"harakiri-sushi",maxRamExponent:4,moneyAvailable:4e6,networkLayer:1,numOpenPortsRequired:0,organizationName:"HaraKiri Sushi Bar Network",requiredHackingSkill:40,serverGrowth:40},{hackDifficulty:20,hostname:"phantasy",maxRamExponent:5,moneyAvailable:24e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Phantasy Club",requiredHackingSkill:100,serverGrowth:35},{hackDifficulty:15,hostname:"max-hardware",maxRamExponent:5,moneyAvailable:1e7,networkLayer:2,numOpenPortsRequired:1,organizationName:"Max Hardware Store",requiredHackingSkill:80,serverGrowth:30},{hackDifficulty:{max:35,min:25},hostname:"omega-net",literature:[i.a.TheNewGod],maxRamExponent:5,moneyAvailable:{max:7e7,min:6e7},networkLayer:3,numOpenPortsRequired:2,organizationName:r.a.IshimaOmegaSoftware,requiredHackingSkill:{max:220,min:180},serverGrowth:{max:40,min:30},specialName:r.a.IshimaOmegaSoftware},{hackDifficulty:{max:45,min:35},hostname:"crush-fitness",moneyAvailable:{max:6e7,min:4e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"Crush Fitness",requiredHackingSkill:{max:275,min:225},serverGrowth:{max:33,min:27},specialName:r.a.AevumCrushFitnessGym},{hackDifficulty:30,hostname:"iron-gym",maxRamExponent:5,moneyAvailable:2e7,networkLayer:1,numOpenPortsRequired:1,organizationName:r.a.Sector12IronGym+" Network",requiredHackingSkill:100,serverGrowth:20,specialName:r.a.Sector12IronGym},{hackDifficulty:{max:55,min:45},hostname:"millenium-fitness",maxRamExponent:{max:8,min:4},moneyAvailable:25e7,networkLayer:6,numOpenPortsRequired:3,organizationName:"Millenium Fitness Network",requiredHackingSkill:{max:525,min:475},serverGrowth:{max:45,min:25},specialName:r.a.VolhavenMilleniumFitnessGym},{hackDifficulty:{max:65,min:55},hostname:"powerhouse-fitness",maxRamExponent:{max:6,min:4},moneyAvailable:9e8,networkLayer:14,numOpenPortsRequired:5,organizationName:"Powerhouse Fitness",requiredHackingSkill:{max:1100,min:950},serverGrowth:{max:60,min:50},specialName:r.a.Sector12PowerhouseGym},{hackDifficulty:{max:60,min:40},hostname:"snap-fitness",moneyAvailable:45e7,networkLayer:7,numOpenPortsRequired:4,organizationName:"Snap Fitness",requiredHackingSkill:{max:800,min:675},serverGrowth:{max:60,min:40},specialName:r.a.AevumSnapFitnessGym},{hackDifficulty:0,hostname:"run4theh111z",literature:[i.a.SimulatedReality,i.a.TheNewGod],maxRamExponent:{max:9,min:5},moneyAvailable:0,networkLayer:11,numOpenPortsRequired:4,organizationName:"The Runners",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:o.a.BitRunnersServer},{hackDifficulty:0,hostname:"I.I.I.I",literature:[i.a.DemocracyIsDead],maxRamExponent:{max:8,min:4},moneyAvailable:0,networkLayer:5,numOpenPortsRequired:3,organizationName:"I.I.I.I",requiredHackingSkill:{max:365,min:340},serverGrowth:0,specialName:o.a.TheBlackHandServer},{hackDifficulty:0,hostname:"avmnite-02h",literature:[i.a.DemocracyIsDead],maxRamExponent:{max:7,min:4},moneyAvailable:0,networkLayer:4,numOpenPortsRequired:2,organizationName:a.a.NiteSec,requiredHackingSkill:{max:220,min:202},serverGrowth:0,specialName:o.a.NiteSecServer},{hackDifficulty:0,hostname:".",maxRamExponent:4,moneyAvailable:0,networkLayer:13,numOpenPortsRequired:4,organizationName:".",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:o.a.TheDarkArmyServer},{hackDifficulty:0,hostname:"CSEC",literature:[i.a.DemocracyIsDead],maxRamExponent:3,moneyAvailable:0,networkLayer:2,numOpenPortsRequired:1,organizationName:a.a.CyberSec,requiredHackingSkill:{max:60,min:51},serverGrowth:0,specialName:o.a.CyberSecServer},{hackDifficulty:0,hostname:"The-Cave",literature:[i.a.AlphaOmega],moneyAvailable:0,networkLayer:15,numOpenPortsRequired:5,organizationName:"Helios",requiredHackingSkill:925,serverGrowth:0,specialName:o.a.DaedalusServer},{hackDifficulty:0,hostname:"w0r1d_d43m0n",moneyAvailable:0,numOpenPortsRequired:5,organizationName:"w0r1d_d43m0n",requiredHackingSkill:3e3,serverGrowth:0,specialName:o.a.WorldDaemon},{hostname:o.a.DarkWeb,moneyAvailable:0,numOpenPortsRequired:5,organizationName:o.a.DarkWeb,requiredHackingSkill:1,specialName:o.a.DarkWeb}]},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(10),r=n(31);class i{constructor(t){this.name=t.name,this.nextPosition=t.nextPosition,this.baseSalary=t.baseSalary,this.repMultiplier=t.repMultiplier,this.requiredHacking=null!=t.reqdHacking?t.reqdHacking:0,this.requiredStrength=null!=t.reqdStrength?t.reqdStrength:0,this.requiredDefense=null!=t.reqdDefense?t.reqdDefense:0,this.requiredDexterity=null!=t.reqdDexterity?t.reqdDexterity:0,this.requiredAgility=null!=t.reqdAgility?t.reqdAgility:0,this.requiredCharisma=null!=t.reqdCharisma?t.reqdCharisma:0,this.requiredReputation=null!=t.reqdReputation?t.reqdReputation:0,this.hackingEffectiveness=null!=t.hackingEffectiveness?t.hackingEffectiveness:0,this.strengthEffectiveness=null!=t.strengthEffectiveness?t.strengthEffectiveness:0,this.defenseEffectiveness=null!=t.defenseEffectiveness?t.defenseEffectiveness:0,this.dexterityEffectiveness=null!=t.dexterityEffectiveness?t.dexterityEffectiveness:0,this.agilityEffectiveness=null!=t.agilityEffectiveness?t.agilityEffectiveness:0,this.charismaEffectiveness=null!=t.charismaEffectiveness?t.charismaEffectiveness:0,100!==Math.round(this.hackingEffectiveness+this.strengthEffectiveness+this.defenseEffectiveness+this.dexterityEffectiveness+this.agilityEffectiveness+this.charismaEffectiveness)&&console.error(`CompanyPosition ${this.name} parameters do not sum to 100`),this.hackingExpGain=null!=t.hackingExpGain?t.hackingExpGain:0,this.strengthExpGain=null!=t.strengthExpGain?t.strengthExpGain:0,this.defenseExpGain=null!=t.defenseExpGain?t.defenseExpGain:0,this.dexterityExpGain=null!=t.dexterityExpGain?t.dexterityExpGain:0,this.agilityExpGain=null!=t.agilityExpGain?t.agilityExpGain:0,this.charismaExpGain=null!=t.charismaExpGain?t.charismaExpGain:0}calculateJobPerformance(t,e,n,r,i,o){const s=this.hackingEffectiveness*t/a.a.MaxSkillLevel,l=this.strengthEffectiveness*e/a.a.MaxSkillLevel,c=this.defenseEffectiveness*n/a.a.MaxSkillLevel,f=this.dexterityEffectiveness*r/a.a.MaxSkillLevel,u=this.agilityEffectiveness*i/a.a.MaxSkillLevel,m=this.charismaEffectiveness*o/a.a.MaxSkillLevel;let h=this.repMultiplier*(s+l+c+f+u+m)/100;return isNaN(h)&&(console.error("Company reputation gain calculated to be NaN"),h=0),h}isSoftwareJob(){return r.j.includes(this.name)}isITJob(){return r.d.includes(this.name)}isSecurityEngineerJob(){return r.i.includes(this.name)}isNetworkEngineerJob(){return r.f.includes(this.name)}isBusinessJob(){return r.b.includes(this.name)}isSecurityJob(){return r.h.includes(this.name)}isAgentJob(){return r.a.includes(this.name)}isSoftwareConsultantJob(){return r.k.includes(this.name)}isBusinessConsultantJob(){return r.c.includes(this.name)}isPartTimeJob(){return r.g.includes(this.name)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(6),r=n(85),i=n(28),o=n(375);function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class l{constructor(t=null,e=[]){s(this,"args",[]),s(this,"dataMap",{}),s(this,"filename",""),s(this,"logs",[]),s(this,"logUpd",!1),s(this,"offlineExpGained",0),s(this,"offlineMoneyMade",0),s(this,"offlineRunningTime",.01),s(this,"onlineExpGained",0),s(this,"onlineMoneyMade",0),s(this,"onlineRunningTime",.01),s(this,"pid",-1),s(this,"ramUsage",0),s(this,"server",""),s(this,"threads",1),s(this,"dependencies",[]),null!=t&&(this.filename=t.filename,this.args=e,this.server=t.server,this.ramUsage=t.ramUsage,this.dependencies=t.dependencies)}log(t){this.logs.length>a.a.MaxLogCapacity&&this.logs.shift();let e=t;a.a.TimestampsFormat&&(e="["+Object(o.a)(a.a.TimestampsFormat)+"] "+e),this.logs.push(e),this.logUpd=!0}displayLog(){for(let t=0;tH4CK||3T 8URN3R5**>?>\\~~"),offerHackingWork:!0}),[i.a.TianDiHui]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Obey Heaven and work righteously."),offerHackingWork:!0,offerSecurityWork:!0}),[i.a.CyberSec]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The Internet is the first thing that was built that we don't fully understand, the largest experiment in anarchy that we have ever had. And as the world becomes increasingly dominated by it, society approaches the brink of total chaos. We serve only to protect society, to protect humanity, to protect the world from imminent collapse."),offerHackingWork:!0}),[i.a.Bladeburners]:new c({infoText:r.a.createElement(r.a.Fragment,null,"It's too bad they won't live. But then again, who does?",r.a.createElement("br",null),r.a.createElement("br",null),"Note that for this faction, reputation can only be gained through ",i.a.Bladeburners," actions."," ","Completing ",i.a.Bladeburners," contracts/operations will increase your reputation."),special:!0,assignment:()=>{const t=o.b.Router();return r.a.createElement(s.a,{buttonText:"Open Bladeburner headquarters",infoText:"You can gain reputation with bladeburner by completing contracts and operations.",onClick:()=>t.toBladeburner()})}}),[i.a.ChurchOfTheMachineGod]:new c({infoText:r.a.createElement(r.a.Fragment,null," `` ",r.a.createElement("br",null)," -odmmNmds: ",r.a.createElement("br",null)," `hNmo:..-omNh. ",r.a.createElement("br",null)," yMd` `hNh ",r.a.createElement("br",null)," mMd oNm ",r.a.createElement("br",null)," oMNo .mM/ ",r.a.createElement("br",null)," `dMN+ -mM+ ",r.a.createElement("br",null)," -mMNo -mN+ ",r.a.createElement("br",null)," .+- :mMNo/mN/ ",r.a.createElement("br",null),":yNMd. :NMNNN/ ",r.a.createElement("br",null),"-mMMMh. /NMMh` ",r.a.createElement("br",null)," .dMMMd. /NMMMy` ",r.a.createElement("br",null)," `yMMMd. /NNyNMMh` ",r.a.createElement("br",null)," `sMMMd. +Nm: +NMMh. ",r.a.createElement("br",null)," oMMMm- oNm: /NMMd. ",r.a.createElement("br",null)," +NMMmsMm- :mMMd. ",r.a.createElement("br",null)," /NMMMm- -mMMd. ",r.a.createElement("br",null)," /MMMm- -mMMd. ",r.a.createElement("br",null)," `sMNMMm- .mMmo ",r.a.createElement("br",null)," `sMd:hMMm. ./. ",r.a.createElement("br",null)," `yMy` `yNMd` ",r.a.createElement("br",null)," `hMs` oMMy ",r.a.createElement("br",null)," `hMh sMN- ",r.a.createElement("br",null)," /MM- .NMo ",r.a.createElement("br",null)," +MM: :MM+ ",r.a.createElement("br",null)," sNNo-.`.-omNy` ",r.a.createElement("br",null)," -smNNNNmdo- ",r.a.createElement("br",null)," `..` ",r.a.createElement("br",null),r.a.createElement("br",null),"Many cultures predict an end to humanity in the near future, a final Armageddon that will end the world; but we disagree."),offerHackingWork:!1,offerFieldWork:!1,offerSecurityWork:!1,special:!0,keepOnInstall:!0,assignment:()=>{const t=o.b.Router();return r.a.createElement(s.a,{buttonText:"Open Staneks Gift",infoText:"Stanek's Gift is a powerful augmentation that powers up the stat you chose to boost.Gaining reputation with the Church of the Machine God can only be done by charging the gift.",onClick:()=>t.toStaneksGift()})}}),[i.a.ShadowsOfAnarchy]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The government is ruled by the corporations that we have allowed to consume it. To release the world from its shackles, the gods grant us their strength."),special:!0,keepOnInstall:!0,assignment:()=>r.a.createElement(l.a,null,i.a.ShadowsOfAnarchy," can only gain reputation by infiltrating.")})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(240),r=n(28);function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class o{constructor(){i(this,"capacity",0),i(this,"hashes",0),i(this,"upgrades",{});for(const t of Object.keys(a.a))this.upgrades[t]=0}getMult(t){const e=a.a[t],n=this.upgrades[t];return null==e||null==n?(console.error("Could not find Hash Study upgrade"),1):1+e.value*n/100}getStudyMult(){return this.getMult("Improve Studying")}getTrainingMult(){return this.getMult("Improve Gym Training")}getUpgrade(t){const e=a.a[t];return e||(console.error("Invalid Upgrade Name given to HashManager.getUpgrade(): "+t),null)}getUpgradeCost(t){const e=this.getUpgrade(t),n=this.upgrades[t];return null==e||null==n?(console.error("Invalid Upgrade Name given to HashManager.getUpgradeCost(): "+t),1/0):e.getCost(n)}prestige(){for(const t of Object.keys(a.a))this.upgrades[t]=0;this.hashes=0,this.updateCapacity(0)}refundUpgrade(t){const e=a.a[t];--this.upgrades[t];const n=this.upgrades[t];if(null==e||null==n||n<0)return void console.error("Invalid Upgrade Name given to HashManager.upgrade(): "+t);const r=e.getCost(n);this.hashes+=r}storeHashes(t){this.hashes+=t;let e=this.hashes;return this.hashes=Math.min(this.hashes,this.capacity),e-=this.hashes,e}updateCapacity(t){t<0&&(this.capacity=0),this.capacity=Math.max(t,0)}upgrade(t){if(null==a.a[t])return console.error("Invalid Upgrade Name given to HashManager.upgrade(): "+t),!1;const e=this.getUpgradeCost(t);return!(this.hashes{try{return r.a[t].getInfo().offerHackingWork}catch(t){return console.error("Error when trying to filter Hacking Factions for Coding Contract Generation: "+t),!1}});return e===a.c.FactionReputation&&0===n.length&&(e=a.c.CompanyReputation),e===a.c.FactionReputationAll&&0===n.length&&(e=a.c.CompanyReputation),e===a.c.CompanyReputation&&0===Object.keys(i.a.jobs).length&&(e=a.c.Money),e}(t.type);const e=i.a.factions.filter(t=>r.a[t].getInfo().offerHackingWork);switch(t.type){case a.c.FactionReputation:{const n=e.length,a=e[Object(c.a)(0,n-1)];t.name=a;break}case a.c.CompanyReputation:{const e=Object.keys(i.a.jobs);e.length>0?t.name=e[Object(c.a)(0,e.length-1)]:t.type=a.c.Money;break}}return t}function p(){const t=Object(o.c)();let e=Object(c.a)(0,t.length-1),n=t[e];for(let a=0;a<200&&(!(n instanceof l.a)||n.purchasedByPlayer||n.hostname===s.a.WorldDaemon);++a)e=Object(c.a)(0,t.length-1),n=t[e];return n}function g(t,e){let n="contract-"+Object(c.a)(0,1e6);for(let e=0;e<1e3&&!(t.contracts.filter(t=>t.fn===n).length<=0);++e)n="contract-"+Object(c.a)(0,1e6);return e.name&&(n+="-"+e.name.replace(/\s/g,"")),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a=new(n(125).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var a=n(87),r=n(14);function i(t,e){let n=0,i=!1;for(const r of Object.keys(a.a)){const o=a.a[r];if(o.type===e){n=o.successRate(t),i=!0;break}}return i?Math.random()<=n:(Object(r.a)(`ERR: Unrecognized crime type: ${e} This is probably a bug please contact the developer`),!1)}function o(t){return(t=t.toLowerCase()).includes("shoplift")?a.a.Shoplift:t.includes("rob")&&t.includes("store")?a.a.RobStore:t.includes("mug")?a.a.Mug:t.includes("larceny")?a.a.Larceny:t.includes("drugs")?a.a.DealDrugs:t.includes("bond")&&t.includes("forge")?a.a.BondForgery:(t.includes("traffic")||t.includes("illegal"))&&t.includes("arms")?a.a.TraffickArms:t.includes("homicide")?a.a.Homicide:t.includes("grand")&&t.includes("auto")?a.a.GrandTheftAuto:t.includes("kidnap")?a.a.Kidnap:t.includes("assassin")?a.a.Assassination:t.includes("heist")?a.a.Heist:null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(47),r=n(40),i=n(33),o=n(24),s=n(28),l=n(1052);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class f{constructor(t={}){c(this,"minEne",0),c(this,"maxEne",100),c(this,"minHap",0),c(this,"maxHap",100),c(this,"maxMor",100),c(this,"employees",[]),c(this,"employeeProd",{[a.a.Operations]:0,[a.a.Engineer]:0,[a.a.Business]:0,[a.a.Management]:0,[a.a.RandD]:0,total:0}),c(this,"employeeJobs",{[a.a.Operations]:0,[a.a.Engineer]:0,[a.a.Business]:0,[a.a.Management]:0,[a.a.RandD]:0,[a.a.Training]:0,[a.a.Unassigned]:0,total:0}),this.loc=t.loc?t.loc:"",this.size=t.size?t.size:1}atCapacity(){return this.employees.length>=this.size}process(t=1,e,n){if(n.hasResearch("HRBuddy-Recruitment")&&!this.atCapacity()){const t=this.hireRandomEmployee();n.hasResearch("HRBuddy-Training")&&void 0!==t&&(t.pos=a.a.Training)}this.calculateTotalEmployees(),this.maxEne=100,this.maxHap=100,this.maxMor=100,n.hasResearch("Go-Juice")&&(this.maxEne+=10),n.hasResearch("JoyWire")&&(this.maxHap+=10),n.hasResearch("Sti.mu")&&(this.maxMor+=10);let r=1;e.funds<0&&n.lastCycleRevenue<0?r=Math.pow(.99,t):e.funds>0&&n.lastCycleRevenue>0&&(r=Math.pow(1.01,t));const i=n.hasResearch("AutoBrew"),o=n.hasResearch("AutoPartyManager");let s=0;for(let e=0;en.pos===t?e+1:e,0);for(const r of this.employees){if(n==e)return!0;r.pos===a.a.Unassigned&&n<=e?(r.pos=t,n++):r.pos===t&&n>=e&&(r.pos=a.a.Unassigned,n--)}return n===e}toJSON(){return Object(s.b)("OfficeSpace",this)}static fromJSON(t){return Object(s.a)(f,t.data)}}s.c.constructors.OfficeSpace=f},function(t,e,n){"use strict";let a;n.d(e,"a",(function(){return r})),function(t){t[t.SmartFactories=0]="SmartFactories",t[t.SmartStorage=1]="SmartStorage",t[t.DreamSense=2]="DreamSense",t[t.WilsonAnalytics=3]="WilsonAnalytics",t[t.NuoptimalNootropicInjectorImplants=4]="NuoptimalNootropicInjectorImplants",t[t.SpeechProcessorImplants=5]="SpeechProcessorImplants",t[t.NeuralAccelerators=6]="NeuralAccelerators",t[t.FocusWires=7]="FocusWires",t[t.ABCSalesBots=8]="ABCSalesBots",t[t.ProjectInsight=9]="ProjectInsight"}(a||(a={}));const r={[a.SmartFactories]:{index:a.SmartFactories,basePrice:2e9,priceMult:1.06,benefit:.03,name:"Smart Factories",desc:"Advanced AI automatically optimizes the operation and productivity of factories. Each level of this upgrade increases your global production by 3% (additive)."},[a.SmartStorage]:{index:a.SmartStorage,basePrice:2e9,priceMult:1.06,benefit:.1,name:"Smart Storage",desc:"Advanced AI automatically optimizes your warehouse storage methods. Each level of this upgrade increases your global warehouse storage size by 10% (additive)."},[a.DreamSense]:{index:a.DreamSense,basePrice:4e9,priceMult:1.1,benefit:.001,name:"DreamSense",desc:"Use DreamSense LCC Technologies to advertise your corporation to consumers through their dreams. Each level of this upgrade provides a passive increase in awareness of all of your companies (divisions) by 0.004 / market cycle,and in popularity by 0.001 / market cycle. A market cycle is approximately 15 seconds."},[a.WilsonAnalytics]:{index:a.WilsonAnalytics,basePrice:4e9,priceMult:1.5,benefit:.005,name:"Wilson Analytics",desc:"Purchase data and analysis from Wilson, a marketing research firm. Each level of this upgrades increases the effectiveness of your advertising by 0.5% (additive)."},[a.NuoptimalNootropicInjectorImplants]:{index:a.NuoptimalNootropicInjectorImplants,basePrice:1e9,priceMult:1.06,benefit:.1,name:"Nuoptimal Nootropic Injector Implants",desc:"Purchase the Nuoptimal Nootropic Injector augmentation for your employees. Each level of this upgrade globally increases the creativity of your employees by 10% (additive)."},[a.SpeechProcessorImplants]:{index:a.SpeechProcessorImplants,basePrice:1e9,priceMult:1.06,benefit:.1,name:"Speech Processor Implants",desc:"Purchase the Speech Processor augmentation for your employees. Each level of this upgrade globally increases the charisma of your employees by 10% (additive)."},[a.NeuralAccelerators]:{index:a.NeuralAccelerators,basePrice:1e9,priceMult:1.06,benefit:.1,name:"Neural Accelerators",desc:"Purchase the Neural Accelerator augmentation for your employees. Each level of this upgrade globally increases the intelligence of your employees by 10% (additive)."},[a.FocusWires]:{index:a.FocusWires,basePrice:1e9,priceMult:1.06,benefit:.1,name:"FocusWires",desc:"Purchase the FocusWire augmentation for your employees. Each level of this upgrade globally increases the efficiency of your employees by 10% (additive)."},[a.ABCSalesBots]:{index:a.ABCSalesBots,basePrice:1e9,priceMult:1.07,benefit:.01,name:"ABC SalesBots",desc:"Always Be Closing. Purchase these robotic salesmen to increase the amount of materials and products you sell. Each level of this upgrade globally increases your sales by 1% (additive)."},[a.ProjectInsight]:{index:a.ProjectInsight,basePrice:5e9,priceMult:1.07,benefit:.05,name:"Project Insight",desc:"Purchase 'Project Insight', a R&D service provided by the secretive Fulcrum Technologies. Each level of this upgrade globally increases the amount of Scientific Research you produce by 5% (additive)."}}},,function(t,e,n){"use strict";function a(t,e){for(const n of Object.keys(e)){const a=e[n];void 0!==a&&("function"==typeof a?a(t,n):void 0!==a.func?a.func(t,e,n):(typeof t[n]!=typeof a.default&&(t[n]=a.default),"number"==typeof t[n]&&void 0!==a.min&&t[n]a.max&&(t[n]=a.max)))}}function r(t,e,n){return(a,r)=>{"number"==typeof a[r]?(a[r]n&&(a[r]=n)):a[r]=t}}n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return l}));var a=n(18),r=n(603),i=n(12);function o(t,e,n,r){const o=n*Math.pow(1.01,n);return Math.pow(e+1,2)*Math.pow(r,3)*3e3*o*(t.hasAugmentation(i.a.WKSharmonizer,!0)?1.5:1)*a.a.InfiltrationMoney}function s(t,e,n,r){const o=n*Math.pow(1.01,n);return Math.pow(e+1,1.1)*Math.pow(r,1.2)*30*o*(t.hasAugmentation(i.a.WKSharmonizer,!0)?1.5:1)*a.a.InfiltrationRep}function l(t,e,n){return n/r.a.reduce((t,e)=>{var n;const a=(null===(n=e.infiltrationData)||void 0===n?void 0:n.startingSecurityLevel)||0;return t>a?t:a},0)*5e3*(t.hasAugmentation(i.a.WKSharmonizer,!0)?2:1)*(1+e.favor/100)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(28);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class i{constructor(){r(this,"bladeburner",0),r(this,"casino",0),r(this,"class",0),r(this,"codingcontract",0),r(this,"corporation",0),r(this,"crime",0),r(this,"gang",0),r(this,"hacking",0),r(this,"hacknet",0),r(this,"hacknet_expenses",0),r(this,"hospitalization",0),r(this,"infiltration",0),r(this,"sleeves",0),r(this,"stock",0),r(this,"total",0),r(this,"work",0),r(this,"servers",0),r(this,"other",0),r(this,"augmentations",0)}record(t,e){const n=e.toLowerCase();"number"==typeof this[n]?(this[n]+=t,this.total+=t):console.warn("MoneySourceTracker.record() called with invalid source: "+e)}reset(){for(const t in this)"number"==typeof this[t]&&(this[t]=0)}toJSON(){return Object(a.b)("MoneySourceTracker",this)}static fromJSON(t){return Object(a.a)(i,t.data)}}a.c.constructors.MoneySourceTracker=i},,function(t,e,n){"use strict";function a(){const t=Math.random();return t<.4?"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(26*Math.random())]:t<.8?"abcdefghijklmnopqrstuvwxyz"[Math.floor(26*Math.random())]:"01234567689"[Math.floor(10*Math.random())]}function r(){const t=50+Math.floor(25*(Math.random()+Math.random()));let e="";for(;e.lengthe.length)continue;for(let a=0;aArray(10).fill(null)),a=Array.from(Array(10),()=>Array(10));function r(t,e,n,a){const r=t[e][n];(null==r||a.length9||n+1+a>t.length)return null;if(e+=t.substring(n+1,n+1+a),n+=1+a,n>=t.length)break;const r=t.charCodeAt(n)-48;if(r<0||r>9)return null;if(0===r)++n;else{if(n+1>=t.length)return null;const a=t.charCodeAt(n+1)-48;if(r>0&&(a<1||a>9)||a>e.length)return null;for(let t=0;t=1}function l(){const t=this.gang;if(null===t)throw new Error("Cannot get gang faction because player is not in a gang.");const e=a.a[t.facName];if(null==e)throw new Error("Gang has invalid faction name: "+t.facName);return e}function c(){if(!this.inGang())return"";const t=this.gang;if(null===t)throw new Error("Cannot get gang faction because player is not in a gang.");return t.facName}function f(t){if(!this.inGang())return!1;const e=this.gang;if(null===e)throw new Error("Cannot get gang faction because player is not in a gang.");return e.facName===t}function u(){return null!=this.gang&&null!=this.gang&&this.gang instanceof r.a}function m(t,e){this.gang=new r.a(t,e);const n=a.a[t];if(null==n)throw new Error("Invalid faction name when creating gang: "+t);n.playerReputation=0}},,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));const a={lineHeight:1.5,fontFamily:"Lucida Console, Lucida Sans Unicode, Fira Mono, Consolas, Courier New, Courier, monospace, Times New Roman"}},,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var a=n(10);function r(t){return t.money<0?0:Math.min(.1*t.money,(t.max_hp-t.hp)*a.a.HospitalCostPerHp)}function i(t,e){const n=t.hp;t.hp-=e;const a=r(t);return t.hp=n,a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var a=n(0),r=n.n(a),i=n(125),o=n(38),s=n(1),l=n(8),c=n(129),f=n(78),u=n(75),m=n(27);const h=new i.a;function d(){var t,e,n;const[i,l]=Object(a.useState)(null);if(Object(a.useEffect)(()=>h.subscribe(t=>{l(t)}),[]),null===i)return r.a.createElement(r.a.Fragment,null);const c={text:g,select:y};let f=p;null!=i&&null!==(t=i.options)&&void 0!==t&&t.type&&["text","select"].includes(null==i||null===(e=i.options)||void 0===e?void 0:e.type)&&(f=c[null==i||null===(n=i.options)||void 0===n?void 0:n.type]);return r.a.createElement(o.a,{open:!0,onClose:function(){var t,e;null!==i&&(["text","select"].includes(null!==(t=null==i||null===(e=i.options)||void 0===e?void 0:e.type)&&void 0!==t?t:"")?i.resolve(""):i.resolve(!1),l(null))}},r.a.createElement("pre",null,r.a.createElement(s.a,null,i.txt)),r.a.createElement(f,{prompt:i,resolve:t=>{i.resolve(t),l(null)}}))}function p({resolve:t}){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"10px"}},r.a.createElement(l.a,{style:{marginRight:"auto"},onClick:()=>t(!0)},"Yes"),r.a.createElement(l.a,{onClick:()=>t(!1)},"No")))}function g({resolve:t}){const[e,n]=Object(a.useState)(""),i=()=>t(e);return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:"flex",alignItems:"center",paddingTop:"10px"}},r.a.createElement(f.a,{autoFocus:!0,value:e,onInput:t=>{n(t.target.value)},onKeyDown:t=>{t.stopPropagation(),t.key===m.a.ENTER&&(t.preventDefault(),i())},style:{flex:"1 0 auto"},InputProps:{endAdornment:r.a.createElement(l.a,{onClick:i},"Confirm")}})))}function y({prompt:t,resolve:e}){var n;const[i,o]=Object(a.useState)("");return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:"flex",alignItems:"center",paddingTop:"10px"}},r.a.createElement(c.a,{onChange:t=>{o(t.target.value)},value:i,style:{flex:"1 0 auto"}},(t=>{const e=[];for(const n of t)e.push(r.a.createElement(u.a,{key:n,value:n},n));return e})((null==t||null===(n=t.options)||void 0===n?void 0:n.choices)||[])),r.a.createElement(l.a,{onClick:()=>e(i),disabled:""===i},"Confirm")))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(47),r=n(180),i=n(1053),o=n(547),s=n(28),l=n(33);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class f{constructor(t={}){c(this,"name",""),c(this,"dmd",0),c(this,"cmp",0),c(this,"mku",0),c(this,"pCost",0),c(this,"sCost",0),c(this,"fin",!1),c(this,"prog",0),c(this,"createCity",""),c(this,"designCost",0),c(this,"advCost",0),c(this,"rat",0),c(this,"qlt",0),c(this,"per",0),c(this,"dur",0),c(this,"rel",0),c(this,"aes",0),c(this,"fea",0),c(this,"data",Object(o.a)([0,0,0])),c(this,"loc",""),c(this,"siz",0),c(this,"reqMats",{}),c(this,"prdman",Object(o.a)([!1,0])),c(this,"sllman",Object(o.a)([!1,0])),c(this,"marketTa1",!1),c(this,"marketTa2",!1),c(this,"marketTa2Price",Object(o.a)(0)),c(this,"maxsll",0),this.name=t.name?t.name:"",this.dmd=t.demand?t.demand:0,this.cmp=t.competition?t.competition:0,this.mku=t.markup?t.markup:0,this.createCity=t.createCity?t.createCity:"",this.designCost=t.designCost?t.designCost:0,this.advCost=t.advCost?t.advCost:0,this.qlt=t.quality?t.quality:0,this.per=t.performance?t.performance:0,this.dur=t.durability?t.durability:0,this.rel=t.reliability?t.reliability:0,this.aes=t.aesthetics?t.aesthetics:0,this.fea=t.features?t.features:0,this.loc=t.loc?t.loc:"",this.siz=t.size?t.size:0,this.reqMats=t.req?t.req:{}}createProduct(t=1,e=1){this.fin||(this.prog+=.01*t*e)}finishProduct(t,e){this.fin=!0;const n=this.prog/100,i=t[a.a.Engineer]/t.total,o=t[a.a.Management]/t.total,s=t[a.a.RandD]/t.total,c=t[a.a.Operations]/t.total,f=t[a.a.Business]/t.total,u=n*(1.2*i+.9*o+1.3*s+1.5*c+f)*(1+Math.pow(this.designCost,.1)/100)*(1+Math.pow(e.sciResearch.qty,e.sciFac)/800);this.qlt=u*(.1*t[a.a.Engineer]+.05*t[a.a.Management]+.05*t[a.a.RandD]+.02*t[a.a.Operations]+.02*t[a.a.Business]),this.per=u*(.15*t[a.a.Engineer]+.02*t[a.a.Management]+.02*t[a.a.RandD]+.02*t[a.a.Operations]+.02*t[a.a.Business]),this.dur=u*(.05*t[a.a.Engineer]+.02*t[a.a.Management]+.08*t[a.a.RandD]+.05*t[a.a.Operations]+.05*t[a.a.Business]),this.rel=u*(.02*t[a.a.Engineer]+.08*t[a.a.Management]+.02*t[a.a.RandD]+.05*t[a.a.Operations]+.08*t[a.a.Business]),this.aes=u*(0*t[a.a.Engineer]+.08*t[a.a.Management]+.05*t[a.a.RandD]+.02*t[a.a.Operations]+.1*t[a.a.Business]),this.fea=u*(.08*t[a.a.Engineer]+.05*t[a.a.Management]+.02*t[a.a.RandD]+.05*t[a.a.Operations]+.05*t[a.a.Business]),this.calculateRating(e);const m=1+Math.pow(this.advCost,.1)/100,h=Math.max(f+o,1/t.total);this.mku=100/(m*Math.pow(this.qlt+.001,.65)*h),0!==this.mku&&isFinite(this.mku)||(this.mku=1),this.dmd=0===e.awareness?20:Math.min(100,m*(e.popularity/e.awareness*100)),this.cmp=Object(l.a)(0,70);for(const t of Object.keys(e.reqMats))if(e.reqMats.hasOwnProperty(t)){const n=e.reqMats[t];if(void 0===n)continue;this.reqMats[t]=n}this.siz=0;for(const t of Object.keys(e.reqMats)){const n=e.reqMats[t];void 0!==n&&(this.siz+=r.a[t]*n)}}calculateRating(t){const e=i.a[t.type];null!=e?(this.rat=0,this.rat+=e.Quality?this.qlt*e.Quality:0,this.rat+=e.Performance?this.per*e.Performance:0,this.rat+=e.Durability?this.dur*e.Durability:0,this.rat+=e.Reliability?this.rel*e.Reliability:0,this.rat+=e.Aesthetics?this.aes*e.Aesthetics:0,this.rat+=e.Features?this.fea*e.Features:0):console.error("Could not find product rating weights for: "+t)}toJSON(){return Object(s.b)("Product",this)}static fromJSON(t){return Object(s.a)(f,t.data)}}s.c.constructors.Product=f},function(t,e,n){"use strict";function a(t,e){return!!Object.keys(e.reqMats).includes(t)||(!!e.prodMats.includes(t)||!!["Hardware","Robots","AICores","RealEstate","AI Cores","Real Estate"].includes(t))}n.d(e,"a",(function(){return a}))},,function(t,e,n){"use strict";n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return b}));var a=n(0),r=n.n(a),i=n(114),o=n(248),s=n(1),l=n(19),c=n(45),f=n(8),u=n(1773),m=n(1774),h=n(1775),d=n(29),p=n(6),g=n(66);const y=[];function b(){const t=d.b.Player(),e=d.b.Router(),n=Object(a.useState)(!1)[1];function b(){n(t=>!t)}const E=[...Object.values(g.a)].filter(e=>{const n=e.create;return null!==n&&("b1t_flum3.exe"!==e.name||n.req(t))}).sort((e,n)=>{var a,r,i,o;return t.hasProgram(e.name)?1:t.hasProgram(n.name)?-1:(null!==(a=null===(r=e.create)||void 0===r?void 0:r.level)&&void 0!==a?a:0)-(null!==(i=null===(o=n.create)||void 0===o?void 0:o.level)&&void 0!==i?i:0)});Object(a.useEffect)(()=>{E.forEach(t=>{y.includes(t.name)||y.push(t.name)})},[]),Object(a.useEffect)(()=>{const t=setInterval(b,200);return()=>clearInterval(t)},[]);const v=e=>Math.ceil(Math.max(e-(t.hacking+t.intelligence/2),0));return r.a.createElement(o.a,{disableGutters:!0,maxWidth:"lg",sx:{mx:0,mb:10}},r.a.createElement(s.a,{variant:"h4"},"Create program"),r.a.createElement(s.a,null,"This page displays any programs that you are able to create. Writing the code for a program takes time, which can vary based on how complex the program is. If you are working on creating a program you can cancel at any time. Your progress will be saved and you can continue later."),r.a.createElement(l.a,{sx:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",my:1}},E.map(n=>{const a=n.create;if(null===a)return r.a.createElement(r.a.Fragment,null);const o=(e=>{const n=Object(i.find)(t.getHomeComputer().programs,t=>t.startsWith(e)&&t.endsWith("%-INC"));if(!n)return-1;const a=n.split("-");if(3!=a.length)return-1;const r=Number(a[1].slice(0,-1));return isNaN(r)||r<0||r>=100?-1:r})(n.name);return r.a.createElement(l.a,{component:c.a,sx:{p:1,opacity:t.hasProgram(n.name)?.75:1},key:n.name},r.a.createElement(s.a,{variant:"h6",sx:{display:"flex",alignItems:"center",flexWrap:"wrap"}},t.hasProgram(n.name)&&r.a.createElement(u.a,{sx:{mr:1}})||a.req(t)&&r.a.createElement(m.a,{sx:{mr:1}})||r.a.createElement(h.a,{sx:{mr:1}}),n.name),!t.hasProgram(n.name)&&a.req(t)&&r.a.createElement(f.a,{sx:{my:1,width:"100%"},onClick:r=>{r.isTrusted&&(t.startCreateProgramWork(n.name,a.time,a.level),t.startFocusing(),e.toWork())}},"Create program"),t.hasProgram(n.name)||0===v(a.level)||r.a.createElement(s.a,{color:p.a.theme.hack},r.a.createElement("b",null,"Unlocks in:")," ",v(a.level)," hacking levels"),-1!==o&&r.a.createElement(s.a,{color:p.a.theme.infolight},r.a.createElement("b",null,"Current completion:")," ",o,"%"),r.a.createElement(s.a,null,a.tooltip))})))}},function(t,e,n){"use strict";n.d(e,"b",(function(){return g})),n.d(e,"a",(function(){return y}));var a=n(0),r=n.n(a),i=n(248),o=n(1),s=n(45),l=n(142),c=n(50),f=n(19),u=n(8),m=n(69),h=n(106),d=n(26),p=n(4);const g=[];function y(t){const e=Object(a.useState)(!1)[1];function n(){e(t=>!t)}Object(a.useEffect)(()=>{const t=setInterval(n,200);return()=>clearInterval(t)},[]),Object(a.useEffect)(()=>{t.player.factionInvitations.forEach(t=>{g.includes(t)||g.push(t)})},[]);const y=Object.values(p.a).map(t=>t),b=t.player.factions.slice(0);return b.sort((t,e)=>y.indexOf(t)-y.indexOf(e)),r.a.createElement(i.a,{disableGutters:!0,maxWidth:"md",sx:{mx:0,mb:10}},r.a.createElement(o.a,{variant:"h4"},"Factions"),r.a.createElement(o.a,{mb:4},"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."),r.a.createElement(o.a,{variant:"h5",color:"primary",mt:2,mb:1},"Factions you have joined:"),b.length>0&&r.a.createElement(s.a,{sx:{my:1,p:1,pb:0,display:"inline-block"}},r.a.createElement(m.a,{padding:"none",style:{width:"fit-content"}},r.a.createElement(l.a,null,b.map(e=>r.a.createElement(c.a,{key:e},r.a.createElement(m.b,null,r.a.createElement(o.a,{noWrap:!0,mb:1},e)),r.a.createElement(m.b,{align:"right"},r.a.createElement(f.a,{ml:1,mb:1},r.a.createElement(u.a,{onClick:()=>function(e){t.router.toFaction(e)}(d.a[e])},"Details"))),r.a.createElement(m.b,{align:"right"},r.a.createElement(f.a,{ml:1,mb:1},r.a.createElement(u.a,{sx:{width:"100%"},onClick:()=>function(e){t.router.toFaction(e,!0)}(d.a[e])},"Augmentations Left: ",((t,e)=>Object(h.a)(e,t).filter(t=>!e.hasAugmentation(t)).length)(d.a[e],t.player)))))))))||r.a.createElement(o.a,null,"You haven't joined any factions."),r.a.createElement(o.a,{variant:"h5",color:"primary",mt:4,mb:1},"Outstanding Faction Invitations"),r.a.createElement(o.a,{mb:1},"Factions you have been invited to. You can accept these faction invitations at any time:"),t.player.factionInvitations.length>0&&r.a.createElement(s.a,{sx:{my:1,mb:4,p:1,pb:0,display:"inline-block"}},r.a.createElement(m.a,{padding:"none"},r.a.createElement(l.a,null,t.player.factionInvitations.map(t=>r.a.createElement(c.a,{key:t},r.a.createElement(m.b,null,r.a.createElement(o.a,{noWrap:!0,mb:1},t)),r.a.createElement(m.b,{align:"right"},r.a.createElement(f.a,{ml:1,mb:1},r.a.createElement(u.a,{onClick:n=>function(t,n){t.isTrusted&&(Object(h.d)(d.a[n]),e(t=>!t))}(n,t)},"Join!"))))))))||r.a.createElement(o.a,null,"You have no outstanding faction invites."))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(1477),r=n(1783);const i=Object(r.a)(t=>({root:{backgroundColor:t.palette.background.paper},bar:{transition:"none",backgroundColor:t.palette.primary.main}}))(a.a)},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(2),o=n(460),s=n(614),l=n(372),c=n(14);function f(t,e,n,a){e?0===i.a.sourceFileLvl(5)&&5!==a&&(i.a.intelligence=0,i.a.intelligence_exp=0):function(t){const e="SourceFile"+t.toString(),n=l.a[e];if(null==n)return void console.error("Could not find source file for Bit node: "+t);let a=!1,o=null;for(let e=0;e=3&&12!==o.n?Object(c.a)(`The Source-File for the BitNode you just destroyed, ${n.name}, is already at max level!`):(++o.lvl,Object(c.a)(n.name+" was upgraded to level "+o.lvl+" for destroying its corresponding BitNode!"));else{const e=new s.a(t,1);i.a.sourceFiles.push(e),5===t&&0===i.a.intelligence&&(i.a.intelligence=1),Object(c.a)(r.a.createElement(r.a.Fragment,null,"You received a Source-File for destroying a BitNode!",r.a.createElement("br",null),r.a.createElement("br",null),n.name,r.a.createElement("br",null),r.a.createElement("br",null),n.info))}}(n),5===a&&0===i.a.intelligence&&(i.a.intelligence=1),i.a.bitNodeN=a,6===a?t.toBladeburnerCinematic():t.toTerminal(),Object(o.b)(e)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return w})),n.d(e,"a",(function(){return S})),n.d(e,"c",(function(){return x}));var a=n(0),r=n.n(a),i=n(19),o=n(1),s=n(150),l=n(356),c=n(21),f=n(8),u=n(45),m=n(78),h=n(6),d=n(343),p=n(112),g=n(540),y=n(634),b=n(636),E=n(651),v=n.n(E),k=n(1390),_=n.n(k);let w=!1;function S(){w=!0}function x({router:t,softReset:e,errorData:n,resetError:E}){var k,S;return h.a.AutosaveInterval=0,Object(a.useEffect)(()=>{Object(d.b)().then(t=>{const e=`RECOVERY_BITBURNER_${Math.round(Date.now()/1e3)}.json`;Object(p.a)(e,t)})},[]),r.a.createElement(i.a,{sx:{padding:"8px 16px",minHeight:"100vh",maxWidth:"1200px",boxSizing:"border-box"}},r.a.createElement(o.a,{variant:"h3"},"RECOVERY MODE ACTIVATED"),r.a.createElement(o.a,null,"There was an error with your save file and the game went into recovery mode. In this mode saving is disabled and the game will automatically export your save file (to prevent corruption)."),r.a.createElement(o.a,null,"At this point it is recommended to alert a developer."),r.a.createElement(o.a,null,r.a.createElement(s.a,{href:null!==(k=null==n?void 0:n.issueUrl)&&void 0!==k?k:g.b,target:"_blank"},"File an issue on github")),r.a.createElement(o.a,null,r.a.createElement(s.a,{href:"https://www.reddit.com/r/Bitburner/",target:"_blank"},"Make a reddit post")),r.a.createElement(o.a,null,r.a.createElement(s.a,{href:"https://discord.gg/TFc3hKD",target:"_blank"},"Post in the #bug-report channel on Discord.")),r.a.createElement(o.a,null,"Please include your save file."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,null,"You can disable recovery mode now. But chances are the game will not work correctly."),r.a.createElement(l.a,{sx:{my:2}},r.a.createElement(c.a,{title:"Disables the recovery mode & attempt to head back to the terminal page. This may or may not work. Ensure you have saved the recovery file."},r.a.createElement(f.a,{onClick:function(){E&&E(),w=!1,t.toTerminal()},startIcon:r.a.createElement(v.a,null)},"Disable Recovery Mode")),r.a.createElement(b.a,{color:"warning",onTriggered:e}),r.a.createElement(y.a,{color:"error"})),n&&r.a.createElement(u.a,{sx:{px:2,pt:1,pb:2,mt:2}},r.a.createElement(o.a,{variant:"h5"},n.title),r.a.createElement(i.a,{sx:{my:2}},r.a.createElement(m.a,{label:"Bug Report Text",value:n.body,variant:"outlined",color:"secondary",multiline:!0,fullWidth:!0,rows:12,sx:{"& .MuiOutlinedInput-root":{color:h.a.theme.secondary}}})),r.a.createElement(c.a,{title:"Submitting an issue to GitHub really help us improve the game!"},r.a.createElement(f.a,{component:s.a,startIcon:r.a.createElement(_.a,null),color:"info",sx:{px:2},href:null!==(S=n.issueUrl)&&void 0!==S?S:g.b,target:"_blank"},"Submit Issue to GitHub"))))}},,,function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var a=n(1023);let r=1;function i(t){return r+=t,()=>r-=t}function o(){return Object(a.a)(r)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(1029),r=n(42),i=n(22);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class s{constructor(t,e,n){o(this,"code",""),o(this,"delay",null),o(this,"disableLogs",{}),o(this,"dynamicLoadedFns",{}),o(this,"dynamicRamUsage",r.a.ScriptBaseRamCost),o(this,"errorMessage",""),o(this,"loadedFns",{}),o(this,"output",""),o(this,"ramUsage",0),o(this,"running",!1),o(this,"infiniteLoopSafetyCounter",0),this.name=t.filename,this.hostname=t.server;const s=Math.round(e);if("number"!=typeof s||isNaN(s))throw new Error("Invalid PID when constructing WorkerScript: "+e);this.pid=s,t.pid=s;const l=Object(i.d)(this.hostname);if(null==l)throw new Error("WorkerScript constructed with invalid server ip: "+this.hostname);let c=!1;for(let t=0;t=s.a.CyclesPerIndustryStateCycle){const e=this.getState(),n=1,a=n*s.a.CyclesPerIndustryStateCycle;if(this.storedCycles-=a,this.divisions.forEach(t=>{t.process(n,e,this)}),this.shareSaleCooldown>0&&(this.shareSaleCooldown-=a),this.issueNewSharesCooldown>0&&(this.issueNewSharesCooldown-=a),"START"===e){this.revenue=0,this.expenses=0,this.divisions.forEach(t=>{t.lastCycleRevenue!==-1/0&&t.lastCycleRevenue!==1/0&&t.lastCycleExpenses!==-1/0&&t.lastCycleExpenses!==1/0&&(this.revenue=this.revenue+t.lastCycleRevenue,this.expenses=this.expenses+t.lastCycleExpenses)});const e=this.revenue-this.expenses;this.avgProfit=(this.avgProfit*(s.a.AvgProfitLength-1)+e)/s.a.AvgProfitLength;const a=e*(n*s.a.SecsPerMarketCycle);if((isNaN(this.funds)||this.funds===1/0||this.funds===-1/0)&&(Object(u.a)("There was an error calculating your Corporations funds and they got reset to 0. This is a bug. Please report to game developer.

(Your funds have been set to $150b for the inconvenience)"),this.funds=15e10),this.dividendPercentage>0&&a>0)if(isNaN(this.dividendPercentage)||this.dividendPercentage<0||this.dividendPercentage>100*s.a.DividendMaxPercentage)console.error("Invalid Corporation dividend percentage: "+this.dividendPercentage);else{const e=a-this.dividendPercentage/100*a;t.gainMoney(this.getDividends(),"corporation"),this.addFunds(e)}else this.addFunds(a);this.updateSharePrice()}this.state.nextState()}}getDividends(){const t=(this.revenue-this.expenses)*s.a.SecsPerMarketCycle,e=this.dividendPercentage/100*t/this.totalShares,n=this.numShares*e;let a=-.15;return 1===this.unlockUpgrades[5]&&(a+=.05),1===this.unlockUpgrades[6]&&(a+=.1),Math.pow(n,l.a.CorporationSoftcap+a)}determineValuation(){let t,e=this.avgProfit;return this.public?(this.dividendPercentage>0&&(e*=(100-this.dividendPercentage)/100),t=this.funds+85e3*e,t*=Math.pow(1.1,this.divisions.length),t=Math.max(t,0)):(t=1e10+Math.max(this.funds,0)/3,e>0?(t+=315e3*e,t*=Math.pow(1.1,this.divisions.length)):t=1e10*Math.pow(1.1,this.divisions.length),t-=t%1e6),t*l.a.CorporationValuation}getTargetSharePrice(){return this.determineValuation()/(2*(this.totalShares-this.numShares)+1)}updateSharePrice(){const t=this.getTargetSharePrice();this.sharePrice<=t?this.sharePrice*=1+.01*Math.random():this.sharePrice*=1-.01*Math.random(),this.sharePrice<=.01&&(this.sharePrice=.01)}immediatelyUpdateSharePrice(){this.sharePrice=this.getTargetSharePrice()}calculateShareSale(t){let e=t,n=this.shareSalesUntilPriceUpdate,a=this.sharePrice,r=0,i=0;const o=Math.ceil(t/s.a.SHARESPERPRICEUPDATE);if(isNaN(o)||o>1e7)return console.error("Something went wrong or unexpected when calculating share sale. Maxiterations calculated to be "+o),[0,0,0];for(let t=0;t3600?Math.floor(e/3600)+" hour(s)":e>60?Math.floor(e/60)+" minute(s)":Math.floor(e)+" second(s)"}unlock(t){const e=t.index,n=t.price;for(;this.unlockUpgrades.length<=e;)this.unlockUpgrades.push(0);this.fundsthis.pop&&(this.popEst=this.pop)):this.popEst>this.pop&&(this.popEst-=t,this.popEstthis.pop&&(this.popEst=this.pop)):this.popEst>this.pop&&(this.popEst*=1-t/100,this.popEst0?1:-1),this.pop+=n,e.changeEstEqually&&(this.popEst+=n,this.popEst<0&&(this.popEst=0)),n}changeChaosByCount(t){if(isNaN(t))throw new Error("NaN passed into City.changeChaosByCount()");0!==t&&(this.chaos+=t,this.chaos<0&&(this.chaos=0))}toJSON(){return Object(i.b)("City",this)}static fromJSON(t){return Object(i.a)(l,t.data)}}i.c.constructors.City=l},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));class a{constructor(t,e=[],n=""){this.name=t,this.locations=e,this.asciiArt=n}addLocation(t){this.locations.push(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var a=n(19),r=n(21),i=n(1),o=n(1788),s=n(0),l=n.n(s);const c=t=>{const[e,n]=Object(s.useState)(t.initialValue);return l.a.createElement(a.a,null,l.a.createElement(r.a,{title:l.a.createElement(i.a,null,t.tooltip)},l.a.createElement(i.a,null,t.label)),l.a.createElement(o.a,{value:e,onChange:(t,e)=>{n(e)},onChangeCommitted:t.callback,step:t.step,min:t.min,max:t.max,valueLabelDisplay:"auto",sx:{"& .MuiSlider-thumb":{height:"12px",width:"12px"}},marks:t.marks}))}},,,function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return f}));var a=n(0),r=n(1),i=n(21),o=n(8),s=n(78);let l;function c(t){let e="",n="";return t.tickerDisplayMode===l.Portfolio?(e="Switch to 'All Stocks' Mode",n="Displays all stocks on the WSE"):(e="Switch to 'Portfolio' Mode",n="Displays only the stocks for which you have shares or orders"),a.createElement(i.a,{title:a.createElement(r.a,null,n)},a.createElement(o.a,{onClick:t.changeDisplayMode},e))}function f(t){return a.createElement(a.Fragment,null,a.createElement(c,t),a.createElement("br",null),a.createElement(s.a,{sx:{width:"100%"},onChange:t.changeWatchlistFilter,placeholder:"Filter Stocks by symbol (comma-separated list)",type:"text"}))}!function(t){t[t.AllStocks=0]="AllStocks",t[t.Portfolio=1]="Portfolio"}(l||(l={}))},function(t,e,n){"use strict";n.d(e,"f",(function(){return c})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return u})),n.d(e,"e",(function(){return m})),n.d(e,"d",(function(){return h})),n.d(e,"a",(function(){return d}));var a=n(10),r=n(18),i=n(46),o=n(93),s=n(22),l=n(89);function c(){return this.getHomeComputer().serversOnNetwork.includes(l.a.DarkWeb)}function f(){const t=Object(s.d)(this.currentServer);if(null===t)throw new Error("somehow connected to a server that does not exist. "+this.currentServer);return t}function u(){const t=Object(s.d)("home");if(t instanceof i.a)return t;throw new Error("home computer was not a normal server")}function m(){const t=this.getHomeComputer().maxRam,e=Math.log2(t),n=Math.pow(1.58,e);return t*a.a.BaseCostFor1GBOfRamHome*n*r.a.HomeComputerRamCost}function h(){return 1e9*Math.pow(7.5,this.getHomeComputer().cpuCores)}function d(){const t="hacknet-node-"+this.hacknetNodes.length,e=new o.a({adminRights:!0,hostname:t,ip:Object(s.e)()});this.hacknetNodes.push(e.hostname),Object(s.a)(e);return this.getHomeComputer().serversOnNetwork.push(e.hostname),e.serversOnNetwork.push(l.a.Home),e}},,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return N})),n.d(e,"b",(function(){return P}));var a=n(4),r=n(15),i=n(79),o=n(119),s=n(12),l=n(152),c=n(211),f=n(67),u=n(52),m=n(66),h=n(186),d=n(26),p=n(106),g=n(57),y=n(197),b=n(2),E=n(91),v=n(528),k=n(65),_=n(22),w=n(135),S=n(89),x=n(104),C=n(85),L=n(14),O=n(102),M=n(412),T=n(413),A=n(10),R=n(179);function N(){Object(l.d)(b.a);const t=b.a.factions.concat(b.a.factionInvitations).filter((function(t){return d.a[t].getInfo().keep}));b.a.prestigeAugmentation(),Object(y.c)();const e=b.a.getHomeComputer();Object(_.i)(),Object(_.a)(e),Object(w.e)(b.a,e),Object(o.b)(s.a.Neurolink)&&b.a.hasAugmentation(s.a.Neurolink)&&(e.programs.push(m.a.FTPCrackProgram.name),e.programs.push(m.a.RelaySMTPProgram.name)),Object(o.b)(s.a.CashRoot)&&b.a.hasAugmentation(s.a.CashRoot)&&(b.a.setMoney(1e6),e.programs.push(m.a.BruteSSHProgram.name)),Object(o.b)(s.a.PCMatrix)&&b.a.hasAugmentation(s.a.PCMatrix)&&(e.programs.push(m.a.DeepscanV1.name),e.programs.push(m.a.AutoLink.name)),(b.a.sourceFileLvl(5)>0||5===b.a.bitNodeN)&&e.programs.push(m.a.Formulas.name),Object(_.f)(b.a.getHomeComputer());for(const t of Object.keys(f.a))f.a.hasOwnProperty(t)&&f.a[t].gainFavor();for(const t of Object.keys(d.a))d.a.hasOwnProperty(t)&&d.a[t].gainFavor();null!==C.a.action&&C.a.finishAction(E.b,b.a,!0),C.a.clear(),R.a.emit(),Object(d.c)(),b.a.factionInvitations=b.a.factionInvitations.concat(t),Object(o.e)(),b.a.reapplyAllSourceFiles(),Object(f.b)(),b.a.applyEntropy(b.a.entropy);const n=b.a.gang;if(b.a.inGang()&&null!==n){const t=d.a[n.facName];t instanceof h.a&&Object(p.d)(t);const e=.95;for(const t of n.members)t.hack_asc_points*=e,t.str_asc_points*=e,t.def_asc_points*=e,t.dex_asc_points*=e,t.agi_asc_points*=e,t.cha_asc_points*=e}if(3===b.a.bitNodeN&&e.messages.push(k.a.CorporationManagementHandbook),b.a.bladeburner instanceof c.a&&b.a.bladeburner.prestige(),8===b.a.bitNodeN&&(b.a.money=25e7),(8===b.a.bitNodeN||b.a.sourceFileLvl(8)>0)&&(b.a.hasWseAccount=!0,b.a.hasTixApiAccess=!0),b.a.hasWseAccount&&(Object(x.f)(),Object(x.h)()),Object(o.b)(s.a.TheRedPill)&&b.a.hasAugmentation(s.a.TheRedPill)){const t=Object(_.d)(S.a.WorldDaemon),e=Object(_.d)(S.a.DaedalusServer);t&&e&&(t.serversOnNetwork.push(e.hostname),e.serversOnNetwork.push(t.hostname))}Object(o.b)(s.a.StaneksGift1)&&b.a.hasAugmentation(s.a.StaneksGift1)&&Object(p.d)(d.a[a.a.ChurchOfTheMachineGod]),O.c.prestigeAugmentation(),Object(v.b)(),M.b.splice(0,M.b.length),T.b.splice(0,T.b.length)}function P(t){Object(l.d)(b.a),b.a.prestigeSourceFile(),Object(y.c)();const e=b.a.getHomeComputer();null!==C.a.action&&C.a.finishAction(E.b,b.a,!0),C.a.clear(),R.a.emit(),Object(_.i)(),Object(_.a)(e),Object(w.e)(b.a,e),Object(_.f)(b.a.getHomeComputer()),b.a.sourceFileLvl(9)>=2?e.setMaxRam(128):b.a.sourceFileLvl(1)>0?e.setMaxRam(32):e.setMaxRam(8),e.cpuCores=1;for(const t of Object.keys(f.a))f.a.hasOwnProperty(t)&&(f.a[t].favor=0);for(const t of Object.keys(d.a))d.a.hasOwnProperty(t)&&(d.a[t].favor=0);null!==C.a.action&&C.a.finishAction(E.b,b.a,!0);for(const t of Object.keys(i.a))i.a.hasOwnProperty(t)&&delete i.a[t];if(b.a.sourceFileLvl(12)>0&&b.a.augmentations.push({name:s.a.NeuroFluxGovernor,level:b.a.sourceFileLvl(12)}),Object(d.c)(),Object(o.e)(),b.a.reapplyAllSourceFiles(),Object(f.b)(),(b.a.sourceFileLvl(5)>0||5===b.a.bitNodeN)&&e.programs.push(m.a.Formulas.name),3===b.a.bitNodeN&&(e.messages.push(k.a.CorporationManagementHandbook),Object(L.a)("You received a copy of the Corporation Management Handbook on your home computer. Read it if you need help getting started with Corporations!")),8===b.a.bitNodeN&&(b.a.money=25e7),(8===b.a.bitNodeN||b.a.sourceFileLvl(8)>0)&&(b.a.hasWseAccount=!0,b.a.hasTixApiAccess=!0),10===b.a.bitNodeN&&Object(L.a)("Visit VitaLife in New Tokyo if you'd like to purchase a new sleeve!"),13===b.a.bitNodeN&&Object(L.a)("Trouble is brewing in "+r.a.Chongqing),b.a.hasWseAccount?(Object(x.f)(),Object(x.h)()):Object(x.d)(),b.a.gang=null,b.a.corporation=null,Object(u.e)(),b.a.bladeburner=null,b.a.sourceFileLvl(9)>=3){const t=b.a.createHacknetServer();t.level=100,t.cores=10,t.cache=5,t.updateHashRate(b.a.hacknet_node_money_mult),t.updateHashCapacity(),Object(g.p)(b.a)}13===b.a.bitNodeN&&(b.a.money=A.a.TravelCost),O.c.prestigeSourceFile(),0===b.a.sourceFileLvl(5)||t||b.a.gainIntelligenceExp(300),Object(v.b)()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var a=n(2),r=n(33),i=n(305),o=n(28),s=n(61);function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class c{constructor(t=null){l(this,"name",""),l(this,"level",1),l(this,"maxLevel",1),l(this,"autoLevel",!0),l(this,"baseDifficulty",100),l(this,"difficultyFac",1.01),l(this,"rewardFac",1.02),l(this,"successes",0),l(this,"failures",0),l(this,"rankGain",0),l(this,"rankLoss",0),l(this,"hpLoss",0),l(this,"hpLost",0),l(this,"isStealth",!1),l(this,"isKill",!1),l(this,"count",Object(r.a)(1e3,25e3)),l(this,"weights",{hack:1/7,str:1/7,def:1/7,dex:1/7,agi:1/7,cha:1/7,int:1/7}),l(this,"decays",{hack:.9,str:.9,def:.9,dex:.9,agi:.9,cha:.9,int:.9}),l(this,"teamCount",0),t&&t.name&&(this.name=t.name),t&&t.baseDifficulty&&(this.baseDifficulty=Object(i.a)(t.baseDifficulty,10)),t&&t.difficultyFac&&(this.difficultyFac=t.difficultyFac),t&&t.rewardFac&&(this.rewardFac=t.rewardFac),t&&t.rankGain&&(this.rankGain=t.rankGain),t&&t.rankLoss&&(this.rankLoss=t.rankLoss),t&&t.hpLoss&&(this.hpLoss=t.hpLoss),t&&t.isStealth&&(this.isStealth=t.isStealth),t&&t.isKill&&(this.isKill=t.isKill),t&&t.count&&(this.count=t.count),t&&t.weights&&(this.weights=t.weights),t&&t.decays&&(this.decays=t.decays);let e=0;for(const t of Object.keys(this.weights))this.weights.hasOwnProperty(t)&&(e+=this.weights[t]);if(e-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(const t of Object.keys(this.decays))if(this.decays.hasOwnProperty(t)&&this.decays[t]>1)throw new Error(`Invalid decays when constructing Action ${this.name}. Decay value cannot be greater than 1`)}getDifficulty(){const t=this.baseDifficulty*Math.pow(this.difficultyFac,this.level-1);if(isNaN(t))throw new Error("Calculated NaN in Action.getDifficulty()");return t}attempt(t){return Math.random()s.a.ChaosThreshold){const t=e.chaos-s.a.ChaosThreshold+1;return Math.pow(t,.5)}return 1}getEstSuccessChance(t){function e(t){return Math.max(0,Math.min(t,1))}const n=this.getSuccessChance(t,{est:!0}),a=this.getSuccessChance(t),r=Math.abs(a-n);let i=a-r,o=a+r;const s=t.getCurrentCity(),l=s.pop/s.popEst;return l<1?i*=l:o*=l,[e(i),e(o)]}getSuccessChance(t,e={est:!1}){if(null==t)throw new Error("Invalid Bladeburner instance passed into Action.getSuccessChance");let n=this.getDifficulty(),r=0;for(const e of Object.keys(this.weights))if(this.weights.hasOwnProperty(e)){const n=a.a.queryStatFromString(e),i="eff"+e.charAt(0).toUpperCase()+e.slice(1);let o=t.skillMultipliers[i];null==o&&(console.error("Failed to find Bladeburner Skill multiplier for: "+e),o=1),r+=this.weights[e]*Math.pow(o*n,this.decays[e])}if(r*=a.a.getIntelligenceBonus(.75),r*=t.calculateStaminaPenalty(),r*=this.getTeamSuccessBonus(t),r*=this.getChaosCompetencePenalty(t,e),n*=this.getChaosDifficultyBonus(t),"Raid"==this.name&&t.getCurrentCity().comms<=0)return 0;if(r*=t.skillMultipliers.successChanceAll,r*=this.getActionTypeSkillSuccessBonus(t),this.isStealth&&(r*=t.skillMultipliers.successChanceStealth),this.isKill&&(r*=t.skillMultipliers.successChanceKill),r*=a.a.bladeburner_success_chance_mult,isNaN(r))throw new Error("Competence calculated as NaN in Action.getSuccessChance()");return Math.min(1,r/n)}getSuccessesNeededForNextLevel(t){return Math.ceil(.5*this.maxLevel*(2*t+(this.maxLevel-1)))}setMaxLevel(t){this.successes>=this.getSuccessesNeededForNextLevel(t)&&++this.maxLevel}toJSON(){return Object(o.b)("Action",this)}static fromJSON(t){return Object(o.a)(c,t.data)}}o.c.constructors.Action=c},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var a=n(6);const r=[];function i(t){if(r.find(e=>e.runningScript.pid===t.pid))return;const e=new Date;for(r.unshift({timeOfDeath:e,runningScript:t.scriptRef});r.length>a.a.MaxRecentScriptsCapacity;)r.pop()}},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(125),o=n(38);const s=["ttftfffttttttttttfffffffttftt1ttttttt111tttt1111111tttt1tt111tttt111111tttt1ttttttttttttttt111111111\nttfttttttttttttttttfLLLftfffffffffftttt111tt11111ttffffftttt1111111111111111ttttttfttttttttt111111t1\nttttttttttttttttffffLfftffffffffLLffttttttftt111ttfffffftttttttt111111ttttttffffttfffttttttt111111tt\nttttttttttttttttfffLfttffffffLLffffttttttttttt1tfffffffffftttttt111111tffffffffftttfffftttt11111ttt1\nttttttttttttffLfttfffttfffffffffttfftttttt1t1tt11tfffffftttttt111t111111ttffffLLffttfffftt111111tttt\nttttttttttffLLLLfttttffLLLfttttftfLftttttttffffttttffffttttfftt11t111tt111ttfffLffttfftttttt1111tttt\nttttttttffLLLLLLLffttfLLffttfffftfLfttttttffttt11111ttttffffffftt1111tft11111ttffffttt11tfftt11ttttt\ntttttttfffLLLLLLLLfftffttttffLffftfftttttft1i;;::::;iitffffffffftt111tft1tttt1ttffLfttttfffffttttttt\ntttttttfffLLLLLLLLfttttffftffffftfttttttff1:,,,,,,,,::itfffffffft11111111ttttttttttt1tfffffffffffttt\ntttffttffLLLLLLLLLfttfftffffffffLLLftttttt;::,:::;;;;::1tfffftfft11111ttt1ttt1tfttt11ttffffffffLfttt\ntffffffffLLLLLLLffftfLfffttfLLffLLLfttttti;;;iii11111;:i11ttffft111111tfft11t11tt1tttttfffLLLLLLfttf\ntfffffttttfLLLffttttfffffttLLLLfLLLftttfti:;;;iiiiiiii;it111tt111t1111tffttfftt11ttftttfffLLLLLLffff\nttttfttttffffftttttttttttttfLLLffLLfttttt1;;;;;;iiiiii;1tft11tt1111111tfftfffftttttttttttfLLfffttfff\ntfffffffffftttfffffffffttffttLLfffLfttttt11i;;;;iiiiiii1tt11tfftt11111ttt1fffttt1tttttttttfffftttttt\nttffffffffftttfffffffffttffftffttftttttff1ii;;;;iii1iii111tt1ttttt1111t111ffttffttfffffLffttttffffff\nttffffffffttttffffffffttttttttttffftttttft1ii;;;ii1iii111tfft11ttt111111t1tt1tfft1ttffffLLftttLLLLLL\ntttffffffffttfffffffftttttttt11fffftttt1t111iiii;iiiii11ttffft11111111ttttttt1tt11ttffffLfftttfLLLLf\ntttttttffffttfffttttttttffttt11tffttttttt11ttii;;;iiii11i1ffftt1111111tttt111tttt11ttttffffftffLLLff\ntfttttttttttttttttttttfffftttt11tfftttttt111t1i;;;iiii1i,,:;i1111t1111ttt111t1tfftt11111ttfftffffftt\nttttfffftttttttfffftttffffttffttttft111tt11111i;;;iiii1;,,....,:::;i11tt111tt11tffftttttttt1tttttttt\nt11ttffffftttffffffttttfffttffttttft1111111111;;;;;;;it;,...........,:it111ttt1tffftttttfft11ttfffff\ntt1ttfffftt1ttfffft111tffttfttttttt1111t1i;:;11i1i;;1t1:,,............,itt11tt1tfftt1tfffffft1tffLLf\ntfttttfttttt11tttt1ttt11ttttttftt111111i:,..:1111iii11;,...............;tt111t11ttttttttffttt11ffLLf\ntfftttttttfftttttttffftt111ttffftt11i;,.,...,iiii;;;;:,,...............:1ttt1111ttfffttttft1tt1ttfft\nttttttttttttttt11ttttttttttfffffft1:,..........::::::,,,...............,1ttttt11ttfffffttttffftttttt\ntfffttttffffftt11ttttttttttfffffft1:...........:;::;:..................,1tttttt1ttfffffttttttttftttf\ntfffttttfffffft1ttftttfftttttffft11:...........,:::::..................,1tttft11tfffffffttfffffffttf\ntfffttttffffff11tttttttttttttttttt1;...........,::::,...................;t1t1111tfffffLfttfffffffttf\ntfffttttfftttt11tttttttt1tfftttttt1:...........,::::,...... ............,1111tt11fffffLftttffttffttf\ntttttttttttttt11tttttttt1tffftttft1:...........,:::,,....................it1ttt11tfffffftttffttffttt\nttttt1tttttttt11ttttttttttffttttttt:...........,::,,.....................:111tt11tttttttt1tttttttttt\nttttt1tttttttt11tftttttftttttttttt1;,:;:.......,:,,,....................,,1111t11ttttttt11ttttttfttt\n1tttt1ttfffttt11ttffffffttttfffft11ii1i:.......,:,,,.....................,1tt1111ttttttt111tttttfttt\n1ttt11tttttttt11tttttttttttttttttti;;;;:.......,:,,,....... .............,itt1111tttt11t111ttttttt1t\n111111tttttttt11111111ttttttttttt1i;;;;:.......,:,,,......................itt11111111111111111111111\n1111111111111111111111ttttttttttt1;;;;;:...... ,:,,,,.....................itt11t11111111111111111111\n1111111111111111111111tttttttttt1;:,::;,...... ,:...,.....................ittttt11111111111111111111\n111111111111111111111111tttttttt1i,..... .... .:........................,i1tttt11111111111111111111\n1111111111111111111111111t11t11111;,....,,.... ,:::,,,...................,11ttttt11t1111111t11111111\n11111111111111111111111111111111111iiiiii. ... .::::::,..................,11t1ttt111t11111tttttt1111\n1111111111111111111111111111111111111111:.,.....::::::,..................:111tttttt1tttt11tttttt1111\n1111111111111111111111111111111111111111:::,...,::::;::,..,,.............:11tt1ttttttttttttttttt1111\n","ttftfffttttttttttffffffftfftttttttttt111tttt1111111ttttttt111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttftfLLLftfffffffffftt11111tt11111ttffffttttt1111111111111111ttttttfttttttttt111111tt\nttftttttttttttttffffLftttfffffffLLLfttttttftt111ttfffffftttttttt111111tttttffffftfffftttttt1111111tt\nttttttttttttttttfffLLttffffffLLffffttttttttttt1tffffffffffttttttt11111tffffffffftttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttfftttttt1tttt1ttftfffftt1ttt111t111111ttffffLLffttfffft1111111tttt\nttttttttttffLLLLfttttffLLLfttttttfLftttttttfft11i;;:;;i11ttfftt11t111tt111tttffffftttttttttt111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLttttttfff1;,,,,,,,,:;tffffft11111tft11111ttffffttt11tffftt1ttttt\ntttttttfffLLLLLLLLfftffttttffLffftfftttttfft1;:,,,,,::::,;tffftttt111tft1tttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffffftfftttttfffti:;;;iiii11i;:tffffft11111111ttftttttttt1ttffffffffffttt\ntttffttffLLLLLLLLLftffftfLftfftfLLLftttttfft::i;iiiiii11i:1ffftft11111ttt1ttt1ttttt11ttfffffLLfLfttt\nttfLfffffLLLLLLLLfftfLLfffffLfffLLLfttttt1tt;:;;;;;iiiiiii1tffft11111tffft11t11tt1tttttfffLLLLLLffff\ntffftfttttfLLLffttttfffffttLLLLfLLLftttft111i;;;;;;iiiiii111tt111t1111tffttfftt11tfft1tfffLLLLLLLffL\ntttfftttttffLftttttttttttttfLfLffLLfttttttt1iii;;;;;ii11i1t11t11111111tffttfffttttttt11ttfLLLLffftff\nttfLffffffftttfffffffffttfftfLLfffLftttttfft1ii;;;;iii1i1tt1tfftt11111ttt1tffttt1ttt1tttttffffttffft\nttffffffffftttffffffffttfffftffffftttttfffft111;;;;iiii1111t1ttttt1111tt11ffttfftttfffffLfttttfffffL\nttffffffffttttffffffffttttttttttffftttttttt11ttii;iiiiii11tft11ttt111111t11t1tfft1tfffffLLftttLLLLLL\n1ttffffffffttfffffffftttttttt11ffffttttt1111tftiii;;iiii1;,;1111111111tttt11111111ttffffLfftttffLLLf\nttttttttfffttfffttttttttffttt11tffftttttt11ttf1;;;i;iiii1:,,.,,::;ii11tttt111tttt11ttffffffftffLLLff\ntfttttttttttttttttttttfffftttt11tfftttttt111tt1;;;i;;ii1t:,,........,:;1t111t1tfftt11111ttfftffffftt\ntftttffffttttttfftftttffffttffttttftt11tt111i;;;;;;;;;it1,,............,;11tt11tffffttttttt1tttttttt\ntttttffffftttfffffft1ttffftfffttttft111111;:,.;iii;;;i11,.,.............,1tttt1tffftttttfft111tfffff\n1tttffffftt1ttfffftt11tffttfttttttt1111i;,....,1iii;ii;,................,111tt1tfft11tffffftt1tLffLf\ntftttfftt1ttt1tttt1tttt1ttttttttt1111;:,.......i1;;;:::.................,it11t11ttttttttffftt11fffLf\ntfftttttttfftt1111ttfftt11ttfffftt1ti..........:i;::;:,..................ittt111t1tffttttft1tt1tffft\nttttttttttttttt11tttttttt1tffffffftti,.........,::::::,..................itttt11ttffffftttttfftttttt\ntfffttttfffffft11ttttttttttffffffft1i,.........,:,:::,...................,1tttt11tfffffttttttttffttf\ntfffttttfffffft11tftttfftttttffft1111:.........,:,:::,....................;tt111tfffffffttfffffffttf\ntfffttttfffffft1tttttttftttttttttt111;.........,:,::,,....................,111111fffffLfttfffffffttf\ntffftttttttffft11tttttttttffttttfft11i.........,:.:,,......................:1tt11fffffLftttffttffttf\ntttttttttttttt111ttttttt1tffftttfft111:....... ,:.:,,.......................1tt11tfffffftttffftffttt\nttttt1tttttttt11ttttttttttfttttttft111i,...... ,:,,,,......................,itt11ttttttt11ttttttfttt\nttttt1tttttttt11tfttttfftttttffttt1111i,...... ,:.,,,......................:11111ttttttt11ttttttfttt\n1tttt1ttftfttt11tfffffffttttfffft11111,....... ,,.,,....... ...............it1111ttttttt111tttttfttt\n1tttt1tttttttt11ttttttttttttttttt1111;,....... ,,.,,......................:tt11111ttt11t111ttttttt1t\n11t111tttttttt111t1111tttttttttt1iiii:,,...... ,,.........................;t111111111111111111111111\n111111111tt11111111111ttttttttt1;;iiii:....... ,,............ ...........;tttt1111111111111111111111\n1111111111111111111111ttttttttt1;;;iii;... ....,::::,....,:::,,.........;1ttttt111111111111111111111\n111111111111111111111111tttttttt1i;;ii: .,....,:::::... .;;;;;:,.....,;1ttttttttt111111111111111111\n1111111111111111111111111tt1111111i,,.,:;i: ...,:::::.....:;;;;;:.....,1ttttttttt11t1111111t11111111\n11111111111111111111111111111111111:.:1tti,....,:::::.... ,;;;;;;,.....ittttttttt111t11111ttttt11111\n1111111111111111111111111111111111111ttt;,,....,:::::,... .,;;;;:,.,,..:ttttttttttt1tttt11tttttt1111\n11111111111111111111111111111111111111t1,,,....:;;::::,.....:;;;:......,1ttttttttttttttttttttttt1111\n","ttftffftttttttttffffffLftfftttttttttt111tttt1111111tttt1tt111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftfffffffffttt11111tt11111ttfffft1ttt1111111111111111tttttffttttttttt111111tt\nttftttttttttttttffffLffttfffffffLLLfttttttfttt11tffffffftttttttt111111tttttffffftfffftttttt1111111tt\nttttttttttttttttfffLLttffffffLLffffttttttttttt1ttt1iiiii1tttttttt11111tffffffffftttfffffttt1111t1tt1\nttttttttttttffffttffftffffffffffttffttttt11tttt1i::,,,,,,:;111111t111111ttffffLLffttfLfftt11111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfft1i;,,,,,,,,,:;ttt11t111tt111tttffffftttftttttt111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLtttttffffti;::;;;;;iii::1ftt11111tft11111ttffffttt11tffftt1ttttt\ntttttttfffLLLLLLLLLftffttttffLffftffttttffffft;:;iiii11111i:iftttt111ttt1tttt11tffLfttttfffffttttttt\ntttttttffLLLLLLLLLfttttffftffLLftfftttttffffft;:;;;;;iiiiii;1fftt11111111ttftttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttttffffti;;;;;;;ii;iiitffft11111ttt1ttt1tfttt11ttfffffLLfLfttt\nttfLfffffLLLLLLLLffffLLfffffLfffLLLLtttttttff1iii;;i;;iii111tfft111111ffft11t11tt1tttttfffLLLLLLffff\ntffftftttffLLLffttttfffffttLLLLfLLLffttftt11t1iii;;;;;iiiii1tt111t1111tffttfftt11tfft1tfffLLLLLLLfff\nttffftttttffLftttttttttttttfLLLffLLftttttttft111i;;;;iiii1111111111111tffttfffttttttt11ttfLLffffftff\nttfLffffffftttfffffffffttfttfLLfffLftttttfffft11i;;;;iiii1t1ttttt11111ttt1tffttt11ttttttttfffftfttft\nttffffffffftttffffffffttfffftffffftttttfffft11t1i;;;;;iii1ii1ttttt1111t111ffttfft1tfffffLfttttfffffL\nttffffffffttttffffffffttttttttttffftttttttt11tft1i;;;;iii1i,:;i1ttt11111t11t1tfft1ttffffLLfttfLLLLLL\ntttffffffffttfffffffftttttttt11ffffttttt1111tfti;ii;;iiii1;,,...,:;ii1tttt1111tt11ttffffffftttffLLLf\nttttttttfffttfffttttttttffttt11tffftttttt11t1iii;;ii;;;i1t:,.........,:;1t111ttt111ttffffffftffLLLLf\ntfttttttttttttttttttttfffftttt11tfftt11tt1i:,.:;;;i;;;itti,,............,;1111ttttt11111ttfftffffftt\ntfttfffftttttttfffftttffffttffttttft1111i:....,;;;ii;i11;.,,.............:1tt1ttffffttttttt1ttttttft\ntttttffffftttffftffttttffftfffttttft1i:,.......:;;;;;;;:,................:tttt1tffftttttfft11ttfffff\n1t1tffffftt1ttfffftt11tffttftttttttt1,.........,ii;;;;;,.................:11tt1tfft11tfffffft1fLLfLf\ntftttfftt1ttt1tftt1ttt11ttttttttt111i,.........,11;:;;:,.................,1t1t11ttttttttfftt111fffLf\ntfftttttttffttt111ttfftt11ttffffftt11,.........,i;::::,..................,1tt11111ffft1ttt11tt1tffft\nttttttttttttttt11tttttttt1tffffffft11;..........::::::,...................;tt1111tfffftttttffftttttt\ntfffttttfffffft11ttttttttttffffffft11:..........:::::,..,;:,...............ittt1tttttffttttttttffttf\ntfffttttfffffft11tftttffttttfffft1111:..........:::::,..;1i;:,..............1t11tfffffffttfffffffttf\ntfffttttfffffft1tttttttftttttttttt111;..........::,:,...;ii;;;,.............:1111tffffLfttfffffffttf\ntffftttttttfft11ttttttttttfftttttft11i,.........::,,,...;;;;;i:..............;111tffffLfttfffttffttf\ntttttttttttttt111tttttttttffftttfft11i,.........::,,,...;;;;;i:..............:111tfffffftttffttffttt\ntttttttttttttt11ttttttttttfftttttft111:.........:,,,....::;;;;:.............,1t11ttttttt11tttttffttt\nttttt1tttttttt11tfttttfftttttfftttt111:.........:,,,......,::::..,.........,i1111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfffffffttttfffft1111i:,........:,,,..... .......,,...... .it1111ttttttt111tttttft1t\n1tttt1tttttttt11ttttttttttttttttt1iiii;,........:........... ...........:itt11111ttt1t1111ttttttt1t\n111111tttttttt111tt111tttttttttti;;;iii:... ....:,,...................:i1tttt11111111111111111111111\n111111111tt11111111111tttttttttt1;;;;;;;. .,....::::..................:1tttttt1111111111111111111111\n1111111111111111111111ttttttttttt1i;;::..:;1,...::::...................;ttttttt111111111111111111111\n1111111111111111111111111tttttttt111i,.,it1;....::::,..................,1ttttttttt111111111111111111\n1111111111111111111111111tttt11111111ii1t1i:...,::::,........,..........itttttttt11t1111111tt1t11111\n11111111111111111111111111111111111111tt1;:....::::;:.......,...........:1ttttttt111t11111ttttt11111\n111111111111111111111111111111111111111ti,,....:;:;::,..................,ittttttttt1tttt11tttttt1111\n111111111111111111111111111111111111111t:,:.,.:;;;;:::,..................;111t1ttttttttttttttttt1111\n","ttftffftttttttttffffffLftfftttttttttt111tttt1111111tttt11t111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftfffffffffttttt1111t11111ttffffftttt1111111111111111tttttfftttttttt1111111tt\nttftttttttttttttffffLffttffffffffLLfttttttfttt11ttt1iiii;i11tttt111111tttttffffftffffttttttt111111tt\nttttttttttttttttfffLLttffffffLLffffttttttttttt1tt1::,,,,,,:;1ttt111111tfftfffffftttfffffttt1111t1tt1\nttttttttttttffffttffftffffffffffttfftttttt1ttt11i;:,,,,,,,,,:1111t1111111tffffLLffttfLfftt11111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttffft1;:::;;;;;;;::it11t111tt111tttffffftttfttttt1111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLtttttfffffti:;;ii111111i:itt11111tft11111ttffffttt1ttffftt1ttttt\ntttttttfffLLLLLLLLLftffftttffLffftffttttfffffft;:;;;;;iiiiii;ittt1111ttt1tttt11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLLftfftttttffffffti;;;;;;;ii;iiitttt11111111ttftttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttttfffff1iii;;i;;i1i1i1tttt11111ttt1ttt1tfttt111tfffffLLfLfttt\nttfLffffffLLLLLLLffffLLfffffLfffLLLftttttttfft1i;;;;;;;iiiiitfft111111ffft11t11tt1tttttffffLLLLLffft\ntffftfttttfLLLffttttffffftfLLLLfLLLftttftt1111111i;;;;iiii111t111t1111tffttfftt11tfft1tffLLLLLLLLfff\nttffftttttffLftttttttttttttfLLLffLLftttt1tttt11tti;;;iiiii111111111111tffttffftttttttt1ttfLLLfffffff\nttfLffffffftttfffffffffttfttfLLfffLftttttffft1111i;;;;;ii111tfttt11111ttt1tffttt11ttttttttfLfftfttft\nttffffffffftttfffffffffttffftffffftttttfffft11t11i;;;;iii1i:;1ttft11111111ffttfftttfffffLfttttfffffL\nttffffffffttttffffffffttttttttttffftttttft111tttiii;;iiii1;,,,:;i1111111111t1tfft1ttffffLLftttfLLLLL\ntttffffffffttffffffffttttttttttfffftttt1111i;:;iiii;;;i;11:,,.....,:;i1tft1111tt111tffffLfftttffLLLf\nttttttttfffttfffttttttttfftt111tfffttt11i;,,..:i;;;i;ii1t1,,..........,:i1111ttt1111tffffffftffLLLLf\ntfttttttttttttttttttttffffttttt1tffti;:,,.....,;;;iiii1ti,,,.............;1111ttttt11111ttfftffffftt\ntttttffffttttttfffftttffffttffttttf1:.........,;:;;;;;;;,.,,,............:1tt1ttffff11ttttt1ttttttft\ntttttffffftttffftfft1ttffftfffttttf1,..........,;;;;;;;:.:ii;;:,.........:tttt1tfffttttffft111tfffff\n1tttffffftt1ttfffftt11tffttfttttt1t1,...........ii;;;::,,;i;;ii:.........:tttt1tfft11tfffffft1fLLfLf\ntftttffttttt11tftt1tttt1ttttttttt11i,..........,1i;;::,.:i;;;;i:.........,1t1t11ttttttttfftt111fffLf\ntfftttttttffttt11tttffttt1tttffft11i,..........,ii;:::,.,:;;iii:..........it111111tfft1ttt11tt1tffft\nttttttttttttttt11tttttttt1tfffffftti,...........:::::,....:;;ii:..........:tt111ttfffftttttffftttttt\ntfffttttfffffft11ttttttttttfffffft1i,...........:::::,.....,:;;:.... ......,1t111ttttffttttttttffttf\ntfffttttfffffft11tftttffttttfffft111:...........:::::,........,..,..........,1111tffffffttfffffffttf\ntfffttttfffffft1tttttttftttttttttt11:...........::,:,........ ...:;,.........:111tffffLfttfffttffttf\ntffftttttttfft11ttttttttttffttttttti,...........:::,,.............,...........,i1tffffLfttfffttffttf\ntttttttttttttt111tttttttttffftttfft;,:;:........:::,.............. ...........:11tfffffftttffttffttt\ntttttttttttttt11ttttttttttfftttttftii1i;:.......:::,.......... ..............:t111tttttt11tttttffttt\nttttt1tttttttt11tfttttfftttttffttt1ii;ii;,......::,,........................:1111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfffffffttttfffft11i;;ii;,......:,,,..........:........ .;t1111ttttttt111tttttft1t\n1tttt1tttttttt11tttttttttttttttttt11;:;i:,,.....:,.................. .;i;;1tt1111tttt1t1111ttttttt1t\n111111tttttttt111t111ttttttttttttt11i:,,:1;....,::....................:1ttttt11111111111111111111111\n111111111tt1111111111tttttttttttttt11i;;1t:....:::::...................;tttttttt11111111111111111111\n1111111111111111111111ttttttttttttt111ttt1,,,.,:::::,..................,1ttttttt11111111111111111111\n111111111111111111111111tttttttttt1111111i,::.,;::;:,...................;ttttttttt111111111111111111\n1111111111111111111111111ttttttt11111111t;.,,.,;;;;;,...................,1ttttttt11t1111111tttt11111\n111111111111111111111111111111111111111t1:..,,:;;;;;:,...................;ttttttt111t11111ttttt11111\n111111111111111111111111111111111111111ti,,,::;;;;;;;:,..................,1tttttttt1tttt11tttttt1111\n111111111111111111111111111111111111111t;,,::,;;;ii;;::,..................it1tttttttttttttttttt11111\n","ttftffftttttttttffffffLftfftttttttttt111tttt1111111tttt111111tttt1111111ttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftfffffffffttttt111tt11111ttffffftttt1111111111111111tttttfftttttttt1111111tt\nttftttttttttttttffffLffttfffffffLLLftttttttttt11ttt1iiii;i11tttt111111ttttttfffftffffttttttt111111t1\nttttttttttttttttfffLLttffffffLLffffttttttttttt1ttt;:,,,,,,,:itttt11111tfftfffffftttfffffttt1111t1ttt\nttttttttttttffffttffftffffffffffttfftttttt1tttt11i:,,,,,,,,,:i111t1111111tffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttffft1;::;;;;;;;;;,;t111111tt111tttffffftttftt1tt1111ttttt\nttttttttffLLLLLLLffttfLLffttfffftfLLtttttffffff1,:iiii111111;:tt11111tft11111ttffffttt11tffft11ttttt\ntttttttfffLLLLLLLLLftffftttffLffftffttttfffffffi:;;;;;iiiii1;;ttt1111ttt1tttt11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLLftfftttttfffffff1;;;;;;;ii;;ii1ttt11111111ttftttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLffffftfLftffffLLLftttttfffff1iiiiii;;iiii1itttt11111ttt1ttt11tttt11ttfffffLLfLfttt\ntffLLffffLLLLLLLLffffLLftffLLLffLLLftttttttffftiii;;;;;ii1ii1tft111111ffft11t11tt1tttttffffLLLLLffft\ntfffffttftfLLLffttttfffffttLLLLfLLLftttft111tt111i;;;;iiiii1tt111t1111tffttfftt11tfft1tffLLLLLLLLfff\nttttfttfffffLftttttttttttttfLLLffLLftttt1tttt11tti;;;iiiii111t11111111tffttffftttttttt1ttfLLLfffffff\nttffffffffftttfffffffffttfftfLLfffLftttttffft11t1i;;;;;iii11ttttt11111ttt1tffttt11ttttttttfLfftftttt\nttffffffffftttfffffffffttffftffftftttttffft111t11i;;;;iii1ii11tttt1111tt11ffttfftttfffffLfttttffffff\nttffffffffttttffffffffttttttttttffftttttttt11111iii;;iiii1;,:;1tttt11111t11t1tfft1ttffffLLftttfLLLLL\ntttffffffffttffffffffttttttttt1tffftttt11i;:,:i;;i;;;;;i11,,..,,:;i111tttt1111tt11ttffffLfftttffLLLf\nttttttttfffttfffttttttttffttt11ttff1ii;:,....,;::;i;;i11ti,,.......,:;ittt111ttt1111ttffffffttfLLLLf\ntfttttttttttttttttttttfffftttt11tff;,,........;;;;iii1tti,,,,:;;::,....,i11111ttttt11111ttfftffffftt\ntfttfffffttttttfffft1tffffttfft1ttt:..........:;;;;;;;i;...,;i;iii:.....,i1tt1ttffff11ttt1t1ttttttft\nttttfffffftttfffffft11tffftffftttti,..........,:;;;;;;;,...,;;iiii,......;tttt1tffftttttftt111tfffff\n1tttffffftt1ttfffftt111ffttft11tt1;,...........;i;;;;;:,.....:;iii,......;tttt1tfft11tffffftt1fLLfLf\ntttttffttttt11tftt1tttt1tttt1tttti,............;1;::;;,......,;iii,......;t11t11ttttttttfftt111fffLf\ntfftttttttffttt111ttfftt111ttfffti.............;i;::::,.......,;;;,......;ttt11111tfft1tttt1tt1tffft\nttttttttttttttt11ttttttt11tffffffi,............,::;:::,..........,.......:ttt1111tfffftt1tttfftttttt\ntfffttttfffffft11tttttttttttffffti,............,:::::,..............,....,ittt11ttttttft1ttttttffttf\ntfffttttfffffft11tffttff11t1tfff1;...... ....,.,:::::,.....................;11111tffffffttfffffffttf\ntfffttttfffffft1tttttttfttttttti:,......:iiii;,,:::,:.......................,;111tffffffttfffttffttf\ntffftttttttfft11ttftttttttfftti,,::,.,:;1i;;;;.,::::,.........................,i1tffffLfttfffttffttf\ntttttttttttttt111ttttttt1ttfft1:::,,,:,:;;;;i:.,:::,,..........................;1tfffffftttffttffttt\nttttt1tttttttt11ttttttttttfttt1;,...,...:;;;:, ,:::,..........................;11ttttttt11ttttttfttt\nttttt1tttttttt11tfttttfftttttfti,..,....,,,....,:::,.........................:111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfffffffttttffft1;::::,,.......,:,:,.................. .:1111ttttttt111tttttfttt\n1tttt1tttttttt11ttttttttttttttttttt11111:......,:,,,..................,::,:1tt1111ttt1t1111ttttttt1t\n111111tttttttt111t1111tttttttttttt111111:......,,.....................,1tttttt1111111111111111111111\n1111111111t11111111111ttttttttttttt11111:......,:,,....................:1t1ttttt11111111111111111111\n1111111111111111111111ttttttttttttt1111t:......,;;::....................:1ttttttt1111111111111111111\n111111111111111111111111ttttttttt1111111:......,::::,...................,itttttt11111111111111111111\n111111111111111111111111111tttt111111111:......,;;::,....................:1ttttttt1tt11111ttttt11111\n1111111111111111111111111111111111111111:......:;;;::,...................,ittttttt11t11111ttttt11111\n11111111111111111111111111111111111111t1:......:;i;;::,...................:11tttttt1tttt11ttttt11111\n1111111111111111111111111111111111111111,......:;;;;;::,..................,1tttttttttttttttttttt1111\n","ttftfffttttttttttfffffLftfftttttttttt111tttt1111111tttt111111ttttt11111tttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftffffffffftttttt111111111ttfffftt1tt1111111111111111ttttttftttttttt1111111tt\nttftttttttttttttffffLftttfffffffLLLft1tttttft111tfftttfttttttttt111111ttttttfffftffffttttttt11111tt1\nttttttttttttttttfffLfttffffffLLffffttttttttttt1ttti;;;;::;i1tttt111111tffffffffftttfffffttt11111ttt1\ntttttttttttfffffttffftffffffffffttfftttttt1ttt111i,,,,,,,,,;11111t1111111tffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttffft1i::,,,,,,,,,:1t11t111tt1111ttffffftttftt1tt1111ttttt\nttttttttffLLLLLLLffttfLLLfttfLfftfLLtttttfffffti:;;iiiiiiii::1tt11111tftt1111ttffffttt11tffft11ttttt\ntttttttfffLLLLLLLLLftffftttffLffftfftttttffffft::;;iii1i111i:1ttt1111ttt1tttt11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftfftttttfffffft;;;;;;;iiiiii;tttt11111111ttftttttttt11tffffffffffttt\ntttfftfffLLLLLLLLLfttfftfLfffffffLLftttttfffft1ii;;;;;iiiiiitfttt11111ttt1ttt11tttt11ttfffffLLfLfttt\nttfLLfffffLLLLLLLfftfLLftfffLLffLLLftttttttfftiii;;i;;ii111itfft111111tfft11t11tt1tttttfffLLLLLLLfff\ntfffffttftfLLLffttttffffftfLLLLfLLLftttft111tt1iii;;;;iiiii1tt111tt111tffttfftt11tfftttffLLLLLLLLfff\nttttfttffttffftttttttttttttfLLLffLLftttt1tttt11t1i;;;iiii1111t11111111tffttffftttttttt1ttfLLLfffffff\nttfLffffffftttfffffffffttftttfLfffLftttttfffft11i;;;;iiii111tfttt11111ttt1fffttt1ttt1tttttfLLffftttt\nttffffffffftttfffffffffttfftttfttttttttffft11111i;;;;;iii1tt11tttt1111t111ffttffttfffffLLfttttfLffff\nttffffffffttttffffffffttttttttttffftt11ttt1111t1i;;;iii1i1itt11ttt111111t11t1ttft1ttffffLLftttfLLLLL\ntttffffffffttfffffffftttttt1111tffftttt11i;::i1iii;;;iii1i,:;i11t11111tttt1111tt11ttffffLfftttffLLLf\nttttttttfffttfffttttttttffttt11ttft1ii;:,....;i;;;ii;;i1t:,...,:;i1111tttt111ttt1111tttffffftfLLLLLf\ntfttttttttttttttttttttfffftttt11t1:,,........ii:;;iii1tt1,,,......,,;i1tt11111ttttt11111ttfftffffftt\ntfttfffffttttttfffft1tffffttfft11;,..........:;::;ii11t1:,,,...,,:,...,it11tt11tffffttttttt1ttttffft\nttttfffffftttfffffft11tfffttfttt1,....,,......,:;;;;;;i,.......:iii;;,.,1t1ttt1tffftttttfftt11tfffff\n1tttffffftt1ttfffft1111tfttft11ti,.............;i;;;;;:........:iiiii:..it11tt1tfftt1tfffffft1fLffLf\ntttttffttttt11tttt1tttt1tttt1tt;,..............i1;;;;;,........,;iii;,..it111t11ttttttttfftt111fffLf\ntfftttttttfftt1111ttfft11111tft:...............;i;;;;:,.........:;ii:..,ittt111111tfftttttt1tt1tffft\nttttttttttttttt11ttttttt11ttff1,...............,::::::......... ,;ii:...itttt111ttffffft1tttfttttttt\ntfffttttffftttt11ttttttt111tft;,........... ..,:;:::,...........,:;:...;ttttt11ttfffffttttttttffttf\ntfffttttfffffft11ttttttf11111;:,..... .....,:::::::::...............,...:1ttt1111fffffffttfffffffttf\ntfffttttfffffft11ttttttt11ti,,...........,:;i;;;:::::..................,.:tt11111tffffffttfffffffttf\ntffftttttttfff111ttttttt111,.,,,,...,,..,;;;;;i;:,::,....................,;i1t111tffffLfttfffftffttt\ntttttttttttttt111ttttttt11t:.......,....,:;;;;;:::,:,.......................:1t11tfffffftttffttffttt\nttttt11ttttttt11tttttttt11t1,............,,,...,::::.........................:111ttttttt11ttttttfttt\nttttt1tttttttt11ttttttfft1t1:,............ .. ,:::,........................,i111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfftttfftttttt1;::,,::.........,:,,,........................i1111ttttttt111tttttfttt\n1ttt11tttttttt11tttttttttttttttttt111i.........,::,,................. . .;t11111ttt1tt111ttttttt1t\n11t111tttt1tt111111111tttttttttttt111i,........,:,,...................,..,itttt111111111111111111111\n1111111111111111111111tttttttttttt111i,....... ,:....................i111ttttttt11111111111111111111\n1111111111111111111111ttttttttttt1111i,....... ,:,::,................,i1t11tttttt1t11111111111111111\n111111111111111111111111tttttttt11111i,........,::;:,..................;1ttttttt11111111111111111111\n1111111111111111111111111tttt11111111i........ ,,:::,..................,1ttttttttttt1111111tt1t11111\n1111111111111111111111111111111111111i,........,,:::,...................it111ttttt11t11111ttttt11111\n111111111111111111111111111111111111t1,........,,,:::,..................,1t1ttttttt1tttt11ttttt11111\n11111111111111111111111111111111111111,........,,,;;::,..................i111ttttttttttttttttttt1111\n","ttftffftttttttffffffffLfttftttttttttt111tttt1111111tttt111111tttt1111111ttttttttttttttttttt11111111t\nttfttttttttttttttftfLLLftffftffffftttttt111111111ttfffftt1tt1111111111111111ttftttftttttttt1111111tt\nttftttttttttttttffffLftttfffffffLLLft11tttfft111tfffffffttt1ttttt11111ttttttfffftffffttttttt11111tt1\nttttttttttttttttfffffttffffffLLffffttt1ttttttt1tt111ii11tft1ttttt11111tfftfffffftttfffffttt11111ttt1\nttttttttttttffffttfffttfffffffffttffftttt111ttt1:,,,,,,,:i1111111t111111ttffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLLfttttttftt1;:,,,,,,,,,;1tt111t1111t111tttffffftttftt1ttt111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLfttttffft1i;;;;;;;;;;::1tttt11111ttt11111ttffffttt11tffft11ttttt\ntttttttfffLLLLLLLLLftffftttffLLfftfftttttffffi:;iii111111i:ittttt1111ttt1tttt11tfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftfftttttfffff;:;;;;iiiiiii:ittttt11111111ttttttttttt11tffffffffffttt\ntttffftffLLLLLLLLLfttfftfLftfffffLLftttttffff1i;;;;;ii;iiiittttft11111ttt1ttt1ttttt11ttfffffLLfLfttt\nttfLLfffffLLLLLLLfftfLLftfffLfffLLLftttttttf1i1i;i;;iiii1i1tffft111111tfft11t11tt1tttttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttft1111iii;;;;ii1i1i11tt111t1111tffttfftt11tfftttfffLLLLLLLfff\ntttffttfftffLftttttttttttttfLLLffLLfttttttttt11i;;;;iiii11t11111111111tffttfffttttttt11ttfLLLfffffff\nttfLffffffftttfffffffffttftttfLfffLftttttffft11i;;;iiiii1t11ttttt11111ttt1fffttt1tttttttttfLLftftttt\nttffffffffftttfffffffffttffttfffttttttttfft1111i;;;;iii1111111tttt1111tt11ffttffttfffffLffttftffffff\nttffffffffttttffffffffttttttttttffftt11tttt11t1ii;;;iii11tfft11ttt111111t11tttfft1ttffffLLfttffLLLLL\ntttffffffffttfffffffftt1ttt1111fffft1tt11iiii1iiii;iiii1i:1tft11111111tttt111ttt11ttffffLfftttffLLLf\nttttttttfffttfffttttt1ttfft11111tft11i;:,..,;ti;;;i;iii1;,,,:;i1111111tttt111ttt1111tffffffftfLLLLLf\ntfttttttttttttttttttttfffftttt11i;::,,......iti::;i;iitt:,,....,:;i111ttt111t1ttttt11111ttfftffffftt\ntfttfffffttttttfffftttffffttft11:...........;ii::;i11tti,,,,.......,:itt111tt1ttffff11ttt111ttttttft\nttttfffffftttffftfft11tfffttftt;,............,:;;;;;11;,..............;1111ttt1tffftttttfftt1ttfffLf\n1t1tffffft11ttfffft1111tfttft11:.............,:ii;;;;;,...............:11t11tt1tfft11tfffffft1ffffLf\ntttttfftt1tt11tttt1ttt11t1111t;,..............:i1;;;;:,...............,111111t11ftttttttfftt11tfffLf\ntfftttttttfftt1111tttft11111t1,...............:ii;;;;,............,,,.,1tttt11111ttfftttttt1tt1tffft\nttttttttttttttt11ttttttt11ttfi................:;::;::,...........,;i;;:1tttttt11ttffffftttttfftttttf\ntfffttttftttttt11ttttttt11ttfi................,;;:::,............,;iiii1tttttft1ttffftfttttttttftttf\ntfffttttfffffft11ttttttt11111;........ .......:;:::,............:iiiii11ttftt11tfffffffttfffffffttf\ntfffttttftffff111ttttttt11ti:,....... ,:::;;:,.,;:::,............:;;ii:i11tt1111tfffffffttfffffffttf\ntffftttttfffft111ttttttt11i,.........,iii;;;,..,:::,.............::;;,.it1111tt11tffffffttfffftffttf\ntttttttttttttt111ttttttt11,.,,,,..,,,:;;;;;;,..,:::,.............,::;..:i111ttt11tfffffftttffttffttt\nttttt1tttttttt111ttttttt11;,,,...... .:;;;;:...,:,,,.....................:111tt11ttttttt11tttttffttt\nttttt1tttttttt11tttttttt111,..........,,,,.....,:,,.......................:111111ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfft11i:,.....,.... .....,::,......................,1t11111ttttttt111tttttft1t\n1tttt1tttttttt11ttttttttttttt1ii;;;:...........,:,,.....................,it111111ttttttt111ttttttt1t\n11t1111tttttt111111111tt1tttttttt11:...........,:,,.............. .;t11111111111111111111111111\n1111111111111111111111ttttttttttt11,.......... ,,................,:,,,:i1tttt1t111111111111111111111\n1111111111111111111111tttttttttt11i,...........,,,,..............:1t11ttttttttttt1111111111111111111\n111111111111111111111111tttttt1111;........... ,,:;,..............:11ttttttttttttt111111111111111111\n11111111111111111111111111tttt1111;........... ,,:;:...............:111tttttttttt11t1111111tttt11111\n1111111111111111111111111111111111;....,,......,,,::................i1ttttttttttttt1t11111ttttt11111\n1111111111111111111111111111111111;............:,,;:,...............;1tttttttttttttttttt11ttttt11111\n1111111111111111111111111111111111:............,,:;;:...............,1t1tttttttttttttttttttttttt1111\n","ttftffftttttttfffffttfLfttftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttftffLLftffffffffttttttt111111111ttfffft1ttt1111111111111111ttttttftttttttt111111ttt\nttftttttttttttttffffLftttfffffffLLLftt1tttttt111ttfffffftttttttt111111tttttffffftffffttttttt111tttt1\nttttttttttttttttfffLfttffffffLLffffttt1tttttt11tffffffffffttttttt11111tffffffffftttfffffttt11111tttt\nttttttttttttffffttfffttfffffffffttffftttt11111111i;i11ttt11tt1111t111111ttffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLLfttttttfti:::,,,,:;i1ttfttt11t111tt111tttffffftttftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLftttttft1;,,,,,,,,,,;tffffft11111tft11111ttffLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLfLftffttttfffti;:;;;;iii;::1fffffttt111ttt1tttt1ttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLfftfftttttfffi;;iiiii1111i:iffffftt11111111ttttttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttttffi:;;;;iiiiiii:1ftttfftt1111ttt1ttt1ttttt111tffffffLfLfttt\ntffLLfffffLLLLLLLfftfLLftftfLfffLLLLttttt1t1i;;;;;ii;iiii1ttffft111111tfft1tt11tt1tt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttft11i1i;;;;i111iii111tt111t1111fffttfftt11tfftttfffLLLLLLLffL\ntttffttfftffLftttttttttttttfLLLffLLftttt1tti1i;;;;ii1iii1tt11111111111tffttffftttttttttttfLLLLfffffL\nttfLfffffffttffffffffffttftttfLfffLftttttfftt1;;;;iiii11ttt1ttftt11111tfttffftt111ttttttttfLLftftttt\nttffffffffftttfffffffffttffttfftttttttttfft111i;;;iiii1t111t1ttttt1111tt11ffttffttfffffLLfttffffffff\nttffffffffttttffffffffttttttttttfffttt1tft1111i;;;iiii111tfft11ttt111111t11tttfft1tfffffLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt1111tffft11t111111iiii;;iii111fffft11111111ttft111ttt11tfffffLfftttfLLLLf\ntttttttttffttfffttttt1ttfft1t11ttfftttt1iiii1i;;;iii1i1i,;i1ttt1111111tttt111tttt111tffffffftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tff11i;:,,,:11i;;iii;it;....,:;i111111ttt111t1ttftt11111ttfftffffftt\ntfttfffffttttttfffftttffffttfft1ii;:,,.....:11;:;;;;1tt;,,,.....,,;i11tt111tt1ttfffftttttt11ttttttft\nttttfffffftttffftfft11tfffttft1;,..........:1ii;;ii1tti,,,..........,it1111ttt1tfffttttffftt1ttfffLf\n1tttffffftt1ttfffft1111tfttft1i,............,:;ii;;i1i,..............:111111tt1tfft11tfffffft1ffffLf\ntftttffttttt11tttt1ttt11t1111t;..............,;1i;;;;,...............,1111111t11ftttttttfftt11tfffLf\ntfftttttttfftt1111ttttt11111tt:............. ,;ii;;;:,...............,i111tt11111tffftttttt1tttttfft\nttttttttttttttt11ttttttt11ttft,...............;;;;;:,.................ittttttt11ttffffftttttfffttttt\ntfffftttftttttt11ttttttt11ttf1,...............:;;;::,.......,,,.......;tttttfftttfffftfttttttttffttf\ntfffttttfffffft11ttttttt1111t1,...............:;;;::........,;i;:,....;t1ttfttt1tfffffffttfffffffttf\ntfffttttftffft111ttttttt11t111,...............,::::,........:iiiii:...;t11tt1111tffffLffttfffffffttf\ntffft1tttfffft111ttttttt11ttt1,..... ..........::::,.......,;iiii;,...it11111tt1tfffLfLfttfffftffttf\ntttttttttttttt111ttttttt11tt1:... .,..........,:::.........:;;i;,...,1t1t11tft11tfffffftttffttffttt\nttttt1tttttttt111ttttttt1tt1:,...:;ii:.........,::,.........,:;;:.....,it1111tt11ttttttt11tttttffttt\nttttt1tttttttt11ttttttttt1t;::,;iiii;,.........,:,,...........,,,......,;11111111ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfft1ti:,,;;;:;;,.........,:,,.......... ..........:tttt1111ttttttt111tttttfttt\n11ttt1tttttttt11ttttttttttt1,.,::::;;:.........,:,,...............,....;ttttt1111ttttttt111ttttttt1t\n11tt11tttt1tt111111111111ttti:,,,::;:..........,:,,............ ......;ttttt11111111111111111111t111\n1111111111111111111111tttttttt1:,,,............,:,.............,. .,;11tttttt1111111111111111111111\n1111111111111111111111tttttttttt1:.............,,............ .11ii1ttttttt1111111111111111111111111\n111111111111111111111111tttttt111,.............,::,,...........ittttttttttttt11111111111111111111111\n11111111111111111111111111111111;..............,;;;:,..........:11tttttttttttttt11111111111111t11111\n11111111111111111111111111111111;..............,;;;:,...........:11tttttttttttttttt1111111ttttt11111\n11111111111111111111111111111111:..............,;;;;:...........:1ttttttttttttttttttttttt1ttttt11111\n11111111111111111111111111111111:..............,;i;::,..........,1tttttttttttttttttttttttttttttt1111\n","ttftffftttttttfffffttfffttftttttttttt111tttt1111111ttttt11111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttftffLLftffffffffttttttt111111111ttfffffttttt111111111111111ttffttftttttttt11111tttt\ntfttttttttttttttffffLffttfffffffLLLft11tttttt111tfffffffttttttttt11111ttttfffffftfLLfttttttt1111ttt1\nttttttttttttttttfffLfttffffffLLffffttt1ttttttt1ttfffffffffttttttt1111ttfftffffLftttfffffttt11111tttt\nttttttttttttffffttfffttffffffffftttfttttt111ttt1ttffffffttttt1111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttfLLLfftttttffLftttttttt11ii11fffft1ttfftt11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLfttttt1i:;:,,::;i1tttffffftt11111tft11111ttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttffLffftffttttfti:,,,,,,,,,:;tfffffttttt111tftttttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftffttttttti:::::;;;;;,,1ffttffttt11111111ttttttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLfftfftffftffffLLLfttttti;iiiii11111;:1ttfffffftt1111ttt1ttt1tftttt11tfffffLLfLfttt\nttfLLffffLLLLLLLLfftfLLftttfffffLLLLttttt;;i;;iiiiii1;:i11tfffft111111ffft1tt11tt1tt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttft1ii;;;ii;;iii;tt11ttt111t1111tffttfftt11tfftttffLLLLLLLLffL\ntttffttfftffLftttttttttttttfLLLffLLftttt11ti;;;iiii1iii1ttt1ttt1111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttftttfLfffLfttttt11i;;;iii1iii1tttt1tfftt11111tfttffftt11tttttttttfLLffftttt\nttffffffffftttfffffffffttfftttfftffttttfft11;;;iiiii11tt111ttttttt1111tt1tffttffttfffffLLfttftfLffff\nttffffffffttttffffffffttttttttttfffttt1tft11i;iii11i11111tfft11ttt11111tt11tttfft1tffffLLLfttfLLLLLL\nttfffffffffttfffffffftt1ttt111tfffftttt11111i;i;iiii111ttfffft11111111tttt11tttt11tffffLLfftttfLLLLf\nttttttttfffttfffttttt1ttfftt111tfffttt111111;;i;;iii11i1ttffft11111111tttt111tttt11ttfffffLftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tffttt1t1ii1;;i;;iiii1;,::i11tt1tt1111ttt11tt1tfftt11111ttfftfLffftt\ntfttfffffttttttfffft1tffffttfft11tft11i::,,1ii;:;ii;it:,,...,,:;i11111tt111tt1ttfffftttttt11tttttfft\nttttfffffftttffftfft11tfffttfttttt1i:,....,it1i;;;;i1t;,,,,.......,;111t111ttt1tfffttttffftt11tffLLf\n1tttffffftt1ttfffft111ttfttft11i;:,........i1tt1ii1tt1:,,...........:1111111tt1tfftt1tfffffft1ffffLf\ntftttffttttt11tttt1ttt11t1111t;,...........,;;;11;;;;:..............,1t111111t1tftttttttfftt11tfffLf\ntfftttttttfftt1111ttttt11111tt:..............:;ii;;:,................it111tt11111tffftttttt1tttttfft\nttttttttttttttt11ttttttt11ttf1,..............,;;;;::,................it1tttttt1ttfffffftttttfffttttt\ntfffttttffttttt11ttttttt11ttfi................;;;:::,,:;:,...........;tttttttftttffffffttttttttffttf\ntfffttttfffffft11ttttttt1111ti................:;:::,.:;iii;,.........:111ttfftt1tfffffffttfffffffttf\ntfffttttftffff111ttttttt11t11;................,;:::,.;iiiii:.........:tt11ttt111tfffLfLfttfffffffttf\ntffft1tttfffft111ttttttt1tttt;................,::::,.:;;ii;,.........;ttt1111tt1tfffLLLfttfffftffttf\ntttttttttttttt111tttt1tt11ttti.................:::,...,;;i;,.........itttt11ttt11ffffffftttfftfffttt\ntttttttttttttt111ttttttt11tt1;.................:::,....,:;:,.........,1tt1111tt11ttttttt11tttttffttt\nttttt1tttttttt11ttttttttt1t11:.................:::,.... ..............:1111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfft11ti;,................,::,.........,......... :ttttt1111ttttttt111tttttfttt\n11tt11tttttttt11tttttttt1tt1iiii:..............::,,...................:1tttt111111tttttt111ttttttt1t\n11t1111tttttt1111111111t111iiiiii:.............,:,,,.................:1ttttt11111111111111111111t111\n11111111111111111111111t11i;;iiii;.............,:,,,........... .,;ttttttttt1111111111111111111111\n1111111111111111111111tt1t1i;;ii;,.............,,........... :i;;i1tttttttt1111111111111111111111111\n1111111111111111111111111ttti:,,...............,,,.......... :ttttttttttttttt1t111111111111111111111\n11111111111111111111111111111;::...............:;;::,........,i11ttttttttttttttt1111111111111tt11111\n111111111111111111111111111111t;...............:ii;;:,........;t1tttttttttttttttt1t1111111ttttt11111\n1111111111111111111111111111111:...............:;i;:::........:tttttttttttttttttttt1ttttt1ttttt11111\n1111111111111111111111111111111:............. ,;ii;;;:,..,,...:ttttttttttttttttttttttttttttttttt1111\n","ttfttfftttttttffffftfffftfftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttttffLLttffffffftttttt1t111111111tfffffftttt1111111111111111ttffttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffLLLftt1tttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt111ttttt\nttttttttttttttttfffffttffffffLLffffttttttttttt1tffffffffffttttttt11111tfffffffLftttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttffttttt1111tt1ttffffffttttt1111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffttttffffftttffftt11t111tt111ttfffLLftttftt1tt111tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLftttttt11i;;;;i1tftttffffffftt1111tftt1111tffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttffLLfftffttttti:::,,,,::;i1tffffffffttt111tft1tttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftfftttt11;,,,,,,,:,,,;tffffffffttt1111t11ttttttttttt1ttffffffLfffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttt1i;;;;iiiii:,:1tttfffffftt1111ttt1ttt1tfttt111tfffffLLfLfttt\nttfLfffffLLLLLLLLfftfLLftttfLfffLLLLttt1i1iiiii1111i::1111ttffft111111ffft1tt11tt1tt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttt11;;;iiiiiii:;ttt111tt111tt111tffttfftt11tfftttffLLLLLLLLffL\ntttffttffttfLftttttttttttttfLLLffLLftttt1i;;;iii;iii;ittfft11tt1111111tfftfffftttttttttttfLLLLffffff\nttffffffffftttfffffffffttfttfLLfffLfttt111;;;i111111iitfttt1tfftt11111tfttfffttt1tttttttttfLLftfttft\nttffffffffftttfffffffffttffttffftfftttttt1i;;iiiii1i1tft11tttttttt1111tt1tffttffttfffffLLfttftffffff\nttffffffffftttffffffffttttttttttfffttt1ttti;;;i111iitt111tfft11ttt111111t1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111tfffftttt111ii;iii;ii11111tfffft11111111tfft11tttt11tffffLLfftttfLLLLL\nttttttttfffttfffttttt1ttfft1111tffftttt1111;;;i;;;i111ttttffftt1111111tttt111tttt11ttfffffLftfLLLLLf\ntfttttttttttttttttt1ttfffftttt11tfft111tt1i;;;i;;i1i1;i11tffftt11t1111ttt11tt1tfftt11111ttfftfLffftt\ntfttffffftt11ttfffftttffffttfft11tft11ii;ii;;;;:;iii1,.,,,:;iii1ttt111tt111tt1ttfffftttttt11ttttfftt\nttttfffffftttffftfft11tfffttftttttt1;:,..:11;;i;;;;11:,,,.....,,:i1111tt111ttt1tffftttttfftt1ttffLLf\ntt1tffffftt1ttfffft1111tfttft1111i:,.....,i11iiiii1tt:.,..........:111111t11tt1tffft1tfffffft1fLffLf\ntftttffttttt11tttt1ttt11t11111;:,.........;i11i1111t;..............;t11111111t1tfttttttfffftt1tfffLf\ntfftttttttfftt1111ttfft111111:.............,::;ii;;:...............:111111ttt111ttffftttfft1tttttfft\nttttttttttttttt11ttttttt11tt1,..............::;;;;;,...............,1111tttttt11tffLffftttttfftttttt\ntfffftttffttttt11ttttttt11tfi,..............,::;;::,,...............i111ttttfftttffffffttttttttffttf\ntfffttttfffffft11ttttttt111ti................::::::,:;;::,..........it111ttffttttfffLfLfttfffffffttf\ntfffttttftffff111ttttttt1tt1;................,;::::.:iiiii,.........;11111ttt11ttfffLfLfttfffffffttf\ntffft1tttfffft111ttttttt11tti,................::::,.:ii;ii:.........;tttt1111ttttfffLLLfttfffftffttf\ntttttttttttttt111ttttttt1ttf1.................,:::,.,:;iii:.. ......:ttttt11tft11tfffffftttfftfffttt\ntttttttttttttt111ttttttt1ttt;::...............,:::,. .:;ii:..........;ttt1111tt11tttttft11tttttffttt\nttttt1tttttttt11ttttttttt1t111i;,..............:::,....,::,...........;1111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfftt1iiiiii:.............:::,.... ............. :ttttt1111ttttttt111ttttffttt\nt1ttt1tttttttt111ttttttttt1i;iiii;,............,:,,,................. ,1tttt111111tttttt111ttttttt1t\n11t1111tt1ttt11111111111111i;iii1i,............,::,,.................:1tttt11111111111111111111tt111\n11111111111111111111111111t1;;;;;,.............,:,,,.......... .:1tttttt111111111111111111111111\n1111111111111111111111111t11;,.................,:,,..........,;:::;1ttttttt1111111111111111111111111\n11111111111111111111111111111:..,..............,,............:ttttttttttttttttt111111111111111111111\n111111111111111111111111111111ii;..............,::,...........i111ttttttttttt11111t11111111111111111\n111111111111111111111111111111t;...............,;ii;::,.......:1ttttttttttttt11t1tt1111111ttttt11111\n111111111111111111111111111111i,...............:;ii;;;:,......,1ttttttttttttttttttt111111tttttt11111\n11111111111111111111111111111ti,...............:;ii;;;;:,..:..,1ttttttttttttttttttttttttttttttt11111\n","ttfttfffttttttffffttfffftfftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLttffffffffftttttt111111111tfffffftttt1111111111111111ttftttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffLLLftt1tttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttfffffttffffffLLffffttttttttttt1tffffffffffttttttt1111ttfffffffLftttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttffftttt1111tt1ttffffffttttt1111t111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffft1ttfffftttffftt11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLftttttfttttttttttftttffffffftt1111tftt1111tffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttffLffftffttttt1ii::::;111tttffffffffttt111tft1tttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLfftffttttt1:,,,,,,,,:;ittffffffffttt1111t11ttttttttttt1ttffffffffffttt\ntttffttffLLLLLLLLLftffftfLftffffLLLftttti::,::::::,,,;ttttfffffftt1111tft1ttt1tffttt11tfffffLLfLfttt\nttfLffffffLLLLLLLfftfLLftttfLfffLLLfftt11iiiii111i;,,;t111tfffft111111ffft1tt11ttttt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttt1iiiii1111i:,iftt111ttt11tt111tffttfftt11tfftttffLLLLLLLLffL\nttttftttttffLftttttttttttttfLLLffLLftttti;;;ii;iiii::1ttttt11tt1111111tfftfffftttttttttttfLLLLffffff\nttfLfffffffttffffffffffttfttfLLfffLfttt1i;;i1i;iiii:;tftttt1tfftt11111tfttfffttt1tttttttttfLLftftttt\nttffffffffftttffffffffftfffttffftffttttti;;iii111i1iitft11tttttttt1111tt11ffttffttfffffLLfttftfffffL\nttffffffffftttffffffffttttttttttfffttttti;;;ii1111ii1t111tfft11ttt111111t11tttfft1tfffffLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111tfffftttt1i;;;iiiiii11111ttfffft11111111tfftt1tttt11tfffffLfftttfLLLLf\nttttttttfffttfffttttt1ttfft1111ttffttt111i;;ii;;;itt11ttttfffft1111111tttt111tttt11tttfffffftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tfft1t1t1i;;;ii;;it111ttttffftt11t1111ttt111t1tfftt11111ttfftfLffftt\ntfttffffftt11ttfffftttffffttfft1ttft11ii1;;;;i;:;i1;;i11tttft111tt1111tt111tt1tffffftttttt11ttttfftt\nttttfffffftttffftfft11tfffttftttt1i;:,,:1i;;;;i;;;1;.,,,;;i11111111111tt111ttt1tffftttttfftt1ttffLLf\n1tttffffftt1ttfffft111tffttft1ii:,.....,11iiiiiii1t:,,,.....,:;i111111111t11tt1tffft1tfffffft1fLffLf\ntftttffttttt11tttt1ttt11t11i;:,........,i1tt1ii11tt:,,,,........:t11111111111t1tfftttttfffftt1tfffLf\ntfftttttttfftt1111ttfftt11i,............::;;iiiii1;,,............it1111111ttt111ttffftttfft1tttttfft\nttttttttttttttt11ttttttt11;...............:;;;;:;;...............:111111tttttttttffLffftttttfftttttt\ntfffftttffttttt11ttttttt11:...............,;;;;;;:,..............,111111ttttfftttffffffttttttttffttf\ntfffttttfffffft11ttttttt11,...............,:;;;;:,...............,1111111ttffttttfffLfLfttfffffffttf\ntfffttttftffff111ttttttt11:...... ........:;;;;:,...............,11111111ttt1tttfffLfLfttfffffffttf\ntffft1tttfffft111ttttttt11:.......:;;;:....,;;::::.......,::,....,1tt11tt1111tt1tfffLLLfttfffftffttf\ntttttttttttttt111ttttttt11:.....:;;;;;:.....:;:::,.......,:iii;,.,1t1t11tt11tft1tffffffftttfftfffttt\ntttttttttttttt111ttttttt1i,.....:;:;;;:.....,::::,........;;iii;..;t1111t1111tt11tttttftt1tttttffttt\nttttt1tttttttt11tttttttt1i,.....:::;;;,......::::,.......,;;ii;:..,;1t11111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttttttti....,,,,:;;,.......,:::,,.......,;;;;,....,it11tttt1111ttttttt111ttttffttt\n11tt11tttttttt111ttttttt1:,,.,,,..,,,.........::::,........,:;,..... ,1tttttt11111ttttt1111ttttttt1t\n1111111tttttt11111111111i,,..,,,.... .........::::,..................itttt111111111111111111111tt111\n1111111111111111111111111,...,,...............,::,,,...........,,...;tttttt1111111111111111111111111\n11111111111111111111111111,..... .............,::,,,......... . .:1tttttt1111111111111111111111111\n1111111111111111111111111ti,,,.,,..............::,,..........,,,::i1tttttttttt1111111111111111111111\n11111111111111111111111111111i11;..............:,............,1tttttttttttttt11111111111111111111111\n1111111111111111111111111111111i...............:;:::::,.......;tttttttttttttt11t1ttt111111ttttt11111\n1111111111111111111111111111111:...............:iiii;;::,......ittttttttttttttttttttt1111tttttt11111\n1111111111111111111111111111111,...............:iiiii;;:,......,1tttttttttttttttttttttttttttttt11111\n","tttttfftttttttffffftfffftfftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLftfffffffffttt1tt111111111tfffffftttt1111111111111111ttftttftttttttt11111tttt\nttttttttttttttttfffffftttfffffffLLLftt1tttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttfffffttffffffLLffffttttttttttt1tffffffffffttttttt11111tfffffffLfttffffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttfftttttt11ttt1ttfffffftttttt11tt111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffft1tffffftttffftt11t111tt111ttfffLLffttfft1tt111tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLfttttttffffffttttftttffffffftt1111tftt1111tffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttfLLffftfftttttftttttttffttttffffffffftt111tftttttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftffttttttiii;::::i1ttttffffffffftt1111t11ttttttttttttttffffffffffttt\ntttffttffLLLLLLLLLftffftfLfttfffLLLfttt11:,,,,,,,:::itttttfffffft11111tft1ttt1tffttt11tfffffLLfLfttt\ntffLffffffLLLLLLLfftfLLftttfLfffLLLLfttt1i::::,,::,,,itt11tfffft111111ffft1tt11tt1tt1ttffLLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttttiiiiii1i;:,,:ttt111ttt11tt111tffttfftt1ttfftttffLLLLLLLLffL\nttttftttttffLftttttttttttttfLLLffLLftttti;iiii111i;:,iftftt11ttt11111tffftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttfttfLLfffLfttt1;;;ii;iiii;::1ffttt1tffft11111ffttfffttt11ttttttttfLfftftttt\nttffffffffftttffffffffftfffttffftfftttt1;;i1i;;iii;:itft11tttttfttt111tt1tffttffttfffffLLftfftfffffL\nttffffffffftttffffffffttttttttttffftttt1;;iiii111iii1t111tfft1tttt111111t1ttttfftttfffffLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111ttffftttti;;iiiiiiiii1111ttfffft11111111tffttttttt11tfffffLfftttfLLLLL\nttttttttfffttfffttttt1ttfft1111ttfftttt1;;;iiii;;itt11tffffffft1111111tttt111tftt11tttfffffftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tfftttt1i;;;;ii;;it1111tftfffft11t1111ttt111t1tfftt11111ttfftfLffftt\ntfttfffffttt1ttfffftttffftttfft11tft111i;;;;;ii;;i111111tttft111tt1111ttt11tt1tffffftttttt11ttttffft\nttttfffffftttffftfft11tfffttfttt11i;;:ii;;;;iiiii1;11tt111t11111tt1111tt111tft1tffffttfffftt11tffLLf\n1tttffffft11ttfffft1111tfttftii;:,....;1i;;;;ii111,,:;i1tt11tt11111111111t11tt1tffft1tfffffft1fLffLf\ntftttffttttt11ttt11ttt1111i;:,.......,i1tiiii;;11i,,,..,:;i1t1t111t1111111111t1tfftttttfffftt1tfffLf\ntfftttttttffttt111ttttt1i:...........,ii111iii11i:.,,......,:;1t111111111tttt111ttfLftttfftttttttfft\nttttttttttttttt11tttt11t;..............,::;;i1ti:,............,1t1111111tttffttttffLfffttttffffttttt\ntfffttttfftfttt11tttttt1,...............:;:;;;;;:..............;tt111111tttffftttffffffftttttttffttf\ntfffttttfffffft11tttttt1................,;;;;;;;:..............:t11111111ttffttttffLLfLfttfffffffttf\ntfffttttfttftt111tttttti............... .:;;;;;:,..............:1111111111tttttttffLLfLfttfffffffttf\ntffft1ttttttft111tttttt;............. .:;;;;;;:::..............:111tt11tt111ttt1tfffLLLfttfffftffttf\ntttttttttttttt111ttttt1,..............:;i;;i;::::..............:1ttt1111tt11tff1tffffffftttfftfffttt\nttttttttttt1tt111ttttt;..............:;;;;;i:::::..............;1111111111111tt11tttttftt1tttttffttt\nttttt1tttttttt11tttttt:..............:;;;::;:::::..............;t1111111111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttt1,........... .,,:,...,:::::..............,11i;;i111tttt1111ttttttt111ttttffttt\n11tt11ttttttt1111tttt;............,..... ...,::::...............:i;:;;i1ttttt11111tttttt111ttttttt1t\n11111111t1tt111111111,............,.........,::::,..............,:::;ii1tt111111111111111111111tt111\n111111111111111111111,............ .........,,,::,..............::::;i11tt11111111111111111111111111\n1111111111111111111111:....... .............,,:,,..............,::::i111t11111111111111111111111111\n11111111111111111111111:....,,,,.............,:::,,..................,1t1111111111111111111111111111\n111111111111111111111111iiii11t; .............,:,..,........ ..:1tttttt11111111111111111111111\n111111111111111111111111111111t:...............:,,,:,,......,,,,,:;;1tttttttt1t111tt1111111tttt11111\n111111111111111111111111111111t: .............::;ii;::,.....,i111ttttttttttttttt11ttt111111tttt11111\n111111111111111111111111111111t:..............:;;iiii;:,.....,i1ttttttttttttttttttttttttttttttt11111\n","tttttfttttttttffffffffffffftttttttttt111tttt1111111ttttttt111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLftfffffffffttt1tt111111t11tfffffftttt1111111111111111ttftttftttttttt111111ttt\nttttttttttttttttffffLftttfffffffLLLfttttttttt111tfffffffftttttttt11111tttttffffftffLfttttttt11111ttt\nttttttttttttttttfffffttffffffLLffffttt1ttttttt1tffffffffffttttttt11111tfffffffLffttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttfftttttt11ttt1ttfffffftttttt11tt111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffft1ttfffffttffftt11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLfttttttffffffttttffttffffffftt1111tftt111ttffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLffftfftttttfftffffffftttfffffffffftt111tft1tttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftfftttttt1iii::;i1ttttfffffffffftt1111t11ttttttttttttttffffffffffttt\nttttfttfLLLLLLLLLLfftfftfLfttfffLLLfttt11:,::,,,,,:;1tttttfffffftt1111tft1ttt1tffttt11tfffffLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLLffLLLffttt1;:,,,,,,,,,;ttt11tfffft111111ffft1tt11ttttt1ttffLLLLLLLLfff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttt1iiiiiiii;:,,iftt111ttt11tt111tffttfftt11tfftttffLLLLLLLLffL\nttttftttttffLftttttttttttttfLLLffLLfttt1i;iii1111i:,:1ftfft11ttt111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttfLfffLfttt1;;;i;iii1i:,;tffttt1tffft11111tfttfffttt11ttttttttfLLftfttft\nttffffffffftttffffffffftffftttfffffttt11;;;ii;;iii::1fft11tttttfttt111tt1tffttffttfffffLLffffffffffL\nttffffffffftttffffffffttttttttttfffttt1i;;iiiii11i;itt111tfft1tttt111111t1ttttfftttffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111ttfffttt1i;;iiiiiiiii1111ttfffft11t11111tffttttttt11ttffffLfftttfLLLLL\nttttttttfffttfffttttt1ttfft1111ttffttt1i;;;iiii;;;1t11tffffffft1111111ttttt1ttfft11ttffffLfftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tfftt111;;iiiii;;;1111ttftfffft11t1111tttt1tt1tffttt1111ttfftfLffftt\ntfttfffffttt1ttftfftttffftttfft11tft1i1i;;;;iii;;;111111tttft111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffftttt11tfftttfttt11i;;;1;;;;;iiii;i1t11t111t11111tt1111tt111tft1fffffttfffftt11tffLLf\n1t1tffffft11ttffttt1111tftttti;:,,...:1i;;;;iiii1i:;i1ttt111tt11111111111t11tt1tffft1tffffffttfLffLf\ntftttfftt11t11ttt11ttt111i;:,,.......:11ii;;ii;11i,.,,:;11tt11tt11t1111111111t1tffttttffffftt1tfffLf\ntffttttttttftt1111ttttt1:............:1111iiii1ti;,,....,,;i1tttt11111111tttt111ttfLffttfftttttttfft\nttttttttttttttt111ttt1t;...............,:;;i1tt1;,..........,itttt111111tttttttttffLfffttttffffttttf\ntfffttttfftfttt11ttttt1,................:::::;i;:,...........,1ttt111111ttttfftttffffffftttttttffttf\ntffft1ttffffff111ttttti.................,;;;;;;;:,...........,1t111111111ttffttttffLLfLfttfffffffttf\ntffft1ttfttttt111ttttti................,,;;;;;;::,............it1111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttt;.............:;iii;;:;;:::,............it1111111tt111tttttfffLLLfttfffftffttf\nttttt1tttttttt111tttti,............,;;iiii::;::::,...........,1ttttt111ttt11tft1tfffffLftttfftfffttt\nttttt1tttt11tt111ttt1:.............:;;;iii;::::::............,1tttt1111111111tt1tttfttftt1tttttffttt\nttttt1tttttttt11tttti..............,;;;;:,,:::,,:............:tt11t11111111111t11ttttttt11tttttffttt\n1tttt1tttttttt11tttt:............. ,::,. .::,,,:........... :t1111111t111ttt1111ttttttt111ttttffttt\n11tt11tttttt111111ti.......................,:::::.............it111t11111tttt1111tttttt1111ttttttt1t\n1111111111111111111,.............,.........,:::::.............:1t11ii;:;11111111111111111111111tt111\n1111111111111111111:........................,,:::..............;ii;:;:;ii111111111111111111111111111\n11111111111111111111:....... ..............,,,:,...............,:::::;i1111111111111111111111111111\n111111111111111111111:......,,..............,,,:,...............:::;::;i11t1111111111111111111111111\n1111111111111111111111iiiiii1;...............,,,,.,..............,::::;11111111111111111111111111111\n11111111111111111111111111111;................,,:,,,...... .it1111111111111111111111111111\n1111111111111111111111111111t;...............;i;;;::,.....,,.....,,,;i1ttttttttt11tt111111ttttt11111\n1111111111111111111111111111t;...............:i;;i;::,....:i111111tttttttttttttttttttttttttttttt1111\n","tttttfttttttttffffftfffftfftttttttttt111tttt1111111ttttttt111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLftfffffffftttt1t1111111t11tfffffftttt1111111111111111ttftttftttttttt111111ttt\nttttttttttttttttffffLftttfffffffLLfftt1tttttt111tfffffffftttttttt11111tttttffffftffLfttttttt11111ttt\nttttttttttttttttfffffttffffffLLLfffttt1ttttttt1tffffffffffttttttt11111tfffffffLffttfffffttt1111ttttt\nttttttttttttffffttfffttffffffffftttftttttt11ttt1ttfffffftttttt11tt111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfffttttt1tfffft1ttfffffttfffft11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLftttttttfffffftttffttffffffftt1111tftt111ttffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLffftffttttt111i;iitfftttfffffffffftt111tft1tttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftfftttt1;:,::,,,:;ittttffffffffftt1111t11ttttttttttttttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttfffLLLftt1i:,,,,,,,,,,:1tttttfffffftt1111tft1ttt1tffttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLLffLLLftt1i;;;;;;;i;:,:tftt11tfffft11111tffft1tt11ttttt1ttfffLLLLLLLfff\ntfffffttttfLLLffttttfffffttLLLLfLLLft1;iiiii11111i::tffft11tttt11t111tfffttfftt1ttfftttffLLLLLLLLffL\ntttfftttttffLftttttttttttttfLLLffLLftt11;;;iiiiiii:;tffffft11tt1111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttLLfffLft11i;;;;i;;iii;tffffttt1tffft11111tfttfffttt1tttttttttfLLftffttt\nttffffffffftttffffffffftffffttfftfttt11i;;;i1iii1iitffft11tttttfft1111tt1tffttffttfffffLLfffftfLffLL\nttffffffffftttffffffffttttttttttffftt11i;;;iii111ii1tt111tfft1ttft111111t1ttttfftttffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111ttffftttti;;;;iiiiii11111ttfffft11t11111tfftttttttt1tfffffLLftttfLLLLf\nttttttttfffttfffttttt1ttfft1111ttffttt1i;;;iiii;;itt11tffffffft1111111ttttt1ttfft11ttffffLfftfLLLLLf\ntftttttttttttt1tttt11tfffft1tt11tfft111;;;;;iii;;it111ttfffffft11t1111tttt1tt1tffftt1111ttfftfLffftt\ntfttffffftt11ttftfftttffftttfft11tti;;1;;;:;iii::i111111ttfft111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffftttt11tfftttft1i;:,..,1i;;;;iii;i;:;;1t111t11111tt1111tt111tft1fffffttfffftt11tffLLf\n1tttffffft11ttffftt1111tt1ii:,,......,i1i;;;ii;11;...,:;i111tt11111111111t11tf1tfffttfffffffttfLffLf\ntfttttftt11t11ttt11ttt11;,,..........,11t1iiii1t1:,,.....,:i111111t1111111111t1tffttttffffttt1tfffLf\ntffttttttttfttt111ttttti,.............:;;iii11t1i,,.........,ittt11111111tttt11tttfLffttffttttttffft\nttttttttttttttt111tttt1:................:;;;;;i;:,...........:ttt1111111tttffttttffLLffttttffftttttf\ntfffttttftttttt11ttttti.................,;;;ii;;:............,1ttt11111ttttffftttffffffttttttttffttf\ntffft1ttfffftf111ttttti..................:;;;i;;:,...........,1tt11111111ttffttttffLLfLfttfffffffttf\ntffft1ttfttttt111ttttt;..................,;;;;;::,...........,1t1111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttt;...........,,.....,;;:;:::............,111111111tt111tttttfffLLLfttfffftffttf\nttttt1tttttttt111tttti,........,;ii:......:;:::::............,ittttt111ttt11tft1tfffffLftttfftfffttt\nttttt1tttt111t111tttt;........:;;;;:,.....,;:::::.............ittttt1111t1111tt1ttfttttttttttttffttt\nttttt1tttttttt11tttt1,.......,:::;;;,......::::::.............;tt1t1111111ttt1tttfttttttt1tttttffttt\n1tttt1tttttttt11tttti.........,:::;:.......,:::::..........,,:;1t11111111ttff1111ttttttt111ttttffttt\n111111tttttt111111t1,..........,:::........,:::::..........,:;;i1111t111ttttt11111ttttt1111ttttttt1t\n1111111111111111111;............,,.........,::::,.........,:;;;i1111111111111111111111111111111tt111\n11111111111111111111:.......................,:::,.. ......,:;;ii111111111111111111111111111111111111\n111111111111111111111:.......,..............,:::,..........,::i11t1111111111111111111111111111111111\n1111111111111111111111:,,..,, ..............,,,::,............,1111111111111111111111111111111111111\n1111111111111111111111111i11:...............,..,:,,..... ..:1t11111111111111111111111111111111111\n111111111111111111111111111;................,::::,,.....::::;i11tttt111111t1111111111111111111111111\n111111111111111111111111111,.................ii;;::,....:1tttt1ttttttttttttttttt11tt111111ttttt11111\n1111111111111111111111111ti..................;i;;;:,.....;t1ttttttttttttttttttttt1ttttttttttttt11111\n","ttffftfffttttttttftttfffttftttttttttt111tttt111111tttttttt111tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLLftfffffffftttt1t111t111t11tfffffftttt111111111111111tttftttfttttttttt1111tttt\nttttttttttttttttffffLftttfffffffLLffttttttttt111tfffffffftttttttt11111ttttfffffftfLLfttttttt111tttt1\nttttttttttttttftfffffttffffffLLffffttttttttttt1tffffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttffffttfffttffffffffftttfttttt1111tt1ttffffffttttt1111tt11111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttffftttt11tttffttttfffffttfffft11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLftt11ii;i;;ii1tttffttffffffftt1111tftt111ttffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLffftfftt1:,,,,,,,,:iftttfffffffffftt111tft1tttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftff1i;;:,,,,,,,,:;ttttfffffffffftt1111t11ttttttttttttttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttfffLLLt;,,:;;;;;iiii:ittttttffffffftt1111tft1ttt1tftttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLLffLLLfi,:iiii111111;1ffftt11tfffft11111tffftt1t1tttttt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfffffi:;;;;;iiiiiiitffffft11tttt11t111tfffttffft1ttfftttffLLLLLLLLffL\ntttfftttttfffftttttttttttttfLLLffLLti;;;;;i;;iiii1ftffffftt11tt1111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttfLfffLtii;;;ii;;i1111tfffffttt1tffft11111tfttffftttttttttttttfLLfffffft\nttffffffffftttffffffffftffffttfftftt1ii;;;;;;iii11ttffft11tttttfftt111tt1tffttffttfffffLLffffffLffLL\nttffffffffftttffffffffttttttttttffftt11i;;;;;i111111tt111tfft1ttft11111tt1ttttfftttffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt1111tfffttti;;;;;;iiiii11111ttfffft11t11111tfftttttttt1ttfffLLLftttfLLLLf\nttttttttfffttfffttttt1ttfft11111tfft11i;;;:;;ii;;itt11ttfffffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntftttttttttttt1tttt11ttffft1tt11ttti::i;;;:;iii;;;i;i1ttftfffft1tt1111tttt1tt1tffftt1111tffftfLffftt\ntfttffffftt11ttftfft1tffftttff1i;:,...;1;;;;;i;:;i,..,:;i1tft111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffftttt11tfft11i;:,......,11;iii;;iii,,,....,:;i1111t1111tt111tft1fffffttfffftt11tffLLf\n1tttffffft11ttffftt1111t1;;,..........,i1t11ii11i:.,........,111111111111t11tt1tfffttfffffffttfLffLf\ntfttttftt11t11ttt11ttt11:..............;iiiiiii11,,,......,,,itt11t1111111111t1tffttttffffftt1tfffLf\ntffttttttttfttt111ttttt;................,;;;i;;ii,...........;ttt11111111ttt111tttfLffttfft1ttttffft\nttttttttttttttt111ttt11:.................:;;;i;::............;ttt1111111tttftttttffLLffttttffffttttf\ntfffttttftttttt11ttttt1,.................,;;;;;;:............:ttttt11111tttffftttffffffftttttttffttf\ntffft1ttfffftf111ttttt1,..................:;;;:::............:1tt11111111ttffttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttti...................,;;::::............,111111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttt:...................,::::::,:::,.......,1t1t11111tt111tttttfffLLLfttfffftffttf\nttttt1tttttttt111tttt1,....................,::::::;;;ii:......ittt11111ttt1ttff1tfffffLftttfftfffttt\nttttt1ttttt11t111tttti.....................,:::::,;;;ii;,.....itttt1111tt111tttttttttttttttttttffttt\nttttt1tttttttt11ttttt;........ .............:::::,;;;ii;,.....:1t1t1111111tttttttfttttttt1tttttffttt\n1tttt1tttttttt11ttttt:.... :i;:.............:::::..,;;i:.......it11111111ttff1111tfttttt11tttttffttt\n11tt11tttttt1111111t1,...,;iiii;, ..........::::,. .,:,......;111111111ttttt1111ttttttt111ttttttt1t\n11111111111111111111i..,.,;;;iii;...........:::::.......,....itt1111111111111111111111111111111tt111\n11t111111111111111111;....::;;ii;...........::::,..........,;111111111111111111111111111111111111111\n1111111111111111111111, ...,:;;;,............,,:,.....,,:;11tt11111111111111111111111111111111111111\n1111111111111111111111i:,....... ............,,:,.....:1tttttt11111111111111111111111111111111111111\n1111111111111111111111111;.,. ..............;;;:,,....,it11ttt11111111111t11111111111111111111111111\n111111111111111111111111i,..................;ii;:,.....,1t1ttttt1111111111t1111111111111111111111111\n111111111111111111111111:...................;ii;;:......;ttttttttttt11tttt1t111111tt11111111ttt11111\n111111111111111111111111:...................:i;:;;,.....:t1tttttttttttttttttttttt1tttttttttttttt1111\n","ttffftfffttttttttttttfffttftt111ttttt111tttt111111ttttttttt11tttt111111ttttttttttttttttttttt111111tt\nttfftttttttttttttttffLLftfffffffftttt111111111t11tffffffttttt11111111111111tttftttfttttttttt1111tttt\nttttttttttttttttffffLftttfffffffLLfft111ttttt111tfffffffftttttttt11111ttttfffffftfLLfttttttt111ttttt\nttttttttttttttttfffffttffffffLLLfffttt1ttttttt1tffffffffffttttttt1111ttffffffLffttffffffttt1111tttt1\nttttttttttttfffftttffttffffffffftttftt1t1iii11111tfffffftttttt11tt111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttffft11i:,,,::::;1tfffftttfffft11t111tt111ttfffLLfttfftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfft1;:,,,,,,,,,:tttttttffffffftt1111tftt111tttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffLfftt1::,,,,,:::::;itfttttffffffffftt111tft1ttfttttfLLfttttfffffftttttt\ntttttttfLLLLLLLLLLfttttffftffffttf1,,,,:;iii1111itftttfffffffffftt1111t11ttffttttttttttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttffffft:,,,:;iii111ii1tttttttffffffftt1111tft1ttt1tftttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLfffLft:,,:;;;;iiiiii1tffftt11tfffft111111ffftt1t1tttttttttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttfLLfffft;:::;;;iii;iii1tffffft11tttt11tt111fffttffft1ttfftttffLLLLLLLLffL\ntttfftttttfffftttttttttttttfLLLffffti;;;i;;iii;iitfffffffft1tttt1t1111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttfLftfft1i;;;;;iiiii11ffffftttt1tffft11111tfttffftttttttttttttfLLffffftt\nttffffffffftttfffffffftttfftttftttttt1;;;;;iiiii11ttffft11tttttfftt111tt1tffttffttfffffLLffffffLffLL\nttffffffffftttffffffffttttttttttfftt11i;;;;;;ii1111ttt111tfft1ttft11111tt1ttttfftttffffLLLfttffLLLLL\ntttffffffffttfffffffft11ttt1111ttff1;i;;;;;;;ii;iiii111ttfffft11t11111tfftttttttt1tffffLLLftttfLLLLf\nttttttttfffttffftt1tt1tttft1111tt1;,.:i;;;;;iii::;;,,:;i1tfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntfttttttttttttttttt11ttffft1tti;:,...,ii;;;;ii;::;;.....,:itftt1tt1111tttt1tt1tffftt1111tffftfLffftt\ntfttffffftt11ttftfft1tttft1i;:,.......:11iiii;;;:;:,,,,,,..;t111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffttttt11tti;:,..........,1tt1ii11i;;,,.,.,,,,,1111t11111tt111tft1tffffttfffftt11tffLLf\n1tttffffft11ttttttt1111;...............:11iiii;;1;.,.,,.,..,1t11111111111t11tf1tfffttfffffffttfLffLf\ntfttttftt11t11ttt111tt1,................,;;;ii;i1:.........,111t1111111111111t1tffttttffffftt1tfffLf\ntffttttttttftt11111ttt;..................:;;;;:;i:..........itttt11111111ttt111tttfLffttfft1tttttfft\ntttttttttttttt1111ttt1:..................,;;;;:::,..,.......;tttt1111111tttffttttffLLffttttffftttttf\ntfffttttftttttt11tttt;....................:;;::::,,.........:ttttt111111ttttfftttffffffftttttttffttf\ntffft1ttfftttt111tttt:....................,;:::,:;;;;:,.....:1ttt11111111ttffttttffLLfLfttfffffffttf\ntffft1ttfttttt111ttt1,.....................:::,,::;iii;,.....itt1111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttt;......................,::,,::;;;i;,.....:111111111tt111tttttfffLLLfttfffftffttf\nttttt11ttttttt111tt1:......................,:,..:,:;;i;.......:tttt1111ttt1ttffttffffffftttfftfffttt\nttttt1ttttt111111tt1:......................,:,..:. .:;:......,itttt1111tt111ttttttfttffft1tftttffttt\nttttt1tttttttt111tt1:........... .........,,,.,:...........,1tt11tt111111ttt1ttttffftttt1tftttffttt\nttttt1tttttttt11ttti,......... .,..........,,,.,:..........,it11111111111ttft1111ttttttt11tttttffttt\n11tt11ttttt111111tt:..........,::;,........,,,.,:......,:i11t11111111111ttttt1111ttttttt111ttttttt1t\n11111111111111111111:........:;;ii;.........,,.,,.....i1ttt11t11t111111111111111111111111111111tt111\n1111111111111111111ti........,:;;i;,...........,,.....;t11111111111111111111111111111111111111111111\n11111111111111111111ti;,......,:;;;. ......,:,.,:.....,1t1t11111111111111111111111111111111111111111\n11111111111111111111111;........,,,........:;::,,......;t1tttt11111111111111111111111111111111111111\n1111111111111111111111i......... ........:;;::,......,1ttttt11111111111t11111111111111111111111111\n1111111111111111111111:........ ...........:;;;::.......it1ttttt1111111111t1111111111111111111111111\n111111111111111111111i,........,......... ,ii;;::,......:ttttttttttt11ttt1tt11t111tt111111t1tttt1111\n11111111111111111111t;.........,..........:iiii;::,.....,1ttttttttttttttt1ttt1ttt1tttttttttttttt1111\n","ttttftfffttttttttttttfffttttt111ttttt111tttt111111ttttttttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLLftffftfffftttt111111111t11tffffffttttt11111111111111tttftttfttttttttt1111tttt\nttttttttttttttttfffffftttfffffffLLLft111tttttt11tfffffffftttttttt11111ttttfffffftfLLfttttttt111ttttt\nttttttttttttttttfffffttfffffffffffft11111;:::;;i1tffffffffttttttt1111ttffffffLffttffffffttt1111tttt1\nttttttttttttfffftttffttffffffffftttft1;::,,,,,,,,ifffffftttttt11tt111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttff1;:,,,,,,,,,,:itfffftttfffft11t111tt111ttfffLLfttfftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffttt1:,,,,:::;;i;;1tttftttffffffftt1111tftt111tttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffLfftt;,,,,,:;ii11t11tfttttffffffffftt111tft1ttfttttfLLfttttfffffftttttt\ntttttttfLLLLLLLLLLfttttffffffffttt;,,,,:;;;iii1111ttttfffffffffftt1111t11ttffttttttt1ttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttttfft:,,,,:;;;iiiiii1tttttttffffffftt1111tft1ttt1tftttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfffftttfLftfLfi;;;;;;;iii1iii1tffftt11tfffft111111ffftt1t1tttttttttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttfLLftfffi;;;i;;;;iiiii1fffffft11tttt11tt111fffttffft1ttfftttffLLLLLLLLffL\ntttfftttttffffttttttttttttttffftffft;;;;;;;;iiii1tttfffffft1tttt1t1111tfftfffftttttttttttfLLLLffffff\nttffffffffftttfffffffffttftttffftfft1;;;;;;;;iii1ttfffffttt1tffft11111tfttfLftttttttttttttfLLftffftt\nttffffffffftttfffffffftttfftttftttt1i;;;;;;;;ii111tffftt11tttttfftt111tt1tffttffttfffffLLffffffLffLL\nttffffffffttttfffffffft1tt1111ttt1::i;;;;;;;i1i;i111ttt11tfft1ttft11111tt1ttttfftttffffLLLfttffLLLLL\ntttffffffffttffffffftt111tt111i;:,..;i;;i;iii11;;;;,::;1tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\nttttttttfffttffttttt111ttt1;:,......,ii;;iii;11;:;;,...,:1fffft1111111ttftt1ttfft11ttffffffftfLLLLLf\ntftttttttttttt11tt111tt1;:,..........;11iii;1t1;:;;,,,,,.:tfttt1tt1111tttt1tt1tffftt1111ttfftfLffftt\ntfttffffftt11tttttt111:..............:1tt1ii11i::;:,,,,,,,if1111tt1111ttt11tf1tfffffttttttttttttffft\n111tfffffft1tfftttt11;................:ii;;i;:,,;;,.,,.,..it1111111111tt111tft1tffffttfffftt1ttffLLf\n1tttffffft111tttttt1i,............,....:;;;;;;:,1i,..,,,..;ttt11111111111t11tt1tfffttfffffffttfLfLLL\ntfttttftt1t111ttt111;..................,;;;;;:,:1i,.......it111t11t1111111111t1tffttttffffftt1tffLLf\ntffttttttttft1111111,...................:;;;::,,;;,.......it1tttt11111111ttt111tttfLffttfft1tttttfft\ntttttttttttttt1111t;....................,;;:::,.:,..,.....:tttttt1111111tttffttttffLLffttttffffttttf\ntfffttttfttttt111t1,.....................;;:::..:,........,1tttttt111111ttttfftttffffffftttttttffttf\ntffft1ttfftttt111ti......................::::,..:,.....,:::i1ttt111111111ttffttttffLLfLfttfffffffttf\nttfft1tttttttt111t:......................,:::,..:,....,:;iiiitt11111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt1111;.......................,:,...:,....:;;iiii1111111111tt111tftttfffLLLfttfffftffttf\nttttt11ttttttt111t;...................,,,,,,,...,......,;;ii1111ttt1111ttt1tfffttffffffftttfftfffttt\nttttt11tt11111111i,.................,::::::,....:........,,:i1111tt1111tt111ttttttfffffft1tftttffttt\nttttt11ttttttt11t;.................,:;;;;;;,....:.... .. .,1t11ttt1111111ttt1ttttffffttt1tftttffttt\nttttt11ttttttt1111:................,::::;i:.....:.,..,,,:;i11tttt111111111tft1111ttttttt11tttttffttt\n111tt11ttt1111111t1:. ............::::;:.....,:....it11111tt1tt1111111ttttt1111ttttttt111ttttttt1t\n11111111111111111111i:,..............,,,,......,:....:1tt111111t1111111111111111111111111111111tt111\n11111111111111111111t11:........,.... . ..,....:.....it1t111t11111111111111111111111111111111111111\n11111111111111111111111:,..................:....:.....:1ttt11t11t11111111111111111111111111111111111\n1111111111111111111111i,...................:....:......it1ttttt1tt11111111111t1111111111111111111111\n1111111111111111111111;....................,,..,:,.....:tttttttt111111111111111111111111111111111111\n1111111111111111111111:.................. .::..,:......,1t1ttttt11t1t11111t1111111111111111111111111\n11111111111111111111ti,.................. ,;::,,:.......itttttttttttt111t1tt11t111tt111tttt1tttt1111\n11111111111111111111t;....................,;;;:,:.......:tttttttttttttttt1ttt1ttt1tttttttttttttt1111\n","tttttttttttttttttttttffftttt1111111tt1111tt1111111ttttttttt11tttt1111111ttttttttttttttttttt1111111tt\nttfttttttttttttttttffLfttffttfffttttt1111111111111tffffftttt111111111111111tttffttftttttttt11111tttt\nttttttttttttttttffffLftttfffffffffftt11111iii1i11ffffffffttttttt111111tttttffffftfLLfttttttt111ttttt\nttttttttttttttttffffftttffffffffffttt11;::,,,,,:;1ffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffttttt1;:,,,,,,,,,,:tffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLfttttttft;,,,,,,,,:::,:itfffftttfffft11t111tt111ttfffLLfttfftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffttt;,,,,,,:;ii1111tttttttffffffftt1111tftt111tttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffffft1:,,,,,:;iii11111fttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLLLLLLLLLffttttffftfffftt1:,,,,,:;;;iiiii1ftttfffffffffftt1111t11ttffttttttt1ttffffffffffttt\ntttffttfLLLLLLLLLLfttfttffftttttft::;;::;;iiiiiii1ttttttttfffffftt1111tft1ttt1tffttt11tffffLLLLLfttt\nttffffffffLLLLLLffftfffttttffftfLfi:;i;;;;;iiiiii1tffftt11tfffft111111ffftt1tt1tt1tttttfffLLLLLLffff\ntffftfttttfLLLfftttttffffttfLLftfff;:;;;;;;;iiiii1tffffftt1tttt11tt111fffttffft1ttfftttffLLLLLLLLffL\ntttttttttttfffttttttttttttttffffffft;;;;;;;;iiii1ttffffffft1ttt1111111tfftfffftttttttttttfLLLLffffff\nttffffffffftttfffffffffttft1tfffttt1i;;;;;;;;iii1ttfffftttt1tffft11111tfttffftttttttttttttfLLfffffft\nttffffffffftttfffffffftttffttttti::i;;;i;;;;ii1111tttttt11tttttfftt111tt1tffttffttfffffLLffffffLLfLL\nttffffffffttttfffffffft1ttt11i;:,.,ii;;iiiii11:i1111tt111tfft1ttft11111tt1ttttffttttfffLLLfttfLLLLLL\ntttffffffffttffffffftt111i;:,......:11;;iiiii1::;;;::;i1ttffft11t11111tfftttttttt1ttffffLfftttLLLLLf\nttttttttfffttfttt1111ii;:,.........,it1iii;;1ti::;;,..,:1tfffft1111111ttttt11tfft11ttffffffftfLLLLLf\ntfttttttttt1tt111111;,..............;1111ii1ti:;:;;,,,,.:tffftt11t1111tttt1tt1tffftt1111ttfftfLffftt\ntfttfffftt1111ttttti,................:;;;i;;;,,:;;:,,,,,,itt1111tt1111ttt11tf1tffffftttttt1tttttffft\n111tfffffft1ttttttt:..........,,......:;;;;;;,.,i;,,,,,,.;t111111111111t111tft1tffffttfffftt1ttffLLf\n111ttfffft111ttttt1,............,.....,;;;;;:,.:1i,......;11t111111111111t11tt1tfffttfffffffttfLfLLL\ntttt1tftt11111tt11;....................:;;;;:,.:1i,......:tt11111111111111111t1tffttttffffftt1tffLLf\nttft11ttttttt1111i,....................,:;:;:.,,;:,......:111tttt11111111tttt11tttfLffttfft1tttttfft\ntttttt1ttttttt111;......................,;:;:..,:,.......:11tttttt111111tttffttttffLLffttttffffttttf\ntffft11ttttttt11i,.......................:::,..,:,.......,1tttttttt11111ttttfftttffffffftttftttffttf\ntffft11ttttttt11;........................,:::,..:,........;11tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt11;......................,:;;;;;;,:,........,111tt1111111111tttttttffLLfLfttfffffffttf\ntfttt11ttttttt11i.....................:::;;;;;:.:,....... ,1t11111111111t111tftttfffLLLfttfffftffttf\ntttt111ttttttt11:....................,:::;;;;;.,:,..........,:;iii11111ttt11tffttffffffftttfftfffttt\nttttt11tt1111111,....................,:::;;;;,.,:.......... .::;;;;ii11111ttftttftfffft1tftttffttt\nttttt11ttttttt11i................. ....,,,,.....:.... ........,:::;;;;ii111tt1tttfffffttt1tftttffttt\nttttt11ttttttt11ti,. .........,... .. ....,..:,.. ....,:::;;;iii1ttt1111ttttttt11tttttffttt\n11111111ttt111111t1ii;;;,.......................:..,.:1;:,,.. ..,;i1i1t1ttt1111ttttttt111ttttttt1t\n1111111111111111111ttttt:,......................:.. ,tttt111i;;;;i1tt1111111111111111111111111tt111\n111111111111111111111111:,..................,...:.....it1t1ttttttttt11111111111111111111111111111111\n111111111111111111111111;,..................,...:.... ;tttt11t11t11111111111111111111111111111111111\n111111111111111111111111:...................,..,:.....:ttttttttttt1111111111111111111111111111111111\n11111111111111111111111i,...................:,.,:.....,1ttttttttt11111111111111111111111111111111111\n11111111111111111111111;...................,::..:.....,1ttttttttt1t11t1111t1111111111111111111111111\n11111111111111111111111:.................. :;:,,:......itttttttttttttt111ttt11t1111t111t1ttttttt1111\n111111111111111111111t1:.................. :;;:::......;ttttttttttttttttt1ttt1ttt11ttttttttttttt1111\n","tttftttttttttttttttttffftttt1111111tt1111tt11111111tttt1ttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfftfftttffttttt111111111111ttffffftttt1111111111111111ttffttfttttttttt1111tttt\ntttttttttttttttttffffftttffffffffffft111tt111111ttffffffttttttttt11111tttttffffftfLLftttttt11111ttt1\nttttttttttttttttffffftttffffffLffftt111i;;:::::;1tffffffffttttttt11111tfffffffLfftfffffftttt111ttttt\nttttttttttttfffftttffttffffffffttttt1i;,,,,,,,,,,;fffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLftttttttti:,,,,,,,,,,,,;tfffftttfffft11t111tt111tttffLLfttfftt1tt111tttttt\nttttttttffLLLLLLLffttfLLffttfffttti,,,,,,:;;;ii;itttttttffffffftt1111tftt1tttttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffffft1:,,,,::;i111tt1tfttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLfLLLLLLLLfttttffftfffftti,,,,,,:;;iiii1i1ftttfffffffffft11111t11ttftttttttttttfffffLLfLfttt\ntttffttfLLLLLLLLLLfttfttffftttttf1,,::,:;iiiiiiii1ttttttttfffffftt1111tft1ttt1ttfttt11tffffLLLLLfttt\nttfffftfffLLLLLfffftfffttttffftfLf;:ii;;;;iii11ii1tfffft11tfffft111111ffft11t1ttt1tt1tffffLLLLLLLfff\ntffftfttttfLLLfttttttffffttfLLftff1:;ii;;;;iiiiii1ffffftt11tttt1ttt111fffttfffttttfft1tffLLLLLLLLffL\ntttttttttttfffttttttttttttttfffffff1;;;;;;;iiiii1tffffffftt1ttt1111111tfftfffftttttttttttfLLLLffffff\nttffffffffftttffffffffftttt1tffftft1i;;;;;;;iiii1ttfffffttt1tffft11111tfttfffttt1tttttttttfLLftfffft\nttffffffffttttfffffffft1tftt1tft1;ii;;;;;;;;ii1111ttftft11tttttfft1111tt1tffttffttfffffLLffffffLffLL\nttffffffffttttfffffffft1tttt1ii;,.:i;;;i;iii111t111ttt111tffttttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffftfttt111ii;:,....,i1;;iiiii1i:;;;i11111tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\ntttttttttffttfttt1111ii;:,.........;11iiii;;11;::;;,:;1tftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntft1ttttttt1t1111111:,.............:1tt1iii1t1;;:;:,,.,:1tffftt11t1111ttt11tt1tffftt1111ttfftfLLfftt\ntttttffttt1111ttttt;................:iiiiii11,:;:;:,,,,.:tttt111tt1111ttt11tf1tffffftttttt1ttttttfft\n1tttfffffft1tftttt1,.................,;;;;:;:.,:i:,,,,,,,it11111111111tt111tft1tffffttfffftt11tffLLf\n111ttfffft111ttttti...................:;;;;;:,,:1;.......;t1tt11111111111t11tf1tfffttfffffffttfLfLLf\ntttt1tftt11111ttt1:...................,;:;;;:..;1;.......:tt111t11t1111111111t1tffttttffffftt11ffLLf\nttft1111ttttt1111;.....................:;:;;,..,;:.......,111tttt11111111tttt11tttfLffttfft1tt1tffft\n1tttt11ttttttt111,.....................,::;;,..,:,.......,1ttttttt111111tttffttttffLLffttttffffttttf\ntfftt11ttttttt11;.......................:::;,..,:,........itttttttt1111tttttfftttffffffftttftttffttf\nttfft11ttttttt11,.......................,;;;;:,,:,........;11tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt1i,.....................,::;i;;;,,:.........:111tt1111111111tttttttffLLfLfttfffffffttf\nttttt11ttttttt1i.....................,:::;i;i:.,:,........,1t1111t111111t111ttfttffLLLLfttfffttffttf\ntttt111ttt11t11;.....................,:::;;;;,.,:..........1tt111tt11111ttt1tffttffffffftttffftffttt\nttttt11t1111111:......................:::::,...,:..........:i1tttt1tt111t1111tttttfttffft1tttttffttt\nttttt11tttt11t1i.......................... ....,,.......... .,,:i11iii11111tt1t1ttffffttt1ttttttfttt\nttttt11tttttt111;... ......................,:............ .,:::;iiii1111111tfttttt11ttttttfttt\n11111111t1111111t1i;;::::......................,:..,:.. .......,::;;;;;;iii11111tttttt111ttttttt1t\n11111111111111111ttttttt1,.....................,:......:,.. ..,:;;;:;;;iiii11111111111111111tt111\n111111111111111111111111i,.................,::..,.... ,tt1ii;,,.. ..,:i;;iii111111111111111111111111\n111111111111111111111111i,.................,;:,,,......1tttttt11i;;::itt11t1111111111111111111111111\n111111111111111111111111i,................ ,;:::,......it1t1tttttttttt11tt11t111111111111111111t1111\n111111111111111111111111;................. ,;;::,......it1tttttttt1111111t11111111111111111111111111\n111111111111111111111111:................. .;;:::......;t1ttttttt1ttttt111t1111111111111111111111111\n111111111111111111111111,...................;i;::,.....;tt1ttttttttttt11tttttttt111t111111tttttt1111\n111111111111111111111111:...................:i;:::.....ittttttttttttttttttttt1ttt111tttttttttttt1111\n","tttftttttttttttttttttffftttt1111111tt1111tt11111111tttt1ttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfftfftttffttttt111111111111ttffffftttt1111111111111111ttffttfttttttttt1111tttt\ntttttttttttttttttffffftttffffffffffft1111tttt111ttffffffttttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttffffftttffffffLffftt11111i;iiii1tfffffffffttttttt11111tfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffttttt11;::,,,,,,::1fffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLftttttttf1;:,,,,,,,,,,,itfffftttfffft11t111tt111tttffLLfttfftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLffttfffttt1,,,,,,,::::::itttftttffffffftt1111tftt11t11tfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffLfft1:,,,,,:;ii11111ffttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLfLLLLLLLLfttttffftfffftt1:,,,,:;;iii1111fftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfLLLLLLLLLLfttfttffftttttf1,,,,,:;iiii;iii1ttttttttfffffftt1111ttt1ttt1ttfttt11tfffffLLLLfttt\nttfffftfffLLLLLfffftfffttttffftfLt:;;;:;;iiiiiii11tfffft11tfffft111111ffft1tt1ttt1tt1tfffLLLLLLLffff\ntffftfttttfLLLfttttttffftttfLLftff1;;;i;;;iii1iiitfffffft11tttt1ttt111fffttfffttttfftttffLLLLLLLLffL\ntttttttttttfffttttttttttttttffftfffi;;;;;;iiiiii1tffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttffffffffftttt1tffftffti;;;;;;iiiii1tttffffttt1tffft11111tfttfffttt1tttttttttfLLftfffft\nttffffffffftttfffffffftttftt1tftt111i;;;;;;;;ii111tfftft11tttttfft1111tt1tffttffttfffffLLffffffLffLL\ntttfffffffttttfffffffft1tt111111i::i;;;i;;;;i11t111ttt111tffttttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffftfftt111111i;:,..,ii;;iiiii11:;;;111111tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\ntttttttttffttfttt1111111i;:,.......:11;iiii;11;::;;,:i1tftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntfttttttttt1t1111111i;:,...........:1t1iii;itt;;;;:.,,,:itffftt11t1111ttt11tt1tffftt1111ttfftfLffftt\ntttttffftt1111ttttt1:..............,i111ii1tti:;;;:,,,,.,1tft111tt1111ttt11tf1tffffftttttt1ttttttftt\n111tfffffft1tfttttt;.................:;;;;;;;,.:i:.,,,,,.;t11111111111tt111tft1tffffttfffftt11tfffLf\n111ttfffft111ttttt1,..................:;;;;;:,.:1;.....,.:11tt11111111111t11tf1tfffttfffffffttfLfLLf\ntttt1tftt111111tt11,..................,;;;;;:,.;1;.......,1t111t11t1111111111tttffttttffffftt11fffLf\ntttt111tttttt11111;....................::;;;,..,;:.......,i11tttt11111111tttt11tttfLffttfft1tt1tffft\n1tttt11ttttttt111i.....................,::;;,..,:.........ittttttt111111tttffttttffLLffttttffffttttf\ntfftt11ttttttt111,......................::::,..,:,........itttttttt11111ttttfftttffffffftttttttffttf\nttfft11ttttttt11;.......................,:::,..,:,........;11tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt11:........................,:,,..,:,........,111tt1111111111tftttttffLLfLfttfffffffttf\nttttt11ttttttt11,.......................,,::,..,:..........it11111t11111t111tttttffLLLLfttffftfffttf\ntttt111tttt1t11i......................::;;;;;:.,:..........;t11tttt11111tt11tffttffffffftttffftffttt\nttttt11tt111111:....................,:::;i;;i,.,:..........;ttttttt1111111111tttttfttffft1tttttffttt\nttttt11ttttttt1;....................,:::;i;;:..,,...........:;iii1111111111tt1t1ttfffttt11ttttttfttt\nttttt11tttttt111:...................,:::;;;;...,,........... .,:;;;:;i1111ttt1111ttttttt11ttttttfttt\n11111111t11t11111;,.. ...............,,,....,:.... .......,:::::;;11tt11111111tt1tt1111ttttttt1t\n11111111111111111t11i;;;:.......,..... ......,,....,,. ...,::;::;i1111111111111111111111111tt111\n11111111111111111111tttti,...................,.,,... :1i:,. .,,;;i1111111111111111111111111111111\n111111111111111111111111i,...................:,,,.....ittt1i:,.. ,1tttt111111111111111111111111t1111\n111111111111111111111111;,...................,,::.... .111tttt1ii1ttt11111111t11111111111111111t1111\n111111111111111111111111;....................,:::......it1t11ttttt1111111111111111111111111111111111\n111111111111111111111111;....................,::,......;t1tttttt11tt1tt111t1111111111111111111111111\n11111111111111111111111t:....................::::......:1111ttttttttttt1tt11ttt11111111111tttttt1111\n11111111111111111111111t:....................:;::,.....,1tttttttttttttttttttttttt111tttttttttttt1111\n","tttftttttttttttttttttffftttttt11ttttt1111tt11111111tttt1ttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfftfffttffttttt111111111t11ttffffftttt1111111111111111ttffttfttttttttt1111tttt\ntttttttttttttttttffffftttffffffffffft1111tttt111tfffffffttttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttffffftttffffffLfffttt1111ttttt1tffffffffffttttttt11111tfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttftttffffffffttttft1i;:;;;;;i11tfffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLfttttttfft1;:,,,,,,,,:1ttfffftttfffft11t111tt111tttffLLfttffft1ttt11tttttt\nttttttttfffLLLLLLffttfLLffttfffttti::,,,,,,,,,,;ttttftttffffffftt1111tftt11t11tfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfffffti,,,,::;;;iiiii1ffttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLLLLLLLLLLftttttfftfffftt1:,,,;iii1111111fftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfttffftttttff:,,:;;;iiii1ii1tttttttttfffffftt1111ttt1ttt1ttfttt11tfffffLLLLfttt\nttfffftfffLLLLLfffttfffttttffftfLt;:,:;;;;iiiiii11tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffftfttttfLLffttttttffftttfLLftff1;;;;;iiiii;i11ttfffftt11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttfffLtfffii;;;;;ii;;iittffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttft1tffftffti;;;;;iiiii1ttttffffttt1tffft11111tfttfffttt1tttttttttfLLfffffft\nttffffffffftttfffffffftttfttttfttttti;;;;;iiii1111tfftft11ttttffff1111tt1tffttffttfffffLLffffffLffLL\nttffffffffttttfffffffft1tt11111tft11i;;;;;;;iit11111tt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffftttfffftfftt1111111111i:,;i;;;;;;ii1i;;;111111tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\nttttt1tttffttfttt11t111tttt1i;:,...:1i;ii;ii;1i:;;i;;i1tftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntfttttttttt1tt1111111ttt1;:,,.......;ti;iii;it1;;;;,..,:i1fffft11t1111ttt11tt1tffftt1111ttfftfLffftt\nttttfffftt1111ttttt111;:,...........;tt11iii1t1::;;,,,,,.,1ft111tt1111ttt11tf1tffffftttttt1ttttttftt\n111tfffffft1ttttttt11,..............:i11iii111:,;;,,,,,,,.;t1111t11111tt111tft1tffffttfffftt11tfffLf\n111ttfffft111ttttttt;.................:;;;;;;:.,ii,....,,.:1tt11111111111t11tf1tfffttfffffffttfLfLLf\ntttt1tftt11111ttt111:.................,;;i;;;,.,1i,.......:t111111t1111111111tttffttttffffftt11fffLf\ntttt11ttttttt1111111,..................:;;;;;,,,;;,.......:11tttt11111111tttt11tttfLffttfft1tt1tffft\n1tttt11ttttttt11111i...................,;;;;:,..:,........:1tttttt111111tttffttttfLLLLfttttffffttttf\ntfftt11ttttttt11111:....................:i;;:,.,:,........,1ttttttt1111ttttffftttffffffftttttttffttf\nttfft11ttftttt111ti,.....................;;::,..:,........,i1tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt111t;......................,::,...:,.........;11t11111111111ttt1tttffLLLLfttfffffffttf\nttttt11ttttttt111t:......................,::,...:,...,,....it11111111111t111tttttfffLLLfttfffftffttf\ntttt11tttt11tt1111,.......................,,,...:,...,:;;;;itt11ttt1111ttt1ttftttffffffftttffftffttt\nttttt11t111111111i.........................,,...:,...,:;iiii11111t111111t111tttttttttffft1tftttffttt\nttttt11ttttttt111,.........................,,...:....,:;;iii11111111111111ttttt1ttfffttt11ttttttfttt\nttttt11ttttttt111;...................,,,,..,....,......,:;ii1ttt1111111111ttt1111tfttttt11ttttttfttt\n11111111t11t11111t;...............,:::::::..,...:.........,,it11tt1111111tttt1111ttt1tt1111ttttttt1t\n1111111111111111111,.............:::::;;i:......:..... :1ttttt111111111111111111111111111111t111\n11111111111111111111;,.. ........,::::;;:.......,... ,i;;;i1tttt111111111111111111111111111111111111\n11111111111111111111t11i,.........,:::;;. ..,:,.:.....itttttttt1111111t111111111111111111111111t1111\n11111111111111111111111t;...........,,,.... ,:,,:......it1111ttt1111111111111111111111111111111t1111\n111111111111111111111111;.......... .... .:,,:,. ...:tttt11tt111111111111111111111111111111111111\n111111111111111111111111;....................::::..,,..,1tttttttt1tttt1111t1111111111111111111111111\n11111111111111111111111t;....................::::..,,...;t1tttttttttttt1t11ttttt111t111111tttttt1111\n11111111111111111111111ti....................:;::,......:11tttttttttttttttttttttt11t11t1111ttttt1111\n","tttftftttttttttttttttfffttttt1111tttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfttfffttffttttt111111111t11tfffffftttt1111111111111111ttffttfttttttttt1111tttt\nttttttttttttttttfffffftttffffffffffftt11ttttt111tffffffftttttttt11111ttttttffffftfLLfttttttt1111ttt1\nttttttttttttttttffffftttffffffLfffttttt11tttt11tffffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffftttft1tttt11ttt1ttfffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLftttttttfft11iiiiiittt1ttfffffttfffft11t111tt111tttffLLfttffft1ttt11tttttt\nttttttttfffLLLLLLffttfLLffttfffttfft;::,,,,,,:itttttffttffffffftt1111tftt11t11tfLLftttt1tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffffft11i:,,,,,,,,:,;fffttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttfffttffftt1;:::::;;;iii;:tfftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfttfLfttttfft;:;iii111111i;1ttttttttffffffftt1111ttt1ttt1ttftt11ttfffffLLLLfttt\nttfffftfffLLLLLLffftfffttttfffffLf;:;;;;ii1iiiii11tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffffftttffLLffftttttffffttfLLffffi:i;;;;;ii;ii11ttffffft11tttt1ttt11tfffttffft1ttfftttffLLLLLLLLffL\ntttttttttttffftttttttttttttfLfftffi;ii;ii;i11111tfffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttftttfLftf1;;;;;;;;i1111tttffffftttttffft11111tfttfffttt1tttttttttfLLfffffft\nttffffffffftttfffffffftttfftttftttt1i;;;;;iiii1111ttftft11ttttffff1111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffft1ttt1111tfftt1i;;;;iii1tt111ttt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttffffttftt111t11111ttfft1;;;;;;ii1ti;;i11111ttffft11t11111tfft1tttttt1tfffffLfftttfLLLLL\nttttt1tttffttfttt111111tttt11111tti:i;;;;;;iii1;:;i1i1ttftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntfttttttttt1tt11t1111ttfftt1tt1i;:..;i;;;;;iii1i:;;:,,:;i1ffftt11t1111ttt11tt1tffftt1111ttfftfLffftt\ntfttfffftt1111tttttt1tttttt1i;,.....:11;ii;;;iti:;;,,,...,:1t111tt1111ttt11tf1tffffftttttt1tttttfftt\n1t1tfffffft1tttttttt111tti:,....,...,i11iii;i1ti;i,,,,,,,,.,i111t11111tt111tft1tffffttfffftt11tffLLf\n1t1ttfffft111tttttt1111:,...........,i1t1iii11i,;1,....,,...;t11111111111t11tf1tfffttfffffffttfLLLLf\ntftt1tftt1tt11ttt111tt;..............,:;i;;;;;,.i1,.........:11111t1111111111tttffttttffffftt1tffLLf\ntfftttttttttt111111ttt:................,;;i;;:,,:;,.........:tttt11111111tttt11tttfLffttfft1tt1tffft\ntttttt1ttttttt1111ttti,................,:;;;;:,.,:..........,ttttt111111tttffttttfLLLLfttttffffttttf\ntffft11ttttttt1111ttt;..................,;;;::,.,,..........,1tttt111111tttffftttffffffftttttttffttf\ntffft11ttftttt111tttt:...................:;;::..::,,.........ittt11111111ttffttttffLLfLfttfffffffttf\ntffft11ttttttt111ttt1:...................,;::,,::;;;i;,......;t11111111111ttt1tttffLLLLfttfffffffttf\ntttft11ttttttt111ttt1,....................,::,,::;;iii;. ...,it11tt11111t111tttttfffLLLfttfffftffttf\nttttt1tttttttt111t1ti.....................,:,,,,::;iii;.....,it11tt1111ttt1ttftttffffffftttffftffttt\nttttt11tt11111111t1ti......................,:,. ,,,:;i:.......;11tt11111t111tttttttttffft1tttttffttt\nttttt11tttt11t11tttt;......................,,,..,, .,,.......,;11111111111ttttt1ttfffttt11ttttttfttt\nttttt1tttttttt111ttt:.......................,,..,,.....,....:1ttt111111111ttt1111tfttttt11ttttttfttt\n1111111ttt1t11111tt1,.......................,,..:,.........:1t11111111111tttt1111ttt1ttt111ttttttt1t\n11111111111111111111;....... ............,,..:,.....,;ii1t1t111111111111111111111111111111111t111\n111111111111111111111,.... .,::,................:....,11ttt11tt11t1111111111111111111111111111111111\n111111111111111111111;.....;i;;;,...............:,....it1111ttt1tt1111t111111111111111111111111t1111\n1111111111111111111111i:.,iii;;i:.......... ,::,:......itttttttt1111111111111111111111111111111t1111\n111111111111111111111111i,:;;;ii;,......... ,;;::,.....:1ttttttt11111111111t111111111111111111111111\n111111111111111111111111i,.,::;;:.......... ,;;;::......itttttttt1tttt11t1tt111111111111111111111111\n111111111111111111111111i..,.................;;;::,.,,..:1tt1tttttttttttt11ttttt11111111tttttttt1111\n111111111111111111111111i..... .............;i;:::,.....itttttttttttttt1tttttttt11t11t1111ttttt1111\n","tttfttfttttttttttttttfffttttt1111tttt111tttt111111ttttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLfftfftttffftttt111111111111tfffffftttt111111111111111tttffttfttttttttt11111ttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tffffffffttttttt111111ttttffffLfffLLfttttttt1111t1t1\nttttttttttttttttffffftttffffffLffffttttttttttt1tffffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffftttftttttt11ttt1ttfffffftttttt111t111111ttffffLLffttfLLfft111111tttt\nttttttttttffLLLLftttttfLLLftttttttfftttttttfffft1tffffftttfffft11t111tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftffft11i;ii1ttffttttffttffffffftt1111tftt11t11tfLLfftt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffLfLftti;:;:,,,:;;itffftttfffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffffftt1;,,,,,,,,::,:tfftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfftfLftttffff1;::::;;iii;,:1ttttttttffffffftt1111ttt1ttt1ttfttt1ttfffffLLLLfttt\nttfffftfffLLLLLfffftfffftttfLfffLfi;iiii11111i;:i1tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffffftttffLLfffttttfffffttfLLffLf;;;;iiiiiiii;:1tfffffft11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttffLLffLt;;:;;ii;;iii;ttffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttftttfLftf11i;;;i1ii11ii1tfffffftttttffft11111tfttfffttt1tttttttttfLLfffffft\nttffffffffftttfffffffftttfftttfttt11i;;;;i1111i111ttffft11ttttffft1111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffftttttt111tfft11;;;;iiiii1t1111tt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffffffft111tt1111ttfft1i;;;iiiii1;;;111111ttffft11t11111tfft1tttttt1tfffffLfftttfLLLLL\nttttt1tttffttfftttttt11ttttt111tttft1i;;;;iiiii;;;1t11ttftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tffftt1tt11tff1ii;;;;;iiii:;;i;;i1tttffftt11t1111ttt11tt1tffftt1111ttfftfLffftt\nttttffffttt11tttttft1tttttt1ttt11i;,:i;;;;;iii;;;;:...,,,:;i1111tt1111ttt11tt1tffffftttttt1ttttttftt\n111tfffffft1ttfftttt11tttt1tfti;,...,i1i;;ii;;i1i;,.........,i11111111tt111tft1tffffttfffftt11tffLLf\n1t1ttfffft111tftttt1111ttt11;:,......;11iii;;1t11;......,.,,.,i1111111111t11tt1tfffttfffffffttfLLLLf\ntftt1tftt1tt11ttt11ttt11i;:,.........:1tt1i;i1111;............;t11t1111111111tttffttttffffftt1tffLLf\ntfftttttttttt111111tttt1,.............:;;;;;;;;:;:............:tt11111111tttt11tttffftttfft1tt1tffft\n1ttttt1ttttttt1111tt11ti................:;;;;;:,:,............,1tt111111tttffttttfLLLLfttttffffttttf\ntffftttttttttt111tttt1ti................,;;;;::,:,.............ittt11111tttffftttffffffftttttttffttf\ntfffttttfftttt111tttttt;.................:;;:::,:,.............:tt1111111ttffttttffLLfLfttfffffffttf\ntffftttttttttt111tttttt;.................,:;:::,:.,:,,.........,it11111111ttt1tttffLLLLfttfffffffttf\ntttft11ttttttt111tttttt:..................,::::,:,,;;;;;:,......itt11111t111tttttffLLLLfttfffftffttf\nttttt1tttttttt1111t1ttt;...................,::,,:,:;;;iii;.....,1tt1111ttt11tftttffffffftttffftffttt\nttttt11tt1111t111tt1ttt:...................,::,,:::;;iiii;,.....:i1t1111t111tttttttttffft1tftttffttt\nttttt11ttttttt11ttttttt:....................::,,:..,,:;ii:...... .1t111111ttttt1ttffffft11ttttttfttt\nttttt1tttttttt111tttttt:....................,::,:. ..::,......,1t1111111ttt1111tfttttt11ttttttfttt\n1111111tttttt1111ttt1tt:.... ...............,:,,:..............,1t1111111tttt1111ttt1ttt111ttttttt1t\n11111111111111111111111;;;;:,...............,:,,:....... ...,,:1ttt11111111111111111111111111111t111\n11111111111111111111111iiiiii:...............,,,:........,:i11tt1tt111111111111111111111111111111111\n11111111111111111111111iiiiiii...............,,,:.......,1tttt11tt1111t111111111111111111111111t1111\n1111111111111111111111i;iiiiii,..............,.,:........ittt11t111111111111111111111111111111111111\n111111111111111111111111iiii;,...............::::,,......:1ttttt11t111111111111111111111111111111111\n1111111111111111111111111i:,. ...............:i;:::,......itttttt1ttt111t1tt111111111111111111111111\n11111111111111111111111111:................. :i;;;::,.....;ttttttttttttttt1ttttt111111111ttttttt1111\n11111111111111111111111111:................. :i;;;;::,....:tttttttttttttttttttttt11t11t1111ttttt1111\n","tttftttttttttttttttttfffttttt1t1ttttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLLftffftfffftttt111111111t11tfffffftttt1111111111111111ttffttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tfffffffftttttttt11111tttttfffffffLLfttttttt111tttt1\nttttttttttttttttfffffttfffffffLffffttttttttttt1tffffffffffttttttt1111ttffffffLLfttffffffttt1111tttt1\nttttttttttttfffftttftttffffffffftttfttttt111ttt1ttfffffftttttt111tt11111ttffffLLffttfLLff111111ttttt\nttttttttttffLLLLftttttfLLLftttttttffttttttttffft1tffffftttfffft11tt11tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLffttfffftfffttttttfffffftfttffttffffffftt1111tftt11t11tfLLfftt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffffffttft111i;ii1ttfffftttffffffffffft111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftft1i:::,,,,::;;1fftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfftfLffftfffLf1;,,,,,,,::,,:1tttttttffffffftt1111ttt1ttt1ttfttt1ttfffffLLLLfttt\nttfLfftfffLLLLLfffftfLfftttfffffLLf1;;;;;iiiii:,:1tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffffftttffLLfffttttfffffttfLLLffLfiiiii111111i::1tffffft11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttftttttttffftttttttttttttfffLffLfii;;;iiiiiii;:1ftffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttfttffLfffLti;:;;ii;ii1;;ttffffftttttffft11111tfttffftttttttttttttfLLfffftft\nttffffffffftttfffffffftttfftttftttt1i;;;ii11111ii1ttffft11ttttffft1111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffftttttt111tfff1ii;;;iiiiiii1111tt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\n1tfffffffffttfffffffftt1ttt1111tffft1i;;;iiiiii;;i111111tfffft11t11111tfft1tttttt1tfffffLfftttfLLLLL\ntttttttttffttfftttttt1ttfft1111tttftt1;;;iiiiii;:;tt11ttftfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tfffft1tt11ttft11;;;;;iiii;;;1t11ttttffftt11t1111tftt1tt1tffftt1111ttfftfLffftt\nttttffffttt11tttttft1ttfffttfft11tftiii;;;;iiii;;;;:;ii1tttft111tt1111ttt11tt1tffffftttttttttttttftt\n111tfffffft1ttfttttt11tfftttfttt11i:,ii;;;;;iii;i:.....,,::;i111t11111tt111tft1fffffttfffftt11tffLLf\n1t1ttfffft111tffttt1111tft1ft1i;:,...;1i;;;;;;i11:...........,;1111111111t11tt1tfffttfffffffttfLLLLf\ntftt1tftt1tt11tft11ttt111111;:,......,111ii;;i1t1:........,,...;11t1111111111tttffttttffffftt1tffLLf\ntffttttttttttt1111ttttt11;:,.........,i111i;i1t1;,.............,1t1111111tttt11t1tfLftttfft1tt1tffft\n1ttttttttttttt1111ttt11ti,............,::::;;;i;:,..............it111111tttffttttfLLLffttttffffttttf\ntfffttttffttttt11ttttttti...............,;;;;;;;:...............:t111111tttffftttffffffftttttttffttf\ntfffttttfffttft11ttttttt;...............,:;;;;:::...............,1t111111ttffttttffLLfLfttfffffffttf\ntffft1ttttttttt11ttttttt:................,;;;;:::................it1111111ttt1tttffLLLLfttfffffffttf\ntffft1tttttttt111ttttttt:................,:;;::::................:t1111tt111tttttffLLLLfttfffftffttf\nttttt1tttttttt111111tt1t;.................,::::::................,1t111ttt11tftttfffffffttfffftffttt\nttttt1tttt11tt111ttttttt:.,:;:............,::::::................,itt111t111ttt1tttttfft11tftttffttt\nttttt1tttttttt11tttttttt;:;iii:............,:::::...........,:,....:1t11111tttt11tfffttt11ttttttfttt\nttttt1tttttttt111ttttttt;;iiiii:. ..........:::::...........,;;;;:..it1111tft1111ttttttt11ttttttfttt\n1111111tttttt1111ttttttt:;iiiii;............,::::,........,::;;iii;it111ttttt11111tt1ttt111ttttttt1t\n111111111111111111111111:;;iiii;,...........,:,::,.........,;;iiii;it111111111111111111111111111tt11\n111111111111111111111111;:;:;;;,............,::::,...........:;;ii;it1111111111111111111111111111111\n111111111111111111111111;::.... .............,:::,,......... .,,:i1t1111111111111111111111111111111\n111111111111111111111111i;,..................,,,:,,....... .;,..,;11111111111111111111111111111t1111\n1111111111111111111111111i;:;i;,..............,,:,,,........1tii11t111111111111111111111111111111111\n111111111111111111111111111111:..............,:::;;:,.......;ttttttttt11t1tt111111111111111111111111\n11111111111111111111111111111;,..............:i;;ii;;:,.....,1ttt1tttttttt1ttttt1111111111tttttt1111\n1111111111111111111111111111i,...............,i;;iiii;:......ittttttttttttttttttt11t11t1111ttttt1111\n","tttftttttttttttttttttfffttttt1t1ttttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLLftffftfffftttt111111111t11ttffffftttt1111111111111111ttftttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt111tttt1\nttttttttttttttttfffffttfffffffLfffftttttttttt11tffffffffffttttttt1111ttfffffffLftttfffffttt1111tttt1\nttttttttttttfffftttftttffffffffftttfttttt111ttt1ttfffffftttttt111tt11111ttffffLLffttfLLff111111ttttt\nttttttttttffLLLLftttttfLLLftttttttffttttttttffft1ttfffffttfffft11tt11tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftffftttttfffffffffttffttffffffftt1111tftt11t11tfLLfftt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffLffftfftttttfftffffffftttffffffffffft111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftfftt11iii;:;;i1tfftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfLLLLLLLLLLfttfftfLffttfffLLft1;:::,,,,::;;1ttttttffffffftt1111ttt1ttt1ttfttt1ttffffLLLLLfttt\nttfLLftfffLLLLLLLfftfLfftttfLfffLLLfti;,,,,:::::,,;fffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntfffffttttfLLfffttttfffffttLLLLffLLf1ii;;iiii11i:,;tfffft11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttfffLffLLf1iiiiiii1111;:;tffffftt1ttt111111tffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttfttffLfffLf111;;;ii;;i1i:itfffftttttffft11111tfttffftttttttttttttfLLfffftft\nttffffffffftttffffffffttffftttftttttt1i;;;iii;iii;ifftft11tttttffft111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffftttttt111tffft11i;;;ii11111111tt111tffftttft11111tt1ttttfft1tffffLLLfttfLLLLLL\n1tfffffffffttfffffffftt1ttt1111fffft111i;;;iiiiiii11111ttfffft11111111tfft1tttttt1tfffffLfftttfLLLLL\ntttttttttffttfftttttt1ttftt1111ttffttt1i;;;iiii;;;1t11ttttfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt1ttfffftttt11ttft1t1i;;iiiii;:;1t111tttffftt11t1111tftt1tt1tffftt1111ttfftfLffftt\nttttfffftttt1ttttfft1tffffttfft11tft111i;;;;;ii;:;i11111ttttt1111t1111ttt11tt1tfffffttttttttttttffft\n111tfffffftttffftttt11tfftttfttt1ttt1i1i;;;;iiiiii::;i111tt11111t11111tt111tft1fffffttfffftt1ttfLLLf\n1t1ttfffft111tffttt1111tfttft11tti;::,i1;;;;;iii11:...,,::;i1tt1111111111t11tt1tfffttfffffffttfLLLLf\ntttt1tftt1tt11ttt11ttt1111tt11i;,,....;1i;;;;;;i11:.,.......,,:i11t1111111111tttffttttffffftt1tffLLf\ntffttttttttttt1111ttttt111i;:,........;1t1ii;;i1ii,.............;t1111111tttt11t1tfLftttfft1tt1tffft\n1ttttttttttttt1111tttttt11:...........:iiiiii1tti,..............,1t11111tttttttttfLLLffttttffffttttf\ntfffttttffttttt11ttttttt1i,.............,:::;;ii;,...............;t11111ttttfftttffffffftttttttffttf\ntfffttttfffffft11ttttttt1;..............,:;;;;;;:,...............,1111111ttffttttffLLfLfttfffffffttf\ntffftttttttttt111ttttttt1:.......... ....:;;;;;;:,................it111111tttttttffLLLLfttfffffffttf\ntffft1tttttttt111ttttttt1,........,,:;:,.,;;;;;:;,................;t1111t111tttttffffLLfttfffffffttf\nttttt1tttttttt1111t1tttt1,.......;;;;;:,..:;;::::,................,1t11ttt11tftttfffffffttfffftffttt\nttttt1tttt11tt111ttttttt1:......;;;;;;;:,.:;;::::,................,it111t1111tt11ttttfft11tftttffttt\nttttt1tttttttt11tttttttti,......:;:;;;:...,:;::::,.................:1t11111tt1t11tfffttt11ttttttfttt\nttttt1tttttttt11tttttttti,......:;:;;:.....,:::::,..................:11111ttt1111ttttttt11ttttttfttt\n1t1t111tttttt111111ttttt;...,,,.,:::. ......:::::,...................,111tttt11111ttttt1111ttttttt1t\n111111111111111111111111,,,,,,,.............,:::::,..................,1t111111111111111111111111tt11\n11111111111111111111111i,,..:,..............,,::::,,.................,11tt11111111111111111111111111\n111111111111111111111111;...................,:,,::,,.................,;ii11t111111111111111111111111\n111111111111111111111111i,..................,:::::,,................:::;;;i111t111111111111111111111\n1111111111111111111111111i;;;;i1:............::,:,,,,........... ..::;;;;i1111111111111111111111111\n111111111111111111111111111111t1,............,.,:,,,:,,........:,,..,:;;;i11t11111111111111111111111\n1111111111111111111111111111111i.............,,::;;;i;:,...... :111i;::;;;1ttttt11t1111111tttttt1111\n111111111111111111111111111111ti.............:1;;1iiii;:,.......i1tttt11111tt1tt111111t1111ttttt1111\n","tttttttttttttttttttttfffttttt1111tttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLLftffftfffftttt111111111t11ttffffftttt1111111111111111ttftttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttfffffttfffffffLfffftttttttttt11tffffffffffttttttt11111tffffffffftttfffffttt11111ttt1\nttttttttttttfffftttffttffffffffftttfttttt111ttt1ttfffffftttttt11tt111111ttffffLLffttfLLff111111ttttt\nttttttttttffLLLLftttttfLLLfttttttffffttttttfffft1tffffffttfffft11t111tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftfffttttttfffffftfttfftffffffffttt111tftt11t11tfLLLftt11tffft1tttttt\ntttttttfLfLLLLLLLLffttfttttffLLfftffttttffffffffffftttfffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLLftffttttttt11i;ii1tftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfLLLLLLLLLLfttfftfffffffffLLfttt1i;::,,,,:;;1tttttffffffftt1111ttt1ttt1ttfttt1ttfffffLLLLfttt\nttfLLftfffLLLLLLLfftfLfftttfLfffLLLLttt1;,,,,,,,::,:iftt11tfffft11111tffft1tt11tt1ttttfffLLLLLLLLfff\ntfffffttttfLLfffttttfffffttLLLLfLLLftt1i;;;;;;iiii:,;fftt11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttffLLffLLftt1;iiiii11111i::tfffft1ttt111111tffftfffftttttttt1ttfLLLLffffff\nttfLffffffftttfffffffffttfttffLfffLftt1;i;;;iiiiiii;;tfftttttffft11111tfttffftttttttttttttfLLftfffft\nttffffffffftttffffffffftffftttfttftttttii;;;;ii;;ii;iftt11tttttfft1111tt1tffttffttfffffLLfffffffffLL\nttffffffffttttfffffffftttttt11ttfffttt11ii;;ii1111ii11111tffftttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\n1ttffffffffttfffffffftt1ttt111tffffttt1i1i;;;iiiiii1111ttfffft11t11111tfft1tttttt1ttffffLfftttfLLLLf\ntttttttttffttfftttttt1ttfff1111ttffttttt1i;;;;i;:;it11ttftfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tfffftttt11tfftt11tt1;;;ii;;;1t111tttffftt11t1111tttt1tt1tffftt1111ttfftfLffftt\ntfttfffftttt1ttttfft1tffffttfftt1tft1111t1;;;;i;:;i11111tttft111tt1111ttt11tt1tfffffttttttttttttffft\n1tttfffffftttffftfft11tfffttfttttttt11111i;;:;iiii1i;i1t1tt11111t11111tt111tft1fffffttfffftt1ttffLLf\n1t1tffffft111tffttt1111tfttft11tt1t1i;;;1i;;;;ii1ii1,.,:;ii1tt11111111111t11tt1tfffttfffffffttfLfLLf\ntfttttftt1tt11ttt11ttt11t1t11tt11i:,...,11;;;;;it111,,.....,:;i11tt1111111111tttffttttffffftt1tffLLf\ntffttttttttttt1111ttftt111111i;:,......:1t1i;;;;i1t1,..........,:i1111111tttt11t1tfLftttfft1tt1tffft\n1ttttttttttttt1111ttttt111tt;..........:1111iii1;11:.............,it1111tttttt1ttfLLLffttttffffttttf\ntfffttttffttttt11ttttttt11t1,...........,,:::;;i;;:...............:t1111ttttfft1tffffffftttttttffttf\ntfffttttfffffft11ttttttt111i..............:;:::;;::...............,1t1111ttffttttffLLfLfttfffffffttf\ntfffttttttttttt11ttttttt111:..............,;;;;;;:,................;t11111ttt1t1tffLLLLfttfffffffttf\ntffft1tttttttt111ttttttt11i,..........,::::;;;;;;:,................,1t11t111tttttffffLLfttfffffffttf\nttttt1tttttttt111tt1tttt11i.........:;;;;:,;;::::::.................;t1ttt11tftttffffffftttffftffttt\nttttt1tttt11tt111ttttttt111,.......;;;;;;:,:;::::::,................:tttt1111tt11ttfttft11tftttffttt\nttttt1tttttttt11tttttttt11;,......,;;;;;;:::;::::::,................,itt111t11t11ttftttt11ttttttfttt\nttttt1tttttttt11tttttttt11;,......:;;;;i;...,:::::,,.................:tt1tttt1111ttttttt11ttttttfttt\n1t1t111tttttt111tttttttt1;,.,.....,:;:......,:::::,,..................it1tttt11111tttt11111ttttttt1t\n1111111111111111111111111:,,,......,,. .....,,::::,,..................,1t11111111111111111111111tt11\n1111111111111111111111111,,....,,...........,,,:::::,..................itt11111111111111111111111111\n1111111111111111111111111;,.................,:::::::,,................:1tt11111111111111111111111111\n11111111111111111111111111:.... ............,:::,:,,.................,1tt11111111111111111111111111\n11111111111111111111111111ii;;;;;i, .........,,::,,,,,................,:;;1tt11111111111111111111111\n11111111111111111111111111111111t1,..........,,,:,,:,:,,. ...........,:::;;i11tt11111111111111111111\n11111111111111111111111111111111t;.............,:::;;;;:,........ .,:::;;:;i1t111111111ttttttt11111\n111111111111111111111111111111111:...........,;;;i1iiii;:,.......::,,::::;;i1ttt111t11t1111ttttt1111\n","tttftttttttttttttttttfffttttt1111tttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt11111111t\nttfftttttttttttttttffLLftffftfffftttt111111111t11ttffffftttt1111111111111111ttftttfttttttttt1111tttt\nttftttttttttttttffffLffttfffffffLfffttttttttt111tfffffffftttttttt11111ttttttfffftfLLfttttttt111tttt1\nttttttttttttttttfffffttfffffffLfffftttttttttt11tffffffffffttttttt11111tfffffffffttffffffttt11111ttt1\ntttttttttttffffftttffttffffffffftttfttttt111ttt1ttfffffftttttt11tt111111ttffffLLffttfLLfft11111ttttt\nttttttttttffLLLLftttttfLLLfttttttffLftttttttffft1ttfffffttfffft11t111tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLfttttttffffffffftftttfffffffttt111tftt11t11tfLLfftt11tffft11ttttt\ntttttttfffLLLLLLLLffttfttttfLLLfftffttttffftt1iii11tttfffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLffffftttttfti;;::,,,:;i1tffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttfffffLLLLLLLLLLfttfftfLfffffffLLfttttt1;,,,,,,,::,:ittffffffftt1111ttt1ttt1tftttt1ttffffLLLLLfttt\nttfLLffffLLLLLLLLfftfLfftttfLfffLLLLfttt1i;:::;;iiii;,;t11tfffft11111tffft1tt1ttt1ttttfffLLLLLLLLfff\ntffffftttffLLLffttttfffffttLLLLfLLLffttf1;;iiii11111i::1t11tttt1ttt11tfffttfftttttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttfffLffLLftttti:;;;;iiiiiii;;tftt1ttt111111tffftfffftttttttt1ttfLLLLffffff\nttfLffffffftttfffffffffttfttffLfffLfttttti;;;;;iii;i1iiftttttffft11111tfttffftttttttttttttfLLftfffft\nttffffffffftttffffffffftfffftffffftttttft11i;;;iiii1iiit11tttttfft1111tt11ffttffttfffffLLfffffffffLL\nttffffffffttttfffffffftttttt1tttffftttttti1i;;;ii11iii111tffftttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\n1ttffffffffttfffffffftt1ttt1111tfffftttt111i;;iiiiii111ttfffft11t11111tfftttttttt1ttffffLfftttfLLLLf\ntttttttttffttfftttttt1ttfftttt1ttfftttttt111i;i;:;ii11ttftfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tfffftttt11tfftt1ttt111;;i;;;iii1ttttffftt11t1111ttt11tt1tffttt1111ttfftfLffftt\ntfttffffttt11tttttft1tffffttffttttft111ttt11;;;;:;i1i1;;11tft111tt1111tt111tt1tfffffttttt11tttttffft\n1tttfffffftttffftfft11tfftttffttttft1111iii1;;;i;iiii1i,,,:;;i11tt1111tt111tft1fffffttfffftt11tffLLf\n111ttfffftt1ttffttt1111tfttft11tt1t1i;:,,,;1i;;i1ii;iti,,.....,:;i1t11111t11tt1tfffttffffffft1fffLLf\ntfttttftt1tt11tft11ttt11tttt1tt11i;:,.....;11i;i1i;1tt;,,.........,:i11111111t1tffttttffffftt1tfffLf\ntffttttttttftt1111ttttt11111tft;,.........;11111i1ttti,.............,1111tttt1111tffftttfft1tt1tffft\n1ttttttttttttt1111tttttt11tfff1,...........,:;;;;;11i:...............itttttttt1ttfffLffttttffffttttf\ntfffttttffttttt11ttttttt11tfffi............ ,:;;;;;;;,...............;t1ttttfft1tffffffftttttttffttf\ntfffttttfffffft11tttttttttt1tf;..............:;;;;;;;,...............:111ttttttttfffLfLfttfffffffttf\ntfffttttftftft111ttttttt11t111:..............:;;;;;::,...............,1t11ttt1t1tffLLLLfttfffffffttf\ntfffttttfttttt111ttttttt11ttt1:..............,;;;::;::................itt111tttttffffLLfttfffffffttf\ntttttttttttttt111ttttttt1ttfft:..............,;;;;::::................:1tt11tft1tffffffftttffttffttt\nttttt1tttt11tt11tttttttt1tttt1;.,::,..........:;:::;::,...............,1t1111tt11tttttft11tfttttfttt\nttttt1tttttttt11ttttttttt1ttt1;,:;;:..........,::::::,,................it11111111ttftttt11ttttttfttt\nttttt1tttttttt11tttttttttttttiiiiii;,.........,:::::::,................:ttttt1111ttttttt11ttttttfttt\n1t1111tttttttt11tttttttt1ttt1;;;;ii;,.........,:::::::,.................ittttt1111tttt11111ttttttt1t\n11111111111111111111111111tt1;;;;ii;...........::::::::................ :1t111111111111111111111t111\n11111111111111111111111111tt1;::;;i:...........,:::::::,...............,itttt11111111111111111111111\n11111111111111111111111tttttt;,,,::............,::::::,,...............ittttt11111111111111111111111\n1111111111111111111111111tttt1:,,..............,:::::,,,,.......,:;::,:1t1111111111111111111111t1111\n11111111111111111111111111111111i;;i:..........,:,,,.,,.,.......::;;i;it1ttt111111111111111111111111\n1111111111111111111111111111111111ti...........,,.,:,:;::,......,:;;ii1ttttt11111111111111111t111111\n1111111111111111111111111111111111t;...........,;iiiiiii;:,......:;;;i1ttttt111t1111111111tttttt1111\n11111111111111111111111111111111111:...........,;i11iiii;:,.......,:i1tttttt1ttttt1t11t1111ttttt1111\n"];const l=new i.a;function c(){const[t,e]=Object(a.useState)(function(){const t=new Date;return 3===t.getMonth()&&1===t.getDate()}()),[n,i]=Object(a.useState)(0);return Object(a.useEffect)(()=>{const t=setInterval(()=>i(t=>(t+1)%s.length),100);return()=>clearInterval(t)},[]),Object(a.useEffect)(()=>l.subscribe(()=>{e(!0)}),[]),t?r.a.createElement(o.a,{open:t,onClose:()=>e(!1)},r.a.createElement("pre",{style:{color:"#0f0"}},s[n]),r.a.createElement("div",{style:{display:"none"}},r.a.createElement("iframe",{width:"560",height:"315",src:"https://www.youtube.com/embed/a3Z7zEc7AXQ?autoplay=1",title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"}))):r.a.createElement(r.a.Fragment,null)}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(15),o=n(1),s=n(21),l=n(121),c=n(146);const f=Object(l.a)(t=>Object(c.a)({travel:{color:t.colors.white,lineHeight:"1em",whiteSpace:"pre",cursor:"pointer"}}));function u(t){const e=f();return t.city!==t.currentCity?r.a.createElement(s.a,{title:r.a.createElement(o.a,null,t.city)},r.a.createElement("span",{onClick:()=>t.onTravel(t.city),className:e.travel},t.city[0])):r.a.createElement("span",null,t.city[0])}function m(t){return r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ,_ . ._. _. ."),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," , _-\\','|~\\~ ~/ ;-'_ _-' ,;_;_, ~~-"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," /~~-\\_/-'~'--' \\~~| ', ,' / / ~|-_\\_/~/~ ~~--~~~~'--_"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / ,/'-/~ '\\ ,' _ , '",r.a.createElement(u,{onTravel:t.onTravel,currentCity:t.currentCity,city:i.a.Volhaven}),",'|~ ._/-, /~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ~/-'~\\_, '-,| '|. ' ~ ,\\ /'~ / /_ /~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},".-~ '| '',\\~|\\ _\\~ ,_ , ",r.a.createElement(u,{onTravel:t.onTravel,currentCity:t.currentCity,city:i.a.Chongqing})," /,"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," '\\ ",r.a.createElement(u,{onTravel:t.onTravel,currentCity:t.currentCity,city:i.a.Sector12})," /'~ |_/~\\\\,-,~ \\ \" ,_,/ |"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | / ._-~'\\_ _~| \\ ) ",r.a.createElement(u,{onTravel:t.onTravel,currentCity:t.currentCity,city:i.a.NewTokyo})),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\ __-\\ '/ ~ |\\ \\_ / ~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ., '\\ |, ~-_ - | \\\\_' ~| /\\ \\~ ,"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ~-_' _; '\\ '-, \\,' /\\/ |"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," '\\_,~'\\_ \\_ _, /' ' |, /|'"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / \\_ ~ | / \\ ~'; -,_."),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ~\\ | | , '-_, ,; ~ ~\\"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\, ",r.a.createElement(u,{onTravel:t.onTravel,currentCity:t.currentCity,city:i.a.Aevum})," / \\ / /| ,-, , -,"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ,/ | |' |/ ,- ~ \\ '."),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ,| ,/ \\ ,/ \\ ",r.a.createElement(u,{onTravel:t.onTravel,currentCity:t.currentCity,city:i.a.Ishima})," |"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / | ~ -~~-, / _"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ,-' ~ /"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / ,' ~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ',| ~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ~'"))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(24),o=n(1157),s=n(1158);function l(t){const e=t.action.getEstSuccessChance(t.bladeburner);let n=r.a.createElement(r.a.Fragment,null);return n=e[0]===e[1]?r.a.createElement(r.a.Fragment,null,Object(i.d)(100*e[0],1),"%"):r.a.createElement(r.a.Fragment,null,Object(i.d)(100*e[0],1),"% ~ ",Object(i.d)(100*e[1],1),"%"),r.a.createElement(r.a.Fragment,null,"Estimated success chance: ",n," ",t.action.isStealth?r.a.createElement(o.a,null):r.a.createElement(r.a.Fragment,null),t.action.isKill?r.a.createElement(s.a,null):r.a.createElement(r.a.Fragment,null))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(38);function o(t){return r.a.createElement(i.a,{open:t.open,onClose:t.onClose},t.children)}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(0),r=n.n(a);function i(t,e,n){return t.substring(0,e)+n+t.substring(e+1)}function o(t){const[e,n]=Object(a.useState)(t.content);return Object(a.useEffect)(()=>{let t=5;const a=[],r=setInterval(()=>{if(t--,t>0)return;t=5*Math.random();const r=Math.random()*e.length,o=e.charAt(r);n(t=>i(t,r,function(t){const e=t=>t[Math.floor(Math.random()*t.length)],n=["abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ","1234567890"," _","()[]{}<>"];for(const a of n)if(a.includes(t))return e(a);return e("!@#$%^&*()_+|\\';\"/.,?`~")}(o))),a.push(window.setTimeout(()=>{n(t=>i(t,r,o))},500))},20);return()=>{clearInterval(r),a.forEach(t=>clearTimeout(t))}},[]),r.a.createElement("span",null,e)}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(1413),r=n(14);function i(t){const e=a.a[t];if(null==e)return;const n=`${e.title}

${e.txt}`;Object(r.a)(n)}},,,,,,function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return m})),n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(256),o=n(2),s=n(85),l=n(89),c=n(5),f=n(20);function u(){const t=o.a.getCurrentServer();null!==t&&l.a.DarkWeb==t.hostname&&s.a.print("You are now connected to the dark web. From the dark web you can purchase illegal items. Use the 'buy -l' command to display a list of all the items you can buy. Use 'buy [item-name]' to purchase an item. Use 'buy -a' to purchase all unowned items.")}function m(){for(const t of Object.keys(i.a)){const e=i.a[t],n=o.a.getHomeComputer().programs.includes(e.program)?r.a.createElement("span",{style:{color:"green"}},"[OWNED]"):r.a.createElement(f.a,{money:e.price});s.a.printRaw(r.a.createElement(r.a.Fragment,null,r.a.createElement("span",null,e.program)," - ",r.a.createElement("span",null,n)," - ",r.a.createElement("span",null,e.description)))}}function h(t){t=t.toLowerCase();let e=null;for(const n of Object.keys(i.a)){const a=i.a[n];a.program.toLowerCase()==t&&(e=a)}null!==e?o.a.hasProgram(e.program)?s.a.print("You already have the "+e.program+" program"):o.a.moneyo.a.money)s.a.error("Not enough money to purchase remaining programs, "+c.a.formatMoney(e)+" required");else for(const e of t)h(e.program);else s.a.print("All available programs have been purchased already.")}},function(t,e,n){"use strict";function a(t,e){const n=t.hostname;return"requiredHackingSkill"in t?!1===t.hasAdminRights?{res:!1,msg:`Cannot ${e} ${n} server because you do not have root access`}:{res:!0}:{res:!1,msg:`Cannot ${e} ${n} server because it is a Hacknet Node`}}function r(t,e){const n=a(t,"hack");if(!n.res)return n;return t.requiredHackingSkill>e.hacking?{res:!1,msg:`Cannot hack ${t.hostname} server because your hacking skill is not high enough`}:{res:!0}}function i(t){return a(t,"grow")}function o(t){return a(t,"weaken")}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var a=n(182);function r(t,e,n){const a=n-Math.pow(e,.9)/250-t.intelligence/1600;return a<0?0:a>3?3:a}function i(t,e){return r(t,t.strength+t.defense+t.dexterity+t.agility+t.charisma,e)}function o(t,e){return r(t,Object(a.b)(9e3*t.strength_exp_mult,t.strength_mult)+Object(a.b)(9e3*t.defense_exp_mult,t.defense_mult)+Object(a.b)(9e3*t.agility_exp_mult,t.agility_mult)+Object(a.b)(9e3*t.dexterity_exp_mult,t.dexterity_mult)+Object(a.b)(9e3*t.charisma_exp_mult,t.charisma_mult),e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(114),r=n(10);class i{constructor(t){this.augmentation=t}get cost(){return this.augmentation.baseCost*r.a.AugmentationGraftingCostMult}get time(){const t=Math.max(Object(a.sum)(Object.values(this.augmentation.mults)),1),e=Math.log2(t);return(r.a.AugmentationGraftingTimeBase*e+r.a.MillisecondsPerHalfHour)/2}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(5),o=n(127);function s({reputation:t}){return r.a.createElement(o.a,{reputation:i.a.formatReputation(t)+" / sec"})}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var a=n(27),r=n(157);function i(t){return"string"==typeof t&&(!isNaN(t)&&!isNaN(parseFloat(t)))}function o(t){const e=(t=(t=t.trim()).replace(/\s\s+/g," ")).match(/(?:'[^']*'|"[^"]*"|[^;"])*/g);if(!e)return[];const n=e.map(r.h).map(t=>t.match(/(?:'[^']*'|"[^"]*"|[^;"])*/g)).flat(),a=[];for(const t of n)null!==t&&(t.match(/^\s*$/)||a.push(t.trim()));return a}function s(t){let e="";const n=[];let r=0,o=0,s="";for(;o=1&&(s=t.charAt(o-1),"\\"===s&&(l=!0));const c=t.charAt(o);if(c===a.a.DOUBLE_QUOTE)if(l||s!==a.a.SPACE)""===e?e=a.a.DOUBLE_QUOTE:e===a.a.DOUBLE_QUOTE&&(e="");else{const e=t.indexOf(a.a.DOUBLE_QUOTE,o+1);if(-1!==e&&(e===t.length-1||t.charAt(e+1)===a.a.SPACE)){n.push(t.substr(o+1,e-o-1)),r=o=e===t.length-1?e+1:e+2;continue}}else if(c===a.a.QUOTE)if(l||s!==a.a.SPACE)""===e?e=a.a.QUOTE:e===a.a.QUOTE&&(e="");else{const e=t.indexOf(a.a.QUOTE,o+1);if(-1!==e&&(e===t.length-1||t.charAt(e+1)===a.a.SPACE)){n.push(t.substr(o+1,e-o-1)),r=o=e===t.length-1?e+1:e+2;continue}}else if(c===a.a.SPACE&&""===e){const e=t.substr(r,o-r);i(e)?n.push(parseFloat(e)):"true"===e?n.push(!0):"false"===e?n.push(!1):n.push(e),r=o+1}++o}if(r!==o){const e=t.substr(r,o-r);i(e)?n.push(parseFloat(e)):"true"===e?n.push(!0):"false"===e?n.push(!1):n.push(e)}return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(1380),o=n(1),s=n(8);function l(t){const[e,n]=Object(a.useState)(0),[l,c]=Object(a.useState)(!1);return r.a.createElement(r.a.Fragment,null,t.lines.slice(0,e).map((t,e)=>r.a.createElement(o.a,{key:e},t)),t.lines.length>e&&r.a.createElement(i.a,{key:e,text:t.lines[e],onDone:function(){const a=e+1;n(a),a>=t.lines.length&&(t.onDone&&t.auto&&t.onDone(),c(!0))}}),!t.auto&&t.onDone&&l&&r.a.createElement(s.a,{onClick:t.onDone},"Continue ..."))}},,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r}));const a=5,r=1e13},,,,,,,,,,,,,,,,,,,,,,,,,function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return checkInfiniteLoop})),__webpack_require__.d(__webpack_exports__,"a",(function(){return calculateRamUsage}));var acorn_walk__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(304),acorn__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(254),_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(328),_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(42),_Terminal_DirectoryHelpers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(83);const specialReferenceIF="__SPECIAL_referenceIf",specialReferenceFOR="__SPECIAL_referenceFor",specialReferenceWHILE="__SPECIAL_referenceWhile",memCheckGlobalKey=".__GLOBAL__";async function parseOnlyRamCalculate(player,otherScripts,code,workerScript){try{let dependencyMap={};const completedParses=new Set,parseQueue=[];function parseCode(t,e){const n=parseOnlyCalculateDeps(t,e);completedParses.add(e);for(let t=0;t0;){const nextModule=parseQueue.shift();if(void 0===nextModule)throw new Error("nextModule should not be undefined");let code;if(nextModule.startsWith("https://")||nextModule.startsWith("http://"))try{const module=await eval("import(nextModule)");code="";for(const t in module)"function"==typeof module[t]&&(code+=module[t].toString()+";\n")}catch(t){return console.error(`Error dynamically importing module from ${nextModule} for RAM calculations: ${t}`),{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.URLImportError}}else{if(!Array.isArray(otherScripts))return console.warn("parseOnlyRamCalculate() not called with array of scripts"),{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.ImportError};let t=null;const e=nextModule.startsWith("./")?nextModule.slice(2):nextModule;for(const n of otherScripts)if(Object(_Terminal_DirectoryHelpers__WEBPACK_IMPORTED_MODULE_4__.b)(n.filename,e)){t=n;break}if(null==t)return{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.ImportError};code=t.code}parseCode(code,nextModule)}let ram=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptBaseRamCost;const detailedCosts=[{type:"misc",name:"baseCost",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptBaseRamCost}],unresolvedRefs=Object.keys(dependencyMap).filter(t=>t.startsWith(initialModule)),resolvedRefs=new Set;for(;unresolvedRefs.length>0;){const t=unresolvedRefs.shift();if(void 0===t)throw new Error("ref should not be undefined");if("hacknet"!==t||resolvedRefs.has("hacknet")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptHacknetNodesRamCost,detailedCosts.push({type:"ns",name:"hacknet",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptHacknetNodesRamCost})),"document"!==t||resolvedRefs.has("document")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost,detailedCosts.push({type:"dom",name:"document",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost})),"window"!==t||resolvedRefs.has("window")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost,detailedCosts.push({type:"dom",name:"window",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost})),"corporation"!==t||resolvedRefs.has("corporation")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptCorporationRamCost,detailedCosts.push({type:"ns",name:"corporation",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptCorporationRamCost})),resolvedRefs.add(t),t.endsWith(".*")){const e=t.slice(0,t.length-2);for(const t of Object.keys(dependencyMap).filter(t=>t.startsWith(e)))for(const e of dependencyMap[t]||[])resolvedRefs.has(e)||unresolvedRefs.push(e)}else for(const e of dependencyMap[t]||[])resolvedRefs.has(e)||unresolvedRefs.push(e);try{function applyFuncRam(t){return"number"==typeof t?t:"function"==typeof t?t(player):0}if(workerScript.loadedFns[t])continue;let e;workerScript.loadedFns[t]=!0;let n="n/a";t in workerScript.env.vars.bladeburner?(e=workerScript.env.vars.bladeburner[t],n="bladeburner."+t):t in workerScript.env.vars.codingcontract?(e=workerScript.env.vars.codingcontract[t],n="codingcontract."+t):t in workerScript.env.vars.stanek?(e=workerScript.env.vars.stanek[t],n="stanek."+t):t in workerScript.env.vars.infiltration?(e=workerScript.env.vars.infiltration[t],n="infiltration."+t):t in workerScript.env.vars.gang?(e=workerScript.env.vars.gang[t],n="gang."+t):t in workerScript.env.vars.sleeve?(e=workerScript.env.vars.sleeve[t],n="sleeve."+t):t in workerScript.env.vars.stock?(e=workerScript.env.vars.stock[t],n="stock."+t):t in workerScript.env.vars.ui?(e=workerScript.env.vars.ui[t],n="ui."+t):t in workerScript.env.vars.grafting?(e=workerScript.env.vars.grafting[t],n="grafting."+t):t in workerScript.env.vars.singularity?(e=workerScript.env.vars.singularity[t],n="singularity."+t):(e=workerScript.env.vars[t],n=""+t);const a=applyFuncRam(e);ram+=a,detailedCosts.push({type:"fn",name:n,cost:a})}catch(t){continue}}return{cost:ram,entries:detailedCosts.filter(t=>t.cost>0)}}catch(t){return{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.SyntaxError}}}function checkInfiniteLoop(t){const e=Object(acorn__WEBPACK_IMPORTED_MODULE_1__.a)(t,{sourceType:"module",ecmaVersion:"latest"});let n=-1;return acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(e,{},{WhileStatement:(e,a,r)=>{!function(t){return"Literal"===t.type&&"true"===t.raw}(e.test)||function(t){let e=!1;return acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(t,{},{AwaitExpression:()=>{e=!0}}),e}(e)?e.body&&r(e.body,a):n=(t.slice(0,e.start).match(/\n/g)||[]).length+1}}),n}function parseOnlyCalculateDeps(t,e){const n=Object(acorn__WEBPACK_IMPORTED_MODULE_1__.a)(t,{sourceType:"module",ecmaVersion:"latest"}),a=e+memCheckGlobalKey,r={};r[a]=new Set;const i={},o=[];function s(t,n){const a=r[t]||(r[t]=new Set),o=i[n];void 0!==o&&a.add(o),a.add(e+"."+n),a.add(n)}const l=Object.getOwnPropertyNames(Object.prototype);function c(){return{Identifier:(t,e)=>{l.includes(t.name)||s(e.key,t.name)},WhileStatement:(t,e,n)=>{s(e.key,specialReferenceWHILE),t.test&&n(t.test,e),t.body&&n(t.body,e)},DoWhileStatement:(t,e,n)=>{s(e.key,specialReferenceWHILE),t.test&&n(t.test,e),t.body&&n(t.body,e)},ForStatement:(t,e,n)=>{s(e.key,specialReferenceFOR),t.init&&n(t.init,e),t.test&&n(t.test,e),t.update&&n(t.update,e),t.body&&n(t.body,e)},IfStatement:(t,e,n)=>{s(e.key,specialReferenceIF),t.test&&n(t.test,e),t.consequent&&n(t.consequent,e),t.alternate&&n(t.alternate,e)},MemberExpression:(t,e,n)=>{t.object&&n(t.object,e),t.property&&n(t.property,e)}}}return acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(n,{key:a},Object.assign({ImportDeclaration:(t,e)=>{const n=t.source.value;o.push(n);const a=r[e.key];if(void 0===a)throw new Error("set should not be undefined");a.add(n+memCheckGlobalKey);for(let a=0;a{const n=e+"."+(null===t.id?"__SPECIAL_DEFAULT_EXPORT__":t.id.name);acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(t,{key:n},c())}},c())),{dependencyMap:r,additionalModules:o}}async function calculateRamUsage(t,e,n){const a={loadedFns:{},env:{vars:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.b}};try{return await parseOnlyRamCalculate(t,n,e,a)}catch(t){return console.error("Failed to parse script for RAM calculations:"),console.error(t),{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.SyntaxError}}}},function(t,e,n){"use strict";function a(t){return+(Math.round(parseFloat(t+"e+2"))+"e-2")}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var a=n(198);let r=1;function i(){let t=r,e=!1;for(let n=0;n<1e6;){if(!a.a.has(t+n)){e=!0,t+=n;break}n===Number.MAX_SAFE_INTEGER-1?n=1:++n}return e?(r=t+1,r>=Number.MAX_SAFE_INTEGER&&(r=1),t):-1}function o(){r=1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return ot}));var a=n(597),r=n.n(a),i=n(423),o=n(42),s=n(298),l=n(18),c=n(10),f=n(103),u=n(482),m=n(93),h=n(85),d=n(2),p=n(66),g=n(253),y=n(235),b=n(101),E=n(408),v=n(22),k=n(135),_=n(225),w=n(46),S=n(530),x=n(83),C=n(226),L=n(197),O=n(144),M=n(198),T=n(110),A=n(5),R=n(24),N=n(179),P=n(255),I=n(148),F=n(1033),D=n(1038),j=n(1039),B=n(1041),G=n(1042),W=n(1044),H=n(1045),U=n(1046),q=n(1047),$=n(1049),K=n(1054),z=n(1055),V=n(1056),Y=n(1408),J=n(646),X=n(14),Q=n(99),Z=n(370),tt=n(645),et=n(285),nt=n(421),at=n(462),rt=n(15),it=n(275);function ot(t){const e=function(e,n){if(t.dynamicLoadedFns[e])return;t.dynamicLoadedFns[e]=!0;let a=t.scriptRef.threads;if("number"!=typeof a&&(console.warn(`WorkerScript detected NaN for threadcount for ${t.name} on ${t.hostname}`),a=1),t.dynamicRamUsage+=n,t.dynamicRamUsage>1.01*t.ramUsage)throw Object(T.b)(t,`Dynamic RAM usage calculated to be greater than initial RAM usage on fn: ${e}.\n This is probably because you somehow circumvented the static RAM calculation.\n\n Threads: ${a}\n Dynamic RAM Usage: ${A.a.formatRAM(t.dynamicRamUsage)}\n Static RAM Usage: ${A.a.formatRAM(t.ramUsage)}\n\n One of these could be the reason:\n * Using eval() to get a reference to a ns function\n   const myScan = eval('ns.scan');\n\n * Using map access to do the same\n   const myScan = ns['scan'];\n\n Sorry :(`)},n=function(t,e){const n=Object(v.d)(t);if(null==n)throw ut(e,"Invalid hostname: "+t);return n},a=function(e,a,r,i){if("string"==typeof r&&""!==r||(r="getRunningScript"),!Array.isArray(i))throw Object(T.b)(t,`Invalid scriptArgs argument passed into getRunningScript() from ${r}(). This is probably a bug. Please report to game developer`);if(null!=e&&"string"==typeof e){null==a&&(a=t.hostname);const o=n(a,r);return Object(y.a)(e,i,o)}return t.scriptRef},st=function(t,e){"string"==typeof e&&""!==e||(e="getRunningScriptgetRunningScriptByPid");for(const e of Object(v.c)()){const n=Object(y.b)(t,e);if(n)return n}return null},lt=function(t){return{args:t.args.slice(),filename:t.filename,logs:t.logs.slice(),offlineExpGained:t.offlineExpGained,offlineMoneyMade:t.offlineMoneyMade,offlineRunningTime:t.offlineRunningTime,onlineExpGained:t.onlineExpGained,onlineMoneyMade:t.onlineMoneyMade,onlineRunningTime:t.onlineRunningTime,pid:t.pid,ramUsage:t.ramUsage,server:t.server,threads:t.threads}},ct=function(t,e,n){return Array.isArray(n)||(n=[]),`Cannot find running script ${t} on server ${e} with args: ${Object(P.a)(n)}`},ft=function(e,n=""){return e instanceof m.a&&(t.log(n,()=>"Does not work on Hacknet Servers"),!0)},ut=function(e,n){const a=(new Error).stack;if(void 0===a)throw new Error("how did we not throw an error?");const r=a.split("\n").slice(1),i=t.getServer().scripts,o=[];for(const t of r){let e;for(const n of i){n.url&&t.includes(n.url)&&(e=n.filename);for(const a of n.dependencies)t.includes(a.url)&&(e=a.filename)}if(!e)continue;function s(t){const e=t.match(/.*:(\d+):\d+.*/),n=t.match(/.*at (.+) \(.*/);return e&&n?{line:e[1],func:n[1]}:null}let n={line:"-1",func:"unknown"};const a=s(t);function l(t){const e=t.match(/.*:(\d+):\d+$/),n=t.lastIndexOf("@");return e&&-1!==n?{line:e[1],func:t.slice(0,n)}:null}a&&(n=a);const r=l(t);r&&(n=r),o.push(`${e}:L${n.line}@${n.func}`)}t.log(e,()=>n);let c=`${e}: ${n}`;return 0!==o.length&&(c+="

Stack:
"+o.join("
")),Object(T.b)(t,c)},mt=async function(e,a,{threads:r,stock:i}={}){if(void 0===e)throw ut("hack","Takes 1 argument.");const o=Object(T.d)(t,"hack",r),s=n(e,"hack");if(!(s instanceof w.a))throw ut("hack","Cannot be executed on this server.");const m=Object(f.d)(s,d.a),h=Object(u.b)(s,d.a);if(!h.res)throw ut("hack",h.msg||"");return t.log("hack",()=>`Executing on '${s.hostname}' in ${Object(R.b)(1e3*m,!0)} (t=${A.a.formatThreads(o)})`),Object(T.c)(1e3*m,t).then((function(){const e=Object(f.b)(s,d.a),n=Math.random();let r=Object(f.c)(s,d.a)*o;const u=r/4;if(ns.moneyAvailable&&(m=s.moneyAvailable),s.moneyAvailable-=m,s.moneyAvailable<0&&(s.moneyAvailable=0);const h=m*l.a.ScriptHackMoneyGain;return d.a.gainMoney(h,"hacking"),t.scriptRef.onlineMoneyMade+=h,d.a.scriptProdSinceLastAug+=h,t.scriptRef.recordHack(s.hostname,h,o),d.a.gainHackingExp(r),a&&d.a.gainIntelligenceExp(.005),t.scriptRef.onlineExpGained+=r,t.log("hack",()=>`Successfully hacked '${s.hostname}' for ${A.a.formatMoney(h)} and ${A.a.formatExp(r)} exp (t=${A.a.formatThreads(o)})`),s.fortify(c.a.ServerFortifyAmount*Math.min(o,n)),i&&Object(S.c)(s,m),a&&(s.backdoorInstalled=!0),Promise.resolve(h)}return d.a.gainHackingExp(u),t.scriptRef.onlineExpGained+=u,t.log("hack",()=>`Failed to hack '${s.hostname}'. Gained ${A.a.formatExp(u)} exp (t=${A.a.formatThreads(o)})`),Promise.resolve(0)}))},ht=function(t){let e="";for(let n of t)n=Object(J.a)(n),e+="object"==typeof n?JSON.stringify(n):""+n;return e},dt={updateDynamicRam:e,makeRuntimeErrorMsg:ut,string:(t,e,n)=>{if("string"==typeof n)return n;if("number"==typeof n)return n+"";throw ut(t,e+" should be a string.")},number:(t,e,n)=>{if("string"==typeof n){const t=parseFloat(n);if(!isNaN(t))return t}else if("number"==typeof n){if(isNaN(n))throw ut(t,e+" is NaN.");return n}throw ut(t,e+" should be a number.")},boolean:t=>!!t,city:(t,e,n)=>{if("string"!=typeof n)throw ut(t,e+" should be a city name.");const a=n;if(!Object.values(rt.a).includes(a))throw ut(t,e+" should be a city name.");return a},getServer:n,checkSingularityAccess:function(t){if(4!==d.a.bitNodeN&&0===d.a.sourceFileLvl(4))throw ut(t,"This singularity function requires Source-File 4 to run. A power up you obtain later in the game. It will be very obvious when and how you can obtain it.")},hack:mt,getValidPort:(t,e)=>{if(isNaN(e))throw ut(t,`Invalid argument. Must be a port number between 1 and ${c.a.NumNetscriptPorts}, is ${e}`);if((e=Math.round(e))<1||e>c.a.NumNetscriptPorts)throw ut(t,`Trying to use an invalid port: ${e}. Only ports 1-${c.a.NumNetscriptPorts} are valid.`);const n=L.a[e-1];if(null==n||!(n instanceof Object))throw ut(t,`Could not find port: ${e}. This is a bug. Report to dev.`);return n}},pt=Object(j.a)(d.a,t,dt),gt=Object(K.a)(d.a,t,dt),yt=Object(it.a)(dt,{},t,Object(F.a)(d.a,t),"gang").gang,bt=Object(it.a)(dt,{},t,Object(D.a)(d.a),"sleeve").sleeve,Et=Object(it.a)(dt,{},t,Object(B.a)(d.a,t),"hacknet").hacknet,vt=Object(it.a)(dt,{},t,Object(U.a)(d.a,t),"bladeburner").bladeburner,kt=Object(it.a)(dt,{},t,Object(q.a)(d.a,t),"codingcontract").codingcontract,_t=Object(it.a)(dt,{},t,Object(W.a)(d.a),"infiltration").infiltration,wt=Object(it.a)(dt,{},t,Object(G.a)(d.a,t,dt),"stanek").stanek,St=Object(it.a)(dt,{},t,Object($.a)(d.a,t),"corporation").corporation,xt=Object(it.a)(dt,{},t,Object(Y.a)(d.a,t),"singularity").singularity,Ct=Object(it.a)(dt,{},t,Object(z.a)(d.a,t),"stock").stock,Lt=Object(it.a)(dt,{},t,Object(H.a)(),"ui").ui,Ot=Object(it.a)(dt,{},t,Object(V.a)(d.a),"grafting").grafting,Mt={...{...xt,singularity:xt,gang:yt,bladeburner:vt,codingcontract:kt,sleeve:bt,corporation:St,stanek:wt,infiltration:_t,ui:Lt,formulas:gt,stock:Ct,grafting:Ot,args:t.args,hacknet:Et,sprintf:i.sprintf,vsprintf:i.vsprintf,scan:function(a=t.hostname){e("scan",Object(o.c)(d.a,"scan"));const r=dt.string("scan","hostname",a),i=n(r,"scan"),s=[];for(let t=0;t`returned ${i.serversOnNetwork.length} connections for ${i.hostname}`),s},hack:function(t,{threads:n,stock:a}={}){e("hack",Object(o.c)(d.a,"hack"));const r=dt.string("hack","hostname",t);return mt(r,!1,{threads:n,stock:a})},hackAnalyzeThreads:function(a,r){e("hackAnalyzeThreads",Object(o.c)(d.a,"hackAnalyzeThreads"));const i=dt.string("hackAnalyzeThreads","hostname",a),s=dt.number("hackAnalyzeThreads","hackAmount",r),l=n(i,"hackAnalyzeThreads");if(!(l instanceof w.a))return t.log("hackAnalyzeThreads",()=>"Cannot be executed on this server."),-1;if(isNaN(s))throw ut("hackAnalyzeThreads",`Invalid hackAmount argument passed into hackAnalyzeThreads: ${s}. Must be numeric.`);if(s<0||s>l.moneyAvailable)return-1;if(0===s)return 0;const c=Object(f.e)(l,d.a);return 0===c||0===l.moneyAvailable?0:s/Math.floor(l.moneyAvailable*c)},hackAnalyze:function(a){e("hackAnalyze",Object(o.c)(d.a,"hackAnalyze"));const r=dt.string("hackAnalyze","hostname",a),i=n(r,"hackAnalyze");return i instanceof w.a?Object(f.e)(i,d.a):(t.log("hackAnalyze",()=>"Cannot be executed on this server."),0)},hackAnalyzeSecurity:function(a,r){e("hackAnalyzeSecurity",Object(o.c)(d.a,"hackAnalyzeSecurity"));let i=dt.number("hackAnalyzeSecurity","threads",a);if(r){const e=dt.string("hackAnalyzeSecurity","hostname",r),a=n(e,"hackAnalyze");if(!(a instanceof w.a))return t.log("hackAnalyzeSecurity",()=>"Cannot be executed on this server."),0;const o=Object(f.e)(a,d.a);o>0&&(i=Math.min(i,Math.ceil(1/o)))}return c.a.ServerFortifyAmount*i},hackAnalyzeChance:function(a){e("hackAnalyzeChance",Object(o.c)(d.a,"hackAnalyzeChance"));const r=dt.string("hackAnalyzeChance","hostname",a),i=n(r,"hackAnalyzeChance");return i instanceof w.a?Object(f.b)(i,d.a):(t.log("hackAnalyzeChance",()=>"Cannot be executed on this server."),0)},sleep:async function(n=0){e("sleep",Object(o.c)(d.a,"sleep"));const a=dt.number("sleep","time",n);if(void 0===a)throw ut("sleep","Takes 1 argument.");return t.log("sleep",()=>`Sleeping for ${a} milliseconds`),Object(T.c)(a,t).then((function(){return Promise.resolve(!0)}))},asleep:function(n=0){e("asleep",Object(o.c)(d.a,"asleep"));const a=dt.number("asleep","time",n);if(void 0===a)throw ut("asleep","Takes 1 argument.");return t.log("asleep",()=>`Sleeping for ${a} milliseconds`),new Promise(t=>setTimeout(()=>t(!0),a))},grow:async function(a,{threads:r,stock:i}={}){e("grow",Object(o.c)(d.a,"grow"));const s=dt.string("grow","hostname",a),l=Object(T.d)(t,"grow",null!=r?r:t.scriptRef.threads);if(void 0===s)throw ut("grow","Takes 1 argument.");const c=n(s,"grow");if(!(c instanceof w.a))return t.log("grow",()=>"Cannot be executed on this server."),Promise.resolve(0);const m=Object(v.d)(t.hostname);if(null===m)throw new Error("Workerscript host is null");const h=Object(u.a)(c);if(!h.res)throw ut("grow",h.msg||"");const p=Object(f.a)(c,d.a);return t.log("grow",()=>`Executing on '${c.hostname}' in ${Object(R.b)(1e3*p,!0)} (t=${A.a.formatThreads(l)}).`),Object(T.c)(1e3*p,t).then((function(){const e=c.moneyAvailable<=0?1:c.moneyAvailable;Object(k.f)(c,l,d.a,m.cpuCores);const n=c.moneyAvailable;t.scriptRef.recordGrow(c.hostname,l);const a=Object(f.c)(c,d.a)*l,r=n/e-1;return t.log("grow",()=>`Available money on '${c.hostname}' grown by ${A.a.formatPercentage(r,6)}. Gained ${A.a.formatExp(a)} hacking exp (t=${A.a.formatThreads(l)}).`),t.scriptRef.onlineExpGained+=a,d.a.gainHackingExp(a),i&&Object(S.b)(c,n-e),Promise.resolve(n/e)}))},growthAnalyze:function(a,r,i=1){e("growthAnalyze",Object(o.c)(d.a,"growthAnalyze"));const s=dt.string("growthAnalyze","hostname",a),l=dt.number("growthAnalyze","growth",r),c=dt.number("growthAnalyze","cores",i),f=n(s,"growthAnalyze");if(!(f instanceof w.a))return t.log("growthAnalyze",()=>"Cannot be executed on this server."),0;if("number"!=typeof l||isNaN(l)||l<1||!isFinite(l))throw ut("growthAnalyze",`Invalid argument: growth must be numeric and >= 1, is ${l}.`);return Object(k.c)(f,Number(l),d.a,c)},growthAnalyzeSecurity:function(a,r,i){e("growthAnalyzeSecurity",Object(o.c)(d.a,"growthAnalyzeSecurity"));let s=dt.number("growthAnalyzeSecurity","threads",a);if(r){const e=dt.number("growthAnalyzeSecurity","cores",i)||1,a=dt.string("growthAnalyzeSecurity","hostname",r),o=n(a,"growthAnalyzeSecurity");if(!(o instanceof w.a))return t.log("growthAnalyzeSecurity",()=>"Cannot be executed on this server."),0;const l=Math.ceil(Object(k.d)(o,o.moneyMax,o.moneyAvailable,d.a,e));s=Math.min(s,l)}return 2*c.a.ServerFortifyAmount*s},weaken:async function(a,{threads:r}={}){e("weaken",Object(o.c)(d.a,"weaken"));const i=dt.string("weaken","hostname",a),s=Object(T.d)(t,"weaken",null!=r?r:t.scriptRef.threads);if(void 0===i)throw ut("weaken","Takes 1 argument.");const l=n(i,"weaken");if(!(l instanceof w.a))return t.log("weaken",()=>"Cannot be executed on this server."),Promise.resolve(0);const m=Object(u.c)(l);if(!m.res)throw ut("weaken",m.msg||"");const h=Object(f.f)(l,d.a);return t.log("weaken",()=>`Executing on '${l.hostname}' in ${Object(R.b)(1e3*h,!0)} (t=${A.a.formatThreads(s)})`),Object(T.c)(1e3*h,t).then((function(){const e=Object(v.d)(t.hostname);if(null===e)return t.log("weaken",()=>"Server is null, did it die?"),Promise.resolve(0);const n=1+(e.cpuCores-1)/16;l.weaken(c.a.ServerWeakenAmount*s*n),t.scriptRef.recordWeaken(l.hostname,s);const a=Object(f.c)(l,d.a)*s;return t.log("weaken",()=>`'${l.hostname}' security level weakened to ${l.hackDifficulty}. Gained ${A.a.formatExp(a)} hacking exp (t=${A.a.formatThreads(s)})`),t.scriptRef.onlineExpGained+=a,d.a.gainHackingExp(a),Promise.resolve(c.a.ServerWeakenAmount*s*n)}))},weakenAnalyze:function(t,n=1){e("weakenAnalyze",Object(o.c)(d.a,"weakenAnalyze"));const a=dt.number("weakenAnalyze","threads",t),r=1+(dt.number("weakenAnalyze","cores",n)-1)/16;return c.a.ServerWeakenAmount*a*r*l.a.ServerWeakenRate},share:async function(){e("share",Object(o.c)(d.a,"share")),t.log("share",()=>"Sharing this computer.");const n=Object(nt.b)(t.scriptRef.threads*Object(et.a)(d.a.intelligence,2));return Object(T.c)(1e4,t).finally((function(){t.log("share",()=>"Finished sharing this computer."),n()}))},getSharePower:function(){return e("getSharePower",Object(o.c)(d.a,"getSharePower")),Object(nt.a)()},print:function(...n){if(e("print",Object(o.c)(d.a,"print")),0===n.length)throw ut("print","Takes at least 1 argument.");t.print(ht(n))},printf:function(n,...a){e("printf",Object(o.c)(d.a,"printf"));const r=dt.string("printf","format",n);if("string"!=typeof r)throw ut("printf","First argument must be string for the format.");t.print(Object(i.vsprintf)(r,a))},tprint:function(...n){if(e("tprint",Object(o.c)(d.a,"tprint")),0===n.length)throw ut("tprint","Takes at least 1 argument.");const a=ht(n);a.startsWith("ERROR")||a.startsWith("FAIL")?h.a.error(`${t.scriptRef.filename}: ${a}`):a.startsWith("SUCCESS")?h.a.success(`${t.scriptRef.filename}: ${a}`):a.startsWith("WARN")?h.a.warn(`${t.scriptRef.filename}: ${a}`):a.startsWith("INFO")?h.a.info(`${t.scriptRef.filename}: ${a}`):h.a.print(`${t.scriptRef.filename}: ${a}`)},tprintf:function(t,...n){e("tprintf",Object(o.c)(d.a,"tprintf"));const a=dt.string("printf","format",t);if("string"!=typeof a)throw ut("tprintf","First argument must be string for the format.");const r=Object(i.vsprintf)(a,n);r.startsWith("ERROR")||r.startsWith("FAIL")?h.a.error(""+r):r.startsWith("SUCCESS")?h.a.success(""+r):r.startsWith("WARN")?h.a.warn(""+r):r.startsWith("INFO")?h.a.info(""+r):h.a.print(""+r)},clearLog:function(){e("clearLog",Object(o.c)(d.a,"clearLog")),t.scriptRef.clearLog()},disableLog:function(n){e("disableLog",Object(o.c)(d.a,"disableLog"));const a=dt.string("disableLog","fn",n);if("ALL"===a){for(const e of Object.keys(Tt))t.disableLogs[e]=!0;t.log("disableLog",()=>"Disabled logging for all functions")}else{if(void 0===Tt[a])throw ut("disableLog",`Invalid argument: ${a}.`);t.disableLogs[a]=!0,t.log("disableLog",()=>"Disabled logging for "+a)}},enableLog:function(n){e("enableLog",Object(o.c)(d.a,"enableLog"));const a=dt.string("enableLog","fn",n);if("ALL"===a){for(const e of Object.keys(Tt))delete t.disableLogs[e];t.log("enableLog",()=>"Enabled logging for all functions")}else if(void 0===Tt[a])throw ut("enableLog",`Invalid argument: ${a}.`);delete t.disableLogs[a],t.log("enableLog",()=>"Enabled logging for "+a)},isLogEnabled:function(n){e("isLogEnabled",Object(o.c)(d.a,"isLogEnabled"));const a=dt.string("isLogEnabled","fn",n);if(void 0===Tt[a])throw ut("isLogEnabled",`Invalid argument: ${a}.`);return!t.disableLogs[a]},getScriptLogs:function(n,r,...i){e("getScriptLogs",Object(o.c)(d.a,"getScriptLogs"));const s=a(n,r,"getScriptLogs",i);return null==s?(t.log("getScriptLogs",()=>ct(n,r,i)),[]):s.logs.slice()},tail:function(n,r=t.hostname,...i){let s;e("tail",Object(o.c)(d.a,"tail")),s=0===arguments.length?t.scriptRef:"number"==typeof n?st(n,"tail"):a(n,r,"tail",i),null!=s?N.c.emit(s):t.log("tail",()=>ct(n,r,i))},closeTail:function(n=t.scriptRef.pid){e("closeTail",Object(o.c)(d.a,"closeTail"));const a=dt.number("closeTail","pid",n);N.b.emit(a)},nuke:function(a){e("nuke",Object(o.c)(d.a,"nuke"));const r=dt.string("tail","hostname",a);if(void 0===r)throw ut("nuke","Takes 1 argument.");const i=n(r,"nuke");if(!(i instanceof w.a))return t.log("nuke",()=>"Cannot be executed on this server."),!1;if(i.hasAdminRights)return t.log("nuke",()=>`Already have root access to '${i.hostname}'.`),!0;if(!d.a.hasProgram(p.a.NukeProgram.name))throw ut("nuke","You do not have the NUKE.exe virus!");if(i.openPortCount`Executed NUKE.exe virus on '${i.hostname}' to gain root access.`),!0},brutessh:function(a){e("brutessh",Object(o.c)(d.a,"brutessh"));const r=dt.string("brutessh","hostname",a);if(void 0===r)throw ut("brutessh","Takes 1 argument.");const i=n(r,"brutessh");if(!(i instanceof w.a))return t.log("brutessh",()=>"Cannot be executed on this server."),!1;if(!d.a.hasProgram(p.a.BruteSSHProgram.name))throw ut("brutessh","You do not have the BruteSSH.exe program!");return i.sshPortOpen?t.log("brutessh",()=>`SSH Port (22) already opened on '${i.hostname}'.`):(t.log("brutessh",()=>`Executed BruteSSH.exe on '${i.hostname}' to open SSH port (22).`),i.sshPortOpen=!0,++i.openPortCount),!0},ftpcrack:function(a){e("ftpcrack",Object(o.c)(d.a,"ftpcrack"));const r=dt.string("ftpcrack","hostname",a);if(void 0===r)throw ut("ftpcrack","Takes 1 argument.");const i=n(r,"ftpcrack");if(!(i instanceof w.a))return t.log("ftpcrack",()=>"Cannot be executed on this server."),!1;if(!d.a.hasProgram(p.a.FTPCrackProgram.name))throw ut("ftpcrack","You do not have the FTPCrack.exe program!");return i.ftpPortOpen?t.log("ftpcrack",()=>`FTP Port (21) already opened on '${i.hostname}'.`):(t.log("ftpcrack",()=>`Executed FTPCrack.exe on '${i.hostname}' to open FTP port (21).`),i.ftpPortOpen=!0,++i.openPortCount),!0},relaysmtp:function(a){e("relaysmtp",Object(o.c)(d.a,"relaysmtp"));const r=dt.string("relaysmtp","hostname",a);if(void 0===r)throw ut("relaysmtp","Takes 1 argument.");const i=n(r,"relaysmtp");if(!(i instanceof w.a))return t.log("relaysmtp",()=>"Cannot be executed on this server."),!1;if(!d.a.hasProgram(p.a.RelaySMTPProgram.name))throw ut("relaysmtp","You do not have the relaySMTP.exe program!");return i.smtpPortOpen?t.log("relaysmtp",()=>`SMTP Port (25) already opened on '${i.hostname}'.`):(t.log("relaysmtp",()=>`Executed relaySMTP.exe on '${i.hostname}' to open SMTP port (25).`),i.smtpPortOpen=!0,++i.openPortCount),!0},httpworm:function(a){e("httpworm",Object(o.c)(d.a,"httpworm"));const r=dt.string("httpworm","hostname",a);if(void 0===r)throw ut("httpworm","Takes 1 argument");const i=n(r,"httpworm");if(!(i instanceof w.a))return t.log("httpworm",()=>"Cannot be executed on this server."),!1;if(!d.a.hasProgram(p.a.HTTPWormProgram.name))throw ut("httpworm","You do not have the HTTPWorm.exe program!");return i.httpPortOpen?t.log("httpworm",()=>`HTTP Port (80) already opened on '${i.hostname}'.`):(t.log("httpworm",()=>`Executed HTTPWorm.exe on '${i.hostname}' to open HTTP port (80).`),i.httpPortOpen=!0,++i.openPortCount),!0},sqlinject:function(a){e("sqlinject",Object(o.c)(d.a,"sqlinject"));const r=dt.string("sqlinject","hostname",a);if(void 0===r)throw ut("sqlinject","Takes 1 argument.");const i=n(r,"sqlinject");if(!(i instanceof w.a))return t.log("sqlinject",()=>"Cannot be executed on this server."),!1;if(!d.a.hasProgram(p.a.SQLInjectProgram.name))throw ut("sqlinject","You do not have the SQLInject.exe program!");return i.sqlPortOpen?t.log("sqlinject",()=>`SQL Port (1433) already opened on '${i.hostname}'.`):(t.log("sqlinject",()=>`Executed SQLInject.exe on '${i.hostname}' to open SQL port (1433).`),i.sqlPortOpen=!0,++i.openPortCount),!0},run:function(n,a=1,...r){e("run",Object(o.c)(d.a,"run"));const i=dt.string("run","scriptname",n),s=dt.number("run","threads",a);if(void 0===i)throw ut("run","Usage: run(scriptname, [numThreads], [arg1], [arg2]...)");if(isNaN(s)||s<=0)throw ut("run","Invalid thread count. Must be numeric and > 0, is "+s);const l=Object(v.d)(t.hostname);if(null==l)throw ut("run","Could not find server. This is a bug. Report to dev.");return Object(L.d)(d.a,"run",l,i,r,t,s)},exec:function(a,r,i=1,...s){e("exec",Object(o.c)(d.a,"exec"));const l=dt.string("exec","scriptname",a),c=dt.string("exec","hostname",r),f=dt.number("exec","threads",i);if(void 0===l||void 0===c)throw ut("exec","Usage: exec(scriptname, server, [numThreads], [arg1], [arg2]...)");if(isNaN(f)||f<=0)throw ut("exec","Invalid thread count. Must be numeric and > 0, is "+f);const u=n(c,"exec");return Object(L.d)(d.a,"exec",u,l,s,t,f)},spawn:function(n,a=1,...r){e("spawn",Object(o.c)(d.a,"spawn"));const i=dt.string("spawn","scriptname",n),s=dt.number("spawn","threads",a);if(!i||!s)throw ut("spawn","Usage: spawn(scriptname, threads)");setTimeout(()=>{if(isNaN(s)||s<=0)throw ut("spawn","Invalid thread count. Must be numeric and > 0, is "+s);const e=Object(v.d)(t.hostname);if(null==e)throw ut("spawn","Could not find server. This is a bug. Report to dev");return Object(L.d)(d.a,"spawn",e,i,r,t,s)},1e4),t.log("spawn",()=>`Will execute '${i}' in 10 seconds`),t.running=!1,Object(O.a)(t)&&t.log("spawn",()=>"Exiting...")},kill:function(r,i,...s){let l;e("kill",Object(o.c)(d.a,"kill"));const c="number"==typeof r;if(c)l=Object(O.a)(r);else{if(void 0===r||void 0===i)throw ut("kill","Usage: kill(scriptname, server, [arg1], [arg2]...)");const e=n(i,"kill"),o=a(r,i,"kill",s);if(null==o)return t.log("kill",()=>ct(r,i,s)),!1;l=Object(O.a)(o,e.hostname)}return l?(c?t.log("kill",()=>"Killing script with PID "+r):t.log("kill",()=>`Killing '${r}' on '${i}' with args: ${Object(P.a)(s)}.`),!0):(c?t.log("kill",()=>"No script with PID "+r):t.log("kill",()=>`No such script '${r}' on '${i}' with args: ${Object(P.a)(s)}`),!1)},killall:function(a=t.hostname,r=!0){e("killall",Object(o.c)(d.a,"killall"));const i=dt.string("killall","hostname",a),l=dt.boolean(r);if(void 0===i)throw ut("killall","Usage: killall(hostname, [safetyguard boolean])");const c=n(i,"killall");let f=0;for(let e=c.runningScripts.length-1;e>=0;--e)!0===l&&c.runningScripts[e].pid==t.pid||(Object(O.a)(c.runningScripts[e],c.hostname,!1),++f);return s.a.emit(),t.log("killall",()=>`Killing all scripts on '${c.hostname}'. May take a few minutes for the scripts to die.`),f>0},exit:function(){e("exit",Object(o.c)(d.a,"exit")),t.running=!1,Object(O.a)(t)?t.log("exit",()=>"Exiting..."):t.log("exit",()=>"Failed. This is a bug. Report to dev.")},scp:async function(a,r,i){e("scp",Object(o.c)(d.a,"scp"));const s=dt.string("scp","hostname1",r);if(2!==arguments.length&&3!==arguments.length)throw ut("scp","Takes 2 or 3 arguments");if(a&&a.constructor===Array){const e=a;if(0===e.length)throw ut("scp","No scripts to copy");let n=!0;return await Promise.all(e.map((async function(e){await ot(t).scp(e,s,i)||(n=!1)}))),Promise.resolve(n)}if(!Object(x.j)(a))throw ut("scp",`Invalid filename: '${a}'`);if(!a.endsWith(".lit")&&!Object(b.a)(a)&&!a.endsWith("txt"))throw ut("scp","Only works for scripts, .lit and .txt files");let l,c;if(null!=i){if(void 0===a||void 0===s||void 0===i)throw ut("scp","Takes 2 or 3 arguments");l=n(i,"scp"),c=n(s,"scp")}else{if(null==s)throw ut("scp","Takes 2 or 3 arguments");if(void 0===a||void 0===s)throw ut("scp","Takes 2 or 3 arguments");if(l=n(s,"scp"),c=Object(v.d)(t.hostname),null==c)throw ut("scp","Could not find server hostname for this script. This is a bug. Report to dev.")}if(a.endsWith(".lit")){let e=!1;for(let t=0;t`File '${a}' does not exist.`),Promise.resolve(!1);for(let e=0;e{var t;return`File '${a}' copied over to '${null===(t=l)||void 0===t?void 0:t.hostname}'.`}),Promise.resolve(!0);return l.messages.push(a),t.log("scp",()=>{var t;return`File '${a}' copied over to '${null===(t=l)||void 0===t?void 0:t.hostname}'.`}),Promise.resolve(!0)}if(a.endsWith(".txt")){let e;for(let t=0;t`File '${a}' does not exist.`),Promise.resolve(!1);for(let n=0;n{var t;return`File '${a}' copied over to '${null===(t=l)||void 0===t?void 0:t.hostname}'.`}),Promise.resolve(!0);const n=new C.a(e.fn,e.text);return l.textFiles.push(n),t.log("scp",()=>{var t;return`File '${a}' copied over to '${null===(t=l)||void 0===t?void 0:t.hostname}'.`}),Promise.resolve(!0)}let f=null;for(let t=0;t`File '${a}' does not exist.`),Promise.resolve(!1);for(let e=0;e{var t;return`WARNING: File '${a}' overwritten on '${null===(t=l)||void 0===t?void 0:t.hostname}'`});const n=l.scripts[e];return n.code===f.code||(n.code=f.code,n.ramUsage=f.ramUsage,n.markUpdated()),Promise.resolve(!0)}const u=new g.a(d.a,a);return u.code=f.code,u.ramUsage=f.ramUsage,u.server=l.hostname,l.scripts.push(u),t.log("scp",()=>{var t;return`File '${a}' copied over to '${null===(t=l)||void 0===t?void 0:t.hostname}'.`}),new Promise(t=>{null!==l?u.updateRamUsage(d.a,l.scripts).then(()=>t(!0)):t(!1)})},ls:function(t,a=""){e("ls",Object(o.c)(d.a,"ls"));const r=dt.string("ls","hostname",t),i=dt.string("ls","grep",a);if(void 0===r)throw ut("ls","Usage: ls(hostname/ip, [grep filter])");const s=n(r,"ls");let l="";arguments.length>=2&&(l=i.toString());const c=[];for(let t=0;t({timeOfDeath:t.timeOfDeath,...lt(t.runningScript)}))},ps:function(a=t.hostname){e("ps",Object(o.c)(d.a,"ps"));const r=dt.string("ps","hostname",a),i=n(r,"ps"),s=[];for(const t of i.runningScripts)s.push({filename:t.filename,threads:t.threads,args:t.args.slice(),pid:t.pid});return s},hasRootAccess:function(t){e("hasRootAccess",Object(o.c)(d.a,"hasRootAccess"));const a=dt.string("hasRootAccess","hostname",t);if(void 0===a)throw ut("hasRootAccess","Takes 1 argument");return n(a,"hasRootAccess").hasAdminRights},getHostname:function(){e("getHostname",Object(o.c)(d.a,"getHostname"));const n=Object(v.d)(t.hostname);if(null==n)throw ut("getHostname","Could not find server. This is a bug. Report to dev.");return n.hostname},getHackingLevel:function(){return e("getHackingLevel",Object(o.c)(d.a,"getHackingLevel")),d.a.updateSkillLevels(),t.log("getHackingLevel",()=>"returned "+d.a.hacking),d.a.hacking},getHackingMultipliers:function(){return e("getHackingMultipliers",Object(o.c)(d.a,"getHackingMultipliers")),{chance:d.a.hacking_chance_mult,speed:d.a.hacking_speed_mult,money:d.a.hacking_money_mult,growth:d.a.hacking_grow_mult}},getHacknetMultipliers:function(){return e("getHacknetMultipliers",Object(o.c)(d.a,"getHacknetMultipliers")),{production:d.a.hacknet_node_money_mult,purchaseCost:d.a.hacknet_node_purchase_cost_mult,ramCost:d.a.hacknet_node_ram_cost_mult,coreCost:d.a.hacknet_node_core_cost_mult,levelCost:d.a.hacknet_node_level_cost_mult}},getBitNodeMultipliers:function(){if(e("getBitNodeMultipliers",Object(o.c)(d.a,"getBitNodeMultipliers")),d.a.sourceFileLvl(5)<=0&&5!==d.a.bitNodeN)throw ut("getBitNodeMultipliers","Requires Source-File 5 to run.");return Object.assign({},l.a)},getServer:function(a=t.hostname){e("getServer",Object(o.c)(d.a,"getServer"));const r=dt.string("getServer","hostname",a),i=n(r,"getServer"),s=Object.assign({},i);return s.contracts=void 0,s.messages=void 0,s.runningScripts=void 0,s.scripts=void 0,s.textFiles=void 0,s.programs=void 0,s.serversOnNetwork=void 0,s.baseDifficulty||(s.baseDifficulty=0),s.hackDifficulty||(s.hackDifficulty=0),s.minDifficulty||(s.minDifficulty=0),s.moneyAvailable||(s.moneyAvailable=0),s.moneyMax||(s.moneyMax=0),s.numOpenPortsRequired||(s.numOpenPortsRequired=0),s.openPortCount||(s.openPortCount=0),s.requiredHackingSkill||(s.requiredHackingSkill=0),s.serverGrowth||(s.serverGrowth=0),s},getServerMoneyAvailable:function(a){e("getServerMoneyAvailable",Object(o.c)(d.a,"getServerMoneyAvailable"));const r=dt.string("getServerMoneyAvailable","hostname",a),i=n(r,"getServerMoneyAvailable");return i instanceof w.a?ft(i,"getServerMoneyAvailable")?0:"home"==i.hostname?(t.log("getServerMoneyAvailable",()=>"returned player's money: "+A.a.formatMoney(d.a.money)),d.a.money):(t.log("getServerMoneyAvailable",()=>`returned ${A.a.formatMoney(i.moneyAvailable)} for '${i.hostname}'`),i.moneyAvailable):(t.log("getServerMoneyAvailable",()=>"Cannot be executed on this server."),0)},getServerSecurityLevel:function(a){e("getServerSecurityLevel",Object(o.c)(d.a,"getServerSecurityLevel"));const r=dt.string("getServerSecurityLevel","hostname",a),i=n(r,"getServerSecurityLevel");return i instanceof w.a?ft(i,"getServerSecurityLevel")?1:(t.log("getServerSecurityLevel",()=>`returned ${A.a.formatServerSecurity(i.hackDifficulty)} for '${i.hostname}'`),i.hackDifficulty):(t.log("getServerSecurityLevel",()=>"Cannot be executed on this server."),1)},getServerBaseSecurityLevel:function(a){e("getServerBaseSecurityLevel",Object(o.c)(d.a,"getServerBaseSecurityLevel"));const r=dt.string("getServerBaseSecurityLevel","hostname",a);t.log("getServerBaseSecurityLevel",()=>"getServerBaseSecurityLevel is deprecated because it's not useful.");const i=n(r,"getServerBaseSecurityLevel");return i instanceof w.a?ft(i,"getServerBaseSecurityLevel")?1:(t.log("getServerBaseSecurityLevel",()=>`returned ${A.a.formatServerSecurity(i.baseDifficulty)} for '${i.hostname}'`),i.baseDifficulty):(t.log("getServerBaseSecurityLevel",()=>"Cannot be executed on this server."),1)},getServerMinSecurityLevel:function(a){e("getServerMinSecurityLevel",Object(o.c)(d.a,"getServerMinSecurityLevel"));const r=dt.string("getServerMinSecurityLevel","hostname",a),i=n(r,"getServerMinSecurityLevel");return i instanceof w.a?ft(i,"getServerMinSecurityLevel")?1:(t.log("getServerMinSecurityLevel",()=>`returned ${A.a.formatServerSecurity(i.minDifficulty)} for ${i.hostname}`),i.minDifficulty):(t.log("getServerMinSecurityLevel",()=>"Cannot be executed on this server."),1)},getServerRequiredHackingLevel:function(a){e("getServerRequiredHackingLevel",Object(o.c)(d.a,"getServerRequiredHackingLevel"));const r=dt.string("getServerRequiredHackingLevel","hostname",a),i=n(r,"getServerRequiredHackingLevel");return i instanceof w.a?ft(i,"getServerRequiredHackingLevel")?1:(t.log("getServerRequiredHackingLevel",()=>`returned ${A.a.formatSkill(i.requiredHackingSkill)} for '${i.hostname}'`),i.requiredHackingSkill):(t.log("getServerRequiredHackingLevel",()=>"Cannot be executed on this server."),1)},getServerMaxMoney:function(a){e("getServerMaxMoney",Object(o.c)(d.a,"getServerMaxMoney"));const r=dt.string("getServerMaxMoney","hostname",a),i=n(r,"getServerMaxMoney");return i instanceof w.a?ft(i,"getServerMaxMoney")?0:(t.log("getServerMaxMoney",()=>`returned ${A.a.formatMoney(i.moneyMax)} for '${i.hostname}'`),i.moneyMax):(t.log("getServerMaxMoney",()=>"Cannot be executed on this server."),0)},getServerGrowth:function(a){e("getServerGrowth",Object(o.c)(d.a,"getServerGrowth"));const r=dt.string("getServerGrowth","hostname",a),i=n(r,"getServerGrowth");return i instanceof w.a?ft(i,"getServerGrowth")?1:(t.log("getServerGrowth",()=>`returned ${i.serverGrowth} for '${i.hostname}'`),i.serverGrowth):(t.log("getServerGrowth",()=>"Cannot be executed on this server."),1)},getServerNumPortsRequired:function(a){e("getServerNumPortsRequired",Object(o.c)(d.a,"getServerNumPortsRequired"));const r=dt.string("getServerNumPortsRequired","hostname",a),i=n(r,"getServerNumPortsRequired");return i instanceof w.a?ft(i,"getServerNumPortsRequired")?5:(t.log("getServerNumPortsRequired",()=>`returned ${i.numOpenPortsRequired} for '${i.hostname}'`),i.numOpenPortsRequired):(t.log("getServerNumPortsRequired",()=>"Cannot be executed on this server."),5)},getServerRam:function(a){e("getServerRam",Object(o.c)(d.a,"getServerRam"));const r=dt.string("getServerRam","hostname",a);t.log("getServerRam",()=>"getServerRam is deprecated in favor of getServerMaxRam / getServerUsedRam");const i=n(r,"getServerRam");return t.log("getServerRam",()=>`returned [${A.a.formatRAM(i.maxRam)}, ${A.a.formatRAM(i.ramUsed)}]`),[i.maxRam,i.ramUsed]},getServerMaxRam:function(a){e("getServerMaxRam",Object(o.c)(d.a,"getServerMaxRam"));const r=dt.string("getServerMaxRam","hostname",a),i=n(r,"getServerMaxRam");return t.log("getServerMaxRam",()=>"returned "+A.a.formatRAM(i.maxRam)),i.maxRam},getServerUsedRam:function(a){e("getServerUsedRam",Object(o.c)(d.a,"getServerUsedRam"));const r=dt.string("getServerUsedRam","hostname",a),i=n(r,"getServerUsedRam");return t.log("getServerUsedRam",()=>"returned "+A.a.formatRAM(i.ramUsed)),i.ramUsed},serverExists:function(t){e("serverExists",Object(o.c)(d.a,"serverExists"));const n=dt.string("serverExists","hostname",t);return null!==Object(v.d)(n)},fileExists:function(a,r=t.hostname){e("fileExists",Object(o.c)(d.a,"fileExists"));const i=dt.string("fileExists","filename",a),s=dt.string("fileExists","hostname",r);if(void 0===i)throw ut("fileExists","Usage: fileExists(scriptname, [server])");const l=n(s,"fileExists");for(let t=0;t`Invalid argument: ram='${a}'`),1/0):r},purchaseServer:function(n,a){e("purchaseServer",Object(o.c)(d.a,"purchaseServer"));const r=dt.string("purchaseServer","name",n),i=dt.number("purchaseServer","ram",a);if(2!==arguments.length)throw ut("purchaseServer","Takes 2 arguments");let s=String(r);if(s=s.replace(/\s+/g,""),""==s)return t.log("purchaseServer",()=>`Invalid argument: hostname='${s}'`),"";if(d.a.purchasedServers.length>=Object(_.b)())return t.log("purchaseServer",()=>`You have reached the maximum limit of ${Object(_.b)()} servers. You cannot purchase any more.`),"";const l=Object(_.a)(i);if(l===1/0)return i>Object(_.c)()?t.log("purchaseServer",()=>`Invalid argument: ram='${i}' must not be greater than getPurchaseServerMaxRam`):t.log("purchaseServer",()=>`Invalid argument: ram='${i}' must be a positive power of 2`),"";if(d.a.money"Not enough money to purchase server. Need "+A.a.formatMoney(l)),"";const c=Object(k.g)({ip:Object(v.e)(),hostname:s,organizationName:"",isConnectedTo:!1,adminRights:!0,purchasedByPlayer:!0,maxRam:i});Object(v.a)(c),d.a.purchasedServers.push(c.hostname);const f=d.a.getHomeComputer();return f.serversOnNetwork.push(c.hostname),c.serversOnNetwork.push(f.hostname),d.a.loseMoney(l,"servers"),t.log("purchaseServer",()=>`Purchased new server with hostname '${c.hostname}' for ${A.a.formatMoney(l)}`),c.hostname},deleteServer:function(n){e("deleteServer",Object(o.c)(d.a,"deleteServer"));const a=dt.string("purchaseServer","name",n);let r=String(a);r=r.replace(/\s\s+/g,"");const i=Object(v.d)(r);if(!(i instanceof w.a))return t.log("deleteServer",()=>`Invalid argument: hostname='${r}'`),!1;if(!i.purchasedByPlayer||"home"===i.hostname)return t.log("deleteServer",()=>"Cannot delete non-purchased server."),!1;const s=i.hostname;if(i.isConnectedTo)return t.log("deleteServer",()=>"You are currently connected to the server you are trying to delete."),!1;if(s===t.hostname)return t.log("deleteServer",()=>"Cannot delete the server this script is running on."),!1;if(i.runningScripts.length>0)return t.log("deleteServer",()=>`Cannot delete server '${s}' because it still has scripts running.`),!1;let l=!1;for(let t=0;t`Could not identify server ${s} as a purchased server. This is a bug. Report to dev.`),!1;Object(v.b)(s),l=!1;const c=d.a.getHomeComputer();for(let e=0;e"Deleted server '"+r),!0;return t.log("deleteServer",()=>`Could not find server ${s} as a purchased server. This is a bug. Report to dev.`),!1},getPurchasedServers:function(){e("getPurchasedServers",Object(o.c)(d.a,"getPurchasedServers"));const t=[];return d.a.purchasedServers.forEach((function(e){t.push(e)})),t},writePort:function(t,n=""){e("writePort",Object(o.c)(d.a,"writePort"));const a=dt.number("writePort","port",t);if("string"!=typeof n&&"number"!=typeof n)throw ut("writePort","Trying to write invalid data to a port: only strings and numbers are valid.");const r=dt.getValidPort("writePort",a);return Promise.resolve(r.write(n))},write:function(n,a="",r="a"){e("write",Object(o.c)(d.a,"write"));const i=dt.string("write","port",n),s=dt.string("write","mode",r);if(Object(I.a)(i)){let e=i;if(!Object(x.j)(e))throw ut("write","Invalid filepath: "+e);0===e.lastIndexOf("/")&&(e=Object(x.k)(e));try{a=String(a)}catch(t){throw ut("write",`Invalid data (${t}). Data being written must be convertible to a string`)}const n=t.getServer();if(null==n)throw ut("write","Error getting Server. This is a bug. Report to dev.");if(Object(b.a)(e)){let r=t.getScriptOnServer(e,n);return null==r?(r=new g.a(d.a,e,a,n.hostname,n.scripts),n.scripts.push(r),r.updateRamUsage(d.a,n.scripts)):("w"===s?r.code=a:r.code+=a,r.updateRamUsage(d.a,n.scripts))}{const t=Object(C.c)(e,n);if(null==t)return Object(C.b)(e,a,n),Promise.resolve();"w"===s?t.write(a):t.append(a)}return Promise.resolve()}throw ut("write","Invalid argument: "+i)},tryWritePort:function(t,n=""){e("tryWritePort",Object(o.c)(d.a,"tryWritePort"));let a=dt.number("tryWritePort","port",t);if("string"!=typeof n&&"number"!=typeof n)throw ut("tryWritePort","Trying to write invalid data to a port: only strings and numbers are valid.");if(isNaN(a))throw ut("tryWritePort","Invalid argument: "+a);{if(a=Math.round(a),a<1||a>c.a.NumNetscriptPorts)throw ut("tryWritePort",`Invalid port: ${a}. Only ports 1-${c.a.NumNetscriptPorts} are valid.`);const t=L.a[a-1];if(null==t||!(t instanceof Object))throw ut("tryWritePort",`Could not find port: ${a}. This is a bug. Report to dev.`);return Promise.resolve(t.tryWrite(n))}},readPort:function(t){e("readPort",Object(o.c)(d.a,"readPort"));const n=dt.number("readPort","port",t);return dt.getValidPort("readPort",n).read()},read:function(n){e("read",Object(o.c)(d.a,"read"));const a=dt.string("read","port",n);if(Object(I.a)(a)){const e=a,n=Object(v.d)(t.hostname);if(null==n)throw ut("read","Error getting Server. This is a bug. Report to dev.");if(Object(b.a)(e)){const a=t.getScriptOnServer(e,n);return null==a?"":a.code}{const t=Object(C.c)(e,n);return null!==t?t.text:""}}throw ut("read","Invalid argument: "+a)},peek:function(t){e("peek",Object(o.c)(d.a,"peek"));const n=dt.number("peek","port",t);return dt.getValidPort("peek",n).peek()},clear:function(n){e("clear",Object(o.c)(d.a,"clear"));const a=dt.string("peek","file",n);if(!Object(I.a)(a))throw ut("clear","Invalid argument: "+a);{const e=a,n=Object(v.d)(t.hostname);if(null==n)throw ut("clear","Error getting Server. This is a bug. Report to dev.");const r=Object(C.c)(e,n);null!=r&&r.write("")}},clearPort:function(t){e("clearPort",Object(o.c)(d.a,"clearPort"));const n=dt.number("clearPort","port",t);dt.getValidPort("clearPort",n).clear()},getPortHandle:function(t){e("getPortHandle",Object(o.c)(d.a,"getPortHandle"));const n=dt.number("getPortHandle","port",t);return dt.getValidPort("getPortHandle",n)},rm:function(a,r){e("rm",Object(o.c)(d.a,"rm"));const i=dt.string("rm","fn",a);null!=r&&""!==r||(r=t.hostname);const s=n(r,"rm").removeFile(i);return s.res||t.log("rm",()=>s.msg+""),s.res},scriptRunning:function(t,a){e("scriptRunning",Object(o.c)(d.a,"scriptRunning"));const r=dt.string("scriptRunning","scriptname",t),i=dt.string("scriptRunning","hostname",a),s=n(i,"scriptRunning");for(let t=0;t"invalid for this kind of server"),1/0)},getGrowTime:function(a=t.hostname){e("getGrowTime",Object(o.c)(d.a,"getGrowTime"));const r=dt.string("getGrowTime","hostname",a),i=n(r,"getGrowTime");return i instanceof w.a?ft(i,"getGrowTime")?1/0:1e3*Object(f.a)(i,d.a):(t.log("getGrowTime",()=>"invalid for this kind of server"),1/0)},getWeakenTime:function(a=t.hostname){e("getWeakenTime",Object(o.c)(d.a,"getWeakenTime"));const r=dt.string("getWeakenTime","hostname",a),i=n(r,"getWeakenTime");return i instanceof w.a?ft(i,"getWeakenTime")?1/0:1e3*Object(f.f)(i,d.a):(t.log("getWeakenTime",()=>"invalid for this kind of server"),1/0)},getScriptIncome:function(a,r,...i){if(e("getScriptIncome",Object(o.c)(d.a,"getScriptIncome")),0===arguments.length){const t=[];let e=0;for(const t of M.a.values())e+=t.scriptRef.onlineMoneyMade/t.scriptRef.onlineRunningTime;return t.push(e),t.push(d.a.scriptProdSinceLastAug/(d.a.playtimeSinceLastAug/1e3)),t}{const e=n(r,"getScriptIncome"),o=Object(y.a)(a,i,e);return null==o?(t.log("getScriptIncome",()=>`No such script '${a}' on '${e.hostname}' with args: ${Object(P.a)(i)}`),-1):o.onlineMoneyMade/o.onlineRunningTime}},getScriptExpGain:function(a,r,...i){if(e("getScriptExpGain",Object(o.c)(d.a,"getScriptExpGain")),0===arguments.length){let t=0;for(const e of M.a.values())t+=e.scriptRef.onlineExpGained/e.scriptRef.onlineRunningTime;return t}{const e=n(r,"getScriptExpGain"),o=Object(y.a)(a,i,e);return null==o?(t.log("getScriptExpGain",()=>`No such script '${a}' on '${e.hostname}' with args: ${Object(P.a)(i)}`),-1):o.onlineExpGained/o.onlineRunningTime}},nFormat:function(t,n){e("nFormat",Object(o.c)(d.a,"nFormat"));const a=dt.number("nFormat","n",t),r=dt.string("nFormat","format",n);return isNaN(a)?"":A.a.format(a,r)},tFormat:function(t,n=!1){e("tFormat",Object(o.c)(d.a,"tFormat"));const a=dt.number("tFormat","milliseconds",t),r=dt.boolean(n);return Object(R.b)(a,r)},getTimeSinceLastAug:function(){return e("getTimeSinceLastAug",Object(o.c)(d.a,"getTimeSinceLastAug")),d.a.playtimeSinceLastAug},alert:function(t){e("alert",Object(o.c)(d.a,"alert"));const n=dt.string("alert","message",t);Object(X.a)(n)},toast:function(t,n=Q.d.SUCCESS,a=2e3){e("toast",Object(o.c)(d.a,"toast"));const r=dt.string("toast","message",t),i=dt.string("toast","variant",n);if(!Object(Z.a)(Q.d,i))throw new Error("variant must be one of "+Object.values(Q.d).join(", "));Q.b.emit(r,i,a)},prompt:function(t,n){e("prompt",Object(o.c)(d.a,"prompt"));const a=dt.string("toast","txt",t);return new Promise((function(t){E.a.emit({txt:a,options:n,resolve:t})}))},wget:async function(a,i,s=t.hostname){e("wget",Object(o.c)(d.a,"wget"));const l=dt.string("wget","url",a),c=dt.string("wget","target",i),f=dt.string("wget","hostname",s);if(!Object(b.a)(c)&&!c.endsWith(".txt"))return t.log("wget",()=>`Invalid target file: '${c}'. Must be a script or text file.`),Promise.resolve(!1);const u=n(f,"wget");return new Promise((function(e){r.a.get(l,(function(n){let a;return a=Object(b.a)(c)?u.writeToScriptFile(d.a,c,n):u.writeToTextFile(c,n),a.success?a.overwritten?(t.log("wget",()=>`Successfully retrieved content and overwrote '${c}' on '${f}'`),e(!0)):(t.log("wget",()=>`Successfully retrieved content to new file '${c}' on '${f}'`),e(!0)):(t.log("wget",()=>"Failed."),e(!1))}),"text").fail((function(n){return t.log("wget",()=>JSON.stringify(n)),e(!1)}))}))},getFavorToDonate:function(){return e("getFavorToDonate",Object(o.c)(d.a,"getFavorToDonate")),Math.floor(c.a.BaseFavorToDonate*l.a.RepToDonateToFaction)},getOwnedSourceFiles:function(){e("getOwnedSourceFiles",Object(o.c)(d.a,"getOwnedSourceFiles"));const t=[];for(let e=0;e{n()}},mv:function(t,a,r){e("mv",Object(o.c)(d.a,"mv"));const i=dt.string("mv","host",t),s=dt.string("mv","source",a),l=dt.string("mv","destination",r);if(!Object(x.j)(s))throw ut("mv",`Invalid filename: '${s}'`);if(!Object(x.j)(l))throw ut("mv",`Invalid filename: '${l}'`);const c=s.endsWith(".txt"),f=l.endsWith(".txt");if(!Object(b.a)(s)&&!c)throw ut("mv","'mv' can only be used on scripts and text files (.txt)");if(c!=f)throw ut("mv","Source and destination files must have the same type");if(s===l)return;const u=n(i,"mv");if(!c&&u.isRunning(s))throw ut("mv","Cannot use 'mv' on a script that is running");const m=c?u.textFiles:u.scripts;let h=null,p=null;for(let t=0;t[t,!0]));return Mt}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var a=n(153),r=n(104);function i(t,e){const n=t.organizationName;let i=null;if("string"==typeof n&&""!==n&&(i=r.a[n]),!(i instanceof a.a))return;const o=e/t.moneyMax;Math.random()e&&(n=1),this.wanted=n,this.wanted<1&&(this.wanted=1)}e.gainMoney(n*t,"gang")}processTerritoryAndPowerGains(t=1){if(this.storedTerritoryAndPowerCycles+=t,this.storedTerritoryAndPowerCycles0&&(this.territoryClashChance=Math.max(0,this.territoryClashChance-.01));const n=c.a.Names.filter(t=>m.a[t].territory>0||t===e);if(n.length>1)for(let t=0;te!==n[t]),i=Object(l.a)(0,r.length-1),o=n[t],s=r[i];if(!(o!==e&&s!==e||Math.random()t.territory).reduce((t,e)=>t+e,0);console.log(u),Object.values(m.a).forEach(t=>t.territory/=u)}}processExperienceGains(t=1){for(let e=0;e=0;--t){const n=this.members[t];if("Territory Warfare"!==n.task)continue;const a=e/Math.pow(n.def,.6);Math.random()=c.a.MaximumGangMembers)&&this.respect>=this.getRespectNeededToRecruitMember()}getRespectNeededToRecruitMember(){if(this.members.length<3)return 0;const t=this.members.length-2;return Math.pow(5,t)}recruitMember(t){if(""===(t=String(t))||!this.canRecruitMember())return!1;if(this.members.filter(e=>e.name===t).length>=1)return!1;const e=new h.a(t);return this.members.push(e),!0}getWantedPenalty(){return this.respect/(this.respect+this.wanted)}calculatePower(){let t=0;for(let e=0;e"Ascended Gang member "+t.name),n}catch(t){throw null==e&&Object(s.a)(t),t}}getDiscount(){const t=this.getPower(),e=this.respect,n=Math.pow(e,.01)+e/5e6+Math.pow(t,.01)+t/1e6-1;return Math.max(1,n)}getAllTaskNames(){return Object.keys(u.a).filter(t=>{const e=u.a[t];return null!=e&&("Unassigned"!==e.name&&(this.isHackingGang===e.isHacking||!this.isHackingGang===e.isCombat))})}getUpgradeCost(t){return null==t?1/0:t.cost/this.getDiscount()}toJSON(){return Object(o.b)("Gang",this)}static fromJSON(t){return Object(o.a)(p,t.data)}}o.c.constructors.Gang=p},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(10);function r(t,e){return t/a.a.DonateMoneyToRepDivisor*e.faction_rep_mult}},,,,,,function(t,e,n){"use strict";function a(t,e,n=!1){let a="";const r=t.jobStatReqOffset,i=e.requiredHacking>0?e.requiredHacking+r:0,o=e.requiredStrength>0?e.requiredStrength+r:0,s=e.requiredDefense>0?e.requiredDefense+r:0,l=e.requiredDexterity>0?e.requiredDexterity+r:0,c=e.requiredDexterity>0?e.requiredDexterity+r:0,f=e.requiredCharisma>0?e.requiredCharisma+r:0,u=e.requiredReputation;return n?(a="Requires:
",a+=i.toString()+" hacking
",a+=o.toString()+" strength
",a+=s.toString()+" defense
",a+=l.toString()+" dexterity
",a+=c.toString()+" agility
",a+=f.toString()+" charisma
",a+=u.toString()+" reputation"):(a="(Requires ",i>0&&(a+=i+" hacking, "),o>0&&(a+=o+" strength, "),s>0&&(a+=s+" defense, "),l>0&&(a+=l+" dexterity, "),c>0&&(a+=c+" agility, "),f>0&&(a+=f+" charisma, "),u>1&&(a+=u+" reputation, "),a=a.substring(0,a.length-2),a+=")"),a}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return i}));const a=["Type 'help name' to learn more about the command "," ",' alias [-g] [name="value"] Create or display Terminal aliases'," analyze Get information about the current machine "," backdoor Install a backdoor on the current machine "," buy [-l/-a/program] Purchase a program through the Dark Web"," cat [file] Display a .msg, .lit, or .txt file"," cd [dir] Change to a new directory"," check [script] [args...] Print a script's logs to Terminal"," clear Clear all text on the terminal "," cls See 'clear' command "," connect [hostname] Connects to a remote server"," cp [src] [dst] Copy a file"," download [script/text file] Downloads scripts or text files to your computer"," expr [math expression] Evaluate a mathematical expression"," free Check the machine's memory (RAM) usage"," grow Spoof money in a servers bank account, increasing the amount available."," hack Hack the current machine"," help [command] Display this help text, or the help text for a command"," history [-c] Display the terminal history"," home Connect to home computer"," hostname Displays the hostname of the machine"," kill [script/pid] [args...] Stops the specified script on the current server "," killall Stops all running scripts on the current machine"," ls [dir] [--grep pattern] Displays all files on the machine"," lscpu Displays the number of CPU cores on the machine"," mem [script] [-t n] Displays the amount of RAM required to run the script"," mv [src] [dest] Move/rename a text or script file"," nano [file ...] Text editor - Open up and edit one or more scripts or text files"," ps Display all scripts that are currently running"," rm [file] Delete a file from the server"," run [name] [-t n] [--tail] [args...] Execute a program or script"," scan Prints all immediately-available network connections"," scan-analyze [d] [-a] Prints info for all servers up to d nodes away"," scp [file ...] [server] Copies a file to a destination server"," sudov Shows whether you have root access on this computer"," tail [script] [args...] Displays dynamic logs for the specified script"," top Displays all running scripts and their RAM usage"," unalias [alias name] Deletes the specified alias"," vim [file ...] Text editor - Open up and edit one or more scripts or text files in vim mode"," weaken Reduce the security of the current machine"," wget [url] [target file] Retrieves code/text from a web server"," "],r=t=>[`Usage: ${t} [file ...] | [glob]`," ","Opens up the specified file(s) in the Script Editor. Only scripts (.js, .ns, .script) or text files (.txt) ","can be edited using the Script Editor. If a file does not exist a new one will be created"," ",`If provided a glob as the only argument, ${t} can spider directories and open all matching `,`files at once. ${t} cannot create files using globs, so your scripts must already exist.`," ","Examples:"," ",` ${t} test.js`,` ${t} test.js test2.js`," ",` ${t} test.*`,` ${t} /my-dir/*.js`," "],i={alias:['Usage: alias [-g] [name="value"] '," ","Create or display aliases. An alias enables a replacement of a word with another string. ","It can be used to abbreviate a commonly used command, or commonly used parts of a command. The NAME ","of an alias defines the word that will be replaced, while the VALUE defines what it will be replaced by. For example, ","you could create the alias 'nuke' for the Terminal command 'run NUKE.exe' using the following: "," ",' alias nuke="run NUKE.exe"'," ","Then, to run the NUKE.exe program you would just have to enter 'nuke' in Terminal rather than the full command. ","It is important to note that 'default' aliases will only be substituted for the first word of a Terminal command. For ","example, if the following alias was set: "," ",' alias worm="HTTPWorm.exe"'," ","and then you tried to run the following terminal command: "," "," run worm"," ","This would fail because the worm alias is not the first word of a Terminal command. To allow an alias to be substituted ","anywhere in a Terminal command, rather than just the first word, you must set it to be a global alias using the -g flag: "," ",' alias -g worm="HTTPWorm.exe"'," ","Now, the 'worm' alias will be substituted anytime it shows up as an individual word in a Terminal command. "," ","Entering just the command 'alias' without any arguments prints the list of all defined aliases in the reusable form ","'alias NAME=VALUE' on the Terminal. "," ","The 'unalias' command can be used to remove aliases."," "],analyze:["Usage: analyze"," ","Prints details and statistics about the current server. The information that is printed includes basic ","server details such as the hostname, whether the player has root access, what ports are opened/closed, and also ","hacking-related information such as an estimated chance to successfully hack, an estimate of how much money is ","available on the server, etc."," "],backdoor:["Usage: backdoor"," ","Install a backdoor on the current machine, grants a secret bonus depending on the machine."," ","Requires root access to run."," "],buy:["Usage: buy [-l / -a / program]"," ","Purchase a program through the Dark Web. Requires a TOR router to use."," ","If this command is ran with the '-l' flag, it will display a list of all programs that can be bought through the ","dark web to the Terminal, as well as their costs."," ","If this command is ran with the '-a' flag, it will attempt to purchase all unowned programs."," ","Otherwise, the name of the program must be passed in as a parameter. This name is NOT case-sensitive."," "],cat:["Usage: cat [file]"," ","Display message (.msg), literature (.lit), or text (.txt) files. Examples:"," "," cat j1.msg"," "," cat foo.lit"," "," cat servers.txt"," "],cd:["Usage: cd [dir]"," ","Change to the specified directory. Note that this works even for directories that don't exist. If you ","change to a directory that does not exist, it will not be 'created'. Examples:"," "," cd scripts/hacking"," "," cd /logs"," "," cd ../"," "],check:["Usage: check [script name] [args...]"," ","Print the logs of the script specified by the script name and arguments to the Terminal. Each argument must be separated by ","a space. Remember that a running script is uniquely ","identified both by its name and the arguments that are used to start it. So, if a script was ran with the following arguments: "," "," run foo.script 1 2 foodnstuff"," ","Then to run the 'check' command on this script you would have to pass the same arguments in: "," "," check foo.script 1 2 foodnstuff"," "],clear:["Usage: clear"," ","Clear the Terminal screen, deleting all of the text. Note that this does not delete the user's command history, so using the up ","and down arrow keys is still valid. Also note that this is permanent and there is no way to undo this. Synonymous with 'cls' command"," "],cls:["Usage: cls"," ","Clear the Terminal screen, deleting all of the text. Note that this does not delete the user's command history, so using the up ","and down arrow keys is still valid. Also note that this is permanent and there is no way to undo this. Synonymous with 'clear' command"," "],connect:["Usage: connect [hostname]"," ","Connect to a remote server. The hostname of the remote server must be given as the argument ","to this command. Note that only servers that are immediately adjacent to the current server in the network and the ones that have","a backdoor installed can be connected to. To see which servers can be connected to, use the 'scan' command."," "],cp:["Usage: cp [src] [dst]"," ","Copy a file on this server. To copy a file to another server use scp."," "],download:["Usage: download [script/text file]"," ","Downloads a script or text file to your computer (like your real life computer)."," ","You can also download all of your scripts/text files as a zip file using the following Terminal commands:"," ","Download all scripts and text files: download *"," ","Download all scripts: download *.script"," ","Download all text files: download *.txt"," "],expr:["Usage: expr [mathematical expression]"," ","Evaluate a simple mathematical expression. Supports native JavaScript operators:"," ","+, -, /, *, **, %"," ","Example:"," "," expr 25 * 2 ** 10"," ","Note that letters (non-digits) are not allowed and will be removed from the input."," "],free:["Usage: free"," ","Displays the memory usage on the current machine. Print the amount of RAM that is available on the current server as well as ","how much of it is being used."," "],grow:["Usage: grow"," ","Spoof transactions in the current server. Increasing the money available by hacking. Requires root access.","See the wiki page for hacking mechanics."," "],hack:["Usage: hack"," ","Attempt to hack the current server. Requires root access in order to be run. See the wiki page for hacking mechanics"," "],help:["Usage: help [command]"," ","Display Terminal help information. Without arguments, 'help' prints a list of all valid Terminal commands and a brief ","description of their functionality. You can also pass the name of a Terminal command as an argument to 'help' to print ","more detailed information about the Terminal command. Examples: "," "," help alias"," "," help scan-analyze"," "],history:["Usage: history [-c]"," ","Without arguments, displays the terminal command history. To clear the history, pass in the '-c' argument."," "],home:["Usage: home"," ","Connect to your home computer. This will work no matter what server you are currently connected to."," "],hostname:["Usage: hostname"," ","Prints the hostname of the current server"," "],kill:["Usage: kill [script name] [args...] or kill [pid"," ","Kill the script specified by the script name and arguments OR by its PID."," ","If you are killing the script using its filename and arguments, then each ","argument must be separated by a space. Remember that a running script is ","uniquely identified by both its name and the arguments that are used to start ","it. So, if a script was ran with the following arguments:"," "," run foo.script 1 sigma-cosmetics"," ","Then to kill this script the same arguments would have to be used:"," "," kill foo.script 1 sigma-cosmetics"," ","If you are killing the script using its PID, then the PID argument must be numeric"," "],killall:["Usage: killall"," ","Kills all scripts on the current server. ","Note that after the 'kill' command is issued for a script, it may take a while for the script to actually stop running. ","This will happen if the script is in the middle of a command such as grow() or weaken() that takes time to execute. ","The script will not be stopped/killed until after that time has elapsed."," "],ls:["Usage: ls [dir] [-l] [--grep pattern]"," ","The ls command, with no arguments, prints all files and directories on the current server's directory to the Terminal screen. ","The files will be displayed in alphabetical order. "," ","The 'dir' optional parameter can be used to display files/directories in another directory."," ","The '-l' optional parameter allows you to force each item onto a single line."," ","The '--grep pattern' optional parameter can be used to only display files whose filenames match the specified pattern."," ","Examples:"," ","List all files with the '.script' extension in the current directory:"," "," ls -l --grep .script"," ","List all files with the '.js' extension in the root directory:"," "," ls / -l --grep .js"," ","List all files with the word 'purchase' in the filename, in the 'scripts' directory:"," "," ls scripts -l --grep purchase"," "],lscpu:["Usage: lscpu"," ","Prints the number of CPU Cores the current server has"," "],mem:["Usage: mem [script name] [-t num_threads]"," ","Displays the amount of RAM needed to run the specified script with a single thread. The command can also be used to print ","the amount of RAM needed to run a script with multiple threads using the '-t' flag. If the '-t' flag is specified, then ","an argument for the number of threads must be passed in afterwards. Examples:"," "," mem foo.script"," "," mem foo.script -t 50"," ","The first example above will print the amount of RAM needed to run 'foo.script' with a single thread. The second example ","above will print the amount of RAM needed to run 'foo.script' with 50 threads."," "],mv:["Usage: mv [src] [dest]"," ","Move the source file to the specified destination. This can also be used to rename files. ","This command only works for scripts and text files (.txt). This command CANNOT be used to ","convert to different file types"," ","Note that, unlike the Linux 'mv' command, the destination argument must be the ","full filepath. ","Examples: "," "," mv hacking-controller.script scripts/hacking-controller.script"," "," mv myScript.js myOldScript.js"," "],nano:r("nano"),ps:["Usage: ps"," ","Prints all scripts that are running on the current server"," "],rm:["Usage: rm [file]"," ","Removes the specified file from the current server. A file can be a script, a program, or a message file. "," ","WARNING: This is permanent and cannot be undone"," "],run:["Usage: run [file name] [-t] [num threads] [args...]"," ","Execute a program, script or coding contract."," ","The '[-t]', '[num threads]', and '[args...]' arguments are only valid when running a script. The '-t' flag is used ","to indicate that the script should be run with the specified number of threads. If the flag is omitted, ","then the script will be run with a single thread by default. ","If the '-t' flag is used, then it MUST come immediately ","after the script name, and the [num threads] argument MUST come immediately afterwards. "," ","[args...] represents a variable number of arguments that will be passed into the script. See the documentation ","about script arguments. Each specified argument must be separated by a space. "," "],scan:["Usage: scan"," ","Prints all immediately-available network connection. This will print a list of all servers that you can currently connect ","to using the 'connect' Terminal command."," "],"scan-analyze":["Usage: scan-analyze [depth] [-a]"," ","Prints detailed information about all servers up to [depth] nodes away on the network. Calling ","'scan-analyze 1' will display information for the same servers that are shown by the 'scan' Terminal ","command. This command also shows the relative paths to reach each server."," ","By default, the maximum depth that can be specified for 'scan-analyze' is 3. However, once you have ","the DeepscanV1.exe and DeepscanV2.exe programs, you can execute 'scan-analyze' with a depth up to ","5 and 10, respectively."," ","The information 'scan-analyze' displays about each server includes whether or not you have root access to it, ","its required hacking level, the number of open ports required to run NUKE.exe on it, and how much RAM ","it has."," ","By default, this command will not display servers that you have purchased. However, you can pass in the ","-a flag at the end of the command if you would like to enable that."," "],scp:["Usage: scp [filename ...] [target server]"," ","Copies the specified file(s) from the current server to the target server. ","This command only works for script files (.script or .js extension), literature files (.lit extension), ","and text files (.txt extension). ","The second argument passed in must be the hostname or IP of the target server. Examples:"," "," scp foo.script n00dles"," "," scp foo.script bar.script n00dles"," "],sudov:["Usage: sudov"," ","Prints whether or not you have root access to the current machine"," "],tail:["Usage: tail [script name] [args...]"," ","Displays dynamic logs for the script specified by the script name and arguments. Each argument must be separated ","by a space. Remember that a running script is uniquely identified by both its name and the arguments that were used ","to run it. So, if a script was ran with the following arguments: "," "," run foo.script 10 50000"," ","Then in order to check its logs with 'tail' the same arguments must be used: "," "," tail foo.script 10 50000"," "],top:["Usage: top"," ","Prints a list of all scripts running on the current server as well as their thread count and how much ","RAM they are using in total."," "],unalias:["Usage: unalias [alias name]"," ","Deletes the specified alias. Note that the double quotation marks are required. "," ","As an example, if an alias was declared using:"," ",' alias r="run"'," ","Then it could be removed using:"," "," unalias r"," ","It is not necessary to differentiate between global and non-global aliases when using 'unalias'"," "],vim:r("vim"),weaken:["Usage: weaken"," ","Reduces the security level of the current server. Decreasing the time it takes for all operations on this server.","Requires root access. See the wiki page for hacking mechanics."," "],wget:["Usage: wget [url] [target file]"," ","Retrieves data from a URL and downloads it to a file on the current server. The data can only ","be downloaded to a script (.script, .ns, .js) or a text file (.txt). If the file already exists, ","it will be overwritten by this command."," ","Note that it will not be possible to download data from many websites because they do not allow ","cross-origin resource sharing (CORS). Example:"," "," wget https://raw.githubusercontent.com/danielyxie/bitburner/master/README.md game_readme.txt"," "]}},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return c}));var a,r,i=n(25),o=n(252),s=n(10);!function(t){t[t.Production=0]="Production",t[t.Development=1]="Development"}(a||(a={})),function(t){t[t.Browser=0]="Browser",t[t.Steam=1]="Steam"}(r||(r={}));const l="https://github.com/danielyxie/bitburner/issues/new";function c(t,e,n){var c,f,u;const m=function(t,e,n){const i=navigator.userAgent.toLowerCase().indexOf(" electron/")>-1,l=a.Production,c={version:s.a.VersionString,hash:Object(o.a)(),toDisplay:()=>`v${s.a.VersionString} (${Object(o.a)()})`},f={userAgent:navigator.userAgent,language:navigator.language,cookiesEnabled:navigator.cookieEnabled,doNotTrack:navigator.doNotTrack,indexedDb:!!window.indexedDB};return{platform:i?r.Steam:r.Browser,environment:l,version:c,features:f,error:t,errorInfo:e,page:n}}(t,e,n),h=m.error.fileName,d=`lang=${m.features.language} cookiesEnabled=${m.features.cookiesEnabled.toString()} doNotTrack=${m.features.doNotTrack} indexedDb=${m.features.indexedDb.toString()}`,p=`${m.error.name}: ${m.error.message}${m.page&&` (at "${i.a[m.page]}")`}`,g=`\n## ${p}\n\n### How did this happen?\n\nPlease fill this information with details if relevant.\n\n- [ ] Save file\n- [ ] Minimal scripts to reproduce the issue\n- [ ] Steps to reproduce\n\n### Environment\n\n* Error: ${null!==(c=null===(f=m.error)||void 0===f?void 0:f.toString())&&void 0!==c?c:"n/a"}\n* Page: ${m.page?i.a[m.page]:"n/a"}\n* Version: ${m.version.toDisplay()}\n* Environment: ${a[m.environment]}\n* Platform: ${r[m.platform]}\n* UserAgent: ${navigator.userAgent}\n* Features: ${d}\n* Source: ${null!=h?h:"n/a"}\n\n${m.environment===a.Development?`\n### Stack Trace\n\`\`\`\n${null===(u=m.errorInfo)||void 0===u?void 0:u.componentStack.toString().trim()}\n\`\`\`\n`:""}\n### Save\n\`\`\`\nCopy your save here if possible\n\`\`\`\n`.trim();return{metadata:m,fileName:h,features:d,title:p,body:g,issueUrl:`${l}?title=${encodeURIComponent(p)}&body=${encodeURIComponent(g)}`}}},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(33);function r(t){const e=Math.max(Math.min(t,255),0);return Object(a.a)(0,e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(33);const r={Tracking:()=>Object(a.a)(5,75)/10,"Bounty Hunter":()=>Object(a.a)(5,75)/10,Retirement:()=>Object(a.a)(5,75)/10,Investigation:()=>Object(a.a)(10,40)/10,"Undercover Operation":()=>Object(a.a)(10,40)/10,"Sting Operation":()=>Object(a.a)(3,40)/10,Raid:()=>Object(a.a)(2,40)/10,"Stealth Retirement Operation":()=>Object(a.a)(1,20)/10,Assassination:()=>Object(a.a)(1,20)/10}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(154);function r(t){const e={},n=Object.keys(a.a);for(let a=0;a{var e;return c.a.createElement(a.a,{sx:{height:"fit-content",p:1}},c.a.createElement(r.a,{variant:"h6"},t.title),(null===(e=t.children)||void 0===e?void 0:e.length)>1?c.a.createElement(i.a,{disablePadding:!0,dense:!0},t.children.filter(t=>t).map((t,e)=>c.a.createElement(o.a,{key:Object(s.uniqueId)(String(e)),sx:{px:0,display:"block"}},t))):t.children)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));class a{constructor(t){this.cards=t}addCards(...t){return new a([...this.cards,...t])}removeByIndex(t){if(t>=this.cards.length)throw new Error("Tried to remove invalid card from Hand by index: "+t);return new a([...this.cards.slice().splice(t,1)])}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(0),r=n(1),i=n(21),o=n(8);function s(t){return a.createElement(i.a,{title:null!=t.tooltip?a.createElement(r.a,null,t.tooltip):""},a.createElement(o.a,{onClick:t.onClick},t.text))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var a=n(19),r=n(149),i=n(0),o=n(1387),s=n(650),l=n(102);function c(t){const e=new o.a(t.width,t.height,t.fragments),n=Object(l.a)(e),c=Object(l.d)([t.width,t.height]);return i.createElement(a.a,null,i.createElement(r.a,{sx:{width:t.width,height:t.height}},i.createElement(s.a,{width:t.width,height:t.height,activeGrid:n,ghostGrid:c,gift:e,enter:()=>{},click:()=>{}})))}},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var a=n(116),r=n(253),i=n(83),o=n(226),s=n(101),l=n(341),c=n(322);function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class u{constructor(t={hostname:"",ip:Object(l.a)()}){f(this,"contracts",[]),f(this,"cpuCores",1),f(this,"ftpPortOpen",!1),f(this,"hasAdminRights",!1),f(this,"hostname",""),f(this,"httpPortOpen",!1),f(this,"ip",""),f(this,"isConnectedTo",!1),f(this,"maxRam",0),f(this,"messages",[]),f(this,"organizationName",""),f(this,"programs",[]),f(this,"ramUsed",0),f(this,"runningScripts",[]),f(this,"scripts",[]),f(this,"serversOnNetwork",[]),f(this,"smtpPortOpen",!1),f(this,"sqlPortOpen",!1),f(this,"sshPortOpen",!1),f(this,"textFiles",[]),f(this,"purchasedByPlayer",!1),this.ip=t.ip?t.ip:Object(l.a)(),this.hostname=t.hostname,this.organizationName=null!=t.organizationName?t.organizationName:"",this.isConnectedTo=null!=t.isConnectedTo&&t.isConnectedTo,this.hasAdminRights=null!=t.adminRights&&t.adminRights}addContract(t){this.contracts.push(t)}getContract(t){for(const e of this.contracts)if(e.fn===t)return e;return null}getRunningScript(t,e){for(const n of this.runningScripts)if(n.filename===t&&Object(c.a)(n.args,e))return n;return null}getScript(t){for(let e=0;ee.fn!==t.fn):this.contracts=this.contracts.filter(e=>e.fn!==t)}removeFile(t){if(t.endsWith(".exe")||null!=t.match(/^.+\.exe-\d+(?:\.\d*)?%-INC$/)){for(let e=0;ee.startsWith(t));e>-1&&this.programs.splice(e,1),this.programs.push(t)}writeToScriptFile(t,e,n){const a={success:!1,overwritten:!1};if(!Object(i.j)(e)||!Object(s.a)(e))return a;for(let r=0;r{h.subscribe(t=>e(t))}),null===t)return r.a.createElement(r.a.Fragment,null);function d(){null!==t&&(t.onClose(),e(null))}const p=o.d[t.c.type],g=[];for(const[e,n]of p.desc(t.c.data).split("\n").entries())g.push(r.a.createElement("span",{key:e,dangerouslySetInnerHTML:{__html:n+"
"}}));return r.a.createElement(l.a,{open:null!==t,onClose:d},r.a.createElement(s.a,{variant:"h4",value:t.c.type}),r.a.createElement(f.a,null,"You are attempting to solve a Coding Contract. You have ",t.c.getMaxNumTries()-t.c.tries," tries remaining, after which the contract will self-destruct."),r.a.createElement("br",null),r.a.createElement(f.a,null,g),r.a.createElement("br",null),r.a.createElement(u.a,{autoFocus:!0,placeholder:"Enter Solution here",value:n,onChange:function(t){c(t.target.value)},onKeyDown:function(e){if(null===t)return;const a=e.target.value;e.key===i.a.ENTER&&""!==a&&(e.preventDefault(),t.onAttempt(n),c(""),d())},InputProps:{endAdornment:r.a.createElement(m.a,{onClick:()=>{t.onAttempt(n),c(""),d()}},"Solve")}}))}},,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return u}));var a=n(0),r=n.n(a),i=n(38),o=n(29),s=n(125),l=n(1),c=n(8);const f=new s.a;function u(){const t=o.b.Router(),[e,n]=Object(a.useState)(!1);return Object(a.useEffect)(()=>f.subscribe(()=>n(!0)),[]),r.a.createElement(i.a,{open:e,onClose:()=>n(!1)},r.a.createElement(l.a,null,"WARNING: USING THIS PROGRAM WILL CAUSE YOU TO LOSE ALL OF YOUR PROGRESS ON THE CURRENT BITNODE.",r.a.createElement("br",null),r.a.createElement("br",null),"Do you want to travel to the BitNode Nexus? This allows you to reset the current BitNode and select a new one."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(c.a,{onClick:function(){t.toBitVerse(!0,!1),n(!1)}},"Travel to the BitVerse"))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var a=n(767),r=n(685),i=n(686),o=n(395),s=n(48),l=n(440),c=n(9),f=n(377),u=n(15),m=n(386),h=n(28),d=n(24),p=n(33),g=n(10),y=n(34);class b{constructor(){this.hacking=1,this.hp=10,this.max_hp=10,this.strength=1,this.defense=1,this.dexterity=1,this.agility=1,this.charisma=1,this.intelligence=0,this.hacking_chance_mult=1,this.hacking_speed_mult=1,this.hacking_money_mult=1,this.hacking_grow_mult=1,this.hacking_exp=0,this.strength_exp=0,this.defense_exp=0,this.dexterity_exp=0,this.agility_exp=0,this.charisma_exp=0,this.intelligence_exp=0,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.money=1e3+g.a.Donations,this.city=u.a.Sector12,this.location=c.a.TravelAgency,this.jobs={},this.companyName="",this.currentServer="",this.purchasedServers=[],this.hacknetNodes=[],this.hashManager=new f.a,this.factions=[],this.factionInvitations=[],this.queuedAugmentations=[],this.augmentations=[],this.sourceFiles=[],this.numPeopleKilled=0,this.karma=0,this.crime_money_mult=1,this.crime_success_mult=1,this.isWorking=!1,this.focus=!1,this.workType=y.d.None,this.workCostMult=1,this.workExpMult=1,this.currentWorkFactionName="",this.currentWorkFactionDescription="",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.createProgramName="",this.createProgramReqLvl=0,this.graftAugmentationName="",this.timeWorkedGraftAugmentation=0,this.className=y.a.None,this.crimeType=y.b.None,this.timeWorked=0,this.timeWorkedCreateProgram=0,this.timeNeededToCompleteWork=0,this.work_money_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.hasWseAccount=!1,this.hasTixApiAccess=!1,this.has4SData=!1,this.has4SDataTixApi=!1,this.gang=null,this.corporation=null,this.bladeburner=null,this.bladeburner_max_stamina_mult=1,this.bladeburner_stamina_gain_mult=1,this.bladeburner_analysis_mult=1,this.bladeburner_success_chance_mult=1,this.sleeves=[],this.sleevesFromCovenant=0,this.bitNodeN=1,this.entropy=0,this.lastUpdate=0,this.lastSave=0,this.totalPlaytime=0,this.playtimeSinceLastAug=0,this.playtimeSinceLastBitnode=0,this.moneySourceA=new m.a,this.moneySourceB=new m.a,this.scriptProdSinceLastAug=0,this.exploits=[],this.achievements=[],this.terminalCommandHistory=[],this.identifier=Object(d.c)("I-"+(new Date).getTime()+navigator.userAgent+window.innerWidth+window.innerHeight+Object(p.a)(100,999)),this.init=s.gb,this.prestigeAugmentation=s.jb,this.prestigeSourceFile=s.kb,this.receiveInvite=s.sb,this.calculateSkill=s.o,this.calculateSkillProgress=s.p,this.updateSkillLevels=s.Rb,this.resetMultipliers=s.vb,this.hasProgram=s.eb,this.setMoney=s.yb,this.gainMoney=s.M,this.loseMoney=s.ib,this.canAfford=s.s,this.recordMoneySource=s.tb,this.gainHackingExp=s.K,this.gainStrengthExp=s.N,this.gainDefenseExp=s.I,this.gainDexterityExp=s.J,this.gainAgilityExp=s.F,this.gainCharismaExp=s.G,this.gainIntelligenceExp=s.L,this.queryStatFromString=s.nb,this.resetWorkStatus=s.wb,this.processWorkEarnings=s.mb,this.startWork=s.Lb,this.cancelationPenalty=s.t,this.work=s.Sb,this.finishWork=s.D,this.startWorkPartTime=s.Mb,this.workPartTime=s.Ub,this.finishWorkPartTime=s.E,this.startFocusing=s.Jb,this.stopFocusing=s.Nb,this.startFactionWork=s.Ib,this.startFactionHackWork=s.Gb,this.startFactionFieldWork=s.Fb,this.startFactionSecurityWork=s.Hb,this.workForFaction=s.Tb,this.finishFactionWork=s.B,this.getWorkMoneyGain=s.X,this.getWorkHackExpGain=s.W,this.getWorkStrExpGain=s.Z,this.getWorkDefExpGain=s.U,this.getWorkDexExpGain=s.V,this.getWorkAgiExpGain=s.S,this.getWorkChaExpGain=s.T,this.getWorkRepGain=s.Y,this.process=s.lb,this.startCreateProgramWork=s.Db,this.createProgramWork=s.x,this.finishCreateProgramWork=s.z,this.startGraftAugmentationWork=s.Kb,this.graftAugmentationWork=s.w,this.finishGraftAugmentationWork=s.C,this.startClass=s.Cb,this.takeClass=s.Ob,this.finishClass=s.y,this.startCrime=s.Eb,this.commitCrime=s.v,this.finishCrime=s.A,this.singularityStopWork=s.Ab,this.takeDamage=s.Pb,this.regenerateHp=s.ub,this.hospitalize=s.fb,this.applyForJob=s.f,this.getNextCompanyPosition=s.R,this.quitJob=s.pb,this.hasJob=s.db,this.applyForSoftwareJob=s.m,this.applyForSoftwareConsultantJob=s.l,this.applyForItJob=s.e,this.applyForSecurityEngineerJob=s.j,this.applyForNetworkEngineerJob=s.g,this.applyForBusinessJob=s.c,this.applyForBusinessConsultantJob=s.b,this.applyForSecurityJob=s.k,this.applyForAgentJob=s.a,this.applyForEmployeeJob=s.d,this.applyForPartTimeEmployeeJob=s.h,this.applyForWaiterJob=s.n,this.applyForPartTimeWaiterJob=s.i,this.isQualified=s.hb,this.reapplyAllAugmentations=s.qb,this.reapplyAllSourceFiles=s.rb,this.checkForFactionInvitations=s.u,this.setBitNodeNumber=s.xb,this.queueAugmentation=s.ob,this.gainCodingContractReward=s.H,this.travel=s.Qb,this.gotoLocation=s.cb,this.canAccessGrafting=s.r,this.giveExploit=s.bb,this.giveAchievement=s.ab,this.getIntelligenceBonus=s.P,this.getCasinoWinnings=s.O,this.hasAugmentation=a.b,this.canAccessBladeburner=r.a,this.inBladeburner=r.b,this.startBladeburner=r.c,this.canAccessCorporation=i.a,this.hasCorporation=i.b,this.startCorporation=i.c,this.canAccessGang=o.a,this.isAwareOfGang=o.f,this.getGangFaction=o.b,this.getGangName=o.c,this.hasGangWith=o.d,this.inGang=o.e,this.startGang=o.g,this.hasTorRouter=l.f,this.getCurrentServer=l.b,this.getHomeComputer=l.c,this.getUpgradeHomeRamCost=l.e,this.getUpgradeHomeCoresCost=l.d,this.createHacknetServer=l.a,this.factionWorkType=y.c.None,this.committingCrimeThruSingFn=!1,this.singFnCrimeWorkerScript=null,this.getMult=s.Q,this.setMult=s.zb,this.canAccessCotMG=s.q,this.sourceFileLvl=s.Bb,this.applyEntropy=a.a}toJSON(){return Object(h.b)("PlayerObject",this)}static fromJSON(t){return Object(h.a)(b,t.data)}}h.c.constructors.PlayerObject=b},function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return m}));var a=n(0),r=n.n(a),i=n(106),o=n(38),s=n(29),l=n(125),c=n(1),f=n(8);const u=new l.a;function m(){const[t,e]=Object(a.useState)(null),n=s.b.Player();return Object(a.useEffect)(()=>u.subscribe(t=>e(t)),[]),r.a.createElement(o.a,{open:null!==t,onClose:()=>e(null)},r.a.createElement(c.a,{variant:"h4"},"You have received a faction invitation."),r.a.createElement(c.a,null,"Would you like to join ",(t||{name:""}).name,"? ",r.a.createElement("br",null),r.a.createElement("br",null),"Warning: Joining this faction may prevent you from joining other factions during this run!"),r.a.createElement(f.a,{onClick:function(){if(null===t)return;-1===n.factionInvitations.findIndex(e=>e===t.name)&&console.error("Could not find faction in Player.factionInvitations"),Object(i.d)(t),e(null)}},"Join!"),r.a.createElement(f.a,{onClick:()=>e(null)},"Decide later"))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(254),r=function(t,e,n=0){this.sourceCode=t,this.sourceCodeLineOffset=n,"string"==typeof t&&(t=a.a(t,r.PARSE_OPTIONS)),this.ast=t,this.initFunc_=e,this.paused_=!1,this.polyfills_=[],this.functionCounter_=0,this.stepFunctions_=Object.create(null);var i,o,s=/^step([A-Z]\w*)$/;for(var l in this)"function"==typeof this[l]&&(i=l.match(s))&&(this.stepFunctions_[i[1]]=this[l].bind(this));this.global=this.createScope(this.ast,null),this.ast=a.a(this.polyfills_.join("\n"),r.PARSE_OPTIONS),this.polyfills_=void 0,this.stripLocations_(this.ast,void 0,void 0),(o=new r.State(this.ast,this.global)).done=!1,this.stateStack=[o],this.run(),this.value=void 0,this.ast=t,(o=new r.State(this.ast,this.global)).done=!1,this.stateStack.length=0,this.stateStack[0]=o,this.nodeConstructor=o.node.constructor,this.stateStack=this.stateStack}; /** * @license * JavaScript Interpreter