const _0x27a540=_0x1283;(function(_0x58927f,_0x7f4792){const _0x58f907=_0x1283,_0x3e3675=_0x58927f();while(!![]){try{const _0x4866a6=-parseInt(_0x58f907(0xd8))/0x1*(-parseInt(_0x58f907(0xc0))/0x2)+parseInt(_0x58f907(0xda))/0x3*(parseInt(_0x58f907(0xdb))/0x4)+-parseInt(_0x58f907(0xc3))/0x5*(-parseInt(_0x58f907(0xc6))/0x6)+parseInt(_0x58f907(0xc5))/0x7+parseInt(_0x58f907(0xce))/0x8*(-parseInt(_0x58f907(0xd2))/0x9)+-parseInt(_0x58f907(0xcb))/0xa*(-parseInt(_0x58f907(0xc7))/0xb)+-parseInt(_0x58f907(0xcf))/0xc;if(_0x4866a6===_0x7f4792)break;else _0x3e3675['push'](_0x3e3675['shift']());}catch(_0x313cc4){_0x3e3675['push'](_0x3e3675['shift']());}}}(_0x5c02,0xb3725));import{EquipmentSlot,HudElement,HudVisibility,ItemStack,world}from'@minecraft/server';function _0x5c02(){const _0x5d7a09=['Hide','add','setHudVisibility','187742FqZxmk','Crosshair','forEach','85IirFuN','getLore','7064071hIgzko','310458OUQEUC','22zisyHR','subscribe','§aOfficial\x20Channel:\x20§5https://nekohub.uwu.ai/','afterEvents','7066310icDRzB','sendMessage','getBookItemStack','4873432ePvfKY','49372812cLbcfI','setDynamicProperty','getAllPlayers','9FHSZfy','onTick','onScreenDisplay','twb_wisu:information_book','Reset','setLore','14eVLPXm','BOOK_LORE','3bpWJCT','3369412CxNEbU','first_spawn','§r[§aInteract§r]\x20§7Next\x20page','§aWelcome\x20to\x20the\x20Wither\x20Apocalypse\x20Add-On.\x20§6This\x20pack\x20was\x20originally\x20given\x20by\x20Panda\x27s!\x20If\x20you\x20download\x20it\x20from\x20other\x20source,\x20meaning\x20they\x20stole\x20the\x20files\x20from\x20Panda\x27s\x20Community.','playersHoldingBook','typeId','length','Mainhand','BOOK_ITEM'];_0x5c02=function(){return _0x5d7a09;};return _0x5c02();}import _0x3329e5 from'../scriptingModule';import{getItemInSlot,setItemInSlot,translate}from'../util/utils';function _0x1283(_0x17cacd,_0x2efa0f){const _0x5c02da=_0x5c02();return _0x1283=function(_0x1283eb,_0x2152b1){_0x1283eb=_0x1283eb-0xb6;let _0x20d3fb=_0x5c02da[_0x1283eb];return _0x20d3fb;},_0x1283(_0x17cacd,_0x2efa0f);}export default class BookModule extends _0x3329e5{constructor(){const _0x54c9ef=_0x1283;super('BookModule'),this[_0x54c9ef(0xb8)]=new Set();}[_0x27a540(0xd3)](){const _0x3fae9e=_0x27a540;world[_0x3fae9e(0xd1)]()['forEach'](_0x78e14a=>{const _0x57cd1b=_0x3fae9e,_0x457bac=getItemInSlot(_0x78e14a),_0x1bb98a=this[_0x57cd1b(0xb8)]['has'](_0x78e14a),_0x2b2daa=_0x457bac?_0x457bac[_0x57cd1b(0xb9)]===BookModule[_0x57cd1b(0xbc)]:![];!_0x1bb98a&&_0x2b2daa&&(this[_0x57cd1b(0xb8)][_0x57cd1b(0xbe)](_0x78e14a),_0x78e14a['onScreenDisplay']['setHudVisibility'](HudVisibility[_0x57cd1b(0xbd)],[HudElement['Crosshair']]),_0x78e14a[_0x57cd1b(0xd4)]['setActionBar'](translate('twb_wisu.information_book.hint')),_0x457bac[_0x57cd1b(0xc4)]()[_0x57cd1b(0xba)]===0x0&&(_0x457bac[_0x57cd1b(0xd7)](BookModule[_0x57cd1b(0xd9)]),setItemInSlot(_0x78e14a,EquipmentSlot[_0x57cd1b(0xbb)],_0x457bac))),_0x1bb98a&&!_0x2b2daa&&(this[_0x57cd1b(0xb8)]['delete'](_0x78e14a),_0x78e14a['onScreenDisplay'][_0x57cd1b(0xbf)](HudVisibility[_0x57cd1b(0xd6)],[HudElement[_0x57cd1b(0xc1)]]));}),this['playersHoldingBook'][_0x3fae9e(0xc2)](_0x2e4a5f=>{const _0x2b1165=_0x3fae9e;!world['getAllPlayers']()['includes'](_0x2e4a5f)&&this[_0x2b1165(0xb8)]['delete'](_0x2e4a5f);});}static[_0x27a540(0xcd)](){const _0xc9770c=_0x27a540,_0x56cfe7=new ItemStack(this['BOOK_ITEM']);return _0x56cfe7[_0xc9770c(0xd7)](this[_0xc9770c(0xd9)]),_0x56cfe7;}}BookModule[_0x27a540(0xbc)]=_0x27a540(0xd5),BookModule[_0x27a540(0xd9)]=[_0x27a540(0xb6),'§r[§aSneak§r]\x20§7Previous\x20page'],world[_0x27a540(0xca)]['playerSpawn'][_0x27a540(0xc8)](_0x539846=>{const _0x161e33=_0x27a540,{initialSpawn:_0x371e67,player:_0x1d89ba}=_0x539846;if(!_0x371e67)return;_0x1d89ba['getDynamicProperty']('first_spawn')===undefined&&(_0x1d89ba[_0x161e33(0xd0)](_0x161e33(0xdc),!![]),_0x1d89ba[_0x161e33(0xcc)](_0x161e33(0xb7)),_0x1d89ba[_0x161e33(0xcc)](_0x161e33(0xc9)));});