diff --git a/404.html b/404.html index 833deeb4..109675fb 100644 --- a/404.html +++ b/404.html @@ -29,7 +29,7 @@ BigInt64Array = function() { } } - +
diff --git a/advancement/index.html b/advancement/index.html index efa05be1..ff40edb1 100644 --- a/advancement/index.html +++ b/advancement/index.html @@ -29,7 +29,7 @@ BigInt64Array = function() { } } - + diff --git a/assets/blockstate/index.html b/assets/blockstate/index.html index c90287e5..46aa22d1 100644 --- a/assets/blockstate/index.html +++ b/assets/blockstate/index.html @@ -29,7 +29,7 @@ BigInt64Array = function() { } } - + diff --git a/assets/howler.ff64ae5d.js b/assets/howler.ff64ae5d.js new file mode 100644 index 00000000..631a16eb --- /dev/null +++ b/assets/howler.ff64ae5d.js @@ -0,0 +1,20 @@ +import{c as S}from"./index.18869b2a.js";function L(b,g){return g.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(u){if(u!=="default"&&!(u in b)){var i=Object.getOwnPropertyDescriptor(r,u);Object.defineProperty(b,u,i.get?i:{enumerable:!0,get:function(){return r[u]}})}})}),Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var O={};/*! + * howler.js v2.2.3 + * howlerjs.com + * + * (c) 2013-2020, James Simpson of GoldFire Studios + * goldfirestudios.com + * + * MIT License + */(function(b){(function(){var g=function(){this.init()};g.prototype={init:function(){var e=this||r;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator=typeof window!="undefined"&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||r;if(e=parseFloat(e),t.ctx||A(),typeof e!="undefined"&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,r.ctx.currentTime);for(var n=0;nf)?m.add(_,"error.invalid_number_range.between",h,p,f):h
f&&m.add(_,"error.invalid_number_range.larger",h,f),h},hook(_,h,...m){var g;return((g=_.number)!==null&&g!==void 0?g:_.base).call(_,{node:this,integer:c,min:p,max:f,between:d,config:o!=null?o:{}},h,...m)}})};e.NumberNode=r;const s=({integer:o,values:a})=>(0,t.Mod)((0,e.NumberNode)({integer:o}),l=>({validate:(u,c,p,f)=>(c=l.validate(u,c,p,f),a.includes(c)||p.add(u,"error.invalid_number_enum",a.join(", ")),c)}));e.NumberEnum=s})(e0);var t0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectNode=e.Case=e.Switch=void 0;const t=zn,n=xn,i=mr,r=yn,s=En;e.Switch=Symbol("switch"),e.Case=Symbol("case");const o=(a,l)=>{var _,h;const m=a,{[_=e.Switch]:u,[h=e.Case]:c}=m,p=Nu(m,[Ko(_),Ko(h)]),f=g=>{if(u===void 0)return p;const v=(0,n.relativePath)(g,u).get(),y=c[v];return ge(ge({},p),y)},d=(g,v)=>{var y;const A=u?(0,n.relativePath)(g,u).get():void 0,b=u?(y=c[A])!==null&&y!==void 0?y:{}:{},S=Object.keys(b),D=l!=null&&l.context?new n.ModelPath(g.getModel(),new n.Path(g.getArray(),[l.context])):g;return(!(l!=null&&l.disableSwitchContext)&&A&&S.includes(v)?D.contextPush(A):D).push(v)};return Je(ge({},t.Base),{type:()=>"object",category:()=>l==null?void 0:l.category,default:()=>({}),keep(){return this.optional()},navigate(g,v){const y=v+1,A=g.getArray();if(A.length<=y)return this;const S=f(g.slice(0,y))[A[y]];return S==null?void 0:S.navigate(g,y)},pathPush(g,v){return d(g,v.toString())},suggest(g,v){const y=f(g),A=Object.keys(typeof v=="object"?v:{});return Object.keys(y).filter(b=>y[b].enabled(g)).filter(b=>!A.includes(b)).map(r.quoteString)},validate(g,v,y,A){if(A.loose&&typeof v!="object"&&(v=A.wrapLists?s.DataModel.wrapLists(this.default()):this.default()),typeof v!="object"||v===null)return y.add(g,"error.expected_object"),v;let b=p;if(u){const B=(0,n.relativePath)(g,u);let M=B.get();if(g.equals(B.pop())){const U=B.last();M=p[U].validate(g.push(U),v[U],new i.Errors,A)}b=ge(ge({},b),c[M])}const S=Object.keys(b),D=S.filter(B=>!b[B].optional()),k=new Set([...D,...Object.keys(v)]),T={};k.forEach(B=>{if(S.includes(B)){if(!b[B].enabled(g))return;const M=b[B].validate(g.push(B),v[B],y,A);!b[B].keep()&&b[B].optional()&&(M===void 0||Array.isArray(M)&&M.length===0||M.constructor===Object&&Object.keys(M).length===0)?delete T[B]:(T[B]=M,g.getModel().set(g.push(B),M,!0))}else T[B]=v[B]});for(const B of Object.getOwnPropertySymbols(v))T[B]=v[B];return T},hook(g,v,...y){var A;return((A=g.object)!==null&&A!==void 0?A:g.base).call(g,{node:this,fields:p,config:l!=null?l:{},filter:u,cases:c,getActiveFields:f,getChildModelPath:d},v,...y)}})};e.ObjectNode=o})(t0);var Co={};Object.defineProperty(Co,"__esModule",{value:!0});Co.Reference=void 0;const nm=(e,t)=>({type(n){return e.get(t).type.bind(this)(n)},category(n){return e.get(t).category.bind(this)(n)},default(){return e.get(t).default.bind(this)()},transform(n,i){return e.get(t).transform(n,i)},enabled(n){return e.get(t).enabled.bind(this)(n)},keep(){return e.get(t).keep.bind(this)()},optional(){return e.get(t).optional.bind(this)()},navigate(n,i){return e.get(t).navigate.bind(this)(n,i)},pathPush(n,i){return e.get(t).pathPush.bind(this)(n,i)},suggest(n,i){return e.get(t).suggest.bind(this)(n,i)},validate(n,i,r,s){return e.get(t).validate.bind(this)(n,i,r,s)},validationOption(n){return e.get(t).validationOption.bind(this)(n)},hook(n,i,...r){return e.get(t).hook.bind(this)(n,i,...r)},activeCase(n,i){return e.get(t).activeCase.bind(this)(n,i)},canUpdate(n,i){return e.get(t).canUpdate.bind(this)(n,i)},update(n,i){return e.get(t).update.bind(this)(n,i)}});Co.Reference=nm;var ko={};Object.defineProperty(ko,"__esModule",{value:!0});ko.StringNode=void 0;const im=zn,rm=yn,sm=En,Gu=e=>!!(e!=null&&e.enum),Yu=e=>!!(e!=null&&e.validator),om=(e,t)=>{const n=()=>{var i,r,s,o;if(Gu(t))return typeof t.enum=="string"?(i=e==null?void 0:e.get(t.enum))!==null&&i!==void 0?i:[]:t.enum;if((t==null?void 0:t.validator)==="resource"){if(typeof t.params.pool=="string"){if(t.params.requireTag)return(r=e==null?void 0:e.get(`tag/${t.params.pool}`).map(l=>`#${l}`))!==null&&r!==void 0?r:[];const a=t.params.pool.replace(/^\$/,"");return[...t.params.allowTag?(s=e==null?void 0:e.get(`tag/${a}`).map(l=>`#${l}`))!==null&&s!==void 0?s:[]:[],...(o=e==null?void 0:e.get(a))!==null&&o!==void 0?o:[]]}return t.params.pool}return[]};return Je(ge({},im.Base),{type:()=>"string",default:()=>"",validate(i,r,s,o){if(o.loose&&typeof r!="string"&&(r=(o.wrapLists?sm.DataModel.wrapLists(this.default()):this.default())||void 0),typeof r!="string")return s.add(i,"error.expected_string"),r;if(Yu(t)){if(t.validator==="resource"&&r.length>0&&!r.includes(":")&&(r=r.startsWith("#")?"#minecraft:"+r.slice(1):"minecraft:"+r),t.validator==="resource"&&typeof r=="string"){let l=r;if(r.startsWith("#")){if(typeof t.params.pool=="string"&&t.params.pool.startsWith("$tag/"))return s.add(i,"error.disallowed_tag_prefix"),r;if(!t.params.allowTag&&!t.params.requireTag)return s.add(i,"error.disallowed_tag"),r;l=l.slice(1)}else if(t.params.requireTag)return s.add(i,"error.expected_tag"),r;if(!l.match(/^(?:[_\-a-z0-9.]*:)?[_\-a-z0-9/.]*$/g))return s.add(i,"error.invalid_resource_location"),r}if(t.validator==="resource"&&(typeof t.params.pool=="string"&&t.params.pool.startsWith("$")||(t.params.allowTag||t.params.requireTag)&&r.startsWith("#")||t.params.isDefinition||t.params.allowUnknown))return r}if(Gu(t)&&t.additional)return r;const a=n();return a.length>0&&!a.includes(r)&&s.add(i,"error.invalid_enum_option",r),r},suggest:()=>n().map(rm.quoteString),validationOption(){return Yu(t)?t:void 0},hook(i,r,...s){var o;return((o=i.string)!==null&&o!==void 0?o:i.base).call(i,{node:this,getValues:n,config:t},r,...s)}})};ko.StringNode=om;var n0={};Object.defineProperty(n0,"__esModule",{value:!0});var nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.CollectionRegistry=nr.SchemaRegistry=void 0;class am{constructor(){this.registry={}}register(t,n){this.registry[t]=n}get(t){const n=this.registry[t];return n===void 0&&console.error(`Tried to access schema "${t}", but that doesn't exist.`),n}}nr.SchemaRegistry=am;class lm{constructor(){this.registry={}}register(t,n){this.registry[t]=n}get(t){const n=this.registry[t];return n===void 0&&console.warn(`Tried to access collection "${t}", but that doesn't exist.`),n!=null?n:[]}}nr.CollectionRegistry=lm;var i0={};Object.defineProperty(i0,"__esModule",{value:!0});(function(e){var t=ji&&ji.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(r,s);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(i,o,a)}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),n=ji&&ji.__exportStar||function(i,r){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&t(r,i,s)};Object.defineProperty(e,"__esModule",{value:!0}),n(En,e),n(xn,e),n(mr,e),n(zn,e),n(So,e),n(Qf,e),n(ms,e),n(Do,e),n(e0,e),n(t0,e),n(Co,e),n(ko,e),n(gs,e),n(n0,e),n(nr,e),n(i0,e)})(q);var et={},_s={},Kt={};function r0(e){return typeof e=="undefined"||e===null}function um(e){return typeof e=="object"&&e!==null}function cm(e){return Array.isArray(e)?e:r0(e)?[]:[e]}function hm(e,t){var n,i,r,s;if(t)for(s=Object.keys(t),n=0,i=s.length;n0&&`\0\r
+\x85\u2028\u2029`.indexOf(this.buffer.charAt(r-1))===-1;)if(r-=1,this.position-r>n/2-1){i=" ... ",r+=5;break}for(s="",o=this.position;o >1}else{for(f=1,p=0;p>1}v--,v==0&&(v=Math.pow(2,A),A++),delete _[g]}else for(f=d[g],p=0;p>1;v--,v==0&&(v=Math.pow(2,A),A++),d[m]=y++,g=String(h)}if(g!==""){if(Object.prototype.hasOwnProperty.call(_,g)){if(g.charCodeAt(0)<256){for(p=0;p>1}else{for(f=1,p=0;p>1}v--,v==0&&(v=Math.pow(2,A),A++),delete _[g]}else for(f=d[g],p=0;p>1;v--,v==0&&(v=Math.pow(2,A),A++)}for(f=2,p=0;p>1;for(;;)if(S=S<<1,D==u-1){b.push(c(S));break}else D++;return b.join("")},decompress:function(l){return l==null?"":l==""?null:a._decompress(l.length,32768,function(u){return l.charCodeAt(u)})},_decompress:function(l,u,c){var p=[],f=4,d=4,_=3,h="",m=[],g,v,y,A,b,S,D,k={val:c(0),position:u,index:1};for(g=0;g<3;g+=1)p[g]=g;for(y=0,b=Math.pow(2,2),S=1;S!=b;)A=k.val&k.position,k.position>>=1,k.position==0&&(k.position=u,k.val=c(k.index++)),y|=(A>0?1:0)*S,S<<=1;switch(y){case 0:for(y=0,b=Math.pow(2,8),S=1;S!=b;)A=k.val&k.position,k.position>>=1,k.position==0&&(k.position=u,k.val=c(k.index++)),y|=(A>0?1:0)*S,S<<=1;D=n(y);break;case 1:for(y=0,b=Math.pow(2,16),S=1;S!=b;)A=k.val&k.position,k.position>>=1,k.position==0&&(k.position=u,k.val=c(k.index++)),y|=(A>0?1:0)*S,S<<=1;D=n(y);break;case 2:return""}for(p[3]=D,v=D,m.push(D);;){if(k.index>l)return"";for(y=0,b=Math.pow(2,_),S=1;S!=b;)A=k.val&k.position,k.position>>=1,k.position==0&&(k.position=u,k.val=c(k.index++)),y|=(A>0?1:0)*S,S<<=1;switch(D=y){case 0:for(y=0,b=Math.pow(2,8),S=1;S!=b;)A=k.val&k.position,k.position>>=1,k.position==0&&(k.position=u,k.val=c(k.index++)),y|=(A>0?1:0)*S,S<<=1;p[d++]=n(y),D=d-1,f--;break;case 1:for(y=0,b=Math.pow(2,16),S=1;S!=b;)A=k.val&k.position,k.position>>=1,k.position==0&&(k.position=u,k.val=c(k.index++)),y|=(A>0?1:0)*S,S<<=1;p[d++]=n(y),D=d-1,f--;break;case 2:return m.join("")}if(f==0&&(f=Math.pow(2,_),_++),p[D])h=p[D];else if(D===d)h=v+v.charAt(0);else return null;m.push(h),p[d++]=v+h.charAt(0),f--,v=h,f==0&&(f=Math.pow(2,_),_++)}}};return a}();e!=null&&(e.exports=t)})(Z0);var K0=Z0.exports;const Mv="https://z15g7can.directus.app/items",Ka="share",vc=new Map;async function Ov(e,t,n,i){try{const r=K0.compressToBase64(JSON.stringify(n)),s=btoa(JSON.stringify(n));console.log("Compression rate",s.length/r.length);const o=JSON.stringify({data:r,type:e,version:t,show_preview:i});let a=vc.get(o);if(!a){const u=await q0("/snippets",o);vc.set(o,u.id),a=u.id}const l=Ne.generators.find(u=>u.id===e);return`${location.protocol}//${location.host}/${l.url}/?${Ka}=${a}`}catch(r){throw r instanceof Error&&(r.message=`Error creating share link: ${r.message}`),r}}async function xc(e){var t;try{const n=await q0(`/snippets/${e}`);return Je(ge({},n),{data:JSON.parse((t=K0.decompressFromBase64(n.data))!=null?t:"{}")})}catch(n){throw n instanceof Error&&(n.message=`Error loading shared content: ${n.message}`),n}}async function q0(e,t){var r,s,o;const i=await(await fetch(Mv+e,t?{method:"post",headers:{"Content-Type":"application/json"},body:t}:void 0)).json();if(i.data)return i.data;throw new Error((o=(s=(r=i.errors)==null?void 0:r[0])==null?void 0:s.message)!=null?o:"Unknown error")}var Q0=JSON.parse('{"add":"Add","add_bottom":"Add to bottom","add_top":"Add to top","advancement":"Advancement","any_version":"Any","assets":"Assets","block_definition":"Blockstate","changelog.search":"Search changes","changelog.no_results":"No changes","chat_type":"Chat Type","collapse":"Collapse","collapse_all":"Hold %0% to collapse all","configure_layers":"Configure layers","copy":"Copy","copy_share":"Copy share link","copied":"Copied!","copy_context":"Copy context","dimension_type":"Dimension Type","dimension":"Dimension","disabled":"Disabled","download":"Download","duplicate":"Duplicate","enabled":"Enabled","entries_hidden":"%0% entries hidden","entries_hidden.more":"Show %0% more","entries_hidden.all":"Show all","expand":"Expand","expand_all":"Hold %0% to expand all","feature.decorated.decorators":"Decorators","feature.decorated.decorators.entry":"Decorator","follow_reference":"Follow reference","format.json":"JSON","format.yaml":"YAML","fields":"Fields","generate_new_seed":"Generate new seed","github":"GitHub","guides.all":"All guides","guides.search":"Search guides","guides.no_results.version":"No guides for this version","guides.no_results.query":"No guides for this query","hide_output":"Hide output","hide_preview":"Hide preview","home":"Home","import":"Import","indentation.2_spaces":"2 spaces","indentation.4_spaces":"4 spaces","indentation.minified":"Minified","indentation.tabs":"Tabs","item_modifier":"Item Modifier","language":"Language","layer.biomes":"Biomes","layer.temperature":"Temperature","layer.humidity":"Humidity","layer.continentalness":"Continentalness","layer.erosion":"Erosion","layer.weirdness":"Weirdness","layer.offset":"Offset","layer.factor":"Factor","layer.jaggedness":"Jaggedness","highlighting":"Highlighting","loading":"Loading...","loot_table":"Loot Table","model":"Model","more":"More","move_down":"Move down","move_up":"Move up","not_found.description":"The page you were looking for does not exist.","no_presets":"No presets","output_settings":"Output settings","predicate":"Predicate","recipe":"Recipe","redo":"Redo","reset":"Reset","restore_backup":"Restore last backup","settings":"Settings","settings.fields.description":"Customize advanced field settings","settings.fields.path":"Context","settings.fields.name":"Name","share":"Share","theme":"Theme","theme.dark":"Dark","theme.light":"Light","theme.system":"System","title.changelog":"Technical Changelog","title.generator":"%0% Generator","title.generator_category":"%0% Generators","title.guides":"Data Pack Guides","title.home":"Data Pack Generators","title.project":"%0% Project","title.sounds":"Sound Explorer","title.versions":"Versions Explorer","presets":"Presets","preview":"Visualize","preview.auto_scroll":"Auto scroll","preview.biome":"Biome","preview.scale":"Scale","preview.depth":"Depth","preview.factor":"Factor","preview.offset":"Offset","preview.peaks":"Peaks","preview.width":"Width","project.delete_file":"Delete file","project.go_to":"Go to project","project.new_file":"New file","project.no_files":"No files","project.search":"Search project","project.search_drafts":"Search drafts","project.unsaved_file":"Unsaved file","remove":"Remove","search":"Search","show_output":"Show output","show_preview":"Show preview","sounds.play":"Play","sounds.play_sound":"Play sound","sounds.play_all":"Play all","sounds.search":"Search sounds","sounds.download_function":"Download Mcfunction","sounds.delay":"Delay","sounds.pitch":"Pitch","sounds.volume":"Volume","sounds.copy_command":"Copy command","sounds.add_sound":"Add sound","sounds.remove_sound":"Remove sound","sounds.unknown_sound":"Unknown sound","sounds.loading_sound":"Loading sound","source_placeholder":"Paste raw %0% content here","switch_generator":"Switch generator","switch_version":"Switch version","terrain_settings":"Terrain settings","text_component":"Text Component","undo":"Undo","versions.search":"Search versions","versions.no_results":"No results","versions.all":"All versions","versions.previous":"Previous","versions.next":"Next","versions.released":"Released","versions.release_target":"Release target","versions.data_version":"Data version","versions.protocol_version":"Protocol version","versions.pack_format":"Pack format","versions.data_pack_format":"Data pack format","versions.resource_pack_format":"Resource pack format","versions.technical_changes":"Technical changes","versions.discussion":"Discussion","world":"World Settings","worldgen":"Worldgen","worldgen/biome":"Biome","worldgen/configured_carver":"Carver","worldgen/configured_feature":"Feature","worldgen/density_function":"Density Function","worldgen/placed_feature":"Placed Feature","worldgen/noise":"Noise","worldgen/noise_settings":"Noise Settings","worldgen/processor_list":"Processor List","worldgen/configured_structure_feature":"Structure Feature","worldgen/structure":"Structure","worldgen/structure_set":"Structure Set","worldgen/configured_surface_builder":"Surface Builder","worldgen/template_pool":"Template Pool","worldgen/world_preset":"World Preset","worldgen/flat_level_generator_preset":"Flat World Preset","zoom_in":"Zoom in","zoom_out":"Zoom out"}'),Lv=Object.freeze(Object.defineProperty({__proto__:null,default:Q0},Symbol.toStringTag,{value:"Module"})),pt;(e=>{e.ID_LANGUAGE="language",e.ID_THEME="theme",e.ID_VERSION="schema_version",e.ID_INDENT="indentation",e.ID_FORMAT="output_format",e.ID_HIGHLIGHTING="output_highlighting",e.ID_SOUNDS_VERSION="minecraft_sounds_version",e.ID_PROJECTS="misode_projects",e.ID_BACKUPS="misode_generator_backups";function t(){var y;return(y=localStorage.getItem(e.ID_LANGUAGE))!=null?y:"en"}e.getLanguage=t;function n(){var y;return(y=localStorage.getItem(e.ID_THEME))!=null?y:"dark"}e.getTheme=n;function i(){const y=localStorage.getItem(e.ID_VERSION);return y&&G0.includes(y)?y:"1.18.2"}e.getVersion=i;function r(){var y;return(y=localStorage.getItem(e.ID_INDENT))!=null?y:"2_spaces"}e.getIndent=r;function s(){var y;return(y=localStorage.getItem(e.ID_FORMAT))!=null?y:"json"}e.getFormat=s;function o(){return localStorage.getItem(e.ID_HIGHLIGHTING)!=="false"}e.getHighlighting=o;function a(){var y;return(y=localStorage.getItem(e.ID_SOUNDS_VERSION))!=null?y:"latest"}e.getSoundsVersion=a;function l(){const y=localStorage.getItem(e.ID_PROJECTS);return y?JSON.parse(y):[ho]}e.getProjects=l;function u(y){var b;return JSON.parse((b=localStorage.getItem(e.ID_BACKUPS))!=null?b:"{}")[y]}e.getBackup=u;function c(y){y&&localStorage.setItem(e.ID_LANGUAGE,y)}e.setLanguage=c;function p(y){y&&localStorage.setItem(e.ID_THEME,y)}e.setTheme=p;function f(y){y&&localStorage.setItem(e.ID_VERSION,y)}e.setVersion=f;function d(y){y&&localStorage.setItem(e.ID_INDENT,y)}e.setIndent=d;function _(y){y&&localStorage.setItem(e.ID_FORMAT,y)}e.setFormat=_;function h(y){y!==void 0&&localStorage.setItem(e.ID_HIGHLIGHTING,y.toString())}e.setHighlighting=h;function m(y){y&&localStorage.setItem(e.ID_SOUNDS_VERSION,y)}e.setSoundsVersion=m;function g(y){y&&localStorage.setItem(e.ID_PROJECTS,JSON.stringify(y))}e.setProjects=g;function v(y,A){var S;const b=JSON.parse((S=localStorage.getItem(e.ID_BACKUPS))!=null?S:"{}");A===void 0?delete b[y]:b[y]=A,localStorage.setItem(e.ID_BACKUPS,JSON.stringify(b))}e.setBackup=v})(pt||(pt={}));function Rv(e){switch(e){case"../../../node_modules/@mcschema/locales/src/cs.json":return Ce(()=>import("./cs.967a01eb.js"),[]);case"../../../node_modules/@mcschema/locales/src/de.json":return Ce(()=>import("./de.8e2383d8.js"),[]);case"../../../node_modules/@mcschema/locales/src/en.json":return Ce(()=>import("./en.4ab98cb7.js"),[]);case"../../../node_modules/@mcschema/locales/src/es.json":return Ce(()=>import("./es.6b3597bc.js"),[]);case"../../../node_modules/@mcschema/locales/src/fr.json":return Ce(()=>import("./fr.e316b1e2.js"),[]);case"../../../node_modules/@mcschema/locales/src/it.json":return Ce(()=>import("./it.7ff123cd.js"),[]);case"../../../node_modules/@mcschema/locales/src/ja.json":return Ce(()=>import("./ja.3170354d.js"),[]);case"../../../node_modules/@mcschema/locales/src/pl.json":return Ce(()=>import("./pl.ae1f6791.js"),[]);case"../../../node_modules/@mcschema/locales/src/pt.json":return Ce(()=>import("./pt.31e14993.js"),[]);case"../../../node_modules/@mcschema/locales/src/ru.json":return Ce(()=>import("./ru.1298edc9.js"),[]);case"../../../node_modules/@mcschema/locales/src/sk.json":return Ce(()=>import("./sk.d4265232.js"),[]);case"../../../node_modules/@mcschema/locales/src/zh-cn.json":return Ce(()=>import("./zh-cn.4129665a.js"),[]);case"../../../node_modules/@mcschema/locales/src/zh-tw.json":return Ce(()=>import("./zh-tw.bdc36a24.js"),[]);default:return new Promise(function(t,n){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}function Pv(e){switch(e){case"../../locales/de.json":return Ce(()=>import("./de.a269acce.js"),[]);case"../../locales/en.json":return Ce(()=>Promise.resolve().then(function(){return Lv}),void 0);case"../../locales/es.json":return Ce(()=>import("./es.833a9774.js"),[]);case"../../locales/fr.json":return Ce(()=>import("./fr.f5531eea.js"),[]);case"../../locales/it.json":return Ce(()=>import("./it.fd9a8268.js"),[]);case"../../locales/ja.json":return Ce(()=>import("./ja.167de97b.js"),[]);case"../../locales/pl.json":return Ce(()=>import("./pl.3a9fb38c.js"),[]);case"../../locales/pt.json":return Ce(()=>import("./pt.1a04bd2d.js"),[]);case"../../locales/ru.json":return Ce(()=>import("./ru.578070fe.js"),[]);case"../../locales/sk.json":return Ce(()=>import("./sk.96bbf351.js"),[]);case"../../locales/zh-cn.json":return Ce(()=>import("./zh-cn.e3c47b68.js"),[]);case"../../locales/zh-tw.json":return Ce(()=>import("./zh-tw.42e9d37d.js"),[]);default:return new Promise(function(t,n){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}const ed=fr({lang:"none",locale:e=>e,changeLanguage:()=>{}}),Or={fallback:Q0};function Fe(e,t,...n){var r,s,o,a,l;const i=(l=(a=(o=(r=Or[e])==null?void 0:r[t])!=null?o:(s=Or.en)==null?void 0:s[t])!=null?a:Or.fallback[t])!=null?l:t;return $v(i,n)}function $v(e,t){return e.replace(/%\d+%/g,n=>{const i=parseInt(n.slice(1,-1));return(t==null?void 0:t[i])!==void 0?t[i]:n})}async function ia(e){if(Or[e])return;const t=Ne.languages.find(r=>r.code===e);if(!t)return;const n=await Pv(`../../locales/${e}.json`),i=t.schemas!==!1&&await Rv(`../../../node_modules/@mcschema/locales/src/${e}.json`);Or[e]=ge(ge({},n.default),i.default)}function We(){return pr(ed)}function zv({children:e}){const[t,n]=Y("none"),i=mt((o,...a)=>Fe(t,o,...a),[t]),r=mt(async o=>{await ia(o),it.setLanguage(o),pt.setLanguage(o),n(o)},[]);me(()=>{(async()=>{const o=pt.getLanguage();await Promise.all([ia("en"),...o!=="en"?[ia(o)]:[]]),n(o)})()},[]);const s={lang:t,locale:i,changeLanguage:r};return w(ed.Provider,{value:s},e)}const ho={name:"Drafts",namespace:"draft",files:[]},td=fr({project:ho,changeProject:()=>{},updateProject:()=>{},updateFile:()=>!1,openFile:()=>{},closeFile:()=>{}});function nd(){return pr(td)}function Uv({children:e}){const[t,n]=Y(pt.getProjects()),[i,r]=Y(ho.name),s=He(()=>{var h;return(h=t.find(m=>m.name===i))!=null?h:ho},[t,i]),[o,a]=Y(void 0),l=He(()=>{if(!!o)return s.files.find(h=>h.type===o[0]&&h.id===o[1])},[s,o]),u=mt(h=>{pt.setProjects(h),n(h)},[]),c=mt(h=>{u(t.map(m=>m.name===i?ge(ge({},m),h):m))},[t,i]),p=mt((h,m,g)=>{var v;if(!g.id)c({files:s.files.filter(y=>y.type!==h||y.id!==m)});else{const y=g.id.includes(":")?g.id:`${s.namespace}:${g.id}`,A=s.files.some(b=>b.type===h&&b.id===y);if(m){if((l==null?void 0:l.id)===m&&m!==y&&A)return!1;c({files:s.files.map(b=>b.type===h&&b.id===m?Je(ge(ge({},b),g),{id:y}):b)}),(l==null?void 0:l.id)===m&&a([h,y])}else{if(A)return!1;c({files:[...s.files,{type:h,id:y,data:(v=g.data)!=null?v:{}}]}),a([h,y])}}return!0},[c,s,l]),f=mt((h,m)=>{const g=Ne.generators.find(v=>v.id===h||v.path===h);if(!g)throw new Error(`Cannot find generator of type ${h}`);a([g.id,m]),ii(Rn(g.url))},[]),d=mt(()=>{a(void 0)},[]),_={project:s,file:l,changeProject:r,updateProject:c,updateFile:p,openFile:f,closeFile:d};return w(td.Provider,{value:_},e)}function jv(e){var r;const[t,n]=e.id.includes(":")?e.id.split(":"):["minecraft",e.id],i=Ne.generators.find(s=>s.id===e.type);if(!i)throw new Error(`Cannot find generator of type ${e.type}`);return`data/${t}/${(r=i.path)!=null?r:i.id}/${n}`}const id=fr({theme:"dark",actualTheme:"dark",changeTheme:()=>{}});function rd(){return pr(id)}function Hv({children:e}){const[t,n]=Y(pt.getTheme()),i=fc("(prefers-color-scheme: light)"),r=fc("(prefers-color-scheme: dark)");me(()=>{document.documentElement.setAttribute("data-theme",t)},[t]);const s=mt(a=>{it.setTheme(a),pt.setTheme(a),n(a)},[]);me(()=>{it.setPrefersColorScheme(i?"light":r?"dark":"none")},[i,r]);const o={theme:t,actualTheme:t==="light"||t!=="dark"&&i?"light":"dark",changeTheme:s};return w(id.Provider,{value:o},e)}const Vv=3,sd=fr({title:"",changeTitle:()=>{}});function sn(e,t){const n=pr(sd);return me(()=>{e&&n.changeTitle(e,t)},[e,t]),n}function Xv({children:e}){const{locale:t}=We(),[n,i]=Y(t("title.home")),r=mt((o,a)=>{a!=null||(a=Ne.versions.map(u=>u.id));const l=a.slice(-Vv);document.title=`${o} Minecraft ${l.join(", ")}`,i(o)},[]),s={title:n,changeTitle:r};return w(sd.Provider,{value:s},e)}const Jv="version",od=fr({version:"1.18.2",changeVersion:()=>{},changeTargetVersion:()=>{}});function _r(){return pr(od)}function Gv({children:e}){const[t,n]=Y(pt.getVersion()),[i,r]=Jr(Jv);me(()=>{G0.includes(i)&&t!==i&&n(i)},[t,i]);const s=mt((a,l=!0,u=!1)=>{(u||i)&&r(a,!0),l&&(it.setVersion(a),pt.setVersion(a)),n(a)},[i]),o={version:t,changeVersion:s,changeTargetVersion:r};return w(od.Provider,{value:o},e)}/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Yv=4,yc=0,wc=1,Wv=2;function vr(e){let t=e.length;for(;--t>=0;)e[t]=0}const Zv=0,ad=1,Kv=2,qv=3,Qv=258,Gl=29,bs=256,Gr=bs+1+Gl,Zi=30,Yl=19,ld=2*Gr+1,fi=15,ra=16,ex=7,Wl=256,ud=16,cd=17,hd=18,qa=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Gs=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),tx=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),fd=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nx=512,Fn=new Array((Gr+2)*2);vr(Fn);const Lr=new Array(Zi*2);vr(Lr);const Yr=new Array(nx);vr(Yr);const Wr=new Array(Qv-qv+1);vr(Wr);const Zl=new Array(Gl);vr(Zl);const fo=new Array(Zi);vr(fo);function sa(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let dd,pd,md;function oa(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const gd=e=>e<256?Yr[e]:Yr[256+(e>>>7)],Zr=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Nt=(e,t,n)=>{e.bi_valid>ra-n?(e.bi_buf|=t< 127?n-256:n;for(let n=0;n<256;n+=1){const i=t.nextInt(256-n),r=this.p[n];this.p[n]=this.p[n+i],this.p[n+i]=r}}sample(t,n,i,r=0,s=0){const o=t+this.xo,a=n+this.yo,l=i+this.zo,u=Math.floor(o),c=Math.floor(a),p=Math.floor(l),f=o-u,d=a-c,_=l-p;let h=0;if(r!==0){const m=s>=0&&s>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[i];return r=s%3,r===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):r===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):r===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function gg(e){return hi&&hi.isBuffer(e)}var _g=new fg("tag:yaml.org,2002:binary",{kind:"scalar",resolve:dg,construct:pg,predicate:gg,represent:mg}),vg=gt,xg=Object.prototype.hasOwnProperty,yg=Object.prototype.toString;function wg(e){if(e===null)return!0;var t=[],n,i,r,s,o,a=e;for(n=0,i=a.length;n3||t[t.length-i.length-1]!=="/"))}function Hg(e){var t=e,n=/\/([gim]*)$/.exec(e),i="";return t[0]==="/"&&(n&&(i=n[1]),t=t.slice(1,t.length-i.length-1)),new RegExp(t,i)}function Vg(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function Xg(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Jg=new Ug("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:jg,construct:Hg,predicate:Xg,represent:Vg}),ao;try{var Gg=Kf;ao=Gg("esprima")}catch{typeof window!="undefined"&&(ao=window.esprima)}var Yg=gt;function Wg(e){if(e===null)return!1;try{var t="("+e+")",n=ao.parse(t,{range:!0});return!(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function Zg(e){var t="("+e+")",n=ao.parse(t,{range:!0}),i=[],r;if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return n.body[0].expression.params.forEach(function(s){i.push(s.name)}),r=n.body[0].expression.body.range,n.body[0].expression.body.type==="BlockStatement"?new Function(i,t.slice(r[0]+1,r[1]-1)):new Function(i,"return "+t.slice(r[0],r[1]))}function Kg(e){return e.toString()}function qg(e){return Object.prototype.toString.call(e)==="[object Function]"}var Qg=new Yg("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Wg,construct:Zg,predicate:qg,represent:Kg}),qu=gr,Fo=qu.DEFAULT=new qu({include:[xs],explicit:[zg,Jg,Qg]}),Bn=Kt,c0=vs,e_=pm,h0=xs,t_=Fo,ri=Object.prototype.hasOwnProperty,lo=1,f0=2,d0=3,uo=4,Qo=1,n_=2,Qu=3,i_=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r_=/[\x85\u2028\u2029]/,s_=/[,\[\]\{\}]/,p0=/^(?:!|!!|![a-z\-]+!)$/i,m0=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ec(e){return Object.prototype.toString.call(e)}function wn(e){return e===10||e===13}function mi(e){return e===9||e===32}function It(e){return e===9||e===32||e===10||e===13}function Vi(e){return e===44||e===91||e===93||e===123||e===125}function o_(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function a_(e){return e===120?2:e===117?4:e===85?8:0}function l_(e){return 48<=e&&e<=57?e-48:-1}function tc(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
+`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function u_(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var g0=new Array(256),_0=new Array(256);for(var Ii=0;Ii<256;Ii++)g0[Ii]=tc(Ii)?1:0,_0[Ii]=tc(Ii);function c_(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||t_,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function v0(e,t){return new c0(t,new e_(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function de(e,t){throw v0(e,t)}function co(e,t){e.onWarning&&e.onWarning.call(null,v0(e,t))}var nc={YAML:function(t,n,i){var r,s,o;t.version!==null&&de(t,"duplication of %YAML directive"),i.length!==1&&de(t,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),r===null&&de(t,"ill-formed argument of the YAML directive"),s=parseInt(r[1],10),o=parseInt(r[2],10),s!==1&&de(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&co(t,"unsupported YAML version of the document")},TAG:function(t,n,i){var r,s;i.length!==2&&de(t,"TAG directive accepts exactly two arguments"),r=i[0],s=i[1],p0.test(r)||de(t,"ill-formed tag handle (first argument) of the TAG directive"),ri.call(t.tagMap,r)&&de(t,'there is a previously declared suffix for "'+r+'" tag handle'),m0.test(s)||de(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[r]=s}};function qn(e,t,n,i){var r,s,o,a;if(t("0"+e.toString(16)).substr(-2);function gi(e=12){var t=new Uint8Array(e/2);return window.crypto.getRandomValues(t),Array.from(t,av).join("")}function Ln(){return BigInt(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))}function P0(e){const t=Math.floor(Math.random()*4294967296)-2147483648,n=e.get(new q.Path(["dimensions"]));e.set(new q.Path(["seed"]),t,!0),Ci(n)&&Object.keys(n).forEach(i=>{e.set(new q.Path(["dimensions",i,"generator","seed"]),t,!0),e.set(new q.Path(["dimensions",i,"generator","biome_source","seed"]),t,!0)}),e.set(new q.Path(["placement","salt"]),Math.abs(t),!0),e.set(new q.Path(["generator","seed"]),t,!0),e.set(new q.Path(["generator","biome_source","seed"]),t)}function $0(e){let t=0;for(let n=0;nc.id===t);a=(i={version:u==null?void 0:u.id,pack_format:u==null?void 0:u.pack_format.toString()}[l])!=null?i:""}e=e.substring(0,r)+a+e.substring(s+2),n=r}return e}function hv(e,t){let n=0,i=0;for(;i++<1e3;){const r=e.indexOf("#}",t),s=e.indexOf("{#",t);if(r<0)return console.warn("Missing closing bracket"),e.length;if(s<0){if(n===0)return r;n-=1,t=r+2}else if(s>1;o>=1;o--)aa(e,n,o);u=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],aa(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,n[u*2]=n[o*2]+n[a*2],e.depth[u]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,n[o*2+1]=n[a*2+1]=u,e.heap[1]=u++,aa(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],rx(e,t),vd(n,l,e.bl_count)},Ac=(e,t,n)=>{let i,r=-1,s,o=t[0*2+1],a=0,l=7,u=4;for(o===0&&(l=138,u=3),t[(n+1)*2+1]=65535,i=0;i<=n;i++)s=o,o=t[(i+1)*2+1],!(++a>>8^r[(e^t[o])&255];return e^-1};var ft=bx,qr={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Lo={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Ax,_tr_stored_block:Sx,_tr_flush_block:Dx,_tr_tally:Qn,_tr_align:Cx}=xx,{Z_NO_FLUSH:ki,Z_PARTIAL_FLUSH:kx,Z_FULL_FLUSH:Fx,Z_FINISH:ei,Z_BLOCK:Cc,Z_OK:fn,Z_STREAM_END:kc,Z_STREAM_ERROR:Gt,Z_DATA_ERROR:Ix,Z_BUF_ERROR:la,Z_DEFAULT_COMPRESSION:Tx,Z_FILTERED:Bx,Z_HUFFMAN_ONLY:Fs,Z_RLE:Nx,Z_FIXED:Mx,Z_DEFAULT_STRATEGY:Ox,Z_UNKNOWN:Lx,Z_DEFLATED:Ro}=Lo,Rx=9,Px=15,$x=8,zx=29,Ux=256,el=Ux+1+zx,jx=30,Hx=19,Vx=2*el+1,Xx=15,ke=3,Yn=258,rn=Yn+ke+1,Jx=32,Po=42,tl=69,Ys=73,Ws=91,Zs=103,di=113,Cr=666,ht=1,As=2,Ei=3,xr=4,Gx=3,Wn=(e,t)=>(e.msg=qr[t],t),Fc=e=>(e<<1)-(e>4?9:0),Jn=e=>{let t=e.length;for(;--t>=0;)e[t]=0};let Yx=(e,t,n)=>(t<e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ke?(n=Qn(e,1,e.match_length-ke),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Qn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Et(e,!1),e.strm.avail_out===0))return ht}return e.insert=0,t===ei?(Et(e,!0),e.strm.avail_out===0?Ei:xr):e.last_lit&&(Et(e,!1),e.strm.avail_out===0)?ht:As},qx=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(bi(e),e.lookahead===0)){if(t===ki)return ht;break}if(e.match_length=0,n=Qn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Et(e,!1),e.strm.avail_out===0))return ht}return e.insert=0,t===ei?(Et(e,!0),e.strm.avail_out===0?Ei:xr):e.last_lit&&(Et(e,!1),e.strm.avail_out===0)?ht:As};function ln(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}const kr=[new ln(0,0,0,0,Zx),new ln(4,4,8,4,ua),new ln(4,5,16,8,ua),new ln(4,6,32,32,ua),new ln(4,4,16,16,Ni),new ln(8,16,32,32,Ni),new ln(8,16,128,128,Ni),new ln(8,32,128,256,Ni),new ln(32,128,258,1024,Ni),new ln(32,258,258,4096,Ni)],Qx=e=>{e.window_size=2*e.w_size,Jn(e.head),e.max_lazy_match=kr[e.level].max_lazy,e.good_match=kr[e.level].good_length,e.nice_match=kr[e.level].nice_length,e.max_chain_length=kr[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ke-1,e.match_available=0,e.ins_h=0};function ey(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ro,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Vx*2),this.dyn_dtree=new Uint16Array((2*jx+1)*2),this.bl_tree=new Uint16Array((2*Hx+1)*2),Jn(this.dyn_ltree),Jn(this.dyn_dtree),Jn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Xx+1),this.heap=new Uint16Array(2*el+1),Jn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*el+1),Jn(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const bd=e=>{if(!e||!e.state)return Wn(e,Gt);e.total_in=e.total_out=0,e.data_type=Lx;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Po:di,e.adler=t.wrap===2?0:1,t.last_flush=ki,Ax(t),fn},Ad=e=>{const t=bd(e);return t===fn&&Qx(e.state),t},ty=(e,t)=>!e||!e.state||e.state.wrap!==2?Gt:(e.state.gzhead=t,fn),Sd=(e,t,n,i,r,s)=>{if(!e)return Gt;let o=1;if(t===Tx&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),r<1||r>Rx||n!==Ro||i<8||i>15||t<0||t>9||s<0||s>Mx)return Wn(e,Gt);i===8&&(i=9);const a=new ey;return e.state=a,a.strm=e,a.wrap=o,a.gzhead=null,a.w_bits=i,a.w_size=1<t.initializeForFirstCellX())}advanceCellX(t){this.interpolators.forEach(n=>n.advanceCellX(t))}selectCellYZ(t,n){this.interpolators.forEach(i=>i.selectCellYZ(t,n))}updateForY(t){this.interpolators.forEach(n=>n.updateForY(t))}updateForX(t){this.interpolators.forEach(n=>n.updateForX(t))}updateForZ(t){this.interpolators.forEach(n=>n.updateForZ(t))}swapSlices(){this.interpolators.forEach(t=>t.swapSlices())}updateNoiseAndGenerateBaseState(t,n,i){return this.baseNoise(t,n,i)}}(function(e){e.create=function(t,n,i){return{offset:t,factor:n,jaggedness:i}}})(wl||(wl={})),function(e){const t=new Map;function n(i,r,s){const o=Object.assign({name:`minecraft:${i}`},qi.create(r,s));return t.set(i,o),o}e.TEMPERATURE=n("temperature",-10,[1.5,0,1,0,0,0]),e.VEGETATION=n("vegetation",-8,[1,1,0,0,0,0]),e.CONTINENTALNESS=n("continentalness",-9,[1,1,2,2,2,1,1,1,1]),e.EROSION=n("erosion",-9,[1,1,0,1,1]),e.TEMPERATURE_LARGE=n("temperature_large",-12,[1.5,0,1,0,0,0]),e.VEGETATION_LARGE=n("vegetation_large",-10,[1,1,0,0,0,0]),e.CONTINENTALNESS_LARGE=n("continentalness_large",-11,[1,1,2,2,2,1,1,1,1]),e.EROSION_LARGE=n("erosion_large",-11,[1,1,0,1,1]),e.RIDGE=n("ridge",-7,[1,2,1,0,0,0]),e.SHIFT=n("offset",-3,[1,1,1,0]),e.PILLAR=n("pillar",-7,[1,1]),e.PILLAR_RARENESS=n("pillar_rareness",-8,[1]),e.PILLAR_THICKNESS=n("pillar_thickness",-8,[1]),e.SPAGHETTI_2D=n("spaghetti_2d",-8,[1]),e.SPAGHETTI_2D_ELEVATION=n("spaghetti_2d_elevation",-8,[1]),e.SPAGHETTI_2D_MODULATOR=n("spaghetti_2d_modulator",-8,[1]),e.SPAGHETTI_2D_THICKNESS=n("spaghetti_2d_thickness",-8,[1]),e.SPAGHETTI_3D_1=n("spaghetti_3d_1",-8,[1]),e.SPAGHETTI_3D_2=n("spaghetti_3d_2",-8,[1]),e.SPAGHETTI_3D_RARITY=n("spaghetti_3d_rarity",-8,[1]),e.SPAGHETTI_3D_THICKNESS=n("spaghetti_3d_thickness",-8,[1]),e.SPAGHETTI_ROUGHNESS=n("spaghetti_roughness",-8,[1]),e.SPAGHETTI_ROUGHNESS_MODULATOR=n("spaghetti_roughness_modulator",-8,[1]),e.CAVE_ENTRANCE=n("cave_entrance",-7,[.4,.5,1]),e.CAVE_LAYER=n("cave_layer",-8,[1]),e.CAVE_CHEESE=n("cave_cheese",-8,[.5,1,2,1,2,1,0,2,0]),e.NOODLE=n("noodle",-8,[1]),e.NOODLE_THICKNESS=n("noodle_thickness",-8,[1]),e.NOODLE_RIDGE_A=n("noodle_ridge_a",-7,[1]),e.NOODLE_RIDGE_B=n("noodle_ridge_b",-7,[1]),e.JAGGED=n("jagged",-16,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),e.SURFACE=n("surface",-6,[1,1,1]),e.SURFACE_SECONDARY=n("surface_secondary",-6,[1,1,0,1]),e.instantiate=function(i,r){return new Mn(i.fromHashOf(r.name),r)}}(se||(se={}));class Ew{constructor(t,n,i,r=!1){this.settings=t,this.isNoiseCavesEnabled=n;const s=t.hasLargeBiomes,o=(r?new Ye(i):Xe.create(i)).forkPositional();r?(this.blendedNoise=new Ih(new Ye(i),t.sampling,Qe.cellWidth(t),Qe.cellHeight(t)),this.temperatureNoise=new Mn(new Ye(i),qi.create(-7,[1,1])),this.humidityNoise=new Mn(new Ye(i+BigInt(1)),qi.create(-7,[1,1])),this.offsetNoise=new Mn(new Ye(i+BigInt(5)),qi.create(0,[0]))):(this.blendedNoise=new Ih(o.fromHashOf("minecraft:terrain"),t.sampling,Qe.cellWidth(t),Qe.cellHeight(t)),this.temperatureNoise=se.instantiate(o,s?se.TEMPERATURE_LARGE:se.TEMPERATURE),this.humidityNoise=se.instantiate(o,s?se.VEGETATION_LARGE:se.VEGETATION),this.offsetNoise=se.instantiate(o,se.SHIFT)),this.continentalnessNoise=se.instantiate(o,s?se.CONTINENTALNESS_LARGE:se.CONTINENTALNESS),this.erosionNoise=se.instantiate(o,s?se.EROSION_LARGE:se.EROSION),this.weirdnessNoise=se.instantiate(o,se.RIDGE),this.pillarNoise=se.instantiate(o,se.PILLAR),this.pillarRarenessModulator=se.instantiate(o,se.PILLAR_RARENESS),this.pillarThicknessModulator=se.instantiate(o,se.PILLAR_THICKNESS),this.spaghetti2DNoise=se.instantiate(o,se.SPAGHETTI_2D),this.spaghetti2DElevationModulator=se.instantiate(o,se.SPAGHETTI_2D_ELEVATION),this.spaghetti2DRarityModulator=se.instantiate(o,se.SPAGHETTI_2D_MODULATOR),this.spaghetti2DThicknessModulator=se.instantiate(o,se.SPAGHETTI_2D_THICKNESS),this.spaghetti3DNoise1=se.instantiate(o,se.SPAGHETTI_3D_1),this.spaghetti3DNoise2=se.instantiate(o,se.SPAGHETTI_3D_2),this.spaghetti3DRarityModulator=se.instantiate(o,se.SPAGHETTI_3D_RARITY),this.spaghetti3DThicknessModulator=se.instantiate(o,se.SPAGHETTI_3D_THICKNESS),this.spaghettiRoughnessNoise=se.instantiate(o,se.SPAGHETTI_ROUGHNESS),this.spaghettiRoughnessModulator=se.instantiate(o,se.SPAGHETTI_ROUGHNESS_MODULATOR),this.bigEntranceNoise=se.instantiate(o,se.CAVE_ENTRANCE),this.layerNoise=se.instantiate(o,se.CAVE_LAYER),this.cheeseNoise=se.instantiate(o,se.CAVE_CHEESE);const a=t.minY+4,l=a+t.height;this.noodleToggleNoise=this.yLimitedInterpolatable(se.instantiate(o,se.NOODLE),a,l,-1,1),this.noodleThicknessNoise=this.yLimitedInterpolatable(se.instantiate(o,se.NOODLE_THICKNESS),a,l,0,1),this.noodleRidgeANoise=this.yLimitedInterpolatable(se.instantiate(o,se.NOODLE_RIDGE_A),a,l,0,8/3),this.noodleRidgeBNoise=this.yLimitedInterpolatable(se.instantiate(o,se.NOODLE_RIDGE_B),a,l,0,8/3),this.jaggedNoise=se.instantiate(o,se.JAGGED),this.shaper=t.terrainShaper,this.baseNoise=u=>u.createNoiseInterpolator((c,p,f)=>this.calculateBlendedBaseNoise(c,p,f,u.getNoiseData(c>>2,f>>2).terrainInfo))}yLimitedInterpolatable(t,n,i,r,s){const o=(a,l,u)=>l>i||ln)}getNoiseChunk(t){return tu(this.noiseChunkCache,pn.toLong(t.pos),()=>{const n=Math.max(t.minY,this.settings.noise.minY),i=Math.min(t.maxY,this.settings.noise.minY+this.settings.noise.height),r=Qe.cellWidth(this.settings.noise),s=Qe.cellHeight(this.settings.noise),o=Math.floor(16/r),a=Math.floor(n/s),l=Math.floor((i-n)/s),u=pn.minBlockX(t.pos),c=pn.minBlockZ(t.pos);return new ww(o,l,a,this.sampler,u,c,()=>0,this.settings)})}}(function(e){e.fromJson=function(t){var n,i,r,s,o,a,l,u,c,p,f;const d=(n=W.readObject(t))!==null&&n!==void 0?n:{};return{structures:Ca.fromJson(d.structures),surfaceRule:Al.fromJson(d.surface_rule),noise:Qe.fromJson(d.noise),defaultBlock:Zt.fromJson(d.default_block),defaultFluid:Zt.fromJson(d.default_fluid),bedrockRoofPosition:(i=W.readInt(d.bedrock_roof_position))!==null&&i!==void 0?i:0,bedrockFloorPosition:(r=W.readInt(d.bedrock_floor_position))!==null&&r!==void 0?r:0,seaLevel:(s=W.readInt(d.sea_level))!==null&&s!==void 0?s:0,disableMobGeneration:(o=W.readBoolean(d.disable_mob_generation))!==null&&o!==void 0&&o,aquifersEnabled:(a=W.readBoolean(d.aquifers_enabled))!==null&&a!==void 0&&a,noiseCavesEnabled:(l=W.readBoolean(d.noise_caves_enabled))!==null&&l!==void 0&&l,deepslateEnabled:(u=W.readBoolean(d.deepslate_enabled))!==null&&u!==void 0&&u,oreVeinsEnabled:(c=W.readBoolean(d.ore_veins_enabled))!==null&&c!==void 0&&c,noodleCavesEnabled:(p=W.readBoolean(d.noodle_caves_enabled))!==null&&p!==void 0&&p,legacyRandomSource:(f=W.readBoolean(d.legacy_random_source))!==null&&f!==void 0&&f}}})(Bh||(Bh={})),function(e){e.fromJson=function(t){var n;const i=(n=W.readObject(t))!==null&&n!==void 0?n:{};return{stronghold:W.compose(i.stronghold,W.readObject,r=>{var s,o,a;return{distance:(s=W.readInt(r.distance))!==null&&s!==void 0?s:0,spread:(o=W.readInt(r.spread))!==null&&o!==void 0?o:0,count:(a=W.readInt(r.count))!==null&&a!==void 0?a:0}}),structures:W.readMap(i.structures,r=>{var s;return(o=>{var a,l,u;return{spacing:(a=W.readInt(o.spacing))!==null&&a!==void 0?a:0,separation:(l=W.readInt(o.separation))!==null&&l!==void 0?l:0,salt:(u=W.readInt(o.salt))!==null&&u!==void 0?u:0}})((s=W.readObject(r))!==null&&s!==void 0?s:{})})}}}(Ca||(Ca={}));class Dw{constructor(t){this.settings={},this.chunkWidth=4,this.chunkHeight=4,this.chunkCountY=32,this.biomeDepth=.1,this.biomeScale=.2,this.noiseColumnCache=[],this.xOffset=0;const n=new Rt(t);this.minLimitPerlinNoise=new je(n,-15,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),this.maxLimitPerlinNoise=new je(n,-15,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),this.mainPerlinNoise=new je(n,-7,[1,1,1,1,1,1,1,1]),this.depthNoise=new je(n,-15,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1])}reset(t,n,i,r,s){this.settings=t,this.chunkWidth=t.size_horizontal*4,this.chunkHeight=t.size_vertical*4,this.chunkCountY=Math.floor(t.height/this.chunkHeight),t.amplified&&n>0&&(n=1+n*2,i=1+i*4),this.biomeDepth=.265625*(n*.5-.125),this.biomeScale=96/(i*.9+.1),this.noiseColumnCache=Array(s).fill(null),this.xOffset=r}iterateNoiseColumn(t){const n=Array(this.chunkCountY*this.chunkHeight),i=Math.floor(t/this.chunkWidth),r=Math.floor(t%this.chunkWidth)/this.chunkWidth,s=this.fillNoiseColumn(i),o=this.fillNoiseColumn(i+1);for(let a=this.chunkCountY-1;a>=0;a-=1)for(let l=this.chunkHeight;l>=0;l-=1){const u=l/this.chunkHeight,c=a*this.chunkHeight+l;n[c]=fv(u,r,s[a],s[a+1],o[a],o[a+1])}return n}fillNoiseColumn(t){const n=this.noiseColumnCache[t-this.xOffset];if(n)return n;const i=Array(this.chunkCountY+1),r=684.412*this.settings.sampling.xz_scale,s=684.412*this.settings.sampling.y_scale,o=r/this.settings.sampling.xz_factor,a=s/this.settings.sampling.y_factor,l=this.settings.random_density_offset?this.getRandomDensity(t):0;for(let u=0;u<=this.chunkCountY;u+=1){let c=this.sampleAndClampNoise(t,u,this.mainPerlinNoise.getOctaveNoise(0).zo,r,s,o,a);const d=((1-u*2/this.chunkCountY+l)*this.settings.density_factor+this.settings.density_offset+this.biomeDepth)*this.biomeScale;c+=d*(d>0?4:1),this.settings.top_slide.size>0&&(c=ea(this.settings.top_slide.target,c,(this.chunkCountY-u-this.settings.top_slide.offset)/this.settings.top_slide.size)),this.settings.bottom_slide.size>0&&(c=ea(this.settings.bottom_slide.target,c,(u-this.settings.bottom_slide.offset)/this.settings.bottom_slide.size)),i[u]=c}return this.noiseColumnCache[t-this.xOffset]=i,i}getRandomDensity(t){const n=this.depthNoise.sample(t*200,10,this.depthNoise.getOctaveNoise(0).zo,1,0,!0),r=(n<0?-n*.3:n)*24.575625-2;return r<0?r*.009486607142857142:Math.min(r,1)*.006640625}sampleAndClampNoise(t,n,i,r,s,o,a){let l=0,u=0,c=0,p=1;for(let f=0;f<16;f+=1){const d=je.wrap(t*r*p),_=je.wrap(n*s*p),h=je.wrap(i*r*p),m=s*p,g=this.minLimitPerlinNoise.getOctaveNoise(f);g&&(l+=g.sample(d,_,h,m,n*m)/p);const v=this.maxLimitPerlinNoise.getOctaveNoise(f);if(v&&(u+=v.sample(d,_,h,m,n*m)/p),f<8){const y=this.mainPerlinNoise.getOctaveNoise(f);y&&(c+=y.sample(je.wrap(t*o*p),je.wrap(n*a*p),je.wrap(i*o*p),a*p,n*a*p)/p)}p/=2}return ea(l/512,u/512,(c/10+1)/2)}}const iu=0,Cw={"minecraft:air":[150,160,170],"minecraft:water":[20,80,170],"minecraft:lava":[200,100,0],"minecraft:stone":[55,55,55],"minecraft:deepslate":[34,34,36],"minecraft:bedrock":[10,10,10],"minecraft:grass_block":[47,120,23],"minecraft:dirt":[64,40,8],"minecraft:gravel":[70,70,70],"minecraft:sand":[196,180,77],"minecraft:sandstone":[148,135,52],"minecraft:netherrack":[100,40,40],"minecraft:crimson_nylium":[144,22,22],"minecraft:warped_nylium":[28,115,113],"minecraft:basalt":[73,74,85],"minecraft:end_stone":[200,200,140]};let Nh,ka,_o=[];const Fa=new Map;async function kw(e,t,n){var o,a,l;if(Bt(n.version,"1.18")){Bt(n.version,"1.18.2")&&await ep(n.version);const{settings:u,generator:c}=Mw(e,n),p=new Lw(-n.offset,n.width,u.noise.minY,u.noise.height);p.generate(c,n.biome);const f=t.data;for(let d=0;d