Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
//script by Sophie "Shinko to Kuma". Skype: live:sophiekitsune discord: Sophie#2418 websit..
Decoded Output download
<? //script by Sophie "Shinko to Kuma". Skype: live:sophiekitsune discord: Sophie#2418 website: https://shinko-to-kuma.my-free.website/
// Updated on 15 Januari by Sass. Fix to mobile
var _0x5092=['find','classList','','" class="sophLink">','setItem','Total lemn','
<tr ','Is pro Dorf','Target village','84698mLEuaT','parse','highPoints','Ksztette: Sophie 'Shinko to Kuma'','getElementById','removed empty lines','Destino','Total iron','Woodadjustement: ',' height="40">
<td>',' ','','Creating line ','getItem','active','Ijzer per dorp','value','Leem','Ziel Dorf',' ','','Total fier','Troca Premium','addEventListener','</td>
</tr>
</table>',' id='','</td>
<td class="sophHeader" width="25%" style="text-align:center">','name','Nyersanyagok kldse','</td>
<td style="text-align:right;padding-right:2em">
',' ','maxHeight','distance',' Warehouse capacity: ','Iron per village','css','Hrkunfts Dorf',' ','player','previousElementSibling','
<style>
.sophRowA {
background-color: #dedede;
color: #545454;
}
.sophRowB {
background-color: #f1f1f1;
color: #545454;
}
.sophHeader {
background-color: #ded9d9;
font-weight: bold;
color: #545454;
}
.sophLink
{
color:#1626ff;
}
.btnSophie
{
background-image: linear-gradient(#00a1fe 0%, #5d9afd 30%, #1626ff 80%, #1f15e1 100%);
color:white
}
.btnSophie:hover
{
background-image: linear-gradient(#b8bcf2 0%, #babbfc 30%, #8c86fa 80%, #969fff 100%);
color: white
}
.collapsible {
background-color: #dedede;
color: white;
cursor: pointer;
padding: 10px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.active, .collapsible:hover {
background-color: #f1f1f1;
}
.collapsible:after {
content: '+';
color: white;
font-weight: bold;
float: right;
margin-left: 5px;
}
.active:after {
content: "-";
}
.content {
padding: 0 5px;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
background-color: #5b5f66;
color: white;
}
.item-padded {
padding: 5px;
}
.flex-container {
display: flex;
justify-content: space-between;
align-items:center
}
.submenu{
display:flex;
flex-direction:column;
position: absolute;
left:0px;
top:37px;
min-width:240px;
}
</style>','Warenhuis balancer','.res.stone,.warn_90.stone,.warn.stone','sszes fa',' </a></td>
<td> <a href="','mimimalistGray','.content-border',' ','undefined','Managed to grab the page','ro_RO','parentElement','Leem per dorp','desktop','Facut de Sophie 'Shinko to Kuma'','always','#highFarm','ar_AE','234564pzEgRE','append','Iron','&screen=overview_villages&mode=prod&page=-1&','it_IT','fier per sat',' iron per village that isn't considered small, or fully built (currently ',' ','#builtOutPercentage','lowPoints','#production_table th','Switching to standard colors','</td>
<td class="sophHeader" width="10%" style="text-align:center">','Total Holz','1gyXZmt','settingsWHBalancerSophie','
Clay: ','color: red;','
<style>
.sophRowA {
background-color: #fecd00;
color: #006aa8;
}
.sophRowB {
background-color: #ffea00;
color: #006aa8;
}
.sophHeader {
background-color: #006aa8;
font-weight: bold;
color: #ffffdf;
}
.sophLink
{
color:#034166;
}
.btnSophie
{
background-image: linear-gradient(#00a1fe 0%, #5d9afd 30%, #1626ff 80%, #1f15e1 100%);
}
.btnSophie:hover
{
background-image: linear-gradient(#b8bcf2 0%, #babbfc 30%, #8c86fa 80%, #969fff 100%);
}
.collapsible {
background-color: #fecd00;
color: white;
cursor: pointer;
padding: 10px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.active, .collapsible:hover {
background-color: #ffea00;
}
.collapsible:after {
content: '+';
color: white;
font-weight: bold;
float: right;
margin-left: 5px;
}
.active:after {
content: "-";
}
.content {
padding: 0 5px;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
background-color: #5b5f66;
color: white;
}
.item-padded {
padding: 5px;
}
.flex-container {
display: flex;
justify-content: space-between;
align-items:center
}
.submenu{
display:flex;
flex-direction:column;
position: absolute;
left:0px;
top:37px;
min-width:240px;
}
</style>','class','Criado por Sophie 'Shinko to Kuma'','
</td>
<td>
<span class="res wood" style="padding-left:1em"> </span>','Gemaakt door Sophie 'Shinko to Kuma'','Current averages: ','</table></div>','combined the sendings',' Iron: ','Argila por aldeia','focus','.flex-container','match','Villaggio obiettivo','closest','div[id*='restart']','Madeira por aldeia','color: teal;','Warehouse in village ',' , ','indexOf','
</td>
<td>
<span class="res stone" style="padding-left:1em"> </span>','269889gdGqiq','.res.wood,.warn_90.wood,.warn.wood','Total wood','map_send','.res.miron,.warn_90.miron,.warn.miron',' too small for average, reducing resources, and increasing for every other village','$1.$2','Lehm pro Dorf','','Created by Sophie 'Shinko to Kuma'','stringify','warehouseCapacity','locale','Ferro per villaggio','get','Ferro',' ','</td>
</tr>','</div>
<div id="sendResources" class="flex-container sophHeader" style="position: relative">
<button class="sophRowA collapsible" style="width: 250px;min-width: 230px;">Open settings menu</button>
<div class="content submenu" style="width: 500px;height:500px;z-index:99999">
<form id="settings">
<table style="border-spacing: 2px;">
<tr>
<td style="padding: 6px;">
<label for="isMinting">Ignore settings</label></td><td style="padding: 6px;"><input type="checkbox" name="isMinting"></td></tr>
<tr>
<td style="padding: 6px;">
<label for="lowPoints">Prioritise</label></td><td style="padding: 6px;"><input type="range" min="0" max="13000" step="10" value="','Hout','440272AAYtLr','highFarm','Grabbed transport page','error','<div class='sophRowA' style='width:800px' ><table style='width:100%'><tr class="sophHeader"><td>Village</td><td>Points</td><td>Merchants left</td><td colspan="3">Resources</td><td>WH capacity</td></tr>','999','Farm almost full (','</td>
</tr>
<tr>
<td class="sophHeader" width="25%" style="text-align:center">',':button[id^="building"]','Filled up the sendings','>
<td>','Argilla','stone','
</td>
<td style="text-align:right">','Total argila','round','length','<span class="icon header wood"> </span></td>
<td width="50" style="text-align:center">','availableMerchants','#needsMorePercentage','#sendResources','Argila per sat',' ','span.bonus_icon_33','floor','&screen=overview_villages&mode=trader&type=inc&page=-1&type=inc','Total de argila','trim','#settings','Echilibrare resurse','
<style>
.sophRowA {
background-color: #F4E4BC;
color: black;
}
.sophRowB {
background-color: #fff5da;
color: black;
}
.sophHeader {
background-color: #c6a768;
font-weight: bold;
color: #803000;
}
.sophLink
{
color:#803000;
}
.btnSophie
{
linear-gradient(to bottom, #947a62 0%,#7b5c3d 22%,#6c4824 30%,#6c4824 100%)
color:white
}
.btnSophie:hover
{
linear-gradient(to bottom, #b69471 0%,#9f764d 22%,#8f6133 30%,#6c4d2d 100%);
color: white
}
.collapsible {
background-color: #F4E4BC;
color: white;
cursor: pointer;
padding: 10px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.active, .collapsible:hover {
background-color: #fff5da;
}
.collapsible:after {
content: '+';
color: white;
font-weight: bold;
float: right;
margin-left: 5px;
}
.active:after {
content: "-";
}
.content {
padding: 0 5px;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
background-color: #5b5f66;
color: white;
}
.item-padded {
padding: 5px;
}
.flex-container {
display: flex;
justify-content: space-between;
align-items:center
}
.submenu{
display:flex;
flex-direction:column;
position: absolute;
left:0px;
top:37px;
min-width:240px;
}
</style>','Oorsprong',' Clay in WH: ','','Wood','Send resources','219524Zcohya','message','replace','Lehm','Done with this cycle','Wood per village','push','Excess is bigger than current available resources, setting it to current available','</td>
<td class="sophHeader" width="5%" style="text-align:center">','checked','Premium-Depot','Premium Beurs','1HHbTIK','</a> </td>
<td width="50" style="text-align:center">','toggle','' class='sophRowB'','sort','disabled','</td>
<td>','Ferro totale','innerHTML','isMinting','pink','</td>
<td>Actual ironaverage after correction: ','</font>
</td>
</tr>
</tbody>
</table>
','remove','% of WH capacity','points','%c-----------------------------------------------------------------------------------------','','36996JzxCuH','test','Argila','Average is higher than capacity, reduce','#tableSend tr',' ','
<style>
.sophRowA {
background-color: #FEC5E5;
color: #E11584;
}
.sophRowB {
background-color: #fcd4eb;
color: #E11584;
}
.sophHeader {
background-color: #F699CD;
font-weight: bold;
color: #E11584;
}
.sophLink
{
color:#7d3873;
}
.btnSophie
{
background-image: linear-gradient(#FEC5E5 0%, #FD5DA8 30%, #FF1694 80%, #E11584 100%);
}
.btnSophie:hover
{
background-image: linear-gradient(#F2B8C6 0%, #FCBACB 30%, #FA86C4 80%, #FE7F9C 100%);
}
.collapsible {
background-color: #FEC5E5;
color: white;
cursor: pointer;
padding: 10px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.active, .collapsible:hover {
background-color: #fcd4eb;
}
.collapsible:after {
content: '+';
color: white;
font-weight: bold;
float: right;
margin-left: 5px;
}
.active:after {
content: "-";
}
.content {
padding: 0 5px;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
background-color: #5b5f66;
color: white;
}
.item-padded {
padding: 5px;
}
.flex-container {
display: flex;
justify-content: space-between;
align-items:center
}
.submenu{
display:flex;
flex-direction:column;
position: absolute;
left:0px;
top:37px;
min-width:240px;
}
</style>','Premium exchange','<div id="restart">','Hout per dorp','SuccessMessage','" class="sophLink" data-toggle="tooltip" title="Wood in WH: ',' ','target','#trades_table tr','" class="slider" name="highFarm" oninput="sliderChange('builtOutPercentage',this.value)">
<output id="builtOutPercentage"></output></td></tr>
<tr>
<td style="padding: 6px;">
<label for="needsMorePercentage">WH capacity priority village: </label></td><td style="padding: 6px;"><input type="range" min="0" max="1" step="0.01" value="','</td>
<td>',' needs help growing, setting required resources to ','post','.res.iron,.warn_90.iron,.warn.iron','#building','iron','pt_BR','System','sszes vas','' class='sophRowA'','nl_NL','show',' 'Shinko to Kuma'','Legno totale','1lXJYbb','Warehouse balancer',' ','index','Afstand','class='sophRowA'','done','wood','</td>
</tr>
<tr class='sophRowA'>
<td>Actual woodaverage after correction: ','https://v.tylercamp.me/hc/WHBalancerSophie','.btn-pp',' ','source','attr','width','Villaggio di origine','hypot','Total de ferro','farmSpaceTotal','Argilla totale',' ','children',') in ','dataset','Rohstoff vrschicke','nextElementSibling','</td>
<td>Actual clayaverage after correction: ','Bilancia risorse','Legno','totalMerchants','Reached list creation','Tvolsg','Systeem','Agyag/falu','Changing to TW theme','306363ogPRWI','','scrollHeight','game.php?t=','addings rows to be sent to the res at the target','innerText','prop','.mheader.ressources','3dKTWwT','Creato da Sophie 'Shinko to Kuma'','Clay','#mobile_header','Cllloms','href','log','Totaal hout','style','#contentContainer','Clay per village','Distanza','mobile','farmSpaceUsed','market','hu_HU','<span class="icon header iron"> </span></td>
<td style="text-align:center"><input type="button" class="btn btnSophie" id="building" tabindex="-1" value="','builtOutPercentage','.icon.mheader','#progress','split',', ironadjustement: ','Finished','Is','prepend','input[name='isMinting']','" class="slider" name="needsMorePercentage" oninput="sliderChange('needsMorePercentage',this.value)">
<output id="needsMorePercentage"></output></td></tr>
<tr>
<td style="padding: 6px;">
<input type="button" class="btn evt-confirm-btn btn-confirm-yes" value="Save" onclick="saveSettings();"/></td></tr>
<td colspan="2" style="padding: 6px;">
<p style="padding:5px"><font size="1">Script by Sophie "Shinko to Kuma"</font></p>
</td>
</table>
</form>
</div>
</div>
<table id="tableSend" width="100%" class="sophHeader">
<tbody id="appendHere">
<tr>
<td class="sophHeader" colspan=7 width=550 style="text-align:center" >','villageID','
<div id="progressbar" style="width: 100%;
background-color: #36393f;"><div id="progress" style="width: 0%;
height: 35px;
background-color: #4CAF50;
text-align: center;
line-height: 32px;
color: black;"></div>
</div>','Manda risorse','Szrmazsi hely','needsMorePercentage','Madeira','Doel','splice','" onclick="sendResource(','textContent','Total clay','Vas/falu','Lemn per sat','adding rows to be received to the res at the target',' height="40">
<td><a href="','<div id='aftermath'><center>
<button type="button" class="btn btnSophie" name="showStats" style="padding: 10px;width: 300px" onclick="showStats()">Show excess/shortage</button>
<button type="button" class="btn btnSophie" name="showEndResult" style="padding: 10px;width: 300px" onclick="resAfterBalance()">Show result of balance</button>
</center></div>','div[id*='sendResources']','val','en_DK',' are considered finished), to spread evenly. Clearly, that is not a good idea','<div class='sophRowA' style='width:800px' ><center><h1>Shortages:</h1><table class='sophHeader'><tr class='sophHeader'><td>Village name</td><td>Res</td></tr>','Source village','Changing to gray theme','content',' Sophie 'Shinko to Kuma'','Distance','#highPoints',' ','#mobileHeader','Lemn','of the list',', or village points are higher than the required setting: ','adding res underway to target','fail','url','keys','sszes agyag','serializeArray','Fa/falu','click',')"></td>
</tr>'];var _0xda6a=function(_0x4da31b,_0x1ae7f2){_0x4da31b=_0x4da31b-0x19d;var _0x5092a3=_0x5092[_0x4da31b];return _0x5092a3;};var _0x176e7d=_0xda6a;(function(_0x480329,_0x4b1107){var _0x3c0e42=_0xda6a;while(!![]){try{var _0x176e29=parseInt(_0x3c0e42(0x2c3))*-parseInt(_0x3c0e42(0x226))+parseInt(_0x3c0e42(0x2dd))*parseInt(_0x3c0e42(0x1d3))+-parseInt(_0x3c0e42(0x1c7))+-parseInt(_0x3c0e42(0x2b5))+-parseInt(_0x3c0e42(0x203))*parseInt(_0x3c0e42(0x1e5))+parseInt(_0x3c0e42(0x27b))*parseInt(_0x3c0e42(0x22e))+parseInt(_0x3c0e42(0x1a3));if(_0x176e29===_0x4b1107)break;else _0x480329['push'](_0x480329['shift']());}catch(_0x2e5142){_0x480329['push'](_0x480329['shift']());}}}(_0x5092,0x28b98));_0x575973:console[_0x176e7d(0x234)]('Latest update: 30 April 2020 - Sophie 'Shinko to Kuma'');$[_0x176e7d(0x1f7)](_0x176e7d(0x20c));var testPage,is_mobile=!!navigator['userAgent'][_0x176e7d(0x2d3)](/iphone|android|blackberry/ig)||![],warehouseCapacity=[],allWoodTotals=[],allClayTotals=[],allIronTotals=[],availableMerchants=[],totalMerchants=[],farmSpaceUsed=[],farmSpaceTotal=[],villagePoints=[],villagesData=[],villageID=[],allWoodObjects,allClayObjects,allIronObjects,allVillages,totalsAndAverages='',incomingRes={},totalWood,totalStone,totalIron,merchantOrders=[],excessResources=[],shortageResources=[],links=[],cleanLinks=[],stillShortage=[],stillExcess=[];function init(){warehouseCapacity=[],allWoodTotals=[],allClayTotals=[],allIronTotals=[],availableMerchants=[],totalMerchants=[],farmSpaceUsed=[],farmSpaceTotal=[],villagePoints=[],villagesData=[],villageID=[],(allWoodObjects,allClayObjects,allIronObjects,allVillages),totalsAndAverages='',incomingRes={},(totalWood,totalStone,totalIron),merchantOrders=[],excessResources=[],shortageResources=[],links=[],cleanLinks=[],stillShortage=[],stillExcess=[];}function cleanup(){warehouseCapacity=[],allWoodTotals=[],allClayTotals=[],allIronTotals=[],availableMerchants=[],totalMerchants=[],farmSpaceUsed=[],farmSpaceTotal=[],villagePoints=[],villageID=[],(allWoodObjects,allClayObjects,allIronObjects,allVillages),incomingRes={},merchantOrders=[],links=[],cleanLinks=[];}var langShinko=[_0x176e7d(0x204),_0x176e7d(0x25e),_0x176e7d(0x27a),_0x176e7d(0x262),_0x176e7d(0x1c5),_0x176e7d(0x230),_0x176e7d(0x2b7),_0x176e7d(0x1c6),_0x176e7d(0x2e6),_0x176e7d(0x2df),'Total clay',_0x176e7d(0x282),'Wood per village','Clay per village',_0x176e7d(0x29d),_0x176e7d(0x1ec),_0x176e7d(0x1fc)];game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x25b)&&(langShinko=[_0x176e7d(0x204),_0x176e7d(0x25e),_0x176e7d(0x27a),_0x176e7d(0x262),_0x176e7d(0x1c5),_0x176e7d(0x230),_0x176e7d(0x2b7),'Send resources',_0x176e7d(0x2e6),_0x176e7d(0x2df),_0x176e7d(0x253),_0x176e7d(0x282),_0x176e7d(0x1cc),_0x176e7d(0x238),_0x176e7d(0x29d),_0x176e7d(0x1ec),_0x176e7d(0x1fc)]);game_data[_0x176e7d(0x2e9)]=='de_CH'&&(langShinko=[_0x176e7d(0x204),_0x176e7d(0x29f),_0x176e7d(0x28d),'Distanz','Holz',_0x176e7d(0x1ca),_0x176e7d(0x245),_0x176e7d(0x21b),_0x176e7d(0x2e6),_0x176e7d(0x2c2),'Total Lehm','Total Is','Holz pro Dorf',_0x176e7d(0x2e4),_0x176e7d(0x279),_0x176e7d(0x1d1),_0x176e7d(0x1fc)]);game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x2ad)&&(langShinko=[_0x176e7d(0x1c0),'Sat Sursa','Sat Tinta','Distanta',_0x176e7d(0x266),_0x176e7d(0x1e7),'Fier','Trimite resurse',_0x176e7d(0x2b1),_0x176e7d(0x277),_0x176e7d(0x1b1),_0x176e7d(0x290),_0x176e7d(0x255),_0x176e7d(0x1b8),_0x176e7d(0x2ba),'Schimb Premium','Sistem']);game_data[_0x176e7d(0x2e9)]=='el_GR'&&(langShinko=['Warehouse balancer',_0x176e7d(0x2bc),' ',_0x176e7d(0x274),_0x176e7d(0x1c4),_0x176e7d(0x19f),_0x176e7d(0x1e4),_0x176e7d(0x217),_0x176e7d(0x261),_0x176e7d(0x264),' ',' ',' ',_0x176e7d(0x1f1),_0x176e7d(0x285),_0x176e7d(0x1ec),_0x176e7d(0x1fc)]);game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x1ff)&&(langShinko=[_0x176e7d(0x2a4),_0x176e7d(0x1c2),_0x176e7d(0x24f),_0x176e7d(0x207),_0x176e7d(0x1a2),_0x176e7d(0x28c),'Ijzer','Verstuur grondstoffen',_0x176e7d(0x2cb),_0x176e7d(0x235),'Totaal leem','Totaal ijzer',_0x176e7d(0x1ee),_0x176e7d(0x2af),_0x176e7d(0x28a),_0x176e7d(0x1d2),_0x176e7d(0x223)]);game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x2b9)&&(langShinko=[_0x176e7d(0x21e),_0x176e7d(0x212),_0x176e7d(0x2d4),_0x176e7d(0x239),_0x176e7d(0x21f),_0x176e7d(0x1ae),_0x176e7d(0x19e),_0x176e7d(0x24b),_0x176e7d(0x22f),_0x176e7d(0x202),_0x176e7d(0x216),_0x176e7d(0x1da),'Legno per villaggio','Argilla per villaggio',_0x176e7d(0x2ea),'Premium exchange',_0x176e7d(0x1fc)]);game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x2b4)&&(langShinko=[_0x176e7d(0x205),_0x176e7d(0x2e5),_0x176e7d(0x28f),_0x176e7d(0x227),_0x176e7d(0x286),' ',_0x176e7d(0x2aa),_0x176e7d(0x299),_0x176e7d(0x201),_0x176e7d(0x28e),_0x176e7d(0x1ea),_0x176e7d(0x20e),_0x176e7d(0x2a0),_0x176e7d(0x1b9),' ','Premium exchange',_0x176e7d(0x1fc)]);game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x23d)&&(langShinko=['Nyersanyag kiegyenlt',_0x176e7d(0x24c),_0x176e7d(0x232),_0x176e7d(0x222),'Fa','Agyag','Vas',_0x176e7d(0x297),_0x176e7d(0x27e),_0x176e7d(0x2a6),_0x176e7d(0x26d),_0x176e7d(0x1fd),_0x176e7d(0x26f),_0x176e7d(0x224),_0x176e7d(0x254),_0x176e7d(0x1ec),'System']);game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x1fb)&&(langShinko=['Balanceador de recursos','Origem',_0x176e7d(0x281),'Distncia',_0x176e7d(0x24e),_0x176e7d(0x1e7),_0x176e7d(0x19e),'Enviar recursos',_0x176e7d(0x2c9),'Total de madeira',_0x176e7d(0x1bd),_0x176e7d(0x214),_0x176e7d(0x2d7),_0x176e7d(0x2d0),'Ferro por aldeia',_0x176e7d(0x291),'Sistema']);if(typeof colors==_0x176e7d(0x2ab))cssClassesSophie='
<style>
.sophRowA {
background-color: #32353b;
color: white;
}
.sophRowB {
background-color: #36393f;
color: white;
}
.sophHeader {
background-color: #202225;
font-weight: bold;
color: white;
}
.sophLink
{
color:#40D0E0;
}
.btnSophie
{
background-image: linear-gradient(#6e7178 0%, #36393f 30%, #202225 80%, black 100%);
}
.btnSophie:hover
{
background-image: linear-gradient(#7b7e85 0%, #40444a 30%, #393c40 80%, #171717 100%);
}
.collapsible {
background-color: #32353b;
color: white;
cursor: pointer;
padding: 10px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.active, .collapsible:hover {
background-color: #36393f;
}
.collapsible:after {
content: '+';
color: white;
font-weight: bold;
float: right;
margin-left: 5px;
}
.active:after {
content: "-";
}
.content {
padding: 0 5px;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
background-color: #5b5f66;
color: white;
}
.item-padded {
padding: 5px;
}
.flex-container {
display: flex;
justify-content: space-between;
align-items:center
}
.submenu{
display:flex;
flex-direction:column;
position: absolute;
left:0px;
top:37px;
min-width:240px;
}
</style>';else{if(colors==_0x176e7d(0x1dd))cssClassesSophie=_0x176e7d(0x1eb);else{if(colors=='swedish')cssClassesSophie=_0x176e7d(0x2c7);else{if(colors==_0x176e7d(0x2a8))console[_0x176e7d(0x234)](_0x176e7d(0x25f)),cssClassesSophie=_0x176e7d(0x2a3);else colors=='TW'?(console[_0x176e7d(0x234)](_0x176e7d(0x225)),cssClassesSophie=_0x176e7d(0x1c1)):(console[_0x176e7d(0x234)](_0x176e7d(0x2c0)),cssClassesSophie='
<style>
.sophRowA {
background-color: #32353b;
color: white;
}
.sophRowB {
background-color: #36393f;
color: white;
}
.sophHeader {
background-color: #202225;
font-weight: bold;
color: white;
}
.sophLink
{
color:#40D0E0;
}
.btnSophie
{
background-image: linear-gradient(#6e7178 0%, #36393f 30%, #202225 80%, black 100%);
}
.btnSophie:hover
{
background-image: linear-gradient(#7b7e85 0%, #40444a 30%, #393c40 80%, #171717 100%);
}
.collapsible {
background-color: #32353b;
color: white;
cursor: pointer;
padding: 10px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.active, .collapsible:hover {
background-color: #36393f;
}
.collapsible:after {
content: '+';
color: white;
font-weight: bold;
float: right;
margin-left: 5px;
}
.active:after {
content: "-";
}
.content {
padding: 0 5px;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
background-color: #5b5f66;
color: white;
}
.item-padded {
padding: 5px;
}
.flex-container {
display: flex;
justify-content: space-between;
align-items:center
}
.submenu{
display:flex;
flex-direction:column;
position: absolute;
left:0px;
top:37px;
min-width:240px;
}
</style>');}}}$(_0x176e7d(0x237))['eq'](0x0)[_0x176e7d(0x246)](cssClassesSophie),$('#mobileHeader')['eq'](0x0)[_0x176e7d(0x246)](cssClassesSophie);if(localStorage[_0x176e7d(0x288)](_0x176e7d(0x2c4))!=null){tempArray=JSON[_0x176e7d(0x27c)](localStorage['getItem'](_0x176e7d(0x2c4)));var settings={};settings[_0x176e7d(0x1dc)]=tempArray[_0x176e7d(0x1dc)],settings[_0x176e7d(0x2be)]=parseInt(tempArray[_0x176e7d(0x2be)]),settings[_0x176e7d(0x27d)]=parseInt(tempArray['highPoints']),settings[_0x176e7d(0x1a4)]=parseInt(tempArray[_0x176e7d(0x1a4)]),settings['builtOutPercentage']=parseFloat(tempArray['builtOutPercentage']),settings[_0x176e7d(0x24d)]=parseFloat(tempArray['needsMorePercentage']);}else{if(typeof settings==_0x176e7d(0x2ab))var settings={'isMinting':![],'highPoints':0x1f40,'highFarm':0x59d8,'lowPoints':0xbb8,'builtOutPercentage':0.25,'needsMorePercentage':0.85};localStorage[_0x176e7d(0x276)](_0x176e7d(0x2c4),JSON[_0x176e7d(0x2e7)](settings));}if(!settings[_0x176e7d(0x1dc)])settings[_0x176e7d(0x1dc)]=![];if(!settings[_0x176e7d(0x1a4)])settings[_0x176e7d(0x1a4)]=0x1869f;if(!settings[_0x176e7d(0x27d)])settings[_0x176e7d(0x27d)]=0x2ee0;if(!settings[_0x176e7d(0x2be)])settings['lowPoints']=0x1;if(!settings['builtOutPercentage'])settings[_0x176e7d(0x23f)]=0.2;if(!settings[_0x176e7d(0x24d)])settings[_0x176e7d(0x24d)]=0.85;if(settings['builtOutPercentage']>0x1)settings[_0x176e7d(0x23f)]=0.95;if(settings[_0x176e7d(0x24d)]>0x1)settings[_0x176e7d(0x24d)]=0.95;if(settings['builtOutPercentage']<0x0)settings[_0x176e7d(0x23f)]=0.1;if(settings[_0x176e7d(0x24d)]<0x0)settings[_0x176e7d(0x24d)]=0.1;$(_0x176e7d(0x1b7))[0x0]&&($(_0x176e7d(0x1b7))[0x0][_0x176e7d(0x1e0)](),$('#totals')[0x0][_0x176e7d(0x1e0)]());game_data[_0x176e7d(0x2a1)]['sitter']>0x0?(URLIncRes=_0x176e7d(0x229)+game_data[_0x176e7d(0x2a1)]['id']+_0x176e7d(0x1bc),URLProd=_0x176e7d(0x229)+game_data[_0x176e7d(0x2a1)]['id']+_0x176e7d(0x2b8)):(URLIncRes='game.php?&screen=overview_villages&mode=trader&type=inc&page=-1&type=inc',URLProd='game.php?&screen=overview_villages&mode=prod&page=-1&');function sendResource(_0x1c0e09,_0x40e63b,_0x170570,_0x36c808,_0x14eae1,_0x23f74a){var _0x306d21=_0x176e7d;$('#'+_0x23f74a)[0x0]['remove']();var _0x5ebcfd={'target_id':_0x40e63b,'wood':_0x170570,'stone':_0x36c808,'iron':_0x14eae1};TribalWars[_0x306d21(0x1f7)](_0x306d21(0x23c),{'ajaxaction':_0x306d21(0x2e0),'village':_0x1c0e09},_0x5ebcfd,function(_0x1a51f6){var _0x55b1a7=_0x306d21;UI[_0x55b1a7(0x1ef)](_0x1a51f6[_0x55b1a7(0x1c8)]),console[_0x55b1a7(0x234)](_0x1a51f6[_0x55b1a7(0x1c8)]),$(_0x55b1a7(0x1ab))[0x0][_0x55b1a7(0x2d1)]();},!0x1),$(_0x306d21(0x1ab))[_0x306d21(0x22c)](_0x306d21(0x1d8),!![]),setTimeout(function(){var _0x14c933=_0x306d21;$(_0x14c933(0x1ab))[_0x14c933(0x22c)]('disabled',![]),console[_0x14c933(0x234)]('undisabled buttons');if($(_0x14c933(0x1e9))[_0x14c933(0x1b3)]<=0x2){alert('Finished sending!');$('.btn-pp')[_0x14c933(0x1b3)]>0x0&&$(_0x14c933(0x20d))[_0x14c933(0x1e0)]();throw Error('Done.');}$(_0x14c933(0x1ab))[0x0][_0x14c933(0x2d1)]();},0x96);}function displayEverything(){$['get'](URLIncRes,function(){var _0x2dc113=_0xda6a;console[_0x2dc113(0x234)](_0x2dc113(0x1a5));})['done'](function(_0x700152){var _0x533b7b=_0xda6a,_0x572325=$(_0x700152);for(var _0x471803=0x1;_0x471803<_0x572325[_0x533b7b(0x272)]('#trades_table tr')[_0x533b7b(0x1b3)]-0x1;_0x471803++){var _0x5cce02={},_0x566bc2;if($(_0x533b7b(0x265))[0x0]){console[_0x533b7b(0x234)](_0x533b7b(0x23a));let _0x41a93b=_0x572325[_0x533b7b(0x272)](_0x533b7b(0x1f3))[_0x471803][_0x533b7b(0x218)][0x5][_0x533b7b(0x218)][0x1][_0x533b7b(0x218)];for(let _0x214b1f=0x0;_0x214b1f<Object[_0x533b7b(0x26c)](_0x41a93b)[_0x533b7b(0x1b3)];_0x214b1f++){if(_0x572325['find'](_0x533b7b(0x1f3))[0x1][_0x533b7b(0x218)][0x2]['innerText']!=langShinko[0x10]){let _0x442f52=$(_0x41a93b[_0x214b1f]),_0x1bd9c9=_0x442f52[_0x533b7b(0x272)](_0x533b7b(0x240))[_0x533b7b(0x210)]('class')['split'](' '),_0x1fb1ab=_0x1bd9c9[_0x1bd9c9[_0x533b7b(0x1b3)]-0x1],_0xef6f35=_0x442f52['text']()[_0x533b7b(0x1c9)](/[^\d]/g,'');_0x5cce02[_0x1fb1ab]=_0xef6f35,_0x566bc2=_0x572325['find'](_0x533b7b(0x1f3))[_0x471803][_0x533b7b(0x218)][0x3][_0x533b7b(0x218)][0x2][_0x533b7b(0x233)][_0x533b7b(0x2d3)](/id=(\d*)/)[0x1];}}}else{console[_0x533b7b(0x234)](_0x533b7b(0x2b0));let _0x397fa4=_0x572325[_0x533b7b(0x272)]('#trades_table tr')[_0x471803]['children'][0x8][_0x533b7b(0x218)];console[_0x533b7b(0x234)](Object['keys'](_0x397fa4)[_0x533b7b(0x1b3)]);for(let _0xc19832=0x0;_0xc19832<Object[_0x533b7b(0x26c)](_0x397fa4)['length'];_0xc19832++){let _0x1f68bb=$(_0x397fa4[_0xc19832]);var _0x1bc073;_0x1f68bb[0x0]['innerHTML'][_0x533b7b(0x2db)]('header')>-0x1?_0x1bc073=_0x1f68bb[_0x533b7b(0x272)]('.icon.header')[_0x533b7b(0x210)](_0x533b7b(0x2c8))['split'](' '):_0x1bc073=_0x1f68bb[_0x533b7b(0x210)](_0x533b7b(0x2c8))[_0x533b7b(0x242)](' ');if(_0x572325['find']('#trades_table tr')[0x1][_0x533b7b(0x218)][0x3][_0x533b7b(0x22b)]!=langShinko[0xf]){let _0x3c7400=_0x1bc073[_0x1bc073[_0x533b7b(0x1b3)]-0x1];console[_0x533b7b(0x234)](_0x3c7400);let _0x449e85=_0x1f68bb['text']()[_0x533b7b(0x1c9)](/[^\d]/g,'');console[_0x533b7b(0x234)](_0x449e85),_0x5cce02[_0x3c7400]=_0x449e85,_0x566bc2=_0x572325[_0x533b7b(0x272)]('#trades_table tr')[_0x471803][_0x533b7b(0x218)][0x4][_0x533b7b(0x218)][0x0][_0x533b7b(0x233)][_0x533b7b(0x2d3)](/id=(\d*)/)[0x1];}}}_0x572325[_0x533b7b(0x272)](_0x533b7b(0x1f3))[0x1]['children'][0x3][_0x533b7b(0x22b)]!=langShinko[0xf]&&_0x572325[_0x533b7b(0x272)](_0x533b7b(0x1f3))[0x1][_0x533b7b(0x218)][0x2][_0x533b7b(0x22b)]!=langShinko[0x10]&&(incomingRes[_0x566bc2]==undefined&&(incomingRes[_0x566bc2]={'wood':0x0,'stone':0x0,'iron':0x0}),_0x5cce02['wood']!=undefined&&(incomingRes[_0x566bc2][_0x533b7b(0x20a)]+=parseInt(_0x5cce02[_0x533b7b(0x20a)])),_0x5cce02[_0x533b7b(0x1af)]!=undefined&&(incomingRes[_0x566bc2]['stone']+=parseInt(_0x5cce02[_0x533b7b(0x1af)])),_0x5cce02[_0x533b7b(0x1fa)]!=undefined&&(incomingRes[_0x566bc2][_0x533b7b(0x1fa)]+=parseInt(_0x5cce02[_0x533b7b(0x1fa)])));}$[_0x533b7b(0x19d)](URLProd,function(){var _0x460a15=_0x533b7b;console[_0x460a15(0x234)](_0x460a15(0x2ac));})[_0x533b7b(0x209)](function(_0xd9376a){var _0x478b32=_0x533b7b;testPage=_0xd9376a,uniVillage=$(_0xd9376a)[_0x478b32(0x272)](_0x478b32(0x1ba));uniVillage[_0x478b32(0x1b3)]>0x0?uniRow=uniVillage[_0x478b32(0x2d5)]('tr')[_0x478b32(0x206)]()-0x1:uniRow=-0x1;if($('#mobileHeader')[0x0]){console[_0x478b32(0x234)](_0x478b32(0x23a)),allWoodObjects=$(_0xd9376a)['find']('.res.mwood,.warn_90.mwood,.warn.mwood'),allClayObjects=$(_0xd9376a)[_0x478b32(0x272)]('.res.mstone,.warn_90.mstone,.warn.mstone'),allIronObjects=$(_0xd9376a)[_0x478b32(0x272)](_0x478b32(0x2e1)),allWarehouses=$(_0xd9376a)[_0x478b32(0x272)](_0x478b32(0x22d)),allVillages=$(_0xd9376a)[_0x478b32(0x272)]('.quickedit-vn'),allFarms=$(_0xd9376a)[_0x478b32(0x272)]('.header.population'),allMerchants=$(_0xd9376a)[_0x478b32(0x272)]('#production_table a[href*="market"]'),productionTable=$(_0xd9376a)['find'](_0x478b32(0x2bf));uniRow>=0x0&&(allVillages[_0x478b32(0x250)](uniRow,0x1),allWoodObjects[_0x478b32(0x250)](uniRow,0x1),allClayObjects[_0x478b32(0x250)](uniRow,0x1),allIronObjects[_0x478b32(0x250)](uniRow,0x1),allWarehouses[_0x478b32(0x250)](uniRow,0x1),allFarms[_0x478b32(0x250)](uniRow,0x1),allMerchants[_0x478b32(0x250)](uniRow,0x1),productionTable[_0x478b32(0x250)](uniRow,0x1));for(var _0x1f6699=0x0;_0x1f6699<allWoodObjects[_0x478b32(0x1b3)];_0x1f6699++){n=allWoodObjects[_0x1f6699][_0x478b32(0x252)],n=n[_0x478b32(0x1c9)](/\./g,'')[_0x478b32(0x1c9)](',',''),allWoodTotals[_0x478b32(0x1cd)](n),n=allClayObjects[_0x1f6699][_0x478b32(0x252)],n=n[_0x478b32(0x1c9)](/\./g,'')[_0x478b32(0x1c9)](',',''),allClayTotals[_0x478b32(0x1cd)](n),n=allIronObjects[_0x1f6699]['textContent'],n=n[_0x478b32(0x1c9)](/\./g,'')['replace'](',',''),allIronTotals['push'](n);}for(let _0x3fb0c1=0x0;_0x3fb0c1<allVillages[_0x478b32(0x1b3)];_0x3fb0c1++){farmSpaceUsed[_0x478b32(0x1cd)](allFarms[_0x3fb0c1][_0x478b32(0x2ae)][_0x478b32(0x22b)][_0x478b32(0x2d3)](/(\d*)\/(\d*)/)[0x1]),farmSpaceTotal['push'](allFarms[_0x3fb0c1][_0x478b32(0x2ae)][_0x478b32(0x22b)][_0x478b32(0x2d3)](/(\d*)\/(\d*)/)[0x2]),warehouseCapacity[_0x478b32(0x1cd)](allWarehouses[_0x3fb0c1][_0x478b32(0x2ae)][_0x478b32(0x22b)]),availableMerchants[_0x478b32(0x1cd)](allMerchants[_0x3fb0c1][_0x478b32(0x22b)]),totalMerchants[_0x478b32(0x1cd)](_0x478b32(0x1a8)),villagePoints[_0x478b32(0x1cd)](productionTable[_0x3fb0c1*0x2+0x1]['innerText'][_0x478b32(0x1c9)](/\./g,'')[_0x478b32(0x1c9)](',',''));}}else{console[_0x478b32(0x234)](_0x478b32(0x2b0)),allWoodObjects=$(_0xd9376a)[_0x478b32(0x272)](_0x478b32(0x2de)),allClayObjects=$(_0xd9376a)[_0x478b32(0x272)](_0x478b32(0x2a5)),allIronObjects=$(_0xd9376a)[_0x478b32(0x272)](_0x478b32(0x1f8)),allVillages=$(_0xd9376a)[_0x478b32(0x272)]('.quickedit-vn');uniRow>=0x0&&(allVillages['splice'](uniRow,0x1),allWoodObjects[_0x478b32(0x250)](uniRow,0x1),allClayObjects[_0x478b32(0x250)](uniRow,0x1),allIronObjects['splice'](uniRow,0x1));for(let _0x38f4e0=0x0;_0x38f4e0<allWoodObjects[_0x478b32(0x1b3)];_0x38f4e0++){n=allWoodObjects[_0x38f4e0]['textContent'],n=n[_0x478b32(0x1c9)](/\./g,'')['replace'](',',''),allWoodTotals[_0x478b32(0x1cd)](n),n=allClayObjects[_0x38f4e0][_0x478b32(0x252)],n=n[_0x478b32(0x1c9)](/\./g,'')[_0x478b32(0x1c9)](',',''),allClayTotals[_0x478b32(0x1cd)](n),n=allIronObjects[_0x38f4e0][_0x478b32(0x252)],n=n['replace'](/\./g,'')[_0x478b32(0x1c9)](',',''),allIronTotals[_0x478b32(0x1cd)](n);}for(let _0xe15437=0x0;_0xe15437<allVillages['length'];_0xe15437++){warehouseCapacity[_0x478b32(0x1cd)](allIronObjects[_0xe15437][_0x478b32(0x2ae)][_0x478b32(0x21c)][_0x478b32(0x1db)]),availableMerchants[_0x478b32(0x1cd)](allIronObjects[_0xe15437][_0x478b32(0x2ae)][_0x478b32(0x21c)][_0x478b32(0x21c)][_0x478b32(0x22b)][_0x478b32(0x2d3)](/(\d*)\/(\d*)/)[0x1]),totalMerchants['push'](allIronObjects[_0xe15437][_0x478b32(0x2ae)][_0x478b32(0x21c)]['nextElementSibling'][_0x478b32(0x22b)][_0x478b32(0x2d3)](/(\d*)\/(\d*)/)[0x2]),farmSpaceUsed[_0x478b32(0x1cd)](allIronObjects[_0xe15437]['parentElement']['nextElementSibling']['nextElementSibling'][_0x478b32(0x21c)][_0x478b32(0x22b)]['match'](/(\d*)\/(\d*)/)[0x1]),farmSpaceTotal[_0x478b32(0x1cd)](allIronObjects[_0xe15437]['parentElement'][_0x478b32(0x21c)][_0x478b32(0x21c)][_0x478b32(0x21c)][_0x478b32(0x22b)][_0x478b32(0x2d3)](/(\d*)\/(\d*)/)[0x2]),villagePoints[_0x478b32(0x1cd)](allWoodObjects[_0xe15437][_0x478b32(0x2ae)][_0x478b32(0x2a2)][_0x478b32(0x22b)][_0x478b32(0x1c9)](/\./g,'')[_0x478b32(0x1c9)](',',''));}}for(let _0x46d14f=0x0;_0x46d14f<allVillages[_0x478b32(0x1b3)];_0x46d14f++){villagesData['push']({'id':allVillages[_0x46d14f][_0x478b32(0x21a)]['id'],'points':villagePoints[_0x46d14f],'url':allVillages[_0x46d14f]['children'][0x0][_0x478b32(0x218)][0x0][_0x478b32(0x233)],'name':allVillages[_0x46d14f][_0x478b32(0x22b)][_0x478b32(0x1be)](),'wood':allWoodTotals[_0x46d14f],'stone':allClayTotals[_0x46d14f],'iron':allIronTotals[_0x46d14f],'availableMerchants':availableMerchants[_0x46d14f],'totalMerchants':totalMerchants[_0x46d14f],'warehouseCapacity':warehouseCapacity[_0x46d14f],'farmSpaceUsed':farmSpaceUsed[_0x46d14f],'farmSpaceTotal':farmSpaceTotal[_0x46d14f]});}villagesData[_0x478b32(0x1d7)]((_0x2185ed,_0x58b71f)=>parseInt(_0x2185ed['points'])<parseInt(_0x58b71f[_0x478b32(0x1e2)])?0x1:-0x1),totalWood=0x0,totalStone=0x0,totalIron=0x0;for(let _0x2f437d in allWoodTotals){totalWood+=parseInt(allWoodTotals[_0x2f437d]);}for(let _0x2852ff in allClayTotals){totalStone+=parseInt(allClayTotals[_0x2852ff]);}for(let _0x4b8254 in allIronTotals){totalIron+=parseInt(allIronTotals[_0x4b8254]);}for(let _0x45233d=0x0;_0x45233d<Object[_0x478b32(0x26c)](incomingRes)[_0x478b32(0x1b3)];_0x45233d++){totalWood+=incomingRes[Object['keys'](incomingRes)[_0x45233d]][_0x478b32(0x20a)],totalStone+=incomingRes[Object['keys'](incomingRes)[_0x45233d]]['stone'],totalIron+=incomingRes[Object[_0x478b32(0x26c)](incomingRes)[_0x45233d]][_0x478b32(0x1fa)];}woodAverage=Math[_0x478b32(0x1bb)](totalWood/warehouseCapacity['length']),stoneAverage=Math[_0x478b32(0x1bb)](totalStone/warehouseCapacity[_0x478b32(0x1b3)]),ironAverage=Math[_0x478b32(0x1bb)](totalIron/warehouseCapacity['length']);if(settings[_0x478b32(0x1dc)]==![]){actualWoodAverage=woodAverage,actualStoneAverage=stoneAverage,actualIronAverage=ironAverage,consideredBuiltOut=0x0,actualTotalWood=totalWood,actualTotalStone=totalStone,actualTotalIron=totalIron,actualWHCountNeedsBalancingWood=warehouseCapacity[_0x478b32(0x1b3)],actualWHCountNeedsBalancingStone=warehouseCapacity[_0x478b32(0x1b3)],actualWHCountNeedsBalancingIron=warehouseCapacity[_0x478b32(0x1b3)];for(let _0x4c8217=0x0;_0x4c8217<warehouseCapacity[_0x478b32(0x1b3)];_0x4c8217++){actualWoodAverage=Math[_0x478b32(0x1bb)](actualTotalWood/actualWHCountNeedsBalancingWood),actualStoneAverage=Math[_0x478b32(0x1bb)](actualTotalStone/actualWHCountNeedsBalancingStone),actualIronAverage=Math[_0x478b32(0x1bb)](actualTotalIron/actualWHCountNeedsBalancingIron),warehouseCapacity[_0x4c8217]<actualWoodAverage&&(console[_0x478b32(0x234)](_0x478b32(0x2d9)+_0x4c8217+_0x478b32(0x2e2)),actualTotalWood-=actualWoodAverage-warehouseCapacity[_0x4c8217]*settings[_0x478b32(0x24d)],actualWHCountNeedsBalancingWood--),warehouseCapacity[_0x4c8217]<actualStoneAverage&&(console[_0x478b32(0x234)](_0x478b32(0x2d9)+_0x4c8217+' too small for average, reducing resources, and increasing for every other village'),actualTotalStone-=actualStoneAverage-warehouseCapacity[_0x4c8217]*settings['needsMorePercentage'],actualWHCountNeedsBalancingStone--),warehouseCapacity[_0x4c8217]<actualIronAverage&&(console[_0x478b32(0x234)](_0x478b32(0x2d9)+_0x4c8217+_0x478b32(0x2e2)),actualTotalIron-=actualIronAverage-warehouseCapacity[_0x4c8217]*settings[_0x478b32(0x24d)],actualWHCountNeedsBalancingIron--),console[_0x478b32(0x234)](_0x478b32(0x2cc)+actualWoodAverage+'-'+actualIronAverage+'-'+actualStoneAverage);}(actualWoodAverage>=0x55730||actualStoneAverage>=0x55730||actualIronAverage>=0x55730)&&alert('With your current settings, you end up having a lot of excess resources that can't be assigned. Consider increasing the 'highFarm' setting to a higher value, or increasing the lowPoints value so more villages are included to have priority. This is usually due to having a lot of villages completely built out, or having very high average resources, and not a lot of villages that need resources badly.
If you just want to balance evenly, set highFarm to 99999
With the current settings, you are trying to assign an average of '+numberWithCommas(actualWoodAverage)+' wood, '+numberWithCommas(actualStoneAverage)+' clay, and '+numberWithCommas(actualIronAverage)+_0x478b32(0x2bb)+numberWithCommas(consideredBuiltOut)+_0x478b32(0x25c));}else actualWoodAverage=woodAverage,actualStoneAverage=stoneAverage,actualIronAverage=ironAverage;totalsAndAverages='<div id='totals' class='sophHeader' border=0>
<table id='totalsAndAverages' width='100%'>
<tr class='sophRowA'>
<td>'+langShinko[0x9]+': '+numberWithCommas(totalWood)+_0x478b32(0x1f5)+langShinko[0xa]+': '+numberWithCommas(totalStone)+_0x478b32(0x1f5)+langShinko[0xb]+': '+numberWithCommas(totalIron)+'</td>
</tr>
<tr class='sophRowB'>
<td>'+langShinko[0xc]+': '+numberWithCommas(woodAverage)+_0x478b32(0x1f5)+langShinko[0xd]+': '+numberWithCommas(stoneAverage)+_0x478b32(0x1f5)+langShinko[0xe]+': '+numberWithCommas(ironAverage)+_0x478b32(0x20b)+numberWithCommas(actualWoodAverage)+_0x478b32(0x21d)+numberWithCommas(actualStoneAverage)+_0x478b32(0x1de)+numberWithCommas(actualIronAverage)+_0x478b32(0x293),$(_0x478b32(0x2a9))['eq'](0x0)[_0x478b32(0x246)](_0x478b32(0x24a)),$(_0x478b32(0x265))['eq'](0x0)[_0x478b32(0x246)](_0x478b32(0x24a));for(let _0x4d4b1a=0x0;_0x4d4b1a<villagesData['length'];_0x4d4b1a++){console['log'](_0x478b32(0x1e3),_0x478b32(0x2c6)),excessResources[_0x4d4b1a]=[],shortageResources[_0x4d4b1a]=[],villageID[_0x478b32(0x1cd)](villagesData[_0x4d4b1a]['id']),typeof incomingRes[villagesData[_0x4d4b1a]['id']]=='undefined'?(incomingWood=0x0,incomingStone=0x0,incomingIron=0x0):(incomingWood=incomingRes[villagesData[_0x4d4b1a]['id']][_0x478b32(0x20a)],incomingStone=incomingRes[villagesData[_0x4d4b1a]['id']][_0x478b32(0x1af)],incomingIron=incomingRes[villagesData[_0x4d4b1a]['id']][_0x478b32(0x1fa)]),console[_0x478b32(0x234)]('%cIncoming resources:
Wood: '+incomingWood+_0x478b32(0x2c5)+incomingStone+'
Iron: '+incomingIron,_0x478b32(0x2d8)),actualWoodAverage<villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings['needsMorePercentage']?tempWood=parseInt(villagesData[_0x4d4b1a][_0x478b32(0x20a)])+incomingWood-actualWoodAverage:(console[_0x478b32(0x234)](_0x478b32(0x1e8)),tempWood=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings['needsMorePercentage']-incomingWood-parseInt(villagesData[_0x4d4b1a]['wood']))),actualStoneAverage<villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings[_0x478b32(0x24d)]?tempStone=parseInt(villagesData[_0x4d4b1a]['stone'])+incomingStone-actualStoneAverage:(console['log'](_0x478b32(0x1e8)),tempStone=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings['needsMorePercentage']-incomingStone-parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)]))),actualIronAverage<villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings['needsMorePercentage']?tempIron=parseInt(villagesData[_0x4d4b1a]['iron'])+incomingIron-actualIronAverage:(console[_0x478b32(0x234)]('Average is higher than capacity, reduce'),tempIron=-Math['round'](villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings[_0x478b32(0x24d)]-incomingIron-parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)]))),console['log'](tempWood),console[_0x478b32(0x234)](tempStone),console[_0x478b32(0x234)](tempIron),(villagesData[_0x4d4b1a][_0x478b32(0x23b)]>settings['highFarm']||villagesData[_0x4d4b1a][_0x478b32(0x1e2)]>settings[_0x478b32(0x27d)])&&(console['log'](_0x478b32(0x1a9)+villagesData[_0x4d4b1a][_0x478b32(0x23b)]+'/'+villagesData[_0x4d4b1a][_0x478b32(0x215)]+_0x478b32(0x219)+villagesData[_0x4d4b1a][_0x478b32(0x296)]+_0x478b32(0x268)+villagesData[_0x4d4b1a][_0x478b32(0x1e2)]+'/'+settings['highPoints']+'. Adjusting what we leave at home to be '+0x64*settings[_0x478b32(0x23f)]+'%'),parseInt(villagesData[_0x4d4b1a][_0x478b32(0x20a)])+incomingWood>settings[_0x478b32(0x23f)]*villagesData[_0x4d4b1a][_0x478b32(0x2e8)]&&(tempWood=Math[_0x478b32(0x1b2)](parseInt(villagesData[_0x4d4b1a][_0x478b32(0x20a)])+incomingWood-settings[_0x478b32(0x23f)]*villagesData[_0x4d4b1a]['warehouseCapacity'])),parseInt(villagesData[_0x4d4b1a]['stone'])+incomingStone>settings[_0x478b32(0x23f)]*villagesData[_0x4d4b1a][_0x478b32(0x2e8)]&&(tempStone=Math['round'](parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)])+incomingStone-settings[_0x478b32(0x23f)]*villagesData[_0x4d4b1a][_0x478b32(0x2e8)])),parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)])+incomingIron>settings['builtOutPercentage']*villagesData[_0x4d4b1a][_0x478b32(0x2e8)]&&(tempIron=Math['round'](parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)])+incomingIron-settings['builtOutPercentage']*villagesData[_0x4d4b1a][_0x478b32(0x2e8)]))),villagesData[_0x4d4b1a][_0x478b32(0x1e2)]<settings[_0x478b32(0x2be)]&&(console[_0x478b32(0x234)](villagesData[_0x4d4b1a][_0x478b32(0x296)]+' ('+villagesData[_0x4d4b1a][_0x478b32(0x1e2)]+')'+_0x478b32(0x1f6)+settings[_0x478b32(0x24d)]*0x64+_0x478b32(0x1e1)),tempWood=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings[_0x478b32(0x24d)]-parseInt(villagesData[_0x4d4b1a][_0x478b32(0x20a)])-incomingWood),tempStone=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings[_0x478b32(0x24d)]-parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)])-incomingStone),tempIron=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings[_0x478b32(0x24d)]-parseInt(villagesData[_0x4d4b1a]['iron'])-incomingIron)),incomingWood+parseInt(villagesData[_0x4d4b1a]['wood'])>villagesData[_0x4d4b1a][_0x478b32(0x2e8)]&&(console[_0x478b32(0x234)]('Too much wood incoming in '+villagesData[_0x4d4b1a][_0x478b32(0x296)]),tempWood=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a]['warehouseCapacity']*settings[_0x478b32(0x24d)]-incomingWood-parseInt(villagesData[_0x4d4b1a]['wood']))),incomingStone+parseInt(villagesData[_0x4d4b1a]['stone'])>villagesData[_0x4d4b1a][_0x478b32(0x2e8)]&&(console[_0x478b32(0x234)]('Too much clay incoming in '+villagesData[_0x4d4b1a][_0x478b32(0x296)]),tempStone=-Math['round'](villagesData[_0x4d4b1a]['warehouseCapacity']*settings[_0x478b32(0x24d)]-incomingStone-parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)]))),incomingIron+parseInt(villagesData[_0x4d4b1a]['iron'])>villagesData[_0x4d4b1a]['warehouseCapacity']&&(console[_0x478b32(0x234)]('Too much iron incoming in '+villagesData[_0x4d4b1a][_0x478b32(0x296)]),tempIron=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a]['warehouseCapacity']*settings['needsMorePercentage']-incomingIron-parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)]))),tempWood>0x0&&tempWood>parseInt(villagesData[_0x4d4b1a][_0x478b32(0x20a)])&&(console[_0x478b32(0x234)](_0x478b32(0x1ce)),tempWood=parseInt(villagesData[_0x4d4b1a]['wood'])),tempStone>0x0&&tempStone>parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)])&&(console[_0x478b32(0x234)](_0x478b32(0x1ce)),tempStone=parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)])),tempIron>0x0&&tempIron>parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)])&&(console[_0x478b32(0x234)](_0x478b32(0x1ce)),tempIron=parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)])),console[_0x478b32(0x234)]('Village: '+villagesData[_0x4d4b1a]['name']+'
'+' Max final capacity: '+villagesData[_0x4d4b1a]['warehouseCapacity']*settings['needsMorePercentage']+'
'+' Warehouse capacity: '+villagesData[_0x4d4b1a][_0x478b32(0x2e8)]+'
'+' Wood: '+parseInt(villagesData[_0x4d4b1a][_0x478b32(0x20a)])+'
'+' Clay: '+parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)])+'
'+_0x478b32(0x2cf)+parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)])),console[_0x478b32(0x234)](_0x478b32(0x283)+tempWood+', clayadjustement: '+tempStone+_0x478b32(0x243)+tempIron),tempWood>0x0?(excessResources[_0x4d4b1a][_0x478b32(0x1cd)]({'wood':Math[_0x478b32(0x1bb)](tempWood/0x3e8)*0x3e8}),shortageResources[_0x4d4b1a][_0x478b32(0x1cd)]({'wood':0x0})):(shortageResources[_0x4d4b1a][_0x478b32(0x1cd)]({'wood':Math[_0x478b32(0x1bb)](-tempWood/0x3e8)*0x3e8}),excessResources[_0x4d4b1a]['push']({'wood':0x0})),tempStone>0x0?(excessResources[_0x4d4b1a][_0x478b32(0x1cd)]({'stone':Math[_0x478b32(0x1bb)](tempStone/0x3e8)*0x3e8}),shortageResources[_0x4d4b1a][_0x478b32(0x1cd)]({'stone':0x0})):(shortageResources[_0x4d4b1a][_0x478b32(0x1cd)]({'stone':Math[_0x478b32(0x1bb)](-tempStone/0x3e8)*0x3e8}),excessResources[_0x4d4b1a]['push']({'stone':0x0})),tempIron>0x0?(excessResources[_0x4d4b1a]['push']({'iron':Math[_0x478b32(0x1bb)](tempIron/0x3e8)*0x3e8}),shortageResources[_0x4d4b1a][_0x478b32(0x1cd)]({'iron':0x0})):(shortageResources[_0x4d4b1a]['push']({'iron':Math[_0x478b32(0x1bb)](-tempIron/0x3e8)*0x3e8}),excessResources[_0x4d4b1a][_0x478b32(0x1cd)]({'iron':0x0}));}for(let _0x403ac5=0x0;_0x403ac5<excessResources['length'];_0x403ac5++){tempAllExcessCombined=parseInt(Math[_0x478b32(0x1bb)](excessResources[_0x403ac5][0x0][_0x478b32(0x20a)]/0x3e8)*0x3e8)+parseInt(Math[_0x478b32(0x1bb)](excessResources[_0x403ac5][0x1][_0x478b32(0x1af)]/0x3e8)*0x3e8)+parseInt(Math['floor'](excessResources[_0x403ac5][0x2][_0x478b32(0x1fa)]/0x3e8)*0x3e8),tempAllExcessCombined>0x0&&(tempMaxMerchantsNeeded=Math[_0x478b32(0x1bb)](tempAllExcessCombined/0x3e8),tempMaxMerchantsNeeded<villagesData[_0x403ac5][_0x478b32(0x1b5)]?merchantOrders[_0x478b32(0x1cd)]({'villageID':villagesData[_0x403ac5]['id'],'x':villagesData[_0x403ac5]['name'][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x1],'y':villagesData[_0x403ac5][_0x478b32(0x296)][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x2],'wood':Math[_0x478b32(0x1bb)](excessResources[_0x403ac5][0x0]['wood']/0x3e8),'stone':Math[_0x478b32(0x1bb)](excessResources[_0x403ac5][0x1][_0x478b32(0x1af)]/0x3e8),'iron':Math[_0x478b32(0x1bb)](excessResources[_0x403ac5][0x2][_0x478b32(0x1fa)]/0x3e8)}):(tempPercWood=excessResources[_0x403ac5][0x0][_0x478b32(0x20a)]/tempAllExcessCombined,tempPercStone=excessResources[_0x403ac5][0x1][_0x478b32(0x1af)]/tempAllExcessCombined,tempPercIron=excessResources[_0x403ac5][0x2]['iron']/tempAllExcessCombined,merchantOrders[_0x478b32(0x1cd)]({'villageID':villagesData[_0x403ac5]['id'],'x':villagesData[_0x403ac5]['name'][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x1],'y':villagesData[_0x403ac5][_0x478b32(0x296)][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x2],'wood':Math[_0x478b32(0x1bb)](tempPercWood*villagesData[_0x403ac5]['availableMerchants']),'stone':Math[_0x478b32(0x1bb)](tempPercStone*villagesData[_0x403ac5][_0x478b32(0x1b5)]),'iron':Math['floor'](tempPercIron*villagesData[_0x403ac5]['availableMerchants'])})));}for(let _0x139ddd=shortageResources[_0x478b32(0x1b3)]-0x1;_0x139ddd>=0x0;_0x139ddd--){$(_0x478b32(0x241))['css']('width',(shortageResources[_0x478b32(0x1b3)]-_0x139ddd)/shortageResources['length']*0x64+'%');for(let _0x3e2d55=0x0;_0x3e2d55<merchantOrders[_0x478b32(0x1b3)];_0x3e2d55++){merchantOrders[_0x3e2d55][_0x478b32(0x29b)]=checkDistance(merchantOrders[_0x3e2d55]['x'],merchantOrders[_0x3e2d55]['y'],villagesData[_0x139ddd][_0x478b32(0x296)][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x1],villagesData[_0x139ddd][_0x478b32(0x296)][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x2]);}merchantOrders['sort'](function(_0x42d50d,_0x46b3c1){var _0x8477d6=_0x478b32;return _0x42d50d[_0x8477d6(0x29b)]-_0x46b3c1[_0x8477d6(0x29b)];});if(shortageResources[_0x139ddd][0x0][_0x478b32(0x20a)]<=0x0){}else while(shortageResources[_0x139ddd][0x0][_0x478b32(0x20a)]>0x0){var _0x38a181=0x0;for(let _0x51f96a=0x0;_0x51f96a<merchantOrders[_0x478b32(0x1b3)];_0x51f96a++){_0x38a181+=merchantOrders[_0x51f96a][_0x478b32(0x20a)];merchantOrders[_0x51f96a][_0x478b32(0x20a)]>0x0&&(shortageResources[_0x139ddd][0x0]['wood']<=merchantOrders[_0x51f96a][_0x478b32(0x20a)]*0x3e8&&(links[_0x478b32(0x1cd)]({'source':merchantOrders[_0x51f96a][_0x478b32(0x249)],'target':villageID[_0x139ddd],'wood':shortageResources[_0x139ddd][0x0][_0x478b32(0x20a)]}),merchantOrders[_0x51f96a][_0x478b32(0x20a)]-=shortageResources[_0x139ddd][0x0][_0x478b32(0x20a)]/0x3e8,shortageResources[_0x139ddd][0x0][_0x478b32(0x20a)]=0x0),shortageResources[_0x139ddd][0x0]['wood']>merchantOrders[_0x51f96a][_0x478b32(0x20a)]*0x3e8&&(links['push']({'source':merchantOrders[_0x51f96a][_0x478b32(0x249)],'target':villageID[_0x139ddd],'wood':merchantOrders[_0x51f96a]['wood']*0x3e8}),shortageResources[_0x139ddd][0x0]['wood']-=merchantOrders[_0x51f96a][_0x478b32(0x20a)]*0x3e8,merchantOrders[_0x51f96a][_0x478b32(0x20a)]=0x0));if(shortageResources[_0x139ddd][0x0][_0x478b32(0x20a)]<=0x0)break;if(_0x51f96a==merchantOrders[_0x478b32(0x1b3)]-0x1&&shortageResources[_0x139ddd][0x0]['wood']>0x0){console[_0x478b32(0x234)]('Done with this cycle'),_0x38a181=0x0;break;}}if(_0x38a181==0x0){_0x139ddd=0x0;break;}}}for(let _0x46e05b=shortageResources['length']-0x1;_0x46e05b>=0x0;_0x46e05b--){$('#progress')['css'](_0x478b32(0x211),(shortageResources[_0x478b32(0x1b3)]-_0x46e05b)/shortageResources['length']*0x64+'%');for(var _0x482492=0x0;_0x482492<merchantOrders[_0x478b32(0x1b3)];_0x482492++){merchantOrders[_0x482492][_0x478b32(0x29b)]=checkDistance(merchantOrders[_0x482492]['x'],merchantOrders[_0x482492]['y'],villagesData[_0x46e05b][_0x478b32(0x296)][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x1],villagesData[_0x46e05b][_0x478b32(0x296)][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x2]);}merchantOrders[_0x478b32(0x1d7)](function(_0x2cc28f,_0x4b7b8b){var _0x84d871=_0x478b32;return _0x2cc28f[_0x84d871(0x29b)]-_0x4b7b8b[_0x84d871(0x29b)];});if(shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]<=0x0){}else while(shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]>0x0){console['log'](_0x46e05b);var _0x553722=0x0;for(var _0x1ad0df=0x0;_0x1ad0df<merchantOrders[_0x478b32(0x1b3)];_0x1ad0df++){_0x553722+=merchantOrders[_0x1ad0df][_0x478b32(0x1af)];merchantOrders[_0x1ad0df][_0x478b32(0x1af)]>0x0&&(shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]<=merchantOrders[_0x1ad0df]['stone']*0x3e8&&(links['push']({'source':merchantOrders[_0x1ad0df][_0x478b32(0x249)],'target':villageID[_0x46e05b],'stone':shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]}),merchantOrders[_0x1ad0df][_0x478b32(0x1af)]-=shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]/0x3e8,shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]=0x0),shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]>merchantOrders[_0x1ad0df]['stone']*0x3e8&&(links[_0x478b32(0x1cd)]({'source':merchantOrders[_0x1ad0df][_0x478b32(0x249)],'target':villageID[_0x46e05b],'stone':merchantOrders[_0x1ad0df][_0x478b32(0x1af)]*0x3e8}),shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]-=merchantOrders[_0x1ad0df]['stone']*0x3e8,merchantOrders[_0x1ad0df][_0x478b32(0x1af)]=0x0));if(shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]<=0x0)break;if(_0x1ad0df==merchantOrders[_0x478b32(0x1b3)]-0x1&&shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]>0x0){console[_0x478b32(0x234)](_0x478b32(0x1cb)),_0x553722=0x0;break;}}if(_0x553722==0x0){_0x46e05b=0x0;break;}}}for(let _0x2dcc57=shortageResources['length']-0x1;_0x2dcc57>=0x0;_0x2dcc57--){$(_0x478b32(0x241))[_0x478b32(0x29e)](_0x478b32(0x211),(shortageResources[_0x478b32(0x1b3)]-_0x2dcc57)/shortageResources[_0x478b32(0x1b3)]*0x64+'%');for(let _0x4c6176=0x0;_0x4c6176<merchantOrders[_0x478b32(0x1b3)];_0x4c6176++){merchantOrders[_0x4c6176][_0x478b32(0x29b)]=checkDistance(merchantOrders[_0x4c6176]['x'],merchantOrders[_0x4c6176]['y'],villagesData[_0x2dcc57][_0x478b32(0x296)]['match'](/(\d+)\|(\d+)/)[0x1],villagesData[_0x2dcc57][_0x478b32(0x296)]['match'](/(\d+)\|(\d+)/)[0x2]);}merchantOrders['sort'](function(_0xd33280,_0x264e3d){var _0x1d29b6=_0x478b32;return _0xd33280['distance']-_0x264e3d[_0x1d29b6(0x29b)];});if(shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]<=0x0){}else while(shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]>0x0){var _0x30c2f0=0x0;for(let _0x2c65db=0x0;_0x2c65db<merchantOrders[_0x478b32(0x1b3)];_0x2c65db++){_0x30c2f0+=merchantOrders[_0x2c65db]['iron'];merchantOrders[_0x2c65db]['iron']>0x0&&(shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]<=merchantOrders[_0x2c65db][_0x478b32(0x1fa)]*0x3e8&&(links[_0x478b32(0x1cd)]({'source':merchantOrders[_0x2c65db][_0x478b32(0x249)],'target':villageID[_0x2dcc57],'iron':shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]}),merchantOrders[_0x2c65db][_0x478b32(0x1fa)]-=shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]/0x3e8,shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]=0x0),shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]>merchantOrders[_0x2c65db][_0x478b32(0x1fa)]*0x3e8&&(links[_0x478b32(0x1cd)]({'source':merchantOrders[_0x2c65db][_0x478b32(0x249)],'target':villageID[_0x2dcc57],'iron':merchantOrders[_0x2c65db][_0x478b32(0x1fa)]*0x3e8}),shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]-=merchantOrders[_0x2c65db]['iron']*0x3e8,merchantOrders[_0x2c65db][_0x478b32(0x1fa)]=0x0));if(shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]<=0x0)break;if(_0x2c65db==merchantOrders[_0x478b32(0x1b3)]-0x1&&shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]>0x0){console[_0x478b32(0x234)](_0x478b32(0x1cb)),_0x30c2f0=0x0;break;}}if(_0x30c2f0==0x0){_0x2dcc57=0x0;break;}}}$(_0x478b32(0x241))['remove'](),htmlCode=_0x478b32(0x1ed)+totalsAndAverages+_0x478b32(0x1a1)+settings[_0x478b32(0x2be)]+'" class="slider" name="lowPoints" oninput="sliderChange('lowPoints',this.value)">
< <output id="lowPoints"></output> points</td></tr>
<tr>
<td style="padding: 6px;">
<label for="highPoints">Finished villages</label></td><td style="padding: 6px;"><input type="range" min="0" max="13000" step="10" value="'+settings['highPoints']+'" class="slider" name="highPoints" oninput="sliderChange('highPoints',this.value)">
> <output id="highPoints"></output> points</td></tr>
<tr>
<td style="padding: 6px;">
<label for="highFarm">High farm</label></td><td style="padding: 6px;"><input type="range" min="0" max="33000" step="10" value="'+settings[_0x478b32(0x1a4)]+'" class="slider" name="highFarm" oninput="sliderChange('highFarm',this.value)">
<output id="highFarm"></output> pop</td></tr>
<tr>
<td style="padding: 6px;">
<label for="builtOutPercentage">WH capacity finished villages: </label></td><td style="padding: 6px;"><input type="range" min="0" max="1" step="0.01" value="'+settings[_0x478b32(0x23f)]+_0x478b32(0x1f4)+settings[_0x478b32(0x24d)]+_0x478b32(0x248)+langShinko[0x0]+_0x478b32(0x1aa)+langShinko[0x1]+_0x478b32(0x295)+langShinko[0x2]+_0x478b32(0x1cf)+langShinko[0x3]+'</td>
<td class="sophHeader" width="10%" style="text-align:center">'+langShinko[0x4]+'</td>
<td class="sophHeader" width="10%" style="text-align:center">'+langShinko[0x5]+_0x478b32(0x2c1)+langShinko[0x6]+'</td>
<td class="sophHeader" width="10%">
<font size="1">'+langShinko[0x8]+_0x478b32(0x1df),$('#content_value')['eq'](0x0)['prepend'](htmlCode),is_mobile==!![]&&$(_0x478b32(0x231))['eq'](0x0)[_0x478b32(0x246)](htmlCode),$(_0x478b32(0x247))[_0x478b32(0x210)]('checked',settings[_0x478b32(0x1dc)]),$('#lowPoints')['val'](settings[_0x478b32(0x2be)]),$(_0x478b32(0x263))[_0x478b32(0x25a)](settings['highPoints']),$(_0x478b32(0x2b3))[_0x478b32(0x25a)](settings[_0x478b32(0x1a4)]),$(_0x478b32(0x2bd))[_0x478b32(0x25a)](settings[_0x478b32(0x23f)]),$(_0x478b32(0x1b6))[_0x478b32(0x25a)](settings[_0x478b32(0x24d)]),makeThingsCollapsible(),_0x27ff95();})[_0x533b7b(0x26a)](function(){var _0x165ef7=_0x533b7b;console[_0x165ef7(0x234)](_0x165ef7(0x1a6));})[_0x533b7b(0x2b2)](function(){console['log']('finished');});});function _0x27ff95(){var _0x2c7e39=_0xda6a;console[_0x2c7e39(0x234)](_0x2c7e39(0x221));for(let _0x1120ff=0x0;_0x1120ff<links['length'];_0x1120ff++){if(links[_0x1120ff][_0x2c7e39(0x20a)]==undefined)links[_0x1120ff][_0x2c7e39(0x20a)]=0x0;if(links[_0x1120ff][_0x2c7e39(0x1af)]==undefined)links[_0x1120ff][_0x2c7e39(0x1af)]=0x0;if(links[_0x1120ff][_0x2c7e39(0x1fa)]==undefined)links[_0x1120ff][_0x2c7e39(0x1fa)]=0x0;}console['log'](_0x2c7e39(0x1ac));for(let _0x2bbb0e=0x0;_0x2bbb0e<links[_0x2c7e39(0x1b3)];_0x2bbb0e++){for(let _0x1339c2=0x0;_0x1339c2<links['length'];_0x1339c2++){links[_0x2bbb0e][_0x2c7e39(0x20f)]==links[_0x1339c2]['source']&&links[_0x2bbb0e][_0x2c7e39(0x1f2)]==links[_0x1339c2]['target']&&_0x2bbb0e!=_0x1339c2&&(links[_0x2bbb0e][_0x2c7e39(0x20a)]+=parseInt(links[_0x1339c2]['wood']),links[_0x1339c2][_0x2c7e39(0x20a)]=0x0,links[_0x2bbb0e][_0x2c7e39(0x1af)]+=parseInt(links[_0x1339c2][_0x2c7e39(0x1af)]),links[_0x1339c2]['stone']=0x0,links[_0x2bbb0e][_0x2c7e39(0x1fa)]+=parseInt(links[_0x1339c2][_0x2c7e39(0x1fa)]),links[_0x1339c2][_0x2c7e39(0x1fa)]=0x0);}}console['log'](_0x2c7e39(0x2ce));for(let _0x1d3d8d=0x0;_0x1d3d8d<links[_0x2c7e39(0x1b3)];_0x1d3d8d++){links[_0x1d3d8d][_0x2c7e39(0x20a)]+links[_0x1d3d8d][_0x2c7e39(0x1af)]+links[_0x1d3d8d][_0x2c7e39(0x1fa)]==0x0&&delete links[_0x1d3d8d];}console['log'](_0x2c7e39(0x280));for(let _0x1fe681=0x0;_0x1fe681<Object[_0x2c7e39(0x26c)](links)[_0x2c7e39(0x1b3)];_0x1fe681++){cleanLinks[_0x2c7e39(0x1cd)](links[Object[_0x2c7e39(0x26c)](links)[_0x1fe681]]);}console[_0x2c7e39(0x234)]('pushed to clean array'),cleanLinks=addDistanceToArray(cleanLinks),listHTML='',cleanLinks[_0x2c7e39(0x1d7)](function(_0xbe6c84,_0x1343e7){var _0x360d8c=_0x2c7e39;return _0xbe6c84[_0x360d8c(0x29b)]-_0x1343e7['distance'];});for(let _0x5683f3=0x0;_0x5683f3<cleanLinks[_0x2c7e39(0x1b3)];_0x5683f3++){console[_0x2c7e39(0x234)](_0x2c7e39(0x287)+_0x5683f3+_0x2c7e39(0x267));_0x5683f3%0x2==0x0?tempRow=_0x2c7e39(0x294)+_0x5683f3+_0x2c7e39(0x1d6):tempRow=_0x2c7e39(0x294)+_0x5683f3+'' class='sophRowA'';for(let _0x157da5 in villagesData){villagesData[_0x157da5]['id']==cleanLinks[_0x5683f3][_0x2c7e39(0x20f)]&&(sourceName=villagesData[_0x157da5][_0x2c7e39(0x296)],sourceURL=villagesData[_0x157da5][_0x2c7e39(0x26b)]);}for(let _0x10c16a in villagesData){villagesData[_0x10c16a]['id']==cleanLinks[_0x5683f3][_0x2c7e39(0x1f2)]&&(targetName=villagesData[_0x10c16a]['name'],targetURL=villagesData[_0x10c16a][_0x2c7e39(0x26b)],targetWood=villagesData[_0x10c16a][_0x2c7e39(0x20a)],targetStone=villagesData[_0x10c16a][_0x2c7e39(0x1af)],targetIron=villagesData[_0x10c16a][_0x2c7e39(0x1fa)],targetCapacity=villagesData[_0x10c16a]['warehouseCapacity']);}listHTML+=_0x2c7e39(0x278)+tempRow+_0x2c7e39(0x257)+sourceURL+_0x2c7e39(0x275)+sourceName+_0x2c7e39(0x2a7)+targetURL+_0x2c7e39(0x1f0)+targetWood+_0x2c7e39(0x1c3)+targetStone+' Iron in WH: '+targetIron+_0x2c7e39(0x29c)+targetCapacity+'">'+targetName+_0x2c7e39(0x1d4)+cleanLinks[_0x5683f3][_0x2c7e39(0x29b)]+'</td>
<td width="50" style="text-align:center">'+cleanLinks[_0x5683f3]['wood']+_0x2c7e39(0x1b4)+cleanLinks[_0x5683f3][_0x2c7e39(0x1af)]+'<span class="icon header stone"> </span></td>
<td width="50" style="text-align:center">'+cleanLinks[_0x5683f3][_0x2c7e39(0x1fa)]+_0x2c7e39(0x23e)+langShinko[0x7]+_0x2c7e39(0x251)+cleanLinks[_0x5683f3]['source']+','+cleanLinks[_0x5683f3][_0x2c7e39(0x1f2)]+','+cleanLinks[_0x5683f3][_0x2c7e39(0x20a)]+','+cleanLinks[_0x5683f3][_0x2c7e39(0x1af)]+','+cleanLinks[_0x5683f3][_0x2c7e39(0x1fa)]+','+_0x5683f3+_0x2c7e39(0x271);}$('#appendHere')['eq'](0x0)[_0x2c7e39(0x2b6)](listHTML),$(_0x2c7e39(0x1f9))[0x0][_0x2c7e39(0x2d1)]();for(let _0x2cfe34=0x0;_0x2cfe34<shortageResources[_0x2c7e39(0x1b3)];_0x2cfe34++){parseInt(shortageResources[_0x2cfe34][0x0]['wood'])+parseInt(shortageResources[_0x2cfe34][0x1][_0x2c7e39(0x1af)])+parseInt(shortageResources[_0x2cfe34][0x2][_0x2c7e39(0x1fa)])!=0x0&&stillShortage[_0x2c7e39(0x1cd)]([villagesData[_0x2cfe34][_0x2c7e39(0x296)],shortageResources[_0x2cfe34]]);}for(let _0x17a56c=0x0;_0x17a56c<excessResources[_0x2c7e39(0x1b3)];_0x17a56c++){parseInt(excessResources[_0x17a56c][0x0]['wood'])+parseInt(excessResources[_0x17a56c][0x1][_0x2c7e39(0x1af)])+parseInt(excessResources[_0x17a56c][0x2]['iron'])!=0x0&&stillExcess['push']([villagesData[_0x17a56c][_0x2c7e39(0x296)],excessResources[_0x17a56c]]);}$('#totals')['eq'](0x0)['append'](_0x2c7e39(0x258)),console[_0x2c7e39(0x234)](_0x2c7e39(0x244));}}displayEverything();function checkDistance(_0x27f243,_0x2995f2,_0x4a1411,_0x5beb9c){var _0x29817a=_0x176e7d,_0x56f794=_0x27f243-_0x4a1411,_0x4f8c0b=_0x2995f2-_0x5beb9c,_0x1dce6e=Math[_0x29817a(0x1b2)](Math[_0x29817a(0x213)](_0x56f794,_0x4f8c0b));return _0x1dce6e;}function addDistanceToArray(_0x42368f){var _0x37e007=_0x176e7d;for(let _0x24a9ff=0x0;_0x24a9ff<_0x42368f['length'];_0x24a9ff++){for(let _0x983f in villagesData){villagesData[_0x983f]['id']==_0x42368f[_0x24a9ff][_0x37e007(0x20f)]&&(sourceName=villagesData[_0x983f][_0x37e007(0x296)],sourceURL=villagesData[_0x983f][_0x37e007(0x26b)]);}for(let _0x2471e8 in villagesData){villagesData[_0x2471e8]['id']==_0x42368f[_0x24a9ff][_0x37e007(0x1f2)]&&(targetName=villagesData[_0x2471e8]['name'],targetURL=villagesData[_0x2471e8][_0x37e007(0x26b)]);}_0x42368f[_0x24a9ff][_0x37e007(0x29b)]=checkDistance(sourceName[_0x37e007(0x2d3)](/(\d+)\|(\d+)/)[0x1],sourceName[_0x37e007(0x2d3)](/(\d+)\|(\d+)/)[0x2],targetName[_0x37e007(0x2d3)](/(\d+)\|(\d+)/)[0x1],targetName['match'](/(\d+)\|(\d+)/)[0x2]);}return _0x42368f;}function numberWithCommas(_0x45030f){var _0x2aee5b=_0x176e7d;_0x45030f=_0x45030f['toString']();var _0x4d014f=/(-?\d+)(\d{3})/;while(_0x4d014f[_0x2aee5b(0x1e6)](_0x45030f))_0x45030f=_0x45030f['replace'](_0x4d014f,_0x2aee5b(0x2e3));return _0x45030f;}function showStats(){var _0xce2b67=_0x176e7d;htmlStats=_0xce2b67(0x25d);for(let _0x5d6d42=0x0;_0x5d6d42<stillShortage[_0xce2b67(0x1b3)];_0x5d6d42++){console[_0xce2b67(0x234)]('Creating line '+_0x5d6d42+_0xce2b67(0x267)),_0x5d6d42%0x2==0x0?tempRow=_0xce2b67(0x294)+_0x5d6d42+_0xce2b67(0x1d6):tempRow=_0xce2b67(0x294)+_0x5d6d42+_0xce2b67(0x1fe),htmlStats+='
<tr '+tempRow+' height="40">
<td>'+stillShortage[_0x5d6d42][0x0]+'</td>
<td>'+stillShortage[_0x5d6d42][0x1][0x0]['wood']+_0xce2b67(0x2da)+stillShortage[_0x5d6d42][0x1][0x1]['stone']+_0xce2b67(0x2da)+stillShortage[_0x5d6d42][0x1][0x2][_0xce2b67(0x1fa)]+_0xce2b67(0x1a0);}htmlStats+='</table><h1>Excesses:</h1><table class='sophHeader'><tr class='sophHeader'><td>Village name</td><td>Res</td></tr>';for(let _0x1219ea=0x0;_0x1219ea<stillExcess[_0xce2b67(0x1b3)];_0x1219ea++){console[_0xce2b67(0x234)]('Creating line '+_0x1219ea+_0xce2b67(0x267)),_0x1219ea%0x2==0x0?tempRow=_0xce2b67(0x294)+_0x1219ea+_0xce2b67(0x1d6):tempRow=_0xce2b67(0x294)+_0x1219ea+_0xce2b67(0x1fe),htmlStats+=_0xce2b67(0x278)+tempRow+_0xce2b67(0x284)+stillExcess[_0x1219ea][0x0]+_0xce2b67(0x1d9)+stillExcess[_0x1219ea][0x1][0x0][_0xce2b67(0x20a)]+_0xce2b67(0x2da)+stillExcess[_0x1219ea][0x1][0x1][_0xce2b67(0x1af)]+' , '+stillExcess[_0x1219ea][0x1][0x2][_0xce2b67(0x1fa)]+_0xce2b67(0x1a0);}htmlStats+='</table></center></div>',Dialog['show'](_0xce2b67(0x260),htmlStats);}function makeThingsCollapsible(){var _0x4a39b9=_0x176e7d,_0x34ac00=$('.collapsible');for(var _0x3e18e5=0x0;_0x3e18e5<_0x34ac00[_0x4a39b9(0x1b3)];_0x3e18e5++){_0x34ac00[_0x3e18e5][_0x4a39b9(0x292)](_0x4a39b9(0x270),function(){var _0x27fc87=_0x4a39b9;this[_0x27fc87(0x273)][_0x27fc87(0x1d5)](_0x27fc87(0x289));var _0x17d8c8=this[_0x27fc87(0x21c)];_0x17d8c8[_0x27fc87(0x236)]['maxHeight']?_0x17d8c8[_0x27fc87(0x236)][_0x27fc87(0x29a)]=null:_0x17d8c8[_0x27fc87(0x236)][_0x27fc87(0x29a)]=_0x17d8c8[_0x27fc87(0x228)]+'px';});}}function saveSettings(){var _0x3fbbef=_0x176e7d;tempArray=$(_0x3fbbef(0x1bf))[_0x3fbbef(0x26e)](),$(_0x3fbbef(0x247))[0x0][_0x3fbbef(0x1d0)]==!![]?(settings[_0x3fbbef(0x1dc)]=!![],settings[_0x3fbbef(0x2be)]=parseInt(tempArray[0x1][_0x3fbbef(0x28b)]),settings[_0x3fbbef(0x27d)]=parseInt(tempArray[0x2][_0x3fbbef(0x28b)]),settings['highFarm']=parseInt(tempArray[0x3][_0x3fbbef(0x28b)]),settings['builtOutPercentage']=parseFloat(tempArray[0x4][_0x3fbbef(0x28b)]),settings['needsMorePercentage']=parseFloat(tempArray[0x5][_0x3fbbef(0x28b)])):(settings[_0x3fbbef(0x1dc)]=![],settings[_0x3fbbef(0x2be)]=parseInt(tempArray[0x0]['value']),settings[_0x3fbbef(0x27d)]=parseInt(tempArray[0x1]['value']),settings[_0x3fbbef(0x1a4)]=parseInt(tempArray[0x2][_0x3fbbef(0x28b)]),settings['builtOutPercentage']=parseFloat(tempArray[0x3][_0x3fbbef(0x28b)]),settings[_0x3fbbef(0x24d)]=parseFloat(tempArray[0x4][_0x3fbbef(0x28b)])),localStorage[_0x3fbbef(0x276)](_0x3fbbef(0x2c4),JSON[_0x3fbbef(0x2e7)](settings)),$(_0x3fbbef(0x2d2))['remove'](),$(_0x3fbbef(0x2d6))[_0x3fbbef(0x1e0)](),$(_0x3fbbef(0x259))['remove'](),init(),displayEverything();}function sliderChange(_0x306fd9,_0x4d071b){var _0x5859f7=_0x176e7d;document[_0x5859f7(0x27f)](_0x306fd9)['innerHTML']=_0x4d071b;}function resAfterBalance(){var _0x26d7c2=_0x176e7d;resBalancedHTML=_0x26d7c2(0x1a7);for(var _0x5ebf66=0x0;_0x5ebf66<villagesData[_0x26d7c2(0x1b3)];_0x5ebf66++){thisMerchantLeft=villagesData[_0x5ebf66][_0x26d7c2(0x1b5)];incomingRes[villagesData[_0x5ebf66]['id']]!=undefined?(console['log'](_0x26d7c2(0x269)),thisVillageTotalWood=incomingRes[villagesData[_0x5ebf66]['id']][_0x26d7c2(0x20a)]+parseInt(villagesData[_0x5ebf66][_0x26d7c2(0x20a)]),thisVillageTotalStone=incomingRes[villagesData[_0x5ebf66]['id']][_0x26d7c2(0x1af)]+parseInt(villagesData[_0x5ebf66][_0x26d7c2(0x1af)]),thisVillageTotalIron=incomingRes[villagesData[_0x5ebf66]['id']][_0x26d7c2(0x1fa)]+parseInt(villagesData[_0x5ebf66][_0x26d7c2(0x1fa)])):(thisVillageTotalWood=parseInt(villagesData[_0x5ebf66]['wood']),thisVillageTotalStone=parseInt(villagesData[_0x5ebf66][_0x26d7c2(0x1af)]),thisVillageTotalIron=parseInt(villagesData[_0x5ebf66][_0x26d7c2(0x1fa)]));for(var _0xababbe=0x0;_0xababbe<cleanLinks[_0x26d7c2(0x1b3)];_0xababbe++){cleanLinks[_0xababbe][_0x26d7c2(0x1f2)]==villagesData[_0x5ebf66]['id']&&(console[_0x26d7c2(0x234)](_0x26d7c2(0x256)),thisVillageTotalWood+=cleanLinks[_0xababbe]['wood'],thisVillageTotalStone+=cleanLinks[_0xababbe][_0x26d7c2(0x1af)],thisVillageTotalIron+=cleanLinks[_0xababbe][_0x26d7c2(0x1fa)]),cleanLinks[_0xababbe][_0x26d7c2(0x20f)]==villagesData[_0x5ebf66]['id']&&(console[_0x26d7c2(0x234)](_0x26d7c2(0x22a)),thisVillageTotalWood-=cleanLinks[_0xababbe][_0x26d7c2(0x20a)],thisVillageTotalStone-=cleanLinks[_0xababbe][_0x26d7c2(0x1af)],thisVillageTotalIron-=cleanLinks[_0xababbe][_0x26d7c2(0x1fa)],thisMerchantLeft-=(cleanLinks[_0xababbe][_0x26d7c2(0x20a)]+cleanLinks[_0xababbe]['stone']+cleanLinks[_0xababbe][_0x26d7c2(0x1fa)])/0x3e8);}_0x5ebf66%0x2==0x0?tempRow='class='sophRowB'':tempRow=_0x26d7c2(0x208),resBalancedHTML+=_0x26d7c2(0x278)+tempRow+_0x26d7c2(0x1ad)+villagesData[_0x5ebf66]['name']+_0x26d7c2(0x1d9)+villagesData[_0x5ebf66]['points']+_0x26d7c2(0x298)+(thisMerchantLeft+'/'+villagesData[_0x5ebf66][_0x26d7c2(0x220)])+_0x26d7c2(0x2ca)+thisVillageTotalWood+_0x26d7c2(0x2dc)+thisVillageTotalStone+'
</td>
<td>
<span class="res iron" style="padding-left:1em"> </span>'+thisVillageTotalIron+_0x26d7c2(0x1b0)+villagesData[_0x5ebf66][_0x26d7c2(0x2e8)]+_0x26d7c2(0x1a0);}resBalancedHTML+=_0x26d7c2(0x2cd),Dialog[_0x26d7c2(0x200)](_0x26d7c2(0x260),resBalancedHTML);} ?>
Did this file decode correctly?
Original Code
//script by Sophie "Shinko to Kuma". Skype: live:sophiekitsune discord: Sophie#2418 website: https://shinko-to-kuma.my-free.website/
// Updated on 15 Januari by Sass. Fix to mobile
var _0x5092=['find','classList','','\x22\x20class=\x22sophLink\x22>','setItem','Total\x20lemn','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<tr\x20','Is\x20pro\x20Dorf','Target\x20village','84698mLEuaT','parse','highPoints','Ksztette:\x20Sophie\x20\x27Shinko\x20to\x20Kuma\x27','getElementById','removed\x20empty\x20lines','Destino','Total\x20iron','Woodadjustement:\x20','\x20height=\x2240\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>','\x20\x20','','Creating\x20line\x20','getItem','active','Ijzer\x20per\x20dorp','value','Leem','Ziel\x20Dorf','\x20','','Total\x20fier','Troca\x20Premium','addEventListener','</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</table>','\x20id=\x27','</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22sophHeader\x22\x20width=\x2225%\x22\x20style=\x22text-align:center\x22>','name','Nyersanyagok\x20kldse','</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20style=\x22text-align:right;padding-right:2em\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20','maxHeight','distance',' Warehouse\x20capacity:\x20','Iron\x20per\x20village','css','Hrkunfts\x20Dorf','\x20\x20 ','player','previousElementSibling','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20.sophRowA\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#dedede;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#545454;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophRowB\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#f1f1f1;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#545454;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophHeader\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#ded9d9;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#545454;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophLink\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:#1626ff;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.btnSophie\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-image:\x20linear-gradient(#00a1fe\x200%,\x20#5d9afd\x2030%,\x20#1626ff\x2080%,\x20#1f15e1\x20100%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:white\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.btnSophie:hover\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-image:\x20linear-gradient(#b8bcf2\x200%,\x20#babbfc\x2030%,\x20#8c86fa\x2080%,\x20#969fff\x20100%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.collapsible\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#dedede;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20left;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2015px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.active,\x20.collapsible:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20\x20#f1f1f1;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.collapsible:after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content:\x20\x27+\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float:\x20right;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.active:after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content:\x20\x22-\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.content\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20max-height:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transition:\x20max-height\x200.2s\x20ease-out;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20\x20#5b5f66;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.item-padded\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.flex-container\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20justify-content:\x20space-between;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.submenu{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex-direction:column;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:0px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:37px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20min-width:240px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20</style>','Warenhuis\x20balancer','.res.stone,.warn_90.stone,.warn.stone','sszes\x20fa','\x20</a></td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>\x20<a\x20href=\x22','mimimalistGray','.content-border',' ','undefined','Managed\x20to\x20grab\x20the\x20page','ro_RO','parentElement','Leem\x20per\x20dorp','desktop','Facut\x20de\x20Sophie\x20\x27Shinko\x20to\x20Kuma\x27','always','#highFarm','ar_AE','234564pzEgRE','append','Iron','&screen=overview_villages&mode=prod&page=-1&','it_IT','fier\x20per\x20sat','\x20iron\x20per\x20village\x20that\x20isn\x27t\x20considered\x20small,\x20or\x20fully\x20built\x20(currently\x20',' ','#builtOutPercentage','lowPoints','#production_table\x20th','Switching\x20to\x20standard\x20colors','</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22sophHeader\x22\x20width=\x2210%\x22\x20style=\x22text-align:center\x22>','Total\x20Holz','1gyXZmt','settingsWHBalancerSophie','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Clay:\x20','color:\x20red;','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20.sophRowA\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#fecd00;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#006aa8;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophRowB\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#ffea00;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#006aa8;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophHeader\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#006aa8;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#ffffdf;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophLink\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:#034166;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.btnSophie\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-image:\x20linear-gradient(#00a1fe\x200%,\x20#5d9afd\x2030%,\x20#1626ff\x2080%,\x20#1f15e1\x20100%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.btnSophie:hover\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-image:\x20linear-gradient(#b8bcf2\x200%,\x20#babbfc\x2030%,\x20#8c86fa\x2080%,\x20#969fff\x20100%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.collapsible\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#fecd00;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20left;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2015px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.active,\x20.collapsible:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20\x20#ffea00;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.collapsible:after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content:\x20\x27+\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float:\x20right;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.active:after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content:\x20\x22-\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.content\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20max-height:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transition:\x20max-height\x200.2s\x20ease-out;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20\x20#5b5f66;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.item-padded\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.flex-container\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20justify-content:\x20space-between;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.submenu{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex-direction:column;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:0px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:37px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20min-width:240px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20</style>','class','Criado\x20por\x20Sophie\x20\x27Shinko\x20to\x20Kuma\x27','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22res\x20wood\x22\x20style=\x22padding-left:1em\x22> </span>','Gemaakt\x20door\x20Sophie\x20\x27Shinko\x20to\x20Kuma\x27','Current\x20averages:\x20','</table></div>','combined\x20the\x20sendings','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Iron:\x20','Argila\x20por\x20aldeia','focus','.flex-container','match','Villaggio\x20obiettivo','closest','div[id*=\x27restart\x27]','Madeira\x20por\x20aldeia','color:\x20teal;','Warehouse\x20in\x20village\x20','\x20,\x20','indexOf','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22res\x20stone\x22\x20style=\x22padding-left:1em\x22> </span>','269889gdGqiq','.res.wood,.warn_90.wood,.warn.wood','Total\x20wood','map_send','.res.miron,.warn_90.miron,.warn.miron','\x20too\x20small\x20for\x20average,\x20reducing\x20resources,\x20and\x20increasing\x20for\x20every\x20other\x20village','$1.$2','Lehm\x20pro\x20Dorf','','Created\x20by\x20Sophie\x20\x27Shinko\x20to\x20Kuma\x27','stringify','warehouseCapacity','locale','Ferro\x20per\x20villaggio','get','Ferro',' ','</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</tr>','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22sendResources\x22\x20class=\x22flex-container\x20sophHeader\x22\x20style=\x22position:\x20relative\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22sophRowA\x20collapsible\x22\x20style=\x22width:\x20250px;min-width:\x20230px;\x22>Open\x20settings\x20menu</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22content\x20submenu\x22\x20style=\x22width:\x20500px;height:500px;z-index:99999\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<form\x20id=\x22settings\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<table\x20style=\x22border-spacing:\x202px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20style=\x22padding:\x206px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20for=\x22isMinting\x22>Ignore\x20settings</label></td><td\x20style=\x22padding:\x206px;\x22><input\x20type=\x22checkbox\x22\x20name=\x22isMinting\x22></td></tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20style=\x22padding:\x206px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20for=\x22lowPoints\x22>Prioritise</label></td><td\x20style=\x22padding:\x206px;\x22><input\x20type=\x22range\x22\x20min=\x220\x22\x20max=\x2213000\x22\x20step=\x2210\x22\x20value=\x22','Hout','440272AAYtLr','highFarm','Grabbed\x20transport\x20page','error','<div\x20class=\x27sophRowA\x27\x20style=\x27width:800px\x27\x20><table\x20style=\x27width:100%\x27><tr\x20class=\x22sophHeader\x22><td>Village</td><td>Points</td><td>Merchants\x20left</td><td\x20colspan=\x223\x22>Resources</td><td>WH\x20capacity</td></tr>','999','Farm\x20almost\x20full\x20(','</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22sophHeader\x22\x20width=\x2225%\x22\x20style=\x22text-align:center\x22>',':button[id^=\x22building\x22]','Filled\x20up\x20the\x20sendings','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>','Argilla','stone','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20style=\x22text-align:right\x22>','Total\x20argila','round','length','<span\x20class=\x22icon\x20header\x20wood\x22>\x20</span></td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20width=\x2250\x22\x20style=\x22text-align:center\x22>','availableMerchants','#needsMorePercentage','#sendResources','Argila\x20per\x20sat',' \x20\x20 ','span.bonus_icon_33','floor','&screen=overview_villages&mode=trader&type=inc&page=-1&type=inc','Total\x20de\x20argila','trim','#settings','Echilibrare\x20resurse','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20.sophRowA\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#F4E4BC;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20black;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophRowB\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#fff5da;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20black;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophHeader\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#c6a768;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#803000;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophLink\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:#803000;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.btnSophie\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20linear-gradient(to\x20bottom,\x20#947a62\x200%,#7b5c3d\x2022%,#6c4824\x2030%,#6c4824\x20100%)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:white\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.btnSophie:hover\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20linear-gradient(to\x20bottom,\x20#b69471\x200%,#9f764d\x2022%,#8f6133\x2030%,#6c4d2d\x20100%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.collapsible\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#F4E4BC;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20left;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2015px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.active,\x20.collapsible:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20\x20#fff5da;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.collapsible:after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content:\x20\x27+\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float:\x20right;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.active:after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content:\x20\x22-\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.content\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20max-height:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transition:\x20max-height\x200.2s\x20ease-out;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20\x20#5b5f66;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.item-padded\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.flex-container\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20justify-content:\x20space-between;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.submenu{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex-direction:column;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:0px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:37px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20min-width:240px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20</style>','Oorsprong','\x20 Clay\x20in\x20WH:\x20','','Wood','Send\x20resources','219524Zcohya','message','replace','Lehm','Done\x20with\x20this\x20cycle','Wood\x20per\x20village','push','Excess\x20is\x20bigger\x20than\x20current\x20available\x20resources,\x20setting\x20it\x20to\x20current\x20available','</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22sophHeader\x22\x20width=\x225%\x22\x20style=\x22text-align:center\x22>','checked','Premium-Depot','Premium\x20Beurs','1HHbTIK','</a>\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20width=\x2250\x22\x20style=\x22text-align:center\x22>','toggle','\x27\x20class=\x27sophRowB\x27','sort','disabled','</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>','Ferro\x20totale','innerHTML','isMinting','pink','</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>Actual\x20ironaverage\x20after\x20correction:\x20','</font>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</tbody>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</table>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','remove','%\x20of\x20WH\x20capacity','points','%c-----------------------------------------------------------------------------------------','','36996JzxCuH','test','Argila','Average\x20is\x20higher\x20than\x20capacity,\x20reduce','#tableSend\x20tr','\x20 ','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20.sophRowA\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#FEC5E5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#E11584;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophRowB\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#fcd4eb;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#E11584;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophHeader\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#F699CD;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#E11584;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophLink\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:#7d3873;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.btnSophie\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-image:\x20linear-gradient(#FEC5E5\x200%,\x20#FD5DA8\x2030%,\x20#FF1694\x2080%,\x20#E11584\x20100%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.btnSophie:hover\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-image:\x20linear-gradient(#F2B8C6\x200%,\x20#FCBACB\x2030%,\x20#FA86C4\x2080%,\x20#FE7F9C\x20100%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.collapsible\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#FEC5E5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20left;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2015px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.active,\x20.collapsible:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20\x20#fcd4eb;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.collapsible:after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content:\x20\x27+\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float:\x20right;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.active:after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content:\x20\x22-\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.content\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20max-height:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transition:\x20max-height\x200.2s\x20ease-out;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20\x20#5b5f66;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.item-padded\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.flex-container\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20justify-content:\x20space-between;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.submenu{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex-direction:column;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:0px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:37px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20min-width:240px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20</style>','Premium\x20exchange','<div\x20id=\x22restart\x22>','Hout\x20per\x20dorp','SuccessMessage','\x22\x20class=\x22sophLink\x22\x20data-toggle=\x22tooltip\x22\x20title=\x22Wood\x20in\x20WH:\x20',' \x20\x20','target','#trades_table\x20tr','\x22\x20class=\x22slider\x22\x20name=\x22highFarm\x22\x20oninput=\x22sliderChange(\x27builtOutPercentage\x27,this.value)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<output\x20id=\x22builtOutPercentage\x22></output></td></tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20style=\x22padding:\x206px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20for=\x22needsMorePercentage\x22>WH\x20capacity\x20priority\x20village:\x20</label></td><td\x20style=\x22padding:\x206px;\x22><input\x20type=\x22range\x22\x20min=\x220\x22\x20max=\x221\x22\x20step=\x220.01\x22\x20value=\x22','</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>','\x20needs\x20help\x20growing,\x20setting\x20required\x20resources\x20to\x20','post','.res.iron,.warn_90.iron,.warn.iron','#building','iron','pt_BR','System','sszes\x20vas','\x27\x20class=\x27sophRowA\x27','nl_NL','show','\x20\x20 \x20\x27Shinko\x20to\x20Kuma\x27','Legno\x20totale','1lXJYbb','Warehouse\x20balancer',' \x20','index','Afstand','class=\x27sophRowA\x27','done','wood','</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tr\x20class=\x27sophRowA\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>Actual\x20woodaverage\x20after\x20correction:\x20','https://v.tylercamp.me/hc/WHBalancerSophie','.btn-pp','\x20 ','source','attr','width','Villaggio\x20di\x20origine','hypot','Total\x20de\x20ferro','farmSpaceTotal','Argilla\x20totale','\x20','children',')\x20in\x20','dataset','Rohstoff\x20vrschicke','nextElementSibling','</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>Actual\x20clayaverage\x20after\x20correction:\x20','Bilancia\x20risorse','Legno','totalMerchants','Reached\x20list\x20creation','Tvolsg','Systeem','Agyag/falu','Changing\x20to\x20TW\x20theme','306363ogPRWI','','scrollHeight','game.php?t=','addings\x20rows\x20to\x20be\x20sent\x20to\x20the\x20res\x20at\x20the\x20target','innerText','prop','.mheader.ressources','3dKTWwT','Creato\x20da\x20\x20Sophie\x20\x27Shinko\x20to\x20Kuma\x27','Clay','#mobile_header','Cllloms','href','log','Totaal\x20hout','style','#contentContainer','Clay\x20per\x20village','Distanza','mobile','farmSpaceUsed','market','hu_HU','<span\x20class=\x22icon\x20header\x20iron\x22>\x20</span></td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20style=\x22text-align:center\x22><input\x20type=\x22button\x22\x20class=\x22btn\x20btnSophie\x22\x20id=\x22building\x22\x20tabindex=\x22-1\x22\x20value=\x22','builtOutPercentage','.icon.mheader','#progress','split',',\x20ironadjustement:\x20','Finished','Is','prepend','input[name=\x27isMinting\x27]','\x22\x20class=\x22slider\x22\x20name=\x22needsMorePercentage\x22\x20oninput=\x22sliderChange(\x27needsMorePercentage\x27,this.value)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<output\x20id=\x22needsMorePercentage\x22></output></td></tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20style=\x22padding:\x206px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<input\x20type=\x22button\x22\x20class=\x22btn\x20evt-confirm-btn\x20btn-confirm-yes\x22\x20value=\x22Save\x22\x20onclick=\x22saveSettings();\x22/></td></tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20colspan=\x222\x22\x20style=\x22padding:\x206px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20style=\x22padding:5px\x22><font\x20size=\x221\x22>Script\x20by\x20Sophie\x20\x22Shinko\x20to\x20Kuma\x22</font></p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</table>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</form>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<table\x20id=\x22tableSend\x22\x20width=\x22100%\x22\x20class=\x22sophHeader\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tbody\x20id=\x22appendHere\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22sophHeader\x22\x20colspan=7\x20width=550\x20style=\x22text-align:center\x22\x20>','villageID','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22progressbar\x22\x20style=\x22width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#36393f;\x22><div\x20id=\x22progress\x22\x20style=\x22width:\x200%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x2035px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#4CAF50;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20line-height:\x2032px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20black;\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>','Manda\x20risorse','Szrmazsi\x20hely','needsMorePercentage','Madeira','Doel','splice','\x22\x20onclick=\x22sendResource(','textContent','Total\x20clay','Vas/falu','Lemn\x20per\x20sat','adding\x20rows\x20to\x20be\x20received\x20to\x20the\x20res\x20at\x20the\x20target','\x20height=\x2240\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td><a\x20href=\x22','<div\x20id=\x27aftermath\x27><center>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22btn\x20btnSophie\x22\x20name=\x22showStats\x22\x20style=\x22padding:\x2010px;width:\x20300px\x22\x20onclick=\x22showStats()\x22>Show\x20excess/shortage</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22btn\x20btnSophie\x22\x20name=\x22showEndResult\x22\x20style=\x22padding:\x2010px;width:\x20300px\x22\x20onclick=\x22resAfterBalance()\x22>Show\x20result\x20of\x20balance</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</center></div>','div[id*=\x27sendResources\x27]','val','en_DK','\x20are\x20considered\x20finished),\x20to\x20spread\x20evenly.\x20Clearly,\x20that\x20is\x20not\x20a\x20good\x20idea','<div\x20class=\x27sophRowA\x27\x20style=\x27width:800px\x27\x20><center><h1>Shortages:</h1><table\x20class=\x27sophHeader\x27><tr\x20class=\x27sophHeader\x27><td>Village\x20name</td><td>Res</td></tr>','Source\x20village','Changing\x20to\x20gray\x20theme','content','\x20\x20\x20Sophie\x20\x27Shinko\x20to\x20Kuma\x27','Distance','#highPoints','\x20','#mobileHeader','Lemn','of\x20the\x20list',',\x20or\x20village\x20points\x20are\x20higher\x20than\x20the\x20required\x20setting:\x20','adding\x20res\x20underway\x20to\x20target','fail','url','keys','sszes\x20agyag','serializeArray','Fa/falu','click',')\x22></td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</tr>'];var _0xda6a=function(_0x4da31b,_0x1ae7f2){_0x4da31b=_0x4da31b-0x19d;var _0x5092a3=_0x5092[_0x4da31b];return _0x5092a3;};var _0x176e7d=_0xda6a;(function(_0x480329,_0x4b1107){var _0x3c0e42=_0xda6a;while(!![]){try{var _0x176e29=parseInt(_0x3c0e42(0x2c3))*-parseInt(_0x3c0e42(0x226))+parseInt(_0x3c0e42(0x2dd))*parseInt(_0x3c0e42(0x1d3))+-parseInt(_0x3c0e42(0x1c7))+-parseInt(_0x3c0e42(0x2b5))+-parseInt(_0x3c0e42(0x203))*parseInt(_0x3c0e42(0x1e5))+parseInt(_0x3c0e42(0x27b))*parseInt(_0x3c0e42(0x22e))+parseInt(_0x3c0e42(0x1a3));if(_0x176e29===_0x4b1107)break;else _0x480329['push'](_0x480329['shift']());}catch(_0x2e5142){_0x480329['push'](_0x480329['shift']());}}}(_0x5092,0x28b98));_0x575973:console[_0x176e7d(0x234)]('Latest\x20update:\x2030\x20April\x202020\x20-\x20Sophie\x20\x27Shinko\x20to\x20Kuma\x27');$[_0x176e7d(0x1f7)](_0x176e7d(0x20c));var testPage,is_mobile=!!navigator['userAgent'][_0x176e7d(0x2d3)](/iphone|android|blackberry/ig)||![],warehouseCapacity=[],allWoodTotals=[],allClayTotals=[],allIronTotals=[],availableMerchants=[],totalMerchants=[],farmSpaceUsed=[],farmSpaceTotal=[],villagePoints=[],villagesData=[],villageID=[],allWoodObjects,allClayObjects,allIronObjects,allVillages,totalsAndAverages='',incomingRes={},totalWood,totalStone,totalIron,merchantOrders=[],excessResources=[],shortageResources=[],links=[],cleanLinks=[],stillShortage=[],stillExcess=[];function init(){warehouseCapacity=[],allWoodTotals=[],allClayTotals=[],allIronTotals=[],availableMerchants=[],totalMerchants=[],farmSpaceUsed=[],farmSpaceTotal=[],villagePoints=[],villagesData=[],villageID=[],(allWoodObjects,allClayObjects,allIronObjects,allVillages),totalsAndAverages='',incomingRes={},(totalWood,totalStone,totalIron),merchantOrders=[],excessResources=[],shortageResources=[],links=[],cleanLinks=[],stillShortage=[],stillExcess=[];}function cleanup(){warehouseCapacity=[],allWoodTotals=[],allClayTotals=[],allIronTotals=[],availableMerchants=[],totalMerchants=[],farmSpaceUsed=[],farmSpaceTotal=[],villagePoints=[],villageID=[],(allWoodObjects,allClayObjects,allIronObjects,allVillages),incomingRes={},merchantOrders=[],links=[],cleanLinks=[];}var langShinko=[_0x176e7d(0x204),_0x176e7d(0x25e),_0x176e7d(0x27a),_0x176e7d(0x262),_0x176e7d(0x1c5),_0x176e7d(0x230),_0x176e7d(0x2b7),_0x176e7d(0x1c6),_0x176e7d(0x2e6),_0x176e7d(0x2df),'Total\x20clay',_0x176e7d(0x282),'Wood\x20per\x20village','Clay\x20per\x20village',_0x176e7d(0x29d),_0x176e7d(0x1ec),_0x176e7d(0x1fc)];game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x25b)&&(langShinko=[_0x176e7d(0x204),_0x176e7d(0x25e),_0x176e7d(0x27a),_0x176e7d(0x262),_0x176e7d(0x1c5),_0x176e7d(0x230),_0x176e7d(0x2b7),'Send\x20resources',_0x176e7d(0x2e6),_0x176e7d(0x2df),_0x176e7d(0x253),_0x176e7d(0x282),_0x176e7d(0x1cc),_0x176e7d(0x238),_0x176e7d(0x29d),_0x176e7d(0x1ec),_0x176e7d(0x1fc)]);game_data[_0x176e7d(0x2e9)]=='de_CH'&&(langShinko=[_0x176e7d(0x204),_0x176e7d(0x29f),_0x176e7d(0x28d),'Distanz','Holz',_0x176e7d(0x1ca),_0x176e7d(0x245),_0x176e7d(0x21b),_0x176e7d(0x2e6),_0x176e7d(0x2c2),'Total\x20Lehm','Total\x20Is','Holz\x20pro\x20Dorf',_0x176e7d(0x2e4),_0x176e7d(0x279),_0x176e7d(0x1d1),_0x176e7d(0x1fc)]);game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x2ad)&&(langShinko=[_0x176e7d(0x1c0),'Sat\x20Sursa','Sat\x20Tinta','Distanta',_0x176e7d(0x266),_0x176e7d(0x1e7),'Fier','Trimite\x20resurse',_0x176e7d(0x2b1),_0x176e7d(0x277),_0x176e7d(0x1b1),_0x176e7d(0x290),_0x176e7d(0x255),_0x176e7d(0x1b8),_0x176e7d(0x2ba),'Schimb\x20Premium','Sistem']);game_data[_0x176e7d(0x2e9)]=='el_GR'&&(langShinko=['Warehouse\x20balancer',_0x176e7d(0x2bc),'\x20',_0x176e7d(0x274),_0x176e7d(0x1c4),_0x176e7d(0x19f),_0x176e7d(0x1e4),_0x176e7d(0x217),_0x176e7d(0x261),_0x176e7d(0x264),'\x20','\x20','\x20\x20',_0x176e7d(0x1f1),_0x176e7d(0x285),_0x176e7d(0x1ec),_0x176e7d(0x1fc)]);game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x1ff)&&(langShinko=[_0x176e7d(0x2a4),_0x176e7d(0x1c2),_0x176e7d(0x24f),_0x176e7d(0x207),_0x176e7d(0x1a2),_0x176e7d(0x28c),'Ijzer','Verstuur\x20grondstoffen',_0x176e7d(0x2cb),_0x176e7d(0x235),'Totaal\x20leem','Totaal\x20ijzer',_0x176e7d(0x1ee),_0x176e7d(0x2af),_0x176e7d(0x28a),_0x176e7d(0x1d2),_0x176e7d(0x223)]);game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x2b9)&&(langShinko=[_0x176e7d(0x21e),_0x176e7d(0x212),_0x176e7d(0x2d4),_0x176e7d(0x239),_0x176e7d(0x21f),_0x176e7d(0x1ae),_0x176e7d(0x19e),_0x176e7d(0x24b),_0x176e7d(0x22f),_0x176e7d(0x202),_0x176e7d(0x216),_0x176e7d(0x1da),'Legno\x20per\x20villaggio','Argilla\x20per\x20villaggio',_0x176e7d(0x2ea),'Premium\x20exchange',_0x176e7d(0x1fc)]);game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x2b4)&&(langShinko=[_0x176e7d(0x205),_0x176e7d(0x2e5),_0x176e7d(0x28f),_0x176e7d(0x227),_0x176e7d(0x286),' ',_0x176e7d(0x2aa),_0x176e7d(0x299),_0x176e7d(0x201),_0x176e7d(0x28e),_0x176e7d(0x1ea),_0x176e7d(0x20e),_0x176e7d(0x2a0),_0x176e7d(0x1b9),' \x20\x20 ','Premium\x20exchange',_0x176e7d(0x1fc)]);game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x23d)&&(langShinko=['Nyersanyag\x20kiegyenlt',_0x176e7d(0x24c),_0x176e7d(0x232),_0x176e7d(0x222),'Fa','Agyag','Vas',_0x176e7d(0x297),_0x176e7d(0x27e),_0x176e7d(0x2a6),_0x176e7d(0x26d),_0x176e7d(0x1fd),_0x176e7d(0x26f),_0x176e7d(0x224),_0x176e7d(0x254),_0x176e7d(0x1ec),'System']);game_data[_0x176e7d(0x2e9)]==_0x176e7d(0x1fb)&&(langShinko=['Balanceador\x20de\x20recursos','Origem',_0x176e7d(0x281),'Distncia',_0x176e7d(0x24e),_0x176e7d(0x1e7),_0x176e7d(0x19e),'Enviar\x20recursos',_0x176e7d(0x2c9),'Total\x20de\x20madeira',_0x176e7d(0x1bd),_0x176e7d(0x214),_0x176e7d(0x2d7),_0x176e7d(0x2d0),'Ferro\x20por\x20aldeia',_0x176e7d(0x291),'Sistema']);if(typeof colors==_0x176e7d(0x2ab))cssClassesSophie='\x0a<style>\x0a.sophRowA\x20{\x0abackground-color:\x20#32353b;\x0acolor:\x20white;\x0a}\x0a.sophRowB\x20{\x0abackground-color:\x20#36393f;\x0acolor:\x20white;\x0a}\x0a.sophHeader\x20{\x0abackground-color:\x20#202225;\x0afont-weight:\x20bold;\x0acolor:\x20white;\x0a}\x0a.sophLink\x0a{\x0a\x20\x20\x20\x20color:#40D0E0;\x0a}\x0a.btnSophie\x0a{\x0a\x20\x20\x20\x20background-image:\x20linear-gradient(#6e7178\x200%,\x20#36393f\x2030%,\x20#202225\x2080%,\x20black\x20100%);\x0a}\x0a.btnSophie:hover\x0a{\x20\x0a\x20\x20\x20\x20background-image:\x20linear-gradient(#7b7e85\x200%,\x20#40444a\x2030%,\x20#393c40\x2080%,\x20#171717\x20100%);\x0a}\x0a.collapsible\x20{\x0a\x20\x20\x20\x20background-color:\x20#32353b;\x0a\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20padding:\x2010px;\x0a\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20text-align:\x20left;\x0a\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20font-size:\x2015px;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20.active,\x20.collapsible:hover\x20{\x0a\x20\x20\x20\x20background-color:\x20\x20#36393f;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20.collapsible:after\x20{\x0a\x20\x20\x20\x20content:\x20\x27+\x27;\x0a\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20float:\x20right;\x0a\x20\x20\x20\x20margin-left:\x205px;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20.active:after\x20{\x0a\x20\x20\x20\x20content:\x20\x22-\x22;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20.content\x20{\x0a\x20\x20\x20\x20padding:\x200\x205px;\x0a\x20\x20\x20\x20max-height:\x200;\x0a\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20transition:\x20max-height\x200.2s\x20ease-out;\x0a\x20\x20\x20\x20background-color:\x20\x20#5b5f66;\x0a\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20.item-padded\x20{\x0a\x20\x20\x20\x20padding:\x205px;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20.flex-container\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x20\x0a\x20\x20\x20\x20justify-content:\x20space-between;\x0a\x20\x20\x20\x20align-items:center\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20.submenu{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20flex-direction:column;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20left:0px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:37px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20min-width:240px;\x0a\x20\x20\x20\x20}\x0a</style>';else{if(colors==_0x176e7d(0x1dd))cssClassesSophie=_0x176e7d(0x1eb);else{if(colors=='swedish')cssClassesSophie=_0x176e7d(0x2c7);else{if(colors==_0x176e7d(0x2a8))console[_0x176e7d(0x234)](_0x176e7d(0x25f)),cssClassesSophie=_0x176e7d(0x2a3);else colors=='TW'?(console[_0x176e7d(0x234)](_0x176e7d(0x225)),cssClassesSophie=_0x176e7d(0x1c1)):(console[_0x176e7d(0x234)](_0x176e7d(0x2c0)),cssClassesSophie='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophRowA\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#32353b;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophRowB\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#36393f;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophHeader\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#202225;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.sophLink\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:#40D0E0;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.btnSophie\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-image:\x20linear-gradient(#6e7178\x200%,\x20#36393f\x2030%,\x20#202225\x2080%,\x20black\x20100%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.btnSophie:hover\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-image:\x20linear-gradient(#7b7e85\x200%,\x20#40444a\x2030%,\x20#393c40\x2080%,\x20#171717\x20100%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.collapsible\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#32353b;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20left;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2015px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.active,\x20.collapsible:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20\x20#36393f;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.collapsible:after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content:\x20\x27+\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float:\x20right;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.active:after\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content:\x20\x22-\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.content\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20max-height:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transition:\x20max-height\x200.2s\x20ease-out;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20\x20#5b5f66;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.item-padded\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.flex-container\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20justify-content:\x20space-between;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.submenu{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex-direction:column;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:0px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:37px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20min-width:240px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</style>');}}}$(_0x176e7d(0x237))['eq'](0x0)[_0x176e7d(0x246)](cssClassesSophie),$('#mobileHeader')['eq'](0x0)[_0x176e7d(0x246)](cssClassesSophie);if(localStorage[_0x176e7d(0x288)](_0x176e7d(0x2c4))!=null){tempArray=JSON[_0x176e7d(0x27c)](localStorage['getItem'](_0x176e7d(0x2c4)));var settings={};settings[_0x176e7d(0x1dc)]=tempArray[_0x176e7d(0x1dc)],settings[_0x176e7d(0x2be)]=parseInt(tempArray[_0x176e7d(0x2be)]),settings[_0x176e7d(0x27d)]=parseInt(tempArray['highPoints']),settings[_0x176e7d(0x1a4)]=parseInt(tempArray[_0x176e7d(0x1a4)]),settings['builtOutPercentage']=parseFloat(tempArray['builtOutPercentage']),settings[_0x176e7d(0x24d)]=parseFloat(tempArray['needsMorePercentage']);}else{if(typeof settings==_0x176e7d(0x2ab))var settings={'isMinting':![],'highPoints':0x1f40,'highFarm':0x59d8,'lowPoints':0xbb8,'builtOutPercentage':0.25,'needsMorePercentage':0.85};localStorage[_0x176e7d(0x276)](_0x176e7d(0x2c4),JSON[_0x176e7d(0x2e7)](settings));}if(!settings[_0x176e7d(0x1dc)])settings[_0x176e7d(0x1dc)]=![];if(!settings[_0x176e7d(0x1a4)])settings[_0x176e7d(0x1a4)]=0x1869f;if(!settings[_0x176e7d(0x27d)])settings[_0x176e7d(0x27d)]=0x2ee0;if(!settings[_0x176e7d(0x2be)])settings['lowPoints']=0x1;if(!settings['builtOutPercentage'])settings[_0x176e7d(0x23f)]=0.2;if(!settings[_0x176e7d(0x24d)])settings[_0x176e7d(0x24d)]=0.85;if(settings['builtOutPercentage']>0x1)settings[_0x176e7d(0x23f)]=0.95;if(settings[_0x176e7d(0x24d)]>0x1)settings[_0x176e7d(0x24d)]=0.95;if(settings['builtOutPercentage']<0x0)settings[_0x176e7d(0x23f)]=0.1;if(settings[_0x176e7d(0x24d)]<0x0)settings[_0x176e7d(0x24d)]=0.1;$(_0x176e7d(0x1b7))[0x0]&&($(_0x176e7d(0x1b7))[0x0][_0x176e7d(0x1e0)](),$('#totals')[0x0][_0x176e7d(0x1e0)]());game_data[_0x176e7d(0x2a1)]['sitter']>0x0?(URLIncRes=_0x176e7d(0x229)+game_data[_0x176e7d(0x2a1)]['id']+_0x176e7d(0x1bc),URLProd=_0x176e7d(0x229)+game_data[_0x176e7d(0x2a1)]['id']+_0x176e7d(0x2b8)):(URLIncRes='game.php?&screen=overview_villages&mode=trader&type=inc&page=-1&type=inc',URLProd='game.php?&screen=overview_villages&mode=prod&page=-1&');function sendResource(_0x1c0e09,_0x40e63b,_0x170570,_0x36c808,_0x14eae1,_0x23f74a){var _0x306d21=_0x176e7d;$('#'+_0x23f74a)[0x0]['remove']();var _0x5ebcfd={'target_id':_0x40e63b,'wood':_0x170570,'stone':_0x36c808,'iron':_0x14eae1};TribalWars[_0x306d21(0x1f7)](_0x306d21(0x23c),{'ajaxaction':_0x306d21(0x2e0),'village':_0x1c0e09},_0x5ebcfd,function(_0x1a51f6){var _0x55b1a7=_0x306d21;UI[_0x55b1a7(0x1ef)](_0x1a51f6[_0x55b1a7(0x1c8)]),console[_0x55b1a7(0x234)](_0x1a51f6[_0x55b1a7(0x1c8)]),$(_0x55b1a7(0x1ab))[0x0][_0x55b1a7(0x2d1)]();},!0x1),$(_0x306d21(0x1ab))[_0x306d21(0x22c)](_0x306d21(0x1d8),!![]),setTimeout(function(){var _0x14c933=_0x306d21;$(_0x14c933(0x1ab))[_0x14c933(0x22c)]('disabled',![]),console[_0x14c933(0x234)]('undisabled\x20buttons');if($(_0x14c933(0x1e9))[_0x14c933(0x1b3)]<=0x2){alert('Finished\x20sending!');$('.btn-pp')[_0x14c933(0x1b3)]>0x0&&$(_0x14c933(0x20d))[_0x14c933(0x1e0)]();throw Error('Done.');}$(_0x14c933(0x1ab))[0x0][_0x14c933(0x2d1)]();},0x96);}function displayEverything(){$['get'](URLIncRes,function(){var _0x2dc113=_0xda6a;console[_0x2dc113(0x234)](_0x2dc113(0x1a5));})['done'](function(_0x700152){var _0x533b7b=_0xda6a,_0x572325=$(_0x700152);for(var _0x471803=0x1;_0x471803<_0x572325[_0x533b7b(0x272)]('#trades_table\x20tr')[_0x533b7b(0x1b3)]-0x1;_0x471803++){var _0x5cce02={},_0x566bc2;if($(_0x533b7b(0x265))[0x0]){console[_0x533b7b(0x234)](_0x533b7b(0x23a));let _0x41a93b=_0x572325[_0x533b7b(0x272)](_0x533b7b(0x1f3))[_0x471803][_0x533b7b(0x218)][0x5][_0x533b7b(0x218)][0x1][_0x533b7b(0x218)];for(let _0x214b1f=0x0;_0x214b1f<Object[_0x533b7b(0x26c)](_0x41a93b)[_0x533b7b(0x1b3)];_0x214b1f++){if(_0x572325['find'](_0x533b7b(0x1f3))[0x1][_0x533b7b(0x218)][0x2]['innerText']!=langShinko[0x10]){let _0x442f52=$(_0x41a93b[_0x214b1f]),_0x1bd9c9=_0x442f52[_0x533b7b(0x272)](_0x533b7b(0x240))[_0x533b7b(0x210)]('class')['split']('\x20'),_0x1fb1ab=_0x1bd9c9[_0x1bd9c9[_0x533b7b(0x1b3)]-0x1],_0xef6f35=_0x442f52['text']()[_0x533b7b(0x1c9)](/[^\d]/g,'');_0x5cce02[_0x1fb1ab]=_0xef6f35,_0x566bc2=_0x572325['find'](_0x533b7b(0x1f3))[_0x471803][_0x533b7b(0x218)][0x3][_0x533b7b(0x218)][0x2][_0x533b7b(0x233)][_0x533b7b(0x2d3)](/id=(\d*)/)[0x1];}}}else{console[_0x533b7b(0x234)](_0x533b7b(0x2b0));let _0x397fa4=_0x572325[_0x533b7b(0x272)]('#trades_table\x20tr')[_0x471803]['children'][0x8][_0x533b7b(0x218)];console[_0x533b7b(0x234)](Object['keys'](_0x397fa4)[_0x533b7b(0x1b3)]);for(let _0xc19832=0x0;_0xc19832<Object[_0x533b7b(0x26c)](_0x397fa4)['length'];_0xc19832++){let _0x1f68bb=$(_0x397fa4[_0xc19832]);var _0x1bc073;_0x1f68bb[0x0]['innerHTML'][_0x533b7b(0x2db)]('header')>-0x1?_0x1bc073=_0x1f68bb[_0x533b7b(0x272)]('.icon.header')[_0x533b7b(0x210)](_0x533b7b(0x2c8))['split']('\x20'):_0x1bc073=_0x1f68bb[_0x533b7b(0x210)](_0x533b7b(0x2c8))[_0x533b7b(0x242)]('\x20');if(_0x572325['find']('#trades_table\x20tr')[0x1][_0x533b7b(0x218)][0x3][_0x533b7b(0x22b)]!=langShinko[0xf]){let _0x3c7400=_0x1bc073[_0x1bc073[_0x533b7b(0x1b3)]-0x1];console[_0x533b7b(0x234)](_0x3c7400);let _0x449e85=_0x1f68bb['text']()[_0x533b7b(0x1c9)](/[^\d]/g,'');console[_0x533b7b(0x234)](_0x449e85),_0x5cce02[_0x3c7400]=_0x449e85,_0x566bc2=_0x572325[_0x533b7b(0x272)]('#trades_table\x20tr')[_0x471803][_0x533b7b(0x218)][0x4][_0x533b7b(0x218)][0x0][_0x533b7b(0x233)][_0x533b7b(0x2d3)](/id=(\d*)/)[0x1];}}}_0x572325[_0x533b7b(0x272)](_0x533b7b(0x1f3))[0x1]['children'][0x3][_0x533b7b(0x22b)]!=langShinko[0xf]&&_0x572325[_0x533b7b(0x272)](_0x533b7b(0x1f3))[0x1][_0x533b7b(0x218)][0x2][_0x533b7b(0x22b)]!=langShinko[0x10]&&(incomingRes[_0x566bc2]==undefined&&(incomingRes[_0x566bc2]={'wood':0x0,'stone':0x0,'iron':0x0}),_0x5cce02['wood']!=undefined&&(incomingRes[_0x566bc2][_0x533b7b(0x20a)]+=parseInt(_0x5cce02[_0x533b7b(0x20a)])),_0x5cce02[_0x533b7b(0x1af)]!=undefined&&(incomingRes[_0x566bc2]['stone']+=parseInt(_0x5cce02[_0x533b7b(0x1af)])),_0x5cce02[_0x533b7b(0x1fa)]!=undefined&&(incomingRes[_0x566bc2][_0x533b7b(0x1fa)]+=parseInt(_0x5cce02[_0x533b7b(0x1fa)])));}$[_0x533b7b(0x19d)](URLProd,function(){var _0x460a15=_0x533b7b;console[_0x460a15(0x234)](_0x460a15(0x2ac));})[_0x533b7b(0x209)](function(_0xd9376a){var _0x478b32=_0x533b7b;testPage=_0xd9376a,uniVillage=$(_0xd9376a)[_0x478b32(0x272)](_0x478b32(0x1ba));uniVillage[_0x478b32(0x1b3)]>0x0?uniRow=uniVillage[_0x478b32(0x2d5)]('tr')[_0x478b32(0x206)]()-0x1:uniRow=-0x1;if($('#mobileHeader')[0x0]){console[_0x478b32(0x234)](_0x478b32(0x23a)),allWoodObjects=$(_0xd9376a)['find']('.res.mwood,.warn_90.mwood,.warn.mwood'),allClayObjects=$(_0xd9376a)[_0x478b32(0x272)]('.res.mstone,.warn_90.mstone,.warn.mstone'),allIronObjects=$(_0xd9376a)[_0x478b32(0x272)](_0x478b32(0x2e1)),allWarehouses=$(_0xd9376a)[_0x478b32(0x272)](_0x478b32(0x22d)),allVillages=$(_0xd9376a)[_0x478b32(0x272)]('.quickedit-vn'),allFarms=$(_0xd9376a)[_0x478b32(0x272)]('.header.population'),allMerchants=$(_0xd9376a)[_0x478b32(0x272)]('#production_table\x20a[href*=\x22market\x22]'),productionTable=$(_0xd9376a)['find'](_0x478b32(0x2bf));uniRow>=0x0&&(allVillages[_0x478b32(0x250)](uniRow,0x1),allWoodObjects[_0x478b32(0x250)](uniRow,0x1),allClayObjects[_0x478b32(0x250)](uniRow,0x1),allIronObjects[_0x478b32(0x250)](uniRow,0x1),allWarehouses[_0x478b32(0x250)](uniRow,0x1),allFarms[_0x478b32(0x250)](uniRow,0x1),allMerchants[_0x478b32(0x250)](uniRow,0x1),productionTable[_0x478b32(0x250)](uniRow,0x1));for(var _0x1f6699=0x0;_0x1f6699<allWoodObjects[_0x478b32(0x1b3)];_0x1f6699++){n=allWoodObjects[_0x1f6699][_0x478b32(0x252)],n=n[_0x478b32(0x1c9)](/\./g,'')[_0x478b32(0x1c9)](',',''),allWoodTotals[_0x478b32(0x1cd)](n),n=allClayObjects[_0x1f6699][_0x478b32(0x252)],n=n[_0x478b32(0x1c9)](/\./g,'')[_0x478b32(0x1c9)](',',''),allClayTotals[_0x478b32(0x1cd)](n),n=allIronObjects[_0x1f6699]['textContent'],n=n[_0x478b32(0x1c9)](/\./g,'')['replace'](',',''),allIronTotals['push'](n);}for(let _0x3fb0c1=0x0;_0x3fb0c1<allVillages[_0x478b32(0x1b3)];_0x3fb0c1++){farmSpaceUsed[_0x478b32(0x1cd)](allFarms[_0x3fb0c1][_0x478b32(0x2ae)][_0x478b32(0x22b)][_0x478b32(0x2d3)](/(\d*)\/(\d*)/)[0x1]),farmSpaceTotal['push'](allFarms[_0x3fb0c1][_0x478b32(0x2ae)][_0x478b32(0x22b)][_0x478b32(0x2d3)](/(\d*)\/(\d*)/)[0x2]),warehouseCapacity[_0x478b32(0x1cd)](allWarehouses[_0x3fb0c1][_0x478b32(0x2ae)][_0x478b32(0x22b)]),availableMerchants[_0x478b32(0x1cd)](allMerchants[_0x3fb0c1][_0x478b32(0x22b)]),totalMerchants[_0x478b32(0x1cd)](_0x478b32(0x1a8)),villagePoints[_0x478b32(0x1cd)](productionTable[_0x3fb0c1*0x2+0x1]['innerText'][_0x478b32(0x1c9)](/\./g,'')[_0x478b32(0x1c9)](',',''));}}else{console[_0x478b32(0x234)](_0x478b32(0x2b0)),allWoodObjects=$(_0xd9376a)[_0x478b32(0x272)](_0x478b32(0x2de)),allClayObjects=$(_0xd9376a)[_0x478b32(0x272)](_0x478b32(0x2a5)),allIronObjects=$(_0xd9376a)[_0x478b32(0x272)](_0x478b32(0x1f8)),allVillages=$(_0xd9376a)[_0x478b32(0x272)]('.quickedit-vn');uniRow>=0x0&&(allVillages['splice'](uniRow,0x1),allWoodObjects[_0x478b32(0x250)](uniRow,0x1),allClayObjects[_0x478b32(0x250)](uniRow,0x1),allIronObjects['splice'](uniRow,0x1));for(let _0x38f4e0=0x0;_0x38f4e0<allWoodObjects[_0x478b32(0x1b3)];_0x38f4e0++){n=allWoodObjects[_0x38f4e0]['textContent'],n=n[_0x478b32(0x1c9)](/\./g,'')['replace'](',',''),allWoodTotals[_0x478b32(0x1cd)](n),n=allClayObjects[_0x38f4e0][_0x478b32(0x252)],n=n[_0x478b32(0x1c9)](/\./g,'')[_0x478b32(0x1c9)](',',''),allClayTotals[_0x478b32(0x1cd)](n),n=allIronObjects[_0x38f4e0][_0x478b32(0x252)],n=n['replace'](/\./g,'')[_0x478b32(0x1c9)](',',''),allIronTotals[_0x478b32(0x1cd)](n);}for(let _0xe15437=0x0;_0xe15437<allVillages['length'];_0xe15437++){warehouseCapacity[_0x478b32(0x1cd)](allIronObjects[_0xe15437][_0x478b32(0x2ae)][_0x478b32(0x21c)][_0x478b32(0x1db)]),availableMerchants[_0x478b32(0x1cd)](allIronObjects[_0xe15437][_0x478b32(0x2ae)][_0x478b32(0x21c)][_0x478b32(0x21c)][_0x478b32(0x22b)][_0x478b32(0x2d3)](/(\d*)\/(\d*)/)[0x1]),totalMerchants['push'](allIronObjects[_0xe15437][_0x478b32(0x2ae)][_0x478b32(0x21c)]['nextElementSibling'][_0x478b32(0x22b)][_0x478b32(0x2d3)](/(\d*)\/(\d*)/)[0x2]),farmSpaceUsed[_0x478b32(0x1cd)](allIronObjects[_0xe15437]['parentElement']['nextElementSibling']['nextElementSibling'][_0x478b32(0x21c)][_0x478b32(0x22b)]['match'](/(\d*)\/(\d*)/)[0x1]),farmSpaceTotal[_0x478b32(0x1cd)](allIronObjects[_0xe15437]['parentElement'][_0x478b32(0x21c)][_0x478b32(0x21c)][_0x478b32(0x21c)][_0x478b32(0x22b)][_0x478b32(0x2d3)](/(\d*)\/(\d*)/)[0x2]),villagePoints[_0x478b32(0x1cd)](allWoodObjects[_0xe15437][_0x478b32(0x2ae)][_0x478b32(0x2a2)][_0x478b32(0x22b)][_0x478b32(0x1c9)](/\./g,'')[_0x478b32(0x1c9)](',',''));}}for(let _0x46d14f=0x0;_0x46d14f<allVillages[_0x478b32(0x1b3)];_0x46d14f++){villagesData['push']({'id':allVillages[_0x46d14f][_0x478b32(0x21a)]['id'],'points':villagePoints[_0x46d14f],'url':allVillages[_0x46d14f]['children'][0x0][_0x478b32(0x218)][0x0][_0x478b32(0x233)],'name':allVillages[_0x46d14f][_0x478b32(0x22b)][_0x478b32(0x1be)](),'wood':allWoodTotals[_0x46d14f],'stone':allClayTotals[_0x46d14f],'iron':allIronTotals[_0x46d14f],'availableMerchants':availableMerchants[_0x46d14f],'totalMerchants':totalMerchants[_0x46d14f],'warehouseCapacity':warehouseCapacity[_0x46d14f],'farmSpaceUsed':farmSpaceUsed[_0x46d14f],'farmSpaceTotal':farmSpaceTotal[_0x46d14f]});}villagesData[_0x478b32(0x1d7)]((_0x2185ed,_0x58b71f)=>parseInt(_0x2185ed['points'])<parseInt(_0x58b71f[_0x478b32(0x1e2)])?0x1:-0x1),totalWood=0x0,totalStone=0x0,totalIron=0x0;for(let _0x2f437d in allWoodTotals){totalWood+=parseInt(allWoodTotals[_0x2f437d]);}for(let _0x2852ff in allClayTotals){totalStone+=parseInt(allClayTotals[_0x2852ff]);}for(let _0x4b8254 in allIronTotals){totalIron+=parseInt(allIronTotals[_0x4b8254]);}for(let _0x45233d=0x0;_0x45233d<Object[_0x478b32(0x26c)](incomingRes)[_0x478b32(0x1b3)];_0x45233d++){totalWood+=incomingRes[Object['keys'](incomingRes)[_0x45233d]][_0x478b32(0x20a)],totalStone+=incomingRes[Object['keys'](incomingRes)[_0x45233d]]['stone'],totalIron+=incomingRes[Object[_0x478b32(0x26c)](incomingRes)[_0x45233d]][_0x478b32(0x1fa)];}woodAverage=Math[_0x478b32(0x1bb)](totalWood/warehouseCapacity['length']),stoneAverage=Math[_0x478b32(0x1bb)](totalStone/warehouseCapacity[_0x478b32(0x1b3)]),ironAverage=Math[_0x478b32(0x1bb)](totalIron/warehouseCapacity['length']);if(settings[_0x478b32(0x1dc)]==![]){actualWoodAverage=woodAverage,actualStoneAverage=stoneAverage,actualIronAverage=ironAverage,consideredBuiltOut=0x0,actualTotalWood=totalWood,actualTotalStone=totalStone,actualTotalIron=totalIron,actualWHCountNeedsBalancingWood=warehouseCapacity[_0x478b32(0x1b3)],actualWHCountNeedsBalancingStone=warehouseCapacity[_0x478b32(0x1b3)],actualWHCountNeedsBalancingIron=warehouseCapacity[_0x478b32(0x1b3)];for(let _0x4c8217=0x0;_0x4c8217<warehouseCapacity[_0x478b32(0x1b3)];_0x4c8217++){actualWoodAverage=Math[_0x478b32(0x1bb)](actualTotalWood/actualWHCountNeedsBalancingWood),actualStoneAverage=Math[_0x478b32(0x1bb)](actualTotalStone/actualWHCountNeedsBalancingStone),actualIronAverage=Math[_0x478b32(0x1bb)](actualTotalIron/actualWHCountNeedsBalancingIron),warehouseCapacity[_0x4c8217]<actualWoodAverage&&(console[_0x478b32(0x234)](_0x478b32(0x2d9)+_0x4c8217+_0x478b32(0x2e2)),actualTotalWood-=actualWoodAverage-warehouseCapacity[_0x4c8217]*settings[_0x478b32(0x24d)],actualWHCountNeedsBalancingWood--),warehouseCapacity[_0x4c8217]<actualStoneAverage&&(console[_0x478b32(0x234)](_0x478b32(0x2d9)+_0x4c8217+'\x20too\x20small\x20for\x20average,\x20reducing\x20resources,\x20and\x20increasing\x20for\x20every\x20other\x20village'),actualTotalStone-=actualStoneAverage-warehouseCapacity[_0x4c8217]*settings['needsMorePercentage'],actualWHCountNeedsBalancingStone--),warehouseCapacity[_0x4c8217]<actualIronAverage&&(console[_0x478b32(0x234)](_0x478b32(0x2d9)+_0x4c8217+_0x478b32(0x2e2)),actualTotalIron-=actualIronAverage-warehouseCapacity[_0x4c8217]*settings[_0x478b32(0x24d)],actualWHCountNeedsBalancingIron--),console[_0x478b32(0x234)](_0x478b32(0x2cc)+actualWoodAverage+'-'+actualIronAverage+'-'+actualStoneAverage);}(actualWoodAverage>=0x55730||actualStoneAverage>=0x55730||actualIronAverage>=0x55730)&&alert('With\x20your\x20current\x20settings,\x20you\x20end\x20up\x20having\x20a\x20lot\x20of\x20excess\x20resources\x20that\x20can\x27t\x20be\x20assigned.\x20Consider\x20increasing\x20the\x20\x27highFarm\x27\x20setting\x20to\x20a\x20higher\x20value,\x20or\x20increasing\x20the\x20lowPoints\x20value\x20so\x20more\x20villages\x20are\x20included\x20to\x20have\x20priority.\x20This\x20is\x20usually\x20due\x20to\x20having\x20a\x20lot\x20of\x20villages\x20completely\x20built\x20out,\x20or\x20having\x20very\x20high\x20average\x20resources,\x20and\x20not\x20a\x20lot\x20of\x20villages\x20that\x20need\x20resources\x20badly.\x0aIf\x20you\x20just\x20want\x20to\x20balance\x20evenly,\x20set\x20highFarm\x20to\x2099999\x0a\x0aWith\x20the\x20current\x20settings,\x20you\x20are\x20trying\x20to\x20assign\x20an\x20average\x20of\x20'+numberWithCommas(actualWoodAverage)+'\x20wood,\x20'+numberWithCommas(actualStoneAverage)+'\x20clay,\x20and\x20'+numberWithCommas(actualIronAverage)+_0x478b32(0x2bb)+numberWithCommas(consideredBuiltOut)+_0x478b32(0x25c));}else actualWoodAverage=woodAverage,actualStoneAverage=stoneAverage,actualIronAverage=ironAverage;totalsAndAverages='<div\x20id=\x27totals\x27\x20class=\x27sophHeader\x27\x20border=0>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<table\x20id=\x27totalsAndAverages\x27\x20width=\x27100%\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tr\x20class=\x27sophRowA\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>'+langShinko[0x9]+':\x20'+numberWithCommas(totalWood)+_0x478b32(0x1f5)+langShinko[0xa]+':\x20'+numberWithCommas(totalStone)+_0x478b32(0x1f5)+langShinko[0xb]+':\x20'+numberWithCommas(totalIron)+'</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tr\x20class=\x27sophRowB\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>'+langShinko[0xc]+':\x20'+numberWithCommas(woodAverage)+_0x478b32(0x1f5)+langShinko[0xd]+':\x20'+numberWithCommas(stoneAverage)+_0x478b32(0x1f5)+langShinko[0xe]+':\x20'+numberWithCommas(ironAverage)+_0x478b32(0x20b)+numberWithCommas(actualWoodAverage)+_0x478b32(0x21d)+numberWithCommas(actualStoneAverage)+_0x478b32(0x1de)+numberWithCommas(actualIronAverage)+_0x478b32(0x293),$(_0x478b32(0x2a9))['eq'](0x0)[_0x478b32(0x246)](_0x478b32(0x24a)),$(_0x478b32(0x265))['eq'](0x0)[_0x478b32(0x246)](_0x478b32(0x24a));for(let _0x4d4b1a=0x0;_0x4d4b1a<villagesData['length'];_0x4d4b1a++){console['log'](_0x478b32(0x1e3),_0x478b32(0x2c6)),excessResources[_0x4d4b1a]=[],shortageResources[_0x4d4b1a]=[],villageID[_0x478b32(0x1cd)](villagesData[_0x4d4b1a]['id']),typeof incomingRes[villagesData[_0x4d4b1a]['id']]=='undefined'?(incomingWood=0x0,incomingStone=0x0,incomingIron=0x0):(incomingWood=incomingRes[villagesData[_0x4d4b1a]['id']][_0x478b32(0x20a)],incomingStone=incomingRes[villagesData[_0x4d4b1a]['id']][_0x478b32(0x1af)],incomingIron=incomingRes[villagesData[_0x4d4b1a]['id']][_0x478b32(0x1fa)]),console[_0x478b32(0x234)]('%cIncoming\x20resources:\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Wood:\x20'+incomingWood+_0x478b32(0x2c5)+incomingStone+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Iron:\x20'+incomingIron,_0x478b32(0x2d8)),actualWoodAverage<villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings['needsMorePercentage']?tempWood=parseInt(villagesData[_0x4d4b1a][_0x478b32(0x20a)])+incomingWood-actualWoodAverage:(console[_0x478b32(0x234)](_0x478b32(0x1e8)),tempWood=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings['needsMorePercentage']-incomingWood-parseInt(villagesData[_0x4d4b1a]['wood']))),actualStoneAverage<villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings[_0x478b32(0x24d)]?tempStone=parseInt(villagesData[_0x4d4b1a]['stone'])+incomingStone-actualStoneAverage:(console['log'](_0x478b32(0x1e8)),tempStone=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings['needsMorePercentage']-incomingStone-parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)]))),actualIronAverage<villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings['needsMorePercentage']?tempIron=parseInt(villagesData[_0x4d4b1a]['iron'])+incomingIron-actualIronAverage:(console[_0x478b32(0x234)]('Average\x20is\x20higher\x20than\x20capacity,\x20reduce'),tempIron=-Math['round'](villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings[_0x478b32(0x24d)]-incomingIron-parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)]))),console['log'](tempWood),console[_0x478b32(0x234)](tempStone),console[_0x478b32(0x234)](tempIron),(villagesData[_0x4d4b1a][_0x478b32(0x23b)]>settings['highFarm']||villagesData[_0x4d4b1a][_0x478b32(0x1e2)]>settings[_0x478b32(0x27d)])&&(console['log'](_0x478b32(0x1a9)+villagesData[_0x4d4b1a][_0x478b32(0x23b)]+'/'+villagesData[_0x4d4b1a][_0x478b32(0x215)]+_0x478b32(0x219)+villagesData[_0x4d4b1a][_0x478b32(0x296)]+_0x478b32(0x268)+villagesData[_0x4d4b1a][_0x478b32(0x1e2)]+'/'+settings['highPoints']+'.\x20Adjusting\x20what\x20we\x20leave\x20at\x20home\x20to\x20be\x20'+0x64*settings[_0x478b32(0x23f)]+'%'),parseInt(villagesData[_0x4d4b1a][_0x478b32(0x20a)])+incomingWood>settings[_0x478b32(0x23f)]*villagesData[_0x4d4b1a][_0x478b32(0x2e8)]&&(tempWood=Math[_0x478b32(0x1b2)](parseInt(villagesData[_0x4d4b1a][_0x478b32(0x20a)])+incomingWood-settings[_0x478b32(0x23f)]*villagesData[_0x4d4b1a]['warehouseCapacity'])),parseInt(villagesData[_0x4d4b1a]['stone'])+incomingStone>settings[_0x478b32(0x23f)]*villagesData[_0x4d4b1a][_0x478b32(0x2e8)]&&(tempStone=Math['round'](parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)])+incomingStone-settings[_0x478b32(0x23f)]*villagesData[_0x4d4b1a][_0x478b32(0x2e8)])),parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)])+incomingIron>settings['builtOutPercentage']*villagesData[_0x4d4b1a][_0x478b32(0x2e8)]&&(tempIron=Math['round'](parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)])+incomingIron-settings['builtOutPercentage']*villagesData[_0x4d4b1a][_0x478b32(0x2e8)]))),villagesData[_0x4d4b1a][_0x478b32(0x1e2)]<settings[_0x478b32(0x2be)]&&(console[_0x478b32(0x234)](villagesData[_0x4d4b1a][_0x478b32(0x296)]+'\x20('+villagesData[_0x4d4b1a][_0x478b32(0x1e2)]+')'+_0x478b32(0x1f6)+settings[_0x478b32(0x24d)]*0x64+_0x478b32(0x1e1)),tempWood=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings[_0x478b32(0x24d)]-parseInt(villagesData[_0x4d4b1a][_0x478b32(0x20a)])-incomingWood),tempStone=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings[_0x478b32(0x24d)]-parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)])-incomingStone),tempIron=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a][_0x478b32(0x2e8)]*settings[_0x478b32(0x24d)]-parseInt(villagesData[_0x4d4b1a]['iron'])-incomingIron)),incomingWood+parseInt(villagesData[_0x4d4b1a]['wood'])>villagesData[_0x4d4b1a][_0x478b32(0x2e8)]&&(console[_0x478b32(0x234)]('Too\x20much\x20wood\x20incoming\x20in\x20'+villagesData[_0x4d4b1a][_0x478b32(0x296)]),tempWood=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a]['warehouseCapacity']*settings[_0x478b32(0x24d)]-incomingWood-parseInt(villagesData[_0x4d4b1a]['wood']))),incomingStone+parseInt(villagesData[_0x4d4b1a]['stone'])>villagesData[_0x4d4b1a][_0x478b32(0x2e8)]&&(console[_0x478b32(0x234)]('Too\x20much\x20clay\x20incoming\x20in\x20'+villagesData[_0x4d4b1a][_0x478b32(0x296)]),tempStone=-Math['round'](villagesData[_0x4d4b1a]['warehouseCapacity']*settings[_0x478b32(0x24d)]-incomingStone-parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)]))),incomingIron+parseInt(villagesData[_0x4d4b1a]['iron'])>villagesData[_0x4d4b1a]['warehouseCapacity']&&(console[_0x478b32(0x234)]('Too\x20much\x20iron\x20incoming\x20in\x20'+villagesData[_0x4d4b1a][_0x478b32(0x296)]),tempIron=-Math[_0x478b32(0x1b2)](villagesData[_0x4d4b1a]['warehouseCapacity']*settings['needsMorePercentage']-incomingIron-parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)]))),tempWood>0x0&&tempWood>parseInt(villagesData[_0x4d4b1a][_0x478b32(0x20a)])&&(console[_0x478b32(0x234)](_0x478b32(0x1ce)),tempWood=parseInt(villagesData[_0x4d4b1a]['wood'])),tempStone>0x0&&tempStone>parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)])&&(console[_0x478b32(0x234)](_0x478b32(0x1ce)),tempStone=parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)])),tempIron>0x0&&tempIron>parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)])&&(console[_0x478b32(0x234)](_0x478b32(0x1ce)),tempIron=parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)])),console[_0x478b32(0x234)]('Village:\x20'+villagesData[_0x4d4b1a]['name']+'\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Max\x20final\x20capacity:\x20'+villagesData[_0x4d4b1a]['warehouseCapacity']*settings['needsMorePercentage']+'\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Warehouse\x20capacity:\x20'+villagesData[_0x4d4b1a][_0x478b32(0x2e8)]+'\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Wood:\x20'+parseInt(villagesData[_0x4d4b1a][_0x478b32(0x20a)])+'\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Clay:\x20'+parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1af)])+'\x0a'+_0x478b32(0x2cf)+parseInt(villagesData[_0x4d4b1a][_0x478b32(0x1fa)])),console[_0x478b32(0x234)](_0x478b32(0x283)+tempWood+',\x20clayadjustement:\x20'+tempStone+_0x478b32(0x243)+tempIron),tempWood>0x0?(excessResources[_0x4d4b1a][_0x478b32(0x1cd)]({'wood':Math[_0x478b32(0x1bb)](tempWood/0x3e8)*0x3e8}),shortageResources[_0x4d4b1a][_0x478b32(0x1cd)]({'wood':0x0})):(shortageResources[_0x4d4b1a][_0x478b32(0x1cd)]({'wood':Math[_0x478b32(0x1bb)](-tempWood/0x3e8)*0x3e8}),excessResources[_0x4d4b1a]['push']({'wood':0x0})),tempStone>0x0?(excessResources[_0x4d4b1a][_0x478b32(0x1cd)]({'stone':Math[_0x478b32(0x1bb)](tempStone/0x3e8)*0x3e8}),shortageResources[_0x4d4b1a][_0x478b32(0x1cd)]({'stone':0x0})):(shortageResources[_0x4d4b1a][_0x478b32(0x1cd)]({'stone':Math[_0x478b32(0x1bb)](-tempStone/0x3e8)*0x3e8}),excessResources[_0x4d4b1a]['push']({'stone':0x0})),tempIron>0x0?(excessResources[_0x4d4b1a]['push']({'iron':Math[_0x478b32(0x1bb)](tempIron/0x3e8)*0x3e8}),shortageResources[_0x4d4b1a][_0x478b32(0x1cd)]({'iron':0x0})):(shortageResources[_0x4d4b1a]['push']({'iron':Math[_0x478b32(0x1bb)](-tempIron/0x3e8)*0x3e8}),excessResources[_0x4d4b1a][_0x478b32(0x1cd)]({'iron':0x0}));}for(let _0x403ac5=0x0;_0x403ac5<excessResources['length'];_0x403ac5++){tempAllExcessCombined=parseInt(Math[_0x478b32(0x1bb)](excessResources[_0x403ac5][0x0][_0x478b32(0x20a)]/0x3e8)*0x3e8)+parseInt(Math[_0x478b32(0x1bb)](excessResources[_0x403ac5][0x1][_0x478b32(0x1af)]/0x3e8)*0x3e8)+parseInt(Math['floor'](excessResources[_0x403ac5][0x2][_0x478b32(0x1fa)]/0x3e8)*0x3e8),tempAllExcessCombined>0x0&&(tempMaxMerchantsNeeded=Math[_0x478b32(0x1bb)](tempAllExcessCombined/0x3e8),tempMaxMerchantsNeeded<villagesData[_0x403ac5][_0x478b32(0x1b5)]?merchantOrders[_0x478b32(0x1cd)]({'villageID':villagesData[_0x403ac5]['id'],'x':villagesData[_0x403ac5]['name'][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x1],'y':villagesData[_0x403ac5][_0x478b32(0x296)][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x2],'wood':Math[_0x478b32(0x1bb)](excessResources[_0x403ac5][0x0]['wood']/0x3e8),'stone':Math[_0x478b32(0x1bb)](excessResources[_0x403ac5][0x1][_0x478b32(0x1af)]/0x3e8),'iron':Math[_0x478b32(0x1bb)](excessResources[_0x403ac5][0x2][_0x478b32(0x1fa)]/0x3e8)}):(tempPercWood=excessResources[_0x403ac5][0x0][_0x478b32(0x20a)]/tempAllExcessCombined,tempPercStone=excessResources[_0x403ac5][0x1][_0x478b32(0x1af)]/tempAllExcessCombined,tempPercIron=excessResources[_0x403ac5][0x2]['iron']/tempAllExcessCombined,merchantOrders[_0x478b32(0x1cd)]({'villageID':villagesData[_0x403ac5]['id'],'x':villagesData[_0x403ac5]['name'][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x1],'y':villagesData[_0x403ac5][_0x478b32(0x296)][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x2],'wood':Math[_0x478b32(0x1bb)](tempPercWood*villagesData[_0x403ac5]['availableMerchants']),'stone':Math[_0x478b32(0x1bb)](tempPercStone*villagesData[_0x403ac5][_0x478b32(0x1b5)]),'iron':Math['floor'](tempPercIron*villagesData[_0x403ac5]['availableMerchants'])})));}for(let _0x139ddd=shortageResources[_0x478b32(0x1b3)]-0x1;_0x139ddd>=0x0;_0x139ddd--){$(_0x478b32(0x241))['css']('width',(shortageResources[_0x478b32(0x1b3)]-_0x139ddd)/shortageResources['length']*0x64+'%');for(let _0x3e2d55=0x0;_0x3e2d55<merchantOrders[_0x478b32(0x1b3)];_0x3e2d55++){merchantOrders[_0x3e2d55][_0x478b32(0x29b)]=checkDistance(merchantOrders[_0x3e2d55]['x'],merchantOrders[_0x3e2d55]['y'],villagesData[_0x139ddd][_0x478b32(0x296)][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x1],villagesData[_0x139ddd][_0x478b32(0x296)][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x2]);}merchantOrders['sort'](function(_0x42d50d,_0x46b3c1){var _0x8477d6=_0x478b32;return _0x42d50d[_0x8477d6(0x29b)]-_0x46b3c1[_0x8477d6(0x29b)];});if(shortageResources[_0x139ddd][0x0][_0x478b32(0x20a)]<=0x0){}else while(shortageResources[_0x139ddd][0x0][_0x478b32(0x20a)]>0x0){var _0x38a181=0x0;for(let _0x51f96a=0x0;_0x51f96a<merchantOrders[_0x478b32(0x1b3)];_0x51f96a++){_0x38a181+=merchantOrders[_0x51f96a][_0x478b32(0x20a)];merchantOrders[_0x51f96a][_0x478b32(0x20a)]>0x0&&(shortageResources[_0x139ddd][0x0]['wood']<=merchantOrders[_0x51f96a][_0x478b32(0x20a)]*0x3e8&&(links[_0x478b32(0x1cd)]({'source':merchantOrders[_0x51f96a][_0x478b32(0x249)],'target':villageID[_0x139ddd],'wood':shortageResources[_0x139ddd][0x0][_0x478b32(0x20a)]}),merchantOrders[_0x51f96a][_0x478b32(0x20a)]-=shortageResources[_0x139ddd][0x0][_0x478b32(0x20a)]/0x3e8,shortageResources[_0x139ddd][0x0][_0x478b32(0x20a)]=0x0),shortageResources[_0x139ddd][0x0]['wood']>merchantOrders[_0x51f96a][_0x478b32(0x20a)]*0x3e8&&(links['push']({'source':merchantOrders[_0x51f96a][_0x478b32(0x249)],'target':villageID[_0x139ddd],'wood':merchantOrders[_0x51f96a]['wood']*0x3e8}),shortageResources[_0x139ddd][0x0]['wood']-=merchantOrders[_0x51f96a][_0x478b32(0x20a)]*0x3e8,merchantOrders[_0x51f96a][_0x478b32(0x20a)]=0x0));if(shortageResources[_0x139ddd][0x0][_0x478b32(0x20a)]<=0x0)break;if(_0x51f96a==merchantOrders[_0x478b32(0x1b3)]-0x1&&shortageResources[_0x139ddd][0x0]['wood']>0x0){console[_0x478b32(0x234)]('Done\x20with\x20this\x20cycle'),_0x38a181=0x0;break;}}if(_0x38a181==0x0){_0x139ddd=0x0;break;}}}for(let _0x46e05b=shortageResources['length']-0x1;_0x46e05b>=0x0;_0x46e05b--){$('#progress')['css'](_0x478b32(0x211),(shortageResources[_0x478b32(0x1b3)]-_0x46e05b)/shortageResources['length']*0x64+'%');for(var _0x482492=0x0;_0x482492<merchantOrders[_0x478b32(0x1b3)];_0x482492++){merchantOrders[_0x482492][_0x478b32(0x29b)]=checkDistance(merchantOrders[_0x482492]['x'],merchantOrders[_0x482492]['y'],villagesData[_0x46e05b][_0x478b32(0x296)][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x1],villagesData[_0x46e05b][_0x478b32(0x296)][_0x478b32(0x2d3)](/(\d+)\|(\d+)/)[0x2]);}merchantOrders[_0x478b32(0x1d7)](function(_0x2cc28f,_0x4b7b8b){var _0x84d871=_0x478b32;return _0x2cc28f[_0x84d871(0x29b)]-_0x4b7b8b[_0x84d871(0x29b)];});if(shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]<=0x0){}else while(shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]>0x0){console['log'](_0x46e05b);var _0x553722=0x0;for(var _0x1ad0df=0x0;_0x1ad0df<merchantOrders[_0x478b32(0x1b3)];_0x1ad0df++){_0x553722+=merchantOrders[_0x1ad0df][_0x478b32(0x1af)];merchantOrders[_0x1ad0df][_0x478b32(0x1af)]>0x0&&(shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]<=merchantOrders[_0x1ad0df]['stone']*0x3e8&&(links['push']({'source':merchantOrders[_0x1ad0df][_0x478b32(0x249)],'target':villageID[_0x46e05b],'stone':shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]}),merchantOrders[_0x1ad0df][_0x478b32(0x1af)]-=shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]/0x3e8,shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]=0x0),shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]>merchantOrders[_0x1ad0df]['stone']*0x3e8&&(links[_0x478b32(0x1cd)]({'source':merchantOrders[_0x1ad0df][_0x478b32(0x249)],'target':villageID[_0x46e05b],'stone':merchantOrders[_0x1ad0df][_0x478b32(0x1af)]*0x3e8}),shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]-=merchantOrders[_0x1ad0df]['stone']*0x3e8,merchantOrders[_0x1ad0df][_0x478b32(0x1af)]=0x0));if(shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]<=0x0)break;if(_0x1ad0df==merchantOrders[_0x478b32(0x1b3)]-0x1&&shortageResources[_0x46e05b][0x1][_0x478b32(0x1af)]>0x0){console[_0x478b32(0x234)](_0x478b32(0x1cb)),_0x553722=0x0;break;}}if(_0x553722==0x0){_0x46e05b=0x0;break;}}}for(let _0x2dcc57=shortageResources['length']-0x1;_0x2dcc57>=0x0;_0x2dcc57--){$(_0x478b32(0x241))[_0x478b32(0x29e)](_0x478b32(0x211),(shortageResources[_0x478b32(0x1b3)]-_0x2dcc57)/shortageResources[_0x478b32(0x1b3)]*0x64+'%');for(let _0x4c6176=0x0;_0x4c6176<merchantOrders[_0x478b32(0x1b3)];_0x4c6176++){merchantOrders[_0x4c6176][_0x478b32(0x29b)]=checkDistance(merchantOrders[_0x4c6176]['x'],merchantOrders[_0x4c6176]['y'],villagesData[_0x2dcc57][_0x478b32(0x296)]['match'](/(\d+)\|(\d+)/)[0x1],villagesData[_0x2dcc57][_0x478b32(0x296)]['match'](/(\d+)\|(\d+)/)[0x2]);}merchantOrders['sort'](function(_0xd33280,_0x264e3d){var _0x1d29b6=_0x478b32;return _0xd33280['distance']-_0x264e3d[_0x1d29b6(0x29b)];});if(shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]<=0x0){}else while(shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]>0x0){var _0x30c2f0=0x0;for(let _0x2c65db=0x0;_0x2c65db<merchantOrders[_0x478b32(0x1b3)];_0x2c65db++){_0x30c2f0+=merchantOrders[_0x2c65db]['iron'];merchantOrders[_0x2c65db]['iron']>0x0&&(shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]<=merchantOrders[_0x2c65db][_0x478b32(0x1fa)]*0x3e8&&(links[_0x478b32(0x1cd)]({'source':merchantOrders[_0x2c65db][_0x478b32(0x249)],'target':villageID[_0x2dcc57],'iron':shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]}),merchantOrders[_0x2c65db][_0x478b32(0x1fa)]-=shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]/0x3e8,shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]=0x0),shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]>merchantOrders[_0x2c65db][_0x478b32(0x1fa)]*0x3e8&&(links[_0x478b32(0x1cd)]({'source':merchantOrders[_0x2c65db][_0x478b32(0x249)],'target':villageID[_0x2dcc57],'iron':merchantOrders[_0x2c65db][_0x478b32(0x1fa)]*0x3e8}),shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]-=merchantOrders[_0x2c65db]['iron']*0x3e8,merchantOrders[_0x2c65db][_0x478b32(0x1fa)]=0x0));if(shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]<=0x0)break;if(_0x2c65db==merchantOrders[_0x478b32(0x1b3)]-0x1&&shortageResources[_0x2dcc57][0x2][_0x478b32(0x1fa)]>0x0){console[_0x478b32(0x234)](_0x478b32(0x1cb)),_0x30c2f0=0x0;break;}}if(_0x30c2f0==0x0){_0x2dcc57=0x0;break;}}}$(_0x478b32(0x241))['remove'](),htmlCode=_0x478b32(0x1ed)+totalsAndAverages+_0x478b32(0x1a1)+settings[_0x478b32(0x2be)]+'\x22\x20class=\x22slider\x22\x20name=\x22lowPoints\x22\x20oninput=\x22sliderChange(\x27lowPoints\x27,this.value)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<\x20<output\x20id=\x22lowPoints\x22></output>\x20points</td></tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20style=\x22padding:\x206px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20for=\x22highPoints\x22>Finished\x20villages</label></td><td\x20style=\x22padding:\x206px;\x22><input\x20type=\x22range\x22\x20min=\x220\x22\x20max=\x2213000\x22\x20step=\x2210\x22\x20value=\x22'+settings['highPoints']+'\x22\x20class=\x22slider\x22\x20name=\x22highPoints\x22\x20oninput=\x22sliderChange(\x27highPoints\x27,this.value)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>\x20<output\x20id=\x22highPoints\x22></output>\x20points</td></tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20style=\x22padding:\x206px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20for=\x22highFarm\x22>High\x20farm</label></td><td\x20style=\x22padding:\x206px;\x22><input\x20type=\x22range\x22\x20min=\x220\x22\x20max=\x2233000\x22\x20step=\x2210\x22\x20value=\x22'+settings[_0x478b32(0x1a4)]+'\x22\x20class=\x22slider\x22\x20name=\x22highFarm\x22\x20oninput=\x22sliderChange(\x27highFarm\x27,this.value)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<output\x20id=\x22highFarm\x22></output>\x20pop</td></tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20style=\x22padding:\x206px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20for=\x22builtOutPercentage\x22>WH\x20capacity\x20finished\x20villages:\x20</label></td><td\x20style=\x22padding:\x206px;\x22><input\x20type=\x22range\x22\x20min=\x220\x22\x20max=\x221\x22\x20step=\x220.01\x22\x20value=\x22'+settings[_0x478b32(0x23f)]+_0x478b32(0x1f4)+settings[_0x478b32(0x24d)]+_0x478b32(0x248)+langShinko[0x0]+_0x478b32(0x1aa)+langShinko[0x1]+_0x478b32(0x295)+langShinko[0x2]+_0x478b32(0x1cf)+langShinko[0x3]+'</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22sophHeader\x22\x20width=\x2210%\x22\x20style=\x22text-align:center\x22>'+langShinko[0x4]+'</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22sophHeader\x22\x20width=\x2210%\x22\x20style=\x22text-align:center\x22>'+langShinko[0x5]+_0x478b32(0x2c1)+langShinko[0x6]+'</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22sophHeader\x22\x20width=\x2210%\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<font\x20size=\x221\x22>'+langShinko[0x8]+_0x478b32(0x1df),$('#content_value')['eq'](0x0)['prepend'](htmlCode),is_mobile==!![]&&$(_0x478b32(0x231))['eq'](0x0)[_0x478b32(0x246)](htmlCode),$(_0x478b32(0x247))[_0x478b32(0x210)]('checked',settings[_0x478b32(0x1dc)]),$('#lowPoints')['val'](settings[_0x478b32(0x2be)]),$(_0x478b32(0x263))[_0x478b32(0x25a)](settings['highPoints']),$(_0x478b32(0x2b3))[_0x478b32(0x25a)](settings[_0x478b32(0x1a4)]),$(_0x478b32(0x2bd))[_0x478b32(0x25a)](settings[_0x478b32(0x23f)]),$(_0x478b32(0x1b6))[_0x478b32(0x25a)](settings[_0x478b32(0x24d)]),makeThingsCollapsible(),_0x27ff95();})[_0x533b7b(0x26a)](function(){var _0x165ef7=_0x533b7b;console[_0x165ef7(0x234)](_0x165ef7(0x1a6));})[_0x533b7b(0x2b2)](function(){console['log']('finished');});});function _0x27ff95(){var _0x2c7e39=_0xda6a;console[_0x2c7e39(0x234)](_0x2c7e39(0x221));for(let _0x1120ff=0x0;_0x1120ff<links['length'];_0x1120ff++){if(links[_0x1120ff][_0x2c7e39(0x20a)]==undefined)links[_0x1120ff][_0x2c7e39(0x20a)]=0x0;if(links[_0x1120ff][_0x2c7e39(0x1af)]==undefined)links[_0x1120ff][_0x2c7e39(0x1af)]=0x0;if(links[_0x1120ff][_0x2c7e39(0x1fa)]==undefined)links[_0x1120ff][_0x2c7e39(0x1fa)]=0x0;}console['log'](_0x2c7e39(0x1ac));for(let _0x2bbb0e=0x0;_0x2bbb0e<links[_0x2c7e39(0x1b3)];_0x2bbb0e++){for(let _0x1339c2=0x0;_0x1339c2<links['length'];_0x1339c2++){links[_0x2bbb0e][_0x2c7e39(0x20f)]==links[_0x1339c2]['source']&&links[_0x2bbb0e][_0x2c7e39(0x1f2)]==links[_0x1339c2]['target']&&_0x2bbb0e!=_0x1339c2&&(links[_0x2bbb0e][_0x2c7e39(0x20a)]+=parseInt(links[_0x1339c2]['wood']),links[_0x1339c2][_0x2c7e39(0x20a)]=0x0,links[_0x2bbb0e][_0x2c7e39(0x1af)]+=parseInt(links[_0x1339c2][_0x2c7e39(0x1af)]),links[_0x1339c2]['stone']=0x0,links[_0x2bbb0e][_0x2c7e39(0x1fa)]+=parseInt(links[_0x1339c2][_0x2c7e39(0x1fa)]),links[_0x1339c2][_0x2c7e39(0x1fa)]=0x0);}}console['log'](_0x2c7e39(0x2ce));for(let _0x1d3d8d=0x0;_0x1d3d8d<links[_0x2c7e39(0x1b3)];_0x1d3d8d++){links[_0x1d3d8d][_0x2c7e39(0x20a)]+links[_0x1d3d8d][_0x2c7e39(0x1af)]+links[_0x1d3d8d][_0x2c7e39(0x1fa)]==0x0&&delete links[_0x1d3d8d];}console['log'](_0x2c7e39(0x280));for(let _0x1fe681=0x0;_0x1fe681<Object[_0x2c7e39(0x26c)](links)[_0x2c7e39(0x1b3)];_0x1fe681++){cleanLinks[_0x2c7e39(0x1cd)](links[Object[_0x2c7e39(0x26c)](links)[_0x1fe681]]);}console[_0x2c7e39(0x234)]('pushed\x20to\x20clean\x20array'),cleanLinks=addDistanceToArray(cleanLinks),listHTML='',cleanLinks[_0x2c7e39(0x1d7)](function(_0xbe6c84,_0x1343e7){var _0x360d8c=_0x2c7e39;return _0xbe6c84[_0x360d8c(0x29b)]-_0x1343e7['distance'];});for(let _0x5683f3=0x0;_0x5683f3<cleanLinks[_0x2c7e39(0x1b3)];_0x5683f3++){console[_0x2c7e39(0x234)](_0x2c7e39(0x287)+_0x5683f3+_0x2c7e39(0x267));_0x5683f3%0x2==0x0?tempRow=_0x2c7e39(0x294)+_0x5683f3+_0x2c7e39(0x1d6):tempRow=_0x2c7e39(0x294)+_0x5683f3+'\x27\x20class=\x27sophRowA\x27';for(let _0x157da5 in villagesData){villagesData[_0x157da5]['id']==cleanLinks[_0x5683f3][_0x2c7e39(0x20f)]&&(sourceName=villagesData[_0x157da5][_0x2c7e39(0x296)],sourceURL=villagesData[_0x157da5][_0x2c7e39(0x26b)]);}for(let _0x10c16a in villagesData){villagesData[_0x10c16a]['id']==cleanLinks[_0x5683f3][_0x2c7e39(0x1f2)]&&(targetName=villagesData[_0x10c16a]['name'],targetURL=villagesData[_0x10c16a][_0x2c7e39(0x26b)],targetWood=villagesData[_0x10c16a][_0x2c7e39(0x20a)],targetStone=villagesData[_0x10c16a][_0x2c7e39(0x1af)],targetIron=villagesData[_0x10c16a][_0x2c7e39(0x1fa)],targetCapacity=villagesData[_0x10c16a]['warehouseCapacity']);}listHTML+=_0x2c7e39(0x278)+tempRow+_0x2c7e39(0x257)+sourceURL+_0x2c7e39(0x275)+sourceName+_0x2c7e39(0x2a7)+targetURL+_0x2c7e39(0x1f0)+targetWood+_0x2c7e39(0x1c3)+targetStone+' Iron\x20in\x20WH:\x20'+targetIron+_0x2c7e39(0x29c)+targetCapacity+'\x22>'+targetName+_0x2c7e39(0x1d4)+cleanLinks[_0x5683f3][_0x2c7e39(0x29b)]+'</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20width=\x2250\x22\x20style=\x22text-align:center\x22>'+cleanLinks[_0x5683f3]['wood']+_0x2c7e39(0x1b4)+cleanLinks[_0x5683f3][_0x2c7e39(0x1af)]+'<span\x20class=\x22icon\x20header\x20stone\x22>\x20</span></td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20width=\x2250\x22\x20style=\x22text-align:center\x22>'+cleanLinks[_0x5683f3][_0x2c7e39(0x1fa)]+_0x2c7e39(0x23e)+langShinko[0x7]+_0x2c7e39(0x251)+cleanLinks[_0x5683f3]['source']+','+cleanLinks[_0x5683f3][_0x2c7e39(0x1f2)]+','+cleanLinks[_0x5683f3][_0x2c7e39(0x20a)]+','+cleanLinks[_0x5683f3][_0x2c7e39(0x1af)]+','+cleanLinks[_0x5683f3][_0x2c7e39(0x1fa)]+','+_0x5683f3+_0x2c7e39(0x271);}$('#appendHere')['eq'](0x0)[_0x2c7e39(0x2b6)](listHTML),$(_0x2c7e39(0x1f9))[0x0][_0x2c7e39(0x2d1)]();for(let _0x2cfe34=0x0;_0x2cfe34<shortageResources[_0x2c7e39(0x1b3)];_0x2cfe34++){parseInt(shortageResources[_0x2cfe34][0x0]['wood'])+parseInt(shortageResources[_0x2cfe34][0x1][_0x2c7e39(0x1af)])+parseInt(shortageResources[_0x2cfe34][0x2][_0x2c7e39(0x1fa)])!=0x0&&stillShortage[_0x2c7e39(0x1cd)]([villagesData[_0x2cfe34][_0x2c7e39(0x296)],shortageResources[_0x2cfe34]]);}for(let _0x17a56c=0x0;_0x17a56c<excessResources[_0x2c7e39(0x1b3)];_0x17a56c++){parseInt(excessResources[_0x17a56c][0x0]['wood'])+parseInt(excessResources[_0x17a56c][0x1][_0x2c7e39(0x1af)])+parseInt(excessResources[_0x17a56c][0x2]['iron'])!=0x0&&stillExcess['push']([villagesData[_0x17a56c][_0x2c7e39(0x296)],excessResources[_0x17a56c]]);}$('#totals')['eq'](0x0)['append'](_0x2c7e39(0x258)),console[_0x2c7e39(0x234)](_0x2c7e39(0x244));}}displayEverything();function checkDistance(_0x27f243,_0x2995f2,_0x4a1411,_0x5beb9c){var _0x29817a=_0x176e7d,_0x56f794=_0x27f243-_0x4a1411,_0x4f8c0b=_0x2995f2-_0x5beb9c,_0x1dce6e=Math[_0x29817a(0x1b2)](Math[_0x29817a(0x213)](_0x56f794,_0x4f8c0b));return _0x1dce6e;}function addDistanceToArray(_0x42368f){var _0x37e007=_0x176e7d;for(let _0x24a9ff=0x0;_0x24a9ff<_0x42368f['length'];_0x24a9ff++){for(let _0x983f in villagesData){villagesData[_0x983f]['id']==_0x42368f[_0x24a9ff][_0x37e007(0x20f)]&&(sourceName=villagesData[_0x983f][_0x37e007(0x296)],sourceURL=villagesData[_0x983f][_0x37e007(0x26b)]);}for(let _0x2471e8 in villagesData){villagesData[_0x2471e8]['id']==_0x42368f[_0x24a9ff][_0x37e007(0x1f2)]&&(targetName=villagesData[_0x2471e8]['name'],targetURL=villagesData[_0x2471e8][_0x37e007(0x26b)]);}_0x42368f[_0x24a9ff][_0x37e007(0x29b)]=checkDistance(sourceName[_0x37e007(0x2d3)](/(\d+)\|(\d+)/)[0x1],sourceName[_0x37e007(0x2d3)](/(\d+)\|(\d+)/)[0x2],targetName[_0x37e007(0x2d3)](/(\d+)\|(\d+)/)[0x1],targetName['match'](/(\d+)\|(\d+)/)[0x2]);}return _0x42368f;}function numberWithCommas(_0x45030f){var _0x2aee5b=_0x176e7d;_0x45030f=_0x45030f['toString']();var _0x4d014f=/(-?\d+)(\d{3})/;while(_0x4d014f[_0x2aee5b(0x1e6)](_0x45030f))_0x45030f=_0x45030f['replace'](_0x4d014f,_0x2aee5b(0x2e3));return _0x45030f;}function showStats(){var _0xce2b67=_0x176e7d;htmlStats=_0xce2b67(0x25d);for(let _0x5d6d42=0x0;_0x5d6d42<stillShortage[_0xce2b67(0x1b3)];_0x5d6d42++){console[_0xce2b67(0x234)]('Creating\x20line\x20'+_0x5d6d42+_0xce2b67(0x267)),_0x5d6d42%0x2==0x0?tempRow=_0xce2b67(0x294)+_0x5d6d42+_0xce2b67(0x1d6):tempRow=_0xce2b67(0x294)+_0x5d6d42+_0xce2b67(0x1fe),htmlStats+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<tr\x20'+tempRow+'\x20height=\x2240\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>'+stillShortage[_0x5d6d42][0x0]+'</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>'+stillShortage[_0x5d6d42][0x1][0x0]['wood']+_0xce2b67(0x2da)+stillShortage[_0x5d6d42][0x1][0x1]['stone']+_0xce2b67(0x2da)+stillShortage[_0x5d6d42][0x1][0x2][_0xce2b67(0x1fa)]+_0xce2b67(0x1a0);}htmlStats+='</table><h1>Excesses:</h1><table\x20class=\x27sophHeader\x27><tr\x20class=\x27sophHeader\x27><td>Village\x20name</td><td>Res</td></tr>';for(let _0x1219ea=0x0;_0x1219ea<stillExcess[_0xce2b67(0x1b3)];_0x1219ea++){console[_0xce2b67(0x234)]('Creating\x20line\x20'+_0x1219ea+_0xce2b67(0x267)),_0x1219ea%0x2==0x0?tempRow=_0xce2b67(0x294)+_0x1219ea+_0xce2b67(0x1d6):tempRow=_0xce2b67(0x294)+_0x1219ea+_0xce2b67(0x1fe),htmlStats+=_0xce2b67(0x278)+tempRow+_0xce2b67(0x284)+stillExcess[_0x1219ea][0x0]+_0xce2b67(0x1d9)+stillExcess[_0x1219ea][0x1][0x0][_0xce2b67(0x20a)]+_0xce2b67(0x2da)+stillExcess[_0x1219ea][0x1][0x1][_0xce2b67(0x1af)]+'\x20,\x20'+stillExcess[_0x1219ea][0x1][0x2][_0xce2b67(0x1fa)]+_0xce2b67(0x1a0);}htmlStats+='</table></center></div>',Dialog['show'](_0xce2b67(0x260),htmlStats);}function makeThingsCollapsible(){var _0x4a39b9=_0x176e7d,_0x34ac00=$('.collapsible');for(var _0x3e18e5=0x0;_0x3e18e5<_0x34ac00[_0x4a39b9(0x1b3)];_0x3e18e5++){_0x34ac00[_0x3e18e5][_0x4a39b9(0x292)](_0x4a39b9(0x270),function(){var _0x27fc87=_0x4a39b9;this[_0x27fc87(0x273)][_0x27fc87(0x1d5)](_0x27fc87(0x289));var _0x17d8c8=this[_0x27fc87(0x21c)];_0x17d8c8[_0x27fc87(0x236)]['maxHeight']?_0x17d8c8[_0x27fc87(0x236)][_0x27fc87(0x29a)]=null:_0x17d8c8[_0x27fc87(0x236)][_0x27fc87(0x29a)]=_0x17d8c8[_0x27fc87(0x228)]+'px';});}}function saveSettings(){var _0x3fbbef=_0x176e7d;tempArray=$(_0x3fbbef(0x1bf))[_0x3fbbef(0x26e)](),$(_0x3fbbef(0x247))[0x0][_0x3fbbef(0x1d0)]==!![]?(settings[_0x3fbbef(0x1dc)]=!![],settings[_0x3fbbef(0x2be)]=parseInt(tempArray[0x1][_0x3fbbef(0x28b)]),settings[_0x3fbbef(0x27d)]=parseInt(tempArray[0x2][_0x3fbbef(0x28b)]),settings['highFarm']=parseInt(tempArray[0x3][_0x3fbbef(0x28b)]),settings['builtOutPercentage']=parseFloat(tempArray[0x4][_0x3fbbef(0x28b)]),settings['needsMorePercentage']=parseFloat(tempArray[0x5][_0x3fbbef(0x28b)])):(settings[_0x3fbbef(0x1dc)]=![],settings[_0x3fbbef(0x2be)]=parseInt(tempArray[0x0]['value']),settings[_0x3fbbef(0x27d)]=parseInt(tempArray[0x1]['value']),settings[_0x3fbbef(0x1a4)]=parseInt(tempArray[0x2][_0x3fbbef(0x28b)]),settings['builtOutPercentage']=parseFloat(tempArray[0x3][_0x3fbbef(0x28b)]),settings[_0x3fbbef(0x24d)]=parseFloat(tempArray[0x4][_0x3fbbef(0x28b)])),localStorage[_0x3fbbef(0x276)](_0x3fbbef(0x2c4),JSON[_0x3fbbef(0x2e7)](settings)),$(_0x3fbbef(0x2d2))['remove'](),$(_0x3fbbef(0x2d6))[_0x3fbbef(0x1e0)](),$(_0x3fbbef(0x259))['remove'](),init(),displayEverything();}function sliderChange(_0x306fd9,_0x4d071b){var _0x5859f7=_0x176e7d;document[_0x5859f7(0x27f)](_0x306fd9)['innerHTML']=_0x4d071b;}function resAfterBalance(){var _0x26d7c2=_0x176e7d;resBalancedHTML=_0x26d7c2(0x1a7);for(var _0x5ebf66=0x0;_0x5ebf66<villagesData[_0x26d7c2(0x1b3)];_0x5ebf66++){thisMerchantLeft=villagesData[_0x5ebf66][_0x26d7c2(0x1b5)];incomingRes[villagesData[_0x5ebf66]['id']]!=undefined?(console['log'](_0x26d7c2(0x269)),thisVillageTotalWood=incomingRes[villagesData[_0x5ebf66]['id']][_0x26d7c2(0x20a)]+parseInt(villagesData[_0x5ebf66][_0x26d7c2(0x20a)]),thisVillageTotalStone=incomingRes[villagesData[_0x5ebf66]['id']][_0x26d7c2(0x1af)]+parseInt(villagesData[_0x5ebf66][_0x26d7c2(0x1af)]),thisVillageTotalIron=incomingRes[villagesData[_0x5ebf66]['id']][_0x26d7c2(0x1fa)]+parseInt(villagesData[_0x5ebf66][_0x26d7c2(0x1fa)])):(thisVillageTotalWood=parseInt(villagesData[_0x5ebf66]['wood']),thisVillageTotalStone=parseInt(villagesData[_0x5ebf66][_0x26d7c2(0x1af)]),thisVillageTotalIron=parseInt(villagesData[_0x5ebf66][_0x26d7c2(0x1fa)]));for(var _0xababbe=0x0;_0xababbe<cleanLinks[_0x26d7c2(0x1b3)];_0xababbe++){cleanLinks[_0xababbe][_0x26d7c2(0x1f2)]==villagesData[_0x5ebf66]['id']&&(console[_0x26d7c2(0x234)](_0x26d7c2(0x256)),thisVillageTotalWood+=cleanLinks[_0xababbe]['wood'],thisVillageTotalStone+=cleanLinks[_0xababbe][_0x26d7c2(0x1af)],thisVillageTotalIron+=cleanLinks[_0xababbe][_0x26d7c2(0x1fa)]),cleanLinks[_0xababbe][_0x26d7c2(0x20f)]==villagesData[_0x5ebf66]['id']&&(console[_0x26d7c2(0x234)](_0x26d7c2(0x22a)),thisVillageTotalWood-=cleanLinks[_0xababbe][_0x26d7c2(0x20a)],thisVillageTotalStone-=cleanLinks[_0xababbe][_0x26d7c2(0x1af)],thisVillageTotalIron-=cleanLinks[_0xababbe][_0x26d7c2(0x1fa)],thisMerchantLeft-=(cleanLinks[_0xababbe][_0x26d7c2(0x20a)]+cleanLinks[_0xababbe]['stone']+cleanLinks[_0xababbe][_0x26d7c2(0x1fa)])/0x3e8);}_0x5ebf66%0x2==0x0?tempRow='class=\x27sophRowB\x27':tempRow=_0x26d7c2(0x208),resBalancedHTML+=_0x26d7c2(0x278)+tempRow+_0x26d7c2(0x1ad)+villagesData[_0x5ebf66]['name']+_0x26d7c2(0x1d9)+villagesData[_0x5ebf66]['points']+_0x26d7c2(0x298)+(thisMerchantLeft+'/'+villagesData[_0x5ebf66][_0x26d7c2(0x220)])+_0x26d7c2(0x2ca)+thisVillageTotalWood+_0x26d7c2(0x2dc)+thisVillageTotalStone+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22res\x20iron\x22\x20style=\x22padding-left:1em\x22> </span>'+thisVillageTotalIron+_0x26d7c2(0x1b0)+villagesData[_0x5ebf66][_0x26d7c2(0x2e8)]+_0x26d7c2(0x1a0);}resBalancedHTML+=_0x26d7c2(0x2cd),Dialog[_0x26d7c2(0x200)](_0x26d7c2(0x260),resBalancedHTML);}
Function Calls
None |
Stats
MD5 | 8906a7d195047b3d5fc43389e1f9970d |
Eval Count | 0 |
Decode Time | 101 ms |