var $o=Object.defineProperty,Uo=Object.defineProperties;var Po=Object.getOwnPropertyDescriptors;var Ht=Object.getOwnPropertySymbols;var No=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable;var Wt=(e,t,o)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Vt=(e,t)=>{for(var o in t||(t={}))No.call(t,o)&&Wt(e,o,t[o]);if(Ht)for(var o of Ht(t))Ro.call(t,o)&&Wt(e,o,t[o]);return e},Zt=(e,t)=>Uo(e,Po(t));import{n as ne,l as u,c as d,w as M,a as te,b as Oo,d as T,o as F,r as E,e as V,f as b,g as Q,F as O,h as w,i as m,j as A,t as Do,k as x,m as C,p as f,q as ie,s as W,v as ft,u as ce,x as J,y as Bo,z as Qt,A as nt,B as Z,C as Xe,D as re,E as j,G as Ho,H as Wo,I as Vo,J as Zo,K as jo,L as jt,M as Fo,N as Go,V as Yo}from"./vendor.d0ab50b1.js";const Ko=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const n of i.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&a(n)}).observe(document,{childList:!0,subtree:!0});function o(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerpolicy&&(i.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?i.credentials="include":r.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(r){if(r.ep)return;r.ep=!0;const i=o(r);fetch(r.href,i)}};Ko();const Jt=["chatNoMessages","chatTitle","chatLogin","chatSend","chatPlaceholder","chatErrorDisabled","chatErrorUnknown","serversHeading","markersHeading","markersSkeleton","markersSetSkeleton","markersUnnamed","markersSearchPlaceholder","markersSearchSkeleton","worldsSkeleton","playersSkeleton","playersTitle","playersTitleHidden","playersTitleOtherWorld","playersSearchPlaceholder","playersSearchSkeleton","followingHeading","followingUnfollow","followingTitleUnfollow","followingHidden","linkTitle","loadingTitle","locationRegion","locationChunk","contextMenuCopyLink","contextMenuCenterHere","toggleTitle","mapTitle","layersTitle","copyToClipboardSuccess","copyToClipboardError","loginTitle","loginHeading","loginUsernameLabel","loginPasswordLabel","loginSubmit","loginErrorUnknown","loginErrorDisabled","loginErrorIncorrect","loginSuccess","registerHeading","registerDescription","registerConfirmPasswordLabel","registerCodeLabel","registerSubmit","registerErrorUnknown","registerErrorDisabled","registerErrorVerifyFailed","registerErrorIncorrect","logoutTitle","logoutErrorUnknown","logoutSuccess","closeTitle","showMore"],qo=["chatPlayerJoin","chatPlayerQuit","chatAnonymousJoin","chatAnonymousQuit","chatErrorNotAllowed","chatErrorRequiresLogin","chatErrorCooldown","worldsHeading","playersHeading"],Qo=document.createRange(),Jo=/
/g,Xt=/ยง[0-9a-f]/ig,Xo=/[_\s]?nether([\s_]|$)/i,ea=/(^|[_\s])end([\s_]|$)/i,Et=e=>{const t=e>=0&&e<13700;return{serverTime:e,days:Math.floor((e+8e3)/24e3),hours:(Math.floor(e/1e3)+6)%24,minutes:Math.floor(e/1e3%1*60),seconds:Math.floor(e/1e3%1*60%1*60),day:t,night:!t}},ta=e=>{const t=new URLSearchParams(e.search),o=e.hash.replace("#","");return o?oa(o):aa(t)},oa=e=>{let t,o,a,r;if(e=e.replace("#",""),e[0]==="/"&&e.split("/").length===7){const i=e.split("/");r=void 0,t=i[5],o=i[6],a=[i[1],i[2],i[3]].map(n=>parseFloat(n)).filter(n=>!isNaN(n)&&isFinite(n))}else{const i=e.split(";");t=i[0]||void 0,o=i[1]||void 0,a=(i[2]||"").split(",").map(n=>parseFloat(n)).filter(n=>!isNaN(n)&&isFinite(n)),r=typeof i[3]!="undefined"?parseInt(i[3]):void 0}return eo({world:t?decodeURIComponent(t):void 0,map:o?decodeURIComponent(o):void 0,location:a.length===3?{x:a[0],y:a[1],z:a[2]}:void 0,zoom:r,legacy:!1})},aa=e=>{let t=e.get("worldname")||e.get("world")||void 0,o=e.has("worldname")&&e.get("mapname")||void 0;const a=[e.get("x")||"",e.get("y")||"64",e.get("z")||""].map(i=>parseFloat(i)).filter(i=>!isNaN(i)&&isFinite(i)),r=e.has("zoom")?parseInt(e.get("zoom")):void 0;return t=t?decodeURIComponent(t):void 0,o=o?decodeURIComponent(o):void 0,eo({world:t,map:o,location:a.length===3?{x:a[0],y:a[1],z:a[2]}:void 0,zoom:r,legacy:!0})},eo=e=>(typeof e.zoom!="undefined"&&(isNaN(e.zoom)||e.zoom<0||!isFinite(e.zoom))&&(e.zoom=void 0),e.world?e:null),to=(e,t,o)=>{const a=Math.round(t.x),r=Math.round(t.y),i=Math.round(t.z),n=`${a},${r},${i}`;return e?`#${e.world.name};${e.name};${n};${o}`:""},ra=e=>{const t=document.querySelector(e);t&&t.focus()},Ft=document.createElement("textarea"),na=e=>(Ft.innerHTML=e,Ft.textContent||""),ee=e=>Qo.createContextualFragment(e.replace(Jo," ")).textContent||"",oo=()=>()=>ne(_().state.messages.copyToClipboardSuccess),ao=()=>e=>{ne({type:"error",text:_().state.messages.copyToClipboardError}),console.error("Error copying to clipboard",e)},ia=(e={})=>Object.assign(At(Jt,e),At(qo,e)),sa=(e={})=>At(Jt,e),At=(e,t={})=>{const o={};for(const a of e)o[a]=t[a]||`Missing message: ${a}`;return o},ro=(e,t,o)=>({min:{x:Math.min.apply(null,e),y:Math.min.apply(null,t),z:Math.min.apply(null,o)},max:{x:Math.max.apply(null,e),y:Math.max.apply(null,t),z:Math.max.apply(null,o)}}),xt=e=>{const t={max:{x:-1/0,y:-1/0,z:-1/0},min:{x:1/0,y:1/0,z:1/0}},o=a=>{Array.isArray(a)?a.map(o):(t.max.x=Math.max(a.x,t.max.x),t.max.y=Math.max(a.y,t.max.y),t.max.z=Math.max(a.z,t.max.z),t.min.x=Math.min(a.x,t.min.x),t.min.y=Math.min(a.y,t.min.y),t.min.z=Math.min(a.z,t.min.z))};return e.map(o),t},et=e=>({x:e.min.x+(e.max.x-e.min.x)/2,y:e.min.y+(e.max.y-e.min.y)/2,z:e.min.z+(e.max.z-e.min.z)/2}),la=async()=>{const e=document.createElement("iframe");return e.hidden=!0,e.sandbox.add("allow-scripts"),e.srcdoc=`