const _0x5530e1=_0x4643;(function(_0x3bb465,_0x44103f){const _0x1ad4b4=_0x4643,_0x4b5148=_0x3bb465();while(!![]){try{const _0x8028af=-parseInt(_0x1ad4b4(0xb5))/0x1*(-parseInt(_0x1ad4b4(0xbc))/0x2)+-parseInt(_0x1ad4b4(0xb3))/0x3*(parseInt(_0x1ad4b4(0xbb))/0x4)+parseInt(_0x1ad4b4(0xc4))/0x5+parseInt(_0x1ad4b4(0xb4))/0x6+-parseInt(_0x1ad4b4(0xc3))/0x7+-parseInt(_0x1ad4b4(0xca))/0x8+parseInt(_0x1ad4b4(0xbf))/0x9*(parseInt(_0x1ad4b4(0xcc))/0xa);if(_0x8028af===_0x44103f)break;else _0x4b5148['push'](_0x4b5148['shift']());}catch(_0x10cbb9){_0x4b5148['push'](_0x4b5148['shift']());}}}(_0xb70f,0x23866));import{system,world}from'@minecraft/server';import{PlayerTags}from'./nswxvau';const EXPLICIT_PERMISSIONS=['realistic_biomes.op','realistic_biomes.settings.global',_0x5530e1(0xb6)];var ref;let whitelistEnabled=(ref=world[_0x5530e1(0xc9)](_0x5530e1(0xc6)))!==null&&ref!==void 0x0?ref:![];system['afterEvents'][_0x5530e1(0xc5)][_0x5530e1(0xcb)](_0xde0395=>{const _0x415f95=_0x5530e1;if(_0xde0395['id']!==_0x415f95(0xb2))return;const _0x297f3a=_0xde0395['sourceEntity'];if([_0x415f95(0xc7),'false'][_0x415f95(0xbd)](_0xde0395[_0x415f95(0xc8)][_0x415f95(0xb0)]())){const _0x5bc3ff=_0xde0395['message'][_0x415f95(0xb0)]()===_0x415f95(0xc7);if(_0x5bc3ff===whitelistEnabled)return;setWhitelist(_0x5bc3ff);if(_0x297f3a)_0x297f3a[_0x415f95(0xc1)]({'rawtext':[{'translate':whitelistEnabled?_0x415f95(0xc0):'realistic_biomes.oreville_rb:msprfob.gvbhaou'}]});}else _0x297f3a&&_0x297f3a[_0x415f95(0xc1)]({'rawtext':[{'translate':whitelistEnabled?_0x415f95(0xba):'realistic_biomes.oreville_rb:msprfob.oxpmrmv.dwulllt'}]});});function _0xb70f(){const _0x47e20b=['realistic_biomes.settings.preview','every','setDynamicProperty','get','realistic_biomes.oreville_rb:msprfob.oxpmrmv.gsyqrnq','136QylcYe','211102zeFgHW','includes','substring','135crPMEK','realistic_biomes.oreville_rb:msprfob.uhpkxfl','sendMessage','split','472843YTCPtj','1113215skAzpB','scriptEventReceive','razqshr','true','message','getDynamicProperty','1823144zMWCdD','subscribe','113790hFJzvj','startsWith','toLowerCase','map','oreville_rb:msprfob','5967oduJQz','58194xCxYCd','1UnBRNb'];_0xb70f=function(){return _0x47e20b;};return _0xb70f();}export const isWhitelistEnabled=()=>whitelistEnabled;function _0x4643(_0x31acb6,_0x4e4115){const _0xb70f04=_0xb70f();return _0x4643=function(_0x464351,_0x4719f3){_0x464351=_0x464351-0xb0;let _0x237018=_0xb70f04[_0x464351];return _0x237018;},_0x4643(_0x31acb6,_0x4e4115);}export const setWhitelist=_0x15ea2b=>{const _0x1ac311=_0x5530e1;world[_0x1ac311(0xb8)](_0x1ac311(0xc6),_0x15ea2b),whitelistEnabled=_0x15ea2b;};export function requiresExplicitPermission(_0x2e0531){const _0x8b6568=_0x5530e1;return EXPLICIT_PERMISSIONS[_0x8b6568(0xbd)](_0x2e0531);}export function hasPermission(_0x329148,_0x1a38a6){const _0x295821=_0x5530e1;if(!whitelistEnabled||!_0x1a38a6)return!![];const _0x307a8f=PlayerTags[_0x295821(0xb9)](_0x329148)[_0x295821(0xb1)](_0x507269=>_0x507269[_0x295821(0xb0)]());if(EXPLICIT_PERMISSIONS[_0x295821(0xbd)](_0x1a38a6))return _0x307a8f['includes'](_0x1a38a6);let _0x3b9b24=![];const _0xcacf38=_0x1a38a6[_0x295821(0xc2)]('.');for(const _0x45ca9b of _0x307a8f){const _0x3fb9bf=_0x45ca9b[_0x295821(0xc2)]('.');let _0x1c8a14=![];if(_0x3fb9bf[0x0]['startsWith']('+'))_0x1c8a14=![],_0x3fb9bf[0x0]=_0x3fb9bf[0x0][_0x295821(0xbe)](0x1);else _0x3fb9bf[0x0][_0x295821(0xcd)]('-')&&(_0x1c8a14=!![],_0x3fb9bf[0x0]=_0x3fb9bf[0x0][_0x295821(0xbe)](0x1));const _0x3b1ca1=_0x3fb9bf[_0x295821(0xb7)]((_0x1bec42,_0x361225)=>_0x1bec42==_0xcacf38[_0x361225]);if(!_0x1c8a14&&(_0x3b1ca1||_0xcacf38[_0x295821(0xb7)]((_0x4f0e81,_0x390092)=>_0x4f0e81==_0x3fb9bf[_0x390092])))_0x3b9b24=!![];else{if(_0x1c8a14&&_0x3b1ca1)return![];}}return _0x3b9b24;}