(()=>{var e={38930:function(){},66490:function(e){function webpackEmptyContext(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id=66490,e.exports=webpackEmptyContext},16805:function(e,t,n){var r={"./1.12/colors.json":"23341","./1.16/colors.json":"83381","./1.8/colors.json":"54565"};function webpackContext(e){return n(webpackContextResolve(e))}function webpackContextResolve(e){if(!n.o(r,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}webpackContext.keys=function(){return Object.keys(r)},webpackContext.resolve=webpackContextResolve,e.exports=webpackContext,webpackContext.id=16805},91317:function(e,t,n){var r={"./BitArray":"56685","./BitArray.js":"56685","./BitArrayNoSpan":"49924","./BitArrayNoSpan.js":"49924"};function webpackContext(e){return n(webpackContextResolve(e))}function webpackContextResolve(e){if(!n.o(r,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}webpackContext.keys=function(){return Object.keys(r)},webpackContext.resolve=webpackContextResolve,e.exports=webpackContext,webpackContext.id=91317},32175:function(e,t,n){"use strict";n.d(t,{EX:()=>d,TK:()=>w,h0:()=>updateQsParam}),n(52003),n(23712),n(12989),n(78873),n(96573),n(94244),n(42050),n(83902),n(79525),n(96220),n(73372),n(76148),n(2685),n(8705),n(48899);var r,a,o,i,s,l=n(40451),c=n(14224),u=new URLSearchParams(null!=(i=null==(r=window.location)?void 0:r.search)?i:"");null!=(o=globalThis).process||(o.process={}),null==c||null==(a=c.env)||a.INLINED_APP_CONFIG;var d=new Proxy({},{get:function(e,t){if("string"==typeof t){var n,r,a=u.get(t);return a||(null==(r=l.N_.appConfig)||null==(n=r.appParams)?void 0:n[t])}}}),w=new Proxy({},{get:function(e,t){if("string"!=typeof t)return null;var n,r,a,o=u.getAll(t);return o.length?o:null!=(a=null==(r=l.N_.appConfig)||null==(n=r.appParams)?void 0:n[t])?a:[]}});function updateQsParam(e,t){var n=new URL(window.location.href);t?n.searchParams.set(e,t):n.searchParams.delete(e),window.history.replaceState({},"",n.toString())}globalThis.debugQueryParams=Object.fromEntries(u.entries())},19478:function(e,t,n){"use strict";n.d(t,{Pc:()=>l,d5:()=>formatLoadingScreenError,d8:()=>setLoadingScreenStatus});var r=n(81979);n(74822),n(96220),n(15209),n(72558),n(58207),n(55058),n(29127),n(95790),n(83902),n(73372);var a=n(54694),o=n(40451),i=n(76945),s="",formatErrorDetail=function(e){if(e instanceof Error||(void 0===e?"undefined":(0,r._)(e))==="object"&&null!==e&&"message"in e&&"string"==typeof e.message){var t,n,a,o,i;return e.stack?(t=e.stack,n=e.message,(i=null==(a=(o=t.split("\n"))[1])?void 0:a.trim())?"".concat(o[0],"\n\n").concat(i):n):e.message}return String(e)},formatLoadingScreenError=function(e,t){return"".concat(e,": ").concat(formatErrorDetail(t))},setLoadingScreenStatus=function(e){var t,n,r,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],d=arguments.length>4?arguments[4]:void 0;if("string"==typeof e&&(e=null!=(r=null==(t=(n=window).translateText)?void 0:t.call(n,e))?r:e),null===e?e=s:u||(s=e),u=!1,void 0===e){i.ou.status="",(0,o.VG)({reactType:"app-status"},{},{force:!0});return}o.M.some(function(e){return"app-status"===e.reactType})||(0,i.FI)(),(0,o.K4)({reactType:"app-status"}),!i.ou.isError&&(i.ou.hideDots=c,i.ou.isError=l,i.ou.lastStatus=l?i.ou.status:"",i.ou.status=e,i.ou.minecraftJsonMessage=null!=d?d:null,l&&o.N_.gameLoaded&&(0,a.IL)())};globalThis.setLoadingScreenStatus=setLoadingScreenStatus;var l={value:null,hadWorldLoaded:!1};globalThis.lastConnectOptions=l},47536:function(e,t,n){"use strict";n.d(t,{Ap:()=>stopSound,IZ:()=>loadSound,YR:()=>stopAllSounds,_y:()=>M});var r,a,o=n(14772),i=n(9787);n(67022),n(56520),n(40542),n(56070),n(83902),n(72558),n(58207),n(26980),n(52457),n(11304),n(7960),n(46302),n(64813),n(96573),n(94244),n(42050);var s=n(32719),l=n(30367),c=n(28350),u=n(5969),d={},w=[];window.activeSounds=w;var p=[],h=[];function loadSound(e){return _loadSound.apply(this,arguments)}function _loadSound(){return(_loadSound=(0,o._)(function(e){var t,n,r,o,s,l,u=arguments;return(0,i.Jh)(this,function(i){switch(i.label){case 0:if(t=u.length>1&&void 0!==u[1]?u[1]:e,p.includes(e))return[2,!0];p.push(e),i.label=1;case 1:return i.trys.push([1,5,,6]),null!=a||(a=new window.AudioContext),[4,window.fetch(t)];case 2:if(!(n=i.sent()).ok){if(r="Failed to load sound ".concat(e),(0,c.x)())throw Error(r);return console.warn(r),[2]}return[4,n.arrayBuffer()];case 3:return o=i.sent(),[4,a.decodeAudioData(o)];case 4:return s=i.sent(),d[e]=s,h.push(e),p.splice(p.indexOf(e),1),[3,6];case 5:if(l=i.sent(),console.warn("Failed to load sound ".concat(e,":"),l),p.splice(p.indexOf(e),1),(0,c.x)())throw l;return[3,6];case 6:return[2]}})})).apply(this,arguments)}window.loadSound=loadSound;var M=(r=(0,o._)(function(e){var t,n,r,a,o,s=arguments;return(0,i.Jh)(this,function(i){switch(i.label){case 0:if(t=s.length>1&&void 0!==s[1]?s[1]:1,n=s.length>2&&void 0!==s[2]?s[2]:l.YM.remoteSoundsLoadTimeout,r=s.length>3&&void 0!==s[3]&&s[3],a=s.length>4&&void 0!==s[4]&&s[4],d[e])return[3,2];return o=Date.now(),[4,loadSound(e)];case 1:if(i.sent()||Date.now()-o>n)return[2];i.label=2;case 2:return[2,playSound(e,t,r,a)]}})}),function(e){return r.apply(this,arguments)});function playSound(e){return _playSound.apply(this,arguments)}function _playSound(){return(_playSound=(0,o._)(function(e){var t,n,r,o,s,c,p,h,M=arguments;return(0,i.Jh)(this,function(i){if(t=M.length>1&&void 0!==M[1]?M[1]:1,n=M.length>2&&void 0!==M[2]&&M[2],r=M.length>3&&void 0!==M[3]&&M[3],!(o=t*(l.YM.volume/100)*(r?l.YM.musicVolume/100:1)))return[2];try{null!=a||(a=new window.AudioContext)}catch(e){return(0,u.P_)("audioContext","Failed to create audio context. Some sounds will not play"),[2]}return(s=d[e])?(c=a.createGain(),(p=a.createBufferSource()).buffer=s,p.loop=n,p.connect(c),c.connect(a.destination),c.gain.value=o,p.start(0),w.push({source:p,gainNode:c,volumeMultiplier:t,isMusic:r}),h=[],p.onended=function(){var e=w.findIndex(function(e){return e.source===p});-1!==e&&w.splice(e,1);var t=!0,n=!1,r=void 0;try{for(var a,o=h[Symbol.iterator]();!(t=(a=o.next()).done);t=!0)(0,a.value)()}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}h.length=0},[2,{onEnded:function(e){h.push(e)},stop:function(){try{p.stop();var e=w.findIndex(function(e){return e.source===p});-1!==e&&w.splice(e,1)}catch(e){console.warn("Failed to stop sound:",e)}},gainNode:c}]):(console.warn("Sound ".concat(e," not loaded yet")),[2])})})).apply(this,arguments)}function stopAllSounds(){var e=!0,t=!1,n=void 0;try{for(var r,a=w[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value.source;try{o.stop()}catch(e){console.warn("Failed to stop sound:",e)}}}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}w.length=0}function stopSound(e){var t=w.findIndex(function(t){return t.source.buffer===d[e]});if(-1!==t){var n=w[t].source;try{n.stop()}catch(e){console.warn("Failed to stop sound:",e)}w.splice(t,1)}}function changeVolumeOfCurrentlyPlayingSounds(e,t){var n=e/100,r=!0,a=!1,o=void 0;try{for(var i,s=w[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var l=i.value,c=l.gainNode,u=l.volumeMultiplier,d=l.isMusic;try{c.gain.value=n*u*(d?t/100:1)}catch(e){console.warn("Failed to change sound volume:",e)}}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}}window.playSound=playSound,(0,s.VW)(l.YM,"volume",function(){changeVolumeOfCurrentlyPlayingSounds(l.YM.volume,l.YM.musicVolume)}),(0,s.VW)(l.YM,"musicVolume",function(){changeVolumeOfCurrentlyPlayingSounds(l.YM.volume,l.YM.musicVolume)})},80297:function(e,t,n){"use strict";n.d(t,{$:()=>parseFormattedMessagePacket,w:()=>displayClientChat});var r=n(81979);n(56515),n(87620),n(83210);var a=n(76610),o=n(85681),displayClientChat=function(e){var t="string"==typeof e?{text:e}:e;if((0,a.Uo)(bot.version)>=(0,a.Uo)("1.19"))return void bot._client.emit("systemChat",{formattedMessage:JSON.stringify(t),position:0,sender:"minecraft:chat"});bot._client.emit("chat",{message:JSON.stringify(t),position:0,sender:"minecraft:chat"})},parseFormattedMessagePacket=function(e){if("string"==typeof e)try{return{formatted:e=JSON.parse(e),plain:""}}catch(e){}if((void 0===e?"undefined":(0,r._)(e))==="object")try{return{formatted:o.simplify(e),plain:""}}catch(t){return console.warn("Failed to parse formatted message",e,t),{plain:JSON.stringify(e)}}return{plain:String(e)}}},54694:function(e,t,n){"use strict";n.d(t,{$C:()=>ei,BS:()=>$,D4:()=>G,DL:()=>resetLocalStorage,Fm:()=>X,IL:()=>resetStateAfterDisconnect,LB:()=>er,O8:()=>H,PM:()=>ee,dT:()=>el,e:()=>googleDriveGetFileIdFromPath,hz:()=>possiblyCleanHandle,ic:()=>es,lh:()=>eu,s8:()=>ea,vj:()=>K,xl:()=>Z,y:()=>openFilePicker,y8:()=>removeFileRecursiveAsync,yc:()=>eo});var r,a,o,i,s,l,c,u,d,w,p,h,M,g,m,v,y,A=n(14772),b=n(4186),_=n(22312),L=n(59240),C=n(25763),j=n(9787);n(72558),n(48899),n(96573),n(90804),n(24705),n(53346),n(58207),n(86070),n(50183),n(34812),n(69047),n(95922),n(95790),n(83902),n(81812),n(96220),n(56070),n(14394),n(7960),n(46302),n(64813),n(94244),n(42050),n(74822),n(40542),n(5269),n(31325),n(68732),n(76148),n(2685),n(52003),n(23712),n(12989),n(78873),n(8705),n(58819),n(32831),n(55058),n(29127);var D=n(62005),x=n(93585),k=n(9304),N=n.n(k),T=n(50210),S=n.n(T),z=n(81814),q=n(85929),E=n(30367),I=n(24375),P=n(44214),Y=n(40451),O=n(19478),R=n(2905),B=n(46644),U=n(12179),Q=n(78425),F=n(55872).Buffer,W=n(32527)._;q.install(window);var J={"/data":{fs:"IndexedDB"},"/resourcepack":{fs:"InMemory"},"/temp":{fs:"InMemory"}},V={"/resourcepack":{fs:"InMemory"},"/temp":{fs:"InMemory"}};q.configure({fs:"MountableFileSystem",options:J},(r=(0,A._)(function(e){return(0,j.Jh)(this,function(t){switch(t.label){case 0:if(e){var n;return q.configure({fs:"MountableFileSystem",options:V},(n=(0,A._)(function(t){return(0,j.Jh)(this,function(n){if(t)throw(0,U.c0)("Unknown FS error, cannot continue",t.message,!0),t;return(0,U.c0)("Failed to access device storage","Check you have free space. ".concat(e.message),!0),Y.N_.fsReady=!0,Y.N_.singleplayerAvailable=!1,[2]})}),function(e){return n.apply(this,arguments)})),[2]}return[4,(0,P.V_)()];case 1:return t.sent(),Y.N_.fsReady=!0,Y.N_.singleplayerAvailable=!0,[2]}})}),function(e){return r.apply(this,arguments)}));var G={},H={};window.fs=N(),N().promises=new Proxy(Object.fromEntries(["readFile","writeFile","stat","mkdir","rmdir","unlink","rename","readdir"].map(function(e){return[e,(0,x.promisify)(N()[e])]})),{get:function(e,t,n){if(!e[t])throw Error("Not implemented fs.promises.".concat(t));return function(){for(var n=arguments.length,r=Array(n),a=0;a1)||void 0===a[1]||a[1],n=[],o.label=1;case 1:return o.trys.push([1,6,,7]),[4,N().promises.readdir(e)];case 2:var i;return[4,Promise.all(o.sent().map((i=(0,A._)(function(t){var n;return(0,j.Jh)(this,function(r){switch(r.label){case 0:return n=(0,D.join)(e,t),[4,N().promises.stat(n)];case 1:if(!r.sent().isDirectory())return[3,3];return[4,removeFileRecursiveAsync(n)];case 2:return r.sent(),[3,5];case 3:return[4,N().promises.unlink(n)];case 4:r.sent(),r.label=5;case 5:return[2]}})}),function(e){return i.apply(this,arguments)})))];case 3:if(o.sent(),!t)return[3,5];return[4,N().promises.rmdir(e)];case 4:o.sent(),o.label=5;case 5:return[3,7];case 6:return r=o.sent(),n.push([e,r]),[3,7];case 7:return n.length&&setTimeout(function(){throw console.error(n),Error("Error removing directories/files: ".concat(n.map(function(e){var t=(0,L._)(e,2),n=t[0],r=t[1];return"".concat(n,": ").concat(r.message)}).join(", ")))}),[2]}})})).apply(this,arguments)}var ee=(l=(0,A._)(function(e){var t,n,r,a,o,i;return(0,j.Jh)(this,function(s){switch(s.label){case 0:if(!e)return[3,1];return n=e,[3,4];case 1:return s.trys.push([1,3,,4]),[4,window.showDirectoryPicker({id:"select-world"})];case 2:return n=s.sent(),[3,4];case 3:if((r=s.sent())instanceof DOMException&&"AbortError"===r.name)return[2];throw r;case 4:if(a=n,E.YM.preferLoadReadonly)return[3,6];return[4,null==(t=a.requestPermission)?void 0:t.call(a,{mode:"readwrite"})];case 5:return o=s.sent(),[3,7];case 6:o=void 0,s.label=7;case 7:if(!((i="granted"===o)||E.YM.disableLoadPrompts||confirm("Continue in readonly mode?")))return[2];return[4,new Promise(function(e){q.configure({fs:"MountableFileSystem",options:(0,_._)((0,b._)({},J),{"/world":{fs:"FileSystemAccess",options:{handle:a}}})},function(t){if(t)throw t;e()})})];case 8:return s.sent(),I.RL.isReadonly=!i,I.RL.syncFs=!1,I.RL.inMemorySave=!1,I.RL.remoteBackend=!1,[4,(0,I.uW)()];case 9:return s.sent(),[2]}})}),function(e){return l.apply(this,arguments)}),et=(c=(0,A._)(function(){return(0,j.Jh)(this,function(e){switch(e.label){case 0:var t;if(t=(0,A._)(function(){return(0,j.Jh)(this,function(e){return[2,alert("ATM You can install texturepacks only via options menu.")]})}),!N().existsSync("/world/pack.mcmeta"))return[3,2];return[4,function(){return t.apply(this,arguments)}()];case 1:return e.sent(),[2,!0];case 2:return[2]}})}),function(){return c.apply(this,arguments)}),possiblyCleanHandle=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};I.RL.saveLoaded||q.configure({fs:"MountableFileSystem",options:J},function(t){if(e(),t)throw t})},en=(u=(0,A._)(function(e){return(0,j.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,N().promises.readdir(e)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,null];case 3:return[2]}})}),function(e){return u.apply(this,arguments)}),er=(d=(0,A._)(function(e){var t,n,r,a=arguments;return(0,j.Jh)(this,function(o){switch(o.label){case 0:var i;return t=a.length>1&&void 0!==a[1]&&a[1],n=[],i=(0,A._)(function(a){var o,i,s;return(0,j.Jh)(this,function(l){switch(l.label){case 0:if(o=(0,D.join)(e,a),!("."===a&&!t))return[3,2];return[4,N().promises.readdir(o)];case 1:return s=l.sent(),[3,4];case 2:return[4,en(o)];case 3:s=l.sent(),l.label=4;case 4:var c;if(!(i=s))return[2,null];return[4,Promise.all(i.map((c=(0,A._)(function(e){return(0,j.Jh)(this,function(t){switch(t.label){case 0:return[4,r((0,D.join)(a,e))];case 1:return null===t.sent()&&n.push((0,D.join)(a,e)),[2]}})}),function(e){return c.apply(this,arguments)})))];case 5:return l.sent(),[2]}})}),[4,(r=function(e){return i.apply(this,arguments)})(".")];case 1:return o.sent(),[2,n]}})}),function(e){return d.apply(this,arguments)}),ea=(w=(0,A._)(function(e,t){var n,r,a,o,i,s,l,c,u,d=arguments;return(0,j.Jh)(this,function(w){switch(w.label){case 0:return n=!(d.length>2)||void 0===d[2]||d[2],r=d.length>3&&void 0!==d[3]?d[3]:"",[4,eo(e)];case 1:if(!(a=w.sent())){if(n)throw Error("Cannot copy. Source directory ".concat(e," does not exist"));return console.debug("source directory does not exist",e),[2]}if(a.isDirectory())return[3,4];return i=(o=N().promises).writeFile,s=[t],[4,N().promises.readFile(e)];case 2:return[4,i.apply(o,s.concat([w.sent()]))];case 3:return w.sent(),console.debug("copied single file",e,t),[2];case 4:var p;return w.trys.push([4,,7,8]),(0,O.d8)("Copying files"),l=0,p=(0,A._)(function(e){return(0,j.Jh)(this,function(t){switch(t.label){case 0:return[4,N().promises.readdir(e)];case 1:var n;return[4,Promise.all(t.sent().map((n=(0,A._)(function(t){var n;return(0,j.Jh)(this,function(r){switch(r.label){case 0:return n=(0,D.join)(e,t),[4,N().promises.stat(n)];case 1:if(!r.sent().isDirectory())return[3,3];return[4,c(n)];case 2:return r.sent(),[3,4];case 3:l++,r.label=4;case 4:return[2]}})}),function(e){return n.apply(this,arguments)})))];case 2:return t.sent(),[2]}})}),c=function(e){return p.apply(this,arguments)},console.debug("Counting files",e),[4,c(e)];case 5:return w.sent(),console.debug("counted",l),u=0,[4,es(e,t,function(e){u++,(0,O.d8)("Copying files".concat(r," (").concat(u,"/").concat(l,"): ").concat(e))})];case 6:return w.sent(),[3,8];case 7:return(0,O.d8)(void 0),[7];case 8:return[2]}})}),function(e,t){return w.apply(this,arguments)}),eo=(p=(0,A._)(function(e){return(0,j.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,N().promises.stat(e)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,!1];case 3:return[2]}})}),function(e){return p.apply(this,arguments)}),ei=(h=(0,A._)(function(e){var t;return(0,j.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,N().promises.readdir(e)];case 1:return n.sent(),[3,3];case 2:if("ENOTDIR"===(t=n.sent()).code)return[2,!0];return t.code,[2,!1];case 3:return[2,!0]}})}),function(e){return h.apply(this,arguments)}),es=(M=(0,A._)(function(e,t,n){var r;return(0,j.Jh)(this,function(a){switch(a.label){case 0:return[4,N().promises.readdir(e)];case 1:return r=a.sent(),[4,eo(t)];case 2:if(a.sent())return[3,4];return[4,N().promises.mkdir(t,{recursive:!0})];case 3:a.sent(),a.label=4;case 4:var o;return[4,Promise.all(r.map((o=(0,A._)(function(r){var a,o,i,s,l,c;return(0,j.Jh)(this,function(u){switch(u.label){case 0:return a=(0,D.join)(e,r),o=(0,D.join)(t,r),[4,N().promises.stat(a)];case 1:if(!u.sent().isDirectory())return[3,4];return[4,N().promises.mkdir(o)];case 2:return u.sent(),[4,es(a,o,n)];case 3:return u.sent(),[3,9];case 4:return u.trys.push([4,7,,8]),s=(i=N().promises).writeFile,l=[o],[4,N().promises.readFile(a)];case 5:return[4,s.apply(i,l.concat([u.sent()]))];case 6:return u.sent(),console.debug("copied file",a,o),[3,8];case 7:throw c=u.sent(),console.error("Error copying file",a,o,c),c;case 8:null==n||n(o),u.label=9;case 9:return[2]}})}),function(e){return o.apply(this,arguments)})))];case 5:return a.sent(),[2]}})}),function(e,t,n){return M.apply(this,arguments)}),el=(g=(0,A._)(function(e,t){var n,r,a,o,i,s,l,c,u;return(0,j.Jh)(this,function(d){switch(d.label){case 0:a=!0,o=!1,i=void 0,d.label=1;case 1:d.trys.push([1,6,7,8]),s=function(){var e,a,o,i;return(0,j.Jh)(this,function(s){switch(s.label){case 0:e=c.value,a=void 0,s.label=1;case 1:return s.trys.push([1,4,,5]),(0,O.d8)("Trying to get world descriptor from ".concat(new URL(e).host)),o=new AbortController,setTimeout(function(){o.abort()},3e3),[4,fetch(e,{signal:o.signal})];case 2:return[4,s.sent().json()];case 3:return a=s.sent(),[3,5];case 4:return i=s.sent(),console.error("Error fetching file descriptor",e,i),[3,5];case 5:if(!a)return[2,"continue"];return a.baseUrl?(r=new URL(a.baseUrl,r).toString(),n=a.index):(n=a,r=null!=t?t:e.split("/").slice(0,-1).join("/")),[2,"break"]}})},l=e[Symbol.iterator](),d.label=2;case 2:if(a=(c=l.next()).done)return[3,5];return[5,(0,j.XA)(s())];case 3:if("break"===d.sent())return[3,5];d.label=4;case 4:return a=!0,[3,2];case 5:return[3,8];case 6:return u=d.sent(),o=!0,i=u,[3,8];case 7:try{a||null==l.return||l.return()}finally{if(o)throw i}return[7];case 8:var w;if(!n)throw Error("The provided mapDir file is not valid descriptor file! ".concat(e.join(", ")));return[4,new Promise((w=(0,A._)(function(e){return(0,j.Jh)(this,function(t){return q.configure({fs:"MountableFileSystem",options:(0,_._)((0,b._)({},J),{"/world":{fs:"HTTPRequest",options:{index:n,baseUrl:r}}})},function(t){if(t)throw t;e()}),[2]})}),function(e){return w.apply(this,arguments)}))];case 9:return d.sent(),I.RL.saveLoaded=!1,I.RL.isReadonly=!0,I.RL.syncFs=!1,I.RL.inMemorySave=!1,I.RL.remoteBackend=!0,[4,(0,I.uW)()];case 10:return d.sent(),[2]}})}),function(e,t){return g.apply(this,arguments)}),ec=(m=(0,A._)(function(e){var t,n,r,a,o,i,s,l,c,u,d=arguments;return(0,j.Jh)(this,function(w){switch(w.label){case 0:var p;return t=d.length>1&&void 0!==d[1]?d[1]:e.name,n=d.length>2?d[2]:void 0,[4,new Promise((p=(0,A._)(function(n){var r,a,o,i,s,l,c,u,d;return(0,j.Jh)(this,function(w){switch(w.label){case 0:if(r=q.configure,a={fs:"MountableFileSystem"},o=[(0,b._)({},J)],i={},s="/world",l={fs:"ZipFS"},c={},u=F.from,!(e instanceof File))return[3,2];return[4,e.arrayBuffer()];case 1:return d=w.sent(),[3,3];case 2:d=e,w.label=3;case 3:return r.apply(q,[(a.options=_._.apply(void 0,o.concat([(i[s]=(l.options=(c.zipData=u.apply(F,[d]),c.name=t,c),l),i)])),a),function(e){if(e)throw e;n()}]),[2]}})}),function(e){return p.apply(this,arguments)}))];case 1:if(w.sent(),I.RL.saveLoaded=!1,I.RL.isReadonly=!0,I.RL.syncFs=!0,I.RL.inMemorySave=!1,I.RL.remoteBackend=!1,!N().existsSync("/world/level.dat"))return[3,3];return[4,(0,I.uW)()];case 2:return w.sent(),[3,8];case 3:r=N().readdirSync("/world"),a=[],o=!0,i=!1,s=void 0;try{for(l=r[Symbol.iterator]();!(o=(c=l.next()).done);o=!0)u=c.value,N().existsSync("/world/".concat(u,"/level.dat"))&&a.push(u)}catch(e){i=!0,s=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw s}}if(0!==a.length)return[3,5];return[4,et()];case 4:if(w.sent())return[2];return alert("No worlds found in the zip"),[2];case 5:if(1!==a.length)return[3,7];return[4,(0,I.uW)("/world/".concat(a[0]),n)];case 6:return w.sent(),[2];case 7:alert("Many (".concat(a.length,") worlds found in the zip!")),w.label=8;case 8:return[2]}})}),function(e){return m.apply(this,arguments)}),eu=(v=(0,A._)(function(){var e,t,n,r=arguments;return(0,j.Jh)(this,function(a){switch(a.label){case 0:for(t=Array(e=r.length),n=0;ngetItemFromBlock,oR:()=>isStringAllowed,wv:()=>formatMessage});var r=n(4186),a=n(22312),o=n(59240),i=n(25763);n(73372),n(40542),n(82819),n(74822),n(96220),n(96573),n(94244),n(83902),n(7960),n(46302),n(64813),n(42050),n(16461),n(99654),n(22245),n(52437),n(95790),n(90804),n(24705),n(53346),n(67022),n(56520),n(34396),n(20516),n(88085),n(52307),n(8416),n(93118),n(82766),n(37151),n(20142),n(89909),n(24578),n(89437),n(802),n(52895),n(46525),n(83930),n(18369),n(41494),n(66616),n(39222),n(83282),n(59237),n(60353),n(40332),n(72040),n(52768),n(2249),n(7611),n(65340),n(2850);var s=n(72960),l=globalThis,formatMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.loadedData,n=[],readMsg=function(e){var i={color:e.color,bold:!!e.bold,italic:!!e.italic,underlined:!!e.underlined,strikethrough:!!e.strikethrough,obfuscated:!!e.obfuscated};if(e.text||"string"!=typeof(null==(p=e.json)?void 0:p[""])||(e.text=e.json[""]),e.text)n.push((0,r._)((0,a._)((0,r._)({},e),{text:e.text}),i));else if(e.translate){var s=null!=(h=null==t?void 0:t.language[e.translate])?h:e.translate;if(e.with){var l=s.split(/%s|%\d+\$s/g),c=0,u=!0,d=!1,w=void 0;try{for(var p,h,M,g=l.entries()[Symbol.iterator]();!(u=(M=g.next()).done);u=!0){var m=(0,o._)(M.value,2),v=m[0],y=m[1];if(n.push((0,r._)({text:y},i)),v+1=32&&127!==t}var isStringAllowed=function(e){var t=new Set,n=!0,r=!1,a=void 0;try{for(var s,l=(0,i._)(e).entries()[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var c=(0,o._)(s.value,2),u=c[0],d=c[1];e.codePointAt(u)===e.charCodeAt(u)&&(isAllowedChatCharacter(d)||t.add(d))}}catch(e){r=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(r)throw a}}var w=0===t.size;return w?{valid:!0}:{valid:w,clean:(0,i._)(e).filter(function(e){return!t.has(e)}).join(""),invalid:(0,i._)(t)}}},68343:function(e,t,n){"use strict";n.r(t),n.d(t,{downloadAllMinecraftData:()=>A,downloadOtherGameData:()=>_,getVersionAutoSelect:()=>getVersionAutoSelect,loadMinecraftData:()=>y});var r,a,o,i,s=n(14772),l=n(9787);n(66395),n(56843),n(98474),n(72558),n(56070),n(83902),n(96573),n(94244),n(42050);var c=n(5444),u=n.n(c),d=n(65066),w=n.n(d),p=n(46290),h=n.n(p),M=n(40451),g=n(55920),m=n(30367),v=n(30297),getVersionAutoSelect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.YM.serversAutoVersionSelect;return"auto"===e?"1.19.4":"latest"===e?g.ZP.at(-1):e},y=(r=(0,s._)(function(e){var t;return(0,l.Jh)(this,function(n){switch(n.label){case 0:return[4,window._LOAD_MC_DATA()];case 1:return n.sent(),t=u()(e),window.PrismarineBlock=w()(t.version.minecraftVersion),window.PrismarineItem=h()(t.version.minecraftVersion),window.loadedData=t,window.mcData=t,M.N_.loadedDataVersion=e,[2]}})}),function(e){return r.apply(this,arguments)}),A=(a=(0,s._)(function(e){return(0,l.Jh)(this,function(t){switch(t.label){case 0:return null==e||e("mc-data",!1),[4,window._LOAD_MC_DATA()];case 1:return t.sent(),null==e||e("mc-data",!0),[2]}})}),function(e){return a.apply(this,arguments)}),b=(o=(0,s._)(function(){var e;return(0,l.Jh)(this,function(t){switch(t.label){case 0:if(e="mojangles",document.fonts.check("1em ".concat(e)))return[3,2];return[4,document.fonts.load("1em ".concat(e)).catch(function(){console.error("Failed to load font, signs wont be rendered correctly")})];case 1:t.sent(),t.label=2;case 2:return[2]}})}),function(){return o.apply(this,arguments)}),_=(i=(0,s._)(function(e){return(0,l.Jh)(this,function(t){switch(t.label){case 0:return null==e||e("fonts",!1),null==e||e("sounds",!1),[4,Promise.all([b().then(function(){return null==e?void 0:e("fonts",!0)}),(0,v.u)().then(function(){return null==e?void 0:e("sounds",!0)})])];case 1:return t.sent(),[2]}})}),function(e){return i.apply(this,arguments)})},48044:function(e,t,n){"use strict";n.d(t,{Fs:()=>runAuthFlow,E3:()=>createLoginPromptDebouncer,Zt:()=>buildAuthCommand,cX:()=>detectLoginPrompt,f6:()=>isLoginMonitorActive,gL:()=>monitorLoginAttempt}),n(72558);var r,a,o=n(14772),i=n(4186),s=n(22312),l=n(9787);n(90804),n(24705),n(53346),n(40542),n(79653),n(96220);var c=n(68733),u=n(50343),d=n(30232),w=n(12179),p=/wrong password|incorrect password|invalid password|wrong username|login failed|access denied|old password is wrong|неверн|неправильн|пароль[^а-яё]*невер/i,h=/password changed|password successfully updated|account removed|пароль изменён|аккаунт удалён/i,isLoginMonitorActive=function(){return void 0!==a},extractText=function(e){try{return(0,c.wv)(e).map(function(e){var t;return null!=(t=e.text)?t:""}).join("")}catch(t){if("string"==typeof e)return e;return""}},M=(r=(0,o._)(function(e,t,n){var r,a;return(0,l.Jh)(this,function(o){switch(o.label){case 0:if(o.trys.push([0,2,,3]),"undefined"==typeof navigator||!("credentials"in navigator)||"function"!=typeof(r=window.PasswordCredential))return[2];return a=new r({id:e,password:t,name:n}),[4,navigator.credentials.store(a)];case 1:case 2:return o.sent(),[3,3];case 3:return[2]}})}),function(e,t,n){return r.apply(this,arguments)}),onSuccessSave=function(e){try{(0,d.JM)(e.password,{silent:!0})}catch(e){console.error("saveServerPassword failed",e)}e.username&&e.serverIp&&M(e.username,e.password,e.serverIp)},monitorLoginAttempt=function(e){var t,n,messageListener=function(t){var n=extractText(t);if(n){if(p.test(n))return void onFailure();("changepassword"===e.mode||"unregister"===e.mode)&&h.test(n)&&onSuccess()}},kickListener=function(){onFailure()};if("undefined"!=typeof bot&&bot){a&&(a.cleanup(),a=void 0);var r=null!=(t=e.timeoutMs)?t:5e3,o=bot,l=!1,c={cleanup:function(){}},cleanup=function(){void 0!==n&&(clearTimeout(n),n=void 0);try{o.removeListener("message",messageListener)}catch(e){}try{o.removeListener("kicked",kickListener)}catch(e){}a===c&&(a=void 0)};c.cleanup=cleanup;var onFailure=function(){if(!l){if(l=!0,cleanup(),e.preSaved&&"unregister"!==e.mode)try{(0,d.Rt)()}catch(e){console.error("clearServerPassword failed",e)}var t=e.preSaved&&"unregister"!==e.mode?"Saved password was cleared":"Try again",n="changepassword"===e.mode?"Auto-fill: password change failed":"unregister"===e.mode?"Auto-fill: unregister failed":"Auto-fill login: wrong password";if((0,w.c0)(n,t,!0),"modal"===e.source&&e.serverIp&&e.username&&"unregister"!==e.mode){var r=e.serverIp,a=e.username,o=e.mode;setTimeout(function(){(0,u.K)({mode:o,serverIp:r,username:a,prefilledPassword:(0,d.x2)()}).then(function(e){(null==e?void 0:e.password)&&("changepassword"!==o||e.newPassword)&&runAuthFlow(bot,o,e,{serverIp:r,username:a,source:"modal"})})},50)}}},onSuccess=function(){if(!l){if(l=!0,cleanup(),"unregister"===e.mode){try{(0,d.Rt)()}catch(e){console.error("clearServerPassword failed",e)}(0,w.c0)("Account unregistered","Saved password was removed",!1);return}if("changepassword"===e.mode&&e.newPassword){onSuccessSave((0,s._)((0,i._)({},e),{password:e.newPassword})),(0,w.c0)("Password changed","Saved password was updated",!1);return}e.preSaved?e.username&&e.serverIp&&M(e.username,e.password,e.serverIp):onSuccessSave(e)}};o.on("message",messageListener),o.on("kicked",kickListener),n=setTimeout(onSuccess,r),a=c}},buildAuthCommand=function(e,t,n){switch(e){case"login":return"/login ".concat(t);case"register":return"/register ".concat(t," ").concat(t);case"changepassword":if(!n)return null;return"/changepassword ".concat(t," ").concat(n);case"unregister":return"/unregister ".concat(t)}},sendAuthCommand=function(e,t,n,r){if(!e)return!1;var a=buildAuthCommand(t,n,r);if(!a)return!1;try{e.chat(a)}catch(e){}return!0},runAuthFlow=function(e,t,n,r){var a;return!!n.commandSent||!!sendAuthCommand(e,t,n.password,n.newPassword)&&(monitorLoginAttempt({password:n.password,newPassword:n.newPassword,mode:t,source:r.source,serverIp:r.serverIp,username:r.username,preSaved:null!=(a=r.preSaved)&&a}),!0)};n(64912),n(81812),n(98719),n(84317),n(8957),n(44792),n(33785),n(9587),n(13278),n(64391),n(86838),n(80062),n(50433),n(97336),n(65855),n(56656),n(42449),n(96573),n(94244),n(42050),n(83902);var g=/(?:^|\W)\/login\b/i,m=/(?:^|\W)\/register\b/i,v=/(?:^|\W)\/changepassword\b/i,y=/(?:^|\W)\/unregister\b/i,detectLoginPrompt=function(e){if(!e)return null;var t=e.replaceAll(/\u00A7./g,""),n=g.test(t),r=m.test(t),a=v.test(t),o=y.test(t);return n&&r?"either":n?"login":r?"register":a?"changepassword":o?"unregister":null},createLoginPromptDebouncer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4,t=new Map;return{shouldTrigger:function(n){var r=Date.now(),a=t.get(n);return(void 0===a||!(r-acreateWrappedProgressReporter,gO:()=>createNotificationProgressReporter,nx:()=>createConsoleLogProgressReporter,xC:()=>createFullScreenProgressReporter});var r=n(14772),a=n(59240),o=n(25763),i=n(9787);n(98719),n(84317),n(8957),n(44792),n(33785),n(9587),n(13278),n(64391),n(86838),n(80062),n(50433),n(97336),n(65855),n(56656),n(42449),n(96573),n(94244),n(42050),n(83902),n(66395),n(56843),n(98474),n(72558),n(58207),n(8705),n(58819),n(40542),n(26980),n(52457);var s=n(19478),l=n(76945),c=n(12179),u=n(7329),createProgressReporter=function(e){var t,n=new Map,s=!1,end=function(){s||(s=!0,n.clear(),e.end())},updateStatus=function(){if(!s){var r=(0,o._)(n.entries());if(0===r.length)return void e.setMessage("Waiting for tasks");var i=(0,a._)(r.at(-1),2),l=(i[0],i[1]),c=l.title;if(l.subStage&&(c+=" - ".concat(l.subStage)),void 0!==l.progress){var u=Math.round(100*l.progress);isFinite(u)&&(c+=": ".concat(u,"%"))}t=c,e.setMessage(c)}},l={beginStage:function(e,t){if(n.has(e))throw Error("Stage ".concat(e," already is running"));n.set(e,{title:t}),updateStatus()},endStage:function(e){n.delete(e),updateStatus()},setSubStage:function(e,t){var r=n.get(e);r&&(r.subStage=t,updateStatus())},reportProgress:function(e,t){var r=n.get(e);r&&(r.progress=t,updateStatus())},executeWithMessage:function(){for(var e=arguments.length,t=Array(e),n=0;nM});var r,a,o=n(41441),i=n(68770),s=n(2836),l=n(88353);n(67022),n(56520),n(72558),n(56515);var c=n(85681),u=n(30367),d=n(72100).EventEmitter,w=n(41880)("minecraft-protocol"),p=n(82490);null!=(r=window).serverDataChannel||(r.serverDataChannel={});var h={sendData:function(e){var t=this;setTimeout(function(){window.serverDataChannel[t.isServer?"emitClient":"emitServer"](e)})},receiverSetup:function(e){window.serverDataChannel[this.isServer?"emitServer":"emitClient"]=function(t){e(t)}}};let M=function(e){function CustomChannelClient(e,t){var n;return(0,i._)(this,CustomChannelClient),(n=(0,o._)(this,CustomChannelClient)).version=t,n.isServer=!!e,n.state=p.HANDSHAKING,n}(0,l._)(CustomChannelClient,e);var t=CustomChannelClient.prototype;return t.setSerializer=function(e){var t=this;h.receiverSetup.call(this,function(e){u.YM.excludeCommunicationDebugEvents.includes(e.name)||w("receive in ".concat(t.isServer?"server":"client",": ").concat(e.name)),t.emit(e.name,e.params,e),t.emit("packet_name",e.name,e.params,e)})},t.end=function(e,t){this.state===p.PLAY?(t||(t=loadedData.supportFeature("chatPacketsUseNbtComponents")?c.comp({text:c.string(e)}):JSON.stringify({text:e})),this.write("kick_disconnect",{reason:t})):this.state===p.LOGIN&&(t||(t=JSON.stringify({text:e})),this.write("disconnect",{reason:t})),this._endReason=e,this.emit("end",this._endReason)},t.write=function(e,t){u.YM.excludeCommunicationDebugEvents.includes(e)||(w("[".concat(this.state,"] from ").concat(this.isServer?"server":"client",": ")+e),w(t)),this.emit("writePacket",e,t),h.sendData.call(this,{name:e,params:t,state:this.state})},t.writeBundle=function(e){},t.writeRaw=function(e){},(0,s._)(CustomChannelClient,[{key:"state",get:function(){return this.protocolState},set:function(e){var t=this.protocolState;this.protocolState=e,this.setSerializer(this.protocolState),this.emit("state",e,t)}}]),CustomChannelClient}(d)},20095:function(e,t,n){"use strict";n.d(t,{f:()=>c});var r=n(41441),a=n(68770),o=n(88353),i=n(72100),s=n.n(i),l=n(27905),c=function(e){function LocalServer(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,a._)(this,LocalServer),(n=(0,r._)(this,LocalServer)).version=e,n.customPackets=t,n.hideErrors=o,n.socketServer=null,n.cipher=null,n.decipher=null,n.clients={},n}(0,o._)(LocalServer,e);var t=LocalServer.prototype;return t.listen=function(){this.emit("connection",new l.Z(!0,this.version))},t.close=function(){},LocalServer}(s().EventEmitter)},35289:function(e){e.exports={motd:"A Minecraft Server \nRunning flying-squid",port:25565,"max-players":10,"online-mode":!1,gameMode:0,difficulty:0,worldFolder:"world",pluginsFolder:!0,generation:{name:"diamond_square",options:{}},kickTimeout:1e4,plugins:{},modpe:!1,"view-distance":2,"player-list-text":{header:"Flying squid",footer:"Integrated server"},keepAlive:!1,"everybody-op":!0,"max-entities":100,version:"1.18",versionMajor:"1.18"}},76738:function(e,t,n){"use strict";n.d(t,{FP:()=>l,vC:()=>i,w$:()=>s});var r=n(4186),a=n(22312),o=n(96196),i=(0,a._)((0,r._)({renderDistance:3,closeConfirmation:!0,autoFullScreen:!1,mouseRawInput:!0,autoExitFullscreen:!1,localUsername:"wanderer",mouseSensX:50,mouseSensY:-1,chatWidth:320,chatHeight:180,chatScale:100,chatOpacity:100,chatOpacityOpened:100,messagesLimit:200,displayLoadingMessages:!0,volume:50,enableMusic:!0,musicVolume:25,defaultPerspective:"first_person",guiScale:3,autoRequestCompletions:!0,touchButtonsSize:40,touchButtonsOpacity:80,touchButtonsPosition:12,touchControlsPositions:getDefaultTouchControlsPositions(),touchControlsSize:getTouchControlsSize(),touchMovementType:"modern",touchInteractionType:"classic",disableAssets:!1,debugLogNotFrequentPackets:!1,unimplementedContainers:!1},o.wz),{enabledResourcepack:null,useVersionsTextures:"latest",serverResourcePacks:"prompt",displayRecordButton:!0,packetsLoggerPreset:"all",serversAutoVersionSelect:"auto",customChannels:"websocket",remoteContentNotSameOrigin:!1,packetsRecordingAutoStart:!1,language:"auto",preciseMouseInput:!1,waitForChunksRender:!1,inventoryJei:!0,inventoryNotes:!0,inventoryPlaceholders:!1,inventoryPlayerModel:!0,modsSupport:!1,modsAutoUpdate:"check",modsUpdatePeriodCheck:24,preventBackgroundTimeoutKick:!1,preventSleep:!1,debugContro:!1,debugChatScroll:!1,chatVanillaRestrictions:!0,debugResponseTimeIndicator:!1,chatPingExtension:!0,chatSpellCheckEnabled:!1,chatAlwaysDisplayTypingIndicator:!1,topRightTimeDisplay:"only-fullscreen",singleplayerAutoSave:!1,alwaysBackupWorldBeforeLoading:void 0,alwaysShowMobileControls:!1,autoDisplayRotation:!1,excludeCommunicationDebugEvents:[],preventDevReloadWhilePlaying:!1,localServerOptions:{gameMode:1},saveLoginPassword:"prompt",preferLoadReadonly:!1,experimentalClientSelfReload:!1,remoteSoundsSupport:!1,remoteSoundsLoadTimeout:500,disableLoadPrompts:!1,guestUsername:"guest",askGuestName:!0,errorReporting:!0,showCursorBlockInSpectator:!1,chatSelect:!0,autoOpenAuthModal:!1,autoJump:"auto",autoParkour:!1,autoRespawn:!1,mutedSounds:[],plugins:[],autoSignEditor:!0,wysiwygSignEditor:"auto",showMinimap:"never",minimapOptimizations:!0,displayBossBars:!0,disabledUiParts:[],neighborChunkUpdates:!0,activeRenderer:"auto"});function getDefaultTouchControlsPositions(){return{action:[70,76],sneak:[84,76],break:[70,57],jump:[84,57]}}function getTouchControlsSize(){return{joystick:55,action:36,break:36,jump:36,sneak:36}}var s={remoteContentNotSameOrigin:!0,renderEars:!0,viewBobbing:!0,mouseRawInput:!0,preciseMouseInput:!0,showHand:!0,fov:!0,defaultPerspective:!0,volume:!0,musicVolume:!0,enableMusic:!0,smoothLighting:!0,starfieldRendering:!0,defaultSkybox:!0,dayCycleAndLighting:!0,showChunkBorders:!0,renderDebug:!0,highlightBlockColor:!0,displayBossBars:!0,showMinimap:!0,autoJump:!0,chatVanillaRestrictions:!0,chatPingExtension:!0,chatSpellCheckEnabled:!0,renderEntities:!0,displayRecordButton:!0,topRightTimeDisplay:!0,guiScale:!0,chatWidth:!0,chatHeight:!0,chatScale:!0,loadPlayerSkins:!0,disableBlockEntityTextures:!0,neighborChunkUpdates:!0,newVersionsLighting:!0,showCursorBlockInSpectator:!0},l=(0,a._)((0,r._)({},o.QN),{activeRenderer:{possibleValues:[["threejs","Three.js (stable)"]]},serverResourcePacks:{possibleValues:["prompt","always","never"]},showMinimap:{possibleValues:["always","singleplayer","never"]},wysiwygSignEditor:{possibleValues:["auto","always","never"]},touchMovementType:{possibleValues:[["modern","Modern"],["classic","Classic"]]},touchInteractionType:{possibleValues:[["classic","Classic"],["buttons","Buttons"]]},autoJump:{possibleValues:["always","auto","never"]},saveLoginPassword:{possibleValues:["prompt","always","never"]},packetsLoggerPreset:{possibleValues:[["all","All"],["no-buffers","No Buffers"]]},localUsername:{isCustomInput:!0},guestUsername:{isCustomInput:!0},language:{isCustomInput:!0},enabledResourcepack:{isCustomInput:!0},useVersionsTextures:{isCustomInput:!0}})},29223:function(e,t,n){"use strict";n.d(t,{Jg:()=>nameToMcOfflineUUID,kB:()=>w,zP:()=>p});var r,a,o=n(14772),i=n(25763),s=n(9787);n(83902),n(8705),n(76148),n(2685),n(52003),n(23712),n(12989),n(78873),n(96573),n(94244),n(42050),n(56070),n(72558),n(90804),n(24705),n(53346);var l=n(83923),c=n(50610),u=n.n(c),d=n(24375);function javaUUID(e){var t=l.createHash("md5");t.update(e,"utf8");var n=t.digest();return n[6]=15&n[6]|48,n[8]=63&n[8]|128,n}function nameToMcOfflineUUID(e){return new(u())(javaUUID("OfflinePlayer:"+e)).toString()}function savePlayers(e){return _savePlayers.apply(this,arguments)}function _savePlayers(){return(_savePlayers=(0,o._)(function(e){var t;return(0,s.Jh)(this,function(n){switch(n.label){case 0:if(!(null==(t=localServer)?void 0:t.players[0])||e&&"true"===new URL(location.href).searchParams.get("noSave"))return[2];return[4,localServer.savePlayersSingleplayer()];case 1:return n.sent(),[2]}})})).apply(this,arguments)}var w=(r=(0,o._)(function(){var e,t,n=arguments;return(0,s.Jh)(this,function(r){switch(r.label){case 0:var a;if(e=!(n.length>0)||void 0===n[0]||n[0],!localServer||d.RL.isReadonly)return[2];return console.time("save server"),t=[localServer.overworld],[4,Promise.all([localServer.writeLevelDat(),savePlayers(e)].concat((0,i._)(t.map((a=(0,o._)(function(e){return(0,s.Jh)(this,function(t){return[2,e.saveNow()]})}),function(e){return a.apply(this,arguments)})))))];case 1:return r.sent(),console.timeEnd("save server"),[2]}})}),function(){return r.apply(this,arguments)}),p=(a=(0,o._)(function(){return(0,s.Jh)(this,function(e){switch(e.label){case 0:if(!localServer)return[3,2];return[4,w()];case 1:e.sent(),localServer.quit(),e.label=2;case 2:return window.history.replaceState({},"","".concat(window.location.pathname)),bot.end("You left the server"),location.reload(),[2]}})}),function(){return a.apply(this,arguments)})},32776:function(e,t,n){"use strict";n.d(t,{$:()=>l,M:()=>c});var r=n(4186),a=n(66796),o=n(23644),i=n(14610),s=n(10921),l={latest_gui_title_minecraft:(0,r._)({content:a,resourcePackPath:"minecraft/textures/gui/title/minecraft.png"},{cssVar:"--title-gui"}),other_textures_1_19_gui_icons:(0,r._)({content:o,resourcePackPath:"minecraft/textures/gui/icons.png"},{cssVar:"--gui-icons",cssVarRepeat:2}),other_textures_latest_gui_widgets:(0,r._)({content:i,resourcePackPath:"minecraft/textures/gui/widgets.png"},{cssVar:"--widgets-gui-atlas"}),other_textures_latest_gui_bars:(0,r._)({content:s,resourcePackPath:"minecraft/textures/gui/bars.png"},{cssVar:"--bars-gui-atlas"})},c={latest_gui_title_minecraft:a,other_textures_1_19_gui_icons:o,other_textures_latest_gui_widgets:i,other_textures_latest_gui_bars:s}},40451:function(e,t,n){"use strict";n.d(t,{K4:()=>showModal,M:()=>i,NZ:()=>openOptionsMenu,N_:()=>l,Ro:()=>o,VG:()=>hideModal,eJ:()=>s,kJ:()=>hideCurrentModal,om:()=>maybeCleanupAfterDisconnect,rl:()=>c,sr:()=>hideAllModals,w6:()=>insertActiveModalStack,z7:()=>isGameActive});var r=n(25763);n(52307),n(8416),n(93118),n(82766),n(37151),n(20142),n(89909),n(24578),n(89437),n(802),n(52895),n(46525),n(83930),n(18369),n(41494),n(66616),n(39222),n(83282),n(59237),n(60353),n(40332),n(72040),n(52768),n(2249),n(96573),n(94244),n(42050),n(83902),n(26980),n(72558),n(66395),n(56843),n(98474),n(40542),n(55058),n(29127),n(95790),n(86070),n(49245);var a=n(44846),o=new Set(["app-status","divkit:nonclosable","only-connect-server"]),i=(0,a.sj)([]),insertActiveModalStack=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s[e];hideModal(void 0,void 0,{restorePrevious:!1,force:!0}),i.splice.apply(i,[0,i.length].concat((0,r._)(t)));var n=i.at(-1);n&&showModalInner(n)},s={};window.activeModalStack=i;var showModalInner=function(e){var t,n;return null==(n=e.elem)||null==(t=n.show)||t.call(n),!0},showModal=function(e){var t="string"==typeof e?{reactType:e}:e,n=i.at(-1);(!t.reactType||t.reactType!==(null==n?void 0:n.reactType))&&showModalInner(t)&&i.push(t)};window.showModal=showModal;var hideModal=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.at(-1),t=(arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),n=t.force,a=void 0!==n&&n,s=t.restorePrevious;if(e){var l=(0,r._)(o).some(function(t){return e.reactType.startsWith(t)})?!a:void 0;if(a&&(l=void 0),!l){for(var c=i.at(-1),u=i.length-1;u>=0;u--)if(i[u].reactType===e.reactType){i.splice(u,1);break}var d=i.at(-1);return d&&c!==d&&(void 0===s||s)&&showModalInner(d),!0}}},hideCurrentModal=function(e,t){hideModal(void 0,void 0)&&(null==t||t())},hideAllModals=function(){for(;i.length>0&&hideModal(););return 0===i.length},openOptionsMenu=function(e){showModal({reactType:"options-".concat(e)})},syncModalStackBody=function(){document.body.style.setProperty("--has-modals-z",i.length?"-1":null),document.body.classList.toggle("has-open-modals",i.length>0)};(0,a.Ld)(i,syncModalStackBody),syncModalStackBody(),(0,a.sj)({items:[],x:0,y:0});var l=(0,a.sj)({currentDisplayQr:null,currentTouch:null,hasErrors:!1,singleplayer:!1,flyingSquid:!1,wanOpened:!1,wanOpening:!1,hadConnected:!1,gameLoaded:!1,showUI:!0,showDebugHud:!1,loadedServerIndex:"",loadedDataVersion:null,fsReady:!1,singleplayerAvailable:!1,usingGamepadInput:!1,appConfig:null,displaySearchInput:!1,displayFullmap:!1,fullscreen:!1,displayRotationEnabled:!1,viewportPortrait:!1,disconnectedCleanup:null}),maybeCleanupAfterDisconnect=function(){l.disconnectedCleanup&&(l.disconnectedCleanup.callback(),l.disconnectedCleanup=null)};window.miscUiState=l;var isGameActive=function(e){return(!e||!i.length)&&l.gameLoaded},updateFullscreen=function(){l.fullscreen=!!document.fullscreenElement};document.documentElement.addEventListener("fullscreenchange",function(){updateFullscreen()}),updateFullscreen();var c=(0,a.sj)({isFlying:!1,isSprinting:!1,isSneaking:!1,isZooming:!1,warps:[],noConnection:!1,poorConnection:!1,viewerConnection:!1,usingServerResourcePack:!1,typingUsers:[]});window.gameAdditionalState=c},65230:function(e,t,n){var r,a,o,i,s,l,c=n(14224);n(73372),null!=(r=globalThis).window||(r.window=globalThis),null!=(a=globalThis).localStorage||(a.localStorage={}),c.versions.node="18.0.0",navigator.getGamepads||(console.warn("navigator.getGamepads is not available, adding a workaround"),null!=(s=navigator).getGamepads||(s.getGamepads=function(){return[]}))},40515:function(e,t,n){"use strict";var r,a,o,i,s,l,c,u,d,w,p,h,M,g,m,v,y,A,b,_,L,C,j,D,x,k,N,T,S,z,q,E,I,P,Y,O,R,B,U,Q,F,W,J,V,G,H,Z,K,X,$,ee,et,en,er,ea,eo,ei,es,el,ec,eu,ed,ew,ef,ep,eh,eM,eg,em,ev,ey,eA,eb,e_,eL={};n.r(eL),n.d(eL,{default:()=>ModuleSignsViewer,name:()=>tT});var eC=n(14772),ej=n(4186),eD=n(22312),ex=n(40413),ek=n(59240),eN=n(81979),eT=n(9787);n(56070),n(83902),n(58207),n(34812),n(69047),n(95922),n(95790),n(7611),n(65340),n(2850),n(90804),n(24705),n(53346),n(74822),n(96220),n(80669),n(49315),n(5556),n(87620),n(83210),n(86070),n(72558),n(79653),n(67022),n(56520),n(11304),n(58819),n(7960),n(46302),n(64813),n(96573),n(94244),n(42050),n(52003),n(23712),n(12989),n(78873),n(79525),n(59045),n(40542),n(49245),n(8705),n(56515),n(52251),n(64650),n(65230);var eS=n(32175);if("1"===eS.EX.testCrashApp)throw Error("test error");var ez=n(72100),eq=n.n(ez);window.reportError=null!=(eh=window.reportError)?eh:console.error,window.bot=void 0,window.THREE=void 0,window.localServer=void 0,window.worldView=void 0,window.viewer=void 0,window.appViewer=void 0,window.loadedData=void 0,window.customEvents=new(eq()),window.customEvents.setMaxListeners(1e4),window.translate=function(e){var t,n,r;return"string"!=typeof e?e:null!=(r=null==(t=(n=window).translateText)?void 0:t.call(n,e))?r:e};var eE=n(25763);n(48899),n(81812),n(25113),n(44982),n(11747),n(10591),n(64912),n(76148),n(2685),n(66395),n(56843),n(98474),n(50183);var eI=n(9304),eP=n.n(eI),eY=n(92209),eO=n(41880),eR=n.n(eO),eB=n(95577);customEvents.on("mineflayerBotCreated",function(){window.debugServerPacketNames=Object.fromEntries(Object.keys(loadedData.protocol.play.toClient.types).map(function(e){return[e=e.replace("packet_",""),e]})),window.debugClientPacketNames=Object.fromEntries(Object.keys(loadedData.protocol.play.toServer.types).map(function(e){return[e=e.replace("packet_",""),e]}))}),window.Vec3=eB.A,window.cursorBlockRel=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=null==(e=bot.blockAtCursor(5))?void 0:e.position.offset(t,n,r);if(a)return bot.world.getBlock(a)},window.entityCursor=function(){return bot.mouse.getCursorState().entity},window.inspectPlayer=function(){return n(9304).promises.readFile("/world/playerdata/9e487d23-2ffc-365a-b1f8-f38203f59233.dat").then(window.nbt.parse).then(console.log)},Object.defineProperty(window,"debugSceneChunks",{get:function(){var e,t;if(window.world instanceof eY.F)return null==(t=window.world)||null==(e=t.getLoadedChunksRelative)?void 0:e.call(t,bot.entity.position,!0)}}),window.chunkKey=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=bot.entity.position;return"".concat((Math.floor(n.x/16)+e)*16,",").concat((Math.floor(n.z/16)+t)*16)},window.sectionKey=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=bot.entity.position;return"".concat((Math.floor(r.x/16)+e)*16,",").concat((Math.floor(r.y/16)+t)*16,",").concat((Math.floor(r.z/16)+n)*16)},window.keys=function(e){return Object.keys(e)},window.values=function(e){return Object.values(e)},window.len=function(e){return Object.keys(e).length},customEvents.on("gameLoaded",function(){bot._client.on("packet",function(e,t){var n,r=t.name;if(null==(n=sessionStorage.ignorePackets)?void 0:n.includes(r)){console.log("ignoring packet",r);var a=bot._client.emit,o=0;bot._client.emit=function(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];"function"==typeof t&&(n=t,t=!1);var r="function"==typeof n?function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a1?r-1:0),o=1;o.03||Math.abs(M.z)>.03,v=Math.abs(M.x)>.18||Math.abs(M.z)>.18,y=g?m?"crouchWalking":"crouch":m?v?"running":"walking":"idle";y!==e[u]&&(h===bot.entity?null==(s=(0,e1.z)())||s.playEntityAnimation("player_entity",y):null==(l=(0,e1.z)())||l.playEntityAnimation(h.id,y),e[u]=y)}}}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}}}),bot.on("entitySwingArm",function(e){var t;null==(t=(0,e1.z)())||t.playEntityAnimation(e.id,"oneSwing")}),bot.on("botArmSwingStart",function(e){if("right"===e){var t;null==(t=(0,e1.z)())||t.playEntityAnimation("player_entity","oneSwing")}}),bot.inventory.on("updateSlot",function(e){if(5===e||6===e||7===e||8===e){var t,n=bot.inventory.slots[e];bot.entity.equipment[e-3]=n,null==(t=appViewer.worldView)||t.emit("playerEntity",bot.entity)}}),bot.on("heldItemChanged",function(){var e,t=bot.inventory.slots[bot.quickBarSlot+36];bot.entity.equipment[0]=t,null==(e=appViewer.worldView)||e.emit("playerEntity",bot.entity)}),bot._client.on("damage_event",function(e){var t,n=e.entityId,r=e.sourceTypeId;null==(t=(0,e1.z)())||t.damageEntity(n,r)}),bot._client.on("entity_status",function(e){if(!((0,eZ.Uo)(bot.version)>=(0,eZ.Uo)("1.19.4"))){var t,n=e.entityId,r=e.entityStatus;r===e4.HURT&&(null==(t=(0,e1.z)())||t.damageEntity(n,r)),r===e4.BURNED&&updateEntityStates(n,!0,!0)}}),bot._client.on("entity_metadata",function(e){e.entityId===bot.entity.id&&handleEntityMetadata(e)}),bot.on("end",function(){eM&&(clearTimeout(eM),eM=void 0)}),bot.on("respawn",function(){eM&&(clearTimeout(eM),eM=void 0),appViewer.playerState.reactive.onFire=!1});var updateCamera=function(e){"spectator"===bot.game.gameMode&&(bot.entity.position=e.position.clone(),bot.look(e.yaw,e.pitch,!0),bot.entity.yaw=e.yaw,bot.entity.pitch=e.pitch)};bot.on("entityGone",function(e){bot.tracker.stopTrackingEntity(e,!0)}),bot.on("entityMoved",function(e){checkEntityData(e),appViewer.playerState.reactive.cameraSpectatingEntity===e.id&&updateCamera(e)}),bot._client.on("entity_velocity",function(e){var t=bot.entities[e.entityId];t&&checkEntityData(t)});var n=!0,r=!1,a=void 0;try{for(var o,i=Object.values(bot.entities)[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=o.value;s!==bot.entity&&checkEntityData(s)}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}trackBotEntity(),bot.on("entitySpawn",function(e){checkEntityData(e),appViewer.playerState.reactive.cameraSpectatingEntity===e.id&&updateCamera(e)}),bot.on("entityUpdate",checkEntityData),bot.on("entityEquip",checkEntityData),bot.on("login",function(){setTimeout(function(){trackBotEntity()})}),bot._client.on("camera",function(e){if(bot.player.entity.id===e.cameraId){if((0,e3.X5)(appViewer.playerState.reactive).isSpectatingEntity()&&appViewer.playerState.reactive.cameraSpectatingEntity){var t=bot.entities[appViewer.playerState.reactive.cameraSpectatingEntity];appViewer.playerState.reactive.cameraSpectatingEntity=void 0,t&&bot.emit("entityUpdate",t)}}else if("spectator"===appViewer.playerState.reactive.gameMode){var n=bot.entities[e.cameraId];appViewer.playerState.reactive.cameraSpectatingEntity=e.cameraId,n&&(updateCamera(n),bot.emit("entityUpdate",n))}});var applySkinTexturesProxy=function(e){var t=e5.N_.appConfig;return(null==t?void 0:t.skinTexturesProxy)?null==e?void 0:e.replace("http://textures.minecraft.net/",t.skinTexturesProxy).replace("https://textures.minecraft.net/",t.skinTexturesProxy):e},updateSkin=function(e){if(e.uuid&&e.username&&e.skinData)try{var t,n,r=applySkinTexturesProxy(e.skinData.url),a=applySkinTexturesProxy(e.skinData.capeUrl);(0,e1.z)().updatePlayerSkin(null!=(n=null==(t=e.entity)?void 0:t.id)?n:"",e.username,e.uuid,null==r||r,a),e.entity===bot.entity&&(appViewer.playerState.reactive.playerSkin=r)}catch(e){reportError(Error("Error applying skin texture:",{cause:e}))}};bot.on("playerJoined",updateSkin),bot.on("playerUpdated",updateSkin);var l=!0,c=!1,u=void 0;try{for(var d,w=Object.values(bot.players)[Symbol.iterator]();!(l=(d=w.next()).done);l=!0){var p=d.value;updateSkin(p)}}catch(e){c=!0,u=e}finally{try{l||null==w.return||w.return()}finally{if(c)throw u}}var teamUpdated=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=Object.values(bot.entities)[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value;("player"===i.type&&i.username&&e.members.includes(i.username)||i.uuid&&e.members.includes(i.uuid))&&bot.emit("entityUpdate",i)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}};bot.on("teamUpdated",teamUpdated);var h=!0,M=!1,g=void 0;try{for(var m,v=Object.values(bot.teams)[Symbol.iterator]();!(h=(m=v.next()).done);h=!0){var y=m.value;teamUpdated(y)}}catch(e){M=!0,g=e}finally{try{h||null==v.return||v.return()}finally{if(M)throw g}}var updateEntityNameTags=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=Object.values(bot.entities)[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value,s="player"===i.type&&i.username?bot.teamMap[i.username]:i.uuid?bot.teamMap[i.uuid]:void 0;((null==s?void 0:s.nameTagVisibility)==="hideForOwnTeam"&&s.name===e.name||(null==s?void 0:s.nameTagVisibility)==="hideForOtherTeams"&&s.name!==e.name)&&bot.emit("entityUpdate",i)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}},doEntitiesNeedUpdating=function(e){var t,n;return"never"===e.nameTagVisibility||"hideForOtherTeams"===e.nameTagVisibility&&(null==(t=appViewer.playerState.reactive.team)?void 0:t.team)!==e.team||"hideForOwnTeam"===e.nameTagVisibility&&(null==(n=appViewer.playerState.reactive.team)?void 0:n.team)===e.team};bot.on("teamMemberAdded",function(e,t){var n;if(t.includes(bot.username)&&(null==(n=appViewer.playerState.reactive.team)?void 0:n.team)!==e.team)appViewer.playerState.reactive.team=e,updateEntityNameTags(e);else if(doEntitiesNeedUpdating(e)){var r=!0,a=!1,o=void 0;try{for(var i,s=Object.values(bot.entities)[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var l=i.value;("player"===l.type&&l.username&&t.includes(l.username)||l.uuid&&t.includes(l.uuid))&&bot.emit("entityUpdate",l)}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}}}),bot.on("teamMemberRemoved",function(e,t){var n;if(t.includes(bot.username)&&(null==(n=appViewer.playerState.reactive.team)?void 0:n.team)===e.team)appViewer.playerState.reactive.team=void 0,updateEntityNameTags(e);else if(doEntitiesNeedUpdating(e)){var r=!0,a=!1,o=void 0;try{for(var i,s=Object.values(bot.entities)[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var l=i.value;("player"===l.type&&l.username&&t.includes(l.username)||l.uuid&&t.includes(l.uuid))&&bot.emit("entityUpdate",l)}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}}}),bot.on("teamRemoved",function(e){var t;(null==(t=appViewer.playerState.reactive.team)?void 0:t.team)===(null==e?void 0:e.team)&&(appViewer.playerState.reactive.team=void 0,updateEntityNameTags(e))})});var e6={ON_FIRE:1},updateEntityStates=function(e,t,n){e===bot.entity.id&&(appViewer.playerState.reactive.onFire!==t&&(appViewer.playerState.reactive.onFire=t),eM&&(clearTimeout(eM),eM=void 0),n&&(eM=setTimeout(function(){eM=void 0,updateEntityStates(e,!1,!1)},5e3)))};function handleEntityMetadata(e){e.entityId;var t=e.metadata.find(function(e){return 0===e.key&&"byte"===e.type});if(t){var n=(t.value&e6.ON_FIRE)!=0;appViewer.playerState.reactive.onFire!==n&&(appViewer.playerState.reactive.onFire=n)}}n(15209);var e8=n(46290),e9=n.n(e8),e7=n(14987),te=n(391);n(73372);var tt=n(44846),tn=(0,tt.sj)({id:"",contents:"",line:0,column:0,language:"typescript",title:""});globalThis.ideState=tn;var registerIdeChannels=function(){registerIdeOpenChannel(),registerIdeSaveChannel()},registerIdeOpenChannel=function(){var e="minecraft-web-client:ide-open";bot._client.registerChannel(e,["container",[{name:"id",type:["pstring",{countType:"i16"}]},{name:"language",type:["pstring",{countType:"i16"}]},{name:"contents",type:["pstring",{countType:"i16"}]},{name:"line",type:"i32"},{name:"column",type:"i32"},{name:"title",type:["pstring",{countType:"i16"}]}]],!0),bot._client.on(e,function(e){var t=e.id,n=e.language,r=e.contents,a=e.line,o=e.column,i=e.title;tn.contents=r,tn.line=a,tn.column=o,tn.id=t,tn.language=n||"typescript",tn.title=i}),console.debug("registered custom channel ".concat(e," channel"))},tr="minecraft-web-client:ide-save",registerIdeSaveChannel=function(){bot._client.registerChannel(tr,["container",[{name:"id",type:["pstring",{countType:"i16"}]},{name:"contents",type:["pstring",{countType:"i16"}]},{name:"language",type:["pstring",{countType:"i16"}]},{name:"line",type:"i32"},{name:"column",type:"i32"}]],!0)},saveIde=function(){bot._client.writeChannel(tr,{id:tn.id,contents:tn.contents,language:tn.language,line:tn.line,column:tn.column})},ta=(0,tt.sj)({id:"",url:"",title:"",metadata:null});globalThis.iframeState=ta;var registerIframeChannels=function(){registerIframeOpenChannel()},registerIframeOpenChannel=function(){var e="minecraft-web-client:iframe-open";bot._client.registerChannel(e,["container",[{name:"id",type:["pstring",{countType:"i16"}]},{name:"url",type:["pstring",{countType:"i16"}]},{name:"title",type:["pstring",{countType:"i16"}]},{name:"metadataJson",type:["pstring",{countType:"i16"}]}]],!0),bot._client.on(e,function(e){var t=e.id,n=e.url,r=e.title,a=e.metadataJson,o=null;if(a&&""!==a.trim())try{o=JSON.parse(a)}catch(e){console.warn("Failed to parse iframe metadataJson:",e)}ta.id=t,ta.url=n,ta.title=r||"",ta.metadata=o}),console.debug("registered custom channel ".concat(e," channel"))},to=n(76738),ti=n(19478),getIsCustomChannelsEnabled=function(){var e,t;return"websocket"===e2.YM.customChannels?!!(t=null==(e=ti.Pc.value)?void 0:e.server)&&(t.startsWith("ws://")||t.startsWith("wss://")):e2.YM.customChannels};function customChannels(){customEvents.on("mineflayerBotCreated",(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return getIsCustomChannelsEnabled()&&bot.once("login",function(){registerConnectMetadataChannel(),registerBlockModelsChannel(),registerMediaChannels(),registerSectionAnimationChannels(),registeredJeiChannel(),registerBlockInteractionsCustomizationChannel(),registerWaypointChannels(),registerFireworksChannels(),registerIdeChannels(),registerIframeChannels(),registerServerSettingsChannel(),registerTypingIndicatorChannel()}),[2]})}))}var registerChannel=function(e,t,n){var r,a=!(arguments.length>3)||void 0===arguments[3]||arguments[3];bot._client.registerChannel(e,t,!0),bot._client.on(e,(r=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:if(!a)return[3,2];return[4,appViewer.worldReady];case 1:return t.sent(),n(e),[3,3];case 2:n(e),t.label=3;case 3:return[2]}})}),function(e){return r.apply(this,arguments)})),console.debug("registered custom channel ".concat(e," channel"))},registerConnectMetadataChannel=function(){var e="minecraft-web-client:connect-metadata";bot._client.registerChannel(e,["container",[{name:"metadata",type:["pstring",{countType:"i16"}]}]],!0),bot._client.writeChannel(e,{metadata:JSON.stringify((0,ej._)({version:"v2.1.0",build:"2026-07-12T10"},window.serverMetadataConnect))}),bot._client.on(e,function(e){try{var t=JSON.parse(e.metadata);window.serverMetadata=t,console.debug("Received server metadata:",t)}catch(e){console.warn("Failed to parse server metadata:",e)}})},registerBlockInteractionsCustomizationChannel=function(){registerChannel("minecraft-web-client:block-interactions-customization",["container",[{name:"newConfiguration",type:["pstring",{countType:"i16"}]}]],function(e){var t=JSON.parse(e.newConfiguration);bot.mouse.setConfigFromPacket(t)},!0)},registerFireworksChannels=function(){registerChannel("minecraft-web-client:firework-explode",["container",[{name:"x",type:"f32"},{name:"y",type:"f32"},{name:"z",type:"f32"},{name:"optionsJson",type:["pstring",{countType:"i16"}]}]],function(e){var t,n={};if(e.optionsJson&&""!==e.optionsJson.trim())try{n=JSON.parse(e.optionsJson)}catch(e){console.warn("Failed to parse firework optionsJson:",e)}n.position=new e7.P(e.x,e.y,e.z),null==(t=(0,e1.z)())||t.launchFirework(n)})},registerWaypointChannels=function(){registerChannel("minecraft-web-client:waypoint-add",["container",[{name:"id",type:["pstring",{countType:"i16"}]},{name:"x",type:"f32"},{name:"y",type:"f32"},{name:"z",type:"f32"},{name:"minDistance",type:"i32"},{name:"label",type:["pstring",{countType:"i16"}]},{name:"color",type:"i32"},{name:"metadataJson",type:["pstring",{countType:"i16"}]}]],function(e){var t,n={};if(e.metadataJson&&""!==e.metadataJson.trim())try{n=JSON.parse(e.metadataJson)}catch(e){console.warn("Failed to parse waypoint metadataJson:",e)}null==(t=(0,e1.z)())||t.addWaypoint(e.id,e.x,e.y,e.z,{minDistance:e.minDistance,maxDistance:n.maxDistance,label:e.label||void 0,color:e.color||void 0,metadata:n})}),registerChannel("minecraft-web-client:waypoint-delete",["container",[{name:"id",type:["pstring",{countType:"i16"}]}]],function(e){var t;null==(t=(0,e1.z)())||t.removeWaypoint(e.id)})},registerBlockModelsChannel=function(){registerChannel("minecraft-web-client:blockmodels",["container",[{name:"worldName",type:["pstring",{countType:"i16"}]},{name:"x",type:"i32"},{name:"y",type:"i32"},{name:"z",type:"i32"},{name:"model",type:["pstring",{countType:"i16"}]}]],function(e){e.worldName;var t,n=e.x,r=e.y,a=e.z,o=e.model,i=16*Math.floor(n/16),s=16*Math.floor(a/16),l="".concat(i,",").concat(s),c="".concat(n,",").concat(r,",").concat(a);null==(t=(0,e1.z)())||t.updateCustomBlock(l,c,o)},!0)},registerSectionAnimationChannels=function(){registerChannel("minecraft-web-client:section-animation-add",["container",[{name:"id",type:["pstring",{countType:"i16"}]},{name:"offset",type:"f32"},{name:"speedX",type:"f32"},{name:"speedY",type:"f32"},{name:"speedZ",type:"f32"},{name:"limitX",type:"f32"},{name:"limitY",type:"f32"},{name:"limitZ",type:"f32"}]],function(e){var t,n=e.id,r=e.offset,a=e.speedX,o=e.speedY,i=e.speedZ,s=e.limitX,l=e.limitY,c=e.limitZ;null==(t=(0,e1.z)())||t.addSectionAnimation(n,{time:performance.now(),speedX:a,speedY:o,speedZ:i,currentOffsetX:r,currentOffsetY:r,currentOffsetZ:r,limitX:0===s?void 0:s,limitY:0===l?void 0:l,limitZ:0===c?void 0:c})},!0),registerChannel("minecraft-web-client:section-animation-remove",["container",[{name:"id",type:["pstring",{countType:"i16"}]}]],function(e){var t,n=e.id;null==(t=(0,e1.z)())||t.removeSectionAnimation(n)},!0),console.debug("Registered section animation channels")};window.testSectionAnimation=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=bot.entity.position,r="".concat(16*Math.floor(n.x/16),",").concat(16*Math.floor(n.y/16),",").concat(16*Math.floor(n.z/16));null==(e=(0,e1.z)())||e.addSectionAnimation(r,{time:performance.now(),speedX:0,speedY:t,speedZ:0,currentOffsetX:0,currentOffsetY:0,currentOffsetZ:0})};var registeredJeiChannel=function(){var e="minecraft-web-client:jei";bot._client.registerChannel(e,["container",[{name:"id",type:["pstring",{countType:"i16"}]},{name:"_categoryTitle",type:["pstring",{countType:"i16"}]},{name:"items",type:["pstring",{countType:"i16"}]}]],!0),bot._client.on(e,function(e){var t=e.id,n=e.categoryTitle,r=e.items;if(""===r){te.Yq.value=te.Yq.value.filter(function(e){return e.id!==t});return}var a=e9()(bot.version);te.Yq.value.push({id:t,categoryTitle:n,items:JSON.parse(r).map(function(e){var t=e.itemName||e.item_name||e.item||e.itemId,r=loadedData.itemsByName[t.replace("minecraft:","")];return r?a.fromNotch((0,eD._)((0,ej._)({},e),{itemId:r.id})):(console.warn("Could not add item ".concat(t," to JEI category ").concat(n," because it was not found")),null)})})}),console.debug("registered custom channel ".concat(e," channel"))},registerMediaChannels=function(){var e=["container",[{name:"id",type:["pstring",{countType:"i16"}]}]],t=["container",[{name:"id",type:["pstring",{countType:"i16"}]},{name:"seconds",type:"f32"}]];registerChannel("minecraft-web-client:media-play",e,function(e){var t,n=e.id;null==(t=(0,e1.z)())||t.setVideoPlaying(n,!0)},!0),registerChannel("minecraft-web-client:media-pause",e,function(e){var t,n=e.id;null==(t=(0,e1.z)())||t.setVideoPlaying(n,!1)},!0),registerChannel("minecraft-web-client:media-seek",t,function(e){var t,n=e.id,r=e.seconds;null==(t=(0,e1.z)())||t.setVideoSeeking(n,r)},!0),registerChannel("minecraft-web-client:media-volume",t,function(e){var t,n=e.id,r=e.volume;null==(t=(0,e1.z)())||t.setVideoVolume(n,r)},!0),registerChannel("minecraft-web-client:media-speed",t,function(e){var t,n=e.id,r=e.speed;null==(t=(0,e1.z)())||t.setVideoSpeed(n,r)},!0),registerChannel("minecraft-web-client:media-destroy",e,function(e){var t,n=e.id;null==(t=(0,e1.z)())||t.destroyMedia(n)},!0),registerChannel("minecraft-web-client:media-add",["container",[{name:"id",type:["pstring",{countType:"i16"}]},{name:"x",type:"f32"},{name:"y",type:"f32"},{name:"z",type:"f32"},{name:"width",type:"f32"},{name:"height",type:"f32"},{name:"rotation",type:"i16"},{name:"source",type:["pstring",{countType:"i16"}]},{name:"loop",type:"bool"},{name:"volume",type:"f32"},{name:"_aspectRatioMode",type:"i16"},{name:"_background",type:"i16"},{name:"_opacity",type:"i16"},{name:"_cropXStart",type:"f32"},{name:"_cropYStart",type:"f32"},{name:"_cropXEnd",type:"f32"},{name:"_cropYEnd",type:"f32"}]],function(e){var t,n=e.id,r=e.x,a=e.y,o=e.z,i=e.width,s=e.height,l=e.rotation,c=e.source,u=e.loop,d=e.volume,w=e.background,p=e.opacity;null==(t=(0,e1.z)())||t.addMedia(n,{position:{x:r,y:a,z:o},size:{width:i,height:s},src:c,rotation:l,doubleSide:!1,background:w,opacity:p/100,allowOrigins:!1===e2.YM.remoteContentNotSameOrigin?[getCurrentTopDomain()]:e2.YM.remoteContentNotSameOrigin,loop:u,volume:d})}),bot._client.registerChannel(ts,["container",[{name:"id",type:["pstring",{countType:"i16"}]},{name:"x",type:"f32"},{name:"y",type:"f32"},{name:"isRightClick",type:"bool"}]],!0),bot._client.registerChannel(tl,e,!0),bot._client.registerChannel(tc,["container",[{name:"id",type:["pstring",{countType:"i16"}]},{name:"reason",type:["pstring",{countType:"i16"}]},{name:"time",type:"f32"}]],!0),console.debug("Registered media channels")},ts="minecraft-web-client:media-interaction",tl="minecraft-web-client:media-play",tc="minecraft-web-client:media-stop",sendVideoInteraction=function(e,t,n,r){bot._client.writeChannel(ts,{id:e,x:t,y:n,isRightClick:r})},videoCursorInteraction=function(){var e=appViewer.rendererState.world.intersectMedia;return e||null};window.videoCursorInteraction=videoCursorInteraction,window.addTestVideo=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=window.cursorBlockRel();if(a){var o=a.position;null==(e=(0,e1.z)())||e.addMedia("test-video",{position:{x:o.x,y:o.y+1,z:o.z},size:{width:n,height:n},src:r?"https://bucket.mcraft.fun/test_image.png":"https://bucket.mcraft.fun/test_video.mp4",rotation:t,background:0,opacity:1,allowOrigins:!0})}};var registerServerSettingsChannel=function(){registerChannel("minecraft-web-client:server-settings",["container",[{name:"settingsJson",type:["pstring",{countType:"i16"}]}]],function(e){try{var t=JSON.parse(e.settingsJson);if((void 0===t?"undefined":(0,eN._)(t))!=="object"||null===t||Array.isArray(t))return void console.warn("Invalid settings format: expected an object");var n=0,r=0,a=!0,o=!1,i=void 0;try{for(var s,l=Object.entries(t)[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=(0,ek._)(s.value,2),u=c[0],d=c[1];if(!(u in to.w$)){console.warn("Skipping unsafe setting: ".concat(u)),r++;continue}if(!(u in e2.YM)){console.warn("Setting does not exist: ".concat(u)),r++;continue}e2.of.value.add(u),e2.YM[u]=d,n++}}catch(e){o=!0,i=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw i}}console.debug("Applied ".concat(n," server settings").concat(r>0?", skipped ".concat(r," unsafe/invalid settings"):""))}catch(e){console.error("Failed to parse or apply server settings:",e)}},!1)},registerTypingIndicatorChannel=function(){registerChannel("minecraft-web-client:typing-indicator",["container",[{name:"username",type:["pstring",{countType:"i16"}]},{name:"isTyping",type:"bool"}]],function(e){var t=e.username;if(e.isTyping){var n=e5.rl.typingUsers.findIndex(function(e){return e.username===t});-1===n?e5.rl.typingUsers.push({username:t,timestamp:Date.now()}):e5.rl.typingUsers[n].timestamp=Date.now()}else e5.rl.typingUsers=e5.rl.typingUsers.filter(function(e){return e.username!==t})})};function getCurrentTopDomain(){var e=location.hostname.split(".");return e.length>2&&("co"===e.at(-2)||"com"===e.at(-2)||"org"===e.at(-2)||"gov"===e.at(-2))?e.slice(-3).join("."):e.slice(-2).join(".")}var tu=n(29223),td=n(5969);window.addEventListener("unload",function(e){window.justReloaded||(sessionStorage.justReloaded=!1),(0,tu.kB)()}),document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&(0,tu.kB)()}),document.addEventListener("blur",function(){(0,tu.kB)()}),window.addEventListener("beforeunload",function(e){var t,n;if((window.justReloaded||(sessionStorage.justReloaded=!1),((0,e5.z7)(!0)||(null==(n=e5.M.at(-1))||null==(t=n.elem)?void 0:t.id)==="chat")&&(!sessionStorage.lastReload||e2.YM.preventDevReloadWhilePlaying)&&e2.YM.closeConfirmation)&&(0,td.Ee)())return e.preventDefault(),e.returnValue="","The game is running. Are you sure you want to close this page?"}),window.addEventListener("contextmenu",function(e){var t,n;["INPUT","TEXTAREA","A"].includes(null==(t=e.target)?void 0:t.tagName)||(null==(n=window.getSelection())?void 0:n.toString())||e.preventDefault()});var tw="displayRotationEnabled",setDisplayRotationEnabled=function(e){e5.N_.displayRotationEnabled=e;try{sessionStorage.setItem(tw,e?"1":"0")}catch(e){}syncBodyDisplayRotation()},syncBodyDisplayRotation=function(){var e=window.innerWidth0&&void 0!==arguments[0]?arguments[0]:[],2),t=e[0],n=void 0===t?"":t,r=e[1],a=void 0===r?"":r,o=e2.YM[n];return a&&void 0!==o&&"toggle"!==a?"set"===a?(0,eD._)((0,ej._)({},function(){var e=to.FP[n];if((null==e?void 0:e.possibleValues)&&e.possibleValues.length>0){var t=e.possibleValues;return{type:"select",options:Array.isArray(t[0])&&"string"==typeof t[0][0]?t.map(function(e){return(0,ek._)(e,1)[0]}):t}}return"boolean"==typeof o?{type:"select",options:["true","false"]}:"number"==typeof o?{type:"number",min:null==e?void 0:e.min,max:null==e?void 0:e.max}:{type:"text"}}()),{placeholder:String(o)}):void 0:null}],handler:function(e){var t=(0,ek._)(e,3),n=t[0],r=t[1],a=t[2];if("toggle"===r||void 0===r){var o=e2.YM[n],i=to.FP[n];if((null==i?void 0:i.possibleValues)&&i.possibleValues.length>0){var s=i.possibleValues,l=Array.isArray(s[0])&&"string"==typeof s[0][0]?s.map(function(e){return(0,ek._)(e,1)[0]}):s,c=(l.indexOf(String(o))+1)%l.length;e2.YM[n]=l[c]}else e2.YM[n]="boolean"==typeof o?!o:"number"==typeof o?o+1:o}else{to.FP[n];var u=a;"boolean"==typeof e2.YM[n]?u="true"===a||!0===a:"number"==typeof e2.YM[n]&&(u=Number(a)),e2.YM[n]=u}}},jsScripts:{input:[{type:"text",placeholder:"JavaScript code to run in main thread (sensitive!)"}],handler:function(e){Function((0,ek._)(e,1)[0])()}}},tL=n(3308),tC=n(52676),tj=n.t(tC,2),tD=n(75271),tx=n.t(tD,2),tk=n(27678),tN=n(76412);function FullScreenWidget(e){var t=e.name,n=e.title,r=e.children;return(0,tN.mE)(t)?(0,tC.jsx)(tk.Z,{backdrop:!0,title:n,children:r}):null}var tT="loaded world signs";function ModuleSignsViewer(){var e=(0,ek._)((0,tD.useState)([]),2),t=e[0],n=e[1],r=[],a=[];return(0,tC.jsxs)(FullScreenWidget,{name:tT,title:"Loaded Signs",children:[(0,tC.jsxs)("div",{children:[a.length," signs currently in the scene:"]}),(0,tC.jsx)("div",{style:{cursor:"pointer"},onClick:function(){if(t.length===r.length)return void n([]);n((0,eE._)(r))},children:"Select All"}),t.length&&(0,tC.jsx)("div",{style:{cursor:"pointer"},onClick:function(){navigator.clipboard.writeText(t.join("\n"))},children:"Copy Selected Signs"}),a]})}let tS=[eL];var tz=n(68733),tq=n(44214),tE=n(12179),tI=n(58460),tP=n(31444),tY=(0,tt.sj)({offset:{x:0,y:0}}),tO={x:0,y:0},tR=performance.now(),tB=0,tU=0;function updateMotion(){if(null==(e=bot)?void 0:e.entity){var e,t=performance.now(),n=(t-tR)/1e3;tR=t;var r=bot.entity.yaw-tB,a=bot.entity.pitch-tU;tB=bot.entity.yaw,tU=bot.entity.pitch;var o=bot.entity.velocity,i=new e7.P(o.x,0,o.z),s=new tI._;s.setFromEuler(new tP.U(0,-bot.entity.yaw,0)),i.applyQuaternion(s);var l={x:-(150*i.x),y:-(150*i.z)};tO.x+=(300*r+l.x)*n,tO.y+=(300*a+l.y)*n,tO.x*=.92,tO.y*=.92,tO.x=Math.max(-100,Math.min(100,tO.x)),tO.y=Math.max(-100,Math.min(100,tO.y)),tY.offset={x:tO.x,y:tO.y}}}var tQ=!1;function initMotionTracking(){tQ||(tQ=!0,animate());function animate(){updateMotion(),requestAnimationFrame(animate)}}function useUiMotion(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,tD.useEffect)(function(){if(t&&e.current){var n=(0,tt.Ld)(tY,function(){var t=e.current;t&&(t.style.transform="translate(".concat(tY.offset.x.toFixed(2),"px, ").concat(tY.offset.y.toFixed(2),"px)"))});return function(){return n()}}},[t,e])}function onCameraMove(e){if((0,e5.z7)(!0)&&("mousemove"!==e.type||document.pointerLockElement)){if(null==(t=e.stopPropagation)||t.call(e),!(0,e3.X5)(appViewer.playerState.reactive).isSpectatingEntity()){var t,n=performance.now();if(!(n-eg<4)||e2.YM.preciseMouseInput){eg=n;var r=e2.YM.mouseSensX,a=e2.YM.mouseSensY;-1===a&&(a=r),moveCameraRawHandler({x:e.movementX*r*1e-4,y:e.movementY*a*1e-4}),bot.mouse.update(),updateMotion()}}}}var moveCameraRawHandler=function(e){var t,n,r=e.x,a=e.y,o=.5*Math.PI,i=-.5*Math.PI;if(appViewer.lastCamUpdate=Date.now(),null==(t=bot)?void 0:t.entity){var s=bot.entity.pitch-a;bot.look(bot.entity.yaw-r,Math.max(i,Math.min(o,s)),!0),null==(n=appViewer.backend)||n.updateCamera(null,bot.entity.yaw,s)}};function pointerLockChangeCallback(){appViewer.rendererState.preventEscapeMenu||!td.lt.hasPointerLock&&0===e5.M.length&&e5.N_.gameLoaded&&(0,e5.K4)({reactType:"pause-screen"})}window.addEventListener("mousemove",function(e){onCameraMove(e)},{capture:!0}),document.addEventListener("pointerlockchange",pointerLockChangeCallback,!1);var tF=n(46644),tW=n(2905);n(27969);var tJ=n(9117),tV=n(85691);function PlayerListOverlay(e){var t=e.playersLists,n=e.clientId,r=e.tablistHeader,a=e.tablistFooter,o=e.serverIP,i=e.style;return(0,tC.jsxs)("div",{className:"playerlist-container",id:"playerlist-container",style:i,children:[(0,tC.jsxs)("span",{className:"playerlist-title",children:["Server IP: ",o]}),(0,tC.jsx)("div",{className:"playerlist-header",children:(0,tC.jsx)(tV.Z,{message:r})}),(0,tC.jsx)("div",{className:"player-lists",children:t.map(function(e,t){return(0,tC.jsx)("div",{className:"player-list",children:e.map(function(e){var t,r;return(0,tC.jsxs)("div",{className:"playerlist-entry".concat(n===e.uuid?" active-player":""),id:"plist-player-".concat(e.uuid),children:[(0,tC.jsx)(tV.Z,{message:null!=(t=e.displayName)?t:e.username}),(0,tC.jsxs)("div",{className:"playerlist-ping",children:[(0,tC.jsx)("p",{className:"playerlist-ping-value",children:e.ping}),(0,tC.jsx)("p",{className:"playerlist-ping-label",children:"ms"})]})]},null!=(r=e.uuid)?r:e.username)})},t)})}),(0,tC.jsx)("div",{className:"playerlist-footer",children:(0,tC.jsx)(tV.Z,{message:a})})]})}var tG=(0,tt.sj)({isOpen:!1});function PlayerListOverlayProvider(){var e,t=(0,tJ.R)(tG).isOpen,n=null==(e=ti.Pc.value)?void 0:e.server,r=(0,ek._)((0,tD.useState)(bot._client.uuid),2),a=r[0],o=r[1],i=(0,ek._)((0,tD.useState)({}),2),s=i[0],l=i[1],c=(0,ek._)((0,tD.useState)(0),2),u=(c[0],c[1]);(0,tD.useEffect)(function(){var requestUpdate=function(){var e,t;l(null!=(t=null==(e=bot)?void 0:e.players)?t:{})};bot.on("playerUpdated",function(){return requestUpdate()}),bot.on("playerJoined",function(){return requestUpdate()}),bot.on("playerLeft",function(){return requestUpdate()}),requestUpdate();var e=setInterval(function(){requestUpdate()},1e3);return function(){return clearInterval(e)}},[]),(0,tD.useEffect)(function(){l(bot.players),bot.player?o(bot.player.uuid):bot._client.on("player_info",function(){var e,t;(null==(e=bot.player)?void 0:e.uuid)&&o(null==(t=bot.player)?void 0:t.uuid)});var playerlistHeader=function(){return u(function(e){return e+1})};return bot._client.on("playerlist_header",playerlistHeader),function(){var e;null==(e=bot)||e._client.removeListener("playerlist_header",playerlistHeader)}},[n]);for(var d=Object.values(s).sort(function(e,t){return e.username>t.username?1:e.username0){var y=t$.reactive.itemUsageTicks/20;y>1?y=1:y*=y,M*=1-.15*y}M=1+(M-1)*1;var A=e5.rl.isZooming?30:e2.YM.fov;t$.reactive.fovMultiplier=A/e2.YM.fov*M}},t$=new(function(){function PlayerStateControllerMain(){var e=this;(0,tH._)(this,PlayerStateControllerMain),this.disableStateUpdates=!1,this.timeOffGround=0,this.lastUpdateTime=performance.now(),this.isUsingItem=!1,this.eyeHeightWatchInstalled=!1,this.ready=!1,customEvents.on("mineflayerBotCreated",function(){e.attachBotSession()})}var e=PlayerStateControllerMain.prototype;return e.attachBotSession=function(){var e,t,n=this;this.ready=!1,this.isUsingItem=!1,this.timeOffGround=0,this.lastUpdateTime=performance.now();var onInjectAllowed=function(){if(!n.ready){n.ready=!0;var e,t=null==(e=bot._client)?void 0:e.state;console.log("[playerState] inject_allowed",{t:performance.now(),clientState:t}),n.botCreated()}};bot.once("inject_allowed",onInjectAllowed),bot.once("end",function(){n.ready=!1});var r=null==(e=bot._client)?void 0:e.state;r&&r!==tK.states.HANDSHAKING&&(console.log("[playerState] inject_allowed already fired before attach",{clientState:r,eyeHeight:null==(t=this.reactive)?void 0:t.eyeHeight}),onInjectAllowed())},e.onBotCreatedOrGameJoined=function(){var e;this.reactive.username=null!=(e=bot.username)?e:""},e.botCreated=function(){var e,t=this;console.log("bot created & plugins injected"),this.reactive=appViewer.playerState.reactive,this.utils=(0,tZ.X5)(this.reactive);var n=(0,tZ.Rv)();Object.assign(this.reactive,n),this.reactive.perspective=e2.YM.defaultPerspective,this.onBotCreatedOrGameJoined();var handleDimensionData=function(e){var n=1;try{n=e.dimension.value.has_skylight.value}catch(e){}t.reactive.lightingDisabled="the_nether"===bot.game.dimension||"the_end"===bot.game.dimension||!n;var r="default";try{r="minecraft:the_nether"===e.dimension.value.effects.value?"nether":"default"}catch(e){}try{r=e.dimension.value.cardinal_light.value}catch(e){}t.reactive.cardinalLight=r};bot._client.on("login",function(e){handleDimensionData(e)}),bot._client.on("respawn",function(e){handleDimensionData(e)}),bot.on("move",function(){t.updateMovementState()}),bot.on("heldItemChanged",function(){return t.updateHeldItem(!1)}),bot.inventory.on("updateSlot",function(e){45===e&&t.updateHeldItem(!0)});var updateSneakingOrFlying=function(){t.updateMovementState(),t.reactive.sneaking=bot.controlState.sneak,t.reactive.flying=e5.rl.isFlying,t.reactive.eyeHeight=bot.controlState.sneak&&!e5.rl.isFlying?1.27:1.62};updateSneakingOrFlying(),bot.on("physicsTick",function(){t.isUsingItem&&t.reactive.itemUsageTicks++,updateSneakingOrFlying(),t.updateWalkDistAndBob()}),(0,e0.VW)(e5.rl,"isSneaking",function(){updateSneakingOrFlying()}),(0,e0.VW)(e5.rl,"isFlying",function(){updateSneakingOrFlying()}),this.updateHeldItem(!1),this.updateHeldItem(!0),bot.on("game",function(){t.reactive.gameMode=bot.game.gameMode}),this.reactive.gameMode=null==(e=bot.game)?void 0:e.gameMode,customEvents.on("gameLoaded",function(){t.reactive.team=bot.teamMap[bot.username]}),this.watchReactive(),window.hello=function(){console.log("Hey, ".concat(bot.username,"! This game client is built on top of minecraft-web-client. Join us and let's make the open-source Minecraft client even better!"))}},e.updateMovementState=function(){if((null==(e=bot)?void 0:e.entity)&&!this.disableStateUpdates){var e,t=bot.entity.velocity,n=bot.entity.onGround,r=performance.now(),a=r-this.lastUpdateTime;this.lastUpdateTime=r,n?this.timeOffGround=0:this.timeOffGround+=a,e5.rl.isSneaking||e5.rl.isFlying||this.timeOffGround>0?this.reactive.movementState="SNEAKING":Math.abs(t.x)>.01||Math.abs(t.z)>.01?this.reactive.movementState=Math.abs(t.x)>.15||Math.abs(t.z)>.15?"SPRINTING":"WALKING":this.reactive.movementState="NOT_MOVING"}},e.updateWalkDistAndBob=function(){if((null==(e=bot)?void 0:e.entity)&&!this.disableStateUpdates){var e,t,n=bot.entity.velocity,r=Math.hypot(n.x,n.z);this.reactive.prevWalkDist=this.reactive.walkDist,this.reactive.prevBob=this.reactive.bob,this.reactive.walkDist+=.6*r;var a=bot.controlState.sprint&&this.reactive.inWater,o=(null!=(t=bot.entity.health)?t:20)<=0,i=!bot.entity.onGround||o||a?0:Math.min(.1,r);this.reactive.bob+=(i-this.reactive.bob)*.4}},e.updateHeldItem=function(e){var t=e?bot.inventory.slots[45]:bot.heldItem;if(!t)return void(e?this.reactive.heldItemOff=void 0:this.reactive.heldItemMain=void 0);var n=loadedData.blocksByName[t.name],r=n?new window.PrismarineBlock(n.id,"void",t.metadata).getProperties():{},a={name:t.name,properties:r,id:t.type,type:n?"block":"item",fullItem:t};e?this.reactive.heldItemOff=a:this.reactive.heldItemMain=a},e.startUsingItem=function(){this.isUsingItem||(this.isUsingItem=!0,this.reactive.itemUsageTicks=0)},e.stopUsingItem=function(){this.isUsingItem=!1,this.reactive.itemUsageTicks=0},e.getItemUsageTicks=function(){return this.reactive.itemUsageTicks},e.watchReactive=function(){this.eyeHeightWatchInstalled||(this.eyeHeightWatchInstalled=!0,(0,e0.VW)(this.reactive,"eyeHeight",function(){var e;null==(e=appViewer.backend)||e.updateCamera(bot.entity.position,bot.entity.yaw,bot.entity.pitch)}))},PlayerStateControllerMain}());window.playerState=t$,tX.includes(updateFovMultiplier)||tX.push(updateFovMultiplier),customEvents.on("gameLoaded",function(){updateFovMultiplier()});var t0="next-console-root",t1="nextconsole-host",isNextConsoleKeyboardTarget=function(e){var t=document.activeElement;if(t instanceof HTMLElement&&t.id===t1)return!0;if(!e)return!1;var n=!0,r=!1,a=void 0;try{for(var o,i=e.composedPath()[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=o.value;if(s instanceof HTMLElement&&s.id===t1)return!0}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}return!1},getDevConsoleMountTarget=function(){var e=document.getElementById(t0);if((null==e?void 0:e.parentElement)===document.documentElement)return e;var t=document.createElement("div");return t.id=t0,document.documentElement.appendChild(t),t},t3=(a=(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return"#dev"!==window.location.hash?[2,window.__nextConsoleInitPromise]:window.__nextConsole?[2,window.__nextConsole]:(window.__nextConsoleInitPromise||(window.__nextConsoleInitPromise=n.e("716").then(n.bind(n,98030)).then(function(e){var t=e.default;return window.__nextConsole||(window.__nextConsole=new t({theme:"dark",target:getDevConsoleMountTarget()}),window.__nextConsole.panel.floatButton.el.style.opacity=.6),window.__nextConsole})),[2,window.__nextConsoleInitPromise])})}),function(){return a.apply(this,arguments)}),t2=(0,tt.sj)(tm.e1.keybindings);(0,tt.Ld)(t2,function(){tm.e1.keybindings=t2});var t5={preventDefault:!0},t4=new tv.h({commands:{movement:{forward:["KeyW"],back:["KeyS"],left:["KeyA"],right:["KeyD"],jump:["Space","A"],sneak:["ShiftLeft","Down"],toggleSneakOrDown:[null,"Right Stick"],sprint:["ControlLeft","Left Stick"]},general:{inventory:["KeyE","X"],drop:["KeyQ","B"],dropStack:[null],nextHotbarSlot:[null,"Right Bumper"],prevHotbarSlot:[null,"Left Bumper"],attackDestroy:[null,"Right Trigger"],interactPlace:[null,"Left Trigger"],swapHands:["KeyF"],selectItem:["KeyH"],rotateCameraLeft:[null],rotateCameraRight:[null],rotateCameraUp:[null],rotateCameraDown:[null],chat:[["KeyT","Enter"],"Right"],command:["Slash"],playersList:["Tab","Left"],debugOverlay:["F3"],debugOverlayHelpMenu:[null],zoom:["KeyC"],viewerConsole:["Backquote"],togglePerspective:["F5","Up"],takeScreenshot:["F2"]},ui:{toggleFullscreen:["F11"],back:[null,"B"],toggleMap:["KeyJ"],leftClick:[null,"A"],rightClick:[null,"X"],speedupCursor:[null,"Left Stick"],pauseMenu:[null,"Start"]},communication:{toggleMicrophone:["KeyM"]},advanced:{lockUrl:[null]},custom:{}},movementVector:"2d",groupedCommands:{general:{switchSlot:["Digits",[]]}}},{defaultControlOptions:t5,target:document,captureEvents:function(e){return!isNextConsoleKeyboardTarget(e)},storeProvider:{load:function(){return t2},save:function(){}},gamepadPollingInterval:10});window.controMax=t4;var isCommandDisabled=function(e){var t,n;return null==(n=e5.N_.appConfig)||null==(t=n.disabledCommands)?void 0:t.includes(e)};t4.on("stickMovement",function(e){var t=e.stick,n=e.vector;if((0,e5.z7)(!0)&&"right"===t){var r=n.x,a=n.z;.18>Math.abs(r)&&(r=0),.18>Math.abs(a)&&(a=0),onCameraMove({movementX:10*r,movementY:10*a,type:"stickMovement",stopPropagation:function(){}}),e5.N_.usingGamepadInput=!0}}),controls_updateBinds(t2);var updateDoPreventDefault=function(){t5.preventDefault=e5.N_.gameLoaded&&!e5.M.length};(0,tt.Ld)(e5.N_,updateDoPreventDefault),(0,tt.Ld)(e5.M,updateDoPreventDefault),updateDoPreventDefault();var setSprinting=function(e){bot.setControlState("sprint",e),e5.rl.isSprinting=e},isSpectatingEntity=function(){return(0,e3.X5)(t$.reactive).isSpectatingEntity()},t6=0,takeScreenshotAction=function(){var e=Date.now();if(!(e-t6<500)){t6=e;var t=document.getElementById("viewer-canvas");if(t){var n=document.createElement("a");n.href=t.toDataURL("image/png");var r=new Date;n.download="screenshot ".concat(r.toLocaleString().replaceAll(".","-").replace(",",""),".png"),n.click()}}};t4.on("movementUpdate",function(e){var t=e.vector,n=(e.soleVector,e.gamepadIndex);if(e5.N_.usingGamepadInput=void 0!==n,!(!bot||!(0,e5.z7)(!1)||isSpectatingEntity())){var r=[["z",-1,"forward"],["z",1,"back"],["x",-1,"left"],["x",1,"right"]],a={},o=!0,i=!1,s=void 0;try{for(var l,c=Object.entries(t)[Symbol.iterator]();!(o=(l=c.next()).done);o=!0)!function(){var e,t=(0,ek._)(l.value,2),n=t[0],o=t[1];if(!(void 0===o||.3>Math.abs(o))){var i=o<0?-1:1;a[null==(e=r.find(function(e){var t=(0,ek._)(e,2),r=t[0],a=t[1];return r===n&&a===i}))?void 0:e[2]]=!0}}()}catch(e){i=!0,s=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw s}}for(var u=0,d=["forward","back","left","right"];u0?l:null));break;case"general.dropStack":bot.heldItem&&bot.tossStack(bot.heldItem);break;case"general.chat":(0,e5.K4)({reactType:"chat"});break;case"general.command":tA.e.value="/",(0,e5.K4)({reactType:"chat"});break;case"general.selectItem":if(isSpectatingEntity())break;nt();break;case"general.nextHotbarSlot":if(isSpectatingEntity())break;cycleHotbarSlot(1);break;case"general.prevHotbarSlot":if(isSpectatingEntity())break;cycleHotbarSlot(-1);break;case"general.viewerConsole":(null==(i=ti.Pc.value)?void 0:i.viewerWsConnect)&&(0,e5.K4)({reactType:"console"})}"ui.toggleFullscreen"===t&&(0,td.bt)(!0)}}}),t4.on("trigger",function(e){var t;if("ui.toggleMap"===e.command){var n=(0,e5.z7)(!0);(null==(t=e5.M.at(-1))?void 0:t.reactType)==="full-map"?(e5.N_.displayFullmap=!1,(0,e5.VG)({reactType:"full-map"})):n&&!e5.M.length&&(e5.N_.displayFullmap=!0,(0,e5.K4)({reactType:"full-map"}))}}),t4.on("release",function(e){var t=e.command;isCommandDisabled(t)||onTriggerOrReleased(t,!1)});var ne=[{key:"KeyA",action:function(){var e=appViewer.worldView;if(e){var t=Object.entries(e.loadedChunks).filter(function(e){return(0,ek._)(e,2)[1]}).map(function(e){return(0,ek._)(e,1)[0].split(",").map(Number)}),n=!0,r=!1,a=void 0;try{for(var o,i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=(0,ek._)(i.value,2),c=l[0],u=l[1];e.unloadChunk({x:c,z:u})}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}localServer&&(localServer.players[0].world.columns={}),(0,td.qy)(),(null==(o=appViewer.backend)?void 0:o.backendMethods)&&"function"==typeof appViewer.backend.backendMethods.reloadWorld&&appViewer.backend.backendMethods.reloadWorld()}},mobileTitle:"Reload chunks"},{key:"KeyG",action:function(){e2.YM.showChunkBorders=!e2.YM.showChunkBorders},mobileTitle:"Toggle chunk borders"},{key:"KeyH",action:function(){(0,e5.K4)({reactType:"chunks-debug"})},mobileTitle:"Show Chunks Debug"},{action:function(){(0,e5.K4)({reactType:"renderer-debug"})},mobileTitle:"Renderer Debug Menu"},{key:"KeyY",action:function(){return(0,eC._)(function(){var e,t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:return e=tS.map(function(e){return e.name}),[4,(0,tL.un)("Open Widget",e)];case 1:if(!(t=n.sent()))return[2];return(0,e5.K4)({reactType:"widget-".concat(t)}),[2]}})})()},mobileTitle:"Open Widget"},{key:"KeyT",action:function(){return(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:if(!(tq.E3.resourcePackInstalled||e5.rl.usingServerResourcePack))return[3,2];return(0,tE.c0)("Reloading textures..."),[4,(0,tq.bP)("default","default",e5.rl.usingServerResourcePack,(0,tF.gO)())];case 1:e.sent(),e.label=2;case 2:return[2]}})})()},mobileTitle:"Reload Textures"},{key:"F4",action:function(){return(0,eC._)(function(){var e,t;return(0,eT.Jh)(this,function(n){switch(bot.game.gameMode){case"creative":t="survival";break;case"survival":t="adventure";break;case"adventure":t="spectator";break;case"spectator":t="creative"}return(null==(e=ti.Pc.value)?void 0:e.worldStateFileContents)?(0,tW.uO)(t):bot.chat("/gamemode ".concat(t)),[2]})})()},mobileTitle:"Cycle Game Mode"},{key:"KeyP",action:function(){return(0,eC._)(function(){var e,t,n,r,a,o;return(0,eT.Jh)(this,function(i){switch(i.label){case 0:return n=(t=bot.player).uuid,r=t.ping,a=t.username,[4,bot.pingProxy()];case 1:return o=i.sent(),(0,tL.un)("".concat(a,": last known total latency (ping): ").concat(r,". Connected to ").concat(null==(e=ti.Pc.value)?void 0:e.proxy," with current ping ").concat(o,". Player UUID: ").concat(n),[]),[2]}})})()},mobileTitle:"Show Player & Ping Details",enabled:function(){var e;return!(null==(e=ti.Pc.value)?void 0:e.singleplayer)&&!!bot.player}},{action:function(){(0,tq.wK)()},mobileTitle:"Copy Server Resource Pack",enabled:function(){return!!e5.rl.usingServerResourcePack}}],reloadChunksAction=function(){ne.find(function(e){return"KeyA"===e.key}).action()};document.addEventListener("keydown",function(e){if((0,e5.z7)(!1)&&t4.pressedKeys.has("F3")){var t,n,r=ne.find(function(t){return t.key===e.code});r&&(null==(n=null==(t=r.enabled)?void 0:t.call(r))||n)&&(e.preventDefault(),r.action(),e.stopPropagation())}},{capture:!0});var isFlying=function(){var e,t,n;return null!=(n=null==(t=bot.physicsEngineCtx)||null==(e=t.state)?void 0:e.flying)&&n},startFlying=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];e&&bot._client.write("abilities",{flags:2}),bot.entity.flying=!0},endFlying=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];isFlying()&&(e&&bot._client.write("abilities",{flags:0}),bot.entity.flying=!1)},onBotCreate=function(){},toggleFly=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!isFlying(),t=arguments.length>1?arguments[1]:void 0;bot.entity.canFly&&(e?startFlying(t):endFlying(t))};customEvents.on("gameLoaded",function(){bot.on("physicsTick",function(){e5.rl.isFlying=isFlying()})});var nt=(o=(0,eC._)(function(){var e,t,r,a;return(0,eT.Jh)(this,function(o){switch(o.label){case 0:if(!(t=bot.blockAtCursor(5))||!(r=null==(e=(0,tz.mQ)(t))?void 0:e.id))return[2];return a=new(n(46290)(bot.version))(r,1,0),[4,bot.creative.setInventorySlot(bot.inventory.hotbarStart+bot.quickBarSlot,a)];case 1:return o.sent(),bot.updateHeldItem(),[2]}})}),function(){return o.apply(this,arguments)});function controls_updateBinds(e){t4.inputSchema.commands.custom=Object.fromEntries(Object.entries(null!=(a=null==e?void 0:e.custom)?a:{}).map(function(e){var t=(0,ek._)(e,2),n=t[0];return t[1],[n,{keys:[],gamepad:[],type:"",inputs:[]}]}));var t=!0,n=!1,r=void 0;try{for(var a,o,i=Object.entries(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)!function(){var e=(0,ek._)(o.value,2),t=e[0],n=e[1];t4.userConfig[t]=Object.fromEntries(Object.entries(n).map(function(e){var n,r,a=(0,ek._)(e,2),o=a[0],i=a[1],s={keys:null!=(n=null==i?void 0:i.keys)?n:void 0,gamepad:null!=(r=null==i?void 0:i.gamepad)?r:void 0};return"custom"===t&&(s.type=i.type,s.inputs=i.inputs),[o,s]}))}()}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}addEventListener("mousedown",(i=(0,eC._)(function(e){var t,n,r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:if((3===e.button||4===e.button)&&e.preventDefault(),(null==(t=(n=e.target).matches)?void 0:t.call(n,"#VRButton"))||!(0,td.Ee)()&&!e.target.id.includes("ui-root")||(td.lt.requestPointerLock(),!bot))return[2];if(null==(r=(0,e1.z)())||r.onPageInteraction(),1!==e.button)return[3,2];return[4,nt()];case 1:a.sent(),a.label=2;case 2:return[2]}})}),function(e){return i.apply(this,arguments)})),window.addEventListener("keydown",function(e){if("Escape"===e.code)if(e5.M.length||null==(r=(0,e1.z)())||r.onPageInteraction(),e5.M.length){var t,n,r,a;e.ctrlKey||e.metaKey?(0,e5.sr)():(0,e5.kJ)(),0===e5.M.length&&(null==(a=(0,e1.z)())||a.onPageInteraction(),td.lt.justHitEscape=!0)}else td.lt.hasPointerLock?(null==(t=(n=document).exitPointerLock)||t.call(n),e2.YM.autoExitFullscreen&&document.exitFullscreen()):document.dispatchEvent(new Event("pointerlockchange"))}),window.addEventListener("keydown",function(e){"F1"===e.code&&!e.repeat&&(0,e5.z7)(!0)&&(e.preventDefault(),e5.N_.showUI=!e5.N_.showUI)}),window.addEventListener("keydown",function(e){"KeyL"!==e.code||!e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||console.clear(),"KeyK"===e.code&&e.altKey&&e.shiftKey&&!e.ctrlKey&&!e.metaKey&&(sessionStorage.delayLoadUntilFocus?sessionStorage.removeItem("delayLoadUntilFocus"):sessionStorage.setItem("delayLoadUntilFocus","true")),"KeyK"!==e.code||!e.altKey||e.shiftKey||e.ctrlKey||e.metaKey});var nn=(s=(0,eC._)(function(){var e,t,n;return(0,eT.Jh)(this,function(r){switch(r.label){case 0:return t=(e=ne.filter(function(e){var t,n;return e.mobileTitle&&(null==(n=null==(t=e.enabled)?void 0:t.call(e))||n)})).map(function(e){return"".concat(e.mobileTitle).concat(e.key?" (F3+".concat(e.key,")"):"")}),[4,(0,tL.un)("",t)];case 1:if(!(n=r.sent()))return[2];return e[t.indexOf(n)].action(),[2]}})}),function(){return s.apply(this,arguments)}),handleMobileButtonCustomAction=function(e){var t,n=null==(t=t_[e.type])?void 0:t.handler;n&&n((0,eE._)(e.input))},handleMobileButtonActionCommand=function(e,t){var n="string"==typeof e?e:"command"in e?e.command:e;if(!("string"==typeof n&&isCommandDisabled(n)))if("string"!=typeof n||(0,ty.Xe)(n,"custom"))(void 0===n?"undefined":(0,eN._)(n))==="object"&&t&&handleMobileButtonCustomAction(n);else{var r={command:n};t?t4.emit("trigger",r):t4.emit("release",r)}},handleMobileButtonLongPress=function(e){"string"==typeof e.longPressAction&&"general.debugOverlayHelpMenu"===e.longPressAction?nn():e.longPressAction&&handleMobileButtonActionCommand(e.longPressAction,!0)};n(55058),n(29127),n(98719),n(84317),n(8957),n(44792),n(33785),n(9587),n(13278),n(64391),n(86838),n(80062),n(50433),n(97336),n(65855),n(56656),n(42449);var nr=n(47715),na=n(13952),no=n(88571),ni=n(28350),ns=n(74614);(0,e0.VW)(e2.YM,"renderDistance",td.qy),(0,e2.t6)(e2.YM,function(e){document.documentElement.style.setProperty("--chatScale","".concat(e.chatScale/100)),document.documentElement.style.setProperty("--chatWidth","".concat(e.chatWidth,"px")),document.documentElement.style.setProperty("--chatHeight","".concat(e.chatHeight,"px"))});var updateTouch=function(e){e5.N_.currentTouch=e.alwaysShowMobileControls||(0,na.tq)()};(0,e2.t6)(e2.YM,updateTouch),window.matchMedia("(pointer: coarse)").addEventListener("change",function(e){updateTouch(e2.YM)});var watchOptionsAfterViewerInit=function(){(0,no.w3)(appViewer,e2.YM,{isSafari:ns.G6,isCypress:(0,ni.x)(),onRegisterFocusHandlers:function(e){var t=e.onFocus,n=e.onBlur;window.addEventListener("focus",t),window.addEventListener("blur",n)}}),(0,e2.t6)(e2.YM,function(e){appViewer.inWorldRenderingConfig.volume=Math.max(e.volume/100,0)}),(0,e0.VW)(e2.YM,"newVersionsLighting",function(){(0,no.Cb)(appViewer,e2.YM.newVersionsLighting,bot.supportFeature("blockStateId"))}),customEvents.on("mineflayerBotCreated",function(){(0,no.Cb)(appViewer,e2.YM.newVersionsLighting,bot.supportFeature("blockStateId"));var updateRaining=function(){void 0!==bot.isRaining&&(appViewer.inWorldRenderingConfig.isRaining=bot.isRaining)};updateRaining(),bot.on("weatherUpdate",function(){updateRaining()}),bot.on("rain",function(){updateRaining()})})},watchOptionsAfterWorldViewInit=function(e){(0,e2.t6)(e2.YM,function(t){e&&(0,no.zy)(appViewer,e,t)})};function updateLightRemeshBlockKey(e,t){return"".concat(16*e,",").concat(16*t)}var nl=new e3.o_;nl.resourcesManager.generateGuiTextures=(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,(0,nr.y)(nl)];case 1:return e.sent(),[2]}})}),window.appViewer=nl,nl.onWorldStart=function(){connectAppWorldViewToBot(),nl.worldView&&watchOptionsAfterWorldViewInit(nl.worldView)};var nc=(l=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:if(!e.useMinecraftTextures)return[2];return[4,Promise.resolve().then(n.bind(n,68343))];case 1:return[4,(0,t.sent().loadMinecraftData)(e3.YD)];case 2:return t.sent(),nl.resourcesManager.currentConfig={version:e3.YD,texturesVersion:e2.YM.useVersionsTextures||void 0,noInventoryGui:!0},[4,nl.resourcesManager.updateAssetsData({})];case 3:return t.sent(),[2]}})}),function(e){return l.apply(this,arguments)}),nu=(c=(0,eC._)(function(){var e,t,r,a,o;return(0,eT.Jh)(this,function(i){switch(i.label){case 0:if("world"===nl.currentDisplay&&nl.resetBackend(!0),new URLSearchParams(window.location.search).get("demo"))return[3,2];return[4,nc(e=(0,e3.iv)(e2.YM))];case 1:return i.sent(),nl.startMenuBackground(e),[2];case 2:return t="1.21.4",[4,Promise.resolve().then(n.bind(n,68343))];case 3:return r=i.sent().loadMinecraftData,[4,Promise.resolve().then(n.bind(n,692))];case 4:return a=i.sent().getSyncWorld,[4,r(t)];case 5:return i.sent(),(o=a(t)).setBlockStateId(new eB.A(0,64,0),loadedData.blocksByName.water.defaultState),o.setBlockStateId(new eB.A(1,64,0),loadedData.blocksByName.water.defaultState),o.setBlockStateId(new eB.A(1,64,1),loadedData.blocksByName.water.defaultState),o.setBlockStateId(new eB.A(0,64,1),loadedData.blocksByName.water.defaultState),o.setBlockStateId(new eB.A(-1,64,-1),loadedData.blocksByName.water.defaultState),o.setBlockStateId(new eB.A(-1,64,0),loadedData.blocksByName.water.defaultState),o.setBlockStateId(new eB.A(0,64,-1),loadedData.blocksByName.water.defaultState),nl.resourcesManager.currentConfig={version:t},nl.playerState.reactive=(0,e3.Rv)(),[4,nl.resourcesManager.updateAssetsData({})];case 6:return i.sent(),[4,nl.startWorld(o,3)];case 7:return i.sent(),nl.worldView&&watchOptionsAfterWorldViewInit(nl.worldView),nl.backend.updateCamera(new eB.A(0,65.7,0),0,-Math.PI/2),nl.worldView.init(new eB.A(0,64,0)),[2]}})}),function(){return c.apply(this,arguments)});window.initialMenuStart=nu;var hasAppStatus=function(){return e5.M.some(function(e){return"app-status"===e.reactType})},onAppViewerConfigUpdate=function(){var e;nl.inWorldRenderingConfig.skinTexturesProxy=null==(e=e5.N_.appConfig)?void 0:e.skinTexturesProxy},modalStackUpdateChecks=function(){e5.N_.gameLoaded||hasAppStatus()||nu(),nl.backend&&nl.backend.setRendering(!hasAppStatus()),nl.inWorldRenderingConfig.foreground=0===e5.M.length};(0,tt.Ld)(e5.M,modalStackUpdateChecks);var nd=new Set,connectAppWorldViewToBot=function(){var e=new Map,t=new Set;bot._client.prependListener("spawn_entity",function(t){t.objectData&&void 0!==t.entityId&&e.set(t.entityId,t.objectData)});var emitEntity=function(n){var r,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"entity";if(n){if(n===bot.entity){"entity"===o&&(null==(a=nl.worldView)||a.emit("playerEntity",n));return}n.name&&(t.has(n.id)||(n.objectData=e.get(n.id),null==(r=nl.worldView)||r.emit(o,(0,eD._)((0,ej._)({},n),{pos:n.position,username:n.username,team:bot.teamMap[n.username]||bot.teamMap[n.uuid]}))))}};null==(o=nl.worldView)||o.on("loadChunk",function(e){if(!e.isLightUpdate){var t,n="".concat(e.x,",").concat(e.z);nd.delete(n)&&(null==(t=nl.worldView)||t.loadChunk(new eB.A(e.x,0,e.z),!0,"update_light-pending"))}}),bot._client.on("update_light",function(e){var t,n,r,a=e.chunkX,o=e.chunkZ,i=updateLightRemeshBlockKey(a,o),s=16*a,l=16*o,c=!!(null==(t=nl.worldView)?void 0:t.waitingSpiralChunksLoad[i]),u=!!(null==(n=nl.worldView)?void 0:n.loadedChunks[i]);!c&&u?null==(r=nl.worldView)||r.loadChunk(new eB.A(s,0,l),!0,"update_light"):u||nd.add(i)});var n=!0,r=!1,a=void 0;try{for(var o,i,s=Object.entries({entitySpawn:function(e){("item_frame"===e.name||"glow_item_frame"===e.name)&&e.position.translate(.5,.5,.5),emitEntity(e)},entityUpdate:function(e){emitEntity(e)},entityEquip:function(e){emitEntity(e)},entityMoved:function(e){emitEntity(e,"entityMoved")},entityDead:function(e){var n;e!==bot.entity&&(t.has(e.id)||(t.add(e.id),null==(n=nl.worldView)||n.emit("entity",{id:e.id,delete:!0})))},entityGone:function(e){var n;t.delete(e.id),null==(n=nl.worldView)||n.emit("entity",{id:e.id,delete:!0})},chunkColumnLoad:function(e){var t,n,r,a,o,i,s,l,c=performance.now();(null==(t=nl.worldView)?void 0:t.lastChunkReceiveTime)&&nl.worldView.chunkReceiveTimes.push(c-nl.worldView.lastChunkReceiveTime),nl.worldView.lastChunkReceiveTime=c,(null==(n=nl.worldView)?void 0:n.waitingSpiralChunksLoad["".concat(e.x,",").concat(e.z)])?(null==(o=nl.worldView)||o.waitingSpiralChunksLoad["".concat(e.x,",").concat(e.z)](!0),null==(i=nl.worldView)||delete i.waitingSpiralChunksLoad["".concat(e.x,",").concat(e.z)]):(null==(r=nl.worldView)?void 0:r.loadedChunks["".concat(e.x,",").concat(e.z)])?null==(s=nl.worldView)||s.loadChunk(e,!1,"Received another chunkColumnLoad event while already loaded"):null==(l=nl.worldView)||l.loadChunk(e,!1,"chunkColumnLoad"),null==(a=nl.worldView)||a.chunkProgress()},chunkColumnUnload:function(e){var t;null==(t=nl.worldView)||t.unloadChunk(e)},blockUpdate:function(e,t){var n,r,a=null!=(r=t.stateId)?r:t.type<<4|t.metadata;null==(n=nl.worldView)||n.emit("blockUpdate",{pos:e.position,stateId:a})},time:function(){var e;null==(e=nl.worldView)||e.emit("time",bot.time.timeOfDay)},end:function(){var e;null==(e=nl.worldView)||e.emit("end")},login:function(){var e,t;null==(e=nl.worldView)||e.updatePosition(bot.entity.position,!0),null==(t=nl.worldView)||t.emit("playerEntity",bot.entity)},respawn:function(){var e,t,n;null==(e=nl.worldView)||e.updatePosition(bot.entity.position,!0),null==(t=nl.worldView)||t.emit("playerEntity",bot.entity),null==(n=nl.worldView)||n.emit("onWorldSwitch")}})[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=(0,ek._)(i.value,2),c=l[0],u=l[1];bot.on(c,u)}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}for(var d in bot.entities){var w=bot.entities[d];try{emitEntity(w)}catch(e){console.error("error processing entity",e)}}},nw=null;function dismissWatermark(){null==nw||nw.remove(),nw=null}function watermarkTextFromConfig(e){var t,n=[],r=null==e||null==(t=e.watermark)?void 0:t.trim();return r&&n.push(r),(null==e?void 0:e.watermarkDate)&&n.push("BUILD ".concat("12.07.26")),n.length?n.join("\n"):""}function setWatermarkFromConfig(e){var t=watermarkTextFromConfig(e);if(!t){null==nw||nw.remove(),nw=null;return}nw||((nw=document.createElement("div")).className="app-watermark",nw.dataset.appWatermark="",nw.title="Click to dismiss",nw.addEventListener("click",dismissWatermark),document.body.appendChild(nw)),nw.textContent=t}var loadAppConfig=function(e){if(e5.N_.appConfig?Object.assign(e5.N_.appConfig,e):e5.N_.appConfig=e,e.forceSettings){var t=!0,n=!1,r=void 0;try{for(var a,o=Object.entries(e.forceSettings)[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=(0,ek._)(a.value,2),s=i[0];i[1]?(e2.hI.value.add(s),e.defaultSettings&&s in e.defaultSettings&&!e2.vS[s]&&(e2.YM[s]=e.defaultSettings[s])):e2.hI.value.delete(s)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}e.keybindings&&(Object.assign(t2,(0,tg.defaultsDeep)(e.keybindings,t2)),controls_updateBinds(t2)),onAppViewerConfigUpdate(),(0,tm.GY)(e),setWatermarkFromConfig(e5.N_.appConfig)};window.fetch("config.json").then((u=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){return[2,e.json()]})}),function(e){return u.apply(this,arguments)})).then(function(e){return e},function(e){(0,ti.d8)("Failed to load app config.json",!0)}).then(function(e){loadAppConfig(e)}),n(14394),n(26980);var preventThrottlingWithSound=function(){try{var e=new(window.AudioContext||window.webkitAudioContext),t=e.createOscillator(),n=e.createGain();return n.gain.value=.001,t.connect(n),n.connect(e.destination),t.frequency.value=1,t.start(),(0,eC._)(function(){var n;return(0,eT.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t.stop(),[4,e.close()];case 1:return r.sent(),[3,3];case 2:return n=r.sent(),console.warn("Error stopping silent audio:",n),[3,3];case 3:return[2]}})})}catch(e){return console.error("Error creating silent audio:",e),function(){}}};customEvents.on("mineflayerBotCreated",function(){var e,t=new AbortController,maybeGoBackgroundKickPrevention=function(){if(e2.YM.preventBackgroundTimeoutKick&&!bot.backgroundKickPrevention){var e=preventThrottlingWithSound();bot.on("end",e),bot.backgroundKickPrevention=!0}};maybeGoBackgroundKickPrevention(),(0,e0.VW)(e2.YM,"preventBackgroundTimeoutKick",function(e){maybeGoBackgroundKickPrevention()});var n=(e=(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:if(!("wakeLock"in navigator))return console.warn("Wake Lock API is not supported in this browser"),[2];if(!(e2.YM.preventSleep&&!bot.wakeLock&&!bot.lockRequested))return[3,2];return bot.lockRequested=!0,[4,navigator.wakeLock.request("screen").finally(function(){bot.lockRequested=!1})];case 1:bot.wakeLock=e.sent(),bot.wakeLock.addEventListener("release",function(){bot.wakeLock=void 0},{once:!0}),e.label=2;case 2:return!e2.YM.preventSleep&&bot.wakeLock&&bot.wakeLock.release(),[2]}})}),function(){return e.apply(this,arguments)});document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&n()},{signal:t.signal}),n(),(0,e0.VW)(e2.YM,"preventSleep",function(e){n()}),bot.on("end",function(){bot.wakeLock&&bot.wakeLock.release(),t.abort()})});var nf=n(97973);function cursorBlockDisplay(e){var updateCursorBlock=function(t){if(!(null==t?void 0:t.block)||"spectator"===e.game.gameMode){t$.reactive.lookingAtBlock=void 0;return}var n=t.block;t$.reactive.lookingAtBlock={x:n.position.x,y:n.position.y,z:n.position.z,shapes:e.mouse.getBlockCursorShapes(n).map(function(t){return e.mouse.getDataFromShape(t)})}};e.on("highlightCursorBlock",updateCursorBlock),e.on("game",function(){var t=e.mouse.getCursorState().cursorBlock;updateCursorBlock(t?{block:t}:void 0)}),e.on("blockBreakProgressStage",function(t,n){var r=e.mouse.getMergedCursorShape(t);t$.reactive.diggingBlock=null===n?void 0:{x:t.position.x,y:t.position.y,z:t.position.z,stage:n,mergedShape:r?e.mouse.getDataFromShape(r):void 0}})}function mouse(e){e.loadPlugin((0,nf.createMouse)({useMineflayerInteractMethods:!1})),domListeners(e),cursorBlockDisplay(e),otherListeners()}var otherListeners=function(){bot.on("startDigging",function(e){customEvents.emit("digStart")}),bot.on("goingToSleep",function(){(0,e5.K4)({reactType:"bed"})}),bot.on("botArmSwingStart",function(e){var t;null==(t=(0,e1.z)())||t.changeHandSwingingState(!0,"left"===e)}),bot.on("botArmSwingEnd",function(e){var t;null==(t=(0,e1.z)())||t.changeHandSwingingState(!1,"left"===e)}),bot.on("startUsingItem",function(e,t,n,r){customEvents.emit("activateItem",e,n?45:bot.quickBarSlot,n),t$.startUsingItem()}),bot.on("stopUsingItem",function(){t$.stopUsingItem()})},domListeners=function(e){var t=new AbortController;document.addEventListener("mousedown",function(t){if((!t.isTrusted||document.pointerLockElement||(0,ni.x)())&&(0,e5.z7)(!0)){null==(n=(0,e1.z)())||n.onPageInteraction();var n,r=videoCursorInteraction();if(r)return void sendVideoInteraction(r.id,r.x,r.y,0===t.button);0===t.button?e.leftClickStart():2===t.button&&e.rightClickStart()}},{signal:t.signal}),document.addEventListener("mouseup",function(t){0===t.button?e.leftClickEnd():2===t.button&&e.rightClickEnd()},{signal:t.signal}),e.mouse.beforeUpdateChecks=function(){document.hasFocus()&&(0,e5.z7)(!0)||e.mouse.buttons.fill(!1)},e.on("end",function(){t.abort()})};n(95526),n(39908);var np=n(55872).Buffer;function packetsPatcher(){customEvents.on("mineflayerBotCreated",function(){botInit()})}var botInit=function(){bot._client.on("packet",function(e,t){"map_chunk"===t.name&&e.groundUp&&1===e.bitMap&&e.chunkData.every(function(e){return 0===e})&&(e.chunkData=np.from(Array.from({length:12544}).fill(0)))});var e=bot._client.write.bind(bot._client);bot._client.write=function(t,n){return"settings"===t&&(n.viewDistance=Math.max(n.viewDistance,3)),e(t,n)}};n(41777),n(98497),n(54487),n(10728),n(84269),n(41021),n(95190),n(81138),n(90758),n(7652),n(60501),n(63765),n(60139),n(41353),n(38409),n(24517),n(33207),n(55914),n(31551),n(4383),n(12516),n(18729),n(88364),n(83450),n(36670),n(26110),n(91292),n(51470),n(52777),n(33975),n(60398),n(44505),n(10020),n(71698),n(42973),n(21428),n(72216),n(92553),n(69261),n(20823),n(77962),n(77117),n(71535),n(54406);var nh=n(55872).Buffer,readVarInt=function(e,t){for(var n=0,r=0,a=t;a35)break}return null},bitMapToLoHi=function(e){if(!Array.isArray(e))return null;var t=new Uint32Array(2*e.length),n=!0,r=!1,a=void 0;try{for(var o,i=e.entries()[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=(0,ek._)(o.value,2),l=s[0],c=s[1];if((void 0===c?"undefined":(0,eN._)(c))==="bigint")t[2*l]=Number(4294967295n&c)>>>0,t[2*l+1]=Number(c>>32n&4294967295n)>>>0;else{if(!Array.isArray(c)||2!==c.length)return null;var u=(0,ek._)(c,2),d=u[0],w=u[1];t[2*l]=w>>>0,t[2*l+1]=d>>>0}}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}return t},resolveNumSections=function(e,t,n){try{var r,a=null==(l=bot.world)||null==(s=l.getColumn)?void 0:s.call(l,e,t);if(a){var o,i,s,l,c,u=null!=(c=a.numSections)?c:a.worldHeight?a.worldHeight>>4:void 0;if("number"==typeof u)return u}}catch(e){}var d=null!=(r=null==(o=bot.game)?void 0:o.height)?r:null==(i=bot.world)?void 0:i.worldHeight;return"number"==typeof d?d>>4:n};function mapChunkListener(){customEvents.on("mineflayerBotCreated",function(){mapChunkListener_botInit()})}var mapChunkListener_botInit=function(){bot._client.on("raw.map_chunk",function(e){try{var t,n,r,a=nh.isBuffer(e)?e:nh.from(e),o=readVarInt(a,0);if(!o||a.length=757||o<755)return;var i=e.x,s=e.z;if("number"!=typeof i||"number"!=typeof s)return;var l=bitMapToLoHi(e.bitMap);if(!l)return;var c=e.chunkData;if(!c||0===c.length)return;var u=new Uint8Array(c.byteLength);u.set(c);var d=resolveNumSections(i,s,16);Array.isArray(e.biomes)&&e.biomes.length>0&&(a=Int32Array.from(e.biomes)),null==(r=nl.backend)||null==(n=r.backendMethods)||null==(t=n.feedChunkPacket)||t.call(n,{kind:"setParsedMapChunkV17",x:16*i,z:16*s,protocol:o,numSections:d,maxBitsPerBlock:15,chunkData:u,bitMapLoHi:l,biomes:a})}catch(e){console.warn("[mapChunkListener] failed to forward parsed map_chunk (1.17):",e)}}),bot._client.on("raw.update_light",function(e){try{var t,n,r,a,o,i,s,l=bot.protocolVersion;if("number"!=typeof l||l>=757||l<755)return;var c=nh.isBuffer(e)?e:nh.from(e);if(0===c.length)return;var u=new Uint8Array(c.byteLength);u.set(c);var d=(null!=(s=null!=(i=null==(t=bot.game)?void 0:t.height)?i:null==(n=bot.world)?void 0:n.worldHeight)?s:256)>>4;null==(o=nl.backend)||null==(a=o.backendMethods)||null==(r=a.feedChunkPacket)||r.call(a,{kind:"setUpdateLightV17",protocol:l,numSections:d,rawPacket:u})}catch(e){console.warn("[mapChunkListener] failed to forward raw update_light (1.17):",e)}}),bot._client.on("map_chunk",function(e){try{var t,n,r,a=bot.protocolVersion;if("number"!=typeof a||a<735||a>754)return;var o=e.x,i=e.z;if("number"!=typeof o||"number"!=typeof i)return;var s=e.chunkData;if(!s||0===s.length)return;var l=new Uint8Array(s.byteLength);l.set(s);var c="number"==typeof e.bitMap?e.bitMap:Number(e.bitMap);if(!Number.isFinite(c))return;var u=Array.isArray(e.biomes)?e.biomes:void 0,d=Int32Array.from(null!=u?u:[]);null==(r=nl.backend)||null==(n=r.backendMethods)||null==(t=n.feedChunkPacket)||t.call(n,{kind:"setParsedMapChunkV16",x:o,z:i,chunkData:l,bitMap:c,biomes:d,protocol:a})}catch(e){console.warn("[mapChunkListener] failed to forward parsed map_chunk (1.16):",e)}}),bot._client.on("raw.update_light",function(e){try{var t,n,r,a=bot.protocolVersion;if("number"!=typeof a||a<735||a>754)return;var o=nh.isBuffer(e)?e:nh.from(e);if(0===o.length)return;var i=readVarInt(o,0);if(!i)return;var s=readVarInt(o,i.bytesRead);if(!s)return;var l=readVarInt(o,i.bytesRead+s.bytesRead);if(!l)return;var c=Math.trunc(s.value),u=Math.trunc(l.value),d=new Uint8Array(o.byteLength);d.set(o),null==(r=nl.backend)||null==(n=r.backendMethods)||null==(t=n.feedChunkPacket)||t.call(n,{kind:"setUpdateLightV16",x:c,z:u,rawPacket:d,protocol:a})}catch(e){console.warn("[mapChunkListener] failed to forward raw update_light (1.16):",e)}})},nM=n(47161);function plugins_ping(){var e=0;bot.pingProxy=(0,eC._)(function(){var t;return(0,eT.Jh)(this,function(n){return t=++e,[2,new Promise(function(e){bot._client.socket._ws.send("ping:".concat(t));var n=Date.now(),onPong=function(r){r===t.toString()&&(bot._client.socket.off("pong",onPong),e(Date.now()-n))};bot._client.socket.on("pong",onPong)})]})});var t=0;bot.pingServer=(0,eC._)(function(){var e,n;return(0,eT.Jh)(this,function(r){return(0,eZ.Uo)(bot.version)<(0,eZ.Uo)("1.20.2")?[2,null!=(n=null==(e=bot.player)?void 0:e.ping)?n:-1]:[2,new Promise(function(e){var n=t++;bot._client.write("ping_request",{id:BigInt(n)});var r=Date.now(),onPong=function(t){BigInt(t.id)===BigInt(n)&&(bot._client.off("ping_response",onPong),e(Date.now()-r))};bot._client.on("ping_response",onPong)})]})})}var webFeatures_plugin=function(e){e.settings.locale=(0,e2.s)()};customEvents.on("mineflayerBotCreated",function(){bot.loadPlugin(webFeatures_plugin)}),packetsPatcher(),mapChunkListener(),customEvents.on("mineflayerBotCreated",function(){ti.Pc.value.server&&bot.loadPlugin(plugins_ping),bot.loadPlugin(mouse),ti.Pc.value.worldStateFileContents||bot.loadPlugin(nM.g0)});var loadingChunksProgress=function(){if(appViewer){var e=!1,checkStartProgress=function(){if(bot.entity&&e2.YM.displayLoadingMessages){var t={count:0,time:0},update=function(){if(appViewer){var r=appViewer.nonReactiveState.world.chunksTotalNumber;if(0!==r){var a=Object.keys(appViewer.rendererState.world.chunksLoaded).length,deleteProgress=function(){(0,tE.gc)("loadingChunks",{delete:!0}),clearInterval(n)};if(appViewer.rendererState.world.allChunksLoaded||e)return void deleteProgress();if(a===t.count&&t.count){if(Date.now()-t.time>5e3)return void deleteProgress()}else t={count:a,time:Date.now()};(0,tE.gc)("loadingChunks",{message:"Loading world chunks",current:a,total:r,priority:1})}}},n=setInterval(update,500);update()}},startInventoryTexturesProgress=function(){e5.N_.gameLoaded&&(0,tE.gc)("inventoryTextures",{message:"Processing GUI textures"})};customEvents.on("gameLoaded",function(){var t;checkStartProgress(),(null==(t=appViewer.resourcesManager.currentResources)?void 0:t.guiAtlas)||startInventoryTexturesProgress(),bot._client.on("login",function(){checkStartProgress()}),bot._client.on("respawn",function(){checkStartProgress()}),bot.on("end",function(){e=!0,tE.n.loaders=[]})}),appViewer.resourcesManager.on("assetsInventoryStarted",function(){startInventoryTexturesProgress()}),appViewer.resourcesManager.on("assetsInventoryReady",function(){(0,tE.gc)("inventoryTextures",{delete:!0})})}};setTimeout(function(){loadingChunksProgress()});var ng=n(64868);let nm={crosshair:"crosshair-eLqfh9"};var nv=(0,tt.sj)({x:50,y:50,multiply:1,display:!1});globalThis.gamepadUiCursorState=nv;var moveGamepadCursorByPx=function(e,t){var n=(e*=3*nv.multiply)/(t?window.innerWidth:window.innerHeight)*100;nv[t?"x":"y"]+=n};function GamepadUiCursor(){var e=(0,tJ.R)(e5.M).length>0,t=(0,tJ.R)(nv),n=t.x,r=t.y,a=(0,tJ.R)(e5.N_),o=a.usingGamepadInput,i=a.gameLoaded,s=o&&(e||!i);return((0,tD.useEffect)(function(){document.body.style.cursor=i&&!e&&o?"none":"auto"},[o,e,i]),(0,tD.useEffect)(function(){nv.display=s},[s]),s)?(0,tC.jsx)(ng.Z,{children:(0,tC.jsx)("div",{className:nm.crosshair,style:{left:"".concat(n,"%"),top:"".concat(r,"%")}})}):null}var ny=null;t4.on("movementUpdate",function(e){e.vector;var t=e.soleVector;if(void 0!==e.gamepadIndex&&nv.display){if(.1>Math.abs(t.x)&&.1>Math.abs(t.z))return;moveGamepadCursorByPx(t.x,!0),moveGamepadCursorByPx(t.z,!1),emitMousemove(),trackHoveredElement()}});var emitMousemove=function(){var e=nv.x,t=nv.y,n=e/100*window.innerWidth,r=t/100*window.innerHeight,a=document.elementFromPoint(n,r);a&&a.dispatchEvent(new MouseEvent("mousemove",{clientX:n,clientY:r}))},trackHoveredElement=function(){var e=nv.x,t=nv.y,n=e/100*window.innerWidth,r=t/100*window.innerHeight,a=document.elementFromPoint(n,r);if(a!==ny){if(ny){var o=new MouseEvent("mouseout",{bubbles:!0,clientX:n,clientY:r});o.isGamepadCursor=!0,ny.dispatchEvent(o)}if(a){var i=new MouseEvent("mouseover",{bubbles:!0,clientX:n,clientY:r});i.isGamepadCursor=!0,a.dispatchEvent(i)}ny=a}};t4.on("stickMovement",function(e){var t=e.stick,n=e.vector;if("right"===t&&nv.display){var r=n.x,a=n.z;.18>Math.abs(r)&&(r=0),.18>Math.abs(a)&&(a=0),0!==r&&emitGamepadInputChange(r,!0),0!==a&&emulateGamepadScroll(a),e5.N_.usingGamepadInput=!0}});var emitGamepadInputChange=function(e,t){var n=nv.x/100*window.innerWidth,r=nv.y/100*window.innerHeight,a=document.elementFromPoint(n,r);if(a){var o=new CustomEvent("gamepadInputChange",{bubbles:!0,detail:{direction:e>0?1:-1,value:e,isStickMovement:t}});a.dispatchEvent(o)}},emulateGamepadScroll=function(e){var t=nv.x/100*window.innerWidth,n=nv.y/100*window.innerHeight,r=document.elementFromPoint(t,n);if(r){var a=findScrollableParent(r);a&&(a.scrollTop+=30*e)}},findScrollableParent=function(e){if(!e)return null;for(var t=e;t&&t!==document.body;){if(function(e){var t=window.getComputedStyle(e).overflowY;return e.scrollHeight>e.clientHeight&&("auto"===t||"scroll"===t||"overlay"===t)}(t))return t;t=t.parentElement}return document.documentElement.scrollHeight>document.documentElement.clientHeight?document.documentElement:null};globalThis.emulateGamepadScroll=emulateGamepadScroll;var nA=null,inModalCommand=function(e,t){(!t||nv.display)&&(t&&("ui.back"===e&&(0,e5.kJ)(),"ui.pauseMenu"===e&&(0,e5.sr)(),("ui.leftClick"===e||"ui.rightClick"===e)&&emulateMouseClick("ui.rightClick"===e)),"ui.speedupCursor"===e&&(nv.multiply=t?2:1))};t4.on("trigger",function(e){inModalCommand(e.command,!0)}),t4.on("release",function(e){inModalCommand(e.command,!1)});var emulateMouseClick=function(e){var t=nv.x,n=nv.y,r=t/100*window.innerWidth,a=n/100*window.innerHeight,o=document.elementFromPoint(r,a);if(o){if(o===nA&&!e)return void o.dispatchEvent(new MouseEvent("dblclick",{bubbles:!0,clientX:r,clientY:a}));o.dispatchEvent(new MouseEvent("mousedown",{button:2*!!e,bubbles:!0,clientX:r,clientY:a})),o.dispatchEvent(new MouseEvent(e?"contextmenu":"click",{bubbles:!0,clientX:r,clientY:a})),o.dispatchEvent(new MouseEvent("mouseup",{button:2*!!e,bubbles:!0,clientX:r,clientY:a})),o.focus(),nA=o,em&&clearTimeout(em),em=setTimeout(function(){nA=null},500)}};globalThis.emulateMouseClick=emulateMouseClick;var nb=n(41441),n_=n(88353),nL=n(3212),nC=n(87076),nj=n(68343),parseServerAddress=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!e)return{host:"",isWebSocket:!1,serverIpFull:""};if(/^ws:[^/]/.test(e)&&(e=e.replace("ws:","ws://")),/^wss:[^/]/.test(e)&&(e=e.replace("wss:","wss://")),e.startsWith("ws://")||e.startsWith("wss://"))return{host:e,isWebSocket:!0,serverIpFull:e};t&&(e=e.replace(/^https?:\/\//,""));for(var n=e.split(":"),r=null,a=null,o=0;o0?e.format(-r,"day"):n>0?e.format(-n,"hour"):e.format(-t,"minute")},[a]),m=(0,tD.useMemo)(function(){return o?(0,nT.filesize)(o):""},[o]);return(0,tC.jsxs)("div",{ref:h,className:nk()(nq.world_root,n?nq.world_focused:void 0),style:{position:"relative"},tabIndex:0,onFocus:function(){return null==s?void 0:s(t)},onKeyDown:function(e){("Enter"===e.code||"Space"===e.code)&&(e.preventDefault(),null==l||l("Enter"===e.code?"enter":"space"))},onDoubleClick:function(){return null==l?void 0:l("enter")},children:[(0,tC.jsx)("img",{className:"".concat(nq.world_image," ").concat(c?"":nq.image_missing),src:null!=c?c:nN,alt:""}),(0,tC.jsxs)("div",{className:nq.world_info,children:[(0,tC.jsxs)("div",{className:nq.world_title,children:[(0,tC.jsx)("div",{children:r}),(0,tC.jsxs)("div",{className:nq.world_title_right,children:[w&&(0,tC.jsx)("span",{style:{color:"#878787",fontSize:8},children:w}),M?(0,tC.jsxs)("span",{style:{color:"red",display:"flex",alignItems:"center",gap:4},children:[(0,tC.jsx)(nY.Z,{iconName:"signal-off",width:12}),"Offline"]}):(null==d?void 0:d.startsWith("ws"))?(0,tC.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:4},children:[(0,tC.jsx)(nY.Z,{iconName:"cellular-signal-3",width:12}),d.slice(3)]}):d]})]}),u?(0,tC.jsx)("div",{className:nq.world_info_formatted,children:(0,tC.jsx)(tV.Z,{message:u})}):(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsxs)("div",{className:nq.world_info_description_line,children:[g," ",(void 0===i?"":i).slice(-30)]}),(0,tC.jsx)("div",{className:nq.world_info_description_line,children:m})]})]}),(0,tC.jsx)("div",{style:{position:"absolute",left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:4,display:"flex",alignItems:"center"},children:p})]})};let nR=(0,nO.K)(function(e){var t,n,r,a=e.worldData,o=e.onGeneralAction,i=e.onWorldAction,s=e.firstRowChildrenOverride,l=e.serversLayout,c=e.searchRowChildrenOverride,u=e.activeProvider,d=e.setActiveProvider,w=e.providerActions,p=e.providers,h=void 0===p?{}:p,M=e.disabledProviders,g=e.error,m=e.isReadonly,v=e.warning,y=e.warningAction,A=e.warningActionLabel,b=e.hidden,_=e.onRowSelect,L=e.defaultSelectedRow,C=e.selectedRow,j=e.listStyle,D=e.setListHovered,x=e.secondRowStyles,k=e.lockedEditing,N=e.retriggerFocusCounter,T=(0,tD.useRef)(),S=(0,tD.useRef)(null),z=(0,tD.useRef)({});(0,nS.Z)(window,"keydown",function(e){if("ArrowDown"===e.code||"ArrowUp"===e.code){e.preventDefault();var t="ArrowDown"===e.code?1:-1,n=(0,nz.KW)(T.current).filter(function(e){return"-1"!==e.getAttribute("tabindex")}),r=n.indexOf(document.activeElement);if(-1!==r){var a=n[r+t];null==a||a.focus()}}});var q=(0,ek._)((0,tD.useState)(""),2),E=q[0],I=q[1],P=(0,ek._)((0,tD.useState)(void 0===L?"":null!=(r=null==a||null==(t=a[L])?void 0:t.name)?r:""),2),Y=P[0],O=P[1],R=(0,ek._)((0,tD.useState)({}),2),B=R[0],U=R[1];(0,tD.useEffect)(function(){O("")},[u]),(0,tD.useEffect)(function(){if(void 0!==C){var e,t,n=null==a||null==(e=a[C])?void 0:e.name;O(null!=n?n:""),n&&(null==(t=z.current[n])||t.focus())}},[C,null==a||null==(n=a[C])?void 0:n.name,N]);var onRowSelectHandler=function(e,t){null==_||_(e,t),O(e)},Q=useIsSmallWidth(),toggleGroup=function(e){U(function(t){return(0,eD._)((0,ej._)({},t),(0,nD._)({},e,void 0!==t[e]&&!t[e]))})};return(0,tC.jsxs)("div",{ref:T,hidden:b,children:[(0,tC.jsx)(tk.P,{}),(0,tC.jsxs)("div",{className:nk()("fullscreen",nq.root),children:[(0,tC.jsx)("span",{className:nk()("screen-title",nq.title),children:l?"Join Java Servers":"Select Saved World"}),c||(0,tC.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:(0,tC.jsx)(nE.ZP,{autoFocus:!0,value:E,onChange:function(e){return I(e.target.value)}})}),(0,tC.jsxs)("div",{className:nk()(nq.content,!a&&nq.content_loading),children:[(0,tC.jsx)(Tabs,{tabs:Object.keys(h),disabledTabs:M,activeTab:null!=u?u:"",labels:h,onTabChange:function(e){null==d||d(e)},fullSize:!0}),(0,tC.jsxs)("div",{style:(0,ej._)({marginTop:3},j),onMouseEnter:function(){return null==D?void 0:D(!0)},onMouseLeave:function(){return null==D?void 0:D(!1)},children:[w&&(0,tC.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,tC.jsx)("span",{style:{fontSize:9,marginRight:3},children:"Actions: "})," ",Object.entries(w).map(function(e){var t=(0,ek._)(e,2),n=t[0],r=t[1];return"function"==typeof r?(0,tC.jsx)(nI.Z,{onClick:r,style:{width:100},children:n},n):(0,tC.jsx)(tD.Fragment,{children:r},n)})]}),a?Object.entries(a.filter(function(e){return e.title.toLowerCase().includes(E.toLowerCase())}).reduce(function(e,t){var n=t.group||"";return e[n]||(e[n]=[]),e[n].push(t),e},{})).map(function(e){var t,n,r=(0,ek._)(e,2),a=r[0],o=r[1];return(0,tC.jsxs)(tD.Fragment,{children:[(0,tC.jsx)(GroupHeader,{name:a,count:o.length,expanded:null==(t=B[a])||t,onToggle:function(){return toggleGroup(a)}}),(null==(n=B[a])||n)&&o.map(function(e,t){var n=e.name,r=e.size,a=e.detail,o=(0,ex._)(e,["name","size","detail"]);return(0,tC.jsx)(World,(0,eD._)((0,ej._)({"data-key":n},o),{size:r,name:n,elemRef:function(e){z.current[n]=e},onFocus:function(e){return onRowSelectHandler(e,t)},isFocused:Y===n,onInteraction:function(e){var t;"enter"===e?i("load",n):"space"===e&&(null==(t=S.current)||t.focus())},detail:a}),n)})]},a)}):(0,tC.jsx)("div",{style:{fontSize:10,color:g?"red":"lightgray"},children:g||"Loading (check #dev console if loading too long)..."}),v&&(0,tC.jsxs)("div",{style:{fontSize:8,color:"#ffa500ba",marginTop:5,textAlign:"center"},children:[v," ",y&&(0,tC.jsx)("a",{onClick:y,children:A})]})]})]}),(0,tC.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:400,paddingBottom:3,alignItems:"center"},children:[s||(0,tC.jsxs)("div",{children:[(0,tC.jsx)(nI.Z,{rootRef:S,disabled:!Y,onClick:function(){return i("load",Y)},children:"Load World"}),(0,tC.jsx)(nI.Z,{onClick:function(){return o("create")},disabled:m,children:"Create New World"})]}),(0,tC.jsxs)("div",{style:(0,ej._)({},x,Q?{display:"grid",gridTemplateColumns:"1fr 1fr"}:{}),children:[l?(0,tC.jsx)(nI.Z,{style:{width:100},disabled:!Y||k,onClick:function(){return i("edit",Y)},children:"Edit"}):(0,tC.jsx)(nI.Z,{style:{width:100},disabled:!Y,onClick:function(){return i("export",Y)},children:"Export"}),(0,tC.jsx)(nI.Z,{style:{width:100},disabled:!Y||k,onClick:function(){return i("delete",Y)},children:"Delete"}),l?(0,tC.jsx)(nI.Z,{style:{width:100},onClick:function(){return o("create")},disabled:k,children:"Add"}):(0,tC.jsx)(nI.Z,{style:{width:100},onClick:function(){return i("edit",Y)},disabled:!0,children:"Edit"}),(0,tC.jsx)(nI.Z,{style:{width:100},onClick:function(){return o("cancel")},children:"Cancel"})]})]})]})]})},"singleplayer");var nB=n(53746);let nU="container-Y5gFld",nQ=(0,nO.K)(function(e){var t,n,r=e.initialOptions,a=e.updateOptions,o=e.getCssOnInput,i=e.onValueChange,s=e.defaultValue,l=e.containerStyle,c=e.placeholder,u=e.disabled,d=(0,ek._)((0,tD.useState)(null!=(t=null==s?void 0:s.label)?t:""),2),w=d[0],p=d[1],h=(0,ek._)((0,tD.useState)(null!=(n=null==s?void 0:s.label)?n:""),2),M=h[0],g=h[1],m=(0,ek._)((0,tD.useState)({}),2),v=m[0],y=m[1],A=(0,ek._)((0,tD.useState)(!0),2),b=A[0],_=A[1];return(0,tC.jsx)(nB.Z,{options:r,defaultValue:s,blurInputOnSelect:!0,hideSelectedOptions:!1,maxMenuHeight:100,isClearable:!0,formatCreateLabel:function(e){return'Use "'+e+'"'},isDisabled:u,placeholder:null!=c?c:"",onChange:function(e,t){var n,r,s,l;console.log("value:",null==e?void 0:e.value),g(null==e?void 0:e.label),p(null==e?void 0:e.label),null==i||i(null!=(n=null==e?void 0:e.value)?n:""),null==a||a(null!=(r=null==e?void 0:e.value)?r:""),y(null!=(l=null==o?void 0:o(null!=(s=null==e?void 0:e.value)?s:""))?l:{})},onInputChange:function(e){_(!1),p(e)},inputValue:w,onFocus:function(e){p(M)},filterOption:function(e,t){return b||e.label.includes(t)},onMenuOpen:function(){_(!0)},menuPortalTarget:document.body,classNames:{control:function(e){return nU},input:function(e){return"input-Vt4rMm"},option:function(e){return nU}},styles:{menuPortal:function(e,t){return(0,eD._)((0,ej._)({},e),{zIndex:10,transform:"scale(var(--guiScale))",transformOrigin:"top left"})},container:function(e,t){return(0,eD._)((0,ej._)({},e),{position:"relative",zIndex:10})},control:function(e,t){return(0,ej._)({},l,v)},menu:function(e,t){return{position:"absolute",zIndex:10}},option:function(e,t){return(0,ej._)({boxSizing:"border-box",padding:"3px",backgroundColor:"black",border:t.isFocused?"1px solid white":"1px solid grey",height:"fit-content"},l)},input:function(e,t){return{}},indicatorsContainer:function(e,t){return{display:"none"}},placeholder:function(e,t){return(0,eD._)((0,ej._)({},e),{padding:"3px",position:"absolute"})},singleValue:function(e,t){return(0,eD._)((0,ej._)({},e),{margin:"0px",position:"absolute",color:"white"})},valueContainer:function(e,t){return(0,eD._)((0,ej._)({},e),{padding:"3px"})},noOptionsMessage:function(e,t){return{display:"none"}}}})},"select");var getInitialProxies=function(){var e,t=[];return(null==(e=e5.N_.appConfig)?void 0:e.defaultProxy)&&t.push(e5.N_.appConfig.defaultProxy),t},getCurrentProxy=function(){var e,t,n;return null!=(n=null!=(t=eS.EX.proxy)?t:null==(e=tm.e1.proxiesData)?void 0:e.selected)?n:getInitialProxies()[0]},getCurrentUsername=function(){var e;return null!=(e=eS.EX.username)?e:tm.e1.username};let nF=(0,nO.K)(function(e){var t,n,r=e.joinServer,a=e.onProfileClick,o=e.setQuickConnectIp,i=(0,ex._)(e,["joinServer","onProfileClick","setQuickConnectIp"]),s=(0,tJ.R)(tm.e1),l=(0,tD.useMemo)(function(){return getCurrentUsername()},[eS.EX.username,tm.e1.username]),c=(0,ek._)(tD.useState(""),2),u=c[0],d=c[1],w=(0,ek._)(tD.useState(!0),2),p=w[0],h=w[1],M=(0,ek._)(tD.useState(void 0),2),g=M[0],m=M[1],updateProxies=function(e){tm.e1.proxiesData=e},setUsername=function(e){tm.e1.username=e},getActiveHighlightStyles=function(e){var t={transition:"filter 0.2s"};return g&&g!==e&&(t.filter="brightness(0.7)"),t},v=useIsSmallWidth(),y=getInitialProxies(),A=null!=(t=s.proxiesData)?t:{proxies:y,selected:y[0]};return(0,tC.jsx)(nR,(0,eD._)((0,ej._)({},i),{worldData:i.worldData?i.worldData.map(function(e){return(0,ej._)({},e)}):null,firstRowChildrenOverride:(0,tC.jsx)("form",{style:{width:"100%",display:"flex",justifyContent:"center"},onSubmit:function(e){e.preventDefault(),r(u,{shouldSave:p})},children:(0,tC.jsxs)("div",{style:(0,ej._)({display:"flex",gap:5,alignItems:"center"},getActiveHighlightStyles("quick-connect")),className:"quick-connect-row",onMouseEnter:function(){return m("quick-connect")},onMouseLeave:function(){return m(void 0)},children:[(0,tC.jsx)(nE.ZP,{required:!0,placeholder:"Quick Connect IP (:version)",value:u,onChange:function(e){var t=e.target.value;null==o||o(t),d(t)},width:v?120:180,list:"server-history",autoComplete:"on",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false"}),(0,tC.jsx)("datalist",{id:"server-history",children:(0,eE._)(null!=(n=s.serversHistory)?n:[]).sort(function(e,t){return t.numConnects-e.numConnects}).map(function(e){return(0,tC.jsx)("option",{value:"".concat(e.ip).concat(e.version?":".concat(e.version):"")},e.ip)})}),(0,tC.jsxs)("label",{style:{fontSize:10,display:"flex",alignItems:"center",gap:5,height:"100%",marginTop:"-1px"},children:[(0,tC.jsx)("input",{type:"checkbox",checked:p,style:{borderRadius:0},onChange:function(e){return h(e.target.checked)}})," Save"]}),(0,tC.jsx)(nI.Z,{style:{width:90},type:"submit",children:"Connect"})]})}),searchRowChildrenOverride:(0,tC.jsx)("div",{style:{},children:(0,tC.jsxs)("div",{style:{display:"flex",gap:3,alignItems:"center"},children:[v?(0,tC.jsx)(nY.Z,{iconName:nY.K.server,styles:{fontSize:14,color:"lightgray",marginLeft:2},onClick:a}):(0,tC.jsx)("span",{style:{color:"lightgray",fontSize:14},children:"Proxy:"}),(0,tC.jsx)(nQ,{initialOptions:A.proxies.map(function(e){return{value:e,label:e}}),defaultValue:{value:A.selected,label:A.selected},updateOptions:function(e){updateProxies({proxies:(0,eE._)(A.proxies),selected:e})},containerStyle:{width:v?140:180}}),(0,tC.jsx)(nY.Z,{iconName:"user",styles:{fontSize:14,color:"lightgray",marginLeft:2},onClick:a}),(0,tC.jsx)(nE.ZP,{rootStyles:{width:80},value:l,disabled:void 0!==eS.EX.username,onChange:function(e){return setUsername(e.target.value)},autoCorrect:"off",autoCapitalize:"off",spellCheck:"false"})]})}),serversLayout:!0,onWorldAction:function(e,t){var n;"load"===e&&r({ip:t},{}),null==(n=i.onWorldAction)||n.call(i,e,t)},setListHovered:function(e){m(e?"server-list":void 0)},listStyle:getActiveHighlightStyles("server-list"),secondRowStyles:getActiveHighlightStyles("server-list")}))},"serversList");var nW=n(33477),nJ=n.n(nW),nV=n(55872).Buffer,nG=(d=(0,eC._)(function(e,t){var n,r,a,o,i,s=arguments;return(0,eT.Jh)(this,function(l){switch(l.label){case 0:return n=s.length>2&&void 0!==s[2]?s[2]:{},r=new(eq()),a=(0,ej._)({host:e,port:t,noPongTimeout:1e4,closeTimeout:2e4},n),o=0,i=null,r.autoVersionHooks=[function(e){o=e.latency,i=e}],nJ()(r,a),[4,Promise.race([new Promise(function(e,t){r.once("connect_allowed",function(){e()})}),new Promise(function(e,t){r.on("error",function(e){var n;t(Error(null!=(n=e.message)?n:e))}),n.stream&&n.stream.on("end",function(e){setTimeout(function(){t(Error("Connection closed. Please report if you see this but the server is actually fine."))})})})])];case 1:return l.sent(),[2,{version:r.version,latency:o,fullInfo:i}]}})}),function(e,t){return d.apply(this,arguments)}),nH=new Set(["chat","system_chat","player_chat","profileless_chat","kick_disconnect","resource_pack_send","action_bar","set_title_text","set_title_subtitle","title","death_combat_event","server_data","scoreboard_objective","scoreboard_team","playerlist_header","boss_bar"]),validatePacket=function(e,t,n,r){if(r){if(n.length>2097152)throw console.groupCollapsed("Packet ".concat(e," is too large: ").concat(n.length," bytes")),console.log(t),console.groupEnd(),Error("Packet ".concat(e," is too large: ").concat(n.length," bytes"));if(nH.has(e)){var a=getObjectMaxDepth(t);if(a>200)throw console.groupCollapsed("Packet ".concat(e," have too many nested objects: ").concat(a)),console.log(t),console.groupEnd(),Error("Packet ".concat(e," have too many nested objects: ").concat(a))}}};function getObjectMaxDepth(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(null===e||(void 0===e?"undefined":(0,eN._)(e))!=="object"||e instanceof nV)return t;var n=t;if(Array.isArray(e)){var r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var l=i.value,c=getObjectMaxDepth(l,t+1);n=Math.max(n,c)}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}}else for(var u in e)n=Math.max(n,getObjectMaxDepth(e[u],t+1));return n}var nZ=n(76835),nK=n(95493),nX=n(55872).Buffer,n$=function(e){function CustomDuplex(e,t){var n;return(0,tH._)(this,CustomDuplex),(n=(0,nb._)(this,CustomDuplex,[e])).writeAction=t,n}(0,n_._)(CustomDuplex,e);var t=CustomDuplex.prototype;return t._read=function(){},t._write=function(e,t,n){this.writeAction(e),n()},CustomDuplex}(nZ.Duplex),n0=(w=(0,eC._)(function(e){var t,n,r,a,o,i;return(0,eT.Jh)(this,function(s){switch(s.label){case 0:var l;return t=e.startsWith("ws://")?"ws":"wss",n=e.replace("ws://","").replace("wss://",""),(a=(r=new URL("".concat(t,"://").concat(n))).searchParams).append("client_mcraft",""),o=new WebSocket("".concat(t,"://").concat(r.host).concat(r.pathname,"?").concat(a.toString())),(i=new n$(void 0,function(e){o.send(e)})).on("error",function(){}),o.addEventListener("message",(l=(0,eC._)(function(e){var t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:if(!((t=e.data)instanceof Blob))return[3,2];return[4,t.arrayBuffer()];case 1:t=n.sent(),n.label=2;case 2:return i.push(nX.from(t)),[2]}})}),function(e){return l.apply(this,arguments)})),o.addEventListener("close",function(){console.log("ws closed"),i.end(),setTimeout(function(){i.emit("end","Connection lost")},500)}),o.addEventListener("error",function(e){console.log("ws error",e),i.emit("error",e)}),[4,new Promise(function(e,t){o.addEventListener("open",e),o.addEventListener("error",function(e){console.log("ws error",e),t(new nK.g("Failed to open websocket connection"))})})];case 1:return s.sent(),[2,{mineflayerStream:i,ws:o}]}})}),function(e){return w.apply(this,arguments)}),n1=n(55872).Buffer,n3=0;customEvents.on("mineflayerBotCreated",function(){var e=function(e){function MinecraftProtocolError(e,t,n){var r;return(0,tH._)(this,MinecraftProtocolError),(null==n?void 0:n.customPayload)&&(e+=" (Custom payload: ".concat(n.customPayload.channel,")")),(r=(0,nb._)(this,MinecraftProtocolError,[e,{cause:t}])).data=n,r.name="MinecraftProtocolError",r}return(0,n_._)(MinecraftProtocolError,e),MinecraftProtocolError}((0,nL._)(Error)),onClientError=function(t,n){reportError(new e("Minecraft protocol client error: ".concat(String(t)),t,n))};"function"==typeof bot._client._events.error?bot._client._events.error=onClientError:bot._client.on("error",onClientError),eS.EX.noPacketsValidation||(bot._client.on("packet",function(e,t,n,r){validatePacket(t.name,e,r,!0),n3=performance.now()}),bot._client.on("writePacket",function(e,t){validatePacket(e,t,n1.alloc(0),!1)}))}),setInterval(function(){var e;if(bot&&n3){if((null==(e=bot.player)?void 0:e.ping)>500?e5.rl.poorConnection=!0:e5.rl.poorConnection=!1,performance.now()-n3<2e3){e5.rl.noConnection=!1;return}e5.rl.noConnection=!0}},1e3);var n2=(p=(0,eC._)(function(e,t){var n,r,a,o,i,s=arguments;return(0,eT.Jh)(this,function(l){switch(l.label){case 0:return n=s.length>2&&void 0!==s[2]?s[2]:(0,nj.getVersionAutoSelect)(),r=s.length>3&&void 0!==s[3]&&s[3],a=s.length>4?s[4]:void 0,o=s.length>5?s[5]:void 0,[4,(0,nj.downloadAllMinecraftData)()];case 1:if(l.sent(),!(e.startsWith("ws://")||e.startsWith("wss://")))return[3,3];return null==a||a.setMessage("Connecting to WebSocket server"),[4,n0(e)];case 2:return i=l.sent().mineflayerStream,null==a||a.setMessage("WebSocket connected. Ping packet sent, waiting for response"),[3,4];case 3:o&&setProxy(o),l.label=4;case 4:return window.setLoadingMessage=function(e){void 0===e?null==a||a.endStage("dns"):null==a||a.beginStage("dns",e)},[2,nG(e,t,(0,ej._)({},i?{stream:i}:{},r?{noPongTimeout:3e3}:{},n?{version:n}:{})).finally(function(){window.setLoadingMessage=void 0})]}})}),function(e,t){return p.apply(this,arguments)});globalThis.debugTestPing=(h=(0,eC._)(function(e){var t,n;return(0,eT.Jh)(this,function(r){switch(r.label){case 0:return[4,n2((t=parseServerAddress(e,!1)).host,t.port?Number(t.port):void 0,void 0,!0,void 0,{address:getCurrentProxy()})];case 1:return console.log("result",n=r.sent()),[2,n]}})}),function(e){return h.apply(this,arguments)});var getDefaultProxyParams=function(){var e;return{headers:{Authorization:"Bearer ".concat(null!=(e=new URLSearchParams(location.search).get("token"))?e:"")}}},setProxy=function(e){if((null==(t=e.address)?void 0:t.startsWith(":"))&&(e.address="".concat(location.protocol,"//").concat(location.hostname).concat(e.address)),e.address&&"80"!==location.port&&"443"!==location.port&&!/:\d+$/.test(e.address)){var t,n,r=e.address.startsWith("https://")||"https:"===location.protocol;e.address="".concat(e.address,":").concat(r?443:80)}var a=parseServerAddress(e.address,!1),o={host:a.host,port:a.port};return null!=e.headers||(e.headers=getDefaultProxyParams().headers),nC.setProxy({hostname:o.host,port:o.port,headers:e.headers,artificialDelay:eS.EX.addPing?Number(eS.EX.addPing):void 0}),{proxy:o}},n5=n(73955),n4=JSON.parse('{"moving_piston":[],"water":[],"lava":[],"bubble_column":[],"air":[],"void_air":[],"cave_air":[],"mangrove_propagule":{"hanging=true":[7,0,7,9,16,9],"age=0":[7,13,7,9,16,9],"age=1":[7,10,7,9,16,9],"age=2":[7,7,7,9,16,9],"age=3":[7,3,7,9,16,9],"age=4":[7,0,7,9,16,9]},"fern":[2,0,2,14,13,14],"dandelion":[5,0,5,11,10,11],"torchflower":[5,0,5,11,10,11],"poppy":[5,0,5,11,10,11],"blue_orchid":[5,0,5,11,10,11],"allium":[5,0,5,11,10,11],"azure_bluet":[5,0,5,11,10,11],"red_tulip":[5,0,5,11,10,11],"orange_tulip":[5,0,5,11,10,11],"white_tulip":[5,0,5,11,10,11],"pink_tulip":[5,0,5,11,10,11],"oxeye_daisy":[5,0,5,11,10,11],"cornflower":[5,0,5,11,10,11],"wither_rose":[5,0,5,11,10,11],"lily_of_the_valley":[5,0,5,11,10,11],"brown_mushroom":[5,0,5,11,6,11],"red_mushroom":[5,0,5,11,6,11],"torch":[6,0,6,10,10,10],"soul_fire":[0,0,0,16,1,16],"soul_torch":[6,0,6,10,10,10],"end_portal":[0,6,0,16,12,16],"end_gateway":[],"kelp_plant":[0,0,0,16,16,16],"dead_tube_coral":[2,0,2,14,15,14],"dead_brain_coral":[2,0,2,14,15,14],"dead_bubble_coral":[2,0,2,14,15,14],"dead_fire_coral":[2,0,2,14,15,14],"dead_horn_coral":[2,0,2,14,15,14],"tube_coral":[2,0,2,14,15,14],"brain_coral":[2,0,2,14,15,14],"bubble_coral":[2,0,2,14,15,14],"fire_coral":[2,0,2,14,15,14],"horn_coral":[2,0,2,14,15,14],"dead_tube_coral_fan":[2,0,2,14,4,14],"dead_brain_coral_fan":[2,0,2,14,4,14],"dead_bubble_coral_fan":[2,0,2,14,4,14],"dead_fire_coral_fan":[2,0,2,14,4,14],"dead_horn_coral_fan":[2,0,2,14,4,14],"tube_coral_fan":[2,0,2,14,4,14],"brain_coral_fan":[2,0,2,14,4,14],"bubble_coral_fan":[2,0,2,14,4,14],"fire_coral_fan":[2,0,2,14,4,14],"horn_coral_fan":[2,0,2,14,4,14],"bamboo_sapling":[4,0,4,12,12,12],"warped_fungus":[4,0,4,12,9,12],"warped_roots":[2,0,2,14,13,14],"nether_sprouts":[2,0,2,14,3,14],"crimson_fungus":[4,0,4,12,9,12],"weeping_vines_plant":[1,0,1,15,16,15],"twisting_vines_plant":[4,0,4,12,16,12],"crimson_roots":[2,0,2,14,13,14],"snow":{"layers=1":[0,0,0,16,1,16]},"powder_snow":[0,0,0,16,16,16],"spore_blossom":[2,13,2,14,16,14],"hanging_roots":[2,10,2,14,16,14],"frogspawn":[0,0,0,16,1.5,16],"jungle_sapling":[2,0,2,14,12,14],"acacia_sapling":[2,0,2,14,12,14],"cherry_sapling":[2,0,2,14,12,14],"powered_rail":{"shape=ascending_east":[0,0,0,16,8,16],"shape=ascending_north":[0,0,0,16,8,16],"shape=ascending_south":[0,0,0,16,8,16],"shape=ascending_west":[0,0,0,16,8,16],"":[0,0,0,16,2,16]},"detector_rail":{"shape=ascending_east":[0,0,0,16,8,16],"shape=ascending_north":[0,0,0,16,8,16],"shape=ascending_south":[0,0,0,16,8,16],"shape=ascending_west":[0,0,0,16,8,16],"":[0,0,0,16,2,16]},"wall_torch":{"facing=east":[0,3,5.5,5,13,10.5],"facing=north":[5.5,3,11,10.5,13,16],"facing=south":[5.5,3,0,10.5,13,5],"facing=west":[11,3,5.5,16,13,10.5]},"fire":{"combine":{"up=true":[0,15,0,16,16,16],"west=true":[0,0,0,1,16,16],"east=true":[15,0,0,16,16,16],"north=true":[0,0,0,16,16,1],"south=true":[0,0,15,16,16,16]}},"redstone_wire":{"combine":{"north=side|up":[3,0,0,13,1,13],"south=side|up":[3,0,3,13,1,16],"east=side|up":[3,0,3,16,1,13],"west=side|up":[0,0,3,13,1,13],"north=up":[3,0,0,13,16,1],"south=up":[3,0,15,13,16,16],"east=up":[15,0,3,16,16,13],"west=up":[0,0,3,1,16,13]}},"wheat":{"age=0":[0,0,0,16,2,16],"age=1":[0,0,0,16,4,16],"age=2":[0,0,0,16,6,16],"age=3":[0,0,0,16,8,16],"age=4":[0,0,0,16,10,16],"age=5":[0,0,0,16,12,16],"age=6":[0,0,0,16,14,16],"age=7":[0,0,0,16,16,16]},"oak_sign":[4,0,4,12,16,12],"spruce_sign":[4,0,4,12,16,12],"birch_sign":[4,0,4,12,16,12],"acacia_sign":[4,0,4,12,16,12],"cherry_sign":[4,0,4,12,16,12],"jungle_sign":[4,0,4,12,16,12],"dark_oak_sign":[4,0,4,12,16,12],"mangrove_sign":[4,0,4,12,16,12],"bamboo_sign":[4,0,4,12,16,12],"rail":{"shape=ascending_east":[0,0,0,16,8,16],"shape=ascending_north":[0,0,0,16,8,16],"shape=ascending_south":[0,0,0,16,8,16],"shape=ascending_west":[0,0,0,16,8,16],"":[0,0,0,16,2,16]},"oak_wall_sign":{"facing=north":[0,4.5,14,16,12.5,16],"facing=south":[0,4.5,0,16,12.5,2],"facing=east":[0,4.5,0,2,12.5,16],"facing=west":[14,4.5,0,16,12.5,16]},"spruce_wall_sign":{"facing=north":[0,4.5,14,16,12.5,16],"facing=south":[0,4.5,0,16,12.5,2],"facing=east":[0,4.5,0,2,12.5,16],"facing=west":[14,4.5,0,16,12.5,16]},"birch_wall_sign":{"facing=north":[0,4.5,14,16,12.5,16],"facing=south":[0,4.5,0,16,12.5,2],"facing=east":[0,4.5,0,2,12.5,16],"facing=west":[14,4.5,0,16,12.5,16]},"acacia_wall_sign":{"facing=north":[0,4.5,14,16,12.5,16],"facing=south":[0,4.5,0,16,12.5,2],"facing=east":[0,4.5,0,2,12.5,16],"facing=west":[14,4.5,0,16,12.5,16]},"cherry_wall_sign":{"facing=north":[0,4.5,14,16,12.5,16],"facing=south":[0,4.5,0,16,12.5,2],"facing=east":[0,4.5,0,2,12.5,16],"facing=west":[14,4.5,0,16,12.5,16]},"jungle_wall_sign":{"facing=north":[0,4.5,14,16,12.5,16],"facing=south":[0,4.5,0,16,12.5,2],"facing=east":[0,4.5,0,2,12.5,16],"facing=west":[14,4.5,0,16,12.5,16]},"dark_oak_wall_sign":{"facing=north":[0,4.5,14,16,12.5,16],"facing=south":[0,4.5,0,16,12.5,2],"facing=east":[0,4.5,0,2,12.5,16],"facing=west":[14,4.5,0,16,12.5,16]},"mangrove_wall_sign":{"facing=north":[0,4.5,14,16,12.5,16],"facing=south":[0,4.5,0,16,12.5,2],"facing=east":[0,4.5,0,2,12.5,16],"facing=west":[14,4.5,0,16,12.5,16]},"bamboo_wall_sign":{"facing=north":[0,4.5,14,16,12.5,16],"facing=south":[0,4.5,0,16,12.5,2],"facing=east":[0,4.5,0,2,12.5,16],"facing=west":[14,4.5,0,16,12.5,16]},"oak_hanging_sign":[3,0,3,13,16,13],"spruce_hanging_sign":[3,0,3,13,16,13],"birch_hanging_sign":[3,0,3,13,16,13],"acacia_hanging_sign":[3,0,3,13,16,13],"cherry_hanging_sign":[3,0,3,13,16,13],"jungle_hanging_sign":[3,0,3,13,16,13],"dark_oak_hanging_sign":[3,0,3,13,16,13],"crimson_hanging_sign":[3,0,3,13,16,13],"warped_hanging_sign":[3,0,3,13,16,13],"mangrove_hanging_sign":[3,0,3,13,16,13],"bamboo_hanging_sign":[3,0,3,13,16,13],"lever":{"face=floor,facing=east":[4,0,5,12,6,11],"face=floor,facing=north":[5,0,4,11,6,12],"face=floor,facing=south":[5,0,4,11,6,12],"face=floor,facing=west":[4,0,5,12,6,11],"face=ceiling,facing=east":[4,10,5,12,16,11],"face=ceiling,facing=north":[5,10,4,11,16,12],"face=ceiling,facing=south":[5,10,4,11,16,12],"face=ceiling,facing=west":[4,10,5,12,16,11],"face=wall,facing=east":[0,4,5,6,12,11],"face=wall,facing=north":[5,4,10,11,12,16],"face=wall,facing=south":[5,4,0,11,12,6],"face=wall,facing=west":[10,4,5,16,12,11]},"stone_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"oak_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"spruce_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"birch_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"jungle_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"acacia_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"cherry_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"dark_oak_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"mangrove_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"bamboo_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"redstone_torch":[6,0,6,10,10,10],"redstone_wall_torch":{"facing=east":[0,3,5.5,5,13,10.5],"facing=north":[5.5,3,11,10.5,13,16],"facing=south":[5.5,3,0,10.5,13,5],"facing=west":[11,3,5.5,16,13,10.5]},"stone_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"sugar_cane":[2,0,2,14,16,14],"soul_wall_torch":{"facing=east":[0,3,5.5,5,13,10.5],"facing=north":[5.5,3,11,10.5,13,16],"facing=south":[5.5,3,0,10.5,13,5],"facing=west":[11,3,5.5,16,13,10.5]},"attached_pumpkin_stem":{"facing=east":[6,0,6,16,10,10],"facing=north":[6,0,0,10,10,10],"facing=south":[6,0,6,10,10,16],"facing=west":[0,0,6,10,10,10]},"attached_melon_stem":{"facing=east":[6,0,6,16,10,10],"facing=north":[6,0,0,10,10,10],"facing=south":[6,0,6,10,10,16],"facing=west":[0,0,6,10,10,10]},"pumpkin_stem":{"age=0":[7,0,7,9,2,9],"age=1":[7,0,7,9,4,9],"age=2":[7,0,7,9,6,9],"age=3":[7,0,7,9,8,9],"age=4":[7,0,7,9,10,9],"age=5":[7,0,7,9,12,9],"age=6":[7,0,7,9,14,9],"age=7":[7,0,7,9,16,9]},"melon_stem":{"age=0":[7,0,7,9,2,9],"age=1":[7,0,7,9,4,9],"age=2":[7,0,7,9,6,9],"age=3":[7,0,7,9,8,9],"age=4":[7,0,7,9,10,9],"age=5":[7,0,7,9,12,9],"age=6":[7,0,7,9,14,9],"age=7":[7,0,7,9,16,9]},"vine":{"combine":{"up=true":[0,15,0,16,16,16],"west=true":[0,0,0,1,16,16],"east=true":[15,0,0,16,16,16],"north=true":[0,0,0,16,16,1],"south=true":[0,0,15,16,16,16]}},"glow_lichen":{"combine":{"up=true":[0,15,0,16,16,16],"west=true":[0,0,0,1,16,16],"east=true":[15,0,0,16,16,16],"north=true":[0,0,0,16,16,1],"south=true":[0,0,15,16,16,16]}},"nether_wart":{"age=0":[0,0,0,16,5,16],"age=1":[0,0,0,16,8,16],"age=2":[0,0,0,16,11,16],"age=3":[0,0,0,16,14,16]},"tripwire_hook":{"facing=east":[0,0,5,6,10,11],"facing=north":[5,0,10,11,10,16],"facing=south":[5,0,0,11,10,6],"facing=west":[10,0,5,16,10,11]},"tripwire":{"attached=true":[0,1,0,16,2.5,16],"attached=false":[0,0,0,16,8,16]},"carrots":{"age=0":[0,0,0,16,2,16],"age=1":[0,0,0,16,3,16],"age=2":[0,0,0,16,4,16],"age=3":[0,0,0,16,5,16],"age=4":[0,0,0,16,6,16],"age=5":[0,0,0,16,7,16],"age=6":[0,0,0,16,8,16],"age=7":[0,0,0,16,9,16]},"potatoes":{"age=0":[0,0,0,16,2,16],"age=1":[0,0,0,16,3,16],"age=2":[0,0,0,16,4,16],"age=3":[0,0,0,16,5,16],"age=4":[0,0,0,16,6,16],"age=5":[0,0,0,16,7,16],"age=6":[0,0,0,16,8,16],"age=7":[0,0,0,16,9,16]},"oak_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"spruce_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"birch_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"jungle_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"acacia_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"cherry_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"dark_oak_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"mangrove_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"bamboo_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"light_weighted_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"heavy_weighted_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"activator_rail":{"shape=ascending_east":[0,0,0,16,8,16],"shape=ascending_north":[0,0,0,16,8,16],"shape=ascending_south":[0,0,0,16,8,16],"shape=ascending_west":[0,0,0,16,8,16],"":[0,0,0,16,2,16]},"light":[],"sunflower":[0,0,0,16,16,16],"rose_bush":[0,0,0,16,16,16],"peony":[0,0,0,16,16,16],"large_fern":[0,0,0,16,16,16],"white_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"orange_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"magenta_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"light_blue_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"yellow_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"lime_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"pink_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"gray_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"light_gray_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"cyan_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"purple_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"blue_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"brown_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"green_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"red_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"black_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"white_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"orange_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"magenta_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"light_blue_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"yellow_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"lime_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"pink_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"gray_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"light_gray_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"cyan_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"purple_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"blue_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"brown_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"green_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"red_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"black_wall_banner":{"facing=north":[0,0,14,16,12.5,16],"facing=south":[0,0,0,16,12.5,2],"facing=west":[14,0,0,16,12.5,16],"facing=east":[0,0,0,2,12.5,16]},"torchflower_crop":{"age=0":[5,0,5,11,6,11],"age=1":[5,0,5,11,10,11]},"pitcher_plant":[0,0,0,16,16,16],"beetroots":{"age=0":[0,0,0,16,2,16],"age=1":[0,0,0,16,4,16],"age=2":[0,0,0,16,6,16],"age=3":[0,0,0,16,8,16]},"kelp":[0,0,0,16,9,16],"dead_tube_coral_wall_fan":{"facing=north":[0,4,5,16,12,16],"facing=south":[0,4,0,16,12,11],"facing=west":[5,4,0,16,12,16],"facing=east":[0,4,0,11,12,16]},"dead_brain_coral_wall_fan":{"facing=north":[0,4,5,16,12,16],"facing=south":[0,4,0,16,12,11],"facing=west":[5,4,0,16,12,16],"facing=east":[0,4,0,11,12,16]},"dead_bubble_coral_wall_fan":{"facing=north":[0,4,5,16,12,16],"facing=south":[0,4,0,16,12,11],"facing=west":[5,4,0,16,12,16],"facing=east":[0,4,0,11,12,16]},"dead_fire_coral_wall_fan":{"facing=north":[0,4,5,16,12,16],"facing=south":[0,4,0,16,12,11],"facing=west":[5,4,0,16,12,16],"facing=east":[0,4,0,11,12,16]},"dead_horn_coral_wall_fan":{"facing=north":[0,4,5,16,12,16],"facing=south":[0,4,0,16,12,11],"facing=west":[5,4,0,16,12,16],"facing=east":[0,4,0,11,12,16]},"tube_coral_wall_fan":{"facing=north":[0,4,5,16,12,16],"facing=south":[0,4,0,16,12,11],"facing=west":[5,4,0,16,12,16],"facing=east":[0,4,0,11,12,16]},"brain_coral_wall_fan":{"facing=north":[0,4,5,16,12,16],"facing=south":[0,4,0,16,12,11],"facing=west":[5,4,0,16,12,16],"facing=east":[0,4,0,11,12,16]},"bubble_coral_wall_fan":{"facing=north":[0,4,5,16,12,16],"facing=south":[0,4,0,16,12,11],"facing=west":[5,4,0,16,12,16],"facing=east":[0,4,0,11,12,16]},"fire_coral_wall_fan":{"facing=north":[0,4,5,16,12,16],"facing=south":[0,4,0,16,12,11],"facing=west":[5,4,0,16,12,16],"facing=east":[0,4,0,11,12,16]},"horn_coral_wall_fan":{"facing=north":[0,4,5,16,12,16],"facing=south":[0,4,0,16,12,11],"facing=west":[5,4,0,16,12,16],"facing=east":[0,4,0,11,12,16]},"sweet_berry_bush":{"age=0":[3,0,3,13,8,13],"age=1":[1,0,1,15,16,15],"age=2":[1,0,1,15,16,15],"":[0,0,0,16,16,16]},"weeping_vines":[4,9,4,12,16,12],"twisting_vines":[4,0,4,12,15,12],"crimson_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"warped_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"crimson_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"warped_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"crimson_sign":[4,0,4,12,16,12],"warped_sign":[4,0,4,12,16,12],"crimson_wall_sign":{"facing=north":[0,4.5,14,16,12.5,16],"facing=south":[0,4.5,0,16,12.5,2],"facing=east":[0,4.5,0,2,12.5,16],"facing=west":[14,4.5,0,16,12.5,16]},"warped_wall_sign":{"facing=north":[0,4.5,14,16,12.5,16],"facing=south":[0,4.5,0,16,12.5,2],"facing=east":[0,4.5,0,2,12.5,16],"facing=west":[14,4.5,0,16,12.5,16]},"polished_blackstone_pressure_plate":{"powered=false":[1,0,1,15,1,15],"powered=true":[1,0,1,15,0.5,15]},"polished_blackstone_button":{"face=floor,facing=north,powered=false":[5,0,6,11,2,10],"face=floor,facing=north,powered=true":[5,0,6,11,1,10],"face=floor,facing=south,powered=false":[5,0,6,11,2,10],"face=floor,facing=south,powered=true":[5,0,6,11,1,10],"face=floor,facing=west,powered=false":[6,0,5,10,2,11],"face=floor,facing=west,powered=true":[6,0,5,10,1,11],"face=floor,facing=east,powered=false":[6,0,5,10,2,11],"face=floor,facing=east,powered=true":[6,0,5,10,1,11],"face=wall,facing=north,powered=false":[5,6,14,11,10,16],"face=wall,facing=north,powered=true":[5,6,15,11,10,16],"face=wall,facing=south,powered=false":[5,6,0,11,10,2],"face=wall,facing=south,powered=true":[5,6,0,11,10,1],"face=wall,facing=west,powered=false":[14,6,5,16,10,11],"face=wall,facing=west,powered=true":[15,6,5,16,10,11],"face=wall,facing=east,powered=false":[0,6,5,2,10,11],"face=wall,facing=east,powered=true":[0,6,5,1,10,11],"face=ceiling,facing=north,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=north,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=south,powered=false":[5,14,6,11,16,10],"face=ceiling,facing=south,powered=true":[5,15,6,11,16,10],"face=ceiling,facing=west,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=west,powered=true":[6,15,5,10,16,11],"face=ceiling,facing=east,powered=false":[6,14,5,10,16,11],"face=ceiling,facing=east,powered=true":[6,15,5,10,16,11]},"sculk_vein":{"combine":{"up=true":[0,15,0,16,16,16],"west=true":[0,0,0,1,16,16],"east=true":[15,0,0,16,16,16],"north=true":[0,0,0,16,16,1],"south=true":[0,0,15,16,16,16]}},"cave_vines":[1,0,1,15,16,15],"big_dripleaf_stem":{"facing=north":[5,0,9,11,16,15],"facing=south":[5,0,1,11,16,7],"facing=east":[1,0,5,7,16,11],"facing=west":[9,0,5,15,16,11]},"small_dripleaf":[2,0,2,14,13,14]}'),n6=JSON.parse('{"blocks":{"air":0,"stone":1,"granite":1,"polished_granite":1,"diorite":1,"polished_diorite":1,"andesite":1,"polished_andesite":1,"grass_block":1,"dirt":1,"coarse_dirt":1,"podzol":1,"cobblestone":1,"oak_planks":1,"spruce_planks":1,"birch_planks":1,"jungle_planks":1,"acacia_planks":1,"cherry_planks":1,"dark_oak_planks":1,"pale_oak_wood":1,"pale_oak_planks":1,"mangrove_planks":1,"bamboo_planks":1,"bamboo_mosaic":1,"oak_sapling":0,"spruce_sapling":0,"birch_sapling":0,"jungle_sapling":0,"acacia_sapling":0,"cherry_sapling":0,"dark_oak_sapling":0,"pale_oak_sapling":0,"mangrove_propagule":0,"bedrock":1,"water":0,"lava":0,"sand":1,"suspicious_sand":1,"red_sand":1,"gravel":1,"suspicious_gravel":1,"gold_ore":1,"deepslate_gold_ore":1,"iron_ore":1,"deepslate_iron_ore":1,"coal_ore":1,"deepslate_coal_ore":1,"nether_gold_ore":1,"oak_log":1,"spruce_log":1,"birch_log":1,"jungle_log":1,"acacia_log":1,"cherry_log":1,"dark_oak_log":1,"pale_oak_log":1,"mangrove_log":1,"mangrove_roots":1,"muddy_mangrove_roots":1,"bamboo_block":1,"stripped_spruce_log":1,"stripped_birch_log":1,"stripped_jungle_log":1,"stripped_acacia_log":1,"stripped_cherry_log":1,"stripped_dark_oak_log":1,"stripped_pale_oak_log":1,"stripped_oak_log":1,"stripped_mangrove_log":1,"stripped_bamboo_block":1,"oak_wood":1,"spruce_wood":1,"birch_wood":1,"jungle_wood":1,"acacia_wood":1,"cherry_wood":1,"dark_oak_wood":1,"mangrove_wood":1,"stripped_oak_wood":1,"stripped_spruce_wood":1,"stripped_birch_wood":1,"stripped_jungle_wood":1,"stripped_acacia_wood":1,"stripped_cherry_wood":1,"stripped_dark_oak_wood":1,"stripped_pale_oak_wood":1,"stripped_mangrove_wood":1,"oak_leaves":1,"spruce_leaves":1,"birch_leaves":1,"jungle_leaves":1,"acacia_leaves":1,"cherry_leaves":1,"dark_oak_leaves":1,"pale_oak_leaves":1,"mangrove_leaves":1,"azalea_leaves":1,"flowering_azalea_leaves":1,"sponge":1,"wet_sponge":1,"glass":1,"lapis_ore":1,"deepslate_lapis_ore":1,"lapis_block":1,"dispenser":1,"sandstone":1,"chiseled_sandstone":1,"cut_sandstone":1,"note_block":1,"white_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"orange_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"magenta_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"light_blue_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"yellow_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"lime_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"pink_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"gray_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"light_gray_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"cyan_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"purple_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"blue_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"brown_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"green_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"red_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"black_bed":[2,3,2,3,3,2,3,2,4,5,4,5,5,4,5,4],"powered_rail":0,"detector_rail":0,"sticky_piston":[6,7,8,9,10,11,1,1,1,1,1,1],"cobweb":0,"short_grass":0,"fern":0,"dead_bush":0,"bush":0,"short_dry_grass":0,"tall_dry_grass":0,"seagrass":0,"tall_seagrass":0,"piston":[6,7,8,9,10,11,1,1,1,1,1,1],"piston_head":[12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23],"white_wool":1,"orange_wool":1,"magenta_wool":1,"light_blue_wool":1,"yellow_wool":1,"lime_wool":1,"pink_wool":1,"gray_wool":1,"light_gray_wool":1,"cyan_wool":1,"purple_wool":1,"blue_wool":1,"brown_wool":1,"green_wool":1,"red_wool":1,"black_wool":1,"moving_piston":0,"dandelion":0,"torchflower":0,"poppy":0,"blue_orchid":0,"allium":0,"azure_bluet":0,"red_tulip":0,"orange_tulip":0,"white_tulip":0,"pink_tulip":0,"oxeye_daisy":0,"cornflower":0,"wither_rose":0,"lily_of_the_valley":0,"brown_mushroom":0,"red_mushroom":0,"gold_block":1,"iron_block":1,"bricks":1,"tnt":1,"bookshelf":1,"chiseled_bookshelf":1,"acacia_shelf":[24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27],"bamboo_shelf":[24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27],"birch_shelf":[24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27],"cherry_shelf":[24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27],"crimson_shelf":[24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27],"dark_oak_shelf":[24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27],"jungle_shelf":[24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27],"mangrove_shelf":[24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27],"oak_shelf":[24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27],"pale_oak_shelf":[24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27],"spruce_shelf":[24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27],"warped_shelf":[24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27],"mossy_cobblestone":1,"obsidian":1,"torch":0,"wall_torch":0,"fire":0,"soul_fire":0,"spawner":1,"creaking_heart":1,"oak_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"chest":[52,52,53,53,54,54,52,52,54,54,53,53,52,52,55,55,56,56,52,52,56,56,55,55],"redstone_wire":0,"diamond_ore":1,"deepslate_diamond_ore":1,"diamond_block":1,"crafting_table":1,"wheat":0,"farmland":57,"furnace":1,"oak_sign":0,"spruce_sign":0,"birch_sign":0,"acacia_sign":0,"cherry_sign":0,"jungle_sign":0,"dark_oak_sign":0,"pale_oak_sign":0,"mangrove_sign":0,"bamboo_sign":0,"oak_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"ladder":[59,59,61,61,60,60,58,58],"rail":0,"cobblestone_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"oak_wall_sign":0,"spruce_wall_sign":0,"birch_wall_sign":0,"acacia_wall_sign":0,"cherry_wall_sign":0,"jungle_wall_sign":0,"dark_oak_wall_sign":0,"pale_oak_wall_sign":0,"mangrove_wall_sign":0,"bamboo_wall_sign":0,"oak_hanging_sign":0,"spruce_hanging_sign":0,"birch_hanging_sign":0,"acacia_hanging_sign":0,"cherry_hanging_sign":0,"jungle_hanging_sign":0,"dark_oak_hanging_sign":0,"pale_oak_hanging_sign":0,"crimson_hanging_sign":0,"warped_hanging_sign":0,"mangrove_hanging_sign":0,"bamboo_hanging_sign":0,"oak_wall_hanging_sign":[66,66,66,66,67,67,67,67],"spruce_wall_hanging_sign":[66,66,66,66,67,67,67,67],"birch_wall_hanging_sign":[66,66,66,66,67,67,67,67],"acacia_wall_hanging_sign":[66,66,66,66,67,67,67,67],"cherry_wall_hanging_sign":[66,66,66,66,67,67,67,67],"jungle_wall_hanging_sign":[66,66,66,66,67,67,67,67],"dark_oak_wall_hanging_sign":[66,66,66,66,67,67,67,67],"pale_oak_wall_hanging_sign":[66,66,66,66,67,67,67,67],"mangrove_wall_hanging_sign":[66,66,66,66,67,67,67,67],"crimson_wall_hanging_sign":[66,66,66,66,67,67,67,67],"warped_wall_hanging_sign":[66,66,66,66,67,67,67,67],"bamboo_wall_hanging_sign":[66,66,66,66,67,67,67,67],"lever":0,"stone_pressure_plate":0,"iron_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"oak_pressure_plate":0,"spruce_pressure_plate":0,"birch_pressure_plate":0,"jungle_pressure_plate":0,"acacia_pressure_plate":0,"cherry_pressure_plate":0,"dark_oak_pressure_plate":0,"pale_oak_pressure_plate":0,"mangrove_pressure_plate":0,"bamboo_pressure_plate":0,"redstone_ore":1,"deepslate_redstone_ore":1,"redstone_torch":0,"redstone_wall_torch":0,"stone_button":0,"snow":[0,68,69,70,71,72,10,74],"ice":1,"snow_block":1,"cactus":75,"cactus_flower":0,"clay":1,"sugar_cane":0,"jukebox":1,"oak_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"netherrack":1,"soul_sand":74,"soul_soil":1,"basalt":1,"polished_basalt":1,"soul_torch":0,"soul_wall_torch":0,"copper_torch":0,"copper_wall_torch":0,"glowstone":1,"nether_portal":0,"carved_pumpkin":1,"jack_o_lantern":1,"cake":[93,94,95,96,97,98,99],"repeater":68,"white_stained_glass":1,"orange_stained_glass":1,"magenta_stained_glass":1,"light_blue_stained_glass":1,"yellow_stained_glass":1,"lime_stained_glass":1,"pink_stained_glass":1,"gray_stained_glass":1,"light_gray_stained_glass":1,"cyan_stained_glass":1,"purple_stained_glass":1,"blue_stained_glass":1,"brown_stained_glass":1,"green_stained_glass":1,"red_stained_glass":1,"black_stained_glass":1,"oak_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"spruce_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"birch_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"jungle_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"acacia_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"cherry_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"dark_oak_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"pale_oak_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"mangrove_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"bamboo_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"stone_bricks":1,"mossy_stone_bricks":1,"cracked_stone_bricks":1,"chiseled_stone_bricks":1,"packed_mud":1,"mud_bricks":1,"infested_stone":1,"infested_cobblestone":1,"infested_stone_bricks":1,"infested_mossy_stone_bricks":1,"infested_cracked_stone_bricks":1,"infested_chiseled_stone_bricks":1,"brown_mushroom_block":1,"red_mushroom_block":1,"mushroom_stem":1,"iron_bars":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"copper_bars":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"exposed_copper_bars":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"weathered_copper_bars":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"oxidized_copper_bars":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"waxed_copper_bars":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"waxed_exposed_copper_bars":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"waxed_weathered_copper_bars":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"waxed_oxidized_copper_bars":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"iron_chain":[251,251,252,252,253,253],"copper_chain":[251,251,252,252,253,253],"exposed_copper_chain":[251,251,252,252,253,253],"weathered_copper_chain":[251,251,252,252,253,253],"oxidized_copper_chain":[251,251,252,252,253,253],"waxed_copper_chain":[251,251,252,252,253,253],"waxed_exposed_copper_chain":[251,251,252,252,253,253],"waxed_weathered_copper_chain":[251,251,252,252,253,253],"waxed_oxidized_copper_chain":[251,251,252,252,253,253],"glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"pumpkin":1,"melon":1,"attached_pumpkin_stem":0,"attached_melon_stem":0,"pumpkin_stem":0,"melon_stem":0,"vine":0,"glow_lichen":0,"resin_clump":0,"oak_fence_gate":[0,0,82,82,0,0,82,82,0,0,82,82,0,0,82,82,0,0,85,85,0,0,85,85,0,0,85,85,0,0,85,85],"brick_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"stone_brick_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"mud_brick_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"mycelium":1,"lily_pad":272,"resin_block":1,"resin_bricks":1,"resin_brick_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"resin_brick_slab":[273,273,71,71,1,1],"resin_brick_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"chiseled_resin_bricks":1,"nether_bricks":1,"nether_brick_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"nether_brick_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"nether_wart":0,"enchanting_table":10,"brewing_stand":453,"cauldron":454,"water_cauldron":454,"lava_cauldron":454,"powder_snow_cauldron":454,"end_portal":0,"end_portal_frame":[455,455,455,455,456,456,456,456],"end_stone":1,"dragon_egg":457,"redstone_lamp":1,"cocoa":[458,459,460,461,462,463,464,465,466,467,468,469],"sandstone_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"emerald_ore":1,"deepslate_emerald_ore":1,"ender_chest":52,"tripwire_hook":0,"tripwire":0,"emerald_block":1,"spruce_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"birch_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"jungle_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"command_block":1,"beacon":1,"cobblestone_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"mossy_cobblestone_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"flower_pot":793,"potted_torchflower":793,"potted_oak_sapling":793,"potted_spruce_sapling":793,"potted_birch_sapling":793,"potted_jungle_sapling":793,"potted_acacia_sapling":793,"potted_cherry_sapling":793,"potted_dark_oak_sapling":793,"potted_pale_oak_sapling":793,"potted_mangrove_propagule":793,"potted_fern":793,"potted_dandelion":793,"potted_poppy":793,"potted_blue_orchid":793,"potted_allium":793,"potted_azure_bluet":793,"potted_red_tulip":793,"potted_orange_tulip":793,"potted_white_tulip":793,"potted_pink_tulip":793,"potted_oxeye_daisy":793,"potted_cornflower":793,"potted_lily_of_the_valley":793,"potted_wither_rose":793,"potted_red_mushroom":793,"potted_brown_mushroom":793,"potted_dead_bush":793,"potted_cactus":793,"carrots":0,"potatoes":0,"oak_button":0,"spruce_button":0,"birch_button":0,"jungle_button":0,"acacia_button":0,"cherry_button":0,"dark_oak_button":0,"pale_oak_button":0,"mangrove_button":0,"bamboo_button":0,"skeleton_skull":794,"skeleton_wall_skull":[795,795,796,796,797,797,798,798],"wither_skeleton_skull":794,"wither_skeleton_wall_skull":[795,795,796,796,797,797,798,798],"zombie_head":794,"zombie_wall_head":[795,795,796,796,797,797,798,798],"player_head":794,"player_wall_head":[795,795,796,796,797,797,798,798],"creeper_head":794,"creeper_wall_head":[795,795,796,796,797,797,798,798],"dragon_head":794,"dragon_wall_head":[795,795,796,796,797,797,798,798],"piglin_head":799,"piglin_wall_head":[800,800,801,801,802,802,803,803],"anvil":[804,804,805,805],"chipped_anvil":[804,804,805,805],"damaged_anvil":[804,804,805,805],"trapped_chest":[52,52,53,53,54,54,52,52,54,54,53,53,52,52,55,55,56,56,52,52,56,56,55,55],"light_weighted_pressure_plate":0,"heavy_weighted_pressure_plate":0,"comparator":68,"daylight_detector":70,"redstone_block":1,"nether_quartz_ore":1,"hopper":[807,808,809,810,811,807,808,809,810,811],"quartz_block":1,"chiseled_quartz_block":1,"quartz_pillar":1,"quartz_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"activator_rail":0,"dropper":1,"white_terracotta":1,"orange_terracotta":1,"magenta_terracotta":1,"light_blue_terracotta":1,"yellow_terracotta":1,"lime_terracotta":1,"pink_terracotta":1,"gray_terracotta":1,"light_gray_terracotta":1,"cyan_terracotta":1,"purple_terracotta":1,"blue_terracotta":1,"brown_terracotta":1,"green_terracotta":1,"red_terracotta":1,"black_terracotta":1,"white_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"orange_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"magenta_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"light_blue_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"yellow_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"lime_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"pink_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"gray_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"light_gray_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"cyan_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"purple_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"blue_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"brown_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"green_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"red_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"black_stained_glass_pane":[107,108,107,108,109,110,109,110,111,112,111,112,113,114,113,114,115,116,115,116,117,118,117,118,119,120,119,120,121,122,121,122],"acacia_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"cherry_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"dark_oak_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"pale_oak_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"mangrove_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"bamboo_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"bamboo_mosaic_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"slime_block":1,"barrier":1,"light":0,"iron_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"prismarine":1,"prismarine_bricks":1,"dark_prismarine":1,"prismarine_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"prismarine_brick_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"dark_prismarine_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"prismarine_slab":[273,273,71,71,1,1],"prismarine_brick_slab":[273,273,71,71,1,1],"dark_prismarine_slab":[273,273,71,71,1,1],"sea_lantern":1,"hay_block":1,"white_carpet":1068,"orange_carpet":1068,"magenta_carpet":1068,"light_blue_carpet":1068,"yellow_carpet":1068,"lime_carpet":1068,"pink_carpet":1068,"gray_carpet":1068,"light_gray_carpet":1068,"cyan_carpet":1068,"purple_carpet":1068,"blue_carpet":1068,"brown_carpet":1068,"green_carpet":1068,"red_carpet":1068,"black_carpet":1068,"terracotta":1,"coal_block":1,"packed_ice":1,"sunflower":0,"lilac":0,"rose_bush":0,"peony":0,"tall_grass":0,"large_fern":0,"white_banner":0,"orange_banner":0,"magenta_banner":0,"light_blue_banner":0,"yellow_banner":0,"lime_banner":0,"pink_banner":0,"gray_banner":0,"light_gray_banner":0,"cyan_banner":0,"purple_banner":0,"blue_banner":0,"brown_banner":0,"green_banner":0,"red_banner":0,"black_banner":0,"white_wall_banner":0,"orange_wall_banner":0,"magenta_wall_banner":0,"light_blue_wall_banner":0,"yellow_wall_banner":0,"lime_wall_banner":0,"pink_wall_banner":0,"gray_wall_banner":0,"light_gray_wall_banner":0,"cyan_wall_banner":0,"purple_wall_banner":0,"blue_wall_banner":0,"brown_wall_banner":0,"green_wall_banner":0,"red_wall_banner":0,"black_wall_banner":0,"red_sandstone":1,"chiseled_red_sandstone":1,"cut_red_sandstone":1,"red_sandstone_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"oak_slab":[273,273,71,71,1,1],"spruce_slab":[273,273,71,71,1,1],"birch_slab":[273,273,71,71,1,1],"jungle_slab":[273,273,71,71,1,1],"acacia_slab":[273,273,71,71,1,1],"cherry_slab":[273,273,71,71,1,1],"dark_oak_slab":[273,273,71,71,1,1],"pale_oak_slab":[273,273,71,71,1,1],"mangrove_slab":[273,273,71,71,1,1],"bamboo_slab":[273,273,71,71,1,1],"bamboo_mosaic_slab":[273,273,71,71,1,1],"stone_slab":[273,273,71,71,1,1],"smooth_stone_slab":[273,273,71,71,1,1],"sandstone_slab":[273,273,71,71,1,1],"cut_sandstone_slab":[273,273,71,71,1,1],"petrified_oak_slab":[273,273,71,71,1,1],"cobblestone_slab":[273,273,71,71,1,1],"brick_slab":[273,273,71,71,1,1],"stone_brick_slab":[273,273,71,71,1,1],"mud_brick_slab":[273,273,71,71,1,1],"nether_brick_slab":[273,273,71,71,1,1],"quartz_slab":[273,273,71,71,1,1],"red_sandstone_slab":[273,273,71,71,1,1],"cut_red_sandstone_slab":[273,273,71,71,1,1],"purpur_slab":[273,273,71,71,1,1],"smooth_stone":1,"smooth_sandstone":1,"smooth_quartz":1,"smooth_red_sandstone":1,"spruce_fence_gate":[0,0,82,82,0,0,82,82,0,0,82,82,0,0,82,82,0,0,85,85,0,0,85,85,0,0,85,85,0,0,85,85],"birch_fence_gate":[0,0,82,82,0,0,82,82,0,0,82,82,0,0,82,82,0,0,85,85,0,0,85,85,0,0,85,85,0,0,85,85],"jungle_fence_gate":[0,0,82,82,0,0,82,82,0,0,82,82,0,0,82,82,0,0,85,85,0,0,85,85,0,0,85,85,0,0,85,85],"acacia_fence_gate":[0,0,82,82,0,0,82,82,0,0,82,82,0,0,82,82,0,0,85,85,0,0,85,85,0,0,85,85,0,0,85,85],"cherry_fence_gate":[0,0,82,82,0,0,82,82,0,0,82,82,0,0,82,82,0,0,85,85,0,0,85,85,0,0,85,85,0,0,85,85],"dark_oak_fence_gate":[0,0,82,82,0,0,82,82,0,0,82,82,0,0,82,82,0,0,85,85,0,0,85,85,0,0,85,85,0,0,85,85],"pale_oak_fence_gate":[0,0,82,82,0,0,82,82,0,0,82,82,0,0,82,82,0,0,85,85,0,0,85,85,0,0,85,85,0,0,85,85],"mangrove_fence_gate":[0,0,82,82,0,0,82,82,0,0,82,82,0,0,82,82,0,0,85,85,0,0,85,85,0,0,85,85,0,0,85,85],"bamboo_fence_gate":[0,0,82,82,0,0,82,82,0,0,82,82,0,0,82,82,0,0,85,85,0,0,85,85,0,0,85,85,0,0,85,85],"spruce_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"birch_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"jungle_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"acacia_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"cherry_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"dark_oak_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"pale_oak_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"mangrove_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"bamboo_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"spruce_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"birch_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"jungle_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"acacia_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"cherry_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"dark_oak_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"pale_oak_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"mangrove_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"bamboo_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"end_rod":[1213,1214,1213,1214,1215,1215],"chorus_plant":[1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279],"chorus_flower":1,"purpur_block":1,"purpur_pillar":1,"purpur_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"end_stone_bricks":1,"torchflower_crop":0,"pitcher_crop":[0,1280,0,1281,0,1281,0,1281,0,1281],"pitcher_plant":0,"beetroots":0,"dirt_path":57,"end_gateway":0,"repeating_command_block":1,"chain_command_block":1,"frosted_ice":1,"magma_block":1,"nether_wart_block":1,"red_nether_bricks":1,"bone_block":1,"structure_void":0,"observer":1,"shulker_box":1,"white_shulker_box":1,"orange_shulker_box":1,"magenta_shulker_box":1,"light_blue_shulker_box":1,"yellow_shulker_box":1,"lime_shulker_box":1,"pink_shulker_box":1,"gray_shulker_box":1,"light_gray_shulker_box":1,"cyan_shulker_box":1,"purple_shulker_box":1,"blue_shulker_box":1,"brown_shulker_box":1,"green_shulker_box":1,"red_shulker_box":1,"black_shulker_box":1,"white_glazed_terracotta":1,"orange_glazed_terracotta":1,"magenta_glazed_terracotta":1,"light_blue_glazed_terracotta":1,"yellow_glazed_terracotta":1,"lime_glazed_terracotta":1,"pink_glazed_terracotta":1,"gray_glazed_terracotta":1,"light_gray_glazed_terracotta":1,"cyan_glazed_terracotta":1,"purple_glazed_terracotta":1,"blue_glazed_terracotta":1,"brown_glazed_terracotta":1,"green_glazed_terracotta":1,"red_glazed_terracotta":1,"black_glazed_terracotta":1,"white_concrete":1,"orange_concrete":1,"magenta_concrete":1,"light_blue_concrete":1,"yellow_concrete":1,"lime_concrete":1,"pink_concrete":1,"gray_concrete":1,"light_gray_concrete":1,"cyan_concrete":1,"purple_concrete":1,"blue_concrete":1,"brown_concrete":1,"green_concrete":1,"red_concrete":1,"black_concrete":1,"white_concrete_powder":1,"orange_concrete_powder":1,"magenta_concrete_powder":1,"light_blue_concrete_powder":1,"yellow_concrete_powder":1,"lime_concrete_powder":1,"pink_concrete_powder":1,"gray_concrete_powder":1,"light_gray_concrete_powder":1,"cyan_concrete_powder":1,"purple_concrete_powder":1,"blue_concrete_powder":1,"brown_concrete_powder":1,"green_concrete_powder":1,"red_concrete_powder":1,"black_concrete_powder":1,"kelp":0,"kelp_plant":0,"dried_kelp_block":1,"turtle_egg":[1283,1283,1283,1284,1284,1284,1284,1284,1284,1284,1284,1284],"sniffer_egg":1285,"dried_ghast":1286,"dead_tube_coral_block":1,"dead_brain_coral_block":1,"dead_bubble_coral_block":1,"dead_fire_coral_block":1,"dead_horn_coral_block":1,"tube_coral_block":1,"brain_coral_block":1,"bubble_coral_block":1,"fire_coral_block":1,"horn_coral_block":1,"dead_tube_coral":0,"dead_brain_coral":0,"dead_bubble_coral":0,"dead_fire_coral":0,"dead_horn_coral":0,"tube_coral":0,"brain_coral":0,"bubble_coral":0,"fire_coral":0,"horn_coral":0,"dead_tube_coral_fan":0,"dead_brain_coral_fan":0,"dead_bubble_coral_fan":0,"dead_fire_coral_fan":0,"dead_horn_coral_fan":0,"tube_coral_fan":0,"brain_coral_fan":0,"bubble_coral_fan":0,"fire_coral_fan":0,"horn_coral_fan":0,"dead_tube_coral_wall_fan":0,"dead_brain_coral_wall_fan":0,"dead_bubble_coral_wall_fan":0,"dead_fire_coral_wall_fan":0,"dead_horn_coral_wall_fan":0,"tube_coral_wall_fan":0,"brain_coral_wall_fan":0,"bubble_coral_wall_fan":0,"fire_coral_wall_fan":0,"horn_coral_wall_fan":0,"sea_pickle":[1287,1287,1288,1288,1289,1289,1290,1290],"blue_ice":1,"conduit":1291,"bamboo_sapling":0,"bamboo":[1292,1292,1292,1292,1292,1292,1292,1292,1292,1292,1292,1292],"potted_bamboo":793,"void_air":0,"cave_air":0,"bubble_column":0,"polished_granite_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"smooth_red_sandstone_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"mossy_stone_brick_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"polished_diorite_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"mossy_cobblestone_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"end_stone_brick_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"stone_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"smooth_sandstone_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"smooth_quartz_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"granite_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"andesite_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"red_nether_brick_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"polished_andesite_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"diorite_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"polished_granite_slab":[273,273,71,71,1,1],"smooth_red_sandstone_slab":[273,273,71,71,1,1],"mossy_stone_brick_slab":[273,273,71,71,1,1],"polished_diorite_slab":[273,273,71,71,1,1],"mossy_cobblestone_slab":[273,273,71,71,1,1],"end_stone_brick_slab":[273,273,71,71,1,1],"smooth_sandstone_slab":[273,273,71,71,1,1],"smooth_quartz_slab":[273,273,71,71,1,1],"granite_slab":[273,273,71,71,1,1],"andesite_slab":[273,273,71,71,1,1],"red_nether_brick_slab":[273,273,71,71,1,1],"polished_andesite_slab":[273,273,71,71,1,1],"diorite_slab":[273,273,71,71,1,1],"brick_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"prismarine_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"red_sandstone_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"mossy_stone_brick_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"granite_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"stone_brick_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"mud_brick_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"nether_brick_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"andesite_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"red_nether_brick_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"sandstone_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"end_stone_brick_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"diorite_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"scaffolding":3397,"loom":1,"barrel":1,"smoker":1,"blast_furnace":1,"cartography_table":1,"fletching_table":1,"grindstone":[3398,3398,3400,3400,3402,3403,3404,3405,3406,3406,3408,3408],"lectern":3410,"smithing_table":1,"stonecutter":3411,"bell":[3412,3412,3412,3412,3413,3413,3413,3413,3414,3414,3414,3414,3414,3414,3414,3414,3415,3415,3416,3416,3417,3417,3418,3418,3419,3419,3419,3419,3420,3420,3420,3420],"lantern":[3421,3421,3422,3422],"soul_lantern":[3421,3421,3422,3422],"copper_lantern":[3421,3421,3422,3422],"exposed_copper_lantern":[3421,3421,3422,3422],"weathered_copper_lantern":[3421,3421,3422,3422],"oxidized_copper_lantern":[3421,3421,3422,3422],"waxed_copper_lantern":[3421,3421,3422,3422],"waxed_exposed_copper_lantern":[3421,3421,3422,3422],"waxed_weathered_copper_lantern":[3421,3421,3422,3422],"waxed_oxidized_copper_lantern":[3421,3421,3422,3422],"campfire":3423,"soul_campfire":3423,"sweet_berry_bush":0,"warped_stem":1,"stripped_warped_stem":1,"warped_hyphae":1,"stripped_warped_hyphae":1,"warped_nylium":1,"warped_fungus":0,"warped_wart_block":1,"warped_roots":0,"nether_sprouts":0,"crimson_stem":1,"stripped_crimson_stem":1,"crimson_hyphae":1,"stripped_crimson_hyphae":1,"crimson_nylium":1,"crimson_fungus":0,"shroomlight":1,"weeping_vines":0,"weeping_vines_plant":0,"twisting_vines":0,"twisting_vines_plant":0,"crimson_roots":0,"crimson_planks":1,"warped_planks":1,"crimson_slab":[273,273,71,71,1,1],"warped_slab":[273,273,71,71,1,1],"crimson_pressure_plate":0,"warped_pressure_plate":0,"crimson_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"warped_fence":[76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91],"crimson_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"warped_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"crimson_fence_gate":[0,0,82,82,0,0,82,82,0,0,82,82,0,0,82,82,0,0,85,85,0,0,85,85,0,0,85,85,0,0,85,85],"warped_fence_gate":[0,0,82,82,0,0,82,82,0,0,82,82,0,0,82,82,0,0,85,85,0,0,85,85,0,0,85,85,0,0,85,85],"crimson_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"warped_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"crimson_button":0,"warped_button":0,"crimson_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"warped_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"crimson_sign":0,"warped_sign":0,"crimson_wall_sign":0,"warped_wall_sign":0,"structure_block":1,"jigsaw":1,"test_block":1,"test_instance_block":1,"composter":3456,"target":1,"bee_nest":1,"beehive":1,"honey_block":75,"honeycomb_block":1,"netherite_block":1,"ancient_debris":1,"crying_obsidian":1,"respawn_anchor":1,"potted_crimson_fungus":793,"potted_warped_fungus":793,"potted_crimson_roots":793,"potted_warped_roots":793,"lodestone":1,"blackstone":1,"blackstone_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"blackstone_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"blackstone_slab":[273,273,71,71,1,1],"polished_blackstone":1,"polished_blackstone_bricks":1,"cracked_polished_blackstone_bricks":1,"chiseled_polished_blackstone":1,"polished_blackstone_brick_slab":[273,273,71,71,1,1],"polished_blackstone_brick_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"polished_blackstone_brick_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"gilded_blackstone":1,"polished_blackstone_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"polished_blackstone_slab":[273,273,71,71,1,1],"polished_blackstone_pressure_plate":0,"polished_blackstone_button":0,"polished_blackstone_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"chiseled_nether_bricks":1,"cracked_nether_bricks":1,"quartz_bricks":1,"candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"white_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"orange_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"magenta_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"light_blue_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"yellow_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"lime_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"pink_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"gray_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"light_gray_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"cyan_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"purple_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"blue_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"brown_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"green_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"red_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"black_candle":[3941,3941,3941,3941,3942,3942,3942,3942,3943,3943,3943,3943,3944,3944,3944,3944],"candle_cake":3945,"white_candle_cake":3945,"orange_candle_cake":3945,"magenta_candle_cake":3945,"light_blue_candle_cake":3945,"yellow_candle_cake":3945,"lime_candle_cake":3945,"pink_candle_cake":3945,"gray_candle_cake":3945,"light_gray_candle_cake":3945,"cyan_candle_cake":3945,"purple_candle_cake":3945,"blue_candle_cake":3945,"brown_candle_cake":3945,"green_candle_cake":3945,"red_candle_cake":3945,"black_candle_cake":3945,"amethyst_block":1,"budding_amethyst":1,"amethyst_cluster":[3946,3946,3947,3947,3948,3948,3949,3949,3950,3950,3951,3951],"large_amethyst_bud":[3952,3952,3953,3953,3954,3954,3955,3955,3956,3956,3957,3957],"medium_amethyst_bud":[3958,3958,3959,3959,3960,3960,3961,3961,3962,3962,3963,3963],"small_amethyst_bud":[3964,3964,3965,3965,3966,3966,3967,3967,3968,3968,3969,3969],"tuff":1,"tuff_slab":[273,273,71,71,1,1],"tuff_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"tuff_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"polished_tuff":1,"polished_tuff_slab":[273,273,71,71,1,1],"polished_tuff_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"polished_tuff_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"chiseled_tuff":1,"tuff_bricks":1,"tuff_brick_slab":[273,273,71,71,1,1],"tuff_brick_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"tuff_brick_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"chiseled_tuff_bricks":1,"calcite":1,"tinted_glass":1,"powder_snow":0,"sculk_sensor":71,"calibrated_sculk_sensor":71,"sculk":1,"sculk_vein":0,"sculk_catalyst":1,"sculk_shrieker":71,"copper_block":1,"exposed_copper":1,"weathered_copper":1,"oxidized_copper":1,"copper_ore":1,"deepslate_copper_ore":1,"oxidized_cut_copper":1,"weathered_cut_copper":1,"exposed_cut_copper":1,"cut_copper":1,"oxidized_chiseled_copper":1,"weathered_chiseled_copper":1,"exposed_chiseled_copper":1,"chiseled_copper":1,"waxed_oxidized_chiseled_copper":1,"waxed_weathered_chiseled_copper":1,"waxed_exposed_chiseled_copper":1,"waxed_chiseled_copper":1,"oxidized_cut_copper_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"weathered_cut_copper_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"exposed_cut_copper_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"cut_copper_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"oxidized_cut_copper_slab":[273,273,71,71,1,1],"weathered_cut_copper_slab":[273,273,71,71,1,1],"exposed_cut_copper_slab":[273,273,71,71,1,1],"cut_copper_slab":[273,273,71,71,1,1],"waxed_copper_block":1,"waxed_weathered_copper":1,"waxed_exposed_copper":1,"waxed_oxidized_copper":1,"waxed_oxidized_cut_copper":1,"waxed_weathered_cut_copper":1,"waxed_exposed_cut_copper":1,"waxed_cut_copper":1,"waxed_oxidized_cut_copper_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"waxed_weathered_cut_copper_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"waxed_exposed_cut_copper_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"waxed_cut_copper_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"waxed_oxidized_cut_copper_slab":[273,273,71,71,1,1],"waxed_weathered_cut_copper_slab":[273,273,71,71,1,1],"waxed_exposed_cut_copper_slab":[273,273,71,71,1,1],"waxed_cut_copper_slab":[273,273,71,71,1,1],"copper_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"exposed_copper_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"oxidized_copper_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"weathered_copper_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"waxed_copper_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"waxed_exposed_copper_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"waxed_oxidized_copper_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"waxed_weathered_copper_door":[58,58,59,59,60,60,59,59,58,58,59,59,60,60,59,59,60,60,61,61,58,58,61,61,60,60,61,61,58,58,61,61,59,59,60,60,61,61,60,60,59,59,60,60,61,61,60,60,61,61,58,58,59,59,58,58,61,61,58,58,59,59,58,58],"copper_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"exposed_copper_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"oxidized_copper_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"weathered_copper_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"waxed_copper_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"waxed_exposed_copper_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"waxed_oxidized_copper_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"waxed_weathered_copper_trapdoor":[59,59,59,59,102,102,102,102,59,59,59,59,103,103,103,103,61,61,61,61,102,102,102,102,61,61,61,61,103,103,103,103,60,60,60,60,102,102,102,102,60,60,60,60,103,103,103,103,58,58,58,58,102,102,102,102,58,58,58,58,103,103,103,103],"copper_grate":1,"exposed_copper_grate":1,"weathered_copper_grate":1,"oxidized_copper_grate":1,"waxed_copper_grate":1,"waxed_exposed_copper_grate":1,"waxed_weathered_copper_grate":1,"waxed_oxidized_copper_grate":1,"copper_bulb":1,"exposed_copper_bulb":1,"weathered_copper_bulb":1,"oxidized_copper_bulb":1,"waxed_copper_bulb":1,"waxed_exposed_copper_bulb":1,"waxed_weathered_copper_bulb":1,"waxed_oxidized_copper_bulb":1,"copper_chest":[52,52,53,53,54,54,52,52,54,54,53,53,52,52,55,55,56,56,52,52,56,56,55,55],"exposed_copper_chest":[52,52,53,53,54,54,52,52,54,54,53,53,52,52,55,55,56,56,52,52,56,56,55,55],"weathered_copper_chest":[52,52,53,53,54,54,52,52,54,54,53,53,52,52,55,55,56,56,52,52,56,56,55,55],"oxidized_copper_chest":[52,52,53,53,54,54,52,52,54,54,53,53,52,52,55,55,56,56,52,52,56,56,55,55],"waxed_copper_chest":[52,52,53,53,54,54,52,52,54,54,53,53,52,52,55,55,56,56,52,52,56,56,55,55],"waxed_exposed_copper_chest":[52,52,53,53,54,54,52,52,54,54,53,53,52,52,55,55,56,56,52,52,56,56,55,55],"waxed_weathered_copper_chest":[52,52,53,53,54,54,52,52,54,54,53,53,52,52,55,55,56,56,52,52,56,56,55,55],"waxed_oxidized_copper_chest":[52,52,53,53,54,54,52,52,54,54,53,53,52,52,55,55,56,56,52,52,56,56,55,55],"copper_golem_statue":4455,"exposed_copper_golem_statue":4455,"weathered_copper_golem_statue":4455,"oxidized_copper_golem_statue":4455,"waxed_copper_golem_statue":4455,"waxed_exposed_copper_golem_statue":4455,"waxed_weathered_copper_golem_statue":4455,"waxed_oxidized_copper_golem_statue":4455,"lightning_rod":[1213,1213,1213,1213,1214,1214,1214,1214,1213,1213,1213,1213,1214,1214,1214,1214,1215,1215,1215,1215,1215,1215,1215,1215],"exposed_lightning_rod":[1213,1213,1213,1213,1214,1214,1214,1214,1213,1213,1213,1213,1214,1214,1214,1214,1215,1215,1215,1215,1215,1215,1215,1215],"weathered_lightning_rod":[1213,1213,1213,1213,1214,1214,1214,1214,1213,1213,1213,1213,1214,1214,1214,1214,1215,1215,1215,1215,1215,1215,1215,1215],"oxidized_lightning_rod":[1213,1213,1213,1213,1214,1214,1214,1214,1213,1213,1213,1213,1214,1214,1214,1214,1215,1215,1215,1215,1215,1215,1215,1215],"waxed_lightning_rod":[1213,1213,1213,1213,1214,1214,1214,1214,1213,1213,1213,1213,1214,1214,1214,1214,1215,1215,1215,1215,1215,1215,1215,1215],"waxed_exposed_lightning_rod":[1213,1213,1213,1213,1214,1214,1214,1214,1213,1213,1213,1213,1214,1214,1214,1214,1215,1215,1215,1215,1215,1215,1215,1215],"waxed_weathered_lightning_rod":[1213,1213,1213,1213,1214,1214,1214,1214,1213,1213,1213,1213,1214,1214,1214,1214,1215,1215,1215,1215,1215,1215,1215,1215],"waxed_oxidized_lightning_rod":[1213,1213,1213,1213,1214,1214,1214,1214,1213,1213,1213,1213,1214,1214,1214,1214,1215,1215,1215,1215,1215,1215,1215,1215],"pointed_dripstone":[4456,4456,4456,4456,4460,4460,4462,4462,4464,4464,4464,4464,4468,4468,4468,4468,4472,4472,4472,4472],"dripstone_block":1,"cave_vines":0,"cave_vines_plant":0,"spore_blossom":0,"azalea":4476,"flowering_azalea":4476,"moss_carpet":1068,"pink_petals":0,"wildflowers":0,"leaf_litter":0,"moss_block":1,"big_dripleaf":[4477,4477,4477,4477,4479,4479,0,0,4477,4477,4477,4477,4479,4479,0,0,4477,4477,4477,4477,4479,4479,0,0,4477,4477,4477,4477,4479,4479,0,0],"big_dripleaf_stem":0,"small_dripleaf":0,"hanging_roots":0,"rooted_dirt":1,"mud":74,"deepslate":1,"cobbled_deepslate":1,"cobbled_deepslate_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"cobbled_deepslate_slab":[273,273,71,71,1,1],"cobbled_deepslate_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"polished_deepslate":1,"polished_deepslate_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"polished_deepslate_slab":[273,273,71,71,1,1],"polished_deepslate_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"deepslate_tiles":1,"deepslate_tile_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"deepslate_tile_slab":[273,273,71,71,1,1],"deepslate_tile_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"deepslate_bricks":1,"deepslate_brick_stairs":[28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,40,40,29,29,42,42,31,31,49,49,45,45,34,34,47,47,36,36,50,50,30,30,39,39,32,32,41,41,51,51,35,35,44,44,37,37,46,46],"deepslate_brick_slab":[273,273,71,71,1,1],"deepslate_brick_wall":[275,276,276,275,276,276,0,278,278,0,278,278,280,281,281,280,281,281,283,284,284,283,284,284,280,281,281,280,281,281,283,284,284,283,284,284,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,292,293,293,292,293,293,295,296,296,295,296,296,298,299,299,298,299,299,301,302,302,301,302,302,298,299,299,298,299,299,301,302,302,301,302,302,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,328,329,329,328,329,329,331,332,332,331,332,332,334,335,335,334,335,335,337,338,338,337,338,338,334,335,335,334,335,335,337,338,338,337,338,338,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356,346,347,347,346,347,347,349,350,350,349,350,350,352,353,353,352,353,353,355,356,356,355,356,356,352,353,353,352,353,353,355,356,356,355,356,356],"chiseled_deepslate":1,"cracked_deepslate_bricks":1,"cracked_deepslate_tiles":1,"infested_deepslate":1,"smooth_basalt":1,"raw_iron_block":1,"raw_copper_block":1,"raw_gold_block":1,"potted_azalea_bush":793,"potted_flowering_azalea_bush":793,"ochre_froglight":1,"verdant_froglight":1,"pearlescent_froglight":1,"frogspawn":0,"reinforced_deepslate":1,"decorated_pot":457,"crafter":1,"trial_spawner":1,"vault":1,"heavy_core":794,"pale_moss_block":1,"pale_moss_carpet":[1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,1068,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"pale_hanging_moss":0,"open_eyeblossom":0,"closed_eyeblossom":0,"potted_open_eyeblossom":793,"potted_closed_eyeblossom":793,"firefly_bush":0},"shapes":{"0":[],"1":[[0,0,0,1,1,1]],"2":[[0,0,0,0.1875,0.5625,0.1875],[0.8125,0,0,1,0.5625,0.1875],[0,0.1875,0.1875,1,0.5625,1],[0.1875,0.1875,0,0.8125,0.5625,0.1875]],"3":[[0,0,0.8125,0.1875,0.5625,1],[0.8125,0,0.8125,1,0.5625,1],[0,0.1875,0,1,0.5625,0.8125],[0.1875,0.1875,0.8125,0.8125,0.5625,1]],"4":[[0,0,0,0.1875,0.5625,0.1875],[0,0,0.8125,0.1875,0.5625,1],[0,0.1875,0.1875,1,0.5625,0.8125],[0.1875,0.1875,0,1,0.5625,0.1875],[0.1875,0.1875,0.8125,1,0.5625,1]],"5":[[0.8125,0,0,1,0.5625,0.1875],[0.8125,0,0.8125,1,0.5625,1],[0,0.1875,0,0.8125,0.5625,1],[0.8125,0.1875,0.1875,1,0.5625,0.8125]],"6":[[0,0,0.25,1,1,1]],"7":[[0,0,0,0.75,1,1]],"8":[[0,0,0,1,1,0.75]],"9":[[0.25,0,0,1,1,1]],"10":[[0,0,0,1,0.75,1]],"11":[[0,0.25,0,1,1,1]],"12":[[0,0,0,1,1,0.25],[0.375,0.375,0.25,0.625,0.625,1]],"13":[[0,0,0,1,1,0.25],[0.375,0.375,0.25,0.625,0.625,1.25]],"14":[[0.75,0,0,1,1,1],[0,0.375,0.375,0.75,0.625,0.625]],"15":[[0.75,0,0,1,1,1],[-0.25,0.375,0.375,0.75,0.625,0.625]],"16":[[0,0,0.75,1,1,1],[0.375,0.375,0,0.625,0.625,0.75]],"17":[[0,0,0.75,1,1,1],[0.375,0.375,-0.25,0.625,0.625,0.75]],"18":[[0,0,0,0.25,1,1],[0.25,0.375,0.375,1,0.625,0.625]],"19":[[0,0,0,0.25,1,1],[0.25,0.375,0.375,1.25,0.625,0.625]],"20":[[0.375,0,0.375,0.625,1,0.625],[0,0.75,0,0.375,1,1],[0.375,0.75,0,1,1,0.375],[0.375,0.75,0.625,1,1,1],[0.625,0.75,0.375,1,1,0.625]],"21":[[0.375,-0.25,0.375,0.625,1,0.625],[0,0.75,0,0.375,1,1],[0.375,0.75,0,1,1,0.375],[0.375,0.75,0.625,1,1,1],[0.625,0.75,0.375,1,1,0.625]],"22":[[0,0,0,1,0.25,1],[0.375,0.25,0.375,0.625,1,0.625]],"23":[[0,0,0,1,0.25,1],[0.375,0.25,0.375,0.625,1.25,0.625]],"24":[[0,0,0.6875,1,0.25,1],[0,0.25,0.8125,1,1,1],[0,0.75,0.6875,1,1,0.8125]],"25":[[0,0,0,1,0.25,0.3125],[0,0.25,0,1,1,0.1875],[0,0.75,0.1875,1,1,0.3125]],"26":[[0.6875,0,0,1,0.25,1],[0.8125,0.25,0,1,1,1],[0.6875,0.75,0,0.8125,1,1]],"27":[[0,0,0,0.3125,0.25,1],[0,0.25,0,0.1875,1,1],[0.1875,0.75,0,0.3125,1,1]],"28":[[0,0,0,1,1,0.5],[0,0.5,0.5,1,1,1]],"29":[[0,0,0,0.5,1,1],[0.5,0,0,1,1,0.5],[0.5,0.5,0.5,1,1,1]],"30":[[0,0,0,1,1,0.5],[0.5,0,0.5,1,1,1],[0,0.5,0.5,0.5,1,1]],"31":[[0,0,0,0.5,1,0.5],[0,0.5,0.5,1,1,1],[0.5,0.5,0,1,1,0.5]],"32":[[0.5,0,0,1,1,0.5],[0,0.5,0,0.5,1,1],[0.5,0.5,0.5,1,1,1]],"33":[[0,0,0,1,0.5,1],[0,0.5,0,1,1,0.5]],"34":[[0,0,0,1,0.5,1],[0,0.5,0,0.5,1,1],[0.5,0.5,0,1,1,0.5]],"35":[[0,0,0,1,0.5,1],[0,0.5,0,1,1,0.5],[0.5,0.5,0.5,1,1,1]],"36":[[0,0,0,1,0.5,1],[0,0.5,0,0.5,1,0.5]],"37":[[0,0,0,1,0.5,1],[0.5,0.5,0,1,1,0.5]],"38":[[0,0,0.5,1,1,1],[0,0.5,0,1,1,0.5]],"39":[[0,0,0.5,1,1,1],[0.5,0,0,1,1,0.5],[0,0.5,0,0.5,1,0.5]],"40":[[0,0,0,0.5,1,1],[0.5,0,0.5,1,1,1],[0.5,0.5,0,1,1,0.5]],"41":[[0.5,0,0.5,1,1,1],[0,0.5,0,0.5,1,1],[0.5,0.5,0,1,1,0.5]],"42":[[0,0,0.5,0.5,1,1],[0,0.5,0,1,1,0.5],[0.5,0.5,0.5,1,1,1]],"43":[[0,0,0,1,0.5,1],[0,0.5,0.5,1,1,1]],"44":[[0,0,0,1,0.5,1],[0,0.5,0.5,1,1,1],[0.5,0.5,0,1,1,0.5]],"45":[[0,0,0,1,0.5,1],[0,0.5,0,0.5,1,1],[0.5,0.5,0.5,1,1,1]],"46":[[0,0,0,1,0.5,1],[0.5,0.5,0.5,1,1,1]],"47":[[0,0,0,1,0.5,1],[0,0.5,0.5,0.5,1,1]],"48":[[0,0,0,0.5,1,1],[0.5,0.5,0,1,1,1]],"49":[[0,0,0,1,0.5,1],[0,0.5,0,0.5,1,1]],"50":[[0.5,0,0,1,1,1],[0,0.5,0,0.5,1,1]],"51":[[0,0,0,1,0.5,1],[0.5,0.5,0,1,1,1]],"52":[[0.0625,0,0.0625,0.9375,0.875,0.9375]],"53":[[0.0625,0,0.0625,1,0.875,0.9375]],"54":[[0,0,0.0625,0.9375,0.875,0.9375]],"55":[[0.0625,0,0,0.9375,0.875,0.9375]],"56":[[0.0625,0,0.0625,0.9375,0.875,1]],"57":[[0,0,0,1,0.9375,1]],"58":[[0,0,0,0.1875,1,1]],"59":[[0,0,0.8125,1,1,1]],"60":[[0.8125,0,0,1,1,1]],"61":[[0,0,0,1,1,0.1875]],"66":[[0,0.875,0.375,1,1,0.625]],"67":[[0.375,0.875,0,0.625,1,1]],"68":[[0,0,0,1,0.125,1]],"69":[[0,0,0,1,0.25,1]],"70":[[0,0,0,1,0.375,1]],"71":[[0,0,0,1,0.5,1]],"72":[[0,0,0,1,0.625,1]],"74":[[0,0,0,1,0.875,1]],"75":[[0.0625,0,0.0625,0.9375,0.9375,0.9375]],"76":[[0,0,0.375,1,1.5,0.625],[0.375,0,0,0.625,1.5,0.375],[0.375,0,0.625,0.625,1.5,1]],"77":[[0.375,0,0,0.625,1.5,1],[0.625,0,0.375,1,1.5,0.625]],"78":[[0,0,0.375,1,1.5,0.625],[0.375,0,0,0.625,1.5,0.375]],"79":[[0.375,0,0,0.625,1.5,0.625],[0.625,0,0.375,1,1.5,0.625]],"80":[[0,0,0.375,1,1.5,0.625],[0.375,0,0.625,0.625,1.5,1]],"81":[[0.375,0,0.375,0.625,1.5,1],[0.625,0,0.375,1,1.5,0.625]],"82":[[0,0,0.375,1,1.5,0.625]],"83":[[0.375,0,0.375,1,1.5,0.625]],"84":[[0,0,0.375,0.625,1.5,0.625],[0.375,0,0,0.625,1.5,0.375],[0.375,0,0.625,0.625,1.5,1]],"85":[[0.375,0,0,0.625,1.5,1]],"86":[[0,0,0.375,0.625,1.5,0.625],[0.375,0,0,0.625,1.5,0.375]],"87":[[0.375,0,0,0.625,1.5,0.625]],"88":[[0,0,0.375,0.625,1.5,0.625],[0.375,0,0.625,0.625,1.5,1]],"89":[[0.375,0,0.375,0.625,1.5,1]],"90":[[0,0,0.375,0.625,1.5,0.625]],"91":[[0.375,0,0.375,0.625,1.5,0.625]],"93":[[0.0625,0,0.0625,0.9375,0.5,0.9375]],"94":[[0.1875,0,0.0625,0.9375,0.5,0.9375]],"95":[[0.3125,0,0.0625,0.9375,0.5,0.9375]],"96":[[0.4375,0,0.0625,0.9375,0.5,0.9375]],"97":[[0.5625,0,0.0625,0.9375,0.5,0.9375]],"98":[[0.6875,0,0.0625,0.9375,0.5,0.9375]],"99":[[0.8125,0,0.0625,0.9375,0.5,0.9375]],"102":[[0,0.8125,0,1,1,1]],"103":[[0,0,0,1,0.1875,1]],"107":[[0,0,0.4375,1,1,0.5625],[0.4375,0,0,0.5625,1,0.4375],[0.4375,0,0.5625,0.5625,1,1]],"108":[[0.4375,0,0,0.5625,1,1],[0.5625,0,0.4375,1,1,0.5625]],"109":[[0,0,0.4375,1,1,0.5625],[0.4375,0,0,0.5625,1,0.4375]],"110":[[0.4375,0,0,0.5625,1,0.5625],[0.5625,0,0.4375,1,1,0.5625]],"111":[[0,0,0.4375,1,1,0.5625],[0.4375,0,0.5625,0.5625,1,1]],"112":[[0.4375,0,0.4375,0.5625,1,1],[0.5625,0,0.4375,1,1,0.5625]],"113":[[0,0,0.4375,1,1,0.5625]],"114":[[0.4375,0,0.4375,1,1,0.5625]],"115":[[0,0,0.4375,0.5625,1,0.5625],[0.4375,0,0,0.5625,1,0.4375],[0.4375,0,0.5625,0.5625,1,1]],"116":[[0.4375,0,0,0.5625,1,1]],"117":[[0,0,0.4375,0.5625,1,0.5625],[0.4375,0,0,0.5625,1,0.4375]],"118":[[0.4375,0,0,0.5625,1,0.5625]],"119":[[0,0,0.4375,0.5625,1,0.5625],[0.4375,0,0.5625,0.5625,1,1]],"120":[[0.4375,0,0.4375,0.5625,1,1]],"121":[[0,0,0.4375,0.5625,1,0.5625]],"122":[[0.4375,0,0.4375,0.5625,1,0.5625]],"251":[[0,0.40625,0.40625,1,0.59375,0.59375]],"252":[[0.40625,0,0.40625,0.59375,1,0.59375]],"253":[[0.40625,0.40625,0,0.59375,0.59375,1]],"272":[[0.0625,0,0.0625,0.9375,0.09375,0.9375]],"273":[[0,0.5,0,1,1,1]],"275":[[0.25,0,0.25,0.75,1.5,0.75]],"276":[[0,0,0.3125,0.75,1.5,0.6875],[0.25,0,0.25,0.75,1.5,0.3125],[0.25,0,0.6875,0.75,1.5,0.75]],"278":[[0,0,0.3125,0.6875,1.5,0.6875]],"280":[[0.25,0,0.25,0.75,1.5,0.75],[0.3125,0,0.75,0.6875,1.5,1]],"281":[[0,0,0.3125,0.75,1.5,0.6875],[0.25,0,0.25,0.75,1.5,0.3125],[0.25,0,0.6875,0.75,1.5,0.75],[0.3125,0,0.75,0.6875,1.5,1]],"283":[[0.3125,0,0.3125,0.6875,1.5,1]],"284":[[0,0,0.3125,0.6875,1.5,0.6875],[0.3125,0,0.6875,0.6875,1.5,1]],"292":[[0.25,0,0.25,0.75,1.5,0.75],[0.3125,0,0,0.6875,1.5,0.25]],"293":[[0,0,0.3125,0.75,1.5,0.6875],[0.25,0,0.25,0.75,1.5,0.3125],[0.25,0,0.6875,0.75,1.5,0.75],[0.3125,0,0,0.6875,1.5,0.25]],"295":[[0.3125,0,0,0.6875,1.5,0.6875]],"296":[[0,0,0.3125,0.6875,1.5,0.6875],[0.3125,0,0,0.6875,1.5,0.3125]],"298":[[0.25,0,0.25,0.75,1.5,0.75],[0.3125,0,0,0.6875,1.5,0.25],[0.3125,0,0.75,0.6875,1.5,1]],"299":[[0,0,0.3125,0.75,1.5,0.6875],[0.25,0,0.25,0.75,1.5,0.3125],[0.25,0,0.6875,0.75,1.5,0.75],[0.3125,0,0,0.6875,1.5,0.25],[0.3125,0,0.75,0.6875,1.5,1]],"301":[[0.3125,0,0,0.6875,1.5,1]],"302":[[0,0,0.3125,0.6875,1.5,0.6875],[0.3125,0,0,0.6875,1.5,0.3125],[0.3125,0,0.6875,0.6875,1.5,1]],"328":[[0.25,0,0.25,0.75,1.5,0.75],[0.75,0,0.3125,1,1.5,0.6875]],"329":[[0,0,0.3125,1,1.5,0.6875],[0.25,0,0.25,0.75,1.5,0.3125],[0.25,0,0.6875,0.75,1.5,0.75]],"331":[[0.3125,0,0.3125,1,1.5,0.6875]],"332":[[0,0,0.3125,1,1.5,0.6875]],"334":[[0.25,0,0.25,0.75,1.5,0.75],[0.3125,0,0.75,0.6875,1.5,1],[0.75,0,0.3125,1,1.5,0.6875]],"335":[[0,0,0.3125,1,1.5,0.6875],[0.25,0,0.25,0.75,1.5,0.3125],[0.25,0,0.6875,0.75,1.5,0.75],[0.3125,0,0.75,0.6875,1.5,1]],"337":[[0.3125,0,0.3125,0.6875,1.5,1],[0.6875,0,0.3125,1,1.5,0.6875]],"338":[[0,0,0.3125,1,1.5,0.6875],[0.3125,0,0.6875,0.6875,1.5,1]],"346":[[0.25,0,0.25,0.75,1.5,0.75],[0.3125,0,0,0.6875,1.5,0.25],[0.75,0,0.3125,1,1.5,0.6875]],"347":[[0,0,0.3125,1,1.5,0.6875],[0.25,0,0.25,0.75,1.5,0.3125],[0.25,0,0.6875,0.75,1.5,0.75],[0.3125,0,0,0.6875,1.5,0.25]],"349":[[0.3125,0,0,0.6875,1.5,0.6875],[0.6875,0,0.3125,1,1.5,0.6875]],"350":[[0,0,0.3125,1,1.5,0.6875],[0.3125,0,0,0.6875,1.5,0.3125]],"352":[[0.25,0,0.25,0.75,1.5,0.75],[0.3125,0,0,0.6875,1.5,0.25],[0.3125,0,0.75,0.6875,1.5,1],[0.75,0,0.3125,1,1.5,0.6875]],"353":[[0,0,0.3125,1,1.5,0.6875],[0.25,0,0.25,0.75,1.5,0.3125],[0.25,0,0.6875,0.75,1.5,0.75],[0.3125,0,0,0.6875,1.5,0.25],[0.3125,0,0.75,0.6875,1.5,1]],"355":[[0.3125,0,0,0.6875,1.5,1],[0.6875,0,0.3125,1,1.5,0.6875]],"356":[[0,0,0.3125,1,1.5,0.6875],[0.3125,0,0,0.6875,1.5,0.3125],[0.3125,0,0.6875,0.6875,1.5,1]],"453":[[0.0625,0,0.0625,0.9375,0.125,0.9375],[0.4375,0.125,0.4375,0.5625,0.875,0.5625]],"454":[[0,0,0,0.125,1,0.25],[0,0,0.75,0.125,1,1],[0.125,0,0,0.25,1,0.125],[0.125,0,0.875,0.25,1,1],[0.75,0,0,1,1,0.125],[0.75,0,0.875,1,1,1],[0.875,0,0.125,1,1,0.25],[0.875,0,0.75,1,1,0.875],[0,0.1875,0.25,1,0.25,0.75],[0.125,0.1875,0.125,0.875,0.25,0.25],[0.125,0.1875,0.75,0.875,0.25,0.875],[0.25,0.1875,0,0.75,1,0.125],[0.25,0.1875,0.875,0.75,1,1],[0,0.25,0.25,0.125,1,0.75],[0.875,0.25,0.25,1,1,0.75]],"455":[[0,0,0,1,0.8125,1],[0.25,0.8125,0.25,0.75,1,0.75]],"456":[[0,0,0,1,0.8125,1]],"457":[[0.0625,0,0.0625,0.9375,1,0.9375]],"458":[[0.375,0.4375,0.0625,0.625,0.75,0.3125]],"459":[[0.375,0.4375,0.6875,0.625,0.75,0.9375]],"460":[[0.0625,0.4375,0.375,0.3125,0.75,0.625]],"461":[[0.6875,0.4375,0.375,0.9375,0.75,0.625]],"462":[[0.3125,0.3125,0.0625,0.6875,0.75,0.4375]],"463":[[0.3125,0.3125,0.5625,0.6875,0.75,0.9375]],"464":[[0.0625,0.3125,0.3125,0.4375,0.75,0.6875]],"465":[[0.5625,0.3125,0.3125,0.9375,0.75,0.6875]],"466":[[0.25,0.1875,0.0625,0.75,0.75,0.5625]],"467":[[0.25,0.1875,0.4375,0.75,0.75,0.9375]],"468":[[0.0625,0.1875,0.25,0.5625,0.75,0.75]],"469":[[0.4375,0.1875,0.25,0.9375,0.75,0.75]],"793":[[0.3125,0,0.3125,0.6875,0.375,0.6875]],"794":[[0.25,0,0.25,0.75,0.5,0.75]],"795":[[0.25,0.25,0.5,0.75,0.75,1]],"796":[[0.25,0.25,0,0.75,0.75,0.5]],"797":[[0.5,0.25,0.25,1,0.75,0.75]],"798":[[0,0.25,0.25,0.5,0.75,0.75]],"799":[[0.1875,0,0.1875,0.8125,0.5,0.8125]],"800":[[0.1875,0.25,0.5,0.8125,0.75,1]],"801":[[0.1875,0.25,0,0.8125,0.75,0.5]],"802":[[0.5,0.25,0.1875,1,0.75,0.8125]],"803":[[0,0.25,0.1875,0.5,0.75,0.8125]],"804":[[0.125,0,0.125,0.875,0.25,0.875],[0.25,0.25,0.1875,0.75,0.3125,0.8125],[0.375,0.3125,0.25,0.625,1,0.75],[0.1875,0.625,0,0.375,1,1],[0.375,0.625,0,0.8125,1,0.25],[0.375,0.625,0.75,0.8125,1,1],[0.625,0.625,0.25,0.8125,1,0.75]],"805":[[0.125,0,0.125,0.875,0.25,0.875],[0.1875,0.25,0.25,0.8125,0.3125,0.75],[0.25,0.3125,0.375,0.75,1,0.625],[0,0.625,0.1875,0.25,1,0.8125],[0.25,0.625,0.1875,1,1,0.375],[0.25,0.625,0.625,1,1,0.8125],[0.75,0.625,0.375,1,1,0.625]],"807":[[0.375,0,0.375,0.625,0.6875,0.625],[0.25,0.25,0.25,0.375,0.6875,0.75],[0.375,0.25,0.25,0.75,0.6875,0.375],[0.375,0.25,0.625,0.75,0.6875,0.75],[0.625,0.25,0.375,0.75,0.6875,0.625],[0,0.625,0,0.25,0.6875,1],[0.25,0.625,0,1,0.6875,0.25],[0.25,0.625,0.75,1,0.6875,1],[0.75,0.625,0.25,1,0.6875,0.75],[0,0.6875,0,0.125,1,1],[0.125,0.6875,0,1,1,0.125],[0.125,0.6875,0.875,1,1,1],[0.875,0.6875,0.125,1,1,0.875]],"808":[[0.25,0.25,0.25,0.75,0.6875,0.75],[0.375,0.25,0,0.625,0.5,0.25],[0,0.625,0,0.25,0.6875,1],[0.25,0.625,0,1,0.6875,0.25],[0.25,0.625,0.75,1,0.6875,1],[0.75,0.625,0.25,1,0.6875,0.75],[0,0.6875,0,0.125,1,1],[0.125,0.6875,0,1,1,0.125],[0.125,0.6875,0.875,1,1,1],[0.875,0.6875,0.125,1,1,0.875]],"809":[[0.25,0.25,0.25,0.75,0.6875,0.75],[0.375,0.25,0.75,0.625,0.5,1],[0,0.625,0,0.25,0.6875,1],[0.25,0.625,0,1,0.6875,0.25],[0.25,0.625,0.75,1,0.6875,1],[0.75,0.625,0.25,1,0.6875,0.75],[0,0.6875,0,0.125,1,1],[0.125,0.6875,0,1,1,0.125],[0.125,0.6875,0.875,1,1,1],[0.875,0.6875,0.125,1,1,0.875]],"810":[[0,0.25,0.375,0.75,0.5,0.625],[0.25,0.25,0.25,0.75,0.6875,0.375],[0.25,0.25,0.625,0.75,0.6875,0.75],[0.25,0.5,0.375,0.75,0.6875,0.625],[0,0.625,0,0.25,0.6875,1],[0.25,0.625,0,1,0.6875,0.25],[0.25,0.625,0.75,1,0.6875,1],[0.75,0.625,0.25,1,0.6875,0.75],[0,0.6875,0,0.125,1,1],[0.125,0.6875,0,1,1,0.125],[0.125,0.6875,0.875,1,1,1],[0.875,0.6875,0.125,1,1,0.875]],"811":[[0.25,0.25,0.25,0.75,0.6875,0.75],[0.75,0.25,0.375,1,0.5,0.625],[0,0.625,0,0.25,0.6875,1],[0.25,0.625,0,1,0.6875,0.25],[0.25,0.625,0.75,1,0.6875,1],[0.75,0.625,0.25,1,0.6875,0.75],[0,0.6875,0,0.125,1,1],[0.125,0.6875,0,1,1,0.125],[0.125,0.6875,0.875,1,1,1],[0.875,0.6875,0.125,1,1,0.875]],"1068":[[0,0,0,1,0.0625,1]],"1213":[[0.375,0.375,0,0.625,0.625,1]],"1214":[[0,0.375,0.375,1,0.625,0.625]],"1215":[[0.375,0,0.375,0.625,1,0.625]],"1216":[[0.1875,0,0.1875,0.8125,1,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.1875,0.8125,0.8125,0.8125,1],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1217":[[0.1875,0,0.1875,0.8125,1,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.1875,0.8125,0.8125,0.8125,1],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1218":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.1875,0.8125,0.8125,0.8125,1],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1219":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.1875,0.8125,0.8125,0.8125,1],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1220":[[0.1875,0,0.1875,0.8125,1,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1221":[[0.1875,0,0.1875,0.8125,1,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1222":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1223":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1224":[[0.1875,0,0.1875,0.8125,1,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.1875,0.1875,0.8125,0.8125,0.8125,1],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1225":[[0.1875,0,0.1875,0.8125,1,0.8125],[0.1875,0.1875,0.8125,0.8125,0.8125,1],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1226":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.1875,0.1875,0.8125,0.8125,0.8125,1],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1227":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0.1875,0.1875,0.8125,0.8125,0.8125,1],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1228":[[0.1875,0,0.1875,0.8125,1,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1229":[[0.1875,0,0.1875,0.8125,1,0.8125],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1230":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1231":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1232":[[0.1875,0,0.1875,0.8125,1,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.1875,0.8125,0.8125,0.8125,1]],"1233":[[0.1875,0,0.1875,0.8125,1,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.1875,0.8125,0.8125,0.8125,1]],"1234":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.1875,0.8125,0.8125,0.8125,1]],"1235":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.1875,0.8125,0.8125,0.8125,1]],"1236":[[0.1875,0,0.1875,0.8125,1,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875]],"1237":[[0.1875,0,0.1875,0.8125,1,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875]],"1238":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875]],"1239":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875]],"1240":[[0.1875,0,0.1875,0.8125,1,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.1875,0.1875,0.8125,0.8125,0.8125,1]],"1241":[[0.1875,0,0.1875,0.8125,1,0.8125],[0.1875,0.1875,0.8125,0.8125,0.8125,1]],"1242":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125],[0.1875,0.1875,0.8125,0.8125,0.8125,1]],"1243":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0.1875,0.1875,0.8125,0.8125,0.8125,1]],"1244":[[0.1875,0,0.1875,0.8125,1,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125]],"1245":[[0.1875,0,0.1875,0.8125,1,0.8125]],"1246":[[0.1875,0,0.1875,0.8125,0.8125,0.8125],[0,0.1875,0.1875,0.1875,0.8125,0.8125]],"1247":[[0.1875,0,0.1875,0.8125,0.8125,0.8125]],"1248":[[0,0.1875,0.1875,1,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.1875,0.8125,0.8125,0.8125,1],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1249":[[0.1875,0.1875,0,0.8125,0.8125,1],[0.8125,0.1875,0.1875,1,0.8125,0.8125],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1250":[[0,0.1875,0.1875,1,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.1875,0.8125,0.8125,0.8125,1]],"1251":[[0.1875,0.1875,0,0.8125,0.8125,1],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1252":[[0,0.1875,0.1875,1,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1253":[[0.1875,0.1875,0,0.8125,0.8125,0.8125],[0.8125,0.1875,0.1875,1,0.8125,0.8125],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1254":[[0,0.1875,0.1875,1,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875]],"1255":[[0.1875,0.1875,0,0.8125,0.8125,0.8125],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1256":[[0,0.1875,0.1875,1,0.8125,0.8125],[0.1875,0.1875,0.8125,0.8125,0.8125,1],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1257":[[0.1875,0.1875,0.1875,0.8125,0.8125,1],[0.8125,0.1875,0.1875,1,0.8125,0.8125],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1258":[[0,0.1875,0.1875,1,0.8125,0.8125],[0.1875,0.1875,0.8125,0.8125,0.8125,1]],"1259":[[0.1875,0.1875,0.1875,0.8125,0.8125,1],[0.8125,0.1875,0.1875,1,0.8125,0.8125]],"1260":[[0,0.1875,0.1875,1,0.8125,0.8125],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1261":[[0.1875,0.1875,0.1875,1,0.8125,0.8125],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1262":[[0,0.1875,0.1875,1,0.8125,0.8125]],"1263":[[0.1875,0.1875,0.1875,1,0.8125,0.8125]],"1264":[[0,0.1875,0.1875,0.8125,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.1875,0.8125,0.8125,0.8125,1],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1265":[[0.1875,0.1875,0,0.8125,0.8125,1],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1266":[[0,0.1875,0.1875,0.8125,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.1875,0.8125,0.8125,0.8125,1]],"1267":[[0.1875,0.1875,0,0.8125,0.8125,1]],"1268":[[0,0.1875,0.1875,0.8125,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1269":[[0.1875,0.1875,0,0.8125,0.8125,0.8125],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1270":[[0,0.1875,0.1875,0.8125,0.8125,0.8125],[0.1875,0.1875,0,0.8125,0.8125,0.1875]],"1271":[[0.1875,0.1875,0,0.8125,0.8125,0.8125]],"1272":[[0,0.1875,0.1875,0.8125,0.8125,0.8125],[0.1875,0.1875,0.8125,0.8125,0.8125,1],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1273":[[0.1875,0.1875,0.1875,0.8125,0.8125,1],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1274":[[0,0.1875,0.1875,0.8125,0.8125,0.8125],[0.1875,0.1875,0.8125,0.8125,0.8125,1]],"1275":[[0.1875,0.1875,0.1875,0.8125,0.8125,1]],"1276":[[0,0.1875,0.1875,0.8125,0.8125,0.8125],[0.1875,0.8125,0.1875,0.8125,1,0.8125]],"1277":[[0.1875,0.1875,0.1875,0.8125,1,0.8125]],"1278":[[0,0.1875,0.1875,0.8125,0.8125,0.8125]],"1279":[[0.1875,0.1875,0.1875,0.8125,0.8125,0.8125]],"1280":[[0.3125,-0.0625,0.3125,0.6875,0.1875,0.6875]],"1281":[[0.1875,-0.0625,0.1875,0.8125,0.3125,0.8125]],"1283":[[0.1875,0,0.1875,0.75,0.4375,0.75]],"1284":[[0.0625,0,0.0625,0.9375,0.4375,0.9375]],"1285":[[0.0625,0,0.125,0.9375,1,0.875]],"1286":[[0.1875,0,0.1875,0.8125,0.625,0.8125]],"1287":[[0.375,0,0.375,0.625,0.375,0.625]],"1288":[[0.1875,0,0.1875,0.8125,0.375,0.8125]],"1289":[[0.125,0,0.125,0.875,0.375,0.875]],"1290":[[0.125,0,0.125,0.875,0.4375,0.875]],"1291":[[0.3125,0.3125,0.3125,0.6875,0.6875,0.6875]],"1292":[[0.15625,0,0.15625,0.34375,1,0.34375]],"3397":[[0,0,0,0.125,1,0.125],[0,0,0.875,0.125,1,1],[0.875,0,0,1,1,0.125],[0.875,0,0.875,1,1,1],[0,0.875,0.125,1,1,0.875],[0.125,0.875,0,0.875,1,0.125],[0.125,0.875,0.875,0.875,1,1]],"3398":[[0.125,0,0.375,0.25,0.8125,0.625],[0.75,0,0.375,0.875,0.8125,0.625],[0.25,0.25,0.125,0.75,1,0.875],[0.125,0.4375,0.3125,0.25,0.8125,0.375],[0.125,0.4375,0.625,0.25,0.8125,0.6875],[0.75,0.4375,0.3125,0.875,0.8125,0.375],[0.75,0.4375,0.625,0.875,0.8125,0.6875]],"3400":[[0.375,0,0.125,0.625,0.8125,0.25],[0.375,0,0.75,0.625,0.8125,0.875],[0.125,0.25,0.25,0.875,1,0.75],[0.3125,0.4375,0.125,0.375,0.8125,0.25],[0.3125,0.4375,0.75,0.375,0.8125,0.875],[0.625,0.4375,0.125,0.6875,0.8125,0.25],[0.625,0.4375,0.75,0.6875,0.8125,0.875]],"3402":[[0.25,0.125,0,0.75,0.875,0.75],[0.125,0.3125,0.1875,0.25,0.6875,0.5625],[0.75,0.3125,0.1875,0.875,0.6875,0.5625],[0.125,0.375,0.5625,0.25,0.625,1],[0.75,0.375,0.5625,0.875,0.625,1]],"3403":[[0.25,0.125,0.25,0.75,0.875,1],[0.125,0.3125,0.4375,0.25,0.6875,0.8125],[0.75,0.3125,0.4375,0.875,0.6875,0.8125],[0.125,0.375,0,0.25,0.625,0.4375],[0.75,0.375,0,0.875,0.625,0.4375]],"3404":[[0,0.125,0.25,0.75,0.875,0.75],[0.1875,0.3125,0.125,0.5625,0.6875,0.25],[0.1875,0.3125,0.75,0.5625,0.6875,0.875],[0.5625,0.375,0.125,1,0.625,0.25],[0.5625,0.375,0.75,1,0.625,0.875]],"3405":[[0.25,0.125,0.25,1,0.875,0.75],[0.4375,0.3125,0.125,0.8125,0.6875,0.25],[0.4375,0.3125,0.75,0.8125,0.6875,0.875],[0,0.375,0.125,0.4375,0.625,0.25],[0,0.375,0.75,0.4375,0.625,0.875]],"3406":[[0.25,0,0.125,0.75,0.75,0.875],[0.125,0.1875,0.3125,0.25,0.5625,0.6875],[0.75,0.1875,0.3125,0.875,0.5625,0.6875],[0.125,0.5625,0.375,0.25,1,0.625],[0.75,0.5625,0.375,0.875,1,0.625]],"3408":[[0.125,0,0.25,0.875,0.75,0.75],[0.3125,0.1875,0.125,0.6875,0.5625,0.25],[0.3125,0.1875,0.75,0.6875,0.5625,0.875],[0.375,0.5625,0.125,0.625,1,0.25],[0.375,0.5625,0.75,0.625,1,0.875]],"3410":[[0,0,0,1,0.125,1],[0.25,0.125,0.25,0.75,0.875,0.75]],"3411":[[0,0,0,1,0.5625,1]],"3412":[[0,0,0.25,1,1,0.75]],"3413":[[0.25,0,0,0.75,1,1]],"3414":[[0.25,0.25,0.25,0.75,0.375,0.75],[0.3125,0.375,0.3125,0.6875,0.8125,0.6875],[0.4375,0.8125,0.4375,0.5625,1,0.5625]],"3415":[[0.25,0.25,0.25,0.75,0.375,0.75],[0.3125,0.375,0.3125,0.6875,0.8125,0.6875],[0.4375,0.8125,0,0.5625,0.9375,0.8125]],"3416":[[0.25,0.25,0.25,0.75,0.375,0.75],[0.3125,0.375,0.3125,0.6875,0.8125,0.6875],[0.4375,0.8125,0.1875,0.5625,0.9375,1]],"3417":[[0.25,0.25,0.25,0.75,0.375,0.75],[0.3125,0.375,0.3125,0.6875,0.8125,0.6875],[0,0.8125,0.4375,0.8125,0.9375,0.5625]],"3418":[[0.25,0.25,0.25,0.75,0.375,0.75],[0.3125,0.375,0.3125,0.6875,0.8125,0.6875],[0.1875,0.8125,0.4375,1,0.9375,0.5625]],"3419":[[0.25,0.25,0.25,0.75,0.375,0.75],[0.3125,0.375,0.3125,0.6875,0.8125,0.6875],[0.4375,0.8125,0,0.5625,0.9375,1]],"3420":[[0.25,0.25,0.25,0.75,0.375,0.75],[0.3125,0.375,0.3125,0.6875,0.8125,0.6875],[0,0.8125,0.4375,1,0.9375,0.5625]],"3421":[[0.3125,0.0625,0.3125,0.6875,0.5,0.6875],[0.375,0.5,0.375,0.625,0.625,0.625]],"3422":[[0.3125,0,0.3125,0.6875,0.4375,0.6875],[0.375,0.4375,0.375,0.625,0.5625,0.625]],"3423":[[0,0,0,1,0.4375,1]],"3456":[[0,0,0,1,0.125,1],[0,0.125,0,0.125,1,1],[0.125,0.125,0,1,1,0.125],[0.125,0.125,0.875,1,1,1],[0.875,0.125,0.125,1,1,0.875]],"3941":[[0.4375,0,0.4375,0.5625,0.375,0.5625]],"3942":[[0.3125,0,0.375,0.6875,0.375,0.5625]],"3943":[[0.3125,0,0.375,0.625,0.375,0.6875]],"3944":[[0.3125,0,0.3125,0.6875,0.375,0.625]],"3945":[[0.0625,0,0.0625,0.9375,0.5,0.9375],[0.4375,0.5,0.4375,0.5625,0.875,0.5625]],"3946":[[0.1875,0.1875,0.5625,0.8125,0.8125,1]],"3947":[[0,0.1875,0.1875,0.4375,0.8125,0.8125]],"3948":[[0.1875,0.1875,0,0.8125,0.8125,0.4375]],"3949":[[0.5625,0.1875,0.1875,1,0.8125,0.8125]],"3950":[[0.1875,0,0.1875,0.8125,0.4375,0.8125]],"3951":[[0.1875,0.5625,0.1875,0.8125,1,0.8125]],"3952":[[0.1875,0.1875,0.6875,0.8125,0.8125,1]],"3953":[[0,0.1875,0.1875,0.3125,0.8125,0.8125]],"3954":[[0.1875,0.1875,0,0.8125,0.8125,0.3125]],"3955":[[0.6875,0.1875,0.1875,1,0.8125,0.8125]],"3956":[[0.1875,0,0.1875,0.8125,0.3125,0.8125]],"3957":[[0.1875,0.6875,0.1875,0.8125,1,0.8125]],"3958":[[0.1875,0.1875,0.75,0.8125,0.8125,1]],"3959":[[0,0.1875,0.1875,0.25,0.8125,0.8125]],"3960":[[0.1875,0.1875,0,0.8125,0.8125,0.25]],"3961":[[0.75,0.1875,0.1875,1,0.8125,0.8125]],"3962":[[0.1875,0,0.1875,0.8125,0.25,0.8125]],"3963":[[0.1875,0.75,0.1875,0.8125,1,0.8125]],"3964":[[0.25,0.25,0.8125,0.75,0.75,1]],"3965":[[0,0.25,0.25,0.1875,0.75,0.75]],"3966":[[0.25,0.25,0,0.75,0.75,0.1875]],"3967":[[0.8125,0.25,0.25,1,0.75,0.75]],"3968":[[0.25,0,0.25,0.75,0.1875,0.75]],"3969":[[0.25,0.8125,0.25,0.75,1,0.75]],"4455":[[0.1875,0,0.1875,0.8125,0.875,0.8125]],"4456":[[0.1875,0,0.1875,0.5625,1,0.5625]],"4460":[[0.1875,0,0.1875,0.5625,0.6875,0.5625]],"4462":[[0.1875,0.3125,0.1875,0.5625,1,0.5625]],"4464":[[0.125,0,0.125,0.625,1,0.625]],"4468":[[0.0625,0,0.0625,0.6875,1,0.6875]],"4472":[[0,0,0,0.75,1,0.75]],"4476":[[0.375,0,0.375,0.625,1,0.625],[0,0.5,0,0.375,1,1],[0.375,0.5,0,1,1,0.375],[0.375,0.5,0.625,1,1,1],[0.625,0.5,0.375,1,1,0.625]],"4477":[[0,0.6875,0,1,0.9375,1]],"4479":[[0,0.6875,0,1,0.8125,1]]},"version":"1.21.11","versionKey":"3.105.0"}');function getCollisionInteractionShapes(){customEvents.on("gameLoaded",function(){var e=(0,n5.getRenamedData)("blocks",Object.keys(n4),"1.20.2",bot.version),t=(0,ej._)({},n4,Object.fromEntries(Object.entries(n4).map(function(t,n){var r=(0,ek._)(t,2),a=(r[0],r[1]);return[e[n],a]})));t[""]=t.air,window.interactionShapes=t})}window.globalGetCollisionShapes=function(e){var t=n6.version,n=(0,n5.getRenamedData)("blocks",Object.keys(n6.blocks),t,e),r=Object.fromEntries(Object.entries(n6.blocks).map(function(e,t){var r=(0,ek._)(e,2)[1];return[n[t],r]}));return(0,eZ.Uo)(e)<(0,eZ.Uo)("1.21.9")&&r.iron_chain&&!r.chain&&(r.chain=r.iron_chain),(0,eD._)((0,ej._)({},n6),{blocks:r})};var n8=n(78976),n9=n.n(n8),n7=n(63389),re=n(4741),rt=n(49090),rn=n(30967),rr=n.t(rn,2),ra=n(54315);let ro=(0,nO.K)(function(e){var t=e.dieReasonMessage,n=e.respawnCallback,r=e.disconnectCallback;return(0,tC.jsx)("div",{className:"deathScreen-container",children:(0,tC.jsxs)("div",{className:"deathScreen",children:[(0,tC.jsx)("h1",{className:"deathScreen-title",children:"You Died!"}),(0,tC.jsx)("h5",{className:"deathScreen-reason",children:(0,tC.jsx)(ra.ZP,{parts:t})}),(0,tC.jsxs)("div",{className:"deathScreen-buttons-grouped",children:[(0,tC.jsx)(nI.Z,{label:"Respawn",onClick:function(){n()}}),(0,tC.jsx)(nI.Z,{label:"Disconnect",onClick:function(){r()}})]})]})})},"deathScreen");var ri=(0,tt.sj)({value:null});function DeathScreenProvider(){var e=(0,tJ.R)(ri).value,t=(0,tN.uM)("death-screen");return((0,tD.useEffect)(function(){bot._client.on("death_combat_event",function(e){try{if(e.playerId!==bot.entity.id)return;var t=JSON.parse(e.message);ri.value=(0,tz.wv)(t)}catch(e){console.error(e)}}),bot.on("health",function(){ri.value||bot.health>0||(ri.value=[])}),bot.on("respawn",function(){ri.value=null}),0===bot.health&&(ri.value=[])},[]),(0,tD.useEffect)(function(){ri.value?t||(0,e5.K4)({reactType:"death-screen"}):t&&(0,e5.VG)({reactType:"death-screen"})},[e,t]),t&&e&&!e2.YM.autoRespawn)?(0,tC.jsx)(ro,{dieReasonMessage:e,respawnCallback:function(){bot._client.write("client_command",bot.supportFeature("respawnIsPayload")?{payload:0}:{actionId:0})},disconnectCallback:function(){(0,tu.zP)()}}):null}n(16461),n(99654),n(22245),n(52437);var rs=n(71164),rl=n(14971),rc=n(52811),ru=n(95043),showAllSettingsEditor=function(){(0,e5.K4)({reactType:"all-settings-editor"})},rd=(M=(0,eC._)(function(){var e,t,n,r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:if(0===(e=Object.keys((0,e2.Zb)())).length)return alert("No changed settings found."),[2];return t=Object.fromEntries(e.map(function(e){return[e,{type:"checkbox",label:(0,rs.Q)((0,rl.noCase)(e)),defaultValue:!0}]})),[4,(0,tL.Pl)("Select Settings to Reset",t,{cancel:!0,showConfirm:!0,confirmLabel:"Reset"})];case 1:if(!(n=a.sent()))return[2];if(0===(r=e.filter(function(e){return n[e]})).length)return alert("No settings selected."),[2];return(0,e2.SJ)(r),[2]}})}),function(){return M.apply(this,arguments)});function AllSettingsEditor(){var e,t,n=(0,tN.uM)("all-settings-editor"),r=(0,tJ.R)(e2.YM),a=(0,tJ.R)(e2.hI),o=(0,ek._)((0,tD.useState)(""),2),i=o[0],s=o[1],l=(0,ek._)((0,tD.useState)(null),2),c=l[0],u=l[1],d=(0,ek._)((0,tD.useState)(""),2),w=d[0],p=d[1],h=(0,tD.useRef)(null),M=(0,tD.useRef)(null),g=(0,tD.useMemo)(function(){if(!n)return[];var e=i.toLowerCase();return Object.entries(r).filter(function(t){var n=(0,ek._)(t,1)[0],r=n.toLowerCase(),a=(0,rs.Q)((0,rl.noCase)(n)).toLowerCase();return r.includes(e)||a.includes(e)}).sort(function(e,t){var n=(0,ek._)(e,1)[0],r=(0,ek._)(t,1)[0];return n.localeCompare(r)})},[r,i,n]);(0,tD.useEffect)(function(){n&&h.current&&!(0,na.tq)()&&h.current.focus()},[n]),(0,tD.useEffect)(function(){var handleClickOutside=function(e){M.current&&!M.current.contains(e.target)&&u(null)};if(c)return document.addEventListener("mousedown",handleClickOutside),function(){return document.removeEventListener("mousedown",handleClickOutside)}},[c]);var m=(e=(0,eC._)(function(){var e,t,n,r,a,o,i,s;return(0,eT.Jh)(this,function(l){switch(l.label){case 0:if(0===(t=Object.keys(e=(0,e2.Zb)())).length)return alert("No changed settings found."),[2];return n=Object.fromEntries(t.map(function(e){return[e,{type:"checkbox",label:(0,rs.Q)((0,rl.noCase)(e)),defaultValue:!0}]})),[4,(0,tL.Pl)("Select Changed Settings to Include in URL",n,{cancel:!0,showConfirm:!0})];case 1:if(!(r=l.sent()))return[2];if(0===(a=t.filter(function(e){return r[e]})).length)return alert("No settings selected."),[2];o=a.map(function(t){var n=JSON.stringify(e[t]);return"setting=".concat(encodeURIComponent(t),":").concat(encodeURIComponent(n))}).join("&"),i="".concat(window.location.origin).concat(window.location.pathname,"?").concat(o),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,navigator.clipboard.writeText(i)];case 3:return l.sent(),alert("URL copied to clipboard!\n\n".concat(i)),[3,5];case 4:l.sent(),(s=document.createElement("textarea")).value=i,s.style.position="fixed",s.style.opacity="0",document.body.appendChild(s),s.select();try{document.execCommand("copy"),alert("URL copied to clipboard!\n\n".concat(i))}catch(e){alert("Failed to copy. URL:\n\n".concat(i))}return s.remove(),[3,5];case 5:return[2]}})}),function(){return e.apply(this,arguments)});if(!n)return null;var v=(t=(0,eC._)(function(e,t,n){var r,o,i,s,l,c,d,w;return(0,eT.Jh)(this,function(h){switch(h.label){case 0:if(a.value.has(e))return[2];if(n.stopPropagation(),!((null==(r=to.FP[e])?void 0:r.possibleValues)&&r.possibleValues.length>0))return[3,2];return o=function(e){return"string"==typeof e?e:e[0]},i=function(e){return"string"==typeof e?(0,rs.Q)((0,rl.noCase)(e)):e[1]},s=r.possibleValues.map(i),[4,(0,tL.un)("Select ".concat((0,rs.Q)((0,rl.noCase)(e))),s)];case 1:return(l=h.sent())&&-1!==(c=s.indexOf(l))&&handleValueChange(e,o(r.possibleValues[c])),[2];case 2:if(!((null==r?void 0:r.isCustomInput)||"string"==typeof t))return[3,4];return d=t!==to.vC[e],[4,(0,tL.Pl)("Edit ".concat((0,rs.Q)((0,rl.noCase)(e))),(0,ej._)({value:{type:"text",label:(0,rs.Q)((0,rl.noCase)(e)),defaultValue:t,placeholder:"Enter ".concat((0,rs.Q)((0,rl.noCase)(e)))}},d?{reset:{type:"button"}}:{}),{cancel:!0,showConfirm:!0})];case 3:return(w=h.sent()).reset?handleValueChange(e,to.vC[e]):w.value&&handleValueChange(e,w.value),[2];case 4:if("boolean"==typeof t)return handleValueChange(e,!t),[2];return u(e),p(String(t)),[2]}})}),function(e,n,r){return t.apply(this,arguments)}),handleValueChange=function(e,t){try{if("boolean"==typeof r[e])e2.YM[e]="true"===t||!0===t;else if("number"==typeof r[e]){var n=parseFloat(String(t));isNaN(n)||(e2.YM[e]=n)}else e2.YM[e]=t;u(null)}catch(e){console.error("Failed to update option:",e)}},OptionRow=function(e){var t=e.optionKey,n=e.value,r=(0,tD.useRef)(null),o=a.value.has(t),i=c===t,s="boolean"==typeof n,l="number"==typeof n,d="string"==typeof n,h=to.FP[t],g=null==h?void 0:h.possibleValues;return null==h||h.isCustomInput,(0,tC.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",backgroundColor:i?"#333":o?"#1f1f1f":"#2a2a2a",borderRadius:"4px",cursor:o?"not-allowed":"pointer",position:"relative",minHeight:"44px"},onMouseEnter:function(e){o||i||(e.currentTarget.style.backgroundColor="#333")},onMouseLeave:function(e){o||i||(e.currentTarget.style.backgroundColor="#2a2a2a")},children:[(0,tC.jsx)("div",{style:{flex:1,minWidth:0,fontSize:"13px",color:o?"#666":"#fff",fontWeight:500,wordBreak:"break-word"},children:(0,rs.Q)((0,rl.noCase)(t))}),(0,tC.jsx)("div",{ref:r,style:{fontSize:"12px",color:"boolean"==typeof n?n?"#4caf50":"#f44336":"#aaa",padding:"4px 8px",backgroundColor:i?"#444":"#1a1a1a",borderRadius:"3px",whiteSpace:"nowrap",cursor:o?"not-allowed":"pointer",border:i?"1px solid #555":"1px solid transparent",userSelect:"none",minWidth:"60px",textAlign:"center"},onClick:function(e){v(t,n,e)},onTouchStart:function(e){e.touches.length>1&&e.preventDefault()},children:function(){if("boolean"==typeof n)return String(n);if((void 0===n?"undefined":(0,eN._)(n))==="object"&&null!==n)return JSON.stringify(n).slice(0,30)+(JSON.stringify(n).length>30?"...":"");if(g){var e=g.find(function(e){return String(Array.isArray(e)?e[0]:e)===String(n)});if(e)return Array.isArray(e)?e[1]:e}return String(n)}()}),function(){if(!i)return null;var e={position:"fixed",backgroundColor:"#2a2a2a",border:"1px solid #555",borderRadius:"4px",padding:"4px",zIndex:1e4,minWidth:"120px",maxHeight:"300px",overflowY:"auto",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.3)"};if(r.current){var a=r.current.getBoundingClientRect();e.left="".concat(a.left,"px"),e.top="".concat(a.bottom+4,"px")}return(0,tC.jsx)("div",{ref:M,style:e,children:s?(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)("div",{style:{padding:"6px 12px",cursor:"pointer",backgroundColor:"#333",borderRadius:"2px",marginBottom:"4px"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#444"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="#333"},onClick:function(){return handleValueChange(t,"true")},children:"true"}),(0,tC.jsx)("div",{style:{padding:"6px 12px",cursor:"pointer",backgroundColor:"#333",borderRadius:"2px"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#444"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="#333"},onClick:function(){return handleValueChange(t,"false")},children:"false"})]}):d?(0,tC.jsx)("div",{style:{padding:"4px"},children:(0,tC.jsx)(nE.ZP,{defaultValue:String(n),autoFocus:!0,rootStyles:{width:"100%"},onKeyDown:function(e){"Enter"===e.key?handleValueChange(t,e.currentTarget.value):"Escape"===e.key&&u(null)},onBlur:function(){setTimeout(function(){c===t&&handleValueChange(t,w)},200)},onChange:function(e){return p(e.target.value)}})}):l?(0,tC.jsx)("div",{style:{padding:"4px"},children:(0,tC.jsx)(nE.ZP,{type:"number",defaultValue:String(n),autoFocus:!0,rootStyles:{width:"100%"},onKeyDown:function(e){"Enter"===e.key?handleValueChange(t,e.currentTarget.value):"Escape"===e.key&&u(null)},onBlur:function(){setTimeout(function(){c===t&&handleValueChange(t,w)},200)},onChange:function(e){return p(e.target.value)}})}):(0,tC.jsx)("div",{style:{padding:"8px",color:"#999",fontSize:"12px"},children:"Complex type (object/array)"})})}()]})};return(0,tC.jsx)(tk.Z,{title:"All Settings",backdrop:!0,titleMarginTop:5,children:(0,tC.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%",width:"100%",maxHeight:"calc(100vh - 100px)",gap:"8px"},children:[(0,tC.jsxs)("div",{style:{position:"sticky",top:0,zIndex:100,backgroundColor:"#1a1a1a",padding:"8px 0"},children:[(0,tC.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,tC.jsx)(nI.Z,{icon:nY.K.link,onClick:m,style:{flexShrink:0},title:"Copy URL with changed settings"}),(0,tC.jsx)(nY.Z,{iconName:nY.K.search,styles:{width:"16px",height:"16px",flexShrink:0}}),(0,tC.jsx)(nE.ZP,{ref:h,placeholder:"Search options...",value:i,onChange:function(e){return s(e.target.value)},rootStyles:{flex:1,minWidth:0}}),i&&(0,tC.jsx)(nI.Z,{icon:nY.K.close,onClick:function(){return s("")},style:{width:"20px",flexShrink:0}})]}),(0,tC.jsxs)("div",{style:{fontSize:"11px",color:"#888",marginTop:"4px"},children:[g.length," option",1===g.length?"":"s"," found"]})]}),(0,tC.jsx)("div",{style:{overflowY:"auto",flex:1,display:"flex",flexDirection:"column",gap:"2px",paddingRight:"4px",WebkitOverflowScrolling:"touch"},children:0===g.length?(0,tC.jsxs)("div",{style:{padding:"20px",textAlign:"center",color:"#888",fontSize:"14px"},children:['No options found matching "',i,'"']}):g.map(function(e){var t=(0,ek._)(e,2),n=t[0],r=t[1];return(0,tC.jsx)(OptionRow,{optionKey:n,value:r},n)})}),(0,tC.jsx)("div",{style:{position:"sticky",bottom:0,paddingTop:"8px",backgroundColor:"#1a1a1a"},children:(0,tC.jsx)(nI.Z,{onClick:e5.kJ,style:{width:"100%"},children:"Close"})})]})})}var rw=n(87665),rf=n(62902);let rp=(0,nO.K)(function(e){var t=e.label,n=e.unit,r=e.width,a=e.value,o=e.valueDisplay,i=e.min,s=void 0===i?0:i,l=e.max,c=void 0===l?100:l,u=e.disabledReason,d=e.throttle,w=void 0===d?0:d,p=e.updateOnDragEnd,h=void 0!==p&&p,M=e.updateValue,g=(0,ex._)(e,["label","unit","width","value","valueDisplay","min","max","disabledReason","throttle","updateOnDragEnd","updateValue"]);t=translate(t),u=translate(u),o="string"==typeof o?translate(o):o;var m=(0,ek._)((0,tD.useState)(a),2),v=m[0],y=m[1],getRatio=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;return Math.max(Math.min((e-s)/(c-s),1),0)},A=(0,ek._)((0,tD.useState)(getRatio()),2),b=A[0],_=A[1],L=(0,tD.useRef)(null),C=(0,tD.useRef)(a),j=(0,ek._)((0,tD.useState)(!1),2),D=j[0],x=j[1],k=(0,tD.useRef)(0),N=(0,tD.useRef)(null);(0,tD.useEffect)(function(){y(a)},[a]),(0,tD.useEffect)(function(){_(getRatio())},[v,s,c]);var T=(0,tD.useCallback)(function(e,t){if(h===t&&M){if(C.current=e,!w)return void M(e);L.current&&clearTimeout(L.current),L.current=setTimeout(function(){M(C.current),L.current=null},w)}},[M,h,w]);(0,tD.useEffect)(function(){return function(){L.current&&(clearTimeout(L.current),M&&void 0!==C.current&&M(C.current))}},[M]),(0,tD.useEffect)(function(){var e=N.current;if(e){var handleMouseOver=function(e){e.isGamepadCursor&&!u&&x(!0)},handleMouseOut=function(e){e.isGamepadCursor&&x(!1)},handleGamepadInputChange=function(e){if(!u){var t=Date.now();if(!(t-k.current<200)||!e.detail.isStickMovement){k.current=t;var n=Math.max(s,Math.min(c,v+ +e.detail.direction));y(n),fireValueUpdate(!1,n)}}};return e.addEventListener("mouseover",handleMouseOver),e.addEventListener("mouseout",handleMouseOut),e.addEventListener("gamepadInputChange",handleGamepadInputChange),function(){e.removeEventListener("mouseover",handleMouseOver),e.removeEventListener("mouseout",handleMouseOut),e.removeEventListener("gamepadInputChange",handleGamepadInputChange)}}},[u,v,s,c]);var fireValueUpdate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;T(t,e)},S="".concat(t,": ").concat(null!=o?o:v," ").concat(void 0===n?"%":n),z=(0,tD.useRef)(null),q=(0,rw.YF)({middleware:[(0,rf.x7)({element:z}),(0,rf.cv)(7)],placement:"top"}),E=q.refs,I=q.floatingStyles,P=q.context;return(0,tC.jsxs)(ng.Z,{children:[(0,tC.jsxs)("div",(0,eD._)((0,ej._)({ref:function(e){N.current=e,E.setReference(e)},className:"".concat("slider-container-k26jGw"," slider settings-text-container ").concat(S.length>17?"settings-text-container-long":""),style:{width:r}},g),{children:[(0,tC.jsx)("input",{type:"range",className:"slider-pQg1Tc",min:s,max:c,value:v,disabled:!!u,onChange:function(e){var t=Number(e.target.value);y(t),fireValueUpdate(!1,t)},onLostPointerCapture:function(){fireValueUpdate(!0)},onPointerUp:function(){fireValueUpdate(!0)},onKeyUp:function(){fireValueUpdate(!0)}}),(0,tC.jsx)("div",{className:"disabled-vWN9n8",title:u}),(0,tC.jsx)("div",{className:"".concat("slider-thumb-kWeJYr"," slider-thumb"),style:{left:"calc((100% * ".concat(b,") - (8px * ").concat(b,"))")}}),(0,tC.jsx)("label",{className:"label-My4K1P",children:S})]})),D&&(0,tC.jsxs)("div",{ref:E.setFloating,style:(0,eD._)((0,ej._)({},I),{background:"rgba(0, 0, 0, 0.8)",fontSize:10,pointerEvents:"none",userSelect:"none",padding:"4px 8px",borderRadius:4,textShadow:"1px 1px 2px BLACK",zIndex:1e3,whiteSpace:"nowrap"}),children:["Use right stick left/right to change value",(0,tC.jsx)(rw.Y$,{ref:z,context:P,style:{fill:"rgba(0, 0, 0, 0.8)"}})]})]})},"slider");var rh=(0,tt.sj)({params:null,selectedValueIndex:0,reloadMode:"later"}),rM=(g=(0,eC._)(function(e){var t;return(0,eT.Jh)(this,function(n){return(0,e5.K4)({reactType:"setting-reload"}),t=Math.max(0,e.valueChoices.findIndex(function(t){return String(t.value)===String(e.currentValue)})),[2,new Promise(function(n){ev=n,Object.assign(rh,{params:(0,ej._)({},e),selectedValueIndex:-1===t?0:t,reloadMode:e.requiresChunksReload?"chunks":e.requiresRestart?"page":"later"})})]})}),function(e){return g.apply(this,arguments)});let SettingReloadModal=function(){var e,t=(0,tJ.R)(rh),n=t.params,r=t.selectedValueIndex,a=t.reloadMode,o=(0,tN.uM)("setting-reload"),i=null!=(e=null==n?void 0:n.valueChoices)?e:[],s=!!(null==n?void 0:n.requiresChunksReload),l=!!((null==n?void 0:n.requiresRestart)||(null==n?void 0:n.requiresChunksReload)),resolveClose=function(e){null==ev||ev(e),ev=void 0,(0,e5.kJ)(),rh.params=null},c=(0,tD.useMemo)(function(){return i[r]},[i,r]);return o&&n?(0,tC.jsx)(tk.Z,{title:n.settingLabel,backdrop:!0,children:(0,tC.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center",maxWidth:280},children:[(0,tC.jsx)("div",{style:{fontSize:10,color:"#ccc",textAlign:"center"},children:translate("This setting requires a reload to take effect")}),n.tooltip&&(0,tC.jsx)("div",{style:{fontSize:9,color:"#999",textAlign:"center"},children:n.tooltip}),(0,tC.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:5,width:"100%"},children:[(0,tC.jsx)("div",{style:{fontSize:10,color:"#ddd"},children:translate("Select value")}),(0,tC.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:5,justifyContent:"center"},children:i.map(function(e,t){return(0,tC.jsx)(nI.Z,{onClick:function(){rh.selectedValueIndex=t},style:{border:r===t?"2px solid #4CAF50":void 0,minWidth:72},children:e.label},"".concat(String(e.value),"-").concat(e.label))})})]}),(0,tC.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,width:"100%"},children:[(0,tC.jsx)("div",{style:{fontSize:10,color:"#ddd"},children:translate("Apply with")}),s&&(0,tC.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:11,cursor:"pointer"},children:[(0,tC.jsx)("input",{type:"checkbox",checked:"chunks"===a,onChange:function(){rh.reloadMode="chunks"}}),translate("Reload chunks")]}),l&&(0,tC.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:11,cursor:"pointer"},children:[(0,tC.jsx)("input",{type:"checkbox",checked:"page"===a,onChange:function(){rh.reloadMode="page"}}),translate("Reconnect immediately (reload page)")]}),(0,tC.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:11,cursor:"pointer"},children:[(0,tC.jsx)("input",{type:"checkbox",checked:"later"===a,onChange:function(){rh.reloadMode="later"}}),translate("Apply later without reload")]})]}),(0,tC.jsx)(nI.Z,{onClick:function(){c&&resolveClose({value:c.value,reloadMode:a})},children:translate("Apply")}),(0,tC.jsx)(nI.Z,{onClick:function(){resolveClose(void 0)},children:translate("Cancel")})]})}):null};var rg=n(76945),applySettingReloadResult=function(e){"chunks"===e.reloadMode?reloadChunksAction():"page"===e.reloadMode&&(0,rg.$1)()},rm=(m=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:var n,r;return[4,rM((0,eD._)((0,ej._)({},e),{valueChoices:(e.currentValue,(r=e.possibleValues)&&r.length>0?r.map(function(e){return{value:"string"==typeof e?e:e[0],label:"string"==typeof e?(0,rs.Q)((0,rl.noCase)(e)):e[1]}}):[{value:!0,label:"ON"},{value:!1,label:"OFF"}])}))];case 1:return[2,t.sent()]}})}),function(e){return m.apply(this,arguments)}),isLocked=function(e){return e2.hI.value.has(e.id)},useCommonComponentsProps=function(e){var t=!1;return e.disableIf&&(t=(0,tJ.R)(e2.YM)[e.disableIf[0]]===e.disableIf[1]),{disabledBecauseOfSetting:t}},isSettingChanged=function(e){return e in tm.e1.changedSettings&&JSON.stringify(tm.e1.changedSettings[e])!==JSON.stringify(e2.vC[e])},ChangedIndicator=function(){return(0,tC.jsx)("div",{style:{position:"absolute",top:2,right:2,width:3,height:3,backgroundColor:"rgb(77 160 255)",pointerEvents:"none"}})},OptionsItems_getOptionValue=function(e){return"string"==typeof e?e:e[0]},OptionsItems_getOptionLabel=function(e){return"string"==typeof e?(0,rs.Q)((0,rl.noCase)(e)):e[1]},getNextOptionValue=function(e,t,n,r){if(n&&n.length>=4)return null;if(n&&n.length>1){var a=n.findIndex(function(e){return String(OptionsItems_getOptionValue(e))===String(t)});if(-1===a)return OptionsItems_getOptionValue(n[0]);var o=r.shiftKey?(a-1+n.length)%n.length:(a+1)%n.length;return OptionsItems_getOptionValue(n[o])}return n&&1===n.length?OptionsItems_getOptionValue(n[0]):!e2.YM[e]},OptionButton=function(e){var t,n=e.item,r=e.onClick,a=e.valueText,o=useCommonComponentsProps(n).disabledBecauseOfSetting;(0,tJ.R)(tm.e1);var i=(0,tJ.R)(e2.YM)[n.id],s=isSettingChanged(n.id),l=n.id?to.FP[n.id]:void 0,c=null==l?void 0:l.possibleValues,u=(0,tD.useMemo)(function(){return c?Object.fromEntries(c.map(function(e){return"string"==typeof e?[e,(0,rs.Q)((0,rl.noCase)(e))]:[e[0],e[1]]})):{true:"ON",false:"OFF"}},[c]),d=n.disabledReason;return o&&(d="Disabled because ".concat(n.disableIf[0]," is ").concat(n.disableIf[1])),(0,tC.jsx)(nI.Z,{"data-setting":n.id,label:"".concat(translate(n.text),": ").concat(translate(null!=a?a:u[i])),onClick:(t=(0,eC._)(function(e){var t,a,o,s,l,u;return(0,eT.Jh)(this,function(w){switch(w.label){case 0:if(!d)return[3,2];return[4,(0,tL.un)("".concat(translate("The option is not available"),": ").concat(d),[])];case 1:return w.sent(),[2];case 2:if(!(n.enableWarning&&!e2.YM[n.id]))return[3,4];return[4,(0,tL.un)(n.enableWarning,["Enable"])];case 3:if(!w.sent())return[2];w.label=4;case 4:var p,h,M;if(p=n.requiresRestart,h=n.requiresChunksReload,M=n.requiresRestartWhenInGame,t=!!p||!!h&&!!e5.N_.gameLoaded||M&&e5.N_.gameLoaded,!(n.id&&t))return[3,6];return[4,rm({settingLabel:translate(n.text||n.id),currentValue:i,possibleValues:c,requiresRestart:n.requiresRestart,requiresChunksReload:n.requiresChunksReload,tooltip:n.tooltip})];case 5:if(!(a=w.sent()))return[2];return e2.YM[n.id]=a.value,applySettingReloadResult(a),null==r||r(),[2];case 6:if(null==r||r(),!n.id)return[3,9];if(!(c&&c.length>=4))return[3,8];return o=c.map(OptionsItems_getOptionLabel),[4,(0,tL.un)("".concat(translate(n.text||n.id),": ").concat(translate("Select value")),o)];case 7:return(s=w.sent())&&-1!==(l=o.indexOf(s))&&(e2.YM[n.id]=OptionsItems_getOptionValue(c[l])),[3,9];case 8:null!==(u=getNextOptionValue(n.id,i,c,e))&&(e2.YM[n.id]=u),w.label=9;case 9:return[2]}})}),function(e){return t.apply(this,arguments)}),title:d?"".concat(d," | ").concat(n.tooltip):n.tooltip,disabled:o||!!n.disabledReason||isLocked(n),inScreen:!0,style:s?{position:"relative",width:150}:{width:150},children:s&&(0,tC.jsx)(ChangedIndicator,{})})},OptionSlider=function(e){var t=e.item,n=e.onChange,r=e.valueOverride,a=useCommonComponentsProps(t).disabledBecauseOfSetting;(0,tJ.R)(tm.e1);var o=(0,tJ.R)(e2.YM)[t.id],i=isSettingChanged(t.id),s=(0,tD.useMemo)(function(){if(t.valueText)return t.valueText(o)},[o]);return(0,tC.jsxs)("div",{style:i?{position:"relative"}:void 0,children:[(0,tC.jsx)(rp,{label:t.text,value:null!=r?r:e2.YM[t.id],"data-setting":t.id,disabledReason:isLocked(t)?"qs":a?"Disabled because ".concat(t.disableIf[0]," is ").concat(t.disableIf[1]):t.disabledReason,min:t.min,max:t.max,unit:t.unit,valueDisplay:s,updateOnDragEnd:t.delayApply,updateValue:function(e){e2.YM[t.id]=e,null==n||n(e)}}),i&&(0,tC.jsx)(ChangedIndicator,{})]})},OptionElement=function(e){return e.item.render()},RenderOption=function(e){var t=e.item,n=(0,tJ.R)(e5.N_).gameLoaded;if(t.id){var r,a,o,i,s,l=to.FP[t.id];null!=t.text||(t.text=null!=(r=null==l?void 0:l.text)?r:(0,rs.Q)((0,rl.noCase)(t.id))),null!=t.tooltip||(t.tooltip=null==l?void 0:l.tooltip),null!=t.requiresRestart||(t.requiresRestart=null==l?void 0:l.requiresRestart),null!=t.requiresChunksReload||(t.requiresChunksReload=null==l?void 0:l.requiresChunksReload)}if(t.disabledDuringGame&&n&&(t.disabledReason="Cannot be changed during game"),"custom"in t&&"function"==typeof t.custom)return t.custom();var c=null;return"toggle"===t.type&&(c=(0,tC.jsx)(OptionButton,{item:t})),"slider"===t.type&&(c=(0,tC.jsx)(OptionSlider,{item:t})),"element"===t.type&&(c=(0,tC.jsx)(OptionElement,{item:t})),c};let rv=(0,nO.K)(function(e){var t=e.items,n=e.title,r=e.backButtonAction;return(0,tC.jsxs)(tk.Z,{title:n,children:[(0,tC.jsxs)("div",{className:"screen-items",children:[(0,tC.jsxs)("div",{style:{position:"fixed",marginLeft:"-30px",display:"flex",flexDirection:"column",gap:1},children:[(0,tC.jsx)(nI.Z,{icon:nY.K.close,onClick:e5.sr,style:{color:"#ff5d5d"}}),(0,tC.jsx)(nI.Z,{icon:nY.K["chevron-left"],onClick:r,style:{color:"yellow"}}),(0,tC.jsx)(nI.Z,{icon:nY.K.search,onClick:showAllSettingsEditor,style:{color:"#4caf50"},title:"Search all settings"})]}),t.map(function(e,t){var r;return(0,tC.jsx)(RenderOption,{item:e},null!=(r=e.id)?r:"".concat(n,"-").concat(t))})]}),r&&(0,tC.jsx)(nI.Z,{onClick:function(){return r()},children:"Back"})]})},"optionsItems");var ry=n(54694),rA=n(67253);n(98668),n(74120),n(29456),n(39923),n(73541),n(5269),n(31325),n(68732),n(32831);var rb=n(91936),r_=n(32637),rL=n(75930),rC=n(63455),rj=n(70646),rD=!1,protectRuntime=function(){if(!rD){rD=!0;var e=new Set(["authenticatedAccounts","serversList","username"]),t=new Proxy(window.localStorage,{get:function(t,n){if("string"==typeof n){if(e.has(n))return console.warn('Access to sensitive key "'.concat(n,'" was blocked')),null;if("getItem"===n)return function(n){return e.has(n)?(console.warn('Access to sensitive key "'.concat(n,'" via getItem was blocked')),null):t.getItem(n)};if("setItem"===n)return function(n,r){if(e.has(n))return void console.warn('Attempt to set sensitive key "'.concat(n,'" via setItem was blocked'));t.setItem(n,r)};if("removeItem"===n)return function(n){if(e.has(n))return void console.warn('Attempt to delete sensitive key "'.concat(n,'" via removeItem was blocked'));t.removeItem(n)};if("clear"===n)return console.warn("Attempt to clear localStorage was blocked"),function(){}}return Reflect.get(t,n)},set:function(t,n,r){return"string"==typeof n&&e.has(n)?(console.warn('Attempt to set sensitive key "'.concat(n,'" was blocked')),!1):Reflect.set(t,n,r)},deleteProperty:function(t,n){return"string"==typeof n&&e.has(n)?(console.warn('Attempt to delete sensitive key "'.concat(n,'" was blocked')),!1):Reflect.deleteProperty(t,n)}});Object.defineProperty(window,"localStorage",{value:t,writable:!1,configurable:!1})}},rx=(0,rb.X3)("mods-db",1,{upgrade:function(e){e.createObjectStore("mods",{keyPath:"name"}),e.createObjectStore("repositories",{keyPath:"url"})}});function saveClientModData(e){return _saveClientModData.apply(this,arguments)}function _saveClientModData(){return(_saveClientModData=(0,eC._)(function(e){var t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:return[4,rx];case 1:return t=n.sent(),e.lastUpdated=Date.now(),[4,t.put("mods",e)];case 2:return n.sent(),rV.counter++,[2]}})})).apply(this,arguments)}function getPlugin(e){return _getPlugin.apply(this,arguments)}function _getPlugin(){return(_getPlugin=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,rx];case 1:return[2,t.sent().get("mods",e)]}})})).apply(this,arguments)}function getAllMods(){return _getAllMods.apply(this,arguments)}function _getAllMods(){return(_getAllMods=(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,rx];case 1:return[2,e.sent().getAll("mods")]}})})).apply(this,arguments)}function deletePlugin(e){return _deletePlugin.apply(this,arguments)}function _deletePlugin(){return(_deletePlugin=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,rx];case 1:return[4,t.sent().delete("mods",e)];case 2:return t.sent(),rV.counter++,[2]}})})).apply(this,arguments)}function saveRepository(e){return _saveRepository.apply(this,arguments)}function _saveRepository(){return(_saveRepository=(0,eC._)(function(e){var t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:return[4,rx];case 1:return t=n.sent(),e.lastUpdated=Date.now(),[4,t.put("repositories",e)];case 2:return n.sent(),[2]}})})).apply(this,arguments)}function getRepository(e){return _getRepository.apply(this,arguments)}function _getRepository(){return(_getRepository=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,rx];case 1:return[2,t.sent().get("repositories",e)]}})})).apply(this,arguments)}function getAllRepositories(){return _getAllRepositories.apply(this,arguments)}function _getAllRepositories(){return(_getAllRepositories=(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,rx];case 1:return[2,e.sent().getAll("repositories")]}})})).apply(this,arguments)}function deleteRepository(e){return _deleteRepository.apply(this,arguments)}function _deleteRepository(){return(_deleteRepository=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,rx];case 1:return[4,t.sent().delete("repositories",e)];case 2:return t.sent(),[2]}})})).apply(this,arguments)}window.getAllRepositories=getAllRepositories,window.mcraft={version:"v2.1.0",build:"2026-07-12T10",ui:{registeredReactWrappers:{},registerReactWrapper:function(e,t,n){var r,a;null!=(r=window.mcraft.ui.registeredReactWrappers)[e]||(r[e]={}),window.mcraft.ui.registeredReactWrappers[e][t]=n}},React:tx,ReactJsxRuntime:tj,ReactDOM:rr,framerMotion:rC,fileSize:nT,classNames:nk(),valtio:(0,ej._)({},r_,rL)};var rk=(v=(0,eC._)(function(e,t){var n,r,a,o,i,s,l,c,u,d,w,p,h,M,g,m;return(0,eT.Jh)(this,function(r){switch(r.label){case 0:if(!1===e.enabled)return[2,!1];if(protectRuntime(),console.debug("Activating mod ".concat(e.name," (").concat(t,")...")),null!=(n=window).loadedMods||(n.loadedMods={}),window.loadedMods[e.name])return console.warn("Mod is ".concat(e.name," already loaded, skipping activation...")),[2,!1];if(e.stylesGlobal&&((a=document.createElement("style")).textContent=e.stylesGlobal,a.id="mod-".concat(e.name),document.head.appendChild(a)),!e.scriptMainUnstable)return[3,5];o=new Blob([e.scriptMainUnstable],{type:"text/javascript"}),i=URL.createObjectURL(o),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,import(i)];case 2:return null==(s=(u=r.sent()).default)||s.call(u,structuredClone(e),{settings:getModSettingsProxy(e)}),null!=(l=window.loadedMods)[c=e.name]||(l[c]={}),window.loadedMods[e.name].mainUnstableModule=u,[3,4];case 3:throw r.sent();case 4:URL.revokeObjectURL(i),r.label=5;case 5:if(!e.threeJsBackend)return[3,10];w=new Blob([e.threeJsBackend],{type:"text/javascript"}),p=URL.createObjectURL(w),r.label=6;case 6:return r.trys.push([6,8,,9]),[4,import(p)];case 7:return g=r.sent(),null!=(h=window.loadedMods)[M=e.name]||(h[M]={}),window.loadedMods[e.name].threeJsBackendModule=g,[3,9];case 8:throw r.sent();case 9:URL.revokeObjectURL(p),r.label=10;case 10:return e.enabled=!0,[2,!0]}})}),function(e,t){return v.apply(this,arguments)}),normalizeParentMod=function(e){var t,n,r="parent-mod-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8));return{name:"string"==typeof e.name&&e.name.length>0?e.name:r,version:null!=(t=e.version)?t:"0.0.0",enabled:null==(n=e.enabled)||n,description:e.description,author:e.author,section:e.section,scriptMainUnstable:e.scriptMainUnstable,serverPlugin:e.serverPlugin,stylesGlobal:e.stylesGlobal,threeJsBackend:e.threeJsBackend,requiresNetwork:e.requiresNetwork,fullyOffline:e.fullyOffline,settings:e.settings,actionsMain:e.actionsMain,wasModifiedLocally:e.wasModifiedLocally,autoUpdateOverride:e.autoUpdateOverride,lastUpdated:e.lastUpdated}},rN=(y=(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return window.parent===window?[2,[]]:[2,new Promise(function(e){var t=!1,cleanup=function(){t||(t=!0,window.removeEventListener("message",handleMessage),window.clearTimeout(n))},handleMessage=function(t){var n=t.data;n&&(void 0===n?"undefined":(0,eN._)(n))==="object"&&"mwc:modsResponse"===n.type&&(cleanup(),e(Array.isArray(n.mods)?n.mods:[]))},n=window.setTimeout(function(){cleanup(),e([])},5e4);window.addEventListener("message",handleMessage),window.parent.postMessage({type:"mwc:modsRequest"},"*")})]})}),function(){return y.apply(this,arguments)}),rT=(A=(0,eC._)(function(){var e,t,n,r,a,o,i,s,l,c,u,d,w,p,h,M;return(0,eT.Jh)(this,function(h){switch(h.label){case 0:e=new Set,h.label=1;case 1:if(h.trys.push([1,13,,14]),new URLSearchParams(window.location.search),"1"!==eS.EX.parentFrameMods&&"true"!==eS.EX.parentFrameMods)return[2,e];if(window.parent===window)return console.warn("mods=parent query param detected but no parent frame is available"),[2,e];return[4,rN()];case 2:if(!(t=h.sent()).length)return[2,e];n=!0,r=!1,a=void 0,h.label=3;case 3:h.trys.push([3,10,11,12]),o=t[Symbol.iterator](),h.label=4;case 4:if(n=(i=o.next()).done)return[3,9];s=i.value,h.label=5;case 5:return h.trys.push([5,7,,8]),[4,rk(l=normalizeParentMod(s),"parent-frame")];case 6:return h.sent()&&e.add(l.name),[3,8];case 7:return c=h.sent(),p=null!=(w=null==s?void 0:s.name)?w:"parent-frame-mod",null!=(u=rE)[d=p]||(u[d]=[]),rE[p].push("parent-frame: ".concat(String(c))),console.error("Error activating parent-frame mod ".concat(p,":"),c),[3,8];case 8:return n=!0,[3,4];case 9:return[3,12];case 10:return M=h.sent(),r=!0,a=M,[3,12];case 11:try{n||null==o.return||o.return()}finally{if(r)throw a}return[7];case 12:return[3,14];case 13:return console.error("Error loading mods from parent frame",h.sent()),[3,14];case 14:return[2,e]}})}),function(){return A.apply(this,arguments)}),rS=(b=(0,eC._)(function(){var e,t,n,r,a,o,i,s,l,c,u,d,w,p;return(0,eT.Jh)(this,function(h){switch(h.label){case 0:return rU(),a=Object.entries(null==(t=window.mcraft)||null==(e=t.ui)?void 0:e.registeredReactWrappers).reduce(function(e,t){var n=(0,ek._)(t,2);return e+Object.keys((n[0],n[1])).length},0),[4,rT()];case 1:return o=h.sent(),[4,getAllMods()];case 2:i=h.sent(),s=!0,l=!1,c=void 0,h.label=3;case 3:h.trys.push([3,8,9,10]),u=function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:if(e=w.value,o.has(e.name))return[2,"continue"];return[4,rk(e,"autostart").catch(function(t){var n,r;null!=rE[n=e.name]||(rE[n]=[]),rE[e.name].push("startup: ".concat(String(t))),console.error("Error activating mod on startup ".concat(e.name,":"),t)})];case 1:return t.sent(),[2]}})},d=i[Symbol.iterator](),h.label=4;case 4:if(s=(w=d.next()).done)return[3,7];return[5,(0,eT.XA)(u())];case 5:h.sent(),h.label=6;case 6:return s=!0,[3,4];case 7:return[3,10];case 8:return p=h.sent(),l=!0,c=p,[3,10];case 9:try{s||null==d.return||d.return()}finally{if(l)throw c}return[7];case 10:return rI.state=Object.entries(null==(r=window.mcraft)||null==(n=r.ui)?void 0:n.registeredReactWrappers).reduce(function(e,t){var n=(0,ek._)(t,2);return e+Object.keys((n[0],n[1])).length},0)!==a,rP.state=!0,[2]}})}),function(){return b.apply(this,arguments)}),rz=(0,tt.sj)({}),rq=(0,tt.sj)({}),rE=(0,tt.sj)({}),rI=(0,tt.sj)({state:!1}),rP=(0,tt.sj)({state:!1}),normalizeRepoUrl=function(e){return e.startsWith("https://")||e.startsWith("http://")?e:e.startsWith("//")?"https:".concat(e):"https://raw.githubusercontent.com/".concat(e,"/master")},rY=(_=(0,eC._)(function(e,t){var n,r,a,o,i=arguments;return(0,eT.Jh)(this,function(s){switch(s.label){case 0:n=!(i.length>2)||void 0===i[2]||i[2],r=i.length>3?i[3]:void 0,s.label=1;case 1:var l;if(s.trys.push([1,14,,15]),l=(0,eC._)(function(n){var r,a,o,i,s,l,c,u,d,w,p,h;return(0,eT.Jh)(this,function(M){switch(M.label){case 0:r=[],a=!0,o=!1,i=void 0,M.label=1;case 1:M.trys.push([1,9,10,11]),s=n[Symbol.iterator](),M.label=2;case 2:if(a=(l=s.next()).done)return[3,8];c=l.value,u=t.name.split(".").pop(),d=!1===e.prefix?u:"string"==typeof e.prefix?"".concat(e.prefix,"/").concat(u):t.name,w=new URL("".concat(d,"/").concat(c),normalizeRepoUrl(e.url).replace(/\/$/,"")+"/").href,M.label=3;case 3:return M.trys.push([3,6,,7]),[4,fetch(w)];case 4:if(!(p=M.sent()).ok)throw Error("Failed to fetch ".concat(w,": ").concat(p.status," ").concat(p.statusText));return[4,p.text()];case 5:return[2,M.sent()];case 6:throw M.sent();case 7:return a=!0,[3,2];case 8:return[3,11];case 9:return h=M.sent(),o=!0,i=h,[3,11];case 10:try{a||null==s.return||s.return()}finally{if(o)throw i}return[7];case 11:return console.warn("[".concat(t.name,"] Error installing component of ").concat(n[0],": ").concat(r.join(", "))),[2,void 0]}})}),a=function(e){return l.apply(this,arguments)},!t.stylesGlobal)return[3,3];return[4,null==r?void 0:r.executeWithMessage("Downloading ".concat(t.name," styles"),(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,a(["global.css"])];case 1:return t.stylesGlobal=e.sent(),[2]}})}))];case 2:s.sent(),s.label=3;case 3:if(!t.scriptMainUnstable)return[3,5];return[4,null==r?void 0:r.executeWithMessage("Downloading ".concat(t.name," script"),(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,a(["mainUnstable.js"])];case 1:return t.scriptMainUnstable=e.sent(),[2]}})}))];case 4:s.sent(),s.label=5;case 5:if(!t.threeJsBackend)return[3,7];return[4,null==r?void 0:r.executeWithMessage("Downloading ".concat(t.name," three.js backend"),(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,a(["three.js"])];case 1:return t.threeJsBackend=e.sent(),[2]}})}))];case 6:s.sent(),s.label=7;case 7:if(!t.serverPlugin)return[3,9];if(t.name.endsWith(".disabled"))throw Error("Mod name ".concat(t.name," can't end with .disabled"));return[4,null==r?void 0:r.executeWithMessage("Downloading ".concat(t.name," server plugin"),(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,a(["serverPlugin.js"])];case 1:return t.serverPlugin=e.sent(),[2]}})}))];case 8:s.sent(),s.label=9;case 9:if(!n)return[3,12];if(!(null==(o=window.loadedMods)?void 0:o[t.name]))return[3,10];return rq[t.name]=!0,[3,12];case 10:return[4,rk(t,"install")];case 11:s.sent(),s.label=12;case 12:return[4,saveClientModData(t)];case 13:return s.sent(),delete rz[t.name],[3,15];case 14:throw s.sent();case 15:return[2]}})}),function(e,t){return _.apply(this,arguments)}),rO=(L=(0,eC._)(function(e){var t,n,r,a,o,i,s;return(0,eT.Jh)(this,function(l){switch(l.label){case 0:t=!0,n=!1,r=void 0,l.label=1;case 1:l.trys.push([1,6,7,8]),a=function(){var t,n;return(0,eT.Jh)(this,function(r){switch(r.label){case 0:return[4,getPlugin((t=i.value).name)];case 1:return(null==(n=r.sent())?void 0:n.version)&&(0,rj.gt)(t.version,n.version)&&(rz[t.name]=[n.version,t.version],"always"!==e2.YM.modsAutoUpdate||e.autoUpdateOverride||n.autoUpdateOverride||rY(e,t).catch(function(e){console.error("Error updating mod ".concat(t.name,":"),e)})),[2]}})},o=e.packages[Symbol.iterator](),l.label=2;case 2:if(t=(i=o.next()).done)return[3,5];return[5,(0,eT.XA)(a())];case 3:l.sent(),l.label=4;case 4:return t=!0,[3,2];case 5:return[3,8];case 6:return s=l.sent(),n=!0,r=s,[3,8];case 7:try{t||null==o.return||o.return()}finally{if(n)throw r}return[7];case 8:return[2]}})}),function(e){return L.apply(this,arguments)}),rR=(C=(0,eC._)(function(e,t){var n,r,a,o,i=arguments;return(0,eT.Jh)(this,function(s){switch(s.label){case 0:i.length>2&&void 0!==i[2]&&i[2],n=normalizeRepoUrl(t).replace(/\/$/,"")+"/mcraft-repo.json",s.label=1;case 1:var l;return s.trys.push([1,4,,5]),[4,fetch(n).then((l=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){return[2,e.json()]})}),function(e){return l.apply(this,arguments)}))];case 2:if(!(a=s.sent()).packages)throw Error("No packages field in the response json of the repository: ".concat(n));return[4,getRepository(e)];case 3:return a.autoUpdateOverride=null==(r=s.sent())?void 0:r.autoUpdateOverride,a.url=e,saveRepository(a),rV.counter++,[2,!0];case 4:return o=s.sent(),console.warn("Error fetching repository (trying other mirrors) ".concat(t,":"),o),[2,!1];case 5:return[2]}})}),function(e,t){return C.apply(this,arguments)}),rB=(j=(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,getAllRepositories()];case 1:var t;return[4,Promise.all(e.sent().map((t=(0,eC._)(function(e){var t,n,r,a,o,i,s,l,c,u,d;return(0,eT.Jh)(this,function(w){switch(w.label){case 0:t=[e.url].concat((0,eE._)(e.mirrorUrls||[])),n=!0,r=!1,a=void 0,w.label=1;case 1:w.trys.push([1,6,7,8]),o=t.entries()[Symbol.iterator](),w.label=2;case 2:if(n=(i=o.next()).done)return[3,5];return l=(s=(0,ek._)(i.value,2))[0],c=s[1],u=l===t.length-1,[4,rR(e.url,c,!u)];case 3:if(w.sent())return[3,5];w.label=4;case 4:return n=!0,[3,2];case 5:return[3,8];case 6:return d=w.sent(),r=!0,a=d,[3,8];case 7:try{n||null==o.return||o.return()}finally{if(r)throw a}return[7];case 8:return[2]}})}),function(e){return t.apply(this,arguments)})))];case 2:return e.sent(),tm.e1.modsAutoUpdateLastCheck=Date.now(),[2]}})}),function(){return j.apply(this,arguments)}),rU=(D=(0,eC._)(function(){var e,t,n,r,a,o;return(0,eT.Jh)(this,function(i){switch(i.label){case 0:return[4,rQ()];case 1:i.sent(),e=!0,t=!1,n=void 0,i.label=2;case 2:return i.trys.push([2,8,9,10]),[4,getAllRepositories()];case 3:r=i.sent()[Symbol.iterator](),i.label=4;case 4:if(e=(a=r.next()).done)return[3,7];return[4,rO(a.value)];case 5:i.sent(),i.label=6;case 6:return e=!0,[3,4];case 7:return[3,10];case 8:return o=i.sent(),t=!0,n=o,[3,10];case 9:try{e||null==r.return||r.return()}finally{if(t)throw n}return[7];case 10:return[2]}})}),function(){return D.apply(this,arguments)}),rQ=(x=(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:if("never"===e2.YM.modsAutoUpdate||(e=tm.e1.modsAutoUpdateLastCheck)&&Date.now()-e<36e5*e2.YM.modsUpdatePeriodCheck)return[2];return[4,rB()];case 1:return t.sent(),[2]}})}),function(){return x.apply(this,arguments)}),rF=(k=(0,eC._)(function(e,t,n){var r,a;return(0,eT.Jh)(this,function(o){switch(o.label){case 0:return null==n||n.beginStage("main","Installing ".concat(t)),[4,getRepository(e)];case 1:if(!(r=o.sent()))throw Error("Repository ".concat(e," not found"));if(!(a=r.packages.find(function(e){return e.name===t})))throw Error("Mod ".concat(t," not found in repository ").concat(e));return[4,rY(r,a,void 0,n)];case 2:return o.sent(),null==n||n.endStage("main"),[2]}})}),function(e,t,n){return k.apply(this,arguments)}),rW=(N=(0,eC._)(function(e){var t,n;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:return[4,(0,tL.un)("Uninstall mod ".concat(e,"?"),["Yes"])];case 1:if(!n.sent())return[2];return[4,deletePlugin(e)];case 2:return n.sent(),null!=(t=window).loadedMods||(t.loadedMods={}),window.loadedMods[e]&&(delete window.loadedMods[e],rq[e]=!0),delete rE[e],[2]}})}),function(e){return N.apply(this,arguments)}),rJ=(T=(0,eC._)(function(e,t){var n,r,a,o,i;return(0,eT.Jh)(this,function(s){switch(s.label){case 0:return[4,getPlugin(e)];case 1:if(!(n=s.sent()))throw Error("Mod ".concat(e," not found"));if(!t)return[3,4];if(n.enabled=!0,null==(r=window.loadedMods)?void 0:r[n.name])return[3,3];return[4,rk(n,"manual")];case 2:s.sent(),s.label=3;case 3:return[3,5];case 4:n.enabled=!1,(null==(a=window.loadedMods)?void 0:a[n.name])&&((null==(o=window.loadedMods[n.name])?void 0:o.threeJsBackendModule)&&(window.loadedMods[n.name].threeJsBackendModule.deactivate(),delete window.loadedMods[n.name].threeJsBackendModule),(null==(i=window.loadedMods[n.name])?void 0:i.mainUnstableModule)&&(window.loadedMods[n.name].mainUnstableModule.deactivate(),delete window.loadedMods[n.name].mainUnstableModule),0===Object.keys(window.loadedMods[n.name]).length&&delete window.loadedMods[n.name]),s.label=5;case 5:return[4,saveClientModData(n)];case 6:return s.sent(),[2]}})}),function(e,t){return T.apply(this,arguments)}),rV=(0,tt.sj)({counter:0}),rG=(S=(0,eC._)(function(){var e,t,n,r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:return[4,getAllRepositories()];case 1:return e=a.sent(),[4,getAllMods()];case 2:return n=(t=a.sent()).filter(function(t){return!e.some(function(e){return e.packages.some(function(e){return e.name===t.name})})}),r=function(e){return e.map(function(e){var n,r;return(0,eD._)((0,ej._)({},e),{installed:t.find(function(t){return t.name===e.name}),activated:!!(null==(n=window.loadedMods)?void 0:n[e.name]),installedVersion:null==(r=t.find(function(t){return t.name===e.name}))?void 0:r.version,canBeActivated:e.scriptMainUnstable||e.stylesGlobal})})},[2,{repos:e.map(function(e){return(0,eD._)((0,ej._)({},e),{packages:r(e.packages)})}),modsWithoutRepos:r(n)}]}})}),function(){return S.apply(this,arguments)}),rH=(z=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,(0,tL.un)("Remove repository? Installed mods wont be automatically removed.",["Yes"])];case 1:if(!t.sent())return[2];return[4,deleteRepository(e)];case 2:return t.sent(),rV.counter++,[2]}})}),function(e){return z.apply(this,arguments)}),rZ=(q=(0,eC._)(function(){var e,t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:return[4,getAllRepositories()];case 1:return e=n.sent(),[4,(0,tL.un)("Select repository to remove",e.map(function(e){return e.url}))];case 2:if(!(t=n.sent()))return[2];return[4,rH(t)];case 3:return n.sent(),[2]}})}),function(){return q.apply(this,arguments)}),rK=(E=(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,(0,tL.Pl)("Add repository",{url:{type:"text",label:"Repository URL or slug",placeholder:"github-owner/repo-name"}})];case 1:if(!(e=t.sent().url))return[2];return[4,rR(e,e)];case 2:return t.sent(),[2]}})}),function(){return E.apply(this,arguments)}),rX=(I=(0,eC._)(function(e){var t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:return[4,getPlugin(e)];case 1:if(!(t=n.sent()))return[2,null];if(t.serverPlugin)return[2,{content:t.serverPlugin,version:t.version}];return[2,null]}})}),function(e){return I.apply(this,arguments)}),r$=(P=(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,getAllMods()];case 1:return[2,e.sent().filter(function(e){return e.serverPlugin})]}})}),function(){return P.apply(this,arguments)});window.inspectInstalledMods=getAllMods;var getAllModsModifiableFields=function(){return[{field:"scriptMainUnstable",label:"Main Thread Script (unstable)",language:"js"},{field:"stylesGlobal",label:"Global CSS Styles",language:"css"},{field:"threeJsBackend",label:"Three.js Renderer Backend Thread",language:"js"},{field:"serverPlugin",label:"Built-in server plugin",language:"js"}]},getModSettingsProxy=function(e){if(!e.settings)return tt.sj({});var t=tt.sj({}),n=!0,r=!1,a=void 0;try{for(var o,i=Object.entries(e.settings)[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s,l=(0,ek._)(o.value,2),c=l[0],u=l[1];t[c]=null!=(s=e2.YM["mod-".concat(e.name,"-").concat(c)])?s:u.default}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}return tt.Ld(t,function(t){var n=!0,r=!1,a=void 0;try{for(var o,i=t[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=o.value,l=(0,ek._)(s,3),c=(l[0],l[1]),u=l[2],d=c[0];e2.YM["mod-".concat(e.name,"-").concat(d)]=u}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}}),t},r0=(Y=(0,eC._)(function(e,t,n){var r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,(null==(r=window.loadedMods)?void 0:r[e])[n]()];case 1:return a.sent(),[3,3];case 2:return a.sent(),(0,tE.c0)("Failed to execute ".concat(n),"Problem in ".concat(t," js script of ").concat(e),!0),[3,3];case 3:return[2]}})}),function(e,t,n){return Y.apply(this,arguments)}),r1=n(55920),r3=(O=(0,eC._)(function(){var e,t,n,r,a,o,i,s,l,c,u,d,w,p,h,M,g,m,v,y,A,b,_,L,C;return(0,eT.Jh)(this,function(j){switch(j.label){case 0:return j.trys.push([0,4,,5]),(t=document.createElement("input")).type="file",t.accept=".json",t.click(),[4,new Promise(function(e){t.onchange=function(){var n;(null==(n=t.files)?void 0:n[0])&&e(t.files[0])}})];case 1:return[4,j.sent().text()];case 2:if(!(null==(e=(n=JSON.parse(j.sent()))._about)?void 0:e.includes("Minecraft Web Client"))&&!confirm("This file does not appear to be a Minecraft Web Client profile. Continue anyway?"))return[2];if(0===Object.keys(r=Object.fromEntries(Object.entries({options:{present:!!n.options,description:"Game settings and preferences"},keybindings:{present:!!n.keybindings,description:"Custom key mappings"},servers:{present:!!n.servers,description:"Saved server list"},username:{present:!!n.username,description:"Username"},proxy:{present:!!n.proxy,description:"Selected proxy server"},proxies:{present:!!n.proxies,description:"Global proxies list"},accountTokens:{present:!!n.accountTokens,description:"Account authentication tokens"}}).filter(function(e){var t=(0,ek._)(e,2);return(t[0],t[1]).present}).map(function(e){var t=(0,ek._)(e,2);return[t[0],t[1]]}))).length)return alert("No compatible data found in the imported file."),[2];return[4,(0,tL.Pl)("Select Data to Import",(0,ej._)({mergeData:{type:"checkbox",label:"Merge with existing data (uncheck to remove old data)",defaultValue:!0}},Object.fromEntries(Object.entries(r).map(function(e){var t=(0,ek._)(e,2);return[t[0],{type:"checkbox",label:t[1].description,defaultValue:!0}]}))))];case 3:if(!(a=j.sent()))return[2];if(o=[],i=a.mergeData,a.options&&n.options){if(i)Object.assign(e2.YM,n.options);else{s=!0,l=!1,c=void 0;try{for(u=Object.keys(e2.YM)[Symbol.iterator]();!(s=(d=u.next()).done);s=!0)(w=d.value)in n.options&&(e2.YM[w]=n.options[w])}catch(e){l=!0,c=e}finally{try{s||null==u.return||u.return()}finally{if(l)throw c}}}o.push("settings")}if(a.keybindings&&n.keybindings){if(i)Object.assign(t2,n.keybindings);else{p=!0,h=!1,M=void 0;try{for(g=Object.keys(t2)[Symbol.iterator]();!(p=(m=g.next()).done);p=!0)v=m.value,delete t2[v]}catch(e){h=!0,M=e}finally{try{p||null==g.return||g.return()}finally{if(h)throw M}}Object.assign(t2,n.keybindings)}o.push("keybindings")}return a.servers&&n.servers&&(i&&tm.e1.serversList?(y=new Set(tm.e1.serversList.map(function(e){return e.ip})),A=n.servers.filter(function(e){return!y.has(e.ip)}),tm.e1.serversList=(0,eE._)(tm.e1.serversList).concat((0,eE._)(A))):tm.e1.serversList=n.servers,o.push("servers")),a.username&&n.username&&(tm.e1.username=n.username,o.push("username")),(a.proxy&&n.proxy||a.proxies&&n.proxies)&&(tm.e1.proxiesData||(tm.e1.proxiesData={proxies:[],selected:""}),a.proxies&&n.proxies&&(i?(b=new Set((0,eE._)(tm.e1.proxiesData.proxies).concat((0,eE._)(n.proxies))),tm.e1.proxiesData.proxies=(0,eE._)(b)):tm.e1.proxiesData.proxies=n.proxies,o.push("proxies list")),a.proxy&&n.proxy&&(tm.e1.proxiesData.selected=n.proxy,o.push("selected proxy"))),a.accountTokens&&n.accountTokens&&(i&&tm.e1.authenticatedAccounts?(_=new Set(tm.e1.authenticatedAccounts.map(function(e){return e.username})),L=n.accountTokens.filter(function(e){return!_.has(e.username)}),tm.e1.authenticatedAccounts=(0,eE._)(tm.e1.authenticatedAccounts).concat((0,eE._)(L))):tm.e1.authenticatedAccounts=n.accountTokens,o.push("account tokens")),alert("Profile imported successfully! Imported data: ".concat(o.join(", "),".\nYou may need to reload the page for some changes to take effect.")),[3,5];case 4:return console.error("Failed to import profile:",C=j.sent()),alert("Failed to import profile: "+(C.message||C)),[3,5];case 5:return[2]}})}),function(){return O.apply(this,arguments)}),r2=(R=(0,eC._)(function(){var e,t,n,r,a,o,i;return(0,eT.Jh)(this,function(s){switch(s.label){case 0:return[4,(0,tL.Pl)("Export Profile",{profileName:{type:"text"},exportSettings:{type:"checkbox",defaultValue:!0},exportKeybindings:{type:"checkbox",defaultValue:!0},exportServers:{type:"checkbox",defaultValue:!0},saveUsernameAndProxy:{type:"checkbox",defaultValue:!0},exportGlobalProxiesList:{type:"checkbox",defaultValue:!1},exportAccountTokens:{type:"checkbox",defaultValue:!1}})];case 1:return n=s.sent(),r="".concat(n.profileName?"".concat(n.profileName,"-"):"","web-client-profile.json"),a=new Blob([JSON.stringify((0,ej._)({_about:"Minecraft Web Client (mcraft.fun) Profile"},n.exportSettings?{options:(0,e2.Zb)()}:{},n.exportKeybindings?{keybindings:t2}:{},n.exportServers?{servers:tm.e1.serversList}:{},n.saveUsernameAndProxy?{username:tm.e1.username,proxy:null==(e=tm.e1.proxiesData)?void 0:e.selected}:{},n.exportGlobalProxiesList?{proxies:null==(t=tm.e1.proxiesData)?void 0:t.proxies}:{},n.exportAccountTokens?{accountTokens:tm.e1.authenticatedAccounts}:{}),null,2)],{type:"application/json"}),o=URL.createObjectURL(a),(i=document.createElement("a")).href=o,i.download=r,i.click(),URL.revokeObjectURL(o),[2]}})}),function(){return R.apply(this,arguments)}),r5=[e3.ZB,e3.eR],getCurrentGraphicsBackend=function(){var e,t,n="auto"===e2.YM.activeRenderer?r5[0].id:e2.YM.activeRenderer,r=r5.find(function(e){return e.id===n});return{id:n,name:null!=(t=null!=(e=null==r?void 0:r.displayName)?e:n)?t:"",backend:r,noFallback:e2.YM.activeRenderer}},r4=(B=(0,eC._)(function(){var e,t,n;return(0,eT.Jh)(this,function(r){switch(r.label){case 0:if(t=(e=getCurrentGraphicsBackend()).backend,n=e.noFallback,t||n||((0,tE.c0)("No backend found for renderer ".concat(e2.YM.activeRenderer),"Falling back to ".concat(r5[0].id),!0),t=r5[0]),nl.backend&&nl.disconnectBackend(),!t)return[3,2];return[4,nl.loadBackend(t)];case 1:r.sent(),r.label=2;case 2:return modalStackUpdateChecks(),[2]}})}),function(){return B.apply(this,arguments)});window.loadBackend=r4;var r6=(U=(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return setTimeout(function(){r4()}),watchOptionsAfterViewerInit(),(0,e0.VW)(e2.YM,"activeRenderer",(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:if(!("world"===nl.currentDisplay&&bot))return[3,2];return nl.resetBackend(!0),[4,r4()];case 1:t.sent(),e=e2.YM.renderDistance,nl.startWithBot(bot,e),t.label=2;case 2:return[2]}})})),[2]})}),function(){return U.apply(this,arguments)}),animLoop=function(){var e=!0,t=!1,n=void 0;try{for(var r,a=tX[Symbol.iterator]();!(e=(r=a.next()).done);e=!0)(0,r.value)()}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}requestAnimationFrame(animLoop)};requestAnimationFrame(animLoop);var r8={render:[{custom:function(){var e=(0,tJ.R)(e2.YM).activeRenderer,t=(0,tD.useMemo)(function(){return getCurrentGraphicsBackend()},[e]),n=t.name,r=t.id;return(0,tC.jsx)(nI.Z,{label:"Backend: ".concat(n),inScreen:!0,onClick:(0,eC._)(function(){var e,t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:return[4,(0,tL.un)("Change Renderer (Builtin Graphics Backends)",(0,eE._)(r5.map(function(e){var t;return null!=(t=e.displayName)?t:e.id})).concat(["Disable Graphics Rendering"]),{descriptions:r5.map(function(e){return e.description||e.displayName||""}),hoveredOptionIndex:r5.findIndex(function(e){return e.id===r})})];case 1:if(!(e=n.sent()))return[2];return t=r5.find(function(t){var n;return(null!=(n=t.displayName)?n:t.id)===e}).id,e2.YM.activeRenderer=t,[2]}})})})}},{custom:function(){return(0,tC.jsx)("div",{style:{gridColumn:"span 2",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,tC.jsx)("img",{src:ru,alt:"Renderer logo",style:{width:150,objectFit:"contain"}})})}},{custom:function(){var e=(0,tJ.R)(e2.YM).frameLimit,t=(0,ek._)((0,tD.useState)(null),2),n=t[0],r=t[1];return(0,tC.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,tC.jsx)(rp,{style:{width:130},label:"Frame Limit",disabledReason:n?void 0:"press lock button first",unit:e?"fps":"",valueDisplay:e||"VSync",value:e||n+1,min:20,max:n+1,updateValue:function(e){e2.YM.frameLimit=!(e>n)&&e}}),(0,tC.jsx)(nI.Z,{style:{width:20},icon:"pixelarticons:lock-open",onClick:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,(0,td.iG)()];case 1:return r(e.sent()),[2]}})})})]})}},{backgroundRendering:{text:"Background FPS limit"},menuBackgroundMode:{text:"Menu Background"},renderDebug:{}},{custom:function(){return(0,tC.jsx)(Category,{children:"World Settings"})},vanillaLook:{tooltip:"On: Minecraft-style face shading. Off: client’s higher-contrast shading (default)."},rendererWorldPerformance:{text:"World Performance",tooltip:"Controls how many background workers process chunk geometry. Requires app reload to apply.",requiresRestartWhenInGame:!0},rendererMesher:{}},{custom:function(){return(0,tC.jsx)(nI.Z,{label:"Advanced...",onClick:function(){return(0,e5.NZ)("renderer-advanced")},inScreen:!0})}}],"renderer-advanced":[{custom:function(){return(0,tC.jsx)(Category,{children:"Debug Performance"})},renderEntities:{},disableBlockEntityTextures:{text:"No Block Entity Textures",tooltip:"Disables rendering of textures for block entities like signs, banners, heads, and maps"}},{custom:function(){return(0,tC.jsx)(Category,{children:"Other Settings"})},dayCycleAndLighting:{text:"Day Cycle"},newVersionsLighting:{text:"Lighting in Newer Versions"},starfieldRendering:{},keepChunksDistance:{max:5,unit:"",tooltip:"Additional distance to keep the chunks loading before unloading them by marking them as too far"},renderEars:{tooltip:"Enable rendering Deadmau5 ears for all players if their skin contains textures for it"},rendererPerfDebugOverlay:{text:"Performance Debug"}},{custom:function(){return(0,tC.jsx)(nI.Z,{label:"Guide: Disable VSync",onClick:function(){return(0,na.pz)("https://gist.github.com/zardoy/6e5ce377d2b4c1e322e660973da069cd")},inScreen:!0})}}],main:[{fov:{min:30,max:110,unit:""}},{custom:function(){var e=e5.N_.singleplayer||!e5.N_.gameLoaded;return(0,tC.jsx)(OptionSlider,{item:{type:"slider",id:"renderDistance",text:"Render Distance",unit:"",max:e?16:12,min:1}})}},{custom:function(){return(0,tC.jsx)(nI.Z,{label:"Render...",onClick:function(){return(0,e5.NZ)("render")},inScreen:!0})}},{custom:function(){return(0,tC.jsx)(nI.Z,{label:"Interface...",onClick:function(){return(0,e5.NZ)("interface")},inScreen:!0})}},{custom:function(){return(0,tC.jsx)(nI.Z,{label:"Controls...",onClick:function(){return(0,e5.NZ)("controls")},inScreen:!0})}},{custom:function(){return(0,tC.jsx)(nI.Z,{label:"Sound...",onClick:function(){return(0,e5.NZ)("sound")},inScreen:!0})}},{custom:function(){var e=(0,tJ.R)(tq.E3).resourcePackInstalled,t=(0,tJ.R)(e5.rl).usingServerResourcePack,n=(0,tJ.R)(e2.YM).enabledResourcepack;return(0,tC.jsx)(nI.Z,{label:"Resource Pack: ".concat(t?"SERVER ON":e?n?"ON":"OFF":"NO"),inScreen:!0,onClick:(0,eC._)(function(){var e,t,n,r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:if(!tq.E3.resourcePackInstalled)return[3,9];return e=Object.keys,[4,(0,tq.xm)()];case 1:return t=e.apply(Object,[a.sent()])[0],n=[e2.YM.enabledResourcepack?"Disable":"Enable","Uninstall"],[4,(0,tL.un)("Resource Pack ".concat(t," action"),n)];case 2:if(!(r=a.sent()))return[2];if("Disable"!==r)return[3,4];return e2.YM.enabledResourcepack=null,[4,(0,tq.cj)()];case 3:case 5:return a.sent(),[2];case 4:if("Enable"!==r)return[3,6];return e2.YM.enabledResourcepack=t,[4,(0,tq.bP)(t,t,!1,(0,tF.gO)())];case 6:if("Uninstall"!==r)return[3,8];return(0,ti.d8)("Uninstalling texturepack"),[4,(0,tq.i0)()];case 7:a.sent(),(0,ti.d8)(void 0),a.label=8;case 8:return[3,10];case 9:(0,ry.y)("resourcepack"),a.label=10;case 10:return[2]}})})})}},{custom:function(){return(0,tC.jsx)(nI.Z,{label:"Advanced...",onClick:function(){return(0,e5.NZ)("advanced")},inScreen:!0})}},{custom:function(){var e=(0,tJ.R)(e5.N_).appConfig,t=(0,tJ.R)(rz),n=(0,ek._)((0,tD.useState)([]),2),r=n[0],a=n[1];if((0,tD.useEffect)(function(){getAllMods().then(a)},[]),(null==e?void 0:e.showModsButton)===!1)return null;var o=Object.keys(r.filter(function(e){return e.enabled})).length;return(0,tC.jsx)(nI.Z,{label:"Client Mods: ".concat(o," (").concat(Object.keys(t).length,")"),onClick:function(){return(0,e5.K4)({reactType:"mods"})},inScreen:!0})}},{custom:function(){return(0,tC.jsx)(nI.Z,{label:"VR...",onClick:function(){return(0,e5.NZ)("VR")},inScreen:!0})}},{custom:function(){var e=(0,tJ.R)(e5.N_).appConfig;return(null==e?void 0:e.displayLanguageSelector)?(0,tC.jsx)(nI.Z,{label:"Language...",onClick:(0,eC._)(function(){var t,n;return(0,eT.Jh)(this,function(r){switch(r.label){case 0:return[4,(0,tL.un)("Set Language",null!=(t=e.supportedLanguages)?t:[])];case 1:if(!(n=r.sent()))return[2];return e2.YM.language=n.split(" - ")[0],[2]}})}),inScreen:!0}):null}}],interface:[{guiScale:{max:4,min:1,unit:"",delayApply:!0}},{custom:function(){return(0,tC.jsx)(nI.Z,{label:"Inventory & containers...",onClick:function(){return(0,e5.NZ)("inventory")},inScreen:!0})}},{custom:function(){return(0,tC.jsx)(Category,{children:"Chat"})},chatWidth:{max:320,unit:"px"},chatHeight:{max:180,unit:"px"},chatOpacity:{},chatOpacityOpened:{},chatSelect:{text:"Text Select"},chatPingExtension:{},chatAlwaysDisplayTypingIndicator:{text:"Always Show Typing Indicator"}},{custom:function(){return(0,tC.jsx)(Category,{children:"Map"})},showMinimap:{text:"Enable Minimap",enableWarning:"App reload is required to apply this setting"}},{custom:function(){return(0,tC.jsx)(Category,{children:"World"})},highlightBlockColor:{text:"Block Highlight Color"},showHand:{text:"Show Hand"},viewBobbing:{text:"View Bobbing"}},{custom:function(){return(0,tC.jsx)(Category,{children:"Sign Editor"})},autoSignEditor:{text:"Enable Sign Editor"},wysiwygSignEditor:{text:"WYSIWG Editor"}},{custom:function(){return(0,tC.jsx)(Category,{children:"Experimental"})},displayBossBars:{text:"Boss Bars"}},{custom:function(){return(0,tC.jsx)(UiToggleButton,{name:"title",addUiText:!0})}},{custom:function(){return(0,tC.jsx)(UiToggleButton,{name:"chat",addUiText:!0})}},{custom:function(){return(0,tC.jsx)(UiToggleButton,{name:"scoreboard",addUiText:!0})}},{custom:function(){return(0,tC.jsx)(UiToggleButton,{name:"effects",label:"Effects"})}},{custom:function(){return(0,tC.jsx)(UiToggleButton,{name:"indicators",label:"Game Indicators"})}},{custom:function(){return(0,tC.jsx)(UiToggleButton,{name:"hotbar"})}},{custom:function(){return(0,tC.jsx)(Category,{children:"Other"})},displayLoadingMessages:{}}],controls:[{custom:function(){return(0,tC.jsx)(Category,{children:"Keyboard & Mouse"})}},{custom:function(){return(0,tC.jsx)(nI.Z,{inScreen:!0,onClick:function(){(0,e5.K4)({reactType:"keybindings"})},children:"Keybindings"})},mouseSensX:{},mouseSensY:{min:-1,valueText:function(e){return -1===e?"Same as X":"".concat(e)}},mouseRawInput:{tooltip:"Wether to disable any mouse acceleration (MC does it by default). Most probably it is still supported only by Chrome.",disabledReason:document.documentElement.requestPointerLock?void 0:"Your browser does not support pointer lock."},autoFullScreen:{tooltip:"Auto Fullscreen allows you to use Ctrl+W and Escape having to wait/click on screen again.",disabledReason:navigator.keyboard?void 0:"Your browser doesn't support keyboard lock API"},autoExitFullscreen:{tooltip:"Exit fullscreen on escape (pause menu open). But note you can always do it with F11."}},{custom:function(){return(0,tC.jsx)(Category,{children:"Touch Controls"})},alwaysShowMobileControls:{text:"Always Mobile Controls"},autoDisplayRotation:{text:"Auto Landscape Rotation",tooltip:"On portrait screens, automatically rotate the game to landscape layout (same as the rotate button)."},touchButtonsSize:{min:40,disableIf:["touchMovementType","modern"]},touchButtonsOpacity:{min:10,max:90,disableIf:["touchMovementType","modern"]},touchButtonsPosition:{max:80,disableIf:["touchMovementType","modern"]},touchMovementType:{text:"Movement Controls"},touchInteractionType:{text:"Interaction Controls"}},{custom:function(){var e=(0,tJ.R)(e2.YM),t=e.touchInteractionType,n=e.touchMovementType;return(0,tC.jsx)(nI.Z,{label:"Setup Touch Buttons",onClick:function(){return(0,e5.K4)({reactType:"touch-buttons-setup"})},inScreen:!0,disabled:"classic"===t&&"classic"===n})}},{custom:function(){return(0,tC.jsx)(Category,{children:"Auto Jump"})},autoJump:{disableIf:["autoParkour",!0]},autoParkour:{}}],sound:[{volume:{}},{custom:function(){return(0,tC.jsx)(OptionSlider,{valueOverride:e2.YM.enableMusic?void 0:0,onChange:function(e){e2.YM.musicVolume=e},item:{type:"slider",id:"musicVolume",text:"Music Volume",min:0,max:100,unit:"%"}})}},{custom:function(){return(0,tC.jsx)(nI.Z,{label:"Sound Muffler",onClick:function(){return(0,e5.K4)({reactType:"sound-muffler"})},inScreen:!0})}}],VR:[{custom:function(){return(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)("span",{style:{fontSize:9,display:"flex",justifyContent:"center",alignItems:"center"},children:"VR currently has basic support"}),(0,tC.jsx)("div",{})]})},vrSupport:{},vrPageGameRendering:{text:"Page Game Rendering",tooltip:"Wether to continue rendering page even when vr is active."}}],advanced:[{custom:function(){return(0,tC.jsx)(nI.Z,{inScreen:!0,onClick:function(){rd()},children:"Reset settings"})}},{custom:function(){return(0,tC.jsx)(nI.Z,{inScreen:!0,onClick:function(){confirm("Are you sure you want to remove all data (settings, keybindings, servers, username, auth, proxies)?")&&(0,ry.DL)()},children:"Remove all data"})}},{custom:function(){return(0,tC.jsx)(nI.Z,{label:"Export/Import...",onClick:function(){return(0,e5.NZ)("export-import")},inScreen:!0})}},{custom:function(){var e=(0,tJ.R)(tm.e1).cookieStorage;return(0,tC.jsx)(nI.Z,{label:"Storage: ".concat(e?"Synced Cookies":"Local Storage"),onClick:function(){tm.e1.cookieStorage=!e,alert("Reload the page to apply this change")},inScreen:!0})}},{custom:function(){return(0,tC.jsx)(Category,{children:"Server Connection"})}},{serverResourcePacks:{},saveLoginPassword:{tooltip:"Controls whether to save login passwords for servers in this browser memory."}},{custom:function(){var e,t=(0,tJ.R)(e2.YM).serversAutoVersionSelect,n=(0,eE._)((0,eE._)(r1.ZP).sort(function(e,t){return(0,rc.U)(e)-(0,rc.U)(t)})).concat(["latest","auto"]),r=n.indexOf(t);return(0,tC.jsx)("div",{style:{display:"flex",justifyContent:"space-between"},children:(0,tC.jsx)(rp,{style:{width:150},label:"Default Version",title:"First version to try to connect with",value:r,min:0,max:n.length-1,unit:"",valueDisplay:(e=(0,nj.getVersionAutoSelect)(t),"latest"===t?"latest (".concat(e,")"):"auto"===t?"auto (".concat(e,")"):t),updateValue:function(e){e2.YM.serversAutoVersionSelect=n[e]}})})}},{preventBackgroundTimeoutKick:{},preventSleep:{text:"Prevent Device Sleep",disabledReason:navigator.wakeLock?void 0:"Your browser does not support wake lock API",enableWarning:"When connected to a server, prevent PC from sleeping or screen dimming. Useful for purpusely staying AFK for long time. Some events might still prevent this like loosing tab focus or going low power mode."}},{custom:function(){return(0,tC.jsx)(Category,{children:"Developer"})}},{custom:function(){var e=(0,tJ.R)(rA.bl).active;return(0,tC.jsxs)(nI.Z,{inScreen:!0,onClick:function(){rA.bl.active=!e},children:[e?"Stop":"Start"," Packets Replay Logging"]})}},{custom:function(){var e=(0,tJ.R)(rA.bl),t=(e.active,e.hasRecordedPackets);return(0,tC.jsx)(nI.Z,{disabled:!t,inScreen:!0,onClick:function(){(0,rA.G_)()},children:"Download Packets Replay"})}},{packetsLoggerPreset:{text:"Packets Logger Preset"}},{debugContro:{text:"Debug Controls"}},{debugResponseTimeIndicator:{text:"Debug Input Lag"}},{debugChatScroll:{}}],"export-import":[{custom:function(){return(0,tC.jsx)(Category,{children:"Export/Import Data"})}},{custom:function(){return(0,tC.jsx)(nI.Z,{inScreen:!0,onClick:r3,children:"Import Data"})}},{custom:function(){return(0,tC.jsx)(nI.Z,{inScreen:!0,onClick:r2,children:"Export Data"})}},{custom:function(){return(0,tC.jsx)(nI.Z,{inScreen:!0,disabled:!0,children:"Export Worlds"})}},{custom:function(){return(0,tC.jsx)(nI.Z,{inScreen:!0,disabled:!0,children:"Export Resource Pack"})}}],inventory:[{custom:function(){return(0,tC.jsx)(Category,{children:"Inventory & containers"})}},{custom:function(){var e=(0,tJ.R)(e2.YM).inventoryJei,t=!1===e||Array.isArray(e)&&0===e.length,n=t?"Off":!0===e?"On":"Partial";return(0,tC.jsx)(nI.Z,{inScreen:!0,label:"JEI sidebar: ".concat(n),title:"Recipe/item list beside the inventory (chests, crafting, player inventory, etc.). Click toggles JEI fully on or off; Partial means per-game-mode filtering is set (e.g. from advanced settings).",onClick:function(){e2.YM.inventoryJei=!!t}})}},{inventoryNotes:{text:"Side notes panel",tooltip:"Show extra note slots in container UIs where supported."}},{inventoryPlaceholders:{text:"Slot hints",tooltip:"Show placeholder hints in empty inventory slots when supported."}},{inventoryPlayerModel:{text:"Dynamic player preview",tooltip:"Show the rotating player model in the survival inventory when supported."}},{unimplementedContainers:{text:"Try unknown containers",tooltip:"If the server opens a container type the client does not implement yet, show a generic chest-style UI instead of failing."}}]},Category=function(e){var t=e.children;return(0,tC.jsx)("div",{style:{fontSize:9,textAlign:"center",gridColumn:"span 2"},children:t})},UiToggleButton=function(e){var t=e.name,n=e.addUiText,r=e.label,a=void 0===r?(0,rl.noCase)(t):r,o=(0,tJ.R)(e2.YM).disabledUiParts,i=o.includes(t);return void 0!==n&&n&&(a="".concat(a," UI")),(0,tC.jsxs)(nI.Z,{inScreen:!0,onClick:function(){var e=i?o.filter(function(e){return e!==t}):(0,eE._)(o).concat([t]);e2.YM.disabledUiParts=e},children:[i?"Enable":"Disable"," ",a]})},optionValueToType=function(e,t){var n=to.FP[t];return"boolean"==typeof e||(null==n?void 0:n.possibleValues)&&n.possibleValues.length>0?"toggle":"number"==typeof e?"slider":"string"==typeof e?"element":void 0},r9=Object.fromEntries(Object.entries(r8).map(function(e){var t=(0,ek._)(e,2);return[t[0],t[1].flatMap(function(e){return Object.entries(e).map(function(e){var t=(0,ek._)(e,2),n=t[0],r=t[1],a=optionValueToType(e2.YM[n],n);return(0,ej._)({id:"custom"===n?void 0:n,type:a},"custom"===n?{type:"element",render:r}:(0,ej._)({},r))})})]}));function OptionsGroup(e){var t=e.group,n=e.backButtonAction,r=r9[t],a="main"===t?"Settings":"".concat((0,rs.Q)(t.replaceAll("-"," "))," Settings");return(0,tC.jsx)(rv,{items:r,title:a,backButtonAction:n})}function OptionsRenderApp(){(0,tN.uM)("options-*");var e,t=(null!=(e=(0,tJ.R)(e5.M).at(-1))?e:{}).reactType;if(null==t?void 0:t.startsWith("options-")){var n=t.slice(8);return(0,tC.jsx)(OptionsGroup,{group:n,backButtonAction:e5.kJ})}}n(52691);var r7=n(13432),ae=n(33634),at=/^https?:\/\//,an="minecraft_splash_text_cache",limitWords=function(e){var t=e.split(/\s+/);return t.length<=5?e:t.slice(0,5).join(" ")+"..."},isRemoteSplashText=function(e){return!!e&&at.test(e)},ar=(Q=(0,eC._)(function(e){var t,n,r,a,o;return(0,eT.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,7,,8]),t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,fetch(e,{signal:t.signal})];case 1:if(r=i.sent(),clearTimeout(n),!r.ok)throw Error("Failed to fetch splash text: ".concat(r.statusText));a=r.clone(),i.label=2;case 2:return i.trys.push([2,4,,6]),[4,r.json()];case 3:if((void 0===(o=i.sent())?"undefined":(0,eN._)(o))==="object"&&null!==o){if(o.title)return[2,limitWords(o.title)];if(o.text)return[2,limitWords(o.text)];if(o.message)return[2,limitWords(o.message)];return[2,limitWords(JSON.stringify(o))]}return[2,limitWords(String(o))];case 4:return i.sent(),[4,a.text()];case 5:return[2,limitWords(i.sent().trim())];case 6:return[3,8];case 7:return console.error("Error loading remote splash text:",i.sent()),[2,"Failed to load splash text!"];case 8:return[2]}})}),function(e){return Q.apply(this,arguments)}),cacheSourceUrl=function(e){localStorage.setItem("minecraft_splash_url",e)},clearSplashCache=function(){localStorage.removeItem(an)},cacheSplashText=function(e){localStorage.setItem(an,e)};let aa={root:"root-ZQcBnP","game-title":"game-title-HS2Boh",gameTitle:"game-title-HS2Boh",minec:"minec-LtvUe5",minecraft:"minecraft-WAwwet",raft:"raft-pGttvN",edition:"edition-X71qt9",splash:"splash-T86ZOq",splashAnim:"splashAnim-hJpV1p",menu:"menu-AViyuB","menu-row":"menu-row-Ua3i92",menuRow:"menu-row-Ua3i92","bottom-info":"bottom-info-XUJ4_b",bottomInfo:"bottom-info-XUJ4_b","product-description":"product-description-mpFNW4",productDescription:"product-description-mpFNW4","product-link":"product-link-iL2GHi",productLink:"product-link-iL2GHi","maps-provider":"maps-provider-JGaNCh",mapsProvider:"maps-provider-JGaNCh"};function ButtonWithTooltip(e){var t=e.initialTooltip,n=e.alwaysTooltip,r=(0,ex._)(e,["initialTooltip","alwaysTooltip"]),a=t.localStorageKey,o=void 0===a?"firstTimeTooltip":a,i=t.offset,s=(0,ek._)((0,tD.useState)(n||!o||"false"!==localStorage[o]),2),l=s[0],c=s[1];(0,tD.useEffect)(function(){var e,hide=function(){o&&(localStorage[o]="false",c(!1))};return l&&o&&(e=setTimeout(function(){hide()},1e4)),function(){e&&clearTimeout(e),hide()}},[]);var u=(0,tD.useRef)(null),d=(0,rw.YF)({middleware:[(0,rf.x7)({element:u}),(0,rf.cv)(7+(void 0===i?0:i))],placement:t.placement}),w=d.refs,p=d.floatingStyles,h=d.context;return(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)(nI.Z,(0,eD._)((0,ej._)({},r),{rootRef:w.setReference})),(0,tC.jsxs)("div",{ref:w.setFloating,style:(0,eD._)((0,ej._)({},p),{background:"rgba(0, 0, 0, 0.3)",fontSize:8,pointerEvents:"none",userSelect:"text",padding:"2px 4px",opacity:+!!l,transition:"opacity 0.3s ease-in-out",textShadow:"1px 1px 2px BLACK",zIndex:11}),children:[n||t.content,(0,tC.jsx)(rw.Y$,{ref:u,context:h,style:{opacity:.7}})]})]})}var useLongPress_preventDefault=function(e){"touches"in e&&e.touches.length<2&&e.preventDefault&&e.preventDefault()};let react_useLongPress=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.shouldPreventDefault,a=void 0!==r&&r,o=n.delay,i=void 0===o?300:o,s=(0,ek._)((0,tD.useState)(!1),2),l=s[0],c=s[1],u=(0,tD.useRef)(),d=(0,tD.useRef)(null),w=(0,tD.useCallback)(function(t){a&&t.target&&(t.target.addEventListener("touchend",useLongPress_preventDefault,{passive:!1}),d.current=t.target),u.current=window.setTimeout(function(){e(),c(!0)},i)},[e,i,a]),p=(0,tD.useCallback)(function(e){u.current&&(clearTimeout(u.current),u.current=void 0),c(!1),a&&d.current&&(d.current.removeEventListener("touchend",useLongPress_preventDefault),d.current=null)},[a,t,l]);return{onMouseDown:function(e){return w(e)},onTouchStart:function(e){return w(e)},onMouseUp:function(e){return p(e)},onMouseLeave:function(e){return p(e)},onTouchEnd:function(e){return p(e)},onClick:function(e){t()}}};var DiscordButton=function(e){var t=e.text,n=e.style,r=[{text:"Support Official Server (mcraft.fun)",clickHandler:function(){return(0,na.pz)("https://discord.mcraft.fun")}},{text:"Community Server (PrismarineJS)",clickHandler:function(){return(0,na.pz)("https://discord.gg/prismarinejs-413438066984747026")}}];return(0,tC.jsx)(DropdownButton,{text:null!=t?t:"Discord",style:n,links:r})},DropdownButton=function(e){var t=e.text,n=e.style,r=e.links,a=(0,ek._)((0,tD.useState)(!1),2),o=a[0],i=a[1],s=(0,rw.YF)({open:o,onOpenChange:i,middleware:[(0,rf.X5)()]}),l=s.refs,c=s.floatingStyles,u=(0,eD._)((0,ej._)({},c),{background:"rgba(0, 0, 0, 0.3)",fontSize:8,userSelect:"text",padding:"2px 4px",opacity:1,transition:"opacity 0.3s ease-in-out",textShadow:"1px 1px 2px BLACK",display:"flex",flexDirection:"column",zIndex:11});return(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsxs)(nI.Z,{style:null!=n?n:{position:"relative",width:"98px"},rootRef:l.setReference,onClick:function(){i(!o)},children:[t,(0,tC.jsx)(nY.Z,{styles:{position:"absolute",top:"5px",right:"5px"},iconName:o?nY.K["chevron-up"]:nY.K["chevron-down"]})]}),o&&(0,tC.jsx)("div",{ref:l.setFloating,style:u,children:r.map(function(e){return(0,tC.jsx)(nI.Z,{style:{width:"98px",fontSize:"7px"},onClick:e.clickHandler,children:e.text},e.text)})})]})};let ao={pause_container:"pause_container-lI8D2f",row:"row-IKim4t"};function PauseLinkButtonsInner(){var e=(0,tJ.R)(e5.N_).appConfig,t=null==e?void 0:e.pauseLinks;if(!t)return null;var renderButton=function(e,t,n){if("discord"===e.type)return(0,tC.jsx)(DiscordButton,{style:t,text:e.text},n);if("github"===e.type){var r;return(0,tC.jsx)(nI.Z,{className:"button",style:t,onClick:function(){return(0,td.G)()},children:null!=(r=e.text)?r:"GitHub"},n)}return"url"===e.type&&e.text?(0,tC.jsx)(nI.Z,{className:"button",style:t,onClick:function(){return(0,na.pz)(e.url)},children:e.text},n):null};return(0,tC.jsx)(tC.Fragment,{children:t.map(function(e,t){var n={width:204/e.length-4*(e.length>1)+"px"};return(0,tC.jsx)("div",{className:ao.row,children:e.map(function(e,t){return renderButton(e,n,t)})},t)})})}function PauseLinkButtons(){return(0,tC.jsx)(nP.SV,{renderError:function(e){return console.error(e),null},children:(0,tC.jsx)(PauseLinkButtonsInner,{})})}function CreditsBookButton(){return(0,tC.jsx)("button",{className:"creditsButton-u6wIA8",onClick:function(){(0,e5.K4)({reactType:"credits-about"})},"aria-label":"Credits",title:"Credits",children:(0,tC.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,tC.jsx)("path",{d:"M15.4375 15.1238L15.625 15.3113V16.8113L15.4375 16.9988H14.6875L14.5 16.8113V16.4363L14.3125 16.2488H12.8125L12.625 16.0613V15.3113L12.4375 15.1238H10.9375L10.75 14.9363V14.1863L10.5625 13.9988H7.9375L7.75 14.1863V14.9363L7.5625 15.1238H6.0625L5.875 15.3113V16.0613L5.6875 16.2488H4.1875L4 16.4363V16.8113L3.8125 16.9988H3.0625L2.875 16.8113V15.3113L3.0625 15.1238H3.4375L3.625 14.9363V13.8113L3.8125 13.6238H4.1875L4.375 13.4363V11.9363L4.5625 11.7488H4.9375L5.125 11.5613V10.0613L4.9375 9.87384H4.1875L4 9.68634V8.93634L3.8125 8.74884H2.6875L2.5 8.56134V7.81134L2.3125 7.62384H1.1875L1 7.43634V6.68634L1.1875 6.49884H6.63738L6.82488 6.31134V5.61543V4.60586L7.01238 4.41836H7.5625L7.75 4.23086V2.6875L7.9375 2.5H8.43022L8.61772 2.3125V1.1875L8.80522 1H9.66735L9.85485 1.1875V2.3125L10.0424 2.5H10.5625L10.75 2.6875V4.23086L10.9375 4.41836H11.4375L11.625 4.60586V6.31134L11.8125 6.49884H17.3125L17.5 6.68634V7.43634L17.3125 7.62384H16.1875L16 7.81134V8.56134L15.8125 8.74884H14.6875L14.5 8.93634V9.68634L14.3125 9.87384H13.5625L13.375 10.0613V11.5613L13.5625 11.7488H13.9375L14.125 11.9363V13.4363L14.3125 13.6238H14.6875L14.875 13.8113V14.9363L15.0625 15.1238H15.4375Z",fill:"#FFD700"})})})}var ai=/^https?:\/\//;let as=(0,nO.K)(function(e){var t=e.connectToServerAction,n=e.mapsProvider,r=e.singleplayerAction,a=e.optionsAction,o=(e.githubAction,e.openFileAction),i=e.versionText,s=e.onVersionTextClick,l=e.versionStatus,c=e.versionTitle,u=e.onVersionStatusClick,d=e.bottomRightLinks,w=e.singleplayerAvailable,p=(0,tJ.R)(e5.N_).appConfig,h=(0,tD.useMemo)(function(){var e=localStorage.getItem(an),t=null==p?void 0:p.splashText,n=t&&isRemoteSplashText(t),r=n?t:t||"";if(localStorage.getItem("minecraft_splash_url")!==r)clearSplashCache(),cacheSourceUrl(r);else if(e)return e;return!n&&t&&""!==t.trim()?(cacheSplashText(t),t):(null==p?void 0:p.splashTextFallback)||""},[]);(0,tD.useEffect)(function(){var e=null==p?void 0:p.splashText;e&&isRemoteSplashText(e)&&ar(e).then(function(e){e&&""!==e.trim()&&!e.includes("Failed to load")&&cacheSplashText(e)}).catch(function(e){console.error("Failed to preload splash text for next session:",e)})},[null==p?void 0:p.splashText]),(null==d?void 0:d.trim())||(d=void 0);var M=null==d?void 0:d.split(/;|\n/g).map(function(e){var t=e.split(":");return[t[0],t.slice(1).join(":")]}),g=react_useLongPress(function(){window.location.href=window.location.pathname+"?sp=1"},function(){return null==r?void 0:r(null)},{delay:500}),m=react_useLongPress(function(){var e=new Date("2026-07-12T10:00:00.000Z"),t=e?Math.round((Date.now()-e.getTime())/36e5):null;alert("BUILD DATE:\n".concat((null==e?void 0:e.toLocaleString())||"Development build").concat(t?"\nBuilt ".concat(t," hours ago"):""))},function(){return null==s?void 0:s()}),v=react_useLongPress(function(){},function(){return null==t?void 0:t(null)},{delay:500});return(0,tC.jsxs)("div",{className:aa.root,children:[(0,tC.jsx)("div",{className:aa["game-title"],children:(0,tC.jsxs)("div",{className:aa.minecraft,children:[(0,tC.jsx)("div",{className:aa.edition}),(0,tC.jsx)("span",{className:aa.splash,children:h})]})}),(0,tC.jsxs)("div",{className:aa.menu,children:[(0,tC.jsx)(ButtonWithTooltip,(0,eD._)((0,ej._)({initialTooltip:{content:"Connect to Java servers!",placement:"top"}},v),{"data-test-id":"servers-screen-button",children:"Connect to server"})),(0,tC.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,tC.jsx)(ButtonWithTooltip,(0,eD._)((0,ej._)({style:{width:150}},g),{"data-test-id":"singleplayer-button",disabled:!(void 0===w||w),initialTooltip:{content:"Create worlds and play offline",placement:"left",offset:-40},children:"Singleplayer"})),(0,tC.jsx)(ButtonWithTooltip,{disabled:!n,icon:nY.K.map,initialTooltip:{content:"Explore maps to play from provider!",placement:"top-start"},onClick:function(){return n&&(0,na.pz)(ai.test(n)?n:"https://"+n,!1)}}),(0,tC.jsx)(ButtonWithTooltip,{"data-test-id":"select-file-folder",icon:nY.K.folder,onClick:o,initialTooltip:{content:"Load any Java world save"+((0,td.kl)()?"":" (zip)!"),placement:"bottom-start"}})]}),(0,tC.jsx)(nI.Z,{onClick:a,children:"Options"}),(0,tC.jsx)("div",{className:aa["menu-row"],children:(0,tC.jsx)(PauseLinkButtons,{})}),(0,tC.jsx)(CreditsBookButton,{})]}),(0,tC.jsxs)("div",{className:aa["bottom-info"],children:[(0,tC.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,tC.jsx)("span",(0,eD._)((0,ej._)({style:{fontSize:10,color:"gray"}},m),{children:i})),(0,tC.jsxs)("span",{title:"".concat(c," (click to reload)"),onClick:u,className:aa["product-info"],children:[(0,tC.jsx)("span",{style:{position:"absolute",left:"-9999px",width:"1px",height:"1px",overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)",whiteSpace:"nowrap"},children:"Prismarine Web Client"}),"V2 Presented by Sandexzx ",l]})]}),(0,tC.jsxs)("span",{className:aa["product-description"],children:[(0,tC.jsx)("div",{className:aa["product-link"],children:null==M?void 0:M.map(function(e,t,n){var r=(0,ek._)(e,2),a=r[0],o=r[1];o.startsWith("http")||(o="https://".concat(o));var i=o;return(0,tC.jsxs)("div",{style:{color:"lightgray",fontSize:8},children:[(0,tC.jsx)("a",{style:{whiteSpace:"nowrap",cursor:"pointer"},onClick:function(e){e.preventDefault(),(0,na.pz)(i,!1)},children:a},a),t0&&void 0!==a[0]&&a[0],o.label=1;case 1:return o.trys.push([1,9,,10]),[4,navigator.serviceWorker.getRegistration()];case 2:if(!(t=o.sent()))return[3,6];return[4,null==(n=window.clients)?void 0:n.matchAll()];case 3:return[4,Promise.all((o.sent()||[]).map(function(e){return e.postMessage("SKIP_WAITING")}))];case 4:return o.sent(),t.waiting&&t.waiting.postMessage("SKIP_WAITING"),[4,Promise.race([t.unregister(),new Promise(function(e,t){setTimeout(function(){return t(Error("SW unregister timeout"))},3e3)})]).catch(function(e){console.warn("SW unregister error:",e),isMainMenu()&&alert("Failed to unregister SW: "+e)})];case 5:o.sent(),o.label=6;case 6:if(!e)return[3,8];return[4,new Promise(function(e){setTimeout(e,2e3)})];case 7:o.sent(),o.label=8;case 8:if(!isMainMenu())return[2];return e?(sessionStorage.justReloaded=!1,location.search="?update=true"):(window.justReloaded=!0,sessionStorage.justReloaded=!0,window.location.reload()),[3,10];case 9:return console.error("Failed to refresh app:",r=o.sent()),isMainMenu()||(alert("Critical error on refreshApp: "+r),window.location.reload()),[3,10];case 10:return[2]}})}),function(){return F.apply(this,arguments)}),ac=(0,tt.sj)({serviceWorkerLoaded:!1}),au=!1;let ad=(0,nO.K)(function(){var e=(0,tJ.R)(e5.M).length,t=(0,tJ.R)(e5.N_),n=t.gameLoaded,r=t.fsReady,a=t.appConfig,o=t.singleplayerAvailable,i=(0,tJ.R)(rP).state,s=e||n||!r||!i;(0,tD.useEffect)(function(){s&&r&&(au=!0)},[s]);var l=(0,ek._)((0,tD.useState)(""),2),c=l[0],u=l[1],d=(0,ek._)((0,tD.useState)(""),2),w=d[0],p=d[1];(0,tD.useEffect)(function(){var e;fetch("./version.txt").then((e=(0,eC._)(function(e){var t,n,r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:if(404===e.status)return[2];return[4,e.text()];case 1:if(!(n="2026-07-12T10"===(t=a.sent()))&&sessionStorage.justReloaded)return u("(force reloading, wait)"),al(!0),[2];return r=function(){u("(".concat(n?"latest":"new version available").concat(ac.serviceWorkerLoaded?", Downloaded":"",")"))},(0,tt.Ld)(ac,r),r(),p("Loaded: ".concat("2026-07-12T10",". Remote: ").concat(t)),[2]}})}),function(t){return e.apply(this,arguments)}),function(){u("(offline)")})},[]);var h=(null==a?void 0:a.mapsProvider)&&new URL(null==a?void 0:a.mapsProvider);return h&&"https://mcraft.fun"!==location.origin&&h.searchParams.set("to",location.href),(0,tC.jsx)(r7.M,{children:!s&&(0,tC.jsx)(ae.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.1*!au,ease:"easeInOut"},children:(0,tC.jsx)(as,{singleplayerAvailable:o,connectToServerAction:function(){return(0,e5.K4)({reactType:"serversList"})},singleplayerAction:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return(0,e5.K4)({reactType:"singleplayer"}),[2]})}),githubAction:function(){return(0,td.G)()},optionsAction:function(){return(0,e5.NZ)("main")},bottomRightLinks:"NEW! FUTURISTIC VER.:https://arwes.mcraft.fun\r\nOfficial Discord:https://discord.gg/vMjfCeHthg\r\nTG:https://t.me/mcraft_fun",openFileAction:function(e){window.showDirectoryPicker&&!e.shiftKey?(0,ry.PM)():(0,ry.y)()},mapsProvider:null==h?void 0:h.toString(),versionStatus:c,versionTitle:w,onVersionStatusClick:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return u("(reloading)"),[4,al()];case 1:return e.sent(),[2]}})}),onVersionTextClick:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return(0,td.G)("/releases/v2.1.0"),[2]})}),versionText:"v2.1.0"})})})},"mainMenuProvider");n(16839);var aw=n(94676),af=n(62005),ap=n.n(af),ah=n(34210),aM=n.n(ah),ag=n(7543),am=n(6261),av=n.n(am),ay=n(55872).Buffer,aA=function(e){function CustomDuplex(e,t){var n;return(0,tH._)(this,CustomDuplex),(n=(0,nb._)(this,CustomDuplex,[e])).writeAction=t,n}(0,n_._)(CustomDuplex,e);var t=CustomDuplex.prototype;return t._read=function(){},t._write=function(e,t,n){this.writeAction(e),n()},CustomDuplex}(nZ.Duplex),ab=null,getJoinLink=function(){if(ey){var e,t=new URL(window.location.href),n=!0,r=!1,a=void 0;try{for(var o,i,s=t.searchParams.keys()[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;t.searchParams.delete(l)}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}t.searchParams.set("connectPeer",ey.id),t.searchParams.set("peerVersion",localServer.options.version);var c=null!=(e=null!=ab?ab:null==(o=e5.N_.appConfig)?void 0:o.peerJsServer)?e:void 0;return c&&t.searchParams.set("server",c),t.toString()}},a_=(W=(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:if(e5.N_.wanOpened=!0,e=getJoinLink(),!navigator.clipboard)return[3,2];return[4,navigator.clipboard.writeText(e)];case 1:return t.sent(),[3,3];case 2:window.prompt("Copy to clipboard: Ctrl+C, Enter",e),t.label=3;case 3:return[2]}})}),function(){return W.apply(this,arguments)}),aL=(J=(0,eC._)(function(e){var t,n,r,a,o,i,s,l,c,u,d,w,p=arguments;return(0,eT.Jh)(this,function(h){switch(h.label){case 0:if(t=!(p.length>1)||void 0===p[1]||p[1],!localServer)return[2];if(!ey)return[3,3];if(!t)return[3,2];return[4,a_()];case 1:h.sent(),h.label=2;case 2:return[2,"Already opened to wan. Join link copied"];case 3:return e5.N_.wanOpening=!0,o=(a=(null!=ab?ab:null==(n=e5.N_.appConfig)?void 0:n.peerJsServer)||void 0)?parseUrl(a):void 0,ey=i=new ag._z((0,ej._)({debug:3,secure:!0},o)),i.on("connection",function(e){console.log("connection");var t,n=new aA({},(t=(0,eC._)(function(t){return(0,eT.Jh)(this,function(n){return[2,e.send(t)]})}),function(e){return t.apply(this,arguments)})),r=new(av())(!0,localServer.options.version,void 0);r.setSocket(n),localServer._server.emit("connection",r),e.on("data",function(e){n.push(ay.from(e))});var endConnection=function(){console.log("connection.close"),n.end(),e.close()};n.on("end",endConnection),n.on("force-close",endConnection),r.on("end",endConnection);var disconnected=function(){n.end(),r.end()};e.on("iceStateChanged",function(e){console.log("iceStateChanged",e),"disconnected"===e&&disconnected()}),e.on("close",disconnected),e.on("error",disconnected)}),l=(s=null==(r=e5.N_.appConfig)?void 0:r.peerJsServerFallback)&&i.options.host!==s,c=!1,i.on("error",function(t){console.error("peerJS error",t),"server-error"===t.type&&l||(c=!0,e(t.message||JSON.stringify(t)))}),d=function(){clearTimeout(u),u=void 0,i.destroy(),ey=void 0},[4,new Promise(function(n){var r;i.on("open",(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,a_()];case 1:return e.sent(),n("Copied join link to clipboard"),[2]}})})),u=setTimeout((0,eC._)(function(){return(0,eT.Jh)(this,function(r){switch(r.label){case 0:if(!(!c&&void 0!==u))return[3,3];if(!(l&&null===ab))return[3,2];return d(),ab=s,console.log("Trying fallback server due to timeout",s),[4,aL(e,t)];case 1:return n.apply(void 0,[r.sent()]),[3,3];case 2:e("timeout"),n("Failed to open to wan (timeout)"),r.label=3;case 3:return[2]}})}),6e3),i.on("error",(r=(0,eC._)(function(r){return(0,eT.Jh)(this,function(r){switch(r.label){case 0:if(i.open||!l)return[3,2];return d(),ab=s,console.log("Trying fallback server",s),[4,aL(e,t)];case 1:n.apply(void 0,[r.sent()]),r.label=2;case 2:return[2]}})}),function(e){return r.apply(this,arguments)}))})];case 4:return w=h.sent(),ey&&!ey.open&&d(),e5.N_.wanOpening=!1,[2,w]}})}),function(e){return J.apply(this,arguments)}),parseUrl=function(e){e.startsWith("http")||(e="".concat(location.protocol,"//").concat(e));var t=new URL(e),n=t.searchParams.get("key");return(0,ej._)({host:t.hostname,path:t.pathname,protocol:t.protocol.slice(0,-1)},t.port?{port:+t.port}:{},n?{key:n}:{})},closeWan=function(){return null==ey||ey.destroy(),ey=void 0,e5.N_.wanOpened=!1,"Closed WAN"},aC=(V=(0,eC._)(function(e){var t,n,r,a,o,i,s=arguments;return(0,eT.Jh)(this,function(l){switch(l.label){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:{},(0,ti.d8)("Connecting to peer server"),r=(n=t.server)?parseUrl(n):void 0,a=new ag._z((0,ej._)({debug:3},r)),[4,(0,td.O1)(new Promise(function(e){a.once("open",e)}))];case 1:return l.sent(),(0,ti.d8)("Connecting to the peer"),o=a.connect(e,{serialization:"raw"}),[4,(0,td.O1)(new Promise(function(e,t){o.once("error",function(e){console.log(e.type,e.name),console.log(e),t(e.message)}),o.once("open",e)}))];case 2:return l.sent(),i=new aA({},function(e){o.send(e)}),o.on("data",function(e){console.debug("received",ay.from(e).toString()),i.push(ay.from(e))}),o.on("close",function(){console.log("connection closed"),i.end(),bot.emit("end","Disconnected.")}),o.on("error",function(e){console.error(e),i.end()}),[2,i]}})}),function(e){return V.apply(this,arguments)}),aj=n(80297);function addFolderToZip(e,t,n){return _addFolderToZip.apply(this,arguments)}function _addFolderToZip(){return(_addFolderToZip=(0,eC._)(function(e,t,n){var r,a,o,i,s,l,c,u,d,w,p,h,M;return(0,eT.Jh)(this,function(g){switch(g.label){case 0:return[4,eP().promises.readdir(e)];case 1:r=g.sent(),a=!0,o=!1,i=void 0,g.label=2;case 2:g.trys.push([2,10,11,12]),s=r[Symbol.iterator](),g.label=3;case 3:if(a=(l=s.next()).done)return[3,9];return c=l.value,u=(0,af.join)(e,c),[4,eP().promises.stat(u)];case 4:if(d=g.sent(),w=(0,af.join)(n,c),!d.isDirectory())return[3,6];return p=t.folder(w),[4,addFolderToZip(u,p,w)];case 5:return g.sent(),[3,8];case 6:return[4,eP().promises.readFile(u)];case 7:h=g.sent(),t.file(c,h),g.label=8;case 8:return a=!0,[3,3];case 9:return[3,12];case 10:return M=g.sent(),o=!0,i=M,[3,12];case 11:try{a||null==s.return||s.return()}finally{if(o)throw i}return[7];case 12:return[2]}})})).apply(this,arguments)}var aD=(G=(0,eC._)(function(e,t){var n,r,a,o,i,s,l=arguments;return(0,eT.Jh)(this,function(c){switch(c.label){case 0:n=l.length>2&&void 0!==l[2]?l[2]:"world-prismarine-exported",c.label=1;case 1:if(c.trys.push([1,,11,12]),"zip"!==t)return[3,4];return(0,ti.d8)("Generating zip, this may take a few minutes"),[4,addFolderToZip(e,r=new(aM()),"")];case 2:return c.sent(),[4,r.generateAsync({type:"blob"})];case 3:return a=c.sent(),(o=document.createElement("a")).href=URL.createObjectURL(a),o.download="".concat(n,".zip"),o.click(),URL.revokeObjectURL(o.href),[3,10];case 4:return(0,ti.d8)("Preparing export folder"),i="/",[4,eP().promises.readdir("/export")];case 5:if(!c.sent().length)return[3,8];return[4,(0,tb.C4)(e)];case 6:return s=c.sent().levelDat,[4,(0,ry.vj)(s.LevelName,e)];case 7:i=c.sent(),c.label=8;case 8:return(0,ti.d8)("Copying files to ".concat(i," of selected folder")),[4,(0,ry.ic)(e,"/export"+i)];case 9:c.sent(),c.label=10;case 10:return[3,12];case 11:return(0,ti.d8)(void 0),[7];case 12:return[2]}})}),function(e,t){return G.apply(this,arguments)}),ax=(H=(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,(0,tu.kB)()];case 1:return t.sent(),(e=tb.RL.inMemorySavePath).startsWith("/")||(e="/".concat(e)),[4,aD(e,"zip")];case 2:return t.sent(),[2]}})}),function(){return H.apply(this,arguments)});window.exportWorld=ax;var builtinCommands_writeText=function(e){(0,aj.w)(e)},ak=[{command:["/download","/export"],invoke:ax},{command:["/publish","/share"],invoke:function(){return(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,aL(builtinCommands_writeText)];case 1:return(e=t.sent())&&builtinCommands_writeText(e),[2]}})})()}},{command:["/close"],invoke:function(){var e=closeWan();e&&builtinCommands_writeText(e)}},{command:["/save"],invoke:function(){return(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,(0,tu.kB)(!1)];case 1:return e.sent(),builtinCommands_writeText("Saved to browser memory"),[2]}})})()}},{command:["/pos"],alwaysAvailable:!0,invoke:function(e){var t=(0,ek._)(e,1)[0];return(0,eC._)(function(){var e,n,r,a,o;return(0,eT.Jh)(this,function(i){switch(i.label){case 0:if("block"===t?(r=null==(n=window.cursorBlockRel())?void 0:n.position)&&(e={x:r.x,y:r.y,z:r.z}):e={x:(a=bot.entity.position).x,y:a.y,z:a.z},!e)return[2];return o="".concat(e.x.toFixed(2)," ").concat(e.y.toFixed(2)," ").concat(e.z.toFixed(2)),[4,navigator.clipboard.writeText(o)];case 1:return i.sent(),builtinCommands_writeText("Copied position to clipboard: ".concat(o)),[2]}})})()}},{command:["/mesherlog"],alwaysAvailable:!0,invoke:function(){var e;null==(e=(0,e1.z)())||e.downloadMesherLog()}}],tryHandleBuiltinCommand=function(e){var t=(0,aw._)(e.split(" ")),n=t[0],r=t.slice(1),a=!0,o=!1,i=void 0;try{for(var s,l=ak.filter(function(e){return e.alwaysAvailable||e5.N_.singleplayer})[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;if(c.command.includes(n))return c.invoke(r),!0}}catch(e){o=!0,i=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw i}}},aN=n(11434),aT="137156026346-igv2gkjsj2hlid92rs3q7cjjnc77s132.apps.googleusercontent.com",aS="https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/drive.install",az=aT.split("-")[0],GoogleDriveProvider=function(e){var t=e.children;return tD.createElement(aN.rg,{clientId:aT},t)},useGoogleLogIn=function(){var e=(0,aN.Nq)({onSuccess:function(e){localStorage.hasEverLoggedIn=!0,aE.accessToken=e.access_token,aE.expiresIn=(0,tt.iH)(new Date(Date.now()+1e3*e.expires_in)),aE.hasEverLoggedIn=!0},scope:aS,flow:"implicit",onError:function(e){("access_denied"===e.error||"invalid_scope"===e.error||"access_denied"===e.error_subtype)&&(aE.hasEverLoggedIn=!1)}});return function(){return e({prompt:aE.hasEverLoggedIn?"none":"consent"})}},aq=(Z=(0,eC._)(function(){var e,t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:if(!(e=eS.EX.state))return[2];return(0,ti.d8)("Opening world in read only mode, waiting for login..."),[4,aO()];case 1:return n.sent(),[4,(0,eZ.ve)("https://accounts.google.com/gsi/client")];case 2:return n.sent(),JSON.parse(e),t=window.google.accounts.oauth2.initTokenClient({client_id:aT,scope:aS,callback:function(e){return(0,eC._)(function(){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:if(e.error)return(0,ti.d8)("Error: "+e.error,!0),aE.hasEverLoggedIn=!1,[2];return(0,ti.d8)("Opening world in read only mode..."),aE.accessToken=e.access_token,[4,aY("/google")];case 1:return t.sent(),[2]}})})()}}),[4,(0,tL.un)("Select an action...",["Login"])];case 3:return"Login"===n.sent()?t.requestAccessToken({prompt:aE.hasEverLoggedIn?"":"consent"}):window.close(),[2]}})}),function(){return Z.apply(this,arguments)}),aE=(0,tt.sj)({accessToken:localStorage.saveAccessToken?localStorage.accessToken:null,hasEverLoggedIn:!!localStorage.hasEverLoggedIn,isReady:!1,expiresIn:localStorage.saveAccessToken?(0,tt.iH)(new Date(Date.now()+36e5)):null,readonlyMode:!localStorage.googleReadonlyMode||"true"===localStorage.googleReadonlyMode,lastSelectedFolder:localStorage.lastSelectedFolder?JSON.parse(localStorage.lastSelectedFolder):null});function GoogleButton(e){var t=e.onClick;return(0,tC.jsxs)("button",{className:"gsi-material-button",onClick:t,style:{transform:"scale(0.55) translate(-20%)"},children:[(0,tC.jsx)("div",{className:"gsi-material-button-state"}),(0,tC.jsxs)("div",{className:"gsi-material-button-content-wrapper",children:[(0,tC.jsx)("div",{className:"gsi-material-button-icon",children:(0,tC.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[(0,tC.jsx)("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),(0,tC.jsx)("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),(0,tC.jsx)("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),(0,tC.jsx)("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"}),(0,tC.jsx)("path",{fill:"none",d:"M0 0h48v48H0z"})]})}),(0,tC.jsx)("span",{className:"gsi-material-button-contents",children:"Continue with Google"}),(0,tC.jsx)("span",{style:{display:"none"},children:"Continue with Google"})]})]})}(0,tt.Ld)(aE,function(){localStorage.googleReadonlyMode=aE.readonlyMode,localStorage.lastSelectedFolder=aE.lastSelectedFolder?JSON.stringify(aE.lastSelectedFolder):null,aE.hasEverLoggedIn?localStorage.hasEverLoggedIn=!0:delete localStorage.hasEverLoggedIn,localStorage.saveAccessToken&&aE?localStorage.accessToken=aE.accessToken||null:delete localStorage.accessToken});var aI=(0,tt.sj)({value:null,brokenWorlds:[],selectedProvider:"local",selectedGoogleId:"",error:""}),getWorldsPath=function(){return"local"===aI.selectedProvider?"/data/worlds":"google"===aI.selectedProvider?"/google/".concat("/".replace(/\/$/,"")):""},aP={local:{calculateSize:!0,delete:!0,export:!0,icon:!0},google:{calculateSize:!1,delete:!1,export:!1,icon:!0}},readWorlds=function(e){e.signal.aborted||(aI.error="",aI.brokenWorlds=[],(0,eC._)(function(){var t,n,r,a,o,i,s;return(0,eT.Jh)(this,function(l){switch(l.label){case 0:t=[],l.label=1;case 1:if(l.trys.push([1,4,,5]),n=!!aE.accessToken,aI.value=null,"google"===aI.selectedProvider&&!n)return aI.value=[],[2];return r=getWorldsPath(),a=aI.selectedProvider,[4,eP().promises.readdir(r)];case 2:var c;return[4,Promise.allSettled((o=l.sent()).map((c=(0,eC._)(function(e){var t,n,o,i,s,l,c,u,d,w,p,h,M,g,m,v;return(0,eT.Jh)(this,function(y){switch(y.label){case 0:return[4,(0,tb.C4)("".concat(r,"/").concat(e))];case 1:return n=y.sent().levelDat,[4,eP().promises.stat("".concat(r,"/").concat(e,"/level.dat"))];case 2:if(o=y.sent(),i=0,!aP[a].calculateSize)return[3,11];s=!0,l=!1,c=void 0,y.label=3;case 3:return y.trys.push([3,9,10,11]),[4,eP().promises.readdir("".concat(r,"/").concat(e,"/region"))];case 4:u=y.sent()[Symbol.iterator](),y.label=5;case 5:if(s=(d=u.next()).done)return[3,8];return w=d.value,[4,eP().promises.stat("".concat(r,"/").concat(e,"/region/").concat(w))];case 6:p=y.sent(),i+=p.size,y.label=7;case 7:return s=!0,[3,5];case 8:return[3,11];case 9:return h=y.sent(),l=!0,c=h,[3,11];case 10:try{s||null==u.return||u.return()}finally{if(l)throw c}return[7];case 11:if(M="",!aP[a].icon)return[3,15];g="".concat(r,"/").concat(e,"/icon.png"),y.label=12;case 12:return y.trys.push([12,14,,15]),[4,eP().promises.readFile(g,"base64")];case 13:return M=y.sent(),[3,15];case 14:return y.sent(),[3,15];case 15:return[2,{name:e,title:null!=(m=n.LevelName)?m:e,lastPlayed:n.LastPlayed&&(0,tb.Cg)(n.LastPlayed),detail:"".concat(null!=(v=null==(t=n.Version)?void 0:t.Name)?v:"unknown version",", ").concat(e),iconSrc:M?"data:image/png;base64,".concat(M):void 0,size:i,lastModified:o.mtimeMs,group:"IndexedDB Memory Worlds"}]}})}),function(e){return c.apply(this,arguments)})))];case 3:if(i=l.sent().filter(function(e,n){return"rejected"!==e.status||(console.warn(e.reason),t.push(o[n]),!1)}).map(function(e){return e.value}).sort(function(e,t){var getScore=function(e){var t;return null!=(t=e.lastModified)?t:0};return getScore(t)-getScore(e)}),e.signal.aborted)return[2];return aI.value=i,[3,5];case 4:if("AbortError"===(s=l.sent()).name)return[2];return console.warn(s),aI.value=null,aI.error=s.message,[3,5];case 5:return aI.brokenWorlds=t,[2]}})})().catch(function(e){aI.error=e.message}))},aY=(K=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return tb.RL.saveLoaded=!1,tb.RL.isReadonly=!1,tb.RL.syncFs=!1,tb.RL.inMemorySave=!0,[4,(0,tb.uW)(e)];case 1:return t.sent(),[2]}})}),function(e){return K.apply(this,arguments)});function SingleplayerProvider(){return(0,tN.uM)("singleplayer")?(0,tC.jsx)(GoogleDriveProvider,{children:(0,tC.jsx)(Inner,{})}):null}var aO=(X=(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,(0,eZ.ve)("https://apis.google.com/js/api.js")];case 1:if(!e.sent())return[2];return[2,new Promise(function(e){gapi.load("client",function(){gapi.load("client:picker",function(){gapi.client.load("https://www.googleapis.com/discovery/v1/apis/drive/v3/rest").then(function(){aE.isReady=!0,e()})})})})]}})}),function(){return X.apply(this,arguments)}),Inner=function(){var e,t,n,r=(0,tJ.R)(aI).value,a=(0,tJ.R)(aI),o=a.selectedProvider,i=a.error,s=a.brokenWorlds,l=a.selectedGoogleId,c=(0,tD.useRef)(new AbortController);(0,tD.useEffect)(function(){"google"===o&&aO()},[o]);var u=!!(0,tJ.R)(aE).accessToken,d=(0,tJ.R)(aE).readonlyMode;(0,tD.useEffect)(function(){return(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:if("google"!==o)return[3,4];if(!l)return aI.value=[],[2];return[4,(0,ry.BS)(aE.readonlyMode,l)];case 1:var n;return t.sent(),n=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,eP().promises.stat(e)];case 1:return t.sent(),[2,!0];case 2:return t.sent(),[2,!1];case 3:return[2]}})}),[4,function(e){return n.apply(this,arguments)}("".concat(getWorldsPath(),"/level.dat"))];case 2:if(!t.sent())return[3,4];return[4,aY(getWorldsPath())];case 3:return t.sent(),[2];case 4:if(!(e="local"===o))return[3,6];return[4,eP().promises.stat("/data/worlds").catch(function(){return!1})];case 5:e=!t.sent(),t.label=6;case 6:if(!e)return[3,8];return[4,eP().promises.mkdir("/data/worlds")];case 7:t.sent(),t.label=8;case 8:return readWorlds(c.current),[2]}})})(),function(){c.current.abort(),c.current=new AbortController}},[o,u,d,l]);var w=useGoogleLogIn(),p=(0,tD.useRef)(null);(0,tD.useEffect)(function(){return function(){var e;null==(e=p.current)||e.dispose()}});var h=(e=(0,eC._)(function(){var e,t,n;return(0,eT.Jh)(this,function(r){switch(r.label){case 0:if(!aE.lastSelectedFolder)return[3,2];return[4,(0,tL.un)('Use previously selected folder "'.concat(aE.lastSelectedFolder.name,'"?'),["Yes","No"])];case 1:if(!(e=r.sent()))return[2];if("Yes"===e)return aI.selectedGoogleId=aE.lastSelectedFolder.id,[2];r.label=2;case 2:return n=new(t=window.google).picker.DocsView(t.picker.ViewId.FOLDERS).setIncludeFolders(!0).setMimeTypes("application/vnd.google-apps.folder").setSelectFolderEnabled(!0).setParent("root"),p.current=new t.picker.PickerBuilder().enableFeature(t.picker.Feature.NAV_HIDDEN).enableFeature(t.picker.Feature.MULTISELECT_ENABLED).setDeveloperKey("AIzaSyBTiHpEqaLL7mEcrsnSS4M-z8cpRH5UwY0").setAppId(az).setOAuthToken(aE.accessToken).addView(n).addView(new t.picker.DocsUploadView).setTitle("Select a folder with your worlds").setCallback(function(e){e.action===t.picker.Action.PICKED&&(aE.lastSelectedFolder={id:e.docs[0].id,name:e.docs[0].name},aI.selectedGoogleId=e.docs[0].id)}).build(),p.current.setVisible(!0),[2]}})}),function(){return e.apply(this,arguments)}),M=(0,tJ.R)(aE).isReady,g=u&&"google"===o&&M&&!l?{"Select Folder":h}:"google"===o?M?u?(n={"Log Out":function(){aE.hasEverLoggedIn=!1,aE.accessToken=null,aE.lastSelectedFolder=null,window.google.accounts.oauth2.revoke(aE.accessToken)}},(0,nD._)(n,"Read Only: ".concat(d?"ON":"OFF"),function(){return(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:if(!aE.readonlyMode)return[3,2];return[4,(0,tL.un)("[Unstable Feature] Enabling world save might corrupt your worlds, eg remove entities (note: you can always restore previous version of files in Drive)",["Continue"])];case 1:if("Continue"!==e.sent())return[2];e.label=2;case 2:return aE.readonlyMode=!aE.readonlyMode,[2]}})})()}),(0,nD._)(n,"Select Folder",h),n):{"Log In":(0,tC.jsx)(GoogleButton,{onClick:w})}:{"Loading...":function(){}}:void 0;return(0,tC.jsx)(nR,{error:i,isReadonly:"google"===o&&(d||!M||!l),disabledProviders:(0,eE._)(aT?[]:["google"]),worldData:r,providerActions:g,activeProvider:o,setActiveProvider:function(e){aI.selectedProvider=e},warning:s.length?"Some worlds are broken: ".concat(s.join(", ")):void 0,warningAction:(0,eC._)(function(){var e,t,n,r,a,o,i;return(0,eT.Jh)(this,function(s){switch(s.label){case 0:e=!0,t=!1,n=void 0,s.label=1;case 1:s.trys.push([1,6,7,8]),r=aI.brokenWorlds[Symbol.iterator](),s.label=2;case 2:if(e=(a=r.next()).done)return[3,5];return o=a.value,(0,ti.d8)("Removing broken world ".concat(o)),[4,(0,ry.y8)("".concat(getWorldsPath(),"/").concat(o))];case 3:s.sent(),s.label=4;case 4:return e=!0,[3,2];case 5:return[3,8];case 6:return i=s.sent(),t=!0,n=i,[3,8];case 7:try{e||null==r.return||r.return()}finally{if(t)throw n}return[7];case 8:return(0,ti.d8)(void 0),[2]}})}),warningActionLabel:"Remove broken worlds",onWorldAction:(t=(0,eC._)(function(e,t){var n,r,a,i;return(0,eT.Jh)(this,function(s){switch(s.label){case 0:if(n="".concat(getWorldsPath(),"/").concat(t),r=function(){var e=(0,ry.e)(n.replace("/google/",""));if(!e)return alert("File not found");window.open("https://drive.google.com/drive/folders/".concat(e))},"load"!==e)return[3,2];return(0,ti.d8)("Starting loading world ".concat(t)),[4,aY(n)];case 1:return s.sent(),[2];case 2:if("delete"!==e)return[3,4];if("google"===o)return r(),[2];if(!confirm("Are you sure you want to delete current world"))return[2];return(0,ti.d8)("Removing world ".concat(t)),[4,(0,ry.y8)(n)];case 3:s.sent(),(0,ti.d8)(void 0),readWorlds(c.current),s.label=4;case 4:if("export"!==e)return[3,12];if("google"===o)return r(),[2];if(!(0,td.kl)())return[3,6];return[4,(0,tL.un)("Select export type",["Select folder (recommended)","Download ZIP file"])];case 5:return i=s.sent(),[3,8];case 6:return[4,(0,tL.un)("Select export type",["Download ZIP file"])];case 7:i=s.sent(),s.label=8;case 8:if(!(a=i))return[2];if("Select folder (recommended)"!==a)return[3,10];return[4,(0,ry.Fm)()];case 9:if(!s.sent())return[2];s.label=10;case 10:return[4,aD(n,"Select folder (recommended)"===a?"folder":"zip",t)];case 11:s.sent(),s.label=12;case 12:return[2]}})}),function(e,n){return t.apply(this,arguments)}),onGeneralAction:function(e){"cancel"===e&&(0,e5.kJ)(),"create"===e&&(0,e5.K4)({reactType:"create-world"})}})},aR=n(35289),aB=n.n(aR);function SelectGameVersion(e){var t=e.versions,n=e.selected,r=e.onChange,a=e.updateOptions,o=e.containerStyle;return(0,tC.jsx)(nQ,{initialOptions:t,defaultValue:n,updateOptions:function(e){null==a||a(e)},onValueChange:r,containerStyle:null!=o?o:{width:"190px"},getCssOnInput:function(e){if(!t||!e)return{};var n=t.map(function(e){return e.value.split(".").map(Number)}),r=e.split(".").map(Number),compareVersions=function(e,t){for(var n=0;na)return 1;if(r=0&&0>=compareVersions(r,o)?t.some(function(t){return t.value===e})?void 0:{border:"1px solid yellow"}:{border:"1px solid red"}}})}var aU=["default","flat","empty","nether","all_the_blocks"],aQ=["survival","creative"],aF=(0,tt.sj)({title:"",type:aU[0],gameMode:"creative",version:"",plugins:[]}),WorldCustomize=function(e){var t=e.backClick;return(0,tJ.R)(aF).type,(0,tC.jsxs)(tk.Z,{title:"Customize world",backdrop:"dirt",children:[(0,tC.jsx)("div",{className:"world_layers_container-YYXzJi",children:(0,tC.jsx)("div",{className:"world_layer"})}),(0,tC.jsx)(nI.Z,{onClick:t,children:"Back"})]})};let aW=(0,nO.K)(function(e){var t=e.cancelClick,n=e.createClick,r=(e.customizeClick,e.versions),a=e.defaultVersion,o=(0,ek._)((0,tD.useState)(""),2),i=o[0],s=o[1],l=(0,tJ.R)(aF),c=l.title,u=l.type,d=(l.version,l.gameMode),w=l.plugins;return(0,tD.useEffect)(function(){var e,t;aF.version=a,null==(t=navigator.storage)||null==(e=t.estimate)||e.call(t).then(function(e){var t=e.quota,n=e.usage;s("Storage usage: ".concat(void 0===n?"?":(0,nT.filesize)(n)," / ").concat(t?(0,nT.filesize)(t):"?"))})},[]),(0,tC.jsxs)(tk.Z,{title:"Create world",backdrop:"dirt",children:[(0,tC.jsxs)("form",{style:{display:"flex"},onSubmit:function(e){e.preventDefault(),n()},children:[(0,tC.jsx)(nE.ZP,{autoFocus:!0,value:c,onChange:function(e){aF.title=e.target.value},placeholder:"World name"}),(0,tC.jsx)(SelectGameVersion,{versions:r.map(function(e){return{value:e.version,label:e.version}}),selected:{value:a,label:a},onChange:function(e){aF.version=null!=e?e:a},containerStyle:{width:"100px"}}),(0,tC.jsx)("button",{type:"submit",style:{visibility:"hidden"}})]}),(0,tC.jsxs)("div",{style:{display:"flex"},children:[(0,tC.jsxs)(nI.Z,{onClick:function(){var e=aU.indexOf(u);aF.type=aU[e===aU.length-1?0:e+1]},children:["World Type: ",u]}),(0,tC.jsxs)(nI.Z,{onClick:function(){var e=aQ.indexOf(d);aF.gameMode=aQ[e===aQ.length-1?0:e+1]},disabled:!0,children:["Game Mode: ",d]})]}),(0,tC.jsxs)("div",{style:{display:"flex"},children:[(0,tC.jsxs)(nI.Z,{onClick:(0,eC._)(function(){var e,t,n,r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:return[4,r$()];case 1:return t=(e=a.sent()).map(function(e){return e.name}),(n=Object.fromEntries(e.map(function(e){return[e.name,{type:"checkbox",defaultValue:aF.plugins.includes(e.name),label:e.name}]}))).installMore={type:"button",onButtonClick:function(){(0,e5.K4)({reactType:"mods"})}},[4,(0,tL.Pl)("Select server plugins from mods to install:",n)];case 2:if(!(r=a.sent()))return[2];return aF.plugins=t.filter(function(e){return r[e]}),[2]}})}),children:["Use Mods (",w.length,")"]}),(0,tC.jsx)(nI.Z,{onClick:function(){var e=aQ.indexOf(d);aF.gameMode=aQ[e===aQ.length-1?0:e+1]},disabled:!0,children:"Save Type: Java"})]}),(0,tC.jsx)("div",{className:"muted",style:{fontSize:8},children:"Default and other world types are WIP"}),(0,tC.jsxs)("div",{style:{display:"flex"},children:[(0,tC.jsx)(nI.Z,{onClick:function(){t()},children:"Cancel"}),(0,tC.jsx)(nI.Z,{disabled:!c,onClick:n,children:(0,tC.jsx)("b",{children:"Create"})})]}),(0,tC.jsx)("div",{className:"muted",style:{fontSize:9},children:"Note: save important worlds in folders on your hard drive!"}),(0,tC.jsx)("div",{className:"muted",style:{fontSize:9},children:i})]})},"createWorld");function CreateWorldProvider(){var e=(0,tN.uM)("create-world"),t=(0,tN.uM)("customize-world");if(e){var n=(0,r1.Uo)(r1.S3),r=Object.values(Object.fromEntries(r1.ZP.filter(function(e){return(0,r1.Uo)(e)"}),t.text]})};function MineflayerPluginConsole(){var e=(0,tN.uM)("console"),t=(0,tJ.R)(e5.N_).currentTouch,n=(0,tJ.R)(aX),r=n.messages,a=n.replEnabled,o=n.consoleEnabled,i=n.onExecute,s=(0,tD.useRef)(null),l=(0,tD.useRef)(null),c=(0,aK.f)(l,{messages:r,opened:e}).scrollToBottom;(0,tD.useEffect)(function(){if(e&&a){var t;null==(t=s.current)||t.focus()}},[e,a]);var updateInputValue=function(e){s.current.value=e,setTimeout(function(){s.current.setSelectionRange(e.length,e.length)},0)};return(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)("div",{className:"console-wrapper console-messages-wrapper ".concat(t?"display-mobile":""),children:(0,tC.jsxs)("div",{ref:l,className:"console ".concat(e?"opened":""),id:"console-messages",children:[!o&&(0,tC.jsx)(MessageLine,{message:{id:-1,text:"Console is not enabled. Enable it in the plugin initialization settings.",level:"error"}},"console-disabled"),r.map(function(e){return(0,tC.jsx)(MessageLine,{message:e},e.id)})]})}),(0,tC.jsx)("div",{className:"console-wrapper console-input-wrapper ".concat(t?"input-mobile":""),hidden:!e,children:(0,tC.jsxs)("form",{className:"console-input",onSubmit:function(e){e.preventDefault();var t=s.current.value;t&&(null==i||i(t),updateInputValue(""),c())},children:[(0,tC.jsxs)("div",{className:"console-input-container",children:[(0,tC.jsx)("span",{className:"console-input-prefix",children:">"}),(0,tC.jsx)("input",{defaultValue:"",ref:s,type:"text",className:"console-input-field",id:"consoleinput",spellCheck:!1,autoComplete:"off",disabled:!a,placeholder:a?"Enter JavaScript code (bot variable is available)":"REPL is not enabled"})]}),(0,tC.jsx)("button",{type:"submit",style:{visibility:"hidden",position:"absolute"}})]})})]})}var a$=n(55872).Buffer,a0=(0,tt.sj)({forwardChat:!0,version:"",time:0,replEnabled:!1,consoleEnabled:!1,requiresPass:!1,clientIgnoredPackets:[]}),a1=function(e){function CustomDuplex(e,t){var n;return(0,tH._)(this,CustomDuplex),(n=(0,nb._)(this,CustomDuplex,[e])).writeAction=t,n}(0,n_._)(CustomDuplex,e);var t=CustomDuplex.prototype;return t._read=function(){},t._write=function(e,t,n){this.writeAction(e),n()},CustomDuplex}(nZ.Duplex),a3=(ee=(0,eC._)(function(e){var t,n,r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:return[4,a2(e)];case 1:return(t=a.sent()).send("version"),[4,new Promise(function(e,n){var r;t.addEventListener("message",(r=(0,eC._)(function(n){var r;return(0,eT.Jh)(this,function(a){return e(r=JSON.parse(n.data.toString())),t.close(),Object.assign(a0,r),customEvents.on("mineflayerBotCreated",function(){var e=bot._client,t=e.write.bind(e);e.write=function(){for(var e,n=arguments.length,a=Array(n),o=0;o500&&(aX.messages=aX.messages.slice(-500));break;case"console":aX.messages.push({id:Date.now(),text:e.message,level:e.level}),aX.messages.length>500&&(aX.messages=aX.messages.slice(-500));break;case"kick":bot.emit("end",e.reason);break;case"ui":var t=e.update;if(null===t.data){aZ.ui=aZ.ui.filter(function(e){return e.id!==t.id});var r=n[t.id];r&&(r.destroy(),delete n[t.id])}else{var a=aZ.ui.findIndex(function(e){return e.id===t.id});if(-1===a?aZ.ui.push((0,eD._)((0,ej._)({},t.data),{id:t.id})):aZ.ui[a]=(0,eD._)((0,ej._)({},t.data),{id:t.id}),"lil"===t.data.type){var _loop=function(e){var n=s[e],r=o.controllers.find(function(t){return t.property===e});if(r)r.object[e]=n,r.updateDisplay();else{var a=(0,nD._)({},e,n),i=o.add(a,e);(null==l?void 0:l.includes(e))||i.onChange(function(n){send({type:"ui",id:t.id,param:e,value:n})})}},o=n[t.id];o||(o=new aH.XS({title:t.data.title}),n[t.id]=o);var i=t.data,s=i.params,l=i.buttons,c=!0,u=!1,d=void 0;try{for(var w,p=(null!=l?l:[])[Symbol.iterator]();!(c=(w=p.next()).done);c=!0)!function(){var e=w.value;s[e]=function(){send({type:"ui",id:t.id,param:e,value:!0})}}()}catch(e){u=!0,d=e}finally{try{c||null==p.return||p.return()}finally{if(u)throw d}}for(var h in s)_loop(h);var M=Object.keys(s);o.controllers=o.controllers.filter(function(e){return!!M.includes(e.property)||(e.destroy(),!1)})}}break;case"stats":globalThis.botStats=e;break;case"method":console.log("Method result",e.result)}},bot._client.on(a4,function(t){e(JSON.parse(t.toString()))}),{send:send}},a6=(er=(0,eC._)(function(){var e,t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:return e=handleCustomChannel().send,bot.physicsEnabled=!1,[4,new Promise(function(e){bot.once("inject_allowed",e)})];case 1:return n.sent(),t=bot.setControlState.bind(bot),bot.setControlState=function(n,r){if(bot.controlState[n]!==r){if(!aX.takeoverMode)return void(0,tE.c0)("Remote control is not enabled","Enable takeoverMode in bot plugin settings first");e({type:"setControlState",control:n,value:r}),t(n,r)}},[2]}})}),function(){return er.apply(this,arguments)}),a8=n(48044),a9=n(30232),a7=n(46229),TypingIndicatorOverlay=function(){var e=(0,a7.e)();return e?(0,tC.jsx)("div",{style:{position:"fixed",bottom:"calc(27px + env(safe-area-inset-bottom, 0px))",left:2,fontSize:"9px",color:"white",textShadow:"1px 1px 0px #3f3f3f",fontFamily:"mojangles, minecraft, monospace",padding:"2px 4px",zIndex:"var(--has-modals-z, 11)"},children:e}):null};let oe=(0,nO.K)(function(){var e,t,n,r=(0,ek._)((0,tD.useState)([]),2),a=r[0],o=r[1],i=(0,tN.uM)("chat"),s=(0,tD.useRef)(0),l=(0,tD.useRef)(0),c=(0,tD.useRef)((0,a8.E3)()),u=(0,tJ.R)(e5.N_),d=u.currentTouch,w=u.disconnectedCleanup,p=(0,tJ.R)(e2.YM),h=p.chatSelect,M=p.messagesLimit,g=p.chatOpacity,m=p.chatOpacityOpened,v=p.chatVanillaRestrictions,y=p.debugChatScroll,A=p.chatPingExtension,b=p.chatSpellCheckEnabled,_=p.chatAlwaysDisplayTypingIndicator;(0,tD.useMemo)(function(){var e;return!!(null==(e=ti.Pc.value)?void 0:e.authenticatedAccount)},[]);var L=(0,tJ.R)(a0).forwardChat,C=(0,tJ.R)(e5.rl).viewerConnection;(0,tD.useEffect)(function(){bot.addListener("message",function(e,t){if("game_info"!==t){e.unsigned&&(e=e.unsigned);var n,r=(0,tz.wv)(e),a=r.map(function(e){return e.text}).join(""),i=(0,a8.cX)(a),u=null==(n=ti.Pc.value)?void 0:n.server,d=(0,a9.x2)();if(i&&u&&d&&("login"===i||"either"===i)&&!(0,a8.f6)()){if(c.current.shouldTrigger(u)){try{bot.chat("/login ".concat(d))}catch(e){}(0,a8.gL)({password:d,mode:"login",source:"manual",serverIp:u,username:bot.username,preSaved:!0})}}else if(i&&u&&("changepassword"===i||"unregister"===i)&&c.current.shouldTrigger(u))if(e2.YM.autoOpenAuthModal)(0,aV.K)({mode:i,serverIp:u,username:bot.username,prefilledPassword:(0,a9.x2)()}).then(function(e){(null==e?void 0:e.password)&&("changepassword"!==i||e.newPassword)&&(0,a8.Fs)(bot,i,e,{serverIp:u,username:bot.username,source:"modal"})});else{var w="changepassword"===i?"\uD83D\uDDDD️ ":"⚠️ ";(0,aj.w)({text:w,extra:[{text:"Click here to auto-fill ".concat(i),color:"aqua",underlined:!0,clickEvent:{action:"changepassword"===i?"open_change_password":"open_unregister",value:""},hoverEvent:{action:"show_text",value:"Open password-manager-friendly modal"}}]})}else if(i&&u&&!d&&("login"===i||"register"===i||"either"===i)&&c.current.shouldTrigger(u))if(e2.YM.autoOpenAuthModal){var p="either"===i?"login":i;(0,aV.K)({mode:p,serverIp:u,username:bot.username}).then(function(e){(null==e?void 0:e.password)&&(0,a8.Fs)(bot,p,e,{serverIp:u,username:bot.username,source:"modal"})})}else{var makeExtra1=function(e){return{text:"Click here to auto-fill ".concat(e),color:"aqua",underlined:!0,clickEvent:{action:"open_auto_fill_".concat(e),value:""},hoverEvent:{action:"show_text",value:"Open password-manager-friendly login modal"}}},h="either"===i?[makeExtra1("login"),{text:" / "},makeExtra1("register")]:[makeExtra1(i)];(0,aj.w)({text:"\uD83D\uDD10 ",extra:h})}if("Pong!"===a&&l.current>0){var g=Date.now()-l.current;r.push({text:" Latency: ".concat(g,"ms"),color:"#00ff00"}),l.current=0}o(function(e){s.current++;var t={parts:r,id:s.current,timestamp:Date.now()};return(0,eE._)(e).concat([t]).slice(-M)})}})},[]);var j=w?"You have been disconnected from the server on "+new Date(w.date).toLocaleString():void 0;return(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)(tA.Z,{chatVanillaRestrictions:v,debugChatScroll:y,allowSelection:h,usingTouch:!!d,opacity:(i?m:g)/100,messages:a,opened:i,placeholder:L||!C?void 0:"Chat forwarding is not enabled in the plugin settings",inputDisabled:j,currentPlayerName:A?bot.username:void 0,spellCheckEnabled:b,onSpellCheckEnabledChange:function(e){e2.YM.chatSpellCheckEnabled=e},getPingComplete:(e=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){return[2,Object.keys(bot.players).filter(function(t){return(!e||t.toLowerCase().includes(e.toLowerCase()))&&t!==bot.username}).map(function(e){return"@".concat(e)})]})}),function(t){return e.apply(this,arguments)}),sendMessage:(t=(0,eC._)(function(e){var t,n,r,a,o;return(0,eT.Jh)(this,function(i){switch(i.label){case 0:if("/ping"===e&&(l.current=Date.now()),t=tryHandleBuiltinCommand(e),void 0!==(0,a9.S_)()&&(e.startsWith("/login")||e.startsWith("/register"))&&(n=e.split(" ")[1])&&((0,a9.JM)(n),r=e.startsWith("/register")?"register":"login",(0,a8.gL)({password:n,mode:r,source:"manual",preSaved:!0})),t)return[3,3];if(!(v&&!e5.N_.flyingSquid)||(a=(0,tz.oR)(e)).valid)return[3,2];return[4,(0,tL.un)("Can't send invalid characters to vanilla server (".concat(null==(o=a.invalid)?void 0:o.join(", "),"). You can use them only in command blocks."),["Remove Them & Send"])];case 1:if(!i.sent())return[2];e=a.clean,i.label=2;case 2:e&&bot.chat(e),i.label=3;case 3:return[2]}})}),function(e){return t.apply(this,arguments)}),onClose:function(){(0,e5.kJ)()},fetchCompletionItems:(n=(0,eC._)(function(e,t){var n,r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:if(!("explicit"===e||e2.YM.autoRequestCompletions))return[3,5];n=[],a.label=1;case 1:return a.trys.push([1,3,,4]),[4,bot.tabComplete(t,!0,!0)];case 2:return n=a.sent(),[3,4];case 3:return a.sent(),[3,4];case 4:return"object"===(0,eN._)(n[0])&&n[0].match&&(n=n.map(function(e){return e.match})),"/"===t&&((null==(r=n[0])?void 0:r.startsWith("/"))||(n=n.map(function(e){return"/".concat(e)})),n.length&&(n=(0,eE._)(n).concat((0,eE._)(ak.filter(function(e){return e.alwaysAvailable||e5.N_.singleplayer}).flatMap(function(e){return e.command}))))),[2,n];case 5:return[2]}})}),function(e,t){return n.apply(this,arguments)})}),_&&!i&&(0,tC.jsx)(TypingIndicatorOverlay,{})]})},"chatProvider");var ot=n(27282),on=n.n(ot),or=n(85681),oa=n.n(or);let oo=(0,nO.K)(function(e){var t=e.title,n=e.subtitle,r=e.actionBar,a=e.transitionTimes,o=e.openTitle,i=void 0!==o&&o,s=e.openActionBar,l=void 0!==s&&s,c=(0,ek._)((0,tD.useState)(!1),2),u=c[0],d=c[1];return(0,tD.useEffect)(function(){!u&&(i||l)&&d(!0)},[i,l]),(0,tC.jsxs)("div",{className:"title-container",children:[(0,tC.jsx)(r7.M,{children:i&&(0,tC.jsxs)(ae.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:(null==a?void 0:a.fadeIn)?a.fadeIn/1e3:.5,exit:{duration:(null==a?void 0:a.fadeOut)?a.fadeOut/1e3:1}},children:[(0,tC.jsx)("h1",{className:"message-title",children:(0,tC.jsx)(tV.Z,{message:t})}),(0,tC.jsx)("h4",{className:"message-subtitle",children:(0,tC.jsx)(tV.Z,{message:n})})]})}),(0,tC.jsx)(r7.M,{children:l&&(0,tC.jsx)(ae.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:(null==a?void 0:a.fadeIn)?a.fadeIn/1e3:.5,exit:{duration:(null==a?void 0:a.fadeOut)?a.fadeOut/1e3:1}},children:(0,tC.jsx)("div",{className:"message-action-bar",children:(0,tC.jsx)(tV.Z,{message:r})})})})]})},"title");var oi={text:""},os={fadeIn:500,stay:3500,fadeOut:1e3},ticksToMs=function(e){return e.fadeIn*=50,e.stay*=50,e.fadeOut*=50,e},getComponent=function(e){return"string"==typeof e?on().simplify(on().parse(e)):"string"===e.type?{text:e.value}:"compound"===e.type?oa().simplify(e):e};function TitleProvider(){var e=(0,ek._)((0,tD.useState)(oi),2),t=e[0],n=e[1],r=(0,ek._)((0,tD.useState)(oi),2),a=r[0],o=r[1],i=(0,ek._)((0,tD.useState)(oi),2),s=i[0],l=i[1],c=(0,ek._)((0,tD.useState)(os),2),u=c[0],d=c[1],w=(0,ek._)((0,tD.useState)(!1),2),p=w[0],h=w[1],M=(0,ek._)((0,tD.useState)(!1),2),g=M[0],m=M[1];return(0,tD.useMemo)(function(){bot._client.on("set_title_text",function(e){n(getComponent(e.text)),h(!0)}),bot._client.on("set_title_subtitle",function(e){o(getComponent(e.text))}),bot._client.on("action_bar",function(e){l(getComponent(e.text)),m(!0)}),bot._client.on("set_title_time",function(e){d(ticksToMs(e))}),bot._client.on("clear_titles",function(e){h(!1),m(!1),e.reset&&(n(oi),o(oi),l(oi),d(os))}),bot.on("actionBar",function(e){d({fadeIn:0,stay:2e3,fadeOut:1e3}),l(e),m(!0)}),bot._client.on("title",function(e){var t;switch((t="string"==typeof e?JSON.parse(e):e).action){case 0:n(JSON.parse(t.text)),h(!0);break;case 1:o(JSON.parse(t.text));break;case 2:l(JSON.parse(t.text)),m(!0);break;case 3:d(ticksToMs({fadeIn:t.fadeIn,stay:t.stay,fadeOut:t.fadeOut}));break;case 4:h(!1),m(!1);break;case 5:h(!1),m(!1),n(oi),o(oi),l(oi),d(os)}})},[]),(0,tD.useEffect)(function(){var e=setTimeout(function(){h(!1)},u.stay);return function(){clearTimeout(e)}},[t,a]),(0,tD.useEffect)(function(){var e=null;return p||(e=setTimeout(function(){o(oi)},u.fadeOut)),function(){e&&clearTimeout(e)}},[p]),(0,tD.useEffect)(function(){var e=setTimeout(function(){m(!1)},u.stay);return function(){clearTimeout(e)}},[s]),(0,tC.jsx)(oo,{title:t,subtitle:a,actionBar:s,transitionTimes:u,openTitle:p,openActionBar:g})}let ol=(0,nO.K)(function(e){var t=e.title,n=e.items,r=e.open,a=e.style;return r?(0,tC.jsxs)("div",{className:"scoreboard-container",style:a,children:[(0,tC.jsx)("div",{className:"scoreboard-title",children:(0,tC.jsx)(tV.Z,{message:t})}),n.map(function(e){var t,n=null!=(t=e.displayName)?t:e.name;return(0,tC.jsxs)("div",{className:"item-container",children:[(0,tC.jsx)("div",{className:"item-name",children:(0,tC.jsx)(tV.Z,{message:n})}),(0,tC.jsx)("div",{className:"item-value",children:e.value})]},(0,ns.BO)(n)+"_"+e.value)})]}):null},"scoreboard");function ScoreboardProvider(){var e=(0,ek._)((0,tD.useState)("Scoreboard"),2),t=e[0],n=e[1],r=(0,ek._)((0,tD.useState)([]),2),a=r[0],o=r[1],i=(0,ek._)((0,tD.useState)(!1),2),s=i[0],l=i[1];return(0,tD.useMemo)(function(){var updateSidebarScoreboard=function(){addStatPerSec("scoreboard"),bot.scoreboard.sidebar?(n(bot.scoreboard.sidebar.title),o((0,eE._)(bot.scoreboard.sidebar.items)),l(!0)):l(!1)};bot.on("scoreboardCreated",updateSidebarScoreboard),bot.on("scoreboardTitleChanged",updateSidebarScoreboard),bot.on("scoreUpdated",updateSidebarScoreboard),bot.on("scoreRemoved",updateSidebarScoreboard),bot.on("scoreboardDeleted",updateSidebarScoreboard),bot.on("scoreboardPosition",function(){Promise.resolve().then(function(){updateSidebarScoreboard()})})},[]),(0,tC.jsx)(ol,{title:t,items:a,open:s})}n(34396),n(20516);var oc=n(92925);function markdownToFormattedText(e){var t=e.split("\n\n"),n=["","","",""],r=!0,a=!1,o=void 0;try{for(var i,s=t.map(function(e){return(0,oc.j)().parse(e)}).entries()[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var l=(0,ek._)(i.value,2),c=l[0],u=l[1];n[c]=transformToMinecraftJSON(u)}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}function transformToMinecraftJSON(e){switch(e.type){case"root":if(!e.children)return;return e.children.map(function(e){return transformToMinecraftJSON(e)}).filter(Boolean);case"paragraph":if(!e.children)return;return e.children.map(function(e){return transformToMinecraftJSON(e)}).filter(Boolean).flat();case"strong":if(!e.children)return;return[{bold:!0,text:e.children[0].value}];case"text":return{text:e.value};case"emphasis":if(!e.children)return;return[{italic:!0,text:e.children[0].value}];default:return e.value}}function SignEditor(e){var t=e.handleInput,n=e.ProseMirrorView,r=e.handleClick,a=!!n,o=(0,tD.useRef)(null),i=(0,tD.useRef)(null);return(0,tD.useEffect)(function(){a&&(i.current=new n(o.current,""))},[a]),(0,tC.jsx)("div",{className:"signs-editor-container",onKeyDown:function(e){if(!a){var t=e.code;if(e.target.matches("input")&&"Enter"===e.key&&(t="ArrowDown"),"ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n="ArrowDown"===t?1:-1,r=(0,nz.KW)(e.currentTarget),o=r.indexOf(document.activeElement);if(-1===o)return;var i=r[o+n];null==i||i.focus()}}},children:(0,tC.jsxs)("div",{className:"signs-editor-inner-container",children:[(0,tC.jsx)("img",{className:"signs-editor-bg-image",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAMCAYAAAB4MH11AAABbElEQVR4AY3BQY6cMBBA0Q+yQZZVi+ndcJVcKGfMgegdvShKVtuokzGSWwwiUd7rfv388Vst0UgMXCobmgsSA5VaQmKgUks0EgNHji8SA9W8GJCQwVNpLhzJ4KFs4B1HEgPVvBiQkMFTaS44tYTEQDXdIkfiHbuyobmguaDPFzIWGrWExEA13SJH4h1uzS/WbPyvroM1v6jWbFRrNv7GfX5EdmXjzTvUEjJ4zjQXjiQGdmXjzTvUEjJ4HF/UEt/kQqW5UEkMzIshY08jg6dRS3yTC5XmgpsXY7pFztQSEgPNJCNv3lGpJVSfTLfImVpCYsB1HdwfxpU1G9eeNF0H94dxZc2G+/yI7MoG3vEv82LI2NNIDLyVDbzjzFE2mnkxZOy5IoNnkpFGc2FXNpp5MWTsOXJ4h1qikrGnkhjYlY1m1icy9lQSA+TCzjvUEpWMPZXEwK5suPvDOFuzcdZ1sOYX1ZqNas3GlTUbzR+jQbEAcs8ZQAAAAABJRU5ErkJggg==",alt:""}),a?(0,tC.jsx)("p",{ref:o,className:"wysiwyg-editor"}):[1,2,3,4].map(function(e,n){return(0,tC.jsx)("input",{className:"sign-editor","data-key":n,maxLength:15,onChange:function(e){t(e.currentTarget)}},n)}),(0,tC.jsx)(nI.Z,{onClick:(0,eC._)(function(){var e,t,n,o,s,l,c,u,d;return(0,eT.Jh)(this,function(w){if(r)if(a)t=(e=markdownToFormattedText(i.current.content)).map(function(e){return Array.isArray(e)&&Array.isArray(e[0])?e.map(function(e){return e[0]}):e}).map(function(e){return Array.isArray(e)?e.map(function(e){return e.text}).join(""):e}),r({dataText:e,plainText:t});else{n=[],o=!0,s=!1,l=void 0;try{for(c=document.getElementsByClassName("sign-editor")[Symbol.iterator]();!(o=(u=c.next()).done);o=!0)d=u.value,n.push(d.value)}catch(e){s=!0,l=e}finally{try{o||null==c.return||c.return()}finally{if(s)throw l}}r({plainText:n})}return[2]})}),className:"sign-editor-button",label:"Done"})]})})}n(95917),n(59099);var ou=(ea=(0,eC._)(function(){var e,t,n,r,a,o,i,s,l;return(0,eT.Jh)(this,function(c){switch(c.label){case 0:return[4,bot.tabComplete("/data ",!0,!0)];case 1:e=c.sent(),t=new Set(["merge"]),n=!0,r=!1,a=void 0;try{for(o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0)if(s=i.value,t.has(null!=(l=s.match)?l:s))return[2,!0]}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return[2,!1]}})}),function(){return ea.apply(this,arguments)});function SignEditorProvider(){var e=(0,ek._)((0,tD.useState)(null),2),t=e[0],r=e[1],a=(0,ek._)((0,tD.useState)(!0),2),o=a[0],i=a[1],s=(0,tD.useRef)(["","","",""]),l=(0,ek._)((0,tD.useState)(!1),2),c=l[0],u=l[1],d=(0,tN.uM)("signs-editor-screen"),w=(0,ek._)((0,tD.useState)(null),2),p=w[0],h=w[1];return((0,tD.useMemo)(function(){bot._client.on("open_sign_entity",function(e){var t;e2.YM.autoSignEditor&&(i(null==(t=e.isFrontText)||t),r(function(t){return e.location}),(0,e5.K4)({reactType:"signs-editor-screen"}),"auto"===e2.YM.wysiwygSignEditor?ou().then(function(e){u(e)}):"always"===e2.YM.wysiwygSignEditor?u(!0):u(!1))}),Promise.all([n.e("158"),n.e("850")]).then(n.bind(n,8061)).then(function(e){var t=e.ProseMirrorView;h(function(){return t})})},[]),d)?(0,tC.jsx)(SignEditor,{ProseMirrorView:c?p:void 0,handleInput:function(e){var t=/[()[\]{} ]/,n=/[;|',.]/,r=0,a=!0,o=!1,i=void 0;try{for(var l,c=e.value[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var u=l.value;t.test(u)?r+=1-1/1.46:n.test(u)&&(r+=1-1/3)}}catch(e){o=!0,i=e}finally{try{a||null==c.return||c.return()}finally{if(o)throw i}}s.current[Number(e.dataset.key)]=e.value,e.setAttribute("maxlength","".concat(15+Math.ceil(r)))},handleClick:function(e){if(((0,e5.VG)({reactType:"signs-editor-screen"}),bot._client.write("update_sign",{location:t,isFrontText:o,text1:e.plainText[0],text2:e.plainText[1],text3:e.plainText[2],text4:e.plainText[3]}),e.dataText)&&t){var n="/data merge block ".concat(t.x," ").concat(t.y," ").concat(t.z," {Text1:'")+JSON.stringify(e.dataText[0])+"',Text2: '"+JSON.stringify(e.dataText[1])+"',Text3:'"+JSON.stringify(e.dataText[2])+"',Text4:'"+JSON.stringify(e.dataText[3])+"'}";bot.chat(n)}}}):null}function formatTime(e){if(e<0)return"";var t=Math.floor(e/60),n=Math.floor(e%60),r=String(t).padStart(2,"0"),a=String(n).padStart(2,"0");return"".concat(r,":").concat(a)}n(97983);var EffectBox=function(e){var t,n=e.image,r=e.level,a=e.name,o=e.initialTime,i=e.duration,s=(0,ek._)((0,tD.useState)(Date.now()),2),l=s[0],c=s[1];(0,tD.useEffect)(function(){var e=setInterval(function(){c(Date.now())},100);return function(){return clearInterval(e)}},[]);var u=Math.max(0,i-(l-o)/1e3),d=i>0?Math.max(0,Math.min(1,u/i)):0,w=(0,tD.useMemo)(function(){return formatTime(u)},[u]),p=r>0&&r<256?" ".concat((t=r+1)<=0?"":["I","II","III","IV","V","VI","VII","VIII","IX","X"][t-1]||"".concat(t)):"";return(0,tC.jsxs)("div",{className:"effect-box",children:[(0,tC.jsx)("div",{className:"effect-box__progress-bg",style:{width:"".concat(100*d,"%")}}),(0,tC.jsx)("img",{className:"effect-box__image",src:n,alt:""}),(0,tC.jsxs)("div",{className:"effect-box__content",children:[(0,tC.jsxs)("div",{className:"effect-box__title",children:[a,p]}),w&&(0,tC.jsx)("div",{className:"effect-box__time",children:w})]})]})},od={chunksLoading:!1,readingFiles:!1,readonlyFiles:!1,writingFiles:!1,appHasErrors:!1,connectionIssues:0,preventSleep:!1},ow={chunksLoading:"add-grid",readingFiles:"arrow-bar-down",writingFiles:"arrow-bar-up",appHasErrors:"alert",readonlyFiles:"file-off",connectionIssues:nY.K["cellular-signal-off"],preventSleep:nY.K.moon},of={connectionIssues:{0:!1,1:"orange",2:"red"}};function IndicatorEffects(e){var t=e.indicators,n=e.effects,r=e.displayIndicators,a=e.displayEffects,o=Object.entries(od).map(function(e){var n=(0,ek._)(e,1)[0],r=t[n];return{icon:ow[n],state:r,key:n}});return(0,tC.jsxs)("div",{className:"indicators-container-outer",children:[(0,tC.jsx)("div",{className:"indicators-container",children:r&&o.map(function(e){var t;return(0,tC.jsx)("div",{style:{opacity:+!!e.state,transition:"opacity color 0.1s",color:null==(t=of[e.key])?void 0:t[e.state]},children:(0,tC.jsx)(nY.Z,{iconName:e.icon})},e.icon)})}),a&&(0,tC.jsx)(EffectsInner,{effects:n})]})}var EffectsInner=function(e){var t=e.effects;return(0,tC.jsx)("div",{className:"effects-container",children:t.map(function(e){return(0,tC.jsx)(EffectBox,(0,ej._)({},e),"effectBox-".concat(e.id))})})},op=n(7827),oh=n(60677),oM=n(79251),og=n(22219),om=n(47071),ov=n(99471),oy=n(30521),oA=n(72619),ob=n(48431),o_=n(6921),oL=n(71e3),oC=n(98163),oj=n(80699),oD=n(88812),ox=n(13436),ok=n(2523),oN=n(26235),oT=n(5303),oS=n(89257),oz=n(28182),oq=n(71448),oE=n(84252),oI=n(98390),oP=n(70782),oY=n(40559),oO=n(83933),oR=n(52363),oB={absorption:op,glowing:oh,instant_health:oM,nausea:og,slow_falling:om,weakness:ov,bad_omen:oy,haste:oA,invisibility:ob,night_vision:o_,slowness:oL,wither:oC,blindness:oj,health_boost:oD,jump_boost:ox,poison:ok,speed:oN,conduit_power:oT,hero_of_the_village:oS,levitation:oz,regeneration:oq,strength:oE,dolphins_grace:oI,hunger:oP,luck:oY,resistance:oO,unluck:oR,bad_luck:oR,good_luck:oY,fire_resistance:n(13789),instant_damage:n(21726),mining_fatigue:n(3252),saturation:n(55235),water_breathing:n(60290),darkness:n(98771)},oU=(0,tt.sj)({indicators:{},effects:[]}),addEffect=function(e){var t,n,r=loadedData.effectsArray.find(function(t){return t.id===e.id}),a=null!=(t=null==r?void 0:r.name)?t:"unknown: ".concat(e.id),o=null!=(n=oB[a.replaceAll(/[A-Z]/g,function(e){return"_".concat(e.toLowerCase())}).slice(1)])?n:null;if(!o)return void(0,td.Tb)("received unknown effect id ".concat(e.id));var i=getEffectIndex({id:e.id});if("number"==typeof i)oU.effects[i].initialTime=Date.now(),oU.effects[i].level=e.amplifier,oU.effects[i].duration=e.duration/20;else{var s={id:e.id,name:a,image:o,level:e.amplifier,initialTime:Date.now(),duration:e.duration/20};oU.effects.push(s)}},removeEffect=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=oU.effects.entries()[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=(0,ek._)(a.value,2),s=i[0];i[1].id===e&&oU.effects.splice(s,1)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}},getEffectIndex=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=oU.effects.entries()[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=(0,ek._)(a.value,2),s=i[0];if(i[1].id===e.id)return s}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}return null};function IndicatorEffectsProvider(e){var t,n=e.displayEffects,r=e.displayIndicators,a=(0,ek._)((0,tD.useState)(!1),2),o=(a[0],a[1]),i=(0,tJ.R)(oU.indicators),s=!(0,tJ.R)(appViewer.rendererState).world.allChunksLoaded;(0,tJ.R)(appViewer.rendererState).world.mesherWork;var l=(0,tJ.R)(e5.N_).hasErrors,c=(0,tJ.R)(tb.RL),u=c.isReadonly,d=c.openReadOperations,w=c.openWriteOperations,p=(0,tJ.R)(e5.rl),h=p.noConnection,M=p.poorConnection,g=(0,ej._)({readonlyFiles:u,writingFiles:w>0,readingFiles:d>0,appHasErrors:l,connectionIssues:M?1:2*!!h,chunksLoading:s,preventSleep:!!(null==(t=bot)?void 0:t.wakeLock)},i),m=(0,tJ.R)(oU.effects);return(0,tD.useEffect)(function(){var e=setInterval(function(){o(function(e){return!e})},1e3);return function(){return clearInterval(e)}},[]),(0,tD.useMemo)(function(){Object.fromEntries(loadedData.effectsArray.map(function(e){var t=e.name.replaceAll(/[A-Z]/g,function(e){return"_".concat(e.toLowerCase())}).slice(1);return[e.id,oB[t]]}));var gotEffect=function(e,t){e.id===bot.entity.id&&addEffect(t)};bot.on("entityEffect",gotEffect);var e=!0,t=!1,n=void 0;try{for(var r,a,o=Object.values(null!=(r=bot.entity.effects)?r:{})[Symbol.iterator]();!(e=(a=o.next()).done);e=!0){var i=a.value;gotEffect(bot.entity,i)}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}bot.on("entityEffectEnd",function(e,t){e.id===bot.entity.id&&removeEffect(t.id)})},[]),(0,tC.jsx)(IndicatorEffects,{indicators:g,effects:m,displayIndicators:void 0===r||r,displayEffects:void 0===n||n})}var oQ=n(2836);n(5832);var oF=n(64971),oW=n.n(oF),oJ=n(20042),oV=n(60489),oG=n(53123),oH=n(29709),oZ=n(59048);let oK=(0,nO.K)(function(e){var t=e.adapter,n=e.toggleFullMap,r=(0,ek._)((0,tD.useState)(function(){return new Set}),2),a=r[0],o=r[1],i=(0,tD.useRef)(null),s=(0,ek._)((0,tD.useState)(null),2),l=s[0],c=s[1],u=(0,ek._)((0,tD.useState)({x:0,y:0,z:0}),2),d=u[0],w=u[1],p=(0,tD.useRef)({scale:1,positionX:0,positionY:0}),h=(0,tD.useRef)({columns:0,rows:0}),M=(0,ek._)((0,tD.useState)(!1),2),g=M[0],m=M[1],v=(0,ek._)((0,tD.useState)(void 0),2),y=v[0],A=v[1],b=(0,ek._)((0,tD.useState)(void 0),2),_=b[0],L=b[1],updateGrid=function(){var e,t,n=null==(t=i.current)||null==(e=t.instance.wrapperComponent)?void 0:e.getBoundingClientRect();if(n){var r=Math.ceil(n.width/(64*p.current.scale)),a=Math.ceil(n.height/(64*p.current.scale));h.current.rows=a,h.current.columns=r;for(var s=-(64*Math.floor(p.current.positionX/(64*p.current.scale))),l=-(64*Math.floor(p.current.positionY/(64*p.current.scale))),c=new Set,u=-1;u500?(0,tC.jsx)("div",{style:{position:"absolute",width:"100%",height:"100%",zIndex:"-1"},onClick:n,children:" "}):(0,tC.jsx)(nI.Z,{icon:"close-box",onClick:n,style:{position:"absolute",top:"20px",right:"20px",zIndex:1}}),(0,tC.jsx)(oZ.d$,{limitToBounds:!1,ref:i,minScale:.1,doubleClick:{disabled:!1},panning:{allowLeftClickPan:!0,allowRightClickPan:!1},onTransformed:function(e,t){p.current=(0,ej._)({},t)},onPanningStop:function(){updateGrid()},onZoomStop:function(){updateGrid()},children:(0,tC.jsx)(oZ.Uv,{wrapperClass:"map",wrapperStyle:{willChange:"transform"},children:(0,eE._)(a).map(function(e){var n,r,a,o,s=(0,ek._)(e.split(",").map(Number),2),c=s[0],u=s[1],d=16*Math.floor(t.playerPosition.x/16),h=16*Math.floor(t.playerPosition.z/16),M=null==(r=i.current)||null==(n=r.instance.wrapperComponent)?void 0:n.getBoundingClientRect(),g=16*Math.floor((null!=(a=null==M?void 0:M.width)?a:0)/128),v=16*Math.floor((null!=(o=null==M?void 0:M.height)?o:0)/128);return(0,tC.jsx)(MapChunk,{x:c,y:u,scale:p.current.scale,adapter:t,worldX:d+c/4-g,worldZ:h+u/4-v,setIsWarpInfoOpened:m,setLastWarpPos:w,redraw:l,setInitWarp:A,setWarpPreview:L},"mapcell:"+e)})})}),_&&(0,tC.jsxs)("div",{style:{position:"absolute",top:_.clientY-70,left:_.clientX-70,textAlign:"center",fontSize:"1.5em",textShadow:"0.1em 0 black, 0 0.1em black, -0.1em 0 black, 0 -0.1em black, -0.1em -0.1em black, -0.1em 0.1em black, 0.1em -0.1em black, 0.1em 0.1em black"},children:[_.name,(0,tC.jsxs)("div",{children:[_.x," ",_.z]})]}),g&&(0,tC.jsx)(WarpInfo,{adapter:t,warpPos:d,setIsWarpInfoOpened:m,setRedraw:c,initWarp:y,setInitWarp:A,toggleFullMap:n})]})},"fullmap");var MapChunk=function(e){var t=e.x,n=e.y,r=e.scale,a=e.adapter,o=e.worldX,i=e.worldZ,s=e.setIsWarpInfoOpened,l=e.setLastWarpPos,c=e.redraw,u=e.setInitWarp,d=e.setWarpPreview,w=(0,tD.useRef)(null),p=(0,tD.useRef)(null),h=(0,tD.useRef)(null),longPress=function(e){p.current=setTimeout(function(){p.current=null,handleClick(e)},500)},cancel=function(){p.current&&clearTimeout(p.current)},handleClick=function(e){if(a.mapDrawer){if(console.log("click:",e),"buttons"in e&&2===e.button)t=e.clientX,n=e.clientY;else{if(!("changedTouches"in e))return;t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY}var t,n,r=(0,ek._)(getXZ(t,n),2),c=r[0],d=r[1],w=Math.floor(c+o),p=Math.floor(d+i),h=a.getHighestBlockY(w,p);a.mapDrawer.setWarpPosOnClick(new eB.A(w,h,p)),l(a.mapDrawer.lastWarpPos);var M=a.mapDrawer.lastWarpPos,g=a.warps.find(function(e){return 2>Math.hypot(M.x-e.x,M.z-e.z)});null==u||u(g),s(!0)}},getXZ=function(e,t){var n,o=h.current.getBoundingClientRect(),i=r*(null!=(n=a.mapDrawer.mapPixel)?n:1);return[(e-o.left)/i,(t-o.top)/i]},handleMouseMove=function(e){var t=(0,ek._)(getXZ(e.clientX,e.clientY),2),n=t[0],r=t[1],s=a.warps.find(function(e){return 2>Math.hypot(e.x-n-o,e.z-r-i)});null==d||d(s?{name:s.name,x:s.x,z:s.z,clientX:e.clientX,clientY:e.clientY}:void 0)},handleRedraw=function(e){if(e==="".concat(o/16,",").concat(i/16)){a.mapDrawer.canvas=h.current,a.mapDrawer.full=!0,console.log("[mapChunk] update",e,"".concat(o/16,",").concat(i/16));var t=setTimeout(function(){h.current&&a.drawChunkOnCanvas("".concat(o/16,",").concat(i/16),h.current),clearTimeout(t)},100)}};return(0,tD.useEffect)(function(){h.current&&a.drawChunkOnCanvas("".concat(o/16,",").concat(i/16),h.current)},[h.current]),(0,tD.useEffect)(function(){var e,t,n,r,a;return null==(e=h.current)||e.addEventListener("contextmenu",handleClick),null==(t=h.current)||t.addEventListener("touchstart",longPress),null==(n=h.current)||n.addEventListener("touchend",cancel),null==(r=h.current)||r.addEventListener("touchmove",cancel),null==(a=h.current)||a.addEventListener("mousemove",handleMouseMove),function(){var e,t,n,r,a;null==(e=h.current)||e.removeEventListener("contextmenu",handleClick),null==(t=h.current)||t.removeEventListener("touchstart",longPress),null==(n=h.current)||n.removeEventListener("touchend",cancel),null==(r=h.current)||r.removeEventListener("touchmove",cancel),null==(a=h.current)||a.removeEventListener("mousemove",handleMouseMove)}},[h.current]),(0,tD.useEffect)(function(){if(c){var e=!0,t=!1,n=void 0;try{for(var r,a=c[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value;handleRedraw(o)}}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}}},[c]),(0,tC.jsx)("div",{ref:w,style:{position:"absolute",width:"64px",height:"64px",top:"".concat(n,"px"),left:"".concat(t,"px")},children:(0,tC.jsx)("canvas",{ref:h,style:{width:"100%",height:"100%",imageRendering:"pixelated"},width:64,height:64})})},WarpInfo=function(e){var t,n,r,a,o,i,s=e.adapter,l=e.warpPos,c=e.setIsWarpInfoOpened,u=e.afterWarpIsSet,d=e.initWarp,w=e.toggleFullMap,p=e.setRedraw,h=(0,ek._)((0,tD.useState)(null!=d?d:{name:"",x:null!=(t=null==l?void 0:l.x)?t:100,y:null!=(n=null==l?void 0:l.y)?n:100,z:null!=(r=null==l?void 0:l.z)?r:100,color:"",disabled:!1,world:s.world}),2),M=h[0],g=h[1],m={flexGrow:"1"},v={display:"flex",alignItems:"center",gap:"5px"},updateChunk=function(){for(var e=new Set,t=-1;t<2;t+=1)for(var n=-1;n<2;n+=1)e.add("".concat(Math.floor(M.x/16)+n,",").concat(Math.floor(M.z/16)+t));null==p||p(e),console.log("[warpInfo] update",e)},quickTp=function(){var e;null==w||w(),null==(e=s.quickTp)||e.call(s,M.x,M.z)};return(0,tC.jsx)("div",{style:{position:"absolute",inset:"0px",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",backgroundColor:"rgba(0, 0, 0, 0.5)",fontSize:"0.8em",transform:"scale(2)"},children:(0,tC.jsxs)("form",{style:{display:"flex",flexDirection:"column",gap:"10px",width:window.screen.width>500?"100%":"50%",minWidth:"100px",maxWidth:"300px",padding:"20px",backgroundColor:"rgba(0, 0, 0, 0.5)",border:"2px solid black"},children:[(0,tC.jsx)("h2",{style:{alignSelf:"center"},children:"Point on the map"}),(0,tC.jsxs)("div",{style:v,children:[(0,tC.jsx)("div",{children:"Name:"}),(0,tC.jsx)(nE.ZP,{defaultValue:M.name,onChange:function(e){e.target&&g(function(t){return(0,eD._)((0,ej._)({},t),{name:e.target.value})})},autoFocus:!0})]}),(0,tC.jsxs)("div",{style:v,children:[(0,tC.jsx)("div",{children:"X:"}),(0,tC.jsx)(nE.ZP,{rootStyles:m,defaultValue:null!=(a=M.x)?a:100,onChange:function(e){e.target&&g(function(t){return(0,eD._)((0,ej._)({},t),{x:Number(e.target.value)})})}}),(0,tC.jsx)("div",{children:"Z:"}),(0,tC.jsx)(nE.ZP,{rootStyles:m,defaultValue:null!=(o=M.z)?o:100,onChange:function(e){e.target&&g(function(t){return(0,eD._)((0,ej._)({},t),{z:Number(e.target.value)})})}})]}),(0,tC.jsxs)("div",{style:v,children:[(0,tC.jsx)("div",{children:"Color:"}),(0,tC.jsx)(nE.ZP,{type:"color",defaultValue:""===M.color?"#232323":M.color,onChange:function(e){e.target&&g(function(t){return(0,eD._)((0,ej._)({},t),{color:e.target.value})})},rootStyles:{width:"30px"},style:{left:"0px"}})]}),(0,tC.jsxs)("div",{style:v,children:[(0,tC.jsx)("label",{htmlFor:"warp-disabled",children:"Disabled:"}),(0,tC.jsx)("input",{id:"warp-disabled",type:"checkbox",checked:null!=(i=M.disabled)&&i,onChange:function(e){e.target&&g(function(t){return(0,eD._)((0,ej._)({},t),{disabled:e.target.checked})})}})]}),(0,tC.jsx)(nI.Z,{style:{alignSelf:"center"},onClick:function(){quickTp()},children:"Quick TP"}),(0,tC.jsxs)("div",{style:v,children:[(0,tC.jsx)(nI.Z,{onClick:function(){c(!1)},children:"Cancel"}),(0,tC.jsx)(nI.Z,{onClick:function(e){e.preventDefault(),s.setWarp((0,ej._)({},M)),console.log(s.warps),c(!1),updateChunk(),null==u||u()},type:"submit",children:"Add Warp"}),d&&(0,tC.jsx)(nI.Z,{onClick:function(){-1!==s.warps.findIndex(function(e){return e.name===M.name})&&(s.setWarp({name:M.name,x:0,y:0,z:0,color:"",disabled:!1,world:""},!0),c(!1),updateChunk(),null==u||u())},children:"Delete"})]})]})})};function Minimap(e){var t=e.adapter,n=e.showMinimap,r=e.showFullmap,a=e.singleplayer,o=e.fullMap,i=e.toggleFullMap,s=e.displayMode,l=(0,tD.useRef)(!1),c=(0,tD.useRef)(0),u=(0,tD.useRef)(null),d=(0,ek._)((0,tD.useState)({x:0,y:0,z:0}),2),w=d[0],p=d[1],h=(0,tD.useRef)(0),updateMap=function(){var e=Date.now();e-h.current<50||(h.current=e,p({x:t.playerPosition.x,y:t.playerPosition.y,z:t.playerPosition.z}),t.mapDrawer&&(l.current||(rotateMap(),t.mapDrawer.draw(t.playerPosition),t.mapDrawer.drawPlayerPos(),t.mapDrawer.drawWarps()),c.current%300!=0||o||("requestIdleCallback"in window?requestIdleCallback(function(){var e;null==(e=t.mapDrawer)||e.clearChunksStore()}):t.mapDrawer.clearChunksStore(),c.current=0)),c.current+=1)},updateWarps=function(){},rotateMap=function(){t.mapDrawer&&(t.mapDrawer.canvas.style.transform="rotate(".concat(t.yaw,"rad)"),t.mapDrawer.yaw=t.yaw)};return(0,tD.useEffect)(function(){u.current&&t.mapDrawer&&!e5.N_.displayFullmap&&(t.mapDrawer.canvas=u.current,t.mapDrawer.full=!1)},[u.current,e5.N_.displayFullmap]),(0,tD.useEffect)(function(){return t.on("updateMap",updateMap),t.on("updateWaprs",updateWarps),function(){t.off("updateMap",updateMap),t.off("updateWaprs",updateWarps)}},[t]),o&&"minimapOnly"!==s&&("singleplayer"===r&&a||"always"===r)?(0,tC.jsx)(oK,{toggleFullMap:i,adapter:t}):"fullmapOnly"!==s&&("singleplayer"===n&&a||"always"===n)?(0,tC.jsxs)("div",{className:"minimap",style:{position:"absolute",right:"0px",top:"0px",padding:"5px 5px 0px 0px",textAlign:"center",zIndex:7},onClick:function(){null==i||i()},children:[(0,tC.jsx)("canvas",{style:{transition:"0.5s",transitionTimingFunction:"ease-out",borderRadius:"1000px"},width:80,height:80,ref:u}),(0,tC.jsxs)("div",{style:{fontSize:"0.5em",textShadow:"0.1em 0 black, 0 0.1em black, -0.1em 0 black, 0 -0.1em black, -0.1em -0.1em black, -0.1em 0.1em black, 0.1em -0.1em black, 0.1em 0.1em black"},children:[Math.round(w.x)," ",Math.round(w.y)," ",Math.round(w.z)]})]}):null}var oX=function(){function MinimapDrawer(e,t,n,r){(0,tH._)(this,MinimapDrawer),this.loadChunk=e,this.warps=t,this.loadingChunksQueue=n,this.chunksStore=r,this.chunksInView=new Set,this._full=!1,this.loadChunk=e,this.warps=t,this.loadingChunksQueue=n,this.chunksStore=r}var e=MinimapDrawer.prototype;return e.setMapPixel=function(){this.full?(this.radius=Math.floor(Math.min(this.canvas.width,this.canvas.height)/2),this._mapSize=16):(this.radius=Math.floor(Math.min(this.canvas.width,this.canvas.height)/2.2),this._mapSize=2*this.radius),this.mapPixel=Math.floor(2*this.radius/this.mapSize)},e.draw=function(e){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.lastBotPos=e,this.updateChunksInView();var t=!0,n=!1,r=void 0;try{for(var a,o=this.chunksInView[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i,s,l=a.value;this.chunksStore.has(l)||(null==(i=this.loadingChunksQueue)?void 0:i.has(l))||null==(s=this.loadChunk)||s.call(this,l),this.drawChunk(l)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}this.full||this.drawPartsOfWorld()},e.updateChunksInView=function(e,t){var n=null!=e?e:this.lastBotPos.x,r=null!=t?t:this.lastBotPos.z,a=this.mapSize/2,o=Math.floor((n-a)/16)-1,i=Math.ceil((n+a)/16),s=Math.floor((r-a)/16)-1,l=Math.ceil((r+a)/16);this.chunksInView.clear();for(var c=s;c<=l;c+=1)for(var u=o;u<=i;u+=1)this.chunksInView.add("".concat(u,",").concat(c))},e.drawChunk=function(e,t){var n=(0,ek._)(e.split(",").map(Number),2),r=n[0],a=n[1],o=Math.floor((16*r-this.lastBotPos.x)*this.mapPixel+this.canvasWidthCenterX),i=Math.floor((16*a-this.lastBotPos.z)*this.mapPixel+this.canvasWidthCenterY),s=null!=t?t:this.chunksStore.get(e);if((void 0===s?"undefined":(0,eN._)(s))!=="object"){var l=16*this.mapPixel;this.ctx.fillStyle="requested"===s?"rgb(200, 200, 200)":"rgba(0, 0, 0, 0.5)",this.ctx.fillRect(o,i,l,l);return}for(var c=0;c<16;c+=1)for(var u=0;u<16;u+=1){var d,w=16*c+u,p=null!=(d=null==s?void 0:s.colors[w])?d:"rgb(255, 0, 0)",h=o+this.mapPixel*u,M=i+this.mapPixel*c;this.drawPixel(h,M,p)}},e.drawPixel=function(e,t,n){if(!this.full&&Math.hypot(e-this.canvasWidthCenterX,t-this.canvasWidthCenterY)>this.radius)return void this.ctx.clearRect(e,t,this.mapPixel,this.mapPixel);this.ctx.fillStyle=n,this.ctx.fillRect(e,t,this.mapPixel,this.mapPixel)},e.clearChunksStore=function(){var e=!0,t=!1,n=void 0;try{for(var r,a=this.chunksStore.keys()[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value,i=(0,ek._)(o.split(",").map(function(e){return 16*Number(e)}),2),s=i[0],l=i[1];Math.hypot(this.lastBotPos.x-s,this.lastBotPos.z-l)>5*this.radius&&this.chunksStore.delete(o)}}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}},e.setWarpPosOnClick=function(e){this.lastWarpPos=new eB.A(e.x,e.y,e.z)},e.drawWarps=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=this.warps[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i,s,l,c,u,d=a.value;if(!(!this.full&&Math.hypot(null!=(i=null==e?void 0:e.x)?i:this.lastBotPos.x-d.x,null!=(s=null==e?void 0:e.z)?s:this.lastBotPos.z-d.z)>this.mapSize)){var w=this.full?0:.1*this.radius,p=Math.floor((this.mapSize/2-(null!=(l=null==e?void 0:e.z)?l:this.lastBotPos.z)+d.z)*this.mapPixel)+w,h=Math.floor((this.mapSize/2-(null!=(c=null==e?void 0:e.x)?c:this.lastBotPos.x)+d.x)*this.mapPixel)+w,M=p-this.canvasWidthCenterX,g=h-this.canvasWidthCenterY,m=Math.hypot(g,M),v=Math.atan2(M,g),y=m>this.mapSize/2&&!this.full?this.canvasWidthCenterX+this.mapSize/2*Math.sin(v):p,A=m>this.mapSize/2&&!this.full?this.canvasWidthCenterY+this.mapSize/2*Math.cos(v):h;this.ctx.beginPath(),this.ctx.arc(A,y,m>this.mapSize/2&&!this.full?1.5*this.mapPixel:this.full?this.mapPixel:2*this.mapPixel,0,2*Math.PI,!1),this.ctx.strokeStyle="black",this.ctx.lineWidth=this.mapPixel,this.ctx.stroke(),this.ctx.fillStyle=d.disabled?"rgba(255, 255, 255, 0.4)":null!=(u=d.color)?u:"#d3d3d3",this.ctx.fill(),this.ctx.closePath()}}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}},e.drawPartsOfWorld=function(){this.ctx.fillStyle="white",this.ctx.shadowOffsetX=1,this.ctx.shadowOffsetY=1,this.ctx.shadowColor="black",this.ctx.font="".concat(this.radius/4,"px serif"),this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.strokeStyle="black",this.ctx.lineWidth=1;var e=-Math.PI/2,t=e+Math.PI,n=e+3*Math.PI/2,r=e+Math.PI/2;this.ctx.strokeText("N",this.canvasWidthCenterX+this.radius*Math.cos(e),this.canvasWidthCenterY+this.radius*Math.sin(e)),this.ctx.strokeText("S",this.canvasWidthCenterX+this.radius*Math.cos(t),this.canvasWidthCenterY+this.radius*Math.sin(t)),this.ctx.strokeText("W",this.canvasWidthCenterX+this.radius*Math.cos(n),this.canvasWidthCenterY+this.radius*Math.sin(n)),this.ctx.strokeText("E",this.canvasWidthCenterX+this.radius*Math.cos(r),this.canvasWidthCenterY+this.radius*Math.sin(r)),this.ctx.fillText("N",this.canvasWidthCenterX+this.radius*Math.cos(e),this.canvasWidthCenterY+this.radius*Math.sin(e)),this.ctx.fillText("S",this.canvasWidthCenterX+this.radius*Math.cos(t),this.canvasWidthCenterY+this.radius*Math.sin(t)),this.ctx.fillText("W",this.canvasWidthCenterX+this.radius*Math.cos(n),this.canvasWidthCenterY+this.radius*Math.sin(n)),this.ctx.fillText("E",this.canvasWidthCenterX+this.radius*Math.cos(r),this.canvasWidthCenterY+this.radius*Math.sin(r)),this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0},e.drawPlayerPos=function(e,t,n){this.ctx.setTransform(1,0,0,1,0,0);var r=(this.lastBotPos.x-(null!=e?e:this.lastBotPos.x))*this.mapPixel-30*!!this.full,a=(this.lastBotPos.z-(null!=t?t:this.lastBotPos.z))*this.mapPixel-30*!!this.full,o=this.mapSize/2*this.mapPixel+(this.full?0:.1*this.radius);this.ctx.translate(o+r,o+a),n||this.ctx.rotate(-this.yaw);var i=this.full?2:1,s=3*i,l=3*i;this.ctx.beginPath(),this.ctx.moveTo(0,-l),this.ctx.lineTo(-s,l),this.ctx.lineTo(s,l),this.ctx.closePath(),this.ctx.strokeStyle="#000000",this.ctx.lineWidth=this.full?2:1,this.ctx.stroke(),this.ctx.fillStyle="#FFFFFF",this.ctx.fill(),this.ctx.setTransform(1,0,0,1,0,0)},e.rotateMap=function(e){this.ctx.setTransform(1,0,0,1,0,0),this.ctx.translate(this.canvasWidthCenterX,this.canvasWidthCenterY),this.ctx.rotate(e),this.ctx.translate(-this.canvasWidthCenterX,-this.canvasWidthCenterY)},(0,oQ._)(MinimapDrawer,[{key:"full",get:function(){return this._full},set:function(e){this._full=e,this.setMapPixel()}},{key:"canvas",get:function(){return this._canvas},set:function(e){this.ctx=e.getContext("2d",{willReadFrequently:!0}),this.ctx.imageSmoothingEnabled=!1,this.canvasWidthCenterX=e.width/2,this.canvasWidthCenterY=e.height/2,this._canvas=e,this.setMapPixel()}},{key:"mapSize",get:function(){return this._mapSize},set:function(e){this._mapSize=e,this.mapPixel=Math.floor(2*this.radius/this.mapSize),this.draw(this.lastBotPos)}}]),MinimapDrawer}(),findHeightMap=function(e){function search(e){for(var t in e)if(["heightmap","heightmaps"].includes(t.toLowerCase()))return e[t];else if("object"===(0,eN._)(e[t])&&null!==e[t])return search(e[t])}return search(e)},o$=function(e){function DrawerAdapterImpl(e){if((0,tH._)(this,DrawerAdapterImpl),(s=(0,nb._)(this,DrawerAdapterImpl)).warps=e5.rl.warps,s.chunksStore=new Map,s.loadingChunksQueue=new Set,s.loadChunk=s.loadChunkMinimap,s.mapDrawer=new oX(s.loadChunk.bind(s),s.warps,s.loadingChunksQueue,s.chunksStore),s.currChunkPos={x:0,z:0},s.heightMap={},s.regions=new Map,s.chunksHeightmaps={},s._full=!1,s.isBuiltinHeightmapAvailable=!1,s.unsubscribers=[],s.playerPosition=null!=e?e:new eB.A(0,0,0),localServer){var t=Math.floor(s.playerPosition.x/16),n=Math.floor(s.playerPosition.z/16),r=Math.floor(t/32),a=Math.floor(n/32),o="".concat(r,",").concat(a),i=localServer.options.worldFolder;if(i){var s,l,c,u="".concat(i,"/region/r.").concat(r,".").concat(a,".mca"),d=new(oW())(u);d.initialize(),s.regions.set(o,d);var w=t%32<0?32+t%32:t%32,p=n%32<0?32+n%32:n%32;console.log("heightmap check begun",w,p),null==(c=s.regions.get(o))||null==(l=c.read(w,p))||l.then(function(e){var t;try{var n=(0,or.simplify)(e);t=findHeightMap(n)}catch(e){console.warn("error getting heightmap",e)}t?(s.isBuiltinHeightmapAvailable=!0,s.loadChunkFullmap=s.loadChunkFromRegion,console.log("using heightmap")):(s.isBuiltinHeightmapAvailable=!1,s.loadChunkFullmap=s.loadChunkNoRegion,console.log("dont use heightmap"))})}else s.isBuiltinHeightmapAvailable=!1,s.loadChunkFullmap=s.loadChunkNoRegion,console.log("dont use heightmap")}else s.isBuiltinHeightmapAvailable=!1,s.loadChunkFullmap=s.loadChunkFromViewer;if(localServer)s.overwriteWarps(localServer.warps);else{var h,M,g,m,v=localStorage.getItem("warps: ".concat(null!=(g=null==(h=ti.Pc.value)?void 0:h.server)?g:"server"," ").concat(null!=(m=null==(M=ti.Pc.value)?void 0:M.username)?m:"username"));s.overwriteWarps(JSON.parse(null!=v?v:"[]"))}s.isOldVersion=(0,eZ.Uo)(bot.version)<(0,eZ.Uo)("1.13"),s.blockData=new Map;var y=!0,A=!1,b=void 0;try{for(var _,L=Object.keys(oG.O9)[Symbol.iterator]();!(y=(_=L.next()).done);y=!0){var C=_.value,j=(0,n5.getRenamedData)("blocks",C,"1.20.2",bot.version);s.blockData.set(j,oG.O9[C])}}catch(e){A=!0,b=e}finally{try{y||null==L.return||L.return()}finally{if(A)throw b}}return(0,tt.Ld)(appViewer.rendererState.world,function(){var e=!0,t=!1,n=void 0;try{for(var r,a=s.loadingChunksQueue[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value;appViewer.rendererState.world.chunksLoaded[o]&&(s.loadingChunksQueue.delete(o),s.loadChunk(o))}}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}}),s}(0,n_._)(DrawerAdapterImpl,e);var t=DrawerAdapterImpl.prototype;return t.destroy=function(){var e=!0,t=!1,n=void 0;try{for(var r,a=this.unsubscribers[Symbol.iterator]();!(e=(r=a.next()).done);e=!0)(0,r.value)()}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}},t.overwriteWarps=function(e){this.warps.splice(0,this.warps.length);var t=!0,n=!1,r=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value;this.warps.push((0,ej._)({},i))}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}},t.setWarp=function(e,t){this.world=bot.game.dimension;var n=this.warps.findIndex(function(t){return t.name===e.name});t||-1!==n?t&&-1!==n?this.warps.splice(n,1):this.warps[n]=e:this.warps.push(e),localServer?localServer.setWarp(e,t):t?localStorage.removeItem("warps: ".concat(bot.username," ").concat(ti.Pc.value.server)):localStorage.setItem("warps: ".concat(bot.username," ").concat(ti.Pc.value.server),JSON.stringify(this.warps)),this.emit("updateWarps")},t.getHighestBlockY=function(e,t,n){var r=16*Math.floor(e/16),a=16*Math.floor(t/16);if(this.chunksHeightmaps["".concat(r,",").concat(a)])return this.chunksHeightmaps["".concat(r,",").concat(a)][e-r+(t-a)*16]-1;for(var o=null!=n?n:bot.world,i=bot.game,s=i.height,l=i.minY,c=s;c>0;c-=1){var u=o.getBlock(new eB.A(15&e,l+c,15&t));if(u&&!oV._.has(u.name))return l+c}return l},t.getChunkSingleplayer=function(e,t){return(0,eC._)(function(){return(0,eT.Jh)(this,function(n){switch(n.label){case 0:if(!localServer.overworld.storageProvider.getRegion(16*e,16*t))return[2,"unavailable"];return[4,localServer.players[0].world.getColumn(e,t)];case 1:return[2,n.sent()]}})})()},t.loadChunkMinimap=function(e){var t=this;return(0,eC._)(function(){var n,r,a,o,i,s,l,c,u,d,w,p,h,M,g;return(0,eT.Jh)(this,function(m){if(r=(n=(0,ek._)(e.split(",").map(Number),2))[0],a=n[1],o=16*r,i=16*a,appViewer.rendererState.world.chunksLoaded[e]){if(!(s=appViewer.rendererState.world.heightmaps[e]))return console.warn("[MinimapProvider] no highestBlocks from renderMethods"),[2,void 0];for(u=0,l=Array.from({length:256}).fill(""),c=new eB.A(0,0,0);u<16;u+=1)for(d=0;d<16;d+=1){if(w=o+d,p=i+u,h=16*u+d,c.x=w,c.z=p,c.y=s[h],!(M=bot.world.getBlock(c))){l[h]="rgba(0, 0, 0, 0.5)";continue}l[h]=t.setColor(M)}g={heightmap:s,colors:l},t.applyShadows(g),t.chunksStore.set(e,g),t.emit("chunkReady","".concat(r,",").concat(a))}else t.loadingChunksQueue.add("".concat(r,",").concat(a)),t.chunksStore.set(e,"requested");return[2]})})()},t.loadChunkNoRegion=function(e){var t=this;return(0,eC._)(function(){var n,r,a,o,i,s,l,c,u,d,w,p,h,M,g,m,v;return(0,eT.Jh)(this,function(y){switch(y.label){case 0:return r=(n=(0,ek._)(e.split(",").map(Number),2))[0],a=n[1],o=16*r,i=16*a,[4,t.getChunkSingleplayer(r,a)];case 1:if("unavailable"===(s=y.sent()))return[2,null];for(u=0,l=new Int16Array(256),c=Array.from({length:256}).fill("");u<16;u+=1)for(d=0;d<16;d+=1){for(w=o+d,p=i+u,h=t.getHighestBlockY(w,p,s),M=new eB.A(15&w,h,15&p),g=s.getBlock(M);null==g?void 0:g.name.includes("air");)M.y-=1,g=s.getBlock(M);if(!g)return console.warn("[cannot get the block] ".concat(r,", ").concat(a,", ").concat(o+d,", ").concat(i+u)),[2,null];l[m=16*u+d]=M.y,c[m]=t.setColor(g)}return v={heightmap:l,colors:c},t.applyShadows(v),[2,v]}})})()},t.loadChunkFromRegion=function(e){var t=this;return(0,eC._)(function(){var n,r,a,o,i,s,l,c,u,d,w,p,h,M,g,m,v;return(0,eT.Jh)(this,function(y){switch(y.label){case 0:return r=(n=(0,ek._)(e.split(",").map(Number),2))[0],a=n[1],o=16*r,i=16*a,[4,t.getChunkHeightMapFromRegion(r,a)];case 1:if(!(s=y.sent()))return[2,null];return[4,t.getChunkSingleplayer(r,a)];case 2:if("unavailable"===(l=y.sent()))return[2,null];for(u=0,c=Array.from({length:256}).fill("");u<16;u+=1)for(d=0;d<16;d+=1){for(w=o+d,p=i+u,h=16*u+d,s[h]-=1,s[h]<0&&(s[h]=0),M=s[h],g=new eB.A(15&w,M,15&p),m=l.getBlock(g);null==m?void 0:m.name.includes("air");)g.y-=1,m=l.getBlock(g);if(!m)return console.warn("[cannot get the block] ".concat(r,", ").concat(a,", ").concat(o+d,", ").concat(i+u)),[2,null];c[h]=t.setColor(m)}return v={heightmap:s,colors:c},t.applyShadows(v),[2,v]}})})()},t.getChunkHeightMapFromRegion=function(e,t,n){var r=this;return(0,eC._)(function(){var a,o,i,s,l,c,u,d,w;return(0,eT.Jh)(this,function(p){switch(p.label){case 0:if(a=Math.floor(e/32),o=Math.floor(t/32),i="".concat(a,",").concat(o),r.regions.has(i))return[3,2];return s=localServer.options.worldFolder,l="".concat(s,"/region/r.").concat(a,".").concat(o,".mca"),[4,(c=new(oW())(l)).initialize()];case 1:p.sent(),r.regions.set(i,c),p.label=2;case 2:return[4,r.regions.get(i).read(e%32,t%32)];case 3:return u=p.sent(),d=(0,or.simplify)(u),console.log("chunk ".concat(e,", ").concat(t,":"),d),w=findHeightMap(d),console.log("heightmap ".concat(e,", ").concat(t,":"),w),null==n||n(w),[2,w]}})})()},t.loadChunkFromViewer=function(e){var t=this;return(0,eC._)(function(){var n,r,a,o,i,s,l,c,u,d,w,p,h,M,g,m,v,y;return(0,eT.Jh)(this,function(A){switch(A.label){case 0:return a=(r=(0,ek._)(e.split(",").map(Number),2))[0],o=r[1],i=16*a,s=16*o,[4,null==(n=(0,e1.z)())?void 0:n.getHighestBlocks("".concat(i,",").concat(s))];case 1:if(l=A.sent(),!appViewer.rendererState.world.chunksLoaded["".concat(i,",").concat(s)]||(c=new Uint8Array(256),u=Array.from({length:256}).fill(""),!l))return[2,null];for(d=0;d<16;d+=1)for(w=0;w<16;w+=1){if(p=i+w,h=s+d,M=l["".concat(p,",").concat(h)],m=bot.world.getBlock(new eB.A(p,null!=(g=null==M?void 0:M.y)?g:0,h)),v=16*d+w,!m||!M){console.warn("[loadChunk] ".concat(a,", ").concat(o,", ").concat(i+w,", ").concat(s+d)),c[v]=0,u[v]="rgba(0, 0, 0, 0.5)";continue}c[v]=M.y,u[v]=t.setColor(m)}return y={heightmap:c,colors:u},t.applyShadows(y),[2,y]}})})()},t.applyShadows=function(e){for(var t=0;t<16;t+=1)for(var n=0;n<16;n+=1){var r,a,o,i,s,l,c=16*t+n,u=e.colors[c],d=e.heightmap[c],w=0,p=null!=(r=e.heightmap[c+1])?r:0,h=null!=(a=e.heightmap[c-16])?a:0,M=null!=(o=e.heightmap[c-15])?o:0;(p>d||h>d||M>d)&&(e.colors[c]=this.makeDarker(u),w-=1);var g=null!=(i=e.heightmap[c-1])?i:0,m=null!=(s=e.heightmap[c+16])?s:0,v=null!=(l=e.heightmap[c+15])?l:0;(g>d||m>d||v>d)&&(e.colors[c]=this.makeLighter(u),w+=1);var y=void 0;if(1===n?y=c-1:14===n?y=c+1:1===t?y=c-16:14===t&&(y=c+16),void 0!==y){var A=e.colors[y];switch(w){case 1:e.colors[y]=this.makeLighter(A);break;case -1:e.colors[y]=this.makeDarker(A)}}}},t.makeDarker=function(e){var t,n,r=null!=(n=null==(t=e.match(/\d+/g))?void 0:t.map(Number))?n:[];return 3!==r.length?e:(r=r.map(function(e){var t=e-20;return t<0&&(t=0),t}),"rgb(".concat(r.join(","),")"))},t.makeLighter=function(e){var t,n,r=null!=(n=null==(t=e.match(/\d+/g))?void 0:t.map(Number))?n:[];return 3!==r.length?e:(r=r.map(function(e){var t=e+20;return t>255&&(t=255),t}),"rgb(".concat(r.join(","),")"))},t.clearChunksStore=function(e,t){var n=!0,r=!1,a=void 0;try{for(var o,i=Object.keys(this.chunksStore)[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=o.value,l=(0,ek._)(s.split(",").map(Number),2),c=l[0],u=l[1];if(Math.hypot(c-e,u-t)>300){delete this.chunksStore[s],delete this.chunksHeightmaps[s];for(var d=0;d<16;d+=1)for(var w=0;w<16;w+=1)delete this.heightMap["".concat(c+d,",").concat(u+w)]}}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}},t.setColor=function(e){if("rgb(0, 255, 0)"===(i=this.isOldVersion?null!=(l=oG.O9[null==(s=oH.blocks["".concat(e.type,":").concat(e.metadata)])?void 0:s.replaceAll(/\[.*?]/g,"")])?l:"rgb(0, 0, 255)":null!=(c=this.blockData.get(e.name))?c:"rgb(0, 255, 0)")||"rgb(0, 0, 255)"===i){var t=e.name.split("_"),n=(0,eE._)(this.blockData.keys()),r=!0,a=!1,o=void 0;try{for(var i,s,l,c,u,d,w=t[Symbol.iterator]();!(r=(d=w.next()).done);r=!0){var p=(u=this,function(){var e,t=d.value,r=n.find(function(e){return e.includes(t)});if(r)return i=null!=(e=u.blockData.get(r))?e:"rgb(255, 0, 0)","break"}());if("break"===p)break}}catch(e){a=!0,o=e}finally{try{r||null==w.return||w.return()}finally{if(a)throw o}}}return i},t.quickTp=function(e,t){var n=this,r=this.getHighestBlockY(e,t);bot.chat("/tp ".concat(e," ").concat(r+20," ").concat(t));var a=setTimeout(function(){var r=n.getHighestBlockY(e,t);bot.chat("/tp ".concat(e," ").concat(r+20," ").concat(t)),clearTimeout(a)},500)},t.drawChunkOnCanvas=function(e,t){var n=this;return(0,eC._)(function(){var r,a,o,i,s;return(0,eT.Jh)(this,function(l){switch(l.label){case 0:return[4,n.loadChunkFullmap(e)];case 1:return r=l.sent(),o=(a=(0,ek._)(e.split(",").map(function(e){return 16*Number(e)}),2))[0],i=a[1],s=new eB.A(o+8,0,i+8),n.mapDrawer.lastBotPos=s,n.mapDrawer.canvas=t,n.mapDrawer.full=!0,n.mapDrawer.drawChunk(e,r),n.mapDrawer.drawWarps(s),n.mapDrawer.lastBotPos=n.playerPosition,n.mapDrawer.yaw=n.yaw,n.mapDrawer.drawPlayerPos(o,i),[2]}})})()},(0,oQ._)(DrawerAdapterImpl,[{key:"full",get:function(){return this._full},set:function(e){e||(console.log("this is minimap"),this.loadChunk=this.loadChunkMinimap,this.mapDrawer.loadChunk=this.loadChunk),this._full=e}}]),DrawerAdapterImpl}(oJ.L),MinimapProvider_Inner=function(e){var t=e.adapter,n=e.displayMode,r=e.toggleFullMap,updateWarps=function(e){if(e instanceof Error)return void console.error("An error occurred:",e.message);t.overwriteWarps(e)},updateMap=function(){t&&!e5.N_.displayFullmap&&(t.playerPosition=bot.entity.position,t.yaw=bot.entity.yaw,t.emit("updateMap"))};return(0,tD.useEffect)(function(){var e;return bot.on("move",updateMap),null==(e=localServer)||e.on("warpsUpdated",updateWarps),function(){var e,t;null==(e=bot)||e.off("move",updateMap),null==(t=localServer)||t.off("warpsUpdated",updateWarps)}},[]),(0,tC.jsx)("div",{children:(0,tC.jsx)(Minimap,{adapter:t,showMinimap:e2.YM.showMinimap,showFullmap:"always",singleplayer:e5.N_.singleplayer,fullMap:"fullmapOnly"===n,toggleFullMap:r,displayMode:n})})};function MinimapProvider(e){var t=e.adapter,n=e.displayMode,r=(0,tJ.R)(e2.YM).showMinimap,a=(0,tN.uM)("full-map");return("minimapOnly"===n?"never"!==r&&("singleplayer"!==r||e5.N_.singleplayer):a)?(0,tC.jsx)(MinimapProvider_Inner,{adapter:t,displayMode:n,toggleFullMap:function(){t4.emit("trigger",{command:"ui.toggleMap"})}}):null}var o0={turtle:{helmet:2,chestplate:null,leggings:null,boots:null},leather:{helmet:1,chestplate:3,leggings:2,boots:1},golden:{helmet:2,chestplate:5,leggings:3,boots:1},chainmail:{helmet:2,chestplate:5,leggings:4,boots:1},iron:{helmet:2,chestplate:6,leggings:5,boots:2},diamond:{helmet:3,chestplate:8,leggings:6,boots:3},netherite:{helmet:3,chestplate:8,leggings:6,boots:3}},BarsCommon_getEffectClass=function(e){switch(e.id){case 19:return"poisoned";case 20:return"withered";case 22:return"absorption";default:return""}},barEffectAdded=function(e,t){var n=BarsCommon_getEffectClass(t);n&&e.classList.add(n)},barEffectEnded=function(e,t){var n=BarsCommon_getEffectClass(t);n&&e.classList.remove(n)};function HealthBar(e){var t=e.gameMode,n=e.isHardcore,r=e.damaged,a=e.healthValue,o=e.effectToAdd,i=e.effectToRemove,s=e.resetEffects,l=e.style,c=(0,tD.useRef)(null);return(0,tD.useEffect)(function(){c.current&&c.current.classList.toggle("creative","creative"===t||"spectator"===t)},[t]),(0,tD.useEffect)(function(){c.current&&(n?c.current.classList.add("hardcore"):c.current.classList.remove("hardcore"))},[n]),(0,tD.useEffect)(function(){c.current&&(r?(c.current.classList.add("damaged"),console.log("damage")):c.current.classList.remove("damaged"))},[r]),(0,tD.useEffect)(function(){if(c.current){a<=4?c.current.classList.add("low"):c.current.classList.remove("low");var e=c.current.children,t=!0,n=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var s=o.value;s.classList.remove("full"),s.classList.remove("half")}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}for(var l=0;l=e.length);l++)a%2!=0&&Math.ceil(a/2)===l+1?e[l].classList.add("half"):e[l].classList.add("full")}},[a]),(0,tD.useEffect)(function(){o&&barEffectAdded(c.current,o),i&&barEffectEnded(c.current,i),null==s||s()},[o,i]),(0,tC.jsx)(ng.Z,{children:(0,tC.jsx)("div",{ref:c,className:"health",style:l,children:Array.from({length:10},function(){return 0}).map(function(e,t){return(0,tC.jsx)("div",{className:"heart"},"heart-".concat(t))})})})}function FoodBar(e){var t=e.gameMode,n=e.food,r=e.effectToAdd,a=e.effectToRemove,o=e.resetEffects,i=e.style,s=(0,tD.useRef)(null);return(0,tD.useEffect)(function(){s.current&&s.current.classList.toggle("creative","creative"===t||"spectator"===t)},[t]),(0,tD.useEffect)(function(){var e=s.current;if(e){e.classList.toggle("low",n<=5);var t=e.children,r=!0,a=!1,o=void 0;try{for(var i,l=t[Symbol.iterator]();!(r=(i=l.next()).done);r=!0){var c=i.value;c.classList.remove("full"),c.classList.remove("half")}}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}for(var u=0;u=t.length);u++)n%2!=0&&Math.ceil(n/2)===u+1?t[u].classList.add("half"):t[u].classList.add("full")}},[n]),(0,tD.useEffect)(function(){r&&barEffectAdded(s.current,r),a&&barEffectEnded(s.current,a),null==o||o()},[r,a]),(0,tC.jsx)(ng.Z,{children:(0,tC.jsx)("div",{ref:s,className:"foodbar",style:i,children:Array.from({length:10},function(){return 0}).map(function(e,t){return(0,tC.jsx)("div",{className:"food"},"food-".concat(t))})})})}let o1=(0,nO.K)(function(e){var t=e.armorValue,n=e.style,r=(0,tD.useRef)(null);return(0,tD.useEffect)(function(){var e=r.current.children,n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;l.classList.remove("full"),l.classList.remove("half")}}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}for(var c=0;c=e.length);c++)t%2!=0&&Math.ceil(t/2)===c+1?e[c].classList.add("half"):e[c].classList.add("full")},[t]),(0,tC.jsx)(ng.Z,{children:(0,tC.jsx)("div",{style:null!=n?n:{},ref:r,className:"armor_container",children:Array.from({length:10},function(){return 0}).map(function(e,t){return(0,tC.jsx)("div",{className:"armor"},"armor-".concat(t))})})})},"armorBar");function BreathBar(e){var t=e.oxygen,n=(0,tD.useRef)(null);return(0,tD.useEffect)(function(){var e=n.current;if(e&&t<20){e.style.display="flex",e.classList.toggle("low",t<=5);var r=e.children,a=!0,o=!1,i=void 0;try{for(var s,l=r[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;c.classList.remove("full"),c.classList.remove("half")}}catch(e){o=!0,i=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw i}}for(var u=0;u=r.length);u++)t%2!=0&&Math.ceil(t/2)===u+1?r[u].classList.add("half"):r[u].classList.add("full")}else e&&t>=20&&(e.style.display="none")},[t]),(0,tC.jsx)(ng.Z,{children:(0,tC.jsx)("div",{ref:n,className:"breathbar",children:Array.from({length:10},function(){return 0}).map(function(e,t){return(0,tC.jsx)("div",{className:"breath"},"breath-".concat(t))})})})}function HudBarsProvider(){var e=(0,tJ.R)(e2.YM).disabledUiParts,t=(0,ek._)((0,tD.useState)(!1),2),n=t[0],r=t[1],a=(0,ek._)((0,tD.useState)(bot.health),2),o=a[0],i=a[1],s=(0,ek._)((0,tD.useState)(bot.food),2),l=s[0],c=s[1],u=(0,ek._)((0,tD.useState)(bot.oxygenLevel),2),d=u[0],w=u[1],p=(0,ek._)((0,tD.useState)(0),2),h=p[0],M=p[1],g=(0,ek._)((0,tD.useState)(bot.game.gameMode),2),m=g[0],v=g[1],y=(0,ek._)((0,tD.useState)(!1),2),A=y[0],b=y[1],_=(0,ek._)((0,tD.useState)(null),2),L=_[0],C=_[1],j=(0,ek._)((0,tD.useState)(null),2),D=j[0],x=j[1],k=(0,tD.useRef)(null),onDamage=function(){r(function(e){return!0}),k.current&&clearTimeout(k.current),k.current=setTimeout(function(){r(function(e){return!1})},1e3)},updateHealth=function(e){i(function(t){return e})};return(0,tD.useMemo)(function(){bot.on("entityHurt",function(e){e===bot.entity&&onDamage()}),bot.on("game",function(){v(function(e){return bot.game.gameMode}),b(function(e){return bot.game.hardcore})}),bot.on("entityEffect",function(e,t){e===bot.entity&&C(function(e){return t.id})}),bot.on("entityEffectEnd",function(e,t){e===bot.entity&&x(function(e){return t.id})}),bot.on("health",function(){bot.health0?"block":"none"},children:n})]})})}function XPBarProvider(){var e=(0,ek._)((0,tD.useState)(0),2),t=e[0],n=e[1],r=(0,ek._)((0,tD.useState)(0),2),a=r[0],o=r[1],i=(0,ek._)((0,tD.useState)(bot.game.gameMode),2),s=i[0],l=i[1];return(0,tD.useMemo)(function(){var onXpUpdate=function(){n(bot.experience.progress),o(bot.experience.level)};onXpUpdate(),bot.on("experience",onXpUpdate),bot.on("game",function(){l(function(e){return bot.game.gameMode})})},[]),(0,tC.jsx)(XPBar,{progress:t,level:a,gamemode:s})}n(73355);var o3=n(17595),getFixedFilesize=function(e){return(0,o3.Z)(e,{minimumFractionDigits:2,maximumFractionDigits:2})},isInterestedInDownload=function(){var e=eS.EX.map,t=eS.EX.texturepack,n=eS.EX.replayFileUrl,r=eS.TK.mapDir;return!!e||!!t||!!n||!!r},o2=(eo=(0,eC._)(function(){var e,t,n;return(0,eT.Jh)(this,function(r){return e=eS.EX.map,t=eS.EX.texturepack,n=eS.EX.replayFileUrl,[2,o5(e,t,eS.TK.mapDir,n)]})}),function(){return eo.apply(this,arguments)}),o5=(ei=(0,eC._)(function(e,t,n,r,a){var o,i,s,l,c,u,d,w,p,h,M,g,m,v,y,A,b,_,L,C,j,D;return(0,eT.Jh)(this,function(x){switch(x.label){case 0:if(!r)return[3,3];return(0,ti.d8)("Downloading replay file"),[4,fetch(r)];case 1:return c=(l=null==(i=(s=x.sent()).headers)?void 0:i.get("Content-Length"))?+l:void 0,u=r.split("/").pop(),d=0,[4,new Response(new ReadableStream({start:function(e){return(0,eC._)(function(){var t,n,r,a,o;return(0,eT.Jh)(this,function(i){switch(i.label){case 0:if(!s.body)throw Error("Server returned no response!");t=s.body.getReader(),i.label=1;case 1:return[4,t.read()];case 2:if(r=(n=i.sent()).done,a=n.value,r)return e.close(),[3,3];return d+=a.byteLength,o=c?d/c*100:void 0,(0,ti.d8)("Download replay file progress: ".concat(void 0===o?"?":Math.floor(o),"% (").concat(getFixedFilesize(d)," / ").concat(c&&getFixedFilesize(c),")"),!1,!0),e.enqueue(a),[3,1];case 3:return[2]}})})()}})).arrayBuffer()];case 2:return w=x.sent(),p=new TextDecoder().decode(w),(0,tW.ZB)({contents:p,filename:u,filesize:c}),[2,!0];case 3:if(h=eS.EX.mapDirGuess,M=eS.EX.mapDirBaseUrl,!(null==n?void 0:n.length))return[3,5];return[4,(0,ry.dT)(n,null!=M?M:void 0)];case 4:return x.sent(),[2,!0];case 5:if(h)return[2,!0];if(t&&(e=t),!e)return[2,!1];if(!t)return[3,8];return[4,(0,tq.V_)()];case 6:if(x.sent(),!tq.E3.resourcePackInstalled)return[3,8];return m=(g="You are going to install a new resource pack, which will REPLACE the current one: ").concat,[4,(0,tq.xm)()[0]];case 7:if(!confirm.apply(void 0,[m.apply(g,[x.sent()," Continue?"])]))return[2];x.label=8;case 8:return v=e.slice(e.lastIndexOf("/")+1).slice(-25),y=t?"texturepack":"world",(0,ti.d8)("Downloading ".concat(y," ").concat(v,"...")),[4,fetch(e)];case 9:return(b=(A=x.sent()).headers.get("Content-Type"))&&b.startsWith("application/zip")||alert("Invalid map file"),L=(_=null==(o=A.headers)?void 0:o.get("Content-Length"))&&+_,(0,ti.d8)("Downloading ".concat(y," ").concat(v,": have to download ").concat(L&&getFixedFilesize(L),"...")),C=0,[4,new Response(new ReadableStream({start:function(e){return(0,eC._)(function(){var t,n,r,a,o;return(0,eT.Jh)(this,function(i){switch(i.label){case 0:if(!A.body)throw Error("Server returned no response!");t=A.body.getReader(),i.label=1;case 1:return[4,t.read()];case 2:if(r=(n=i.sent()).done,a=n.value,r)return e.close(),[3,3];return C+=a.byteLength,o=L?C/L*100:void 0,(0,ti.d8)("Download ".concat(y," progress: ").concat(void 0===o?"?":Math.floor(o),"% (").concat(getFixedFilesize(C)," / ").concat(L&&getFixedFilesize(L),")"),!1,!0),e.enqueue(a),[3,1];case 3:return[2]}})})()}})).arrayBuffer()];case 10:if(j=x.sent(),!t)return[3,12];return D=e.slice(e.lastIndexOf("/")+1).slice(-30),[4,(0,tq.UA)(j,(0,tF.xC)(),D)];case 11:return x.sent(),[3,14];case 12:return[4,(0,ry.lh)(j,void 0,a)];case 13:x.sent(),x.label=14;case 14:return[2,!0]}})}),function(e,t,n,r,a){return ei.apply(this,arguments)});let o4=(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,o2()];case 1:return[2,t.sent()];case 2:return e=t.sent(),(0,ti.d8)("Failed to download/open. Either refresh page or remove map param from URL. Reason: ".concat(e.message)),[2,!0];case 3:return[2]}})}),o6={"debug-left-side":"debug-left-side-L_D95v","debug-right-side":"debug-right-side-mFhvHG",empty:"empty-x7G63G"},o8=(0,nO.K)(function(){var e,t,n,r,a,o,i,s,l,c,u,d,w,p,h,M,g=(0,tD.useRef)((0,ej._)({},o7)),m=(0,tD.useRef)((0,ej._)({},o7));(0,tD.useRef)({});var v=(0,tD.useRef)(0),y=(0,tD.useRef)({received:{},sent:{}});window.packetsCountByNamePerSec=y;var A=(0,tD.useRef)({received:{},sent:{}});window.packetsCountByNamePer10Sec=A;var b=(0,tD.useRef)({received:{},sent:{}});window.packetsCountByName=b;var _=(0,tD.useRef)(new Set([])),L=(0,ek._)((0,tD.useState)(""),2),C=L[0],j=L[1],D=(0,tJ.R)(e5.N_).showDebugHud,x=(0,ek._)((0,tD.useState)({x:0,y:0,z:0}),2),k=x[0],N=x[1],T=(0,ek._)((0,tD.useState)(0),2),S=T[0],z=T[1],q=(0,ek._)((0,tD.useState)(0),2),E=q[0],I=q[1],P=(0,ek._)((0,tD.useState)(0),2),Y=P[0],O=P[1],R=(0,ek._)((0,tD.useState)(0),2),B=R[0],U=R[1],Q=(0,ek._)((0,tD.useState)(0),2),F=Q[0],W=Q[1],J=(0,ek._)((0,tD.useState)(""),2),V=J[0],G=J[1],H=(0,ek._)((0,tD.useState)(null),2),Z=H[0],K=H[1],X=(0,ek._)((0,tD.useState)(null),2),$=X[0],ee=X[1],et=(0,ek._)((0,tD.useState)(null),2),en=et[0],er=et[1],ea=(0,ek._)((0,tD.useState)(0),2),eo=ea[0],ei=ea[1],es=(0,ek._)((0,tD.useState)(null),2),el=es[0],ec=es[1],eu=(0,tD.useRef)(0),ed=(0,tD.useRef)(0),ew=null!=(w=appViewer.rendererState.renderer)?w:"No render backend",shortenUuid=function(e){if(e){var t=e.replaceAll("-","");return t.length<8?e:"".concat(t.slice(0,4),"-*-").concat(t.slice(-4))}},readPacket=function(e,t,n,r){var a=t.name;if(r){var o=r.byteLength;v.current+=o,g.current.size+=o}g.current.count++,managePackets("received",a,e)},managePackets=function(e,t,n){var r,a,o,i,s,l;null!=(r=b.current[e])[t]||(r[t]=0),b.current[e][t]++,null!=(a=y.current[e])[t]||(a[t]=0),y.current[e][t]++,null!=(o=A.current[e])[t]||(o[t]=0),A.current[e][t]++,!e2.YM.debugLogNotFrequentPackets||_.current.has(t)||o9[e].includes(t)||(y.current[e][t]>5||b.current[e][t]>100?(console.info("[packet ".concat(t," was ").concat(e," too frequent] Ignoring...")),_.current.add(t)):console.info("[packet ".concat(e,"] ").concat(t),n))};return((0,tD.useEffect)(function(){var e=0,t=0,n=0,updateTps=function(){var r,a,o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Date.now()-e>=1e3&&(ei(t),null!=(r=window).lastTpsArray||(r.lastTpsArray=[]),window.lastTpsArray.push(t),t=0,e=Date.now()),o&&(n=Date.now(),t++)},r=0,a=setInterval(function(){j("↓ ".concat(g.current.count," (").concat((g.current.size/1024).toFixed(2)," KB/s, ").concat(getFixedFilesize(v.current),") ↑ ").concat(m.current.count)),g.current=(0,ej._)({},o7),m.current=(0,ej._)({},o7),y.current.received={},y.current.sent={},r++%10==0&&(A.current.received={},A.current.sent={}),updateTps(!1)},1e3);bot.on("physicsTick",function(){updateTps(!0)}),bot._client.on("packet",function(){updateTps(!1)});var o=setInterval(function(){N((0,ej._)({},bot.entity.position)),z(bot.world.getSkyLight(bot.entity.position)),I(bot.world.getBlockLight(bot.entity.position)),O(bot.world.getBiome(bot.entity.position)),G(bot.game.dimension),U(bot.time.day),W(bot.time.timeOfDay);var e=bot.mouse.getCursorState();K(e.cursorBlock),ee(e.entity)},100),i=setInterval((0,eC._)(function(){var e,t,n,r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:if(!(t=bot.mouse.cursorBlock))return er(null),[2];return[4,null==(e=(0,e1.z)())?void 0:e.getBlockInfo(t.position,t.stateId)];case 1:return er({customBlockName:(r=null!=(n=a.sent())?n:{}).customBlockName,modelInfo:r.modelInfo}),[2]}})}),300);return bot._client.on("packet",readPacket),bot._client.on("packet_name",function(e,t){return readPacket(t,{name:e})}),bot._client.on("writePacket",function(e,t){m.current.count++,managePackets("sent",e,t)}),bot._client.on("set_ticking_state",function(e){ec({value:e.tick_rate,frozen:e.is_frozen})}),function(){clearInterval(a),clearInterval(o),clearInterval(i),console.log("Last physics tick before disconnect was",Date.now()-n,"ms ago")}},[]),(0,tD.useEffect)(function(){var e;eu.current=(e=-180*bot.entity.yaw/Math.PI)%360-180*(e<0?-1:1),ed.current=Math.floor(((eu.current+180)/90+.5)%4)},[bot.entity.yaw]),D)?(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsxs)("div",{className:"debug-left-side ".concat(o6["debug-left-side"]),children:[(0,tC.jsxs)("p",{children:["Prismarine Web Client (",bot.version,")"]}),(null==(a=appViewer.backend)||null==(r=a.getDebugOverlay)?void 0:r.call(a).entitiesString)&&(0,tC.jsxs)("p",{children:["E: ",appViewer.backend.getDebugOverlay().entitiesString]}),(0,tC.jsx)("p",{children:V}),(0,tC.jsx)("div",{className:o6.empty}),(0,tC.jsxs)("p",{children:["XYZ: ",k.x.toFixed(3)," / ",k.y.toFixed(3)," / ",k.z.toFixed(3)]}),(0,tC.jsxs)("p",{children:["Chunk: ",Math.floor(k.x%16)," ~ ",Math.floor(k.z%16)," in ",Math.floor(k.x/16)," ~ ",Math.floor(k.z/16)]}),(0,tC.jsxs)("p",{children:["Section: ",16*Math.floor(k.x/16),", ",16*Math.floor(k.y/16),", ",16*Math.floor(k.z/16)]}),(0,tC.jsxs)("p",{children:["Packets: ",C]}),(0,tC.jsxs)("p",{children:["Client TPS: ",eo," ",el?"Server TPS: ".concat(el.value," ").concat(el.frozen?"(frozen)":""):""]}),(0,tC.jsxs)("p",{children:["Facing (viewer): ",bot.entity.yaw.toFixed(3)," ",bot.entity.pitch.toFixed(3)]}),(0,tC.jsxs)("p",{children:["Facing (minecraft): ",["north (towards negative Z)","east (towards positive X)","south (towards positive Z)","west (towards negative X)"][ed.current]," (",eu.current.toFixed(1)," ",(-180*bot.entity.pitch/Math.PI).toFixed(1),")"]}),(0,tC.jsxs)("p",{children:["Light: ",E," (",S," sky)"]}),(0,tC.jsxs)("p",{children:["Biome: minecraft:",null!=(p=null==(o=loadedData.biomesArray[Y])?void 0:o.name)?p:"unknown biome"]}),(0,tC.jsxs)("p",{children:["Day: ",B," Time: ",F]}),(0,tC.jsx)("div",{className:o6.empty}),Object.entries(null!=(h=null==(s=appViewer.backend)||null==(i=s.getDebugOverlay)?void 0:i.call(s).left)?h:{}).map(function(e){var t=(0,ek._)(e,2),n=t[0],r=t[1];return(0,tC.jsxs)("p",{children:[n,": ",r]},n)})]}),(0,tC.jsxs)("div",{className:"debug-right-side ".concat(o6["debug-right-side"]),children:[(0,tC.jsxs)("p",{children:["Backend: ",null==(l=appViewer.backend)?void 0:l.displayName]}),(0,tC.jsxs)("p",{children:["minecraft-renderer npm v","0.1.91"]}),(0,tC.jsxs)("p",{children:["Renderer: ",ew]}),(0,tC.jsx)("div",{className:o6.empty}),Z?(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)("p",{children:Z.name}),Object.entries(Z.getProperties()).map(function(e,t,n){var r=(0,ek._)(e,2),a=r[0],o=r[1];return(0,tC.jsxs)("p",{children:[a,": ","boolean"==typeof o?(0,tC.jsx)("span",{style:{color:o?"lightgreen":"red"},children:String(o)}):o]},a)})]}):"",Z?(0,tC.jsxs)("p",{children:["Looking at: ",Z.position.x," ",Z.position.y," ",Z.position.z]}):"",(null==Z?void 0:Z.blockEntity)&&(0,tC.jsx)("p",{children:"Block Entity Data:"}),(null==Z?void 0:Z.blockEntity)&&(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)("div",{className:o6.empty}),Object.entries(Z.blockEntity).map(function(e){var t=(0,ek._)(e,2),n=t[0],r=JSON.stringify(t[1]);return(0,tC.jsxs)("p",{children:[n,": ",r.length]},n)})]}),$?(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)("div",{className:o6.empty}),(0,tC.jsxs)("p",{children:["E: ",$.name]}),$.displayName&&(0,tC.jsx)("p",{children:$.displayName}),void 0!==$.id&&(0,tC.jsxs)("p",{children:["ID: ",$.id]}),shortenUuid($.uuid)&&(0,tC.jsxs)("p",{children:["UUID: ",shortenUuid($.uuid)]}),$.username&&(0,tC.jsxs)("p",{children:["Username: ",$.username]}),$.position&&(0,tC.jsxs)("p",{children:[$.position.x.toFixed(2)," ",$.position.y.toFixed(2)," ",$.position.z.toFixed(2)]}),void 0!==$.yaw&&(0,tC.jsxs)("p",{children:["Yaw: ",$.yaw.toFixed(1)]}),void 0!==$.pitch&&(0,tC.jsxs)("p",{children:["Pitch: ",$.pitch.toFixed(1)]}),$.type&&(0,tC.jsxs)("p",{children:["Type: ",$.type]}),void 0!==$.health&&(0,tC.jsxs)("p",{children:["Health: ",$.health.toFixed(1)]})]}):"",(0,tC.jsx)("div",{className:o6.empty}),en&&(t=en.customBlockName,(n=en.modelInfo)&&(0,tC.jsxs)(tC.Fragment,{children:[t&&(0,tC.jsxs)("p",{style:{fontSize:7},children:["Custom block: ",t]}),n.issues.map(function(e,t){return(0,tC.jsx)("p",{style:{color:"yellow",fontSize:7},children:e},t)}),(0,tC.jsxs)("p",{style:{fontSize:7},children:["Resolved model: ",null!=(e=n.modelNames[0])?e:"-"]}),(0,tC.jsx)("p",{style:{fontSize:7,whiteSpace:"nowrap",maxWidth:"100px",overflow:"hidden",textOverflow:"ellipsis"},children:n.conditions.join(", ")})]})),Object.entries(null!=(M=null==(d=appViewer.backend)||null==(u=d.getDebugOverlay)||null==(c=u.call(d))?void 0:c.right)?M:{}).map(function(e){var t=(0,ek._)(e,2),n=t[0],r=t[1];return(0,tC.jsxs)("p",{children:[n,": ",r]},n)})]})]}):null},"debugOverlay");var o9={received:["entity_velocity","sound_effect","rel_entity_move","entity_head_rotation","entity_metadata","entity_move_look","teams","entity_teleport","entity_look","ping","entity_update_attributes","player_info","update_time","animation","entity_equipment","entity_destroy","named_entity_spawn","update_light","set_slot","block_break_animation","map_chunk","spawn_entity","world_particles","keep_alive","chat","playerlist_header","scoreboard_objective","scoreboard_score","entity_status","set_ticking_state","ping_response","block_change","damage_event"],sent:["pong","position","look","keep_alive","position_look","ping_request"]},o7={count:0,size:0};let ie={"mobile-top-btns":"mobile-top-btns-LkVyKp","mobile-top-btns--portrait-tall":"mobile-top-btns--portrait-tall-lxyM35","pause-btn":"pause-btn-tfjBzl","chat-btn":"chat-btn-BNyPws","debug-btn":"debug-btn-aSsISO","tab-btn":"tab-btn-hqoRrR"};var isHeightGreaterThanWidth=function(){return"undefined"!=typeof window&&window.innerHeight>window.innerWidth};function MobileTopButtons(){var e=(0,tD.useRef)(null),t=(0,tJ.R)(e5.N_).appConfig,n=null==t?void 0:t.mobileButtons,r=(0,ek._)((0,tD.useState)(isHeightGreaterThanWidth),2),a=r[0],o=r[1],i=(0,tD.useRef)(null),s=(0,tD.useRef)(null),showMobileControls=function(t){e.current&&(e.current.style.display=t?"flex":"none")};(0,tD.useEffect)(function(){(0,e2.t6)(e5.N_,function(e){showMobileControls(!!e.currentTouch)})},[]),(0,tD.useEffect)(function(){var sync=function(){return o(isHeightGreaterThanWidth())};return sync(),window.addEventListener("resize",sync),window.addEventListener("orientationchange",sync),function(){window.removeEventListener("resize",sync),window.removeEventListener("orientationchange",sync)}},[]);var getButtonClassName=function(e){var t=e.action||(e.actionHold&&"object"===(0,eN._)(e.actionHold)&&"command"in e.actionHold?e.actionHold.command:void 0);if("string"==typeof t)switch(t){case"general.chat":return ie["chat-btn"];case"ui.pauseMenu":return ie["pause-btn"];case"general.playersList":return ie["tab-btn"]}return ie["debug-btn"]};return(0,tC.jsx)("div",{ref:e,className:"".concat(ie["mobile-top-btns"]).concat(a?" ".concat(ie["mobile-top-btns--portrait-tall"]):""),id:"mobile-top",children:n&&n.length>0?null==n?void 0:n.map(function(e,t){var n=getButtonClassName(e),r=e.icon||e.label||"";if("string"==typeof r&&r.startsWith("pixelarticons:")){var a=r.replace("pixelarticons:","");r=(0,tC.jsx)(nY.Z,{iconName:a})}var onPointerUp=function(t){t.currentTarget.releasePointerCapture(t.pointerId);var n=e.actionHold,r=e.action,a=!1;i.current&&(clearTimeout(i.current),i.current=null,s.current&&(handleMobileButtonActionCommand(s.current,!0),handleMobileButtonActionCommand(s.current,!1),a=!0)),!a&&(n?(void 0===n?"undefined":(0,eN._)(n))==="object"&&"command"in n?n.longPressAction?null===s.current&&"string"==typeof n.longPressAction&&handleMobileButtonActionCommand(n.longPressAction,!1):handleMobileButtonActionCommand(n.command,!1):r?null===s.current&&handleMobileButtonActionCommand(n,!1):handleMobileButtonActionCommand(n,!1):r&&handleMobileButtonActionCommand(r,!1)),s.current=null};return(0,tC.jsx)("div",{className:n,onPointerDown:function(t){t.currentTarget.setPointerCapture(t.pointerId),i.current&&(clearTimeout(i.current),i.current=null),s.current=null;var n=e.actionHold,r=e.action;n?(void 0===n?"undefined":(0,eN._)(n))==="object"&&"command"in n?n.longPressAction?(s.current=n.command,i.current=window.setTimeout(function(){handleMobileButtonLongPress(n),s.current=null,i.current=null},n.duration||500)):handleMobileButtonActionCommand(n.command,!0):r?(s.current=r,i.current=window.setTimeout(function(){handleMobileButtonActionCommand(n,!0),s.current=null,i.current=null},500)):handleMobileButtonActionCommand(n,!0):r&&handleMobileButtonActionCommand(r,!0)},onPointerUp:onPointerUp,onLostPointerCapture:onPointerUp,children:r},t)}):null})}var it=n(48768);let ir={container:"container-CbtoYq",websocket:"websocket-ukuvQ1",iconRow:"iconRow-Rj9AHI",arrowRow:"arrowRow-mPYqMH",dataRow:"dataRow-vkErq6",ping:"ping-axxvVG",totalRow:"totalRow-tXKyyD",stale:"stale-QydKzb"};function NetworkStatus(){var e,t=(0,ek._)((0,tD.useState)(null),2),n=t[0],r=t[1],a=(0,ek._)((0,tD.useState)(null),2),o=a[0],i=a[1],s=(0,ek._)((0,tD.useState)(!1),2),l=s[0],c=s[1],u=(0,ek._)((0,tD.useState)(!1),2),d=u[0],w=u[1],p=(0,tD.useRef)(),h=(0,tD.useRef)(),M=(0,tD.useMemo)(function(){var e;return parseServerAddress(null==(e=ti.Pc.value)?void 0:e.server).isWebSocket},[null==(e=ti.Pc.value)?void 0:e.server]),g=(0,tD.useMemo)(function(){var e;return null==(e=ti.Pc.value)?void 0:e.server},[]),setProxyPingWithTimeout=function(e){r(e),c(!1),p.current&&clearTimeout(p.current),p.current=setTimeout(function(){return c(!0)},1e3)},setServerPingWithTimeout=function(e){i(e),w(!1),h.current&&clearTimeout(h.current),h.current=setTimeout(function(){return w(!0)},1e3)};if((0,tD.useEffect)(function(){if(g){var e,t=(e=(0,eC._)(function(){var e,t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:var r,a;r=(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,bot.pingServer()];case 1:return(e=t.sent())&&setServerPingWithTimeout(e),[2]}})}),e=function(){return r.apply(this,arguments)},a=(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:if(M)return[3,2];return[4,bot.pingProxy()];case 1:setProxyPingWithTimeout(e.sent()),e.label=2;case 2:return[2]}})}),t=function(){return a.apply(this,arguments)},n.label=1;case 1:return n.trys.push([1,3,,4]),[4,Promise.all([e(),t()])];case 2:return n.sent(),[3,4];case 3:return console.error("Failed to ping:",n.sent()),[3,4];case 4:return[2]}})}),function(){return e.apply(this,arguments)});t();var n=setInterval(t,1e3);return function(){clearInterval(n),p.current&&clearTimeout(p.current),h.current&&clearTimeout(h.current)}}},[]),!g)return null;var m=bot.username,v=ti.Pc.value.proxy;return(0,tC.jsxs)("div",{className:"".concat(ir.container," ").concat(M?ir.websocket:""),children:[(0,tC.jsx)(nY.Z,{className:ir.iconRow,iconName:nY.K.user,width:18}),!M&&(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)(nY.Z,{className:"".concat(ir.iconRow," ").concat(ir.arrowRow),iconName:nY.K["arrow-right"],width:16}),(0,tC.jsx)(nY.Z,{className:ir.iconRow,iconName:nY.K.server,width:18})]}),(0,tC.jsx)(nY.Z,{className:"".concat(ir.iconRow," ").concat(ir.arrowRow),iconName:nY.K["arrow-right"],width:16}),(0,tC.jsx)(nY.Z,{className:ir.iconRow,iconName:nY.K["list-box"],width:18}),(0,tC.jsx)("span",{className:ir.dataRow,children:m}),!M&&(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsxs)("span",{className:"".concat(ir.dataRow," ").concat(ir.ping," ").concat(l?ir.stale:""),children:[n,"ms"]}),(0,tC.jsx)("span",{className:ir.dataRow,children:v})]}),(0,tC.jsxs)("span",{className:"".concat(ir.dataRow," ").concat(ir.ping," ").concat(d?ir.stale:""),children:[M?o||"?":o?o-(null!=n?n:0):"...","ms"]}),(0,tC.jsx)("span",{className:ir.dataRow,children:g}),(0,tC.jsxs)("span",{className:ir.totalRow,children:["Ping: ",o||"?","ms"]})]})}var ia=n(47477),io=(es=(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,new Promise(function(e){requestAnimationFrame(function(){return requestAnimationFrame(e)})})]})}),function(){return es.apply(this,arguments)}),ii=(el=(0,eC._)(function(){var e,t,n,r,a,o,i,s,l,c,u,d,w,p,h,M,g,m,v,y,A,b,_,L,C,j,D,x,k,N;return(0,eT.Jh)(this,function(T){switch(T.label){case 0:(0,ti.d8)("Saving world"),T.label=1;case 1:return T.trys.push([1,16,17,18]),[4,new Promise(function(e){(0,e0.VW)(rg.ou,"isDisplaying",function(){rg.ou.isDisplaying&&e()})})];case 2:return T.sent(),a=tb.RL.inMemorySavePath,[4,(0,ry.vj)(a.split("/").pop(),"/data/worlds")];case 3:return o=T.sent(),[4,(0,ry.xl)(o)];case 4:T.sent(),console.log("made world folder",o),i=(0,eE._)(it.usedServerPathsV1),s=[],l=!0,c=!1,u=void 0,T.label=5;case 5:T.trys.push([5,10,11,12]),d=function(){var e,t,n,r;return(0,eT.Jh)(this,function(o){switch(o.label){case 0:if(!(n=(e=p.value).includes(".")))return[3,2];return[4,(0,ry.$C)((0,af.join)(a,e))];case 1:n=o.sent(),o.label=2;case 2:if(n)return s.push(e),[2,"continue"];return[4,(0,ry.LB)((0,af.join)(a,e),!0)];case 3:return r=o.sent(),"region"===e&&(r=r.filter(function(e){return e.endsWith(".mca")})),(t=s).push.apply(t,(0,eE._)(r.map(function(t){return(0,af.join)(e,t)}))),[2]}})},w=i[Symbol.iterator](),T.label=6;case 6:if(l=(p=w.next()).done)return[3,9];return[5,(0,eT.XA)(d())];case 7:T.sent(),T.label=8;case 8:return l=!0,[3,6];case 9:return[3,12];case 10:return h=T.sent(),c=!0,u=h,[3,12];case 11:try{l||null==w.return||w.return()}finally{if(c)throw u}return[7];case 12:var S;return console.log("paths collected"),M=s.filter(function(e){if(!e.startsWith("region/"))return!0;var t=(0,ek._)(e.split("/").at(-1).split(".").slice(1,3).map(Number),2),n=t[0],r=t[1];return Math.abs(n)>50||Math.abs(r)>50}),g=0,m=!1,v=function(e){g++;var t=tb.RL.remoteBackend?"Downloading & copying":"Copying";t+=m?" region files (world chunks)":" basic save files",(0,ti.d8)("".concat(t," files (").concat(g,"/").concat(e,")"))},S=(0,eC._)(function(e){var t,n,r,i,s,l,c;return(0,eT.Jh)(this,function(u){switch(u.label){case 0:t=e.flat().length,n=!0,r=!1,i=void 0,u.label=1;case 1:u.trys.push([1,7,8,9]),s=e[Symbol.iterator](),u.label=2;case 2:var d;if(n=(l=s.next()).done)return[3,6];return[4,Promise.all(l.value.map((d=(0,eC._)(function(e){var n,r,i,s,l,c;return(0,eT.Jh)(this,function(u){switch(u.label){case 0:return n=(0,af.join)(a,e),r=(0,af.join)(o,e),[4,(0,ry.xl)(r)];case 1:return u.sent(),s=(i=eP().promises).writeFile,l=[r],[4,eP().promises.readFile(n)];case 2:return[4,s.apply(i,l.concat([u.sent()]))];case 3:return u.sent(),v(t),m&&(c=e.split("/").at(-1),rg.ou.loadingChunksData[c]="done"),[2]}})}),function(e){return d.apply(this,arguments)})))];case 3:return u.sent(),[4,io()];case 4:u.sent(),u.label=5;case 5:return n=!0,[3,2];case 6:return[3,9];case 7:return c=u.sent(),r=!0,i=c,[3,9];case 8:try{n||null==s.return||s.return()}finally{if(r)throw i}return[7];case 9:return[2]}})}),[4,(y=function(e){return S.apply(this,arguments)})(splitByCopySize(M))];case 13:return T.sent(),(0,ti.d8)("Preparing world chunks copying"),[4,io()];case 14:if(T.sent(),m=!0,g=0,b=(A=s.filter(function(e){return!M.includes(e)})).map(function(e){return e.split("/").at(-1).split(".").slice(1,3).map(Number)}),_=(e=Math).min.apply(e,(0,eE._)(b.flatMap(function(e){return e[0]}))),L=(t=Math).min.apply(t,(0,eE._)(b.flatMap(function(e){return e[1]}))),C=(n=Math).max.apply(n,(0,eE._)(b.flatMap(function(e){return e[0]}))),j=(r=Math).max.apply(r,(0,eE._)(b.flatMap(function(e){return e[1]}))),x=Math.max(Math.abs((D=bot.entity.position.divide(new eB.A(512,512,512)).floored()).x-_),Math.abs(D.z-L),Math.abs(D.x-C),Math.abs(D.z-j)),(k=(0,th.generateSpiralMatrix)(x).filter(function(e){return s.includes("region/r.".concat(e[0],".").concat(e[1],".mca"))}).map(function(e){return"region/r.".concat(e[0],".").concat(e[1],".mca")})).length!==A.length)throw Error("Something went wrong with region files");return rg.ou.loadingChunksData=Object.fromEntries(A.map(function(e){return[e.split("/").at(-1),"loading"]})),rg.ou.loadingChunksDataPlayerChunk={x:D.x,z:D.z},[4,y(splitByCopySize(k,10))];case 15:return T.sent(),[2,o];case 16:return console.error(N=T.sent()),(0,tL.un)("Error while saving the world: ".concat(N.message),[]),[3,18];case 17:return(0,ti.d8)(void 0),[7];case 18:return[2]}})}),function(){return el.apply(this,arguments)}),splitByCopySize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return e.reduce(function(e,n,r){return r%t==0&&e.push([]),e.at(-1).push(n),e},[])};function PauseScreen(){var e,t,n,r="true"===eS.EX.lockConnect,a=(0,tN.uM)("pause-screen"),o=(0,tJ.R)(tb.RL);(0,tJ.R)(e5.M);var i=(0,tJ.R)(e5.N_),s=i.singleplayer,l=i.wanOpened,c=i.wanOpening,u=(0,tJ.R)(e5.rl).noConnection,d=(0,tJ.R)(rA.bl),w=d.active,p=d.hasRecordedPackets,h=(0,tJ.R)(e2.YM).displayRecordButton,M=(0,tJ.R)(e5.N_).appConfig,handlePointerLockChange=function(){td.lt.hasPointerLock||0!==e5.M.length||(0,e5.K4)({reactType:"pause-screen"})};(0,tD.useEffect)(function(){return document.addEventListener("pointerlockchange",handlePointerLockChange),function(){document.removeEventListener("pointerlockchange",handlePointerLockChange)}},[]);var g=(e=(0,eC._)(function(){var e,t,n,r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:if(!l)return[2];a.label=1;case 1:return a.trys.push([1,3,,4]),n={url:getJoinLink()},[4,null==(e=(t=navigator).share)?void 0:e.call(t,n)];case 2:return a.sent(),[3,4];case 3:return r=a.sent(),console.log("Error: ".concat(r)),[3,4];case 4:return[2]}})}),function(){return e.apply(this,arguments)}),m=(t=(0,eC._)(function(){var e,t,n=arguments;return(0,eT.Jh)(this,function(r){switch(r.label){case 0:if(!(e=n.length>0&&void 0!==n[0]&&n[0])&&l)return closeWan(),[2];if(!(!l||!e))return[3,2];return[4,aL(function(e){e5.N_.wanOpening&&alert("Something went wrong: ".concat(e))},!e)];case 1:r.sent(),r.label=2;case 2:return e&&(t=getJoinLink(),e5.N_.currentDisplayQr=null!=t?t:null),[2]}})}),function(){return t.apply(this,arguments)}),v=(n=(0,eC._)(function(){var e,t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:if(o.inMemorySave||!s)return[2,(0,tL.un)("World actions...",[])];return[4,(0,tL.un)("World actions...",["Save to browser memory"])];case 1:if("Save to browser memory"!==n.sent())return[3,3];return[4,ii()];case 2:if(!(e=n.sent()))return[2];t=e.split("/").at(-1),(0,tE.c0)("World saved to ".concat(t),"Load it to keep your progress!"),n.label=3;case 3:return[2]}})}),function(){return n.apply(this,arguments)});return a?(0,tC.jsxs)(tk.Z,{title:"Game Menu",children:[(0,tC.jsxs)("div",{style:{position:"fixed",top:"5px",left:"calc(env(safe-area-inset-left) + 5px)",display:"flex",flexDirection:"column",gap:"5px"},children:[(0,tC.jsx)(nI.Z,{icon:"pixelarticons:folder",onClick:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,v()]})})}),h&&(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)(nI.Z,{icon:w?"pixelarticons:debug-stop":"pixelarticons:circle",onClick:function(){rA.bl.active=!rA.bl.active}}),p&&(0,tC.jsx)(nI.Z,{icon:nY.K["briefcase-download"],onClick:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,(0,rA.G_)()]})})}),(0,tC.jsx)(nI.Z,{icon:nY.K.download,onClick:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,bot.downloadCurrentWorldState()]})})})]})]}),(0,tC.jsx)(nP.SV,{renderError:function(){return(0,tC.jsx)("div",{children:"error"})},children:(0,tC.jsx)("div",{style:{position:"fixed",top:"5px",left:"calc(env(safe-area-inset-left) + 35px)"},children:(0,tC.jsx)(NetworkStatus,{})})}),(0,tC.jsxs)("div",{className:ao.pause_container,children:[(0,tC.jsx)(nI.Z,{className:"button",style:{width:"204px"},onClick:function(){(0,e5.VG)({reactType:"pause-screen"})},children:"Back to Game"}),(0,tC.jsx)(PauseLinkButtons,{}),(0,tC.jsx)(nI.Z,{className:"button",style:{width:"204px"},onClick:function(){return(0,e5.NZ)("main")},children:"Options..."}),s?(0,tC.jsxs)("div",{className:ao.row,children:[(0,tC.jsx)(nI.Z,{className:"button",style:{width:"170px"},onClick:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,m()]})}),children:c?"Opening, wait...":l?"Close Wan":"Copy Join Link"}),navigator.share?(0,tC.jsx)(nI.Z,{title:"Share Join Link",className:"button",icon:"pixelarticons:arrow-up",style:{width:"20px"},onClick:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,g()]})})}):null,(0,tC.jsx)(nI.Z,{title:"Display QR for the Join Link",className:"button",icon:"pixelarticons:dice",style:{width:"20px"},onClick:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,m(!0)]})})})]}):null,(u||(null==M?void 0:M.alwaysReconnectButton))&&(0,tC.jsxs)("div",{className:ao.row,children:[(0,tC.jsx)(nI.Z,{className:"button",style:{width:(null==M?void 0:M.reportBugButtonWithReconnect)?"98px":"204px"},onClick:rg.$1,children:"Reconnect"}),(null==M?void 0:M.reportBugButtonWithReconnect)&&(0,tC.jsx)(nI.Z,{label:"Report Problem",className:"button",style:{width:"98px"},onClick:(0,eC._)(function(){var e,t,n,r,a,o,i,s,l;return(0,eT.Jh)(this,function(c){switch(c.label){case 0:return r=null!=(n=null==(e=navigator.userAgentData)?void 0:e.platform)?n:navigator.platform,o="Version: ".concat(window.location.hostname,"\nServer: ").concat(null!=(a=null==(t=ti.Pc.value)?void 0:t.server)?a:"","\nPlatform: ").concat(r,"\nWebsite: ").concat(window.location.href),i=window.location.hostname,s=["GitHub (please use it if you can)","Email"].concat((0,eE._)("mcraft.fun"===i||"ru.mcraft.fun"===i?["Try Beta Version"]:[])),[4,(0,tL.un)("Report client issue",s)];case 1:if(!(l=c.sent()))return[2];switch(l){case"GitHub (please use it if you can)":(0,td.G)("/issues/new?body=".concat(encodeURIComponent(o),"&title=").concat(encodeURIComponent("[Bug Report] "),"&labels=bug"));break;case"Email":window.location.href="mailto:support@mcraft.fun?body=".concat(encodeURIComponent(o));break;case"Try Beta Version":"mcraft.fun"===i&&(window.location.href="https://s.mcraft.fun");break;case"Use previous versions of client":(0,tL.un)("Previous versions",[])}return[2]}})})})]}),!r&&(0,tC.jsx)(tC.Fragment,{children:(0,tC.jsx)(nI.Z,{className:"button",style:{width:"204px"},onClick:tu.zP,children:!tb.RL.inMemorySave||tb.RL.syncFs||tb.RL.isReadonly?"Disconnect & Reset":"Save & Quit"})})]}),(0,tC.jsx)(ia.Z,{})]}):null}var is=n(30297),SoundRow=function(e){var t=e.sound,n=e.children,r=(0,tJ.R)(e2.YM).mutedSounds.includes(t);return(0,tC.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",gap:15},children:[(0,tC.jsxs)("div",{children:[(0,tC.jsx)("span",{style:(0,ej._)({fontSize:12,marginRight:2},r?{color:"#af1c1c"}:{}),children:t}),n]}),(0,tC.jsx)(nI.Z,{icon:r?"pixelarticons:music":"pixelarticons:close",onClick:function(){r?e2.YM.mutedSounds.splice(e2.YM.mutedSounds.indexOf(t),1):e2.YM.mutedSounds.push(t)}})]})};function SoundMuffler(){var e=(0,tN.uM)("sound-muffler"),t=(0,ek._)((0,tD.useState)(!0),2),n=t[0],r=t[1],a=(0,ek._)((0,tD.useState)(0),2),o=(a[0],a[1]),i=(0,tJ.R)(e2.YM).mutedSounds;return e?(0,tC.jsx)(tk.Z,{title:"Sound Muffler",backdrop:!0,children:(0,tC.jsxs)("div",{style:{display:"flex",gap:5,flexDirection:"column"},children:[(0,tC.jsx)(nI.Z,{onClick:function(){return o(function(e){return e+1})},children:"Refresh"}),(0,tC.jsxs)(nI.Z,{onClick:function(){return r(function(e){return!e})},children:["Show Muted: ",n?"ON":"OFF"]}),(0,tC.jsx)("span",{style:{padding:"3px 0"},children:"Last World Played"}),Object.entries(is.O.lastServerPlayed).map(function(e){var t=(0,ek._)(e,2),r=t[0],a=t[1];return!n&&i.includes(r)?null:[r,a.count]}).filter(function(e){return!!e}).sort(function(e,t){return t[1]-e[1]}).slice(0,20).map(function(e){var t=(0,ek._)(e,2),n=t[0],r=t[1];return(0,tC.jsx)(SoundRow,{sound:n,children:(0,tC.jsx)("span",{style:{fontSize:12,fontWeight:"bold"},children:r})},n)}),(0,tC.jsx)("span",{style:{padding:"3px 0"},children:"Last Client Played"}),is.O.lastClientPlayed.map(function(e){return!n&&i.includes(e)?null:(0,tC.jsx)(SoundRow,{sound:e,children:void 0},e)}),(0,tC.jsx)(nI.Z,{onClick:function(){return(0,e5.kJ)()},children:"Back"})]})}):null}var il=n(13421),ic=n(68560),iu=n(88376);function TouchControls_templateObject(){var e=(0,il._)(["\n position: fixed;\n bottom: 0;\n /* height: 100%; */\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: flex-end;\n pointer-events: none;\n touch-action: none;\n & > div {\n pointer-events: auto;\n }\n "]);return TouchControls_templateObject=function(){return e},e}function TouchControls(){var e=(0,tN.uT)(),t=(0,tJ.R)(e5.N_).usingGamepadInput,n=(0,tJ.R)(e5.M),r=(0,tJ.R)(e2.YM).touchMovementType;return!e||t||"classic"!==r?null:(0,tC.jsxs)("div",{style:{zIndex:n.length?7:8},className:(0,iu.iv)(TouchControls_templateObject()),children:[(0,tC.jsx)(ic.HP,{}),(0,tC.jsx)("div",{}),(0,tC.jsx)(ic.Af,{})]})}function InnerSearch(){var e=(0,tJ.R)(e5.N_).currentTouch;return(0,tC.jsx)("div",{style:{position:"fixed",top:5,left:0,right:0,margin:"auto",zIndex:11,width:"min-content",transform:"scale(1.5)"},children:(0,tC.jsx)(nE.ZP,{autoFocus:!1===e,placeholder:"Search...",onChange:function(e){var t=e.target.value;customEvents.emit("search",t)}})})}function GlobalSearchInput(){return(0,tJ.R)(e5.N_).displaySearchInput?(0,tC.jsx)(InnerSearch,{}):null}ic.A.setState({isFlying:!1,uiCustomization:{touchButtonSize:40},updateCoord:function(e){var t=(0,ek._)(e,2),n=t[0],r=t[1],a=[["z",-1,"KeyW"],["z",1,"KeyS"],["x",-1,"KeyA"],["x",1,"KeyD"],["y",1,"Space"],["y",-1,"ShiftLeft"]],o=0===r?a.filter(function(e){return(0,ek._)(e,1)[0]===n}):a.find(function(e){var t=(0,ek._)(e,2),a=t[0],o=t[1];return a===n&&o===r});if(bot)if(0===r){var i=!0,s=!1,l=void 0;try{for(var c,u=o[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var d=c.value;t4.pressedKeyOrButtonChanged({code:d[2]},!1)}}catch(e){s=!0,l=e}finally{try{i||null==u.return||u.return()}finally{if(s)throw l}}}else t4.pressedKeyOrButtonChanged({code:o[2]},!0)}}),(0,e2.t6)(e2.YM,function(e){ic.A.setState({uiCustomization:{touchButtonSize:e.touchButtonsSize}})});var getCurrentAppScaling=function(){return parseFloat(getComputedStyle(document.body).getPropertyValue("--guiScale"))},id=(0,tt.sj)({pointer:null,joystickInner:null}),handleMovementStickDelta=function(e){var t=0,n=0;if(e){var r=getCurrentAppScaling();t=e.clientX-id.pointer.x,n=e.clientY-id.pointer.y,t=Math.min(Math.max(t,-32),32)/r,n=Math.min(Math.max(n,-32),32)/r}id.joystickInner.style.transform="translate(".concat(t,"px, ").concat(n,"px)");var a={x:t/32,y:0,z:n/32};t4.emit("movementUpdate",{vector:a,soleVector:a})};function TouchAreasControls(e){var t,n,r,a=e.setupActive,o=e.closeButtonsSetup,i=e.foregroundGameActive,s=window.bot,l=(0,tJ.R)(e2.YM),c=l.touchControlsPositions,u=l.touchMovementType,d=l.touchInteractionType,w=l.touchControlsSize,p=(0,ek._)((0,tD.useState)(null),2),h=p[0],M=p[1],g=(0,tD.useRef)(null),m=(0,tD.useRef)(null),v=(0,tJ.R)(id).pointer,y=(0,ej._)({},c),buttonProps=function(e){var t={action:!1,sneak:null==s?void 0:s.getControlState("sneak"),break:!1,jump:null==s?void 0:s.getControlState("jump")}[e],n={action:function(){s&&(document.dispatchEvent(new MouseEvent("mousedown",{button:2})),s.mouse.update())},sneak:function(){t4.emit("trigger",{command:"movement.toggleSneakOrDown"}),t=null==s?void 0:s.getControlState("sneak")},break:function(){s&&(document.dispatchEvent(new MouseEvent("mousedown",{button:0})),s.mouse.update(),t=!0)},jump:function(){t4.emit("trigger",{command:"movement.jump"}),t=null==s?void 0:s.controlState.jump}},r={action:function(){document.dispatchEvent(new MouseEvent("mouseup",{button:2}))},sneak:function(){t4.emit("release",{command:"movement.toggleSneakOrDown"}),t=null==s?void 0:s.getControlState("sneak")},break:function(){s&&(document.dispatchEvent(new MouseEvent("mouseup",{button:0})),s.mouse.update(),t=!1)},jump:function(){t4.emit("release",{command:"movement.jump"}),t=null==s?void 0:s.controlState.jump}},pointerup=function(t){var n=t.currentTarget;console.log(t.type,n.hasPointerCapture(t.pointerId)),n.releasePointerCapture(t.pointerId),a||(r[e](),pointerToggledUpdate(t))},pointerToggledUpdate=function(e){e.currentTarget.style.background=t?"rgba(0, 0, 0, 0.8)":"rgba(0, 0, 0, 0.5)"},o=null;return{style:(0,ej._)({position:"fixed",left:"".concat(c[e][0],"%"),top:"".concat(c[e][1],"%"),borderRadius:"50%",width:"".concat(w[e],"px"),height:"".concat(w[e],"px"),background:t?"rgba(0, 0, 0, 0.8)":"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",transition:"background 0.1s",zIndex:8},a&&h===e?{border:"2px solid white"}:{}),onPointerDown:function(t){t.currentTarget.setPointerCapture(t.pointerId),a?(M(e),o={x:t.clientX,y:t.clientY}):(n[e](),pointerToggledUpdate(t))},onPointerMove:function(t){if(o){var n=t.currentTarget,r=getCurrentAppScaling(),a=(0,ns.FR)(),i=a.width,s=a.height,l=(t.clientX-32*r/2)/i*100,c=(t.clientY-32*r/2)/s*100;n.style.left="".concat(l,"%"),n.style.top="".concat(c,"%"),y[e]=[l,c]}},onPointerUp:pointerup,onLostPointerCapture:pointerup}};return((0,tD.useEffect)(function(){id.joystickInner=m.current&&(0,tt.iH)(m.current)},[i]),i||a)?(0,tC.jsxs)("div",{children:[a&&(0,tC.jsx)("div",{style:{position:"fixed",top:"0",left:"50%",transform:"translateX(-50%)",zIndex:9},children:(0,tC.jsx)(rp,{label:h?"Size: ".concat(h):"Change button size",value:h?w[h]:32,min:15,max:100,disabledReason:h?void 0:"Select a button first",updateValue:function(e){h&&(e2.YM.touchControlsSize[h]=e)}})}),"modern"===u&&(0,tC.jsx)("div",{className:"movement_joystick_outer",ref:g,style:(0,ej._)({display:v||a?"flex":"none",borderRadius:"50%",width:w.joystick,height:w.joystick,border:"2px solid rgba(0, 0, 0, 0.5)",backgroundColor:"rgba(255, 255, 255, 0.5)",position:"fixed",justifyContent:"center",alignItems:"center",translate:"-50% -50%"},a?(0,ej._)({left:"20%",top:"50%",cursor:"pointer"},"joystick"===h?{border:"2px solid white"}:{}):v?(n=(t=(0,ns.FR)()).width,r=t.height,{left:"".concat(v.x/n*100,"%"),top:"".concat(v.y/r*100,"%")}):{}),onClick:function(){a&&M("joystick")},children:(0,tC.jsx)("div",{className:"movement_joystick_inner",style:{borderRadius:"50%",width:.35*w.joystick,height:.35*w.joystick,backgroundColor:"rgba(0, 0, 0, 0.5)",position:"absolute"},ref:m})}),"modern"===u&&(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)("div",(0,eD._)((0,ej._)({},buttonProps("sneak")),{children:(0,tC.jsx)(nY.Z,{iconName:"arrow-down"})})),(0,tC.jsx)("div",(0,eD._)((0,ej._)({},buttonProps("jump")),{children:(0,tC.jsx)(nY.Z,{iconName:"arrow-up"})}))]}),"buttons"===d&&(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)("div",(0,eD._)((0,ej._)({},buttonProps("action")),{children:(0,tC.jsx)(nY.Z,{iconName:"circle"})})),(0,tC.jsx)("div",(0,eD._)((0,ej._)({},buttonProps("break")),{children:(0,tC.jsx)(MineIcon,{})}))]}),a&&(0,tC.jsxs)("div",{style:{position:"fixed",bottom:0,display:"flex",justifyContent:"center",gap:3},children:[(0,tC.jsx)(nI.Z,{onClick:function(){o()},children:"Cancel"}),(0,tC.jsx)(nI.Z,{onClick:function(){o(y)},children:"Apply"})]})]}):null}var MineIcon=function(){return(0,tC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",width:22,height:22,children:(0,tC.jsx)("path",{d:"M 8 0 L 8 2 L 18 2 L 18 0 L 8 0 z M 18 2 L 18 4 L 20 4 L 20 6 L 22 6 L 22 8 L 24 8 L 24 2 L 22 2 L 18 2 z M 24 8 L 24 18 L 26 18 L 26 8 L 24 8 z M 24 18 L 22 18 L 22 20 L 24 20 L 24 18 z M 22 18 L 22 10 L 20 10 L 20 18 L 22 18 z M 20 10 L 20 8 L 18 8 L 18 10 L 20 10 z M 18 10 L 16 10 L 16 12 L 18 12 L 18 10 z M 16 12 L 14 12 L 14 14 L 16 14 L 16 12 z M 14 14 L 12 14 L 12 16 L 14 16 L 14 14 z M 12 16 L 10 16 L 10 18 L 12 18 L 12 16 z M 10 18 L 8 18 L 8 20 L 10 20 L 10 18 z M 8 20 L 6 20 L 6 22 L 8 22 L 8 20 z M 6 22 L 4 22 L 4 24 L 6 24 L 6 22 z M 4 24 L 2 24 L 2 22 L 0 22 L 0 24 L 0 26 L 2 26 L 4 26 L 4 24 z M 2 22 L 4 22 L 4 20 L 2 20 L 2 22 z M 4 20 L 6 20 L 6 18 L 4 18 L 4 20 z M 6 18 L 8 18 L 8 16 L 6 16 L 6 18 z M 8 16 L 10 16 L 10 14 L 8 14 L 8 16 z M 10 14 L 12 14 L 12 12 L 10 12 L 10 14 z M 12 12 L 14 12 L 14 10 L 12 10 L 12 12 z M 14 10 L 16 10 L 16 8 L 14 8 L 14 10 z M 16 8 L 18 8 L 18 6 L 16 6 L 16 8 z M 16 6 L 16 4 L 8 4 L 8 6 L 16 6 z M 8 4 L 8 2 L 6 2 L 6 4 L 8 4 z",stroke:"white"})})};function TouchAreasControlsProvider(){var e=(0,tN.uT)(),t=0!==(0,tJ.R)(e5.M).length,n=(0,tN.uM)("touch-buttons-setup");return(0,tC.jsx)(TouchAreasControls,{foregroundGameActive:!!bot&&!!e&&!t,setupActive:n,closeButtonsSetup:function(e){e&&(e2.YM.touchControlsPositions=e),(0,e5.VG)()}})}var iw=n(94755),ip=(0,tt.sj)({name:null,hand:0});function Crosshair(){var e=(0,tJ.R)(ip),t=e.name;e.hand;var n=(0,ek._)((0,tD.useState)(!1),2),r=n[0],a=n[1],o=(0,ek._)((0,tD.useState)(0),2),i=o[0],s=o[1],l=(0,ek._)((0,tD.useState)(!1),2),c=l[0],u=l[1];return(0,tD.useEffect)(function(){bot.on("heldItemChanged",function(){var displayBar=function(e){var t=null==e?void 0:e.name;if(t)return loadedData.foodsArray.map(function(e){return e.name}).includes(t)||"bow"===t||"shield"===t||"crossbow"===t};a(displayBar(bot.heldItem)||displayBar(bot.inventory.slots[45])||!1)})},[]),(0,tD.useEffect)(function(){if(u("shield"===t),t){var e=Date.now(),n=0;if(("bow"===t||"crossbow"===t)&&(n=1e3),loadedData.foodsArray.some(function(e){return e.name===t})&&(n=1600),n){var r=setInterval(function(){var t=(Date.now()-e)/1e3;t>=1?clearInterval(r):s(t)},1e3/60);return function(){s(0),clearInterval(r)}}}},[t]),(0,tC.jsxs)(ng.Z,{children:[(0,tC.jsx)("div",{className:"crosshair"}),r&&(0,tC.jsx)("div",{className:"crosshair-indicator",style:{"--crosshair-indicator-size":"".concat(20,"px"),borderLeft:"solid ".concat(20*i,"px white"),backgroundColor:c?"dodgerblue":void 0}})]})}function ButtonAppProvider(e){var t=e.children;return(0,tC.jsx)(nI.e,{onClick:function(){window.playSound("button_click.mp3")},children:t})}(0,n(47536).IZ)("button_click.mp3","data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjQ1LjEwMAAAAAAAAAAAAAAA//tQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAANAAAWCQAcHBwcHBwcLy8vLy8vLy9CQkJCQkJCQlVVVVVVVVVoaGhoaGhoaHt7e3t7e3t7jo6Ojo6OjqGhoaGhoaGhtLS0tLS0tLTHx8fHx8fH2tra2tra2trt7e3t7e3t7f////////8AAAAATGF2YzU4LjkxAAAAAAAAAAAAAAAAJAUAAAAAAAAAFgmtrIBbAAAAAAAAAAAAAAAAAAAAAP/7kGQAAAMbJU8dDSAEM2PafaCIAI6M2UAZjAABb5QrfzSwAgAACDE3cDFv7uBgYGBu7wggQIEDFkYIAgSQuc5///+5zQIECBAgguKwAAAAwKGLIxWKwQFAoYyc0baCAYUcKAgCAYggCAIAgCYfiAEAfD8oCYPg+H4Pn/4IHP/+GAffrB8Hw+7dISWiQAVaAUY8EcsAMjZ/I385//U5z+cOBgZxwPg+D5/E4Pnwf/wff/xAGP8oCYPg+H5ICgL1KIgoRfmFIC4zXjEql4YOakNuRQ8jIzWGorVF2IqwhTqtfkmXdPlDcJrbxq49/6jZVDV7g4M1lQyuVYc3zBDRcqtr8MxhV2mjL+7nu7x1njBbhPzM38q/Leu/r+//9/61b9WsqupUaUy29caDIacJtkKJoBIZGaIhmgJBJSYEAwBPpXvH5Dl+NJK6b/ppmJP994dt2PizgIwFQIiGLTAwJx9hEXEYlQ5Rk17VB2nPjNv5YTs5cmV7nPbu+aJx5Z4q3O6g7/+G5Gz/687rGRB4hMj8lcZUpMwlK5hlO125BUqdGf/7kmQLAANWLc0vYQAAQgU57OeYAA0MtTEMMMVBFgsntPSYWGwy7MmooYI9hKIIJg0FjC8iXvZr+0svbq0Y7goUKYdJsGX7cpKxoP9nh/4tikA6GjXtBhRQLT9aFlb2onlEEn3MQbDzlwMMWhCqNLkpWLmhQciLK6EA5WmTSFgBHC8ofCeSuR+YQCnVzJmzZCaRaZCb0toJGVaGOyJV7r6xszeZcP9p22z0+51s6v8NuGb62tSR4pqZaJg6IQAA+2bA1sSZZDhBEf1Bk2XSiOBnCO7RisScggGFFhQKGdFujBCP9+HP5+Rr0+AeSZh1GW0sXbp7/mK5XxWN8rWOGCqWMbchKiBVQGtQh4yJWF4oZmj4XGl0qVY04BQ/1p61dwxi9Yps8XUcILmwCaYi5Ft+jKBZQTABJEpfziaAS6MpGomzM7Zq6rdP8IAFoHLLDQiABkkWHl4lKnSobeAnHSaBueNO//Wz/IIMzgEAMV36jqAJeMQbtAbJIxHHvdlp0tr0rzB+GqaTBHoohk4KTNJsaNZ7tokyZgmRtLr8ToUsLPP/+5JkHIADYifMRWEAAkalGYmnmAAQJTUyuZQAAa0Y6bce8AJJdxUDYs2EGCwOTWYX/yiwaYF0zc+nnUVE/z/Sv55pTlX4/vWuear/ePe76f+3Nc9T98nAAwAQEIGMjXzBbvd7gQrMSt3u2ZzYioZaT5rL+0y0SnMtidykoGvHySU0mgOnatn6aNekKhIjkmGSYkBkREngysp//0f62AfYAAAEWiuSl1pI2guplk/Gn0a3IJLKaairSkoJKFA7QokRAPiQeZFF5WyziJg9rkWgu6YUa2Z6Wj6H8OQQ6GGSPLQ6KlJZB1dO9wiI5k1MW8bq9HtToomcyqI75qhnLL+h96cLO9yLySeSetARO3iWpRxaHCpC6FalEiP/7jf/7mXdvt/dnK7JG442gAAGCNE0QyZF6EaMwhx1AkEON18h5IC+ihUhbF23HoeR3lqqycapesLL9CHhh6Z3dLrpVwXNWM8JwZnG7jJXCy5NkfdX+oc7nJj7zdtm9Lbno4XpfMbT93FfuUW5jpd6Kvr7OBwODQOTgKBQMR4JtwVfBv9uYt7x//uSRAuAAwlB3u49AABeaHvtxKAAjAjPY/z0AAFylGu7nrAAY1eMyWVwXFBGIPVyyg8dr5MMfUNdzDSf28u+PmkaYeWMIMseHC2N5q/0mzxhh6pFNMf8ZlPf/8tE9//6/98Cgw5GJAYV//dsVrTI4DAGBCWAwGAQGBAIA6YPgmvuo+jpnYLMUCx5DCAfIiCKcBAsOGmTAIFnljdCSrg/7SNGmV5rU/fpYdG/bv4oybRmJlYb/4FyzzyKqeFZup//5/p8eZY8zhJQk/T+uktWEQAABIBTvFEW89R0FwKaMaRlQlcfyqbL1GiXEAEIw+yQah6kiz3iCDR62KeU+o45rmlb/v4VTjh7cR61105zXP37RMqqzMMVdcqMUb3ZaYRdekuApGb/k/F51ze7rg5RQEAAAACglY5S6i0CUT9jSOJiVx1IU8o1BAwwQJhuTkpG0taamznrECOLjXf3udzO5SeHORY6/97rPInWsX+LXh6B+hKKRdJkXDalB33TeAWKEwFDQlmHPqA1dZF1QxAAEBAAmUD6BIZK6bJXt9yNvi/T7v/7kmQMAANjUNV7BhwwR4T7H2WDHo29MUlHpHGBSjIq9MGJO9Njed1hrJdxKKUZoBMD8Z8QBk28l2DRtNvKjiTPVn8syI5TTDNsdCxjNDC9EeU+extilCv/8ICp2Gu19mmc2PLh32bLNHGRdlMzMlweo8W/+WXk8bJoqogmQkoFECgM9xv31Hmr6wqDkqFrWKC1iJVJ6VIzLUTAH0CiZ/coJaFnZf/+ezMcOceQg4KhN8ERgZLANX///////rU8P52IAQAAA4JunYCaOqFEMtdnGoWZVzNTaPS7lNFZWpH21IkLizLGwTXbEpC58t2cpY7Yy9Z62o3X2cEtktd7cq3kKFk1EqfqzxwUFM3AL8mTLzpdhGevt8l4v0izIv7hbUFCFBaq7o5Z84nU986vRtFAAgkktPLRU2RZ/dzlUKAn1ihn8YzI1xRyUBAUalcz2Z+ZK9aGYCdSnu50OKCA3LYrK1zVVvDIzmm2T62///r+/////+vM+pHvuxjHCin0b1UzpUIwAAAQABlVAP4OID0CJCMGGWBdluOcyWEmRwsAMJX/+5JkEIADQCPReekbMFiGql09iAyOWSUxR5hzAT+VJjTBpwgZEKkSN5KhUtOmjQEdxOKa8OiDeMzQQ3VIv119hSAq4StaAiow+wJBI0ZqQQ5G5LAsg8K0Je1AlDgWUZe+Tu77ab1qWytGI5IkSyUCgC46V53PuGUc5brbnSmCU5lWskarhWWWoc1ShBEUeq2UdYKVcQTVpmFf/59rhSim/4+G6pW4YptVr4YfiNsoyQA7U9EKF2DMgVEtQZ//694NWsFgwUAAAABjSQxkiOGxiFyTx1NiqN1DDyUJBRNTVXSXOl45qwty0WFJBJlGhJhMksiAUUtdjXbkUd7eUWry34Ki5NaxD8VVvVktUMYPZ/vnVW+BMWpGSlcluqvTb7zXvVBa4RA4NCQNFWEjKVPoXyuW3zyKGx2QAAAAADAZPpzTLAJCGWXI/MYmhKR2s1MXMQ7A1uWWwHIiqhyH5c+w97xOypSYVVUIyqRBekiIXCJpChpJFF11qGhVQsWMFnyTXJ/o/8iqBLLagAAIRK0m2OYmybBRcIRObKycmoQAJZLK//uSZA2AAvMxSOGCNbBd5tjFPYlcCMRhD0MEYQD+DCHoEIwKNlMlMa3qt5p6uNdBCpXKFFMXyzO1BSlUM4VmmVPLlzmaSzZYFjxvdErWZGODqQ1EuCx08SSQES0Qqt1BZvU87//7/SSQAG1ZVzNAQrNt4nE9FoSlmEGpyBJWWT5YTkIPkyiMlRwHxeAMNZOeVOhyPrRV6UJ6k0tcdgifHqwB0CvHPoyLDR5YRH2DTN0KVQRcKtjqu2gfbt/ksKtWf+tn93qAmARJEgqU0YK9FdjUm/ZgYCCHAXXqARgKKqHtsoMQKCQF8JPIhIk8k/OlhLo/KlqivtPcfw0eUezx4qpf1dT1nZ47ARbigUgAAkAFynmqlxqTVe0jWbWR1h/1hwqUBgpbBTUAy3rcoeEnZGWEusjriKV/hJ/869T9j9frLdT1nZ46sBFuKQJX6ICZAWUYng080jJxIlyyLGgEGS/2TkpOSciNdGiyXJHJPJS65oTm/zeORYtFiyVNR2sSEpTJHPsnT8rZn/1tEknI5/zZ5YByAAAUEoBp5CyyWJULgP/7kmQrgGJONjmx6TCATcaG9SkmHol03LbHmQlJRxpVxPSZcGAEGiZMhAYNCp8dCpKR3nO4BMSNJOCgEJzWOI5SWsS1jTSKMkZbXIkc7kcpqfzlfJ5xLSISjLWRBQCElAJf7EkgggLQCyA3C7jwNZodqlPNQ8aDHotT6bCyJS0QYVZQGh3qsT7LF/z3sTKMqMsWyw6HCoy+NYYmmUoeKlPTRDDRwtNXOpTo5oNglLHLQbWAyiQmgXpOxI0K7KIicMraiLIxSWPkqypEIhsSCZCtFYhGRQJiFhEm4VHJ4aUsi208JT3Z3zXbZONNMSIwk6iQpZHK9AoEUWBJhJ2yzUbCUkxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqpMQU1FMy4xMDCqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/+5JkQI/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAASqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//uSZECP8AAAaQAAAAgAAA0gAAABAAABpAAAACAAADSAAAAEqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7kmRAj/AAAGkAAAAIAAANIAAAAQAAAaQAAAAgAAA0gAAABKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpMQU1FMy4xMDCqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/+5JkQI/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAASqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//uSZECP8AAAaQAAAAgAAA0gAAABAAABpAAAACAAADSAAAAEqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqg=="),n(60080),globalThis.resolveDnsFallback=(ec=(0,eC._)(function(e){var t,n;return(0,eT.Jh)(this,function(r){switch(r.label){case 0:return[4,fetchServerStatus(e)];case 1:return[2,null!=(n=null==(t=r.sent())?void 0:t.raw.srv_record)?n:void 0]}})}),function(e){return ec.apply(this,arguments)});var isServerValid=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.startsWith("192.168.")||e.startsWith("10.")||e.startsWith("172.")||e.startsWith("127.")||e.startsWith("localhost")||e.startsWith(":"),r=e.includes(".")||e.includes("localhost");return(!n||t)&&r};function fetchServerStatus(e,t,n){return _fetchServerStatus.apply(this,arguments)}function _fetchServerStatus(){return(_fetchServerStatus=(0,eC._)(function(e,t,n){var r,a,o,i,s,l,c,u,d;return(0,eT.Jh)(this,function(w){switch(w.label){case 0:if(!isServerValid(e))return[2];return[4,fetch("https://api.mcstatus.io/v2/status/java/".concat(e),{signal:t})];case 1:return[4,w.sent().json()];case 2:return l=null==(r=(s=w.sent()).version)?void 0:r.name_raw.replace(/^[^\d.]+/,""),[2,{formattedText:null!=(c=null==(a=s.motd)?void 0:a.raw)?c:"",textNameRight:s.online?"".concat(null!=n?n:l," ").concat(null!=(u=null==(o=s.players)?void 0:o.online)?u:"??","/").concat(null!=(d=null==(i=s.players)?void 0:i.max)?d:"??"):"",icon:s.icon,offline:!s.online,raw:s}]}})})).apply(this,arguments)}var ih=n(34304),iM=n(95151),ig=n(69087),im=(0,tD.createContext)(1),UIProvider=function(e){var t=e.children,n=e.scale;return(0,tC.jsx)(im.Provider,{value:void 0===n?1:n,children:t})},usePassesScaledDimensions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=(0,tD.useContext)(im),r=[];null!==e&&r.push("(min-width: ".concat(e*n,"px)")),null!==t&&r.push("(min-height: ".concat(t*n,"px)"));var a=r.join(" and ")||"all";return(0,ig.Z)(a)},ButtonWrapper=function(e){var t,n=(0,ih._)({},(0,iM._)(e));return null!=n.style||(n.style={}),n.style.width=nE.PX,(0,tC.jsx)(nI.Z,(0,ej._)({},n))};let iv=(0,nO.K)(function(e){var t,n,r,a,o,i,s,l,c,u,d,w,p=e.onBack,h=e.onConfirm,M=e.title,g=e.initialData,m=e.parseQs,v=e.onQsConnect,y=e.placeholders,A=e.accounts,b=e.versions,_=!usePassesScaledDimensions(null,350),L=m?eS.EX.name:void 0,C=m?eS.EX.ip:void 0,j=m?eS.EX.version:void 0,D=m?eS.EX.proxy:void 0,x=m?eS.EX.username:void 0,k=m?eS.EX.lockConnect:void 0,N=parseServerAddress(C),T=parseServerAddress(null==g?void 0:g.ip),S=(0,ek._)(tD.useState(null!=(r=null!=(n=null==g?void 0:g.name)?n:L)?r:""),2),z=S[0],q=S[1],E=(0,ek._)(tD.useState(N.serverIpFull||T.serverIpFull||""),2),I=E[0],P=E[1],Y=(0,ek._)(tD.useState(null!=(i=null!=(o=null!=(a=null==g?void 0:g.versionOverride)?a:null==g?void 0:g.version)?o:j)?i:""),2),O=Y[0],R=Y[1],B=(0,ek._)(tD.useState(null!=(l=null!=(s=null==g?void 0:g.proxyOverride)?s:D)?l:""),2),U=B[0],Q=B[1],F=(0,ek._)(tD.useState(null!=(u=null!=(c=null==g?void 0:g.usernameOverride)?c:x)?u:""),2),W=F[0],J=F[1],V="true"===k,G=!usePassesScaledDimensions(400),H=null==g?void 0:g.authenticatedAccountOverride,Z=(0,ek._)(tD.useState(!0===H?-2:H?(null==A?void 0:A.includes(H))?A.indexOf(H):-2:-1),2),K=Z[0],X=Z[1],$=-1===K,ee=$?void 0:-2===K||(null==A?void 0:A[K]),et=I,en={name:z,ip:et=et.replace(/:$/,""),versionOverride:O||void 0,proxyOverride:U||void 0,usernameOverride:W||void 0,authenticatedAccountOverride:ee},er=(0,ek._)(tD.useState(void 0),2),ea=er[0],eo=er[1],ei=(0,ek._)(tD.useState(null),2),es=ei[0],el=ei[1],ec=(0,ek._)(tD.useState([]),2),eu=ec[0],ed=ec[1];(0,tD.useEffect)(function(){var e,t=new AbortController;return(e=(0,eC._)(function(){var e,t,n;return(0,eT.Jh)(this,function(r){switch(r.label){case 0:if(!C||!isServerValid(C))return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,fetchServerStatus(C)];case 2:if(!(t=r.sent()))return[2];return el(t.raw.online),ed(null!=(n=null==(e=t.raw.players)?void 0:e.list.map(function(e){return e.name_raw}))?n:[]),eo(C),[3,4];case 3:return console.error("Failed to fetch server status:",r.sent()),[3,4];case 4:return[2]}})}),function(){return e.apply(this,arguments)})(),function(){return t.abort()}},[C]);var ew=["example.com:25565","play.hypixel.net","ws://play.mcraft.fun","wss://play.webmc.fun"],ef=ew[Math.floor(Math.random()*ew.length)];return(0,tC.jsx)(tk.Z,{title:C?"Connect to Server":void 0===M?"Add a Server":M,backdrop:!0,children:(0,tC.jsx)("form",{style:{display:"flex",flexDirection:"column",height:"100%"},onSubmit:function(e){e.preventDefault(),h(en)},children:(0,tC.jsxs)("div",{style:(0,ej._)({display:G?"flex":"grid",gap:3},G?{flexDirection:"column"}:{gridTemplateColumns:"1fr 1fr"}),children:[(0,tC.jsx)(nE.sp,{required:!0,label:"Server IP",autoFocus:!V,value:I,disabled:V&&null!==N.host,onChange:function(e){P(e.target.value),el(!1)},validateInput:null===es||ea!==I?void 0:function(){if(I)if(es)return{border:"lightgreen solid 1px"};else return{border:"red solid 1px"}},placeholder:ef}),!V&&(0,tC.jsx)(tC.Fragment,{children:(0,tC.jsx)("div",{style:{display:"flex"},children:(0,tC.jsx)(nE.sp,{label:"Server Name",value:z,onChange:function(e){return q(e.target.value)},placeholder:"Defaults to IP"})})}),_?(0,tC.jsx)("div",{style:{gridColumn:"span 2",marginTop:10}}):(0,tC.jsx)("div",{style:{gridColumn:G?"":"span 2"},children:"Overrides:"}),(0,tC.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,tC.jsx)("label",{style:{fontSize:12,marginBottom:1,color:"lightgray"},children:"Version Override"}),(0,tC.jsx)(SelectGameVersion,{selected:{value:O,label:O},versions:null!=(d=null==b?void 0:b.map(function(e){return{value:e,label:e}}))?d:[],onChange:function(e){R(e)},placeholder:"Optional, but recommended to specify",disabled:V})]}),(0,tC.jsx)(nE.sp,{label:"Proxy Override",value:U,disabled:V&&(null!==D||!!(null==y?void 0:y.proxyOverride))||I.startsWith("ws://")||I.startsWith("wss://"),onChange:function(e){return Q(e.target.value)},placeholder:I.startsWith("ws://")||I.startsWith("wss://")?"Not needed for websocket servers":null==y?void 0:y.proxyOverride}),(0,tC.jsx)(nE.sp,{label:"Username Override",value:W,disabled:!$||V&&null!==x,onChange:function(e){return J(e.target.value)},placeholder:null==y?void 0:y.usernameOverride,validateInput:es&&ea===I?function(e){if(e&&(eu.includes(e)||!/^\w{3,16}$/.test(e)))return{border:"red solid 1px"}}:void 0}),(0,tC.jsxs)("label",{style:{display:"flex",flexDirection:"column"},children:[(0,tC.jsx)("span",{style:{fontSize:12,marginBottom:1,color:"lightgray"},children:"Account Override"}),(0,tC.jsxs)("select",{onChange:function(e){return X(Number(e.target.value))},style:{background:"gray",color:"white",height:20,fontSize:13},defaultValue:!0===H?-2:void 0===H?-1:null!=(w=-1===(t=(null!=A?A:[]).indexOf(H))?void 0:t)?w:-2,disabled:V&&null!==x,children:[(0,tC.jsx)("option",{value:-1,children:"Offline Account (Username)"}),null==A?void 0:A.map(function(e,t){return(0,tC.jsxs)("option",{value:t,children:[e," (Logged In)"]},t)}),(0,tC.jsx)("option",{value:-2,children:"Any other MS account"})]})]}),!V&&(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)(ButtonWrapper,{onClick:function(){p()},children:"Cancel"}),(0,tC.jsx)(ButtonWrapper,{type:"submit",children:C?translate("Save"):(0,tC.jsx)("strong",{children:translate("Save")})})]}),C&&(0,tC.jsx)("div",{style:{gridColumn:G?"":"span 2",display:"flex",justifyContent:"center"},children:(0,tC.jsx)(ButtonWrapper,{"data-test-id":"connect-qs",onClick:function(){null==v||v(en)},children:(0,tC.jsx)("strong",{children:translate("Connect")})})})]})})})},"addServerOrConnect");var iy=(0,rc.U)(tK.supportedVersions["0"]),iA=(0,rc.U)(tK.supportedVersions.at(-1)),ib=r1.ZP.filter(function(e){return(0,rc.U)(e)>=iy&&(0,rc.U)(e)<=iA});eS.EX.lockConnect&&e5.Ro.add("editServer");var normalizeIp=function(e){return e.replace(/https?:\/\//,"").replace(/\/(:|$)/,"")},ServersListProvider_Inner=function(e){var t=e.hidden,n=e.customServersList,r=(0,ek._)((0,tD.useState)(null),2),a=r[0],o=r[1],i=(0,tJ.R)(tm.e1).authenticatedAccounts,s=(0,ek._)((0,tD.useState)(""),2),l=s[0],c=s[1],u=(0,ek._)((0,tD.useState)(0),2),d=u[0],w=u[1],p=(0,ek._)((0,tD.useState)(0),2),h=p[0],M=p[1];(0,tD.useEffect)(function(){t||M(function(e){return e+1})},[t]);var g=(0,tJ.R)(tm.e1).serversList,m=(0,tD.useMemo)(function(){var e,t;return n?n.map(function(e){var t=(0,ek._)(e.split(" "),2),n=t[0],r=t[1],a=(0,ek._)(n.split(":"),3);return{ip:n,versionOverride:(a[0],a[1],a[2]),name:r}}):(0,eE._)(null!=(t=null==(e=tm.e1.serversList)?void 0:e.filter(function(e){return e}))?t:[])},[n,g]),v=(0,ek._)((0,tD.useState)({}),2),y=v[0],A=v[1];(0,tD.useEffect)(function(){var handleKeyDown=function(e){if(!["input","textarea","select"].includes(null==(r=e.target)||null==(t=r.tagName)?void 0:t.toLowerCase())&&e.shiftKey&&void 0!==d&&("ArrowUp"===e.key||"ArrowDown"===e.key)&&!n){e.preventDefault(),e.stopImmediatePropagation();var t,r,a="ArrowUp"===e.key?Math.max(0,d-1):Math.min(m.length-1,d+1);if(a!==d&&!(a<0)&&!(a>=m.length)){var o=(0,eE._)(m),i=o[d],s=o[a];i.isRecommended||s.isRecommended||(o[d]=s,o[a]=i,tm.e1.serversList=o,w(a))}}};return document.addEventListener("keydown",handleKeyDown),function(){return document.removeEventListener("keydown",handleKeyDown)}},[d,m]);var b=(0,tD.useMemo)(function(){var e,t;return(0,eE._)(m).concat((0,eE._)((n?[]:null!=(t=null==(e=e5.N_.appConfig)?void 0:e.promoteServers)?t:[]).map(function(e){return{ip:e.ip,name:e.name,versionOverride:e.version,description:e.description,isRecommended:!0}}))).map(function(e,t){return(0,eD._)((0,ej._)({},e),{index:t})})},[m]),_=(0,tN.uM)("editServer");(0,nP.mk)(function(e){var t,n=e.signal;_||(t=(0,eC._)(function(){var e,t,r,a,o,i,s,l,c,u;return(0,eT.Jh)(this,function(d){switch(d.label){case 0:e=b.map(function(e){return!isServerValid(e.ip,!0)||n.aborted?null:e}).filter(function(e){return null!==e}),t=new Set,r=0,a=!0,o=!1,i=void 0,d.label=1;case 1:d.trys.push([1,6,7,8]),s=function(){var e,a;return(0,eT.Jh)(this,function(o){switch(o.label){case 0:if(e=c.value,!(t.size>=10))return[3,2];return[4,Promise.race(t)];case 1:o.sent(),o.label=2;case 2:return a=new Promise(function(o){setTimeout((0,eC._)(function(){var i,s,l,c,u,d;return(0,eT.Jh)(this,function(w){switch(w.label){case 0:if(w.trys.push([0,8,9,10]),r=Date.now(),n.aborted)return[2];if(!(e.ip.startsWith("ws://")||e.ip.startsWith("wss://")))return[3,5];w.label=1;case 1:return w.trys.push([1,3,,4]),[4,n2(e.ip,void 0,void 0,!0)];case 2:return console.log("pingResult.fullInfo.description",(c=w.sent()).fullInfo.description),i={formattedText:c.fullInfo.description,icon:c.fullInfo.favicon,textNameRight:"ws ".concat(c.latency,"ms"),textNameRightGrayed:"".concat(null!=(u=null==(s=c.fullInfo.players)?void 0:s.online)?u:"??","/").concat(null!=(d=null==(l=c.fullInfo.players)?void 0:l.max)?d:"??"),offline:!1},[3,4];case 3:return w.sent(),i={formattedText:"Failed to connect",textNameRight:"",textNameRightGrayed:"",offline:!0},[3,4];case 4:return[3,7];case 5:return[4,fetchServerStatus(e.ip,void 0,e.versionOverride)];case 6:i=w.sent(),w.label=7;case 7:return i&&A(function(t){return(0,eD._)((0,ej._)({},t),(0,nD._)({},e.ip,i))}),[3,10];case 8:return console.warn("Failed to fetch server status",w.sent()),[3,10];case 9:return t.delete(a),o(),[7];case 10:return[2]}})}),r?Math.max(0,100-(Date.now()-r)):0)}),t.add(a),[2]}})},l=e[Symbol.iterator](),d.label=2;case 2:if(a=(c=l.next()).done)return[3,5];return[5,(0,eT.XA)(s())];case 3:d.sent(),d.label=4;case 4:return a=!0,[3,2];case 5:return[3,8];case 6:return u=d.sent(),o=!0,i=u,[3,8];case 7:try{a||null==l.return||l.return()}finally{if(o)throw i}return[7];case 8:return[4,Promise.all(t)];case 9:return d.sent(),[2]}})}),function(){return t.apply(this,arguments)})()},[b,_]),(0,ns.Dz)(function(){a&&!_&&(0,e5.K4)({reactType:"editServer"}),!a&&_&&(0,e5.kJ)()},[a]),(0,ns.Dz)(function(){_||o(null)},[_]),useCopyKeybinding(function(){var e=m[d];if(e){var t="".concat(e.ip);return e.versionOverride&&(t+=":".concat(e.versionOverride)),t}});var L=_?(0,tC.jsx)(iv,{placeholders:{proxyOverride:getCurrentProxy(),usernameOverride:getCurrentUsername()},parseQs:!a,onBack:function(){(0,e5.kJ)()},onConfirm:function(e){if(a){if(!0===a){var t,n=(0,eD._)((0,ej._)({},e),{lastJoined:Date.now()});tm.e1.serversList=[n].concat((0,eE._)(null!=(t=tm.e1.serversList)?t:m))}else{var r,i=null==(r=tm.e1.serversList)?void 0:r.indexOf(a);if(void 0!==i){var s=tm.e1.serversList[i].lastJoined;tm.e1.serversList[i]=(0,eD._)((0,ej._)({},e),{lastJoined:s})}}o(null)}},accounts:i.map(function(e){return e.username}),initialData:a&&!0!==a?a:{ip:l},onQsConnect:function(e){dispatchEvent(new CustomEvent("connect",{detail:{username:e.usernameOverride||getCurrentUsername()||"",server:normalizeIp(e.ip),proxy:e.proxyOverride||getCurrentProxy(),botVersion:e.versionOverride,ignoreQs:!0}}))},versions:ib}):null,C=(0,tC.jsx)(nF,{joinServer:function(e,t){var n,r,a,o,s,l,c=t.shouldSave;if("string"==typeof e){var u=!1,d=e.split(":");"ms"===d.at(-1)&&(u=!0,d.pop());var w=parseServerAddress(d.join(":"));r={ip:w.serverIpFull,versionOverride:w.version,authenticatedAccountOverride:!!u||void 0}}else r=e;var p=r.ip,h=p;void 0===c&&(h=(a=b.find(function(e){return e.index.toString()===p})).ip,r=a);var M=null==(n=m.find(function(e){return e.usernameOverride}))?void 0:n.usernameOverride,g=r.usernameOverride||getCurrentUsername()||"";if(!g){var v=prompt("Enter username",M||"");if(!v)return;g=v}r.authenticatedAccountOverride&&(o=!0===r.authenticatedAccountOverride||null==(s=i.find(function(e){return e.username===r.authenticatedAccountOverride}))||s),dispatchEvent(new CustomEvent("connect",{detail:{username:g,server:normalizeIp(h),proxy:r.proxyOverride||getCurrentProxy(),botVersion:null!=(l=r.versionOverride)?l:r.version,ignoreQs:!0,authenticatedAccount:o,saveServerToHistory:c,onSuccessfulPlay:function(){if(!1!==c&&!m.some(function(e){return e.ip===h})){var e=[{ip:h,lastJoined:Date.now(),versionOverride:r.versionOverride,numConnects:1}].concat((0,eE._)(m));(0,a9.e$)(e),e5.N_.loadedServerIndex=(e.length-1).toString()}if(void 0===c){var t=m.find(function(e){return e.ip===h});if(t){var n=(0,eE._)(m),a=n.indexOf(t),o=n[a];n.splice(a,1),n.unshift(o),t.lastJoined=Date.now(),t.numConnects=(t.numConnects||0)+1,(0,a9.e$)(n)}}},serverIndex:c?m.length.toString():p}}))},lockedEditing:!!n,setQuickConnectIp:c,onProfileClick:(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,(0,tL.un)("Select authenticated account to remove",i.map(function(e){return e.username}))];case 1:if(!(e=t.sent()))return[2];return tm.e1.authenticatedAccounts=i.filter(function(t){return t.username!==e}),[2]}})}),onWorldAction:function(e,t){var n=m[t];n&&("edit"===e&&o(n),"delete"===e&&(tm.e1.serversList=tm.e1.serversList.filter(function(e){return e!==n})))},onGeneralAction:function(e){"create"===e&&o(!0),"cancel"===e&&(0,e5.kJ)()},worldData:b.map(function(e){var t,r,a,o,i,s=y[e.ip],l=(t=(0,eC._)(function(){var t,n,r,a;return(0,eT.Jh)(this,function(o){switch(o.label){case 0:return o.trys.push([0,5,,6]),(t=new URLSearchParams).set("ip",e.ip),e.proxyOverride&&t.set("proxy",e.proxyOverride),e.versionOverride&&t.set("version",e.versionOverride),t.set("username",null!=(n=e.usernameOverride)?n:""),r="".concat(window.location.origin).concat(window.location.pathname,"?").concat(t.toString()),[4,navigator.clipboard.writeText(r)];case 1:return o.sent(),a="Server link copied to clipboard",[3,3];case 2:return o.sent(),[3,4];case 3:(0,tE.c0)(a),o.label=4;case 4:return[3,6];case 5:return console.error(o.sent()),(0,tE.c0)("Failed to copy server link to clipboard"),[3,6];case 6:return[2]}})}),function(){return t.apply(this,arguments)});return{name:e.index.toString(),title:e.name||e.ip,detail:(null!=(r=e.versionOverride)?r:"")+" "+(null!=(a=e.usernameOverride)?a:""),formattedTextOverride:null==s?void 0:s.formattedText,worldNameRight:null!=(o=null==s?void 0:s.textNameRight)?o:"",worldNameRightGrayed:null!=(i=null==s?void 0:s.textNameRightGrayed)?i:"",iconSrc:null==s?void 0:s.icon,offline:null==s?void 0:s.offline,afterTitleUi:(0,tC.jsx)(nI.Z,{tabIndex:-1,icon:"external-link",style:{marginRight:8,width:20,height:20},onClick:function(e){e.stopPropagation(),l()}}),group:n?"Provided Servers":e.isRecommended?"⭐️ Recommended Servers":"\uD83D\uDCBE Saved Servers"}}),hidden:t,onRowSelect:function(e){w(Number(e))},selectedRow:d,retriggerFocusCounter:h});return(0,tC.jsxs)(tC.Fragment,{children:[C,L]})};function ServersListProvider(){var e=eS.EX.serversList,t=(0,ek._)((0,tD.useState)(e?[]:void 0),2),n=t[0],r=t[1];(0,tD.useEffect)(function(){if(e)if(e.startsWith("http")){var t;fetch(e).then((t=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){return[2,e.text()]})}),function(e){return t.apply(this,arguments)})).then(function(t){r(e.endsWith(".json")||!e.endsWith(".txt")&&t.startsWith("[")?JSON.parse(t):t.split("\n").map(function(e){return e.trim()}).filter(function(e){return e.trim().length>0}))}).catch(function(e){console.error(e),alert("Failed to get servers list file: ".concat(e))})}else r(e.split(","))},[e]);var a=(0,tJ.R)(e5.M).some(function(e){return"serversList"===e.reactType}),o=(0,tN.uM)("editServer");(0,tN.uM)("general-select");var i=(0,tN.uM)("serversList");return i||o||a?(0,tC.jsx)(ServersListProvider_Inner,{hidden:!i,customServersList:n}):null}var i_=n(37625);let iL={container:"container-dRiZZT",group:"group-haorh2","group-category":"group-category-HNSIFU",actionBinds:"actionBinds-MbRkMv","warning-container":"warning-container-mgiK4D",actionName:"actionName-uFJWW2","undo-keyboard":"undo-keyboard-fjpyGp","undo-gamepad":"undo-gamepad-ZNUg28",button:"button-AF2rj4","margin-left":"margin-left-ugrmlI","matched-bind-warning":"matched-bind-warning-WdXyU1"};function KeybindingsCustom(e){var t=e.customCommands,n=e.updateCurrBind,r=e.resetBinding,a=(0,tD.useContext)(ij),o=a.userConfig,i=a.setUserConfig,s=(0,ek._)((0,tD.useState)((0,ej._)({},t)),2),l=s[0],c=s[1];(0,tD.useEffect)(function(){i((0,eD._)((0,ej._)({},o),{custom:(0,ej._)({},l)}))},[l]);var addNewCommand=function(e){var t,n=String((t=Math).max.apply(t,(0,eE._)(Object.keys(l).map(Number).filter(function(e){return!isNaN(e)})).concat([0]))+1);c(function(t){var r=(0,ej._)({},t);return r[n]={keys:void 0,gamepad:void 0,type:e,inputs:[]},r})};return(0,tC.jsx)(tC.Fragment,{children:(0,tC.jsx)("div",{className:iL.group,children:Object.entries(t_).map(function(e){var t=(0,ek._)(e,2),a=t[0],o=t[1].input;return(0,tC.jsxs)("div",{className:iL.group,children:[(0,tC.jsx)("div",{className:iL["group-category"],children:a},"category-".concat(a)),Object.entries(l).filter(function(e){var t=(0,ek._)(e,2);return(t[0],t[1]).type===a}).map(function(e,t){return(0,tC.jsx)(CustomCommandContainer,{indexOption:t,commandData:e,updateCurrBind:n,groupData:[a,{input:o}],setCustomConfig:c,resetBinding:r},t)}),(0,tC.jsx)(nI.Z,{onClick:function(){return addNewCommand(a)},icon:"pixelarticons:add-box",style:{alignSelf:"center"}})]},"group-container-".concat(a))})})})}var CustomCommandContainer=function(e){e.indexOption;var t,n,r,a,o,i=e.commandData,s=e.updateCurrBind,l=e.setCustomConfig,c=e.resetBinding,u=e.groupData,d=(0,tD.useContext)(ij).userConfig,w=(0,ek._)(i,2),p=w[0],h=w[1],M=h.keys,g=h.gamepad,m=h.inputs,v=(0,ek._)(u,2),y=v[0],A=v[1].input,setInputValue=function(e,t,n){l(function(r){var a=(0,ej._)({},r);return a[e].inputs=(0,eE._)(r[e].inputs),a[e].inputs[t]=n,a})};return(0,tC.jsxs)("div",(0,nD._)({style:{padding:"10px"}},"children",[A.map(function(e,t){var n,r="function"==typeof e?e(m):e;return r?"select"===r.type?(0,tC.jsx)("select",{onChange:function(e){setInputValue(p,t,e.target.value)},children:r.options.map(function(e){return(0,tC.jsx)("option",{value:e,children:e},e)})},t):(0,tC.jsx)(nE.ZP,{rootStyles:{width:"99%"},placeholder:r.placeholder,value:null!=(n=m[t])?n:"",onChange:function(e){return setInputValue(p,t,e.target.value)}},t):null}),(0,tC.jsxs)("div",(0,nD._)({className:iL.actionBinds},"children",[(null==d||null==(n=d.custom)||null==(t=n[p])?void 0:t.keys)?(0,tC.jsx)(nI.Z,{onClick:function(){s(y,p),c("custom",p,"keyboard")},className:iL["undo-keyboard"],icon:"pixelarticons:undo"}):null,[0,1].map(function(e,t){return(0,tC.jsx)(ButtonWithMatchesAlert,{group:"custom",action:p,index:t,inputType:"keyboard",keys:M,gamepad:g},"custom-keyboard-".concat(y,"-").concat(p,"-").concat(t))}),(0,tC.jsx)("div",{style:{marginRight:"auto"}}),(null==d||null==(a=d.custom)||null==(r=a[p])?void 0:r.gamepad)?(0,tC.jsx)(nI.Z,{onClick:function(){s(y,p),c("custom",p,"gamepad")},className:iL["undo-keyboard"],icon:"pixelarticons:undo"}):null,(0,tC.jsx)(ButtonWithMatchesAlert,{group:"custom",action:p,index:0,inputType:"gamepad",keys:M,gamepad:g}),(0,tC.jsx)(nI.Z,(o={},(0,nD._)(o,"onClick",function(){l(function(e){return e[p],(0,ex._)(e,[p].map(i_._))})}),(0,nD._)(o,"style",{color:"red"}),(0,nD._)(o,"icon","pixelarticons:delete"),o))]))]))};function parseBindingName(e){return _parseBindingName.apply(this,arguments)}function _parseBindingName(){return(_parseBindingName=(0,eC._)(function(e){var t,n,r,a,o,i,s,l;return(0,eT.Jh)(this,function(c){switch(c.label){case 0:if(!e)return[2,""];return[4,null==(r=(null!=(n="undefined"==typeof navigator?void 0:navigator)?n:{}).keyboard)||null==(t=r.getLayoutMap)?void 0:t.call(r)];case 1:for(l=0,o=null!=(a=c.sent())?a:new Map,s=(i=e.replaceAll(/(Digit|Key)/g,"")).includes("+")?i.split("+"):[i];l0&&(null!=(y=i.current.gamepad)[A=_[0]]||(y[A]=[]),i.current.gamepad[_[0]].push({group:t,action:n,index:0}))}}()}catch(e){o=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}}()}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}}};return(0,tD.useEffect)(function(){updateBindMap()},[]),(0,tD.useEffect)(function(){if(w){r.on("pressedKeyOrButtonChanged",updateBinding);var preventDefault=function(e){return e.preventDefault()};return document.addEventListener("keydown",preventDefault,{passive:!1}),function(){r.off("pressedKeyOrButtonChanged",updateBinding),document.removeEventListener("keydown",preventDefault)}}},[M,v,w]),(0,tC.jsx)(ij.Provider,{value:{isPS:a,userConfig:c,setUserConfig:u,handleClick:function(e,t,n,r){var a;null==(a=document.activeElement)||a.blur(),p(r),updateCurrBind(e,t),_(function(e){return n})},bindsMap:i.current},children:(0,tC.jsxs)(tk.Z,{title:"Keybindings",backdrop:!0,children:[w&&(0,tC.jsx)(AwaitingInputOverlay,{isGamepad:"gamepad"===w}),(0,tC.jsxs)("div",{className:iL.container,ref:o,children:[(0,tC.jsx)(nI.Z,{onClick:function(){(0,e5.VG)()},style:{alignSelf:"center"},children:"Back"}),Object.entries(s).map(function(e,t){var n=(0,ek._)(e,2),r=n[0],a=n[1];return"custom"===r?null:(0,tC.jsxs)("div",{className:iL.group,children:[(0,tC.jsx)("div",{className:iL["group-category"],children:r}),"general"===r?(0,tC.jsx)("div",{style:{color:"rgba(255, 255, 255, 0.7)",fontSize:"6px",textAlign:"center"},children:"Note: Left, right and middle click keybindings are hardcoded and cannot be changed currently."}):null,Object.entries(a).map(function(e){var t,n,a,o,i,s,l=(0,ek._)(e,2),u=l[0],d=l[1],w=d.keys,p=d.gamepad;return(0,tC.jsxs)("div",{className:iL.actionBinds,children:[(0,tC.jsx)("div",{className:iL.actionName,children:parseActionName(u)}),(0,tC.jsx)(nI.Z,{onClick:function(){updateCurrBind(r,u),resetBinding(r,u,"keyboard")},style:{opacity:+(null!=c&&null!=(a=c[r])&&null!=(n=a[u])&&null!=(t=n.keys)&&!!t.length)},className:iL["undo-keyboard"],icon:nY.K.undo}),[0,1].map(function(e,t){return(0,tC.jsx)(ButtonWithMatchesAlert,{group:r,action:u,index:t,inputType:"keyboard",keys:w,gamepad:p},"keyboard-".concat(r,"-").concat(u,"-").concat(t))}),(0,tC.jsx)(nI.Z,{onClick:function(){updateCurrBind(r,u),resetBinding(r,u,"gamepad")},style:{opacity:+(null!=c&&null!=(s=c[r])&&null!=(i=s[u])&&null!=(o=i.gamepad)&&!!o.length),width:"0px"},className:"".concat(iL["undo-gamepad"]," ").concat(iL["margin-left"]),icon:nY.K.undo},"keyboard-".concat(r,"-").concat(u)),(0,tC.jsx)(ButtonWithMatchesAlert,{group:r,action:u,index:0,inputType:"gamepad",keys:w,gamepad:p},"gamepad-".concat(r,"-").concat(u))]},"action-container-".concat(u))})]},"group-container-".concat(r,"-").concat(t))}),(0,tC.jsx)(KeybindingsCustom,{customCommands:j,updateCurrBind:updateCurrBind,resetBinding:resetBinding})]})]})})}var ButtonWithMatchesAlert=function(e){var t,n,r,a=e.group,o=e.action,i=e.index,s=e.inputType,l=e.keys,c=e.gamepad,u=(0,tD.useContext)(ij),d=u.isPS,w=u.userConfig,p=u.handleClick,h=u.bindsMap,M=(0,ek._)((0,tD.useState)(""),2),g=M[0],m=M[1];return(0,tD.useEffect)(function(){var e,t,n,r,u="keyboard"===s?"keys":"gamepad",d=null==w||null==(n=w[a])||null==(t=n[o])||null==(e=t[u])?void 0:e[i];d?m(d):"keys"===u?m((null==l?void 0:l.length)?l[i]:""):m(null!=(r=null==c?void 0:c[0])?r:"")},[w,d]),(0,tC.jsxs)("div",{className:"".concat(iL["warning-container"]),children:[(0,tC.jsx)(nI.Z,{onClick:function(){return p(a,o,i,s)},className:"".concat(iL.button),children:(0,tC.jsx)(Keybinding,{type:s,val:g})},"".concat(s,"-").concat(a,"-").concat(o,"-").concat(i)),(null==w||null==(r=w[a])||null==(n=r[o])||null==(t=n["keyboard"===s?"keys":"gamepad"])?void 0:t.some(function(e){return Object.keys(h[s]).includes(e)&&h[s][e].length>1&&h[s][e].some(function(e){return e.index===i&&e.group===a&&e.action===o})}))?(0,tC.jsxs)("div",{id:"bind-warning-".concat(a,"-").concat(o,"-").concat(s,"-").concat(i),className:iL["matched-bind-warning"],children:[(0,tC.jsx)(nY.Z,{iconName:"alert",width:5,styles:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:"2px"}}),(0,tC.jsxs)("div",{children:["This bind is already in use. ",(0,tC.jsx)("span",{})]})]}):null]},"warning-container-".concat(s,"-").concat(o))},AwaitingInputOverlay=function(e){var t=e.isGamepad;return(0,tC.jsxs)("div",{style:{position:"fixed",inset:0,display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",backgroundColor:"rgba(0, 0, 0, 0.5)",color:"white",fontSize:20,zIndex:10,textAlign:"center"},onContextMenu:function(e){return e.preventDefault()},children:[(0,tC.jsxs)("div",{children:[t?"Press the button on the gamepad ":"Press the key, side mouse button ","or ESC to cancel."]}),(0,tC.jsx)(nI.Z,{onClick:function(){document.dispatchEvent(new KeyboardEvent("keydown",{key:"Escape"}))},children:"Cancel"})]})},parseActionName=function(e){var t=e.split(/(?=[A-Z])/);return t[0]=t[0].charAt(0).toUpperCase()+t[0].slice(1),t.join(" ")},iD={updateBinds:controls_updateBinds},ix=(0,tD.createContext)(iD);function KeybindingsScreenProvider(){var e,t,n,r=(0,ek._)((0,tD.useState)(iD),2),a=r[0];if(r[1],!(0,tN.uM)("keybindings"))return null;var o=(0,eE._)(null!=(n=null==(e=(t=navigator).getGamepads)?void 0:e.call(t))?n:[]).some(function(e){return null==e?void 0:e.id.match(/playstation|dualsense|dualshock/i)});return(0,tC.jsx)(ix.Provider,{value:a,children:(0,tC.jsx)(KeybindingsScreen,{isPS:o,contro:t4})})}function HeldMapUi(){var e=(0,ek._)((0,tD.useState)(null),2),t=e[0],n=e[1];return(0,tD.useEffect)(function(){var updateHeldMap=function(){n(null);var e,t,r,a,o,i,s,l=bot.heldItem;if(l&&["filled_map","map"].includes(l.name)){var c=null!=(s=null==l||null==(r=l.nbt)||null==(t=r.value)||null==(e=t.map)?void 0:e.value)?s:null==(o=l.components)||null==(a=o.find(function(e){return"map_id"===e.type}))?void 0:a.data;n(null==(i=bot.mapDownloader.maps)?void 0:i[c])}};bot.on("heldItemChanged",function(){updateHeldMap()}),bot.on("new_map",function(e){e.id,updateHeldMap()}),updateHeldMap()},[]),t&&!0!==t?(0,tC.jsx)("div",{style:{position:"fixed",bottom:20,left:8,pointerEvents:"none"},children:(0,tC.jsx)("img",{src:t,style:{width:92,height:92,imageRendering:"pixelated"}})}):null}function BedTime(){return(0,tN.uM)("bed")?(0,tC.jsx)("div",{style:{position:"fixed",bottom:0,left:0,right:0,display:"flex",justifyContent:"center"},children:(0,tC.jsx)(nI.Z,{onClick:function(){bot.wake(),(0,e5.kJ)()},children:"Cancel"})}):null}var ik=(0,tt.sj)({enabled:!1}),checkModalAvailability=function(){var e=e5.M.at(-1),t=!1,n=!0,r=!1,a=void 0;try{for(var o,i=tN.Af.value[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=o.value;if(s.endsWith("*")&&(null==e?void 0:e.reactType.startsWith(s.slice(0,-1)))){t=!0;break}}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}ik.enabled=!!e&&!tN.w.some(function(t){return e.reactType.startsWith(t)})&&!tN.Af.value.includes(e.reactType)&&!t};function NoModalFoundProvider(){var e,t=(0,tJ.R)(ik).enabled,n=null==(e=(0,tJ.R)(e5.M).at(-1))?void 0:e.reactType;return!t||tN.Af.value.includes(n)?null:(0,tC.jsx)(tk.Z,{title:"Error: Modal (route) ".concat(n," is is unavailable or doesn't exist"),style:{zIndex:-1},backdrop:!1,children:(0,tC.jsx)(nI.Z,{style:{marginTop:30},onClick:function(){(0,e5.kJ)()},children:"Back"})})}function SignInMessage(e){var t=e.code,n=e.loginLink,r=void 0===n?"https://aka.ms/devicelogin":n,a=e.connectingServer,o=void 0===a?"mc.example.comsdlfjsklfjsfjdskfjsj":a,i=e.expiresEnd,s=void 0===i?Date.now()+3e5:i,l=e.setSaveToken,c=void 0===l?function(){}:l,u=e.defaultSaveToken,d=e.onCancel,w=e.directLink,p=void 0===w?"https://aka.ms/devicelogin":w;o.length>30&&(o=o.slice(0,30)+"...");var h=(0,ek._)((0,tD.useState)(""),2),M=h[0],g=h[1];return(0,nP.mk)(function(e){(0,e.interval)(1e3,function(){var e=Math.max(0,Math.ceil((s-Date.now())/1e3)),t=Math.floor(e/60);g("".concat(t,":").concat((e%60).toString().padStart(2,"0"))),e<=0&&g("Code expired!")})},[]),(0,tC.jsxs)(tk.Z,{title:"Microsoft Account Authentication",titleMarginTop:5,children:[(0,tC.jsxs)("div",{style:{background:"white",padding:"20px 18px",width:300,maxHeight:240,color:"black"},children:[(0,tC.jsx)("div",{style:{fontSize:18,padding:"5px 10px",paddingBottom:1,backgroundColor:"lightgray",textAlign:"center",marginTop:-5,userSelect:"all"},children:void 0===t?"ABCD-EFGH-IJKL-MNOP":t}),(0,tC.jsxs)("div",{style:{display:"flex",justifyContent:"center",fontSize:12},children:["Waiting... ",(0,tC.jsx)(nY.Z,{iconName:"clock"})," ",M]}),(0,tC.jsxs)("div",{style:{fontSize:12,marginTop:10},children:["To join a Minecraft server ",o," using your Microsoft account, you need to visit"," ",(0,tC.jsx)("a",{href:p,style:{color:"black",textDecoration:"underline",fontWeight:600},target:"_blank",children:"Direct Link"})," "," or "," ",(0,tC.jsx)("a",{href:r,style:{color:"black",textDecoration:"underline",fontWeight:600},target:"_blank",children:r.replace(/(https?:\/\/)?(www\.)?/,"")})," ","and enter the code above."]}),(0,tC.jsxs)("div",{style:{fontSize:11,marginTop:5,color:"gray",display:"flex",gap:2},children:[(0,tC.jsxs)("div",{children:[(0,tC.jsx)(nY.Z,{iconName:nY.K.alert,styles:{display:"inline-block"}}),"Join only ",(0,tC.jsx)("b",{children:"vanilla servers"}),"! This client is detectable and may result in a ban by anti-cheat plugins."]}),(0,tC.jsx)(rt.tv,{size:40,value:p,style:{display:"block",flexShrink:0},color:"gray"})]}),c&&(0,tC.jsxs)("label",{style:{fontSize:12,display:"flex",alignItems:"center",gap:5,marginTop:4},children:[(0,tC.jsx)("input",{type:"checkbox",defaultChecked:void 0===u||u,onChange:function(e){return c(e.target.checked)}})," ","Save account token in this browser"]})]}),(0,tC.jsx)(nI.Z,{style:{marginTop:-5},onClick:void 0===d?function(){}:d,children:"Cancel"})]})}(0,tt.Ld)(e5.M,function(){checkModalAvailability()}),(0,tt.Ld)(tN.Af,function(){checkModalAvailability()});var iN=(0,tt.sj)({code:"",link:"",expiresOn:0,shouldSaveToken:!0,abortController:(0,tt.iH)(new AbortController)});function SignInMessageProvider(){var e,t,n=(0,tJ.R)(iN),r=n.code,a=n.expiresOn,o=n.link,i=n.shouldSaveToken,s=(0,tN.uM)("sign-in-test");return r||s?(0,tC.jsx)(SignInMessage,{code:r,expiresEnd:a,loginLink:o,defaultSaveToken:i,setSaveToken:function(e){iN.shouldSaveToken=e},connectingServer:null!=(t=null==(e=ti.Pc.value)?void 0:e.server)?t:"",onCancel:function(){iN.abortController.abort()},directLink:"http://microsoft.com/link?otc=".concat(r)}):null}let iT="data:image/webp;base64,UklGRqYnAABXRUJQVlA4WAoAAAAQAAAAngUAggMAQUxQSJYBAAABV6AokqQ2ejm5OOCbVBARASjYq7b/B7ixbbtqDvJ6EaVIVbjYt0IjMtGPZF6b+PT+Dyui/xOQTXvdbtnxEQvfd5e76LV7Uc4eJ88WWw29gCeZl7NNp8vms9vkpoi9P2X90Iv4dTk7K2fn5ex6Va/k7RiHXssfP66LWe+N//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP//iP/yYyklqWFLN2dMPVUlLGWtYe35AMFaxl4xKWabWfcpakemWHxzcklSs7Llxtqi0ZqtZJMWvZ45EKJ1sAVlA4IOolAACwAAKdASqfBYMDPpFInkulq7AipZD4egASCWlu/9Lm1PkRAW/5aXltGwO29yHgm+9sgE61gv//035t0u+HhaC/7iN+0X+98HGK3In/c/Cc85aMyOVBVgDchGuhzmAAUynK3ouTR/sE0f7BNH+wTR/sE0f7BNH+wTR/sE0f7BNH+wTR/sE0f7BNH+wSZ5F27IrvVWHgYqdEdhxCTR/sE0f7BNH+wTR/sE0f7BNH+wTR/sE0f7BNH+wTR/sE0f7BNH+wTR/sEmeRd4xpY1oLR6ND+ch1ACkToi6YURJYPWSPGFRM/nMSJrIwHVgc7adInasyt6LkYlwuwYs3EuLNzPEt7U1oTbUf7BNH+wTR/sE0f7BNH+wRhiE64tWInEKOXyu8AuU0wwcmAslwplnkNaSBDWkgQ1pIDspbGhUoc3EuLNxLizcMovvRpE53acdqzK3ouTR0wULoBoukxbYGGqFGzC0rh5TrQTccyBi6LueqO/4z2A1AORUaRnKpkELellAIJ0hcRI9jIP1sdi160zHJjqwUXRRiZJOd8c3JU1wFZjKwUXRbMZWCi5MaincGkEvf2zHVeofPOC1BcH/AiERLanYxv52c+jc3PAuXY85KvoJ4GF6IyFz9YnJ2joSjAByKfWqFrp8wt+yWd7pTayGWzlD/tDxL8MM06J1Oi8Lk1qMkWeXfh9D4LD1nfh9D4LDeCcfa5r5epi3xLeFya1FufUEPqCH1BEAFqIjjftjyE1Ae2kAI6AC0c412T/COYYxbUEPqCH1BD6gh9QQ+oIfUEPqHMG946wLk1qQ8H1BD7u6LwuTWotz6gIkpJO7S9ZpzGsvu1oVaREGmlP1TRfUNg2y9N8b703wuTWsovk7WORbgw0XhcmtRboXW+9YahUfjNVVsbnTiMutZ6/eWzGpOLQMmlDNYBH/GlQvDUEPqCH1BD6gh9QQ+oJO+tRbpgTjpUKQ3Pu7owe3hcmtRbosKUW59QQElXzasGgObe0cSabf5ozSZDsGGA2JrpeBYPKYcVFya1FufUEQulya1FufUHepks46VCkNz6g71JRbn1BD6gh9QRFhSiLpuCeMbj8gFo5/+FkT0BUQ45UD6gh9Uz5Nai3PqCH1BD6gh9Q5jUw2f/em+Fya1FuiwpRbvPC5Nai3Om+DycUc6W/NUGoGhpY+oLbiLk1qLc+oIfUEPqCH1BD6gh9ZFo4c74PbwuTWotz6gh9QQ+oIfUEPlEDS57UHJxnxei1QKntywAuyYNTYb1qydF433pvjfem+F1Mh4XJrYKHcTPTfC5Nai3PqCH1BELpcmtRbnytCQp47MAk2TYWwfjUnZkFXktIBPWWP56b4XJrUW6F0uTWotz6g71KVF7CtF4ag71JR//JrUW59QR54XJrUW58oikqk1fWKNSgzGeGiND2PeMHRe1BD6gh9QQ+oIfUEPqCH1BHnh6WSNwsh4XJrUW6F0uTWotz6gh9QQ+QG7cR93eVeiBgdvAWh3TK03JvC5Nai3PqCH1BD6giF0uTXKi9hnKsGlYFya1FufUEPqDvUlFufUEPpms86xzyUgcgYHbK39Hua/BFvWot3nhcmtRbn1BD6gh9QQ/lTT0LZem+Fya5UXJrUW59QQ/HmL6dEDj7IFPdeLEacxoI9sxztKnDhyXhduFvWotz6gh9QQ+oIfUEPrItHfYT6gh9QQ+oIfUEPqDvUlFufUEB1g7mOQqgCcnGitAxHWBcmtWTovC5Nai3PqCH1BD6gnwbxeK6XJrUW6F0upkPC5Ty8Lk1qydEeElx0iM36M4w1qgbBr04ffUuTWo//k1qLc+oIfUEeeFya1GCxqYbO+TWotz6gk761FufUEQulya1D6rc9mkoTrdjOQMDt4KaSeFya1FuhdLk1qLc+oIfUEPqCfBvF4agh9QQ+oIfUEPqCH1BD6gh9QDURJBqBqg07eX1l8lFufUEPqCH1BD6giF0uTWrJ0qk1RgdYFya1FufUEPqCH1BD6gh9QQ5ISZfw95NLWOQMBV7GoS/vWotz6gh9QQ+oJY/b3IQ/HmGJJqTVGA76mQ8Lk1qLc+oIfUEPqCH1BDqFeH68lwRFaoNQNUGtmD8eXya1FufUEPqCPPC5Ty8Lk7WOReK6XJrUW59QQ+7ui8Lk1qLc+oIDrUw05jUoMx/etRbn1BD6gh9QQ+oIfUEPqCH8qaehhA6epSouTWotz6gh9QQ+oIfUEB1qYacxqUGY/vWotz6gh9Uz5Nai3PqmfJrvpKUPo77C88Ltwt61FufUEPqCH1TPk1qLRHSzoALRzY2DqXytmD6gh9QQ/HmL6hsG2XpvhcmtRgsamGzvk1qLc+oIfUEPqCH1BD6gh9NoIzw1e1XoALRz9W5s0XhcmtRbn1BD6gh9QQ+7ui8PTA8RuHl4XJrUW59QQ+oIfUEPu7ovCnoeMamnMahHJQh9QQ+oIfUEPqDvUlFufd3ReHpgeI29ai3PqCTvrUW6N7MvTfG+9N8KehA5cV+aDMaCPbBRIQYKHtkPC5XretRbn1BD6gh9QQ+oO9dsci8NQQ+oIfUEPqCH1BD6gh9QR54UGFNkSl+fqkd+caM42L4ri6XJrUW59QQ+oI88Lk1qLc+oJ8G8Xiulya1FufUEPqCH1BD6g71JRbg45PGqDUDXJPLXKmx5eFya1FuiwpWTovC5Nai3PqmmlkjbetRbn1BD6gh9QQ+oIfUEPqCHVr5CxyBgdryyvc15NF4XJrUW59QQ+oIfUEPqCH1BPgJI0YFya1HI3rUW59QQ+oIfUEPqCA6xNU0YP9NOY1KDMfBufUEPqCH1BELpcmtRbn1BD6hzBveOsC5Nai3sftl6b4XJrUW59QQ+VuwRGMjvalBk8AMiv5DPee7POy8Lk1qORvWotz6gh9QQ+oIhdL2GckLQtz6gh9QQ+oIfUEPqCTvrvpKIqLweGWgtSZ0bwMDtd961724agh9QQ+oIfUEPqCH1BD6gh9QT4N4vDUEPu7ovC5Nai3PqCH1BD6gh8hyJJHRfIv/7eBgdrH0OG7vrox1qL2IG2XpvhdTIeFya1FufUETAnF9GMODbL1hqDvUlFufUEPqCH1BEZ0Rki1gBt+jOTjRryem+Fya1FufUEPqCH1BD6gh9Q5jUw26wLk1qLc+oIfUEPqCH1MXHresSphigzGpNvztUPjNexPG/A3PqCH1BD6gh9QQ+oIfUEPqCfBu8pg6HBtl6b4XJrUW59QQ+oIfUD8aNgFnxLz3Fzk40Z4WaYgfKfcmtRbn1BD6g71JRbn1BD6gh/Kmm1u5Nai3PqCH1BD6gh9QRC6XUyHHLmLNTTmNeF9lB7XAanTOd7wupkPC5Nai3PqEuJrUXjia5qoCwjEb1qLc+oIfUEPqCPPC5Nayi+RSLuBeBaTDD0dABaYoowU9vNULc+oIfUEPqCH1BD6gh9QQ+oJ8G7ymDocG2XpvhcmtRbn1BD6gh9QP/REcG4ikBaOgBJLb0Y3FdLk1youTWotz6gh9QQ+oIiwpWsnMgDEbpQ4NsvTfC5Nai6epKLc+oIdDYm9HQAWnBPohAZdgCyHhcmtRbn1BD6gh9QQ+oIfVNNMDxHCyHhcmtRbn1BD6gh9Uz5Nai3OSEnKWcacxqTnoi27RsvxcqgD3lvWotz6gh9QQ+oIfUEPqCH1DmNTDbv5b4XJrUW59QQ+oIfUHeq/AuRc5SAciN4TezufalGpiDv/HgkpIrgX+y9svTrOhwbZem+Vsbn1BD6gh9Q5jUw26wLk1qL2IG2XpvhdTIeFya1Ft5hVTLsp0FInGjPQsyclZZ3LEoIfUEPqDvUlFufUHepKORvWowWNTDZ/96b4XJrUW59QQ+oIhdl4FyawABFR/Kj9fA5jUpHkbHi0oDRt/qCH1BD6gh9QQ+oIfUEPqCH1BSEHKsGW+Td8C6mQ8Lk1qLc+oIfUEPuxs1MIf+l9SVhsPicnGejbk8v+ji64LdKHCWhbn1BD6gh9TFvWotz6gnwbxeK6XJrUW59QR54XJrUW59QQ+oICht4x9cxFl6M5NfkIjMyQHz0NZ/Sp8g2f03wuTWotz6mLetRbn1BD6yLR32R6wW8Lk1qLxxNai3PqCH1BD6gDEktD5g5Fju2/RnpY3qnbXL6FsvTfC5Nai3PqCH1BD6gh9QQ/lTT0LZem+Fya1FufUEPqDvUpUXJrUQ84TV2ZWGpQZ6kbWXX2XYLwGP2XpvhcmtRbn1BHnhcmtRbn1BPg3i8NQQ+oIfUEPqCH1BD6gh9QQ+oALhw+ZIq8QONGeCPPS6HHQ9AvKmok8IhhUox+TekXBD6gh9QQ+oIfUEPqCH1BD6hzGphs75Nai6epKLc+oIfjy+TWot0PNKYIQOwLqciXMtYL4bnQJycZ6NuT2Q8f/I1YptHwTBNgyeoIb5bTJyPIWTeFya1FufUEPpxCdS4C+ZGl1PuGfsxUP6OpKs95HqqfnuS1hlx1YJbm8LrUW59QQ+7ui8KAz+TowBuONB1A95QYuWr7C+eyuacj5q4alBnNt2giM0sV//FsSYsauBF2b2LNxLizcS4s3Et86lgiXFm4lxZaKIfRhD73ouTRz1zknyIPU8WYvpq8s829k2tcDzzb2Ta1tTTGypWgskuHSX0X2f8Fe5R+dKuMBjRpq8s89n01eWebeybWuB55rgC99nna0kCGrGzldMBlZle3O1FdBYkICa9wV7OvZ17OvZ2AQMgteGpISTM5gBQSaSsyueAhMTzfplD0ICwEDkAaXNiFdoKaEQAUaxbAZW5M2zWuGNeZRd0JnjVHOs8pPYcSdKLFm4c6VyRcuXLly4jp0Yem2ME8vZX3OoPSJ2rMrei5NH+wTR/qhVYq5vx8V0jF0p1xvZ6JB5OCAmj/YJo/2CaP1g9Z+6/dKhzC0kB63xSwCkTtWZW9Fq5NX5hP6dImsrjr6osWbiXBSauTzLcqm8Y4wFiXXOMGOAGKiiCUGSmya/JJKkq2HWn9GeFdxYQuB55t7Jg+cY6B55t7JhCSHnm3sm1rgeeFeybWuBcYV3Fta4Hnm3smELgeebeybWt+bMm/j2S2ncE3LNKX55t4b4Hnm3sm1rgeebeybWuBcPivhLgeebdxbWuB55t7JtaSHnjK+1eKJrfTV5Z5t3FhCRzJTLzwA2hAUgz2ujftggZ8MFPsMmnTh7qe0kTtWZW9FyaP9gmRfYJo/2CaP9gmj/YJo/2CaP9gmj/YJo/2CaP9gmj/YI+YD8dMN3AVPHrTEjN9slcRlnkNaSBDWkgQ1pIENaSBDWkfL1pIG9wplnkNaWZIENaSBDddaSBDWkgQ1pFy1W0R6EVWxIHqudWLfa7hrXA83eYYZNrXA8829k2te9a1wPPNvZNrXA8829k2tcDzzb2Ta1wPPNvZNrT11rgeebdF0hcYV3Fta4Hnm3sm1rgeebeybWuB55t7Jta4Hnm3sm1rgeeax4EdcosczsRWJcQ1ZrhaGn/sRVH4zkFYv2wTYAA/vNTx6uyqfI3hwhU3g6dzNSZte3ZYF5pvnFqwkz0nf4kjjZMdVPPdC15RAollugE0mGlNXf6qcDdifbYKZxv+YUXfZ10Z3jKQPZvDOnHtGIDL26BYBkFxYE1cAKy8Ff42fXQbwFXtUp7ikCMForjM+6My5a+RSj+vfHpimUCnEIZROUWUbDsyjSqrb/29KsCvIhf7e4EWjXJbJcZ1VwkiNRwt460sAoNYj4vuc9NTt5RHrfatOvkuXKkw1Pr4zl5pPtS+jofv14alPtTBU76+P1NLYKnfXMfFce0DCaS3F9W2mUNjD77bTABHD9egKC4yPx8iuXnhUl4dCdLr+WUe4d6tQwkc1DhUfo/7//9ncf/3ZIWbBRHfOCAGLGAR/9jU6mDU70Nellq4jAQYxShmeLLyAEucqXK1kCM0sjYybE8ElUaAAQ01Q/81c1+tUWY7bDpKpKS+eD6ZnEZ/EVjdqeps/zvYtPgQQrDF+RkYGNIjR8xfD8ZJTpF8OcFiUw8QSgsAd1lx1b9EC4QfP43eBvDKmZMgqg5fxfEl7c6lH6H8tvF3sXzCfTVVVVNiJ2psEDI8jZysZq02dcWNIytV21uT87YkK3uwksgnP0hzEmRGgTxdhGD4TrKznnmxx6jOJwvCrzlwIvnnLmJ0s8aARbw008QtOJ8TZT9ZKFxE3OqZvbdRmJp49pfRTE3N8rkBS1d/yV0ZElJfE3Bkhs+XY1CBOO7EDMmd6XGfyCY9BSC6I5JHHtUaqNNqksxmQ4/bd5d9zQN43MgwGCxQ5HImINoYAflqB/h+hgCVNYsbyxvIF6Us+4kITtyi1N6aYf67Qwqxo/PbpuDnHOG6qmFa1preB2d7/h/3bUKcIPXjBKKdGknTSVZPMgnCY4pP4tNj+7KsFKxPhT1qzL3guJbdHnZN3qV7D40b11l0uLMbKyu8xiV79+fud2mwEzkAOklT1Ci/4MGBiaHJEDP5w/eeM9G6A3QP+t5X5fV878UOFSgGzKJAvUIqmt5zxE59Gah6mHG0zFcADKfC4sVOZSO4h37I1V0UpGnfw8Riw7094cvgJoaUiHt854iaGhVAvRXdf6A1Zq7u76Tf5Erld3in7w1YuDnNYu5hd+ft4r8jBEnwGfNNV9CW19O/zDnGRaeU1t5ElI0HHHv0S6AI5rgDHAGCuTzL0d8GV9tP1gkKpi8EzoZ6b7YB72JJkPNlivxMm5b4Gf2VY3LH2GW05dIRvxCABS8FaW/WhVZASIMgZnSNd0EZy817tEUKS/xJ9XsEocb1TFQrhHmi+94RKgjXsnKzeYeItAd2XY4OvsVXHgVUp/4rUnARxS5azKZD+HZHSen1d79ivE7Q0H7mBB8BnG//O7gitxvgvJSXpmsFCAAsYyveqxbax8qnQAABMdd8XJo3wtLdB9h0ss+4A01AAAkIejwDeH00YH8xVlgd8XWXdgzfqV1zhrkGpxTOjDbJz/SjUj/3nhi34IZYXp/0/5xXPJhe2UP6LdR4U3956RS3hlcMsrnBTrh9h9Za9l6C8qHvvdOYHTZXf/CjMrKysrMXcM+fyfIzWDkqI3mUsQttai3h21xQEGEasMKfLRXCYOhfnT7Z0JHoQ7s7YyKhi5xgnn1DWs03l871j2KnkhcbQxlzkjr7fgYFjLLjhhQl6XwQTDUjwuzpsYKl4Ye1X3B39fS8mdLJDUeEZJ+XYrtDp/kFn3ZeSv3h6A08NOctzYCMi6nhC5bn7EQS7lUSGds86MWPbkYnTBA1pM8cPboHEuSnqthvwgy2aBcIVDf+S4InILH+dsgEnsZSQm2OmjlMGaMGQoZxCdiEwZh0K0xhfI3QcTK84F71Z0gZ8fHN/YaSmkhgfi2rX2JJQaLkG7hofJu9NaatNsKBcf15AsICvdINyQh9aM47rfWHWk7kYy1w5PRuzoIS4gLlJrdmy+rMIM9+6mqpdqqWvSbJoZrnp7lzhUm1Hi0g6UYyahe8VrSMuKk3eFevOFz5N7zbEB7MaMF22Skh5Y/Si1bwIvphTOwjeYq9KpgzJo1ceoaj0SiBrAhIlC+NFA0qylS1JtGlEYZtUlZFjmwvCt8UeAZJkFQFVKmbEC4XcuyN6lbXwPF7QZ91yiJrxIs7iVI1e+HIkqh6/DXLOboo6ApXvds4fDVqcsRNfAUGGsUF2QGyMTevpfANAhPLuK0OpRDCIz6RdJC5LOetjJMzMmhMQQYP7jsUHx/qx2vYCG0xTrXHdfgjdIyk6CU3mYjZ1KPhS9HMlzaYORqegiq+2ogB4b2aNLerK/7O+AahinqGR3vHWmDM3dnajbRCArRhVbzlDkLSgIsH0Wcuf5+Zu96Dej3M2i9CSkQrJylrlaXZ6dbFGrDMFrsyrqZXKpoGMfFRiTOpZK7Gdj84wU/aYUC4Hk/K5WrHaNiJ4GOVae7SQl2ogG0rfx6dPDFANsq78DtvKoaEYLdqz9RLCy8BBSaZR7yqnxfwFQLtbfZXPiB9We8ssPAowrjA7lDfdf7OQMfyQq2rVA2HkYR616GZXW/9Qp1xR/LSNfUfQTEkE/F3MDT1cz2k5ILH8wpxo9g3MGzH4Ck9ikajkz0BaCrWP+Nb4TIe9SmWoCq0NEvW17KOcK/KcMtwUlhDhHKvLLPRXIpqCMYEBoQvc4LJeVXMltjyzm0OlOQMk27qX5hMIWKCkX02LmQBk1Xlfdvz+zWvPYKZkdIV7ZTrLk4aJzNtNJXgHtw63gsOHsYvj6Lwt8LCziiQkJCPZK7xsCGyCdN4PHK0+z1UADDpeyM7npBBAX3cmvAUcm8flBa0kBYIXocNpaTJSqXk5jPx16uJ6Jfjch9+zecIZhEytcX5gaMRQD8Xp1SzRkasLZjMEYoLdFy19si+PQlQSLZHPHrUKEaTJtJpK5/qRArNt9moUGJ/8AXa2bUBKU4fPmbaQM/9BXOkTQDUWSolzyQ6rB53sX4s+N53eNgsbBL6kXbQ1srL36DV7n9M2Hw+ct9ozsjIptAr6LqywFY1xJ7zo6NcqhPMN/cRuLS0mRlw+3U8zUF7RX0ml03fYvyKJlM2FJ1POrGYTg9yVvsmlWZgAM8bxsuvO3XhMEVfOqh5KrjoZFu4dGCcxh3ksrN3cgzjOXzoiAlDuDk8AEPvEzjqblwLUx6rQmu0qDbzt4JX4foJLf/K4eca0wljFq3/9pW/v+vgaADhj5fnoyxPJgJau7xEAsm/CyRjptJiIYKl1v5SsEAryFwXOKdoEXrNiIo1J68YAzjsKilMl0ON16tb8gshRIrzxbBMmq+tOexhtP7whJAOMr3jRjvaEvDpRb55W1xRsHoGRGryYqgrKy62PyR+gXfq7ziXMZc72OaunGOpq7gTjQVWGsoHU6FB9aePl+ejhHKqVP1LiToH4lHSaCtfd+HI/kUNtbESsOM76QaxnWzNloNXQcPx+CSNxI8XfpiafeXlpvCBbLAPPeouiDU6++1L3w4MDK7w6x6nU6OclrM2QGvj09qUozqWypxTqa2Ik130wr7v4381ut60jTYKju6fh6k8YbweOVpX3c/MhbJQT4635aWjuUSlO3/VrMFWYWYIid54d12DDz5HJWAzBm4iWLYfjMd4HfYxkK/WyTTUffGXOIqLlO83wlnjb8b96MDWgijsPQ7qnTahA5UBYJMywwVrn/4r1uQhfU1zG11qNs4ZXyieAsN/zs7JXVoX2cfZR3mVk9oNYCR2hqdv+tLHYRDnQHzuj88eWeEzYuSoz/lIax3hAEsL/fueDQnbJEiTKOq6oCXAB7QOFl4jKN3kpCsTEEt5H06eT0MHkwQwGHk3vtGnNQQBjQxYT2/v0hfh/Ebjsk0A29+Wao8ySp5AfyqzDnGuRUG7yR6PES+tQzm8+wsu1kxKNl4xUpVZHOmCGcpBLCPFkXlc7CWNhxiwjJnONogT3hf9pgSgvH9DMwUHJM0tHfd3U2Co91/8urtUPMOS1AwkAI1V3ITpbx7N8+g9GfJAlBXiWQPgg/sgqstfIFu44NCj75FY6dRDeWT+NcrUsZIKO16u4fAeuShcOIbjIryZWXm49OjJvxYmtePw5iszgbcIWQp/z+qRArXmmVQIc4gW1sDhMl0DdPPYWzaSA+1+KcBs5LC4oOluj35f824TZeOBhMf9C+zj7KSNtgsH6Ou89yWn+uKGxZ0Yy1OZgNSeKX3c16DTMZFhQ90hDYM95IeVs2i7CTgFUcDNAgFrOpx9pGZeIz5VqbQglv2PwUOP6Seg2elF/ldB1WgqMmAlq7vIKmrKrYLHakAYoj5UbVA/YmRMm3dI7478MUwbKAV8tRrULqrKx+ArWu0H8fllGKVERH5ThXU+UdUZvwMeThWntb465Pwzr9I0jJ9TLz0UjOE/BYPnvOFTe8nDzeHH2tdCi9LEk62PtVEOiWj1SUc72Dx6QY6TXn0dffqfdc6ENdpc9oG+7p99BTFpaX+6umpg/DVC3UGJ8Z8woD/EIJ52dHKm1XbwIzlMzBq+BcHjO5Vqo9GeQDxvyJ1dzaZ6UIW1e6TcqVjs5bSX8KUynXOYAF7WJvHW+zONgC7DZypnzJ8TMZkJM+s+LyLK62cWny+UHOyJqKqIiwJOz52PW2gLXmrelBieyJnbf66qNrQpd1JX69yy31413owIjzfEA8MGlCpOUFaj/Tn01z6Kqeskb8N84zH7zC3CWLfLmhxkXfCycvQblmDzeJMRBdHKPBKjUnPqQvocToxJJPyuuZtI6dOlyDQsi/m/6/6FCZYqbv/oMSWZ1JkhUMPvEZSQcgLu269RYe4X9gdheP0jv5rftiKDrn8nZkqRlcW9Er70RZvXa3oCic0A0kfpDRGNo0D1TKhQEkfcRXwMC3yj92cpKquRSTG1cJUokRmRq7ec33HOBTwYW0QProotZkon53BM8z+jLue2JPgPkmUNgOqb8LX9sy1TcVCvxg0of438Xhx19zxR3+kjp883lkCG1oVVGavv9k54U5CxS7K8nLWSVOAOaHgatVRDQHPlT80CK1eobGpeHvyd2jtTLImKfV8uRZprrunRvSl5XnDURk9q8ymhzQVDmaab1WMEKYNMsAXZH/IsXOKUE2t9/a6ptAmtRqa2SKu3jeqlU+fR/MSFWQIkBdPNABzYUJ6Cjg05/2+7kA6RiWuF8Kp6zQc8MgNzTxPblDsO1Wrqi65zLhfIwpZTrbxW300YHx6smu1ezj7KKtDMrN0kdPodn3e+oOKW8ye8YF+DfCpHwmmIklfXlevbnIFJFtPopV/XhUsR0uKb4w9uH0N3jEkV21uKjp3p732WbZGZBvFxZGY8L4846AbAMrAyU17nIYH2R+VdEy5dRni5RVCl8kH5k5Jxfj9P7M8Kc8JTXCrL4O1OEclcZqI/d2gEU2Z3J+CvJcKrmITLPcC4nQn6RVyIPVqPpWGHlb105ZaynDuoGw7iUeDsPCllnVGghZpnJOsGvaV/qcLzL8il7uR/4LpY71uYeku1d7dA/o6LmCcowQL2DjajI2rl5hg/qmFZa7rMUSWmXTC/REI9nX7hpWFZrn7M6usQAN1YZ6WDJt4pxnwuboU51ui/UvyAWvPqdnVbLryzrJWb29K/7UNJTh3eyKomqJN4XNB3eMwQ6u9c1tfoqz7vC6ElZqq0oODRJOIzuPWD2vYOiSKAzQOxDg41kLxF5Zzv5FoG9ZdbvRy8ozzB2AriLOQxyg6itjadDtp7jS8NFA2UctonyV/Wszs7IS/wesckH3uWpGNtRUkwfbSsPcSxR6DqxlnarBb02+opMb1qabknZz9AaHoNxgdJ0aKS/4RvssJratuF0693RDd/6Z43pXMfA7B3S80V/TmrhD7e4T6/+nUWDUidD6ciqGbGfCOaiAnl9Dp2jqBbeKiiTK/uyxbMuAtvz6J4uCYI94ULbv6RdMOchKmxQ6AQAjPj2r/UDVtDIyz2hdbjdjybpqgl5J0HsSglrsYYhlSYPEmn2nNu/p4zUj88VICLl8pbxI7kJVz3+dc+DidQQUDv803VGLK05GlgJMQ9jpdtvhz+WSj2Q8W+sxj7Fl05YE0sT/6utFTHiyAJkBEOKvKmaSF9yPWX2oLN3yis+epDAxCHU2cobpDAAAAKxZwcxFkIKblFY1GAc6nC/WTKkGulmFn7U2EfWB0fFuDrT1Z44gruEMnigxjkNa0pgPLVlM0OxoZtdRvo/YL9nAvNQkKaU8SCot3A4Oq5J/TLfQE1hec3IfjjaKWfwv2v1Kev6f2718V/hIoy+AaaRZTcrcNROFaO8oius5C2Dg64ELX4eWRiPWtV9fcGz7SHf1lms49iCuINaTd5rVAEx/3u5zlyzDe0tUswVQIICAvwEos0I0xmDpjMHT7K90bGJjM/sRrQvMeDOq4Cs0BE5AfWU3qyKcwOkd1eNk7DoArXJq+KTyI0Zd9NW8xRFJzRLj7DzMHlrBS4b12zEuh4l3/qUcOnn19dIEMYH5c5MegA4clTyHXawwo0QPC4ob3sqDOzVdYDwM7+FahT6BLUdkIloQhLkYn5z0gSu86VDT+665mZBu7EamuTX33hsy8y1v2k2pVt3hz4eGm+r0lqriHhH6XNMd2hVPXqm4dT0wg3zZldh0mAyaoF8DzYaIJvdDY+ExrueMqCI//YAthvrP74yvYNIIauW3AQ4dl4+2QYCanckUumdaEUdx4zj/4l2mBZBJBTH/Yu/2kR5OTTqNBPhQjX+2Lo1y0P8OyvG0iheXTWNoQrBIXxMk1aH7w7x74swWycSBB9AAAAADHCaDRXky/c+3SXjMI1nI+pcsLxltsZJ2YMVHADGnibEXnJtEDiCpytvq3KMM9LFB70hQj92m8iCYKgwX5cd+z213ZisizpyTMtGq4sp1Z8xGhfGiE/9CwD9dDdgbeHyXz3GB2q3+K1sa4e/vzrGtt3/z2TBXAG8s9buXJxtuQPQ0pUCAC4VswxQ6BJSmm1Tg4PLmG8Qji43+FOh1CxpdddddptU4OFwEKBVfSBW8uYdlKX0rmgRWhtDAeWHpGO/rMiUxv0BsAzj2IRWjsASeQitHYAk8hFaOwBJ5BzJ5CKz45CK0dgCTyDZLSP7j2IRV3/DFGItdV3YMl3eHP8EFDirbfyaMfFnoIUw1DblXKqc8Mf1r+yl1f/9AovbyW8lgkWSb9woSq1yK4dFS2/IwfsI2Maa157MGOI/wkIiibGESYz2aSGTxRL9hlMW0K+83WZCFod2DJH6uc1BBHCcBsmbuCnVQXx3BG88l0OmTEyOmQh+8F+PNNwdBtF1vjs3CItQVxWkVh9uBtrdFVwZcoYshsfCTpjLenWka84e+Npw159RC09We/lOfHswmy4gQsHOscvMoCFbMCjtiZRev9Z8GPUvodZqNmII41hA7Q/GjwFjo2GaKVEXMRqIfsmd66bGIA8bQ7pkjIgFUN0xdQ10B9CvVqNLQTkYusXbxrDAAA",iS="data:image/webp;base64,UklGRjwXAABXRUJQVlA4WAoAAAAQAAAARwIAzwIAQUxQSIMAAAABH6CmbQMm/On2nDQiIrgFR40kOVKSbJJL0t89SxqbEf2fAN6VIv82msqx9VSSbaeybDmVZrupPPsR/a//9b/+X7IeumY+emg//a//9f/eOt2I/tf/+l//63/9r//1v7+n6zj/SnH00//6X//r/2ZKP0IctBvCoOUQBW2HIGg9xEDLAQBWUDggkhYAAJDpAJ0BKkgC0AI+kUafSz+/oyGnctiz8BIJZ278fJWQFUoxpUtl/pLK55ovku/UnPL/Mx/4fo96R/1ryVOtL5bzo9Fj6dxlmkkeM/rv+E/rX5qdAB7gH+I/gH6n+//nAf//0//P/9QD//+hN/jv///2uC7/ZX///Kl/rfX/00n4B/lv+H/fPt4+nfwD+A/w/4+eID6H+ufjX1/5/oWRAKtEG0F0VJak+nPpCdpw4Buj13k4C1kjCZOXL8OAtZIwtQs/r94fjdG93mDPDqZS8z0z+OgtLY2IrlTi1W+surHTDP3+uACosd5mYAwWjV6vsrxXIP2Bo/3LrXCpyWpwa0wNITXzBTnDFGFqD7hn7E6/aBkcWIMm2zE5w/gbkaYRQaSh8H5EymLCSwq+lC//898a/3h6QX8vRC6/338yCVmHr981PiXxpg4/PybgVjwouv1kZOsUwcpKPzGZMCpKbwHSYeXuClh9YaSB0mHLd9k4yuy2osQoZohJYXASraiD8heGm+mMv0VWaWUlrph3wCkNoidh+kqFDKMREtV+F1VCoBXnUJ2AHJH8lJYSCspZxYSD4QOx3KjTQlhRJ1JCcmTjQ0ZMu8XAnbH0RAhGiDDU2T3sHY+covrIDJh2js/sEBkpvbzuq/WlZpnBZ8HTHSWSBgqq2St6iZLVX09/Q++6nvB1xRTfoJnCNWP7aqop8iczRKrfCBq7eGQZCCDY3BYvdEtedbfqorrKSuo8gXvn1JCGYJK5ISASsO0J8IMbHxUnV9NBF3c6Zzqc5DaNQSneDNMKhhxnRB74Jti6UJXJNqnsqiId4PDBWviB5FiTWutH1zgXWksl1rptqYfS0KCerBel/FTxrZwb8eBGHNUa49ad0W+2bJgktfB//AwVVIdtvvYxNN32lLsSU3jvAoPFHZ37PDINMm1wlDCqKrCtVC7w1BpEwMEMPjAbXvu4hIKwz7tBeDLagH/wUCxtWQbJW4dkDSLg5pUL4Ra6eobSKJLTeOjVl2vQXah4nz6cU4KAZCBFesYW7GV46cJzELliD3ugM7iBqaZG2m5OjRhK6fPl3XqNO/wIINEHVAK3/fgV+Qx2EliZxN5YsbXeNPCYdXZfbTkGExPJAEa4qcnJhFNT33cQg/FeoxXsFNK7erjwrtpXyiuG3kIcms1KlOkZYBCc6gWwYpShPsl0N6NRIQMJU098R4ae/Arbgehoy3yllDJ8K9KkPSsJlazsHI+zWjk/zgTy8r1h2VFmlg6EDsueryt0cH/XkIdkTU4KM7Byotac4yyZaTy2/anOsqI9ZUbZ7ERLlSe+5t6m2kk30t/kGoTSRd+26+UtlO/CBkGTr03AUBsBecjTlAmov520OT+qQfzBbJiVeUmz9ZYI3iWs4EhmyJa3lmV8NLElSNLT3e+FJvoj1dHjeG9bLQHPd37oabBuDBZD9+MOAxoDWILNUiliZwM2W74Uuj59cP6bUEIQNxbjvhVuGQThr9VpPrI78ztAzhlT3YOyhrPf9DJYkktSAkHQrPPIQMgxU1x1xjRIndXbMBV3JzJ1CzsCTFR85Odd/58CEDBWUVEhAwkDRGUwF0DvSYk1uIGWPHtfz/58Dq6mUZBieeQgZC0CKunYKS9VlTVnYO0K/HprMia0dkHFamHZUVlJW5kivEP9Uaq1FuSwfqxTGpYzgeSdRaDStzoLP285ykrcMgyECacrAaUx+aaFqlB3V2UJOYX0Jej2JUldPc5Rux4TeQgYuMhAwSAeuFUoemY0gbwjuoqKIq2/qj/J6JEuYo7gXws+wmwTnvgrIURr4ADsN4N5FhdIAE53oZA8lHc+c8rxEc6mxAtDBVeqtwx4h0toUmtR4N5aAuy29uIG4QFfhAIizmwQISRICNwzDIXn1DeZwI+QCnXo4Me7ub5ZN/TqSQb7A8h69OfN+ltTEMDHgHndm3US/ZeVQHttjQWFL0NzFzfUx+qaHRqRWcpAJkdcKtZLtS9xTOpp85fEXUoYg1HgIOmCA6Okuwd/K+af+j5FLKiwgG6znwR/3a4fLXHoa0M1sGeyxCrSeoZjWdL7rV3HkTgwaKEprBMXlJW4aoZoPDGaZOv+I6Qu6Ruew3GQh7OoJHkc4MkLU0LkIGQZfmmGfs2zyFH8hAZapxNAsQaOxCc6gB9hj24NlJa6YkE4IVh3+tdQgfYhqcSpV7AZfbGUzxWTApfdxCNZeQmtWFYY3tIQebfFxu6HawywIwZO8dTY3nJuCSW4v6RzEUeqq5k64d0edHwCkhinyQgdmhKIWI6XWuFXMbO664kt0Vq5cVWSKnUIcTIb3XCpyWp1CzNY1+23kavPNkta9C44DziNst2K4aBRdb95g3CerXXLWF6pQZGa6Psq8P7HUqj2cAnyMyzvmqssE/N04Xq4yQGKMLBrS/zqsV2HGi4MyAMWQvh4lqiRZLQ26YFq/cutcKnJcLUH7A0hO01sBaqsY6IoqdQfsDRctz4+ohNz/EjkErQ+R65AAP7Hi66i1vHHDLQtU5nUCbgBBWKbrunWfeFAA86TMibJY7hNSPPbTHfivOW00B6HZzwbWXKoikCsMYnxeuJjbA25nSq4uAk0jxFUAWi2RXsE8Vq7YbkZ89lA72ZdDNSIdCWhgI7bPAAPQXVnhIdTBd0XtGw50MhJddlSZmLPPYR99t99Z9S1Djw3mvpwDb7gPLRILtLhk3QygV5qJbB7HEOX92FESJZ2kSzp3tT7/CNuy70Ii/mhZkszqe29VvUpbUWABEBjqw4cPsGaJEOjOFfYSOL09GdyKDE5KLKj5hB/FXk1V6Mh2QwLAJCmsZ/SmhwU2BF9Xwuv2HIpSGbseizVUaumWjjsv4v9iDuATjtSHFBPdzzqV8ZCOdf+Acgg1YgWXjY76klfmGfR6jDrS48PFoehQ9nk9Nd2X6GID7c2jDwiVjY9VQDMV6Y+bDnfuinv7nfAUmd1np2v2P/LM1waFhwdiMF7cLLx/hZS8lzhwkaBUl7pXeJUJQCcfTafpmcoFvV9W9yHWVtEMlkCIsraHQPUzNaf/o4UsU7273vDm7uSFHv5u3e4fiaU2iug/4Wb/iz8r//uiLR/3/QqQ++5TqdAdeBg93gdhGE4T+JfXRXeio1k4U4t2F90Qfd/h715+m5mklwehN3iEpz2m//NddQdAEAMhFsxZc+LGBYNCoc9SeuARsHHOD/ldDYR+dA+/ZYaZj8+r1kZMegZPTZRYJEPNHIykqfahKsCqt68IJUJrTb+957iBhw0TmtDjDDCIsWFcNY+dSHlxtJ020JsbZqHFcs59rWvK60jQMo0iWjjtxoRpTn+9+NYOhW2QBQO6IJtVDm4/mcBLqEmeC2ViyrTvd5RXd8a3pQ3X5pQJUWqAg6QA2FmI/m+MQGO628Drhab/taI3//4lO//8P3/b0S/3ODbI6gpif56RuaJtGd2liyp78gH/PiUClWgA9pwPFcYM4tIQB6IlVeOwKQIuKmVGClrx+bzA8Yw1VHLR87ZicveH4MaRKiivwLpINnuDFS0F7OLn4URVAgANQqhDUTLzWLw2Z3hOQts/G+B/SY4wxFxP/K4OvvuJx6m7hhevaHK4otX29mDuxUZaexB5GIxa49YPp3JozMNHCTZ2gifQWwSBAaTwtKQUFuztP88ltG7WzmpKFsRtpVGliiy3wxTlE9iQ2KmVl9rv60K66ItYB1gnnddsGxCglVTMItvk/tzUpsaylqq8o93yb3QIF8x53pMLOsVkI1jd7ue6nGAqRLjJGtvD5Czq/uoJgExgTziZvFZAAQSROXAB0svh/t2/Y5Mr+6lebTivTZbl4mKJdtXN/9Kx4Rl2SUePm0FLSJAxZz3UX/7Fcw9cF4Ug0i+qjVFve/u5tQSrNoPww801CzgsmzxrpFhy/suo7ImvzHwLEAAX3gLejoaAM5Xz8EtWn4Xmlbt3qjV3uS6uxiNV6RqwPwfgnAuAPh+/UGkWWgfmS3o0JkbaI8g/z8/IhMvJmDtO2iG44kp0CVkH7yv8mGOPiZV64gdSvuT3usrU3obX6Nv9TUVCKoCjcn+KuL/SrtbFg7A2olz/eVGWrlr3IpEI4CK75NUNtiA9FJ14GViV1t5fX6RQlYhp7DXYhlAIjRCNh0/X9qBj4t+3ygniiiAeaqFPMq3GfIUUaGklKyT8vufYWX2TKvIj+xV/OFRmgu5Go3MA9KhdnwgWhl/leMu3ykAbNnGTQLs2d7h7i+YXt+E+DlWZQ05KOOs2wjPaK+kv3RXGfMLpFSC2G2KKRRYx3QjPt68nwPsOKGA9aAFpF+wh/HC0K/e1lhLu+xY36zaZm7rzKV4V8cE/pHekLPJKo4SxNxgixz9pdBH4h/6Akup/tS8iygHx9ASu7t8ZY9zAFFVKceNWJhBhiNl63NbBgstUyNZZzv9484WA20GD6WQv+ZOAif3Rtn2QKWGKuGHiq97+7m1Tyl6rGg4yY8t2fQ2oBxAIpVlQGj9A9MA+BbXEhBl7uYXzstu30XoamjY//q3Dmp0kxiMiqahMY3JHVVlwT1mEHt5CDxvHwFUfX8N//XlzUC7NcyRACADCNj/Lr4ALt/DoPuKjjQtnWkxHT1QGKkM6X5RxeyK/Fm79nP4iBwcx9oASxAAEuAAAnUoFkbwHYaSS9xYavfVO1eefAr0w5CQMAaaASvzLVgRq3yuc+8JRLrRGqh/qJbMvFPiRJzrGzCnIPetUi9MVFg6x0h6mjkAAAABL7Mi9hLBQ+p/fcPJQzInxMlxiobnQFwYcDHY38BEOYOG+3rKJ+8wGdcf+/vCdXfOWcnqBJgvf7jNsFkUu2hjvJwKAX8BK/s3lwc+iQELgIxWrcaIGEqTxu0Nf+6N0mivMSe6yjtvWWtOE5P1eFQVSNBhe6DmtsN167ImHzgHiDSQpIUBVlBQr91k2Y0zH1nRAAZcAAD/T3qMQugSMNTQqUnNkP2rVJkjw6Kk7cPSvXCFaz5uWKEU3JeLVpn/Besvz1x7QwN04xFlF+Gsa0586x2vA/XvAxWwbTTzuyyl+t0RHEIAB/6Eh6BvKWRyChLv/Sy257CClDFdfiCsawXFt2LgSzxsMsQRW8bGrA39736R/lP3N9NZvGHmmnhb4HQt8M0hKBur16xLR4e86BYA6EAN+u2e2s/KR/p/tS11z3nOxk3fZivDNCmNP3ateuZ7WfgsMHOAeINJCkhQFfvnPygk+mS/o8SQeCywCPyghsc6Fq2aBndmi/jnBpn7j/x/DfhY7JfCFc+MlurIZGRSaTn3nAm0L3+HNavoU8i/sxFVzV9fXAe4iNK2+1qKdLe6n5lXsWhyAbXmi1AABA7uxlfxP8Tvk07cx6lfuBEyVKLlp7TPOq+vyy58Kv+fjb7luTmEWcXXce0yVuhlmFAAAFq4ixXA7Qt0e4b2uYXZ20O5CDD3m8McHc1JDKBeQVUS3p+ZXS8d4hCCisAkQ6dzqtikTu4qzcSBPBSpAacASUeIFpOjFaH5gggNEvuEcw+wrcvYHyfKvu4vo3C/KQpuWbKMscgq4/ivg8UNHaExlv8UeMXZisV++iM1NDfzzUNxgmIeJnt+4u/wgMyRhXuY/JvC+uUl8g2D1TNWDgwp/V+YOfMv4pQVRUWiZEhOyNhrVLhUzhiSjxZxLZizbaQyjyqvKmURFkcrAMASBJ0KMCyQJUMhmZwixlb7RHl1hWoPuaAdnZpNpc4W19/Y6kB4OIPN2gkSkQxgo+KCwIDo0L9U2CNZ/AKb3+kAJ50QBdxICADU+Y7xVwQq/yUSDQyQ5Nsnofp6s4mB+1KKt5tL3+7KwAgAtvNjNqzafUXGOSwU/pXoIsKEYR9lryj7oecjxOtflAKHsIe2tO/N10IVJJb5ozDLvNYziOk6bpdBbAb7T87zD9vrpYcmfOk9cARHg4NghJRPT4uPulUlClzvxZskvALLsmqSCVjh+Ov+gJixLCSS4N58Kh4Bn8yfUvsutJWBF16nIKYH9cV2CvqCbxShUMLGLH4/zVmVNEjYFrJzWUAc4RfK3Yjcklb76TNGl8zEAZwaB6XIJngi9wLYyW+laMJ4dFS2Hc5cRMhUTu/rf9ZsgcseVjqEeWmkQPA54+7leEujia/HbmVnyCwVAYrC4wcbn/BewpnZxwNXGvB+MXYPGT971V1aWPBk/shrtzf1AvWXMzgTs5jtBnKAUHHRydqfPV2mLmvOpR4V44MIhr45SNrpgSLyvR2gb45UtYOjxtYCIkkFKZZmcsxpVlfkAtr2x5TQbwlmbleZbZeb/j09f39tV1ZljrogawHac4oIgAXrKtWA+djzE3r1JNo14eJ3b1gBistgB1bQmUnzEdZKFy5Le5u04HtoTt7sdrPI2VUwMY4O5jRFwey6EAAzpGlPYvxXP0k5CAq/KzRwi6hBRUCQ9wWcDNqqsYxCTmJ2NXS6labbneXzm7iol2VQ3RXvG3/FmdrcVvWivOfhzWpbE9GiGza+yvdyRqveazsuw59YQK+mS+RHHZxsDWloAAMkhaIFeb/gb+ru0Oyi4YeImNzecGyXDF9Owgiv+zTrESADif/BrdNR9Ql6v7XAllJilw7mSfS07KyVapGdIkHZQkBEPTYWTPCsWWmIMGOFpgSiNkHhrg6uAYsIjynzj08Fkhk0DEiYIpN0sO+WV0Nx7PbQuiSdntYPKj8z4HlBtX0KLeNffx9q9riYghg8cUjBZsQfUPtj4k5pCVMsK0wjdfMCz523Xngn83ccWGcNNnlgh28RCDiXVHIAEo3gD2VymPXW5WrFgUeLctpgqs5I85gY69x1fxUBk8i00sS0Be8HULK2j7DQc6qtM57+bT6PK4JZTGUlVyAF+7/mj/eOLT7WftkzoLysmZE8zxlwe0fj7S6xZAYJ8c/khDoHtOVGmWt8Tg3bYCZjW6avANp6oHMPwNW6UlqpIsLBocIJ5juAqDL5k6JLyQU+fNtgokpmd2R0499PKx2KjyxsXEjN2sMIXzGFrb5skE+xcx5HRFFkI/SIOFFx62utLyeeYwrcA0QCJ96htX/223ep8e3f4UBJMC0T6SFDg9p8Yw3tIF7rwRSWLh/unNEFHsMnfbExUjXJrmzoD1y2qHysPVEYp3f4+Igz3DDhOiGQzMrP4U7dSRdHu87ECefax/BzLV9ebRktrPEMF8rsSGdpzUylngoI7ysZ8pQ2rVsr7ck5TNzV6XAzd02OpNrj0l99OPLa4FREmK1AwEEXvym3iseCXrmEbHepey3MPiSkpKCrbsZ/waaLg0ad4IBpg+daWrO832Gqp/MkLVUOmlgjkLIpL1dY7W103UCs/scAgUfGbWw/mYB4hS/9w1JCwLzmsbJxc8E+mim57uRQgVIx7h9JRxlS4uYRJzeqci5tXuaZcoNyQylhZtkp69Fy+Tny8T+8g4KLysFJAYh9Uqx3V6RptLSQ0j5OABZl1NOgWTuqmAxs78Dt8qvFPhcfL1fqoBNoosYhAS62rMUbuTZ53oTswRgiOjAa08i7aXPltb7+WLHJZpI0bP6ULb/hjfoZQ/Bdykfhvh08WZXRng8CHBZEfaOhcdwAXJvzzHbrrgCB11m0vyYkRB593l9BowngELTdI0mFm+qWXnDp4NhZJTrpSF8QuNYmPofluBXJ6kDAvxG8Lqco4ecT2GykY78nk+86boeLgmRNf46fQn/F5cfvi/jNtr++vvyEAA==",iz={bookWrapper:"bookWrapper-TEaT2a",bookContainer:"bookContainer-ozXOuS",outSide:"outSide-tdPk6N",titleIcon:"titleIcon-FuigMg",titleContent:"titleContent-HOFf9S",insideIcon:"insideIcon-mvWhHG",insideHalfIcon:"insideHalfIcon-oGVWWK",inside:"inside-PZ2fCX",page:"page-1nUQUw",messageFormattedString:"messageFormattedString-MAym7w",textArea:"textArea-CTZEzD",controlPrev:"controlPrev-lG4k_N",controlNext:"controlNext-KXyao4",actions:"actions-Puvqtl",pageAnimation:"pageAnimation-A9GdFI",titleAnimation:"titleAnimation-DE4b6h",titleContentAnimation:"titleContentAnimation-VkNFpG",insideAnimation:"insideAnimation-ztZegY",hidden:"hidden-W0KfLq",titleAnimationReverse:"titleAnimationReverse-FRokqy",titleContentAnimationReverse:"titleContentAnimationReverse-UxVYyT",insideAnimationReverse:"insideAnimationReverse-wRiH6k",pageAnimationReverse:"pageAnimationReverse-I_oYqS",pageButtonAnimationReverse:"pageButtonAnimationReverse-lx7O3V"},react_Book=function(e){var t=e.textPages,n=e.editable,r=e.onSign,a=e.onEdit,o=e.onClose,i=e.author,s=(0,ek._)((0,tD.useState)(t),2),l=s[0],c=s[1],u=(0,ek._)((0,tD.useState)(0),2),d=u[0],w=u[1],p=(0,ek._)((0,tD.useState)(window.innerWidth<972),2),h=p[0],M=p[1],g=(0,ek._)((0,tD.useState)(window.innerWidth<972?iS:iT),2),m=g[0],v=g[1],y=(0,ek._)((0,tD.useState)(0),2),A=y[0],b=y[1],_=(0,ek._)((0,tD.useState)(0),2),L=_[0],C=_[1],j=(0,ek._)((0,tD.useState)(0),2),D=j[0],x=j[1],k=(0,ek._)((0,tD.useState)(!1),2),N=k[0],T=k[1],S=(0,tD.useRef)([]),z=(0,tD.useRef)(null),q=(0,tD.useCallback)(function(){var e=window.innerWidth<972;M(e),v(e?iS:iT)},[]);(0,tD.useEffect)(function(){return q(),window.addEventListener("resize",q),function(){return window.removeEventListener("resize",q)}},[q]),(0,tD.useEffect)(function(){var e=d*(h?1:2);S.current[e]&&S.current[e].focus()},[d,h]),(0,tD.useEffect)(function(){N&&setTimeout(function(){z.current.focus()},300)},[N]);var handlePageChange=function(e){w(function(t){return Math.min(Math.max(t+e,0),Math.ceil(l.length/(h?1:2))-1)})},updatePage=function(e,t){c(function(n){var r=(0,eE._)(n);return r[e]=t,r})},handleTextChange=function(e,t){var n,r,a=e.target.value;updatePage(t,a);var o=t+1;a.length>=e.target.maxLength?(o0&&"deleteContentBackward"===e.nativeEvent.inputType&&(w(Math.floor((t-1)/(h?1:2))),null==(r=S.current[t-1])||r.focus())};(0,tD.useEffect)(function(){var e,t=d*(h?1:2);null==(e=S.current[t])||e.focus()},[d,h]);var handlePaste=function(e,t){var n=e.clipboardData.getData("text"),r=(0,eE._)(l),a=r[t],o=e.currentTarget.selectionStart||0,i=e.currentTarget.selectionEnd||0,s=a.slice(0,o)+n+a.slice(i);if(r[t]=s,c(r),s.length>e.currentTarget.maxLength){var u=s.slice(e.currentTarget.maxLength);r[t]=s.slice(0,e.currentTarget.maxLength),c(r);var d=t+1;d=l.length,children:" "})]}),(0,tC.jsx)("div",{className:"".concat(iz.outSide," ").concat(1===D?iz.titleContentAnimation:2===D?iz.titleContentAnimationReverse:""),children:n?(0,tC.jsxs)("div",{className:"".concat(iz.titleContent),children:[(0,tC.jsx)(tV.Z,{message:"Enter Book Title: "}),(0,tC.jsxs)("form",{onSubmit:function(e){e.preventDefault(),E()},children:[(0,tC.jsx)("input",{ref:z,className:""}),(0,tC.jsx)("button",{type:"submit",style:{visibility:"hidden",height:0,width:0}})]}),(0,tC.jsx)(tV.Z,{message:"by ".concat(i)}),(0,tC.jsx)("br",{}),(0,tC.jsx)(tV.Z,{message:"Note! When you sign the book, it will no longer be editable."})]}):(0,tC.jsxs)("div",{className:"".concat(iz.titleContent),children:[(0,tC.jsx)(tV.Z,{message:"Book Name Here"}),(0,tC.jsx)("br",{}),(0,tC.jsx)(tV.Z,{message:"by: Author"})]})})]}),(0,tC.jsxs)("div",{className:iz.actions,children:[n&&(0,tC.jsx)(nI.Z,{onClick:E,children:N?"Sign and Save":"Sign"}),n&&!N&&(0,tC.jsx)(nI.Z,{onClick:E,children:"Sign"}),n&&!N&&(0,tC.jsx)(nI.Z,{onClick:I,children:"Edit"}),(0,tC.jsx)(nI.Z,{onClick:P,children:N?"Cancel":"Close"})]})]})};function BookProvider(){var e=(0,tN.uM)("book"),t=(0,ek._)((0,tD.useState)(null),2),n=t[0],r=t[1],signEditBook=function(e,t){if((0,eZ.Uo)(bot.version)<(0,eZ.Uo)("1.17.2")){void 0===t?bot.writeBook(bot.inventory.hotbarStart+bot.quickBarSlot,e):bot.signBook(bot.inventory.hotbarStart+bot.quickBarSlot,e,t,bot.username),(0,e5.kJ)();return}var n=bot.quickBarSlot;void 0===t?bot._client.write("edit_book",{hand:n,pages:e}):bot._client.write("edit_book",{hand:n,pages:e,title:t}),(0,e5.kJ)()};return((0,tD.useEffect)(function(){var openBookWithNbt=function(){(null==(e=e5.M.at(-1))?void 0:e.reactType)==="book"&&(0,e5.kJ)();var e,t,n,a=bot.inventory.slots[bot.inventory.hotbarStart+bot.quickBarSlot];if(null==a?void 0:a.nbt){var o=oa().simplify(a.nbt);o.pages&&(r({pages:o.pages.map(function(e){var t;return"written_book"!==a.name?e:null!=(t=on().simplify(on().parse(e)).text)?t:e}),title:null!=(t=o.title)?t:"",author:null!=(n=o.author)?n:"",isEditable:"writable_book"===a.name}),(0,e5.K4)({reactType:"book"}))}};customEvents.on("activateItem",function(e){if("writable_book"===e.name){var t;(null==(t=e.nbt)?void 0:t.value.pages)?openBookWithNbt():(r({pages:[],title:"",author:"",isEditable:!0}),(0,e5.K4)({reactType:"book"}))}}),bot._client.on("open_book",openBookWithNbt)},[]),(0,tD.useEffect)(function(){e||r(null)},[e]),n)?(0,tC.jsx)(react_Book,{textPages:n.pages,editable:n.isEditable,onSign:function(e,t){return signEditBook(e,t)},onEdit:function(e){return signEditBook(e,void 0)},onClose:function(){(0,e5.kJ)()},author:bot.username}):null}var iq=["pink","blue","red","green","yellow","purple","white"],iE=[0,6,10,12,20];let iI=(0,nO.K)(function(e){var t=e.bar,n=(0,ek._)((0,tD.useState)({}),2),r=n[0],a=n[1],o=(0,ek._)((0,tD.useState)({}),2),i=o[0],s=o[1],l=(0,ek._)((0,tD.useState)({}),2),c=l[0],u=l[1],d=(0,ek._)((0,tD.useState)({}),2),w=d[0],p=d[1],h=(0,ek._)((0,tD.useState)({}),2),M=h[0],g=h[1];return(0,tD.useEffect)(function(){var e;a(null!=(e=t._title)?e:t.title),s(function(e){return(0,eD._)((0,ej._)({},e),{backgroundPositionY:"-".concat(10*iq.indexOf(t._color),"px")})}),u(function(e){return(0,eD._)((0,ej._)({},e),{width:"".concat(100*t._health,"%"),backgroundPositionY:"-".concat(10*iq.indexOf(t._color)+5,"px")})}),p(function(e){return(0,eD._)((0,ej._)({},e),{backgroundPositionY:"-".concat(10*iE.indexOf(t._dividers)+70,"px")})}),g(function(e){return(0,eD._)((0,ej._)({},e),{width:"".concat(100*t._health,"%"),backgroundPositionY:"-".concat(10*iE.indexOf(t._dividers)+75,"px")})})},[t]),(0,tC.jsxs)("div",{className:"bossbar-container",children:[(0,tC.jsx)("div",{className:"bossbar-title",children:(0,tC.jsx)(tV.Z,{message:r})}),(0,tC.jsxs)("div",{className:"bossbar",style:i,children:[(0,tC.jsx)("div",{className:"fill",style:c}),(0,tC.jsx)("div",{className:"fill",style:w}),(0,tC.jsx)("div",{className:"fill",style:M})]})]})},"bossBarOverlay");function BossBarOverlayProvider(){var e=(0,tJ.R)(e5.N_).currentTouch,t=(0,ek._)((0,tD.useState)(new Map),2),n=t[0],r=t[1],addBossBar=function(e){r(function(t){return new Map(t.set(e.entityUUID,(0,eD._)((0,ej._)({},e),{lastUpdated:Date.now()})))})},removeBossBar=function(e){r(function(t){var n=new Map(t);return n.delete(e.entityUUID),n})};return(0,tD.useEffect)(function(){bot.on("bossBarCreated",function(e){addBossBar(e)}),bot.on("bossBarUpdated",function(e){e&&addBossBar(e)}),bot.on("bossBarDeleted",function(e){e&&removeBossBar(e)})},[]),(0,tC.jsx)("div",{className:"bossBars ".concat(e?"mobile":""),id:"bossBars",children:(0,eE._)(n.values()).map(function(e){return(0,tC.jsx)(iI,{bar:e},"".concat(e.entityUUID,"-").concat(e.lastUpdated))})})}let iP={root:"root-FJmcB2",header:"header-Ix2S76",statsRow:"statsRow-shytw2",searchBar:"searchBar-Cmb3Xu",content:"content-hDiNMy",verticalContent:"verticalContent-XZ5gwH",modList:"modList-ADWwNJ",sidebar:"sidebar-UQ__eQ",modInfo:"modInfo-S_rGad",modInfoTitle:"modInfoTitle-UEbS6D",modInfoText:"modInfoText-Ir1Jnc",modActions:"modActions-nnN4Dq",modRow:"modRow-uBWc0w",modRowTitle:"modRowTitle-wMBzQF",modRowInfo:"modRowInfo-o12SaU",repoHeader:"repoHeader-JeRvxn",repoContent:"repoContent-SI7GNl",modErrorList:"modErrorList-eFLdFJ",fieldEditorTextarea:"fieldEditorTextarea-RKqvDd"};var ModListItem=function(e){var t=e.mod,n=e.onClick,r=e.hasError;return(0,tC.jsxs)("div",{className:iP.modRow,onClick:n,"data-enabled":t.installed?"":t.activated,"data-has-error":r,children:[(0,tC.jsxs)("div",{className:iP.modRowTitle,children:[t.name,t.installedVersion&&t.installedVersion!==t.version&&(0,tC.jsx)(nY.Z,{iconName:nY.K["arrow-up-box"],styles:{fontSize:14,marginLeft:3}})]}),(0,tC.jsxs)("div",{className:iP.modRowInfo,children:[t.description,t.author&&" • By ".concat(t.author),t.version&&" • v".concat(t.version),t.serverPlugin&&" • World plugin"]})]})},ModSidebar=function(e){var t,n,r,a,o,i,s,l=e.mod,c=(0,tJ.R)(rE),u=(0,ek._)((0,tD.useState)(null),2),d=u[0],w=u[1],p=(t=(0,eC._)(function(e,t,n){var r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e()];case 1:return a.sent(),null==n||n.end(),[3,3];case 2:return console.error(r=a.sent()),null==n||n.end(),(0,tE.c0)(t,r.message,!0),[3,3];case 3:return[2]}})}),function(e,n,r){return t.apply(this,arguments)});if(!l)return(0,tC.jsx)("div",{className:iP.modInfoText,children:"Select a mod to view details"});var h=l.installed?(n=l.installed,getAllModsModifiableFields().filter(function(e){return n[e.field]})):[],M=(r=(0,eC._)(function(e){var t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:if(!d)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),l[d.name]=e,l.wasModifiedLocally=!0,[4,saveClientModData(l)];case 2:return n.sent(),w(null),(0,tE.c0)("Success","Contents saved successfully"),[3,4];case 3:return t=n.sent(),(0,tE.c0)("Error","Failed to save contents: "+t.message,!0),[3,4];case 4:return[2]}})}),function(e){return r.apply(this,arguments)});return d?(0,tC.jsx)(EditingCodeWindow,{contents:d.content,language:d.language,onClose:function(e){if(void 0===e)return void w(null);M(e)}}):(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsxs)("div",{className:iP.modInfo,children:[(0,tC.jsxs)("div",{className:iP.modInfoTitle,children:[l.name," ",(null==(o=l.installed)?void 0:o.wasModifiedLocally)?"(modified)":""]}),(0,tC.jsx)("div",{className:iP.modInfoText,children:l.description}),(0,tC.jsxs)("div",{className:iP.modInfoText,children:[l.author&&"Author: ".concat(l.author,"\n"),l.version&&"Version: ".concat(l.version,"\n"),l.installedVersion&&l.installedVersion!==l.version&&"Installed version: ".concat(l.installedVersion,"\n"),l.section&&"Section: ".concat(l.section,"\n")]}),(null==(i=c[l.name])?void 0:i.length)>0&&(0,tC.jsx)("div",{className:iP.modErrorList,children:(0,tC.jsx)("ul",{children:c[l.name].map(function(e,t){return(0,tC.jsx)("li",{children:e},t)})})})]}),(0,tC.jsxs)("div",{className:iP.modActions,children:[l.installed?(0,tC.jsxs)(tC.Fragment,{children:[l.activated?(0,tC.jsx)(nI.Z,{onClick:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,p((0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,rJ(l.name,!1)]})}),"Failed to disable mod:")]})}),icon:nY.K["remove-box"],title:"Disable"}):(0,tC.jsx)(nI.Z,{onClick:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,p((0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,rJ(l.name,!0)]})}),"Failed to enable mod:")]})}),icon:nY.K["add-box"],title:"Enable",disabled:!l.canBeActivated}),(0,tC.jsx)(nI.Z,{onClick:(0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,p((0,eC._)(function(){return(0,eT.Jh)(this,function(e){return[2,rW(l.name)]})}),"Failed to uninstall mod:")]})}),icon:nY.K.trash,title:"Delete"}),l.installedVersion&&l.installedVersion!==l.version&&(0,tC.jsx)(nI.Z,{onClick:(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:if(!l.repo)return[2];return e=(0,tF.gO)("".concat(l.name," updated and activated")),[4,p((0,eC._)(function(){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,rF(l.repo,l.name,e)];case 1:return t.sent(),[2]}})}),"Failed to update mod:",e)];case 1:return t.sent(),[2]}})}),icon:nY.K["arrow-up-box"],title:"Update"}),l.serverPlugin&&(0,tC.jsx)(nI.Z,{onClick:(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){return(e=new URL(window.location.href)).searchParams.set("sp","1"),e.searchParams.set("serverPlugin",l.name),(0,na.pz)(e.toString()),[2]})}),icon:nY.K.play,title:"Try in blank world"})]}):(0,tC.jsx)(nI.Z,{onClick:(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:if(!l.repo)return[2];return e=(0,tF.gO)("".concat(l.name," installed and enabled")),[4,p((0,eC._)(function(){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,rF(l.repo,l.name,e)];case 1:return t.sent(),[2]}})}),"Failed to install & activate mod:",e)];case 1:return t.sent(),[2]}})}),icon:nY.K.download,title:"Install"}),h.length>0&&(0,tC.jsx)(nI.Z,{onClick:(a=(0,eC._)(function(e){var t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:return t=e.shiftKey?getAllModsModifiableFields():h,[4,(0,tL.Pl)("Edit Mod Field",Object.fromEntries(t.map(function(e){return[e.field,{type:"button",label:e.label,onButtonClick:function(){var t;w({name:e.field,content:(null==(t=e.getContent)?void 0:t.call(e))||l.installed[e.field]||"",language:e.language})}}]})),{showConfirm:!1})];case 1:return n.sent(),[2]}})}),function(e){return a.apply(this,arguments)}),icon:nY.K.edit,title:"Edit Mod"})]}),(null==(s=window.loadedMods)?void 0:s[l.name])&&l.actionsMain&&(0,tC.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:3},children:["Actions:",Object.entries(l.actionsMain).map(function(e){var t=(0,ek._)(e,2),n=t[0];return t[1],(0,tC.jsx)("div",{onClick:function(){r0(l.name,"main",n)},children:n},n)})]})]})},EditingCodeWindow=function(e){var t=e.contents,n=(e.language,e.onClose),r=(0,tD.useRef)(null);return(0,tD.useEffect)(function(){var handleKeyDown=function(e){"Escape"===e.key&&(e.preventDefault(),e.stopImmediatePropagation())};return window.addEventListener("keydown",handleKeyDown,{capture:!0}),function(){return window.removeEventListener("keydown",handleKeyDown,{capture:!0})}},[]),(0,tC.jsx)(tk.Z,{title:"Editing code",children:(0,tC.jsxs)("div",{className:"",children:[(0,tC.jsx)("textarea",{ref:r,className:iP.fieldEditorTextarea,defaultValue:t}),(0,tC.jsx)(nI.Z,{style:{position:"absolute",bottom:10,left:10,backgroundColor:"red"},onClick:function(){return n(void 0)},icon:nY.K.close,title:"Cancel"}),(0,tC.jsx)(nI.Z,{style:{position:"absolute",bottom:10,right:10,backgroundColor:"#4CAF50"},onClick:function(){var e;return n(null==(e=r.current)?void 0:e.value)},icon:nY.K.check,title:"Save"})]})})};function ModsPage(){var e,t=(0,tN.uM)("mods",!0),n=(0,ek._)((0,tD.useState)(null),2),r=n[0],a=n[1],o=(0,ek._)((0,tD.useState)(""),2),i=o[0],s=o[1],l=(0,ek._)((0,tD.useState)(!1),2),c=l[0],u=l[1],d=(0,ek._)((0,tD.useState)(!1),2),w=d[0],p=d[1],h=(0,ek._)((0,tD.useState)(null),2),M=h[0],g=h[1],m=(0,ek._)((0,tD.useState)({}),2),v=m[0],y=m[1],A=usePassesScaledDimensions(400),b=(0,tJ.R)(rV).counter,_=(0,tJ.R)(rE),L=(0,tD.useMemo)(function(){return r?(0,eE._)(r.repos.flatMap(function(e){return e.packages.map(function(t){return(0,eD._)((0,ej._)({},t),{repo:e.url})})})).concat((0,eE._)(r.modsWithoutRepos)):[]},[r]);if((0,tD.useEffect)(function(){if(t){if(tm.e1.firstModsPageVisit){tm.e1.firstModsPageVisit=!1;var e="zardoy/mcraft-client-mods";rR(e,e)}rG().then(function(e){a(e),null!==M&&M0},e.name)})})]},e.url)}),C.modsWithoutRepos.length>0&&(0,tC.jsxs)("div",{children:[(0,tC.jsxs)("div",{className:iP.repoHeader,children:[(0,tC.jsx)("span",{children:"▼"}),(0,tC.jsx)("span",{children:"Other Mods"}),(0,tC.jsxs)("span",{children:["(",C.modsWithoutRepos.length,")"]})]}),(0,tC.jsx)("div",{className:iP.repoContent,children:C.modsWithoutRepos.map(function(e){var t;return(0,tC.jsx)(ModListItem,{mod:e,onClick:function(){return g(L.findIndex(function(t){return t.name===e.name}))},hasError:(null==(t=_[e.name])?void 0:t.length)>0},e.name)})})]})]}):(0,tC.jsx)("div",{className:iP.modRowInfo,children:"Loading mods..."})}),(0,tC.jsx)("div",{className:iP.sidebar,children:(0,tC.jsx)(ModSidebar,{mod:x})})]})]})]})}function DebugEdges(){var e=(0,ek._)((0,tD.useState)(0),2),t=e[0],n=e[1];if(!useIsHashActive("#edges"))return null;var r={display:"flex",fontSize:18,zIndex:1e4,background:"rgba(0, 0, 255, 0.5)",border:"2px solid red",whiteSpace:"pre"},a="";return 0===t&&(r.position="fixed",r.inset=0,r.height="100%",a="inset 0 fixed 100% height"),1===t&&(r.position="fixed",r.inset=0,a="inset 0 fixed"),2===t&&(r.position="absolute",r.inset=0,a="inset 0 absolute"),3===t&&(r.position="fixed",r.top=0,r.left=0,r.right=0,r.height="100dvh",a="top 0 fixed 100dvh"),4===t&&(r.position="fixed",r.top=0,r.left=0,r.right=0,r.height="100dvh",a="top 0 bottom 0 fixed 100dvh"),(0,tC.jsxs)("div",{style:r,onClick:function(){n((t+1)%5)},children:[t,": ",a,"\n","inner: ",window.innerWidth,"x",window.innerHeight,"\n","outer: ",window.outerWidth,"x",window.outerHeight,"\n"]})}var iY=n(8069);function GameInteractionOverlayInner(e){var t=e.zIndex,n=e.setJoystickOrigin,r=e.updateJoystick,a=(0,tD.useRef)(null);return(0,nP.mk)(function(e){var t,o,i=e.signal;if(a.current){var s=a.current,l=!1,c=0,u={active:null},pointerUpHandler=function(e){var t,r;if(void 0!==e.pointerId){if(e.pointerId===(null==(t=id.pointer)?void 0:t.pointerId))return void n(null);if(e.pointerId===(null==(r=u.active)?void 0:r.id)){if(clearTimeout(o),o=void 0,l){var a,i,s=null==(i=bot)||null==(a=i.heldItem)?void 0:a.name,d=s&&(0,iY.isItemActivatableMobile)(s,loadedData);document.dispatchEvent(new MouseEvent("mouseup",{button:2*!!d})),l=!1}else if(!u.active.activateCameraMove&&Date.now()-u.active.time<500){var w,p,h=null==(p=bot)||null==(w=p.heldItem)?void 0:w.name,M=h&&(0,iY.isItemActivatableMobile)(h,loadedData),g=!!bot.mouse.getCursorState().entity||!!videoCursorInteraction(),m=!g&&M?2:2*!g;document.dispatchEvent(new MouseEvent("mousedown",{button:m})),bot.mouse.update(),document.dispatchEvent(new MouseEvent("mouseup",{button:m}))}c>0&&c--,u.active=null}}};s.addEventListener("pointerdown",function(e){var t,r=e.composedPath()[0];if((0,e5.z7)(!0)&&r===s&&void 0!==e.pointerId){null==(t=(0,e1.z)())||t.onPageInteraction(),++c;var a=(0,ns._i)(e),i=a.clientX,d=a.clientY,w=a.sizeX;if("modern"===e2.YM.touchMovementType&&!id.pointer&&i.5&&bot.setControlState("sprint",!0);return}if(e.pointerId===(null==(a=u.active)?void 0:a.id)){e.preventDefault(),e.stopPropagation(),s&&bot.setControlState("jump",e.pressure>.5);var w=c/i,p=d/i,h=u.active.sourceX/i,M=u.active.sourceY/i,g=u.active.x/i,m=u.active.y/i,v=Math.abs(w-h)>1.1,y=Math.abs(p-M)>1.1;!u.active.activateCameraMove&&(v||y)&&(u.active.activateCameraMove=!0),u.active.activateCameraMove&&clearTimeout(o),onCameraMove({movementX:w-g,movementY:p-m,type:"touchmove",stopPropagation:function(){return e.stopPropagation()}}),u.active.x=c,u.active.y=d}}},{signal:i}),s.addEventListener("pointerup",pointerUpHandler,{signal:i}),s.addEventListener("pointercancel",pointerUpHandler,{signal:i}),s.addEventListener("lostpointercapture",pointerUpHandler,{signal:i}),s.addEventListener("contextmenu",function(e){e.preventDefault()},{signal:i}),window.addEventListener("blur",function(){bot.clearControlStates()},{signal:i});var detectAndResetZoom=function(){var e=window.visualViewport;if(e&&1!==e.scale){var t=document.querySelector("meta[name=viewport]");t&&(t.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"),setTimeout(function(){t.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no")},300))}};null==(t=window.visualViewport)||t.addEventListener("resize",detectAndResetZoom,{signal:i}),detectAndResetZoom(),document.addEventListener("gesturestart",function(e){return e.preventDefault()},{signal:i}),document.addEventListener("gesturechange",function(e){return e.preventDefault()},{signal:i}),document.addEventListener("gestureend",function(e){return e.preventDefault()},{signal:i}),window.debugSimulateZoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=document.querySelector("meta[name=viewport]");r&&r.setAttribute("content","width=device-width, initial-scale=".concat(e,", user-scalable=no, viewport-fit=cover, transform-origin: ").concat(t,"px ").concat(n,"px")),setTimeout(function(){var e;null==(e=window.visualViewport)||e.dispatchEvent(new Event("resize"))},100)},window.debugResetZoom=function(){var e=document.querySelector("meta[name=viewport]");e&&e.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"),setTimeout(function(){var e;null==(e=window.visualViewport)||e.dispatchEvent(new Event("resize"))},100)},i.addEventListener("abort",function(){n(null)})}},[n]),(0,tC.jsx)(OverlayElement,{divRef:a,zIndex:t})}var OverlayElement=function(e){var t=e.divRef,n=e.zIndex;return(0,tC.jsx)("div",{className:"game-interaction-overlay",ref:t,style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:n,touchAction:"none",userSelect:"none"}})};function GameInteractionOverlay(e){var t=e.zIndex,n=(0,tJ.R)(e5.M),r=(0,tJ.R)(e5.N_).currentTouch,a=(0,tD.useRef)(function(e){if(!e){handleMovementStickDelta(),id.pointer=null;return}id.pointer={pointerId:e.pointerId,x:e.clientX,y:e.clientY}}).current,o=(0,tD.useRef)(function(e){handleMovementStickDelta(e)}).current;return n.length>0||!r?null:(0,tC.jsx)(GameInteractionOverlayInner,{zIndex:t,setJoystickOrigin:a,updateJoystick:o})}(0,tt.Ld)(e5.M,function(){if(0===e5.M.length)(0,td.Ee)()&&td.lt.requestPointerLock();else{var e,t;null==(e=(t=document).exitPointerLock)||e.call(t)}});var iO=n(48747);function wildcardToRegExp(e){var t=e.replaceAll(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp("^".concat(t.replaceAll("\\*",".*"),"$"))}function patternToRegExp(e){return e.startsWith("$")?new RegExp("^".concat(e.slice(1),"$")):wildcardToRegExp("*".concat(e,"*"))}function parseFilterString(e){var t=e.split(/,\s*/),n=[],r=[],a=!0,o=!1,i=void 0;try{for(var s,l=t[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;c&&(c.startsWith("!")?r.push(patternToRegExp(c.slice(1))):n.push(patternToRegExp(c)))}}catch(e){o=!0,i=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw i}}return{include:n,exclude:r}}function filterPackets(e,t){if(!t.trim())return{filtered:e,hiddenCount:0};var n=parseFilterString(t),r=n.include,a=n.exclude,o=e.filter(function(e){return!a.some(function(t){return t.test(e.name)})&&(!(r.length>0)||r.some(function(t){return t.test(e.name)}))});return{filtered:o,hiddenCount:e.length-o.length}}var iR={bg:"#1e1e1e",input:"#2d2d2d",text:"#ffffff",textDim:"#888888",client:"#144218",server:"#750200",modified:"#f57f17",border:"#333333",hover:"#404040"};function FilterInput(e){var t=e.value,n=e.onChange,r=e.hiddenCount,a=e.shownCount,o=e.onClearFilter,i=e.clientPacketsAutocomplete,s=e.serverPacketsAutocomplete,l=(0,tD.useRef)(null),c=(0,ek._)((0,tD.useState)(!1),2),u=c[0],d=c[1],w=(0,ek._)((0,tD.useState)(0),2),p=w[0],h=w[1],M=(0,eE._)(i.map(function(e){return{name:e,isClient:!0}})).concat((0,eE._)(s.map(function(e){return{name:e,isClient:!1}}))).sort(function(e,t){return e.name.localeCompare(t.name)}),g=t.split(/,\s*/).pop()||"",m=M.filter(function(e){return e.name.toLowerCase().includes(g.toLowerCase().replace(/^\$/,""))});(0,tD.useEffect)(function(){h(0)},[g]);var acceptSuggestion=function(e){var r,a=t.split(/,\s*/);a[a.length-1]=e,n(a.join(", ")),d(!1),null==(r=l.current)||r.focus()};return(0,tC.jsxs)("div",{children:[(0,tC.jsxs)("div",{style:{position:"relative"},children:[(0,tC.jsx)("input",{ref:l,type:"text",value:t,onChange:function(e){return n(e.target.value)},onFocus:function(){return d(!0)},onBlur:function(){setTimeout(function(){return d(!1)},200)},onKeyDown:function(e){if(!u){"Tab"===e.key&&(e.preventDefault(),d(!0));return}"ArrowDown"===e.key?(e.preventDefault(),h(function(e){return(e+1)%m.length})):"ArrowUp"===e.key?(e.preventDefault(),h(function(e){return(e-1+m.length)%m.length})):"Enter"===e.key&&m.length>0?(e.preventDefault(),acceptSuggestion(m[p].name)):"Escape"===e.key&&(e.preventDefault(),d(!1))},placeholder:"Filter packets (e.g. entity, $block_display, !position)",style:{width:"100%",padding:"8px",border:"1px solid ".concat(iR.border),borderRadius:"4px",background:iR.input,color:iR.text}}),u&&m.length>0&&(0,tC.jsx)("div",{style:{position:"absolute",top:"100%",left:0,right:0,backgroundColor:iR.bg,border:"1px solid ".concat(iR.border),borderRadius:"4px",marginTop:"4px",maxHeight:"200px",overflowY:"auto",zIndex:1},children:m.map(function(e,t){var n=e.name,r=e.isClient;return(0,tC.jsx)("div",{onClick:function(){return acceptSuggestion(n)},style:{padding:"4px 8px",cursor:"pointer",backgroundColor:t===p?iR.hover:iR.bg,color:r?iR.client:iR.server},children:n},n)})})]}),(0,tC.jsxs)("div",{style:{marginTop:"4px",fontSize:"12px",color:iR.textDim,display:"flex",alignItems:"center",gap:"4px"},children:[(0,tC.jsxs)("span",{children:["Showing: ",a]}),(0,tC.jsx)("span",{children:"•"}),(0,tC.jsxs)("span",{children:["Hidden: ",r]}),(0,tC.jsxs)("div",{style:{opacity:+!!t,gap:"4px",display:"flex",alignItems:"center"},children:[(0,tC.jsx)("span",{children:"•"}),(0,tC.jsx)("button",{onClick:o,style:{background:"none",border:"none",padding:0,color:iR.text,cursor:"pointer",textDecoration:"underline"},children:"clear all"})]})]})]})}var iB=n(17581),iU={position:function(e){return"x:".concat(e.x.toFixed(2)," y:").concat(e.y.toFixed(2)," z:").concat(e.z.toFixed(2))},map_chunk:function(e){var t,n,r=null==(t=e.chunkData)?void 0:t.length,a=null==(n=e.blockEntities)?void 0:n.length;return"x:".concat(e.x," z:").concat(e.z," C:").concat(r," E:").concat(a)},default:function(e){return(0,iB.processPacketDataForLogging)(e)}};function formatTimeDiff(e,t){return null===t?"":"+".concat(Math.floor((e-t)/1e3))}var iQ={packetRow:{height:24,padding:"0 8px",fontSize:"12px",display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap",overflow:"hidden",cursor:"pointer",transition:"background-color 0.1s"},expandedPacket:{height:120,padding:"8px",background:iR.input,fontSize:"12px",overflow:"auto",borderBottom:"1px solid ".concat(iR.border)}};function PacketList(e){var t=e.packets,n=e.filter,r=e.maxHeight,a=(0,tD.useRef)(null),o=(0,ek._)((0,tD.useState)(null),2),i=o[0],s=o[1];(0,aK.f)(a,{messages:t,opened:!0}).scrollToBottom;var l=null;return(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsx)("style",{children:"\n .packet-row:hover {\n background: ".concat(iR.hover," !important;\n }\n ")}),(0,tC.jsx)("div",{ref:a,style:{overflowY:"auto",height:void 0===r?300:r,display:"flex",flexDirection:"column"},children:(0,tC.jsx)("div",{style:{minHeight:"100%"},children:t.map(function(e,t){var r,a,o=formatTimeDiff(e.timestamp,l);return l=e.timestamp,(0,tC.jsxs)("div",{children:[(0,tC.jsxs)("div",{className:"packet-row",onClick:function(){return s(i===e.position?null:e.position)},style:(0,eD._)((0,ej._)({},iQ.packetRow),{background:e.isFromClient?iR.client:iR.server,opacity:e.isUpcoming?.5:1}),children:[(0,tC.jsx)("span",{children:e.isCustomChannel?"\uD83D\uDD17":e.name.includes("position")?"\uD83D\uDCCD":e.name.includes("chat")?"\uD83D\uDCAC":e.name.includes("block")||e.name.includes("chunk")||e.name.includes("light")?"\uD83D\uDCE6":e.name.includes("entity")||e.name.includes("player")||e.name.includes("passenger")?"\uD83C\uDFAF":"\uD83D\uDCC4"}),(0,tC.jsxs)("span",{style:{color:iR.textDim},children:["#",e.position,o&&(0,tC.jsx)("span",{style:{marginLeft:"4px"},children:o})]}),n&&(0,tC.jsxs)("span",{style:{color:iR.textDim},children:["#",t+1]}),(0,tC.jsx)("span",{style:{color:e.actualVersion?iR.modified:iR.text,fontWeight:"bold"},children:e.name}),(0,tC.jsx)("span",{style:{color:iR.textDim,flex:1,overflow:"hidden",textOverflow:"ellipsis"},children:null!=(a=null==(r=iU[e.name])?void 0:r.call(iU,e.data))?a:iU.default(e.data)})]}),i===e.position&&(0,tC.jsxs)("div",{style:iQ.expandedPacket,children:[(0,tC.jsxs)("div",{style:{marginBottom:"8px"},children:[(0,tC.jsx)("strong",{children:"Data:"}),(0,tC.jsx)("pre",{style:{margin:"4px 0",color:iR.textDim},children:JSON.stringify(JSON.parse(iU.default(e.data)),null,2)})]}),e.actualVersion&&(0,tC.jsxs)("div",{children:[(0,tC.jsx)("strong",{children:"Actual Version:"}),(0,tC.jsx)("pre",{style:{margin:"4px 0",color:iR.textDim},children:JSON.stringify(JSON.parse(iU.default(e.actualVersion)),null,2)})]})]})]},"".concat(e.timestamp,"-").concat(e.position))})})})]})}function padNumber(e){return String(e).padStart(3,"0")}function ProgressBar(e){var t=e.current,n=e.total;return(0,tC.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",flex:1},children:[(0,tC.jsxs)("div",{style:{color:iR.textDim,fontSize:"12px",minWidth:"70px"},children:[padNumber(t),"/",padNumber(n)]}),(0,tC.jsx)("div",{style:{flex:1,height:"4px",background:iR.border,borderRadius:"2px"},children:(0,tC.jsx)("div",{style:{width:"".concat(t/n*100,"%"),height:"100%",background:iR.text,borderRadius:"2px",transition:"width 0.2s"}})})]})}function ReplayPanel(e){var t=e.replayName,n=e.packets,r=e.isPlaying,a=e.progress,o=e.speed,i=e.defaultFilter,s=e.customButtons,l=e.onPlayPause,c=e.onRestart,u=e.onSpeedChange,d=e.onFilterChange,w=e.onCustomButtonToggle,p=e.clientPacketsAutocomplete,h=e.serverPacketsAutocomplete,M=e.style,g=(0,ek._)((0,tD.useState)(void 0===i?"":i),2),m=g[0],v=g[1],y=(0,tJ.R)(iO.P),A=y.isMinimized,b=y.isRecording,_=filterPackets(n.slice(-500),m),L=_.filtered,C=_.hiddenCount;(0,tD.useEffect)(function(){d(m)},[m,d]);var j=(0,tC.jsx)("button",{onClick:function(){A?iO.P.isMinimized=!1:null==l||l(!r)},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",color:iR.text},children:(0,tC.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",children:b?(0,tC.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"red"}):r?(0,tC.jsx)("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}):(0,tC.jsx)("path",{d:"M8 5v14l11-7z"})})}),D=(0,ej._)({position:"fixed",top:18,right:0,zIndex:1e3,background:iR.bg,padding:"16px",borderRadius:"0 0 8px 0",boxShadow:"0 2px 8px rgba(0,0,0,0.3)",display:"flex",flexDirection:"column",gap:"12px",color:iR.text},M);return A?(0,tC.jsx)("div",{style:(0,eD._)((0,ej._)({},D),{width:"auto"}),children:j}):(0,tC.jsxs)("div",{style:(0,eD._)((0,ej._)({},D),{width:"400px",maxHeight:"80vh"}),children:[(0,tC.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,tC.jsx)("div",{style:{fontSize:"12px",fontWeight:"bold"},children:t||"Unnamed Replay"}),(0,tC.jsx)("button",{onClick:function(){iO.P.isMinimized=!0},style:{background:"none",border:"none",color:iR.text,cursor:"pointer",padding:"4px",fontSize:"14px",opacity:.7,transition:"opacity 0.2s"},onMouseEnter:function(e){e.currentTarget.style.opacity="1"},onMouseLeave:function(e){e.currentTarget.style.opacity="0.7"},children:"✕"})]}),(0,tC.jsx)("div",{style:{fontSize:"8px",color:"#888888",marginTop:"-8px"},children:b?"Recording packets...":"Integrated server emulation. Testing client..."}),(0,tC.jsx)(FilterInput,{value:m,onChange:v,hiddenCount:C,shownCount:L.length,onClearFilter:function(){return v("")},clientPacketsAutocomplete:p,serverPacketsAutocomplete:h}),(0,tC.jsx)(PacketList,{packets:L,filter:m,maxHeight:300}),(0,tC.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",filter:b?"grayscale(100%)":"none",cursor:b?"not-allowed":"default"},children:[j,(0,tC.jsx)(ProgressBar,{current:a.current,total:a.total})]}),(0,tC.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,tC.jsx)("button",{onClick:c,style:{padding:"4px 8px",borderRadius:"4px",border:"1px solid ".concat(iR.border),background:iR.input,color:iR.text,cursor:"pointer"},children:"Restart"}),(0,tC.jsx)("input",{type:"number",value:o,onChange:function(e){return null==u?void 0:u(Number(e.target.value))},onContextMenu:function(e){e.preventDefault(),null==u||u(1)},step:.1,min:.1,style:{width:"60px",padding:"4px",border:"1px solid ".concat(iR.border),borderRadius:"4px",background:iR.input,color:iR.text}}),Object.entries(s).map(function(e){var t=(0,ek._)(e,2),n=t[0],r=t[1],a=r.state,o=r.label,i=r.tooltip;return(0,tC.jsx)("button",{onClick:function(){return w(n)},title:i,style:{padding:"4px 8px",borderRadius:"4px",border:"1px solid ".concat(iR.border),background:a?iR.client:iR.input,color:iR.text,cursor:"pointer",minWidth:"32px"},children:o},n)})]})]})}function PacketsReplayProvider(){var e,t,n,r=(0,tJ.R)(iO.P),a=(0,tJ.R)(e5.N_).gameLoaded,o=(0,tD.useMemo)(function(){if(loadedData)return{client:Object.keys(loadedData.protocol.play.toClient.types).filter(function(e){return e.startsWith("packet_")}).map(function(e){return e.slice(7)}),server:Object.keys(loadedData.protocol.play.toServer.types).filter(function(e){return e.startsWith("packet_")}).map(function(e){return e.slice(7)})}},[a]);return r.isOpen?(0,tC.jsx)(ReplayPanel,{style:{transform:"scale(0.4)",transformOrigin:"top right"},replayName:r.replayName,packets:r.packetsPlayback,isPlaying:r.isPlaying,progress:r.progress,speed:r.speed,defaultFilter:null!=(e=eS.EX.replayFilter)?e:"",clientPacketsAutocomplete:null!=(t=null==o?void 0:o.client)?t:[],serverPacketsAutocomplete:null!=(n=null==o?void 0:o.server)?n:[],customButtons:r.customButtons,onPlayPause:function(e){iO.P.isPlaying=e},onRestart:function(){window.location.reload()},onSpeedChange:function(e){iO.P.speed=e,(0,eS.h0)("replaySpeed",1===e?void 0:e.toString())},onFilterChange:function(e){(0,eS.h0)("replayFilter",e)},onCustomButtonToggle:function(e){(0,iO.U)(e,!r.customButtons[e].state)}}):null}let iF={hint_container:"hint_container-TtFMXH"};function TouchInteractionHint(){var e=(0,tN.uT)(),t=(0,tJ.R)(e5.M),n=(0,tJ.R)(e2.YM).touchInteractionType,r=(0,ek._)((0,tD.useState)(null),2),a=r[0],o=r[1],i=(0,ek._)((0,tD.useState)(null),2),s=i[0],l=i[1];return((0,tD.useEffect)(function(){var update=function(){if(videoCursorInteraction())o("Interact with video"),l(null);else{var e=bot.mouse.getCursorState();if(e.entity){var t,n,r=null!=(n=null!=(t=e.entity.displayName)?t:e.entity.name)?n:"Entity";o("Attack ".concat(r)),l(r)}else o(null),l(null)}};return update(),bot.on("physicsTick",update),function(){var e;null==(e=bot)||e.removeListener("physicsTick",update)}},[]),e&&"classic"===n&&!(t.length>0)&&(a||s)&&s)?(0,tC.jsx)("div",{className:"".concat(iF.hint_container," interaction-hint"),children:(0,tC.jsx)(nI.Z,{onClick:function(e){e.preventDefault(),e.stopPropagation(),document.dispatchEvent(new MouseEvent("mousedown",{button:2})),bot.mouse.update(),document.dispatchEvent(new MouseEvent("mouseup",{button:2}))},children:"Use ".concat(s)})}):null}var iW=(0,tt.sj)({active:!1,muted:!1,hasInputVoice:!1,isErrored:!1,isConnected:!1,isAlone:!1,isSharingScreen:!1});window.voiceChatStatus=iW;var Icon=function(){return(0,tC.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,tC.jsx)("path",{fill:"currentColor",d:"M9 14H8v-2h3v-1H8V9h3V8H8V6h3V5H8V3h1V2h1V1h4v1h1v1h1v2h-3v1h3v2h-3v1h3v2h-3v1h3v2h-1v1h-1v1h-4v-1H9z"}),(0,tC.jsx)("path",{fill:"currentColor",d:"M19 12v3h-1v2h-1v1h-2v1h-2v2h3v2H8v-2h3v-2H9v-1H7v-1H6v-2H5v-3h1v2h1v2h1v1h2v1h4v-1h2v-1h1v-2h1v-2z"})]})};function VoiceMicrophone(){var e=(0,tJ.R)(iW),t=e.active,n=e.muted,r=e.hasInputVoice,a=e.isSharingScreen,o=e.isConnected,i=e.isErrored,s=e.isAlone;return t?(0,tC.jsxs)("div",{className:"voice-chat-microphone",onClick:function(){},children:[(0,tC.jsx)("div",{style:{position:"fixed",bottom:"20px",zIndex:10,left:"20px",width:48,height:48,display:"flex",alignItems:"center",justifyContent:"center",color:n?"rgb(214 4 4)":r?"#32cd32":"#ffffff",border:"2px solid ".concat(i?"rgba(214, 4, 4, 0.5)":o?s?"rgba(183, 255, 0, 0.5)":"rgba(50, 205, 50, 0.5)":"rgba(128, 128, 128, 0.5)"),borderRadius:"50%",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.2)",transition:"background-color 0.2s ease"},children:(0,tC.jsx)(Icon,{})}),a&&(0,tC.jsxs)("div",{style:{position:"fixed",bottom:"20px",left:"20px",width:48,height:48,display:"flex",alignItems:"center"},children:[(0,tC.jsx)(nY.Z,{iconName:nY.K.cast})," Stop Sharing Screen"]})]}):null}function ConnectOnlyServerUi(){var e=eS.EX.ip,t=eS.EX.version,n=eS.EX.proxy,r=eS.EX.username,a=eS.EX.connectText;return(0,tN.uM)("only-connect-server")?(0,tC.jsx)("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.25)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,tC.jsxs)("div",{style:{display:"flex",gap:"40px",alignItems:"center",background:"rgba(0, 0, 0, 0.5)",padding:"25px",borderRadius:"5px",flexDirection:"row"},children:[(0,tC.jsxs)("div",{style:{color:"white",fontSize:"13px"},children:[(0,tC.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,tC.jsx)(nY.Z,{iconName:nY.K.server,width:16}),(0,tC.jsx)("span",{style:{marginLeft:"8px"},children:e}),n&&(0,tC.jsxs)("span",{style:{marginLeft:"8px",color:"lightgray"},children:["(",n,")"]})]}),(0,tC.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,tC.jsx)(nY.Z,{iconName:nY.K.user,width:16}),(0,tC.jsx)("span",{style:{marginLeft:"8px"},children:r}),t&&(0,tC.jsxs)("span",{style:{marginLeft:"8px",color:"lightgray"},children:["(",t,")"]})]})]}),(0,tC.jsx)(nI.Z,{onClick:function(){window.dispatchEvent(new CustomEvent("connect",{detail:{username:r||"",server:e,proxy:n,botVersion:t}}))},style:{width:"auto",padding:"0 12px",transform:"scale(1.4)",transformOrigin:"center"},children:a||"Connect"})]})}):null}function ControDebug(){var e=(0,ek._)((0,tD.useState)(new Set),2),t=e[0],n=e[1],r=(0,ek._)((0,tD.useState)([]),2),a=r[0],o=r[1];return((0,tD.useEffect)(function(){var handleKeyDown=function(e){n(function(t){return new Set((0,eE._)(t).concat([e.code]))})},handleKeyUp=function(e){n(function(t){var n=new Set(t);return n.delete(e.code),n})},handleBlur=function(){n(new Set)},handleControTrigger=function(e){var t=e.command;o(function(e){return(0,eE._)(e).concat([t])})},handleControReleased=function(e){var t=e.command;o(function(e){return e.filter(function(e){return e!==t})})};return window.addEventListener("keydown",handleKeyDown),window.addEventListener("keyup",handleKeyUp),window.addEventListener("blur",handleBlur),t4.on("trigger",handleControTrigger),t4.on("release",handleControReleased),function(){window.removeEventListener("keydown",handleKeyDown),window.removeEventListener("keyup",handleKeyUp),window.removeEventListener("blur",handleBlur),t4.off("trigger",handleControTrigger),t4.off("released",handleControReleased)}},[]),e2.YM.debugContro)?(0,tC.jsxs)("div",{className:"debug-contro",style:{position:"fixed",right:0,top:"50%",transform:"translateY(-50%)",backgroundColor:"rgba(0, 0, 0, 0.5)",padding:"8px",fontFamily:"monospace",fontSize:"8px",color:"white",display:"flex",flexDirection:"column",gap:"4px",zIndex:2},children:[(0,tC.jsxs)("div",{children:["Keys: ",(0,eE._)(t).join(", ")]}),(0,tC.jsxs)("div",{style:{color:"limegreen"},children:["Actions: ",a.join(", ")]})]}):null}n(38930);var iJ={"server-waiting":"gray","order-queued":"darkorange","client-waiting":"yellow","client-processing":"yellow","done-empty":"darkgreen",done:"limegreen"},iV=[{color:iJ["server-waiting"],label:"Waiting for server packet"},{color:iJ["order-queued"],label:"Queued in spiral load order"},{color:iJ["client-waiting"],label:"Received on client, waiting for mesher"},{color:iJ["client-processing"],label:"Mesher processing"},{color:iJ["done-empty"],label:"Meshed (no visible sections)"},{color:iJ.done,label:"Meshed and rendered"},{color:"black",label:"No chunk data"}],ChunkStateLegend=function(){return(0,tC.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px 16px",fontSize:10,marginTop:8,paddingTop:8,borderTop:"1px solid #444"},children:[(0,tC.jsx)("div",{style:{fontWeight:"bold",width:"100%"},children:"Legend"}),iV.map(function(e){var t=e.color,n=e.label;return(0,tC.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,tC.jsx)("div",{style:{width:12,height:12,background:t,border:"1px solid #666",flexShrink:0}}),(0,tC.jsx)("span",{children:n})]},n)})]})};function ChunksDebug(e){var t=e.chunks,n=e.playerChunk,r=e.maxDistance,a=e.tileSize,o=void 0===a?16:a,i=e.fontSize,s=void 0===i?5:i,l=(0,ek._)((0,tD.useState)(null),2),c=l[0],u=l[1],d=(0,ek._)((0,tD.useState)(!1),2),w=d[0],p=d[1],h=2*r+1,M=t.reduce(function(e,t){var a=Math.floor((t.x-n.x)/16),o=Math.floor((t.z-n.z)/16);return Math.abs(a)>r||Math.abs(o)>r||(e["".concat(t.x,",").concat(t.z)]=(0,eD._)((0,ej._)({},t),{relX:a,relZ:o,displayLines:["".concat(a,",").concat(o," (").concat(t.x,",").concat(t.z,")")].concat((0,eE._)(t.lines))})),e},{});return(0,tC.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[(0,tC.jsxs)("div",{style:{display:"flex",gap:"10px",alignItems:"flex-start"},children:[(0,tC.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(".concat(h,", 1fr)"),gridTemplateRows:"repeat(".concat(h,", 1fr)"),gap:1},children:Array.from({length:h*h}).map(function(e,t){var a=-r+t%h,i=-r+Math.floor(t/h),l=n.x+16*a,c=n.z+16*i,d=M["".concat(l,",").concat(c)];return(0,tC.jsxs)("div",{onClick:function(){d&&(u(d),p(!0))},style:{display:"flex",justifyContent:"center",alignItems:"center",background:d?iJ[d.state]:"black",color:"white",fontSize:"".concat(s,"px"),cursor:d?"pointer":"default",position:"relative",width:"".concat(o,"px"),flexDirection:"column",height:"".concat(o,"px"),padding:1,whiteSpace:"pre"},children:[a,", ",i,"\n",null==d?void 0:d.lines[0],"\n",(0,tC.jsx)("span",{style:{fontSize:"".concat(.8*s,"px")},children:null==d?void 0:d.lines[1]})]},"".concat(l,",").concat(c))})}),w&&c&&(0,tC.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"5px"},className:"text-select",children:[c.displayLines.map(function(e,t){return(0,tC.jsx)("div",{style:{fontSize:"10px",wordBreak:"break-word"},children:e},t)}),(0,tC.jsxs)("div",{style:{marginTop:"10px",fontSize:"10px",whiteSpace:"pre",maxWidth:100},children:[(0,tC.jsx)("div",{children:"Sidebar Info:"}),c.sidebarLines.map(function(e,t){return(0,tC.jsx)("div",{children:e},t)})]})]})]}),(0,tC.jsx)(ChunkStateLegend,{})]})}var readFromMainThreadWorld=function(e){var t={},n=!0,r=!1,a=void 0;try{for(var o,i=Object.keys(e.sectionObjects)[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=o.value,l=(0,ek._)(s.split(",").map(Number),3),c=l[0],u=l[2];t["".concat(c,",").concat(u)]=!0}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}return{loadedSectionsChunks:t,loadedChunks:e.loadedChunks,finishedChunks:e.finishedChunks}},emptyRendererChunksState=function(){return{loadedSectionsChunks:{},loadedChunks:{},finishedChunks:{}}},useRendererChunksDebugState=function(e){var t=(0,ek._)((0,tD.useState)(function(){var e=globalThis.world;return e?readFromMainThreadWorld(e):emptyRendererChunksState()}),2),n=t[0],r=t[1];return(0,nP.mk)(function(e){(0,e.interval)(500,function(){var e,t,n=globalThis.world;if(n)return void r(readFromMainThreadWorld(n));var a=null==(t=nl.backend)||null==(e=t.backendMethods)?void 0:e.getChunksDebugState;if(!a)return void r(emptyRendererChunksState());Promise.resolve(a()).then(r).catch(function(){r(emptyRendererChunksState())})})},[e]),n},ChunksDebugScreen_Inner=function(){var e=(0,ek._)((0,tD.useState)(16*Math.floor(nl.worldView.lastPos.x/16)),2),t=e[0],n=e[1],r=(0,ek._)((0,tD.useState)(16*Math.floor(nl.worldView.lastPos.z/16)),2),a=r[0],o=r[1],i=(0,ek._)((0,tD.useState)(0),2),s=i[0],l=i[1],c=nl.worldView,u=useRendererChunksDebugState(s),d=u.loadedSectionsChunks,w=u.loadedChunks,p=u.finishedChunks;(0,nP.mk)(function(e){var t=e.interval,up=function(){};return bot.on("chunkColumnLoad",up),t(500,function(){n(16*Math.floor(c.lastPos.x/16)),o(16*Math.floor(c.lastPos.z/16)),l(function(e){return e+1})}),function(){bot.removeListener("chunkColumnLoad",up)}},[]);var h=Object.values(c.debugChunksInfo).map(function(e){var t,n;return null!=(n=null==e||null==(t=e.loads[0])?void 0:t.time)?n:1/0}).filter(function(e){return e!==1/0}).sort(function(e,t){return e-t}),M=Object.fromEntries((0,th.generateSpiralMatrix)(c.viewDistance).map(function(e){return["".concat(e[0],",").concat(e[1]),e]})),mapChunk=function(e,t){var n,r,a=Number(e.split(",")[0]),o=Number(e.split(",")[1]),i=Math.floor(a/16),s=Math.floor(o/16);delete M["".concat(i,",").concat(s)];var l=c.debugChunksInfo[e],u=null==l||null==(n=l.loads[0])?void 0:n.time,d=u?h.indexOf(u)+1:0,w=u?u-h[0]:0,p="",g="";return d&&(p="".concat(d),g="".concat(w,"ms")),(null==l?void 0:l.loads.length)>1&&(p+=" - ".concat(l.loads.length)),{x:a,z:o,state:t,lines:[p,g],sidebarLines:["loads: ".concat(null==l||null==(r=l.loads)?void 0:r.map(function(e){return"".concat(e.reason," ").concat(e.dataLength," ").concat(e.time)}).join("\n"))]}},g=Object.keys(c.waitingSpiralChunksLoad).map(function(e){return mapChunk(e,"server-waiting")}),m=Object.keys(c.loadedChunks).map(function(e){return mapChunk(e,"client-waiting")}),v=Object.keys(w).map(function(e){return mapChunk(e,"client-processing")}),y=Object.keys(p).filter(function(e){return!d[e]}).map(function(e){return mapChunk(e,"done-empty")}),A=Object.keys(p).map(function(e){return mapChunk(e,"done")}),b=Object.values(M).map(function(e){var t=(0,ek._)(e,2),n=t[0],r=t[1],a=new eB.A(16*n,0,16*r);return null===bot.world.getColumnAt(a)?null:mapChunk("".concat(a.x,",").concat(a.z),"order-queued")}).filter(function(e){return!!e}),_=(0,eE._)(g).concat((0,eE._)(m),(0,eE._)(v),(0,eE._)(A),(0,eE._)(y),(0,eE._)(b));return(0,tC.jsxs)(tk.Z,{title:"Chunks Debug (avg: ".concat(c.lastChunkReceiveTimeAvg.toFixed(1),"ms)"),children:[(0,tC.jsx)(nI.Z,{icon:nY.K.close,onClick:function(){return(0,e5.VG)({reactType:"chunks-debug"})},style:{color:"#ff5d5d",position:"fixed",top:10,left:20},title:"Close"}),(0,tC.jsx)(ChunksDebug,{chunks:_,playerChunk:{x:t,z:a},maxDistance:c.viewDistance,tileSize:32,fontSize:8})]})};function ChunksDebugScreen(){return(0,tN.uM)("chunks-debug")?(0,tC.jsx)(ChunksDebugScreen_Inner,{}):null}let iG={debugResponseTimeIndicator:"debugResponseTimeIndicator-fgQAAT"};function DebugResponseTimeIndicator(){var e=(0,ek._)((0,tD.useState)(!1),2),t=e[0],n=e[1];return((0,tD.useEffect)(function(){var handlePointerDown=function(){n(!0)},handlePointerUp=function(){n(!1)};return window.addEventListener("pointerdown",handlePointerDown),window.addEventListener("pointerup",handlePointerUp),function(){window.removeEventListener("pointerdown",handlePointerDown),window.removeEventListener("pointerup",handlePointerUp)}},[]),"debugResponseTimeIndicator"in e2.YM&&e2.YM.debugResponseTimeIndicator&&t)?(0,tC.jsx)("div",{className:iG.debugResponseTimeIndicator}):null}let iH={container:"container-fIXcRm",column:"column-p5oTjN",sliderGroup:"sliderGroup-bL4OLm"};function react_RendererDebugMenu(){var e=window.world;return e?(0,tC.jsx)(RendererDebugMenu,{worldRenderer:e}):null}var RendererDebugMenu=function(e){var t,n,r=e.worldRenderer.reactiveDebugParams,a=(0,tJ.R)(r),o=a.chunksRenderAboveEnabled,i=a.chunksRenderBelowEnabled,s=(a.chunksRenderDistanceEnabled,a.chunksRenderAboveOverride),l=a.chunksRenderBelowOverride,c=(a.chunksRenderDistanceOverride,a.stopRendering),u=a.disableEntities,d=(0,tJ.R)(e2.YM).rendererPerfDebugOverlay,roundToStep=function(e,t){return Math.round(e/t)*t};return d?(0,tC.jsxs)("div",{className:iH.container,children:[(0,tC.jsxs)("div",{className:iH.column,children:[(0,tC.jsx)("h3",{children:"Rendering Controls"}),(0,tC.jsx)(nI.Z,{label:c?"Start Rendering":"Stop Rendering",onClick:function(){r.stopRendering=!r.stopRendering},overlayColor:c?"red":void 0}),(0,tC.jsx)(nI.Z,{label:u?"Enable Entities":"Disable Entities",onClick:function(){r.disableEntities=!r.disableEntities},overlayColor:u?"red":void 0})]}),(0,tC.jsxs)("div",{className:iH.column,children:[(0,tC.jsx)("h3",{children:"Chunks Render Settings"}),(0,tC.jsxs)("div",{className:iH.sliderGroup,children:[(0,tC.jsx)(nI.Z,{label:o?"Disable Above Override":"Enable Above Override",onClick:function(){var e=!o;r.chunksRenderAboveEnabled=e,e?r.chunksRenderAboveOverride=0:r.chunksRenderAboveOverride=void 0}}),(0,tC.jsx)(rp,{label:"Chunks Above",min:0,max:256,value:null!=s?s:0,style:{width:"100%"},updateValue:function(e){r.chunksRenderAboveOverride=roundToStep(e,16)},disabledReason:o?void 0:"Override not enabled",unit:"",valueDisplay:roundToStep(null!=(t=r.chunksRenderAboveOverride)?t:0,16)})]}),(0,tC.jsxs)("div",{className:iH.sliderGroup,children:[(0,tC.jsx)(nI.Z,{label:i?"Disable Below Override":"Enable Below Override",onClick:function(){var e=!i;r.chunksRenderBelowEnabled=e,e?r.chunksRenderBelowOverride=0:r.chunksRenderBelowOverride=void 0}}),(0,tC.jsx)(rp,{label:"Chunks Below",min:0,max:256,style:{width:"100%"},value:null!=l?l:0,updateValue:function(e){r.chunksRenderBelowOverride=roundToStep(e,16)},disabledReason:i?void 0:"Override not enabled",unit:"",valueDisplay:roundToStep(null!=(n=r.chunksRenderBelowOverride)?n:0,16)})]})]})]}):null};let iZ={modalScreen:"modalScreen-cClnsz",container:"container-Rg_44M",title:"title-HitmZQ",contentWrapper:"contentWrapper-w4Sn_u",subtitle:"subtitle-Wv3FAi",paragraph:"paragraph-Adf60U",list:"list-IohlzU",listItem:"listItem-fv0jZx",link:"link-wejgpx",sectionTitle:"sectionTitle-f28VbG",closeButton:"closeButton-Ii28Cv",closeIcon:"closeIcon-UsO0rV"};function CreditsAboutModal(){return(0,tN.uM)("credits-about")?(0,tC.jsx)(tk.Z,{title:"",backdrop:!0,className:iZ.modalScreen,children:(0,tC.jsxs)("div",{className:iZ.container,children:[(0,tC.jsx)("h2",{className:iZ.title,children:"Minecraft Open Source JS Edition"}),(0,tC.jsxs)("div",{className:iZ.contentWrapper,children:[(0,tC.jsx)("small",{className:iZ.subtitle,children:(0,tC.jsx)("i",{children:"What if Minecraft was an online game?"})}),(0,tC.jsx)("p",{className:iZ.paragraph,children:"Hey! You are on the safest modern Minecraft clone rewritten in JavaScript. A huge amount of work has been put into this project to make it fast and complete, and many features would not be possible without these awesome people and projects:"}),(0,tC.jsxs)("ul",{className:iZ.list,children:[(0,tC.jsx)("li",{className:iZ.listItem,children:"- Everyone who provided awesome mods for the game"}),(0,tC.jsxs)("li",{className:iZ.listItem,children:["- ",(0,tC.jsx)("span",{children:(0,tC.jsx)("a",{className:iZ.link,href:"https://discord.com/users/gen6442",target:"_blank",rel:"noopener noreferrer",children:"[Gen]"})})," for rewriting the physics engine to be Grim-compliant"]}),(0,tC.jsxs)("li",{className:iZ.listItem,children:["- ",(0,tC.jsx)("span",{children:(0,tC.jsx)("a",{className:iZ.link,href:"https://viaversion.com/",target:"_blank",rel:"noopener noreferrer",children:"[ViaVersion]"})})," for providing reliable sound id mappings"]}),(0,tC.jsxs)("li",{className:iZ.listItem,children:["- ",(0,tC.jsx)("span",{children:(0,tC.jsx)("a",{className:iZ.link,href:"https://github.com/BlueMap-Minecraft/BlueMap",target:"_blank",rel:"noopener noreferrer",children:"[Bluemap]"})})," for providing block entity models like chest"]}),(0,tC.jsxs)("li",{className:iZ.listItem,children:["- ",(0,tC.jsx)("span",{children:(0,tC.jsx)("a",{className:iZ.link,href:"https://github.com/misode/deepslate",target:"_blank",rel:"noopener noreferrer",children:"[Deepslate]"})})," for rendering 3d blocks in GUI (inventory)"]}),(0,tC.jsxs)("li",{className:iZ.listItem,children:["- ",(0,tC.jsx)("span",{children:(0,tC.jsx)("a",{className:iZ.link,href:"https://www.npmjs.com/package/skinview3d",target:"_blank",rel:"noopener noreferrer",children:"[skinview3d]"})})," for rendering skins & player geometry"]}),(0,tC.jsxs)("li",{className:iZ.listItem,children:["- ",(0,tC.jsx)("span",{children:(0,tC.jsx)("a",{className:iZ.link,href:"https://github.com/atxi/Polymer",target:"_blank",rel:"noopener noreferrer",children:"[Polymer]"})})," (c++ project) for providing fast & accurate server light implementation"]})]}),(0,tC.jsx)("h3",{className:iZ.sectionTitle,children:"Current contributors:"}),(0,tC.jsxs)("ul",{className:iZ.list,children:[(0,tC.jsxs)("li",{className:iZ.listItem,children:["- ",(0,tC.jsx)("span",{className:iZ.link,children:(0,tC.jsx)("a",{className:iZ.link,href:"http://github.com/sandexzx",target:"_blank",rel:"noopener noreferrer",children:"sandexzx"})})," - 3D Renderer Engine Developer & Maintainer"]}),(0,tC.jsx)("li",{className:iZ.listItem,children:"- And many more community contributors!"})]}),(0,tC.jsx)("button",{className:iZ.closeButton,onClick:function(){return(0,e5.kJ)()},"aria-label":"Close",type:"button",children:(0,tC.jsx)(nY.Z,{iconName:nY.K.close,width:12,className:iZ.closeIcon})})]})]})}):null}var iK=n(13062);function react_FullscreenTime(){var e=(0,ek._)((0,tD.useState)(!1),2);return(e[0],e[1],"never"===(0,tJ.R)(e2.YM).topRightTimeDisplay)?null:(0,tC.jsx)(FullscreenTime,{})}var FullscreenTime=function(){var e=(0,tJ.R)(e2.YM).topRightTimeDisplay,t=(0,tJ.R)(e5.N_).fullscreen,n=(0,ek._)((0,tD.useState)(""),2),r=n[0],a=n[1],o=(0,ek._)((0,tD.useState)(null),2),i=o[0],s=o[1];return((0,tD.useEffect)(function(){var updateTime=function(){var e=new Date,t=e.getHours().toString().padStart(2,"0"),n=e.getMinutes().toString().padStart(2,"0");a("".concat(t,":").concat(n))};updateTime();var e=setInterval(updateTime,1e3);return"getBattery"in navigator&&navigator.getBattery().then(function(e){var updateBatteryInfo=function(){s({level:Math.round(100*e.level),charging:e.charging})};return updateBatteryInfo(),e.addEventListener("levelchange",updateBatteryInfo),e.addEventListener("chargingchange",updateBatteryInfo),function(){e.removeEventListener("levelchange",updateBatteryInfo),e.removeEventListener("chargingchange",updateBatteryInfo)}}),function(){clearInterval(e)}},[]),"only-fullscreen"!==e||t)?(0,tC.jsxs)("div",{className:"top-right-time",style:{position:"fixed",top:"env(safe-area-inset-top, 5px)",right:"env(safe-area-inset-right, 5px)",display:"flex",alignItems:"center",gap:"4px",padding:"1px 3px",background:"rgba(0, 0, 0, 0.75)",borderRadius:"2px",fontSize:8,color:"white",fontFamily:"minecraft, mojangles, monospace",zIndex:1,pointerEvents:"none"},children:[(0,tC.jsx)("span",{children:r}),i&&(0,tC.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"2px"},children:[(0,tC.jsx)(nY.Z,{iconName:getBatteryIcon(i.level,i.charging),styles:{fontSize:10}}),(0,tC.jsxs)("span",{children:[i.level,"%"]})]})]}):null},getBatteryIcon=function(e,t){return t?nY.K["battery-charging"]:e>60?nY.K["battery-full"]:e>20?nY.K["battery-2"]:e>5?nY.K["battery-1"]:nY.K.battery},formatTimestamp=function(e){return e?new Date(e).toLocaleString():"Unknown time"};function StorageConflictModal(){var e=(0,tN.uM)("storage-conflict"),t=(0,tm.ub)();if(!e)return null;var clampText=function(e){return"string"!=typeof e&&(e=JSON.stringify(e)),e.length>30?e.slice(0,30)+"...":e},n=t.map(function(e){var t=formatTimestamp(e.localStorageTimestamp),n=formatTimestamp(e.cookieTimestamp);return"".concat(e.key,": LocalStorage (").concat(t,", ").concat(clampText(e.localStorageValue),") vs Cookie (").concat(n,", ").concat(clampText(e.cookieValue),")")}).join("\n");return(0,tC.jsx)("div",{children:(0,tC.jsxs)("div",{style:{background:"#dcb58f",border:"2px solid #654321",padding:"20px",margin:"10px",color:"#FFFFFF",fontFamily:"minecraft, monospace",textAlign:"center",zIndex:1e3,position:"fixed",left:0,right:0},children:[(0,tC.jsx)("div",{style:{fontSize:"16px",fontWeight:"bold",color:"#000000",marginBottom:"15px"},children:"Data Conflict Found"}),(0,tC.jsxs)("div",{style:{fontSize:"12px",marginBottom:"20px",whiteSpace:"pre-line",color:"#642323",padding:"10px"},children:["You have conflicting data between localStorage (old) and cookies (new, domain-synced) for the following settings:","\n\n",n,"\n\n","Please choose which version to keep:"]}),(0,tC.jsxs)("div",{style:{display:"flex",gap:"10px",justifyContent:"center",fontSize:"8px",color:"black"},children:[(0,tC.jsx)("div",{onClick:function(){(0,tm.Ed)(!0),(0,e5.kJ)()},style:{border:"1px solid #654321",padding:"8px 16px",cursor:"pointer"},children:"Use Local Storage & Disable Cookie Sync"}),(0,tC.jsx)("div",{onClick:function(){(0,tm.Ed)(!1),(0,e5.kJ)()},style:{border:"1px solid #654321",padding:"8px 16px",cursor:"pointer"},children:"Use Cookie Data & Remove Local Data"})]})]})})}function FireRenderer(){var e=(0,tJ.R)(appViewer.playerState.reactive),t=e.onFire,n=e.perspective,r=(0,ek._)((0,tD.useState)([]),2),a=r[0],o=r[1],i=(0,ek._)((0,tD.useState)(0),2),s=i[0],l=i[1];return((0,tD.useEffect)(function(){var e,n=0,updateTexture=function(r){t&&a.length>0&&r-n>=100&&(l(function(e){return(e+1)%a.length}),n=r),e=requestAnimationFrame(updateTexture)};return e=requestAnimationFrame(updateTexture),function(){return cancelAnimationFrame(e)}},[t,a]),(0,tD.useEffect)(function(){var e,t=(e=(0,eC._)(function(){var e,t,n,r,a,i,s,l,c,u,d,w,p,h,M,g,m,v,y,A,b,_,L,C,j,D,x;return(0,eT.Jh)(this,function(k){switch(k.label){case 0:if(t=[],!(null==(n=appViewer.resourcesManager.blocksAtlasParser)||null==(e=n.atlas)?void 0:e.latest))return console.warn("FireRenderer: Blocks atlas parser not available"),[2];r=Object.keys(n.atlas.latest.textures).filter(function(e){return/^fire_\d+$/.exec(e)}),a=!0,i=!1,s=void 0,k.label=1;case 1:k.trys.push([1,7,8,9]),l=r[Symbol.iterator](),k.label=2;case 2:if(a=(c=l.next()).done)return[3,6];if(u=c.value,!(d=n.getTextureInfo(u))||(w=n.atlas.latest.tileSize,p=n.atlas.latest.width,h=n.atlas.latest.height,g=null!=(M=d.width)?M:w,v=null!=(m=d.height)?m:w,!((A=(y=(0,eZ.vL)(g,v)).getContext("2d"))&&n.latestImage)))return[3,5];return[4,(0,rc.u)(n.latestImage)];case 3:if(b=k.sent(),A.drawImage(b,d.u*p,d.v*h,g,v,0,0,g,v),_=Math.ceil(.4*v),!(C=(L=(0,eZ.vL)(g,_)).getContext("2d")))return[3,5];return C.drawImage(y,0,0,g,_,0,0,g,_),[4,L.convertToBlob()];case 4:j=k.sent(),D=URL.createObjectURL(j),t.push(D),k.label=5;case 5:return a=!0,[3,2];case 6:return[3,9];case 7:return x=k.sent(),i=!0,s=x,[3,9];case 8:try{a||null==l.return||l.return()}finally{if(i)throw s}return[7];case 9:return o(t),[2]}})}),function(){return e.apply(this,arguments)});appViewer.resourcesManager.currentResources&&t();var onAssetsUpdated=function(){t()};return appViewer.resourcesManager.on("assetsTexturesUpdated",onAssetsUpdated),function(){appViewer.resourcesManager.off("assetsTexturesUpdated",onAssetsUpdated);var e=!0,t=!1,n=void 0;try{for(var r,o=a[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value;URL.revokeObjectURL(i)}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}}},[]),t&&0!==a.length&&"first_person"===n)?(0,tC.jsx)("div",{className:"fire-renderer-container",style:{position:"fixed",left:0,right:0,bottom:0,height:"20dvh",pointerEvents:"none",display:"flex",justifyContent:"center",alignItems:"flex-end",overflow:"hidden",zIndex:-1},children:(0,tC.jsx)("div",{style:{position:"absolute",width:"100%",height:"100%",backgroundImage:"url(".concat(a[s],")"),backgroundSize:"50% 100%",backgroundPosition:"center",backgroundRepeat:"repeat-x",opacity:.7,filter:"brightness(1.2) contrast(1.2)",mixBlendMode:"screen"}})}):null}var iX=n(11111);function MonacoEditor(){var e=(0,tJ.R)(tn),t=e.contents,n=e.line,r=(e.column,e.id),a=e.language,o=e.title,i=(0,tN.uM)("monaco-editor"),s=getComputedStyle(document.body).fontFamily;return((0,tD.useEffect)(function(){r&&!i&&(0,e5.K4)({reactType:"monaco-editor"}),!r&&i&&(0,e5.VG)()},[r]),(0,tD.useEffect)(function(){if(!i&&r){try{saveIde()}catch(e){reportError(e),(0,tE.c0)("Failed to save the editor","Please try again",!0)}tn.id="",tn.contents=""}},[i]),i)?(0,tC.jsxs)("div",{className:"monaco-editor-container",children:[(0,tC.jsx)("div",{className:"monaco-editor-close",children:(0,tC.jsx)(nY.Z,{iconName:nY.K.close,width:26,onClick:function(){(0,e5.VG)()}})}),(0,tC.jsx)("div",{className:"monaco-editor-title",children:o}),(0,tC.jsx)("div",{className:"monaco-editor-wrapper",children:(0,tC.jsx)(iX.ML,{height:"100%",width:"100%",language:a,theme:"vs-dark",line:n,onChange:function(e){tn.contents=null!=e?e:""},value:t,options:{fontFamily:s,minimap:{enabled:!0}}})})]}):null}var getDomainFromUrl=function(e){try{return new URL(e).hostname}catch(n){var t=/^(?:https?:\/\/)?([^/]+)/.exec(e);return t?t[1]:e}},getConsentKey=function(e,t){return"".concat(e,":").concat(t)},checkConsent=function(e,t){var n,r,a=getConsentKey(e,t);return null!=(r=null==(n=tm.e1.iframeConsents)?void 0:n.includes(a))&&r},addConsent=function(e,t){var n=getConsentKey(e,t);tm.e1.iframeConsents||(tm.e1.iframeConsents=[]),tm.e1.iframeConsents.includes(n)||tm.e1.iframeConsents.push(n)};function IframeModal(){var e,t,n=(0,tJ.R)(ta),r=n.url,a=n.title,o=n.id;n.metadata;var i=(0,tN.uM)("iframe-modal"),s=null!=(t=null==(e=ti.Pc.value)?void 0:e.server)?t:"",l=(0,tD.useMemo)(function(){return r?getDomainFromUrl(r):""},[r]),c=(0,ek._)((0,tD.useState)(!0),2),u=c[0],d=c[1],w=(0,re.K)();return((0,tD.useEffect)(function(){o&&r&&!i&&((0,e5.K4)({reactType:"iframe-modal"}),d(!checkConsent(s,l))),!o&&i&&(0,e5.VG)()},[o,r]),i)?(0,tC.jsxs)("div",{className:"iframe-modal-container",children:[(0,tC.jsx)("div",{className:"iframe-modal-close",children:(0,tC.jsx)(nY.Z,{iconName:nY.K.close,width:26,onClick:function(){(0,e5.VG)()}})}),a&&(0,tC.jsx)("div",{className:"iframe-modal-title",children:a}),(0,tC.jsx)("div",{className:"iframe-modal-wrapper",children:u?(0,tC.jsx)("div",{className:"iframe-consent-screen",children:(0,tC.jsxs)("div",{className:"iframe-consent-content",style:{transform:"scale(".concat(w,")")},children:[(0,tC.jsxs)("div",{className:"iframe-consent-message",children:["Allow ",(0,tC.jsx)("strong",{children:s})," to open for you ",(0,tC.jsx)("strong",{children:l}),"?"]}),(0,tC.jsx)(nI.Z,{label:"Open Page",onClick:function(){l&&(addConsent(null!=s?s:"",l),d(!1))},className:"iframe-consent-button"})]})}):(0,tC.jsx)("iframe",{src:r,className:"iframe-modal-iframe",allow:"*",allowFullScreen:!0,sandbox:"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-downloads allow-modals allow-orientation-lock allow-pointer-lock allow-top-navigation-by-user-activation allow-storage-access-by-user-activation"})})]}):null}var i$=n(68470),i0="(max-width: 419px)";function CornerIndicatorStats(){var e=(0,tJ.R)(e5.N_).fullscreen,t=(0,tJ.R)(e2.YM).topRightTimeDisplay,n=(0,ek._)((0,tD.useState)(function(){return"undefined"!=typeof window&&window.matchMedia(i0).matches}),2),r=n[0],a=n[1];return(0,tD.useEffect)(function(){var e=window.matchMedia(i0),sync=function(){return a(e.matches)};return sync(),e.addEventListener("change",sync),function(){return e.removeEventListener("change",sync)}},[]),(0,tC.jsx)("div",{id:"corner-indicator-stats",style:(0,ej._)({position:"fixed",right:0,zIndex:10},"always"===t||"only-fullscreen"===t&&e?{bottom:62*!!r}:{top:0})})}var i1=new URLSearchParams(window.location.search),i3="true"===i1.get("playground")||"1"===i1.get("playground");if(i3){var i2=document.getElementById("ui-root");i2&&(i2.style.display="none")}var i5=n(57809);"Firefox"===ns.ua.getBrowser().name&&document.body.style.setProperty("--thin-if-firefox","thin"),"iPhone"===ns.ua.getDevice().model&&document.documentElement.style.setProperty("--hud-bottom-max","21px");var RobustPortal=function(e){var t=e.children,n=e.to;return(0,rn.createPortal)((0,tC.jsx)(PerComponentErrorBoundary,{children:t}),n)},DisplayQr=function(){var e=(0,tJ.R)(e5.N_).currentDisplayQr;return e?(0,tC.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center",zIndex:15},onClick:function(){e5.N_.currentDisplayQr=null},children:(0,tC.jsx)(rt.tv,{size:384,value:e,style:{display:"block",border:"2px solid black"}})}):null},InGameComponent=function(e){var t=e.children;return(0,tJ.R)(e5.N_).gameLoaded?t:null},InGameUi=function(){var e=(0,tJ.R)(e5.N_),t=e.gameLoaded,n=e.showUI,r=e.disconnectedCleanup,a=(0,tJ.R)(e2.YM),o=a.disabledUiParts,i=a.displayBossBars,s=a.showMinimap,l=(0,tJ.R)(e5.M),c=l.length>0,u=n||c,d=l.some(function(e){return"full-map"===e.reactType})||!0;if(!(!(t||(null==r?void 0:r.wasConnected))||!bot||o.includes("*")))return eb||(eb=new o$(bot.entity.position)),(0,tC.jsxs)(tC.Fragment,{children:[(0,tC.jsxs)(RobustPortal,{to:document.querySelector("#ui-root"),children:[(0,tC.jsx)("div",{style:{display:u?"block":"none"},children:(0,tC.jsxs)(PerComponentErrorBoundary,{children:[(0,tC.jsx)(GameInteractionOverlay,{zIndex:7}),!o.includes("death-screen")&&(0,tC.jsx)(DeathScreenProvider,{}),!o.includes("debug-overlay")&&(0,tC.jsx)(o8,{}),!o.includes("mobile-top-buttons")&&(0,tC.jsx)(MobileTopButtons,{}),!o.includes("players-list")&&(0,tC.jsx)(PlayerListOverlayProvider,{}),!o.includes("chat")&&(0,tC.jsx)(oe,{}),(0,tC.jsx)(SoundMuffler,{}),"never"!==s&&(0,tC.jsx)(MinimapProvider,{adapter:eb,displayMode:"minimapOnly"}),!o.includes("title")&&(0,tC.jsx)(TitleProvider,{}),!o.includes("scoreboard")&&(0,tC.jsx)(ScoreboardProvider,{}),(0,tC.jsx)(IndicatorEffectsProvider,{displayEffects:!o.includes("effects"),displayIndicators:!o.includes("indicators")}),!o.includes("crosshair")&&(0,tC.jsx)(Crosshair,{}),!o.includes("books")&&(0,tC.jsx)(BookProvider,{}),!o.includes("bossbars")&&i&&(0,tC.jsx)(BossBarOverlayProvider,{}),(0,tC.jsx)(VoiceMicrophone,{}),(0,tC.jsx)(ChunksDebugScreen,{}),(0,tC.jsx)(react_RendererDebugMenu,{}),!o.includes("fire")&&(0,tC.jsx)(FireRenderer,{})]})}),(0,tC.jsxs)(PerComponentErrorBoundary,{children:[(0,tC.jsx)(PauseScreen,{}),(0,tC.jsx)(react_FullscreenTime,{}),(0,tC.jsx)(MineflayerPluginHud,{}),(0,tC.jsx)(MineflayerPluginConsole,{}),u&&(0,tC.jsx)(TouchInteractionHint,{}),(0,tC.jsx)(iK.Z,{}),(0,tC.jsxs)("div",{style:{display:u?"block":"none"},children:[!o.includes("xp-bar")&&(0,tC.jsx)(XPBarProvider,{}),!o.includes("hud-bars")&&(0,tC.jsx)(HudBarsProvider,{}),(0,tC.jsx)(BedTime,{})]}),u&&!o.includes("hotbar")&&(0,tC.jsx)(iw.Z,{})]})]}),(0,tC.jsxs)(PerComponentErrorBoundary,{children:[(0,tC.jsx)(SignEditorProvider,{}),(0,tC.jsx)(DisplayQr,{}),(0,tC.jsx)(i5.F,{})]}),(0,tC.jsxs)(RobustPortal,{to:document.body,children:[d&&(0,tC.jsx)(MinimapProvider,{adapter:eb,displayMode:"fullmapOnly"}),u&&(0,tC.jsx)(TouchControls,{}),(0,tC.jsx)(GlobalSearchInput,{})]})]})},AllWidgets=function(){return tS.map(function(e){return(0,tC.jsx)(WidgetDisplay,{name:e.name,Component:e.default},e.name)})},WidgetDisplay=function(e){var t=e.name,n=e.Component;return(0,tN.mE)(t)?(0,tC.jsx)(n,{}):null},PerComponentErrorBoundary=function(e){return e.children.map(function(e,t){return(0,tC.jsx)(nP.SV,{renderError:function(t){var n=(e.type.name||e.type.displayName||"Unknown").replaceAll(/__|_COMPONENT/g,"");return(0,tE.c0)("UI component ".concat(n," crashed!"),"Please report this. Use console for more.",!0,void 0),null},children:e},t)})};if(!("true"===i1.get("no-ui")||i3)){var i4=(0,nO.K)(function(){var e=(0,re.K)();return(0,tC.jsx)(UIProvider,{scale:e,children:(0,tC.jsx)("div",{children:(0,tC.jsxs)(ButtonAppProvider,{children:[(0,tC.jsxs)(RobustPortal,{to:document.body,children:[(0,tC.jsx)("div",{className:"overlay-bottom-scaled",children:(0,tC.jsx)(InGameComponent,{children:(0,tC.jsx)(HeldMapUi,{})})}),(0,tC.jsx)(ControDebug,{}),(0,tC.jsx)("div",{})]}),(0,tC.jsx)(MobilePortraitButtons,{}),(0,tC.jsx)(StorageConflictModal,{}),(0,tC.jsx)(InGameUi,{}),(0,tC.jsxs)(RobustPortal,{to:document.querySelector("#ui-root"),children:[(0,tC.jsx)(AllWidgets,{}),(0,tC.jsx)(SingleplayerProvider,{}),(0,tC.jsx)(CreateWorldProvider,{}),(0,tC.jsx)(rg.ZP,{}),(0,tC.jsx)(KeybindingsScreenProvider,{}),(0,tC.jsx)(ServersListProvider,{}),(0,tC.jsx)(OptionsRenderApp,{}),(0,tC.jsx)(ad,{}),(0,tC.jsx)(ConnectOnlyServerUi,{}),(0,tC.jsx)(TouchAreasControlsProvider,{}),(0,tC.jsx)(SignInMessageProvider,{}),(0,tC.jsx)(PacketsReplayProvider,{}),(0,tC.jsx)(tE.ZP,{}),(0,tC.jsx)(ModsPage,{}),(0,tC.jsx)(tL.ZP,{}),(0,tC.jsx)(SettingReloadModal,{}),(0,tC.jsx)(aV.Z,{}),(0,tC.jsx)(CreditsAboutModal,{}),(0,tC.jsx)(AllSettingsEditor,{}),(0,tC.jsx)(NoModalFoundProvider,{})]}),(0,tC.jsxs)(RobustPortal,{to:document.body,children:[(0,tC.jsx)("div",{className:"overlay-top-scaled",children:(0,tC.jsx)(GamepadUiCursor,{})}),(0,tC.jsx)("div",{}),(0,tC.jsx)(DebugEdges,{}),(0,tC.jsx)(i$.ZP,{}),(0,tC.jsx)(MonacoEditor,{}),(0,tC.jsx)(IframeModal,{}),(0,tC.jsx)(DebugResponseTimeIndicator,{}),(0,tC.jsx)(CornerIndicatorStats,{})]})]})})})},"root");(0,nP.my)((0,tC.jsx)(function(){var e=(0,tJ.R)(rI).state;return(0,tC.jsx)(i4,{},e?"0":"1")},{}),{strictMode:!1,selector:"#react-root"})}(function disableReactProfiling(){window.reactPerfPatchApplied||(window.reactPerfPatchApplied=!0,window.performance.markOrig=window.performance.mark,window.performance.mark=function(e,t){e.startsWith("⚛")||localStorage.enableReactProfiling||window.performance.markOrig(e,t)})})();var i6=n(93585),i8=n(5444),i9=n(55872).Buffer,i7=(0,i6.promisify)(or.parse),se=or.simplify;window.nbt=or;for(var st=[".png",".jpg",".jpeg",".webp"],sn=new Set([64,128,256,512]),sr=(eu=(0,eC._)(function(e){var t,n,r;return(0,eT.Jh)(this,function(a){switch(a.label){case 0:return[4,createImageBitmap(e)];case 1:return n=(t=a.sent()).width,r=t.height,t.close(),[2,{width:n,height:r}]}})}),function(e){return eu.apply(this,arguments)}),sa=(ed=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){return[2,new Promise(function(t,n){var r=new FileReader;r.onload=function(){return t(r.result)},r.onerror=n,r.readAsDataURL(e)})]})}),function(e){return ed.apply(this,arguments)}),so=0,si=["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"];so to teleport to a warp point.",!1,"label-alt",function(){tA.e.value="/warp ",(0,e5.K4)({reactType:"chat"})})}),e2.YM.singleplayerAutoSave){var e=setInterval(function(){e2.YM.singleplayerAutoSave&&(0,tu.kB)(!0)},2e3);watchUnloadForCleanup(function(){clearInterval(e)})}}(0,tt.Ld)(e5.N_,function(){if(!e5.N_.gameLoaded){var e=!0,t=!1,n=void 0;try{for(var r,a=sM[Symbol.iterator]();!(e=(r=a.next()).done);e=!0)(0,r.value)()}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}sM=[]}}),t3(),window.addEventListener("hashchange",function(){t3()}),console.log("JS Loaded in",Date.now()-window.startLoad);var sg=!1;customEvents.on("gameLoaded",function(){var cleanup=function(){appViewer.playerState.reactive.inWater=!1};watchUnloadForCleanup(cleanup);var updateInWater=function(){var e=Object.keys(bot.entity.effects).find(function(e){var t;return(null==(t=loadedData.effects[e.id])?void 0:t.name)==="water_breathing"});sg?(appViewer.playerState.reactive.inWater=!0,appViewer.playerState.reactive.waterBreathing=void 0!==e):cleanup(),updateBackground()};bot.on("physicsTick",function(){var e,t=(null==(e=bot.world.getBlock(bot.entity.position.offset(0,1,0)))?void 0:e.name)==="water";t!==sg&&(sg=t,updateInWater())})});var sm={r:0,g:0,b:0},updateBackground=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sm;sm=e;var t=sg?[0,0,1]:[sm.r,sm.g,sm.b];appViewer.playerState.reactive.backgroundColor=(0,tt.iH)(t)};n(14972),n(6645);var sv=function(e){function MesherWorkerPreloadError(e,t){var n;return(0,tH._)(this,MesherWorkerPreloadError),(n=(0,nb._)(this,MesherWorkerPreloadError,[e])).name="MesherWorkerPreloadError",n.failure=t,console.error("[mesher preload]",t,e),n}return(0,n_._)(MesherWorkerPreloadError,e),MesherWorkerPreloadError}(nK.g);function isMcWebPong(e){return!!e&&(void 0===e?"undefined":(0,eN._)(e))==="object"&&("mc-web-pong"===e.type||!!Array.isArray(e)&&e.some(function(e){return e&&(void 0===e?"undefined":(0,eN._)(e))==="object"&&"mc-web-pong"===e.type}))}function preloadMesherWorkerScript(e){return _preloadMesherWorkerScript.apply(this,arguments)}function _preloadMesherWorkerScript(){return(_preloadMesherWorkerScript=(0,eC._)(function(e){var t,n,r,a,o,i,s,l,c,u,d,w,p,h,M,g,m,v,y,A;return(0,eT.Jh)(this,function(b){switch(b.label){case 0:n=null!=(t=null==e?void 0:e.fetchTimeoutMs)?t:45e3,a=null!=(r=null==e?void 0:e.pingTimeoutMs)?r:1e4,o=new URL("mesher.js",document.baseURI).href,b.label=1;case 1:b.trys.push([1,6,,7]),s=new AbortController,l=window.setTimeout(function(){return s.abort()},n),b.label=2;case 2:return b.trys.push([2,,4,5]),[4,fetch(o,{credentials:"same-origin",cache:"force-cache",signal:s.signal})];case 3:return i=b.sent(),[3,5];case 4:return clearTimeout(l),[7];case 5:return[3,7];case 6:if((null==(u=c=b.sent())?void 0:u.name)==="AbortError")throw new sv("Mesher script fetch timed out after ".concat(n,"ms (").concat(o,")."),{phase:"fetch",code:"timeout"});throw new sv("Mesher script fetch failed (network): ".concat(null!=(w=null!=(d=null==u?void 0:u.message)?d:c)?w:"unknown error",". URL: ").concat(o),{phase:"fetch",code:"network",detail:String(null!=(p=null==u?void 0:u.message)?p:c)});case 7:if(!i.ok)throw new sv("Mesher script HTTP ".concat(i.status," ").concat(i.statusText,": ").concat(o),{phase:"fetch",code:"bad-status",status:i.status});return M=null!=(h=i.headers.get("content-type"))?h:"",[4,i.arrayBuffer()];case 8:if(0===(g=b.sent()).byteLength)throw new sv("Mesher script response was empty: ".concat(o),{phase:"fetch",code:"invalid-body",hint:"empty"});if(m=Math.min(1024,g.byteLength),(v=new TextDecoder().decode(g.slice(0,m)).trimStart()).startsWith("0&&!/javascript|ecmascript/i.test(M)&&console.warn("[mesher preload] Unexpected Content-Type for mesher.js:",M,o);try{y=new Worker(o)}catch(e){throw A=e instanceof Error?e.message:String(e),new sv("Could not construct Worker for mesher (".concat(o,"): ").concat(A),{phase:"worker",code:"construct-failed",message:A})}return[4,new Promise(function(e,t){var onMessage=function(e){isMcWebPong(e.data)&&done()},onError=function(e){fail(new sv("Mesher worker script failed to load or threw during startup: ".concat(e.message||"unknown"," @ ").concat(o),{phase:"worker",code:"script-error",message:e.message}))},onMessageError=function(){fail(new sv("Mesher worker message channel error (structured clone / deserialization). URL: ".concat(o),{phase:"ping",code:"messageerror"}))},n=!1,r=window.setTimeout(function(){n||(n=!0,cleanup(),t(new sv("Mesher worker did not reply with mc-web-pong within ".concat(a,"ms (wrong script, SW stale cache, worker blocked, or COEP/CORP). URL: ").concat(o),{phase:"ping",code:"timeout"})))},a),cleanup=function(){clearTimeout(r);var e=y;y=void 0,e&&(e.removeEventListener("message",onMessage),e.removeEventListener("error",onError),e.removeEventListener("messageerror",onMessageError),e.terminate())},done=function(){n||(n=!0,cleanup(),e())},fail=function(e){n||(n=!0,cleanup(),t(e))};y.addEventListener("message",onMessage),y.addEventListener("error",onError),y.addEventListener("messageerror",onMessageError);try{y.postMessage({type:"mc-web-ping",t:performance.now(),workerIndex:0})}catch(e){var i=e instanceof Error?e.message:String(e);fail(new sv("Failed to post mc-web-ping to mesher worker: ".concat(i),{phase:"ping",code:"post-failed",detail:i}))}})];case 9:return b.sent(),[2]}})})).apply(this,arguments)}var sy=n(78833),getAllInfoLines=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object.fromEntries(Object.entries(e).map(function(e){var t=(0,ek._)(e,2),n=t[0],r=t[1];return"function"==typeof r&&(r=r()),"number"==typeof r&&(r=r.toFixed(2)),[(0,rl.noCase)(n),r]}));if(t)for(var r in n)"fpsAveragePrediction"!==r&&"fpsAverageReal"!==r&&delete n[r];return Object.entries(n).map(function(e){var n=(0,ek._)(e,2),r=n[0],a=n[1];return"".concat(r).concat(t?" (delayed)":"",": ").concat(a)})},sA={default:{urlZip:"https://bucket.mcraft.fun/Future CITY 4.4-slim.zip",spawn:[-133,87,309]},dir:{urlDir:["https://bucket.mcraft.fun/Greenfield%20v0.5.1/map-index.json","https://mcraft-proxy.vercel.app/0/bucket.mcraft.fun/Greenfield%20v0.5.1/map-index.json"]},replay:{replayFileUrl:"https://raw.githubusercontent.com/zardoy/mcraft-fun-replays/refs/heads/main/hypepixel-tnt-lobby.worldstate.txt"}};Error.stackTraceLimit=Error.stackTraceLimit<30?30:Error.stackTraceLimit;var sb="benchmark-backup",s_=(ep=(0,eC._)(function(){var e,t,n,r,a,o,i,s,l,c,u,d,w,p,h,M,g,m,v,y,A,b,_,L=arguments;return(0,eT.Jh)(this,function(C){switch(C.label){case 0:if(e=L.length>0&&void 0!==L[0]?L[0]:5,(n=eS.EX.openBenchmark)&&"1"!==n&&"true"!==n&&"zip"!==n||(n="default"),sessionStorage.getItem(sb))return a=JSON.stringify(JSON.parse(sessionStorage.getItem(sb)),null,2),(0,ti.d8)("Either other tab with benchmark is open or page crashed. Last data backup is downloaded. Reload page to retry."),(o=document.createElement("a")).href="data:text/plain;charset=utf-8,"+encodeURIComponent(a),o.download="benchmark-".concat(null==(r=appViewer.backend)?void 0:r.id,".txt"),o.click(),sessionStorage.removeItem(sb),[2];if(!(i=eS.EX.benchmarkMapZipUrl?{urlZip:eS.EX.benchmarkMapZipUrl,spawn:eS.EX.benchmarkPosition?eS.EX.benchmarkPosition.split(",").map(Number):sA.default.spawn}:sA[n]))return(0,ti.d8)("Benchmark fixture ".concat(n," not found")),[2];return s=0,l=0,c=0,setInterval(function(){var e,t,n=null==(t=window.performance)||null==(e=t.memory)?void 0:e.usedJSHeapSize;n&&(s=(s*l+n)/(l+1),l++,n>c&&(c=n))},200),u=0,d=void 0,w=0,p=0,h=function(){p++,requestAnimationFrame(h)},requestAnimationFrame(h),setInterval(function(){u=(u*w+p)/(w+1),w++,d=void 0===d?p:Math.min(d,p),p=0},1e3),v="".concat(null!=(m=null!=(g=null!=(M=i.urlZip)?M:null==(t=i.urlDir)?void 0:t.join("|"))?g:i.replayFileUrl)?m:"unknown"),i.spawn&&(v+=" - ".concat(i.spawn.join(" "))),v+=" - ".concat(e),(0,ti.d8)("Benchmark requested... Getting screen refresh rate"),[4,new Promise(function(e){setTimeout(e,1e3)})];case 1:C.sent(),C.label=2;case 2:return y=0,A=setInterval(function(){if(window.world){var e=JSON.parse(JSON.stringify(window.benchmarkAdapter));e.timePassed=((Date.now()-y)/1e3).toFixed(2),sessionStorage.setItem(sb,JSON.stringify(e))}},500),[4,(0,td.iG)()];case 3:return b=C.sent(),_={get fixture(){return v},get worldLoadTimeSeconds(){return window.worldLoadTime},get mesherWorkersCount(){return window.world.worldRendererConfig.mesherWorkers},get mesherProcessAvgMs(){return window.world.workersProcessAverageTime},get mesherProcessTotalMs(){return window.world.workersProcessAverageTime*window.world.workersProcessAverageTimeCount},get mesherProcessWorstMs(){return window.world.maxWorkersProcessTime},get chunksFullInfo(){var j,D,x;return null!=(x=null!=(D=appViewer.nonReactiveState.world.chunksFullInfo)?D:null==(j=window.world)?void 0:j.chunksFullInfo)?x:"-"},get averageRenderTimeMs(){return window.world.renderTimeAvg},get worstRenderTimeMs(){return window.world.renderTimeMax},get fpsAveragePrediction(){return 1e3/window.world.renderTimeAvg},get fpsWorstPrediction(){return 1e3/window.world.renderTimeMax},get fpsAverageReal(){return"".concat(window.world.fpsAverage.toFixed(0)," / ").concat(b)},get fpsWorstReal(){var k;return null!=(k=window.world.fpsWorst)?k:-1},get backendInfoReport(){return window.world.backendInfoReport},get fpsAverageMainThread(){return u},get fpsWorstMainThread(){return null!=d?d:-1},get memoryUsageAverage(){return(0,o3.Z)(s)},get memoryUsageWorst(){return(0,o3.Z)(c)},get gpuInfo(){return appViewer.rendererState.renderer},get hardwareConcurrency(){return navigator.hardwareConcurrency},get userAgent(){return navigator.userAgent},clientVersion:"".concat("v2.1.0"," ").concat("2026-07-12T10"," ").concat("/releases/v2.1.0")},window.benchmarkAdapter=_,e2.hI.value.add("renderDistance"),e2.YM.renderDistance=e,e2.hI.value.add("renderDebug"),e2.YM.renderDebug="advanced",e2.hI.value.add("waitForChunksRender"),e2.YM.waitForChunksRender=!1,o5(i.urlZip,void 0,i.urlDir,i.replayFileUrl,{connectEvents:{serverCreated:function(){i.spawn&&(localServer.spawnPoint=(0,sy._)(eB.A,(0,eE._)(i.spawn)),localServer.on("newPlayer",function(e){e.on("dataLoaded",function(){e.position=(0,sy._)(eB.A,(0,eE._)(i.spawn)),y=Date.now()})}))}}}),document.addEventListener("cypress-world-ready",function(){clearInterval(A),sessionStorage.removeItem(sb);var e=getAllInfoLines(window.benchmarkAdapter),downloadFile=function(){var t,n=document.createElement("a");n.href="data:text/plain;charset=utf-8,"+encodeURIComponent(e.join("\n")),n.download="benchmark-".concat(null==(t=appViewer.backend)?void 0:t.id,".txt"),n.click()};eS.EX.downloadBenchmark&&downloadFile();var t=document.createElement("div");t.style.position="fixed",t.style.top="20px",t.style.right="10px",t.style.backgroundColor="rgba(0,0,0,0.8)",t.style.color="white",t.style.padding="10px",t.style.zIndex="1000",t.style.fontFamily="monospace",t.style.maxWidth="80%",t.style.maxHeight="90vh",t.style.overflow="auto",t.id="benchmark-panel";var n=document.createElement("button");n.textContent="Download Results",n.style.marginBottom="10px",n.style.padding="5px 10px",n.style.backgroundColor="#4CAF50",n.style.color="white",n.style.border="none",n.style.borderRadius="4px",n.style.cursor="pointer",n.onclick=downloadFile,t.appendChild(n);var r=document.createElement("pre");r.style.whiteSpace="pre-wrap",r.style.wordBreak="break-word",t.appendChild(r),r.textContent=e.join("\n"),document.body.appendChild(t)}),[2]}})}),function(){return ep.apply(this,arguments)});if(window.addEventListener("beforeunload",function(){sessionStorage.removeItem(sb)}),document.addEventListener("pointerlockchange",function(e){var t=document.querySelector("#benchmark-panel");t&&(t.hidden=!!document.pointerLockElement)}),(0,tt.Ld)(e5.M,function(){var e=document.querySelector("#benchmark-panel");e&&e5.M.length>1&&(e.hidden=!0)}),window.debug=eR(),i3||r6(),i3&&n.e("11").then(n.bind(n,55972)),sh().then(function(){ac.serviceWorkerLoaded=!0}),getCollisionInteractionShapes(),(0,rA.ZP)(),(0,tq.YT)(),customChannels(),"2"===eS.EX.testCrashApp)throw Error("test");function hideCurrentScreens(){var e=e5.M.find(function(e){return"app-status"===e.reactType});e5.eJ["main-menu"]=e5.M.filter(function(t){return t!==e}),(0,e5.w6)("",e?[e]:[])}var loadSingleplayer=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a=(null!=(e=eS.TK.serverSetting)?e:[]).map(function(e){return e.split(":")}).reduce(function(e,t){var n=(0,ek._)(t,2),r=n[0],a=n[1];return e[r]=JSON.parse(a),e},{});src_connect((0,ej._)({singleplayer:!0,username:e2.YM.localUsername,serverOverrides:t,serverOverridesFlat:(0,eD._)((0,ej._)({},n,a),{chunkTemplate:eS.EX.chunkTemplate,blockMap:eS.EX.chunkTemplateBlockMap})},r))};function src_connect(e){return _connect.apply(this,arguments)}function _connect(){return(_connect=(0,eC._)(function(e){var t,n,r,a,o,i,s,l,c,u,d,w,p,h,M,g,m,v,y,A,b,_,L,C,j,D,x,k,N,T,S,z,q,E,I,P,Y,O,R,B,U,Q,F,W,J,V,G,H,Z,K,X,$,ee,et,en,er,ea,eo,ei,es,el,ec,eu,ed,ew,ef,ep;return(0,eT.Jh)(this,function(U){var en,eh,eM,eg;switch(U.label){case 0:if(e5.N_.gameLoaded)return[2];if(!sessionStorage.delayLoadUntilFocus)return[3,2];return[4,new Promise(function(e){document.hasFocus()?e(void 0):window.addEventListener("focus",e)})];case 1:U.sent(),U.label=2;case 2:if(!sessionStorage.delayLoadUntilClick)return[3,4];return[4,new Promise(function(e){window.addEventListener("click",e)})];case 3:U.sent(),U.label=4;case 4:(0,e5.om)(),rg.ou.showReconnect=!1,ia.a.loading=!0,ia.a.start=Date.now(),e5.N_.hasErrors=!1,e5.N_.hadConnected=!1,ti.Pc.value=e,ti.Pc.hadWorldLoaded=!1,n=e.singleplayer,r=!!e.peerId,e5.N_.singleplayer=n,e5.N_.flyingSquid=n||r,n||r||!e.server||!1===e.saveServerToHistory||(a=parseServerAddress(e.server),(0,a9.o)(a.host,e.botVersion)),o=e2.YM.renderDistance,s={host:(i=parseServerAddress(e.server)).host,port:i.port},(null==(t=e.proxy)?void 0:t.startsWith(":"))&&(e.proxy="".concat(location.protocol,"//").concat(location.hostname).concat(e.proxy)),e.proxy&&"80"!==location.port&&"443"!==location.port&&!/:\d+$/.test(e.proxy)&&(l=e.proxy.startsWith("https://")||"https:"===location.protocol,e.proxy="".concat(e.proxy,":").concat(l?443:80)),u={host:(c=parseServerAddress(e.proxy,!1)).host,port:c.port},d=e.username,e.server&&console.log("connecting to ".concat(s.host,":").concat(null!=(w=s.port)?w:25565)),console.log("using player username",d),p=(0,tF.xC)(),h=e.server?"Connecting to server":"Logging in",p.beginStage("connect",h),M=!1,m=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!M){ia.a.loading=!1;var n=eS.EX.alwaysReconnect;(!t&&(null==(e=e5.N_.appConfig)?void 0:e.allowAutoConnect)&&eS.EX.autoConnect&&ti.Pc.hadWorldLoaded||n)&&("quick"===n||"fast"===n?(0,rg.kh)():location.reload()),_.abort(),M=!0,p.end(),g.end(),g.emit("end",""),e5.N_.disconnectedCleanup={callback:function(){appViewer.resetBackend(!0),D=window.localServer=window.server=void 0,e5.rl.viewerConnection=!1,g&&(g.removeAllListeners(),g._client.removeAllListeners(),g._client={write:function(e){console.warn("Tried to write packet",e,"after bot was destroyed")}},window.bot=g=void 0),v()},date:Date.now(),wasConnected:e5.N_.hadConnected}}},v=function(){n&&!tb.RL.inMemorySave&&(0,ry.hz)(function(){})},y=void 0,A=function(){y&&(null==g?void 0:g._client)&&g._client.state!==tK.states.PLAY&&(rg.ou.descriptionHint="Last Server Packet: ".concat(y))},b=function(e,t){if(console.error("[".concat(t,"]"),e),!("ResizeObserver loop completed with undelivered notifications."===e||String(e).includes("sourceMappingURL"))){if((0,ni.x)())throw e;if(e5.N_.hasErrors=!0,!e5.N_.gameLoaded){var n=e5.M.findIndex(function(e){return"app-status"===e.reactType}),r=!0,a=!1,o=void 0;try{for(var i,s=e5.M.slice(n)[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var l=i.value;(0,e5.VG)(l)}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}(0,ti.d8)((0,ti.d5)(t,e),!0),rg.ou.showReconnect=!0,A(),m()}}},_=new AbortController,window.addEventListener("unhandledrejection",function(e){var t,n;!("ServerPluginLoadFailure"===e.reason.name&&confirm("Failed to load server plugin ".concat(e.reason.pluginName," (invoking ").concat(e.reason.pluginMethod,"). Continue?")))&&(null!=(n=e.reason)&&null!=(t=n.stack)&&t.includes("chrome-extension://")||b(e.reason,"Unhandled promise rejection"))},{signal:_.signal}),window.addEventListener("error",function(e){var t=rg.ou.status;setTimeout(function(){var n;rg.ou.status!==t||e5.N_.gameLoaded||b(null!=(n=e.error)?n:e.message,"Uncaught window error")},1e4)},{signal:_.signal}),!e.server||e.viewerWsConnect||i.isWebSocket||(console.log("using proxy ".concat(u.host,":").concat(u.port||location.port)),nC.setProxy({hostname:u.host,port:u.port,headers:{Authorization:"Bearer ".concat(null!=(C=new URLSearchParams(location.search).get("token"))?C:"")},artificialDelay:eS.EX.addPing?Number(eS.EX.addPing):void 0})),j=function(){},k=void 0,U.label=5;case 5:return U.trys.push([5,31,,32]),[4,p.executeWithMessage("Loading mesher","preload-mesher",preloadMesherWorkerScript)];case 6:return U.sent(),Object.assign(S=(0,su.Z)({},null!=(T=e.serverOverrides)?T:{},e2.YM.localServerOptions,aB()),null!=(z=e.serverOverridesFlat)?z:{}),[4,p.executeWithMessage("Downloading Minecraft data","download-mcdata",(0,eC._)(function(){var e,t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:return ia.a.networkOnlyStart=Date.now(),e=[],t=function(t,n){n?e=e.filter(function(e){return e!==t}):e.push(t),p.setSubStage("download-mcdata","(".concat(e.join(", "),")"))},[4,Promise.all([(0,nj.downloadAllMinecraftData)(t),(0,nj.downloadOtherGameData)(t)])];case 1:return n.sent(),ia.a.networkOnlyStart=0,[2]}})}))];case 7:if(U.sent(),q=!1,en=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:if(q)return[2];return q=!0,appViewer.resourcesManager.currentConfig={version:e,texturesVersion:e2.YM.useVersionsTextures||void 0},[4,p.executeWithMessage("Processing downloaded Minecraft data",(0,eC._)(function(){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,(0,nj.loadMinecraftData)(e)];case 1:return t.sent(),[4,appViewer.resourcesManager.loadSourceData(e)];case 2:return t.sent(),[2]}})}))];case 1:return t.sent(),[4,p.executeWithMessage("Applying user-installed resource pack",(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,tq.cj)(!0)];case 1:return t.sent(),[3,3];case 2:if(console.error(e=t.sent()),!confirm("Failed to apply texture pack. See errors in the console. Continue?"))throw e;return[3,3];case 3:return[2]}})}))];case 2:return t.sent(),[4,p.executeWithMessage("Preparing textures",(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,appViewer.resourcesManager.updateAssetsData({})];case 1:return e.sent(),[2]}})}))];case 3:return t.sent(),[2]}})}),E=function(e){return en.apply(this,arguments)},I=e.botVersion||(n?S.version:void 0),(P=function(e){if(e&&(0,rc.U)(e)>=(0,rc.U)(r1.iD))throw new nK.g("Version ".concat(e," is not supported due to critical world display issues. Please use version ").concat(r1.iD," or earlier."))})(I),e.worldStateFileContents){try{x=(0,tW.jg)(e.worldStateFileContents)}catch(e){throw console.error(e),new nK.g("Failed to start local replay server: ".concat(e))}I=x.version,P(I)}if(!n)return[3,12];if(!((R=new URLSearchParams(location.search).getAll("serverPlugin")).length>0&&!S.worldFolder))return[3,9];return console.log("Placing server plugins",R),null!=(B=S).worldFolder||(B.worldFolder="/temp"),[4,aJ("/temp",R)];case 8:U.sent(),console.log("Server plugins placed"),U.label=9;case 9:if(D=window.localServer=window.server=startLocalServer(S),null==e||null==(O=e.connectEvents)||null==(Y=O.serverCreated)||Y.call(O),D.pluginsReady)return[3,11];return[4,p.executeWithMessage("Starting local server",(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,new Promise(function(e){D.once("pluginsReady",e)})];case 1:return e.sent(),[2]}})}))];case 10:U.sent(),U.label=11;case 11:D.on("newPlayer",function(e){e.on("loadingStatus",function(e){p.setMessage(e)})}),flyingSquidEvents(),U.label=12;case 12:if(e.authenticatedAccount&&(d="you"),!n)return[3,13];return Q="Local server is still starting",[3,18];case 13:if(!r)return[3,14];return Q="Connecting to peer",[3,18];case 14:if(!e.server)return[3,17];if(I)return[3,16];return F=(0,nj.getVersionAutoSelect)(),W=(0,tF.Iz)(p,"Fetching server version. Preffered: ".concat(F)),ia.a.networkOnlyStart=Date.now(),[4,n2(s.host,s.port?Number(s.port):void 0,F)];case 15:J=U.sent(),W.end(),I=J.version,P(I),U.label=16;case 16:return Q="Connecting to server ".concat(s.host,":").concat(null!=(V=s.port)?V:25565," with version ").concat(I),[3,18];case 17:Q=e.viewerWsConnect?"Connecting to Mineflayer WebSocket server ".concat(e.viewerWsConnect):e.worldStateFileContents?"Loading local replay server":"We have no idea what to do",U.label=18;case 18:if(p.setMessage(Q),!i.isWebSocket)return[3,20];return ia.a.networkOnlyStart=Date.now(),[4,n0(s.host)];case 19:L=U.sent().mineflayerStream,U.label=20;case 20:if(G=null,H="object"===(0,eN._)(e.authenticatedAccount)?e.authenticatedAccount.cachedTokens:{},!e.authenticatedAccount)return[3,22];return[4,(0,n7.Z)({tokenCaches:H,proxyBaseUrl:e.proxy,setProgressText:function(e){p.setMessage(e)},setCacheResult:function(e){G=e},connectingServer:s.host})];case 21:Z=U.sent(),U.label=22;case 22:if(!r)return[3,24];return[4,aC(e.peerId,e.peerOptions)];case 23:L=U.sent(),U.label=24;case 24:if(!e.viewerWsConnect)return[3,28];return[4,a3(e.viewerWsConnect)];case 25:if(X=(K=U.sent()).version,$=K.time,K.requiresPass&&!(ee=prompt("Enter password")))throw new nK.g("Password is required");return console.log("Latency:",Date.now()-$,"ms"),P(I=X),[4,E(X)];case 26:return U.sent(),(0,ti.d8)("Connecting to WebSocket server ".concat(e.viewerWsConnect)),[4,a5(e.viewerWsConnect)];case 27:L=U.sent().clientDuplex,ee&&L.write(ee),e5.rl.viewerConnection=!0,U.label=28;case 28:if(!I)return[3,30];return null!=(et=ia.a).networkOnlyStart||(et.networkOnlyStart=Date.now()),[4,E(I)];case 29:U.sent(),U.label=30;case 30:return er=L?"minecraft-web-client":void 0,g=sc().createBot((0,eD._)((0,ej._)({host:s.host,port:s.port?+s.port:void 0,brand:er,version:I||!1},L?{stream:L}:{},n||r||x?{keepAlive:!1}:{},n?{version:S.version,connect:function(){},Client:sp.Z}:{},x?{connect:function(){},Client:sp.Z}:{}),{onMsaCode:function(e){iN.code=e.user_code,iN.link=e.verification_uri,iN.expiresOn=Date.now()+1e3*e.expires_in},sessionServer:null==Z||null==(N=Z.sessionEndpoint)?void 0:N.toString(),auth:e.authenticatedAccount?(eh=(0,eC._)(function(t,n){return(0,eT.Jh)(this,function(r){switch(r.label){case 0:Z.setOnMsaCodeCallback(n.onMsaCode),null==Z||Z.setConnectingVersion(t.version),t.authflow=Z.authFlow,r.label=1;case 1:return r.trys.push([1,,3,4]),iN.abortController=(0,tt.iH)(new AbortController),[4,Promise.race([n9().authenticate(t,n),new Promise(function(e,t){iN.abortController.signal.addEventListener("abort",function(){t(new nK.g("Aborted by user"))})})])];case 2:return r.sent(),iN.shouldSaveToken?((0,a9.ky)(function(e){var n=e.find(function(e){return e.username===t.username});return n?n.cachedTokens=(0,ej._)({},n.cachedTokens,G):e.push({username:t.username,cachedTokens:(0,ej._)({},H,G)}),e}),j=function(){(0,a9.Mf)(function(e){return(0,eD._)((0,ej._)({},e),{authenticatedAccountOverride:t.username})},e.serverIndex)}):j=function(){(0,a9.Mf)(function(e){return(0,eD._)((0,ej._)({},e),{authenticatedAccountOverride:void 0})},e.serverIndex)},(0,ti.d8)("Authentication successful. Logging in to server"),[3,4];case 3:return iN.code="",[7];case 4:return[2]}})}),function(e,t){return eh.apply(this,arguments)}):void 0,username:d,viewDistance:o,checkTimeoutInterval:24e4,closeTimeout:24e4,respawn:e2.YM.autoRespawn,maxCatchupTicks:0,"mapDownloader-saveToFile":!1})),window.bot=g,e.viewerWsConnect&&a6(),customEvents.emit("mineflayerBotCreated"),n||r||x?((n||r)&&(ea=g.supportFeature,g.supportFeature=function(e){return!sf.includes(e)&&ea(e)}),g.emit("inject_allowed"),g._client.emit("connect")):L?g._client.emit("connect"):(eo=function(){g._client.socket.handleStringMessage=function(e){return!(e.startsWith("proxy-message")||e.startsWith("proxy-command:"))&&(!e.startsWith("proxy-shutdown:")||(console.log("Got current connection proxy shutdown message",e),k=e.slice(15),!1))};var closeUnknownReason=function(){g&&!M&&g.emit("end",null!=k?k:"WebSocket connection closed with unknown reason")};g._client.socket.on("connect",function(){console.log("Proxy WebSocket connection established"),g._client.socket._ws.addEventListener("close",function(){console.log("WebSocket connection closed"),setTimeout(function(){closeUnknownReason()},1e3)}),g._client.socket.on("close",function(){setTimeout(function(){closeUnknownReason()})})})},g._client.socket?eo():(ei=g._client.setSocket.bind(g._client),g._client.setSocket=function(e){g&&(ei(e),eo())})),[3,32];case 31:return es=U.sent(),b(es,"Connection setup error"),[3,32];case 32:if(!g)return[2];return el=r?setTimeout(function(){throw new nK.g("Spawn timeout. There might be error on the other side, check console.")},2e4):void 0,g.on("error",function(e){return b(e,"Mineflayer error")}),g.on("kicked",function(e){console.log("You were kicked!",e);var t=(0,aj.$)(e),n=t.formatted,r=t.plain,a=!0,o=!1,i=void 0;try{for(var s,l=e5.M[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;(0,e5.VG)(c)}}catch(e){o=!0,i=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw i}}(0,ti.d8)("The Minecraft server kicked you. Kick reason: ".concat(r),!0,void 0,void 0,n),rg.ou.showReconnect=!0,m(!0)}),ec=function(e,t,n,r){y=r.toString()},g._client.on("packet",ec),eu=function(e){"play"===e&&g._client.removeListener("packet",ec)},g._client.on("state",eu),g.on("end",function(e){if(!M){console.log("disconnected for",e),"socketClosed"===e&&(e=null!=k?k:"Connection with proxy server lost");var t=!0,n=!1,r=void 0;try{for(var a,o=e5.M[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value;(0,e5.VG)(i)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}if((0,ti.d8)("You have been disconnected from the server. End reason:\n".concat(e),!0),rg.ou.showReconnect=!0,A(),m(),(0,ni.x)())throw Error("disconnected: ".concat(e))}}),onBotCreate(),g.once("login",function(){e5.N_.hadConnected=!0,_.abort(),ia.a.networkOnlyStart=0,p.setMessage("Loading world")}),ed=!1,eM=(0,eC._)(function(e){return(0,eT.Jh)(this,function(t){switch(t.label){case 0:return[4,new Promise(function(t){if(ed)return void t();var n=(0,tt.Ld)(appViewer.rendererState,function(){if(appViewer.rendererState.world.allChunksLoaded&&appViewer.nonReactiveState.world.chunksTotalNumber)ed=!0,t(),n();else{var r=Math.round(Object.keys(appViewer.rendererState.world.chunksLoaded).length/appViewer.nonReactiveState.world.chunksTotalNumber*100);null==e||e.reportProgress("chunks",r/100)}})})];case 1:return t.sent(),[2]}})}),ew=function(e){return eM.apply(this,arguments)},ef=!n&&!r,eg=(0,eC._)(function(){var t,r,a,i,s,l,c,u,d;return(0,eT.Jh)(this,function(w){switch(w.label){case 0:if(!tq.E3.isServerInstalling)return[3,3];return[4,new Promise(function(e){(0,tt.Ld)(tq.E3,function(){tq.E3.isServerInstalling||e()})})];case 1:return w.sent(),[4,appViewer.resourcesManager.promiseAssetsReady];case 2:w.sent(),w.label=3;case 3:if(rg.ou.isError)return[2];if(null==(t=appViewer.resourcesManager.currentResources)?void 0:t.itemsRenderer)return[3,5];return[4,appViewer.resourcesManager.updateAssetsData({})];case 4:w.sent(),w.label=5;case 5:i=Date.now(),console.log("try to focus window"),null==(r=(a=window).focus)||r.call(a),ew().then(function(){window.worldLoadTime=(Date.now()-i)/1e3,console.log("All chunks done and ready! Time from renderer connect to ready",(Date.now()-i)/1e3,"s"),document.dispatchEvent(new Event("cypress-world-ready"))}),w.label=6;case 6:return w.trys.push([6,9,,10]),el&&clearTimeout(el),t$.reactive.onlineMode=!!e.authenticatedAccount,p.setMessage("Placing blocks (starting viewer)"),!e.worldStateFileContents||e.worldStateFileContents.length<3145728?localStorage.lastConnectOptions=JSON.stringify(e):localStorage.removeItem("lastConnectOptions"),null==(s=e.onSuccessfulPlay)||s.call(e),j(),(l=(0,a9.x2)())&&setTimeout(function(){g.chat("/login ".concat(l)),(0,a8.gL)({password:l,mode:"login",source:"manual",preSaved:!0})},500),console.log("bot spawned - starting viewer"),[4,appViewer.startWorld(g.world,o)];case 7:var h;if(w.sent(),appViewer.backend&&appViewer.worldView.init(g.entity.position,g),initMotionTracking(),c=function(){var e,t;appViewer.lastCamUpdate=Date.now(),null==(e=appViewer.backend)||e.updateCamera(g.entity.position,g.entity.yaw,g.entity.pitch),null==(t=appViewer.worldView)||t.updatePosition(g.entity.position)},g.on("move",c),c(),p.setMessage("Setting callbacks"),(0,te.GW)(),rg.ou.isError)return[2];return h=(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:if("1"===eS.EX.sp||(e="sp-only"===e2.YM.waitForChunksRender?!!n:e2.YM.waitForChunksRender,!appViewer.backend||appViewer.rendererState.world.allChunksLoaded||!e))return[2];return[4,p.executeWithMessage("Loading chunks","chunks",(0,eC._)(function(){return(0,eT.Jh)(this,function(e){switch(e.label){case 0:return[4,ew(p)];case 1:return e.sent(),[2]}})}))];case 1:return t.sent(),[2]}})}),[4,function(){return h.apply(this,arguments)}()];case 8:return w.sent(),setTimeout(function(){eS.EX.suggest_save&&(0,tE.c0)("Suggestion","Save the world to keep your progress!",!1,void 0,(0,eC._)(function(){var e,t;return(0,eT.Jh)(this,function(n){switch(n.label){case 0:return[4,ii()];case 1:if(!(e=n.sent()))return[2];return t=e.split("/").pop(),g.end(),location.search="loadSave=".concat(t),[2]}})}))},600),e5.N_.gameLoaded=!0,e5.N_.loadedServerIndex=null!=(u=e.serverIndex)?u:"",customEvents.emit("gameLoaded"),eS.EX.testIosCrash&&setTimeout(function(){console.log("Starting iOS crash test with memory pressure...");var e=[];try{for(;;){var t=Array.from({length:1048576}).fill(0).map(function(e,t){return t});e.push(t)}}catch(e){console.error("Memory allocation failed:",e)}},1e3),p.end(),(0,ti.d8)(void 0),hideCurrentScreens(),[3,10];case 9:return d=w.sent(),b(d,"World load error"),[3,10];case 10:return ti.Pc.hadWorldLoaded=!0,[2]}})}),ep=function(){return eg.apply(this,arguments)},g.once(ef?"forcedMove":"health",ep),n&&e.serverOverrides.worldFolder&&(tb.RL.saveLoaded=!0),e.ignoreQs||customEvents.on("gameLoaded",function(){var e=null!=(a=eS.TK.command)?a:[],t=!0,n=!1,r=void 0;try{for(var a,o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var s=o.value;s.startsWith("/")||(s="/".concat(s)),tryHandleBuiltinCommand(s)||g.chat(s)}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}),[2]}})})).apply(this,arguments)}if(window.addEventListener("connect",function(e){src_connect(e.detail)}),window.addEventListener("singleplayer",function(e){var t=e.detail,n=t.connectOptions;loadSingleplayer((0,ex._)(t,["connectOptions"]),{},n)}),document.body.addEventListener("touchend",function(e){(0,e5.z7)(!0)&&(null==e_?void 0:e_.touch.identifier)===e.changedTouches[0].identifier&&(Date.now()-e_.start>500?e_.elem.dispatchEvent(new Event("longtouch",{bubbles:!0})):e_.elem.click(),e_=void 0)}),document.body.addEventListener("touchstart",function(e){var t=e.target.closest("#ui-root");if((0,e5.z7)(!0)&&t){e.preventDefault();var n=e.composedPath(),r=!0,a=!1,o=void 0;try{for(var i,s,l=n[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var c=s.value;if(c.click){i=c;break}}}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}i&&(e_={touch:e.touches[0],elem:i,start:Date.now()})}},{passive:!1}),!i3)try{!function(){var waitForConfigFsLoad=function(e){var t,checkDone=function(){return!!e5.N_.fsReady&&!!e5.N_.appConfig&&(e(),null==t||t(),!0)};if(!checkDone()){var n=e5.N_.appConfig?"Loading":"Loading config";(0,ti.d8)(n),t=(0,tt.Ld)(e5.N_,checkDone)}},e=sessionStorage.getItem("reconnectOptions")?JSON.parse(sessionStorage.getItem("reconnectOptions")):void 0;if(e&&(sessionStorage.removeItem("reconnectOptions"),Date.now()-e.timestamp<12e4))return waitForConfigFsLoad((0,eC._)(function(){return(0,eT.Jh)(this,function(t){return src_connect(e.value),[2]})}));if(eS.EX.reconnect&&localStorage.lastConnectOptions,"1"===eS.EX.singleplayer||"1"===eS.EX.sp)return waitForConfigFsLoad((0,eC._)(function(){return(0,eT.Jh)(this,function(e){return loadSingleplayer({},(0,ej._)({worldFolder:void 0},eS.EX.version?{version:eS.EX.version}:{})),[2]})}));if(eS.EX.loadSave)return waitForConfigFsLoad((c=(0,eC._)(function(){var e;return(0,eT.Jh)(this,function(t){switch(t.label){case 0:e="/data/worlds/".concat(eS.EX.loadSave),t.label=1;case 1:return t.trys.push([1,4,,5]),[4,eP().promises.stat(e)];case 2:return t.sent(),[4,aY(e)];case 3:return t.sent(),[3,5];case 4:return t.sent(),alert("Save ".concat(e," not found")),[3,5];case 5:return[2]}})}),function(){return c.apply(this,arguments)}));if(eS.EX.ip||eS.EX.proxy)return waitForConfigFsLoad(function(){var e,t;if(eS.EX.autoConnect&&(null==(e=e5.N_.appConfig)?void 0:e.allowAutoConnect))return void src_connect({server:eS.EX.ip,proxy:getCurrentProxy(),botVersion:null!=(t=eS.EX.version)?t:void 0,username:getCurrentUsername()});(0,ti.d8)(void 0),eS.EX.onlyConnect?(0,e5.K4)({reactType:"only-connect-server"}):(0,e5.K4)({reactType:"editServer"})});if(eS.EX.connectPeer){var t=eS.EX.connectPeer,n={};eS.EX.server&&(n.server=eS.EX.server);var r=eS.EX.peerVersion,a=e2.YM.guestUsername;if(e2.YM.askGuestName&&(a=prompt("Enter your username to connect to peer",a)),!a)return;e2.YM.guestUsername=a,src_connect({username:a,botVersion:r||void 0,peerId:t,peerOptions:n});return}if(eS.EX.viewerConnect)return src_connect({username:"viewer-".concat(Math.random().toString(36).slice(2,10)),viewerWsConnect:eS.EX.viewerConnect});if(eS.EX.modal){var o=eS.EX.modal.split(","),i=!0,s=!1,l=void 0;try{for(var c,u,d,w,p=o[Symbol.iterator]();!(i=(w=p.next()).done);i=!0){var h=w.value;(0,e5.K4)({reactType:h})}}catch(e){s=!0,l=e}finally{try{i||null==p.return||p.return()}finally{if(s)throw l}}return}!eS.EX.serversList||(null==(d=e5.N_.appConfig)||null==(u=d.appParams)?void 0:u.serversList)||(0,e5.K4)({reactType:"serversList"}),isInterestedInDownload()&&o4(),aq()}()}catch(e){console.error(e),alert("Something went wrong: ".concat(e))}var sL=document.querySelector(".initial-loader");sL&&(sL.style.opacity="0",sL.style.pointerEvents="none"),window.pageLoaded=!0,i3||appViewer.waitBackendLoadPromises.push(rS()),eS.EX.openBenchmark&&s_(eS.EX.renderDistance?+eS.EX.renderDistance:void 0),window.addEventListener("keydown",function(e){if("KeyB"===e.code&&e.shiftKey&&!e5.N_.gameLoaded&&0===e5.M.length){e.preventDefault();var t=new URL(window.location.href);t.searchParams.set("openBenchmark","true"),window.history.replaceState({},"",t.toString()),s_()}})},391:function(e,t,n){"use strict";n.d(t,{X0:()=>getJeiItems,GW:()=>onGameLoad,xi:()=>getItemRecipes,nb:()=>getItemUsages,Yq:()=>x,HX:()=>openPlayerInventory});var r,a=n(59240),o=n(25763),i=n(81979);n(26980),n(7960),n(46302),n(83902),n(64813),n(96573),n(94244),n(42050),n(40542),n(86070),n(58819),n(72558),n(90804),n(24705),n(53346),n(7611),n(65340),n(2850),n(95790),n(66395),n(56843),n(98474),n(52251),n(27969),n(50183),n(52307),n(8416),n(93118),n(82766),n(37151),n(20142),n(89909),n(24578),n(89437),n(802),n(52895),n(46525),n(83930),n(18369),n(41494),n(66616),n(39222),n(83282),n(59237),n(60353),n(40332),n(72040),n(52768),n(2249),n(55058),n(29127),n(67022),n(56520),n(16461),n(99654),n(22245),n(52437);var s=n(44846),l=n(72960),c=n(36025),u=n(92343),d=n(46290),w=n.n(d),p=n(76610),h=n(30966),M=n(40451),g=n(30367),m=n(80297);n(98719),n(84317),n(8957),n(44792),n(33785),n(9587),n(13278),n(64391),n(86838),n(80062),n(50433),n(97336),n(65855),n(56656),n(42449),n(44982),n(11747),n(96220),n(10591),n(8705),n(79653);var v=new Map;v.set(/_slab$/,function(e){return"Craft it by placing 3 blocks of the material in a row in a crafting table."}),v.set(/_stairs$/,function(e){return"Craft it by placing 6 blocks of the material in a stair shape in a crafting table."}),v.set(/_log$/,function(e){return"You can get it by chopping down a tree. To chop down a tree, hold down the left mouse button until the tree breaks."}),v.set(/_leaves$/,function(e){return"You can get it by breaking the leaves of a tree with a tool that has the Silk Touch enchantment or by using shears."}),v.set(["mangrove_roots"],function(e){return"You can get it by breaking the roots of a mangrove tree."}),v.set(["mud"],"Mud is a block found abundantly in mangrove swamps or created by using a water bottle on a dirt block. It can be used for crafting or converted into clay using pointed dripstone."),v.set(["clay"],"Clay is a block found underwater or created by using a water bottle on a mud block. It can be used for crafting or converted into terracotta using a furnace."),v.set(["terracotta"],"Terracotta is a block created by smelting clay in a furnace. It can be used for crafting or decoration."),v.set(["stone"],"Stone is a block found underground."),v.set(["dirt"],"Dirt is a block found on the surface."),v.set(["sand"],"Sand is a block found on the surface near water."),v.set(["gravel"],"Gravel is a block found on the surface and sometimes underground."),v.set(["sandstone"],"Sandstone is a block found in deserts."),v.set(["red_sandstone"],"Red sandstone is a block found in mesas."),v.set(["granite","diorite","andesite"],function(e){return"".concat(e.charAt(0).toUpperCase()+e.slice(1)," is a block found underground.")}),v.set(["netherrack","soul_sand","soul_soil","glowstone"],function(e){return"".concat(e.charAt(0).toUpperCase()+e.slice(1)," is a block found in the Nether.")}),v.set(["end_stone"],"End stone is a block found in the End."),v.set(["obsidian"],"Obsidian is a block created by pouring water on lava."),v.set(["glass"],"Glass is a block created by smelting sand in a furnace."),v.set(["bedrock"],"Bedrock is an indestructible block found at the bottom of the world in the Overworld and at the top of the world in the Nether."),v.set(["water","lava"],function(e){return"".concat(e.charAt(0).toUpperCase()+e.slice(1)," is a fluid found in the Overworld.")}),v.set(/_sapling$/,function(e){return"".concat(e," drops from the leaves of a tree when it decays or is broken. It can be planted on dirt to grow a new tree.")}),v.set(/^stripped_/,function(e){return"".concat(e," is created by using an axe on the block.")}),v.set(["sponge"],"Sponge is a block found in ocean monuments."),v.set(/^music_disc_/,function(e){return"Music discs are rare items that can be found in dungeons or by trading with villagers. Also dropped by creepers when killed by a skeleton."}),v.set(/^enchanted_book$/,"Enchanted books are rare items that can be found in dungeons or by trading with villagers."),v.set(/_spawn_egg$/,function(e){return"".concat(e," is an item that can be used to spawn a mob in Creative mode. Cannot be obtained in Survival mode.")}),v.set(/_pottery_sherd$/,function(e){return"".concat(e," can be obtained only by brushing suspicious blocks, with the variants of sherd obtainable being dependent on the structure.")}),v.set(["cracked_deepslate_bricks"],"Deepslate Bricks and Cracked Deepslate Bricks generate naturally in ancient cities.");var y=!0,A=!1,b=void 0;try{for(var _,L=Object.entries({air:{obtained_from:"Naturally occurs in the world."},deepslate:{obtained_from:"Mined with a pickaxe in layers -64 to 16.",rarity:"Common"},cobbled_deepslate:{obtained_from:"Mined from deepslate with any pickaxe."},calcite:{obtained_from:"Mined with a pickaxe, found in geodes."},tuff:{obtained_from:"Mined with a pickaxe in layers -64 to 16.",rarity:"Common"},chiseled_tuff:{obtained_from:"Crafted from tuff."},polished_tuff:{obtained_from:"Crafted from tuff."},tuff_bricks:{obtained_from:"Crafted from tuff."},chiseled_tuff_bricks:{obtained_from:"Crafted from tuff bricks."},grass_block:{obtained_from:"Mined with a tool enchanted with Silk Touch."},podzol:{obtained_from:"Mined with a tool enchanted with Silk Touch, found in giant tree taiga biomes."},rooted_dirt:{obtained_from:"Mined with a shovel, found under azalea trees."},crimson_nylium:{obtained_from:"Mined with a pickaxe, found in the Nether."},warped_nylium:{obtained_from:"Mined with a pickaxe, found in the Nether."},cobblestone:{obtained_from:"Mined from stone, or from breaking stone structures."},mangrove_propagule:{obtained_from:"Harvested from mangrove trees."},suspicious_sand:{obtained_from:"Found in deserts and beaches."},suspicious_gravel:{obtained_from:"Found underwater."},red_sand:{obtained_from:"Mined from red sand in badlands biomes."},coal_ore:{obtained_from:"Mined with a pickaxe in layers 0 to 128.",rarity:"Common"},deepslate_coal_ore:{obtained_from:"Mined with a pickaxe in layers -64 to 0.",rarity:"Rare"},iron_ore:{obtained_from:"Mined with a pickaxe in layers 0 to 63.",rarity:"Common"},deepslate_iron_ore:{obtained_from:"Mined with a pickaxe in layers -64 to 0.",rarity:"Uncommon"},copper_ore:{obtained_from:"Mined with a pickaxe in layers 0 to 96.",rarity:"Common"},deepslate_copper_ore:{obtained_from:"Mined with a pickaxe in layers -16 to 64.",rarity:"Uncommon"},gold_ore:{obtained_from:"Mined with a pickaxe in layers -64 to 32.",rarity:"Uncommon"},deepslate_gold_ore:{obtained_from:"Mined with a pickaxe in layers -64 to 0.",rarity:"Rare"},redstone_ore:{obtained_from:"Mined with an iron pickaxe or higher in layers -64 to 16.",rarity:"Uncommon"},deepslate_redstone_ore:{obtained_from:"Mined with an iron pickaxe or higher in layers -64 to 0.",rarity:"Uncommon"},emerald_ore:{obtained_from:"Mined with an iron pickaxe or higher in mountain biomes, layers -16 to 256.",rarity:"Rare"},deepslate_emerald_ore:{obtained_from:"Mined with an iron pickaxe or higher in mountain biomes, layers -64 to 0.",rarity:"Very Rare"},lapis_ore:{obtained_from:"Mined with a stone pickaxe or higher in layers -64 to 32.",rarity:"Uncommon"},deepslate_lapis_ore:{obtained_from:"Mined with a stone pickaxe or higher in layers -64 to 0.",rarity:"Rare"},diamond_ore:{obtained_from:"Mined with an iron pickaxe or higher in layers -64 to 16.",rarity:"Rare"},deepslate_diamond_ore:{obtained_from:"Mined with an iron pickaxe or higher in layers -64 to 0.",rarity:"Very Rare"},nether_gold_ore:{obtained_from:"Mined with any pickaxe in the Nether."},nether_quartz_ore:{obtained_from:"Mined with any pickaxe in the Nether."},ancient_debris:{obtained_from:"Mined with a diamond or netherite pickaxe in the Nether, layers 8 to 22.",rarity:"Very Rare"},budding_amethyst:{obtained_from:"Found in amethyst geodes, cannot be obtained as an item."},exposed_copper:{obtained_from:"Exposed copper block obtained through mining."},weathered_copper:{obtained_from:"Weathered copper block obtained through mining."},oxidized_copper:{obtained_from:"Oxidized copper block obtained through mining."},chiseled_copper:{obtained_from:"Crafted from copper blocks."},exposed_chiseled_copper:{obtained_from:"Exposed chiseled copper block obtained through mining."},weathered_chiseled_copper:{obtained_from:"Weathered chiseled copper block obtained through mining."},oxidized_chiseled_copper:{obtained_from:"Oxidized chiseled copper block obtained through mining."},waxed_chiseled_copper:{obtained_from:"Crafted from copper blocks, waxed to prevent oxidation."},waxed_exposed_chiseled_copper:{obtained_from:"Waxed exposed chiseled copper block obtained through mining."},waxed_weathered_chiseled_copper:{obtained_from:"Waxed weathered chiseled copper block obtained through mining."},waxed_oxidized_chiseled_copper:{obtained_from:"Waxed oxidized chiseled copper block obtained through mining."},crimson_stem:{obtained_from:"Mined from crimson trees in the Nether."},warped_stem:{obtained_from:"Mined from warped trees in the Nether."},stripped_crimson_stem:{obtained_from:"Stripped from crimson stem with an axe."},stripped_warped_stem:{obtained_from:"Stripped from warped stem with an axe."},stripped_bamboo_block:{obtained_from:"Crafted from bamboo."},sponge:{obtained_from:"Found in ocean monuments."},wet_sponge:{obtained_from:"Absorbs water, can be dried in a furnace."},cobweb:{obtained_from:"Mined with a sword or shears, found in mineshafts."},short_grass:{obtained_from:"Sheared from grass."},fern:{obtained_from:"Sheared from ferns in forest biomes."},azalea:{obtained_from:"Found in lush caves."},flowering_azalea:{obtained_from:"Found in lush caves."},dead_bush:{obtained_from:"Mined with shears in desert biomes."},seagrass:{obtained_from:"Sheared from underwater grass."},sea_pickle:{obtained_from:"Mined with shears from coral reefs."},dandelion:{type:"natural",description:"Dandelions are common flowers that spawn in plains, forests, and meadows.",spawn_range:"Surface"},poppy:{type:"natural",description:"Poppies are common flowers that generate in plains, forests, and meadows.",spawn_range:"Surface"},blue_orchid:{type:"natural",description:"Blue orchids spawn naturally in swamp biomes.",spawn_range:"Surface"},allium:{type:"natural",description:"Alliums are flowers that generate in flower forest biomes.",spawn_range:"Surface"},azure_bluet:{type:"natural",description:"Azure bluets are common flowers that spawn in plains and flower forest biomes.",spawn_range:"Surface"},red_tulip:{type:"natural",description:"Red tulips are flowers found in flower forests and plains.",spawn_range:"Surface"},orange_tulip:{type:"natural",description:"Orange tulips are flowers found in flower forests and plains.",spawn_range:"Surface"},white_tulip:{type:"natural",description:"White tulips are flowers found in flower forests and plains.",spawn_range:"Surface"},pink_tulip:{type:"natural",description:"Pink tulips are flowers found in flower forests and plains.",spawn_range:"Surface"},oxeye_daisy:{type:"natural",description:"Oxeye daisies are common flowers that generate in plains and flower forest biomes.",spawn_range:"Surface"},cornflower:{type:"natural",description:"Cornflowers spawn in plains, flower forests, and meadows.",spawn_range:"Surface"},lily_of_the_valley:{type:"natural",description:"Lily of the valleys generate in flower forest biomes.",spawn_range:"Surface"},wither_rose:{type:"dropped",description:"Wither roses are dropped when a mob is killed by the Wither boss.",spawn_range:"N/A"},torchflower:{type:"crafted",description:"Torchflowers can be grown using torchflower seeds, which are found in archeology loot or by trading.",spawn_range:"N/A"},pitcher_plant:{type:"crafted",description:"Pitcher plants can be grown using pitcher pods, which are found in archeology loot or by trading.",spawn_range:"N/A"},spore_blossom:{type:"natural",description:"Spore blossoms generate naturally on the ceilings of lush caves.",spawn_range:"Underground"},brown_mushroom:{type:"natural",description:"Brown mushrooms are found in dark areas, swamps, mushroom fields, and forests.",spawn_range:"Surface"},red_mushroom:{type:"natural",description:"Red mushrooms are found in dark areas, swamps, mushroom fields, and forests.",spawn_range:"Surface"},crimson_fungus:{type:"natural",description:"Crimson fungi generate naturally in crimson forests in the Nether.",spawn_range:"Nether"},warped_fungus:{type:"natural",description:"Warped fungi generate naturally in warped forests in the Nether.",spawn_range:"Nether"},crimson_roots:{type:"natural",description:"Crimson roots generate naturally in crimson forests in the Nether.",spawn_range:"Nether"},warped_roots:{type:"natural",description:"Warped roots generate naturally in warped forests in the Nether.",spawn_range:"Nether"},nether_sprouts:{type:"natural",description:"Nether sprouts generate naturally in warped forests in the Nether.",spawn_range:"Nether"},weeping_vines:{type:"natural",description:"Weeping vines generate naturally in crimson forests in the Nether and grow downward from netherrack.",spawn_range:"Nether"},twisting_vines:{type:"natural",description:"Twisting vines generate naturally in warped forests in the Nether and grow upward from the ground.",spawn_range:"Nether"},sugar_cane:{type:"natural",description:"Sugar cane is found near water in most biomes.",spawn_range:"Surface"},kelp:{type:"natural",description:"Kelp generates underwater in most ocean biomes.",spawn_range:"Water"},pink_petals:{type:"natural",description:"Pink petals generate naturally in cherry grove biomes.",spawn_range:"Surface"},moss_block:{type:"natural",description:"Moss blocks generate in lush caves and can also be obtained through trading or by using bone meal on moss carpets.",spawn_range:"Underground"},hanging_roots:{type:"natural",description:"Hanging roots generate naturally in lush caves.",spawn_range:"Underground"},big_dripleaf:{type:"natural",description:"Big dripleaf plants generate in lush caves and can also be obtained through trading.",spawn_range:"Underground"},small_dripleaf:{type:"natural",description:"Small dripleaf plants generate in lush caves and can also be obtained through trading.",spawn_range:"Underground"},bamboo:{type:"natural",description:"Bamboo generates in jungle biomes, especially bamboo jungles.",spawn_range:"Surface"},smooth_quartz:{type:"crafted",description:"Smooth quartz is obtained by smelting blocks of quartz.",spawn_range:"N/A"},smooth_red_sandstone:{type:"crafted",description:"Smooth red sandstone is obtained by smelting red sandstone.",spawn_range:"N/A"},smooth_sandstone:{type:"crafted",description:"Smooth sandstone is obtained by smelting sandstone.",spawn_range:"N/A"},smooth_stone:{type:"crafted",description:"Smooth stone is obtained by smelting regular stone.",spawn_range:"N/A"},chorus_plant:{type:"natural",description:"Chorus plants generate naturally in the End and can be grown from chorus flowers.",spawn_range:"End"},chorus_flower:{type:"natural",description:"Chorus flowers generate naturally in the End on top of chorus plants.",spawn_range:"End"},spawner:{type:"natural",description:"Spawners generate in dungeons, mineshafts, and other structures.",spawn_range:"Underground"},farmland:{type:"crafted",description:"Farmland is created by using a hoe on dirt or grass blocks.",spawn_range:"N/A"},ice:{type:"natural",description:"Ice generates in snowy and icy biomes and can also be obtained by breaking ice blocks with a Silk Touch tool.",spawn_range:"Surface"},cactus:{type:"natural",description:"Cacti generate naturally in desert biomes.",spawn_range:"Surface"},pumpkin:{type:"natural",description:"Pumpkins generate naturally in most grassy biomes and can also be grown from pumpkin seeds.",spawn_range:"Surface"},carved_pumpkin:{type:"crafted",description:"Carved pumpkins are obtained by using shears on a pumpkin.",spawn_range:"N/A"},basalt:{type:"natural",description:"Basalt generates in the Nether in basalt deltas and can also be created by lava flowing over soul soil next to blue ice.",spawn_range:"Nether"},smooth_basalt:{type:"natural",description:"Smooth basalt is found around amethyst geodes or can be obtained by smelting basalt.",spawn_range:"Underground"},infested_stone:{type:"natural",description:"Infested stone blocks contain silverfish and generate in strongholds, underground.",spawn_range:"Underground"},infested_cobblestone:{type:"natural",description:"Infested cobblestone blocks contain silverfish and generate in strongholds, underground.",spawn_range:"Underground"},infested_stone_bricks:{type:"natural",description:"Infested stone bricks contain silverfish and generate in strongholds, underground.",spawn_range:"Underground"},infested_mossy_stone_bricks:{type:"natural",description:"Infested mossy stone bricks contain silverfish and generate in strongholds, underground.",spawn_range:"Underground"},infested_cracked_stone_bricks:{type:"natural",description:"Infested cracked stone bricks contain silverfish and generate in strongholds, underground.",spawn_range:"Underground"},infested_chiseled_stone_bricks:{type:"natural",description:"Infested chiseled stone bricks contain silverfish and generate in strongholds, underground.",spawn_range:"Underground"},infested_deepslate:{type:"natural",description:"Infested deepslate contains silverfish and generates in the deepslate layer underground.",spawn_range:"Underground"},cracked_stone_bricks:{type:"crafted",description:"Cracked stone bricks are obtained by smelting stone bricks.",spawn_range:"N/A"},cracked_deepslate_bricks:{type:"crafted",description:"Cracked deepslate bricks are obtained by smelting deepslate bricks.",spawn_range:"N/A"},cracked_deepslate_tiles:{type:"crafted",description:"Cracked deepslate tiles are obtained by smelting deepslate tiles.",spawn_range:"N/A"},reinforced_deepslate:{type:"crafted",description:"Reinforced deepslate is a strong block that cannot be obtained in survival mode.",spawn_range:"N/A"},brown_mushroom_block:{type:"natural",description:"Brown mushroom blocks generate as part of huge mushrooms in dark forest biomes and mushroom fields.",spawn_range:"Surface"},red_mushroom_block:{type:"natural",description:"Red mushroom blocks generate as part of huge mushrooms in dark forest biomes and mushroom fields.",spawn_range:"Surface"},mushroom_stem:{type:"natural",description:"Mushroom stems generate as part of huge mushrooms in dark forest biomes and mushroom fields.",spawn_range:"Surface"},vine:{type:"natural",description:"Vines generate naturally on trees and walls in jungle biomes, swamps, and lush caves.",spawn_range:"Surface"},glow_lichen:{type:"natural",description:"Glow lichen generates naturally in caves and can spread to other blocks using bone meal.",spawn_range:"Underground"},mycelium:{type:"natural",description:"Mycelium generates naturally in mushroom field biomes and spreads to dirt blocks.",spawn_range:"Surface"},lily_pad:{type:"natural",description:"Lily pads generate naturally on the surface of water in swamps.",spawn_range:"Water"},cracked_nether_bricks:{type:"crafted",description:"Cracked nether bricks are obtained by smelting nether bricks.",spawn_range:"N/A"},sculk:{type:"natural",description:"Sculk generates naturally in the deep dark biome and spreads using a sculk catalyst.",spawn_range:"Underground"},sculk_vein:{type:"natural",description:"Sculk veins generate naturally in the deep dark biome and spread using a sculk catalyst.",spawn_range:"Underground"},sculk_catalyst:{type:"natural",description:"Sculk catalysts generate naturally in the deep dark biome and spread sculk blocks when mobs die nearby.",spawn_range:"Underground"},sculk_shrieker:{type:"natural",description:"Sculk shriekers generate naturally in the deep dark biome and emit a loud shriek when activated.",spawn_range:"Underground"},end_portal_frame:{type:"natural",description:"End portal frames generate naturally in strongholds, forming the structure of end portals.",spawn_range:"Underground"},dragon_egg:{type:"dropped",description:"The dragon egg is dropped when the Ender Dragon is defeated for the first time.",spawn_range:"End"},command_block:{type:"crafted",description:"Command blocks are powerful blocks used in commands and redstone, obtainable only via commands.",spawn_range:"N/A"},chipped_anvil:{type:"crafted",description:"Chipped anvils are damaged versions of anvils and are used for repairing and enchanting.",spawn_range:"N/A"},damaged_anvil:{type:"crafted",description:"Damaged anvils are further damaged versions of anvils and are used for repairing and enchanting.",spawn_range:"N/A"},barrier:{type:"crafted",description:"Barriers are invisible blocks used in map-making and obtainable only via commands.",spawn_range:"N/A"},light:{type:"crafted",description:"Light blocks are invisible blocks that emit light, obtainable only via commands.",spawn_range:"N/A"},dirt_path:{type:"crafted",description:"Dirt paths are created by using a shovel on grass blocks and are commonly found in villages.",spawn_range:"Surface"},sunflower:{type:"natural",description:"Sunflowers generate naturally in sunflower plains biomes.",spawn_range:"Surface"},lilac:{type:"natural",description:"Lilacs generate naturally in forest biomes.",spawn_range:"Surface"},rose_bush:{type:"natural",description:"Rose bushes generate naturally in forest biomes.",spawn_range:"Surface"},peony:{type:"natural",description:"Peonies generate naturally in forest biomes.",spawn_range:"Surface"},tall_grass:{type:"natural",description:"Tall grass generates naturally in various biomes and can be grown using bone meal.",spawn_range:"Surface"},large_fern:{type:"natural",description:"Large ferns generate naturally in taiga biomes.",spawn_range:"Surface"},repeating_command_block:{type:"crafted",description:"Repeating command blocks execute commands every tick and are obtainable only via commands.",spawn_range:"N/A"},chain_command_block:{type:"crafted",description:"Chain command blocks execute commands when triggered and are obtainable only via commands.",spawn_range:"N/A"},warped_wart_block:{type:"natural",description:"Warped wart blocks generate naturally in warped forests in the Nether.",spawn_range:"Nether"},structure_void:{type:"crafted",description:"Structure voids are used in structure blocks to exclude certain blocks from being saved and are obtainable only via commands.",spawn_range:"N/A"},white_shulker_box:{type:"crafted",description:"White shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},orange_shulker_box:{type:"crafted",description:"Orange shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},magenta_shulker_box:{type:"crafted",description:"Magenta shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},light_blue_shulker_box:{type:"crafted",description:"Light blue shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},yellow_shulker_box:{type:"crafted",description:"Yellow shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},lime_shulker_box:{type:"crafted",description:"Lime shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},pink_shulker_box:{type:"crafted",description:"Pink shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},gray_shulker_box:{type:"crafted",description:"Gray shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},light_gray_shulker_box:{type:"crafted",description:"Light gray shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},cyan_shulker_box:{type:"crafted",description:"Cyan shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},purple_shulker_box:{type:"crafted",description:"Purple shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},blue_shulker_box:{type:"crafted",description:"Blue shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},brown_shulker_box:{type:"crafted",description:"Brown shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},green_shulker_box:{type:"crafted",description:"Green shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},red_shulker_box:{type:"crafted",description:"Red shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},black_shulker_box:{type:"crafted",description:"Black shulker boxes are crafted from shulker shells and dye, and they function as portable storage.",spawn_range:"N/A"},white_glazed_terracotta:{type:"crafted",description:"White glazed terracotta is obtained by smelting white terracotta and features decorative patterns.",spawn_range:"N/A"},orange_glazed_terracotta:{type:"crafted",description:"Orange glazed terracotta is obtained by smelting orange terracotta and features decorative patterns.",spawn_range:"N/A"},magenta_glazed_terracotta:{type:"crafted",description:"Magenta glazed terracotta is obtained by smelting magenta terracotta and features decorative patterns.",spawn_range:"N/A"},light_blue_glazed_terracotta:{type:"crafted",description:"Light blue glazed terracotta is obtained by smelting light blue terracotta and features decorative patterns.",spawn_range:"N/A"},yellow_glazed_terracotta:{type:"crafted",description:"Yellow glazed terracotta is obtained by smelting yellow terracotta and features decorative patterns.",spawn_range:"N/A"},lime_glazed_terracotta:{type:"crafted",description:"Lime glazed terracotta is obtained by smelting lime terracotta and features decorative patterns.",spawn_range:"N/A"},pink_glazed_terracotta:{type:"crafted",description:"Pink glazed terracotta is obtained by smelting pink terracotta and features decorative patterns.",spawn_range:"N/A"},gray_glazed_terracotta:{type:"crafted",description:"Gray glazed terracotta is obtained by smelting gray terracotta and features decorative patterns.",spawn_range:"N/A"},light_gray_glazed_terracotta:{type:"crafted",description:"Light gray glazed terracotta is obtained by smelting light gray terracotta and features decorative patterns.",spawn_range:"N/A"},cyan_glazed_terracotta:{type:"crafted",description:"Cyan glazed terracotta is obtained by smelting cyan terracotta and features decorative patterns.",spawn_range:"N/A"},purple_glazed_terracotta:{type:"crafted",description:"Purple glazed terracotta is obtained by smelting purple terracotta and features decorative patterns.",spawn_range:"N/A"},blue_glazed_terracotta:{type:"crafted",description:"Blue glazed terracotta is obtained by smelting blue terracotta and features decorative patterns.",spawn_range:"N/A"},brown_glazed_terracotta:{type:"crafted",description:"Brown glazed terracotta is obtained by smelting brown terracotta and features decorative patterns.",spawn_range:"N/A"},green_glazed_terracotta:{type:"crafted",description:"Green glazed terracotta is obtained by smelting green terracotta and features decorative patterns.",spawn_range:"N/A"},red_glazed_terracotta:{type:"crafted",description:"Red glazed terracotta is obtained by smelting red terracotta and features decorative patterns.",spawn_range:"N/A"},black_glazed_terracotta:{type:"crafted",description:"Black glazed terracotta is obtained by smelting black terracotta and features decorative patterns.",spawn_range:"N/A"},white_concrete:{type:"crafted",description:"White concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},orange_concrete:{type:"crafted",description:"Orange concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},magenta_concrete:{type:"crafted",description:"Magenta concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},light_blue_concrete:{type:"crafted",description:"Light blue concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},yellow_concrete:{type:"crafted",description:"Yellow concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},lime_concrete:{type:"crafted",description:"Lime concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},pink_concrete:{type:"crafted",description:"Pink concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},gray_concrete:{type:"crafted",description:"Gray concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},light_gray_concrete:{type:"crafted",description:"Light gray concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},cyan_concrete:{type:"crafted",description:"Cyan concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},purple_concrete:{type:"crafted",description:"Purple concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},blue_concrete:{type:"crafted",description:"Blue concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},brown_concrete:{type:"crafted",description:"Brown concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},green_concrete:{type:"crafted",description:"Green concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},red_concrete:{type:"crafted",description:"Red concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},black_concrete:{type:"crafted",description:"Black concrete is crafted from concrete powder and hardens when in contact with water.",spawn_range:"N/A"},white_concrete_powder:{type:"crafted",description:"White concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},orange_concrete_powder:{type:"crafted",description:"Orange concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},magenta_concrete_powder:{type:"crafted",description:"Magenta concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},light_blue_concrete_powder:{type:"crafted",description:"Light blue concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},yellow_concrete_powder:{type:"crafted",description:"Yellow concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},lime_concrete_powder:{type:"crafted",description:"Lime concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},pink_concrete_powder:{type:"crafted",description:"Pink concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},gray_concrete_powder:{type:"crafted",description:"Gray concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},light_gray_concrete_powder:{type:"crafted",description:"Light gray concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},cyan_concrete_powder:{type:"crafted",description:"Cyan concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},purple_concrete_powder:{type:"crafted",description:"Purple concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},blue_concrete_powder:{type:"crafted",description:"Blue concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},brown_concrete_powder:{type:"crafted",description:"Brown concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},green_concrete_powder:{type:"crafted",description:"Green concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},red_concrete_powder:{type:"crafted",description:"Red concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},black_concrete_powder:{type:"crafted",description:"Black concrete powder is crafted from sand, gravel, and dye, and hardens into concrete when in contact with water.",spawn_range:"N/A"},cyan_candle:{type:"crafted",description:"Cyan candles are crafted from string and dye and can be placed on blocks to emit light.",spawn_range:"N/A"},pink_candle:{type:"crafted",description:"Pink candles are crafted from string and dye and can be placed on blocks to emit light.",spawn_range:"N/A"},purple_candle:{type:"crafted",description:"Purple candles are crafted from string and dye and can be placed on blocks to emit light.",spawn_range:"N/A"},blue_candle:{type:"crafted",description:"Blue candles are crafted from string and dye and can be placed on blocks to emit light.",spawn_range:"N/A"},brown_candle:{type:"crafted",description:"Brown candles are crafted from string and dye and can be placed on blocks to emit light.",spawn_range:"N/A"},green_candle:{type:"crafted",description:"Green candles are crafted from string and dye and can be placed on blocks to emit light.",spawn_range:"N/A"},red_candle:{type:"crafted",description:"Red candles are crafted from string and dye and can be placed on blocks to emit light.",spawn_range:"N/A"},black_candle:{type:"crafted",description:"Black candles are crafted from string and dye and can be placed on blocks to emit light.",spawn_range:"N/A"},turtle_egg:"can be obtained via turtle breeding on beaches, where turtles lay eggs that can be collected.",sniffer_egg:"can be found in buried treasure or ancient ruins, used to hatch sniffers.",dead_tube_coral_block:"can be obtained by mining tube coral blocks with a pickaxe without Silk Touch or when exposed to air.",dead_brain_coral_block:"can be obtained by mining brain coral blocks with a pickaxe without Silk Touch or when exposed to air.",dead_bubble_coral_block:"can be obtained by mining bubble coral blocks with a pickaxe without Silk Touch or when exposed to air.",dead_fire_coral_block:"can be obtained by mining fire coral blocks with a pickaxe without Silk Touch or when exposed to air.",dead_horn_coral_block:"can be obtained by mining horn coral blocks with a pickaxe without Silk Touch or when exposed to air.",tube_coral_block:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",brain_coral_block:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",bubble_coral_block:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",fire_coral_block:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",horn_coral_block:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",tube_coral:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",brain_coral:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",bubble_coral:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",fire_coral:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",horn_coral:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",dead_brain_coral:"can be obtained by mining brain coral without Silk Touch or when exposed to air.",dead_bubble_coral:"can be obtained by mining bubble coral without Silk Touch or when exposed to air.",dead_fire_coral:"can be obtained by mining fire coral without Silk Touch or when exposed to air.",dead_horn_coral:"can be obtained by mining horn coral without Silk Touch or when exposed to air.",dead_tube_coral:"can be obtained by mining tube coral without Silk Touch or when exposed to air.",tube_coral_fan:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",brain_coral_fan:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",bubble_coral_fan:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",fire_coral_fan:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",horn_coral_fan:"can be obtained by mining with a pickaxe enchanted with Silk Touch, found in warm ocean biomes.",dead_tube_coral_fan:"can be obtained by mining tube coral fans without Silk Touch or when exposed to air.",dead_brain_coral_fan:"can be obtained by mining brain coral fans without Silk Touch or when exposed to air.",dead_bubble_coral_fan:"can be obtained by mining bubble coral fans without Silk Touch or when exposed to air.",dead_fire_coral_fan:"can be obtained by mining fire coral fans without Silk Touch or when exposed to air.",dead_horn_coral_fan:"can be obtained by mining horn coral fans without Silk Touch or when exposed to air.",sculk_sensor:"can be obtained via Silk Touch enchantment on a pickaxe or found in ancient cities in the deep dark biome.",copper_door:"can be crafted using copper ingots.",exposed_copper_door:"can be obtained by allowing copper doors to oxidize or can be crafted directly.",weathered_copper_door:"can be obtained by allowing exposed copper doors to further oxidize or can be crafted directly.",oxidized_copper_door:"can be obtained by allowing weathered copper doors to fully oxidize or can be crafted directly.",waxed_copper_door:"can be crafted using copper ingots and honeycomb.",waxed_exposed_copper_door:"can be crafted using exposed copper doors and honeycomb.",waxed_weathered_copper_door:"can be crafted using weathered copper doors and honeycomb.",waxed_oxidized_copper_door:"can be crafted using oxidized copper doors and honeycomb.",copper_trapdoor:"can be crafted using copper ingots.",exposed_copper_trapdoor:"can be obtained by allowing copper trapdoors to oxidize or can be crafted directly.",weathered_copper_trapdoor:"can be obtained by allowing exposed copper trapdoors to further oxidize or can be crafted directly.",oxidized_copper_trapdoor:"can be obtained by allowing weathered copper trapdoors to fully oxidize or can be crafted directly.",waxed_copper_trapdoor:"can be crafted using copper ingots and honeycomb.",waxed_exposed_copper_trapdoor:"can be crafted using exposed copper trapdoors and honeycomb.",waxed_weathered_copper_trapdoor:"can be crafted using weathered copper trapdoors and honeycomb.",waxed_oxidized_copper_trapdoor:"can be crafted using oxidized copper trapdoors and honeycomb.",saddle:"can be obtained from fishing, dungeon chests, or trading with leatherworkers.",elytra:"can be found in end ships within end cities.",structure_block:"can be obtained using commands or in creative mode, used to save and load structures.",jigsaw:"can be obtained using commands or in creative mode, used to generate structures.",scute:"can be obtained when baby turtles grow into adults.",apple:"can be obtained by breaking oak and dark oak leaves or found in chests.",charcoal:"can be obtained by smelting logs or wood in a furnace.",quartz:"can be obtained by mining nether quartz ore in the Nether.",amethyst_shard:"can be obtained by mining amethyst clusters found in geodes with a pickaxe.",netherite_scrap:"can be obtained by smelting ancient debris found in the Nether.",netherite_sword:"can be crafted using a diamond sword and netherite ingot.",netherite_shovel:"can be crafted using a diamond shovel and netherite ingot.",netherite_pickaxe:"can be crafted using a diamond pickaxe and netherite ingot.",netherite_axe:"can be crafted using a diamond axe and netherite ingot.",netherite_hoe:"can be crafted using a diamond hoe and netherite ingot.",string:"can be obtained from killing spiders or breaking cobwebs.",feather:"can be obtained from killing chickens.",gunpowder:"can be obtained from killing creepers, ghasts, and witches.",wheat_seeds:"can be obtained by breaking tall grass or harvesting wheat crops.",chainmail_helmet:"can be obtained from chest loot, trading with villagers, or killing mobs wearing it.",chainmail_chestplate:"can be obtained from chest loot, trading with villagers, or killing mobs wearing it.",chainmail_leggings:"can be obtained from chest loot, trading with villagers, or killing mobs wearing it.",chainmail_boots:"can be obtained from chest loot, trading with villagers, or killing mobs wearing it.",netherite_helmet:"can be crafted using a diamond helmet and netherite ingot.",netherite_chestplate:"can be crafted using a diamond chestplate and netherite ingot.",netherite_leggings:"can be crafted using diamond leggings and netherite ingot.",netherite_boots:"can be crafted using diamond boots and netherite ingot.",flint:"can be obtained by breaking gravel blocks.",porkchop:"can be obtained by killing pigs.",cooked_porkchop:"can be obtained by cooking porkchop in a furnace, smoker, or campfire.",enchanted_golden_apple:"can be found in dungeon, bastion remnant, and mineshaft chests.",water_bucket:"can be obtained by using a bucket on a water source block.",lava_bucket:"can be obtained by using a bucket on a lava source block.",powder_snow_bucket:"can be obtained by using a bucket on powder snow.",snowball:"can be obtained by breaking snow blocks or using a shovel on snow.",milk_bucket:"can be obtained by using a bucket on a cow or mooshroom.",pufferfish_bucket:"can be obtained by using a bucket on a pufferfish in water.",salmon_bucket:"can be obtained by using a bucket on a salmon in water.",cod_bucket:"can be obtained by using a bucket on a cod in water.",tropical_fish_bucket:"can be obtained by using a bucket on a tropical fish in water.",axolotl_bucket:"can be obtained by using a bucket on an axolotl in water.",tadpole_bucket:"can be obtained by using a bucket on a tadpole in water.",brick:"can be obtained by smelting clay in a furnace.",clay_ball:"can be obtained by breaking clay blocks or from chest loot.",egg:"can be obtained from chickens periodically.",bundle:"can be crafted using rabbit hide and string.",glowstone_dust:"can be obtained by breaking glowstone blocks or killing witches.",cod:"can be obtained by fishing or killing cod in water.",salmon:"can be obtained by fishing or killing salmon in water.",tropical_fish:"can be obtained by fishing or killing tropical fish in water.",pufferfish:"can be obtained by fishing or killing pufferfish in water.",cooked_cod:"can be obtained by cooking cod in a furnace, smoker, or campfire.",cooked_salmon:"can be obtained by cooking salmon in a furnace, smoker, or campfire.",ink_sac:"can be obtained by killing squid or as loot from wandering traders.",glow_ink_sac:"can be obtained by killing glow squid.",cocoa_beans:"can be obtained from cocoa pods found on jungle trees.",green_dye:"can be obtained by smelting cactus in a furnace.",bone:"can be obtained by killing skeletons or from chest loot.",crafter:"can be obtained via crafting using specific materials (details vary by mod or version).",filled_map:"can be obtained by using an empty map item.",melon_slice:"can be obtained by breaking melon blocks.",beef:"can be obtained by killing cows.",cooked_beef:"can be obtained by cooking beef in a furnace, smoker, or campfire.",chicken:"can be obtained by killing chickens.",cooked_chicken:"can be obtained by cooking chicken in a furnace, smoker, or campfire.",rotten_flesh:"can be obtained by killing zombies or drowned.",ender_pearl:"can be obtained by killing endermen.",blaze_rod:"can be obtained by killing blazes in the Nether.",ghast_tear:"can be obtained by killing ghasts in the Nether.",nether_wart:"can be found in Nether fortresses and bastion remnants.",potion:"can be brewed using a brewing stand with various ingredients.",spider_eye:"can be obtained by killing spiders or witches.",experience_bottle:"can be obtained from trading with villagers or found in chest loot.",written_book:"can be crafted using a book and quill after writing in it.",carrot:"can be obtained by harvesting carrot crops or found in village farms.",potato:"can be obtained by harvesting potato crops or found in village farms.",baked_potato:"can be obtained by cooking potatoes in a furnace, smoker, or campfire.",poisonous_potato:"can be obtained by harvesting potato crops (rare chance).",skeleton_skull:"can be obtained by killing skeletons with a charged creeper explosion.",wither_skeleton_skull:"can be obtained by killing wither skeletons (rare drop).",player_head:"can be obtained via commands or by killing players in certain conditions (e.g., with a charged creeper).",zombie_head:"can be obtained by killing zombies with a charged creeper explosion.",creeper_head:"can be obtained by killing creepers with a charged creeper explosion.",dragon_head:"can be found at the end of end ships in end cities.",piglin_head:"can be obtained by killing piglins with a charged creeper explosion.",nether_star:"can be obtained by defeating the Wither boss.",firework_star:"can be crafted using gunpowder and dye.",nether_brick:"can be obtained by smelting netherrack in a furnace or found in Nether fortresses.",prismarine_shard:"can be obtained by killing guardians and elder guardians.",prismarine_crystals:"can be obtained by killing guardians and elder guardians or breaking sea lanterns.",rabbit:"can be obtained by killing rabbits.",cooked_rabbit:"can be obtained by cooking rabbit in a furnace, smoker, or campfire.",rabbit_foot:"can be obtained by killing rabbits (rare drop).",rabbit_hide:"can be obtained by killing rabbits.",iron_horse_armor:"can be found in dungeon, temple, and stronghold chests.",golden_horse_armor:"can be found in dungeon, temple, and stronghold chests.",diamond_horse_armor:"can be found in dungeon, temple, and stronghold chests.",name_tag:"can be obtained by fishing, dungeon chests, or trading with librarians.",command_block_minecart:"can be obtained using commands in creative mode.",mutton:"can be obtained by killing sheep.",cooked_mutton:"can be obtained by cooking mutton in a furnace, smoker, or campfire.",chorus_fruit:"can be obtained by breaking chorus plants found in the End.",popped_chorus_fruit:"can be obtained by smelting chorus fruit in a furnace.",torchflower_seeds:"can be obtained from torchflower plants, used for breeding and decoration.",pitcher_pod:"can be obtained from pitcher plants, used for breeding and decoration.",beetroot:"can be obtained by harvesting beetroot crops or found in village farms.",beetroot_seeds:"can be obtained by harvesting beetroot crops or from chests.",dragon_breath:"can be obtained by using an empty bottle on the ender dragon's breath attack.",splash_potion:"can be brewed using a brewing stand and gunpowder with various potions.",tipped_arrow:"can be crafted using arrows and lingering potions.",lingering_potion:"can be brewed using a brewing stand and dragon's breath with various potions.",totem_of_undying:"can be obtained by killing evokers in woodland mansions and during raids.",shulker_shell:"can be obtained by killing shulkers in end cities.",knowledge_book:"can be obtained using commands or given in custom advancements.",debug_stick:"can be obtained using commands in creative mode.",disc_fragment_5:"can be found in ancient city chests, used to craft music disc 5.",trident:"can be obtained by killing drowned (rare drop).",phantom_membrane:"can be obtained by killing phantoms.",nautilus_shell:"can be obtained from fishing, drowned, or wandering traders.",heart_of_the_sea:"can be found in buried treasure chests.",suspicious_stew:"can be crafted using mushrooms and various flowers or found in chests.",globe_banner_pattern:"can be obtained from trading with cartographer villagers.",piglin_banner_pattern:"can be obtained from bastion remnant chests.",goat_horn:"can be obtained when a goat rams a solid block.",bell:"can be obtained from village structures or crafted using iron ingots and wood.",sweet_berries:"can be obtained from sweet berry bushes found in taiga biomes.",glow_berries:"can be found in lush cave biomes or by trading with wandering traders.",shroomlight:"can be obtained by breaking shroomlights found in Nether forests.",honeycomb:"can be obtained by using shears on beehives or bee nests.",bee_nest:"can be found in forest biomes with birch or oak trees, especially in flower forests.",crying_obsidian:"can be found in ruined portals, bastion remnants, or bartered from piglins.",blackstone:"can be found in basalt deltas, bastion remnants, or crafted from polished blackstone.",gilded_blackstone:"can be found in bastion remnants.",cracked_polished_blackstone_bricks:"can be obtained by smelting polished blackstone bricks.",small_amethyst_bud:"can be found growing in amethyst geodes.",medium_amethyst_bud:"can be found growing in amethyst geodes.",large_amethyst_bud:"can be found growing in amethyst geodes.",amethyst_cluster:"can be found growing in amethyst geodes.",pointed_dripstone:"can be found in dripstone caves or created by placing a dripstone block under a water source block.",ochre_froglight:"can be obtained by leading a frog to eat a magma cube, dropping this item.",verdant_froglight:"can be obtained by leading a frog to eat a magma cube, dropping this item.",pearlescent_froglight:"can be obtained by leading a frog to eat a magma cube, dropping this item.",frogspawn:"Frogspawn is an item that can be found in the game Minecraft and is primarily used to breed frogs.",echo_shard:"Echo Shard is an item in Minecraft Dungeons, primarily used as a currency for trading with Piglin vendors.",copper_grate:"Copper Grate is a block in Minecraft that can be crafted from copper ingots, primarily used as a decorative block.",exposed_copper_grate:"Exposed Copper Grate is a variant of Copper Grate in Minecraft that has weathered to the exposed state over time.",weathered_copper_grate:"Weathered Copper Grate is a variant of Copper Grate in Minecraft that has weathered to the weathered state over time.",oxidized_copper_grate:"Oxidized Copper Grate is a variant of Copper Grate in Minecraft that has weathered to the oxidized state over time.",waxed_copper_grate:"Waxed Copper Grate is a variant of Copper Grate in Minecraft that has been waxed to prevent further weathering.",waxed_exposed_copper_grate:"Waxed Exposed Copper Grate is a variant of Exposed Copper Grate in Minecraft that has been waxed to prevent further weathering.",waxed_weathered_copper_grate:"Waxed Weathered Copper Grate is a variant of Weathered Copper Grate in Minecraft that has been waxed to prevent further weathering.",waxed_oxidized_copper_grate:"Waxed Oxidized Copper Grate is a variant of Oxidized Copper Grate in Minecraft that has been waxed to prevent further weathering.",copper_bulb:"Copper Bulb is a block in Minecraft that can be crafted from copper ingots, primarily used as a decorative block.",exposed_copper_bulb:"Exposed Copper Bulb is a variant of Copper Bulb in Minecraft that has weathered to the exposed state over time.",weathered_copper_bulb:"Weathered Copper Bulb is a variant of Copper Bulb in Minecraft that has weathered to the weathered state over time.",oxidized_copper_bulb:"Oxidized Copper Bulb is a variant of Copper Bulb in Minecraft that has weathered to the oxidized state over time.",waxed_copper_bulb:"Waxed Copper Bulb is a variant of Copper Bulb in Minecraft that has been waxed to prevent further weathering.",waxed_exposed_copper_bulb:"Waxed Exposed Copper Bulb is a variant of Exposed Copper Bulb in Minecraft that has been waxed to prevent further weathering.",waxed_weathered_copper_bulb:"Waxed Weathered Copper Bulb is a variant of Weathered Copper Bulb in Minecraft that has been waxed to prevent further weathering.",waxed_oxidized_copper_bulb:"Waxed Oxidized Copper Bulb is a variant of Oxidized Copper Bulb in Minecraft that has been waxed to prevent further weathering.",trial_spawner:"Trial Spawner is an item in Minecraft Dungeons, used in the Ancient Hunt game mode to summon trials for unique rewards.",trial_key:"Trial Key is an item in Minecraft Dungeons, obtained from defeating Ancient mobs in the Ancient Hunt game mode, used to unlock trials."})[Symbol.iterator]();!(y=(_=L.next()).done);y=!0)!function(){var e=(0,a._)(_.value,2),t=e[0],n=e[1],r="";r=(void 0===n?"undefined":(0,i._)(n))==="object"?("obtained_from"in n?n.obtained_from:"description"in n?n.description:"")+("rarity"in n?" Rarity: ".concat(n.rarity):"")+("spawn_range"in n?" Spawn range: ".concat(n.spawn_range):""):function(e){return"".concat(e.charAt(0).toLowerCase()+e.slice(1),": ").concat(n)},v.set([t],r)}()}catch(e){A=!0,b=e}finally{try{y||null==L.return||L.return()}finally{if(A)throw b}}var getItemDescription=function(e){var t=e.name,n="",r=!0,o=!1,i=void 0;try{for(var s,l=v[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var c=(0,a._)(s.value,2),u=c[0],d=c[1];Array.isArray(u)&&u.includes(t)&&(n=d),"string"==typeof u&&u===t&&(n=d),u instanceof RegExp&&u.test(t)&&(n=d)}}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return"function"==typeof n?n(e.displayName):n},C=n(6733),j=n(57809),D=n(82278),x=(0,s.sj)({value:[]}),k=null,clearJeiItemsCache=function(){k=null};(0,s.Ld)(x,clearJeiItemsCache);var N=[],T=M.M.length;(0,s.Ld)(M.M,function(){var e=M.M.length;if(e0){var t=N.splice(0),n=!0,r=!1,a=void 0;try{for(var o,i=t[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=o.value;try{s()}catch(e){console.error("[onModalClose]",e)}}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}}T=e});var onGameLoad=function(){r=w()(bot.version);var mapWindowType=function(e,t){if("minecraft:container"===e){if(9===t)return"generic_9x1";if(18===t)return"generic_9x2";if(27===t)return"generic_9x3";if(36===t)return"generic_9x4";if(45===t)return"generic_9x5";if(54===t)return"generic_9x6"}if("minecraft:smithing"===e)return(0,p.Uo)(bot.version)<(0,p.Uo)("1.20")?"smithing_table_legacy":"smithing_table";var n,r=e.startsWith("minecraft:")?e.slice(10):e;return null!=(n=({generic_5x1:"hopper",generic_3x3:"dispenser",crafting:"crafting_table",crafting3x3:"crafting_table"})[r])?n:r};bot.on("windowOpen",function(e){var t,n=mapWindowType(e.type,e.inventoryStart),r=!!(0,h.ZV)(n);r||g.YM.unimplementedContainers?(M.M.length&&!M.N_.disconnectedCleanup&&(0,M.kJ)(),(0,M.K4)({reactType:"player_win:".concat(r?n:"chest")})):((0,m.w)("[client error] cannot open unimplemented window ".concat(e.id," (").concat(e.type,"). Slots: ").concat(e.slots.map(function(e){return getItemName(e)}).filter(Boolean).join(", "))),(0,m.w)("You can help us fix it! Open a pull request adding support for it on https://github.com/zardoy/minecraft-inventory"),null==(t=bot.currentWindow)||t.close())});var e=!1;bot.inventory.on("updateSlot",function(t,n,r){if(M.N_.singleplayer&&n!==r&&!e){var a=bot.inventory.craftingResultSlot;if(t===a&&n&&!r){for(var o=1;o<5;o++){var i,s=null==(i=bot.inventory.slots[o])?void 0:i.count;if(s&&s>1){var l=bot.inventory.slots[o];l.count--,bot.creative.setInventorySlot(o,l)}else bot.creative.setInventorySlot(o,null)}return}if(!(t>4)){var c=bot.inventory.slots.slice(1,5);try{var u=getResultingRecipe(c,2);e=!0,bot.creative.setInventorySlot(a,null!=u?u:null).then(function(){e=!1})}catch(e){console.error(e)}}}}),bot.on("windowClose",function(){var e,t=M.M.at(-1);(null==t||null==(e=t.reactType)?void 0:e.startsWith("player_win:"))&&(0,M.VG)(void 0,void 0,{force:!0})}),bot.on("respawn",function(){var e,t=M.M.at(-1);(null==t||null==(e=t.reactType)?void 0:e.startsWith("player_win:"))&&(0,M.VG)(void 0,void 0,{force:!0})}),appViewer.resourcesManager._inventoryChangeTracked||(appViewer.resourcesManager._inventoryChangeTracked=!0,appViewer.resourcesManager.on("assetsInventoryReady",function(){clearJeiItemsCache(),(0,j.g)()}),appViewer.resourcesManager.on("assetsTexturesUpdated",function(){clearJeiItemsCache(),(0,j.g)()}))},getItemName=function(e){var t=(0,C.bL)(e,appViewer.resourcesManager);if(t)return(0,l.$H)(t).map(function(e){return"string"==typeof e?e:e.text}).join("")},openPlayerInventory=function(){(0,M.K4)({reactType:"player_win:player"})},getResultingRecipe=function(e,t){var n,s=e.map(function(e){return null==e?void 0:e.type}),l=(0,c.M)(t,s);if(l.length>1){for(var d in l[0])if(void 0!==l[0][d]){var w=!0,p=!1,h=void 0;try{for(var M,g=Array.from({length:t}).entries()[Symbol.iterator]();!(w=(M=g.next()).done);w=!0){var m,v=(0,a._)(M.value,1)[0];(null==(m=l[v])?void 0:m[d])===void 0&&(l[v][d]=null)}}catch(e){p=!0,h=e}finally{try{w||null==g.return||g.return()}finally{if(p)throw h}}}}l=l.map(function(e){return e.filter(function(e){return void 0!==e})}).filter(function(e){return 0!==e.length});var y=(0,o._)(s).sort().filter(function(e){return void 0!==e}),A=!0,b=!1,_=void 0;try{e:for(var L,C,j,D,x=Object.entries(null!=(j=loadedData.recipes)?j:{})[Symbol.iterator]();!(A=(D=x.next()).done);A=!0){var k=(0,a._)(D.value,2),N=(k[0],k[1]),T=!0,S=!1,z=void 0;try{for(var q,E=N[Symbol.iterator]();!(T=(q=E.next()).done);T=!0){var I,P=q.value;if("inShape"in P&&(0,u.fS)(l,P.inShape)){C=P.result;break e}if("ingredients"in P&&(0,u.fS)(y,null==(I=P.ingredients)?void 0:I.sort())){L=P.result;break e}}}catch(e){S=!0,z=e}finally{try{T||null==E.return||E.return()}finally{if(S)throw z}}}}catch(e){b=!0,_=e}finally{try{A||null==x.return||x.return()}finally{if(b)throw _}}var Y=null!=C?C:L;if(Y){var O="number"==typeof Y?Y:Array.isArray(Y)?Y[0]:Y.id;if(O){var R=null!=(n="number"==typeof Y?void 0:Array.isArray(Y)?Y[1]:Y.count)?n:1,B=(void 0===Y?"undefined":(0,i._)(Y))!=="object"||Array.isArray(Y)?void 0:Y.metadata;return new r(O,R,B)}}},idToItemStack=function(e){if(!e)return null;var t=loadedData.items[e];if(!t)return null;var n={type:e,count:1,name:t.name,displayName:t.displayName};return(0,D.WB)(n),n},getItemRecipes=function(e){if(!r)return[];var t=loadedData.itemsByName[e];if(!t)return[];var n=null==(u=loadedData.recipes)?void 0:u[t.id];if(!n){var o=getItemDescription(t);return o?[{type:"custom",title:t.displayName,description:o}]:[]}var i=[],s=!0,l=!1,c=void 0;try{for(var u,d,w=n[Symbol.iterator]();!(s=(d=w.next()).done);s=!0){var p=d.value,h=p.result;if(h){var M="number"==typeof h?h:Array.isArray(h)?h[0]:h.id,g=null!=(L="number"==typeof h?void 0:Array.isArray(h)?h[1]:h.count)?L:1,m=M?loadedData.items[M]:void 0;if(m){var v={type:M,count:g,name:m.name,displayName:m.displayName};if((0,D.WB)(v),"inShape"in p&&p.inShape){var y=Array.from({length:9},function(){return null}),A=!0,b=!1,_=void 0;try{for(var L,C,j=p.inShape.entries()[Symbol.iterator]();!(A=(C=j.next()).done);A=!0){var x=(0,a._)(C.value,2),k=x[0],N=x[1];if(!(k>=3)){var T=!0,S=!1,z=void 0;try{for(var q,E=N.entries()[Symbol.iterator]();!(T=(q=E.next()).done);T=!0){var I=(0,a._)(q.value,2),P=I[0],Y=I[1];P>=3||(y[3*k+P]=idToItemStack(Y))}}catch(e){S=!0,z=e}finally{try{T||null==E.return||E.return()}finally{if(S)throw z}}}}}catch(e){b=!0,_=e}finally{try{A||null==j.return||j.return()}finally{if(b)throw _}}i.push({type:"crafting",title:m.displayName,ingredients:y,result:v})}if("ingredients"in p&&p.ingredients){var O=Array.from({length:9},function(){return null}),R=!0,B=!1,U=void 0;try{for(var Q,F=p.ingredients.slice(0,9).entries()[Symbol.iterator]();!(R=(Q=F.next()).done);R=!0){var W=(0,a._)(Q.value,2),J=W[0],V=W[1];O[J]=idToItemStack(V)}}catch(e){B=!0,U=e}finally{try{R||null==F.return||F.return()}finally{if(B)throw U}}i.push({type:"crafting",title:m.displayName,description:"Shapeless",ingredients:O,result:v})}}}}}catch(e){l=!0,c=e}finally{try{s||null==w.return||w.return()}finally{if(l)throw c}}var G=getItemDescription(t);return G&&i.push({type:"custom",title:t.displayName,description:G}),i},getItemUsages=function(e){var t=loadedData.itemsByName[e];if(!t)return[];var n=new Set,r=!0,i=!1,s=void 0;try{for(var l,c,u=Object.entries(null!=(l=loadedData.recipes)?l:{})[Symbol.iterator]();!(r=(c=u.next()).done);r=!0){var d=(0,a._)(c.value,2),w=d[0],p=d[1],h=!0,M=!1,g=void 0;try{for(var m,v=p[Symbol.iterator]();!(h=(m=v.next()).done);h=!0){var y=m.value;"inShape"in y&&y.inShape.some(function(e){return e.includes(t.id)})&&n.add(w),"ingredients"in y&&y.ingredients.includes(t.id)&&n.add(w)}}catch(e){M=!0,g=e}finally{try{h||null==v.return||v.return()}finally{if(M)throw g}}}}catch(e){i=!0,s=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw s}}return(0,o._)(n).flatMap(function(e){return getItemRecipes(loadedData.items[e].name)})},getJeiItems=function(){if(k)return k;if(!r)return[];var e=x.value.flatMap(function(e){return e.items.filter(Boolean).map(function(e){var t,n,r,a,o,i;return{type:null!=(n=null!=(t=e.type)?t:e.id)?n:0,name:null!=(r=e.name)?r:"",displayName:null!=(i=null!=(o=null!=(a=getItemName(e))?a:e.displayName)?o:e.name)?i:""}})}),t=loadedData.itemsArray.map(function(e){return{type:e.id,name:e.name,displayName:e.displayName}}),n=(0,o._)(e).concat((0,o._)(t)),a=!0,i=!1,s=void 0;try{for(var l,c=n[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var u=l.value;(0,D.WB)(u)}}catch(e){i=!0,s=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw s}}return k=n,n}},24375:function(e,t,n){"use strict";n.d(t,{C4:()=>x,Cg:()=>longArrayToNumber,RL:()=>D,uW:()=>k});var r,a,o=n(14772),i=n(4186),s=n(22312),l=n(59240),c=n(9787);n(40542),n(72558),n(56070),n(83902),n(58207),n(66395),n(56843),n(98474),n(7960),n(46302),n(64813),n(96573),n(94244),n(42050);var u=n(9304),d=n.n(u),w=n(62005),p=n.n(w),h=n(85681),M=n(44846),g=n(48095),m=n(76610),v=n(30367),y=n(29223),A=n(54694),b=n(5969),_=n(40451),L=n(55920),C=n(32175),j=n(55872).Buffer,D=(0,M.sj)({isReadonly:!1,syncFs:!1,inMemorySave:!1,saveLoaded:!1,openReadOperations:0,openWriteOperations:0,remoteBackend:!1,inMemorySavePath:""});function longArrayToNumber(e){var t=(0,l._)(e,2);return(t[0]<<32)+t[1]}var x=(r=(0,o._)(function(e){var t,n,r;return(0,c.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,d().promises.readFile("".concat(e,"/level.dat"))];case 1:return t=a.sent(),[3,3];case 2:if("ENOENT"===(n=a.sent()).code)return[2,void 0];throw n;case 3:return[4,h.parse(j.from(t))];case 4:return r=a.sent().parsed,[2,{levelDat:h.simplify(r).Data,dataRaw:r.value.Data.value}]}})}),function(e){return r.apply(this,arguments)}),k=(a=(0,o._)(function(){var e,t,n,r,a,o,l,u,w,M,j,k,N,T,S,z,q,E,I,P,Y,O,R,B,U,Q,F=arguments;return(0,c.Jh)(this,function(c){switch(c.label){case 0:if(e=F.length>0&&void 0!==F[0]?F[0]:"/world",t=F.length>1?F[1]:void 0,!_.N_.gameLoaded)return[3,3];return[4,(0,y.zP)()];case 1:return c.sent(),[4,new Promise(function(e){setTimeout(e)})];case 2:c.sent(),c.label=3;case 3:for(var W in n=v.YM.disableLoadPrompts,A.D4)delete A.D4[W];for(var J in A.O8)delete A.O8[J];return r=[],[4,x(e)];case 4:if(o=(a=c.sent()).levelDat,l=a.dataRaw,void 0===o)if(D.isReadonly)throw Error("level.dat not found, ensure you are loading world folder");else r.push("level.dat not found, world in current folder will be created");if(!o)return[3,9];if((u=null!=(M=C.EX.mapVersion)?M:null==(w=o.Version)?void 0:w.Name)||(u="1.8.8"),j=L.ZP.at(-1),k=L.ZP["0"],N=(0,b.IO)(k,u),T=(0,m.Uo)(u)>(0,m.Uo)(j),(N||T)&&!(u=prompt("Version ".concat(u," is not supported, supported versions are ").concat(L.ZP.join(", "),", what try to use instead?"),N?k:j)))return[2];if(S=(0,y.Jg)(v.YM.localUsername),z="".concat(e,"/playerdata/").concat(S,".dat"),!(q=l.Player))return[3,9];return[4,(0,g.gzip)(h.writeUncompressed((0,i._)({name:""},q)))];case 5:if(E=c.sent(),!D.isReadonly)return[3,6];return A.D4[z]=E,[3,9];case 6:return[4,(0,A.xl)(p().dirname(z))];case 7:return c.sent(),[4,d().promises.writeFile(z,E)];case 8:c.sent(),c.label=9;case 9:if(r.length&&!n&&!confirm("Continue with following warnings?\n".concat(r.join("\n"))))return[2];D.isReadonly||D.inMemorySave||n||alert("Note: the world is saved on interval, /save or disconnect! Ensure you have backup and be careful of new chunks writes!"),I=["Warp files"],P=!0,Y=!1,O=void 0,c.label=10;case 10:c.trys.push([10,15,16,17]),R=I[Symbol.iterator](),c.label=11;case 11:if(P=(B=R.next()).done)return[3,14];return U=B.value,[4,(0,A.yc)(p().join(e,"..",U))];case 12:c.sent()&&(A.O8[p().join(e,U)]=p().join(e,"..",U)),c.label=13;case 13:return P=!0,[3,11];case 14:return[3,17];case 15:return Q=c.sent(),Y=!0,O=Q,[3,17];case 16:try{P||null==R.return||R.return()}finally{if(Y)throw O}return[7];case 17:return _.eJ["main-menu"]&&(0,_.w6)("main-menu"),D.saveLoaded=!0,D.inMemorySavePath=e,window.dispatchEvent(new CustomEvent("singleplayer",{detail:(0,s._)((0,i._)({version:u},"/world"===e?{}:{worldFolder:e}),{connectOptions:t})})),[2]}})}),function(){return a.apply(this,arguments)})},63389:function(e,t,n){"use strict";n.d(t,{S:()=>p,Z:()=>h});var r,a,o,i,s=n(14772),l=n(4186),c=n(22312),u=n(59240),d=n(81979),w=n(9787);n(86070),n(72558),n(40542),n(56070),n(83902),n(58207),n(56515),n(87620),n(83210),n(74822),n(96220),n(7960),n(46302),n(64813),n(96573),n(94244),n(42050),n(15209),n(50183),n(32831),n(81812),n(72216),n(92553),n(69261),n(20823),n(77962),n(98497),n(54487),n(10728),n(84269),n(41021),n(95190),n(81138),n(90758),n(7652),n(60501),n(63765),n(60139),n(41353),n(38409),n(24517),n(33207),n(55914),n(31551),n(4383),n(12516),n(18729),n(88364),n(83450),n(36670),n(26110),n(91292),n(51470),n(52777),n(33975),n(60398),n(44505),n(10020),n(71698),n(42973),n(21428),n(58819),n(5269),n(31325),n(68732),n(64912),n(88085),n(76148),n(2685),n(52003),n(23712),n(12989),n(78873),n(67022),n(56520);var p=(r=(0,s._)(function(e){var t,n;return(0,w.Jh)(this,function(r){switch(r.label){case 0:e.startsWith("http")||(e="".concat(isPageSecure()?"https":"http","://").concat(e)),t="".concat(e,"/api/vm/net/connect"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,fetch(t)];case 2:return n=r.sent(),[3,4];case 3:throw r.sent(),Error("Selected proxy server ".concat(e," most likely is down"));case 4:return[2,n]}})}),function(e){return r.apply(this,arguments)});let h=(a=(0,s._)(function(e){var t,n,r,a,o,i,u,d,h,g,m,v;return(0,w.Jh)(this,function(y){switch(y.label){case 0:return t=e.tokenCaches,n=e.proxyBaseUrl,a=void 0===(r=e.setProgressText)?function(e){}:r,o=e.setCacheResult,i=e.connectingServer,d="",[4,p(n)];case 1:m=y.sent(),y.label=2;case 2:return y.trys.push([2,4,,5]),[4,m.json()];case 3:if(h=urlWithBase((v=y.sent()).capabilities.authEndpoint,n),g=urlWithBase(v.capabilities.sessionEndpoint,n),!h)throw Error("No auth endpoint");return[3,5];case 4:throw console.error(y.sent()),Error("Selected proxy server ".concat(n," does not support Microsoft authentication"));case 5:return[2,{authFlow:{getMinecraftJavaToken:function(){return(0,s._)(function(){var e,n,r,p;return(0,w.Jh)(this,function(g){switch(g.label){case 0:var m;if(a("Authenticating with Microsoft account"),!window.crypto&&!isPageSecure())throw Error("Crypto API is available only in secure contexts. Be sure to use https!");return r=null,[4,fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify((0,c._)((0,l._)({},t),{connectingServer:i,connectingServerVersion:d}))}).catch(function(e){throw Error("Failed to connect to auth server (network error): ".concat(e.message))}).then((m=(0,s._)(function(e){var t,n,a,i,s,l,c,d;return(0,w.Jh)(this,function(w){switch(w.label){case 0:if(e.ok)return[3,2];return t=Error.bind,a=(n="Auth server error (".concat(e.status,"): ")).concat,[4,e.text()];case 1:throw new(t.apply(Error,[void 0,a.apply(n,[w.sent()])]));case 2:return i=e.body.getReader(),s=new TextDecoder("utf8"),l="",c=function(e){var t;try{t=JSON.parse(e)}catch(e){}if(t){if(t.user_code&&u(t),t.error)throw Error("Auth server error: ".concat(t.error));t.token&&(r=t),t.newCache&&o(t.newCache)}},d=function(e){var t=e.done,n=e.value;if(t){var r=(l+=s.decode()).split("\n\n");l=null!=(w=r.pop())?w:"";var a=!0,o=!1,u=void 0;try{for(var w,p,h=r[Symbol.iterator]();!(a=(p=h.next()).done);a=!0){var M=p.value;c(M)}}catch(e){o=!0,u=e}finally{try{a||null==h.return||h.return()}finally{if(o)throw u}}l.trim()&&c(l);return}var g=(l+=s.decode(void 0===n?void 0:n,{stream:!0})).split("\n\n");l=null!=(A=g.pop())?A:"";var m=!0,v=!1,y=void 0;try{for(var A,b,_=g[Symbol.iterator]();!(m=(b=_.next()).done);m=!0){var L=b.value;c(L)}}catch(e){v=!0,y=e}finally{try{m||null==_.return||_.return()}finally{if(v)throw y}}return i.read().then(d)},[2,i.read().then(d)]}})}),function(e){return m.apply(this,arguments)}))];case 1:return g.sent(),[4,M(r)];case 2:return(null==(p=g.sent())||null==(n=p.certificates)||null==(e=n.profileKeys)?void 0:e.privatePEM)&&(p.certificates.profileKeys.private=p.certificates.profileKeys.privatePEM),[2,p]}})})()}},sessionEndpoint:g,setOnMsaCodeCallback:function(e){u=e},setConnectingVersion:function(e){d=e}}]}})}),function(e){return a.apply(this,arguments)});function isPageSecure(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href;return!e.startsWith("http:")}var M=(o=(0,s._)(function(e){var t,n,r,a,o,i,s,l,c,p,h;return(0,w.Jh)(this,function(w){switch(w.label){case 0:if(t=[],!((void 0===e?"undefined":(0,d._)(e))==="object"&&e))return[3,8];n=!0,r=!1,a=void 0,w.label=1;case 1:w.trys.push([1,6,7,8]),o=Object.entries(e)[Symbol.iterator](),w.label=2;case 2:if(n=(i=o.next()).done)return[3,5];if(l=(s=(0,u._)(i.value,2))[0],"string"==typeof(c=s[1])&&(t.push(g(c,l,e)),c.endsWith("Z")&&(isNaN((p=new Date(c)).getTime())||(e[l]=p))),(void 0===c?"undefined":(0,d._)(c))!=="object")return[3,4];return[4,M(c)];case 3:w.sent(),w.label=4;case 4:return n=!0,[3,2];case 5:return[3,8];case 6:return h=w.sent(),r=!0,a=h,[3,8];case 7:try{n||null==o.return||o.return()}finally{if(r)throw a}return[7];case 8:return[4,Promise.all(t)];case 9:return w.sent(),[2,e]}})}),function(e){return o.apply(this,arguments)}),g=(i=(0,s._)(function(e,t,n){var r,a,o,i;return(0,w.Jh)(this,function(s){switch(s.label){case 0:if(e=e.trim(),!t.endsWith("PEM")||!e.startsWith("-----BEGIN RSA PUBLIC KEY-----")||!e.endsWith("-----END RSA PUBLIC KEY-----"))return[2];return r=pemToArrayBuffer(e),[4,window.crypto.subtle.importKey("spki",r,{name:"RSA-OAEP",hash:{name:"SHA-256"}},!0,["encrypt"])];case 1:return a=s.sent(),o=t.replace("PEM",""),[4,window.crypto.subtle.exportKey("spki",a)];case 2:return i=new Uint8Array(s.sent()),n[o]={export:function(){return i}},[2]}})}),function(e,t,n){return i.apply(this,arguments)});function pemToArrayBuffer(e){for(var t=atob(e.slice(30,e.length-28).trim().replaceAll(/\s/g,"")),n=new Uint8Array(t.length),r=0;rgetItemModelName,bL:()=>getItemNameRaw});var r=n(4186),a=n(81979);n(67022),n(56520),n(72558),n(98719),n(84317),n(8957),n(44792),n(33785),n(9587),n(13278),n(64391),n(86838),n(80062),n(50433),n(97336),n(65855),n(56656),n(42449),n(96573),n(94244),n(42050),n(83902),n(7960),n(46302),n(64813),n(56515),n(86070),n(32831);var o=n(27282),i=n.n(o),s=n(85681),l=n.n(s),c=n(72960),u=n(88203),d=n(36162),getItemMetadata=function(e,t){var n=void 0,r=void 0,o=e.name;o.includes(":")||(o="minecraft:".concat(o));var i=null==(s=t.currentResources)?void 0:s.customItemModelNames[o];if(e.components){var s,c,u=new Map,d=!0,w=!1,p=void 0;try{for(var h,M=e.components[Symbol.iterator]();!(d=(h=M.next()).done);d=!0){var g=h.value;u.set(g.type,g)}}catch(e){w=!0,p=e}finally{try{d||null==M.return||M.return()}finally{if(w)throw p}}var m=u.get("custom_name")||u.get("item_name");m&&(n="string"==typeof m.data?m.data:l().simplify(m.data));var v=u.get("item_model");if(v&&(r=v.data),i){var y,A=u.get("custom_model_data");(null==A?void 0:A.data)&&("number"==typeof A.data?y=A.data:"object"===(0,a._)(A.data)&&"floats"in A.data&&Array.isArray(A.data.floats)&&A.data.floats.length>0&&(y=A.data.floats[0]),y&&i[y]&&(r=i[y]))}var b=u.get("lore");b&&(null!=n||(n=null!=(c=e.displayName)?c:e.name),n+="\n".concat(JSON.stringify(b.data)))}if(e.nbt){var _,L=l().simplify(e.nbt),C=null==(_=L.display)?void 0:_.Name;C&&(n=C),i&&L.CustomModelData&&i[L.CustomModelData]&&(r=i[L.CustomModelData])}return{customText:n,customModel:r}},getItemNameRaw=function(e,t){if(!e)return"";var n=getItemMetadata(e,t).customText;if(n)try{if((void 0===n?"undefined":(0,a._)(n))==="object")return n;var r=n.startsWith("{")&&n.endsWith("}")?i().simplify(i().parse(n)):(0,c.qW)(n);return r.extra,r}catch(e){return{text:JSON.stringify(n)}}},getItemModelName=function(e,t,n,a){var o,i,s=e.name,l=getItemMetadata(e,n).customModel;l&&(s=l);var c=(0,u.AV)(a,(0,r._)({},t)),w=null==(o=(0,d.D)(appViewer.resourcesManager.currentResources.itemsDefinitionsStore,{name:s,version:appViewer.resourcesManager.currentResources.version,properties:c}))?void 0:o.model;return null!=(i="minecraft:special"===w?void 0:w)?i:s}},47161:function(e,t,n){"use strict";n.d(t,{W7:()=>getLastAutoCapturedPackets,g0:()=>localRelayServerPlugin,hj:()=>downloadAutoCapturedPackets}),n(76148),n(2685),n(52003),n(23712),n(12989),n(78873),n(96573),n(94244),n(42050),n(83902),n(64912),n(81812),n(96220),n(72558),n(40542),n(7960),n(46302),n(64813);var r,a=n(75762),o=n(27197),i=n(19008),s=n(17581),l=n(44846),c=n(19478),u=n(67253),d=n(48747),w="",localRelayServerPlugin=function(e){w=e.version,e.on("end",function(){}),e.loadPlugin((0,a.viewerConnector)({tcpEnabled:!1,websocketEnabled:!1}));var t,downloadFile=function(e,t){var n=document.createElement("a"),r=new Blob([e],{type:"text/plain"}),a=URL.createObjectURL(r);n.href=a,n.download=t,n.click(),URL.revokeObjectURL(a)};e.downloadCurrentWorldState=function(){var t=e.webViewer._unstable.createStateCaptureFile(),n=new Date().toISOString().replaceAll(/[-:Z]/g,"");downloadFile(t.contents,"".concat(e.username,"-world-state-").concat(n,".").concat(o.WORLD_STATE_FILE_EXTENSION))},e.startPacketsRecording=function(){e.webViewer._unstable.startRecording(function(e){t=e})},e.stopPacketsRecording=function(){if(t){var n=null==t?void 0:t.contents;t=void 0;var r=new Date().toISOString().replaceAll(/[-:Z]/g,"");downloadFile(n,"".concat(e.username,"-packets-").concat(r,".").concat(o.PACKETS_REPLAY_FILE_EXTENSION)),e.webViewer._unstable.stopRecording()}},r=new i.default(30);var n=0;e._client.on("writePacket",function(t,a){r.add({name:t,state:e._client.state,params:a,isFromServer:!1,timestamp:Date.now()}),u.bl.active&&(d.P.packetsPlayback.push({name:t,data:a,isFromClient:!0,isUpcoming:!1,position:n++,timestamp:Date.now()}),d.P.progress.current++)}),e._client.on("packet",function(t,a){var o=a.name;"map_chunk"===o&&(t={x:t.x,z:t.z}),r.add({name:o,state:e._client.state,params:t,isFromServer:!0,timestamp:Date.now()}),u.bl.active&&(d.P.packetsPlayback.push({name:o,data:t,isFromClient:!1,isUpcoming:!1,position:n++,timestamp:Date.now()}),d.P.progress.total++)});var s=e._client.writeChannel.bind(e._client);e._client.writeChannel=function(e,t){d.P.packetsPlayback.push({name:e,data:t,isFromClient:!0,isUpcoming:!1,position:n++,timestamp:Date.now(),isCustomChannel:!0}),s(e,t)},upPacketsReplayPanel()},upPacketsReplayPanel=function(){u.bl.active&&bot&&(d.P.isOpen=!0,d.P.isMinimized=!0,d.P.isRecording=!0,d.P.replayName="Recording all packets for "+bot.username)};(0,l.Ld)(u.bl,function(){upPacketsReplayPanel()});var getLastAutoCapturedPackets=function(){return null==r?void 0:r.size},downloadAutoCapturedPackets=function(){var e,t,n=new s.PacketsLogger({minecraftVersion:w});n.relativeTime=!1,n.formattedTime=!0;var a=!0,o=!1,i=void 0;try{for(var l,u,d,p,h=(null!=(d=null==r?void 0:r.getLastElements())?d:[])[Symbol.iterator]();!(a=(p=h.next()).done);a=!0){var M=p.value;n.log(M.isFromServer,{name:M.name,state:M.state,time:M.timestamp},M.params)}}catch(e){o=!0,i=e}finally{try{a||null==h.return||h.return()}finally{if(o)throw i}}var g=new Blob([n.contents],{type:"text/plain"}),m=URL.createObjectURL(g),v=document.createElement("a");v.href=m,v.download="".concat(null!=(e=null==(l=c.Pc.value)?void 0:l.server)?e:"unknown-server","-").concat(null!=(t=null==(u=c.Pc.value)?void 0:u.username)?t:"unknown-username","-auto-captured-packets.txt"),v.click(),URL.revokeObjectURL(m)}},95493:function(e,t,n){"use strict";n.d(t,{g:()=>s});var r=n(41441),a=n(68770),o=n(88353),i=n(3212);n(58207);var s=function(e){function UserError(e){var t;return(0,a._)(this,UserError),(t=(0,r._)(this,UserError,[e])).name="UserError",t}return(0,o._)(UserError,e),UserError}((0,i._)(Error))},14972:function(){var e=null;document.addEventListener("touchstart",function(t){if(t.touches.length>1){e=null;return}e&&Date.now()-e.clickTime<500&&e.element===t.target&&(e.element.dispatchEvent(new MouseEvent("dblclick",{bubbles:!0})),e=null),e={clickTime:Date.now(),element:t.target}},{passive:!1})},30367:function(e,t,n){"use strict";n.d(t,{SJ:()=>resetSelectedOptions,YM:()=>A,Zb:()=>getChangedSettings,_G:()=>resetOptions,hI:()=>v,of:()=>y,s:()=>getAppLanguage,t6:()=>watchValue,vC:()=>M.vC,vS:()=>m});var r,a,o,i=n(4186),s=n(59240),l=n(81979);n(48899),n(96573),n(90804),n(24705),n(53346),n(74822),n(96220),n(87620),n(83210),n(52307),n(8416),n(93118),n(82766),n(37151),n(20142),n(89909),n(24578),n(89437),n(802),n(52895),n(46525),n(83930),n(18369),n(41494),n(66616),n(39222),n(83282),n(59237),n(60353),n(40332),n(72040),n(52768),n(2249),n(94244),n(42050),n(83902),n(59045),n(95526),n(39908),n(95790),n(50183),n(7611),n(65340),n(2850),n(49245),n(7960),n(46302),n(64813),n(8705),n(98668),n(74120),n(40542),n(73372);var c=n(44846),u=n(32719),d=n(96196),w=n(32175),p=n(78425),h=n(40451),M=n(76738),g=null!=(a=null==(r=n(14224).env)?void 0:r.INLINED_APP_CONFIG)?a:{},m=Object.fromEntries((null!=(o=w.TK.setting)?o:[]).map(function(e){var t=(0,s._)(e.split(":"),2);return[t[0],JSON.parse(t[1])]})),v=(0,c.sj)({value:new Set(Object.keys(m))}),y=(0,c.sj)({value:new Set}),isDeepEqual=function(e,t){if(e===t)return!0;if((void 0===e?"undefined":(0,l._)(e))!==(void 0===t?"undefined":(0,l._)(t))||(void 0===e?"undefined":(0,l._)(e))!=="object")return!1;if(null===e||null===t)return e===t;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(function(e,n){return isDeepEqual(e,t[n])});var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(n){return isDeepEqual(e[n],t[n])})},getChangedSettings=function(){return Object.fromEntries(Object.entries(p.e1.changedSettings).filter(function(e){var t=(0,s._)(e,2),n=t[0],r=t[1];return!isDeepEqual(M.vC[n],r)}))},A=(0,c.sj)((0,i._)({},M.vC,g.defaultSettings,function(e){if(0===Object.keys(null!=(n=e.touchControlsPositions)?n:{}).length&&(e.touchControlsPositions=M.vC.touchControlsPositions),e.jeiEnabled&&(e.inventoryJeiEnabled=e.jeiEnabled,delete e.jeiEnabled),(null==(t=e.touchControlsPositions)?void 0:t.jump)===void 0&&(e.touchControlsPositions.jump=M.vC.touchControlsPositions.jump),"joystick-buttons"===e.touchControlsType&&(e.touchInteractionType="buttons"),e.lowMemoryMode&&(e.rendererWorldPerformance="low-energy",delete e.lowMemoryMode),"number"==typeof e.multiplayerRenderDistance){var t,n,r,a=e.multiplayerRenderDistance;e.renderDistance=Math.max(e.renderDistance,a),delete e.multiplayerRenderDistance}return(!Number.isFinite(e.renderDistance)||(null!=(r=e.renderDistance)?r:0)<1)&&(e.renderDistance=M.vC.renderDistance),(0,d.Ze)(e),e}(p.e1.changedSettings),m));window.options=window.settings=A;var resetOptions=function(){Object.assign(A,M.vC),p.e1.changedSettings={}},resetSelectedOptions=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value;if(i in M.vC&&!(v.value.has(i)||y.value.has(i))){var s=M.vC[i];A[i]=s,delete p.e1.changedSettings[i]}}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}};Object.defineProperty(window,"debugChangedOptions",{get:function(){return getChangedSettings()}}),(0,c.Ld)(A,function(e){if("true"!==w.EX.freezeSettings){var t=!0,n=!1,r=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value,l=(0,s._)(i,3),c=(l[0],l[1]);l[2];var u=c[0];v.value.has(u)||y.value.has(u)||(p.e1.changedSettings[u]=A[u])}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}});var watchValue=function(e,t){var n=new Set;t(new Proxy(e,{get:function(e,t,r){return n.add(t.toString()),Reflect.get(e,t,r)}}),!1);var r=[],a=!0,o=!1,i=void 0;try{for(var s,l=n[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;r.push((0,u.VW)(e,c,function(){t(e,!0)}))}}catch(e){o=!0,i=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw i}}return function(){var e=!0,t=!1,n=void 0;try{for(var a,o=r[Symbol.iterator]();!(e=(a=o.next()).done);e=!0)(0,a.value)()}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}}};watchValue(A,function(e){globalThis.excludeCommunicationDebugEvents=e.excludeCommunicationDebugEvents}),watchValue(A,function(e){document.body.classList.toggle("disable-assets",e.disableAssets)}),watchValue(A,function(e){document.body.style.setProperty("--touch-movement-buttons-opacity",(e.touchButtonsOpacity/100).toString())}),watchValue(A,function(e){document.body.style.setProperty("--touch-movement-buttons-position",2*e.touchButtonsPosition+"px")});var getAppLanguage=function(){if("auto"===A.language){var e,t;return null!=(t=null==(e=h.N_.appConfig)?void 0:e.defaultLanguage)?t:navigator.language}return A.language}},67253:function(e,t,n){"use strict";n.d(t,{G_:()=>h,ZP:()=>__WEBPACK_DEFAULT_EXPORT__,bl:()=>p,h_:()=>a});var r,a,o=n(14772),i=n(59240),s=n(81979),l=n(9787);n(72216),n(92553),n(69261),n(20823),n(77962),n(98497),n(54487),n(10728),n(84269),n(41021),n(95190),n(81138),n(90758),n(7652),n(60501),n(63765),n(60139),n(41353),n(38409),n(24517),n(33207),n(55914),n(31551),n(4383),n(12516),n(18729),n(88364),n(83450),n(36670),n(26110),n(91292),n(51470),n(52777),n(83902),n(96573),n(33975),n(60398),n(44505),n(10020),n(71698),n(42973),n(21428),n(25113),n(55058),n(29127),n(95790),n(50183),n(7960),n(46302),n(64813),n(94244),n(42050),n(72558),n(73372);var c=n(44846),u=n(17581),d=n(30367),w=n(55872).Buffer,p=(0,c.sj)({active:d.YM.packetsRecordingAutoStart,hasRecordedPackets:!1}),isBufferData=function(e){return!!(w.isBuffer(e)||e instanceof Uint8Array)||(void 0===e?"undefined":(0,s._)(e))==="object"&&null!==e&&Object.values(e).some(function(e){return isBufferData(e)})},processPacketData=function(e){if("no-buffers"===d.YM.packetsLoggerPreset){if(w.isBuffer(e))return"[buffer]";if((void 0===e?"undefined":(0,s._)(e))==="object"&&null!==e){var t={},n=!0,r=!1,a=void 0;try{for(var o,l=Object.entries(e)[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var c=(0,i._)(o.value,2),u=c[0],p=c[1];t[u]=isBufferData(p)?"[buffer]":p}}catch(e){r=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(r)throw a}}return t}}return e};function __WEBPACK_DEFAULT_EXPORT__(){customEvents.on("mineflayerBotCreated",function(){(a=new u.PacketsLogger({minecraftVersion:bot.version})).contents="",p.hasRecordedPackets=!1;var handleServerPacket=function(e,t){var n=t.name,r=t.state,o=void 0===r?bot._client.state:r;p.active&&(a.log(!0,{name:n,state:o},processPacketData(e)),p.hasRecordedPackets=!0)};bot._client.on("packet",handleServerPacket),bot._client.on("packet_name",function(e,t){handleServerPacket(t,{name:e})}),bot._client.on("writePacket",function(e,t){p.active&&(a.log(!1,{name:e,state:bot._client.state},processPacketData(t)),p.hasRecordedPackets=!0)})})}var h=(r=(0,o._)(function(){var e;return(0,l.Jh)(this,function(t){return(e=document.createElement("a")).href="data:text/plain;charset=utf-8,".concat(encodeURIComponent(a.contents)),e.download="packets-replay-".concat(new Date().toISOString(),".txt"),e.click(),[2]})}),function(){return r.apply(this,arguments)});globalThis.downloadPacketsReplay=h},2905:function(e,t,n){"use strict";n.d(t,{Uv:()=>_,ZB:()=>openFile,uO:()=>switchGameMode,jg:()=>startLocalReplayServer});var r,a=n(14772),o=n(59240),i=n(25763),s=n(81979),l=n(9787);n(72558),n(7611),n(65340),n(2850),n(95790),n(83902),n(58207),n(52307),n(8416),n(93118),n(82766),n(37151),n(20142),n(89909),n(24578),n(89437),n(802),n(52895),n(46525),n(83930),n(18369),n(41494),n(66616),n(39222),n(83282),n(59237),n(60353),n(40332),n(72040),n(52768),n(2249),n(96573),n(94244),n(42050),n(34812),n(69047),n(95922),n(40542),n(56070),n(67022),n(56520),n(11304),n(7960),n(46302),n(64813),n(90804),n(24705),n(53346),n(26980),n(52457),n(83210),n(27969),n(50183);var c=n(16069),u=n(17581),d=n(27197),w=n(5444),p=n.n(w),h=n(95493),M=n(48747),g=n(20095),m=n(17595),getFixedFilesize=function(e){return(0,m.Z)(e,{minimumFractionDigits:2,maximumFractionDigits:2})},v=n(55872).Buffer;function openFile(e){var t=e.contents,n=e.filename,r=e.filesize;M.P.replayName="".concat(void 0===n?"unnamed":n," (").concat(getFixedFilesize(null!=r?r:t.length),")"),M.P.isPlaying=!1,dispatchEvent(new CustomEvent("connect",{detail:{worldStateFileContents:t,username:"replay"}}))}var startLocalReplayServer=function(e){var t,n,r=(0,u.parseReplayContents)(e),o=r.packets,i=r.header;if(M.P.packetsPlayback=[],M.P.isOpen=!0,M.P.isPlaying=!0,M.P.progress={current:0,total:o.filter(function(e){return e.isFromServer}).length},M.P.speed=1,(n=M.P).replayName||(n.replayName="local ".concat(getFixedFilesize(e.length))),M.P.replayName="".concat(i.minecraftVersion," ").concat(M.P.replayName),"formatVersion"in i&&1!==i.formatVersion)throw new h.g("Unsupported format version: ".concat(i.formatVersion));if("replayAgainst"in i&&"server"===i.replayAgainst)throw Error("not supported");var s=(0,c.createServer)({Server:g.f,version:i.minecraftVersion,keepAlive:!1,"online-mode":!1}),d=p()(i.minecraftVersion);return s.on(d.supportFeature("hasConfigurationState")?"playerJoin":"login",(t=(0,a._)(function(e){return(0,l.Jh)(this,function(t){switch(t.label){case 0:return[4,b(e,o,!M.P.customButtons.validateClientPackets.state||void 0)];case 1:return t.sent(),[2]}})}),function(e){return t.apply(this,arguments)})),{server:s,version:i.minecraftVersion}},y=new Set([]),A={client:0,server:0},addPacketToReplayer=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=n?"client":"server";if(r){var o=M.P.packetsPlayback.find(function(t){return t.isUpcoming&&t.name===e});o&&(o.isUpcoming=!1)}else M.P.packetsPlayback.push({name:e,data:t,isFromClient:n,position:++A[a],isUpcoming:!1,timestamp:Date.now()});!n&&!r&&M.P.progress.current++},b=(r=(0,a._)(function(e,t){var n,r,a,s,c,u,d,w,p,h,g,m,v,b,_,L=arguments;return(0,l.Jh)(this,function(C){switch(C.label){case 0:n=L.length>2&&void 0!==L[2]?L[2]:[],r=function(t,n){n=restoreData(n),e.write(t,n)},a=t.filter(function(e){return"play"===e.state}),s=[],c=createPacketsWaiter({unexpectedPacketReceived:function(e,t){console.log("unexpectedPacketReceived",e,t),addPacketToReplayer(e,t,!0)},expectedPacketReceived:function(e,t){console.log("expectedPacketReceived",e,t),addPacketToReplayer(e,t,!0,!0)},unexpectedPacketsLimit:15,onUnexpectedPacketsLimitReached:function(){addPacketToReplayer("...",{},!0)}}),u=console.error,d=null,console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=null,n=[],r=!1,o=0,handlePacket=function(t,n,r,a){var i,s,l;r.includes(n)?(r.splice(r.indexOf(n),1),null==(i=e.expectedPacketReceived)||i.call(e,n,t)):(e.unexpectedPacketsLimit&&oq,ZP:()=>E,kh:()=>quickDevReconnect,$1:()=>reconnectReload,FI:()=>resetAppStatusState});var r=n(14772),a=n(59240),o=n(25763),i=n(9787);n(49245),n(56515),n(87620),n(83210),n(74822),n(96220),n(67022),n(56520),n(66395),n(56843),n(98474),n(90804),n(24705),n(53346),n(72558),n(34812),n(69047),n(95922),n(95790),n(83902);var s=n(52676),l=n(44846),c=n(9117),u=n(75271),d=n(40451);n(32831);var guessProblem=function(e){if(e.endsWith("Socket error: ECONNREFUSED"))return"Most probably the server is not running."},w=n(67253),p=n(63389),h=n(47161),M=n(32175),g=n(19478);n(7960),n(46302),n(56070),n(86070),n(52251),n(42050),n(79525);let m={appStatusTitleContextInfo:"app-status-title-context-info-y1wg4x",description:"description-CKQUPy","last-status":"last-status-js4NpE"};var v=n(83389),y=n(27678),A=n(47477),b=n(33927);let _=(0,b.K)(function(e){var t,n,o,l=e.status,c=e.isError,d=e.hideDots,w=e.lastStatus,p=void 0===w?"":w,h=e.backAction,b=void 0===h?void 0:h,_=e.description,L=e.actionsSlot,C=e.showReconnect,j=e.onReconnect,D=void 0===j?void 0:j,x=e.children,k=(0,a._)((0,u.useState)(0),2),N=k[0],T=k[1];g.Pc.hadWorldLoaded,(0,u.useEffect)(function(){var e;(e=(0,r._)(function(){return(0,i.Jh)(this,function(e){var t,n;return t=(0,r._)(function(e){return(0,i.Jh)(this,function(t){return[2,new Promise(function(t){setTimeout(t,e)})]})}),n=(0,r._)(function(){return(0,i.Jh)(this,function(e){switch(e.label){case 0:return T(function(e){return(e+1)%4}),[4,function(e){return t.apply(this,arguments)}(500)];case 1:return e.sent(),[3,0];case 2:return[2]}})}),!function(){n.apply(this,arguments)}(),[2]})}),function(){return e.apply(this,arguments)})()},[]);var S="true"===M.EX.lockConnect,z=g.Pc.value,q=(null==z?void 0:z.server)&&!z.server.startsWith("ws://")&&!z.server.startsWith("wss://")?z.proxy:void 0;return(0,s.jsx)("div",{className:"",children:(0,s.jsxs)(y.Z,{className:"small-content",titleSelectable:c,title:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"app-status-title",style:{wordBreak:"break-word",whiteSpace:"pre-wrap"},children:l}),(0,s.jsx)("div",{style:{display:"inline-flex",gap:"1px"},hidden:void 0!==d&&d||c,children:Array.from("...").map(function(e,t){return(0,s.jsx)("span",{style:{visibility:N<=t?"hidden":"visible"},children:e},t)})}),(0,s.jsx)("p",{className:m.description,children:void 0===_?"":_}),(0,s.jsx)("p",{className:m["last-status"],children:p?"Last status: ".concat(p):p}),c&&(0,s.jsxs)("p",{className:"app-status-title-context-info ".concat(m.appStatusTitleContextInfo),children:["S: ",null!=(t=null==z?void 0:z.server)?t:"N/A"," "," ","P: ",null!=q?q:"N/A"," "," ","V: ",null!=(n=null==z?void 0:z.botVersion)?n:"auto"," "," ","U: ",null!=(o=null==z?void 0:z.username)?o:"N/A"," ","cV: ","v2.1.0"]})]}),backdrop:"dirt",children:[c&&(0,s.jsxs)(s.Fragment,{children:[void 0!==C&&C&&D&&(0,s.jsx)(v.Z,{onClick:D,children:(0,s.jsx)("b",{children:"Reconnect"})}),void 0===L?null:L,!S&&(0,s.jsx)(v.Z,{onClick:function(){location.search?location.search="":window.location.reload()},children:(0,s.jsx)("b",{children:"Reset App (recommended)"})}),b&&(0,s.jsx)(v.Z,{label:"Back",onClick:b})]}),x,(0,s.jsx)(A.Z,{})]})})},"appStatus");var L=n(13432),C=n(33634);let j={container:"container-HLYI5E",main:"main-i6FZfW"},D=(0,b.K)(function(e){var t=e.children,n=e.open,r=e.isError,o=(0,a._)((0,u.useState)(!1),2),i=o[0],l=o[1];return((0,u.useEffect)(function(){var e;return!i&&n&&l(!0),i&&!n&&(e=setTimeout(function(){l(!1)},300)),function(){e&&clearTimeout(e)}},[n]),i)?(0,s.jsx)(L.M,{children:n&&(0,s.jsx)("div",{className:j.container,children:(0,s.jsx)(C.E.div,{initial:!1,exit:void 0!==r&&r?void 0:{opacity:0},transition:{duration:.3},className:j.main,children:t})})}):null},"diveTransition");var x=n(74614),k=n(76412),N=n(30232),T=n(3308);function react_LoadingChunks(e){var t,n,r,i,l=e.regionFiles,c=void 0===l?[]:l,u=e.stateMap,d=void 0===u?{}:u,w=e.displayText,p=void 0!==w&&w,h=e.playerChunk,M=void 0===h?null:h,g=c.map(function(e){return e.split(".").slice(1,3).map(Number)}),m=(t=Math).min.apply(t,(0,o._)(g.map(function(e){return(0,a._)(e,1)[0]}))),v=(n=Math).max.apply(n,(0,o._)(g.map(function(e){return(0,a._)(e,1)[0]}))),y=(r=Math).min.apply(r,(0,o._)(g.map(function(e){return(0,a._)(e,2)[1]}))),A=(i=Math).max.apply(i,(0,o._)(g.map(function(e){return(0,a._)(e,2)[1]}))),b=v-m+1,_=A-y+1;return(0,s.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(".concat(b,", 1fr)"),gridTemplateRows:"repeat(".concat(_,", 1fr)"),gap:1,width:"110px",height:"110px"},children:Array.from({length:b*_}).map(function(e,t){var n=m+t%b,r=y+Math.floor(t/b),a="r.".concat(n,".").concat(r,".mca"),o=d[a];return c.includes(a)?(0,s.jsx)(Chunk,{x:n,z:r,state:o,displayText:p,currentPlayer:(null==M?void 0:M.x)===n&&(null==M?void 0:M.z)===r},t):(0,s.jsx)("div",{style:{background:"gray"}},t)})})}n(58819),n(59045),n(38930);var Chunk=function(e){var t=e.x,n=e.z,r=e.state,a=e.displayText,o=e.currentPlayer,i=a?"".concat(t,",").concat(n):void 0;return(0,s.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",background:"errored"===r?"red":"loading"===r?"white":"limegreen",animation:"loading"===r?"loading-chunks-loading-animation 4s infinite cubic-bezier(0.4, 0, 0.2, 1)":void 0,transition:"background 1s",color:"loading"===r?"black":"white",position:"relative",zIndex:1},children:[o&&(0,s.jsx)("div",{style:{position:"absolute",background:"red",borderRadius:"50%",width:"5px",height:"5px",zIndex:-1}}),i]})},S=n(85691),z={status:"",lastStatus:"",maybeRecoverable:!0,descriptionHint:"",isError:!1,hideDots:!1,loadingChunksData:null,loadingChunksDataPlayerChunk:null,isDisplaying:!1,minecraftJsonMessage:null,showReconnect:!1},q=(0,l.sj)(z),resetAppStatusState=function(){Object.assign(q,z)},saveReconnectOptions=function(e){sessionStorage.setItem("reconnectOptions",JSON.stringify({value:e,timestamp:Date.now()}))},reconnectReload=function(){g.Pc.value&&saveReconnectOptions(g.Pc.value),window.location.reload()},quickDevReconnect=function(){g.Pc.value&&(resetAppStatusState(),window.dispatchEvent(new window.CustomEvent("connect",{detail:g.Pc.value})))};let E=(0,b.K)(function(){var e,t=(0,u.useRef)(JSON.parse(JSON.stringify(q))),n=(0,c.R)(q),a=(0,c.R)(w.bl).active,l=(0,k.uM)("app-status");l&&(t.current=JSON.parse(JSON.stringify(n)));var p=l?n:t.current,m=p.isError,y=p.lastStatus,A=p.maybeRecoverable,b=p.status,L=p.hideDots,C=p.descriptionHint,j=p.loadingChunksData,z=p.loadingChunksDataPlayerChunk,E=p.minecraftJsonMessage,I=p.showReconnect;(0,x.Dz)(function(){if(!l){var startDiveAnimation=function(e){e.style.animationName="dive-animation",e.parentElement.style.perspective="1200px",e.onanimationend=function(){e.parentElement.style.perspective="",e.onanimationend=null}},e=document.querySelector("#viewer-canvas"),t=null;return e?startDiveAnimation(e):(t=new MutationObserver(function(e){var n=document.querySelector("#viewer-canvas");n&&(startDiveAnimation(n),t.disconnect())})).observe(document.body,{childList:!0,subtree:!0}),function(){t&&t.disconnect()}}},[l]),(0,u.useEffect)(function(){var e=new AbortController;return window.addEventListener("keyup",function(e){var t,n,r;!"input textarea select".split(" ").includes(null!=(r=null==(t=e.target.tagName)?void 0:t.toLowerCase())?r:"")&&(null==(n=d.M.at(-1))?void 0:n.reactType)==="app-status"&&"KeyR"===e.code&&g.Pc.value&&quickDevReconnect()},{signal:e.signal}),function(){return e.abort()}},[]);var P=b.includes("This server appears to be an online server and you are providing no authentication.")||JSON.stringify(null!=E?E:{}).toLowerCase().includes("authenticate"),hasVpnText=function(e){return e.includes("VPN")||e.includes("Proxy")},Y=hasVpnText(b)||E&&hasVpnText(JSON.stringify(E)),O=(e=(0,r._)(function(){var e,t;return(0,i.Jh)(this,function(n){switch(n.label){case 0:return e=[],(0,N.ky)(function(t){return e=t,t}),[4,(0,T.un)("Choose account to connect with",(0,o._)(e.map(function(e){return e.username})).concat(["Use other account"]))];case 1:if(!(t=n.sent()))return[2];return g.Pc.value.authenticatedAccount=e.find(function(e){return e.username===t})||!0,quickDevReconnect(),[2]}})}),function(){return e.apply(this,arguments)}),R=(0,h.W7)(),B="true"===M.EX.lockConnect,U=void 0;return!A||B&&I||(U=function(){if((0,d.om)(),!I)return void(0,d.VG)(void 0,void 0,{force:!0});if(resetAppStatusState(),d.N_.gameLoaded=!1,d.N_.loadedDataVersion=null,window.loadedData=void 0,d.eJ["main-menu"]){var e;(0,d.w6)("main-menu"),(null==(e=d.M.at(-1))?void 0:e.reactType)==="app-status"&&(0,d.VG)(void 0,void 0,{force:!0})}else(0,d.VG)(void 0,void 0,{force:!0})}),(0,s.jsx)(D,{open:l,isError:m,children:(0,s.jsxs)(_,{status:b,isError:m||""===b,hideDots:L,lastStatus:y,showReconnect:I,onReconnect:reconnectReload,description:(0,s.jsxs)(s.Fragment,{children:[P?"":(m?guessProblem(b):"")||C,E&&(0,s.jsx)(S.Z,{message:E})]}),backAction:U,actionsSlot:(0,s.jsxs)(s.Fragment,{children:[P&&(0,s.jsx)(v.Z,{label:"Authenticate",onClick:O}),Y&&(0,s.jsx)(PossiblyVpnBypassProxyButton,{reconnect:quickDevReconnect}),a&&(0,s.jsx)(v.Z,{label:"Download Packets Replay ".concat(null===w.h_||void 0===w.h_?void 0:w.h_.contents.split("\n").length,"L"),onClick:w.G_}),I&&R&&(0,s.jsx)(v.Z,{label:"Inspect Last ".concat(R," Packets"),onClick:function(){return(0,h.hj)()}})]}),children:[j&&(0,s.jsx)(react_LoadingChunks,{regionFiles:Object.keys(j),stateMap:j,playerChunk:z}),l&&(0,s.jsx)(DisplayingIndicator,{})]})})},"appStatusProvider");var DisplayingIndicator=function(){return(0,u.useEffect)(function(){requestAnimationFrame(function(){requestAnimationFrame(function(){q.isDisplaying=!0})})},[]),(0,s.jsx)("div",{})},PossiblyVpnBypassProxyButton=function(e){var t=e.reconnect,n=(0,a._)((0,u.useState)(""),2),o=n[0],l=n[1];if((0,u.useEffect)(function(){var e,t,n=null==(t=g.Pc.value)?void 0:t.proxy;n&&(0,p.S)(n).then((e=(0,r._)(function(e){return(0,i.Jh)(this,function(t){return[2,e.json()]})}),function(t){return e.apply(this,arguments)})).then(function(e){var t=e.capabilities.vpnBypassProxy;t&&l(t)}).catch(function(){})},[]),o)return(0,s.jsx)(v.Z,{label:"Use VPN bypass proxy",onClick:function(){var e;(0,N.Mf)(function(e){return e.proxyOverride=o,e},null==(e=g.Pc.value)?void 0:e.serverIndex),g.Pc.value.proxy=o,t()}})}},50343:function(e,t,n){"use strict";n.d(t,{K:()=>L,Z:()=>__WEBPACK_DEFAULT_EXPORT__});var r,a,o=n(14772),i=n(4186),s=n(22312),l=n(59240),c=n(9787);n(56070),n(83902),n(49245),n(64912),n(81812),n(96220),n(90804),n(24705),n(53346),n(72558),n(6645),n(73372),n(55058),n(29127),n(95790),n(15209);var u=n(52676),d=n(44846),w=n(9117),p=n(75271),h=n(40451),M=n(4741),g=n(48044),m=n(27678),v=n(76412),y=n(74614),A=n(83389),b=n(76945),_=(0,d.sj)({mode:"login",serverIp:"",username:"",prefilledPassword:""}),L=(r=(0,o._)(function(e){return(0,c.Jh)(this,function(t){return(0,h.K4)({reactType:"auto-fill-login"}),[2,new Promise(function(t){var n;a=t,Object.assign(_,{mode:e.mode,serverIp:e.serverIp,username:e.username,prefilledPassword:null!=(n=e.prefilledPassword)?n:""})})]})}),function(e){return r.apply(this,arguments)}),C={fontFamily:"minecraft, mojangles, monospace",fontSize:10,color:"white",background:"rgba(0, 0, 0, 0.5)",border:"1px solid #A0A0A0",outline:"none",padding:"4px 6px",width:200,boxSizing:"border-box"},j={fontSize:8,color:"#A0A0A0",marginTop:2,textAlign:"center",maxWidth:200},D="Used as identifier in your password manager",x={fontSize:9,color:"#A0A0A0",textAlign:"center",maxWidth:220},k=((0,s._)((0,i._)({},j),{color:"transparent",pointerEvents:"none"}),{fontSize:9,color:"#FF5555",textAlign:"center",maxWidth:220}),N=((0,s._)((0,i._)({},C),{pointerEvents:"none",color:"transparent",background:"transparent",border:"1px solid transparent"}),function(e){return e.replaceAll("&","&").replaceAll('"',""").replaceAll("<","<")}),T={register:"auto-fill-register-submit",changepassword:"auto-fill-changepassword-submit"},measureIframeFormLayout=function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.getBoundingClientRect(),i=r.getBoundingClientRect(),rel=function(e){return{top:(e.top-o.top)/a,left:(e.left-o.left)/a,width:e.width/a,height:e.height/a}};return{iframeWidth:o.width/a,iframeHeight:(i.bottom-o.top)/a+16,fields:t.map(function(e){return rel(e.getBoundingClientRect())}),caption:rel(n.getBoundingClientRect()),button:rel(i)}},mountIframeAuthForm=function(e,t,n,r,a,o){e.src="about:blank",e.style.width="".concat(t.iframeWidth,"px"),e.style.height="".concat(t.iframeHeight,"px");var i=("register"===n?[{name:"username",type:"text",autoComplete:"username",value:r},{name:"password",type:"password",autoComplete:"new-password",value:a,placeholder:"Password"},{name:"password-confirm",type:"password",autoComplete:"new-password",placeholder:"Confirm password"}]:[{name:"username",type:"text",autoComplete:"username",value:r},{name:"old-password",type:"password",autoComplete:"current-password",value:a,placeholder:"Old password"},{name:"new-password",type:"password",autoComplete:"new-password",placeholder:"New password"},{name:"confirm-new-password",type:"password",autoComplete:"new-password",placeholder:"Confirm new password"}]).map(function(e,n){var r,a=void 0===e.value?"":'value="'.concat(N(e.value),'"'),o=e.placeholder?'placeholder="'.concat(N(e.placeholder),'"'):"";return'')}).join("\n "),s=t.button,l=t.caption,c="position:absolute;top:".concat(l.top,"px;left:").concat(l.left,"px;width:").concat(l.width,"px;height:").concat(l.height,"px;box-sizing:border-box;margin:0;font-family:minecraft,mojangles,monospace;font-size:7px;color:#A0A0A0;text-align:center;display:flex;align-items:center;justify-content:center;line-height:1.2;padding-top:7px;"),u=y.G6?"#000":"transparent",d=y.G6?"#000":"none",w=T[n],p='\n \n \n \n \n \n \n \n \n
\n ').concat(i,'\n
').concat(D,'
\n \n
\n
\n \n \n ').trimStart(),h=e.contentDocument;if(h){h.open(),h.write(p);var M=h.createElement("script");M.textContent="register"===n?"\n function handleSubmit(e) {\n var err = document.getElementById('iframe-error');\n var pw = document.querySelector('[name=password]').value.trim();\n var cf = document.querySelector('[name=password-confirm]').value.trim();\n err.textContent = '';\n if (!pw) { err.textContent = 'Password is required'; e.preventDefault(); return; }\n if (pw !== cf) { err.textContent = 'Passwords do not match'; e.preventDefault(); return; }\n window.parent.postMessage({ type: '".concat(w,"', password: pw }, '*');\n }\n "):"\n function handleSubmit(e) {\n var err = document.getElementById('iframe-error');\n var oldPw = document.querySelector('[name=old-password]').value.trim();\n var newPw = document.querySelector('[name=new-password]').value.trim();\n var cf = document.querySelector('[name=confirm-new-password]').value.trim();\n err.textContent = '';\n if (!oldPw) { err.textContent = 'Old password is required'; e.preventDefault(); return; }\n if (!newPw) { err.textContent = 'New password is required'; e.preventDefault(); return; }\n if (newPw !== cf) { err.textContent = 'New passwords do not match'; e.preventDefault(); return; }\n if (oldPw === newPw) { err.textContent = 'New password must differ from old password'; e.preventDefault(); return; }\n window.parent.postMessage({ type: '".concat(w,"', password: oldPw, newPassword: newPw }, '*');\n }\n "),h.head.appendChild(M),h.close()}},S={display:"flex",flexDirection:"column",gap:5,width:C.width};globalThis.debugAutoFillLogin=function(){L({mode:"register",serverIp:"localhost",username:"test",prefilledPassword:""})};var z="https://mcraft-download-hack.vercel.app";function __WEBPACK_DEFAULT_EXPORT__(){var e=(0,M.K)(),t=(0,w.R)(_),n=t.mode,r=t.serverIp,o=t.username,c=t.prefilledPassword,d=(0,v.uM)("auto-fill-login"),L=(0,p.useRef)(null),N=(0,p.useRef)(null),T=(0,p.useRef)(null),q=(0,p.useRef)(null),E=(0,p.useRef)(null),I=(0,p.useRef)(null),P=(0,p.useRef)(null),Y=(0,p.useRef)(null),O=(0,l._)((0,p.useState)(""),2),R=O[0],B=O[1],U=(0,l._)((0,p.useState)(!1),2),Q=U[0],F=U[1],W=(0,l._)((0,p.useState)(!1),2),J=W[0],V=W[1],G=(0,p.useRef)(void 0),H="".concat(r,"-").concat(o),Z=y.G6&&("register"===n||"changepassword"===n)&&!1,finishSubmit=function(e){B(""),null==a||a(e),a=void 0,(0,h.kJ)()},sendCommandFromModal=function(e){var t=window.bot,a=(0,g.Zt)(n,e.password,e.newPassword);if(!t||!a)return!1;try{t.chat(a)}catch(e){}return(0,g.gL)({password:e.password,newPassword:e.newPassword,mode:n,source:"modal",serverIp:r,username:o,preSaved:!1}),!0},beginSafariSaveStep=function(e){if(!sendCommandFromModal(e))return void B("Could not send command");G.current=e,B(""),V(!0)},handleSkipSave=function(){var e=G.current;if(!e)return void handleCancel();finishSubmit((0,s._)((0,i._)({},e),{commandSent:!0}))},K=(0,p.useCallback)(function(t){var n=P.current,r=Y.current,a=I.current,o=E.current;if(n&&r&&a&&o){var i="register"===t?[q.current,L.current,N.current]:[q.current,L.current,T.current,N.current];i.some(function(e){return!e})||mountIframeAuthForm(r,measureIframeFormLayout(n,i,o,a,e),t,H,null!=c?c:"","register"===t?"Register":"Change")}},[H,c,e]);if((0,p.useEffect)(function(){},[d,n,K]),(0,p.useEffect)(function(){d&&(B(""),F(!1),V(!1),G.current=void 0,L.current&&(L.current.value=null!=c?c:""),N.current&&(N.current.value=""),T.current&&(T.current.value=""),q.current&&(q.current.value=H))},[d,c,r,o,n,H]),!d)return null;var X="login"===n?"Auto-fill server access":"register"===n?"Auto-fill server registration":"changepassword"===n?"Auto-fill password change":"Auto-fill account deletion",handleSubmit=function(e){if(J&&Z){e.preventDefault(),bot.end(),(0,b.$1)();return}if(e.preventDefault(),"unregister"===n){var t,r,a,o,i=(null!=(o=null==(a=L.current)?void 0:a.value)?o:"").trim();return i?Q?void finishSubmit({password:i}):void B("You must confirm account deletion"):void B("Password is required")}if("register"===n){var s,l,c,u,d=(null!=(c=null==(s=L.current)?void 0:s.value)?c:"").trim(),w=(null!=(u=null==(l=N.current)?void 0:l.value)?u:"").trim();return d?d!==w?void B("Passwords do not match"):Z?void beginSafariSaveStep({password:d}):void finishSubmit({password:d}):void B("Password is required")}if("changepassword"===n){var p,h,M,g,m,v,y=(null!=(g=null==(p=L.current)?void 0:p.value)?g:"").trim(),A=(null!=(m=null==(h=T.current)?void 0:h.value)?m:"").trim(),_=(null!=(v=null==(M=N.current)?void 0:M.value)?v:"").trim();return y?A?A!==_?void B("New passwords do not match"):y===A?void B("New password must differ from old password"):Z?void beginSafariSaveStep({password:y,newPassword:A}):void finishSubmit({password:y,newPassword:A}):void B("New password is required"):void B("Old password is required")}var C=(null!=(t=null==(r=L.current)?void 0:r.value)?t:"").trim();if(!C)return void B("Password is required");finishSubmit({password:C})},handleCancel=function(){if(J)return void handleSkipSave();B(""),null==a||a(void 0),a=void 0,(0,h.kJ)()};if("login"===n)return(0,u.jsx)(m.Z,{title:X,backdrop:!0,children:(0,u.jsxs)("form",{onSubmit:handleSubmit,style:{display:"flex",flexDirection:"column",gap:9,alignItems:"center"},action:z,children:[(0,u.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[(0,u.jsx)("input",{ref:q,type:"text",name:"username",autoComplete:"username",defaultValue:H,style:C}),(0,u.jsx)("div",{style:j,children:D})]}),(0,u.jsx)("input",{ref:L,type:"password",name:"password",autoComplete:"current-password",autoFocus:!0,defaultValue:c,placeholder:"Password",style:C}),R&&(0,u.jsx)("div",{style:k,children:R}),(0,u.jsxs)("div",{style:S,children:[(0,u.jsx)(A.Z,{type:"submit",children:"Login"}),(0,u.jsx)(A.Z,{type:"button",onClick:handleCancel,children:"Cancel"})]})]})});if("register"===n||"changepassword"===n){var $,ee="register"===n?"Register":"Change",et=J?"Save to browser":ee,en=J?"Skip save":"Cancel";return(0,u.jsx)(m.Z,{title:X,backdrop:!0,children:(0,u.jsxs)("form",{action:z,method:"post",onSubmit:handleSubmit,style:{display:"flex",flexDirection:"column",gap:9,alignItems:"center"},children:[(0,u.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[(0,u.jsx)("input",{ref:q,type:"text",name:"username",autoComplete:"username",defaultValue:H,style:C}),(0,u.jsx)("div",{style:j,children:D})]}),"register"===n?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("input",{ref:L,type:"password",name:"password",autoComplete:"new-password",autoFocus:!J,defaultValue:c,placeholder:"Password",style:C}),!J&&(0,u.jsx)("input",{ref:N,type:"password",name:"password-confirm",autoComplete:"new-password",placeholder:"Confirm password",style:C})]}):(0,u.jsxs)(u.Fragment,{children:[!J&&(0,u.jsx)("input",{ref:L,type:"password",name:"old-password",autoComplete:"current-password",autoFocus:!0,defaultValue:c,placeholder:"Old password",style:C}),(0,u.jsx)("input",{ref:J?L:T,type:"password",name:J?"password":"new-password",autoComplete:"new-password",autoFocus:J,defaultValue:J?null==($=G.current)?void 0:$.newPassword:void 0,placeholder:J?"Password":"New password",style:C}),!J&&(0,u.jsx)("input",{ref:N,type:"password",name:"confirm-new-password",autoComplete:"new-password",placeholder:"Confirm new password",style:C})]}),J&&(0,u.jsx)("div",{style:x,children:"Command sent — save password in browser?"}),R&&(0,u.jsx)("div",{style:k,children:R}),(0,u.jsxs)("div",{style:S,children:[(0,u.jsx)(A.Z,{type:"submit",children:et}),(0,u.jsx)(A.Z,{type:"button",onClick:J?handleSkipSave:handleCancel,children:en})]})]})})}return(0,u.jsx)(m.Z,{title:X,backdrop:!0,children:(0,u.jsxs)("form",{action:z,onSubmit:handleSubmit,style:{display:"flex",flexDirection:"column",gap:9,alignItems:"center"},children:[(0,u.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[(0,u.jsx)("input",{ref:q,type:"text",name:"username",autoComplete:"username",defaultValue:H,style:C}),(0,u.jsx)("div",{style:j,children:D})]}),(0,u.jsx)("input",{ref:L,type:"password",name:"password",autoComplete:"current-password",autoFocus:!0,defaultValue:c,placeholder:"Password",style:C}),(0,u.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:9,color:"#FF5555",maxWidth:220,cursor:"pointer"},children:[(0,u.jsx)("input",{type:"checkbox",checked:Q,onChange:function(e){return F(e.target.checked)},style:{cursor:"pointer"}})," ","I understand this will delete my account on this server permanently"]}),R&&(0,u.jsx)("div",{style:k,children:R}),(0,u.jsxs)("div",{style:{display:"flex",gap:5},children:[(0,u.jsx)(A.Z,{type:"submit",style:{backgroundColor:"#AA0000"},children:"Unregister"}),(0,u.jsx)(A.Z,{type:"button",onClick:handleCancel,children:"Cancel"})]})]})})}},83389:function(e,t,n){"use strict";n.d(t,{e:()=>ButtonProvider,Z:()=>M});var r=n(4186),a=n(22312),o=n(40413);n(7960),n(46302),n(83902),n(64813),n(96573),n(94244),n(42050),n(72558),n(90804),n(24705),n(53346);var i=n(52676),s=n(29981),l=n.n(s),c=n(75271);let u={button:"button-KqXTeV",icon:"icon-rzxum4"};var d=n(64868),w=n(7329),p=n(33927),h=(0,c.createContext)({onClick:function(){}}),ButtonProvider=function(e){var t=e.children,n=e.onClick;return(0,i.jsx)(h.Provider,{value:{onClick:n},children:t})};let M=(0,p.K)(function(e){var t,n,s,p=e.label,M=e.icon,g=e.children,m=e.inScreen,v=e.rootRef,y=e.type,A=e.postLabel,b=e.overlayColor,_=(e.noTranslate,(0,o._)(e,["label","icon","children","inScreen","rootRef","type","postLabel","overlayColor","noTranslate"])),L=(0,r._)({},_.style),C=(0,c.useRef)(null);(0,c.useEffect)(function(){var traverse=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=e.childNodes[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value;i.nodeType===Node.TEXT_NODE?i.textContent&&(i.textContent=translate(i.textContent)):traverse(i)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}};traverse(C.current)},[p,g,A]),_.title=translate(_.title);var j=(0,c.useContext)(h),D="".concat(null!=(t=translate(p))?t:""," ").concat("string"==typeof g?translate(g):"");m&&(L.width=150,_.className="".concat(null!=(n=_.className)?n:""," settings-text-container")),"number"==typeof L.width&&(L.width<=150&&D.length>17||L.width>=90&&D.length>=11)&&(_.className="".concat(null!=(s=_.className)?s:""," settings-text-container-long")),M&&(null===L.width||void 0===L.width)&&(L.width=20);var x=!!(M&&!p&&!g&&!A),k="number"==typeof L.width?L.width:20,N=x?{top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontSize:Math.round(k/20*14)}:void 0;return(0,i.jsx)(d.Z,{children:(0,i.jsxs)("button",(0,a._)((0,r._)({ref:function(e){C.current=e,"function"==typeof v?v(e):v&&(v.current=e)}},_),{style:L,className:l()(u.button,_.className),onClick:function(e){var t;j.onClick(),null==(t=_.onClick)||t.call(_,e)},type:void 0===y?"button":y,children:[M&&(0,i.jsx)(w.Z,{className:u.icon,iconName:M,styles:N}),p,A,g,b&&(0,i.jsx)("div",{style:{position:"absolute",inset:0,backgroundColor:b,opacity:.5,pointerEvents:"none"}})]}))})},"button")},11366:function(e,t,n){"use strict";n.d(t,{e:()=>L,Z:()=>C});var r=n(14772),a=n(4186),o=n(22312),i=n(59240),s=n(25763),l=n(9787);n(50183),n(7611),n(65340),n(2850),n(95790),n(83902),n(90804),n(24705),n(53346),n(74822),n(96220),n(44982),n(11747),n(10591),n(8705),n(72558),n(79653),n(87620),n(83210),n(86070),n(56515),n(58819),n(73355),n(52457),n(67022),n(56520),n(66395),n(56843),n(98474),n(27969),n(61816);var c=n(52676),u=n(44846),d=n(75271),w=n(19478),p=n(48044),h=n(54315),M=n(74614),g=n(83389),m=n(7329),v=n(43776),y=n(33927),A=n(46229),b=n(50343),_=n(30232),MessageLine=function(e){var t=e.message,n=e.currentPlayerName,r=e.chatOpened,s=(0,i._)((0,d.useState)("visible"),2),l=s[0],u=s[1];return(0,d.useEffect)(function(){if(!window.debugStopChatFade){var e=setTimeout(function(){u("fading")},5e3),t=setTimeout(function(){u("faded")},8e3);return function(){clearTimeout(e),clearTimeout(t)}}},[]),(0,c.jsx)("li",{className:Object.entries({"chat-message":!0,"chat-message-fading":!r&&"fading"===l,"chat-message-faded":!r&&"faded"===l}).filter(function(e){return(0,i._)(e,2)[1]}).map(function(e){return(0,i._)(e,1)[0]}).join(" "),"data-time":t.timestamp?new Date(t.timestamp).toLocaleString("en-US",{hour12:!1}):void 0,children:t.parts.map(function(e,t){if("string"==typeof e.text&&n){var r=e.text.split(RegExp("(@".concat(n,")"),"i"));if(r.length>1)return r.map(function(t,r){var i=(0,o._)((0,a._)({},e),{text:t});return t.toLowerCase()==="@".concat(n).toLowerCase()&&(i.color="#ffa500",i.bold=!0),(0,c.jsx)(h.Xo,{part:i},r)})}return(0,c.jsx)(h.Xo,{part:e},t)})})},L=(0,u.sj)({value:""});let C=(0,y.K)(function(e){var t,n,h,y,C,j,D=e.messages,x=e.opacity,k=void 0===x?1:x,N=e.fetchCompletionItems,T=e.opened,S=e.sendMessage,z=e.onClose,q=e.usingTouch,E=e.allowSelection,I=e.inputDisabled,P=e.placeholder,Y=e.chatVanillaRestrictions,O=e.debugChatScroll,R=e.getPingComplete,B=e.currentPlayerName,U=e.spellCheckEnabled,Q=void 0!==U&&U,F=e.onSpellCheckEnabledChange,W=(0,d.useMemo)(function(){return/^[\w\d_]+$/i.test(null!=B?B:"")?B:""},[B]),J=(0,d.useRef)(JSON.parse(window.sessionStorage.chatHistory||"[]")),V=(0,i._)((0,d.useState)(!1),2),G=V[0],H=V[1],Z=(0,i._)((0,d.useState)(""),2),K=Z[0],X=Z[1],$=(0,i._)((0,d.useState)(0),2),ee=$[0],et=$[1],en=(0,d.useRef)(JSON.parse(window.localStorage.pingHistory||"[]")),er=(0,i._)((0,d.useState)(null),2),ea=er[0],eo=er[1],ei=(0,i._)((0,d.useState)(""),2),es=ei[0],el=ei[1],ec=(0,d.useRef)(""),eu=(0,i._)((0,d.useState)([]),2),ed=eu[0],ew=eu[1],ef=(0,i._)((0,d.useState)([]),2),ep=ef[0],eh=ef[1],eM=(0,d.useRef)(null),eg=(0,d.useRef)(null),em=(0,d.useRef)(J.current.length),ev=(0,d.useRef)(0),ey=(0,d.useRef)(""),eA=(0,d.useRef)(J.current.filter(function(e){return e.startsWith("/")})),eb=(0,v.f)(eg,{messages:D,opened:T}),e_=eb.scrollToBottom,eL=eb.isAtBottom,eC=eb.wasAtBottom,ej=eb.currentlyAtBottom,eD=(0,i._)((0,d.useState)(!1),2),ex=eD[0],ek=eD[1],eN=(0,A.e)(),eT=eN?(0,c.jsx)("div",{style:{position:"relative",zIndex:1},children:(0,c.jsx)("div",{style:(0,a._)({fontSize:"9px",color:"white",textShadow:"1px 1px 0px #3f3f3f",fontFamily:"mojangles, minecraft, monospace",padding:"2px 4px",borderRadius:"2px",width:"100%",boxSizing:"border-box",position:"absolute",left:0,height:0,overflow:"visible"},q?{top:"100%",marginTop:2}:{bottom:"100%",marginBottom:11}),children:eN})}):null;(0,d.useEffect)(function(){if(O){var e=setInterval(function(){ek(eL())},50);return function(){return clearInterval(e)}}},[O]);var setSendHistory=function(e){J.current=e,window.sessionStorage.chatHistory=JSON.stringify(e),em.current=e.length,eA.current=e.filter(function(e){return e.startsWith("/")}),ev.current=eA.current.length},acceptComplete=function(e){var t,n,r,a=null!=(t=eM.current.selectionEnd)?t:eM.current.value.length,o=eM.current.value.slice(0,a),i=eM.current.value.slice(a);if(e.startsWith("@")){var l=o.lastIndexOf("@");n=l>=0?o.slice(0,l):o;var c=i.indexOf(" ");r=c>=0?i.slice(c):""}else{var u=o.lastIndexOf(" ");n=u>=0?o.slice(0,u+1):o.startsWith("/")?"":o;var d=i.indexOf(" ");r=d>=0?i.slice(d):""}if(updateInputValue(n+e+r,n.length+e.length),e.startsWith("@")){var w=[e].concat((0,s._)(en.current.filter(function(t){return t!==e}))).slice(0,10);en.current=w,window.localStorage.pingHistory=JSON.stringify(w)}eM.current.focus()},updateInputValue=function(e,t){eM.current.value=e,onMainInputChange(),setTimeout(function(){var n=null!=t?t:e.length;eM.current.setSelectionRange(n,n)},0)},handleArrowUp=function(){0!==em.current&&(em.current===J.current.length&&(ey.current=eM.current.value),em.current--,updateInputValue(J.current[em.current]||""))},handleArrowDown=function(){em.current!==J.current.length&&(em.current++,updateInputValue(J.current[em.current]||ey.current||""))},handleCommandArrowUp=function(){0!==ev.current&&0!==eA.current.length&&(ev.current===eA.current.length&&(ey.current=eM.current.value),ev.current--,updateInputValue(eA.current[ev.current]||""))},handleCommandArrowDown=function(){ev.current!==eA.current.length&&(ev.current++,updateInputValue(eA.current[ev.current]||ey.current||""))},auxInputFocus=function(e){eM.current.focus(),"up"===e?handleArrowUp():handleArrowDown()};(0,d.useEffect)(function(){},[]);var resetCompletionItems=function(){ew([]),eh([])};(0,d.useEffect)(function(){if(T){updateInputValue(L.value),L.value="",em.current=J.current.length,ev.current=eA.current.length,q||eM.current.focus();var handleKeyDown=function(e){if(!["input","textarea","select"].includes(null!=(n=null==(t=document.activeElement)?void 0:t.tagName.toLowerCase())?n:"")){var t,n,r=1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey,a="KeyV"===e.code&&(e.ctrlKey||e.metaKey);(r||a)&&document.activeElement!==eM.current&&eM.current.focus()}};window.addEventListener("keydown",handleKeyDown);var e=(0,u.Ld)(L,function(){L.value&&(updateInputValue(L.value),L.value="",eM.current.focus())});return function(){window.removeEventListener("keydown",handleKeyDown),e()}}},[T]);var eS=(0,d.useRef)();(0,d.useMemo)(function(){if(T)ec.current="",resetCompletionItems();else{var e;if(X(""),eS.current&&clearTimeout(eS.current),(null==(e=bot)?void 0:e._client)&&bot._client.writeChannel)try{bot._client.writeChannel("minecraft-web-client:typing-indicator",{username:bot.username,isTyping:!1})}catch(e){}}},[T]);var onMainInputChange=function(){var e,t=eM.current.value,n=/^\/(login|register|changepassword|unregister)( |$)/i.exec(t);eo(n?n[1].toLowerCase():null);var r=t.slice(0,null!=(e=eM.current.selectionEnd)?e:t.length).split(" ").at(-1),a=t.startsWith("/");if(r.startsWith("@")&&R&&!a){el(r),eq(!0,r.slice(1));return}var o=getCompleteValue();if(el("/"===o?"":o),ec.current===o)return void updateFilteredCompleteItems(ed);o.startsWith("/")?ez(!0):resetCompletionItems(),ec.current=o},ez=(t=(0,r._)(function(e){var t,n,r,a,o,i=arguments;return(0,l.Jh)(this,function(s){switch(s.label){case 0:return t=i.length>1&&void 0!==i[1]?i[1]:eM.current.value,n=!(i.length>2)||void 0===i[2]||i[2],ec.current=r=getCompleteValue(t),resetCompletionItems(),[4,null==N?void 0:N(e?"implicit":"explicit",r,t)];case 1:if(o=null!=(a=s.sent())?a:[],!n)return[2];return ew(o),updateFilteredCompleteItems(o),[2]}})}),function(e){return t.apply(this,arguments)}),eq=(n=(0,r._)(function(e,t){var n,r,a;return(0,l.Jh)(this,function(e){switch(e.label){case 0:return ec.current=t,resetCompletionItems(),[4,null==R?void 0:R(t)];case 1:if(r=null!=(n=e.sent())?n:[],t!==ec.current)return[2];return ew(a=(0,s._)(r).sort(function(e,t){var n=en.current.indexOf(e),r=en.current.indexOf(t);return -1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r})),updateFilteredCompleteItems(a),[2]}})}),function(e,t){return n.apply(this,arguments)}),updateFilteredCompleteItems=function(e){eh(e.map(function(e){return"string"==typeof e?e:e.match}).filter(function(e){var t,n=eM.current.value.slice(0,null!=(t=eM.current.selectionEnd)?t:eM.current.value.length).split(" ").at(-1);return n.startsWith("@")?e.toLowerCase().includes(n.slice(1).toLowerCase()):e.includes(n)}))},getDefaultCompleteValue=function(){var e,t=eM.current.value;return t.slice(0,null!=(e=eM.current.selectionEnd)?e:t.length)},getCompleteValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:getDefaultCompleteValue(),t=e.split(" "),n=t.at(-1).length,r=n?e.slice(0,-n):e;return 1===t.length&&e.startsWith("/")?"/":r},handleSlashCommand=function(){remountInput("/")},handleAcceptFirstCompletion=function(){ep.length>0&&acceptComplete(ep[0])},remountInput=function(e){void 0!==e&&X(e),et(function(e){return e+1})};return(0,d.useEffect)(function(){K&&eM.current&&eM.current.focus()},[ee]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"chat-wrapper chat-messages-wrapper ".concat(q?"display-mobile":""," ").concat(T?"chat-opened":""),style:{userSelect:T&&E?"text":void 0},children:[!q&&T&&(0,c.jsx)("div",{style:{position:"absolute",top:"-19px",left:"5px",pointerEvents:"auto"},children:(0,c.jsx)(g.Z,{icon:m.K.close,onClick:function(){return null==z?void 0:z()},style:{color:"#ff5d5d"}})}),k&&(0,c.jsxs)("div",{ref:eg,className:"chat ".concat(T?"opened":""),id:"chat-messages",style:{opacity:k},children:[O&&(0,c.jsxs)("div",{style:{position:"absolute",top:5,left:5,display:"flex",gap:4,zIndex:100},children:[(0,c.jsx)("div",{title:"Right now is at bottom (updated every 50ms)",style:{width:12,height:12,backgroundColor:ex?"#00ff00":"#ff0000",border:"1px solid #fff"}}),(0,c.jsx)("div",{title:"Currently at bottom",style:{width:12,height:12,backgroundColor:ej?"#00ff00":"#ff0000",border:"1px solid #fff"}}),(0,c.jsx)("div",{title:"Was at bottom",style:{width:12,height:12,backgroundColor:eC()?"#00ff00":"#ff0000",border:"1px solid #fff"}}),(0,c.jsx)("div",{title:"Chat opened",style:{width:12,height:12,backgroundColor:T?"#00ff00":"#ff0000",border:"1px solid #fff"}})]}),D.map(function(e){return(0,c.jsx)(MessageLine,{message:e,currentPlayerName:W,chatOpened:T},(0,M.BO)(e))})]})||void 0]}),(0,c.jsxs)("div",{className:"chat-wrapper chat-input-wrapper ".concat(q?"input-mobile":""),hidden:!T,children:[ea&&(0,c.jsx)("div",{role:"button",tabIndex:0,onClick:(0,r._)(function(){var e,t,n,r,a,o,i,s,c;return(0,l.Jh)(this,function(l){switch(l.label){case 0:return n=ea,eo(null),a=null!=(r=null==(e=w.Pc.value)?void 0:e.server)?r:"",i=null!=(o=null==(t=bot)?void 0:t.username)?o:"",s=(0,_.x2)(),[4,(0,b.K)({mode:n,serverIp:a,username:i,prefilledPassword:s})];case 1:if(!(null==(c=l.sent())?void 0:c.password)||"changepassword"===n&&!c.newPassword)return[2];return(0,p.Fs)(bot,n,c,{serverIp:a,username:i,source:"modal"}),eM.current.value="",onMainInputChange(),[2]}})}),style:(0,o._)((0,a._)({position:"absolute",left:0},q?{top:"100%",marginTop:4}:{bottom:"100%",marginBottom:4}),{padding:"4px 6px",background:"rgba(0, 0, 0, 0.7)",color:"white",fontSize:10,fontFamily:"mojangles, minecraft, monospace",border:"1px solid #A0A0A0",cursor:"pointer",zIndex:10,maxWidth:"calc(100% - 4px)",boxSizing:"border-box"}),children:"\uD83D\uDCA1 Use Auto-fill UI for password manager"}),q&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.Z,{icon:m.K.close,onClick:function(){return null==z?void 0:z()},style:{width:20,flexShrink:0}}),(null==(y=eM.current)?void 0:y.value)&&!eM.current.value.startsWith("/")?(0,c.jsx)(g.Z,{style:{width:20,flexShrink:0},overlayColor:Q?"#00ff00":"#ff0000",icon:m.K["text-wrap"],onClick:function(){var e;X((null==(e=eM.current)?void 0:e.value)||""),null==F||F(!Q),remountInput()}}):(0,c.jsx)(g.Z,{style:{width:20,flexShrink:0},label:(null==(C=eM.current)?void 0:C.value)?void 0:"/",icon:(null==(j=eM.current)?void 0:j.value)?m.K["arrow-right"]:void 0,onClick:function(){eM.current.value?ep.length>0&&handleAcceptFirstCompletion():handleSlashCommand()}})]}),(0,c.jsxs)("div",{className:"chat-input",children:[G&&(null==ep?void 0:ep.length)?(0,c.jsxs)("div",{className:"chat-completions",children:[(0,c.jsx)("div",{className:"chat-completions-pad-text",children:es}),(0,c.jsx)("div",{className:"chat-completions-items",children:ep.map(function(e){return(0,c.jsx)("div",{onMouseDown:function(t){t.preventDefault(),acceptComplete(e)},children:e},e)})})]}):null,!q&&eT,(0,c.jsxs)("form",{onSubmit:(h=(0,r._)(function(e){var t;return(0,l.Jh)(this,function(n){switch(n.label){case 0:if(e.preventDefault(),!(t=eM.current.value))return[3,2];return setSendHistory((0,s._)(J.current).concat([t])),null==z||z(),[4,null==S?void 0:S(t)];case 1:n.sent(),e_(),n.label=2;case 2:return[2]}})}),function(e){return h.apply(this,arguments)}),children:[M.s&&(0,c.jsx)("input",{value:"",type:"text",className:"chat-mobile-input-hidden chat-mobile-input-hidden-up",id:"chatinput-next-command",spellCheck:!1,autoComplete:"off",onFocus:function(){return auxInputFocus("up")},onChange:function(){}}),(0,c.jsx)("input",{maxLength:Y?256:void 0,defaultValue:K,autoCapitalize:K?"off":"on",ref:eM,type:"text",className:"chat-input",id:"chatinput",spellCheck:Q,autoCorrect:Q?"on":"off",autoComplete:"off","aria-autocomplete":"both",onChange:onMainInputChange,disabled:!!I,placeholder:I||P,onFocus:function(){return H(!0)},onBlur:function(){return H(!1)},onKeyDown:function(e){if("ArrowUp"===e.code?e.altKey?(handleCommandArrowUp(),e.preventDefault()):handleArrowUp():"ArrowDown"===e.code&&(e.altKey?(handleCommandArrowDown(),e.preventDefault()):handleArrowDown()),"Tab"===e.code&&(ed.length?ep.length&&acceptComplete(ep[0]):ez(!1),e.preventDefault()),"Space"===e.code){resetCompletionItems();var t=eM.current.value.startsWith("/");ez(!0,getCompleteValue(getDefaultCompleteValue()+" "),t)}}},"".concat(ee)),M.s&&(0,c.jsx)("input",{value:"",type:"text",className:"chat-mobile-input-hidden chat-mobile-input-hidden-down",id:"chatinput-prev-command",spellCheck:!1,autoComplete:"off",onFocus:function(){return auxInputFocus("down")},onChange:function(){}}),(0,c.jsx)("button",{type:"submit",className:"chat-submit-button"})]}),q&&eT]})]})]})},"chat")},13062:function(e,t,n){"use strict";n.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__,h:()=>d});var r=n(52676),a=n(75271),o=n(44846),i=n(9117),s=n(5969),l=n(40451),c=n(7329),u=n(76412),d=(0,o.sj)({captureMouseHint:!1});function __WEBPACK_DEFAULT_EXPORT__(){var e=(0,i.R)(d).captureMouseHint,t=(0,i.R)(l.N_).usingGamepadInput,n=(0,u.uT)(),o=(0,i.R)(l.M).length>0,w=(0,s.Ee)();return(0,a.useEffect)(function(){var listener=function(){s.lt.hasPointerLock&&(d.captureMouseHint=!1)};return document.addEventListener("pointerlockchange",listener),function(){document.removeEventListener("pointerlockchange",listener)}},[]),(0,r.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"white",fontSize:"10px",whiteSpace:"nowrap",fontWeight:"bold",marginTop:"-16px",pointerEvents:"none",textShadow:"0 0 1px black"},children:e&&!n&&!t&&!o&&w&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[(0,r.jsx)(c.Z,{iconName:c.K["sun-alt"]}),(0,r.jsx)("div",{children:translate("Click to capture mouse")})]})})}},94755:function(e,t,n){"use strict";n.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__,m:()=>y});var r=n(59240);n(72558),n(67022),n(56520),n(56515),n(81836),n(96220);var a=n(52676),o=n(75271),i=n(13432),s=n(33634),l=n(30967),c=n(9117),u=n(22411),d=n(40451),w=n(4741),p=n(6733),h=n(5969),M=n(391),g=n(85691),m=n(64868),v=n(82278),y=25,ItemName=function(e){var t=e.itemKey,n=(0,r._)((0,o.useState)(!1),2),l=n[0],c=n[1],u=(0,r._)((0,o.useState)(""),2),d=u[0],w=u[1],h={position:"fixed",bottom:"calc(env(safe-area-inset-bottom) + ".concat(bot&&"creative"===bot.game.gameMode?"40px":"50px",")"),left:0,right:0,fontSize:10,textAlign:"center",pointerEvents:"none"};return(0,o.useEffect)(function(){var e=bot.heldItem;if(e){var t=(0,p.bL)(e,appViewer.resourcesManager);t?w(t):w(e.displayName)}else w("");c(!0);var n=setTimeout(function(){c(!1)},1500);return function(){c(!1),clearTimeout(n)}},[t]),(0,a.jsx)(i.M,{children:l&&(0,a.jsx)(m.Z,{children:(0,a.jsx)(s.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},style:h,className:"item-display-name",children:(0,a.jsx)(g.Z,{message:d})})})})},HotbarInner=function(){var e,t=(0,r._)((0,o.useState)(""),2),n=t[0],i=t[1],s=(0,r._)((0,o.useState)(0),2),l=s[0],p=s[1],g=(0,c.R)(d.M).length,y=(0,c.R)(d.N_),A=y.currentTouch,b=y.appConfig,_=(0,w.K)(),L=!bot.supportFeature("doesntHaveOffHandSlot"),C=A&&!(null==b||null==(e=b.disabledCommands)?void 0:e.includes("general.inventory")),j=(0,o.useMemo)(function(){return(0,u.c)(bot,{itemMapper:(0,v.J2)(bot.version),hotbarOnly:!0})},[l]);return(0,o.useEffect)(function(){return j.subscribe(function(e){"windowOpen"===e.type&&(0,M.HX)()})},[j]),(0,o.useEffect)(function(){var e=new AbortController,heldItemChanged=function(){if(!(null==(e=bot.inventory.slots)?void 0:e[bot.quickBarSlot+36]))return void i("");var e,t,n=bot.inventory.slots[bot.quickBarSlot+36],r=n.nbt?JSON.stringify(n.nbt):"";i("".concat(n.name,"_split_").concat(n.type,"_split_").concat(n.metadata,"_split_").concat(r,"_split_").concat(JSON.stringify(null!=(t=n.components)?t:[])))};heldItemChanged(),bot.on("heldItemChanged",heldItemChanged),document.addEventListener("wheel",function(e){if((0,h.Ee)()){e.preventDefault();var t=((bot.quickBarSlot+Math.sign(e.deltaY))%9+9)%9;t!==bot.quickBarSlot&&bot.setQuickBarSlot(t)}},{passive:!1,signal:e.signal}),document.addEventListener("keydown",function(e){if((0,h.Ee)()){var t,n,r=+(null!=(n=null==(t=/Digit(\d)/.exec(e.code))?void 0:t[1])?n:-1);if(!(r<1)&&!(r>9)){var a=r-1;a!==bot.quickBarSlot&&bot.setQuickBarSlot(a)}}},{passive:!1,signal:e.signal});var refresh=function(){(0,v.g4)(),p(function(e){return e+1})};return appViewer.resourcesManager.on("assetsTexturesUpdated",refresh),appViewer.resourcesManager.on("assetsInventoryReady",refresh),function(){e.abort(),bot.off("heldItemChanged",heldItemChanged),appViewer.resourcesManager.off("assetsTexturesUpdated",refresh),appViewer.resourcesManager.off("assetsInventoryReady",refresh)}},[]),(0,a.jsxs)(m.Z,{children:[(0,a.jsx)(ItemName,{itemKey:n}),(0,a.jsx)(Portal,{children:(0,a.jsx)("div",{className:"hotbar-fullscreen-container",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:g?1:8,display:"flex",justifyContent:"center",pointerEvents:"none"},children:(0,a.jsx)("div",{className:"hotbar",style:{position:"absolute",pointerEvents:C?"auto":"none",bottom:"var(--hud-bottom-raw)"},children:(0,a.jsx)(u.u9,{config:v.tw,children:(0,a.jsx)(u.$d,{scale:_,children:(0,a.jsx)(u._3,{connector:j,children:(0,a.jsx)(u.eJ,{type:"hotbar",properties:{showOffhand:+!!L,container:+!!C}})})})})})})})]})};function __WEBPACK_DEFAULT_EXPORT__(){var e,t,n=(0,r._)((0,o.useState)(null!=(t=null==(e=bot.game)?void 0:e.gameMode)?t:"creative"),2),i=n[0],s=n[1];return(0,o.useEffect)(function(){var onGame=function(){return s(bot.game.gameMode)};return bot.on("game",onGame),function(){bot.off("game",onGame)}},[]),"spectator"===i?null:(0,a.jsx)(HotbarInner,{})}var Portal=function(e){var t=e.children,n=e.to,r=void 0===n?document.body:n;return(0,l.createPortal)(t,r)}},95705:function(e,t,n){"use strict";n.d(t,{sp:()=>InputWithLabel,ZP:()=>d,PX:()=>w});var r=n(4186),a=n(22312),o=n(40413),i=n(59240),s=n(52676),l=n(75271),c=n(13952),u=n(33927),InputBase=function(e){var t,n=e.autoFocus,u=e.rootStyles,d=e.inputRef,w=e.validateInput,p=e.defaultValue,h=e.width,M=(0,o._)(e,["autoFocus","rootStyles","inputRef","validateInput","defaultValue","width"]);h&&(u=(0,a._)((0,r._)({},u),{width:h}));var g=(0,l.useRef)(null),m=(0,i._)((0,l.useState)({}),2),v=m[0],y=m[1],A=(0,i._)((0,l.useState)(null!=p?p:""),2),b=A[0],_=A[1];return(0,l.useEffect)(function(){_(""===M.value||M.value?M.value:b)},[M.value]),(0,l.useEffect)(function(){d&&(d.current=g.current),!n||(0,c.tq)()||g.current.focus()},[]),(0,l.useEffect)(function(){var e;y(null!=(e=null==w?void 0:w(b))?e:{})},[b,w]),(0,s.jsx)("div",{id:"input-container",className:"container-GXglqr",style:u,children:(0,s.jsx)("input",(0,a._)((0,r._)({ref:g,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",autoSave:"off",spellCheck:"false",style:(0,r._)({},v)},M),{className:"input-Mraw77 "+(null!=(t=M.className)?t:""),value:b,onChange:function(e){var t;_(e.target.value),null==(t=M.onChange)||t.call(M,e)}}))})};let d=(0,u.K)(InputBase,"input");var w=190,InputWithLabel=function(e){var t=e.label,n=e.span,a=(0,o._)(e,["label","span"]);return(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gridRow:n?"span 2 / span 2":void 0},children:[(0,s.jsx)("label",{style:{fontSize:12,marginBottom:1,color:"lightgray"},children:t}),(0,s.jsx)(InputBase,(0,r._)({rootStyles:{width:w}},a))]})}},47477:function(e,t,n){"use strict";n.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__,a:()=>l});var r=n(52676),a=n(75271),o=n(30967),i=n(44846),s=n(9117),l=(0,i.sj)({start:0,loading:!1,total:"0.00",networkOnlyStart:0,networkTimeTotal:"0.0"});function __WEBPACK_DEFAULT_EXPORT__(){var e=(0,s.R)(l),t=e.networkTimeTotal,n=e.total;return(0,a.useEffect)(function(){var e=setInterval(function(){l.loading&&(l.networkOnlyStart?l.networkTimeTotal=((Date.now()-l.networkOnlyStart)/1e3).toFixed(2):l.total=((Date.now()-l.start)/1e3).toFixed(2))},100);return function(){return clearInterval(e)}},[]),(0,r.jsx)(Portal,{to:document.getElementById("ui-root"),children:(0,r.jsxs)("div",{style:{position:"absolute",left:0,bottom:0,color:"gray",fontSize:"0.6em",paddingLeft:"calc(env(safe-area-inset-left) / 2)"},children:[n,"/",t]})})}customEvents.on("gameLoaded",function(){l.loading=!1});var Portal=function(e){var t=e.children,n=e.to,r=void 0===n?document.body:n;return(0,o.createPortal)(t,r)}},54315:function(e,t,n){"use strict";n.d(t,{ZP:()=>MessageFormatted,Xo:()=>MessagePart});var r,a=n(14772),o=n(4186),i=n(22312),s=n(40413),l=n(59240),c=n(9787);n(86070),n(49245),n(81812),n(96220),n(72558),n(73372),n(90804),n(24705),n(53346),n(7611),n(65340),n(2850),n(95790),n(83902),n(15209),n(54406),n(8705),n(58819),n(74822),n(7960),n(46302),n(64813),n(96573),n(94244),n(42050),n(64912);var u=n(52676),d=n(72960),w=n(14971),p=n(27282),h=n.n(p),M=n(13952),g=n(19478),m=n(48044),v=n(11366),y=n(3308),A=n(50343),b=n(30232),hoverItemToText=function(e){try{if(!e)return;var t,n,r=null!=(n=e.contents)?n:e.value;if("string"==typeof r.text&&r.text.startsWith("{")&&Object.assign(r,h().simplify(h().parse(r.text))),"string"==typeof r)return r;if("show_item"===e.action)return r.id;if("show_entity"===e.action){var a=(0,w.noCase)(r.type.replace("minecraft:",""));return r.name&&(a+=": ".concat(r.name.text)),a}}catch(e){null==(t=reportError)||t("Failed to parse message hover"+e.message);return}},clickEventToProps=function(e){if(e){if("run_command"===e.action||"suggest_command"===e.action)return{onClick:function(){v.e.value=e.value}};if("open_url"===e.action||"open_file"===e.action)return{onClick:function(){return(0,a._)(function(){var t,n;return(0,c.Jh)(this,function(r){switch(r.label){case 0:return t='Open "'.concat(e.value,'"?'),[4,(0,y.un)(t,["Open","Copy"],{cancel:!0})];case 1:return"Open"===(n=r.sent())?(0,M.pz)(e.value):"Copy"===n&&navigator.clipboard.writeText(e.value),[2]}})})()}};if("copy_to_clipboard"===e.action)return{onClick:function(){navigator.clipboard.writeText(e.value)}};var t=e.action;if("open_auto_fill_login"===t||"open_auto_fill_register"===t||"open_change_password"===t||"open_unregister"===t)return{onClick:function(){_("open_auto_fill_register"===t?"register":"open_change_password"===t?"changepassword":"open_unregister"===t?"unregister":"login")}}}},_=(r=(0,a._)(function(e){var t,n,r,a,o,i,s;return(0,c.Jh)(this,function(l){switch(l.label){case 0:if(r=null==(t=g.Pc.value)?void 0:t.server,a=null==(n=globalThis.bot)?void 0:n.username,!r||!a)return console.warn("[openAutoFillLogin] missing serverIp or username",{serverIp:r,username:a}),[2];return o=(0,b.x2)(),[4,(0,A.K)({mode:e,serverIp:r,username:a,prefilledPassword:o})];case 1:if(!(null==(i=l.sent())?void 0:i.password))return[2];return s=globalThis.bot,(0,m.Fs)(s,e,i,{serverIp:r,username:a,source:"modal"}),[2]}})}),function(e){return r.apply(this,arguments)}),MessagePart=function(e){var t,n=e.part,r=e.formatOptions,a=(0,s._)(e,["part","formatOptions"]),l=n.color,c=n.italic,w=n.bold,p=n.underlined,h=n.strikethrough,M=n.text,g=n.clickEvent,m=n.hoverEvent,v=n.obfuscated,y=null!=l?l:"white",A=clickEventToProps(g),b=hoverItemToText(m),_=b&&"string"!=typeof b?(0,d.sY)(b).children.map(function(e){return e.component.text}).join(""):b,C=[A&&L.clickEvent,colorF(y.toLowerCase())+(null==(t=null==r?void 0:r.doShadow)||t?"; text-shadow: 1px 1px 0px ".concat(getColorShadow(colorF(y.toLowerCase()).replace("color:",""))):""),c&&L.italic,w&&L.bold,c&&L.italic,p&&L.underlined,h&&L.strikethrough,v&&L.obfuscated].filter(function(e){return!1!==e&&void 0!==e}).filter(Boolean);return(0,u.jsx)("span",(0,i._)((0,o._)({title:_,style:parseInlineStyle(C.join(";"))},A,a),{children:M}))};function MessageFormatted(e){var t=e.parts,n=e.className,r=e.formatOptions;return(0,u.jsx)("span",{className:"formatted-message ".concat(null!=n?n:""),children:t.map(function(e,t){return(0,u.jsx)(MessagePart,{part:e,formatOptions:r},t)})})}var colorF=function(e){var t;return e.trim().startsWith("#")?"color:".concat(e):null!=(t=L[e])?t:void 0};function getColorShadow(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,n=parseInt(e.replace("#",""),16),r=Math.trunc((n>>16&255)*t),a=Math.trunc((n>>8&255)*t),o=Math.trunc((255&n)*t),f=function(e){return("00"+e.toString(16)).slice(-2)};return"#".concat(f(r)).concat(f(a)).concat(f(o))}function parseInlineStyle(e){var t={},n=!0,r=!1,a=void 0;try{for(var o,i=e.split(";")[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=o.value,c=(0,l._)(s.split(":"),2),u=c[0],d=c[1];t[u.trim().replaceAll(/-./g,function(e){return e.toUpperCase()[1]})]=d.trim()}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}return t}var L={black:"color:color(display-p3 0 0 0)",dark_blue:"color:color(display-p3 0 0 0.6667)",dark_green:"color:color(display-p3 0 0.6667 0)",dark_aqua:"color:color(display-p3 0 0.6667 0.6667)",dark_red:"color:color(display-p3 0.6667 0 0)",dark_purple:"color:color(display-p3 0.6667 0 0.6667)",gold:"color:color(display-p3 1 0.6667 0)",gray:"color:color(display-p3 0.6667 0.6667 0.6667)",dark_gray:"color:color(display-p3 0.3333 0.3333 0.3333)",blue:"color:color(display-p3 0.3333 0.3333 1)",green:"color:color(display-p3 0.3333 1 0.3333)",aqua:"color:color(display-p3 0.3333 1 1)",red:"color:color(display-p3 1 0.3333 0.3333)",light_purple:"color:color(display-p3 1 0.3333 1)",yellow:"color:color(display-p3 1 1 0.3333)",white:"color:color(display-p3 1 1 1)",bold:"font-weight:900",strikethrough:"text-decoration:line-through",underlined:"text-decoration:underline",italic:"font-style:italic",obfuscated:"filter:blur(2px)",clickEvent:"cursor:pointer"}},85691:function(e,t,n){"use strict";n.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var r=n(4186),a=n(22312);n(90804),n(24705),n(53346);var o=n(52676),i=n(75271),s=n(72960),l=n(77449),c=n(68733),u=n(54315);function __WEBPACK_DEFAULT_EXPORT__(e){var t=e.message,n=e.fallbackColor,d=e.className,w=e.formatOptions,p=(0,i.useMemo)(function(){if(!t)return null;try{return(0,c.wv)("string"==typeof t?(0,s.qW)(t):t).map(function(e){var t;return(0,a._)((0,r._)({},e),{color:null!=(t=e.color)?t:n})})}catch(e){return console.error(e),null}},[t]);return p?(0,o.jsx)(l.SV,{renderError:function(e){return console.error(e),(0,o.jsx)("div",{children:"[text component crashed]"})},children:(0,o.jsx)(u.ZP,{parts:p,className:d,formatOptions:w})}):null}},12179:function(e,t,n){"use strict";n.d(t,{gc:()=>setNotificationProgress,yK:()=>hideNotification,ZP:()=>NotificationProvider,QW:()=>p,n:()=>h,c0:()=>showNotification}),n(34812),n(69047),n(95922),n(95790),n(83902),n(40542),n(7611),n(65340),n(2850),n(73372),n(66043),n(27969),n(90804),n(24705),n(53346),n(72558);var r=n(52676),a=n(75271),o=n(44846),i=n(9117),s=n(13432),l=n(33634),c=n(4741),u=n(7329),d=n(76412);let w=(0,n(33927).K)(function(e){var t=e.type,n=void 0===t?"message":t,a=e.message,o=e.subMessage,i=e.open,c=e.icon,w=void 0===c?"":c,p=e.action,h=void 0===p?void 0:p,M=e.topPosition,g=e.currentProgress,m=e.totalProgress,v=(0,d.uT)(),y="error"===n;w||(w=y?"alert":"message");var A="progress"===n,b=(void 0===M?0:M)*34+18*!!v;return(0,r.jsx)(s.M,{children:i&&(0,r.jsxs)(l.E.div,{initial:{opacity:0,y:0},animate:{opacity:1,y:0},exit:{opacity:0,y:"-100%"},transition:{duration:.2},className:"app-notification ".concat(y?"error-notification":""),onClick:h,style:{position:"fixed",top:b,right:0,width:"progress"===n?"180px":void 0,scale:"progress"===n?void 0:.9,transformOrigin:"progress"===n?void 0:"right",whiteSpace:"nowrap",fontSize:"9px",display:"flex",gap:4,alignItems:"center",padding:"4px 5px",background:y?"rgba(255, 0, 0, 0.7)":"rgba(0, 0, 0, 0.7)",borderRadius:0===b?"0 0 0 5px":"5px",pointerEvents:h?"auto":"none",zIndex:A?10:1200},children:[(0,r.jsx)(u.Z,{iconName:w,styles:{fontSize:A?15:12,animation:A?"rotation 6s linear infinite":"none"}}),(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:"100%"},children:[(0,r.jsx)("div",{style:{whiteSpace:"normal"},children:translate(a)}),(0,r.jsx)("div",{style:{fontSize:"7px",whiteSpace:"nowrap",color:"lightgray",marginTop:3},children:translate(void 0===o?"":o)}),void 0!==g&&void 0!==m&&(0,r.jsx)("div",{style:{width:"100%",height:"2px",background:"rgba(128, 128, 128, 0.5)",marginTop:"2px",overflow:"hidden"},children:(0,r.jsx)("div",{style:{width:"".concat(Math.min(100,(m?g/m:0)*100),"%"),height:"100%",background:"white",transition:"width 0.2s ease-out"}})})]})]})})},"notification");var p=(0,o.sj)({message:"",open:!1,type:"message",subMessage:"",icon:"",autoHide:!0,id:""}),h=(0,o.sj)({loaders:[]}),setNotificationProgress=function(e,t){var n=h.loaders.find(function(t){return t.id===e}),r=n;r||(r={id:e,message:"",priority:t.priority}),void 0!==t.current&&(r.current=t.current),void 0!==t.total&&(r.total=t.total),void 0!==t.message&&(r.message=t.message),void 0!==t.subMessage&&(r.subMessage=t.subMessage),n||h.loaders.push(r),t.delete&&(h.loaders=h.loaders.filter(function(t){return t.id!==e}))};window.setNotificationProgress=setNotificationProgress;var showNotification=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,o=!(arguments.length>5)||void 0===arguments[5]||arguments[5],i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";p.message=e,p.subMessage=t,p.type=n?"error":"message",p.icon=r,p.open=!0,p.autoHide=o,p.action=a,p.id=i};globalThis.showNotification=showNotification;var hideNotification=function(e){(void 0===e||p.id===e)&&(p.open=!1)};function NotificationProvider(){var e=(0,i.R)(p),t=e.autoHide,n=e.message,o=e.open,d=e.icon,M=e.type,g=e.subMessage,m=e.action,v=(0,i.R)(h).loaders;return(0,a.useEffect)(function(){t&&o&&setTimeout(function(){hideNotification(p.id)},7e3)},[t,o]),(0,a.useEffect)(function(){setTimeout(function(){},1e3)},[]),(0,c.K)(),(0,r.jsxs)("div",{className:"notification-container",style:{},children:[(0,r.jsx)(w,{action:m,type:M,message:n,subMessage:g,open:o,icon:d}),(0,r.jsx)(s.M,{children:v.toSorted(function(e,t){var n,r;return(null!=(n=t.priority)?n:0)-(null!=(r=e.priority)?r:0)}).map(function(e,t){var n;return(0,r.jsx)(l.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:(0,r.jsx)(w,{type:"progress",open:!0,topPosition:t+1,icon:u.K.loader,subMessage:null!=(n=e.subMessage)?n:void 0!==e.current&&void 0!==e.total?formatProgress(e.current,e.total):void 0,message:e.message,currentProgress:e.current,totalProgress:e.total})},e.id)})})]})}var formatProgress=function(e,t){var n=new Intl.NumberFormat;return"".concat(Math.floor(e/t*100),"% (").concat(n.format(e)," / ").concat(n.format(t),")")}},68470:function(e,t,n){"use strict";n.d(t,{ZP:()=>__WEBPACK_DEFAULT_EXPORT__,iZ:()=>PlayerModelCanvas});var r=n(4186),a=n(22312),o=n(59240);n(73372),n(90804),n(24705),n(53346),n(55058),n(29127),n(95790),n(83902),n(7960),n(46302),n(64813),n(96573),n(94244),n(42050),n(98719),n(84317),n(8957),n(44792),n(33785),n(9587),n(13278),n(64391),n(86838),n(80062),n(50433),n(97336),n(65855),n(56656),n(42449),n(34812),n(69047),n(95922),n(32831),n(81812),n(96220),n(52307),n(8416),n(93118),n(82766),n(37151),n(20142),n(89909),n(24578),n(89437),n(802),n(52895),n(46525),n(83930),n(18369),n(41494),n(66616),n(39222),n(83282),n(59237),n(60353),n(40332),n(72040),n(52768),n(2249),n(72558);var i=n(52676),s=n(44846),l=n(9117),c=n(75271),u=n(558),d=n(14987),w=n(53579),p=n(8525),h=n(90205),M=n(23757),g=n(37350),m=n(2364),v=n(85088),y=n(71413),A=n(35405),b=n(65988),_=n(40309),L=n(45228),C=n(29170),j=n(3496),D=n(66037),x=n(67644),k=n(30765),N=n(4741),T=n(40451),S=(0,s.sj)({model:void 0});globalThis.modelViewerState=S,globalThis.getModelViewerValues=function(){var e,t=null==(e=globalThis.sceneRef)?void 0:e.current;if(!t)return null;var n=t.camera,r=t.playerObject;if(!r)return null;var a=r.parent;if(!a)return null;var o=new u.Z().setFromObject(a),i=o.getSize(new d.P),s=o.getCenter(new d.P);return{camera:{position:n.position.clone(),fov:n.fov,aspect:n.aspect},model:{position:a.position.clone(),rotation:a.rotation.clone(),scale:a.scale.clone(),size:i,center:s},cursor:{position:globalThis.cursorPosition||{x:0,y:0},normalized:globalThis.cursorPosition?{x:2*globalThis.cursorPosition.x-1,y:2*globalThis.cursorPosition.y-1}:{x:0,y:0}},visibleArea:{height:2*Math.tan(n.fov*Math.PI/180/2)*n.position.z,width:2*Math.tan(n.fov*Math.PI/180/2)*n.position.z*n.aspect}}},(0,s.Ld)(T.M,function(){var e;S.model&&(null==(e=S.model)?void 0:e.alwaysRender)&&0===T.M.length&&(S.model=void 0)});var setupMaterialTransparency=function(e){(e instanceof w.W||e instanceof p.v||e instanceof h.x)&&(e.alphaMap||void 0!==e.opacity&&e.opacity<1||e.map&&e.map.format===M.wk1?(e.transparent=!0,e.alphaTest=.01,e.side=M.ehD):(e.transparent=!1,e.side=M.Wl3),e.needsUpdate=!0)},PlayerModelCanvas=function(e){var t=e.width,n=e.height,r=e.skinUrl,a=void 0===r?"":r,s=e.followCursor,l=void 0===s||s,w=e.computeNormalized,p=(0,c.useRef)(null),h=(0,o._)((0,c.useState)(!1),2),L=h[0],C=h[1],D=(0,c.useRef)(null),x=(0,c.useRef)(null),N=(0,c.useRef)(w);return(0,c.useEffect)(function(){N.current=w}),(0,c.useEffect)(function(){var e=p.current;if(e){var r=new g.x;r.background=null;var a=new m.c(50,t/n,.1,1e3);a.position.set(0,0,3);var o=new v.C({alpha:!0,antialias:!0});o.outputColorSpace=M.GUF,o.setPixelRatio(window.devicePixelRatio||1),o.setSize(t,n),e.appendChild(o.domElement);var i=new j.z(a,o.domElement);i.minPolarAngle=Math.PI/2,i.maxPolarAngle=Math.PI/2,i.enableDamping=!0,i.dampingFactor=.05;var s=new y.M(0xffffff,3);r.add(s);var c=new A.c(0xffffff,.6);a.add(c),r.add(a);var w=(0,k.YP)({scale:1}),h=w.playerObject,L=w.wrapper;h.ears.visible=!1,h.cape.visible=!1,L.traverse(function(e){if(e instanceof b.K&&e.material){var t=Array.isArray(e.material)?e.material:[e.material],n=!0,r=!1,a=void 0;try{for(var o,i=t[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=o.value;setupMaterialTransparency(s)}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}}});var C=new u.Z().setFromObject(L),T=C.getSize(new d.P),S=C.getCenter(new d.P),z=a.position.z,q=2*Math.tan(a.fov*Math.PI/180/2)*z,E=t/n*q,I=Math.min(q/T.y,E/T.x);L.scale.multiplyScalar(I),L.position.sub(S.multiplyScalar(I)),L.rotation.set(0,0,0),r.add(L),D.current=h;var render=function(){o.render(r,a)};x.current={renderer:o,camera:a,scene:r,controls:i,render:render},i.addEventListener("change",render),render();var P=!1,handlePointerMove=function(e){var t,n,r=p.current;if(r){if(N.current){var a=N.current(e.clientX,e.clientY);t=_.M8.clamp(a.normalizedX,-1,1),n=_.M8.clamp(a.normalizedY,-1,1)}else{var o=r.getBoundingClientRect();t=_.M8.clamp((e.clientX-(o.left+o.width/2))/(o.width/2),-1,1),n=_.M8.clamp((e.clientY-(o.top+o.height/2))/(o.height/2),-1,1)}var i=60/180*Math.PI;h.skin.head.rotation.y=_.M8.lerp(h.skin.head.rotation.y,t*i,.1),h.skin.head.rotation.x=_.M8.lerp(h.skin.head.rotation.x,n*i,.1),h.rotation.y=_.M8.lerp(h.rotation.y,t*i*.3,.05),P||(requestAnimationFrame(function(){render(),P=!1}),P=!0)}};return l&&window.addEventListener("pointermove",handlePointerMove),function(){var e;l&&window.removeEventListener("pointermove",handlePointerMove),i.removeEventListener("change",render),i.dispose(),L.traverse(function(e){if(e instanceof b.K){var t=Array.isArray(e.material)?e.material:[e.material],n=!0,r=!1,a=void 0;try{for(var o,i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0)i.value.dispose()}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}null==(o=e.geometry)||o.dispose()}}),h.skin.map&&h.skin.map.dispose(),o.dispose(),null==(e=o.domElement)||e.remove(),x.current=null,D.current=null}}},[]),(0,c.useEffect)(function(){var e=D.current,t=x.current;e&&t&&(0,k.HL)(e,a).then(function(){t.render(),C(!0)})},[a]),(0,c.useEffect)(function(){var e=x.current;e&&(e.renderer.setSize(t,n),e.camera.aspect=t/n,e.camera.updateProjectionMatrix(),e.render())},[t,n]),(0,i.jsx)("div",{ref:p,style:{width:t,height:n,overflow:"hidden",pointerEvents:"auto",visibility:L?"visible":"hidden"}})};function __WEBPACK_DEFAULT_EXPORT__(){var e,t,n,p,h,_,k=(0,l.R)(S).model,T=(0,c.useRef)(null),z=(0,c.useRef)(),q=(0,c.useMemo)(function(){return N.X.scale},[]);globalThis.sceneRef=z;var E=(0,c.useRef)(null),I=(0,c.useRef)(new Map),P=(0,c.useRef)(new Map),Y=(0,c.useRef)(new Map),O=(0,c.useRef)(new Map),R=(0,c.useRef)(new Map),B=(0,c.useRef)(new L.B),U=(0,c.useRef)(!1),Q=(0,c.useRef)(void 0),updateAllMixers=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=Y.current.values()[Symbol.iterator]();!(t=(a=o.next()).done);t=!0)a.value.update(e)}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}},anyActionActive=function(){var e=!0,t=!1,n=void 0;try{for(var r,a=R.current.values()[Symbol.iterator]();!(e=(r=a.next()).done);e=!0)if(r.value.enabled)return!0}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}return!1},ensureMixerLoop=function(e){if(!U.current){U.current=!0;var tick=function(t){B.current.update(t),updateAllMixers(B.current.getDelta()),e(),anyActionActive()?Q.current=requestAnimationFrame(tick):(U.current=!1,Q.current=void 0)};Q.current=requestAnimationFrame(tick)}},playAnimationForModel=function(e,t,n){var r,a,o,i,s=O.current.get(e),l=Y.current.get(e);if(s&&l){var c=R.current.get(e);if(c&&(c.stop(),R.current.delete(e)),t){var u=s.find(function(e){return e.name===t});if(u){var d=l.clipAction(u),w=null==(o=null==(r=S.model)?void 0:r.playModelAnimationLoop)||o;d.setLoop(w?M.YKA:M.jAl,1/0),d.timeScale=null!=(i=null==(a=S.model)?void 0:a.playModelAnimationSpeed)?i:1,d.reset().fadeIn(.1).play(),R.current.set(e,d),ensureMixerLoop(n)}}}},applyAnimationParamsToAll=function(){var e=null==(l=null==(i=S.model)?void 0:i.playModelAnimationLoop)||l,t=null!=(c=null==(s=S.model)?void 0:s.playModelAnimationSpeed)?c:1,n=!0,r=!1,a=void 0;try{for(var i,s,l,c,u,d=R.current[Symbol.iterator]();!(n=(u=d.next()).done);n=!0){var w=(0,o._)(u.value,2),p=(w[0],w[1]);p.setLoop(e?M.YKA:M.jAl,1/0),p.timeScale=t}}catch(e){r=!0,a=e}finally{try{n||null==d.return||d.return()}finally{if(r)throw a}}},loadModel=function(e){if(!I.current.has(e)){var t=e.toLowerCase().endsWith(".gltf")||e.toLowerCase().endsWith(".glb"),n=t?new x.E:new D.L;P.current.set(e,n);var onLoad=function(t,n){var r=null==k||null==(l=k.modelCustomization)?void 0:l[e];(null==r?void 0:r.rotation)&&t.rotation.set(null!=(p=r.rotation.x)?p:0,null!=(h=r.rotation.y)?h:0,null!=(M=r.rotation.z)?M:0),t.traverse(function(e){if(e instanceof b.K){var t=e.material;if(t&&r&&(r.color&&t.color.setHex(parseInt(r.color.replace("#",""),16)),void 0!==r.opacity&&(t.opacity=r.opacity,t.transparent=r.opacity<1),t instanceof w.W&&(void 0!==r.metalness&&(t.metalness=r.metalness),void 0!==r.roughness&&(t.roughness=r.roughness))),t)if(Array.isArray(t)){var n=!0,a=!1,o=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;setupMaterialTransparency(l)}}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}}else setupMaterialTransparency(t)}});var a=new u.Z().setFromObject(t),o=a.getCenter(new d.P),i=a.getSize(new d.P),s=2/Math.max(i.x,i.y,i.z);if(t.scale.setScalar(s),t.position.sub(o.multiplyScalar(s)),I.current.set(e,t),null==(c=z.current)||c.scene.add(t),n&&n.length>0){var l,c,p,h,M,g,m=new C.X(t);Y.current.set(e,m),O.current.set(e,n),playAnimationForModel(e,null==(g=S.model)?void 0:g.playModelAnimation,function(){var e;return null==(e=z.current)?void 0:e.renderer.render(z.current.scene,z.current.camera)})}z.current&&setTimeout(function(){var e;null==(e=z.current)||e.renderer.render(z.current.scene,z.current.camera)},0)};t?n.load(e,function(e){onLoad(e.scene,e.animations)}):n.load(e,onLoad)}},removeModel=function(e){var t,n=I.current.get(e);n&&(null==(t=z.current)||t.scene.remove(n),n.traverse(function(e){if(e instanceof b.K){if(e.material)if(Array.isArray(e.material)){var t=!0,n=!1,r=void 0;try{for(var a,o=e.material[Symbol.iterator]();!(t=(a=o.next()).done);t=!0)a.value.dispose()}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}else e.material.dispose();e.geometry&&e.geometry.dispose()}}),I.current.delete(e)),P.current.delete(e);var r=R.current.get(e);null==r||r.stop(),R.current.delete(e),Y.current.delete(e),O.current.delete(e)};if((0,c.useEffect)(function(){if(null==(e=S.model)?void 0:e.models){var e,modelsChanged=function(){var e=(null==(i=S.model)?void 0:i.models)||[],t=new Set(e),n=new Set(I.current.keys()),r=!0,a=!1,o=void 0;try{for(var i,s,l=n[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var c=s.value;t.has(c)||removeModel(c)}}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}var u=!0,d=!1,w=void 0;try{for(var p,h=e[Symbol.iterator]();!(u=(p=h.next()).done);u=!0){var M=p.value;n.has(M)||loadModel(M)}}catch(e){d=!0,w=e}finally{try{u||null==h.return||h.return()}finally{if(d)throw w}}},t=(0,s.Ld)(S.model.models,modelsChanged),n=!1;return setTimeout(function(){n||modelsChanged()}),function(){n=!0,null==t||t()}}},[null==k?void 0:k.models]),(0,c.useEffect)(function(){if(k&&T.current&&void 0===k.steveModelSkin){var e,t=new g.x;t.background=null;var n=new m.c(50,k.positioning.width/k.positioning.height,.1,1e3);n.position.set(0,0,3);var i=new v.C({alpha:!0,antialias:!0});i.outputColorSpace=M.GUF;var s=window.devicePixelRatio||1;(null==(e=S.model)?void 0:e.positioning.scaled)&&(s*=N.X.scale),i.setPixelRatio(s),i.setSize(k.positioning.width,k.positioning.height),T.current.appendChild(i.domElement);var l=new j.z(n,i.domElement);l.minPolarAngle=Math.PI/2,l.maxPolarAngle=Math.PI/2,l.enableDamping=!0,l.dampingFactor=.05;var c=new y.M(0xffffff,3);t.add(c);var u=new A.c(0xffffff,.6);n.add(u),t.add(n);var render=function(){i.render(t,n)};if(k.continiousRender){var animate=function(e){requestAnimationFrame(animate),B.current.update(e),updateAllMixers(B.current.getDelta()),render()};requestAnimationFrame(animate)}else l.addEventListener("change",render),render();return z.current=(0,a._)((0,r._)({},z.current),{scene:t,camera:n,renderer:i,controls:l,dispose:function(){k.continiousRender||l.removeEventListener("change",render),void 0!==Q.current&&cancelAnimationFrame(Q.current);var e=!0,n=!1,r=void 0;try{for(var a,s,c=I.current[Symbol.iterator]();!(e=(s=c.next()).done);e=!0){var u=(0,o._)(s.value,2),d=(u[0],u[1]);t.remove(d),d.traverse(function(e){if(e instanceof b.K){if(e.material)if(Array.isArray(e.material)){var t=!0,n=!1,r=void 0;try{for(var a,o=e.material[Symbol.iterator]();!(t=(a=o.next()).done);t=!0)a.value.dispose()}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}else e.material.dispose();e.geometry&&e.geometry.dispose()}})}}catch(e){n=!0,r=e}finally{try{e||null==c.return||c.return()}finally{if(n)throw r}}I.current.clear(),P.current.clear(),R.current.clear(),Y.current.clear(),O.current.clear(),i.dispose(),null==(a=i.domElement)||a.remove()}}),function(){var e;null==(e=z.current)||e.dispose()}}},[k]),(0,c.useEffect)(function(){if(k){var render=function(){var e=z.current;e&&e.renderer.render(e.scene,e.camera)},e=k.playModelAnimation;if(void 0!==e){var t=!0,n=!1,r=void 0;try{for(var a,o=I.current.keys()[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value;playAnimationForModel(i,e,render)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}}},[null==k?void 0:k.playModelAnimation]),(0,c.useEffect)(function(){k&&applyAnimationParamsToAll()},[null==k?void 0:k.playModelAnimationSpeed,null==k?void 0:k.playModelAnimationLoop]),!k)return null;var F=k.positioning,W=F.x,J=F.y,V=F.width,G=F.height,H=F.scaled,Z=F.onlyInitialScale,K=k.positioning.windowWidth,X=k.positioning.windowHeight;return(0,i.jsx)("div",{className:"overlay-model-viewer-container",style:{zIndex:null!=(_=k.zIndex)?_:100,position:"fixed",inset:0,width:"100dvw",height:"100dvh",display:"flex",justifyContent:"center",alignItems:"center",transform:H?"scale(".concat(Z?q:"var(--guiScale)",")"):"none",pointerEvents:"none"},children:(0,i.jsxs)("div",{ref:E,className:"overlay-model-viewer-window",style:{width:K,height:X,position:"relative",pointerEvents:"none"},children:[k.followCursor&&k.followCursorCenterDebug?(p=null!=(e=null==(n=k.followCursorCenter)?void 0:n.x)?e:K/2,h=null!=(t=null==n?void 0:n.y)?t:X/2,(0,i.jsx)("div",{className:"overlay-model-viewer-follow-cursor-center-debug",style:{position:"absolute",left:p-3,top:h-3,width:6,height:6,backgroundColor:"red",pointerEvents:"none",zIndex:1e3}})):null,void 0===k.steveModelSkin?(0,i.jsx)("div",{ref:T,className:"overlay-model-viewer",style:{position:"absolute",left:W,top:J,width:V,height:G,pointerEvents:"auto",backgroundColor:k.debug?"red":void 0}}):(0,i.jsx)("div",{className:"overlay-model-viewer",style:{position:"absolute",left:W,top:J,pointerEvents:"auto",backgroundColor:k.debug?"red":void 0},children:(0,i.jsx)(PlayerModelCanvas,{width:V,height:G,skinUrl:k.steveModelSkin,followCursor:k.followCursor,computeNormalized:function(e,t){var n,r,a,o,i,s=S.model,l=s.positioning,c=s.followCursorCenter,u=l.windowWidth,d=l.windowHeight,w=null==(a=E.current)?void 0:a.getBoundingClientRect(),p=w?w.width/u:(n=l.scaled,r=l.onlyInitialScale,n?r?q:N.X.scale:1),h=(null!=(o=null==c?void 0:c.x)?o:u/2)*p,M=(null!=(i=null==c?void 0:c.y)?i:d/2)*p,g=w?e-w.left:e,m=w?t-w.top:t;return{normalizedX:(g-h)/(w?w.width/2:window.innerWidth/2),normalizedY:(m-M)/(w?w.height/2:window.innerHeight/2)}}})})]})})}},7329:function(e,t,n){"use strict";n.d(t,{K:()=>o,Z:()=>__WEBPACK_DEFAULT_EXPORT__});var r=n(4186);n(81812),n(96220),n(72558);var a=n(52676);function __WEBPACK_DEFAULT_EXPORT__(e){var t=e.iconName,n=e.width,o=void 0===n?void 0:n,i=e.styles,s=void 0===i?{}:i,l=e.className,c=void 0===l?void 0:l,u=e.onClick;return void 0!==o&&(s=(0,r._)({width:o,height:o,fontSize:o},s)),t=t.replace("pixelarticons:",""),(0,a.jsx)("div",{style:(0,r._)({},s),onClick:void 0===u?function(){}:u,className:"".concat("pixelart-icons-font-".concat(t)," ").concat(null!=c?c:"")})}var o=new Proxy({},{get:function(e,t){return t}})},27678:function(e,t,n){"use strict";n.d(t,{P:()=>i,Z:()=>s});var r=n(4186);n(72558);var a=n(52676),o=n(33927),i=(0,o.K)(function(){return(0,a.jsx)("div",{className:"dirt-bg"})},"screenDirtBg");let s=(0,o.K)(function(e){var t=e.title,n=e.children,o=e.backdrop,s=void 0===o||o,l=e.style,c=e.className,u=e.titleSelectable,d=e.titleMarginTop,w=e.contentStyle;return(0,a.jsxs)(a.Fragment,{children:["dirt"===s?(0,a.jsx)(i,{}):s?(0,a.jsx)("div",{className:"backdrop"}):null,(0,a.jsx)("div",{className:"fullscreen ".concat(void 0===c?"":c),style:(0,r._)({},l),children:(0,a.jsxs)("div",{className:"screen-content",style:(0,r._)({},w,void 0===d?{}:{marginTop:d}),children:[(0,a.jsx)("div",{className:"screen-title ".concat(u?"text-select":""),children:t}),n]})})]})},"screen")},3308:function(e,t,n){"use strict";n.d(t,{Pl:()=>C,ZP:()=>__WEBPACK_DEFAULT_EXPORT__,un:()=>L});var r,a,o,i=n(14772),s=n(59240),l=n(9787);n(72558),n(56070),n(83902),n(49245),n(48899),n(96573),n(50183),n(90804),n(24705),n(53346);var c=n(52676),u=n(44846),d=n(9117),w=n(75271),p=n(14971),h=n(71164),M=n(40451),g=n(80297),m=n(27678),v=n(76412),y=n(83389),A=n(85691),b=n(95705),_=(0,u.sj)({title:"",options:[],descriptions:[],showCancel:!0,minecraftJsonMessage:null,behavior:"resolve-close",inputs:{},inputsConfirmButton:"",hoveredOptionIndex:-1}),L=(r=(0,i._)(function(e,t){var n,r,a,i,s,c,u,d,w,p,h=arguments;return(0,l.Jh)(this,function(l){return a=void 0===(r=(n=h.length>2&&void 0!==h[2]?h[2]:{}).cancel)||r,s=void 0===(i=n.descriptions)?[]:i,c=n.minecraftJsonMessage,d=void 0===(u=n.hoveredOptionIndex)?-1:u,(0,M.K4)({reactType:"general-select"}),c&&(w=(p=(0,g.$)(c)).formatted,p.plain&&(e+=" (".concat(p.plain,")"))),[2,new Promise(function(n){o=n,Object.assign(_,{title:e,options:t,descriptions:s,showCancel:a,minecraftJsonMessage:w,inputs:{},inputsConfirmButton:"",hoveredOptionIndex:d})})]})}),function(e,t){return r.apply(this,arguments)}),C=(a=(0,i._)(function(e,t){var n,r,a,i,s,c,u,d,w,p,h=arguments;return(0,l.Jh)(this,function(l){return a=void 0===(r=(n=h.length>2&&void 0!==h[2]?h[2]:{}).cancel)||r,i=n.minecraftJsonMessage,c=void 0===(s=n.showConfirm)||s,d=void 0===(u=n.confirmLabel)?"Confirm":u,(0,M.K4)({reactType:"general-select"}),i&&(w=(p=(0,g.$)(i)).formatted,p.plain&&(e+=" (".concat(p.plain,")"))),[2,new Promise(function(n){o=n,Object.assign(_,{title:e,inputs:t,showCancel:a,minecraftJsonMessage:w,options:[],descriptions:[],inputsConfirmButton:c?d:"",hoveredOptionIndex:-1})})]})}),function(e,t){return a.apply(this,arguments)});function __WEBPACK_DEFAULT_EXPORT__(){var e=(0,d.R)(_),t=e.title,n=e.options,r=e.descriptions,a=e.showCancel,i=e.minecraftJsonMessage,l=e.inputs,u=e.inputsConfirmButton,g=e.hoveredOptionIndex,L=(0,v.uM)("general-select"),C=(0,w.useRef)({});if((0,w.useEffect)(function(){C.current=Object.fromEntries(Object.entries(l).map(function(e){var t,n=(0,s._)(e,2),r=n[0],a=n[1];return[r,null!=(t=a.defaultValue)?t:"checkbox"!==a.type&&""]}))},[l]),L){var resolveClose=function(e){"resolve-close"===_.behavior?(o(e),(0,M.kJ)()):((0,M.kJ)(),o(e))},j=r[g];return(0,c.jsxs)(m.Z,{title:t,backdrop:!0,children:[i&&(0,c.jsx)("div",{style:{textAlign:"center"},children:(0,c.jsx)(A.Z,{message:i})}),(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:9,alignItems:"center"},children:[n.length>0&&(0,c.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:5},children:n.map(function(e,t){return(0,c.jsx)(y.Z,{onClick:function(){resolveClose(e)},onMouseEnter:function(){_.hoveredOptionIndex=t},onMouseLeave:function(){_.hoveredOptionIndex=-1},style:{border:g===t?"2px solid #4CAF50":void 0,transition:"border 0.2s ease"},children:e},e)})}),(0,c.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:3},children:Object.entries(l).map(function(e){var t,n=(0,s._)(e,2),r=n[0],a=n[1],o=null!=(t=a.label)?t:(0,h.Q)((0,p.noCase)(r));return(0,c.jsxs)("div",{children:["text"===a.type&&(0,c.jsx)(b.sp,{label:o,autoFocus:!0,type:"text",defaultValue:a.defaultValue,placeholder:a.placeholder,onChange:function(e){C.current[r]=e.target.value}}),"checkbox"===a.type&&(0,c.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:4,fontSize:12},children:[(0,c.jsx)("input",{type:"checkbox",style:{marginBottom:-1},defaultChecked:a.defaultValue,onChange:function(e){C.current[r]=e.target.checked}}),o]}),"button"===a.type&&(0,c.jsx)(y.Z,{onClick:function(){var e;resolveClose(C.current),null==(e=a.onButtonClick)||e.call(a)},children:o})]},r)})}),l&&u&&(0,c.jsx)(y.Z,{onClick:function(){resolveClose(C.current)},children:u}),a&&(0,c.jsx)(y.Z,{onClick:function(){resolveClose(void 0)},children:"Cancel"}),g>=0&&j&&(0,c.jsx)("div",{style:{padding:"8px 12px",backgroundColor:"rgba(0, 0, 0, 0.1)",borderRadius:"4px",fontSize:"8px",color:"rgb(211, 211, 211)",marginTop:"4px",border:"1px solid rgba(0, 0, 0, 0.1)"},children:j})]})]})}}},64868:function(e,t,n){"use strict";n.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__}),n(72558),n(25113),n(7611),n(65340),n(2850),n(95790),n(83902),n(90804),n(24705),n(53346),n(52251),n(42050);var r=n(75271),a=n(32776),o=n(94755);function __WEBPACK_DEFAULT_EXPORT__(e){var t=e.children;return(0,r.useEffect)(function(){if(!document.getElementById("hud-vars-style")){var e="\n html {\n ".concat(Object.values(a.$).filter(function(e){return e.cssVar}).map(function(e){var t,n=null!=(t=e.cssVarRepeat)?t:1;return"".concat(e.cssVar,": ").concat(repeatArr("url('".concat(e.content,"')"),n).join(", "),";")}).join("\n"),"\n\n --hud-bottom-max: 0px;\n --hud-bottom-raw: max(env(safe-area-inset-bottom), var(--hud-bottom-max));\n --safe-area-inset-bottom: calc(var(--hud-bottom-raw) / var(--guiScale) + ").concat(o.m+3,"px);\n }\n "),t=document.createElement("style");t.id="hud-vars-style",t.textContent=e,document.head.appendChild(t)}},[]),t}var repeatArr=function(e,t){return Array.from({length:t},function(){return e})}},78425:function(e,t,n){"use strict";n.d(t,{Ed:()=>resolveStorageConflicts,GY:()=>setStorageDataOnAppConfigLoad,Z_:()=>resetAppStorage,e1:()=>L,ub:()=>getStorageConflicts});var r,a,o,i,s,l,c=n(4186),u=n(22312),d=n(59240),w=n(81979);n(74822),n(96220),n(34812),n(69047),n(95922),n(95790),n(83902),n(6645),n(86070),n(72558),n(58819),n(58207),n(7960),n(46302),n(64813),n(96573),n(94244),n(42050),n(87620),n(83210),n(56515),n(40542),n(64912),n(81812),n(59045),n(8705),n(67022),n(56520);var p=n(44846),h=n(14224),M=(null==(s=h.env)?void 0:s.SINGLE_FILE_BUILD)?"minecraft-web-client:":"",g=window.localStorage,m=["customCommands","username","keybindings","changedSettings","serversList"],v={serversHistory:"serverConnectionHistory"},getCookieValue=function(e){var t=document.cookie.split(";").find(function(t){return t.trimStart().startsWith("".concat("").concat(e,"="))});return t?decodeURIComponent(t.split("=")[1]):null},y=window.location.hostname.split(".").slice(-2).join("."),A="; Domain=.".concat(y,"; Path=/; SameSite=Strict; Secure"),setCookieValue=function(e,t){try{var n="".concat("").concat(e),r="".concat(n,"=").concat(encodeURIComponent(t));if((r+="".concat(A,"; Max-Age=2147483647")).length>4096)throw Error("Cookie size limit exceeded for key '".concat(e,"'. Cookie size: ").concat(r.length," bytes, limit: 4096 bytes."));document.cookie=r;var a=getCookieValue(e);if(a!==t)return console.warn("Cookie verification failed for key '".concat(e,"'. Expected: ").concat(t,", Got: ").concat(a)),!1;return!0}catch(t){return console.error("Failed to set cookie for key '".concat(e,"':"),t),window.showNotification("Failed to save data to cookies: ".concat(t.message),"Consider switching to localStorage in advanced settings.",!0),!1}},deleteCookie=function(e){var t="".concat("").concat(e);document.cookie="".concat(t,"=; ").concat(A,"; expires=Thu, 01 Jan 1970 00:00:00 UTC;")},b=[],detectStorageConflicts=function(){var e=[],t=!0,n=!1,r=void 0;try{for(var a,o=m[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value,s="".concat(M).concat(i),l=g.getItem(s),u=getCookieValue(i);if(l&&u)try{var d=JSON.parse(l),p=JSON.parse(u);if(g.getItem("".concat(s,":migrated")))continue;var h=null==d?void 0:d.timestamp,v=null==p?void 0:p.timestamp,y=h?(0,c._)({},d):d,A=v?(0,c._)({},p):p;delete y.timestamp,delete A.timestamp;var isDataEmpty=function(e){return(void 0===e?"undefined":(0,w._)(e))==="object"&&null!==e?0===Object.keys(e).length:!e&&0!==e&&!1!==e};JSON.stringify(y)===JSON.stringify(A)||isDataEmpty(y)||isDataEmpty(A)||e.push({key:i,localStorageValue:y,localStorageTimestamp:h,cookieValue:(void 0===A?"undefined":(0,w._)(A))==="object"&&null!==A&&"data"in A?A.data:A,cookieTimestamp:v})}catch(e){console.error("Failed to parse storage values for conflict detection on key '".concat(i,"':"),e,l,u)}}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}return e},showStorageConflictModal=function(){var e=window.showModal||function(e){console.error("Modal system not available:",e),console.warn("Storage conflicts detected but modal system not available:",b)};setTimeout(function(){e({reactType:"storage-conflict",conflicts:b})},100)},_={cookieStorage:!(null==(l=h.env)?void 0:l.SINGLE_FILE_BUILD),customCommands:void 0,username:void 0,keybindings:void 0,changedSettings:{},proxiesData:void 0,serversHistory:[],authenticatedAccounts:[],serversList:void 0,modsAutoUpdateLastCheck:void 0,firstModsPageVisit:!0,iframeConsents:void 0},setStorageDataOnAppConfigLoad=function(e){var t;null!=L.username||(L.username=getRandomUsername(e))},getRandomUsername=function(e){return e.defaultUsername?e.defaultUsername.replaceAll(/{(\d+)-(\d+)}/g,function(e,t,n){var r=Number(t);return Math.floor(Math.random()*(Number(n)-r+1)+r).toString()}).replaceAll("{num}",function(){return Math.floor(10*Math.random()).toString()}):""},L=(0,p.sj)((0,c._)({},_)),C=!1,shouldUseCookieStorage=function(){if(C||"https:"!==window.location.protocol&&"localhost"!==window.location.hostname)return!1;var e=g.getItem("".concat(M,"cookieStorage"));return null===e?!0===L.cookieStorage:"true"===e},restoreStorageData=function(){var e=shouldUseCookieStorage();if(e&&(b=detectStorageConflicts()).length>0)return void showStorageConflictModal();var t=!0,n=!1,r=void 0;try{for(var a,o=Object.keys(_)[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i,s=a.value,l="".concat(M).concat(s),c=v[s],u=null,d=!1,p=!1;if(e&&m.includes(s)&&(u=getCookieValue(s),d=!0),null===u&&(u=null!=(i=g.getItem(l))?i:c?g.getItem(c):null,p=!0),u)try{var h=JSON.parse(u);h&&(void 0===h?"undefined":(0,w._)(h))==="object"&&h.timestamp&&(delete h.timestamp,"data"in h&&1===Object.keys(h).length&&(h=h.data)),L[s]=h,p&&d&&(saveKey(s),markLocalStorageAsMigrated(s))}catch(e){console.error("Failed to parse stored value for ".concat(s,":"),e)}}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}},markLocalStorageAsMigrated=function(e){var t="".concat(M).concat(e);g.setItem("".concat(t,":migrated"),"true")},saveKey=function(e){var t=shouldUseCookieStorage(),n="".concat(M).concat(e),r=L[e],a=void 0===r?void 0:r&&(void 0===r?"undefined":(0,w._)(r))==="object"&&!Array.isArray(r)?(0,u._)((0,c._)({},r),{timestamp:Date.now()}):{data:r,timestamp:Date.now()},o=void 0===a?void 0:JSON.stringify(a),i=!0;t&&m.includes(e)&&(i=!1,void 0===o?deleteCookie(e):setCookieValue(e,o)?markLocalStorageAsMigrated(e):(console.warn("Cookie save failed for key '".concat(e,"', disabling cookies for this session")),C=!0,i=!0)),i&&(void 0===r?g.removeItem(n):g.setItem(n,JSON.stringify(r)))};(0,p.Ld)(L,function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value,s=(0,d._)(i,3),l=(s[0],s[1]);s[2];var c=l[0];saveKey(c)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}});var resetAppStorage=function(){var e=!0,t=!1,n=void 0;try{for(var r,a=Object.keys(L)[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value;L[o]=_[o]}}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}var i=!0,s=!1,l=void 0;try{for(var c,u=Object.keys(g)[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var d=c.value;d.startsWith(M)&&g.removeItem(d)}}catch(e){s=!0,l=e}finally{try{i||null==u.return||u.return()}finally{if(s)throw l}}if(shouldUseCookieStorage()&&window.confirm("Removing all synced cookies will remove all data from all ".concat(y," subdomains websites. Continue?"))){var w=!0,p=!1,h=void 0;try{for(var v,A=m[Symbol.iterator]();!(w=(v=A.next()).done);w=!0){var b=v.value;deleteCookie(b)}}catch(e){p=!0,h=e}finally{try{w||null==A.return||A.return()}finally{if(p)throw h}}}},resolveStorageConflicts=function(e){if(e)L.cookieStorage=!1;else{var t=!0,n=!1,r=void 0;try{for(var a,o=b[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value,s="".concat(M).concat(i.key);g.removeItem(s)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}var l=!0,c=!1,u=void 0;try{for(var d,w=b[Symbol.iterator]();!(l=(d=w.next()).done);l=!0){var p=d.value;L[p.key]=e?p.localStorageValue:p.cookieValue,saveKey(p.key)}}catch(e){c=!0,u=e}finally{try{l||null==w.return||w.return()}finally{if(c)throw u}}b=[],restoreStorageData()},getStorageConflicts=function(){return b};r=g.getItem("proxies"),a=g.getItem("selectedProxy"),r&&a&&(L.proxiesData={proxies:JSON.parse(r),selected:a}),(o=g.getItem("username"))&&!o.startsWith('"')&&(L.username=o),(i=g.getItem("serverConnectionHistory"))&&(L.serversHistory=JSON.parse(i)),g.removeItem("proxies"),g.removeItem("selectedProxy"),g.removeItem("serverConnectionHistory"),restoreStorageData()},33927:function(e,t,n){"use strict";n.d(t,{K:()=>withInjectableUi});var r=n(4186),a=n(22312);n(72558),n(58819),n(25113);var o=n(52676);n(75271);var i=n(77449),s=n(12179),wrapWithErrorBoundary=function(e,t,n,a){return(0,o.jsx)(i.SV,{renderError:function(t){var n=e.name||e.displayName||"Unknown";return(0,s.c0)("Registered component ".concat(a," crashed: ").concat(n),"Use console for more. ".concat(t.message),!0,void 0),null},children:(0,o.jsx)(e,(0,r._)({},t))},n)},withInjectableUi=function(e,t){var n,i,s,l,c=t.charAt(0).toUpperCase()+t.slice(1);null!=(n=window).builtinOriginalComponents||(n.builtinOriginalComponents={}),window.builtinOriginalComponents[c]=e;var WrappedComponent=function(n){for(var i,s,l,c=Object.values((null==(l=window.mcraft)||null==(s=l.ui)||null==(i=s.registeredReactWrappers)?void 0:i[t])||{}),u=(0,o.jsx)(e,(0,r._)({},n)),d=c.length-1;d>=0;d--)u=wrapWithErrorBoundary(c[d],(0,a._)((0,r._)({},n),{children:u}),d,t);return(0,o.jsx)(o.Fragment,{children:u})};return WrappedComponent.displayName="withInjectableUi(".concat(e.displayName||e.name||"Component",", ").concat(t,")"),null!=(i=window).builtinComponents||(i.builtinComponents={}),window.builtinComponents[c]=WrappedComponent,WrappedComponent}},43776:function(e,t,n){"use strict";n.d(t,{f:()=>useScrollBehavior});var r=n(59240),a=n(75271),useScrollBehavior=function(e,t){var n=t.messages,o=t.opened,i=(0,a.useRef)(!0),s=(0,r._)((0,a.useState)(!0),2),l=s[0],c=s[1],u=(0,a.useRef)(null),isAtBottom=function(){if(!e.current)return!0;var t=e.current,n=t.scrollTop;return 1>Math.abs(t.scrollHeight-t.clientHeight-n)},scrollToBottom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"instant";if(e.current){u.current&&clearTimeout(u.current);var n=e.current;n.scrollTop=n.scrollHeight,u.current=setTimeout(function(){if(e.current){var n=e.current;n.scrollTo({top:n.scrollHeight,behavior:t}),c(!0),i.current=!0}},5)}};return(0,a.useEffect)(function(){var t=e.current;if(t){var handleScroll=function(){var e=isAtBottom();i.current=e,c(e)};return t.addEventListener("scroll",handleScroll),function(){t.removeEventListener("scroll",handleScroll),u.current&&clearTimeout(u.current)}}},[]),(0,a.useLayoutEffect)(function(){o?requestAnimationFrame(function(){scrollToBottom()}):e.current&&scrollToBottom()},[o]),(0,a.useLayoutEffect)(function(){(!o||o&&i.current)&&e.current&&scrollToBottom()},[n]),{scrollToBottom:scrollToBottom,isAtBottom:isAtBottom,wasAtBottom:function(){return i.current},currentlyAtBottom:l}}},57809:function(e,t,n){"use strict";n.d(t,{g:()=>v.g4,F:()=>Inventory});var r=n(59240);n(82594),n(86070),n(81812),n(96220),n(66395),n(56843),n(98474),n(67022),n(56520),n(73372);var a=n(52676),o=n(30967),i=n(75271),s=n(9117),l=n(46290),c=n.n(l),u=n(22411),d=n(4741),w=n(40451),p=n(30367),h=n(391),M=n(32719),g=n(56389),m=n(68470);function PlayerModelViewer(e){var t=e.width,n=e.height,o=(0,r._)((0,i.useState)(function(){var e,t,n,r;return null!=(r=null==(n=appViewer)||null==(t=n.playerState)||null==(e=t.reactive)?void 0:e.playerSkin)?r:""}),2),s=o[0],l=o[1];return(0,i.useEffect)(function(){var e,t,n=null==(t=appViewer)||null==(e=t.playerState)?void 0:e.reactive;if(n){var r=(0,M.VW)(n,"playerSkin",function(e){e&&l(e)});return n.playerSkin||(0,g.CV)(bot.username,"skin").then(function(e){e&&l(e)}),r}},[]),(0,a.jsx)(m.iZ,{width:t,height:n,skinUrl:s,followCursor:!0})}var v=n(82278),Inventory=function(){var e,t,l,M,g,m=(0,d.K)(),y=(0,r._)((0,i.useState)(0),2),A=y[0],b=y[1],_=(0,r._)((0,i.useState)(null!=(M=null==(e=bot.game)?void 0:e.gameMode)?M:""),2),L=_[0],C=_[1];(0,i.useEffect)(function(){var onGame=function(){return C(bot.game.gameMode)};return bot.on("game",onGame),function(){bot.removeListener("game",onGame)}},[]);var j=(0,s.R)(w.M),D=(0,i.useMemo)(function(){return j.findLast(function(e){return e.reactType.startsWith("player_win:")})},[j]),x=null!=(g=null==D?void 0:D.reactType.replace("player_win:",""))?g:null,k=(null==(t=j.at(-1))?void 0:t.reactType)===(null==D?void 0:D.reactType),N=(0,i.useMemo)(function(){if(!x)return null;var e=c()(bot.version);return(0,u.c)(bot,{itemMapper:(0,v.J2)(bot.version),formatTitle:v.FO,computeAnvilCost:function(t,n){if(!t)return null;try{return e.anvil(t,n,"creative"===bot.game.gameMode,void 0).xpCost}catch(e){return null}}})},[A,!!x]);(0,i.useEffect)(function(){if(N)return function(){N.sendAction({type:"close"})}},[N]),(0,i.useEffect)(function(){var refresh=function(){(0,v.g4)(),b(function(e){return e+1})};return appViewer.resourcesManager.on("assetsTexturesUpdated",refresh),appViewer.resourcesManager.on("assetsInventoryReady",refresh),function(){appViewer.resourcesManager.off("assetsTexturesUpdated",refresh),appViewer.resourcesManager.off("assetsInventoryReady",refresh)}},[]);var T=!0===p.YM.inventoryJei||Array.isArray(p.YM.inventoryJei)&&p.YM.inventoryJei.includes(null==(l=bot.game)?void 0:l.gameMode),S=p.YM.inventoryNotes,z=p.YM.inventoryPlaceholders,q=p.YM.inventoryPlayerModel,E=(0,r._)((0,i.useState)(!1),2),I=E[0],P=E[1];(0,i.useEffect)(function(){if(!x||!T)return void P(!1);var e=!1;return requestAnimationFrame(function(){requestAnimationFrame(function(){e||P(!0)})}),function(){e=!0}},[!!x,T]);var Y=(0,i.useMemo)(function(){return I?(0,h.X0)():[]},[I,A]),O=(0,i.useCallback)(function(e){return(0,h.xi)(e.name)},[]),R=(0,i.useCallback)(function(e){return(0,h.nb)(e.name)},[]),B=(0,i.useCallback)(function(e,t){if(e.type&&loadedData.items[e.type]){var r,a=n(46290)(bot.version),o=new a(e.type,t,null!=(r=e.metadata)?r:0),i=bot.inventory.firstEmptyInventorySlot();null!==i&&(bot._client.write("set_creative_slot",{slot:i,item:a.toNotch(o)}),bot._setSlot(i,o))}},[]),U=(0,i.useCallback)(function(e){return B(e,1)},[B]),Q=(0,i.useCallback)(function(e){return B(e,64)},[B]),F=(0,i.useCallback)(function(){null==N||N.sendAction({type:"close"}),(0,w.kJ)()},[N]),W=(0,i.useCallback)(function(e,t){return(0,a.jsx)(PlayerModelViewer,{width:e,height:t})},[]);return x&&N?(0,o.createPortal)((0,a.jsx)("div",{style:{position:"fixed",inset:0,zIndex:1e3,display:k?void 0:"none"},children:(0,a.jsx)(u.u9,{config:v.tw,children:(0,a.jsx)(u.$d,{scale:m,children:(0,a.jsx)(u._3,{connector:N,noPlaceholders:!z,resolveEnchantmentName:function(e){var t,n,r;return null==(r=globalThis.loadedData)||null==(n=r.enchantments)||null==(t=n[e])?void 0:t.displayName},children:(0,a.jsx)(u.I5,{type:x,showJEI:T&&I,jeiItems:I?Y:[],jeiOnGetRecipes:O,jeiOnGetUsages:R,jeiOnItemClick:"creative"===L?U:void 0,jeiOnItemRightClick:"creative"===L?Q:void 0,onClose:F,renderEntity:q?W:void 0,enableNotes:S,onOpenSettings:function(){return(0,w.NZ)("inventory")}})})})})}),document.body):null}},62946:function(e,t,n){"use strict";n.d(t,{Z:()=>r});var r=(0,n(36965).wc)({remoteFallback:!1})},82278:function(e,t,n){"use strict";n.d(t,{FO:()=>formatWindowTitle,J2:()=>buildItemMapper,WB:()=>enrichItemStack,g4:()=>clearInventoryCaches,tw:()=>h});var r=n(4186),a=n(22312),o=n(59240),i=n(81979);n(98719),n(84317),n(8957),n(44792),n(33785),n(9587),n(13278),n(64391),n(86838),n(80062),n(50433),n(97336),n(65855),n(56656),n(42449),n(96573),n(94244),n(42050),n(83902),n(72558),n(7960),n(46302),n(64813),n(58819),n(90804),n(24705),n(53346),n(86070),n(87620),n(83210),n(73372);var s=n(72960),l=n(46290),c=n.n(l),u=n(81274),d=n(6733),w=n(62946),p=new Map;function clearInventoryCaches(){p.clear(),w.Z.resetRenderedSlots()}function getAtlas(e){if(!(null==(t=appViewer)?void 0:t.resourcesManager))return null;var t,n,r,a,o,i,s,l,c=appViewer.resourcesManager;return"gui"===e?null!=(i=null==(r=c.currentResources)||null==(n=r.guiAtlas)?void 0:n.image)?i:null:"items"===e?null!=(s=null==(a=c.currentResources)?void 0:a.itemsAtlasImage)?s:null:"blocks"===e&&null!=(l=null==(o=c.currentResources)?void 0:o.blocksAtlasImage)?l:null}function getAtlasForBlockRenderer(e){if(!(null==(t=appViewer)?void 0:t.resourcesManager))return null;var t,n,r,a=appViewer.resourcesManager;return"blocks"===e&&null!=(r=null==(n=a.blocksAtlasParser)?void 0:n.latestImage)?r:null}function extractSpriteDataUrl(e,t){var n=getAtlas(e);if(n&&t){var r=(0,o._)(t,4),a=r[0],i=r[1],s=r[2],l=r[3],c="".concat(e,":").concat(a,":").concat(i,":").concat(s,":").concat(l);if(p.has(c))return p.get(c);try{var u=document.createElement("canvas");u.width=s,u.height=l,u.getContext("2d").drawImage(n,a,i,s,l,0,0,s,l);var d=u.toDataURL();return p.set(c,d),d}catch(e){return}}}function buildBlockTexture(e){var t,n,r=getAtlasForBlockRenderer("blocks");if(r){var getFace=function(){for(var t=arguments.length,n=Array(t),r=0;rsaveServerPassword,Mf:()=>updateLoadedServerData,Rt:()=>clearServerPassword,S_:()=>getServerIndex,e$:()=>setNewServersList,ky:()=>updateAuthenticatedAccountData,o:()=>updateServerConnectionHistory,x2:()=>findServerPassword});var r=n(4186),a=n(25763);n(34812),n(69047),n(95922),n(95790),n(83902),n(40542),n(11304),n(8705);var o=n(32175),i=n(40451),s=n(19478),l=n(30367),c=n(78425),u=n(12179),d=o.EX.serversList;function updateServerConnectionHistory(e,t){try{var n,r=(0,a._)(null!=(n=c.e1.serversHistory)?n:[]),o=r.find(function(t){return t.ip===e});o?(o.numConnects++,o.lastConnected=Date.now(),t&&(o.version=t)):r.push({ip:e,numConnects:1,lastConnected:Date.now(),version:t}),c.e1.serversHistory=r}catch(e){console.error("Failed to update server connection history:",e)}}var getServerIndex=function(){var e=null==(n=s.Pc.value)?void 0:n.server,t=i.N_.loadedServerIndex;if(void 0!==t)return t;if(e){var n,r,a=null==(r=c.e1.serversList)?void 0:r.findIndex(function(t){return t.ip===e}).toString();if("-1"===a)return;return a}},findServerPassword=function(){var e,t,n,r,a,o,i=bot.username,l=getServerIndex();if(void 0!==l){var u=null==(n=c.e1.serversList)||null==(t=n[l])||null==(e=t.autoLogin)?void 0:e[i];return u||(null==(o=c.e1.serversList)||null==(a=o.find(function(e){var t,n;return e.ip===(null==(t=s.Pc.value)?void 0:t.server)&&(null==(n=e.autoLogin)?void 0:n[i])}))||null==(r=a.autoLogin)?void 0:r[i])}},updateLoadedServerData=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.N_.loadedServerIndex;if(void 0===n){var r=getServerIndex();if(void 0===r)return;n=r}var o=(0,a._)(null!=(t=c.e1.serversList)?t:[]),s=o[n];s&&(o[n]=e(s),setNewServersList(o))},setNewServersList=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(!d||t)&&(c.e1.serversList=e)},clearServerPassword=function(){if(void 0!==getServerIndex()){var e,t=null==(e=bot)?void 0:e.username;t&&updateLoadedServerData(function(e){return e.autoLogin&&delete e.autoLogin[t],(0,r._)({},e)})}},updateAuthenticatedAccountData=function(e){var t=e(c.e1.authenticatedAccounts);c.e1.authenticatedAccounts=t},saveServerPassword=function(e,t){if((null==t?void 0:t.silent)||"never"!==l.YM.saveLoginPassword){var doSave=function(){var n=!1;if(updateLoadedServerData(function(t){var a;return null!=t.autoLogin||(t.autoLogin={}),n=!!t.autoLogin[bot.username],t.autoLogin[bot.username]=e,(0,r._)({},t)}),null==t||!t.silent)if("always"===l.YM.saveLoginPassword){var a=n?"Password updated in browser for auto-login":"Password saved in browser for auto-login";(0,u.c0)(a,void 0,!1,void 0)}else(0,u.yK)()};if(null==t?void 0:t.silent)return void doSave();"prompt"===l.YM.saveLoginPassword?(0,u.c0)("Click here to save your password in browser for auto-login",void 0,!1,void 0,doSave):doSave(),u.QW.id="auto-login";var listener=function(){(0,u.yK)()};bot.on("kicked",listener),setTimeout(function(){bot.removeListener("kicked",listener)},2e3)}}},48747:function(e,t,n){"use strict";n.d(t,{P:()=>o,U:()=>onChangeButtonState});var r=n(44846),a=n(32175),o=(0,r.sj)({packetsPlayback:[],isOpen:!1,isMinimized:!1,isRecording:!1,replayName:"",isPlaying:!1,progress:{current:0,total:0},speed:a.EX.replaySpeed?parseFloat(a.EX.replaySpeed):1,customButtons:{validateClientPackets:{state:"true"===a.EX.replayValidateClient,label:"C",tooltip:"Validate client packets"},stopOnError:{state:"true"===a.EX.replayStopOnError,label:"E",tooltip:"Stop the replay when an error occurs"},skipMissingOnTimeout:{state:"true"===a.EX.replaySkipMissingOnTimeout,label:"T",tooltip:"Skip missing packets on timeout"},packetsSenderDelay:{state:"true"===a.EX.replayPacketsSenderDelay,label:"D",tooltip:"Send packets with an additional delay"}}}),onChangeButtonState=function(e,t){switch(o.customButtons[e].state=t,e){case"validateClientPackets":(0,a.h0)("replayValidateClient",String(t));break;case"stopOnError":(0,a.h0)("replayStopOnError",String(t));break;case"skipMissingOnTimeout":(0,a.h0)("replaySkipMissingOnTimeout",String(t));break;case"packetsSenderDelay":(0,a.h0)("replayPacketsSenderDelay",String(t))}}},46229:function(e,t,n){"use strict";n.d(t,{e:()=>useTypingIndicatorText}),n(7611),n(65340),n(2850),n(95790),n(83902),n(72558),n(58819),n(90804),n(24705),n(53346),n(66395),n(56843),n(98474),n(55058),n(29127);var r=n(75271),a=n(9117),o=n(40451),useTypingIndicatorText=function(){var e=(0,a.R)(o.rl).typingUsers,t=(0,r.useMemo)(function(){var t,n,r,a,o=e.filter(function(e){return!e.timestamp||Date.now()-e.timestamp<2e3});if(0===o.length)return"";if(1===o.length)return"".concat((null==(t=o[0])?void 0:t.username)||"Someone"," is typing...");if(2===o.length)return"".concat((null==(n=o[0])?void 0:n.username)||"Someone"," and ").concat((null==(r=o[1])?void 0:r.username)||"Someone"," are typing...");var i=o.slice(0,-1).map(function(e){return(null==e?void 0:e.username)||"Someone"}).join(", "),s=(null==(a=o.at(-1))?void 0:a.username)||"Someone";return"".concat(i," and ").concat(s," are typing...")},[e]);return(0,r.useEffect)(function(){var e=setInterval(function(){var e=Date.now();o.rl.typingUsers.some(function(t){return t.timestamp&&e-t.timestamp>=2e3})&&(o.rl.typingUsers=o.rl.typingUsers.filter(function(t){return!t.timestamp||e-t.timestamp<2e3}))},1e3);return function(){return clearInterval(e)}},[]),t}},74614:function(e,t,n){"use strict";n.d(t,{BO:()=>reactKeyForMessage,Dz:()=>useDidUpdateEffect,FR:()=>getGameViewportSize,G6:()=>i,_i:()=>mapEventCoordinates,s:()=>o,ua:()=>a}),n(56515);var r=n(75271);function useDidUpdateEffect(e,t){var n=(0,r.useRef)(!1);(0,r.useEffect)(function(){n.current=!0},[]),(0,r.useEffect)(function(){if(!n.current)return e();n.current=!1},t)}var a=new(n(79225)).UAParser(navigator.userAgent),o="iOS"===a.getOS().name,i="Safari"===a.getBrowser().name||o,reactKeyForMessage=function(e){return"string"==typeof e?e:JSON.stringify(e)},mapEventCoordinates=function(e){var t=document.body.classList.contains("rotated"),n=document.body.getBoundingClientRect();return{clientX:t?e.clientY:e.clientX,clientY:t?n.width-e.clientX:e.clientY,sizeX:t?n.height:n.width,sizeY:t?n.width:n.height}},getGameViewportSize=function(){var e=document.querySelector("canvas#viewer-canvas");return e?{width:e.clientWidth,height:e.clientHeight}:{width:0,height:0}}},76412:function(e,t,n){"use strict";n.d(t,{Af:()=>s,mE:()=>useIsWidgetActive,uM:()=>useIsModalActive,uT:()=>useUsingTouch,w:()=>l}),n(73372),n(40542),n(7611),n(65340),n(2850),n(95790),n(83902),n(55058),n(29127),n(66395),n(56843),n(98474),n(72558);var r=n(44846),a=n(9117),o=n(75271),i=n(40451),s=(0,r.sj)({value:[]});globalThis.watchedModalsFromHooks=s;var l=["empty","player_win:","divkit:","full-map"],useUsingTouch=function(){return(0,a.R)(i.N_).currentTouch},useIsModalActive=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,o.useMemo)(function(){s.value.push(e)},[]),(0,o.useEffect)(function(){return s.value.push(e),function(){s.value=s.value.filter(function(t){return t!==e})}},[]);var r=(0,a.R)(i.M);return n?r.some(function(t){return t.reactType===e}):(null==(t=r.at(-1))?void 0:t.reactType)===e},useIsWidgetActive=function(e){return useIsModalActive("widget-".concat(e))}},44214:function(e,t,n){"use strict";n.d(t,{E3:()=>U,UA:()=>G,V_:()=>V,YT:()=>onAppLoad,bP:()=>H,cj:()=>eo,dd:()=>X,i0:()=>W,wK:()=>ei,xm:()=>J});var r,a,o,i,s,l,c,u,d,w,p,h,M,g,m,v,y=n(14772),A=n(73438),b=n(59240),_=n(25763),L=n(9787);n(56070),n(83902),n(40542),n(72558),n(58207),n(50183),n(7611),n(65340),n(2850),n(95790),n(86070),n(52307),n(8416),n(93118),n(82766),n(37151),n(20142),n(89909),n(24578),n(89437),n(802),n(52895),n(46525),n(83930),n(18369),n(41494),n(66616),n(39222),n(83282),n(59237),n(60353),n(40332),n(72040),n(52768),n(2249),n(96573),n(94244),n(42050),n(90804),n(24705),n(53346),n(32831),n(95526),n(39908),n(67022),n(56520),n(7960),n(46302),n(64813),n(74822),n(96220),n(98719),n(84317),n(8957),n(44792),n(33785),n(9587),n(13278),n(64391),n(86838),n(80062),n(50433),n(97336),n(65855),n(56656),n(42449),n(81812),n(48899),n(49245),n(87620),n(83210),n(25113),n(52251);var C=n(62005),j=n(9304),D=n.n(j),x=n(34210),k=n.n(x),N=n(44846),T=n(47639),S=n(36965),z=n(54694),q=n(12179),E=n(30367),I=n(3308),P=n(32776),Y=n(40451),O=n(46644),R=n(62946),B=n(55872).Buffer,U=(0,N.sj)({resourcePackInstalled:!1,isServerDownloading:!1,isServerInstalling:!1}),Q=(r=(0,y._)(function(e){var t;return(0,L.Jh)(this,function(n){switch(n.label){case 0:return(t=new Image).src=e,[4,new Promise(function(e,n){t.onload=e,t.onerror=n})];case 1:return n.sent(),[2,t]}})}),function(e){return r.apply(this,arguments)}),F="/data/resourcePacks/",W=(a=(0,y._)(function(){var e,t,n=arguments;return(0,L.Jh)(this,function(r){switch(r.label){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:"default",[4,Z("/resourcepack/pack.mcmeta")];case 1:if(!r.sent())return[3,3];return[4,(0,z.y8)("/resourcepack",!1)];case 2:r.sent(),Y.rl.usingServerResourcePack=!1,r.label=3;case 3:return[4,Z(t=F+e)];case 4:if(!r.sent())return[2];return[4,(0,z.y8)(t)];case 5:return r.sent(),E.YM.enabledResourcepack=null,[4,V()];case 6:return r.sent(),[2]}})}),function(){return a.apply(this,arguments)}),J=(o=(0,y._)(function(){var e;return(0,L.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),e=[{}],[4,D().promises.readFile((0,C.join)(F,"default","name.txt"),"utf8")];case 1:return[2,A._.apply(void 0,e.concat([t.sent(),!0]))];case 2:return t.sent(),[2,{}];case 3:return[2]}})}),function(){return o.apply(this,arguments)}),V=(i=(0,y._)(function(){return(0,L.Jh)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,Z(F+"default")];case 1:return U.resourcePackInstalled=e.sent(),[3,3];case 2:return e.sent(),[3,3];case 3:return[2]}})}),function(){return i.apply(this,arguments)}),G=(s=(0,y._)(function(e,t){var n,r,a,o,i,s,l,c,u,d,w=arguments;return(0,L.Jh)(this,function(p){switch(p.label){case 0:n=w.length>2&&void 0!==w[2]?w[2]:e.name,r=w.length>3&&void 0!==w[3]?w[3]:"default",a=w.length>4&&void 0!==w[4]&&w[4],console.time("processResourcePack"),o=a?"/resourcepack/":F+r,p.label=1;case 1:return p.trys.push([1,3,,4]),[4,t.executeWithMessage("Uninstalling resource pack",(0,y._)(function(){return(0,L.Jh)(this,function(e){switch(e.label){case 0:return[4,W(r)];case 1:return e.sent(),[2]}})}))];case 2:case 3:return p.sent(),[3,4];case 4:return t.beginStage("copy-files-resourcepack","Installing resource pack: copying all files"),[4,new(k())().loadAsync(e)];case 5:if(!(i=p.sent()).file("pack.mcmeta"))throw Error("Not a resource pack: missing /pack.mcmeta");return[4,(0,z.xl)(o)];case 6:var h;return p.sent(),s=Object.entries(i.files).filter(function(e){var t=(0,b._)(e,1)[0];return!t.startsWith(".")&&!t.startsWith("_")&&!t.startsWith("/")}),l=0,c=function(){t.reportProgress("copy-files-resourcepack",l/s.length)},u=new Set,d=[],console.time("resourcePackCopy"),[4,Promise.all(s.map((h=(0,y._)(function(e){var t,n,r,a,i,s,w,p,h,M;return(0,L.Jh)(this,function(g){switch(g.label){case 0:if(n=(t=(0,b._)(e,2))[0],r=t[1],a=(0,C.join)(o,n),n.endsWith("/"))return[2];if(i=(0,C.dirname)(a),u.has(i))return[3,2];return[4,(0,z.xl)(i)];case 1:g.sent(),u.add(i),g.label=2;case 2:if(!(d.length>100))return[3,4];return[4,Promise.all(d)];case 3:g.sent(),d.length=0,g.label=4;case 4:return p=(w=D().promises).writeFile,h=[a],M=B.from,[4,r.async("arraybuffer")];case 5:return s=p.apply(w,h.concat([M.apply(B,[g.sent()])])),d.push(s),[4,s];case 6:return g.sent(),l++,c(),[2]}})}),function(e){return h.apply(this,arguments)})))];case 7:return p.sent(),console.timeEnd("resourcePackCopy"),[4,H(n,r,a,t)];case 8:return p.sent(),console.log("resource pack install done"),console.timeEnd("processResourcePack"),[2]}})}),function(e,t){return s.apply(this,arguments)}),H=(l=(0,y._)(function(e,t,n,r){var a;return(0,L.Jh)(this,function(o){switch(o.label){case 0:if(a=n?"/resourcepack/":F+t,!e)return[3,2];return[4,D().promises.writeFile((0,C.join)(a,"name.txt"),e,"utf8")];case 1:o.sent(),o.label=2;case 2:return[4,ea(r)];case 3:return o.sent(),$.length>0?((0,q.c0)("Resource pack installed & enabled with ".concat($.length," errors")),console.error("Resource pack installed & enabled with errors:",$)):(0,q.c0)("Resource pack installed & enabled"),[4,V()];case 4:return o.sent(),n?Y.rl.usingServerResourcePack=!0:E.YM.enabledResourcepack=t,r.end(),[2]}})}),function(e,t,n,r){return l.apply(this,arguments)}),Z=(c=(0,y._)(function(e){return(0,L.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,D().promises.stat(e)];case 1:return t.sent(),[2,!0];case 2:return t.sent(),[2,!1];case 3:return[2]}})}),function(e){return c.apply(this,arguments)}),K=(u=(0,y._)(function(e){var t,n;return(0,L.Jh)(this,function(r){switch(r.label){case 0:return t=new Image,[4,D().promises.readFile(e,"base64")];case 1:return n=r.sent(),t.src="data:image/png;base64,".concat(n),[4,new Promise(function(e,n){t.addEventListener("load",e)})];case 2:if(r.sent(),t.width!==t.height)throw Error("Probe texture ".concat(e," is not square"));return[2,t.width]}})}),function(e){return u.apply(this,arguments)}),X=(d=(0,y._)(function(){var e;return(0,L.Jh)(this,function(t){switch(t.label){case 0:return[4,Z("/resourcepack/pack.mcmeta")];case 1:if(t.sent())return[2,"/resourcepack"];if(!(e=E.YM.enabledResourcepack))return[2,null];return[4,Z("/data/resourcePacks/".concat(e,"/pack.mcmeta"))];case 2:if(t.sent())return[2,"/data/resourcePacks/".concat(e)];return[2,null]}})}),function(){return d.apply(this,arguments)}),$=[],ee=(w=(0,y._)(function(e,t,n){var r,a,o,i,s,l,c,u,d,w,p,h;return(0,L.Jh)(this,function(n){switch(n.label){case 0:return[4,X()];case 1:if(!(r=n.sent()))return[2];return[4,D().promises.readdir((0,C.join)(r,"assets"))];case 2:switch(o=n.sent(),i={},e){case"blocks":s="block";break;case"items":s="item";break;case"armor":s="models/armor";break;default:throw Error("Invalid type")}l=!0,c=!1,u=void 0,n.label=3;case 3:n.trys.push([3,8,9,10]),d=function(){var e,n,o,l,c,u,d,w,h,M,g,m,v,A,j,x,k,N,T,S,z,q,E,I,P,Y;return(0,L.Jh)(this,function(O){switch(O.label){case 0:return e=p.value,n="".concat(r,"/assets/").concat(e,"/textures"),o="minecraft"===e,l="".concat(n,"/").concat(s),c="".concat(n,"/").concat(s,"s"),[4,Z(l)];case 1:if(O.sent())return[3,3];return[4,Z(c)];case 2:O.sent()&&(l=c),O.label=3;case 3:u=new Set(t.filter(function(t){return o&&!t.includes(":")||t.includes(":")&&t.split(":")[0]===e}).map(function(e){var t;return(e=null!=(t=e.split(":")[1])?t:e).includes("/")?(0,C.join)("".concat(n,"/").concat(e)):(0,C.join)(l,e)})),d=new Map,w=!0,h=!1,M=void 0;try{for(g=u[Symbol.iterator]();!(w=(m=g.next()).done);w=!0)v=m.value,A=(0,C.dirname)(v),d.has(A)||d.set(A,[]),j=(0,C.basename)(v),d.get(A).push(j)}catch(e){h=!0,M=e}finally{try{w||null==g.return||g.return()}finally{if(h)throw M}}x=[],k=!0,N=!1,T=void 0,O.label=4;case 4:O.trys.push([4,9,10,11]),S=function(){var e,t,n,r,a;return(0,L.Jh)(this,function(o){switch(o.label){case 0:return t=(e=(0,b._)(q.value,2))[0],n=e[1],[4,Z(t)];case 1:if(!o.sent())return[2,"continue"];return[4,D().promises.readdir(t)];case 2:return a=o.sent().filter(function(e){return e.endsWith(".png")}).map(function(e){return e.replace(".png","")}),(r=x).push.apply(r,(0,_._)(a.filter(function(e){return n.includes(e)}).map(function(e){return"".concat(t,"/").concat(e)}))),[2]}})},z=d[Symbol.iterator](),O.label=5;case 5:if(k=(q=z.next()).done)return[3,8];return[5,(0,L.XA)(S())];case 6:O.sent(),O.label=7;case 7:return k=!0,[3,5];case 8:return[3,11];case 9:return E=O.sent(),N=!0,T=E,[3,11];case 10:try{k||null==z.return||z.return()}finally{if(N)throw T}return[7];case 11:if(0===x.length)return[2,"continue"];I=x[0],O.label=12;case 12:if(O.trys.push([12,16,,17]),null==a)return[3,13];return[3,15];case 13:return[4,K("".concat(I,".png"))];case 14:a=O.sent(),O.label=15;case 15:return[3,17];case 16:return O.sent(),[3,17];case 17:var R;return Y=Object.fromEntries,[4,Promise.all(x.map((R=(0,y._)(function(t){var r,a,i,s,c,u,d;return(0,L.Jh)(this,function(w){switch(w.label){case 0:return w.trys.push([0,3,,4]),r="".concat(t,".png"),[4,D().promises.readFile(r,"base64")];case 1:return a=w.sent(),[4,Q("data:image/png;base64,".concat(a))];case 2:return i=w.sent(),s=t.replace("".concat(l,"/"),"").replace("".concat(n,"/"),""),[2,[o?s:"".concat(e,":").concat(s),i]];case 3:return c=w.sent(),u=t.replace("".concat(l,"/"),"").replace("".concat(n,"/"),""),d=o?u:"".concat(e,":").concat(u),$.push("[".concat(u,"] ").concat(c.message)),[2,[d,void 0]];case 4:return[2]}})}),function(e){return R.apply(this,arguments)})))];case 18:return P=Y.apply(Object,[O.sent()]),Object.assign(i,Object.fromEntries(Object.entries(P).filter(function(e){return void 0!==(0,b._)(e,2)[1]}))),[2]}})},w=o[Symbol.iterator](),n.label=4;case 4:if(l=(p=w.next()).done)return[3,7];return[5,(0,L.XA)(d())];case 5:n.sent(),n.label=6;case 6:return l=!0,[3,4];case 7:return[3,10];case 8:return h=n.sent(),c=!0,u=h,[3,10];case 9:try{l||null==w.return||w.return()}finally{if(c)throw u}return[7];case 10:return[2,{firstTextureSize:a,textures:i}]}})}),function(e,t,n){return w.apply(this,arguments)}),et=(p=(0,y._)(function(e){var t,n,r,a,o,i,s,l,c,u,d,w,p,h,M;return(0,L.Jh)(this,function(g){switch(g.label){case 0:return(t=appViewer.resourcesManager.currentResources).customBlockStates={},t.customModels={},t.customItemModelNames={},n=new Set,r=new Set,[4,X()];case 1:var m,v,A;if(!(a=g.sent()))return[2];e.beginStage("read-resource-pack-blockstates-and-models","Reading resource pack blockstates and models"),m=(0,y._)(function(e,t,a){var o,i;return(0,L.Jh)(this,function(s){switch(s.label){case 0:return[4,Z(e)];case 1:if(!s.sent())return[2];return[4,D().promises.readdir(e)];case 2:var l;return o=s.sent(),i={},[4,Promise.all(o.map((l=(0,y._)(function(o){var s,l,c,u,d,w,p,h,M,g,m,v;return(0,L.Jh)(this,function(y){switch(y.label){case 0:if(s="".concat(e,"/").concat(o),!o.endsWith(".json"))return[3,2];return[4,D().promises.readFile(s,"utf8")];case 1:if(l=y.sent(),c=o.replace(".json",""),u=e.endsWith("block"),"models"===t&&(c="".concat(u?"block":"item","/").concat(c)),d=JSON.parse(l),"minecraft"===a&&(i[c]=d),i["".concat(a,":").concat(c)]=d,"models"===t){p=!0,h=!1,M=void 0;try{for(g=Object.values(null!=(w=d.textures)?w:{})[Symbol.iterator]();!(p=(m=g.next()).done);p=!0)v=m.value,"string"==typeof v&&(v.startsWith("#")||(v.includes(":")||(v="minecraft:".concat(v)),u?n.add(v):r.add(v)))}catch(e){h=!0,M=e}finally{try{p||null==g.return||g.return()}finally{if(h)throw M}}}y.label=2;case 2:return[2]}})}),function(e){return l.apply(this,arguments)})))];case 3:return s.sent(),[2,i]}})}),o=function(e,t,n){return m.apply(this,arguments)},v=(0,y._)(function(e,t){var n,r;return(0,L.Jh)(this,function(a){switch(a.label){case 0:return[4,Z(e)];case 1:if(!a.sent())return[2];return[4,D().promises.readdir(e)];case 2:var o;return n=a.sent(),r={},[4,Promise.all(n.map((o=(0,y._)(function(n){var a,o,i,s,l,c,u,d,w,p,h,M,g,m,v,y,A,b,_,C,j,x,k,N,T,S,z,q;return(0,L.Jh)(this,function(L){switch(L.label){case 0:if(a="".concat(e,"/").concat(n),!n.endsWith(".json"))return[3,2];return[4,D().promises.readFile(a,"utf8")];case 1:if(o=L.sent(),i=n.replace(".json",""),s=JSON.parse(o),l=[],e.endsWith("/items")){if((null==(c=s.model)?void 0:c.type)==="range_dispatch"&&(null==(u=s.model)?void 0:u.property)==="custom_model_data"){p=!0,h=!1,M=void 0;try{for(g=(null!=(w=null==(d=s.model)?void 0:d.entries)?w:[])[Symbol.iterator]();!(p=(m=g.next()).done);p=!0)b=null!=(A=(v=m.value).threshold)?A:0,_=null==(y=v.model)?void 0:y.model,"string"==typeof _&&(_.includes(":")||(_="minecraft:".concat(_)),l[b]=_)}catch(e){h=!0,M=e}finally{try{p||null==g.return||g.return()}finally{if(h)throw M}}}}else if(e.endsWith("/models/item")){j=!0,x=!1,k=void 0;try{for(N=(null!=(C=s.overrides)?C:[])[Symbol.iterator]();!(j=(T=N.next()).done);j=!0)if((null==(z=(S=T.value).predicate)?void 0:z.custom_model_data)&&S.model){if(q=S.model,"string"!=typeof q)continue;q.includes(":")||(q="minecraft:".concat(q)),l[S.predicate.custom_model_data]=q}}catch(e){x=!0,k=e}finally{try{j||null==N.return||N.return()}finally{if(x)throw k}}}l.length>0&&(r["".concat(t,":").concat(i)]=l),L.label=2;case 2:return[2]}})}),function(e){return o.apply(this,arguments)})))];case 3:return a.sent(),[2,r]}})}),i=function(e,t){return v.apply(this,arguments)},A=(0,y._)(function(e){var n,r,s,l,c,u,d,w,p,h,M,g,m,v,y,A,_,C,j,D,x,k,N,T,S,z,q,E,I,P,Y;return(0,L.Jh)(this,function(L){switch(L.label){case 0:return n="".concat(a,"/assets/").concat(e,"/blockstates"),r="".concat(a,"/assets/").concat(e,"/models/block"),s="".concat(a,"/assets/").concat(e,"/items"),l="".concat(a,"/assets/").concat(e,"/models/item"),c=Object.assign,u=[t.customBlockStates],[4,o(n,"blockstates",e)];case 1:return c.apply(Object,u.concat([L.sent()])),d=Object.assign,w=[t.customModels],[4,o(r,"models",e)];case 2:return d.apply(Object,w.concat([L.sent()])),p=Object.assign,h=[t.customModels],[4,o(l,"models",e)];case 3:p.apply(Object,h.concat([L.sent()])),g=!0,m=!1,v=void 0,L.label=4;case 4:return L.trys.push([4,9,10,11]),_=Object.entries,[4,i(s,e)];case 5:y=_.apply(Object,[null!=(M=L.sent())?M:{}])[Symbol.iterator](),L.label=6;case 6:if(g=(A=y.next()).done)return[3,8];j=(C=(0,b._)(A.value,2))[0],D=C[1],t.customItemModelNames[j]=D,L.label=7;case 7:return g=!0,[3,6];case 8:return[3,11];case 9:return x=L.sent(),m=!0,v=x,[3,11];case 10:try{g||null==y.return||y.return()}finally{if(m)throw v}return[7];case 11:N=!0,T=!1,S=void 0,L.label=12;case 12:return L.trys.push([12,17,18,19]),E=Object.entries,[4,i(l,e)];case 13:z=E.apply(Object,[null!=(k=L.sent())?k:{}])[Symbol.iterator](),L.label=14;case 14:if(N=(q=z.next()).done)return[3,16];P=(I=(0,b._)(q.value,2))[0],Y=I[1],t.customItemModelNames[P]=Y,L.label=15;case 15:return N=!0,[3,14];case 16:return[3,19];case 17:return x=L.sent(),T=!0,S=x,[3,19];case 18:try{N||null==z.return||z.return()}finally{if(T)throw S}return[7];case 19:return[2]}})}),s=function(e){return A.apply(this,arguments)},g.label=2;case 2:return g.trys.push([2,12,,13]),[4,D().promises.readdir((0,C.join)(a,"assets"))];case 3:l=g.sent(),c=!0,u=!1,d=void 0,g.label=4;case 4:g.trys.push([4,9,10,11]),w=l[Symbol.iterator](),g.label=5;case 5:if(c=(p=w.next()).done)return[3,8];return h=p.value,[4,s(h)];case 6:g.sent(),g.label=7;case 7:return c=!0,[3,5];case 8:return[3,11];case 9:return M=g.sent(),u=!0,d=M,[3,11];case 10:try{c||null==w.return||w.return()}finally{if(u)throw d}return[7];case 11:return[3,13];case 12:return console.error("Failed to read some of resource pack blockstates and models",g.sent()),$.push("Failed to read blockstates/models"),t.customBlockStates=void 0,t.customModels=void 0,t.customItemModelNames={},[3,13];case 13:return[2,{usedBlockTextures:n,usedItemTextures:r}]}})}),function(e){return p.apply(this,arguments)}),en=(h=(0,y._)(function(e,t){var n,r,a,o,i,s,l,c,u,d,w,p;return(0,L.Jh)(this,function(h){switch(h.label){case 0:t.beginStage("install-resource-pack","Installing server resource pack"),h.label=1;case 1:return h.trys.push([1,8,9,10]),U.isServerInstalling=!0,U.isServerDownloading=!0,t.beginStage("download-resource-pack","Downloading server resource pack"),console.log("Downloading server resource pack",e),console.time("downloadServerResourcePack"),[4,fetch(e).catch(function(n){console.error(n),"Failed to fetch"===n.message&&(n.message="Check internet connection and ensure server on ".concat(e," support CORS which is not required for the vanilla client, but is required for the web client.")),t.error("Failed to download resource pack: "+n.message)})];case 2:if(n=h.sent(),console.timeEnd("downloadServerResourcePack"),!n)return[2];a=(r=n.headers.get("Content-Length"))?parseInt(r,10):0,o=0,i=n.body.getReader(),s=[],h.label=3;case 3:return[4,i.read()];case 4:if(c=(l=h.sent()).done,u=l.value,c)return[3,5];return s.push(u),o+=u.length,a&&(d=Math.round(o/a*100),t.reportProgress("download-resource-pack",d/100)),[3,3];case 5:return U.isServerDownloading=!1,[4,new Blob(s).arrayBuffer()];case 6:return w=h.sent(),t.endStage("install-resource-pack"),[4,G(w,t,void 0,void 0,!0).catch(function(e){console.error(e),(0,q.c0)("Failed to install resource pack: "+e.message)})];case 7:return h.sent(),[3,10];case 8:return console.error("Could not install resource pack",p=h.sent()),t.error("Could not install resource pack: "+p.message),[3,10];case 9:return t.endStage("download-resource-pack"),U.isServerInstalling=!1,U.isServerDownloading=!1,[7];case 10:return[2]}})}),function(e,t){return h.apply(this,arguments)}),onAppLoad=function(){customEvents.on("mineflayerBotCreated",function(){var e,t=(e=(0,y._)(function(e){var t,n,r,a,o,i,s;return(0,L.Jh)(this,function(l){switch(l.label){case 0:if(t=Date.now(),console.log("Received resource pack request",e),r=(n="promptMessage"in e&&e.promptMessage?e.promptMessage:void 0)?"":"Do you want to use server resource pack?","hash"in e&&e.hash,a="forced"in e&&e.forced,"never"!==E.YM.serverResourcePacks)return[3,1];return i=!1,[3,5];case 1:if("always"!==E.YM.serverResourcePacks)return[3,2];return s=!0,[3,4];case 2:return[4,(0,I.un)(r,["Download & Install (recommended)","Pretend Installed (not recommended)"],{cancel:!a,minecraftJsonMessage:n})];case 3:s=l.sent(),l.label=4;case 4:i=s,l.label=5;case 5:if(o=i,Date.now()-t<700&&new Promise(function(e){setTimeout(e,700)}).then(function(){!1===o||"Pretend Installed (not recommended)"===o||"Download & Install (recommended)"===o||o?(console.log("accepting resource pack"),bot.acceptResourcePack()):bot.denyResourcePack()}),!0!==o&&"Download & Install (recommended)"!==o)return[3,7];return[4,en(e.url,(0,O.xC)()).catch(function(e){console.error(e),(0,q.c0)("Failed to download resource pack: "+e.message)})];case 6:l.sent(),l.label=7;case 7:return[2]}})}),function(t){return e.apply(this,arguments)});bot._client.on("resource_pack_send",t),bot._client.on("add_resource_pack",t)}),(0,N.Ld)(U,function(){U.resourcePackInstalled&&er()})},er=(M=(0,y._)(function(){var e,t,n,r,a,o,i,s,l,c,u,d,w,p,h,M,g,m,v,A,_,C,j,x,k;return(0,L.Jh)(this,function(N){switch(N.label){case 0:return[4,X()];case 1:var T,z;e=N.sent(),T=(0,y._)(function(e,t){var n,r,a,o,i=arguments;return(0,L.Jh)(this,function(s){switch(s.label){case 0:if(n=i.length>2&&void 0!==i[2]?i[2]:1,!(r=e))return[3,2];return[4,Z(e)];case 1:r=s.sent(),s.label=2;case 2:if(!r)return[3,4];return[4,D().promises.readFile(e,"base64")];case 3:return a=s.sent(),o="data:image/png;base64,".concat(a),document.body.style.setProperty(t,repeatArr("url(".concat(o,")"),n).join(", ")),[3,5];case 4:document.body.style.setProperty(t,""),s.label=5;case 5:return[2]}})}),t=function(e,t){return T.apply(this,arguments)},z=(0,y._)(function(e,t){var n,r;return(0,L.Jh)(this,function(a){switch(a.label){case 0:return n=P.M[e],[4,Z(t)];case 1:if(!a.sent())return[3,3];return[4,D().promises.readFile(t,"base64")];case 2:r=a.sent(),n="data:image/png;base64,".concat(r),a.label=3;case 3:return P.$[e].content=n,[2]}})}),n=function(e,t){return z.apply(this,arguments)},r=Object.entries(P.$).filter(function(e){return(0,b._)(e,2)[1].cssVar}),a=!0,o=!1,i=void 0,N.label=2;case 2:N.trys.push([2,9,10,11]),s=r[Symbol.iterator](),N.label=3;case 3:if(a=(l=s.next()).done)return[3,8];if(u=(c=(0,b._)(l.value,2))[0],w=(d=c[1]).cssVar,p=d.cssVarRepeat,h=d.resourcePackPath,M="".concat(e,"/assets/").concat(h),!w)return[3,5];return[4,t(M,w,null!=p?p:1)];case 4:N.sent(),N.label=5;case 5:return[4,n(u,M)];case 6:N.sent(),N.label=7;case 7:return a=!0,[3,3];case 8:return[3,11];case 9:return g=N.sent(),o=!0,i=g,[3,11];case 10:try{a||null==s.return||s.return()}finally{if(o)throw i}return[7];case 11:if(R.Z.clearOverrides(),!e)return[3,20];m=!0,v=!1,A=void 0,N.label=12;case 12:N.trys.push([12,18,19,20]),_=S.ll[Symbol.iterator](),N.label=13;case 13:if(m=(C=_.next()).done)return[3,17];return j=C.value,[4,Z(x="".concat(e,"/assets/minecraft/textures/").concat(j))];case 14:if(!N.sent())return[3,16];return[4,D().promises.readFile(x,"base64")];case 15:k=N.sent(),R.Z.setOverride(j,"data:image/png;base64,".concat(k)),N.label=16;case 16:return m=!0,[3,13];case 17:return[3,20];case 18:return g=N.sent(),v=!0,A=g,[3,20];case 19:try{m||null==_.return||_.return()}finally{if(v)throw A}return[7];case 20:return R.Z.resetRenderedSlots(),[2]}})}),function(){return M.apply(this,arguments)}),repeatArr=function(e,t){return Array.from({length:t},function(){return e})},ea=(g=(0,y._)(function(){var e,t,n,r,a,o,i,s,l,c,u,d,w,p,h=arguments;return(0,L.Jh)(this,function(M){switch(M.label){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:(0,O.nx)(),t=h.length>1&&void 0!==h[1]&&h[1],appViewer.resourcesManager.currentResources||appViewer.resourcesManager.resetResources(),n=appViewer.resourcesManager.currentResources,$=[],r=Object.keys(appViewer.resourcesManager.sourceBlocksAtlases.latest.textures),a=Object.keys(appViewer.resourcesManager.sourceItemsAtlases.latest.textures),o=Object.keys(T.hj),[4,et(e)];case 1:return l=(s=null!=(i=M.sent())?i:{}).usedBlockTextures,c=s.usedItemTextures,e.beginStage("generate-atlas-texture-blocks","Generating atlas textures"),[4,Promise.all([ee("blocks",(0,_._)(r).concat((0,_._)(null!=l?l:[])),e),ee("items",(0,_._)(a).concat((0,_._)(null!=c?c:[])),e),ee("armor",o,e),er()])];case 2:if(d=(u=b._.apply(void 0,[M.sent(),3]))[0],w=u[1],p=u[2],n.customTextures={},d&&(n.customTextures.blocks={tileSize:d.firstTextureSize,textures:d.textures}),w&&(n.customTextures.items={tileSize:w.firstTextureSize,textures:w.textures}),p&&(n.customTextures.armor={tileSize:p.firstTextureSize,textures:p.textures}),t)return[3,4];return[4,appViewer.resourcesManager.updateAssetsData({})];case 3:M.sent(),M.label=4;case 4:return[2]}})}),function(){return g.apply(this,arguments)}),eo=(m=(0,y._)(function(){var e=arguments;return(0,L.Jh)(this,function(t){switch(t.label){case 0:return[4,ea(void 0,e.length>0&&void 0!==e[0]&&e[0])];case 1:return t.sent(),[2]}})}),function(){return m.apply(this,arguments)}),ei=(v=(0,y._)(function(){var e,t,n,r,a=arguments;return(0,L.Jh)(this,function(o){switch(o.label){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:"default",[4,Z("/resourcepack/pack.mcmeta")];case 1:if(!o.sent())throw Error("No server resource pack is currently installed");o.label=2;case 2:return o.trys.push([2,4,,5]),[4,D().promises.readFile("/resourcepack/name.txt","utf8")];case 3:return t=o.sent(),[3,5];case 4:return o.sent(),t="Server Resource Pack",[3,5];case 5:return n=F+e,[4,(0,z.xl)(n)];case 6:return o.sent(),(r=(0,O.xC)()).setMessage("Copying server resource pack to user location"),[4,(0,z.s8)("/resourcepack",n,!0," (server -> user)")];case 7:return o.sent(),[4,H(t,e,!1,r)];case 8:return o.sent(),(0,q.c0)("Server resource pack copied to user location"),r.end(),[2]}})}),function(){return v.apply(this,arguments)})},4741:function(e,t,n){"use strict";n.d(t,{K:()=>useAppScale,X:()=>s}),n(7960),n(46302),n(83902),n(64813),n(96573),n(94244),n(42050);var r=n(44846),a=n(9117),o=n(32719),i=n(30367),s=(0,r.sj)({scale:1});window.currentScaling=s;var setScale=function(){var e=window.innerWidth,t=window.innerHeight,n=i.YM.guiScale,r=!0,a=!1,o=void 0;try{for(var l,c=[{maxWidth:980,maxHeight:null,scale:2},{maxWidth:null,maxHeight:390,scale:1.5},{maxWidth:620,maxHeight:null,scale:1},{maxWidth:620,minHeight:240,scale:1.4}][Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value,d=u.maxWidth,w=u.maxHeight,p=u.scale,h=u.minHeight;(!d||e<=d)&&(!w||t<=w)&&(!h||t>=h)&&(n=p)}}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}s.scale=n};setScale(),(0,o.VW)(i.YM,"guiScale",setScale),(0,i.t6)(s,function(e){document.documentElement.style.setProperty("--guiScale",String(e.scale)),document.documentElement.style.setProperty("--scale",String(e.scale))}),window.addEventListener("resize",setScale);var useAppScale=function(){return(0,a.R)(s).scale}},83923:function(e,t,n){"use strict";n.r(t),n.d(t,{Cipher:()=>o.Cipher,Cipheriv:()=>o.Cipheriv,Decipher:()=>o.Decipher,Decipheriv:()=>o.Decipheriv,DiffieHellman:()=>o.DiffieHellman,DiffieHellmanGroup:()=>o.DiffieHellmanGroup,Hash:()=>o.Hash,Hmac:()=>o.Hmac,Sign:()=>o.Sign,Verify:()=>o.Verify,constants:()=>o.constants,createCipher:()=>o.createCipher,createCipheriv:()=>o.createCipheriv,createCredentials:()=>o.createCredentials,createDecipher:()=>o.createDecipher,createDecipheriv:()=>o.createDecipheriv,createDiffieHellman:()=>o.createDiffieHellman,createDiffieHellmanGroup:()=>o.createDiffieHellmanGroup,createECDH:()=>o.createECDH,createHash:()=>o.createHash,createHmac:()=>o.createHmac,createPublicKey:()=>createPublicKey,createSign:()=>o.createSign,createVerify:()=>o.createVerify,getCiphers:()=>o.getCiphers,getDiffieHellman:()=>o.getDiffieHellman,getHashes:()=>o.getHashes,listCiphers:()=>o.listCiphers,pbkdf2:()=>o.pbkdf2,pbkdf2Sync:()=>o.pbkdf2Sync,privateDecrypt:()=>o.privateDecrypt,privateEncrypt:()=>o.privateEncrypt,prng:()=>o.prng,pseudoRandomBytes:()=>o.pseudoRandomBytes,publicDecrypt:()=>o.publicDecrypt,publicEncrypt:()=>o.publicEncrypt,randomBytes:()=>o.randomBytes,randomFill:()=>o.randomFill,randomFillSync:()=>o.randomFillSync,rng:()=>o.rng,sign:()=>sign});var r=n(14772),a=n(9787);n(58207),n(72558),n(15209),n(58819),n(5269),n(31325),n(68732),n(64912),n(81812),n(96220),n(72216),n(92553),n(69261),n(20823),n(77962),n(98497),n(54487),n(10728),n(84269),n(41021),n(95190),n(81138),n(90758),n(7652),n(60501),n(63765),n(60139),n(41353),n(38409),n(24517),n(33207),n(55914),n(31551),n(4383),n(12516),n(18729),n(88364),n(83450),n(36670),n(26110),n(91292),n(51470),n(52777),n(83902),n(96573),n(33975),n(60398),n(44505),n(10020),n(71698),n(42973),n(21428),n(88085);var o=n(29158);function createPublicKey(){}function sign(e,t,n){return _sign.apply(this,arguments)}function _sign(){return(_sign=(0,r._)(function(e,t,n){var r,o;return(0,a.Jh)(this,function(a){switch(a.label){case 0:if("RSA-SHA256"!==e)throw Error("Unsupported signature algorithm ".concat(e));if("string"!=typeof n)throw Error("This implementation only supports strings as private keys");return r=pemToArrayBuffer(n),[4,crypto.subtle.importKey("pkcs8",r,{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!0,["sign"])];case 1:return o=a.sent(),[4,crypto.subtle.sign({name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},o,t)];case 2:return[2,a.sent()]}})})).apply(this,arguments)}function pemToArrayBuffer(e){e=e.trim();for(var t=atob(e.slice(31,e.length-29).trim().replaceAll(/\s/g,"")),n=new Uint8Array(t.length),r=0;rr});let r={}},9304:function(e,t,n){var r,a,o=n(25763);n(73372);var i=n(85929);null!=(r=globalThis).fs||(r.fs=i.BFSRequire("fs")),globalThis.fs.promises=new Proxy({},{get:function(e,t){return function(){for(var e,n=arguments.length,r=Array(n),a=0;aj,pc:()=>C});var r,a,o,i=n(14772),s=n(4186),l=n(22312),c=n(59240),u=n(9787);n(56070),n(83902),n(1174),n(40542),n(98719),n(84317),n(8957),n(44792),n(33785),n(9587),n(13278),n(64391),n(86838),n(80062),n(50433),n(97336),n(65855),n(56656),n(42449),n(96573),n(94244),n(42050),n(58207),n(72558),n(83210),n(7960),n(46302),n(64813),n(67022),n(56520);var d=n(76610),w=n(68770),p=n(25763),h=n(81979);function getRecipesProcessorProcessRecipes(e,t){return function(n){var r=Object.fromEntries(e.map(function(e){return[e.name,e.id]})),a=Object.fromEntries(t.map(function(e){return[e.name,e.id]})),o=Object.keys(n),i=!0,s=!1,l=void 0;try{for(var u,d=o[Symbol.iterator]();!(i=(u=d.next()).done);i=!0)!function(){var e=u.value;if("_proccessed"===e)return delete n[e];var mapId=function(e){if("string"!=typeof e&&"number"!=typeof e)throw Error("Incorrect type");var t,n=null!=(t=r[e])?t:a[e];if(!n)throw Error("No item/block name with id ".concat(e));return n};try{var t=mapId(e),o=!0,i=!1,s=void 0;try{for(var l,d=n[e].entries()[Symbol.iterator]();!(o=(l=d.next()).done);o=!0){var w=(0,c._)(l.value,2),h=(w[0],w[1]);try{!function(e){var parseRecipeItem=function(e){if("number"==typeof e||"string"==typeof e)return mapId(e);if(Array.isArray(e))return[mapId(e)].concat((0,p._)(e.slice(1)));if(!e)return e;if("id"in e)return e.id=mapId(e.id),e;throw Error("unhandled")},maybeProccessShape=function(e){if(e){var t=!0,n=!1,r=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value,s=!0,l=!1,u=void 0;try{for(var d,w=i.entries()[Symbol.iterator]();!(s=(d=w.next()).done);s=!0){var p=(0,c._)(d.value,2),h=p[0],M=p[1];i[h]=parseRecipeItem(M)}}catch(e){l=!0,u=e}finally{try{s||null==w.return||w.return()}finally{if(l)throw u}}}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}};if(e.result&&(e.result=parseRecipeItem(e.result)),maybeProccessShape(e.inShape),maybeProccessShape(e.outShape),e.ingredients){var t=!0,n=!1,r=void 0;try{for(var a,o=e.ingredients.entries()[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=(0,c._)(a.value,2),s=i[0],l=i[1];e.ingredients[s]=parseRecipeItem(l)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}}(h)}catch(e){throw e}}}catch(e){i=!0,s=e}finally{try{o||null==d.return||d.return()}finally{if(i)throw s}}n[t]=n[e]}catch(e){throw e}delete n[e]}()}catch(e){s=!0,l=e}finally{try{i||null==d.return||d.return()}finally{if(s)throw l}}}}n(48899),n(90804),n(24705),n(53346),n(58819),n(25113),n(50183),n(26980),n(52457),n(73541),n(5269),n(31325),n(68732),n(74822),n(96220),n(56515),n(27969);var restoreMinecraftData=function(e,t,n){var r;return"recipes"===t&&(r=getRecipesProcessorProcessRecipes(M.restoreData(e.items,n,void 0),M.restoreData(e.blocks,n,void 0))),M.restoreData(e[t],n,r)},M=function(){function JsonOptimizer(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,w._)(this,JsonOptimizer),this.arrKey=e,this.ignoreChanges=t,this.ignoreRemoved=n,this.keys={},this.idToKey={},this.properties={},this.source={},this.previousKeys=[],this.previousValues={},this.diffs={}}var e=JsonOptimizer.prototype;return e.export=function(){return{keys:this.keys,properties:this.properties,source:this.source,arrKey:this.arrKey,diffs:this.diffs,__IS_OPTIMIZED__:!0}},e.diffObj=function(e){var t=this,n=[],r=[],a=[],o=this.arrKey,i=this.ignoreChanges,s=this.ignoreRemoved,l=[];if(!e||(void 0===e?"undefined":(0,h._)(e))!=="object")throw Error("diffing data is not object");if(Array.isArray(e)&&!o)throw Error("arrKey is required for arrays");var u=Array.isArray(e)?Object.fromEntries(e.map(function(e){return[JsonOptimizer.getByArrKey(e,o),e]})):e,d=Object.keys(u);null!=this.keys||(this.keys={}),null!=this.properties||(this.properties={});var w=Object.values(this.keys).length,M=Object.values(this.properties).length,g=!0,m=!1,v=void 0;try{for(var y,A,b,_=d[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){var L,C,j=b.value;null!=(L=this.keys)[j]||(L[j]=w++),this.idToKey[this.keys[j]]=j}}catch(e){m=!0,v=e}finally{try{g||null==_.return||_.return()}finally{if(m)throw v}}var D=!0,x=!1,k=void 0;try{for(var N,T=Object.entries(this.source)[Symbol.iterator]();!(D=(N=T.next()).done);D=!0){var S=(0,c._)(N.value,2),z=S[0];S[1];var q=this.idToKey[z],E=u[q];if(!i&&void 0!==E){null!=(I=this.previousValues)[z]||(I[z]=this.source[z]);var I,P,Y=this.previousValues[z];isEqualStructured(Y,E)||function(e,n,o){var i=[],s=(void 0===n?"undefined":(0,h._)(n))==="object"&&n,l=t.keys[e];if(s){var u=[],d=!0,w=!1,p=void 0;try{for(var g,m=Object.entries(n)[Symbol.iterator]();!(d=(g=m.next()).done);d=!0){var v=(0,c._)(g.value,2),y=v[0];if(v[1],!isEqualStructured(n[y],o[y])){var A=t.properties[y];void 0===A&&(t.properties[y]=M++,A=t.properties[y]),i.push(A,n[y])}}}catch(e){w=!0,p=e}finally{try{d||null==m.return||m.return()}finally{if(w)throw p}}var b=!0,_=!1,L=void 0;try{for(var C,j=Object.keys(o)[Symbol.iterator]();!(b=(C=j.next()).done);b=!0){var D=C.value;if(!(D in n)){var x=t.properties[D];void 0===x&&(t.properties[D]=M++,x=t.properties[D]),u.push(x)}}}catch(e){_=!0,L=e}finally{try{b||null==j.return||j.return()}finally{if(_)throw L}}a.push([l,u])}r.push(l,s?i:n)}(q,E,Y),this.previousValues[z]=E}}}catch(e){x=!0,k=e}finally{try{D||null==T.return||T.return()}finally{if(x)throw k}}var O=!0,R=!1,B=void 0;try{for(var U,Q=Object.entries(u)[Symbol.iterator]();!(O=(U=Q.next()).done);O=!0){var F=(0,c._)(U.value,2),W=F[0],J=F[1],V=this.keys[W];this.source[V]||(this.source[V]=J),l.push(V)}}catch(e){R=!0,B=e}finally{try{O||null==Q.return||Q.return()}finally{if(R)throw B}}var G=!0,H=!1,Z=void 0;try{for(var K,X=this.previousKeys[Symbol.iterator]();!(G=(K=X.next()).done);G=!0){var $=K.value,ee=this.idToKey[$];void 0!==u[ee]||s||n.push($)}}catch(e){H=!0,Z=e}finally{try{G||null==X.return||X.return()}finally{if(H)throw Z}}var et=!0,en=!1,er=void 0;try{for(var ea,eo=n[Symbol.iterator]();!(et=(ea=eo.next()).done);et=!0){var ei=ea.value;this.previousKeys.splice(this.previousKeys.indexOf(ei),1)}}catch(e){en=!0,er=e}finally{try{et||null==eo.return||eo.return()}finally{if(en)throw er}}var es=!0,el=!1,ec=void 0;try{for(var eu,ed=this.previousKeys[Symbol.iterator]();!(es=(eu=ed.next()).done);es=!0){var ew=eu.value,ef=l.indexOf(ew);-1!==ef&&l.splice(ef,1)}}catch(e){el=!0,ec=e}finally{try{es||null==ed.return||ed.return()}finally{if(el)throw ec}}return this.previousKeys=(0,p._)(this.previousKeys).concat((0,p._)(l)),{removed:n,changed:r,added:l,removedProps:a}},e.recordDiff=function(e,t){var n=this.diffObj(t);this.diffs[e]=n},JsonOptimizer.isOptimizedChangeDiff=function(e){if(!Array.isArray(e)||e.length%2!=0)return!1;for(var t=0;t=(0,d.Uo)("1.13")){var u,w,p=null==(u=(w=window).globalGetCollisionShapes)?void 0:u.call(w,e);if(p){n[c]=p;continue}}var h=b.resolvedData[c];h.__IS_OPTIMIZED__?n[c]=restoreMinecraftData(b.resolvedData,c,e):n[c]=null!=(l=h[e])?l:h[(0,g.AB)(e)]}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}();return _.set(e,t),L.set(e,Date.now()),t};window.allLoadedMcData=new Proxy({},{get:function(e,t){if(!t.includes("$"))return new Proxy({},{get:function(e,n){return possiblyGetFromCache(t)[n]}})}}),setInterval(function(){var e=Date.now(),t=!0,n=!1,r=void 0;try{for(var a,o=L[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=(0,c._)(a.value,2),s=i[0],l=i[1];e-l>3e4&&(_.delete(s),L.delete(s))}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}},1e3);var C=window.allLoadedMcData;let j={pc:C}},5930:function(e,t,n){n(73372),e.exports.performance=globalThis.performance},26775:function(e,t,n){"use strict";n.r(t),n.d(t,{Titles:()=>r});var r={}},27691:function(e,t,n){"use strict";n.r(t),n.d(t,{server:()=>server});var r=n(14772),a=n(9787);n(40542),n(56070),n(83902),n(72558),n(56515),n(58207);var server=function(e){var t=e.host;return{join:function(e,n,o,i,s,l){return(0,r._)(function(){var r,c,u,d;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,4,,5]),[4,fetch("".concat(t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accessToken:e,selectedProfile:n,serverId:o,sharedSecret:i,publicKey:s})})];case 1:if((r=a.sent()).ok)return[3,3];return c=Error.bind,d=(u="Request failed ").concat,[4,r.text()];case 2:throw new(c.apply(Error,[void 0,d.apply(u,[a.sent()])]));case 3:return l(null),[3,5];case 4:return l(a.sent()),[3,5];case 5:return[2]}})})()}}}},30297:function(e,t,n){"use strict";n.d(t,{O:()=>T,u:()=>N});var r,a,o,i=n(14772),s=n(9787);n(72558),n(56515),n(73372),n(67022),n(56520),n(40542),n(79653),n(96220),n(81812),n(17926);var l=n(95577),c=n(76610),u=n(66280),d=n(32719),w=n(40451),p=n(30367),h=n(47536),M=n(44214),g=n(12179),m=n(7329),v=n(68770),y=n(59240);n(25113),n(50183),n(7960),n(46302),n(83902),n(64813),n(96573),n(94244),n(42050),n(74822),n(90804),n(24705),n(53346),n(87620),n(83210),n(32831),n(86070),n(8705),n(80669),n(49315),n(5556),n(95790),n(34812),n(69047),n(95922);var A=n(9304),b=n.n(A),_=n(62005),L=n.n(_),C=new(function(){function MusicSystem(){(0,v._)(this,MusicSystem),this.currentMusic=null}var e=MusicSystem.prototype;return e.playMusic=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this;return(0,i._)(function(){var r,a;return(0,s.Jh)(this,function(o){switch(o.label){case 0:if(!p.YM.enableMusic||n.currentMusic||0===p.YM.musicVolume)return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,h._y)(e,t,5e3,void 0,!0)];case 2:if(!(a=(null!=(r=o.sent())?r:{}).onEnded))return[2];return n.currentMusic=e,a(function(){n.currentMusic=null}),[3,4];case 3:return console.warn("Failed to play music:",o.sent()),n.currentMusic=null,[3,4];case 4:return[2]}})})()},e.stopMusic=function(){this.currentMusic&&(this.currentMusic=null)},MusicSystem}());function computeEffectiveVolume(e,t){return e*Math.max(t,0)}function parseSoundMapVariant(e){var t=(0,y._)(e.split(";"),4),n=t[0],r=t[1],a=t[2],o=t[3];if(isNaN(Number(n)))throw Error("volume is not a number");if(isNaN(Number(a)))throw TypeError("weight is not a number");if(void 0!==o&&""!==o&&isNaN(Number(o)))throw TypeError("attenuation distance is not a number");return{file:r,weight:Number(a),volume:Number(n),attenuationDistance:void 0!==o&&""!==o?Number(o):16}}n(59045),n(58207);var j=function(){function SoundMap(e,t){(0,v._)(this,SoundMap),this.soundData=e,this.version=t,this.noVersionIdMapping=!1;var n=e.allSoundsMap[this.version];if(!n){var r=(0,c.PW)(e.allSoundsMap);(n=r[(0,c.fj)(t)])||(n=Object.values(r)[0]),this.noVersionIdMapping=!0}this.soundsIdToName={},this.soundsPerName={};var a=!0,o=!1,i=void 0;try{for(var s,l=Object.entries(n)[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var u=(0,y._)(s.value,2),d=u[0],w=u[1].split(",").map(function(e){return parseSoundMapVariant(e)}),p=(0,y._)(d.split(";"),2),h=p[0],M=p[1];this.soundsIdToName[h]=M,this.soundsPerName[M]=w}}catch(e){o=!0,i=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw i}}}var e=SoundMap.prototype;return e.updateActiveResourcePackBasePath=function(e){var t=this;return(0,i._)(function(){var n,r;return(0,s.Jh)(this,function(a){switch(a.label){case 0:if(t.activeResourcePackBasePath=e,!e)return t.activeResourcePackSoundsJson=void 0,[2];a.label=1;case 1:return a.trys.push([1,3,,4]),r=L().join(e,"assets/minecraft/sounds.json"),[4,b().promises.readFile(r,"utf8")];case 2:return n=a.sent(),[3,4];case 3:return a.sent(),[3,4];case 4:try{n&&(t.activeResourcePackSoundsJson=JSON.parse(n))}catch(e){console.warn("Failed to parse sounds.json from resourcepack",e),t.activeResourcePackSoundsJson=void 0}return[2]}})})()},e.updateExistingResourcePackPaths=function(){var e=this;return(0,i._)(function(){var t,n;return(0,s.Jh)(this,function(r){switch(r.label){case 0:var a;if(!e.activeResourcePackBasePath)return[2];return t=L().join(e.activeResourcePackBasePath,"assets/minecraft/sounds"),a=(0,i._)(function(r){var a,o,i,l,c,u,d,w,p,h;return(0,s.Jh)(this,function(s){switch(s.label){case 0:return[4,b().promises.readdir(r,{withFileTypes:!0})];case 1:a=s.sent(),o=!0,i=!1,l=void 0,s.label=2;case 2:s.trys.push([2,8,9,10]),c=a[Symbol.iterator](),s.label=3;case 3:if(o=(u=c.next()).done)return[3,7];if(d=u.value,w=L().join(r,d.name),!d.isDirectory())return[3,5];return[4,n(w)];case 4:return s.sent(),[3,6];case 5:d.isFile()&&d.name.endsWith(".ogg")&&(p=L().relative(t,w),e.existingResourcePackPaths.add(p)),s.label=6;case 6:return o=!0,[3,3];case 7:return[3,10];case 8:return h=s.sent(),i=!0,l=h,[3,10];case 9:try{o||null==c.return||c.return()}finally{if(i)throw l}return[7];case 10:return[2]}})}),[4,(n=function(e){return a.apply(this,arguments)})(t)];case 1:return r.sent(),[2]}})})()},e.getSoundUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this;return(0,i._)(function(){var r,a,o,l,c,u,d,w,p,h,M,g,m,v,y;return(0,s.Jh)(this,function(A){switch(A.label){case 0:var _;if(r=function(e){return computeEffectiveVolume(e,t)},!(n.activeResourcePackSoundsJson&&e in n.activeResourcePackSoundsJson)||(c=null!=(l=(o=(a=n.activeResourcePackSoundsJson[e]).sounds[Math.floor(Math.random()*a.sounds.length)]).volume)?l:1,d=null!=(u=o.attenuation_distance)?u:16,!n.activeResourcePackBasePath))return[3,3];return _=(0,i._)(function(e){var t,a;return(0,s.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),o.name.startsWith("http://")||o.name.startsWith("https://"))return[2,{url:o.name,volume:r(c),attenuationDistance:d,timeout:o.timeout}];return t=L().join(n.activeResourcePackBasePath,"/assets/minecraft/sounds/".concat(o.name,".").concat(e)),[4,b().promises.readFile(t)];case 1:return a=i.sent(),[2,{url:"data:audio/".concat(e,";base64,").concat(a.toString("base64")),volume:r(c),attenuationDistance:d}];case 2:return i.sent(),[2,null];case 3:return[2]}})}),[4,(w=function(e){return _.apply(this,arguments)})(n.soundData.soundsMeta.format)];case 1:if(p=A.sent())return[2,p];if("ogg"===n.soundData.soundsMeta.format)return[3,3];return[4,w("ogg")];case 2:if(h=A.sent())return[2,h];A.label=3;case 3:if(!(null==(M=n.soundsPerName[e])?void 0:M.length))return[2,void 0];return g=Math.random()*M.reduce(function(e,t){return e+t.weight},0),v=null!=(m=M.find(function(e){return(g-=e.weight)<=0}))?m:M[0],y=n.getVersionedSound(v.file),[2,{url:n.soundData.soundsMeta.baseUrl.replace(/\/$/,"")+(y?"/".concat(y):"")+"/minecraft/sounds/"+v.file+"."+n.soundData.soundsMeta.format,volume:r(v.volume),attenuationDistance:v.attenuationDistance}]}})})()},e.getVersionedSound=function(e){var t=(0,c.Uo)(this.version),n=Object.entries(this.soundData.soundsLegacyMap),r=!0,a=!1,o=void 0;try{for(var i,s=n[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var l=(0,y._)(i.value,2),u=l[0];if(l[1].includes(e)&&t<=(0,c.Uo)(u))return u}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}},e.getBlockSound=function(e,t,n){var r,a=null!=(r=D[e])?r:e,o="block.".concat(a,".").concat(t);return this.soundsPerName[o]?o:n},e.getStepSound=function(e){return this.getBlockSound(e,"step","block.stone.step")},e.getBreakSound=function(e){return this.getBlockSound(e,"break","block.stone.break")},e.quit=function(){C.stopMusic(),(0,h.YR)()},SoundMap}();function createSoundMap(e){var t,n=window;return n.allSoundsMap?new j({allSoundsMap:n.allSoundsMap,soundsLegacyMap:null!=(t=n.allSoundsVersionedMap)?t:{},soundsMeta:n.allSoundsMeta},e):null}var D={grass_block:"grass",tall_grass:"grass",fern:"grass",large_fern:"grass",dead_bush:"grass",seagrass:"grass",tall_seagrass:"grass",kelp:"grass",kelp_plant:"grass",sugar_cane:"grass",bamboo:"grass",vine:"grass",nether_sprouts:"grass",twisting_vines:"grass",weeping_vines:"grass",sweet_berry_bush:"grass",glow_lichen:"grass",moss_carpet:"grass",moss_block:"grass",hanging_roots:"grass",spore_blossom:"grass",small_dripleaf:"grass",big_dripleaf:"grass",flowering_azalea:"grass",azalea:"grass",azalea_leaves:"grass",flowering_azalea_leaves:"grass",dirt:"gravel",coarse_dirt:"gravel",podzol:"gravel",mycelium:"gravel",farmland:"gravel",dirt_path:"gravel",rooted_dirt:"rooted_dirt",wheat:"crop",potatoes:"crop",carrots:"crop",beetroots:"crop",melon_stem:"crop",pumpkin_stem:"crop",sweet_berries:"crop",cocoa:"crop",nether_wart:"crop",torchflower_crop:"crop",pitcher_crop:"crop",cobblestone:"stone",stone_bricks:"stone",mossy_stone_bricks:"stone",cracked_stone_bricks:"stone",chiseled_stone_bricks:"stone",stone_brick_slab:"stone",stone_brick_stairs:"stone",stone_brick_wall:"stone",polished_granite:"stone",granite:"stone",andesite:"stone",diorite:"stone",polished_andesite:"stone",polished_diorite:"stone",deepslate:"deepslate",cobbled_deepslate:"deepslate",polished_deepslate:"deepslate",deepslate_bricks:"deepslate_bricks",deepslate_tiles:"deepslate_tiles",calcite:"stone",tuff:"stone",smooth_stone:"stone",smooth_sandstone:"stone",smooth_quartz:"stone",smooth_red_sandstone:"stone",oak_planks:"wood",spruce_planks:"wood",birch_planks:"wood",jungle_planks:"wood",acacia_planks:"wood",dark_oak_planks:"wood",crimson_planks:"wood",warped_planks:"wood",oak_log:"wood",spruce_log:"wood",birch_log:"wood",jungle_log:"wood",acacia_log:"wood",dark_oak_log:"wood",crimson_stem:"stem",warped_stem:"stem",iron_block:"metal",gold_block:"metal",copper_block:"copper",exposed_copper:"copper",weathered_copper:"copper",oxidized_copper:"copper",netherite_block:"netherite_block",ancient_debris:"ancient_debris",lodestone:"lodestone",chain:"chain",anvil:"anvil",chipped_anvil:"anvil",damaged_anvil:"anvil",glass:"glass",glass_pane:"glass",white_stained_glass:"glass",orange_stained_glass:"glass",magenta_stained_glass:"glass",light_blue_stained_glass:"glass",yellow_stained_glass:"glass",lime_stained_glass:"glass",pink_stained_glass:"glass",gray_stained_glass:"glass",light_gray_stained_glass:"glass",cyan_stained_glass:"glass",purple_stained_glass:"glass",blue_stained_glass:"glass",brown_stained_glass:"glass",green_stained_glass:"glass",red_stained_glass:"glass",black_stained_glass:"glass",tinted_glass:"glass",white_wool:"wool",orange_wool:"wool",magenta_wool:"wool",light_blue_wool:"wool",yellow_wool:"wool",lime_wool:"wool",pink_wool:"wool",gray_wool:"wool",light_gray_wool:"wool",cyan_wool:"wool",purple_wool:"wool",blue_wool:"wool",brown_wool:"wool",green_wool:"wool",red_wool:"wool",black_wool:"wool",netherrack:"netherrack",nether_bricks:"nether_bricks",red_nether_bricks:"nether_bricks",nether_wart_block:"wart_block",warped_wart_block:"wart_block",soul_sand:"soul_sand",soul_soil:"soul_soil",basalt:"basalt",polished_basalt:"basalt",blackstone:"gilded_blackstone",gilded_blackstone:"gilded_blackstone",amethyst_block:"amethyst_block",amethyst_cluster:"amethyst_cluster",large_amethyst_bud:"large_amethyst_bud",medium_amethyst_bud:"medium_amethyst_bud",small_amethyst_bud:"small_amethyst_bud",sand:"sand",red_sand:"sand",gravel:"gravel",snow:"snow",snow_block:"snow",powder_snow:"powder_snow",ice:"glass",packed_ice:"glass",blue_ice:"glass",slime_block:"slime_block",honey_block:"honey_block",scaffolding:"scaffolding",ladder:"ladder",lantern:"lantern",soul_lantern:"lantern",pointed_dripstone:"pointed_dripstone",dripstone_block:"dripstone_block",sculk_sensor:"sculk_sensor",shroomlight:"shroomlight"};n(58819),n(45768);var customSoundSystem=function(){bot._client.on("named_sound_effect",function(e){if(p.YM.remoteSoundsSupport){var t=e.soundName,n={},r=/\(({.*})\)$/.exec(t);if(r)try{n=JSON.parse(r[1]),t=t.slice(0,-r[0].length)}catch(e){console.warn("Failed to parse sound metadata:",r[1])}if(/^https?:/.test(t.replace("minecraft:",""))){var a=n.loadTimeout,o=n.loop;(0,h._y)(t,e.volume,a,o)}}}),bot._client.on("stop_sound",function(e){var t=e.flags,n=(e.source,e.sound);0===t?(0,h.YR)():n&&(0,h.Ap)(n)}),bot.on("end",function(){(0,h.YR)()})};customEvents.on("mineflayerBotCreated",function(){customSoundSystem()});var x=(r=(0,i._)(function(){var e,t;return(0,s.Jh)(this,function(n){switch(n.label){case 0:if(!o)return[2];return t=o.updateActiveResourcePackBasePath,[4,(0,M.dd)()];case 1:return t.apply(o,[null!=(e=n.sent())?e:void 0]),[2]}})}),function(){return r.apply(this,arguments)}),k=null;(0,d.VW)(w.N_,"gameLoaded",(0,i._)(function(){var e,t,n,r,a,u;function startMusicSystem(){k||(k=setInterval(function(){n()},1e4))}function stopMusicSystem(){k&&(clearInterval(k),k=null)}return(0,s.Jh)(this,function(d){var v,y,A,b,_,L,j,D,k,N;if(!w.N_.gameLoaded)return stopMusicSystem(),null==o||o.quit(),[2];if(console.log("Loading sounds for version ".concat(bot.version,". Resourcepack state: ").concat(JSON.stringify(M.E3))),o=null!=(e=createSoundMap(bot.version))?e:void 0,globalThis.soundMap=o,!o)return[2];return o.noVersionIdMapping&&(0,g.c0)("No exact sound ID mappings for this version",void 0,!1,m.K["warning-box"]),x(),startMusicSystem(),v=(0,i._)(function(e,t){var n,r,a,i,l,c,u,d,w,M,g=arguments;return(0,s.Jh)(this,function(s){switch(s.label){case 0:if(n=g.length>2&&void 0!==g[2]?g[2]:1,r=g.length>3?g[3]:void 0,!p.YM.volume||!o)return[2];return[4,o.getSoundUrl(e,n)];case 1:if(!(a=s.sent()))return[2];if(i=p.YM.mutedSounds.includes(e)||0===p.YM.volume,!t)return[3,2];return i||null==(c=appViewer.backend)||null==(l=c.soundSystem)||l.playSound(t,a.url,a.volume,Math.max(Math.min(null!=r?r:1,2),.5),null!=(u=a.timeout)?u:p.YM.remoteSoundsLoadTimeout,a.attenuationDistance),64>getDistance(bot.entity.position,t)&&(null!=(d=T.lastServerPlayed)[w=e]||(d[w]={count:0,last:0}),T.lastServerPlayed[e].count++,T.lastServerPlayed[e].last=Date.now()),[3,5];case 2:if(i)return[3,4];return[4,(0,h._y)(a.url,n)];case 3:s.sent(),s.label=4;case 4:T.lastClientPlayed.push(e),T.lastClientPlayed.length>10&&T.lastClientPlayed.shift(),s.label=5;case 5:return[2]}})}),t=function(e,t){return v.apply(this,arguments)},y=(0,i._)(function(){var e,t,n,r,a=arguments;return(0,s.Jh)(this,function(i){switch(i.label){case 0:if(e=a.length>0&&void 0!==a[0]&&a[0],!o||!bot||!p.YM.enableMusic&&!e||Math.random()>.3&&!e)return[2];return t=["music.game"],"creative"===bot.game.gameMode&&t.push("music.creative"),n=t[Math.floor(Math.random()*t.length)],[4,o.getSoundUrl(n)];case 1:if(!(r=i.sent())||!o)return[2];return[4,C.playMusic(r.url,r.volume)];case 2:return i.sent(),[2]}})}),n=function(){return y.apply(this,arguments)},window.forceStartMusic=function(){n(!0)},A=(0,i._)(function(e,n){var r=arguments;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return[4,t(e,n,r.length>2&&void 0!==r[2]?r[2]:1,r.length>3?r[3]:void 0)];case 1:return a.sent(),[2]}})}),r=function(e,t){return A.apply(this,arguments)},bot.on("soundEffectHeard",(b=(0,i._)(function(e,t,n,a){return(0,s.Jh)(this,function(o){switch(o.label){case 0:if(/^https?:/.test(e.replace("minecraft:","")))return[2];return[4,r(e,t,n,a)];case 1:return o.sent(),[2]}})}),function(e,t,n,r){return b.apply(this,arguments)})),bot._client.on("sound_effect",(_=(0,i._)(function(e){var n,a,i,u,d;return(0,s.Jh)(this,function(s){switch(s.label){case 0:if(a=(0,c.Uo)(bot.version)<(0,c.Uo)("1.19.3"),i=null==(n=e.soundEvent)?void 0:n.resource,u=new l.A(e.x/8,e.y/8,e.z/8),!(0!==e.soundId||!i))return[3,2];if(void 0===(d=o.soundsIdToName[e.soundId-+!a]))return[2];return[4,t(d,u,e.volume,e.pitch)];case 1:case 3:return s.sent(),[2];case 2:return[4,r(i.replace("minecraft:",""),u,e.volume,e.pitch)]}})}),function(e){return _.apply(this,arguments)})),bot.on("entityHurt",(L=(0,i._)(function(e){return(0,s.Jh)(this,function(t){switch(t.label){case 0:if(e.id!==bot.entity.id)return[3,2];return[4,r("entity.player.hurt")];case 1:t.sent(),t.label=2;case 2:return[2]}})}),function(e){return L.apply(this,arguments)})),a=0,j=(0,i._)(function(){var e,t,n,i,l,c;return(0,s.Jh)(this,function(s){switch(s.label){case 0:if(!bot.entity||!o||"spectator"===appViewer.playerState.reactive.gameMode)return[2];if(t=(e=bot.entity.velocity).x,n=e.z,e.y,!(bot.entity.onGround&&(Math.abs(t)>.1||Math.abs(n)>.1))||(i=Math.abs(t)>.15||Math.abs(n)>.15,!(Date.now()-a>(i?100:300))||!(l=bot.world.getBlock(bot.entity.position.offset(0,-1,0)))||!(c=o.getStepSound(l.name))))return[3,2];return[4,r(c,void 0,.6)];case 1:s.sent(),a=Date.now(),s.label=2;case 2:return[2]}})}),D=(0,i._)(function(e,t){return(0,s.Jh)(this,function(n){switch(n.label){case 0:if(!o)return[2];return[4,r(o.getBreakSound(e),t,.6,1)];case 1:return n.sent(),[2]}})}),u=function(e,t){return D.apply(this,arguments)},bot.on("move",function(){!function(){j.apply(this,arguments)}()}),bot._client.on("world_event",(k=(0,i._)(function(e){var t,n,a,o;return(0,s.Jh)(this,function(i){switch(i.label){case 0:if(t=e.effectId,n=e.location,a=e.data,o=e.global?void 0:new l.A(n.x,n.y,n.z),2001!==t)return[3,2];return[4,u(loadedData.blocksByStateId[a].name,o)];case 1:i.sent(),i.label=2;case 2:if(2002!==t&&2003!==t&&2007!==t)return[3,4];return[4,r("block.glass.break",o,1,1)];case 3:i.sent(),i.label=4;case 4:if(1004!==t)return[3,6];return[4,r("entity.firework_rocket.launch",o,1,1)];case 5:i.sent(),i.label=6;case 6:if(1006!==t&&1007!==t&&1014!==t)return[3,8];return[4,r("block.wooden_door.open",o,1,1)];case 7:i.sent(),i.label=8;case 8:if(1002!==t)return[3,10];return[4,r("block.dispenser.dispense",o,1,1)];case 9:i.sent(),i.label=10;case 10:if(1024!==t)return[3,12];return[4,r("entity.wither.shoot",o,1,1)];case 11:i.sent(),i.label=12;case 12:if(1031!==t)return[3,14];return[4,r("block.anvil.land",o,1,1)];case 13:i.sent(),i.label=14;case 14:return 1010===t&&console.log("play record",a),[2]}})}),function(e){return k.apply(this,arguments)})),N=null,customEvents.on("digStart",function(){N=bot.blockAtCursor(5)}),bot.on("diggingCompleted",(0,i._)(function(){return(0,s.Jh)(this,function(e){switch(e.label){case 0:if(!N)return[3,2];return[4,u(N.name,N.position)];case 1:e.sent(),e.label=2;case 2:return[2]}})})),[2]})})),(0,d.VW)(w.N_,"gameLoaded",function(){var buildFloorMap=function(e,t,n){for(var r=[],a=-2;a<=2;a++)for(var o=-2;o<=2;o++){for(var i=e+o,s=n+a,c=t-20,u=t;u>=t-20;u--)try{var d=bot.world.getBlock(new l.A(i,u,s));if(d&&"block"===d.boundingBox){c=u+1;break}}catch(e){break}r.push(c)}return r};if(w.N_.gameLoaded){var e=null;customEvents.on("digStart",function(){e=bot.blockAtCursor(5)}),bot.on("diggingCompleted",function(){if(e){var t,n,r,a=e.position,o=buildFloorMap(a.x,a.y,a.z),i=null!=(r=null==(t=e.biome)?void 0:t.name)?r:"plains";null==(n=(0,u.z)())||n.spawnBlockBreakParticles(a.x,a.y,a.z,e.name,o,i)}}),bot._client.on("world_event",function(e){var t=e.effectId,n=e.location,r=e.data,a=e.global;if(2001===t&&!a){var o=loadedData.blocksByStateId[r];if(o){var i=Math.floor(n.x),s=Math.floor(n.y),c=Math.floor(n.z),d=buildFloorMap(i,s,c),w="plains";try{var p,h,M,g=bot.world.getBlock(new l.A(i,s,c));w=null!=(M=null==g||null==(h=g.biome)?void 0:h.name)?M:"plains"}catch(e){}null==(p=(0,u.z)())||p.spawnBlockBreakParticles(i,s,c,o.name,d,w)}}}),bot.on("blockBreakProgressStage",function(e,t){if(null!==t){var n,r,a,o,i=e.position,s=null!=(a=e.face)?a:1,l=buildFloorMap(i.x,i.y,i.z),c=null!=(o=null==(n=e.biome)?void 0:n.name)?o:"plains";null==(r=(0,u.z)())||r.spawnBlockCrackParticle(i.x,i.y,i.z,s,e.name,l,c)}})}}),(0,d.VW)(M.E3,"resourcePackInstalled",(0,i._)(function(){return(0,s.Jh)(this,function(e){switch(e.label){case 0:return[4,x()];case 1:return e.sent(),[2]}})}));var N=(a=(0,i._)(function(){return(0,s.Jh)(this,function(e){switch(e.label){case 0:if(window.allSoundsMap)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,(0,c.ve)("./sounds.js")];case 2:return e.sent(),[3,4];case 3:return e.sent(),console.warn("Sounds map was not generated. Sounds will not be played."),[3,4];case 4:return[2]}})}),function(){return a.apply(this,arguments)}),T={lastClientPlayed:[],lastServerPlayed:{}},getDistance=function(e,t){return Math.hypot(e.x-t.x,e.y-t.y,e.z-t.z)}},28350:function(e,t,n){"use strict";n.d(t,{x:()=>isCypress});var isCypress=function(){return"true"===localStorage.cypress}},55920:function(e,t,n){"use strict";n.d(t,{S3:()=>l,Uo:()=>versionToNumber,ZP:()=>u,iD:()=>s});var r=n(59240);n(25113),n(34396),n(20516),n(7611),n(65340),n(2850),n(95790),n(83902),n(79653),n(96220),n(90804),n(24705),n(53346),n(74822),n(72558),n(97983),n(86070);var a=n(5444),o=/^(?!1\.).*$/,i=Object.values(a.postNettyVersionsByProtocolVersion.pc).flat().filter(function(e){return!o.test(e.minecraftVersion)}).map(function(e){return e.minecraftVersion}),s="1.21.1000",l="1.21.7",versionToNumber=function(e){var t=(0,r._)(e.split("."),3),n=t[0],a=t[1],o=t[2];return+"".concat(n.padStart(2,"0")).concat((void 0===a?"0":a).padStart(2,"0")).concat((void 0===o?"0":o).padStart(2,"0"))},c=versionToNumber(s);let u=i.filter(function(e){return!("1.7"===e||e.startsWith("1.7."))&&versionToNumber(e)toMajorVersion,Ee:()=>isInRealGameSession,G:()=>openGithub,IO:()=>isMajorVersionGreater,O1:()=>m,P_:()=>reportWarningOnce,Tb:()=>inGameError,bt:()=>p,iG:()=>getScreenRefreshRate,kl:()=>haveDirectoryPicker,lt:()=>h,qy:()=>g});var r,a,o,i=n(14772),s=n(59240),l=n(9787);n(59045),n(60080),n(56070),n(83902),n(74822),n(96220),n(72558),n(81812),n(58207),n(52307),n(8416),n(93118),n(82766),n(37151),n(20142),n(89909),n(24578),n(89437),n(802),n(52895),n(46525),n(83930),n(18369),n(41494),n(66616),n(39222),n(83282),n(59237),n(60353),n(40332),n(72040),n(52768),n(2249),n(96573),n(94244),n(42050);var c=n(40451),u=n(30367),d=n(13062),w=n(48747),p=(r=(0,i._)(function(){var e,t,n,r=arguments;return(0,l.Jh)(this,function(a){switch(a.label){case 0:if(e=r.length>0&&void 0!==r[0]&&r[0],document.fullscreenElement)return[3,3];return[4,document.documentElement.requestFullscreen().catch(function(){})];case 1:return a.sent(),[4,null==(n=navigator.keyboard)||null==(t=n.lock)?void 0:t.call(n,["Escape","KeyW"])];case 2:return a.sent(),[3,5];case 3:if(!e)return[3,5];return[4,document.exitFullscreen().catch(function(){})];case 4:a.sent(),a.label=5;case 5:return[2]}})}),function(){return r.apply(this,arguments)}),inGameError=function(e){var t,n;console.error(e),null==(t=(n=window).reportError)||t.call(n,e),c.N_.hasErrors=!0},h={get hasPointerLock(){return document.pointerLockElement},justHitEscape:!1,requestPointerLock:function(){var e=this;return(0,i._)(function(){var t,n;return(0,l.Jh)(this,function(r){return(0,c.z7)(!0)&&document.documentElement.requestPointerLock&&!c.N_.currentTouch&&(u.YM.autoFullScreen&&p(),t=function(){d.h.captureMouseHint=!0},!(document.fullscreenElement&&navigator.keyboard)&&e.justHitEscape?t():null==(n=document.documentElement.requestPointerLock({unadjustedMovement:u.YM.mouseRawInput}))||n.catch(function(e){"NotSupportedError"===e.name?document.documentElement.requestPointerLock():"SecurityError"===e.name?t():(t(),console.warn("Failed to request pointer lock:",e))}),e.justHitEscape=!1),[2]})})()}},isInRealGameSession=function(){return(0,c.z7)(!0)&&(!w.P.isOpen||w.P.isMinimized)&&!c.rl.viewerConnection};function getScreenRefreshRate(){return _getScreenRefreshRate.apply(this,arguments)}function _getScreenRefreshRate(){return(_getScreenRefreshRate=(0,i._)(function(){var e,t,n,r,a;return(0,l.Jh)(this,function(o){return e=null,t=!1,r=[],a=function(o){if(r.unshift(o),r.length>10){var i=Math.floor(1e4/(o-r.pop()));(!t||i>1e3)&&n(Math.min(i,1e3)),t=!0}e=window.requestAnimationFrame(a)},window.requestAnimationFrame(a),window.setTimeout(function(){window.cancelAnimationFrame(e),e=null,n(0)},500),[2,new Promise(function(e){n=e})]})})).apply(this,arguments)}window.getScreenRefreshRate=getScreenRefreshRate;var isMajorVersionGreater=function(e,t){var n=(0,s._)(e.split("."),2),r=n[0],a=n[1],o=(0,s._)(t.split("."),2),i=o[0],l=o[1];return+r>+i||+r==+i&&+a>+l},toMajorVersion=function(e){var t=(0,s._)(String(e).split("."),2),n=t[0],r=t[1];return"".concat(n,".").concat(r)},M=(u.YM.renderDistance,function(){assertDefined(appViewer.worldView);var e,t=u.YM.renderDistance,n=c.N_.singleplayer&&0===t;n&&(t=1),bot.setSettings({viewDistance:t}),n&&(localServer.players[0].view=0,t=0),null==(e=appViewer.worldView)||e.updateViewDistance(t)}),g=(a=(0,i._)(function(){return(0,l.Jh)(this,function(e){switch(e.label){case 0:if(!bot||!appViewer.worldView)return[2];return M(),[4,appViewer.worldView.updatePosition(bot.entity.position,!0)];case 1:return e.sent(),[2]}})}),function(){return a.apply(this,arguments)}),openGithub=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";window.open("".concat("https://github.com/zardoy/minecraft-web-client".replace(/\/$/,"")).concat(e),"_blank")},m=(o=(0,i._)(function(e){var t,n=arguments;return(0,l.Jh)(this,function(r){return t=n.length>1&&void 0!==n[1]?n[1]:1e4,[2,new Promise(function(n,r){e.then(n,r),setTimeout(function(){r(Error("timeout"))},t)})]})}),function(e){return o.apply(this,arguments)});function assertDefined(e){if(!e)throw Error("Assertion failed. Something is not available")}var haveDirectoryPicker=function(){return!!window.showDirectoryPicker},v=new Set,reportWarningOnce=function(e,t){v.has(e)||(v.add(e),console.warn(t))}},66460:function(e){"use strict";e.exports=sharp},8403:function(){},62164:function(){},89680:function(){},9315:function(){},68171:function(){},4039:function(){},37825:function(){},84404:function(){},11706:function(){},29709:function(e){"use strict";e.exports=JSON.parse('{"blocks":{"0:0":"air","1:0":"stone","1:1":"granite","1:2":"polished_granite","1:3":"diorite","1:4":"polished_diorite","1:5":"andesite","1:6":"polished_andesite","2:0":"grass_block[snowy=false]","3:0":"dirt","3:1":"coarse_dirt","3:2":"podzol[snowy=false]","4:0":"cobblestone","5:0":"oak_planks","5:1":"spruce_planks","5:2":"birch_planks","5:3":"jungle_planks","5:4":"acacia_planks","5:5":"dark_oak_planks","6:0":"oak_sapling[stage=0]","6:1":"spruce_sapling[stage=0]","6:2":"birch_sapling[stage=0]","6:3":"jungle_sapling[stage=0]","6:4":"acacia_sapling[stage=0]","6:5":"dark_oak_sapling[stage=0]","6:8":"oak_sapling[stage=1]","6:9":"spruce_sapling[stage=1]","6:10":"birch_sapling[stage=1]","6:11":"jungle_sapling[stage=1]","6:12":"acacia_sapling[stage=1]","6:13":"dark_oak_sapling[stage=1]","7:0":"bedrock","8:0":"water[level=0]","8:1":"water[level=1]","8:2":"water[level=2]","8:3":"water[level=3]","8:4":"water[level=4]","8:5":"water[level=5]","8:6":"water[level=6]","8:7":"water[level=7]","8:8":"water[level=8]","8:9":"water[level=9]","8:10":"water[level=10]","8:11":"water[level=11]","8:12":"water[level=12]","8:13":"water[level=13]","8:14":"water[level=14]","8:15":"water[level=15]","9:0":"water[level=0]","9:1":"water[level=1]","9:2":"water[level=2]","9:3":"water[level=3]","9:4":"water[level=4]","9:5":"water[level=5]","9:6":"water[level=6]","9:7":"water[level=7]","9:8":"water[level=8]","9:9":"water[level=9]","9:10":"water[level=10]","9:11":"water[level=11]","9:12":"water[level=12]","9:13":"water[level=13]","9:14":"water[level=14]","9:15":"water[level=15]","10:0":"lava[level=0]","10:1":"lava[level=1]","10:2":"lava[level=2]","10:3":"lava[level=3]","10:4":"lava[level=4]","10:5":"lava[level=5]","10:6":"lava[level=6]","10:7":"lava[level=7]","10:8":"lava[level=8]","10:9":"lava[level=9]","10:10":"lava[level=10]","10:11":"lava[level=11]","10:12":"lava[level=12]","10:13":"lava[level=13]","10:14":"lava[level=14]","10:15":"lava[level=15]","11:0":"lava[level=0]","11:1":"lava[level=1]","11:2":"lava[level=2]","11:3":"lava[level=3]","11:4":"lava[level=4]","11:5":"lava[level=5]","11:6":"lava[level=6]","11:7":"lava[level=7]","11:8":"lava[level=8]","11:9":"lava[level=9]","11:10":"lava[level=10]","11:11":"lava[level=11]","11:12":"lava[level=12]","11:13":"lava[level=13]","11:14":"lava[level=14]","11:15":"lava[level=15]","12:0":"sand","12:1":"red_sand","13:0":"gravel","14:0":"gold_ore","15:0":"iron_ore","16:0":"coal_ore","17:0":"oak_log[axis=y]","17:1":"spruce_log[axis=y]","17:2":"birch_log[axis=y]","17:3":"jungle_log[axis=y]","17:4":"oak_log[axis=x]","17:5":"spruce_log[axis=x]","17:6":"birch_log[axis=x]","17:7":"jungle_log[axis=x]","17:8":"oak_log[axis=z]","17:9":"spruce_log[axis=z]","17:10":"birch_log[axis=z]","17:11":"jungle_log[axis=z]","17:12":"oak_bark","17:13":"spruce_bark","17:14":"birch_bark","17:15":"jungle_bark","18:0":"oak_leaves[check_decay=false,decayable=true]","18:1":"spruce_leaves[check_decay=false,decayable=true]","18:2":"birch_leaves[check_decay=false,decayable=true]","18:3":"jungle_leaves[check_decay=false,decayable=true]","18:4":"oak_leaves[check_decay=false,decayable=false]","18:5":"spruce_leaves[check_decay=false,decayable=false]","18:6":"birch_leaves[check_decay=false,decayable=false]","18:7":"jungle_leaves[check_decay=false,decayable=false]","18:8":"oak_leaves[check_decay=true,decayable=true]","18:9":"spruce_leaves[check_decay=true,decayable=true]","18:10":"birch_leaves[check_decay=true,decayable=true]","18:11":"jungle_leaves[check_decay=true,decayable=true]","18:12":"oak_leaves[check_decay=true,decayable=false]","18:13":"spruce_leaves[check_decay=true,decayable=false]","18:14":"birch_leaves[check_decay=true,decayable=false]","18:15":"jungle_leaves[check_decay=true,decayable=false]","19:0":"sponge","19:1":"wet_sponge","20:0":"glass","21:0":"lapis_ore","22:0":"lapis_block","23:0":"dispenser[facing=down,triggered=false]","23:1":"dispenser[facing=up,triggered=false]","23:2":"dispenser[facing=north,triggered=false]","23:3":"dispenser[facing=south,triggered=false]","23:4":"dispenser[facing=west,triggered=false]","23:5":"dispenser[facing=east,triggered=false]","23:8":"dispenser[facing=down,triggered=true]","23:9":"dispenser[facing=up,triggered=true]","23:10":"dispenser[facing=north,triggered=true]","23:11":"dispenser[facing=south,triggered=true]","23:12":"dispenser[facing=west,triggered=true]","23:13":"dispenser[facing=east,triggered=true]","24:0":"sandstone","24:1":"chiseled_sandstone","24:2":"cut_sandstone","25:0":"note_block","26:0":"red_bed[facing=south,occupied=false,part=foot]","26:1":"red_bed[facing=west,occupied=false,part=foot]","26:2":"red_bed[facing=north,occupied=false,part=foot]","26:3":"red_bed[facing=east,occupied=false,part=foot]","26:8":"red_bed[facing=south,occupied=false,part=head]","26:9":"red_bed[facing=west,occupied=false,part=head]","26:10":"red_bed[facing=north,occupied=false,part=head]","26:11":"red_bed[facing=east,occupied=false,part=head]","26:12":"red_bed[facing=south,occupied=true,part=head]","26:13":"red_bed[facing=west,occupied=true,part=head]","26:14":"red_bed[facing=north,occupied=true,part=head]","26:15":"red_bed[facing=east,occupied=true,part=head]","27:0":"powered_rail[powered=false,shape=north_south]","27:1":"powered_rail[powered=false,shape=east_west]","27:2":"powered_rail[powered=false,shape=ascending_east]","27:3":"powered_rail[powered=false,shape=ascending_west]","27:4":"powered_rail[powered=false,shape=ascending_north]","27:5":"powered_rail[powered=false,shape=ascending_south]","27:8":"powered_rail[powered=true,shape=north_south]","27:9":"powered_rail[powered=true,shape=east_west]","27:10":"powered_rail[powered=true,shape=ascending_east]","27:11":"powered_rail[powered=true,shape=ascending_west]","27:12":"powered_rail[powered=true,shape=ascending_north]","27:13":"powered_rail[powered=true,shape=ascending_south]","28:0":"detector_rail[powered=false,shape=north_south]","28:1":"detector_rail[powered=false,shape=east_west]","28:2":"detector_rail[powered=false,shape=ascending_east]","28:3":"detector_rail[powered=false,shape=ascending_west]","28:4":"detector_rail[powered=false,shape=ascending_north]","28:5":"detector_rail[powered=false,shape=ascending_south]","28:8":"detector_rail[powered=true,shape=north_south]","28:9":"detector_rail[powered=true,shape=east_west]","28:10":"detector_rail[powered=true,shape=ascending_east]","28:11":"detector_rail[powered=true,shape=ascending_west]","28:12":"detector_rail[powered=true,shape=ascending_north]","28:13":"detector_rail[powered=true,shape=ascending_south]","29:0":"sticky_piston[extended=false,facing=down]","29:1":"sticky_piston[extended=false,facing=up]","29:2":"sticky_piston[extended=false,facing=north]","29:3":"sticky_piston[extended=false,facing=south]","29:4":"sticky_piston[extended=false,facing=west]","29:5":"sticky_piston[extended=false,facing=east]","29:8":"sticky_piston[extended=true,facing=down]","29:9":"sticky_piston[extended=true,facing=up]","29:10":"sticky_piston[extended=true,facing=north]","29:11":"sticky_piston[extended=true,facing=south]","29:12":"sticky_piston[extended=true,facing=west]","29:13":"sticky_piston[extended=true,facing=east]","30:0":"cobweb","31:0":"dead_bush","31:1":"grass","31:2":"fern","32:0":"dead_bush","33:0":"piston[extended=false,facing=down]","33:1":"piston[extended=false,facing=up]","33:2":"piston[extended=false,facing=north]","33:3":"piston[extended=false,facing=south]","33:4":"piston[extended=false,facing=west]","33:5":"piston[extended=false,facing=east]","33:8":"piston[extended=true,facing=down]","33:9":"piston[extended=true,facing=up]","33:10":"piston[extended=true,facing=north]","33:11":"piston[extended=true,facing=south]","33:12":"piston[extended=true,facing=west]","33:13":"piston[extended=true,facing=east]","34:0":"piston_head[facing=down,short=false,type=normal]","34:1":"piston_head[facing=up,short=false,type=normal]","34:2":"piston_head[facing=north,short=false,type=normal]","34:3":"piston_head[facing=south,short=false,type=normal]","34:4":"piston_head[facing=west,short=false,type=normal]","34:5":"piston_head[facing=east,short=false,type=normal]","34:8":"piston_head[facing=down,short=false,type=sticky]","34:9":"piston_head[facing=up,short=false,type=sticky]","34:10":"piston_head[facing=north,short=false,type=sticky]","34:11":"piston_head[facing=south,short=false,type=sticky]","34:12":"piston_head[facing=west,short=false,type=sticky]","34:13":"piston_head[facing=east,short=false,type=sticky]","35:0":"white_wool","35:1":"orange_wool","35:2":"magenta_wool","35:3":"light_blue_wool","35:4":"yellow_wool","35:5":"lime_wool","35:6":"pink_wool","35:7":"gray_wool","35:8":"light_gray_wool","35:9":"cyan_wool","35:10":"purple_wool","35:11":"blue_wool","35:12":"brown_wool","35:13":"green_wool","35:14":"red_wool","35:15":"black_wool","36:0":"moving_piston[facing=down,type=normal]","36:1":"moving_piston[facing=up,type=normal]","36:2":"moving_piston[facing=north,type=normal]","36:3":"moving_piston[facing=south,type=normal]","36:4":"moving_piston[facing=west,type=normal]","36:5":"moving_piston[facing=east,type=normal]","36:8":"moving_piston[facing=down,type=sticky]","36:9":"moving_piston[facing=up,type=sticky]","36:10":"moving_piston[facing=north,type=sticky]","36:11":"moving_piston[facing=south,type=sticky]","36:12":"moving_piston[facing=west,type=sticky]","36:13":"moving_piston[facing=east,type=sticky]","37:0":"dandelion","38:0":"poppy","38:1":"blue_orchid","38:2":"allium","38:3":"azure_bluet","38:4":"red_tulip","38:5":"orange_tulip","38:6":"white_tulip","38:7":"pink_tulip","38:8":"oxeye_daisy","39:0":"brown_mushroom","40:0":"red_mushroom","41:0":"gold_block","42:0":"iron_block","43:0":"stone_slab[type=double]","43:1":"sandstone_slab[type=double]","43:2":"petrified_oak_slab[type=double]","43:3":"cobblestone_slab[type=double]","43:4":"brick_slab[type=double]","43:5":"stone_brick_slab[type=double]","43:6":"nether_brick_slab[type=double]","43:7":"quartz_slab[type=double]","43:8":"smooth_stone","43:9":"smooth_sandstone","43:10":"petrified_oak_slab[type=double]","43:11":"cobblestone_slab[type=double]","43:12":"brick_slab[type=double]","43:13":"stone_brick_slab[type=double]","43:14":"nether_brick_slab[type=double]","43:15":"smooth_quartz","44:0":"stone_slab[type=bottom]","44:1":"sandstone_slab[type=bottom]","44:2":"petrified_oak_slab[type=bottom]","44:3":"cobblestone_slab[type=bottom]","44:4":"brick_slab[type=bottom]","44:5":"stone_brick_slab[type=bottom]","44:6":"nether_brick_slab[type=bottom]","44:7":"quartz_slab[type=bottom]","44:8":"stone_slab[type=top]","44:9":"sandstone_slab[type=top]","44:10":"petrified_oak_slab[type=top]","44:11":"cobblestone_slab[type=top]","44:12":"brick_slab[type=top]","44:13":"stone_brick_slab[type=top]","44:14":"nether_brick_slab[type=top]","44:15":"quartz_slab[type=top]","45:0":"bricks","46:0":"tnt[unstable=false]","46:1":"tnt[unstable=true]","47:0":"bookshelf","48:0":"mossy_cobblestone","49:0":"obsidian","50:1":"wall_torch[facing=east]","50:2":"wall_torch[facing=west]","50:3":"wall_torch[facing=south]","50:4":"wall_torch[facing=north]","50:5":"torch","51:0":"fire[age=0,east=false,north=false,south=false,up=false,west=false]","51:1":"fire[age=1,east=false,north=false,south=false,up=false,west=false]","51:2":"fire[age=2,east=false,north=false,south=false,up=false,west=false]","51:3":"fire[age=3,east=false,north=false,south=false,up=false,west=false]","51:4":"fire[age=4,east=false,north=false,south=false,up=false,west=false]","51:5":"fire[age=5,east=false,north=false,south=false,up=false,west=false]","51:6":"fire[age=6,east=false,north=false,south=false,up=false,west=false]","51:7":"fire[age=7,east=false,north=false,south=false,up=false,west=false]","51:8":"fire[age=8,east=false,north=false,south=false,up=false,west=false]","51:9":"fire[age=9,east=false,north=false,south=false,up=false,west=false]","51:10":"fire[age=10,east=false,north=false,south=false,up=false,west=false]","51:11":"fire[age=11,east=false,north=false,south=false,up=false,west=false]","51:12":"fire[age=12,east=false,north=false,south=false,up=false,west=false]","51:13":"fire[age=13,east=false,north=false,south=false,up=false,west=false]","51:14":"fire[age=14,east=false,north=false,south=false,up=false,west=false]","51:15":"fire[age=15,east=false,north=false,south=false,up=false,west=false]","52:0":"mob_spawner","53:0":"oak_stairs[facing=east,half=bottom,shape=straight]","53:1":"oak_stairs[facing=west,half=bottom,shape=straight]","53:2":"oak_stairs[facing=south,half=bottom,shape=straight]","53:3":"oak_stairs[facing=north,half=bottom,shape=straight]","53:4":"oak_stairs[facing=east,half=top,shape=straight]","53:5":"oak_stairs[facing=west,half=top,shape=straight]","53:6":"oak_stairs[facing=south,half=top,shape=straight]","53:7":"oak_stairs[facing=north,half=top,shape=straight]","54:2":"chest[facing=north,type=single]","54:3":"chest[facing=south,type=single]","54:4":"chest[facing=west,type=single]","54:5":"chest[facing=east,type=single]","55:0":"redstone_wire[east=none,north=none,power=0,south=none,west=none]","55:1":"redstone_wire[east=none,north=none,power=1,south=none,west=none]","55:2":"redstone_wire[east=none,north=none,power=2,south=none,west=none]","55:3":"redstone_wire[east=none,north=none,power=3,south=none,west=none]","55:4":"redstone_wire[east=none,north=none,power=4,south=none,west=none]","55:5":"redstone_wire[east=none,north=none,power=5,south=none,west=none]","55:6":"redstone_wire[east=none,north=none,power=6,south=none,west=none]","55:7":"redstone_wire[east=none,north=none,power=7,south=none,west=none]","55:8":"redstone_wire[east=none,north=none,power=8,south=none,west=none]","55:9":"redstone_wire[east=none,north=none,power=9,south=none,west=none]","55:10":"redstone_wire[east=none,north=none,power=10,south=none,west=none]","55:11":"redstone_wire[east=none,north=none,power=11,south=none,west=none]","55:12":"redstone_wire[east=none,north=none,power=12,south=none,west=none]","55:13":"redstone_wire[east=none,north=none,power=13,south=none,west=none]","55:14":"redstone_wire[east=none,north=none,power=14,south=none,west=none]","55:15":"redstone_wire[east=none,north=none,power=15,south=none,west=none]","56:0":"diamond_ore","57:0":"diamond_block","58:0":"crafting_table","59:0":"wheat[age=0]","59:1":"wheat[age=1]","59:2":"wheat[age=2]","59:3":"wheat[age=3]","59:4":"wheat[age=4]","59:5":"wheat[age=5]","59:6":"wheat[age=6]","59:7":"wheat[age=7]","60:0":"farmland[moisture=0]","60:1":"farmland[moisture=1]","60:2":"farmland[moisture=2]","60:3":"farmland[moisture=3]","60:4":"farmland[moisture=4]","60:5":"farmland[moisture=5]","60:6":"farmland[moisture=6]","60:7":"farmland[moisture=7]","61:2":"furnace[facing=north,lit=false]","61:3":"furnace[facing=south,lit=false]","61:4":"furnace[facing=west,lit=false]","61:5":"furnace[facing=east,lit=false]","62:2":"furnace[facing=north,lit=true]","62:3":"furnace[facing=south,lit=true]","62:4":"furnace[facing=west,lit=true]","62:5":"furnace[facing=east,lit=true]","63:0":"sign[rotation=0]","63:1":"sign[rotation=1]","63:2":"sign[rotation=2]","63:3":"sign[rotation=3]","63:4":"sign[rotation=4]","63:5":"sign[rotation=5]","63:6":"sign[rotation=6]","63:7":"sign[rotation=7]","63:8":"sign[rotation=8]","63:9":"sign[rotation=9]","63:10":"sign[rotation=10]","63:11":"sign[rotation=11]","63:12":"sign[rotation=12]","63:13":"sign[rotation=13]","63:14":"sign[rotation=14]","63:15":"sign[rotation=15]","64:0":"oak_door[facing=east,half=lower,hinge=right,open=false,powered=false]","64:1":"oak_door[facing=south,half=lower,hinge=right,open=false,powered=false]","64:2":"oak_door[facing=west,half=lower,hinge=right,open=false,powered=false]","64:3":"oak_door[facing=north,half=lower,hinge=right,open=false,powered=false]","64:4":"oak_door[facing=east,half=lower,hinge=right,open=true,powered=false]","64:5":"oak_door[facing=south,half=lower,hinge=right,open=true,powered=false]","64:6":"oak_door[facing=west,half=lower,hinge=right,open=true,powered=false]","64:7":"oak_door[facing=north,half=lower,hinge=right,open=true,powered=false]","64:8":"oak_door[facing=east,half=upper,hinge=left,open=false,powered=false]","64:9":"oak_door[facing=east,half=upper,hinge=right,open=false,powered=false]","64:10":"oak_door[facing=east,half=upper,hinge=left,open=false,powered=true]","64:11":"oak_door[facing=east,half=upper,hinge=right,open=false,powered=true]","65:2":"ladder[facing=north]","65:3":"ladder[facing=south]","65:4":"ladder[facing=west]","65:5":"ladder[facing=east]","66:0":"rail[shape=north_south]","66:1":"rail[shape=east_west]","66:2":"rail[shape=ascending_east]","66:3":"rail[shape=ascending_west]","66:4":"rail[shape=ascending_north]","66:5":"rail[shape=ascending_south]","66:6":"rail[shape=south_east]","66:7":"rail[shape=south_west]","66:8":"rail[shape=north_west]","66:9":"rail[shape=north_east]","67:0":"cobblestone_stairs[facing=east,half=bottom,shape=straight]","67:1":"cobblestone_stairs[facing=west,half=bottom,shape=straight]","67:2":"cobblestone_stairs[facing=south,half=bottom,shape=straight]","67:3":"cobblestone_stairs[facing=north,half=bottom,shape=straight]","67:4":"cobblestone_stairs[facing=east,half=top,shape=straight]","67:5":"cobblestone_stairs[facing=west,half=top,shape=straight]","67:6":"cobblestone_stairs[facing=south,half=top,shape=straight]","67:7":"cobblestone_stairs[facing=north,half=top,shape=straight]","68:2":"wall_sign[facing=north]","68:3":"wall_sign[facing=south]","68:4":"wall_sign[facing=west]","68:5":"wall_sign[facing=east]","69:0":"lever[face=ceiling,facing=west,powered=false]","69:1":"lever[face=wall,facing=east,powered=false]","69:2":"lever[face=wall,facing=west,powered=false]","69:3":"lever[face=wall,facing=south,powered=false]","69:4":"lever[face=wall,facing=north,powered=false]","69:5":"lever[face=floor,facing=north,powered=false]","69:6":"lever[face=floor,facing=west,powered=false]","69:7":"lever[face=ceiling,facing=north,powered=false]","69:8":"lever[face=ceiling,facing=west,powered=true]","69:9":"lever[face=wall,facing=east,powered=true]","69:10":"lever[face=wall,facing=west,powered=true]","69:11":"lever[face=wall,facing=south,powered=true]","69:12":"lever[face=wall,facing=north,powered=true]","69:13":"lever[face=floor,facing=north,powered=true]","69:14":"lever[face=floor,facing=west,powered=true]","69:15":"lever[face=ceiling,facing=north,powered=true]","70:0":"stone_pressure_plate[powered=false]","70:1":"stone_pressure_plate[powered=true]","71:0":"iron_door[facing=east,half=lower,hinge=right,open=false,powered=false]","71:1":"iron_door[facing=south,half=lower,hinge=right,open=false,powered=false]","71:2":"iron_door[facing=west,half=lower,hinge=right,open=false,powered=false]","71:3":"iron_door[facing=north,half=lower,hinge=right,open=false,powered=false]","71:4":"iron_door[facing=east,half=lower,hinge=right,open=true,powered=false]","71:5":"iron_door[facing=south,half=lower,hinge=right,open=true,powered=false]","71:6":"iron_door[facing=west,half=lower,hinge=right,open=true,powered=false]","71:7":"iron_door[facing=north,half=lower,hinge=right,open=true,powered=false]","71:8":"iron_door[facing=east,half=upper,hinge=left,open=false,powered=false]","71:9":"iron_door[facing=east,half=upper,hinge=right,open=false,powered=false]","71:10":"iron_door[facing=east,half=upper,hinge=left,open=false,powered=true]","71:11":"iron_door[facing=east,half=upper,hinge=right,open=false,powered=true]","72:0":"oak_pressure_plate[powered=false]","72:1":"oak_pressure_plate[powered=true]","73:0":"redstone_ore[lit=false]","74:0":"redstone_ore[lit=true]","75:1":"redstone_wall_torch[facing=east,lit=false]","75:2":"redstone_wall_torch[facing=west,lit=false]","75:3":"redstone_wall_torch[facing=south,lit=false]","75:4":"redstone_wall_torch[facing=north,lit=false]","75:5":"redstone_torch[lit=false]","76:1":"redstone_wall_torch[facing=east,lit=true]","76:2":"redstone_wall_torch[facing=west,lit=true]","76:3":"redstone_wall_torch[facing=south,lit=true]","76:4":"redstone_wall_torch[facing=north,lit=true]","76:5":"redstone_torch[lit=true]","77:0":"stone_button[face=ceiling,facing=north,powered=false]","77:1":"stone_button[face=wall,facing=east,powered=false]","77:2":"stone_button[face=wall,facing=west,powered=false]","77:3":"stone_button[face=wall,facing=south,powered=false]","77:4":"stone_button[face=wall,facing=north,powered=false]","77:5":"stone_button[face=floor,facing=north,powered=false]","77:8":"stone_button[face=ceiling,facing=north,powered=true]","77:9":"stone_button[face=wall,facing=east,powered=true]","77:10":"stone_button[face=wall,facing=west,powered=true]","77:11":"stone_button[face=wall,facing=south,powered=true]","77:12":"stone_button[face=wall,facing=north,powered=true]","77:13":"stone_button[face=floor,facing=north,powered=true]","78:0":"snow[layers=1]","78:1":"snow[layers=2]","78:2":"snow[layers=3]","78:3":"snow[layers=4]","78:4":"snow[layers=5]","78:5":"snow[layers=6]","78:6":"snow[layers=7]","78:7":"snow[layers=8]","79:0":"ice","80:0":"snow_block","81:0":"cactus[age=0]","81:1":"cactus[age=1]","81:2":"cactus[age=2]","81:3":"cactus[age=3]","81:4":"cactus[age=4]","81:5":"cactus[age=5]","81:6":"cactus[age=6]","81:7":"cactus[age=7]","81:8":"cactus[age=8]","81:9":"cactus[age=9]","81:10":"cactus[age=10]","81:11":"cactus[age=11]","81:12":"cactus[age=12]","81:13":"cactus[age=13]","81:14":"cactus[age=14]","81:15":"cactus[age=15]","82:0":"clay","83:0":"sugar_cane[age=0]","83:1":"sugar_cane[age=1]","83:2":"sugar_cane[age=2]","83:3":"sugar_cane[age=3]","83:4":"sugar_cane[age=4]","83:5":"sugar_cane[age=5]","83:6":"sugar_cane[age=6]","83:7":"sugar_cane[age=7]","83:8":"sugar_cane[age=8]","83:9":"sugar_cane[age=9]","83:10":"sugar_cane[age=10]","83:11":"sugar_cane[age=11]","83:12":"sugar_cane[age=12]","83:13":"sugar_cane[age=13]","83:14":"sugar_cane[age=14]","83:15":"sugar_cane[age=15]","84:0":"jukebox[has_record=false]","84:1":"jukebox[has_record=true]","85:0":"oak_fence[east=false,north=false,south=false,west=false]","86:0":"carved_pumpkin[facing=south]","86:1":"carved_pumpkin[facing=west]","86:2":"carved_pumpkin[facing=north]","86:3":"carved_pumpkin[facing=east]","87:0":"netherrack","88:0":"soul_sand","89:0":"glowstone","90:1":"portal[axis=x]","90:2":"portal[axis=z]","91:0":"jack_o_lantern[facing=south]","91:1":"jack_o_lantern[facing=west]","91:2":"jack_o_lantern[facing=north]","91:3":"jack_o_lantern[facing=east]","92:0":"cake[bites=0]","92:1":"cake[bites=1]","92:2":"cake[bites=2]","92:3":"cake[bites=3]","92:4":"cake[bites=4]","92:5":"cake[bites=5]","92:6":"cake[bites=6]","93:0":"repeater[delay=1,facing=south,locked=false,powered=false]","93:1":"repeater[delay=1,facing=west,locked=false,powered=false]","93:2":"repeater[delay=1,facing=north,locked=false,powered=false]","93:3":"repeater[delay=1,facing=east,locked=false,powered=false]","93:4":"repeater[delay=2,facing=south,locked=false,powered=false]","93:5":"repeater[delay=2,facing=west,locked=false,powered=false]","93:6":"repeater[delay=2,facing=north,locked=false,powered=false]","93:7":"repeater[delay=2,facing=east,locked=false,powered=false]","93:8":"repeater[delay=3,facing=south,locked=false,powered=false]","93:9":"repeater[delay=3,facing=west,locked=false,powered=false]","93:10":"repeater[delay=3,facing=north,locked=false,powered=false]","93:11":"repeater[delay=3,facing=east,locked=false,powered=false]","93:12":"repeater[delay=4,facing=south,locked=false,powered=false]","93:13":"repeater[delay=4,facing=west,locked=false,powered=false]","93:14":"repeater[delay=4,facing=north,locked=false,powered=false]","93:15":"repeater[delay=4,facing=east,locked=false,powered=false]","94:0":"repeater[delay=1,facing=south,locked=false,powered=true]","94:1":"repeater[delay=1,facing=west,locked=false,powered=true]","94:2":"repeater[delay=1,facing=north,locked=false,powered=true]","94:3":"repeater[delay=1,facing=east,locked=false,powered=true]","94:4":"repeater[delay=2,facing=south,locked=false,powered=true]","94:5":"repeater[delay=2,facing=west,locked=false,powered=true]","94:6":"repeater[delay=2,facing=north,locked=false,powered=true]","94:7":"repeater[delay=2,facing=east,locked=false,powered=true]","94:8":"repeater[delay=3,facing=south,locked=false,powered=true]","94:9":"repeater[delay=3,facing=west,locked=false,powered=true]","94:10":"repeater[delay=3,facing=north,locked=false,powered=true]","94:11":"repeater[delay=3,facing=east,locked=false,powered=true]","94:12":"repeater[delay=4,facing=south,locked=false,powered=true]","94:13":"repeater[delay=4,facing=west,locked=false,powered=true]","94:14":"repeater[delay=4,facing=north,locked=false,powered=true]","94:15":"repeater[delay=4,facing=east,locked=false,powered=true]","95:0":"white_stained_glass","95:1":"orange_stained_glass","95:2":"magenta_stained_glass","95:3":"light_blue_stained_glass","95:4":"yellow_stained_glass","95:5":"lime_stained_glass","95:6":"pink_stained_glass","95:7":"gray_stained_glass","95:8":"light_gray_stained_glass","95:9":"cyan_stained_glass","95:10":"purple_stained_glass","95:11":"blue_stained_glass","95:12":"brown_stained_glass","95:13":"green_stained_glass","95:14":"red_stained_glass","95:15":"black_stained_glass","96:0":"oak_trapdoor[facing=north,half=bottom,open=false]","96:1":"oak_trapdoor[facing=south,half=bottom,open=false]","96:2":"oak_trapdoor[facing=west,half=bottom,open=false]","96:3":"oak_trapdoor[facing=east,half=bottom,open=false]","96:4":"oak_trapdoor[facing=north,half=bottom,open=true]","96:5":"oak_trapdoor[facing=south,half=bottom,open=true]","96:6":"oak_trapdoor[facing=west,half=bottom,open=true]","96:7":"oak_trapdoor[facing=east,half=bottom,open=true]","96:8":"oak_trapdoor[facing=north,half=top,open=false]","96:9":"oak_trapdoor[facing=south,half=top,open=false]","96:10":"oak_trapdoor[facing=west,half=top,open=false]","96:11":"oak_trapdoor[facing=east,half=top,open=false]","96:12":"oak_trapdoor[facing=north,half=top,open=true]","96:13":"oak_trapdoor[facing=south,half=top,open=true]","96:14":"oak_trapdoor[facing=west,half=top,open=true]","96:15":"oak_trapdoor[facing=east,half=top,open=true]","97:0":"infested_stone","97:1":"infested_cobblestone","97:2":"infested_stone_bricks","97:3":"infested_mossy_stone_bricks","97:4":"infested_cracked_stone_bricks","97:5":"infested_chiseled_stone_bricks","98:0":"stone_bricks","98:1":"mossy_stone_bricks","98:2":"cracked_stone_bricks","98:3":"chiseled_stone_bricks","99:0":"brown_mushroom_block[north=false,east=false,south=false,west=false,up=false,down=false]","99:1":"brown_mushroom_block[north=true,east=false,south=false,west=true,up=true,down=false]","99:2":"brown_mushroom_block[north=true,east=false,south=false,west=false,up=true,down=false]","99:3":"brown_mushroom_block[north=true,east=true,south=false,west=false,up=true,down=false]","99:4":"brown_mushroom_block[north=false,east=false,south=false,west=true,up=true,down=false]","99:5":"brown_mushroom_block[north=false,east=false,south=false,west=false,up=true,down=false]","99:6":"brown_mushroom_block[north=false,east=true,south=false,west=false,up=true,down=false]","99:7":"brown_mushroom_block[north=false,east=false,south=true,west=true,up=true,down=false]","99:8":"brown_mushroom_block[north=false,east=false,south=true,west=false,up=true,down=false]","99:9":"brown_mushroom_block[north=false,east=true,south=true,west=false,up=true,down=false]","99:10":"mushroom_stem[north=true,east=true,south=true,west=true,up=false,down=false]","99:14":"brown_mushroom_block[north=true,east=true,south=true,west=true,up=true,down=true]","99:15":"mushroom_stem[north=true,east=true,south=true,west=true,up=true,down=true]","100:0":"red_mushroom_block[north=false,east=false,south=false,west=false,up=false,down=false]","100:1":"red_mushroom_block[north=true,east=false,south=false,west=true,up=true,down=false]","100:2":"red_mushroom_block[north=true,east=false,south=false,west=false,up=true,down=false]","100:3":"red_mushroom_block[north=true,east=true,south=false,west=false,up=true,down=false]","100:4":"red_mushroom_block[north=false,east=false,south=false,west=true,up=true,down=false]","100:5":"red_mushroom_block[north=false,east=false,south=false,west=false,up=true,down=false]","100:6":"red_mushroom_block[north=false,east=true,south=false,west=false,up=true,down=false]","100:7":"red_mushroom_block[north=false,east=false,south=true,west=true,up=true,down=false]","100:8":"red_mushroom_block[north=false,east=false,south=true,west=false,up=true,down=false]","100:9":"red_mushroom_block[north=false,east=true,south=true,west=false,up=true,down=false]","100:10":"mushroom_stem[north=true,east=true,south=true,west=true,up=false,down=false]","100:14":"red_mushroom_block[north=true,east=true,south=true,west=true,up=true,down=true]","100:15":"mushroom_stem[north=true,east=true,south=true,west=true,up=true,down=true]","101:0":"iron_bars[east=false,north=false,south=false,west=false]","102:0":"glass_pane[east=false,north=false,south=false,west=false]","103:0":"melon_block","104:0":"pumpkin_stem[age=0]","104:1":"pumpkin_stem[age=1]","104:2":"pumpkin_stem[age=2]","104:3":"pumpkin_stem[age=3]","104:4":"pumpkin_stem[age=4]","104:5":"pumpkin_stem[age=5]","104:6":"pumpkin_stem[age=6]","104:7":"pumpkin_stem[age=7]","105:0":"melon_stem[age=0]","105:1":"melon_stem[age=1]","105:2":"melon_stem[age=2]","105:3":"melon_stem[age=3]","105:4":"melon_stem[age=4]","105:5":"melon_stem[age=5]","105:6":"melon_stem[age=6]","105:7":"melon_stem[age=7]","106:0":"vine[east=false,north=false,south=false,up=true,west=false]","106:1":"vine[east=false,north=false,south=true,up=true,west=false]","106:2":"vine[east=false,north=false,south=false,up=true,west=true]","106:3":"vine[east=false,north=false,south=true,up=true,west=true]","106:4":"vine[east=false,north=true,south=false,up=true,west=false]","106:5":"vine[east=false,north=true,south=true,up=true,west=false]","106:6":"vine[east=false,north=true,south=false,up=true,west=true]","106:7":"vine[east=false,north=true,south=true,up=true,west=true]","106:8":"vine[east=true,north=false,south=false,up=true,west=false]","106:9":"vine[east=true,north=false,south=true,up=true,west=false]","106:10":"vine[east=true,north=false,south=false,up=true,west=true]","106:11":"vine[east=true,north=false,south=true,up=true,west=true]","106:12":"vine[east=true,north=true,south=false,up=true,west=false]","106:13":"vine[east=true,north=true,south=true,up=true,west=false]","106:14":"vine[east=true,north=true,south=false,up=true,west=true]","106:15":"vine[east=true,north=true,south=true,up=true,west=true]","107:0":"oak_fence_gate[facing=south,in_wall=false,open=false,powered=false]","107:1":"oak_fence_gate[facing=west,in_wall=false,open=false,powered=false]","107:2":"oak_fence_gate[facing=north,in_wall=false,open=false,powered=false]","107:3":"oak_fence_gate[facing=east,in_wall=false,open=false,powered=false]","107:4":"oak_fence_gate[facing=south,in_wall=false,open=true,powered=false]","107:5":"oak_fence_gate[facing=west,in_wall=false,open=true,powered=false]","107:6":"oak_fence_gate[facing=north,in_wall=false,open=true,powered=false]","107:7":"oak_fence_gate[facing=east,in_wall=false,open=true,powered=false]","107:8":"oak_fence_gate[facing=south,in_wall=false,open=false,powered=true]","107:9":"oak_fence_gate[facing=west,in_wall=false,open=false,powered=true]","107:10":"oak_fence_gate[facing=north,in_wall=false,open=false,powered=true]","107:11":"oak_fence_gate[facing=east,in_wall=false,open=false,powered=true]","107:12":"oak_fence_gate[facing=south,in_wall=false,open=true,powered=true]","107:13":"oak_fence_gate[facing=west,in_wall=false,open=true,powered=true]","107:14":"oak_fence_gate[facing=north,in_wall=false,open=true,powered=true]","107:15":"oak_fence_gate[facing=east,in_wall=false,open=true,powered=true]","108:0":"brick_stairs[facing=east,half=bottom,shape=straight]","108:1":"brick_stairs[facing=west,half=bottom,shape=straight]","108:2":"brick_stairs[facing=south,half=bottom,shape=straight]","108:3":"brick_stairs[facing=north,half=bottom,shape=straight]","108:4":"brick_stairs[facing=east,half=top,shape=straight]","108:5":"brick_stairs[facing=west,half=top,shape=straight]","108:6":"brick_stairs[facing=south,half=top,shape=straight]","108:7":"brick_stairs[facing=north,half=top,shape=straight]","109:0":"stone_brick_stairs[facing=east,half=bottom,shape=straight]","109:1":"stone_brick_stairs[facing=west,half=bottom,shape=straight]","109:2":"stone_brick_stairs[facing=south,half=bottom,shape=straight]","109:3":"stone_brick_stairs[facing=north,half=bottom,shape=straight]","109:4":"stone_brick_stairs[facing=east,half=top,shape=straight]","109:5":"stone_brick_stairs[facing=west,half=top,shape=straight]","109:6":"stone_brick_stairs[facing=south,half=top,shape=straight]","109:7":"stone_brick_stairs[facing=north,half=top,shape=straight]","110:0":"mycelium[snowy=false]","111:0":"lily_pad","112:0":"nether_bricks","113:0":"nether_brick_fence[east=false,north=false,south=false,west=false]","114:0":"nether_brick_stairs[facing=east,half=bottom,shape=straight]","114:1":"nether_brick_stairs[facing=west,half=bottom,shape=straight]","114:2":"nether_brick_stairs[facing=south,half=bottom,shape=straight]","114:3":"nether_brick_stairs[facing=north,half=bottom,shape=straight]","114:4":"nether_brick_stairs[facing=east,half=top,shape=straight]","114:5":"nether_brick_stairs[facing=west,half=top,shape=straight]","114:6":"nether_brick_stairs[facing=south,half=top,shape=straight]","114:7":"nether_brick_stairs[facing=north,half=top,shape=straight]","115:0":"nether_wart[age=0]","115:1":"nether_wart[age=1]","115:2":"nether_wart[age=2]","115:3":"nether_wart[age=3]","116:0":"enchanting_table","117:0":"brewing_stand[has_bottle_0=false,has_bottle_1=false,has_bottle_2=false]","117:1":"brewing_stand[has_bottle_0=true,has_bottle_1=false,has_bottle_2=false]","117:2":"brewing_stand[has_bottle_0=false,has_bottle_1=true,has_bottle_2=false]","117:3":"brewing_stand[has_bottle_0=true,has_bottle_1=true,has_bottle_2=false]","117:4":"brewing_stand[has_bottle_0=false,has_bottle_1=false,has_bottle_2=true]","117:5":"brewing_stand[has_bottle_0=true,has_bottle_1=false,has_bottle_2=true]","117:6":"brewing_stand[has_bottle_0=false,has_bottle_1=true,has_bottle_2=true]","117:7":"brewing_stand[has_bottle_0=true,has_bottle_1=true,has_bottle_2=true]","118:0":"cauldron[level=0]","118:1":"cauldron[level=1]","118:2":"cauldron[level=2]","118:3":"cauldron[level=3]","119:0":"end_portal","120:0":"end_portal_frame[eye=false,facing=south]","120:1":"end_portal_frame[eye=false,facing=west]","120:2":"end_portal_frame[eye=false,facing=north]","120:3":"end_portal_frame[eye=false,facing=east]","120:4":"end_portal_frame[eye=true,facing=south]","120:5":"end_portal_frame[eye=true,facing=west]","120:6":"end_portal_frame[eye=true,facing=north]","120:7":"end_portal_frame[eye=true,facing=east]","121:0":"end_stone","122:0":"dragon_egg","123:0":"redstone_lamp[lit=false]","124:0":"redstone_lamp[lit=true]","125:0":"oak_slab[type=double]","125:1":"spruce_slab[type=double]","125:2":"birch_slab[type=double]","125:3":"jungle_slab[type=double]","125:4":"acacia_slab[type=double]","125:5":"dark_oak_slab[type=double]","126:0":"oak_slab[type=bottom]","126:1":"spruce_slab[type=bottom]","126:2":"birch_slab[type=bottom]","126:3":"jungle_slab[type=bottom]","126:4":"acacia_slab[type=bottom]","126:5":"dark_oak_slab[type=bottom]","126:8":"oak_slab[type=top]","126:9":"spruce_slab[type=top]","126:10":"birch_slab[type=top]","126:11":"jungle_slab[type=top]","126:12":"acacia_slab[type=top]","126:13":"dark_oak_slab[type=top]","127:0":"cocoa[age=0,facing=south]","127:1":"cocoa[age=0,facing=west]","127:2":"cocoa[age=0,facing=north]","127:3":"cocoa[age=0,facing=east]","127:4":"cocoa[age=1,facing=south]","127:5":"cocoa[age=1,facing=west]","127:6":"cocoa[age=1,facing=north]","127:7":"cocoa[age=1,facing=east]","127:8":"cocoa[age=2,facing=south]","127:9":"cocoa[age=2,facing=west]","127:10":"cocoa[age=2,facing=north]","127:11":"cocoa[age=2,facing=east]","128:0":"sandstone_stairs[facing=east,half=bottom,shape=straight]","128:1":"sandstone_stairs[facing=west,half=bottom,shape=straight]","128:2":"sandstone_stairs[facing=south,half=bottom,shape=straight]","128:3":"sandstone_stairs[facing=north,half=bottom,shape=straight]","128:4":"sandstone_stairs[facing=east,half=top,shape=straight]","128:5":"sandstone_stairs[facing=west,half=top,shape=straight]","128:6":"sandstone_stairs[facing=south,half=top,shape=straight]","128:7":"sandstone_stairs[facing=north,half=top,shape=straight]","129:0":"emerald_ore","130:2":"ender_chest[facing=north]","130:3":"ender_chest[facing=south]","130:4":"ender_chest[facing=west]","130:5":"ender_chest[facing=east]","131:0":"tripwire_hook[attached=false,facing=south,powered=false]","131:1":"tripwire_hook[attached=false,facing=west,powered=false]","131:2":"tripwire_hook[attached=false,facing=north,powered=false]","131:3":"tripwire_hook[attached=false,facing=east,powered=false]","131:4":"tripwire_hook[attached=true,facing=south,powered=false]","131:5":"tripwire_hook[attached=true,facing=west,powered=false]","131:6":"tripwire_hook[attached=true,facing=north,powered=false]","131:7":"tripwire_hook[attached=true,facing=east,powered=false]","131:8":"tripwire_hook[attached=false,facing=south,powered=true]","131:9":"tripwire_hook[attached=false,facing=west,powered=true]","131:10":"tripwire_hook[attached=false,facing=north,powered=true]","131:11":"tripwire_hook[attached=false,facing=east,powered=true]","131:12":"tripwire_hook[attached=true,facing=south,powered=true]","131:13":"tripwire_hook[attached=true,facing=west,powered=true]","131:14":"tripwire_hook[attached=true,facing=north,powered=true]","131:15":"tripwire_hook[attached=true,facing=east,powered=true]","132:0":"tripwire[attached=false,disarmed=false,east=false,north=false,powered=false,south=false,west=false]","132:1":"tripwire[attached=false,disarmed=false,east=false,north=false,powered=true,south=false,west=false]","132:4":"tripwire[attached=true,disarmed=false,east=false,north=false,powered=false,south=false,west=false]","132:5":"tripwire[attached=true,disarmed=false,east=false,north=false,powered=true,south=false,west=false]","132:8":"tripwire[attached=false,disarmed=true,east=false,north=false,powered=false,south=false,west=false]","132:9":"tripwire[attached=false,disarmed=true,east=false,north=false,powered=true,south=false,west=false]","132:12":"tripwire[attached=true,disarmed=true,east=false,north=false,powered=false,south=false,west=false]","132:13":"tripwire[attached=true,disarmed=true,east=false,north=false,powered=true,south=false,west=false]","133:0":"emerald_block","134:0":"spruce_stairs[facing=east,half=bottom,shape=straight]","134:1":"spruce_stairs[facing=west,half=bottom,shape=straight]","134:2":"spruce_stairs[facing=south,half=bottom,shape=straight]","134:3":"spruce_stairs[facing=north,half=bottom,shape=straight]","134:4":"spruce_stairs[facing=east,half=top,shape=straight]","134:5":"spruce_stairs[facing=west,half=top,shape=straight]","134:6":"spruce_stairs[facing=south,half=top,shape=straight]","134:7":"spruce_stairs[facing=north,half=top,shape=straight]","135:0":"birch_stairs[facing=east,half=bottom,shape=straight]","135:1":"birch_stairs[facing=west,half=bottom,shape=straight]","135:2":"birch_stairs[facing=south,half=bottom,shape=straight]","135:3":"birch_stairs[facing=north,half=bottom,shape=straight]","135:4":"birch_stairs[facing=east,half=top,shape=straight]","135:5":"birch_stairs[facing=west,half=top,shape=straight]","135:6":"birch_stairs[facing=south,half=top,shape=straight]","135:7":"birch_stairs[facing=north,half=top,shape=straight]","136:0":"jungle_stairs[facing=east,half=bottom,shape=straight]","136:1":"jungle_stairs[facing=west,half=bottom,shape=straight]","136:2":"jungle_stairs[facing=south,half=bottom,shape=straight]","136:3":"jungle_stairs[facing=north,half=bottom,shape=straight]","136:4":"jungle_stairs[facing=east,half=top,shape=straight]","136:5":"jungle_stairs[facing=west,half=top,shape=straight]","136:6":"jungle_stairs[facing=south,half=top,shape=straight]","136:7":"jungle_stairs[facing=north,half=top,shape=straight]","137:0":"command_block[conditional=false,facing=down]","137:1":"command_block[conditional=false,facing=up]","137:2":"command_block[conditional=false,facing=north]","137:3":"command_block[conditional=false,facing=south]","137:4":"command_block[conditional=false,facing=west]","137:5":"command_block[conditional=false,facing=east]","137:8":"command_block[conditional=true,facing=down]","137:9":"command_block[conditional=true,facing=up]","137:10":"command_block[conditional=true,facing=north]","137:11":"command_block[conditional=true,facing=south]","137:12":"command_block[conditional=true,facing=west]","137:13":"command_block[conditional=true,facing=east]","138:0":"beacon","139:0":"cobblestone_wall[east=false,north=false,south=false,up=false,west=false]","139:1":"mossy_cobblestone_wall[east=false,north=false,south=false,up=false,west=false]","140:0":"potted_cactus","140:1":"potted_cactus","140:2":"potted_cactus","140:3":"potted_cactus","140:4":"potted_cactus","140:5":"potted_cactus","140:6":"potted_cactus","140:7":"potted_cactus","140:8":"potted_cactus","140:9":"potted_cactus","140:10":"potted_cactus","140:11":"potted_cactus","140:12":"potted_cactus","140:13":"potted_cactus","140:14":"potted_cactus","140:15":"potted_cactus","141:0":"carrots[age=0]","141:1":"carrots[age=1]","141:2":"carrots[age=2]","141:3":"carrots[age=3]","141:4":"carrots[age=4]","141:5":"carrots[age=5]","141:6":"carrots[age=6]","141:7":"carrots[age=7]","142:0":"potatoes[age=0]","142:1":"potatoes[age=1]","142:2":"potatoes[age=2]","142:3":"potatoes[age=3]","142:4":"potatoes[age=4]","142:5":"potatoes[age=5]","142:6":"potatoes[age=6]","142:7":"potatoes[age=7]","143:0":"oak_button[face=ceiling,facing=north,powered=false]","143:1":"oak_button[face=wall,facing=east,powered=false]","143:2":"oak_button[face=wall,facing=west,powered=false]","143:3":"oak_button[face=wall,facing=south,powered=false]","143:4":"oak_button[face=wall,facing=north,powered=false]","143:5":"oak_button[face=floor,facing=north,powered=false]","143:8":"oak_button[face=ceiling,facing=north,powered=true]","143:9":"oak_button[face=wall,facing=east,powered=true]","143:10":"oak_button[face=wall,facing=west,powered=true]","143:11":"oak_button[face=wall,facing=south,powered=true]","143:12":"oak_button[face=wall,facing=north,powered=true]","143:13":"oak_button[face=floor,facing=north,powered=true]","144:0":"player_head[facing=down]","144:1":"player_head[facing=up]","144:2":"player_head[facing=north]","144:3":"player_head[facing=south]","144:4":"player_head[facing=west]","144:5":"player_head[facing=east]","144:8":"player_head[facing=down]","144:9":"player_head[facing=up]","144:10":"player_head[facing=north]","144:11":"player_head[facing=south]","144:12":"player_head[facing=west]","144:13":"player_head[facing=east]","145:0":"anvil[facing=south]","145:1":"anvil[facing=west]","145:2":"anvil[facing=north]","145:3":"anvil[facing=east]","145:4":"chipped_anvil[facing=south]","145:5":"chipped_anvil[facing=west]","145:6":"chipped_anvil[facing=north]","145:7":"chipped_anvil[facing=east]","145:8":"damaged_anvil[facing=south]","145:9":"damaged_anvil[facing=west]","145:10":"damaged_anvil[facing=north]","145:11":"damaged_anvil[facing=east]","146:2":"trapped_chest[facing=north,type=single]","146:3":"trapped_chest[facing=south,type=single]","146:4":"trapped_chest[facing=west,type=single]","146:5":"trapped_chest[facing=east,type=single]","147:0":"light_weighted_pressure_plate[power=0]","147:1":"light_weighted_pressure_plate[power=1]","147:2":"light_weighted_pressure_plate[power=2]","147:3":"light_weighted_pressure_plate[power=3]","147:4":"light_weighted_pressure_plate[power=4]","147:5":"light_weighted_pressure_plate[power=5]","147:6":"light_weighted_pressure_plate[power=6]","147:7":"light_weighted_pressure_plate[power=7]","147:8":"light_weighted_pressure_plate[power=8]","147:9":"light_weighted_pressure_plate[power=9]","147:10":"light_weighted_pressure_plate[power=10]","147:11":"light_weighted_pressure_plate[power=11]","147:12":"light_weighted_pressure_plate[power=12]","147:13":"light_weighted_pressure_plate[power=13]","147:14":"light_weighted_pressure_plate[power=14]","147:15":"light_weighted_pressure_plate[power=15]","148:0":"heavy_weighted_pressure_plate[power=0]","148:1":"heavy_weighted_pressure_plate[power=1]","148:2":"heavy_weighted_pressure_plate[power=2]","148:3":"heavy_weighted_pressure_plate[power=3]","148:4":"heavy_weighted_pressure_plate[power=4]","148:5":"heavy_weighted_pressure_plate[power=5]","148:6":"heavy_weighted_pressure_plate[power=6]","148:7":"heavy_weighted_pressure_plate[power=7]","148:8":"heavy_weighted_pressure_plate[power=8]","148:9":"heavy_weighted_pressure_plate[power=9]","148:10":"heavy_weighted_pressure_plate[power=10]","148:11":"heavy_weighted_pressure_plate[power=11]","148:12":"heavy_weighted_pressure_plate[power=12]","148:13":"heavy_weighted_pressure_plate[power=13]","148:14":"heavy_weighted_pressure_plate[power=14]","148:15":"heavy_weighted_pressure_plate[power=15]","149:0":"comparator[facing=south,mode=compare,powered=false]","149:1":"comparator[facing=west,mode=compare,powered=false]","149:2":"comparator[facing=north,mode=compare,powered=false]","149:3":"comparator[facing=east,mode=compare,powered=false]","149:4":"comparator[facing=south,mode=subtract,powered=false]","149:5":"comparator[facing=west,mode=subtract,powered=false]","149:6":"comparator[facing=north,mode=subtract,powered=false]","149:7":"comparator[facing=east,mode=subtract,powered=false]","149:8":"comparator[facing=south,mode=compare,powered=true]","149:9":"comparator[facing=west,mode=compare,powered=true]","149:10":"comparator[facing=north,mode=compare,powered=true]","149:11":"comparator[facing=east,mode=compare,powered=true]","149:12":"comparator[facing=south,mode=subtract,powered=true]","149:13":"comparator[facing=west,mode=subtract,powered=true]","149:14":"comparator[facing=north,mode=subtract,powered=true]","149:15":"comparator[facing=east,mode=subtract,powered=true]","150:0":"comparator[facing=south,mode=compare,powered=false]","150:1":"comparator[facing=west,mode=compare,powered=false]","150:2":"comparator[facing=north,mode=compare,powered=false]","150:3":"comparator[facing=east,mode=compare,powered=false]","150:4":"comparator[facing=south,mode=subtract,powered=false]","150:5":"comparator[facing=west,mode=subtract,powered=false]","150:6":"comparator[facing=north,mode=subtract,powered=false]","150:7":"comparator[facing=east,mode=subtract,powered=false]","150:8":"comparator[facing=south,mode=compare,powered=true]","150:9":"comparator[facing=west,mode=compare,powered=true]","150:10":"comparator[facing=north,mode=compare,powered=true]","150:11":"comparator[facing=east,mode=compare,powered=true]","150:12":"comparator[facing=south,mode=subtract,powered=true]","150:13":"comparator[facing=west,mode=subtract,powered=true]","150:14":"comparator[facing=north,mode=subtract,powered=true]","150:15":"comparator[facing=east,mode=subtract,powered=true]","151:0":"daylight_detector[inverted=false,power=0]","151:1":"daylight_detector[inverted=false,power=1]","151:2":"daylight_detector[inverted=false,power=2]","151:3":"daylight_detector[inverted=false,power=3]","151:4":"daylight_detector[inverted=false,power=4]","151:5":"daylight_detector[inverted=false,power=5]","151:6":"daylight_detector[inverted=false,power=6]","151:7":"daylight_detector[inverted=false,power=7]","151:8":"daylight_detector[inverted=false,power=8]","151:9":"daylight_detector[inverted=false,power=9]","151:10":"daylight_detector[inverted=false,power=10]","151:11":"daylight_detector[inverted=false,power=11]","151:12":"daylight_detector[inverted=false,power=12]","151:13":"daylight_detector[inverted=false,power=13]","151:14":"daylight_detector[inverted=false,power=14]","151:15":"daylight_detector[inverted=false,power=15]","152:0":"redstone_block","153:0":"nether_quartz_ore","154:0":"hopper[enabled=true,facing=down]","154:2":"hopper[enabled=true,facing=north]","154:3":"hopper[enabled=true,facing=south]","154:4":"hopper[enabled=true,facing=west]","154:5":"hopper[enabled=true,facing=east]","154:8":"hopper[enabled=false,facing=down]","154:10":"hopper[enabled=false,facing=north]","154:11":"hopper[enabled=false,facing=south]","154:12":"hopper[enabled=false,facing=west]","154:13":"hopper[enabled=false,facing=east]","155:0":"quartz_block","155:1":"chiseled_quartz_block","155:2":"quartz_pillar[axis=y]","155:3":"quartz_pillar[axis=x]","155:4":"quartz_pillar[axis=z]","156:0":"quartz_stairs[facing=east,half=bottom,shape=straight]","156:1":"quartz_stairs[facing=west,half=bottom,shape=straight]","156:2":"quartz_stairs[facing=south,half=bottom,shape=straight]","156:3":"quartz_stairs[facing=north,half=bottom,shape=straight]","156:4":"quartz_stairs[facing=east,half=top,shape=straight]","156:5":"quartz_stairs[facing=west,half=top,shape=straight]","156:6":"quartz_stairs[facing=south,half=top,shape=straight]","156:7":"quartz_stairs[facing=north,half=top,shape=straight]","157:0":"activator_rail[powered=false,shape=north_south]","157:1":"activator_rail[powered=false,shape=east_west]","157:2":"activator_rail[powered=false,shape=ascending_east]","157:3":"activator_rail[powered=false,shape=ascending_west]","157:4":"activator_rail[powered=false,shape=ascending_north]","157:5":"activator_rail[powered=false,shape=ascending_south]","157:8":"activator_rail[powered=true,shape=north_south]","157:9":"activator_rail[powered=true,shape=east_west]","157:10":"activator_rail[powered=true,shape=ascending_east]","157:11":"activator_rail[powered=true,shape=ascending_west]","157:12":"activator_rail[powered=true,shape=ascending_north]","157:13":"activator_rail[powered=true,shape=ascending_south]","158:0":"dropper[facing=down,triggered=false]","158:1":"dropper[facing=up,triggered=false]","158:2":"dropper[facing=north,triggered=false]","158:3":"dropper[facing=south,triggered=false]","158:4":"dropper[facing=west,triggered=false]","158:5":"dropper[facing=east,triggered=false]","158:8":"dropper[facing=down,triggered=true]","158:9":"dropper[facing=up,triggered=true]","158:10":"dropper[facing=north,triggered=true]","158:11":"dropper[facing=south,triggered=true]","158:12":"dropper[facing=west,triggered=true]","158:13":"dropper[facing=east,triggered=true]","159:0":"white_terracotta","159:1":"orange_terracotta","159:2":"magenta_terracotta","159:3":"light_blue_terracotta","159:4":"yellow_terracotta","159:5":"lime_terracotta","159:6":"pink_terracotta","159:7":"gray_terracotta","159:8":"light_gray_terracotta","159:9":"cyan_terracotta","159:10":"purple_terracotta","159:11":"blue_terracotta","159:12":"brown_terracotta","159:13":"green_terracotta","159:14":"red_terracotta","159:15":"black_terracotta","160:0":"white_stained_glass_pane[east=false,north=false,south=false,west=false]","160:1":"orange_stained_glass_pane[east=false,north=false,south=false,west=false]","160:2":"magenta_stained_glass_pane[east=false,north=false,south=false,west=false]","160:3":"light_blue_stained_glass_pane[east=false,north=false,south=false,west=false]","160:4":"yellow_stained_glass_pane[east=false,north=false,south=false,west=false]","160:5":"lime_stained_glass_pane[east=false,north=false,south=false,west=false]","160:6":"pink_stained_glass_pane[east=false,north=false,south=false,west=false]","160:7":"gray_stained_glass_pane[east=false,north=false,south=false,west=false]","160:8":"light_gray_stained_glass_pane[east=false,north=false,south=false,west=false]","160:9":"cyan_stained_glass_pane[east=false,north=false,south=false,west=false]","160:10":"purple_stained_glass_pane[east=false,north=false,south=false,west=false]","160:11":"blue_stained_glass_pane[east=false,north=false,south=false,west=false]","160:12":"brown_stained_glass_pane[east=false,north=false,south=false,west=false]","160:13":"green_stained_glass_pane[east=false,north=false,south=false,west=false]","160:14":"red_stained_glass_pane[east=false,north=false,south=false,west=false]","160:15":"black_stained_glass_pane[east=false,north=false,south=false,west=false]","161:0":"acacia_leaves[check_decay=false,decayable=true]","161:1":"dark_oak_leaves[check_decay=false,decayable=true]","161:4":"acacia_leaves[check_decay=false,decayable=false]","161:5":"dark_oak_leaves[check_decay=false,decayable=false]","161:8":"acacia_leaves[check_decay=true,decayable=true]","161:9":"dark_oak_leaves[check_decay=true,decayable=true]","161:12":"acacia_leaves[check_decay=true,decayable=false]","161:13":"dark_oak_leaves[check_decay=true,decayable=false]","162:0":"acacia_log[axis=y]","162:1":"dark_oak_log[axis=y]","162:4":"acacia_log[axis=x]","162:5":"dark_oak_log[axis=x]","162:8":"acacia_log[axis=z]","162:9":"dark_oak_log[axis=z]","162:12":"acacia_bark","162:13":"dark_oak_bark","163:0":"acacia_stairs[facing=east,half=bottom,shape=straight]","163:1":"acacia_stairs[facing=west,half=bottom,shape=straight]","163:2":"acacia_stairs[facing=south,half=bottom,shape=straight]","163:3":"acacia_stairs[facing=north,half=bottom,shape=straight]","163:4":"acacia_stairs[facing=east,half=top,shape=straight]","163:5":"acacia_stairs[facing=west,half=top,shape=straight]","163:6":"acacia_stairs[facing=south,half=top,shape=straight]","163:7":"acacia_stairs[facing=north,half=top,shape=straight]","164:0":"dark_oak_stairs[facing=east,half=bottom,shape=straight]","164:1":"dark_oak_stairs[facing=west,half=bottom,shape=straight]","164:2":"dark_oak_stairs[facing=south,half=bottom,shape=straight]","164:3":"dark_oak_stairs[facing=north,half=bottom,shape=straight]","164:4":"dark_oak_stairs[facing=east,half=top,shape=straight]","164:5":"dark_oak_stairs[facing=west,half=top,shape=straight]","164:6":"dark_oak_stairs[facing=south,half=top,shape=straight]","164:7":"dark_oak_stairs[facing=north,half=top,shape=straight]","165:0":"slime_block","166:0":"barrier","167:0":"iron_trapdoor[facing=north,half=bottom,open=false]","167:1":"iron_trapdoor[facing=south,half=bottom,open=false]","167:2":"iron_trapdoor[facing=west,half=bottom,open=false]","167:3":"iron_trapdoor[facing=east,half=bottom,open=false]","167:4":"iron_trapdoor[facing=north,half=bottom,open=true]","167:5":"iron_trapdoor[facing=south,half=bottom,open=true]","167:6":"iron_trapdoor[facing=west,half=bottom,open=true]","167:7":"iron_trapdoor[facing=east,half=bottom,open=true]","167:8":"iron_trapdoor[facing=north,half=top,open=false]","167:9":"iron_trapdoor[facing=south,half=top,open=false]","167:10":"iron_trapdoor[facing=west,half=top,open=false]","167:11":"iron_trapdoor[facing=east,half=top,open=false]","167:12":"iron_trapdoor[facing=north,half=top,open=true]","167:13":"iron_trapdoor[facing=south,half=top,open=true]","167:14":"iron_trapdoor[facing=west,half=top,open=true]","167:15":"iron_trapdoor[facing=east,half=top,open=true]","168:0":"prismarine","168:1":"prismarine_bricks","168:2":"dark_prismarine","169:0":"sea_lantern","170:0":"hay_block[axis=y]","170:4":"hay_block[axis=x]","170:8":"hay_block[axis=z]","171:0":"white_carpet","171:1":"orange_carpet","171:2":"magenta_carpet","171:3":"light_blue_carpet","171:4":"yellow_carpet","171:5":"lime_carpet","171:6":"pink_carpet","171:7":"gray_carpet","171:8":"light_gray_carpet","171:9":"cyan_carpet","171:10":"purple_carpet","171:11":"blue_carpet","171:12":"brown_carpet","171:13":"green_carpet","171:14":"red_carpet","171:15":"black_carpet","172:0":"terracotta","173:0":"coal_block","174:0":"packed_ice","175:0":"sunflower[half=lower]","175:1":"lilac[half=lower]","175:2":"tall_grass[half=lower]","175:3":"large_fern[half=lower]","175:4":"rose_bush[half=lower]","175:5":"peony[half=lower]","175:8":"peony[half=upper]","175:9":"peony[half=upper]","175:10":"peony[half=upper]","175:11":"peony[half=upper]","176:0":"white_banner[rotation=0]","176:1":"white_banner[rotation=1]","176:2":"white_banner[rotation=2]","176:3":"white_banner[rotation=3]","176:4":"white_banner[rotation=4]","176:5":"white_banner[rotation=5]","176:6":"white_banner[rotation=6]","176:7":"white_banner[rotation=7]","176:8":"white_banner[rotation=8]","176:9":"white_banner[rotation=9]","176:10":"white_banner[rotation=10]","176:11":"white_banner[rotation=11]","176:12":"white_banner[rotation=12]","176:13":"white_banner[rotation=13]","176:14":"white_banner[rotation=14]","176:15":"white_banner[rotation=15]","177:2":"white_wall_banner[facing=north]","177:3":"white_wall_banner[facing=south]","177:4":"white_wall_banner[facing=west]","177:5":"white_wall_banner[facing=east]","178:0":"daylight_detector[inverted=true,power=0]","178:1":"daylight_detector[inverted=true,power=1]","178:2":"daylight_detector[inverted=true,power=2]","178:3":"daylight_detector[inverted=true,power=3]","178:4":"daylight_detector[inverted=true,power=4]","178:5":"daylight_detector[inverted=true,power=5]","178:6":"daylight_detector[inverted=true,power=6]","178:7":"daylight_detector[inverted=true,power=7]","178:8":"daylight_detector[inverted=true,power=8]","178:9":"daylight_detector[inverted=true,power=9]","178:10":"daylight_detector[inverted=true,power=10]","178:11":"daylight_detector[inverted=true,power=11]","178:12":"daylight_detector[inverted=true,power=12]","178:13":"daylight_detector[inverted=true,power=13]","178:14":"daylight_detector[inverted=true,power=14]","178:15":"daylight_detector[inverted=true,power=15]","179:0":"red_sandstone","179:1":"chiseled_red_sandstone","179:2":"cut_red_sandstone","180:0":"red_sandstone_stairs[facing=east,half=bottom,shape=straight]","180:1":"red_sandstone_stairs[facing=west,half=bottom,shape=straight]","180:2":"red_sandstone_stairs[facing=south,half=bottom,shape=straight]","180:3":"red_sandstone_stairs[facing=north,half=bottom,shape=straight]","180:4":"red_sandstone_stairs[facing=east,half=top,shape=straight]","180:5":"red_sandstone_stairs[facing=west,half=top,shape=straight]","180:6":"red_sandstone_stairs[facing=south,half=top,shape=straight]","180:7":"red_sandstone_stairs[facing=north,half=top,shape=straight]","181:0":"red_sandstone_slab[type=double]","181:8":"smooth_red_sandstone","182:0":"red_sandstone_slab[type=bottom]","182:8":"red_sandstone_slab[type=top]","183:0":"spruce_fence_gate[facing=south,in_wall=false,open=false,powered=false]","183:1":"spruce_fence_gate[facing=west,in_wall=false,open=false,powered=false]","183:2":"spruce_fence_gate[facing=north,in_wall=false,open=false,powered=false]","183:3":"spruce_fence_gate[facing=east,in_wall=false,open=false,powered=false]","183:4":"spruce_fence_gate[facing=south,in_wall=false,open=true,powered=false]","183:5":"spruce_fence_gate[facing=west,in_wall=false,open=true,powered=false]","183:6":"spruce_fence_gate[facing=north,in_wall=false,open=true,powered=false]","183:7":"spruce_fence_gate[facing=east,in_wall=false,open=true,powered=false]","183:8":"spruce_fence_gate[facing=south,in_wall=false,open=false,powered=true]","183:9":"spruce_fence_gate[facing=west,in_wall=false,open=false,powered=true]","183:10":"spruce_fence_gate[facing=north,in_wall=false,open=false,powered=true]","183:11":"spruce_fence_gate[facing=east,in_wall=false,open=false,powered=true]","183:12":"spruce_fence_gate[facing=south,in_wall=false,open=true,powered=true]","183:13":"spruce_fence_gate[facing=west,in_wall=false,open=true,powered=true]","183:14":"spruce_fence_gate[facing=north,in_wall=false,open=true,powered=true]","183:15":"spruce_fence_gate[facing=east,in_wall=false,open=true,powered=true]","184:0":"birch_fence_gate[facing=south,in_wall=false,open=false,powered=false]","184:1":"birch_fence_gate[facing=west,in_wall=false,open=false,powered=false]","184:2":"birch_fence_gate[facing=north,in_wall=false,open=false,powered=false]","184:3":"birch_fence_gate[facing=east,in_wall=false,open=false,powered=false]","184:4":"birch_fence_gate[facing=south,in_wall=false,open=true,powered=false]","184:5":"birch_fence_gate[facing=west,in_wall=false,open=true,powered=false]","184:6":"birch_fence_gate[facing=north,in_wall=false,open=true,powered=false]","184:7":"birch_fence_gate[facing=east,in_wall=false,open=true,powered=false]","184:8":"birch_fence_gate[facing=south,in_wall=false,open=false,powered=true]","184:9":"birch_fence_gate[facing=west,in_wall=false,open=false,powered=true]","184:10":"birch_fence_gate[facing=north,in_wall=false,open=false,powered=true]","184:11":"birch_fence_gate[facing=east,in_wall=false,open=false,powered=true]","184:12":"birch_fence_gate[facing=south,in_wall=false,open=true,powered=true]","184:13":"birch_fence_gate[facing=west,in_wall=false,open=true,powered=true]","184:14":"birch_fence_gate[facing=north,in_wall=false,open=true,powered=true]","184:15":"birch_fence_gate[facing=east,in_wall=false,open=true,powered=true]","185:0":"jungle_fence_gate[facing=south,in_wall=false,open=false,powered=false]","185:1":"jungle_fence_gate[facing=west,in_wall=false,open=false,powered=false]","185:2":"jungle_fence_gate[facing=north,in_wall=false,open=false,powered=false]","185:3":"jungle_fence_gate[facing=east,in_wall=false,open=false,powered=false]","185:4":"jungle_fence_gate[facing=south,in_wall=false,open=true,powered=false]","185:5":"jungle_fence_gate[facing=west,in_wall=false,open=true,powered=false]","185:6":"jungle_fence_gate[facing=north,in_wall=false,open=true,powered=false]","185:7":"jungle_fence_gate[facing=east,in_wall=false,open=true,powered=false]","185:8":"jungle_fence_gate[facing=south,in_wall=false,open=false,powered=true]","185:9":"jungle_fence_gate[facing=west,in_wall=false,open=false,powered=true]","185:10":"jungle_fence_gate[facing=north,in_wall=false,open=false,powered=true]","185:11":"jungle_fence_gate[facing=east,in_wall=false,open=false,powered=true]","185:12":"jungle_fence_gate[facing=south,in_wall=false,open=true,powered=true]","185:13":"jungle_fence_gate[facing=west,in_wall=false,open=true,powered=true]","185:14":"jungle_fence_gate[facing=north,in_wall=false,open=true,powered=true]","185:15":"jungle_fence_gate[facing=east,in_wall=false,open=true,powered=true]","186:0":"dark_oak_fence_gate[facing=south,in_wall=false,open=false,powered=false]","186:1":"dark_oak_fence_gate[facing=west,in_wall=false,open=false,powered=false]","186:2":"dark_oak_fence_gate[facing=north,in_wall=false,open=false,powered=false]","186:3":"dark_oak_fence_gate[facing=east,in_wall=false,open=false,powered=false]","186:4":"dark_oak_fence_gate[facing=south,in_wall=false,open=true,powered=false]","186:5":"dark_oak_fence_gate[facing=west,in_wall=false,open=true,powered=false]","186:6":"dark_oak_fence_gate[facing=north,in_wall=false,open=true,powered=false]","186:7":"dark_oak_fence_gate[facing=east,in_wall=false,open=true,powered=false]","186:8":"dark_oak_fence_gate[facing=south,in_wall=false,open=false,powered=true]","186:9":"dark_oak_fence_gate[facing=west,in_wall=false,open=false,powered=true]","186:10":"dark_oak_fence_gate[facing=north,in_wall=false,open=false,powered=true]","186:11":"dark_oak_fence_gate[facing=east,in_wall=false,open=false,powered=true]","186:12":"dark_oak_fence_gate[facing=south,in_wall=false,open=true,powered=true]","186:13":"dark_oak_fence_gate[facing=west,in_wall=false,open=true,powered=true]","186:14":"dark_oak_fence_gate[facing=north,in_wall=false,open=true,powered=true]","186:15":"dark_oak_fence_gate[facing=east,in_wall=false,open=true,powered=true]","187:0":"acacia_fence_gate[facing=south,in_wall=false,open=false,powered=false]","187:1":"acacia_fence_gate[facing=west,in_wall=false,open=false,powered=false]","187:2":"acacia_fence_gate[facing=north,in_wall=false,open=false,powered=false]","187:3":"acacia_fence_gate[facing=east,in_wall=false,open=false,powered=false]","187:4":"acacia_fence_gate[facing=south,in_wall=false,open=true,powered=false]","187:5":"acacia_fence_gate[facing=west,in_wall=false,open=true,powered=false]","187:6":"acacia_fence_gate[facing=north,in_wall=false,open=true,powered=false]","187:7":"acacia_fence_gate[facing=east,in_wall=false,open=true,powered=false]","187:8":"acacia_fence_gate[facing=south,in_wall=false,open=false,powered=true]","187:9":"acacia_fence_gate[facing=west,in_wall=false,open=false,powered=true]","187:10":"acacia_fence_gate[facing=north,in_wall=false,open=false,powered=true]","187:11":"acacia_fence_gate[facing=east,in_wall=false,open=false,powered=true]","187:12":"acacia_fence_gate[facing=south,in_wall=false,open=true,powered=true]","187:13":"acacia_fence_gate[facing=west,in_wall=false,open=true,powered=true]","187:14":"acacia_fence_gate[facing=north,in_wall=false,open=true,powered=true]","187:15":"acacia_fence_gate[facing=east,in_wall=false,open=true,powered=true]","188:0":"spruce_fence[east=false,north=false,south=false,west=false]","189:0":"birch_fence[east=false,north=false,south=false,west=false]","190:0":"jungle_fence[east=false,north=false,south=false,west=false]","191:0":"dark_oak_fence[east=false,north=false,south=false,west=false]","192:0":"acacia_fence[east=false,north=false,south=false,west=false]","193:0":"spruce_door[facing=east,half=lower,hinge=right,open=false,powered=false]","193:1":"spruce_door[facing=south,half=lower,hinge=right,open=false,powered=false]","193:2":"spruce_door[facing=west,half=lower,hinge=right,open=false,powered=false]","193:3":"spruce_door[facing=north,half=lower,hinge=right,open=false,powered=false]","193:4":"spruce_door[facing=east,half=lower,hinge=right,open=true,powered=false]","193:5":"spruce_door[facing=south,half=lower,hinge=right,open=true,powered=false]","193:6":"spruce_door[facing=west,half=lower,hinge=right,open=true,powered=false]","193:7":"spruce_door[facing=north,half=lower,hinge=right,open=true,powered=false]","193:8":"spruce_door[facing=east,half=upper,hinge=left,open=false,powered=false]","193:9":"spruce_door[facing=east,half=upper,hinge=right,open=false,powered=false]","193:10":"spruce_door[facing=east,half=upper,hinge=left,open=false,powered=true]","193:11":"spruce_door[facing=east,half=upper,hinge=right,open=false,powered=true]","194:0":"birch_door[facing=east,half=lower,hinge=right,open=false,powered=false]","194:1":"birch_door[facing=south,half=lower,hinge=right,open=false,powered=false]","194:2":"birch_door[facing=west,half=lower,hinge=right,open=false,powered=false]","194:3":"birch_door[facing=north,half=lower,hinge=right,open=false,powered=false]","194:4":"birch_door[facing=east,half=lower,hinge=right,open=true,powered=false]","194:5":"birch_door[facing=south,half=lower,hinge=right,open=true,powered=false]","194:6":"birch_door[facing=west,half=lower,hinge=right,open=true,powered=false]","194:7":"birch_door[facing=north,half=lower,hinge=right,open=true,powered=false]","194:8":"birch_door[facing=east,half=upper,hinge=left,open=false,powered=false]","194:9":"birch_door[facing=east,half=upper,hinge=right,open=false,powered=false]","194:10":"birch_door[facing=east,half=upper,hinge=left,open=false,powered=true]","194:11":"birch_door[facing=east,half=upper,hinge=right,open=false,powered=true]","195:0":"jungle_door[facing=east,half=lower,hinge=right,open=false,powered=false]","195:1":"jungle_door[facing=south,half=lower,hinge=right,open=false,powered=false]","195:2":"jungle_door[facing=west,half=lower,hinge=right,open=false,powered=false]","195:3":"jungle_door[facing=north,half=lower,hinge=right,open=false,powered=false]","195:4":"jungle_door[facing=east,half=lower,hinge=right,open=true,powered=false]","195:5":"jungle_door[facing=south,half=lower,hinge=right,open=true,powered=false]","195:6":"jungle_door[facing=west,half=lower,hinge=right,open=true,powered=false]","195:7":"jungle_door[facing=north,half=lower,hinge=right,open=true,powered=false]","195:8":"jungle_door[facing=east,half=upper,hinge=left,open=false,powered=false]","195:9":"jungle_door[facing=east,half=upper,hinge=right,open=false,powered=false]","195:10":"jungle_door[facing=east,half=upper,hinge=left,open=false,powered=true]","195:11":"jungle_door[facing=east,half=upper,hinge=right,open=false,powered=true]","196:0":"acacia_door[facing=east,half=lower,hinge=right,open=false,powered=false]","196:1":"acacia_door[facing=south,half=lower,hinge=right,open=false,powered=false]","196:2":"acacia_door[facing=west,half=lower,hinge=right,open=false,powered=false]","196:3":"acacia_door[facing=north,half=lower,hinge=right,open=false,powered=false]","196:4":"acacia_door[facing=east,half=lower,hinge=right,open=true,powered=false]","196:5":"acacia_door[facing=south,half=lower,hinge=right,open=true,powered=false]","196:6":"acacia_door[facing=west,half=lower,hinge=right,open=true,powered=false]","196:7":"acacia_door[facing=north,half=lower,hinge=right,open=true,powered=false]","196:8":"acacia_door[facing=east,half=upper,hinge=left,open=false,powered=false]","196:9":"acacia_door[facing=east,half=upper,hinge=right,open=false,powered=false]","196:10":"acacia_door[facing=east,half=upper,hinge=left,open=false,powered=true]","196:11":"acacia_door[facing=east,half=upper,hinge=right,open=false,powered=true]","197:0":"dark_oak_door[facing=east,half=lower,hinge=right,open=false,powered=false]","197:1":"dark_oak_door[facing=south,half=lower,hinge=right,open=false,powered=false]","197:2":"dark_oak_door[facing=west,half=lower,hinge=right,open=false,powered=false]","197:3":"dark_oak_door[facing=north,half=lower,hinge=right,open=false,powered=false]","197:4":"dark_oak_door[facing=east,half=lower,hinge=right,open=true,powered=false]","197:5":"dark_oak_door[facing=south,half=lower,hinge=right,open=true,powered=false]","197:6":"dark_oak_door[facing=west,half=lower,hinge=right,open=true,powered=false]","197:7":"dark_oak_door[facing=north,half=lower,hinge=right,open=true,powered=false]","197:8":"dark_oak_door[facing=east,half=upper,hinge=left,open=false,powered=false]","197:9":"dark_oak_door[facing=east,half=upper,hinge=right,open=false,powered=false]","197:10":"dark_oak_door[facing=east,half=upper,hinge=left,open=false,powered=true]","197:11":"dark_oak_door[facing=east,half=upper,hinge=right,open=false,powered=true]","198:0":"end_rod[facing=down]","198:1":"end_rod[facing=up]","198:2":"end_rod[facing=north]","198:3":"end_rod[facing=south]","198:4":"end_rod[facing=west]","198:5":"end_rod[facing=east]","199:0":"chorus_plant[down=false,east=false,north=false,south=false,up=false,west=false]","200:0":"chorus_flower[age=0]","200:1":"chorus_flower[age=1]","200:2":"chorus_flower[age=2]","200:3":"chorus_flower[age=3]","200:4":"chorus_flower[age=4]","200:5":"chorus_flower[age=5]","201:0":"purpur_block","202:0":"purpur_pillar[axis=y]","202:4":"purpur_pillar[axis=x]","202:8":"purpur_pillar[axis=z]","203:0":"purpur_stairs[facing=east,half=bottom,shape=straight]","203:1":"purpur_stairs[facing=west,half=bottom,shape=straight]","203:2":"purpur_stairs[facing=south,half=bottom,shape=straight]","203:3":"purpur_stairs[facing=north,half=bottom,shape=straight]","203:4":"purpur_stairs[facing=east,half=top,shape=straight]","203:5":"purpur_stairs[facing=west,half=top,shape=straight]","203:6":"purpur_stairs[facing=south,half=top,shape=straight]","203:7":"purpur_stairs[facing=north,half=top,shape=straight]","204:0":"purpur_slab[type=double]","205:0":"purpur_slab[type=bottom]","205:8":"purpur_slab[type=top]","206:0":"end_stone_bricks","207:0":"beetroots[age=0]","207:1":"beetroots[age=1]","207:2":"beetroots[age=2]","207:3":"beetroots[age=3]","208:0":"grass_path","209:0":"end_gateway","210:0":"repeating_command_block[conditional=false,facing=down]","210:1":"repeating_command_block[conditional=false,facing=up]","210:2":"repeating_command_block[conditional=false,facing=north]","210:3":"repeating_command_block[conditional=false,facing=south]","210:4":"repeating_command_block[conditional=false,facing=west]","210:5":"repeating_command_block[conditional=false,facing=east]","210:8":"repeating_command_block[conditional=true,facing=down]","210:9":"repeating_command_block[conditional=true,facing=up]","210:10":"repeating_command_block[conditional=true,facing=north]","210:11":"repeating_command_block[conditional=true,facing=south]","210:12":"repeating_command_block[conditional=true,facing=west]","210:13":"repeating_command_block[conditional=true,facing=east]","211:0":"chain_command_block[conditional=false,facing=down]","211:1":"chain_command_block[conditional=false,facing=up]","211:2":"chain_command_block[conditional=false,facing=north]","211:3":"chain_command_block[conditional=false,facing=south]","211:4":"chain_command_block[conditional=false,facing=west]","211:5":"chain_command_block[conditional=false,facing=east]","211:8":"chain_command_block[conditional=true,facing=down]","211:9":"chain_command_block[conditional=true,facing=up]","211:10":"chain_command_block[conditional=true,facing=north]","211:11":"chain_command_block[conditional=true,facing=south]","211:12":"chain_command_block[conditional=true,facing=west]","211:13":"chain_command_block[conditional=true,facing=east]","212:0":"frosted_ice[age=0]","212:1":"frosted_ice[age=1]","212:2":"frosted_ice[age=2]","212:3":"frosted_ice[age=3]","213:0":"magma_block","214:0":"nether_wart_block","215:0":"red_nether_bricks","216:0":"bone_block[axis=y]","216:4":"bone_block[axis=x]","216:8":"bone_block[axis=z]","217:0":"structure_void","218:0":"observer[facing=down,powered=false]","218:1":"observer[facing=up,powered=false]","218:2":"observer[facing=north,powered=false]","218:3":"observer[facing=south,powered=false]","218:4":"observer[facing=west,powered=false]","218:5":"observer[facing=east,powered=false]","218:8":"observer[facing=down,powered=true]","218:9":"observer[facing=up,powered=true]","218:10":"observer[facing=north,powered=true]","218:11":"observer[facing=south,powered=true]","218:12":"observer[facing=west,powered=true]","218:13":"observer[facing=east,powered=true]","219:0":"white_shulker_box[facing=down]","219:1":"white_shulker_box[facing=up]","219:2":"white_shulker_box[facing=north]","219:3":"white_shulker_box[facing=south]","219:4":"white_shulker_box[facing=west]","219:5":"white_shulker_box[facing=east]","220:0":"orange_shulker_box[facing=down]","220:1":"orange_shulker_box[facing=up]","220:2":"orange_shulker_box[facing=north]","220:3":"orange_shulker_box[facing=south]","220:4":"orange_shulker_box[facing=west]","220:5":"orange_shulker_box[facing=east]","221:0":"magenta_shulker_box[facing=down]","221:1":"magenta_shulker_box[facing=up]","221:2":"magenta_shulker_box[facing=north]","221:3":"magenta_shulker_box[facing=south]","221:4":"magenta_shulker_box[facing=west]","221:5":"magenta_shulker_box[facing=east]","222:0":"light_blue_shulker_box[facing=down]","222:1":"light_blue_shulker_box[facing=up]","222:2":"light_blue_shulker_box[facing=north]","222:3":"light_blue_shulker_box[facing=south]","222:4":"light_blue_shulker_box[facing=west]","222:5":"light_blue_shulker_box[facing=east]","223:0":"yellow_shulker_box[facing=down]","223:1":"yellow_shulker_box[facing=up]","223:2":"yellow_shulker_box[facing=north]","223:3":"yellow_shulker_box[facing=south]","223:4":"yellow_shulker_box[facing=west]","223:5":"yellow_shulker_box[facing=east]","224:0":"lime_shulker_box[facing=down]","224:1":"lime_shulker_box[facing=up]","224:2":"lime_shulker_box[facing=north]","224:3":"lime_shulker_box[facing=south]","224:4":"lime_shulker_box[facing=west]","224:5":"lime_shulker_box[facing=east]","225:0":"pink_shulker_box[facing=down]","225:1":"pink_shulker_box[facing=up]","225:2":"pink_shulker_box[facing=north]","225:3":"pink_shulker_box[facing=south]","225:4":"pink_shulker_box[facing=west]","225:5":"pink_shulker_box[facing=east]","226:0":"gray_shulker_box[facing=down]","226:1":"gray_shulker_box[facing=up]","226:2":"gray_shulker_box[facing=north]","226:3":"gray_shulker_box[facing=south]","226:4":"gray_shulker_box[facing=west]","226:5":"gray_shulker_box[facing=east]","227:0":"light_gray_shulker_box[facing=down]","227:1":"light_gray_shulker_box[facing=up]","227:2":"light_gray_shulker_box[facing=north]","227:3":"light_gray_shulker_box[facing=south]","227:4":"light_gray_shulker_box[facing=west]","227:5":"light_gray_shulker_box[facing=east]","228:0":"cyan_shulker_box[facing=down]","228:1":"cyan_shulker_box[facing=up]","228:2":"cyan_shulker_box[facing=north]","228:3":"cyan_shulker_box[facing=south]","228:4":"cyan_shulker_box[facing=west]","228:5":"cyan_shulker_box[facing=east]","229:0":"purple_shulker_box[facing=down]","229:1":"purple_shulker_box[facing=up]","229:2":"purple_shulker_box[facing=north]","229:3":"purple_shulker_box[facing=south]","229:4":"purple_shulker_box[facing=west]","229:5":"purple_shulker_box[facing=east]","230:0":"blue_shulker_box[facing=down]","230:1":"blue_shulker_box[facing=up]","230:2":"blue_shulker_box[facing=north]","230:3":"blue_shulker_box[facing=south]","230:4":"blue_shulker_box[facing=west]","230:5":"blue_shulker_box[facing=east]","231:0":"brown_shulker_box[facing=down]","231:1":"brown_shulker_box[facing=up]","231:2":"brown_shulker_box[facing=north]","231:3":"brown_shulker_box[facing=south]","231:4":"brown_shulker_box[facing=west]","231:5":"brown_shulker_box[facing=east]","232:0":"green_shulker_box[facing=down]","232:1":"green_shulker_box[facing=up]","232:2":"green_shulker_box[facing=north]","232:3":"green_shulker_box[facing=south]","232:4":"green_shulker_box[facing=west]","232:5":"green_shulker_box[facing=east]","233:0":"red_shulker_box[facing=down]","233:1":"red_shulker_box[facing=up]","233:2":"red_shulker_box[facing=north]","233:3":"red_shulker_box[facing=south]","233:4":"red_shulker_box[facing=west]","233:5":"red_shulker_box[facing=east]","234:0":"black_shulker_box[facing=down]","234:1":"black_shulker_box[facing=up]","234:2":"black_shulker_box[facing=north]","234:3":"black_shulker_box[facing=south]","234:4":"black_shulker_box[facing=west]","234:5":"black_shulker_box[facing=east]","235:0":"white_glazed_terracotta[facing=south]","235:1":"white_glazed_terracotta[facing=west]","235:2":"white_glazed_terracotta[facing=north]","235:3":"white_glazed_terracotta[facing=east]","236:0":"orange_glazed_terracotta[facing=south]","236:1":"orange_glazed_terracotta[facing=west]","236:2":"orange_glazed_terracotta[facing=north]","236:3":"orange_glazed_terracotta[facing=east]","237:0":"magenta_glazed_terracotta[facing=south]","237:1":"magenta_glazed_terracotta[facing=west]","237:2":"magenta_glazed_terracotta[facing=north]","237:3":"magenta_glazed_terracotta[facing=east]","238:0":"light_blue_glazed_terracotta[facing=south]","238:1":"light_blue_glazed_terracotta[facing=west]","238:2":"light_blue_glazed_terracotta[facing=north]","238:3":"light_blue_glazed_terracotta[facing=east]","239:0":"yellow_glazed_terracotta[facing=south]","239:1":"yellow_glazed_terracotta[facing=west]","239:2":"yellow_glazed_terracotta[facing=north]","239:3":"yellow_glazed_terracotta[facing=east]","240:0":"lime_glazed_terracotta[facing=south]","240:1":"lime_glazed_terracotta[facing=west]","240:2":"lime_glazed_terracotta[facing=north]","240:3":"lime_glazed_terracotta[facing=east]","241:0":"pink_glazed_terracotta[facing=south]","241:1":"pink_glazed_terracotta[facing=west]","241:2":"pink_glazed_terracotta[facing=north]","241:3":"pink_glazed_terracotta[facing=east]","242:0":"gray_glazed_terracotta[facing=south]","242:1":"gray_glazed_terracotta[facing=west]","242:2":"gray_glazed_terracotta[facing=north]","242:3":"gray_glazed_terracotta[facing=east]","243:0":"light_gray_glazed_terracotta[facing=south]","243:1":"light_gray_glazed_terracotta[facing=west]","243:2":"light_gray_glazed_terracotta[facing=north]","243:3":"light_gray_glazed_terracotta[facing=east]","244:0":"cyan_glazed_terracotta[facing=south]","244:1":"cyan_glazed_terracotta[facing=west]","244:2":"cyan_glazed_terracotta[facing=north]","244:3":"cyan_glazed_terracotta[facing=east]","245:0":"purple_glazed_terracotta[facing=south]","245:1":"purple_glazed_terracotta[facing=west]","245:2":"purple_glazed_terracotta[facing=north]","245:3":"purple_glazed_terracotta[facing=east]","246:0":"blue_glazed_terracotta[facing=south]","246:1":"blue_glazed_terracotta[facing=west]","246:2":"blue_glazed_terracotta[facing=north]","246:3":"blue_glazed_terracotta[facing=east]","247:0":"brown_glazed_terracotta[facing=south]","247:1":"brown_glazed_terracotta[facing=west]","247:2":"brown_glazed_terracotta[facing=north]","247:3":"brown_glazed_terracotta[facing=east]","248:0":"green_glazed_terracotta[facing=south]","248:1":"green_glazed_terracotta[facing=west]","248:2":"green_glazed_terracotta[facing=north]","248:3":"green_glazed_terracotta[facing=east]","249:0":"red_glazed_terracotta[facing=south]","249:1":"red_glazed_terracotta[facing=west]","249:2":"red_glazed_terracotta[facing=north]","249:3":"red_glazed_terracotta[facing=east]","250:0":"black_glazed_terracotta[facing=south]","250:1":"black_glazed_terracotta[facing=west]","250:2":"black_glazed_terracotta[facing=north]","250:3":"black_glazed_terracotta[facing=east]","251:0":"white_concrete","251:1":"orange_concrete","251:2":"magenta_concrete","251:3":"light_blue_concrete","251:4":"yellow_concrete","251:5":"lime_concrete","251:6":"pink_concrete","251:7":"gray_concrete","251:8":"light_gray_concrete","251:9":"cyan_concrete","251:10":"purple_concrete","251:11":"blue_concrete","251:12":"brown_concrete","251:13":"green_concrete","251:14":"red_concrete","251:15":"black_concrete","252:0":"white_concrete_powder","252:1":"orange_concrete_powder","252:2":"magenta_concrete_powder","252:3":"light_blue_concrete_powder","252:4":"yellow_concrete_powder","252:5":"lime_concrete_powder","252:6":"pink_concrete_powder","252:7":"gray_concrete_powder","252:8":"light_gray_concrete_powder","252:9":"cyan_concrete_powder","252:10":"purple_concrete_powder","252:11":"blue_concrete_powder","252:12":"brown_concrete_powder","252:13":"green_concrete_powder","252:14":"red_concrete_powder","252:15":"black_concrete_powder","255:0":"structure_block[mode=save]","255:1":"structure_block[mode=load]","255:2":"structure_block[mode=corner]","255:3":"structure_block[mode=data]"},"clientCalculatedBlocks":{"block_snowy":["grass_block","dirt","coarse_dirt","podzol","mycelium"],"directional":["fire","redstone_wire","oak_fence","iron_bars","glass_pane","vine","nether_brick_fence","tripwire","cobblestone_wall","mossy_cobblestone_wall","white_stained_glass_pane","orange_stained_glass_pane","magenta_stained_glass_pane","light_blue_stained_glass_pane","yellow_stained_glass_pane","lime_stained_glass_pane","pink_stained_glass_pane","gray_stained_glass_pane","light_gray_stained_glass_pane","cyan_stained_glass_pane","purple_stained_glass_pane","blue_stained_glass_pane","brown_stained_glass_pane","green_stained_glass_pane","red_stained_glass_pane","black_stained_glass_pane","spruce_fence","birch_fence","jungle_fence","dark_oak_fence","acacia_fence","chorus_plant"],"door":["oak_door","iron_door","spruce_door","birch_door","jungle_door","acacia_door","dark_oak_door"],"repeater_locked":["repeater"],"gate_in_wall":["oak_fence_gate","spruce_fence_gate","birch_fence_gate","jungle_fence_gate","dark_oak_fence_gate","acacia_fence_gate"]}}')}},t={};function __webpack_require__(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,__webpack_require__),a.loaded=!0,a.exports}__webpack_require__.m=e,__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var a=Object.create(null);__webpack_require__.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(e=>{o[e]=()=>n[e]});return o.default=()=>n,__webpack_require__.d(a,o),a}})(),__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,n)=>(__webpack_require__.f[n](e,t),t),[])),__webpack_require__.u=e=>"static/js/async/"+(({196:"mc-assets",687:"mc-data"})[e]||e)+"."+({11:"e0119568",158:"913fb398",196:"c6afdd56",687:"dee31f1d",716:"ba0d45cb",850:"5d5341ae"})[e]+".js",__webpack_require__.miniCssF=e=>""+e+".css",__webpack_require__.h=()=>"5446da246069ce0c",__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="minecraft-web-client:";__webpack_require__.l=function(n,r,a,o){if(e[n])return void e[n].push(r);if(void 0!==a)for(var i,s,l=document.getElementsByTagName("script"),c=0;c{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e=[];__webpack_require__.O=(t,n,r,a)=>{if(n){a=a||0;for(var o=e.length;o>0&&e[o-1][2]>a;o--)e[o]=e[o-1];e[o]=[n,r,a];return}for(var i=1/0,o=0;o=a)&&Object.keys(__webpack_require__.O).every(e=>__webpack_require__.O[e](n[l]))?n.splice(l--,1):(s=!1,a"1.3.3",(()=>{var e={980:0};__webpack_require__.f.j=function(t,n){var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise((n,a)=>r=e[t]=[n,a]);n.push(r[2]=a);var o=__webpack_require__.p+__webpack_require__.u(t),i=Error();__webpack_require__.l(o,function(n){if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",i.name="ChunkLoadError",i.type=a,i.request=o,r[1](i)}},"chunk-"+t,t)}},__webpack_require__.O.j=t=>0===e[t];var webpackJsonpCallback=(t,n)=>{var r,a,o=n[0],i=n[1],s=n[2],l=0;if(o.some(t=>0!==e[t])){for(r in i)__webpack_require__.o(i,r)&&(__webpack_require__.m[r]=i[r]);if(s)var c=s(__webpack_require__)}for(t&&t(n);l