mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
108 lines
627 KiB
JavaScript
108 lines
627 KiB
JavaScript
var K2=Object.defineProperty,J2=Object.defineProperties;var Q2=Object.getOwnPropertyDescriptors;var lo=Object.getOwnPropertySymbols;var S0=Object.prototype.hasOwnProperty,I0=Object.prototype.propertyIsEnumerable;var Ja=(e,t,n)=>t in e?K2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fe=(e,t)=>{for(var n in t||(t={}))S0.call(t,n)&&Ja(e,n,t[n]);if(lo)for(var n of lo(t))I0.call(t,n)&&Ja(e,n,t[n]);return e},Me=(e,t)=>J2(e,Q2(t));var Qa=e=>typeof e=="symbol"?e:e+"",M0=(e,t)=>{var n={};for(var r in e)S0.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&lo)for(var r of lo(e))t.indexOf(r)<0&&I0.call(e,r)&&(n[r]=e[r]);return n};var M=(e,t,n)=>(Ja(e,typeof t!="symbol"?t+"":t,n),n);const Db={},em=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}};em();var Hs,le,Gd,Yd,ds,Wd,T0,qd,ea={},Xd=[],tm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Un(e,t){for(var n in t)e[n]=t[n];return e}function Kd(e){var t=e.parentNode;t&&t.removeChild(e)}function Yt(e,t,n){var r,i,s,o={};for(s in t)s=="key"?r=t[s]:s=="ref"?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?Hs.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)o[s]===void 0&&(o[s]=e.defaultProps[s]);return fs(e,o,r,i,null)}function fs(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++Gd:i};return i==null&&le.vnode!=null&&le.vnode(s),s}function Jd(){return{current:null}}function Wn(e){return e.children}function Qt(e,t){this.props=e,this.context=t}function Li(e,t){if(t==null)return e.__?Li(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Li(e):null}function Qd(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Qd(e)}}function zl(e){(!e.__d&&(e.__d=!0)&&ds.push(e)&&!ta.__r++||T0!==le.debounceRendering)&&((T0=le.debounceRendering)||Wd)(ta)}function ta(){for(var e;ta.__r=ds.length;)e=ds.sort(function(t,n){return t.__v.__b-n.__v.__b}),ds=[],e.some(function(t){var n,r,i,s,o,a;t.__d&&(o=(s=(n=t).__v).__e,(a=n.__P)&&(r=[],(i=Un({},s)).__v=s.__v+1,Oc(a,s,i,n.__n,a.ownerSVGElement!==void 0,s.__h!=null?[o]:null,r,o==null?Li(s):o,s.__h),rf(r,s),s.__e!=o&&Qd(s)))})}function ef(e,t,n,r,i,s,o,a,l,u){var c,d,f,h,w,_,m,g=r&&r.__k||Xd,v=g.length;for(n.__k=[],c=0;c<t.length;c++)if((h=n.__k[c]=(h=t[c])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?fs(null,h,null,null,h):Array.isArray(h)?fs(Wn,{children:h},null,null,null):h.__b>0?fs(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(f=g[c])===null||f&&h.key==f.key&&h.type===f.type)g[c]=void 0;else for(d=0;d<v;d++){if((f=g[d])&&h.key==f.key&&h.type===f.type){g[d]=void 0;break}f=null}Oc(e,h,f=f||ea,i,s,o,a,l,u),w=h.__e,(d=h.ref)&&f.ref!=d&&(m||(m=[]),f.ref&&m.push(f.ref,null,h),m.push(d,h.__c||w,h)),w!=null?(_==null&&(_=w),typeof h.type=="function"&&h.__k===f.__k?h.__d=l=tf(h,l,e):l=nf(e,h,f,g,w,l),typeof n.type=="function"&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=Li(f))}for(n.__e=_,c=v;c--;)g[c]!=null&&(typeof n.type=="function"&&g[c].__e!=null&&g[c].__e==n.__d&&(n.__d=Li(r,c+1)),of(g[c],g[c]));if(m)for(c=0;c<m.length;c++)sf(m[c],m[++c],m[++c])}function tf(e,t,n){for(var r,i=e.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=e,t=typeof r.type=="function"?tf(r,t,n):nf(n,r,r,i,r.__e,t));return t}function en(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){en(n,t)}):t.push(e)),t}function nf(e,t,n,r,i,s){var o,a,l;if(t.__d!==void 0)o=t.__d,t.__d=void 0;else if(n==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==e)e.appendChild(i),o=null;else{for(a=s,l=0;(a=a.nextSibling)&&l<r.length;l+=2)if(a==i)break e;e.insertBefore(i,s),o=s}return o!==void 0?o:i.nextSibling}function nm(e,t,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in t||na(e,s,null,n[s],r);for(s in t)i&&typeof t[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===t[s]||na(e,s,t[s],n[s],r)}function L0(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||tm.test(t)?n:n+"px"}function na(e,t,n,r,i){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||L0(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||L0(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r||e.addEventListener(t,s?R0:O0,s):e.removeEventListener(t,s?R0:O0,s);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function O0(e){this.l[e.type+!1](le.event?le.event(e):e)}function R0(e){this.l[e.type+!0](le.event?le.event(e):e)}function Oc(e,t,n,r,i,s,o,a,l){var u,c,d,f,h,w,_,m,g,v,b,x,y,k=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,a=t.__e=n.__e,t.__h=null,s=[a]),(u=le.__b)&&u(t);try{e:if(typeof k=="function"){if(m=t.props,g=(u=k.contextType)&&r[u.__c],v=u?g?g.props.value:u.__:r,n.__c?_=(c=t.__c=n.__c).__=c.__E:("prototype"in k&&k.prototype.render?t.__c=c=new k(m,v):(t.__c=c=new Qt(m,v),c.constructor=k,c.render=im),g&&g.sub(c),c.props=m,c.state||(c.state={}),c.context=v,c.__n=r,d=c.__d=!0,c.__h=[]),c.__s==null&&(c.__s=c.state),k.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Un({},c.__s)),Un(c.__s,k.getDerivedStateFromProps(m,c.__s))),f=c.props,h=c.state,d)k.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(k.getDerivedStateFromProps==null&&m!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,v),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,v)===!1||t.__v===n.__v){c.props=m,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(C){C&&(C.__=t)}),c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,v),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,h,w)})}if(c.context=v,c.props=m,c.__v=t,c.__P=e,b=le.__r,x=0,"prototype"in k&&k.prototype.render)c.state=c.__s,c.__d=!1,b&&b(t),u=c.render(c.props,c.state,c.context);else do c.__d=!1,b&&b(t),u=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++x<25);c.state=c.__s,c.getChildContext!=null&&(r=Un(Un({},r),c.getChildContext())),d||c.getSnapshotBeforeUpdate==null||(w=c.getSnapshotBeforeUpdate(f,h)),y=u!=null&&u.type===Wn&&u.key==null?u.props.children:u,ef(e,Array.isArray(y)?y:[y],t,n,r,i,s,o,a,l),c.base=t.__e,t.__h=null,c.__h.length&&o.push(c),_&&(c.__E=c.__=null),c.__e=!1}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=rm(n.__e,t,n,r,i,s,o,l);(u=le.diffed)&&u(t)}catch(C){t.__v=null,(l||s!=null)&&(t.__e=a,t.__h=!!l,s[s.indexOf(a)]=null),le.__e(C,t,n)}}function rf(e,t){le.__c&&le.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){le.__e(r,n.__v)}})}function rm(e,t,n,r,i,s,o,a){var l,u,c,d=n.props,f=t.props,h=t.type,w=0;if(h==="svg"&&(i=!0),s!=null){for(;w<s.length;w++)if((l=s[w])&&"setAttribute"in l==!!h&&(h?l.localName===h:l.nodeType===3)){e=l,s[w]=null;break}}if(e==null){if(h===null)return document.createTextNode(f);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),s=null,a=!1}if(h===null)d===f||a&&e.data===f||(e.data=f);else{if(s=s&&Hs.call(e.childNodes),u=(d=n.props||ea).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!a){if(s!=null)for(d={},w=0;w<e.attributes.length;w++)d[e.attributes[w].name]=e.attributes[w].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(nm(e,f,d,i,a),c)t.__k=[];else if(w=t.props.children,ef(e,Array.isArray(w)?w:[w],t,n,r,i&&h!=="foreignObject",s,o,s?s[0]:n.__k&&Li(n,0),a),s!=null)for(w=s.length;w--;)s[w]!=null&&Kd(s[w]);a||("value"in f&&(w=f.value)!==void 0&&(w!==e.value||h==="progress"&&!w||h==="option"&&w!==d.value)&&na(e,"value",w,d.value,!1),"checked"in f&&(w=f.checked)!==void 0&&w!==e.checked&&na(e,"checked",w,d.checked,!1))}return e}function sf(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){le.__e(r,n)}}function of(e,t,n){var r,i;if(le.unmount&&le.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||sf(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){le.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&of(r[i],t,typeof e.type!="function");n||e.__e==null||Kd(e.__e),e.__e=e.__d=void 0}function im(e,t,n){return this.constructor(e,n)}function Pr(e,t,n){var r,i,s;le.__&&le.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],Oc(t,e=(!r&&n||t).__k=Yt(Wn,null,[e]),i||ea,ea,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?Hs.call(t.childNodes):null,s,!r&&n?n:i?i.__e:t.firstChild,r),rf(s,e)}function Rc(e,t){Pr(e,t,Rc)}function Nc(e,t,n){var r,i,s,o=Un({},e.props);for(s in t)s=="key"?r=t[s]:s=="ref"?i=t[s]:o[s]=t[s];return arguments.length>2&&(o.children=arguments.length>3?Hs.call(arguments,2):n),fs(e.type,o,r||e.key,i||e.ref,null)}function xr(e,t){var n={__c:t="__cC"+qd++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(zl)},this.sub=function(o){i.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),a&&a.call(o)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Hs=Xd.slice,le={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(a){e=a}throw e}},Gd=0,Yd=function(e){return e!=null&&e.constructor===void 0},Qt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Un({},this.state),typeof e=="function"&&(e=e(Un({},n),this.props)),e&&Un(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),zl(this))},Qt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),zl(this))},Qt.prototype.render=Wn,ds=[],Wd=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ta.__r=0,qd=0;var sm=Object.freeze(Object.defineProperty({__proto__:null,render:Pr,hydrate:Rc,createElement:Yt,h:Yt,Fragment:Wn,createRef:Jd,get isValidElement(){return Yd},Component:Qt,cloneElement:Nc,createContext:xr,toChildArray:en,get options(){return le}},Symbol.toStringTag,{value:"Module"}));var om={};function af(e,t){for(var n in t)e[n]=t[n];return e}function lf(e,t,n){var r=/(?:\?([^#]*))?(#.*)?$/,i=e.match(r),s={},o;if(i&&i[1])for(var a=i[1].split("&"),l=0;l<a.length;l++){var u=a[l].split("=");s[decodeURIComponent(u[0])]=decodeURIComponent(u.slice(1).join("="))}e=Ul(e.replace(r,"")),t=Ul(t||"");for(var c=Math.max(e.length,t.length),d=0;d<c;d++)if(t[d]&&t[d].charAt(0)===":"){var f=t[d].replace(/(^:|[+*?]+$)/g,""),h=(t[d].match(/[+*?]+$/)||om)[0]||"",w=~h.indexOf("+"),_=~h.indexOf("*"),m=e[d]||"";if(!m&&!_&&(h.indexOf("?")<0||w)){o=!1;break}if(s[f]=decodeURIComponent(m),w||_){s[f]=e.slice(d).map(decodeURIComponent).join("/");break}}else if(t[d]!==e[d]){o=!1;break}return n.default!==!0&&o===!1?!1:s}function am(e,t){return e.rank<t.rank?1:e.rank>t.rank?-1:e.index-t.index}function lm(e,t){return e.index=t,e.rank=dm(e),e.props}function Ul(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function cm(e){return e.charAt(0)==":"?1+"*+?".indexOf(e.charAt(e.length-1))||4:5}function um(e){return Ul(e).map(cm).join("")}function dm(e){return e.props.default?0:um(e.props.path)}var Ut=null,Or=[],Hl=[],fm={};function hm(e,t){t===void 0&&(t="push"),Ut&&Ut[t]?Ut[t](e):typeof history!="undefined"&&history[t+"State"]&&history[t+"State"](null,null,e)}function Oi(){var e;return Ut&&Ut.location?e=Ut.location:Ut&&Ut.getCurrentLocation?e=Ut.getCurrentLocation():e=typeof location!="undefined"?location:fm,""+(e.pathname||"")+(e.search||"")}function qr(e,t){return t===void 0&&(t=!1),typeof e!="string"&&e.url&&(t=e.replace,e=e.url),pm(e)&&hm(e,t?"replace":"push"),cf(e)}function pm(e){for(var t=Or.length;t--;)if(Or[t].canRoute(e))return!0;return!1}function cf(e){for(var t=!1,n=0;n<Or.length;n++)Or[n].routeTo(e)===!0&&(t=!0);for(var r=Hl.length;r--;)Hl[r](e);return t}function uf(e){if(!(!e||!e.getAttribute)){var t=e.getAttribute("href"),n=e.getAttribute("target");if(!(!t||!t.match(/^\//g)||n&&!n.match(/^_?self$/i)))return qr(t)}}function mm(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||e.button!==0))return uf(e.currentTarget||e.target||this),df(e)}function df(e){return e&&(e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.stopPropagation&&e.stopPropagation(),e.preventDefault()),!1}function gm(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||e.button!==0)){var t=e.target;do if(String(t.nodeName).toUpperCase()==="A"&&t.getAttribute("href")){if(t.hasAttribute("native"))return;if(uf(t))return df(e)}while(t=t.parentNode)}}var N0=!1;function _m(){N0||(typeof addEventListener=="function"&&(Ut||addEventListener("popstate",function(){cf(Oi())}),addEventListener("click",gm)),N0=!0)}var qn=function(e){function t(n){e.call(this,n),n.history&&(Ut=n.history),this.state={url:n.url||Oi()},_m()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.shouldComponentUpdate=function(r){return r.static!==!0?!0:r.url!==this.props.url||r.onChange!==this.props.onChange},t.prototype.canRoute=function(r){var i=en(this.props.children);return this.getMatchingChildren(i,r,!1).length>0},t.prototype.routeTo=function(r){this.setState({url:r});var i=this.canRoute(r);return this.updating||this.forceUpdate(),i},t.prototype.componentWillMount=function(){Or.push(this),this.updating=!0},t.prototype.componentDidMount=function(){var r=this;Ut&&(this.unlisten=Ut.listen(function(i){r.routeTo(""+(i.pathname||"")+(i.search||""))})),this.updating=!1},t.prototype.componentWillUnmount=function(){typeof this.unlisten=="function"&&this.unlisten(),Or.splice(Or.indexOf(this),1)},t.prototype.componentWillUpdate=function(){this.updating=!0},t.prototype.componentDidUpdate=function(){this.updating=!1},t.prototype.getMatchingChildren=function(r,i,s){return r.filter(lm).sort(am).map(function(o){var a=lf(i,o.props.path,o.props);if(a){if(s!==!1){var l={url:i,matches:a};return af(l,a),delete l.ref,delete l.key,Nc(o,l)}return o}}).filter(Boolean)},t.prototype.render=function(r,i){var s=r.children,o=r.onChange,a=i.url,l=this.getMatchingChildren(en(s),a,!0),u=l[0]||null,c=this.previousUrl;return a!==c&&(this.previousUrl=a,typeof o=="function"&&o({router:this,url:a,previous:c,active:l,current:u})),u},t}(Qt),ff=function(e){return Yt("a",af({onClick:mm},e))},wm=function(e){return Yt(e.component,e)};qn.subscribers=Hl;qn.getCurrentUrl=Oi;qn.route=qr;qn.Router=qn;qn.Route=wm;qn.Link=ff;qn.exec=lf;var Ae;(e=>{const t="Site",n="Generator";function l(j,J,_e){ga("send","event",j,J,_e)}function u(j,J){ga("set",`dimension${j}`,J)}function c(j){ga("set","page",j),ga("send","pageview")}e.pageview=c;function d(j,J){l(n,j,J)}e.generatorEvent=d;function f(j){return j==="menu"?"Menu":"Hotkey"}function h(j){u(4,j),gtag("set",{locale:j})}e.setLocale=h;function w(j,J){h(J),l(t,"set-language",J),gtag("event","change_locale",{prev_locale:j})}e.changeLocale=w;function _(j){u(1,j),gtag("set",{theme:j})}e.setTheme=_;function m(j,J){_(J),l(t,"set-theme",J),gtag("event","change_theme",{prev_theme:j})}e.changeTheme=m;function g(j){u(3,j),gtag("set",{version:j})}e.setVersion=g;function v(j){gtag("set",{selected_version:j})}e.setSelectedVersion=v;function b(j,J){g(J),l(n,"set-version",J),gtag("event","change_version",{prev_version:j})}e.changeVersion=b;function x(j){u(6,j),gtag("event","use_generator",{file_type:j})}e.setGenerator=x;function y(j){u(7,j),gtag("set",{prefers_color_scheme:j})}e.setPrefersColorScheme=y;function k(j){gtag("set",{tree_view_mode:j})}e.setTreeViewMode=k;function C(j,J,_e){l(n,"reset"),gtag("event","reset_generator",{file_type:j,history:J,method:_e})}e.resetGenerator=C;function E(j,J,_e){l(n,"undo",f(_e)),gtag("event","undo_generator",{file_type:j,history:J,method:_e})}e.undoGenerator=E;function I(j,J,_e){l(n,"undo",f(_e)),gtag("event","redo_generator",{file_type:j,history:J,method:_e})}e.redoGenerator=I;function S(j,J){l(n,"load-preset",J),gtag("event","load_generator_preset",{file_type:j,file_name:J})}e.loadPreset=S;function T(j,J){gtag("event","open_generator_preset",{file_type:j,file_name:J})}e.openPreset=T;function L(j,J,_e,ve,We,Ze){gtag("event","create_generator_snippet",{file_type:j,snippet_id:J,version:_e,data_size:ve,compressed_size:We,compression_rate:Ze})}e.createSnippet=L;function D(j,J,_e){gtag("event","open_generator_snippet",{file_type:j,snippet_id:J,version:_e})}e.openSnippet=D;function G(j,J){l(n,"copy"),gtag("event","copy_generator_output",{file_type:j,method:J})}e.copyOutput=G;function z(j,J){l(n,"download"),gtag("event","download_generator_output",{file_type:j,method:J})}e.downloadOutput=z;function O(j,J){l(n,"toggle-output","visible"),gtag("event","show_generator_output",{file_type:j,method:J})}e.showOutput=O;function $(j,J){l(n,"toggle-output","hidden"),gtag("event","hide_generator_output",{file_type:j,method:J})}e.hideOutput=$;function U(j,J){l(n,"toggle-preview","visible"),gtag("event","show_generator_preview",{file_type:j,method:J})}e.showPreview=U;function Q(j,J){l(n,"toggle-preview","hidden"),gtag("event","hide_generator_preview",{file_type:j,method:J})}e.hidePreview=Q;function N(j,J,_e,ve){l(n,"show-project",f(ve)),gtag("event","show_project",{file_type:j,projects_count:J,project_size:_e,method:ve})}e.showProject=N;function A(j,J,_e,ve){l(n,"hide-project",f(ve)),gtag("event","hide_project",{file_type:j,projects_count:J,project_size:_e,method:ve})}e.hideProject=A;function R(j,J,_e,ve){l(n,"save-project-file",f(ve)),gtag("event","save_project_file",{file_type:j,projects_count:J,project_size:_e,method:ve})}e.saveProjectFile=R;function B(j,J,_e,ve){l(n,"delete-project-file",f(ve)),gtag("event","delete_project_file",{file_type:j,projects_count:J,project_size:_e,method:ve})}e.deleteProjectFile=B;function q(j,J,_e,ve){l(n,"rename-project-file",f(ve)),gtag("event","rename_project_file",{file_type:j,projects_count:J,project_size:_e,method:ve})}e.renameProjectFile=q;function ie(j,J,_e){l(n,"delete-project",f(_e)),gtag("event","delete_project",{projects_count:j,project_size:J,method:_e})}e.deleteProject=ie})(Ae||(Ae={}));var Xr,lt,el,D0,Ri=0,hf=[],F0=le.__b,P0=le.__r,$0=le.diffed,B0=le.__c,j0=le.unmount;function ji(e,t){le.__h&&le.__h(lt,e,Ri||t),Ri=0;var n=lt.__H||(lt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function X(e){return Ri=1,pf(_f,e)}function pf(e,t,n){var r=ji(Xr++,2);return r.t=e,r.__c||(r.__=[n?n(t):_f(void 0,t),function(i){var s=r.t(r.__[0],i);r.__[0]!==s&&(r.__=[s,r.__[1]],r.__c.setState({}))}],r.__c=lt),r.__}function me(e,t){var n=ji(Xr++,3);!le.__s&&Dc(n.__H,t)&&(n.__=e,n.__H=t,lt.__H.__h.push(n))}function mf(e,t){var n=ji(Xr++,4);!le.__s&&Dc(n.__H,t)&&(n.__=e,n.__H=t,lt.__h.push(n))}function Le(e){return Ri=5,ye(function(){return{current:e}},[])}function vm(e,t,n){Ri=6,mf(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ye(e,t){var n=ji(Xr++,7);return Dc(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Fe(e,t){return Ri=8,ye(function(){return e},t)}function Kr(e){var t=lt.context[e.__c],n=ji(Xr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(lt)),t.props.value):e.__}function xm(e,t){le.useDebugValue&&le.useDebugValue(t?t(e):e)}function gf(e){var t=ji(Xr++,10),n=X();return t.__=e,lt.componentDidCatch||(lt.componentDidCatch=function(r){t.__&&t.__(r),n[1](r)}),[n[0],function(){n[1](void 0)}]}function bm(){for(var e;e=hf.shift();)if(e.__P)try{e.__H.__h.forEach(No),e.__H.__h.forEach(Zl),e.__H.__h=[]}catch(t){e.__H.__h=[],le.__e(t,e.__v)}}le.__b=function(e){lt=null,F0&&F0(e)},le.__r=function(e){P0&&P0(e),Xr=0;var t=(lt=e.__c).__H;t&&(el===lt?(t.__h=[],lt.__h=[],t.__.forEach(function(n){n.__H&&(n.__H=void 0)})):(t.__h.forEach(No),t.__h.forEach(Zl),t.__h=[])),el=lt},le.diffed=function(e){$0&&$0(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(hf.push(t)!==1&&D0===le.requestAnimationFrame||((D0=le.requestAnimationFrame)||function(n){var r,i=function(){clearTimeout(s),V0&&cancelAnimationFrame(r),setTimeout(n)},s=setTimeout(i,100);V0&&(r=requestAnimationFrame(i))})(bm)),lt=null,el=null},le.__c=function(e,t){t.some(function(n){try{n.__h.forEach(No),n.__h=n.__h.filter(function(r){return!r.__||Zl(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],le.__e(r,n.__v)}}),B0&&B0(e,t)},le.unmount=function(e){j0&&j0(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{No(r)}catch(i){t=i}}),t&&le.__e(t,n.__v))};var V0=typeof requestAnimationFrame=="function";function No(e){var t=lt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),lt=t}function Zl(e){var t=lt;e.__c=e.__(),lt=t}function Dc(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function _f(e,t){return typeof t=="function"?t(e):t}var co=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ym(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}function wf(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var km=ym(sm),vf,xf,bf,Gl=km,Cm=0;function z0(e,t,n,r,i){var s,o,a={};for(o in t)o=="ref"?s=t[o]:a[o]=t[o];var l={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Cm,__source:i,__self:r};if(typeof e=="function"&&(s=e.defaultProps))for(o in s)a[o]===void 0&&(a[o]=s[o]);return Gl.options.vnode&&Gl.options.vnode(l),l}bf=Gl.Fragment,xf=z0,vf=z0;const p=xf,F=vf,pe=bf;function yf({type:e,id:t}){return me(()=>{var n;(n=document.getElementById("ad-placeholder"))==null||n.remove(),"ethicalads"in window&ðicalads.load()},[]),p("div",{"data-ea-publisher":"misode-github-io","data-ea-type":e,class:"ad dark flat",id:t})}function oe({icon:e,label:t,active:n,class:r,tooltip:i,tooltipLoc:s,onClick:o,disabled:a}){return F("div",{class:`btn${n?" active":""}${r?` ${r}`:""}${i?` tooltipped tip-${s!=null?s:"sw"}`:""}${a?" disabled":""}${n?" tip-shown":""}`,onClick:a?void 0:o,"aria-label":i,children:[e&&he[e],t&&p("span",{children:t})]})}var P={},Ln={},Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.ModelPath=Sn.Path=Sn.relativePath=void 0;function Em(e,t){return t.reduce((n,r)=>r==="pop"?n.pop():n.push(r.push),e)}Sn.relativePath=Em;class Fn{constructor(t,n){this.modelArr=t!=null?t:[],this.contextArr=n!=null?n:[]}last(){return this.modelArr[this.modelArr.length-1]}slice(t,n){return new Fn(this.modelArr.slice(t,n),this.contextArr)}shift(){return new Fn(this.modelArr.slice(1),this.contextArr)}pop(){return new Fn(this.modelArr.slice(0,-1),this.contextArr)}push(t){return this.modelPush(t).contextPush(t)}modelPush(t){return new Fn([...this.modelArr,t],[...this.contextArr])}contextPush(t){if(typeof t=="number")return this.copy();const n=t.startsWith("minecraft:")?t.slice(10):t;return new Fn([...this.modelArr],[...this.contextArr,n])}copy(){return new Fn([...this.modelArr],[...this.contextArr])}getArray(){return this.modelArr}withModel(t){return new Pn(t,this)}getContext(){return this.contextArr}equals(t){return t.modelArr.length===this.modelArr.length&&t.modelArr.every((n,r)=>n===this.modelArr[r])}startsWith(t){return this.modelArr.length<t.modelArr.length?!1:t.modelArr.every((n,r)=>n===this.modelArr[r])}endsWith(t){const n=this.modelArr.length-t.modelArr.length;return n<0?!1:t.modelArr.every((r,i)=>r===this.modelArr[n+i])}toString(){return this.modelArr.map(t=>typeof t=="string"?`.${t}`:`[${t}]`).join("").replace(/^\./,"")}forEach(t,n){return this.modelArr.forEach(t,n)}}Sn.Path=Fn;class Pn extends Fn{constructor(t,n){super(n==null?void 0:n.modelArr,n==null?void 0:n.contextArr),this.model=t}getModel(){return this.model}get(){var t;return(t=this.model)===null||t===void 0?void 0:t.get(this)}set(t){var n;(n=this.model)===null||n===void 0||n.set(this,t)}slice(t,n){return new Pn(this.model,super.slice(t,n))}shift(){return new Pn(this.model,super.shift())}pop(){return new Pn(this.model,super.pop())}push(t){return this.modelPush(t).contextPush(t)}modelPush(t){return new Pn(this.model,super.modelPush(t))}contextPush(t){return new Pn(this.model,super.contextPush(t))}copy(){return new Pn(this.model,super.copy())}}Sn.ModelPath=Pn;var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.Errors=void 0;class Am{constructor(){this.errors=[]}add(t,n,...r){return this.errors.push({path:t,error:n,params:r}),!1}get(t,n=!1){return n?this.errors.filter(r=>r.path.equals(t)):this.errors.filter(r=>r.path.startsWith(t))}getAll(){return this.errors}clear(){this.errors=[]}count(){return this.errors.length}*[Symbol.iterator](){for(const t of this.errors)yield t}}Vi.Errors=Am;var In={};Object.defineProperty(In,"__esModule",{value:!0});In.hexId=In.quoteString=In.escapeString=void 0;function kf(e){return e.replace(/(\\|")/g,"\\$1")}In.escapeString=kf;function Sm(e){return`"${kf(e)}"`}In.quoteString=Sm;const Im=e=>("0"+e.toString(16)).substr(-2);function Mm(e=12){var t=new Uint8Array(e/2);return window.crypto.getRandomValues(t),Array.from(t,Im).join("")}In.hexId=Mm;Object.defineProperty(Ln,"__esModule",{value:!0});Ln.DataModel=void 0;const Tm=Sn,U0=Vi,tl=In;class Fc{constructor(t,n){var r,i,s,o;this.historyMax=(r=n==null?void 0:n.historyMax)!==null&&r!==void 0?r:50,this.verbose=(i=n==null?void 0:n.verbose)!==null&&i!==void 0?i:!1,this.wrapLists=(s=n==null?void 0:n.wrapLists)!==null&&s!==void 0?s:!1,this.schema=t;const a=(o=n==null?void 0:n.initialData)!==null&&o!==void 0?o:t.default();this.data=this.wrapLists?Fc.wrapLists(a):a,this.listeners=[],this.errors=new U0.Errors,this.history=[JSON.stringify(this.data)],this.historyIndex=0}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n>-1&&this.listeners.splice(n,1)}invalidate(){const t=JSON.stringify(this.data);this.history[this.historyIndex]!==t&&(this.historyIndex+=1,this.history.splice(this.historyIndex,this.historyMax,t),this.history.length>this.historyMax&&(this.history.splice(0,1),this.historyIndex-=1)),this.silentInvalidate()}silentInvalidate(){this.listeners.forEach(t=>{t.invalidated&&t.invalidated(this),t.errors&&t.errors(this.errors)})}reset(t,n){this.data=t,this.validate(n),this.invalidate()}get(t){let n=this.data;return t.forEach(r=>{if(n===void 0)return n;this.wrapLists&&typeof r=="number"?n=n[r].node:n=n[r]}),n}set(t,n,r){if(t.getArray().length===0){this.reset(n,!0);return}let i=this.data;t.pop().forEach(s=>{(i[s]===void 0||typeof i[s]=="string"||typeof i[s]=="number")&&(this.wrapLists&&typeof s=="number"?i[s]={node:{},id:(0,tl.hexId)()}:i[s]={}),this.wrapLists&&typeof s=="number"?i=i[s].node:i=i[s]}),i!==null&&(n===void 0||typeof n=="number"&&isNaN(n)?typeof t.last()=="number"?i.splice(t.last(),1):delete i[t.last()]:this.wrapLists&&typeof t.last()=="number"?i[t.last()]={node:n,id:(0,tl.hexId)()}:i[t.last()]=n,!r&&(this.verbose&&console.log("Set",t.toString(),JSON.stringify(n)),this.validate(!0),this.invalidate()))}undo(){this.historyIndex>0&&(this.historyIndex-=1,this.data=JSON.parse(this.history[this.historyIndex]),this.validate(!1),this.silentInvalidate())}redo(){this.historyIndex<this.history.length-1&&(this.historyIndex+=1,this.data=JSON.parse(this.history[this.historyIndex]),this.validate(!1),this.silentInvalidate())}validate(t){var n;const r=new Tm.Path().withModel(this);this.errors.clear(),this.data=(n=this.schema.validate(r,this.data,this.errors,{loose:t,wrapLists:this.wrapLists}))!==null&&n!==void 0?n:{}}error(t,n,...r){const i=new U0.Errors;i.add(t,n,r),this.listeners.forEach(s=>{s.errors&&s.errors(i)})}static wrapLists(t){if(Array.isArray(t)){const n=t.map(r=>({node:this.wrapLists(r),id:(0,tl.hexId)()}));for(const r of Object.getOwnPropertySymbols(t))n[r]=t[r];return n}else if(typeof t=="object"&&t!==null){const n={};Object.entries(t).map(([r,i])=>{n[r]=this.wrapLists(i)});for(const r of Object.getOwnPropertySymbols(t))n[r]=t[r];return n}else return t}static unwrapLists(t){if(Array.isArray(t)){const n=t.map(r=>this.unwrapLists(r.node));for(const r of Object.getOwnPropertySymbols(t))n[r]=t[r];return n}else if(typeof t=="object"&&t!==null){const n={};Object.entries(t).map(([r,i])=>{n[r]=this.unwrapLists(i)});for(const r of Object.getOwnPropertySymbols(t))n[r]=t[r];return n}else return t}}Ln.DataModel=Fc;var er={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Keep=e.Opt=e.Has=e.Mod=e.Base=void 0,e.Base={type:()=>"base",category:()=>{},default:()=>{},enabled:()=>!0,keep:()=>!1,optional:()=>!1,navigate(){return this},pathPush:s=>s,suggest:()=>[],validate:(s,o)=>o,validationOption:()=>{},hook(s,o,...a){return s.base({node:this},o,...a)},canUpdate:()=>!1,update:()=>[]};const t=(s,o)=>fe(fe({},s),typeof o=="function"?o(s):o);e.Mod=t;const n=(s,o)=>(0,e.Mod)(o,{enabled:a=>a.push(s).get()!==void 0});e.Has=n;function r(s){return Me(fe({},s),{optional:()=>!0})}e.Opt=r;function i(s){return Me(fe({},s),{keep:()=>!0})}e.Keep=i})(er);var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.BooleanNode=void 0;const Lm=Ln,Om=er,Rm=()=>Me(fe({},Om.Base),{type:()=>"boolean",default:()=>!1,suggest:()=>["false","true"],validate(e,t,n,r){return r.loose&&typeof t!="boolean"&&(t=r.wrapLists?Lm.DataModel.wrapLists(this.default()):this.default()),(typeof t!="boolean"||t===void 0)&&n.add(e,"error.expected_boolean"),t},hook(e,t,...n){var r;return((r=e.boolean)!==null&&r!==void 0?r:e.base).call(e,{node:this},t,...n)}});Ta.BooleanNode=Rm;var Cf={},Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.ListNode=void 0;const Nm=Ln,Dm=er,Fm=(e,t)=>{var n,r;const i=(n=t==null?void 0:t.minLength)!==null&&n!==void 0?n:0,s=(r=t==null?void 0:t.maxLength)!==null&&r!==void 0?r:1/0,o=(t==null?void 0:t.minLength)&&(t==null?void 0:t.maxLength);return Me(fe({},Dm.Base),{type:()=>"list",default:()=>t!=null&&t.minLength?[...Array(i)].map(a=>e.default()):[],navigate(a,l){const u=l+1;return a.getArray().length<=u?this:e.navigate(a,u)},pathPush(a,l){return a.push(parseInt(l.toString())).contextPush("entry")},validate(a,l,u,c){if(c.loose&&!Array.isArray(l)&&(l=c.wrapLists?Nm.DataModel.wrapLists(this.default()):this.default()),Array.isArray(l))o&&(l.length<i||l.length>s)?i===s?u.add(a,"error.invalid_list_range.exact",l.length,i):u.add(a,"error.invalid_list_range.between",l.length,i,s):l.length<i?u.add(a,"error.invalid_list_range.smaller",l.length,i):l.length>s&&u.add(a,"error.invalid_list_range.larger",l.length,s);else return u.add(a,"error.expected_list"),l;const d=l.map((f,h)=>{const w=e.validate(a.push(h),c.wrapLists?f.node:f,u,c);return c.wrapLists?{node:w,id:f.id}:w});for(const f of Object.getOwnPropertySymbols(l))d[f]=l[f];return d},hook(a,l,...u){var c;return((c=a.list)!==null&&c!==void 0?c:a.base).call(a,{node:this,children:e,config:t!=null?t:{}},l,...u)}})};Zs.ListNode=Fm;var Gs={};Object.defineProperty(Gs,"__esModule",{value:!0});Gs.SwitchNode=void 0;const Pm=er,$m=e=>Me(fe({},Pm.Base),{type(t){return this.activeCase(t,!0).node.type(t)},category(t){return this.activeCase(t,!0).node.category(t)},default:()=>e[0].node.default(),navigate(t,n){var r;const i=n+1;return(r=this.activeCase(t.slice(0,i)))===null||r===void 0?void 0:r.node.navigate(t,n)},pathPush(t,n){var r,i;return(i=(r=this.activeCase(t))===null||r===void 0?void 0:r.node.pathPush(t,n))!==null&&i!==void 0?i:t},suggest(t,n){var r,i;return(i=(r=this.activeCase(t))===null||r===void 0?void 0:r.node.suggest(t,n))!==null&&i!==void 0?i:e.filter(s=>s.match(t)).map(s=>s.node.suggest(t,n)).reduce((s,o)=>s.concat(o))},validate(t,n,r,i){let s=this.activeCase(t);return s===void 0?n:s.node.validate(t,n,r,i)},validationOption(t){var n;return(n=this.activeCase(t))===null||n===void 0?void 0:n.node.validationOption(t)},activeCase(t,n){const r=(s,o)=>{var a,l;return((a=o.priority)!==null&&a!==void 0?a:0)-((l=s.priority)!==null&&l!==void 0?l:0)},i=e.filter(s=>s.match(t)).sort(r);return n&&i.length===0?e.sort(r)[0]:i.length>0?i[0]:void 0},hook(t,n,...r){return this.activeCase(n,!0).node.hook(t,n,...r)}});Gs.SwitchNode=$m;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectOrPreset=e.StringOrList=e.ObjectOrList=e.ChoiceNode=void 0;const t=Zs,n=Gs,r=(o,a)=>{const l=(c,d)=>{if(c.match)return c.match(d);switch(c.type){case"list":return Array.isArray(d);case"object":return typeof d=="object"&&!Array.isArray(d);default:return typeof d===c.type}},u=(0,n.SwitchNode)(o.map(c=>({type:c.type,priority:c.priority,match:d=>l(c,d.get()),node:c.node})));return Me(fe({},u),{validate(c,d,f,h){let w=u.activeCase(c,!0);return w.node.optional()?d:w.node.validate(c,d,f,h)},hook(c,d,...f){var h;return((h=c.choice)!==null&&h!==void 0?h:c.base).call(c,{node:this,choices:o,config:a!=null?a:{},switchNode:u},d,...f)}})};e.ChoiceNode=r;const i=o=>(a,l)=>(0,e.ChoiceNode)([{type:o,node:a,change:u=>{var c;return(c=u[0])!==null&&c!==void 0?c:a.default()}},{type:"list",node:(0,t.ListNode)(a),change:u=>u?[u]:[]}],l);e.ObjectOrList=i("object"),e.StringOrList=i("string");const s=(o,a,l)=>(0,e.ChoiceNode)([{type:"string",priority:1,node:o,change:u=>Object.keys(l)[0]},{type:"object",node:a,change:u=>{var c;return(c=l[u])!==null&&c!==void 0?c:l[Object.keys(l)[0]]}}]);e.ObjectOrPreset=s})(Cf);var La={};Object.defineProperty(La,"__esModule",{value:!0});La.MapNode=void 0;const Bm=er,jm=Ln,Vm=(e,t,n)=>Me(fe({},Bm.Base),{type:()=>"map",default:()=>({}),navigate(r,i){const s=i+1;return r.getArray().length<=s?this:t.navigate(r,s)},pathPush(r,i){return r.modelPush(i)},suggest:r=>e.suggest(r,""),validate(r,i,s,o){if(o.loose&&typeof i!="object"&&(i=o.wrapLists?jm.DataModel.wrapLists(this.default()):this.default()),i===null||typeof i!="object")return s.add(r,"error.expected_object"),i;const a={};Object.keys(i).forEach(l=>{e.validate(r,l,s,o),a[l]=t.validate(r.push(l),i[l],s,o)});for(const l of Object.getOwnPropertySymbols(i))a[l]=i[l];return a},validationOption(r){var i;return(i=n==null?void 0:n.validation)!==null&&i!==void 0?i:e.validationOption(r.push(""))},hook(r,i,...s){var o;return((o=r.map)!==null&&o!==void 0?o:r.base).call(r,{node:this,keys:e,children:t,config:n!=null?n:{}},i,...s)}});La.MapNode=Vm;var Ef={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NumberEnum=e.NumberNode=void 0;const t=P,n=Ln,r=er,i=o=>{var a,l,u;const c=o!=null&&o.color?!0:(a=o==null?void 0:o.integer)!==null&&a!==void 0?a:!1,d=o!=null&&o.color?0:(l=o==null?void 0:o.min)!==null&&l!==void 0?l:-1/0,f=o!=null&&o.color?16777215:(u=o==null?void 0:o.max)!==null&&u!==void 0?u:1/0,h=(o==null?void 0:o.min)!==void 0&&(o==null?void 0:o.max)!==void 0;return Me(fe({},r.Base),{type:()=>"number",default:()=>d>0?d:0,validate(w,_,m,g){return g.loose&&typeof _!="number"&&(_=g.wrapLists?n.DataModel.wrapLists(this.default()):this.default()),typeof _!="number"?m.add(w,"error.expected_number"):c&&!Number.isInteger(_)?m.add(w,"error.expected_integer"):h&&(_<d||_>f)?m.add(w,"error.invalid_number_range.between",_,d,f):_<d?m.add(w,"error.invalid_number_range.smaller",_,d):_>f&&m.add(w,"error.invalid_number_range.larger",_,f),_},hook(w,_,...m){var g;return((g=w.number)!==null&&g!==void 0?g:w.base).call(w,{node:this,integer:c,min:d,max:f,between:h,config:o!=null?o:{}},_,...m)}})};e.NumberNode=i;const s=({integer:o,values:a})=>(0,t.Mod)((0,e.NumberNode)({integer:o}),l=>({validate:(u,c,d,f)=>(c=l.validate(u,c,d,f),a.includes(c)||d.add(u,"error.invalid_number_enum",a.join(", ")),c)}));e.NumberEnum=s})(Ef);var Af={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectNode=e.Case=e.Switch=void 0;const t=er,n=Sn,r=Vi,i=In,s=Ln;e.Switch=Symbol("switch"),e.Case=Symbol("case");const o=(a,l)=>{var w,_;const m=a,{[w=e.Switch]:u,[_=e.Case]:c}=m,d=M0(m,[Qa(w),Qa(_)]),f=g=>{if(u===void 0)return d;const v=(0,n.relativePath)(g,u).get(),b=c[v];return fe(fe({},d),b)},h=(g,v)=>{var b;const x=u?(0,n.relativePath)(g,u).get():void 0,y=u?(b=c[x])!==null&&b!==void 0?b:{}:{},k=Object.keys(y),C=l!=null&&l.context?new n.ModelPath(g.getModel(),new n.Path(g.getArray(),[l.context])):g;return(!(l!=null&&l.disableSwitchContext)&&x&&k.includes(v)?C.contextPush(x):C).push(v)};return Me(fe({},t.Base),{type:()=>"object",category:()=>l==null?void 0:l.category,default:()=>({}),keep(){return this.optional()},navigate(g,v){const b=v+1,x=g.getArray();if(x.length<=b)return this;const k=f(g.slice(0,b))[x[b]];return k==null?void 0:k.navigate(g,b)},pathPush(g,v){return h(g,v.toString())},suggest(g,v){const b=f(g),x=Object.keys(typeof v=="object"?v:{});return Object.keys(b).filter(y=>b[y].enabled(g)).filter(y=>!x.includes(y)).map(i.quoteString)},validate(g,v,b,x){if(x.loose&&typeof v!="object"&&(v=x.wrapLists?s.DataModel.wrapLists(this.default()):this.default()),typeof v!="object"||v===null)return b.add(g,"error.expected_object"),v;let y=d;if(u){const S=(0,n.relativePath)(g,u);let T=S.get();if(g.equals(S.pop())){const L=S.last();T=d[L].validate(g.push(L),v[L],new r.Errors,x)}y=fe(fe({},y),c[T])}const k=Object.keys(y),C=k.filter(S=>!y[S].optional()),E=new Set([...C,...Object.keys(v)]),I={};E.forEach(S=>{if(k.includes(S)){if(!y[S].enabled(g))return;const T=y[S].validate(g.push(S),v[S],b,x);!y[S].keep()&&y[S].optional()&&(T===void 0||Array.isArray(T)&&T.length===0||T.constructor===Object&&Object.keys(T).length===0)?delete I[S]:(I[S]=T,g.getModel().set(g.push(S),T,!0))}else I[S]=v[S]});for(const S of Object.getOwnPropertySymbols(v))I[S]=v[S];return I},hook(g,v,...b){var x;return((x=g.object)!==null&&x!==void 0?x:g.base).call(g,{node:this,fields:d,config:l!=null?l:{},filter:u,cases:c,getActiveFields:f,getChildModelPath:h},v,...b)}})};e.ObjectNode=o})(Af);var Oa={};Object.defineProperty(Oa,"__esModule",{value:!0});Oa.Reference=void 0;const zm=(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,r){return e.get(t).transform(n,r)},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,r){return e.get(t).navigate.bind(this)(n,r)},pathPush(n,r){return e.get(t).pathPush.bind(this)(n,r)},suggest(n,r){return e.get(t).suggest.bind(this)(n,r)},validate(n,r,i,s){return e.get(t).validate.bind(this)(n,r,i,s)},validationOption(n){return e.get(t).validationOption.bind(this)(n)},hook(n,r,...i){return e.get(t).hook.bind(this)(n,r,...i)},activeCase(n,r){return e.get(t).activeCase.bind(this)(n,r)},canUpdate(n,r){return e.get(t).canUpdate.bind(this)(n,r)},update(n,r){return e.get(t).update.bind(this)(n,r)}});Oa.Reference=zm;var Ra={};Object.defineProperty(Ra,"__esModule",{value:!0});Ra.StringNode=void 0;const Um=er,Hm=In,Zm=Ln,H0=e=>!!(e!=null&&e.enum),Z0=e=>!!(e!=null&&e.validator),Gm=(e,t)=>{const n=()=>{var r,i,s,o;if(H0(t))return typeof t.enum=="string"?(r=e==null?void 0:e.get(t.enum))!==null&&r!==void 0?r:[]:t.enum;if((t==null?void 0:t.validator)==="resource"){if(typeof t.params.pool=="string"){if(t.params.requireTag)return(i=e==null?void 0:e.get(`tag/${t.params.pool}`).map(l=>`#${l}`))!==null&&i!==void 0?i:[];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 Me(fe({},Um.Base),{type:()=>"string",default:()=>"",validate(r,i,s,o){if(o.loose&&typeof i!="string"&&(i=(o.wrapLists?Zm.DataModel.wrapLists(this.default()):this.default())||void 0),typeof i!="string")return s.add(r,"error.expected_string"),i;if(Z0(t)){if(t.validator==="resource"&&i.length>0&&!i.includes(":")&&(i=i.startsWith("#")?"#minecraft:"+i.slice(1):"minecraft:"+i),t.validator==="resource"&&typeof i=="string"){let l=i;if(i.startsWith("#")){if(typeof t.params.pool=="string"&&t.params.pool.startsWith("$tag/"))return s.add(r,"error.disallowed_tag_prefix"),i;if(!t.params.allowTag&&!t.params.requireTag)return s.add(r,"error.disallowed_tag"),i;l=l.slice(1)}else if(t.params.requireTag)return s.add(r,"error.expected_tag"),i;if(!l.match(/^(?:[_\-a-z0-9.]*:)?[_\-a-z0-9/.]*$/g))return s.add(r,"error.invalid_resource_location"),i}if(t.validator==="resource"&&(typeof t.params.pool=="string"&&t.params.pool.startsWith("$")||(t.params.allowTag||t.params.requireTag)&&i.startsWith("#")||typeof i=="string"&&i.includes(":")&&!i.startsWith("minecraft:")||t.params.isDefinition||t.params.allowUnknown))return i}if(H0(t)&&t.additional)return i;const a=n();return a.length>0&&!a.includes(i)&&s.add(r,"error.invalid_enum_option",i),i},suggest:()=>n().map(Hm.quoteString),validationOption(){return Z0(t)?t:void 0},hook(r,i,...s){var o;return((o=r.string)!==null&&o!==void 0?o:r.base).call(r,{node:this,getValues:n,config:t},i,...s)}})};Ra.StringNode=Gm;var Sf={};Object.defineProperty(Sf,"__esModule",{value:!0});var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.CollectionRegistry=Ni.SchemaRegistry=void 0;class Ym{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}}Ni.SchemaRegistry=Ym;class Wm{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:[]}}Ni.CollectionRegistry=Wm;var If={};Object.defineProperty(If,"__esModule",{value:!0});(function(e){var t=co&&co.__createBinding||(Object.create?function(r,i,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(r,o,a)}:function(r,i,s,o){o===void 0&&(o=s),r[o]=i[s]}),n=co&&co.__exportStar||function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,r,s)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ln,e),n(Sn,e),n(Vi,e),n(er,e),n(Ta,e),n(Cf,e),n(Zs,e),n(La,e),n(Ef,e),n(Af,e),n(Oa,e),n(Ra,e),n(Gs,e),n(Sf,e),n(Ni,e),n(If,e)})(P);const bs=15,Yl=30,Wl=19,qm=29,ra=256,Pc=ra+1+qm,G0=2*Pc+1,Wi=256,Xm=7,Y0=16,W0=17,q0=18,nl=8*2,ia=-1,Km=1,uo=2,Jm=0,fi=0,X0=1,Qm=3,Ot=4,an=0,Mf=1,fo=2,dn=-2,eg=-3,ri=-5;function Na(e){return Da(e.map(([t,n])=>new Array(t).fill(n,0,t)))}function Da(e){return e.reduce((t,n)=>t.concat(Array.isArray(n)?Da(n):n),[])}const K0=[0,1,2,3].concat(...Na([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Qe(){const e=this;function t(i){const s=e.dyn_tree,o=e.stat_desc.static_tree,a=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,u=e.stat_desc.max_length;let c,d,f,h,w,_,m=0;for(h=0;h<=bs;h++)i.bl_count[h]=0;for(s[i.heap[i.heap_max]*2+1]=0,c=i.heap_max+1;c<G0;c++)d=i.heap[c],h=s[s[d*2+1]*2+1]+1,h>u&&(h=u,m++),s[d*2+1]=h,!(d>e.max_code)&&(i.bl_count[h]++,w=0,d>=l&&(w=a[d-l]),_=s[d*2],i.opt_len+=_*(h+w),o&&(i.static_len+=_*(o[d*2+1]+w)));if(m!==0){do{for(h=u-1;i.bl_count[h]===0;)h--;i.bl_count[h]--,i.bl_count[h+1]+=2,i.bl_count[u]--,m-=2}while(m>0);for(h=u;h!==0;h--)for(d=i.bl_count[h];d!==0;)f=i.heap[--c],!(f>e.max_code)&&(s[f*2+1]!=h&&(i.opt_len+=(h-s[f*2+1])*s[f*2],s[f*2+1]=h),d--)}}function n(i,s){let o=0;do o|=i&1,i>>>=1,o<<=1;while(--s>0);return o>>>1}function r(i,s,o){const a=[];let l=0,u,c,d;for(u=1;u<=bs;u++)a[u]=l=l+o[u-1]<<1;for(c=0;c<=s;c++)d=i[c*2+1],d!==0&&(i[c*2]=n(a[d]++,d))}e.build_tree=function(i){const s=e.dyn_tree,o=e.stat_desc.static_tree,a=e.stat_desc.elems;let l,u,c=-1,d;for(i.heap_len=0,i.heap_max=G0,l=0;l<a;l++)s[l*2]!==0?(i.heap[++i.heap_len]=c=l,i.depth[l]=0):s[l*2+1]=0;for(;i.heap_len<2;)d=i.heap[++i.heap_len]=c<2?++c:0,s[d*2]=1,i.depth[d]=0,i.opt_len--,o&&(i.static_len-=o[d*2+1]);for(e.max_code=c,l=Math.floor(i.heap_len/2);l>=1;l--)i.pqdownheap(s,l);d=a;do l=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(s,1),u=i.heap[1],i.heap[--i.heap_max]=l,i.heap[--i.heap_max]=u,s[d*2]=s[l*2]+s[u*2],i.depth[d]=Math.max(i.depth[l],i.depth[u])+1,s[l*2+1]=s[u*2+1]=d,i.heap[1]=d++,i.pqdownheap(s,1);while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],t(i),r(s,e.max_code,i.bl_count)}}Qe._length_code=[0,1,2,3,4,5,6,7].concat(...Na([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]]));Qe.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];Qe.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];Qe.d_code=function(e){return e<256?K0[e]:K0[256+(e>>>7)]};Qe.extra_lbits=[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];Qe.extra_dbits=[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];Qe.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Qe.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t,n,r,i){const s=this;s.static_tree=e,s.extra_bits=t,s.extra_base=n,s.elems=r,s.max_length=i}const tg=[12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227],ng=Na([[144,8],[112,9],[24,7],[8,8]]);yt.static_ltree=Da(tg.map((e,t)=>[e,ng[t]]));const rg=[0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23],ig=Na([[30,5]]);yt.static_dtree=Da(rg.map((e,t)=>[e,ig[t]]));yt.static_l_desc=new yt(yt.static_ltree,Qe.extra_lbits,ra+1,Pc,bs);yt.static_d_desc=new yt(yt.static_dtree,Qe.extra_dbits,0,Yl,bs);yt.static_bl_desc=new yt(null,Qe.extra_blbits,0,Wl,Xm);const sg=9,og=8;function xn(e,t,n,r,i){const s=this;s.good_length=e,s.max_lazy=t,s.nice_length=n,s.max_chain=r,s.func=i}const Tf=0,Do=1,Ar=2,on=[new xn(0,0,0,0,Tf),new xn(4,4,8,4,Do),new xn(4,5,16,8,Do),new xn(4,6,32,32,Do),new xn(4,4,16,16,Ar),new xn(8,16,32,32,Ar),new xn(8,16,128,128,Ar),new xn(8,32,128,256,Ar),new xn(32,128,258,1024,Ar),new xn(32,258,258,4096,Ar)],ho=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],qt=0,po=1,qi=2,mo=3,ag=32,rl=42,go=113,Xi=666,il=8,lg=0,sl=1,cg=2,rt=3,Fo=258,Vt=Fo+rt+1;function J0(e,t,n,r){const i=e[t*2],s=e[n*2];return i<s||i==s&&r[t]<=r[n]}function ug(){const e=this;let t,n,r,i,s,o,a,l,u,c,d,f,h,w,_,m,g,v,b,x,y,k,C,E,I,S,T,L,D,G,z,O,$;const U=new Qe,Q=new Qe,N=new Qe;e.depth=[];let A,R,B,q,ie,j;e.bl_count=[],e.heap=[],z=[],O=[],$=[];function J(){u=2*s,d[h-1]=0;for(let V=0;V<h-1;V++)d[V]=0;S=on[T].max_lazy,D=on[T].good_length,G=on[T].nice_length,I=on[T].max_chain,y=0,g=0,C=0,v=E=rt-1,x=0,f=0}function _e(){let V;for(V=0;V<Pc;V++)z[V*2]=0;for(V=0;V<Yl;V++)O[V*2]=0;for(V=0;V<Wl;V++)$[V*2]=0;z[Wi*2]=1,e.opt_len=e.static_len=0,R=B=0}function ve(){U.dyn_tree=z,U.stat_desc=yt.static_l_desc,Q.dyn_tree=O,Q.stat_desc=yt.static_d_desc,N.dyn_tree=$,N.stat_desc=yt.static_bl_desc,ie=0,j=0,q=8,_e()}e.pqdownheap=function(V,Y){const H=e.heap,W=H[Y];let te=Y<<1;for(;te<=e.heap_len&&(te<e.heap_len&&J0(V,H[te+1],H[te],e.depth)&&te++,!J0(V,W,H[te],e.depth));)H[Y]=H[te],Y=te,te<<=1;H[Y]=W};function We(V,Y){let H=-1,W,te=V[0*2+1],Z=0,se=7,Je=4;te===0&&(se=138,Je=3),V[(Y+1)*2+1]=65535;for(let qe=0;qe<=Y;qe++)W=te,te=V[(qe+1)*2+1],!(++Z<se&&W==te)&&(Z<Je?$[W*2]+=Z:W!==0?(W!=H&&$[W*2]++,$[Y0*2]++):Z<=10?$[W0*2]++:$[q0*2]++,Z=0,H=W,te===0?(se=138,Je=3):W==te?(se=6,Je=3):(se=7,Je=4))}function Ze(){let V;for(We(z,U.max_code),We(O,Q.max_code),N.build_tree(e),V=Wl-1;V>=3&&$[Qe.bl_order[V]*2+1]===0;V--);return e.opt_len+=3*(V+1)+5+5+4,V}function Ke(V){e.pending_buf[e.pending++]=V}function vt(V){Ke(V&255),Ke(V>>>8&255)}function Ie(V){Ke(V>>8&255),Ke(V&255&255)}function je(V,Y){let H;const W=Y;j>nl-W?(H=V,ie|=H<<j&65535,vt(ie),ie=H>>>nl-j,j+=W-nl):(ie|=V<<j&65535,j+=W)}function Ve(V,Y){const H=V*2;je(Y[H]&65535,Y[H+1]&65535)}function ae(V,Y){let H,W=-1,te,Z=V[0*2+1],se=0,Je=7,qe=4;for(Z===0&&(Je=138,qe=3),H=0;H<=Y;H++)if(te=Z,Z=V[(H+1)*2+1],!(++se<Je&&te==Z)){if(se<qe)do Ve(te,$);while(--se!==0);else te!==0?(te!=W&&(Ve(te,$),se--),Ve(Y0,$),je(se-3,2)):se<=10?(Ve(W0,$),je(se-3,3)):(Ve(q0,$),je(se-11,7));se=0,W=te,Z===0?(Je=138,qe=3):te==Z?(Je=6,qe=3):(Je=7,qe=4)}}function wn(V,Y,H){let W;for(je(V-257,5),je(Y-1,5),je(H-4,4),W=0;W<H;W++)je($[Qe.bl_order[W]*2+1],3);ae(z,V-1),ae(O,Y-1)}function Ue(){j==16?(vt(ie),ie=0,j=0):j>=8&&(Ke(ie&255),ie>>>=8,j-=8)}function Ne(){je(sl<<1,3),Ve(Wi,yt.static_ltree),Ue(),1+q+10-j<9&&(je(sl<<1,3),Ve(Wi,yt.static_ltree),Ue()),q=7}function tt(V,Y){let H,W,te;if(e.dist_buf[R]=V,e.lc_buf[R]=Y&255,R++,V===0?z[Y*2]++:(B++,V--,z[(Qe._length_code[Y]+ra+1)*2]++,O[Qe.d_code(V)*2]++),(R&8191)===0&&T>2){for(H=R*8,W=y-g,te=0;te<Yl;te++)H+=O[te*2]*(5+Qe.extra_dbits[te]);if(H>>>=3,B<Math.floor(R/2)&&H<Math.floor(W/2))return!0}return R==A-1}function xt(V,Y){let H,W,te=0,Z,se;if(R!==0)do H=e.dist_buf[te],W=e.lc_buf[te],te++,H===0?Ve(W,V):(Z=Qe._length_code[W],Ve(Z+ra+1,V),se=Qe.extra_lbits[Z],se!==0&&(W-=Qe.base_length[Z],je(W,se)),H--,Z=Qe.d_code(H),Ve(Z,Y),se=Qe.extra_dbits[Z],se!==0&&(H-=Qe.base_dist[Z],je(H,se)));while(te<R);Ve(Wi,V),q=V[Wi*2+1]}function vn(){j>8?vt(ie):j>0&&Ke(ie&255),ie=0,j=0}function Rn(V,Y,H){vn(),q=8,H&&(vt(Y),vt(~Y)),e.pending_buf.set(l.subarray(V,V+Y),e.pending),e.pending+=Y}function ee(V,Y,H){je((lg<<1)+(H?1:0),3),Rn(V,Y,!0)}function ne(V,Y,H){let W,te,Z=0;T>0?(U.build_tree(e),Q.build_tree(e),Z=Ze(),W=e.opt_len+3+7>>>3,te=e.static_len+3+7>>>3,te<=W&&(W=te)):W=te=Y+5,Y+4<=W&&V!=-1?ee(V,Y,H):te==W?(je((sl<<1)+(H?1:0),3),xt(yt.static_ltree,yt.static_dtree)):(je((cg<<1)+(H?1:0),3),wn(U.max_code+1,Q.max_code+1,Z+1),xt(z,O)),_e(),H&&vn()}function de(V){ne(g>=0?g:-1,y-g,V),g=y,t.flush_pending()}function Ee(){let V,Y,H,W;do{if(W=u-C-y,W===0&&y===0&&C===0)W=s;else if(W==-1)W--;else if(y>=s+s-Vt){l.set(l.subarray(s,s+s),0),k-=s,y-=s,g-=s,V=h,H=V;do Y=d[--H]&65535,d[H]=Y>=s?Y-s:0;while(--V!==0);V=s,H=V;do Y=c[--H]&65535,c[H]=Y>=s?Y-s:0;while(--V!==0);W+=s}if(t.avail_in===0)return;V=t.read_buf(l,y+C,W),C+=V,C>=rt&&(f=l[y]&255,f=(f<<m^l[y+1]&255)&_)}while(C<Vt&&t.avail_in!==0)}function at(V){let Y=65535,H;for(Y>r-5&&(Y=r-5);;){if(C<=1){if(Ee(),C===0&&V==fi)return qt;if(C===0)break}if(y+=C,C=0,H=g+Y,(y===0||y>=H)&&(C=y-H,y=H,de(!1),t.avail_out===0)||y-g>=s-Vt&&(de(!1),t.avail_out===0))return qt}return de(V==Ot),t.avail_out===0?V==Ot?qi:qt:V==Ot?mo:po}function Mt(V){let Y=I,H=y,W,te,Z=E;const se=y>s-Vt?y-(s-Vt):0;let Je=G;const qe=a,ht=y+Fo;let sn=l[H+Z-1],ao=l[H+Z];E>=D&&(Y>>=2),Je>C&&(Je=C);do if(W=V,!(l[W+Z]!=ao||l[W+Z-1]!=sn||l[W]!=l[H]||l[++W]!=l[H+1])){H+=2,W++;do;while(l[++H]==l[++W]&&l[++H]==l[++W]&&l[++H]==l[++W]&&l[++H]==l[++W]&&l[++H]==l[++W]&&l[++H]==l[++W]&&l[++H]==l[++W]&&l[++H]==l[++W]&&H<ht);if(te=Fo-(ht-H),H=ht-Fo,te>Z){if(k=V,Z=te,te>=Je)break;sn=l[H+Z-1],ao=l[H+Z]}}while((V=c[V&qe]&65535)>se&&--Y!==0);return Z<=C?Z:C}function Yi(V){let Y=0,H;for(;;){if(C<Vt){if(Ee(),C<Vt&&V==fi)return qt;if(C===0)break}if(C>=rt&&(f=(f<<m^l[y+(rt-1)]&255)&_,Y=d[f]&65535,c[y&a]=d[f],d[f]=y),Y!==0&&(y-Y&65535)<=s-Vt&&L!=uo&&(v=Mt(Y)),v>=rt)if(H=tt(y-k,v-rt),C-=v,v<=S&&C>=rt){v--;do y++,f=(f<<m^l[y+(rt-1)]&255)&_,Y=d[f]&65535,c[y&a]=d[f],d[f]=y;while(--v!==0);y++}else y+=v,v=0,f=l[y]&255,f=(f<<m^l[y+1]&255)&_;else H=tt(0,l[y]&255),C--,y++;if(H&&(de(!1),t.avail_out===0))return qt}return de(V==Ot),t.avail_out===0?V==Ot?qi:qt:V==Ot?mo:po}function ni(V){let Y=0,H,W;for(;;){if(C<Vt){if(Ee(),C<Vt&&V==fi)return qt;if(C===0)break}if(C>=rt&&(f=(f<<m^l[y+(rt-1)]&255)&_,Y=d[f]&65535,c[y&a]=d[f],d[f]=y),E=v,b=k,v=rt-1,Y!==0&&E<S&&(y-Y&65535)<=s-Vt&&(L!=uo&&(v=Mt(Y)),v<=5&&(L==Km||v==rt&&y-k>4096)&&(v=rt-1)),E>=rt&&v<=E){W=y+C-rt,H=tt(y-1-b,E-rt),C-=E-1,E-=2;do++y<=W&&(f=(f<<m^l[y+(rt-1)]&255)&_,Y=d[f]&65535,c[y&a]=d[f],d[f]=y);while(--E!==0);if(x=0,v=rt-1,y++,H&&(de(!1),t.avail_out===0))return qt}else if(x!==0){if(H=tt(0,l[y-1]&255),H&&de(!1),y++,C--,t.avail_out===0)return qt}else x=1,y++,C--}return x!==0&&(H=tt(0,l[y-1]&255),x=0),de(V==Ot),t.avail_out===0?V==Ot?qi:qt:V==Ot?mo:po}function oo(V){return V.total_in=V.total_out=0,V.msg=null,e.pending=0,e.pending_out=0,n=go,i=fi,ve(),J(),an}e.deflateInit=function(V,Y,H,W,te,Z){return W||(W=il),te||(te=og),Z||(Z=Jm),V.msg=null,Y==ia&&(Y=6),te<1||te>sg||W!=il||H<9||H>15||Y<0||Y>9||Z<0||Z>uo?dn:(V.dstate=e,o=H,s=1<<o,a=s-1,w=te+7,h=1<<w,_=h-1,m=Math.floor((w+rt-1)/rt),l=new Uint8Array(s*2),c=[],d=[],A=1<<te+6,e.pending_buf=new Uint8Array(A*4),r=A*4,e.dist_buf=new Uint16Array(A),e.lc_buf=new Uint8Array(A),T=Y,L=Z,oo(V))},e.deflateEnd=function(){return n!=rl&&n!=go&&n!=Xi?dn:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,d=null,c=null,l=null,e.dstate=null,n==go?eg:an)},e.deflateParams=function(V,Y,H){let W=an;return Y==ia&&(Y=6),Y<0||Y>9||H<0||H>uo?dn:(on[T].func!=on[Y].func&&V.total_in!==0&&(W=V.deflate(X0)),T!=Y&&(T=Y,S=on[T].max_lazy,D=on[T].good_length,G=on[T].nice_length,I=on[T].max_chain),L=H,W)},e.deflateSetDictionary=function(V,Y,H){let W=H,te,Z=0;if(!Y||n!=rl)return dn;if(W<rt)return an;for(W>s-Vt&&(W=s-Vt,Z=H-W),l.set(Y.subarray(Z,Z+W),0),y=W,g=W,f=l[0]&255,f=(f<<m^l[1]&255)&_,te=0;te<=W-rt;te++)f=(f<<m^l[te+(rt-1)]&255)&_,c[te&a]=d[f],d[f]=te;return an},e.deflate=function(V,Y){let H,W,te,Z,se;if(Y>Ot||Y<0)return dn;if(!V.next_out||!V.next_in&&V.avail_in!==0||n==Xi&&Y!=Ot)return V.msg=ho[fo-dn],dn;if(V.avail_out===0)return V.msg=ho[fo-ri],ri;if(t=V,Z=i,i=Y,n==rl&&(W=il+(o-8<<4)<<8,te=(T-1&255)>>1,te>3&&(te=3),W|=te<<6,y!==0&&(W|=ag),W+=31-W%31,n=go,Ie(W)),e.pending!==0){if(t.flush_pending(),t.avail_out===0)return i=-1,an}else if(t.avail_in===0&&Y<=Z&&Y!=Ot)return t.msg=ho[fo-ri],ri;if(n==Xi&&t.avail_in!==0)return V.msg=ho[fo-ri],ri;if(t.avail_in!==0||C!==0||Y!=fi&&n!=Xi){switch(se=-1,on[T].func){case Tf:se=at(Y);break;case Do:se=Yi(Y);break;case Ar:se=ni(Y);break}if((se==qi||se==mo)&&(n=Xi),se==qt||se==qi)return t.avail_out===0&&(i=-1),an;if(se==po){if(Y==X0)Ne();else if(ee(0,0,!1),Y==Qm)for(H=0;H<h;H++)d[H]=0;if(t.flush_pending(),t.avail_out===0)return i=-1,an}}return Y!=Ot?an:Mf}}function Lf(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}Lf.prototype={deflateInit:function(e,t){const n=this;return n.dstate=new ug,t||(t=bs),n.dstate.deflateInit(n,e,t)},deflate:function(e){const t=this;return t.dstate?t.dstate.deflate(t,e):dn},deflateEnd:function(){const e=this;if(!e.dstate)return dn;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams:function(e,t){const n=this;return n.dstate?n.dstate.deflateParams(n,e,t):dn},deflateSetDictionary:function(e,t){const n=this;return n.dstate?n.dstate.deflateSetDictionary(n,e,t):dn},read_buf:function(e,t,n){const r=this;let i=r.avail_in;return i>n&&(i=n),i===0?0:(r.avail_in-=i,e.set(r.next_in.subarray(r.next_in_index,r.next_in_index+i),t),r.next_in_index+=i,r.total_in+=i,i)},flush_pending:function(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,e.dstate.pending===0&&(e.dstate.pending_out=0))}};function dg(e){const t=this,n=new Lf,r=fg(e&&e.chunkSize?e.chunkSize:64*1024),i=fi,s=new Uint8Array(r);let o=e?e.level:ia;typeof o=="undefined"&&(o=ia),n.deflateInit(o),n.next_out=s,t.append=function(a,l){let u,c,d=0,f=0,h=0;const w=[];if(!!a.length){n.next_in_index=0,n.next_in=a,n.avail_in=a.length;do{if(n.next_out_index=0,n.avail_out=r,u=n.deflate(i),u!=an)throw new Error("deflating: "+n.msg);n.next_out_index&&(n.next_out_index==r?w.push(new Uint8Array(s)):w.push(s.slice(0,n.next_out_index))),h+=n.next_out_index,l&&n.next_in_index>0&&n.next_in_index!=d&&(l(n.next_in_index),d=n.next_in_index)}while(n.avail_in>0||n.avail_out===0);return w.length>1?(c=new Uint8Array(h),w.forEach(function(_){c.set(_,f),f+=_.length})):c=w[0]||new Uint8Array(0),c}},t.flush=function(){let a,l,u=0,c=0;const d=[];do{if(n.next_out_index=0,n.avail_out=r,a=n.deflate(Ot),a!=Mf&&a!=an)throw new Error("deflating: "+n.msg);r-n.avail_out>0&&d.push(s.slice(0,n.next_out_index)),c+=n.next_out_index}while(n.avail_in>0||n.avail_out===0);return n.deflateEnd(),l=new Uint8Array(c),d.forEach(function(f){l.set(f,u),u+=f.length}),l}}function fg(e){return e+5*(Math.floor(e/16383)+1)}const hg=15,Re=0,Hn=1,pg=2,Nt=-2,et=-3,Q0=-4,Zn=-5,zt=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],Of=1440,mg=0,gg=4,_g=9,wg=5,vg=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],xg=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],bg=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],yg=[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,112,112],kg=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],Cg=[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],nr=15;function ql(){const e=this;let t,n,r,i,s,o;function a(u,c,d,f,h,w,_,m,g,v,b){let x,y,k,C,E,I,S,T,L,D,G,z,O,$,U;D=0,E=d;do r[u[c+D]]++,D++,E--;while(E!==0);if(r[0]==d)return _[0]=-1,m[0]=0,Re;for(T=m[0],I=1;I<=nr&&r[I]===0;I++);for(S=I,T<I&&(T=I),E=nr;E!==0&&r[E]===0;E--);for(k=E,T>E&&(T=E),m[0]=T,$=1<<I;I<E;I++,$<<=1)if(($-=r[I])<0)return et;if(($-=r[E])<0)return et;for(r[E]+=$,o[1]=I=0,D=1,O=2;--E!==0;)o[O]=I+=r[D],O++,D++;E=0,D=0;do(I=u[c+D])!==0&&(b[o[I]++]=E),D++;while(++E<d);for(d=o[k],o[0]=E=0,D=0,C=-1,z=-T,s[0]=0,G=0,U=0;S<=k;S++)for(x=r[S];x--!==0;){for(;S>z+T;){if(C++,z+=T,U=k-z,U=U>T?T:U,(y=1<<(I=S-z))>x+1&&(y-=x+1,O=S,I<U))for(;++I<U&&!((y<<=1)<=r[++O]);)y-=r[O];if(U=1<<I,v[0]+U>Of)return et;s[C]=G=v[0],v[0]+=U,C!==0?(o[C]=E,i[0]=I,i[1]=T,I=E>>>z-T,i[2]=G-s[C-1]-I,g.set(i,(s[C-1]+I)*3)):_[0]=G}for(i[1]=S-z,D>=d?i[0]=128+64:b[D]<f?(i[0]=b[D]<256?0:32+64,i[2]=b[D++]):(i[0]=w[b[D]-f]+16+64,i[2]=h[b[D++]-f]),y=1<<S-z,I=E>>>z;I<U;I+=y)g.set(i,(G+I)*3);for(I=1<<S-1;(E&I)!==0;I>>>=1)E^=I;for(E^=I,L=(1<<z)-1;(E&L)!=o[C];)C--,z-=T,L=(1<<z)-1}return $!==0&&k!=1?Zn:Re}function l(u){let c;for(t||(t=[],n=[],r=new Int32Array(nr+1),i=[],s=new Int32Array(nr),o=new Int32Array(nr+1)),n.length<u&&(n=[]),c=0;c<u;c++)n[c]=0;for(c=0;c<nr+1;c++)r[c]=0;for(c=0;c<3;c++)i[c]=0;s.set(r.subarray(0,nr),0),o.set(r.subarray(0,nr+1),0)}e.inflate_trees_bits=function(u,c,d,f,h){let w;return l(19),t[0]=0,w=a(u,0,19,19,null,null,d,c,f,t,n),w==et?h.msg="oversubscribed dynamic bit lengths tree":(w==Zn||c[0]===0)&&(h.msg="incomplete dynamic bit lengths tree",w=et),w},e.inflate_trees_dynamic=function(u,c,d,f,h,w,_,m,g){let v;return l(288),t[0]=0,v=a(d,0,u,257,bg,yg,w,f,m,t,n),v!=Re||f[0]===0?(v==et?g.msg="oversubscribed literal/length tree":v!=Q0&&(g.msg="incomplete literal/length tree",v=et),v):(l(288),v=a(d,u,c,0,kg,Cg,_,h,m,t,n),v!=Re||h[0]===0&&u>257?(v==et?g.msg="oversubscribed distance tree":v==Zn?(g.msg="incomplete distance tree",v=et):v!=Q0&&(g.msg="empty distance tree with lengths",v=et),v):Re)}}ql.inflate_trees_fixed=function(e,t,n,r){return e[0]=_g,t[0]=wg,n[0]=vg,r[0]=xg,Re};const _o=0,e1=1,t1=2,n1=3,r1=4,i1=5,s1=6,ol=7,o1=8,wo=9;function Eg(){const e=this;let t,n=0,r,i=0,s=0,o=0,a=0,l=0,u=0,c=0,d,f=0,h,w=0;function _(m,g,v,b,x,y,k,C){let E,I,S,T,L,D,G,z,O,$,U,Q,N,A,R,B;G=C.next_in_index,z=C.avail_in,L=k.bitb,D=k.bitk,O=k.write,$=O<k.read?k.read-O-1:k.end-O,U=zt[m],Q=zt[g];do{for(;D<20;)z--,L|=(C.read_byte(G++)&255)<<D,D+=8;if(E=L&U,I=v,S=b,B=(S+E)*3,(T=I[B])===0){L>>=I[B+1],D-=I[B+1],k.win[O++]=I[B+2],$--;continue}do{if(L>>=I[B+1],D-=I[B+1],(T&16)!==0){for(T&=15,N=I[B+2]+(L&zt[T]),L>>=T,D-=T;D<15;)z--,L|=(C.read_byte(G++)&255)<<D,D+=8;E=L&Q,I=x,S=y,B=(S+E)*3,T=I[B];do if(L>>=I[B+1],D-=I[B+1],(T&16)!==0){for(T&=15;D<T;)z--,L|=(C.read_byte(G++)&255)<<D,D+=8;if(A=I[B+2]+(L&zt[T]),L>>=T,D-=T,$-=N,O>=A)R=O-A,O-R>0&&2>O-R?(k.win[O++]=k.win[R++],k.win[O++]=k.win[R++],N-=2):(k.win.set(k.win.subarray(R,R+2),O),O+=2,R+=2,N-=2);else{R=O-A;do R+=k.end;while(R<0);if(T=k.end-R,N>T){if(N-=T,O-R>0&&T>O-R)do k.win[O++]=k.win[R++];while(--T!==0);else k.win.set(k.win.subarray(R,R+T),O),O+=T,R+=T,T=0;R=0}}if(O-R>0&&N>O-R)do k.win[O++]=k.win[R++];while(--N!==0);else k.win.set(k.win.subarray(R,R+N),O),O+=N,R+=N,N=0;break}else if((T&64)===0)E+=I[B+2],E+=L&zt[T],B=(S+E)*3,T=I[B];else return C.msg="invalid distance code",N=C.avail_in-z,N=D>>3<N?D>>3:N,z+=N,G-=N,D-=N<<3,k.bitb=L,k.bitk=D,C.avail_in=z,C.total_in+=G-C.next_in_index,C.next_in_index=G,k.write=O,et;while(!0);break}if((T&64)===0){if(E+=I[B+2],E+=L&zt[T],B=(S+E)*3,(T=I[B])===0){L>>=I[B+1],D-=I[B+1],k.win[O++]=I[B+2],$--;break}}else return(T&32)!==0?(N=C.avail_in-z,N=D>>3<N?D>>3:N,z+=N,G-=N,D-=N<<3,k.bitb=L,k.bitk=D,C.avail_in=z,C.total_in+=G-C.next_in_index,C.next_in_index=G,k.write=O,Hn):(C.msg="invalid literal/length code",N=C.avail_in-z,N=D>>3<N?D>>3:N,z+=N,G-=N,D-=N<<3,k.bitb=L,k.bitk=D,C.avail_in=z,C.total_in+=G-C.next_in_index,C.next_in_index=G,k.write=O,et)}while(!0)}while($>=258&&z>=10);return N=C.avail_in-z,N=D>>3<N?D>>3:N,z+=N,G-=N,D-=N<<3,k.bitb=L,k.bitk=D,C.avail_in=z,C.total_in+=G-C.next_in_index,C.next_in_index=G,k.write=O,Re}e.init=function(m,g,v,b,x,y){t=_o,u=m,c=g,d=v,f=b,h=x,w=y,r=null},e.proc=function(m,g,v){let b,x,y,k=0,C=0,E=0,I,S,T,L;for(E=g.next_in_index,I=g.avail_in,k=m.bitb,C=m.bitk,S=m.write,T=S<m.read?m.read-S-1:m.end-S;;)switch(t){case _o:if(T>=258&&I>=10&&(m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,v=_(u,c,d,f,h,w,m,g),E=g.next_in_index,I=g.avail_in,k=m.bitb,C=m.bitk,S=m.write,T=S<m.read?m.read-S-1:m.end-S,v!=Re)){t=v==Hn?ol:wo;break}s=u,r=d,i=f,t=e1;case e1:for(b=s;C<b;){if(I!==0)v=Re;else return m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,m.inflate_flush(g,v);I--,k|=(g.read_byte(E++)&255)<<C,C+=8}if(x=(i+(k&zt[b]))*3,k>>>=r[x+1],C-=r[x+1],y=r[x],y===0){o=r[x+2],t=s1;break}if((y&16)!==0){a=y&15,n=r[x+2],t=t1;break}if((y&64)===0){s=y,i=x/3+r[x+2];break}if((y&32)!==0){t=ol;break}return t=wo,g.msg="invalid literal/length code",v=et,m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,m.inflate_flush(g,v);case t1:for(b=a;C<b;){if(I!==0)v=Re;else return m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,m.inflate_flush(g,v);I--,k|=(g.read_byte(E++)&255)<<C,C+=8}n+=k&zt[b],k>>=b,C-=b,s=c,r=h,i=w,t=n1;case n1:for(b=s;C<b;){if(I!==0)v=Re;else return m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,m.inflate_flush(g,v);I--,k|=(g.read_byte(E++)&255)<<C,C+=8}if(x=(i+(k&zt[b]))*3,k>>=r[x+1],C-=r[x+1],y=r[x],(y&16)!==0){a=y&15,l=r[x+2],t=r1;break}if((y&64)===0){s=y,i=x/3+r[x+2];break}return t=wo,g.msg="invalid distance code",v=et,m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,m.inflate_flush(g,v);case r1:for(b=a;C<b;){if(I!==0)v=Re;else return m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,m.inflate_flush(g,v);I--,k|=(g.read_byte(E++)&255)<<C,C+=8}l+=k&zt[b],k>>=b,C-=b,t=i1;case i1:for(L=S-l;L<0;)L+=m.end;for(;n!==0;){if(T===0&&(S==m.end&&m.read!==0&&(S=0,T=S<m.read?m.read-S-1:m.end-S),T===0&&(m.write=S,v=m.inflate_flush(g,v),S=m.write,T=S<m.read?m.read-S-1:m.end-S,S==m.end&&m.read!==0&&(S=0,T=S<m.read?m.read-S-1:m.end-S),T===0)))return m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,m.inflate_flush(g,v);m.win[S++]=m.win[L++],T--,L==m.end&&(L=0),n--}t=_o;break;case s1:if(T===0&&(S==m.end&&m.read!==0&&(S=0,T=S<m.read?m.read-S-1:m.end-S),T===0&&(m.write=S,v=m.inflate_flush(g,v),S=m.write,T=S<m.read?m.read-S-1:m.end-S,S==m.end&&m.read!==0&&(S=0,T=S<m.read?m.read-S-1:m.end-S),T===0)))return m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,m.inflate_flush(g,v);v=Re,m.win[S++]=o,T--,t=_o;break;case ol:if(C>7&&(C-=8,I++,E--),m.write=S,v=m.inflate_flush(g,v),S=m.write,T=S<m.read?m.read-S-1:m.end-S,m.read!=m.write)return m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,m.inflate_flush(g,v);t=o1;case o1:return v=Hn,m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,m.inflate_flush(g,v);case wo:return v=et,m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,m.inflate_flush(g,v);default:return v=Nt,m.bitb=k,m.bitk=C,g.avail_in=I,g.total_in+=E-g.next_in_index,g.next_in_index=E,m.write=S,m.inflate_flush(g,v)}},e.free=function(){}}const a1=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ii=0,al=1,l1=2,c1=3,u1=4,d1=5,vo=6,xo=7,f1=8,kr=9;function Ag(e,t){const n=this;let r=ii,i=0,s=0,o=0,a;const l=[0],u=[0],c=new Eg;let d=0,f=new Int32Array(Of*3);const h=0,w=new ql;n.bitk=0,n.bitb=0,n.win=new Uint8Array(t),n.end=t,n.read=0,n.write=0,n.reset=function(_,m){m&&(m[0]=h),r==vo&&c.free(_),r=ii,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(e,null),n.inflate_flush=function(_,m){let g,v,b;return v=_.next_out_index,b=n.read,g=(b<=n.write?n.write:n.end)-b,g>_.avail_out&&(g=_.avail_out),g!==0&&m==Zn&&(m=Re),_.avail_out-=g,_.total_out+=g,_.next_out.set(n.win.subarray(b,b+g),v),v+=g,b+=g,b==n.end&&(b=0,n.write==n.end&&(n.write=0),g=n.write-b,g>_.avail_out&&(g=_.avail_out),g!==0&&m==Zn&&(m=Re),_.avail_out-=g,_.total_out+=g,_.next_out.set(n.win.subarray(b,b+g),v),v+=g,b+=g),_.next_out_index=v,n.read=b,m},n.proc=function(_,m){let g,v,b,x,y,k,C,E;for(x=_.next_in_index,y=_.avail_in,v=n.bitb,b=n.bitk,k=n.write,C=k<n.read?n.read-k-1:n.end-k;;){let I,S,T,L,D,G,z,O;switch(r){case ii:for(;b<3;){if(y!==0)m=Re;else return n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);y--,v|=(_.read_byte(x++)&255)<<b,b+=8}switch(g=v&7,d=g&1,g>>>1){case 0:v>>>=3,b-=3,g=b&7,v>>>=g,b-=g,r=al;break;case 1:I=[],S=[],T=[[]],L=[[]],ql.inflate_trees_fixed(I,S,T,L),c.init(I[0],S[0],T[0],0,L[0],0),v>>>=3,b-=3,r=vo;break;case 2:v>>>=3,b-=3,r=c1;break;case 3:return v>>>=3,b-=3,r=kr,_.msg="invalid block type",m=et,n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m)}break;case al:for(;b<32;){if(y!==0)m=Re;else return n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);y--,v|=(_.read_byte(x++)&255)<<b,b+=8}if((~v>>>16&65535)!=(v&65535))return r=kr,_.msg="invalid stored block lengths",m=et,n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);i=v&65535,v=b=0,r=i!==0?l1:d!==0?xo:ii;break;case l1:if(y===0||C===0&&(k==n.end&&n.read!==0&&(k=0,C=k<n.read?n.read-k-1:n.end-k),C===0&&(n.write=k,m=n.inflate_flush(_,m),k=n.write,C=k<n.read?n.read-k-1:n.end-k,k==n.end&&n.read!==0&&(k=0,C=k<n.read?n.read-k-1:n.end-k),C===0)))return n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);if(m=Re,g=i,g>y&&(g=y),g>C&&(g=C),n.win.set(_.read_buf(x,g),k),x+=g,y-=g,k+=g,C-=g,(i-=g)!==0)break;r=d!==0?xo:ii;break;case c1:for(;b<14;){if(y!==0)m=Re;else return n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);y--,v|=(_.read_byte(x++)&255)<<b,b+=8}if(s=g=v&16383,(g&31)>29||(g>>5&31)>29)return r=kr,_.msg="too many length or distance symbols",m=et,n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);if(g=258+(g&31)+(g>>5&31),!a||a.length<g)a=[];else for(E=0;E<g;E++)a[E]=0;v>>>=14,b-=14,o=0,r=u1;case u1:for(;o<4+(s>>>10);){for(;b<3;){if(y!==0)m=Re;else return n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);y--,v|=(_.read_byte(x++)&255)<<b,b+=8}a[a1[o++]]=v&7,v>>>=3,b-=3}for(;o<19;)a[a1[o++]]=0;if(l[0]=7,g=w.inflate_trees_bits(a,l,u,f,_),g!=Re)return m=g,m==et&&(a=null,r=kr),n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);o=0,r=d1;case d1:for(;g=s,!(o>=258+(g&31)+(g>>5&31));){let $,U;for(g=l[0];b<g;){if(y!==0)m=Re;else return n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);y--,v|=(_.read_byte(x++)&255)<<b,b+=8}if(g=f[(u[0]+(v&zt[g]))*3+1],U=f[(u[0]+(v&zt[g]))*3+2],U<16)v>>>=g,b-=g,a[o++]=U;else{for(E=U==18?7:U-14,$=U==18?11:3;b<g+E;){if(y!==0)m=Re;else return n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);y--,v|=(_.read_byte(x++)&255)<<b,b+=8}if(v>>>=g,b-=g,$+=v&zt[E],v>>>=E,b-=E,E=o,g=s,E+$>258+(g&31)+(g>>5&31)||U==16&&E<1)return a=null,r=kr,_.msg="invalid bit length repeat",m=et,n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);U=U==16?a[E-1]:0;do a[E++]=U;while(--$!==0);o=E}}if(u[0]=-1,D=[],G=[],z=[],O=[],D[0]=9,G[0]=6,g=s,g=w.inflate_trees_dynamic(257+(g&31),1+(g>>5&31),a,D,G,z,O,f,_),g!=Re)return g==et&&(a=null,r=kr),m=g,n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);c.init(D[0],G[0],f,z[0],f,O[0]),r=vo;case vo:if(n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,(m=c.proc(n,_,m))!=Hn)return n.inflate_flush(_,m);if(m=Re,c.free(_),x=_.next_in_index,y=_.avail_in,v=n.bitb,b=n.bitk,k=n.write,C=k<n.read?n.read-k-1:n.end-k,d===0){r=ii;break}r=xo;case xo:if(n.write=k,m=n.inflate_flush(_,m),k=n.write,C=k<n.read?n.read-k-1:n.end-k,n.read!=n.write)return n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);r=f1;case f1:return m=Hn,n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);case kr:return m=et,n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m);default:return m=Nt,n.bitb=v,n.bitk=b,_.avail_in=y,_.total_in+=x-_.next_in_index,_.next_in_index=x,n.write=k,n.inflate_flush(_,m)}}},n.free=function(_){n.reset(_,null),n.win=null,f=null},n.set_dictionary=function(_,m,g){n.win.set(_.subarray(m,m+g),0),n.read=n.write=g},n.sync_point=function(){return r==al?1:0}}const Sg=32,Ig=8,Mg=0,h1=1,p1=2,m1=3,g1=4,_1=5,ll=6,Ki=7,w1=12,rr=13,Tg=[0,0,255,255];function Lg(){const e=this;e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0;function t(n){return!n||!n.istate?Nt:(n.total_in=n.total_out=0,n.msg=null,n.istate.mode=Ki,n.istate.blocks.reset(n,null),Re)}e.inflateEnd=function(n){return e.blocks&&e.blocks.free(n),e.blocks=null,Re},e.inflateInit=function(n,r){return n.msg=null,e.blocks=null,r<8||r>15?(e.inflateEnd(n),Nt):(e.wbits=r,n.istate.blocks=new Ag(n,1<<r),t(n),Re)},e.inflate=function(n,r){let i,s;if(!n||!n.istate||!n.next_in)return Nt;const o=n.istate;for(r=r==gg?Zn:Re,i=Zn;;)switch(o.mode){case Mg:if(n.avail_in===0)return i;if(i=r,n.avail_in--,n.total_in++,((o.method=n.read_byte(n.next_in_index++))&15)!=Ig){o.mode=rr,n.msg="unknown compression method",o.marker=5;break}if((o.method>>4)+8>o.wbits){o.mode=rr,n.msg="invalid win size",o.marker=5;break}o.mode=h1;case h1:if(n.avail_in===0)return i;if(i=r,n.avail_in--,n.total_in++,s=n.read_byte(n.next_in_index++)&255,((o.method<<8)+s)%31!==0){o.mode=rr,n.msg="incorrect header check",o.marker=5;break}if((s&Sg)===0){o.mode=Ki;break}o.mode=p1;case p1:if(n.avail_in===0)return i;i=r,n.avail_in--,n.total_in++,o.need=(n.read_byte(n.next_in_index++)&255)<<24&4278190080,o.mode=m1;case m1:if(n.avail_in===0)return i;i=r,n.avail_in--,n.total_in++,o.need+=(n.read_byte(n.next_in_index++)&255)<<16&16711680,o.mode=g1;case g1:if(n.avail_in===0)return i;i=r,n.avail_in--,n.total_in++,o.need+=(n.read_byte(n.next_in_index++)&255)<<8&65280,o.mode=_1;case _1:return n.avail_in===0?i:(i=r,n.avail_in--,n.total_in++,o.need+=n.read_byte(n.next_in_index++)&255,o.mode=ll,pg);case ll:return o.mode=rr,n.msg="need dictionary",o.marker=0,Nt;case Ki:if(i=o.blocks.proc(n,i),i==et){o.mode=rr,o.marker=0;break}if(i==Re&&(i=r),i!=Hn)return i;i=r,o.blocks.reset(n,o.was),o.mode=w1;case w1:return Hn;case rr:return et;default:return Nt}},e.inflateSetDictionary=function(n,r,i){let s=0,o=i;if(!n||!n.istate||n.istate.mode!=ll)return Nt;const a=n.istate;return o>=1<<a.wbits&&(o=(1<<a.wbits)-1,s=i-o),a.blocks.set_dictionary(r,s,o),a.mode=Ki,Re},e.inflateSync=function(n){let r,i,s,o,a;if(!n||!n.istate)return Nt;const l=n.istate;if(l.mode!=rr&&(l.mode=rr,l.marker=0),(r=n.avail_in)===0)return Zn;for(i=n.next_in_index,s=l.marker;r!==0&&s<4;)n.read_byte(i)==Tg[s]?s++:n.read_byte(i)!==0?s=0:s=4-s,i++,r--;return n.total_in+=i-n.next_in_index,n.next_in_index=i,n.avail_in=r,l.marker=s,s!=4?et:(o=n.total_in,a=n.total_out,t(n),n.total_in=o,n.total_out=a,l.mode=Ki,Re)},e.inflateSyncPoint=function(n){return!n||!n.istate||!n.istate.blocks?Nt:n.istate.blocks.sync_point()}}function Rf(){}Rf.prototype={inflateInit:function(e){const t=this;return t.istate=new Lg,e||(e=hg),t.istate.inflateInit(t,e)},inflate:function(e){const t=this;return t.istate?t.istate.inflate(t,e):Nt},inflateEnd:function(){const e=this;if(!e.istate)return Nt;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync:function(){const e=this;return e.istate?e.istate.inflateSync(e):Nt},inflateSetDictionary:function(e,t){const n=this;return n.istate?n.istate.inflateSetDictionary(n,e,t):Nt},read_byte:function(e){return this.next_in[e]},read_buf:function(e,t){return this.next_in.subarray(e,e+t)}};function Og(e){const t=this,n=new Rf,r=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,i=mg,s=new Uint8Array(r);let o=!1;n.inflateInit(),n.next_out=s,t.append=function(a,l){const u=[];let c,d,f=0,h=0,w=0;if(a.length!==0){n.next_in_index=0,n.next_in=a,n.avail_in=a.length;do{if(n.next_out_index=0,n.avail_out=r,n.avail_in===0&&!o&&(n.next_in_index=0,o=!0),c=n.inflate(i),o&&c===Zn){if(n.avail_in!==0)throw new Error("inflating: bad input")}else if(c!==Re&&c!==Hn)throw new Error("inflating: "+n.msg);if((o||c===Hn)&&n.avail_in===a.length)throw new Error("inflating: bad input");n.next_out_index&&(n.next_out_index===r?u.push(new Uint8Array(s)):u.push(s.slice(0,n.next_out_index))),w+=n.next_out_index,l&&n.next_in_index>0&&n.next_in_index!=f&&(l(n.next_in_index),f=n.next_in_index)}while(n.avail_in>0||n.avail_out===0);return u.length>1?(d=new Uint8Array(w),u.forEach(function(_){d.set(_,h),h+=_.length})):d=u[0]||new Uint8Array(0),d}},t.flush=function(){n.inflateEnd()}}const Rg={chunkSize:512*1024,maxWorkers:typeof navigator!="undefined"&&navigator.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},Rt=Object.assign({},Rg);function Nf(){return Rt}function $c(e){if(e.baseURL!==void 0&&(Rt.baseURL=e.baseURL),e.chunkSize!==void 0&&(Rt.chunkSize=e.chunkSize),e.maxWorkers!==void 0&&(Rt.maxWorkers=e.maxWorkers),e.terminateWorkerTimeout!==void 0&&(Rt.terminateWorkerTimeout=e.terminateWorkerTimeout),e.useWebWorkers!==void 0&&(Rt.useWebWorkers=e.useWebWorkers),e.Deflate!==void 0&&(Rt.Deflate=e.Deflate),e.Inflate!==void 0&&(Rt.Inflate=e.Inflate),e.workerScripts!==void 0){if(e.workerScripts.deflate){if(!Array.isArray(e.workerScripts.deflate))throw new Error("workerScripts.deflate must be an array");Rt.workerScripts||(Rt.workerScripts={}),Rt.workerScripts.deflate=e.workerScripts.deflate}if(e.workerScripts.inflate){if(!Array.isArray(e.workerScripts.inflate))throw new Error("workerScripts.inflate must be an array");Rt.workerScripts||(Rt.workerScripts={}),Rt.workerScripts.inflate=e.workerScripts.inflate}}}const Ji={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin",cap:["cap","pcap"],"cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",javascript:"js",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf",smil:["smi","smil"],"xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":"odm","vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-debian-package":["deb","udeb"],"x-director":["dcr","dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-koan":["skp","skd","skt","skm"],"x-kpresenter":["kpr","kpt"],"x-kword":["kwd","kwt"],"x-latex":"latex","x-lha":"lha","x-lyx":"lyx","x-lzh":"lzh","x-lzx":"lzx","x-maker":["frm","maker","frame","fm","fb","book","fbdoc"],"x-ms-wmd":"wmd","x-ms-wmz":"wmz","x-msdos-program":["com","exe","bat","dll"],"x-msi":"msi","x-netcdf":["nc","cdf"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":"rpm","x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tcl":"tcl","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-troff":["t","tr","roff"],"x-troff-man":"man","x-troff-me":"me","x-troff-ms":"ms","x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix",json:"json","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":"mathml",mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-otf":"otf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-font-woff":"woff","x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","x-msdownload":["exe","dll","com","bat","msi"],"x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tads":"gam","x-tex":"tex","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-compressed":"tgz","x-gzip":"gz","x-perfmon":["pma","pmc","pml","pmr","pmw"],"x-pkcs7-mime":["p7c","p7m"],"ynd.ms-pkipko":"pko"},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp2","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":["aif","aiff","aifc"],"x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2","x-wav":"wav",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-aac":"aac","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",mid:["mid","rmi"]},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":["mmd","mmod"],"x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":["sd","sdf"],"x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","mpc","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":["val","aso"],"x-pdb":["pdb","ent"],"x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-photoshop":"psd","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",pipeg:"jfif"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":["x3d","x3dz"],"x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",mathml:"mml",plain:["txt","text","brf","conf","def","list","log","in","bas"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:["tm","ts"],"tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":["diff","patch"],"x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas"],"x-pcs-gcd":"gcd","x-perl":["pl","pm"],"x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","cc","cxx","cpp","h","hh","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt"},video:{avif:".avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","vrml","wrl","flr","wrz","xaf","xof"]}};(()=>{const e={};for(let t in Ji)if(Ji.hasOwnProperty(t)){for(let n in Ji[t])if(Ji[t].hasOwnProperty(n)){const r=Ji[t][n];if(typeof r=="string")e[r]=t+"/"+n;else for(let i=0;i<r.length;i++)e[r[i]]=t+"/"+n}}return e})();const Df=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=t>>>1^3988292384:t=t>>>1;Df[e]=t}class ys{constructor(t){this.crc=t||-1}append(t){let n=this.crc|0;for(let r=0,i=t.length|0;r<i;r++)n=n>>>8^Df[(n^t[r])&255];this.crc=n}get(){return~this.crc}}function Xl(e){if(typeof TextEncoder=="undefined"){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}else return new TextEncoder().encode(e)}const Pt={concat(e,t){if(e.length===0||t.length===0)return e.concat(t);const n=e[e.length-1],r=Pt.getPartial(n);return r===32?e.concat(t):Pt._shiftRight(t,r,n|0,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(t===0)return 0;const n=e[t-1];return(t-1)*32+Pt.getPartial(n)},clamp(e,t){if(e.length*32<t)return e;e=e.slice(0,Math.ceil(t/32));const n=e.length;return t=t&31,n>0&&t&&(e[n-1]=Pt.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial(e,t,n){return e===32?t:(n?t|0:t<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,t,n,r){for(r===void 0&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(t===0)return r.concat(e);for(let o=0;o<e.length;o++)r.push(n|e[o]>>>t),n=e[o]<<32-t;const i=e.length?e[e.length-1]:0,s=Pt.getPartial(i);return r.push(Pt.partial(t+s&31,t+s>32?n:r.pop(),1)),r}},Ff={bytes:{fromBits(e){const n=Pt.bitLength(e)/8,r=new Uint8Array(n);let i;for(let s=0;s<n;s++)(s&3)===0&&(i=e[s/4]),r[s]=i>>>24,i<<=8;return r},toBits(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],(n&3)===3&&(t.push(r),r=0);return n&3&&t.push(Pt.partial(8*(n&3),r)),t}}},Bc={};Bc.sha1=function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()};Bc.sha1.prototype={blockSize:512,reset:function(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update:function(e){const t=this;typeof e=="string"&&(e=Ff.utf8String.toBits(e));const n=t._buffer=Pt.concat(t._buffer,e),r=t._length,i=t._length=r+Pt.bitLength(e);if(i>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(n);let o=0;for(let a=t.blockSize+r-(t.blockSize+r&t.blockSize-1);a<=i;a+=t.blockSize)t._block(s.subarray(16*o,16*(o+1))),o+=1;return n.splice(0,16*o),t},finalize:function(){const e=this;let t=e._buffer;const n=e._h;t=Pt.concat(t,[Pt.partial(1,1)]);for(let r=t.length+2;r&15;r++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),n},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:function(e,t,n,r){if(e<=19)return t&n|~t&r;if(e<=39)return t^n^r;if(e<=59)return t&n|t&r|n&r;if(e<=79)return t^n^r},_S:function(e,t){return t<<e|t>>>32-e},_block:function(e){const t=this,n=t._h,r=Array(80);for(let u=0;u<16;u++)r[u]=e[u];let i=n[0],s=n[1],o=n[2],a=n[3],l=n[4];for(let u=0;u<=79;u++){u>=16&&(r[u]=t._S(1,r[u-3]^r[u-8]^r[u-14]^r[u-16]));const c=t._S(5,i)+t._f(u,s,o,a)+l+r[u]+t._key[Math.floor(u/20)]|0;l=a,a=o,o=t._S(30,s),s=i,i=c}n[0]=n[0]+i|0,n[1]=n[1]+s|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0}};const Pf={};Pf.aes=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],i=e.length;let s,o,a,l=1;if(i!==4&&i!==6&&i!==8)throw new Error("invalid aes key size");for(t._key=[o=e.slice(0),a=[]],s=i;s<4*i+28;s++){let u=o[s-1];(s%i===0||i===8&&s%i===4)&&(u=n[u>>>24]<<24^n[u>>16&255]<<16^n[u>>8&255]<<8^n[u&255],s%i===0&&(u=u<<8^u>>>24^l<<24,l=l<<1^(l>>7)*283)),o[s]=o[s-i]^u}for(let u=0;s;u++,s--){const c=o[u&3?s:s-4];s<=4||u<4?a[u]=c:a[u]=r[0][n[c>>>24]]^r[1][n[c>>16&255]]^r[2][n[c>>8&255]]^r[3][n[c&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],i=[],s=[];let o,a,l,u;for(let c=0;c<256;c++)s[(i[c]=c<<1^(c>>7)*283)^c]=c;for(let c=o=0;!n[c];c^=a||1,o=s[o]||1){let d=o^o<<1^o<<2^o<<3^o<<4;d=d>>8^d&255^99,n[c]=d,r[d]=c,u=i[l=i[a=i[c]]];let f=u*16843009^l*65537^a*257^c*16843008,h=i[d]*257^d*16843008;for(let w=0;w<4;w++)e[w][c]=h=h<<24^h>>>8,t[w][d]=f=f<<24^f>>>8}for(let c=0;c<5;c++)e[c]=e[c].slice(0),t[c]=t[c].slice(0)}_crypt(e,t){if(e.length!==4)throw new Error("invalid aes block size");const n=this._key[t],r=n.length/4-2,i=[0,0,0,0],s=this._tables[t],o=s[0],a=s[1],l=s[2],u=s[3],c=s[4];let d=e[0]^n[0],f=e[t?3:1]^n[1],h=e[2]^n[2],w=e[t?1:3]^n[3],_=4,m,g,v;for(let b=0;b<r;b++)m=o[d>>>24]^a[f>>16&255]^l[h>>8&255]^u[w&255]^n[_],g=o[f>>>24]^a[h>>16&255]^l[w>>8&255]^u[d&255]^n[_+1],v=o[h>>>24]^a[w>>16&255]^l[d>>8&255]^u[f&255]^n[_+2],w=o[w>>>24]^a[d>>16&255]^l[f>>8&255]^u[h&255]^n[_+3],_+=4,d=m,f=g,h=v;for(let b=0;b<4;b++)i[t?3&-b:b]=c[d>>>24]<<24^c[f>>16&255]<<16^c[h>>8&255]<<8^c[w&255]^n[_++],m=d,d=f,f=h,h=w,w=m;return i}};const $f={};$f.ctrGladman=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if((e>>24&255)===255){let t=e>>16&255,n=e>>8&255,r=e&255;t===255?(t=0,n===255?(n=0,r===255?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const i=Pt.bitLength(t);for(let s=0;s<r;s+=4){this.incCounter(n);const o=e.encrypt(n);t[s]^=o[0],t[s+1]^=o[1],t[s+2]^=o[2],t[s+3]^=o[3]}return Pt.clamp(t,i)}};const Bf={};Bf.hmacSha1=class{constructor(e){const t=this,n=t._hash=Bc.sha1,r=[[],[]],i=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>i&&(e=n.hash(e));for(let s=0;s<i;s++)r[0][s]=e[s]^909522486,r[1][s]=e[s]^1549556828;t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){const t=this;t._updated=!0,t._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}};const jf="Invalid pasword",pi=16,Ng="raw",Vf={name:"PBKDF2"},Dg={name:"HMAC"},Fg="SHA-1",Pg=Object.assign({hash:Dg},Vf),$g=Object.assign({iterations:1e3,hash:{name:Fg}},Vf),Bg=["deriveBits"],ks=[8,12,16],Qi=[16,24,32],ir=10,zf=[0,0,0,0],Mn=Ff.bytes,Uf=Pf.aes,Hf=$f.ctrGladman,Zf=Bf.hmacSha1;class jg{constructor(t,n,r){Object.assign(this,{password:t,signed:n,strength:r-1,pendingInput:new Uint8Array(0)})}async append(t){const n=this;if(n.password){const i=Zt(t,0,ks[n.strength]+2);await zg(n,i,n.password),n.password=null,n.aesCtrGladman=new Hf(new Uf(n.keys.key),Array.from(zf)),n.hmac=new Zf(n.keys.authentication),t=Zt(t,ks[n.strength]+2)}const r=new Uint8Array(t.length-ir-(t.length-ir)%pi);return Gf(n,t,r,0,ir,!0)}flush(){const t=this,n=t.pendingInput,r=Zt(n,0,n.length-ir),i=Zt(n,n.length-ir);let s=new Uint8Array(0);if(r.length){const a=Mn.toBits(r);t.hmac.update(a);const l=t.aesCtrGladman.update(a);s=Mn.fromBits(l)}let o=!0;if(t.signed){const a=Zt(Mn.fromBits(t.hmac.digest()),0,ir);for(let l=0;l<ir;l++)a[l]!=i[l]&&(o=!1)}return{valid:o,data:s}}}class Vg{constructor(t,n){Object.assign(this,{password:t,strength:n-1,pendingInput:new Uint8Array(0)})}async append(t){const n=this;let r=new Uint8Array(0);n.password&&(r=await Ug(n,n.password),n.password=null,n.aesCtrGladman=new Hf(new Uf(n.keys.key),Array.from(zf)),n.hmac=new Zf(n.keys.authentication));const i=new Uint8Array(r.length+t.length-t.length%pi);return i.set(r,0),Gf(n,t,i,r.length,0)}flush(){const t=this;let n=new Uint8Array(0);if(t.pendingInput.length){const i=t.aesCtrGladman.update(Mn.toBits(t.pendingInput));t.hmac.update(i),n=Mn.fromBits(i)}const r=Zt(Mn.fromBits(t.hmac.digest()),0,ir);return{data:jc(n,r),signature:r}}}function Gf(e,t,n,r,i,s){const o=t.length-i;e.pendingInput.length&&(t=jc(e.pendingInput,t),n=Hg(n,o-o%pi));let a;for(a=0;a<=o-pi;a+=pi){const l=Mn.toBits(Zt(t,a,a+pi));s&&e.hmac.update(l);const u=e.aesCtrGladman.update(l);s||e.hmac.update(u),n.set(Mn.fromBits(u),a+r)}return e.pendingInput=Zt(t,a),n}async function zg(e,t,n){await Yf(e,n,Zt(t,0,ks[e.strength]));const r=Zt(t,ks[e.strength]),i=e.keys.passwordVerification;if(i[0]!=r[0]||i[1]!=r[1])throw new Error(jf)}async function Ug(e,t){const n=crypto.getRandomValues(new Uint8Array(ks[e.strength]));return await Yf(e,t,n),jc(n,e.keys.passwordVerification)}async function Yf(e,t,n){const r=Xl(t),i=await crypto.subtle.importKey(Ng,r,Pg,!1,Bg),s=await crypto.subtle.deriveBits(Object.assign({salt:n},$g),i,8*(Qi[e.strength]*2+2)),o=new Uint8Array(s);e.keys={key:Mn.toBits(Zt(o,0,Qi[e.strength])),authentication:Mn.toBits(Zt(o,Qi[e.strength],Qi[e.strength]*2)),passwordVerification:Zt(o,Qi[e.strength]*2)}}function jc(e,t){let n=e;return e.length+t.length&&(n=new Uint8Array(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function Hg(e,t){if(t&&t>e.length){const n=e;e=new Uint8Array(t),e.set(n,0)}return e}function Zt(e,t,n){return e.subarray(t,n)}const yi=12;class Zg{constructor(t,n){const r=this;Object.assign(r,{password:t,passwordVerification:n}),Wf(r,t)}append(t){const n=this;if(n.password){const r=v1(n,t.subarray(0,yi));if(n.password=null,r[yi-1]!=n.passwordVerification)throw new Error(jf);t=t.subarray(yi)}return v1(n,t)}flush(){return{valid:!0,data:new Uint8Array(0)}}}class Gg{constructor(t,n){const r=this;Object.assign(r,{password:t,passwordVerification:n}),Wf(r,t)}append(t){const n=this;let r,i;if(n.password){n.password=null;const s=crypto.getRandomValues(new Uint8Array(yi));s[yi-1]=n.passwordVerification,r=new Uint8Array(t.length+s.length),r.set(x1(n,s),0),i=yi}else r=new Uint8Array(t.length),i=0;return r.set(x1(n,t),i),r}flush(){return{data:new Uint8Array(0)}}}function v1(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=qf(e)^t[r],Vc(e,n[r]);return n}function x1(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=qf(e)^t[r],Vc(e,t[r]);return n}function Wf(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new ys(e.keys[0]),e.crcKey2=new ys(e.keys[2]);for(let n=0;n<t.length;n++)Vc(e,t.charCodeAt(n))}function Vc(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=b1(e.keys[1]+Xf(e.keys[0])),e.keys[1]=b1(Math.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function qf(e){const t=e.keys[2]|2;return Xf(Math.imul(t,t^1)>>>8)}function Xf(e){return e&255}function b1(e){return e&4294967295}const Kf="deflate",Jf="inflate",y1="Invalid signature";class Yg{constructor(t,{signature:n,password:r,signed:i,compressed:s,zipCrypto:o,passwordVerification:a,encryptionStrength:l},{chunkSize:u}){const c=Boolean(r);Object.assign(this,{signature:n,encrypted:c,signed:i,compressed:s,inflate:s&&new t({chunkSize:u}),crc32:i&&new ys,zipCrypto:o,decrypt:c&&o?new Zg(r,a):new jg(r,i,l)})}async append(t){const n=this;return n.encrypted&&t.length&&(t=await n.decrypt.append(t)),n.compressed&&t.length&&(t=await n.inflate.append(t)),(!n.encrypted||n.zipCrypto)&&n.signed&&t.length&&n.crc32.append(t),t}async flush(){const t=this;let n,r=new Uint8Array(0);if(t.encrypted){const i=t.decrypt.flush();if(!i.valid)throw new Error(y1);r=i.data}if((!t.encrypted||t.zipCrypto)&&t.signed){const i=new DataView(new Uint8Array(4).buffer);if(n=t.crc32.get(),i.setUint32(0,n),t.signature!=i.getUint32(0,!1))throw new Error(y1)}return t.compressed&&(r=await t.inflate.append(r)||new Uint8Array(0),await t.inflate.flush()),{data:r,signature:n}}}class Wg{constructor(t,{encrypted:n,signed:r,compressed:i,level:s,zipCrypto:o,password:a,passwordVerification:l,encryptionStrength:u},{chunkSize:c}){Object.assign(this,{encrypted:n,signed:r,compressed:i,deflate:i&&new t({level:s||5,chunkSize:c}),crc32:r&&new ys,zipCrypto:o,encrypt:n&&o?new Gg(a,l):new Vg(a,u)})}async append(t){const n=this;let r=t;return n.compressed&&t.length&&(r=await n.deflate.append(t)),n.encrypted&&r.length&&(r=await n.encrypt.append(r)),(!n.encrypted||n.zipCrypto)&&n.signed&&t.length&&n.crc32.append(t),r}async flush(){const t=this;let n,r=new Uint8Array(0);if(t.compressed&&(r=await t.deflate.flush()||new Uint8Array(0)),t.encrypted){r=await t.encrypt.append(r);const i=t.encrypt.flush();n=i.signature;const s=new Uint8Array(r.length+i.data.length);s.set(r,0),s.set(i.data,r.length),r=s}return(!t.encrypted||t.zipCrypto)&&t.signed&&(n=t.crc32.get()),{data:r,signature:n}}}function qg(e,t,n){if(t.codecType.startsWith(Kf))return new Wg(e,t,n);if(t.codecType.startsWith(Jf))return new Yg(e,t,n)}const k1="init",C1="append",cl="flush",Xg="message";let E1=!0;var ul=(e,t,n,r,i,s,o)=>(Object.assign(e,{busy:!0,codecConstructor:t,options:Object.assign({},n),scripts:o,terminate(){e.worker&&!e.busy&&(e.worker.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,i(e)}}),s?Jg(e,r):Kg(e,r));function Kg(e,t){const n=qg(e.codecConstructor,e.options,t);return{async append(r){try{return await n.append(r)}catch(i){throw e.onTaskFinished(),i}},async flush(){try{return await n.flush()}finally{e.onTaskFinished()}},abort(){e.onTaskFinished()}}}function Jg(e,t){let n;const r={type:"module"};if(!e.interface){if(!E1)e.worker=i(r,t.baseURL);else try{e.worker=i({},t.baseURL)}catch{E1=!1,e.worker=i(r,t.baseURL)}e.worker.addEventListener(Xg,a,!1),e.interface={append(l){return s({type:C1,data:l})},flush(){return s({type:cl})},abort(){e.onTaskFinished()}}}return e.interface;function i(l,u){let c,d;c=e.scripts[0],typeof c=="function"&&(c=c());try{d=new URL(c,u)}catch{d=c}return new Worker(d,l)}async function s(l){if(!n){const u=e.options,c=e.scripts.slice(1);await o({scripts:c,type:k1,options:u,config:{chunkSize:t.chunkSize}})}return o(l)}function o(l){const u=e.worker,c=new Promise((d,f)=>n={resolve:d,reject:f});try{if(l.data)try{l.data=l.data.buffer,u.postMessage(l,[l.data])}catch{u.postMessage(l)}else u.postMessage(l)}catch(d){n.reject(d),n=null,e.onTaskFinished()}return c}function a(l){const u=l.data;if(n){const c=u.error,d=u.type;if(c){const f=new Error(c.message);f.stack=c.stack,n.reject(f),n=null,e.onTaskFinished()}else if(d==k1||d==cl||d==C1){const f=u.data;d==cl?(n.resolve({data:new Uint8Array(f),signature:u.signature}),n=null,e.onTaskFinished()):n.resolve(f&&new Uint8Array(f))}}}}let Cr=[],dl=[];function Qf(e,t,n){const i=!(!t.compressed&&!t.signed&&!t.encrypted)&&(t.useWebWorkers||t.useWebWorkers===void 0&&n.useWebWorkers),s=i&&n.workerScripts?n.workerScripts[t.codecType]:[];if(Cr.length<n.maxWorkers){const a={};return Cr.push(a),ul(a,e,t,n,o,i,s)}else{const a=Cr.find(l=>!l.busy);return a?(A1(a),ul(a,e,t,n,o,i,s)):new Promise(l=>dl.push({resolve:l,codecConstructor:e,options:t,webWorker:i,scripts:s}))}function o(a){if(dl.length){const[{resolve:l,codecConstructor:u,options:c,webWorker:d,scripts:f}]=dl.splice(0,1);l(ul(a,u,c,n,o,d,f))}else a.worker?(A1(a),Number.isFinite(n.terminateWorkerTimeout)&&n.terminateWorkerTimeout>=0&&(a.terminateTimeout=setTimeout(()=>{Cr=Cr.filter(l=>l!=a),a.terminate()},n.terminateWorkerTimeout))):Cr=Cr.filter(l=>l!=a)}}function A1(e){e.terminateTimeout&&(clearTimeout(e.terminateTimeout),e.terminateTimeout=null)}var Qg=e=>{if(typeof URL.createObjectURL=="function"){const t=()=>URL.createObjectURL(new Blob([`const{Array:t,Object:e,Math:n,Error:r,Uint8Array:i,Uint16Array:s,Uint32Array:o,Int32Array:f,DataView:c,TextEncoder:l,crypto:u,postMessage:a}=globalThis,w=[];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)1&e?e=e>>>1^3988292384:e>>>=1;w[t]=e}class h{constructor(t){this.t=t||-1}append(t){let e=0|this.t;for(let n=0,r=0|t.length;r>n;n++)e=e>>>8^w[255&(e^t[n])];this.t=e}get(){return~this.t}}const d={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const n=t[t.length-1],r=d.i(n);return 32===r?t.concat(e):d.o(e,r,0|n,t.slice(0,t.length-1))},l(t){const e=t.length;if(0===e)return 0;const n=t[e-1];return 32*(e-1)+d.i(n)},u(t,e){if(32*t.length<e)return t;const r=(t=t.slice(0,n.ceil(e/32))).length;return e&=31,r>0&&e&&(t[r-1]=d.h(e,t[r-1]&2147483648>>e-1,1)),t},h:(t,e,n)=>32===t?e:(n?0|e:e<<32-t)+1099511627776*t,i:t=>n.round(t/1099511627776)||32,o(t,e,n,r){for(void 0===r&&(r=[]);e>=32;e-=32)r.push(n),n=0;if(0===e)return r.concat(t);for(let i=0;i<t.length;i++)r.push(n|t[i]>>>e),n=t[i]<<32-e;const i=t.length?t[t.length-1]:0,s=d.i(i);return r.push(d.h(e+s&31,e+s>32?n:r.pop(),1)),r}},p={p:{k(t){const e=d.l(t)/8,n=new i(e);let r;for(let i=0;e>i;i++)0==(3&i)&&(r=t[i/4]),n[i]=r>>>24,r<<=8;return n},g(t){const e=[];let n,r=0;for(n=0;n<t.length;n++)r=r<<8|t[n],3==(3&n)&&(e.push(r),r=0);return 3&n&&e.push(d.h(8*(3&n),r)),e}}},b={v:function(t){t?(this.m=t.m.slice(0),this.S=t.S.slice(0),this._=t._):this.reset()}};b.v.prototype={blockSize:512,reset:function(){const t=this;return t.m=this.I.slice(0),t.S=[],t._=0,t},update:function(t){const e=this;"string"==typeof t&&(t=p.C.g(t));const n=e.S=d.concat(e.S,t),i=e._,s=e._=i+d.l(t);if(s>9007199254740991)throw new r("Cannot hash more than 2^53 - 1 bits");const f=new o(n);let c=0;for(let t=e.blockSize+i-(e.blockSize+i&e.blockSize-1);s>=t;t+=e.blockSize)e.A(f.subarray(16*c,16*(c+1))),c+=1;return n.splice(0,16*c),e},V:function(){const t=this;let e=t.S;const r=t.m;e=d.concat(e,[d.h(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(n.floor(t._/4294967296)),e.push(0|t._);e.length;)t.A(e.splice(0,16));return t.reset(),r},I:[1732584193,4023233417,2562383102,271733878,3285377520],B:[1518500249,1859775393,2400959708,3395469782],D:(t,e,n,r)=>t>19?t>39?t>59?t>79?void 0:e^n^r:e&n|e&r|n&r:e^n^r:e&n|~e&r,U:(t,e)=>e<<t|e>>>32-t,A:function(e){const r=this,i=r.m,s=t(80);for(let t=0;16>t;t++)s[t]=e[t];let o=i[0],f=i[1],c=i[2],l=i[3],u=i[4];for(let t=0;79>=t;t++){16>t||(s[t]=r.U(1,s[t-3]^s[t-8]^s[t-14]^s[t-16]));const e=r.U(5,o)+r.D(t,f,c,l)+u+s[t]+r.B[n.floor(t/20)]|0;u=l,l=c,c=r.U(30,f),f=o,o=e}i[0]=i[0]+o|0,i[1]=i[1]+f|0,i[2]=i[2]+c|0,i[3]=i[3]+l|0,i[4]=i[4]+u|0}};const y={name:"PBKDF2"},k=e.assign({hash:{name:"HMAC"}},y),g=e.assign({iterations:1e3,hash:{name:"SHA-1"}},y),v=["deriveBits"],m=[8,12,16],z=[16,24,32],S=[0,0,0,0],_=p.p,I=class{constructor(t){const e=this;e.M=[[[],[],[],[],[]],[[],[],[],[],[]]],e.M[0][0][0]||e.P();const n=e.M[0][4],i=e.M[1],s=t.length;let o,f,c,l=1;if(4!==s&&6!==s&&8!==s)throw new r("invalid aes key size");for(e.B=[f=t.slice(0),c=[]],o=s;4*s+28>o;o++){let t=f[o-1];(o%s==0||8===s&&o%s==4)&&(t=n[t>>>24]<<24^n[t>>16&255]<<16^n[t>>8&255]<<8^n[255&t],o%s==0&&(t=t<<8^t>>>24^l<<24,l=l<<1^283*(l>>7))),f[o]=f[o-s]^t}for(let t=0;o;t++,o--){const e=f[3&t?o:o-4];c[t]=4>=o||4>t?e:i[0][n[e>>>24]]^i[1][n[e>>16&255]]^i[2][n[e>>8&255]]^i[3][n[255&e]]}}encrypt(t){return this.H(t,0)}decrypt(t){return this.H(t,1)}P(){const t=this.M[0],e=this.M[1],n=t[4],r=e[4],i=[],s=[];let o,f,c,l;for(let t=0;256>t;t++)s[(i[t]=t<<1^283*(t>>7))^t]=t;for(let u=o=0;!n[u];u^=f||1,o=s[o]||1){let s=o^o<<1^o<<2^o<<3^o<<4;s=s>>8^255&s^99,n[u]=s,r[s]=u,l=i[c=i[f=i[u]]];let a=16843009*l^65537*c^257*f^16843008*u,w=257*i[s]^16843008*s;for(let n=0;4>n;n++)t[n][u]=w=w<<24^w>>>8,e[n][s]=a=a<<24^a>>>8}for(let n=0;5>n;n++)t[n]=t[n].slice(0),e[n]=e[n].slice(0)}H(t,e){if(4!==t.length)throw new r("invalid aes block size");const n=this.B[e],i=n.length/4-2,s=[0,0,0,0],o=this.M[e],f=o[0],c=o[1],l=o[2],u=o[3],a=o[4];let w,h,d,p=t[0]^n[0],b=t[e?3:1]^n[1],y=t[2]^n[2],k=t[e?1:3]^n[3],g=4;for(let t=0;i>t;t++)w=f[p>>>24]^c[b>>16&255]^l[y>>8&255]^u[255&k]^n[g],h=f[b>>>24]^c[y>>16&255]^l[k>>8&255]^u[255&p]^n[g+1],d=f[y>>>24]^c[k>>16&255]^l[p>>8&255]^u[255&b]^n[g+2],k=f[k>>>24]^c[p>>16&255]^l[b>>8&255]^u[255&y]^n[g+3],g+=4,p=w,b=h,y=d;for(let t=0;4>t;t++)s[e?3&-t:t]=a[p>>>24]<<24^a[b>>16&255]<<16^a[y>>8&255]<<8^a[255&k]^n[g++],w=p,p=b,b=y,y=k,k=w;return s}},C=class{constructor(t,e){this.L=t,this.R=e,this.T=e}reset(){this.T=this.R}update(t){return this.j(this.L,t,this.T)}F(t){if(255==(t>>24&255)){let e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}K(t){0===(t[0]=this.F(t[0]))&&(t[1]=this.F(t[1]))}j(t,e,n){let r;if(!(r=e.length))return[];const i=d.l(e);for(let i=0;r>i;i+=4){this.K(n);const r=t.encrypt(n);e[i]^=r[0],e[i+1]^=r[1],e[i+2]^=r[2],e[i+3]^=r[3]}return d.u(e,i)}},A=class{constructor(t){const e=this,n=e.O=b.v,r=[[],[]],i=n.prototype.blockSize/32;e.W=[new n,new n],t.length>i&&(t=n.hash(t));for(let e=0;i>e;e++)r[0][e]=909522486^t[e],r[1][e]=1549556828^t[e];e.W[0].update(r[0]),e.W[1].update(r[1]),e.q=new n(e.W[0])}reset(){const t=this;t.q=new t.O(t.W[0]),t.G=!1}update(t){this.G=!0,this.q.update(t)}digest(){const t=this,e=t.q.V(),n=new t.O(t.W[1]).update(e).V();return t.reset(),n}};class V{constructor(t,n,r){e.assign(this,{password:t,signed:n,J:r-1,N:new i(0)})}async append(e){const n=this;if(n.password){const i=M(e,0,m[n.J]+2);await(async(t,e,n)=>{await D(t,n,M(e,0,m[t.J]));const i=M(e,m[t.J]),s=t.keys.passwordVerification;if(s[0]!=i[0]||s[1]!=i[1])throw new r("Invalid pasword")})(n,i,n.password),n.password=null,n.X=new C(new I(n.keys.key),t.from(S)),n.Y=new A(n.keys.Z),e=M(e,m[n.J]+2)}return B(n,e,new i(e.length-10-(e.length-10)%16),0,10,!0)}flush(){const t=this,e=t.N,n=M(e,0,e.length-10),r=M(e,e.length-10);let s=new i(0);if(n.length){const e=_.g(n);t.Y.update(e);const r=t.X.update(e);s=_.k(r)}let o=!0;if(t.signed){const e=M(_.k(t.Y.digest()),0,10);for(let t=0;10>t;t++)e[t]!=r[t]&&(o=!1)}return{valid:o,data:s}}}class E{constructor(t,n){e.assign(this,{password:t,J:n-1,N:new i(0)})}async append(e){const n=this;let r=new i(0);n.password&&(r=await(async(t,e)=>{const n=u.getRandomValues(new i(m[t.J]));return await D(t,e,n),U(n,t.keys.passwordVerification)})(n,n.password),n.password=null,n.X=new C(new I(n.keys.key),t.from(S)),n.Y=new A(n.keys.Z));const s=new i(r.length+e.length-e.length%16);return s.set(r,0),B(n,e,s,r.length,0)}flush(){const t=this;let e=new i(0);if(t.N.length){const n=t.X.update(_.g(t.N));t.Y.update(n),e=_.k(n)}const n=M(_.k(t.Y.digest()),0,10);return{data:U(e,n),signature:n}}}function B(t,e,n,r,s,o){const f=e.length-s;let c;for(t.N.length&&(e=U(t.N,e),n=((t,e)=>{if(e&&e>t.length){const n=t;(t=new i(e)).set(n,0)}return t})(n,f-f%16)),c=0;f-16>=c;c+=16){const i=_.g(M(e,c,c+16));o&&t.Y.update(i);const s=t.X.update(i);o||t.Y.update(s),n.set(_.k(s),c+r)}return t.N=M(e,c),n}async function D(t,n,r){const s=(t=>{if(void 0===l){const e=new i((t=unescape(encodeURIComponent(t))).length);for(let n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e}return(new l).encode(t)})(n),o=await u.subtle.importKey("raw",s,k,!1,v),f=await u.subtle.deriveBits(e.assign({salt:r},g),o,8*(2*z[t.J]+2)),c=new i(f);t.keys={key:_.g(M(c,0,z[t.J])),Z:_.g(M(c,z[t.J],2*z[t.J])),passwordVerification:M(c,2*z[t.J])}}function U(t,e){let n=t;return t.length+e.length&&(n=new i(t.length+e.length),n.set(t,0),n.set(e,t.length)),n}function M(t,e,n){return t.subarray(e,n)}class P{constructor(t,n){e.assign(this,{password:t,passwordVerification:n}),T(this,t)}append(t){const e=this;if(e.password){const n=L(e,t.subarray(0,12));if(e.password=null,n[11]!=e.passwordVerification)throw new r("Invalid pasword");t=t.subarray(12)}return L(e,t)}flush(){return{valid:!0,data:new i(0)}}}class H{constructor(t,n){e.assign(this,{password:t,passwordVerification:n}),T(this,t)}append(t){const e=this;let n,r;if(e.password){e.password=null;const s=u.getRandomValues(new i(12));s[11]=e.passwordVerification,n=new i(t.length+s.length),n.set(R(e,s),0),r=12}else n=new i(t.length),r=0;return n.set(R(e,t),r),n}flush(){return{data:new i(0)}}}function L(t,e){const n=new i(e.length);for(let r=0;r<e.length;r++)n[r]=x(t)^e[r],j(t,n[r]);return n}function R(t,e){const n=new i(e.length);for(let r=0;r<e.length;r++)n[r]=x(t)^e[r],j(t,e[r]);return n}function T(t,e){t.keys=[305419896,591751049,878082192],t.$=new h(t.keys[0]),t.tt=new h(t.keys[2]);for(let n=0;n<e.length;n++)j(t,e.charCodeAt(n))}function j(t,e){t.$.append([e]),t.keys[0]=~t.$.get(),t.keys[1]=K(t.keys[1]+F(t.keys[0])),t.keys[1]=K(n.imul(t.keys[1],134775813)+1),t.tt.append([t.keys[1]>>>24]),t.keys[2]=~t.tt.get()}function x(t){const e=2|t.keys[2];return F(n.imul(e,1^e)>>>8)}function F(t){return 255&t}function K(t){return 4294967295&t}class O{constructor(t,{signature:n,password:r,signed:i,compressed:s,zipCrypto:o,passwordVerification:f,encryptionStrength:c},{et:l}){const u=!!r;e.assign(this,{signature:n,encrypted:u,signed:i,compressed:s,nt:s&&new t({et:l}),rt:i&&new h,zipCrypto:o,decrypt:u&&o?new P(r,f):new V(r,i,c)})}async append(t){const e=this;return e.encrypted&&t.length&&(t=await e.decrypt.append(t)),e.compressed&&t.length&&(t=await e.nt.append(t)),(!e.encrypted||e.zipCrypto)&&e.signed&&t.length&&e.rt.append(t),t}async flush(){const t=this;let e,n=new i(0);if(t.encrypted){const e=t.decrypt.flush();if(!e.valid)throw new r("Invalid signature");n=e.data}if((!t.encrypted||t.zipCrypto)&&t.signed){const n=new c(new i(4).buffer);if(e=t.rt.get(),n.setUint32(0,e),t.signature!=n.getUint32(0,!1))throw new r("Invalid signature")}return t.compressed&&(n=await t.nt.append(n)||new i(0),await t.nt.flush()),{data:n,signature:e}}}class W{constructor(t,{encrypted:n,signed:r,compressed:i,level:s,zipCrypto:o,password:f,passwordVerification:c,encryptionStrength:l},{et:u}){e.assign(this,{encrypted:n,signed:r,compressed:i,it:i&&new t({level:s||5,et:u}),rt:r&&new h,zipCrypto:o,encrypt:n&&o?new H(f,c):new E(f,l)})}async append(t){const e=this;let n=t;return e.compressed&&t.length&&(n=await e.it.append(t)),e.encrypted&&n.length&&(n=await e.encrypt.append(n)),(!e.encrypted||e.zipCrypto)&&e.signed&&t.length&&e.rt.append(t),n}async flush(){const t=this;let e,n=new i(0);if(t.compressed&&(n=await t.it.flush()||new i(0)),t.encrypted){n=await t.encrypt.append(n);const r=t.encrypt.flush();e=r.signature;const s=new i(n.length+r.data.length);s.set(n,0),s.set(r.data,n.length),n=s}return t.encrypted&&!t.zipCrypto||!t.signed||(e=t.rt.get()),{data:n,signature:e}}}const q={init(t){t.scripts&&t.scripts.length&&importScripts.apply(void 0,t.scripts);const e=t.options;let n;self.initCodec&&self.initCodec(),e.codecType.startsWith("deflate")?n=self.Deflate:e.codecType.startsWith("inflate")&&(n=self.Inflate),G=((t,e,n)=>e.codecType.startsWith("deflate")?new W(t,e,n):e.codecType.startsWith("inflate")?new O(t,e,n):void 0)(n,e,t.config)},append:async t=>({data:await G.append(t.data)}),flush:()=>G.flush()};let G;function J(e){return N(e.map((([e,n])=>new t(e).fill(n,0,e))))}function N(e){return e.reduce(((e,n)=>e.concat(t.isArray(n)?N(n):n)),[])}addEventListener("message",(async t=>{const e=t.data,n=e.type,r=q[n];if(r)try{e.data&&(e.data=new i(e.data));const t=await r(e)||{};if(t.type=n,t.data)try{t.data=t.data.buffer,a(t,[t.data])}catch(e){a(t)}else a(t)}catch(t){a({type:n,error:{message:t.message,stack:t.stack}})}}));const Q=[0,1,2,3].concat(...J([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function X(){const t=this;function e(t,e){let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}t.st=r=>{const i=t.ot,s=t.ct.ft,o=t.ct.lt;let f,c,l,u=-1;for(r.ut=0,r.at=573,f=0;o>f;f++)0!==i[2*f]?(r.wt[++r.ut]=u=f,r.ht[f]=0):i[2*f+1]=0;for(;2>r.ut;)l=r.wt[++r.ut]=2>u?++u:0,i[2*l]=1,r.ht[l]=0,r.dt--,s&&(r.bt-=s[2*l+1]);for(t.yt=u,f=n.floor(r.ut/2);f>=1;f--)r.kt(i,f);l=o;do{f=r.wt[1],r.wt[1]=r.wt[r.ut--],r.kt(i,1),c=r.wt[1],r.wt[--r.at]=f,r.wt[--r.at]=c,i[2*l]=i[2*f]+i[2*c],r.ht[l]=n.max(r.ht[f],r.ht[c])+1,i[2*f+1]=i[2*c+1]=l,r.wt[1]=l++,r.kt(i,1)}while(r.ut>=2);r.wt[--r.at]=r.wt[1],(e=>{const n=t.ot,r=t.ct.ft,i=t.ct.gt,s=t.ct.vt,o=t.ct.zt;let f,c,l,u,a,w,h=0;for(u=0;15>=u;u++)e.St[u]=0;for(n[2*e.wt[e.at]+1]=0,f=e.at+1;573>f;f++)c=e.wt[f],u=n[2*n[2*c+1]+1]+1,u>o&&(u=o,h++),n[2*c+1]=u,c>t.yt||(e.St[u]++,a=0,s>c||(a=i[c-s]),w=n[2*c],e.dt+=w*(u+a),r&&(e.bt+=w*(r[2*c+1]+a)));if(0!==h){do{for(u=o-1;0===e.St[u];)u--;e.St[u]--,e.St[u+1]+=2,e.St[o]--,h-=2}while(h>0);for(u=o;0!==u;u--)for(c=e.St[u];0!==c;)l=e.wt[--f],l>t.yt||(n[2*l+1]!=u&&(e.dt+=(u-n[2*l+1])*n[2*l],n[2*l+1]=u),c--)}})(r),((t,n,r)=>{const i=[];let s,o,f,c=0;for(s=1;15>=s;s++)i[s]=c=c+r[s-1]<<1;for(o=0;n>=o;o++)f=t[2*o+1],0!==f&&(t[2*o]=e(i[f]++,f))})(i,t.yt,r.St)}}function Y(t,e,n,r,i){const s=this;s.ft=t,s.gt=e,s.vt=n,s.lt=r,s.zt=i}X._t=[0,1,2,3,4,5,6,7].concat(...J([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),X.It=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],X.Ct=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],X.At=t=>256>t?Q[t]:Q[256+(t>>>7)],X.Vt=[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],X.Et=[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],X.Bt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],X.Dt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Z=J([[144,8],[112,9],[24,7],[8,8]]);Y.Ut=N([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((t,e)=>[t,Z[e]])));const $=J([[30,5]]);function tt(t,e,n,r,i){const s=this;s.Mt=t,s.Pt=e,s.Ht=n,s.Lt=r,s.Rt=i}Y.Tt=N([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((t,e)=>[t,$[e]]))),Y.jt=new Y(Y.Ut,X.Vt,257,286,15),Y.xt=new Y(Y.Tt,X.Et,0,30,15),Y.Ft=new Y(null,X.Bt,0,19,7);const et=[new tt(0,0,0,0,0),new tt(4,4,8,4,1),new tt(4,5,16,8,1),new tt(4,6,32,32,1),new tt(4,4,16,16,2),new tt(8,16,32,32,2),new tt(8,16,128,128,2),new tt(8,32,128,256,2),new tt(32,128,258,1024,2),new tt(32,258,258,4096,2)],nt=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function rt(t,e,n,r){const i=t[2*e],s=t[2*n];return s>i||i==s&&r[e]<=r[n]}function it(){const t=this;let e,r,o,f,c,l,u,a,w,h,d,p,b,y,k,g,v,m,z,S,_,I,C,A,V,E,B,D,U,M,P,H,L;const R=new X,T=new X,j=new X;let x,F,K,O,W,q;function G(){let e;for(e=0;286>e;e++)P[2*e]=0;for(e=0;30>e;e++)H[2*e]=0;for(e=0;19>e;e++)L[2*e]=0;P[512]=1,t.dt=t.bt=0,F=K=0}function J(t,e){let n,r=-1,i=t[1],s=0,o=7,f=4;0===i&&(o=138,f=3),t[2*(e+1)+1]=65535;for(let c=0;e>=c;c++)n=i,i=t[2*(c+1)+1],++s<o&&n==i||(f>s?L[2*n]+=s:0!==n?(n!=r&&L[2*n]++,L[32]++):s>10?L[36]++:L[34]++,s=0,r=n,0===i?(o=138,f=3):n==i?(o=6,f=3):(o=7,f=4))}function N(e){t.Kt[t.pending++]=e}function Q(t){N(255&t),N(t>>>8&255)}function Z(t,e){let n;const r=e;q>16-r?(n=t,W|=n<<q&65535,Q(W),W=n>>>16-q,q+=r-16):(W|=t<<q&65535,q+=r)}function $(t,e){const n=2*t;Z(65535&e[n],65535&e[n+1])}function tt(t,e){let n,r,i=-1,s=t[1],o=0,f=7,c=4;for(0===s&&(f=138,c=3),n=0;e>=n;n++)if(r=s,s=t[2*(n+1)+1],++o>=f||r!=s){if(c>o)do{$(r,L)}while(0!=--o);else 0!==r?(r!=i&&($(r,L),o--),$(16,L),Z(o-3,2)):o>10?($(18,L),Z(o-11,7)):($(17,L),Z(o-3,3));o=0,i=r,0===s?(f=138,c=3):r==s?(f=6,c=3):(f=7,c=4)}}function it(){16==q?(Q(W),W=0,q=0):8>q||(N(255&W),W>>>=8,q-=8)}function st(e,r){let i,s,o;if(t.Ot[F]=e,t.Wt[F]=255&r,F++,0===e?P[2*r]++:(K++,e--,P[2*(X._t[r]+256+1)]++,H[2*X.At(e)]++),0==(8191&F)&&B>2){for(i=8*F,s=_-v,o=0;30>o;o++)i+=H[2*o]*(5+X.Et[o]);if(i>>>=3,K<n.floor(F/2)&&i<n.floor(s/2))return!0}return F==x-1}function ot(e,n){let r,i,s,o,f=0;if(0!==F)do{r=t.Ot[f],i=t.Wt[f],f++,0===r?$(i,e):(s=X._t[i],$(s+256+1,e),o=X.Vt[s],0!==o&&(i-=X.It[s],Z(i,o)),r--,s=X.At(r),$(s,n),o=X.Et[s],0!==o&&(r-=X.Ct[s],Z(r,o)))}while(F>f);$(256,e),O=e[513]}function ft(){q>8?Q(W):q>0&&N(255&W),W=0,q=0}function ct(e,n,r){Z(0+(r?1:0),3),((e,n)=>{ft(),O=8,Q(n),Q(~n),t.Kt.set(a.subarray(e,e+n),t.pending),t.pending+=n})(e,n)}function lt(n){((e,n,r)=>{let i,s,o=0;B>0?(R.st(t),T.st(t),o=(()=>{let e;for(J(P,R.yt),J(H,T.yt),j.st(t),e=18;e>=3&&0===L[2*X.Dt[e]+1];e--);return t.dt+=14+3*(e+1),e})(),i=t.dt+3+7>>>3,s=t.bt+3+7>>>3,s>i||(i=s)):i=s=n+5,n+4>i||-1==e?s==i?(Z(2+(r?1:0),3),ot(Y.Ut,Y.Tt)):(Z(4+(r?1:0),3),((t,e,n)=>{let r;for(Z(t-257,5),Z(e-1,5),Z(n-4,4),r=0;n>r;r++)Z(L[2*X.Dt[r]+1],3);tt(P,t-1),tt(H,e-1)})(R.yt+1,T.yt+1,o+1),ot(P,H)):ct(e,n,r),G(),r&&ft()})(0>v?-1:v,_-v,n),v=_,e.qt()}function ut(){let t,n,r,i;do{if(i=w-C-_,0===i&&0===_&&0===C)i=c;else if(-1==i)i--;else if(_>=c+c-262){a.set(a.subarray(c,c+c),0),I-=c,_-=c,v-=c,t=b,r=t;do{n=65535&d[--r],d[r]=c>n?0:n-c}while(0!=--t);t=c,r=t;do{n=65535&h[--r],h[r]=c>n?0:n-c}while(0!=--t);i+=c}if(0===e.Gt)return;t=e.Jt(a,_+C,i),C+=t,3>C||(p=255&a[_],p=(p<<g^255&a[_+1])&k)}while(262>C&&0!==e.Gt)}function at(t){let e,n,r=V,i=_,s=A;const o=_>c-262?_-(c-262):0;let f=M;const l=u,w=_+258;let d=a[i+s-1],p=a[i+s];U>A||(r>>=2),f>C&&(f=C);do{if(e=t,a[e+s]==p&&a[e+s-1]==d&&a[e]==a[i]&&a[++e]==a[i+1]){i+=2,e++;do{}while(a[++i]==a[++e]&&a[++i]==a[++e]&&a[++i]==a[++e]&&a[++i]==a[++e]&&a[++i]==a[++e]&&a[++i]==a[++e]&&a[++i]==a[++e]&&a[++i]==a[++e]&&w>i);if(n=258-(w-i),i=w-258,n>s){if(I=t,s=n,n>=f)break;d=a[i+s-1],p=a[i+s]}}}while((t=65535&h[t&l])>o&&0!=--r);return s>C?C:s}t.ht=[],t.St=[],t.wt=[],P=[],H=[],L=[],t.kt=(e,n)=>{const r=t.wt,i=r[n];let s=n<<1;for(;s<=t.ut&&(s<t.ut&&rt(e,r[s+1],r[s],t.ht)&&s++,!rt(e,i,r[s],t.ht));)r[n]=r[s],n=s,s<<=1;r[n]=i},t.Nt=(e,z,I,F,K,J)=>(F||(F=8),K||(K=8),J||(J=0),e.Qt=null,-1==z&&(z=6),1>K||K>9||8!=F||9>I||I>15||0>z||z>9||0>J||J>2?-2:(e.Xt=t,l=I,c=1<<l,u=c-1,y=K+7,b=1<<y,k=b-1,g=n.floor((y+3-1)/3),a=new i(2*c),h=[],d=[],x=1<<K+6,t.Kt=new i(4*x),o=4*x,t.Ot=new s(x),t.Wt=new i(x),B=z,D=J,(e=>(e.Yt=e.Zt=0,e.Qt=null,t.pending=0,t.$t=0,r=113,f=0,R.ot=P,R.ct=Y.jt,T.ot=H,T.ct=Y.xt,j.ot=L,j.ct=Y.Ft,W=0,q=0,O=8,G(),(()=>{w=2*c,d[b-1]=0;for(let t=0;b-1>t;t++)d[t]=0;E=et[B].Pt,U=et[B].Mt,M=et[B].Ht,V=et[B].Lt,_=0,v=0,C=0,m=A=2,S=0,p=0})(),0))(e))),t.te=()=>42!=r&&113!=r&&666!=r?-2:(t.Wt=null,t.Ot=null,t.Kt=null,d=null,h=null,a=null,t.Xt=null,113==r?-3:0),t.ee=(t,e,n)=>{let r=0;return-1==e&&(e=6),0>e||e>9||0>n||n>2?-2:(et[B].Rt!=et[e].Rt&&0!==t.Yt&&(r=t.it(1)),B!=e&&(B=e,E=et[B].Pt,U=et[B].Mt,M=et[B].Ht,V=et[B].Lt),D=n,r)},t.ne=(t,e,n)=>{let i,s=n,o=0;if(!e||42!=r)return-2;if(3>s)return 0;for(s>c-262&&(s=c-262,o=n-s),a.set(e.subarray(o,o+s),0),_=s,v=s,p=255&a[0],p=(p<<g^255&a[1])&k,i=0;s-3>=i;i++)p=(p<<g^255&a[i+2])&k,h[i&u]=d[p],d[p]=i;return 0},t.it=(n,i)=>{let s,w,y,V,U;if(i>4||0>i)return-2;if(!n.re||!n.ie&&0!==n.Gt||666==r&&4!=i)return n.Qt=nt[4],-2;if(0===n.se)return n.Qt=nt[7],-5;var M;if(e=n,V=f,f=i,42==r&&(w=8+(l-8<<4)<<8,y=(B-1&255)>>1,y>3&&(y=3),w|=y<<6,0!==_&&(w|=32),w+=31-w%31,r=113,N((M=w)>>8&255),N(255&M)),0!==t.pending){if(e.qt(),0===e.se)return f=-1,0}else if(0===e.Gt&&V>=i&&4!=i)return e.Qt=nt[7],-5;if(666==r&&0!==e.Gt)return n.Qt=nt[7],-5;if(0!==e.Gt||0!==C||0!=i&&666!=r){switch(U=-1,et[B].Rt){case 0:U=(t=>{let n,r=65535;for(r>o-5&&(r=o-5);;){if(1>=C){if(ut(),0===C&&0==t)return 0;if(0===C)break}if(_+=C,C=0,n=v+r,(0===_||_>=n)&&(C=_-n,_=n,lt(!1),0===e.se))return 0;if(_-v>=c-262&&(lt(!1),0===e.se))return 0}return lt(4==t),0===e.se?4==t?2:0:4==t?3:1})(i);break;case 1:U=(t=>{let n,r=0;for(;;){if(262>C){if(ut(),262>C&&0==t)return 0;if(0===C)break}if(3>C||(p=(p<<g^255&a[_+2])&k,r=65535&d[p],h[_&u]=d[p],d[p]=_),0===r||(_-r&65535)>c-262||2!=D&&(m=at(r)),3>m)n=st(0,255&a[_]),C--,_++;else if(n=st(_-I,m-3),C-=m,m>E||3>C)_+=m,m=0,p=255&a[_],p=(p<<g^255&a[_+1])&k;else{m--;do{_++,p=(p<<g^255&a[_+2])&k,r=65535&d[p],h[_&u]=d[p],d[p]=_}while(0!=--m);_++}if(n&&(lt(!1),0===e.se))return 0}return lt(4==t),0===e.se?4==t?2:0:4==t?3:1})(i);break;case 2:U=(t=>{let n,r,i=0;for(;;){if(262>C){if(ut(),262>C&&0==t)return 0;if(0===C)break}if(3>C||(p=(p<<g^255&a[_+2])&k,i=65535&d[p],h[_&u]=d[p],d[p]=_),A=m,z=I,m=2,0!==i&&E>A&&c-262>=(_-i&65535)&&(2!=D&&(m=at(i)),5>=m&&(1==D||3==m&&_-I>4096)&&(m=2)),3>A||m>A)if(0!==S){if(n=st(0,255&a[_-1]),n&<(!1),_++,C--,0===e.se)return 0}else S=1,_++,C--;else{r=_+C-3,n=st(_-1-z,A-3),C-=A-1,A-=2;do{++_>r||(p=(p<<g^255&a[_+2])&k,i=65535&d[p],h[_&u]=d[p],d[p]=_)}while(0!=--A);if(S=0,m=2,_++,n&&(lt(!1),0===e.se))return 0}}return 0!==S&&(n=st(0,255&a[_-1]),S=0),lt(4==t),0===e.se?4==t?2:0:4==t?3:1})(i)}if(2!=U&&3!=U||(r=666),0==U||2==U)return 0===e.se&&(f=-1),0;if(1==U){if(1==i)Z(2,3),$(256,Y.Ut),it(),9>1+O+10-q&&(Z(2,3),$(256,Y.Ut),it()),O=7;else if(ct(0,0,!1),3==i)for(s=0;b>s;s++)d[s]=0;if(e.qt(),0===e.se)return f=-1,0}}return 4!=i?0:1}}function st(){const t=this;t.oe=0,t.fe=0,t.Gt=0,t.Yt=0,t.se=0,t.Zt=0}function ot(t){const e=new st,s=(o=t&&t.et?t.et:65536)+5*(n.floor(o/16383)+1);var o;const f=new i(s);let c=t?t.level:-1;void 0===c&&(c=-1),e.Nt(c),e.re=f,this.append=(t,n)=>{let o,c,l=0,u=0,a=0;const w=[];if(t.length){e.oe=0,e.ie=t,e.Gt=t.length;do{if(e.fe=0,e.se=s,o=e.it(0),0!=o)throw new r("deflating: "+e.Qt);e.fe&&(e.fe==s?w.push(new i(f)):w.push(f.slice(0,e.fe))),a+=e.fe,n&&e.oe>0&&e.oe!=l&&(n(e.oe),l=e.oe)}while(e.Gt>0||0===e.se);return w.length>1?(c=new i(a),w.forEach((t=>{c.set(t,u),u+=t.length}))):c=w[0]||new i(0),c}},this.flush=()=>{let t,n,o=0,c=0;const l=[];do{if(e.fe=0,e.se=s,t=e.it(4),1!=t&&0!=t)throw new r("deflating: "+e.Qt);s-e.se>0&&l.push(f.slice(0,e.fe)),c+=e.fe}while(e.Gt>0||0===e.se);return e.te(),n=new i(c),l.forEach((t=>{n.set(t,o),o+=t.length})),n}}st.prototype={Nt:function(t,e){const n=this;return n.Xt=new it,e||(e=15),n.Xt.Nt(n,t,e)},it:function(t){const e=this;return e.Xt?e.Xt.it(e,t):-2},te:function(){const t=this;if(!t.Xt)return-2;const e=t.Xt.te();return t.Xt=null,e},ee:function(t,e){const n=this;return n.Xt?n.Xt.ee(n,t,e):-2},ne:function(t,e){const n=this;return n.Xt?n.Xt.ne(n,t,e):-2},Jt:function(t,e,n){const r=this;let i=r.Gt;return i>n&&(i=n),0===i?0:(r.Gt-=i,t.set(r.ie.subarray(r.oe,r.oe+i),e),r.oe+=i,r.Yt+=i,i)},qt:function(){const t=this;let e=t.Xt.pending;e>t.se&&(e=t.se),0!==e&&(t.re.set(t.Xt.Kt.subarray(t.Xt.$t,t.Xt.$t+e),t.fe),t.fe+=e,t.Xt.$t+=e,t.Zt+=e,t.se-=e,t.Xt.pending-=e,0===t.Xt.pending&&(t.Xt.$t=0))}};const ft=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],lt=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],ut=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],at=[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,112,112],wt=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],ht=[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];function dt(){let t,e,n,r,i,s;function o(t,e,o,f,c,l,u,a,w,h,d){let p,b,y,k,g,v,m,z,S,_,I,C,A,V,E;_=0,g=o;do{n[t[e+_]]++,_++,g--}while(0!==g);if(n[0]==o)return u[0]=-1,a[0]=0,0;for(z=a[0],v=1;15>=v&&0===n[v];v++);for(m=v,v>z&&(z=v),g=15;0!==g&&0===n[g];g--);for(y=g,z>g&&(z=g),a[0]=z,V=1<<v;g>v;v++,V<<=1)if(0>(V-=n[v]))return-3;if(0>(V-=n[g]))return-3;for(n[g]+=V,s[1]=v=0,_=1,A=2;0!=--g;)s[A]=v+=n[_],A++,_++;g=0,_=0;do{0!==(v=t[e+_])&&(d[s[v]++]=g),_++}while(++g<o);for(o=s[y],s[0]=g=0,_=0,k=-1,C=-z,i[0]=0,I=0,E=0;y>=m;m++)for(p=n[m];0!=p--;){for(;m>C+z;){if(k++,C+=z,E=y-C,E=E>z?z:E,(b=1<<(v=m-C))>p+1&&(b-=p+1,A=m,E>v))for(;++v<E&&(b<<=1)>n[++A];)b-=n[A];if(E=1<<v,h[0]+E>1440)return-3;i[k]=I=h[0],h[0]+=E,0!==k?(s[k]=g,r[0]=v,r[1]=z,v=g>>>C-z,r[2]=I-i[k-1]-v,w.set(r,3*(i[k-1]+v))):u[0]=I}for(r[1]=m-C,o>_?d[_]<f?(r[0]=256>d[_]?0:96,r[2]=d[_++]):(r[0]=l[d[_]-f]+16+64,r[2]=c[d[_++]-f]):r[0]=192,b=1<<m-C,v=g>>>C;E>v;v+=b)w.set(r,3*(I+v));for(v=1<<m-1;0!=(g&v);v>>>=1)g^=v;for(g^=v,S=(1<<C)-1;(g&S)!=s[k];)k--,C-=z,S=(1<<C)-1}return 0!==V&&1!=y?-5:0}function c(o){let c;for(t||(t=[],e=[],n=new f(16),r=[],i=new f(15),s=new f(16)),e.length<o&&(e=[]),c=0;o>c;c++)e[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;i.set(n.subarray(0,15),0),s.set(n.subarray(0,16),0)}this.ce=(n,r,i,s,f)=>{let l;return c(19),t[0]=0,l=o(n,0,19,19,null,null,i,r,s,t,e),-3==l?f.Qt="oversubscribed dynamic bit lengths tree":-5!=l&&0!==r[0]||(f.Qt="incomplete dynamic bit lengths tree",l=-3),l},this.le=(n,r,i,s,f,l,u,a,w)=>{let h;return c(288),t[0]=0,h=o(i,0,n,257,ut,at,l,s,a,t,e),0!=h||0===s[0]?(-3==h?w.Qt="oversubscribed literal/length tree":-4!=h&&(w.Qt="incomplete literal/length tree",h=-3),h):(c(288),h=o(i,n,r,0,wt,ht,u,f,a,t,e),0!=h||0===f[0]&&n>257?(-3==h?w.Qt="oversubscribed distance tree":-5==h?(w.Qt="incomplete distance tree",h=-3):-4!=h&&(w.Qt="empty distance tree with lengths",h=-3),h):0)}}function pt(){const t=this;let e,n,r,i,s=0,o=0,f=0,c=0,l=0,u=0,a=0,w=0,h=0,d=0;function p(t,e,n,r,i,s,o,f){let c,l,u,a,w,h,d,p,b,y,k,g,v,m,z,S;d=f.oe,p=f.Gt,w=o.ue,h=o.ae,b=o.write,y=b<o.read?o.read-b-1:o.end-b,k=ft[t],g=ft[e];do{for(;20>h;)p--,w|=(255&f.we(d++))<<h,h+=8;if(c=w&k,l=n,u=r,S=3*(u+c),0!==(a=l[S]))for(;;){if(w>>=l[S+1],h-=l[S+1],0!=(16&a)){for(a&=15,v=l[S+2]+(w&ft[a]),w>>=a,h-=a;15>h;)p--,w|=(255&f.we(d++))<<h,h+=8;for(c=w&g,l=i,u=s,S=3*(u+c),a=l[S];;){if(w>>=l[S+1],h-=l[S+1],0!=(16&a)){for(a&=15;a>h;)p--,w|=(255&f.we(d++))<<h,h+=8;if(m=l[S+2]+(w&ft[a]),w>>=a,h-=a,y-=v,m>b){z=b-m;do{z+=o.end}while(0>z);if(a=o.end-z,v>a){if(v-=a,b-z>0&&a>b-z)do{o.he[b++]=o.he[z++]}while(0!=--a);else o.he.set(o.he.subarray(z,z+a),b),b+=a,z+=a,a=0;z=0}}else z=b-m,b-z>0&&2>b-z?(o.he[b++]=o.he[z++],o.he[b++]=o.he[z++],v-=2):(o.he.set(o.he.subarray(z,z+2),b),b+=2,z+=2,v-=2);if(b-z>0&&v>b-z)do{o.he[b++]=o.he[z++]}while(0!=--v);else o.he.set(o.he.subarray(z,z+v),b),b+=v,z+=v,v=0;break}if(0!=(64&a))return f.Qt="invalid distance code",v=f.Gt-p,v=v>h>>3?h>>3:v,p+=v,d-=v,h-=v<<3,o.ue=w,o.ae=h,f.Gt=p,f.Yt+=d-f.oe,f.oe=d,o.write=b,-3;c+=l[S+2],c+=w&ft[a],S=3*(u+c),a=l[S]}break}if(0!=(64&a))return 0!=(32&a)?(v=f.Gt-p,v=v>h>>3?h>>3:v,p+=v,d-=v,h-=v<<3,o.ue=w,o.ae=h,f.Gt=p,f.Yt+=d-f.oe,f.oe=d,o.write=b,1):(f.Qt="invalid literal/length code",v=f.Gt-p,v=v>h>>3?h>>3:v,p+=v,d-=v,h-=v<<3,o.ue=w,o.ae=h,f.Gt=p,f.Yt+=d-f.oe,f.oe=d,o.write=b,-3);if(c+=l[S+2],c+=w&ft[a],S=3*(u+c),0===(a=l[S])){w>>=l[S+1],h-=l[S+1],o.he[b++]=l[S+2],y--;break}}else w>>=l[S+1],h-=l[S+1],o.he[b++]=l[S+2],y--}while(y>=258&&p>=10);return v=f.Gt-p,v=v>h>>3?h>>3:v,p+=v,d-=v,h-=v<<3,o.ue=w,o.ae=h,f.Gt=p,f.Yt+=d-f.oe,f.oe=d,o.write=b,0}t.init=(t,s,o,f,c,l)=>{e=0,a=t,w=s,r=o,h=f,i=c,d=l,n=null},t.de=(t,b,y)=>{let k,g,v,m,z,S,_,I=0,C=0,A=0;for(A=b.oe,m=b.Gt,I=t.ue,C=t.ae,z=t.write,S=z<t.read?t.read-z-1:t.end-z;;)switch(e){case 0:if(S>=258&&m>=10&&(t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,y=p(a,w,r,h,i,d,t,b),A=b.oe,m=b.Gt,I=t.ue,C=t.ae,z=t.write,S=z<t.read?t.read-z-1:t.end-z,0!=y)){e=1==y?7:9;break}f=a,n=r,o=h,e=1;case 1:for(k=f;k>C;){if(0===m)return t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,t.pe(b,y);y=0,m--,I|=(255&b.we(A++))<<C,C+=8}if(g=3*(o+(I&ft[k])),I>>>=n[g+1],C-=n[g+1],v=n[g],0===v){c=n[g+2],e=6;break}if(0!=(16&v)){l=15&v,s=n[g+2],e=2;break}if(0==(64&v)){f=v,o=g/3+n[g+2];break}if(0!=(32&v)){e=7;break}return e=9,b.Qt="invalid literal/length code",y=-3,t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,t.pe(b,y);case 2:for(k=l;k>C;){if(0===m)return t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,t.pe(b,y);y=0,m--,I|=(255&b.we(A++))<<C,C+=8}s+=I&ft[k],I>>=k,C-=k,f=w,n=i,o=d,e=3;case 3:for(k=f;k>C;){if(0===m)return t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,t.pe(b,y);y=0,m--,I|=(255&b.we(A++))<<C,C+=8}if(g=3*(o+(I&ft[k])),I>>=n[g+1],C-=n[g+1],v=n[g],0!=(16&v)){l=15&v,u=n[g+2],e=4;break}if(0==(64&v)){f=v,o=g/3+n[g+2];break}return e=9,b.Qt="invalid distance code",y=-3,t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,t.pe(b,y);case 4:for(k=l;k>C;){if(0===m)return t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,t.pe(b,y);y=0,m--,I|=(255&b.we(A++))<<C,C+=8}u+=I&ft[k],I>>=k,C-=k,e=5;case 5:for(_=z-u;0>_;)_+=t.end;for(;0!==s;){if(0===S&&(z==t.end&&0!==t.read&&(z=0,S=z<t.read?t.read-z-1:t.end-z),0===S&&(t.write=z,y=t.pe(b,y),z=t.write,S=z<t.read?t.read-z-1:t.end-z,z==t.end&&0!==t.read&&(z=0,S=z<t.read?t.read-z-1:t.end-z),0===S)))return t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,t.pe(b,y);t.he[z++]=t.he[_++],S--,_==t.end&&(_=0),s--}e=0;break;case 6:if(0===S&&(z==t.end&&0!==t.read&&(z=0,S=z<t.read?t.read-z-1:t.end-z),0===S&&(t.write=z,y=t.pe(b,y),z=t.write,S=z<t.read?t.read-z-1:t.end-z,z==t.end&&0!==t.read&&(z=0,S=z<t.read?t.read-z-1:t.end-z),0===S)))return t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,t.pe(b,y);y=0,t.he[z++]=c,S--,e=0;break;case 7:if(C>7&&(C-=8,m++,A--),t.write=z,y=t.pe(b,y),z=t.write,S=z<t.read?t.read-z-1:t.end-z,t.read!=t.write)return t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,t.pe(b,y);e=8;case 8:return y=1,t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,t.pe(b,y);case 9:return y=-3,t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,t.pe(b,y);default:return y=-2,t.ue=I,t.ae=C,b.Gt=m,b.Yt+=A-b.oe,b.oe=A,t.write=z,t.pe(b,y)}},t.be=()=>{}}dt.ye=(t,e,n,r)=>(t[0]=9,e[0]=5,n[0]=ct,r[0]=lt,0);const bt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(t,e){const n=this;let r,s=0,o=0,c=0,l=0;const u=[0],a=[0],w=new pt;let h=0,d=new f(4320);const p=new dt;n.ae=0,n.ue=0,n.he=new i(e),n.end=e,n.read=0,n.write=0,n.reset=(t,e)=>{e&&(e[0]=0),6==s&&w.be(t),s=0,n.ae=0,n.ue=0,n.read=n.write=0},n.reset(t,null),n.pe=(t,e)=>{let r,i,s;return i=t.fe,s=n.read,r=(s>n.write?n.end:n.write)-s,r>t.se&&(r=t.se),0!==r&&-5==e&&(e=0),t.se-=r,t.Zt+=r,t.re.set(n.he.subarray(s,s+r),i),i+=r,s+=r,s==n.end&&(s=0,n.write==n.end&&(n.write=0),r=n.write-s,r>t.se&&(r=t.se),0!==r&&-5==e&&(e=0),t.se-=r,t.Zt+=r,t.re.set(n.he.subarray(s,s+r),i),i+=r,s+=r),t.fe=i,n.read=s,e},n.de=(t,e)=>{let i,f,b,y,k,g,v,m;for(y=t.oe,k=t.Gt,f=n.ue,b=n.ae,g=n.write,v=g<n.read?n.read-g-1:n.end-g;;){let z,S,_,I,C,A,V,E;switch(s){case 0:for(;3>b;){if(0===k)return n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);e=0,k--,f|=(255&t.we(y++))<<b,b+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,b-=3,i=7&b,f>>>=i,b-=i,s=1;break;case 1:z=[],S=[],_=[[]],I=[[]],dt.ye(z,S,_,I),w.init(z[0],S[0],_[0],0,I[0],0),f>>>=3,b-=3,s=6;break;case 2:f>>>=3,b-=3,s=3;break;case 3:return f>>>=3,b-=3,s=9,t.Qt="invalid block type",e=-3,n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e)}break;case 1:for(;32>b;){if(0===k)return n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);e=0,k--,f|=(255&t.we(y++))<<b,b+=8}if((~f>>>16&65535)!=(65535&f))return s=9,t.Qt="invalid stored block lengths",e=-3,n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);o=65535&f,f=b=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===k)return n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);if(0===v&&(g==n.end&&0!==n.read&&(g=0,v=g<n.read?n.read-g-1:n.end-g),0===v&&(n.write=g,e=n.pe(t,e),g=n.write,v=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,v=g<n.read?n.read-g-1:n.end-g),0===v)))return n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);if(e=0,i=o,i>k&&(i=k),i>v&&(i=v),n.he.set(t.Jt(y,i),g),y+=i,k-=i,g+=i,v-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>b;){if(0===k)return n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);e=0,k--,f|=(255&t.we(y++))<<b,b+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,t.Qt="too many length or distance symbols",e=-3,n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(m=0;i>m;m++)r[m]=0;f>>>=14,b-=14,l=0,s=4;case 4:for(;4+(c>>>10)>l;){for(;3>b;){if(0===k)return n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);e=0,k--,f|=(255&t.we(y++))<<b,b+=8}r[bt[l++]]=7&f,f>>>=3,b-=3}for(;19>l;)r[bt[l++]]=0;if(u[0]=7,i=p.ce(r,u,a,d,t),0!=i)return-3==(e=i)&&(r=null,s=9),n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);l=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>l;){let o,w;for(i=u[0];i>b;){if(0===k)return n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);e=0,k--,f|=(255&t.we(y++))<<b,b+=8}if(i=d[3*(a[0]+(f&ft[i]))+1],w=d[3*(a[0]+(f&ft[i]))+2],16>w)f>>>=i,b-=i,r[l++]=w;else{for(m=18==w?7:w-14,o=18==w?11:3;i+m>b;){if(0===k)return n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);e=0,k--,f|=(255&t.we(y++))<<b,b+=8}if(f>>>=i,b-=i,o+=f&ft[m],f>>>=m,b-=m,m=l,i=c,m+o>258+(31&i)+(i>>5&31)||16==w&&1>m)return r=null,s=9,t.Qt="invalid bit length repeat",e=-3,n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);w=16==w?r[m-1]:0;do{r[m++]=w}while(0!=--o);l=m}}if(a[0]=-1,C=[],A=[],V=[],E=[],C[0]=9,A[0]=6,i=c,i=p.le(257+(31&i),1+(i>>5&31),r,C,A,V,E,d,t),0!=i)return-3==i&&(r=null,s=9),e=i,n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);w.init(C[0],A[0],d,V[0],d,E[0]),s=6;case 6:if(n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,1!=(e=w.de(n,t,e)))return n.pe(t,e);if(e=0,w.be(t),y=t.oe,k=t.Gt,f=n.ue,b=n.ae,g=n.write,v=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,e=n.pe(t,e),g=n.write,v=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);s=8;case 8:return e=1,n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);case 9:return e=-3,n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e);default:return e=-2,n.ue=f,n.ae=b,t.Gt=k,t.Yt+=y-t.oe,t.oe=y,n.write=g,n.pe(t,e)}}},n.be=t=>{n.reset(t,null),n.he=null,d=null},n.ke=(t,e,r)=>{n.he.set(t.subarray(e,e+r),0),n.read=n.write=r},n.ge=()=>1==s?1:0}const kt=[0,0,255,255];function gt(){const t=this;function e(t){return t&&t.ve?(t.Yt=t.Zt=0,t.Qt=null,t.ve.mode=7,t.ve.me.reset(t,null),0):-2}t.mode=0,t.method=0,t.ze=[0],t.Se=0,t.marker=0,t._e=0,t.Ie=e=>(t.me&&t.me.be(e),t.me=null,0),t.Ce=(n,r)=>(n.Qt=null,t.me=null,8>r||r>15?(t.Ie(n),-2):(t._e=r,n.ve.me=new yt(n,1<<r),e(n),0)),t.nt=(t,e)=>{let n,r;if(!t||!t.ve||!t.ie)return-2;const i=t.ve;for(e=4==e?-5:0,n=-5;;)switch(i.mode){case 0:if(0===t.Gt)return n;if(n=e,t.Gt--,t.Yt++,8!=(15&(i.method=t.we(t.oe++)))){i.mode=13,t.Qt="unknown compression method",i.marker=5;break}if(8+(i.method>>4)>i._e){i.mode=13,t.Qt="invalid win size",i.marker=5;break}i.mode=1;case 1:if(0===t.Gt)return n;if(n=e,t.Gt--,t.Yt++,r=255&t.we(t.oe++),((i.method<<8)+r)%31!=0){i.mode=13,t.Qt="incorrect header check",i.marker=5;break}if(0==(32&r)){i.mode=7;break}i.mode=2;case 2:if(0===t.Gt)return n;n=e,t.Gt--,t.Yt++,i.Se=(255&t.we(t.oe++))<<24&4278190080,i.mode=3;case 3:if(0===t.Gt)return n;n=e,t.Gt--,t.Yt++,i.Se+=(255&t.we(t.oe++))<<16&16711680,i.mode=4;case 4:if(0===t.Gt)return n;n=e,t.Gt--,t.Yt++,i.Se+=(255&t.we(t.oe++))<<8&65280,i.mode=5;case 5:return 0===t.Gt?n:(n=e,t.Gt--,t.Yt++,i.Se+=255&t.we(t.oe++),i.mode=6,2);case 6:return i.mode=13,t.Qt="need dictionary",i.marker=0,-2;case 7:if(n=i.me.de(t,n),-3==n){i.mode=13,i.marker=0;break}if(0==n&&(n=e),1!=n)return n;n=e,i.me.reset(t,i.ze),i.mode=12;case 12:return 1;case 13:return-3;default:return-2}},t.Ae=(t,e,n)=>{let r=0,i=n;if(!t||!t.ve||6!=t.ve.mode)return-2;const s=t.ve;return i<1<<s._e||(i=(1<<s._e)-1,r=n-i),s.me.ke(e,r,i),s.mode=7,0},t.Ve=t=>{let n,r,i,s,o;if(!t||!t.ve)return-2;const f=t.ve;if(13!=f.mode&&(f.mode=13,f.marker=0),0===(n=t.Gt))return-5;for(r=t.oe,i=f.marker;0!==n&&4>i;)t.we(r)==kt[i]?i++:i=0!==t.we(r)?0:4-i,r++,n--;return t.Yt+=r-t.oe,t.oe=r,t.Gt=n,f.marker=i,4!=i?-3:(s=t.Yt,o=t.Zt,e(t),t.Yt=s,t.Zt=o,f.mode=7,0)},t.Ee=t=>t&&t.ve&&t.ve.me?t.ve.me.ge():-2}function vt(){}function mt(t){const e=new vt,s=t&&t.et?n.floor(2*t.et):131072,o=new i(s);let f=!1;e.Ce(),e.re=o,this.append=(t,n)=>{const c=[];let l,u,a=0,w=0,h=0;if(0!==t.length){e.oe=0,e.ie=t,e.Gt=t.length;do{if(e.fe=0,e.se=s,0!==e.Gt||f||(e.oe=0,f=!0),l=e.nt(0),f&&-5===l){if(0!==e.Gt)throw new r("inflating: bad input")}else if(0!==l&&1!==l)throw new r("inflating: "+e.Qt);if((f||1===l)&&e.Gt===t.length)throw new r("inflating: bad input");e.fe&&(e.fe===s?c.push(new i(o)):c.push(o.slice(0,e.fe))),h+=e.fe,n&&e.oe>0&&e.oe!=a&&(n(e.oe),a=e.oe)}while(e.Gt>0||0===e.se);return c.length>1?(u=new i(h),c.forEach((t=>{u.set(t,w),w+=t.length}))):u=c[0]||new i(0),u}},this.flush=()=>{e.Ie()}}vt.prototype={Ce:function(t){const e=this;return e.ve=new gt,t||(t=15),e.ve.Ce(e,t)},nt:function(t){const e=this;return e.ve?e.ve.nt(e,t):-2},Ie:function(){const t=this;if(!t.ve)return-2;const e=t.ve.Ie(t);return t.ve=null,e},Ve:function(){const t=this;return t.ve?t.ve.Ve(t):-2},Ae:function(t,e){const n=this;return n.ve?n.ve.Ae(n,t,e):-2},we:function(t){return this.ie[t]},Jt:function(t,e){return this.ie.subarray(t,t+e)}},self.initCodec=()=>{self.Deflate=ot,self.Inflate=mt};
|
|
`],{type:"text/javascript"}));e({workerScripts:{inflate:[t],deflate:[t]}})}};const Kl="text/plain";class eh{constructor(){this.size=0}init(){this.initialized=!0}}class th extends eh{}class zc extends eh{writeUint8Array(t){this.size+=t.length}}class e5 extends th{constructor(t){super(),this.blobReader=new nh(new Blob([t],{type:Kl}))}async init(){super.init(),this.blobReader.init(),this.size=this.blobReader.size}async readUint8Array(t,n){return this.blobReader.readUint8Array(t,n)}}class t5 extends zc{constructor(t){super(),this.encoding=t,this.blob=new Blob([],{type:Kl})}async writeUint8Array(t){super.writeUint8Array(t),this.blob=new Blob([this.blob,t.buffer],{type:Kl})}getData(){if(this.blob.text)return this.blob.text();{const t=new FileReader;return new Promise((n,r)=>{t.onload=i=>n(i.target.result),t.onerror=()=>r(t.error),t.readAsText(this.blob,this.encoding)})}}}class n5 extends zc{constructor(t){super(),this.data="data:"+(t||"")+";base64,",this.pending=[]}async writeUint8Array(t){super.writeUint8Array(t);let n=0,r=this.pending;const i=this.pending.length;for(this.pending="",n=0;n<Math.floor((i+t.length)/3)*3-i;n++)r+=String.fromCharCode(t[n]);for(;n<t.length;n++)this.pending+=String.fromCharCode(t[n]);r.length>2?this.data+=btoa(r):this.pending=r}getData(){return this.data+btoa(this.pending)}}class nh extends th{constructor(t){super(),this.blob=t,this.size=t.size}async readUint8Array(t,n){if(this.blob.arrayBuffer)return new Uint8Array(await this.blob.slice(t,t+n).arrayBuffer());{const r=new FileReader;return new Promise((i,s)=>{r.onload=o=>i(new Uint8Array(o.target.result)),r.onerror=()=>s(r.error),r.readAsArrayBuffer(this.blob.slice(t,t+n))})}}}class r5 extends zc{constructor(t){super(),this.contentType=t,this.arrayBuffers=[]}async writeUint8Array(t){super.writeUint8Array(t),this.arrayBuffers.push(t.buffer)}getData(){return this.blob||(this.blob=new Blob(this.arrayBuffers,{type:this.contentType})),this.blob}}const kt=4294967295,fn=65535,Jl=8,rh=0,ih=99,sh=67324752,i5=134695760,Ql=33639248,oh=101010256,ec=101075792,ah=117853008,sa=22,Po=20,$o=56,s5=sa+Po+$o,o5=1,lh=1,ch=39169,uh=10,dh=1,Uc=21589,a5=28789,l5=25461,tc=1,c5=6,nc=8,rc=2048,ic=16,u5=20,S1=45,I1=51,Bo="/",M1=new Date(2107,11,31),T1=new Date(1980,0,1),d5="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0 ".split("");var f5=e=>{let t="";for(let n=0;n<e.length;n++)t+=d5[e[n]];return t};async function sc(e,t){if(t&&t.trim().toLowerCase()=="cp437")return f5(e);if(typeof TextDecoder=="undefined"){const n=new FileReader;return new Promise((r,i)=>{n.onload=s=>r(s.target.result),n.onerror=()=>i(n.error),n.readAsText(new Blob([e]))})}else return new TextDecoder(t).decode(e)}const h5=64,p5="Abort error";async function fh(e,t,n,r,i,s,o){const a=Math.max(s.chunkSize,h5);return l();async function l(u=0,c=0){const d=o.signal;if(u<i){fl(d,e);const f=await t.readUint8Array(u+r,Math.min(a,i-u)),h=f.length;fl(d,e);const w=await e.append(f);if(fl(d,e),c+=await L1(n,w),o.onprogress)try{o.onprogress(u+h,i)}catch{}return l(u+a,c)}else{const f=await e.flush();return c+=await L1(n,f.data),{signature:f.signature,length:c}}}}function fl(e,t){if(e&&e.aborted)throw t.abort(),new Error(p5)}async function L1(e,t){return t.length&&await e.writeUint8Array(t),t.length}const m5=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class oa{constructor(t){m5.forEach(n=>this[n]=t[n])}}const hl="File format is not recognized",g5="End of central directory not found",_5="End of Zip64 central directory not found",w5="End of Zip64 central directory locator not found",v5="Central directory header not found",x5="Local file header not found",b5="Zip64 extra field not found",y5="File contains encrypted entry",k5="Encryption method not supported",O1="Compression method not supported",R1="utf-8",N1="cp437",D1=["uncompressedSize","compressedSize","offset"];class C5{constructor(t,n={}){Object.assign(this,{reader:t,options:n,config:Nf()})}async getEntries(t={}){const n=this,r=n.reader;if(r.initialized||await r.init(),r.size<sa)throw new Error(hl);const i=await T5(r,oh,r.size,sa,fn*16);if(!i)throw new Error(g5);const s=At(i);let o=pt(s,12),a=pt(s,16),l=Gt(s,8),u=0;if(a==kt||o==kt||l==fn){const w=await ar(r,i.offset-Po,Po),_=At(w);if(pt(_,0)!=ah)throw new Error(_5);a=jo(_,8);let m=await ar(r,a,$o),g=At(m);const v=i.offset-Po-$o;if(pt(g,0)!=ec&&a!=v){const b=a;a=v,u=a-b,m=await ar(r,a,$o),g=At(m)}if(pt(g,0)!=ec)throw new Error(w5);l=jo(g,32),o=jo(g,40),a-=o}if(a<0||a>=r.size)throw new Error(hl);let c=0,d=await ar(r,a,o),f=At(d);if(o){const w=i.offset-o;if(pt(f,c)!=Ql&&a!=w){const _=a;a=w,u=a-_,d=await ar(r,a,o),f=At(d)}}if(a<0||a>=r.size)throw new Error(hl);const h=[];for(let w=0;w<l;w++){const _=new E5(r,n.config,n.options);if(pt(f,c)!=Ql)throw new Error(v5);hh(_,f,c+6);const m=Boolean(_.bitFlag.languageEncodingFlag),g=c+46,v=g+_.filenameLength,b=v+_.extraFieldLength,x=Gt(f,c+4),y=(x&0)==0;Object.assign(_,{versionMadeBy:x,msDosCompatible:y,compressedSize:0,uncompressedSize:0,commentLength:Gt(f,c+32),directory:y&&(ki(f,c+38)&ic)==ic,offset:pt(f,c+42)+u,internalFileAttribute:pt(f,c+34),externalFileAttribute:pt(f,c+38),rawFilename:d.subarray(g,v),filenameUTF8:m,commentUTF8:m,rawExtraField:d.subarray(v,b)});const k=b+_.commentLength;_.rawComment=d.subarray(b,k);const C=mi(n,t,"filenameEncoding"),E=mi(n,t,"commentEncoding"),[I,S]=await Promise.all([sc(_.rawFilename,_.filenameUTF8?R1:C||N1),sc(_.rawComment,_.commentUTF8?R1:E||N1)]);_.filename=I,_.comment=S,!_.directory&&_.filename.endsWith(Bo)&&(_.directory=!0),await ph(_,_,f,c+6);const T=new oa(_);if(T.getData=(L,D)=>_.getData(L,T,D),h.push(T),c=k,t.onprogress)try{t.onprogress(w+1,l,new oa(_))}catch{}}return h}async close(){}}class E5{constructor(t,n,r){Object.assign(this,{reader:t,config:n,options:r})}async getData(t,n,r={}){const i=this,{reader:s,offset:o,extraFieldAES:a,compressionMethod:l,config:u,bitFlag:c,signature:d,rawLastModDate:f,compressedSize:h}=i,w=i.localDirectory={};s.initialized||await s.init();let _=await ar(s,o,30);const m=At(_);let g=mi(i,r,"password");if(g=g&&g.length&&g,a&&a.originalCompressionMethod!=ih)throw new Error(O1);if(l!=rh&&l!=Jl)throw new Error(O1);if(pt(m,0)!=sh)throw new Error(x5);hh(w,m,4),_=await ar(s,o,30+w.filenameLength+w.extraFieldLength),w.rawExtraField=_.subarray(30+w.filenameLength),await ph(i,w,m,4),n.lastAccessDate=w.lastAccessDate,n.creationDate=w.creationDate;const v=i.encrypted&&w.encrypted,b=v&&!a;if(v){if(!b&&a.strength===void 0)throw new Error(k5);if(!g)throw new Error(y5)}const x=await Qf(u.Inflate,{codecType:Jf,password:g,zipCrypto:b,encryptionStrength:a&&a.strength,signed:mi(i,r,"checkSignature"),passwordVerification:b&&(c.dataDescriptor?f>>>8&255:d>>>24&255),signature:d,compressed:l!=0,encrypted:v,useWebWorkers:mi(i,r,"useWebWorkers")},u);t.initialized||await t.init();const y=mi(i,r,"signal"),k=o+30+w.filenameLength+w.extraFieldLength;return await fh(x,s,t,k,h,u,{onprogress:r.onprogress,signal:y}),t.getData()}}function hh(e,t,n){const r=e.rawBitFlag=Gt(t,n+2),i=(r&tc)==tc,s=pt(t,n+6);Object.assign(e,{encrypted:i,version:Gt(t,n),bitFlag:{level:(r&c5)>>1,dataDescriptor:(r&nc)==nc,languageEncodingFlag:(r&rc)==rc},rawLastModDate:s,lastModDate:L5(s),filenameLength:Gt(t,n+22),extraFieldLength:Gt(t,n+24)})}async function ph(e,t,n,r){const i=t.rawExtraField,s=t.extraField=new Map,o=At(new Uint8Array(i));let a=0;try{for(;a<i.length;){const _=Gt(o,a),m=Gt(o,a+2);s.set(_,{type:_,data:i.slice(a+4,a+4+m)}),a+=4+m}}catch{}const l=Gt(n,r+4);t.signature=pt(n,r+10),t.uncompressedSize=pt(n,r+18),t.compressedSize=pt(n,r+14);const u=s.get(lh);u&&(A5(u,t),t.extraFieldZip64=u);const c=s.get(a5);c&&(await F1(c,"filename","rawFilename",t,e),t.extraFieldUnicodePath=c);const d=s.get(l5);d&&(await F1(d,"comment","rawComment",t,e),t.extraFieldUnicodeComment=d);const f=s.get(ch);f?(S5(f,t,l),t.extraFieldAES=f):t.compressionMethod=l;const h=s.get(uh);h&&(I5(h,t),t.extraFieldNTFS=h);const w=s.get(Uc);w&&(M5(w,t),t.extraFieldExtendedTimestamp=w)}function A5(e,t){t.zip64=!0;const n=At(e.data);e.values=[];for(let i=0;i<Math.floor(e.data.length/8);i++)e.values.push(jo(n,0+i*8));const r=D1.filter(i=>t[i]==kt);for(let i=0;i<r.length;i++)e[r[i]]=e.values[i];D1.forEach(i=>{if(t[i]==kt)if(e[i]!==void 0)t[i]=e[i];else throw new Error(b5)})}async function F1(e,t,n,r,i){const s=At(e.data);e.version=ki(s,0),e.signature=pt(s,1);const o=new ys;o.append(i[n]);const a=At(new Uint8Array(4));a.setUint32(0,o.get(),!0),e[t]=await sc(e.data.subarray(5)),e.valid=!i.bitFlag.languageEncodingFlag&&e.signature==pt(a,0),e.valid&&(r[t]=e[t],r[t+"UTF8"]=!0)}function S5(e,t,n){const r=At(e.data);e.vendorVersion=ki(r,0),e.vendorId=ki(r,2);const i=ki(r,4);e.strength=i,e.originalCompressionMethod=n,t.compressionMethod=e.compressionMethod=Gt(r,5)}function I5(e,t){const n=At(e.data);let r=4,i;try{for(;r<e.data.length&&!i;){const s=Gt(n,r),o=Gt(n,r+2);s==dh&&(i=e.data.slice(r+4,r+4+o)),r+=4+o}}catch{}try{if(i&&i.length==24){const s=At(i),o=s.getBigUint64(0,!0),a=s.getBigUint64(8,!0),l=s.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:o,rawLastAccessDate:a,rawCreationDate:l});const u=pl(o),c=pl(a),d=pl(l),f={lastModDate:u,lastAccessDate:c,creationDate:d};Object.assign(e,f),Object.assign(t,f)}}catch{}}function M5(e,t){const n=At(e.data),r=ki(n,0),i=[],s=[];(r&1)==1&&(i.push("lastModDate"),s.push("rawLastModDate")),(r&2)==2&&(i.push("lastAccessDate"),s.push("rawLastAccessDate")),(r&4)==4&&(i.push("creationDate"),s.push("rawCreationDate"));let o=1;i.forEach((a,l)=>{if(e.data.length>=o+4){const u=pt(n,o);t[a]=e[a]=new Date(u*1e3);const c=s[l];e[c]=u}o+=4})}async function T5(e,t,n,r,i){const s=new Uint8Array(4),o=At(s);O5(o,0,t);const a=r+i;return await l(r)||await l(Math.min(a,n));async function l(u){const c=n-u,d=await ar(e,c,u);for(let f=d.length-r;f>=0;f--)if(d[f]==s[0]&&d[f+1]==s[1]&&d[f+2]==s[2]&&d[f+3]==s[3])return{offset:c+f,buffer:d.slice(f,f+r).buffer}}}function mi(e,t,n){return t[n]===void 0?e.options[n]:t[n]}function L5(e){const t=(e&4294901760)>>16,n=e&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(n&63488)>>11,(n&2016)>>5,(n&31)*2,0)}catch{}}function pl(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function ki(e,t){return e.getUint8(t)}function Gt(e,t){return e.getUint16(t,!0)}function pt(e,t){return e.getUint32(t,!0)}function jo(e,t){return Number(e.getBigUint64(t,!0))}function O5(e,t,n){e.setUint32(t,n,!0)}function At(e){return new DataView(e.buffer)}function ar(e,t,n){return e.readUint8Array(t,n)}const R5="File already exists",N5="Zip file comment exceeds 64KB",D5="File entry comment exceeds 64KB",F5="File entry name exceeds 64KB",P1="Version exceeds 65535",P5="The strength must equal 1, 2, or 3",$5="Extra field type exceeds 65535",B5="Extra field data exceeds 64KB",Hc="Zip64 is not supported",$1=new Uint8Array([7,0,2,0,65,69,3,0,0]),B1=24;let ml=0;class j5{constructor(t,n={}){Object.assign(this,{writer:t,options:n,config:Nf(),files:new Map,offset:t.size,pendingCompressedSize:0,pendingEntries:[]})}async add(t="",n,r={}){const i=this;if(ml<i.config.maxWorkers){ml++;try{return await V5(i,t,n,r)}finally{ml--;const s=i.pendingEntries.shift();s&&i.add(s.name,s.reader,s.options).then(s.resolve).catch(s.reject)}}else return new Promise((s,o)=>i.pendingEntries.push({name:t,reader:n,options:r,resolve:s,reject:o}))}async close(t=new Uint8Array(0),n={}){return await H5(this,t,n),this.writer.getData()}}async function V5(e,t,n,r){if(t=t.trim(),r.directory&&!t.endsWith(Bo)?t+=Bo:r.directory=t.endsWith(Bo),e.files.has(t))throw new Error(R5);const i=Xl(t);if(i.length>fn)throw new Error(F5);const s=r.comment||"",o=Xl(s);if(o.length>fn)throw new Error(D5);const a=e.options.version||r.version||0;if(a>fn)throw new Error(P1);const l=e.options.versionMadeBy||r.versionMadeBy||20;if(l>fn)throw new Error(P1);const u=bt(e,r,"lastModDate")||new Date,c=bt(e,r,"lastAccessDate"),d=bt(e,r,"creationDate"),f=bt(e,r,"password"),h=bt(e,r,"encryptionStrength")||3,w=bt(e,r,"zipCrypto");if(f!==void 0&&h!==void 0&&(h<1||h>3))throw new Error(P5);let _=new Uint8Array(0);const m=r.extraField;if(m){let O=0,$=0;m.forEach(U=>O+=4+U.length),_=new Uint8Array(O),m.forEach((U,Q)=>{if(Q>fn)throw new Error($5);if(U.length>fn)throw new Error(B5);_t(_,new Uint16Array([Q]),$),_t(_,new Uint16Array([U.length]),$+2),_t(_,U,$+4),$+=4+U.length})}let g=bt(e,r,"extendedTimestamp");g===void 0&&(g=!0);let v=0,b=bt(e,r,"keepOrder");b===void 0&&(b=!0);let x=0,y=bt(e,r,"msDosCompatible");y===void 0&&(y=!0);const k=bt(e,r,"internalFileAttribute")||0,C=bt(e,r,"externalFileAttribute")||0;n&&(n.initialized||await n.init(),x=n.size,v=G5(x));let E=r.zip64||e.options.zip64||!1;if(e.offset+e.pendingCompressedSize>=kt||x>=kt||v>=kt){if(r.zip64===!1||e.options.zip64===!1||!b)throw new Error(Hc);E=!0}e.pendingCompressedSize+=v,await Promise.resolve();const I=bt(e,r,"level"),S=bt(e,r,"useWebWorkers"),T=bt(e,r,"bufferedWrite");let L=bt(e,r,"dataDescriptor"),D=bt(e,r,"dataDescriptorSignature");const G=bt(e,r,"signal");L===void 0&&(L=!0),L&&D===void 0&&(D=!0);const z=await z5(e,t,n,Object.assign({},r,{rawFilename:i,rawComment:o,version:a,versionMadeBy:l,lastModDate:u,lastAccessDate:c,creationDate:d,rawExtraField:_,zip64:E,password:f,level:I,useWebWorkers:S,encryptionStrength:h,extendedTimestamp:g,zipCrypto:w,bufferedWrite:T,keepOrder:b,dataDescriptor:L,dataDescriptorSignature:D,signal:G,msDosCompatible:y,internalFileAttribute:k,externalFileAttribute:C}));return v&&(e.pendingCompressedSize-=v),Object.assign(z,{name:t,comment:s,extraField:m}),new oa(z)}async function z5(e,t,n,r){const i=e.files,s=e.writer,o=Array.from(i.values()).pop();let a={},l,u,c;i.set(t,a);try{let d,f,h;if(r.keepOrder&&(d=o&&o.lock),a.lock=h=new Promise(w=>c=w),r.bufferedWrite||e.lockWrite||!r.dataDescriptor?(f=new r5,f.init(),l=!0):(e.lockWrite=new Promise(w=>u=w),s.initialized||await s.init(),f=s),a=await U5(n,f,e.config,r),a.lock=h,i.set(t,a),a.filename=t,l){let w=0;const _=f.getData();await Promise.all([e.lockWrite,d]);let m;do m=Array.from(i.values()).find(g=>g.writingBufferedData),m&&await m.lock;while(m&&m.lock);if(a.writingBufferedData=!0,!r.dataDescriptor){const v=await mh(_,0,26),b=new DataView(v);(!a.encrypted||r.zipCrypto)&&Pe(b,14,a.signature),a.zip64?(Pe(b,18,kt),Pe(b,22,kt)):(Pe(b,18,a.compressedSize),Pe(b,22,a.uncompressedSize)),await s.writeUint8Array(new Uint8Array(v)),w=26}await Z5(s,_,w),delete a.writingBufferedData}if(a.offset=e.offset,a.zip64){const w=un(a.rawExtraFieldZip64);Ft(w,20,BigInt(a.offset))}else if(a.offset>=kt)throw new Error(Hc);return e.offset+=a.length,a}catch(d){throw(l&&a.writingBufferedData||!l&&a.dataWritten)&&(d.corruptedEntry=e.hasCorruptedEntries=!0,a.uncompressedSize&&(e.offset+=a.uncompressedSize)),i.delete(t),d}finally{c(),u&&u()}}async function U5(e,t,n,r){const{rawFilename:i,lastAccessDate:s,creationDate:o,password:a,level:l,zip64:u,zipCrypto:c,dataDescriptor:d,dataDescriptorSignature:f,directory:h,version:w,versionMadeBy:_,rawComment:m,rawExtraField:g,useWebWorkers:v,onprogress:b,signal:x,encryptionStrength:y,extendedTimestamp:k,msDosCompatible:C,internalFileAttribute:E,externalFileAttribute:I}=r,S=Boolean(a&&a.length),T=l!==0&&!h;let L;if(S&&!c){L=new Uint8Array($1.length+2);const Ie=un(L);Xe(Ie,0,ch),_t(L,$1,2),aa(Ie,8,y)}else L=new Uint8Array(0);let D,G;if(k){G=new Uint8Array(9+(s?4:0)+(o?4:0));const Ie=un(G);Xe(Ie,0,Uc),Xe(Ie,2,G.length-4);const je=1+(s?2:0)+(o?4:0);aa(Ie,4,je),Pe(Ie,5,Math.floor(r.lastModDate.getTime()/1e3)),s&&Pe(Ie,9,Math.floor(s.getTime()/1e3)),o&&Pe(Ie,13,Math.floor(o.getTime()/1e3));try{D=new Uint8Array(36);const Ve=un(D),ae=gl(r.lastModDate);Xe(Ve,0,uh),Xe(Ve,2,32),Xe(Ve,8,dh),Xe(Ve,10,24),Ft(Ve,12,ae),Ft(Ve,20,gl(s)||ae),Ft(Ve,28,gl(o)||ae)}catch{D=new Uint8Array(0)}}else D=G=new Uint8Array(0);const z={version:w||u5,versionMadeBy:_,zip64:u,directory:Boolean(h),filenameUTF8:!0,rawFilename:i,commentUTF8:!0,rawComment:m,rawExtraFieldZip64:u?new Uint8Array(B1+4):new Uint8Array(0),rawExtraFieldExtendedTimestamp:G,rawExtraFieldNTFS:D,rawExtraFieldAES:L,rawExtraField:g,extendedTimestamp:k,msDosCompatible:C,internalFileAttribute:E,externalFileAttribute:I};let O=z.uncompressedSize=0,$=rc;d&&($=$|nc);let U=rh;T&&(U=Jl),u&&(z.version=z.version>S1?z.version:S1),S&&($=$|tc,c||(z.version=z.version>I1?z.version:I1,U=ih,T&&(z.rawExtraFieldAES[9]=Jl))),z.compressionMethod=U;const Q=z.headerArray=new Uint8Array(26),N=un(Q);Xe(N,0,z.version),Xe(N,2,$),Xe(N,4,U);const A=new Uint32Array(1),R=un(A);let B;r.lastModDate<T1?B=T1:r.lastModDate>M1?B=M1:B=r.lastModDate,Xe(R,0,(B.getHours()<<6|B.getMinutes())<<5|B.getSeconds()/2),Xe(R,2,(B.getFullYear()-1980<<4|B.getMonth()+1)<<5|B.getDate());const q=A[0];Pe(N,6,q),Xe(N,22,i.length);const ie=L.length+G.length+D.length+z.rawExtraField.length;Xe(N,24,ie);const j=new Uint8Array(30+i.length+ie),J=un(j);Pe(J,0,sh),_t(j,Q,4),_t(j,i,30),_t(j,L,30+i.length),_t(j,G,30+i.length+L.length),_t(j,D,30+i.length+L.length+G.length),_t(j,z.rawExtraField,30+i.length+L.length+G.length+D.length);let _e,ve=0;if(e){O=z.uncompressedSize=e.size;const Ie=await Qf(n.Deflate,{codecType:Kf,level:l,password:a,encryptionStrength:y,zipCrypto:S&&c,passwordVerification:S&&c&&q>>8&255,signed:!0,compressed:T,encrypted:S,useWebWorkers:v},n);await t.writeUint8Array(j),z.dataWritten=!0,_e=await fh(Ie,e,t,0,O,n,{onprogress:b,signal:x}),ve=_e.length}else await t.writeUint8Array(j),z.dataWritten=!0;let We=new Uint8Array(0),Ze,Ke=0;if(d&&(We=new Uint8Array(u?f?24:20:f?16:12),Ze=un(We),f&&(Ke=4,Pe(Ze,0,i5))),e){const Ie=_e.signature;if((!S||c)&&Ie!==void 0&&(Pe(N,10,Ie),z.signature=Ie,d&&Pe(Ze,Ke,Ie)),u){const je=un(z.rawExtraFieldZip64);Xe(je,0,lh),Xe(je,2,B1),Pe(N,14,kt),Ft(je,12,BigInt(ve)),Pe(N,18,kt),Ft(je,4,BigInt(O)),d&&(Ft(Ze,Ke+4,BigInt(ve)),Ft(Ze,Ke+12,BigInt(O)))}else Pe(N,14,ve),Pe(N,18,O),d&&(Pe(Ze,Ke+4,ve),Pe(Ze,Ke+8,O))}d&&await t.writeUint8Array(We);const vt=j.length+ve+We.length;return Object.assign(z,{compressedSize:ve,lastModDate:B,rawLastModDate:q,creationDate:o,lastAccessDate:s,encrypted:S,length:vt}),z}async function H5(e,t,n){const r=e.writer,i=e.files;let s=0,o=0,a=e.offset,l=i.size;for(const[,f]of i)o+=46+f.rawFilename.length+f.rawComment.length+f.rawExtraFieldZip64.length+f.rawExtraFieldAES.length+f.rawExtraFieldExtendedTimestamp.length+f.rawExtraFieldNTFS.length+f.rawExtraField.length;let u=n.zip64||e.options.zip64||!1;if(a>=kt||o>=kt||l>=fn){if(n.zip64===!1||e.options.zip64===!1)throw new Error(Hc);u=!0}const c=new Uint8Array(o+(u?s5:sa)),d=un(c);if(t&&t.length)if(t.length<=fn)Xe(d,s+20,t.length);else throw new Error(N5);for(const[f,h]of Array.from(i.values()).entries()){const{rawFilename:w,rawExtraFieldZip64:_,rawExtraFieldAES:m,rawExtraField:g,rawComment:v,versionMadeBy:b,headerArray:x,directory:y,zip64:k,msDosCompatible:C,internalFileAttribute:E,externalFileAttribute:I}=h;let S,T;if(h.extendedTimestamp){T=h.rawExtraFieldNTFS,S=new Uint8Array(9);const D=un(S);Xe(D,0,Uc),Xe(D,2,S.length-4),aa(D,4,1),Pe(D,5,Math.floor(h.lastModDate.getTime()/1e3))}else T=S=new Uint8Array(0);const L=_.length+m.length+S.length+T.length+g.length;if(Pe(d,s,Ql),Xe(d,s+4,b),_t(c,x,s+6),Xe(d,s+30,L),Xe(d,s+32,v.length),Pe(d,s+34,E),I?Pe(d,s+38,I):y&&C&&aa(d,s+38,ic),k?Pe(d,s+42,kt):Pe(d,s+42,h.offset),_t(c,w,s+46),_t(c,_,s+46+w.length),_t(c,m,s+46+w.length+_.length),_t(c,S,s+46+w.length+_.length+m.length),_t(c,T,s+46+w.length+_.length+m.length+S.length),_t(c,g,s+46+w.length+_.length+m.length+S.length+T.length),_t(c,v,s+46+w.length+L),s+=46+w.length+L+v.length,n.onprogress)try{n.onprogress(f+1,i.size,new oa(h))}catch{}}u&&(Pe(d,s,ec),Ft(d,s+4,BigInt(44)),Xe(d,s+12,45),Xe(d,s+14,45),Ft(d,s+24,BigInt(l)),Ft(d,s+32,BigInt(l)),Ft(d,s+40,BigInt(o)),Ft(d,s+48,BigInt(a)),Pe(d,s+56,ah),Ft(d,s+64,BigInt(a)+BigInt(o)),Pe(d,s+72,o5),l=fn,a=kt,o=kt,s+=76),Pe(d,s,oh),Xe(d,s+8,l),Xe(d,s+10,l),Pe(d,s+12,o),Pe(d,s+16,a),await r.writeUint8Array(c),t&&t.length&&await r.writeUint8Array(t)}function mh(e,t,n){if(e.arrayBuffer)return t||n?e.slice(t,n).arrayBuffer():e.arrayBuffer();{const r=new FileReader;return new Promise((i,s)=>{r.onload=o=>i(o.target.result),r.onerror=()=>s(r.error),r.readAsArrayBuffer(t||n?e.slice(t,n):e)})}}async function Z5(e,t,n=0){await i();async function i(){if(n<t.size){const s=await mh(t,n,n+536870912);await e.writeUint8Array(new Uint8Array(s)),n+=536870912,await i()}}}function gl(e){if(e)return(BigInt(e.getTime())+BigInt(116444736e5))*BigInt(1e4)}function bt(e,t,n){return t[n]===void 0?e.options[n]:t[n]}function G5(e){return e+5*(Math.floor(e/16383)+1)}function aa(e,t,n){e.setUint8(t,n)}function Xe(e,t,n){e.setUint16(t,n,!0)}function Pe(e,t,n){e.setUint32(t,n,!0)}function Ft(e,t,n){e.setBigUint64(t,n,!0)}function _t(e,t,n){e.set(t,n)}function un(e){return new DataView(e.buffer)}let gh;try{gh=Db.url}catch{}$c({baseURL:gh});Qg($c);$c({Deflate:dg,Inflate:Og});var ot={},Ys={},rn={};function _h(e){return typeof e=="undefined"||e===null}function Y5(e){return typeof e=="object"&&e!==null}function W5(e){return Array.isArray(e)?e:_h(e)?[]:[e]}function q5(e,t){var n,r,i,s;if(t)for(s=Object.keys(t),n=0,r=s.length;n<r;n+=1)i=s[n],e[i]=t[i];return e}function X5(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function K5(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}rn.isNothing=_h;rn.isObject=Y5;rn.toArray=W5;rn.repeat=X5;rn.isNegativeZero=K5;rn.extend=q5;function Cs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Cs.prototype=Object.create(Error.prototype);Cs.prototype.constructor=Cs;Cs.prototype.toString=function(t){var n=this.name+": ";return n+=this.reason||"(unknown reason)",!t&&this.mark&&(n+=" "+this.mark.toString()),n};var Ws=Cs,j1=rn;function Zc(e,t,n,r,i){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=i}Zc.prototype.getSnippet=function(t,n){var r,i,s,o,a;if(!this.buffer)return null;for(t=t||4,n=n||75,r="",i=this.position;i>0&&`\0\r
|
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>n/2-1){r=" ... ",i+=5;break}for(s="",o=this.position;o<this.buffer.length&&`\0\r
|
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(o))===-1;)if(o+=1,o-this.position>n/2-1){s=" ... ",o-=5;break}return a=this.buffer.slice(i,o),j1.repeat(" ",t)+r+a+s+`
|
|
`+j1.repeat(" ",t+this.position-i+r.length)+"^"};Zc.prototype.toString=function(t){var n,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),t||(n=this.getSnippet(),n&&(r+=`:
|
|
`+n)),r};var J5=Zc,V1=Ws,Q5=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],e_=["scalar","sequence","mapping"];function t_(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function n_(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(Q5.indexOf(n)===-1)throw new V1('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=t_(t.styleAliases||null),e_.indexOf(this.kind)===-1)throw new V1('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var wt=n_,z1=rn,Vo=Ws,r_=wt;function oc(e,t,n){var r=[];return e.include.forEach(function(i){n=oc(i,t,n)}),e[t].forEach(function(i){n.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&r.push(o)}),n.push(i)}),n.filter(function(i,s){return r.indexOf(s)===-1})}function i_(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,n;function r(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function gi(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Vo("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=oc(this,"implicit",[]),this.compiledExplicit=oc(this,"explicit",[]),this.compiledTypeMap=i_(this.compiledImplicit,this.compiledExplicit)}gi.DEFAULT=null;gi.create=function(){var t,n;switch(arguments.length){case 1:t=gi.DEFAULT,n=arguments[0];break;case 2:t=arguments[0],n=arguments[1];break;default:throw new Vo("Wrong number of arguments for Schema.create function")}if(t=z1.toArray(t),n=z1.toArray(n),!t.every(function(r){return r instanceof gi}))throw new Vo("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(r){return r instanceof r_}))throw new Vo("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new gi({include:t,explicit:n})};var zi=gi,s_=wt,o_=new s_("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),a_=wt,l_=new a_("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),c_=wt,u_=new c_("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),d_=zi,Gc=new d_({explicit:[o_,l_,u_]}),f_=wt;function h_(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function p_(){return null}function m_(e){return e===null}var g_=new f_("tag:yaml.org,2002:null",{kind:"scalar",resolve:h_,construct:p_,predicate:m_,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),__=wt;function w_(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function v_(e){return e==="true"||e==="True"||e==="TRUE"}function x_(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var b_=new __("tag:yaml.org,2002:bool",{kind:"scalar",resolve:w_,construct:v_,predicate:x_,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),y_=rn,k_=wt;function C_(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function E_(e){return 48<=e&&e<=55}function A_(e){return 48<=e&&e<=57}function S_(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!C_(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}for(;n<t;n++)if(i=e[n],i!=="_"){if(!E_(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(i===":")break;if(!A_(e.charCodeAt(n)))return!1;r=!0}return!r||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(n))}function I_(e){var t=e,n=1,r,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0"?0:r==="0"?t[1]==="b"?n*parseInt(t.slice(2),2):t[1]==="x"?n*parseInt(t,16):n*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(o){s.unshift(parseInt(o,10))}),t=0,i=1,s.forEach(function(o){t+=o*i,i*=60}),n*t):n*parseInt(t,10)}function M_(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!y_.isNegativeZero(e)}var T_=new k_("tag:yaml.org,2002:int",{kind:"scalar",resolve:S_,construct:I_,predicate:M_,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),wh=rn,L_=wt,O_=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function R_(e){return!(e===null||!O_.test(e)||e[e.length-1]==="_")}function N_(e){var t,n,r,i;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,r=1,i.forEach(function(s){t+=s*r,r*=60}),n*t):n*parseFloat(t,10)}var D_=/^[-+]?[0-9]+e/;function F_(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(wh.isNegativeZero(e))return"-0.0";return n=e.toString(10),D_.test(n)?n.replace("e",".e"):n}function P_(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||wh.isNegativeZero(e))}var $_=new L_("tag:yaml.org,2002:float",{kind:"scalar",resolve:R_,construct:N_,predicate:P_,represent:F_,defaultStyle:"lowercase"}),B_=zi,vh=new B_({include:[Gc],implicit:[g_,b_,T_,$_]}),j_=zi,xh=new j_({include:[vh]}),V_=wt,bh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),yh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function z_(e){return e===null?!1:bh.exec(e)!==null||yh.exec(e)!==null}function U_(e){var t,n,r,i,s,o,a,l=0,u=null,c,d,f;if(t=bh.exec(e),t===null&&(t=yh.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],d=+(t[11]||0),u=(c*60+d)*6e4,t[9]==="-"&&(u=-u)),f=new Date(Date.UTC(n,r,i,s,o,a,l)),u&&f.setTime(f.getTime()-u),f}function H_(e){return e.toISOString()}var Z_=new V_("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:z_,construct:U_,instanceOf:Date,represent:H_}),G_=wt;function Y_(e){return e==="<<"||e===null}var W_=new G_("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Y_}),Mr;try{var q_=wf;Mr=q_("buffer").Buffer}catch{}var X_=wt,Yc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
\r`;function K_(e){if(e===null)return!1;var t,n,r=0,i=e.length,s=Yc;for(n=0;n<i;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function J_(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,s=Yc,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(r.charAt(t));return n=i%4*6,n===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):n===18?(a.push(o>>10&255),a.push(o>>2&255)):n===12&&a.push(o>>4&255),Mr?Mr.from?Mr.from(a):new Mr(a):a}function Q_(e){var t="",n=0,r,i,s=e.length,o=Yc;for(r=0;r<s;r++)r%3===0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=s%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function e8(e){return Mr&&Mr.isBuffer(e)}var t8=new X_("tag:yaml.org,2002:binary",{kind:"scalar",resolve:K_,construct:J_,predicate:e8,represent:Q_}),n8=wt,r8=Object.prototype.hasOwnProperty,i8=Object.prototype.toString;function s8(e){if(e===null)return!0;var t=[],n,r,i,s,o,a=e;for(n=0,r=a.length;n<r;n+=1){if(i=a[n],o=!1,i8.call(i)!=="[object Object]")return!1;for(s in i)if(r8.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function o8(e){return e!==null?e:[]}var a8=new n8("tag:yaml.org,2002:omap",{kind:"sequence",resolve:s8,construct:o8}),l8=wt,c8=Object.prototype.toString;function u8(e){if(e===null)return!0;var t,n,r,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],c8.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;s[t]=[i[0],r[i[0]]]}return!0}function d8(e){if(e===null)return[];var t,n,r,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),s[t]=[i[0],r[i[0]]];return s}var f8=new l8("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:u8,construct:d8}),h8=wt,p8=Object.prototype.hasOwnProperty;function m8(e){if(e===null)return!0;var t,n=e;for(t in n)if(p8.call(n,t)&&n[t]!==null)return!1;return!0}function g8(e){return e!==null?e:{}}var _8=new h8("tag:yaml.org,2002:set",{kind:"mapping",resolve:m8,construct:g8}),w8=zi,qs=new w8({include:[xh],implicit:[Z_,W_],explicit:[t8,a8,f8,_8]}),v8=wt;function x8(){return!0}function b8(){}function y8(){return""}function k8(e){return typeof e=="undefined"}var C8=new v8("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:x8,construct:b8,predicate:k8,represent:y8}),E8=wt;function A8(e){if(e===null||e.length===0)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";return!(t[0]==="/"&&(n&&(r=n[1]),r.length>3||t[t.length-r.length-1]!=="/"))}function S8(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return t[0]==="/"&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)}function I8(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function M8(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var T8=new E8("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:A8,construct:S8,predicate:M8,represent:I8}),la;try{var L8=wf;la=L8("esprima")}catch{typeof window!="undefined"&&(la=window.esprima)}var O8=wt;function R8(e){if(e===null)return!1;try{var t="("+e+")",n=la.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 N8(e){var t="("+e+")",n=la.parse(t,{range:!0}),r=[],i;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){r.push(s.name)}),i=n.body[0].expression.body.range,n.body[0].expression.body.type==="BlockStatement"?new Function(r,t.slice(i[0]+1,i[1]-1)):new Function(r,"return "+t.slice(i[0],i[1]))}function D8(e){return e.toString()}function F8(e){return Object.prototype.toString.call(e)==="[object Function]"}var P8=new O8("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:R8,construct:N8,predicate:F8,represent:D8}),U1=zi,Fa=U1.DEFAULT=new U1({include:[qs],explicit:[C8,T8,P8]}),Vn=rn,kh=Ws,$8=J5,Ch=qs,B8=Fa,gr=Object.prototype.hasOwnProperty,ca=1,Eh=2,Ah=3,ua=4,_l=1,j8=2,H1=3,V8=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z8=/[\x85\u2028\u2029]/,U8=/[,\[\]\{\}]/,Sh=/^(?:!|!!|![a-z\-]+!)$/i,Ih=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Z1(e){return Object.prototype.toString.call(e)}function Tn(e){return e===10||e===13}function Rr(e){return e===9||e===32}function $t(e){return e===9||e===32||e===10||e===13}function _i(e){return e===44||e===91||e===93||e===123||e===125}function H8(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Z8(e){return e===120?2:e===117?4:e===85?8:0}function G8(e){return 48<=e&&e<=57?e-48:-1}function G1(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 Y8(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Mh=new Array(256),Th=new Array(256);for(var si=0;si<256;si++)Mh[si]=G1(si)?1:0,Th[si]=G1(si);function W8(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||B8,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 Lh(e,t){return new kh(t,new $8(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function ue(e,t){throw Lh(e,t)}function da(e,t){e.onWarning&&e.onWarning.call(null,Lh(e,t))}var Y1={YAML:function(t,n,r){var i,s,o;t.version!==null&&ue(t,"duplication of %YAML directive"),r.length!==1&&ue(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&ue(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ue(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&da(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,s;r.length!==2&&ue(t,"TAG directive accepts exactly two arguments"),i=r[0],s=r[1],Sh.test(i)||ue(t,"ill-formed tag handle (first argument) of the TAG directive"),gr.call(t.tagMap,i)&&ue(t,'there is a previously declared suffix for "'+i+'" tag handle'),Ih.test(s)||ue(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s}};function fr(e,t,n,r){var i,s,o,a;if(t<n){if(a=e.input.slice(t,n),r)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||ue(e,"expected valid JSON character");else V8.test(a)&&ue(e,"the stream contains non-printable characters");e.result+=a}}function W1(e,t,n,r){var i,s,o,a;for(Vn.isObject(n)||ue(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,a=i.length;o<a;o+=1)s=i[o],gr.call(t,s)||(t[s]=n[s],r[s]=!0)}function wi(e,t,n,r,i,s,o,a){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&ue(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Z1(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&Z1(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,u=s.length;l<u;l+=1)W1(e,t,s[l],n);else W1(e,t,s,n);else!e.json&&!gr.call(n,i)&&gr.call(t,i)&&(e.line=o||e.line,e.position=a||e.position,ue(e,"duplicated mapping key")),t[i]=s,delete n[i];return t}function Wc(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ue(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function ut(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Rr(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Tn(i))for(Wc(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&da(e,"deficient indentation"),r}function Pa(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||$t(n)))}function qc(e,t){t===1?e.result+=" ":t>1&&(e.result+=Vn.repeat(`
|
|
`,t-1))}function q8(e,t,n){var r,i,s,o,a,l,u,c,d=e.kind,f=e.result,h;if(h=e.input.charCodeAt(e.position),$t(h)||_i(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),$t(i)||n&&_i(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),$t(i)||n&&_i(i))break}else if(h===35){if(r=e.input.charCodeAt(e.position-1),$t(r))break}else{if(e.position===e.lineStart&&Pa(e)||n&&_i(h))break;if(Tn(h))if(l=e.line,u=e.lineStart,c=e.lineIndent,ut(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=u,e.lineIndent=c;break}}a&&(fr(e,s,o,!1),qc(e,e.line-l),s=o=e.position,a=!1),Rr(h)||(o=e.position+1),h=e.input.charCodeAt(++e.position)}return fr(e,s,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function X8(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(fr(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else Tn(n)?(fr(e,r,i,!0),qc(e,ut(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Pa(e)?ue(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ue(e,"unexpected end of the stream within a single quoted scalar")}function K8(e,t){var n,r,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return fr(e,n,e.position,!0),e.position++,!0;if(a===92){if(fr(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),Tn(a))ut(e,!1,t);else if(a<256&&Mh[a])e.result+=Th[a],e.position++;else if((o=Z8(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=H8(a))>=0?s=(s<<4)+o:ue(e,"expected hexadecimal character");e.result+=Y8(s),e.position++}else ue(e,"unknown escape sequence");n=r=e.position}else Tn(a)?(fr(e,n,r,!0),qc(e,ut(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Pa(e)?ue(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ue(e,"unexpected end of the stream within a double quoted scalar")}function J8(e,t){var n=!0,r,i=e.tag,s,o=e.anchor,a,l,u,c,d,f={},h,w,_,m;if(m=e.input.charCodeAt(e.position),m===91)l=93,d=!1,s=[];else if(m===123)l=125,d=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),m=e.input.charCodeAt(++e.position);m!==0;){if(ut(e,!0,t),m=e.input.charCodeAt(e.position),m===l)return e.position++,e.tag=i,e.anchor=o,e.kind=d?"mapping":"sequence",e.result=s,!0;n||ue(e,"missed comma between flow collection entries"),w=h=_=null,u=c=!1,m===63&&(a=e.input.charCodeAt(e.position+1),$t(a)&&(u=c=!0,e.position++,ut(e,!0,t))),r=e.line,Di(e,t,ca,!1,!0),w=e.tag,h=e.result,ut(e,!0,t),m=e.input.charCodeAt(e.position),(c||e.line===r)&&m===58&&(u=!0,m=e.input.charCodeAt(++e.position),ut(e,!0,t),Di(e,t,ca,!1,!0),_=e.result),d?wi(e,s,f,w,h,_):u?s.push(wi(e,null,f,w,h,_)):s.push(h),ut(e,!0,t),m=e.input.charCodeAt(e.position),m===44?(n=!0,m=e.input.charCodeAt(++e.position)):n=!1}ue(e,"unexpected end of the stream within a flow collection")}function Q8(e,t){var n,r,i=_l,s=!1,o=!1,a=t,l=0,u=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)_l===i?i=d===43?H1:j8:ue(e,"repeat of a chomping mode identifier");else if((c=G8(d))>=0)c===0?ue(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ue(e,"repeat of an indentation width identifier"):(a=t+c-1,o=!0);else break;if(Rr(d)){do d=e.input.charCodeAt(++e.position);while(Rr(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!Tn(d)&&d!==0)}for(;d!==0;){for(Wc(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Tn(d)){l++;continue}if(e.lineIndent<a){i===H1?e.result+=Vn.repeat(`
|
|
`,s?1+l:l):i===_l&&s&&(e.result+=`
|
|
`);break}for(r?Rr(d)?(u=!0,e.result+=Vn.repeat(`
|
|
`,s?1+l:l)):u?(u=!1,e.result+=Vn.repeat(`
|
|
`,l+1)):l===0?s&&(e.result+=" "):e.result+=Vn.repeat(`
|
|
`,l):e.result+=Vn.repeat(`
|
|
`,s?1+l:l),s=!0,o=!0,l=0,n=e.position;!Tn(d)&&d!==0;)d=e.input.charCodeAt(++e.position);fr(e,n,e.position,!1)}return!0}function q1(e,t){var n,r=e.tag,i=e.anchor,s=[],o,a=!1,l;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),l=e.input.charCodeAt(e.position);l!==0&&!(l!==45||(o=e.input.charCodeAt(e.position+1),!$t(o)));){if(a=!0,e.position++,ut(e,!0,-1)&&e.lineIndent<=t){s.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,Di(e,t,Ah,!1,!0),s.push(e.result),ut(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)ue(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function e3(e,t,n){var r,i,s,o,a=e.tag,l=e.anchor,u={},c={},d=null,f=null,h=null,w=!1,_=!1,m;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),m=e.input.charCodeAt(e.position);m!==0;){if(r=e.input.charCodeAt(e.position+1),s=e.line,o=e.position,(m===63||m===58)&&$t(r))m===63?(w&&(wi(e,u,c,d,f,null),d=f=h=null),_=!0,w=!0,i=!0):w?(w=!1,i=!0):ue(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,m=r;else if(Di(e,n,Eh,!1,!0))if(e.line===s){for(m=e.input.charCodeAt(e.position);Rr(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),$t(m)||ue(e,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(wi(e,u,c,d,f,null),d=f=h=null),_=!0,w=!1,i=!1,d=e.tag,f=e.result;else if(_)ue(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=l,!0}else if(_)ue(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=l,!0;else break;if((e.line===s||e.lineIndent>t)&&(Di(e,t,ua,!0,i)&&(w?f=e.result:h=e.result),w||(wi(e,u,c,d,f,h,s,o),d=f=h=null),ut(e,!0,-1),m=e.input.charCodeAt(e.position)),e.lineIndent>t&&m!==0)ue(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return w&&wi(e,u,c,d,f,null),_&&(e.tag=a,e.anchor=l,e.kind="mapping",e.result=u),_}function t3(e){var t,n=!1,r=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ue(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ue(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!$t(o);)o===33&&(r?ue(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Sh.test(i)||ue(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),U8.test(s)&&ue(e,"tag suffix cannot contain flow indicator characters")}return s&&!Ih.test(s)&&ue(e,"tag name cannot contain such characters: "+s),n?e.tag=s:gr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ue(e,'undeclared tag handle "'+i+'"'),!0}function n3(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&ue(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!$t(n)&&!_i(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ue(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function r3(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!$t(r)&&!_i(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ue(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),gr.call(e.anchorMap,n)||ue(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ut(e,!0,-1),!0}function Di(e,t,n,r,i){var s,o,a,l=1,u=!1,c=!1,d,f,h,w,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=ua===n||Ah===n,r&&ut(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;t3(e)||n3(e);)ut(e,!0,-1)?(u=!0,a=s,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=u||i),(l===1||ua===n)&&(ca===n||Eh===n?w=t:w=t+1,_=e.position-e.lineStart,l===1?a&&(q1(e,_)||e3(e,_,w))||J8(e,w)?c=!0:(o&&Q8(e,w)||X8(e,w)||K8(e,w)?c=!0:r3(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&ue(e,"alias node should not have any properties")):q8(e,w,ca===n)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=a&&q1(e,_))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ue(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),d=0,f=e.implicitTypes.length;d<f;d+=1)if(h=e.implicitTypes[d],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else gr.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&ue(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ue(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):ue(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function i3(e){var t=e.position,n,r,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(o=e.input.charCodeAt(e.position))!==0&&(ut(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!$t(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&ue(e,"directive name must not be less than one character in length");o!==0;){for(;Rr(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Tn(o));break}if(Tn(o))break;for(n=e.position;o!==0&&!$t(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&Wc(e),gr.call(Y1,r)?Y1[r](e,r,i):da(e,'unknown document directive "'+r+'"')}if(ut(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ut(e,!0,-1)):s&&ue(e,"directives end mark is expected"),Di(e,e.lineIndent-1,ua,!1,!0),ut(e,!0,-1),e.checkLineBreaks&&z8.test(e.input.slice(t,e.position))&&da(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Pa(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ut(e,!0,-1));return}if(e.position<e.length-1)ue(e,"end of the stream or a document separator is expected");else return}function Oh(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new W8(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,ue(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)i3(n);return n.documents}function Rh(e,t,n){t!==null&&typeof t=="object"&&typeof n=="undefined"&&(n=t,t=null);var r=Oh(e,n);if(typeof t!="function")return r;for(var i=0,s=r.length;i<s;i+=1)t(r[i])}function Nh(e,t){var n=Oh(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new kh("expected a single document in the stream, but found more")}}function s3(e,t,n){return typeof t=="object"&&t!==null&&typeof n=="undefined"&&(n=t,t=null),Rh(e,t,Vn.extend({schema:Ch},n))}function o3(e,t){return Nh(e,Vn.extend({schema:Ch},t))}Ys.loadAll=Rh;Ys.load=Nh;Ys.safeLoadAll=s3;Ys.safeLoad=o3;var Xc={},Xs=rn,Ks=Ws,a3=Fa,l3=qs,Dh=Object.prototype.toString,Fh=Object.prototype.hasOwnProperty,c3=9,Es=10,u3=13,d3=32,f3=33,h3=34,Ph=35,p3=37,m3=38,g3=39,_3=42,$h=44,w3=45,Bh=58,v3=61,x3=62,b3=63,y3=64,jh=91,Vh=93,k3=96,zh=123,C3=124,Uh=125,It={};It[0]="\\0";It[7]="\\a";It[8]="\\b";It[9]="\\t";It[10]="\\n";It[11]="\\v";It[12]="\\f";It[13]="\\r";It[27]="\\e";It[34]='\\"';It[92]="\\\\";It[133]="\\N";It[160]="\\_";It[8232]="\\L";It[8233]="\\P";var E3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function A3(e,t){var n,r,i,s,o,a,l;if(t===null)return{};for(n={},r=Object.keys(t),i=0,s=r.length;i<s;i+=1)o=r[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=e.compiledTypeMap.fallback[o],l&&Fh.call(l.styleAliases,a)&&(a=l.styleAliases[a]),n[o]=a;return n}function X1(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Ks("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Xs.repeat("0",r-t.length)+t}function S3(e){this.schema=e.schema||a3,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Xs.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=A3(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function K1(e,t){for(var n=Xs.repeat(" ",t),r=0,i=-1,s="",o,a=e.length;r<a;)i=e.indexOf(`
|
|
`,r),i===-1?(o=e.slice(r),r=a):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
|
|
`&&(s+=n),s+=o;return s}function ac(e,t){return`
|
|
`+Xs.repeat(" ",e.indent*t)}function I3(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function Kc(e){return e===d3||e===c3}function Fi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function M3(e){return Fi(e)&&!Kc(e)&&e!==65279&&e!==u3&&e!==Es}function J1(e,t){return Fi(e)&&e!==65279&&e!==$h&&e!==jh&&e!==Vh&&e!==zh&&e!==Uh&&e!==Bh&&(e!==Ph||t&&M3(t))}function T3(e){return Fi(e)&&e!==65279&&!Kc(e)&&e!==w3&&e!==b3&&e!==Bh&&e!==$h&&e!==jh&&e!==Vh&&e!==zh&&e!==Uh&&e!==Ph&&e!==m3&&e!==_3&&e!==f3&&e!==C3&&e!==v3&&e!==x3&&e!==g3&&e!==h3&&e!==p3&&e!==y3&&e!==k3}function Hh(e){var t=/^\n* /;return t.test(e)}var Zh=1,Gh=2,Yh=3,Wh=4,zo=5;function L3(e,t,n,r,i){var s,o,a,l=!1,u=!1,c=r!==-1,d=-1,f=T3(e.charCodeAt(0))&&!Kc(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(o=e.charCodeAt(s),!Fi(o))return zo;a=s>0?e.charCodeAt(s-1):null,f=f&&J1(o,a)}else{for(s=0;s<e.length;s++){if(o=e.charCodeAt(s),o===Es)l=!0,c&&(u=u||s-d-1>r&&e[d+1]!==" ",d=s);else if(!Fi(o))return zo;a=s>0?e.charCodeAt(s-1):null,f=f&&J1(o,a)}u=u||c&&s-d-1>r&&e[d+1]!==" "}return!l&&!u?f&&!i(e)?Zh:Gh:n>9&&Hh(e)?zo:u?Wh:Yh}function O3(e,t,n,r){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&E3.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),o=r||e.flowLevel>-1&&n>=e.flowLevel;function a(l){return I3(e,l)}switch(L3(t,o,e.indent,s,a)){case Zh:return t;case Gh:return"'"+t.replace(/'/g,"''")+"'";case Yh:return"|"+Q1(t,e.indent)+eu(K1(t,i));case Wh:return">"+Q1(t,e.indent)+eu(K1(R3(t,s),i));case zo:return'"'+N3(t)+'"';default:throw new Ks("impossible error: invalid scalar style")}}()}function Q1(e,t){var n=Hh(e)?String(t):"",r=e[e.length-1]===`
|
|
`,i=r&&(e[e.length-2]===`
|
|
`||e===`
|
|
`),s=i?"+":r?"":"-";return n+s+`
|
|
`}function eu(e){return e[e.length-1]===`
|
|
`?e.slice(0,-1):e}function R3(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var u=e.indexOf(`
|
|
`);return u=u!==-1?u:e.length,n.lastIndex=u,tu(e.slice(0,u),t)}(),i=e[0]===`
|
|
`||e[0]===" ",s,o;o=n.exec(e);){var a=o[1],l=o[2];s=l[0]===" ",r+=a+(!i&&!s&&l!==""?`
|
|
`:"")+tu(l,t),i=s}return r}function tu(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,s,o=0,a=0,l="";r=n.exec(e);)a=r.index,a-i>t&&(s=o>i?o:a,l+=`
|
|
`+e.slice(i,s),i=s+1),o=a;return l+=`
|
|
`,e.length-i>t&&o>i?l+=e.slice(i,o)+`
|
|
`+e.slice(o+1):l+=e.slice(i),l.slice(1)}function N3(e){for(var t="",n,r,i,s=0;s<e.length;s++){if(n=e.charCodeAt(s),n>=55296&&n<=56319&&(r=e.charCodeAt(s+1),r>=56320&&r<=57343)){t+=X1((n-55296)*1024+r-56320+65536),s++;continue}i=It[n],t+=!i&&Fi(n)?e[s]:i||X1(n)}return t}function D3(e,t,n){var r="",i=e.tag,s,o;for(s=0,o=n.length;s<o;s+=1)$r(e,t,n[s],!1,!1)&&(s!==0&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function F3(e,t,n,r){var i="",s=e.tag,o,a;for(o=0,a=n.length;o<a;o+=1)$r(e,t+1,n[o],!0,!0)&&((!r||o!==0)&&(i+=ac(e,t)),e.dump&&Es===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function P3(e,t,n){var r="",i=e.tag,s=Object.keys(n),o,a,l,u,c;for(o=0,a=s.length;o<a;o+=1)c="",o!==0&&(c+=", "),e.condenseFlow&&(c+='"'),l=s[o],u=n[l],$r(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),$r(e,t,u,!1,!1)&&(c+=e.dump,r+=c));e.tag=i,e.dump="{"+r+"}"}function $3(e,t,n,r){var i="",s=e.tag,o=Object.keys(n),a,l,u,c,d,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Ks("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)f="",(!r||a!==0)&&(f+=ac(e,t)),u=o[a],c=n[u],$r(e,t+1,u,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&Es===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,d&&(f+=ac(e,t)),$r(e,t+1,c,!0,d)&&(e.dump&&Es===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,i+=f));e.tag=s,e.dump=i||"{}"}function nu(e,t,n){var r,i,s,o,a,l;for(i=n?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=n?a.tag:"?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,Dh.call(a.represent)==="[object Function]")r=a.represent(t,l);else if(Fh.call(a.represent,l))r=a.represent[l](t,l);else throw new Ks("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function $r(e,t,n,r,i,s){e.tag=null,e.dump=n,nu(e,n,!1)||nu(e,n,!0);var o=Dh.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var a=o==="[object Object]"||o==="[object Array]",l,u;if(a&&(l=e.duplicates.indexOf(n),u=l!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&t>0)&&(i=!1),u&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(a&&u&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?($3(e,t,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(P3(e,t,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump));else if(o==="[object Array]"){var c=e.noArrayIndent&&t>0?t-1:t;r&&e.dump.length!==0?(F3(e,c,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(D3(e,c,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump))}else if(o==="[object String]")e.tag!=="?"&&O3(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new Ks("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function B3(e,t){var n=[],r=[],i,s;for(lc(e,n,r),i=0,s=r.length;i<s;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(s)}function lc(e,t,n){var r,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)lc(e[i],t,n);else for(r=Object.keys(e),i=0,s=r.length;i<s;i+=1)lc(e[r[i]],t,n)}function qh(e,t){t=t||{};var n=new S3(t);return n.noRefs||B3(e,n),$r(n,0,e,!0,!0)?n.dump+`
|
|
`:""}function j3(e,t){return qh(e,Xs.extend({schema:l3},t))}Xc.dump=qh;Xc.safeDump=j3;var $a=Ys,Xh=Xc;function Ba(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}ot.Type=wt;ot.Schema=zi;ot.FAILSAFE_SCHEMA=Gc;ot.JSON_SCHEMA=vh;ot.CORE_SCHEMA=xh;ot.DEFAULT_SAFE_SCHEMA=qs;ot.DEFAULT_FULL_SCHEMA=Fa;ot.load=$a.load;ot.loadAll=$a.loadAll;ot.safeLoad=$a.safeLoad;ot.safeLoadAll=$a.safeLoadAll;ot.dump=Xh.dump;ot.safeDump=Xh.safeDump;ot.YAMLException=Ws;ot.MINIMAL_SCHEMA=Gc;ot.SAFE_SCHEMA=qs;ot.DEFAULT_SCHEMA=Fa;ot.scan=Ba("scan");ot.parse=Ba("parse");ot.compose=Ba("compose");ot.addConstructor=Ba("addConstructor");var V3=ot,cc=V3,z3=U3;function Ci(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function U3(e){if(e=e||{},e.circles)return H3(e);return e.proto?r:n;function t(i,s){for(var o=Object.keys(i),a=new Array(o.length),l=0;l<o.length;l++){var u=o[l],c=i[u];typeof c!="object"||c===null?a[u]=c:c instanceof Date?a[u]=new Date(c):ArrayBuffer.isView(c)?a[u]=Ci(c):a[u]=s(c)}return a}function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,n);if(i instanceof Map)return new Map(t(Array.from(i),n));if(i instanceof Set)return new Set(t(Array.from(i),n));var s={};for(var o in i)if(Object.hasOwnProperty.call(i,o)!==!1){var a=i[o];typeof a!="object"||a===null?s[o]=a:a instanceof Date?s[o]=new Date(a):a instanceof Map?s[o]=new Map(t(Array.from(a),n)):a instanceof Set?s[o]=new Set(t(Array.from(a),n)):ArrayBuffer.isView(a)?s[o]=Ci(a):s[o]=n(a)}return s}function r(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,r);if(i instanceof Map)return new Map(t(Array.from(i),r));if(i instanceof Set)return new Set(t(Array.from(i),r));var s={};for(var o in i){var a=i[o];typeof a!="object"||a===null?s[o]=a:a instanceof Date?s[o]=new Date(a):a instanceof Map?s[o]=new Map(t(Array.from(a),r)):a instanceof Set?s[o]=new Set(t(Array.from(a),r)):ArrayBuffer.isView(a)?s[o]=Ci(a):s[o]=r(a)}return s}}function H3(e){var t=[],n=[];return e.proto?s:i;function r(o,a){for(var l=Object.keys(o),u=new Array(l.length),c=0;c<l.length;c++){var d=l[c],f=o[d];if(typeof f!="object"||f===null)u[d]=f;else if(f instanceof Date)u[d]=new Date(f);else if(ArrayBuffer.isView(f))u[d]=Ci(f);else{var h=t.indexOf(f);h!==-1?u[d]=n[h]:u[d]=a(f)}}return u}function i(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return r(o,i);if(o instanceof Map)return new Map(r(Array.from(o),i));if(o instanceof Set)return new Set(r(Array.from(o),i));var a={};t.push(o),n.push(a);for(var l in o)if(Object.hasOwnProperty.call(o,l)!==!1){var u=o[l];if(typeof u!="object"||u===null)a[l]=u;else if(u instanceof Date)a[l]=new Date(u);else if(u instanceof Map)a[l]=new Map(r(Array.from(u),i));else if(u instanceof Set)a[l]=new Set(r(Array.from(u),i));else if(ArrayBuffer.isView(u))a[l]=Ci(u);else{var c=t.indexOf(u);c!==-1?a[l]=n[c]:a[l]=i(u)}}return t.pop(),n.pop(),a}function s(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return r(o,s);if(o instanceof Map)return new Map(r(Array.from(o),s));if(o instanceof Set)return new Set(r(Array.from(o),s));var a={};t.push(o),n.push(a);for(var l in o){var u=o[l];if(typeof u!="object"||u===null)a[l]=u;else if(u instanceof Date)a[l]=new Date(u);else if(u instanceof Map)a[l]=new Map(r(Array.from(u),s));else if(u instanceof Set)a[l]=new Set(r(Array.from(u),s));else if(ArrayBuffer.isView(u))a[l]=Ci(u);else{var c=t.indexOf(u);c!==-1?a[l]=n[c]:a[l]=s(u)}}return t.pop(),n.pop(),a}}var Oe=JSON.parse('{"languages":[{"code":"de","name":"Deutsch"},{"code":"en","name":"English"},{"code":"es","name":"Espa\xF1ol"},{"code":"fr","name":"Fran\xE7ais"},{"code":"it","name":"Italiano"},{"code":"ja","name":"\u65E5\u672C\u8A9E"},{"code":"ko","name":"\uD55C\uAD6D\uC5B4","schemas":false},{"code":"pl","name":"Polski"},{"code":"pt","name":"Portugu\xEAs"},{"code":"ru","name":"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},{"code":"sk","name":"Sloven\u010Dina","schemas":false},{"code":"zh-cn","name":"\u7B80\u4F53\u4E2D\u6587"},{"code":"zh-tw","name":"\u6B63\u9AD4\u4E2D\u6587"}],"versions":[{"id":"1.15","ref":"1.15.2","pack_format":5},{"id":"1.16","ref":"1.16.5","pack_format":6},{"id":"1.17","ref":"1.17.1","pack_format":7},{"id":"1.18","ref":"1.18.1","pack_format":8},{"id":"1.18.2","ref":"1.18.2","pack_format":9},{"id":"1.19","dynamic":true,"pack_format":10}],"generators":[{"id":"loot_table","url":"loot-table","path":"loot_tables","schema":"loot_table"},{"id":"predicate","url":"predicate","path":"predicates","schema":"predicate"},{"id":"item_modifier","url":"item-modifier","path":"item_modifiers","schema":"item_modifier","minVersion":"1.17"},{"id":"advancement","url":"advancement","path":"advancements","schema":"advancement"},{"id":"recipe","url":"recipe","path":"recipes","schema":"recipe"},{"id":"text_component","url":"text-component","schema":"text_component","noPath":true},{"id":"chat_type","url":"chat-type","schema":"chat_type","minVersion":"1.19"},{"id":"pack_mcmeta","url":"pack-mcmeta","schema":"pack_mcmeta"},{"id":"dimension","url":"dimension","schema":"dimension","tags":["worldgen"],"minVersion":"1.16"},{"id":"dimension_type","url":"dimension-type","schema":"dimension_type","tags":["worldgen"],"minVersion":"1.16"},{"id":"worldgen/biome","url":"worldgen/biome","tags":["worldgen"],"schema":"biome","minVersion":"1.16"},{"id":"worldgen/configured_carver","url":"worldgen/carver","tags":["worldgen"],"schema":"configured_carver","minVersion":"1.16"},{"id":"worldgen/configured_feature","url":"worldgen/feature","tags":["worldgen"],"schema":"configured_feature","minVersion":"1.16"},{"id":"worldgen/placed_feature","url":"worldgen/placed-feature","tags":["worldgen"],"schema":"placed_feature","minVersion":"1.18"},{"id":"worldgen/density_function","url":"worldgen/density-function","tags":["worldgen"],"schema":"density_function","minVersion":"1.18.2"},{"id":"worldgen/noise","url":"worldgen/noise","tags":["worldgen"],"schema":"noise_parameters","minVersion":"1.18"},{"id":"worldgen/noise_settings","url":"worldgen/noise-settings","tags":["worldgen"],"schema":"noise_settings","minVersion":"1.16"},{"id":"worldgen/configured_structure_feature","url":"worldgen/structure-feature","tags":["worldgen"],"schema":"configured_structure_feature","minVersion":"1.16","maxVersion":"1.18.2"},{"id":"worldgen/structure","url":"worldgen/structure","tags":["worldgen"],"schema":"structure","minVersion":"1.19"},{"id":"worldgen/structure_set","url":"worldgen/structure-set","tags":["worldgen"],"schema":"structure_set","minVersion":"1.18.2"},{"id":"worldgen/configured_surface_builder","url":"worldgen/surface-builder","tags":["worldgen"],"schema":"configured_surface_builder","minVersion":"1.16","maxVersion":"1.17"},{"id":"worldgen/processor_list","url":"worldgen/processor-list","tags":["worldgen"],"schema":"processor_list","minVersion":"1.16"},{"id":"worldgen/template_pool","url":"worldgen/template-pool","tags":["worldgen"],"schema":"template_pool","minVersion":"1.16"},{"id":"worldgen/world_preset","url":"worldgen/world-preset","tags":["worldgen"],"schema":"world_preset","minVersion":"1.19"},{"id":"worldgen/flat_level_generator_preset","url":"worldgen/flat-world-preset","tags":["worldgen"],"schema":"flat_level_generator_preset","minVersion":"1.19"},{"id":"world","url":"world","schema":"world_settings","noPath":true,"tags":["worldgen"],"minVersion":"1.16"},{"id":"tag/block","url":"tags/block","tags":["tags"],"path":"tags/blocks","schema":"block_tag"},{"id":"tag/entity_type","url":"tags/entity-type","tags":["tags"],"path":"tags/entity_types","schema":"entity_type_tag"},{"id":"tag/fluid","url":"tags/fluid","tags":["tags"],"path":"tags/fluids","schema":"fluid_tag"},{"id":"tag/game_event","url":"tags/game-event","tags":["tags"],"path":"tags/game_events","schema":"game_event_tag","minVersion":"1.17"},{"id":"tag/item","url":"tags/item","tags":["tags"],"path":"tags/items","schema":"item_tag"},{"id":"tag/worldgen/biome","url":"tags/biome","tags":["tags","worldgen"],"path":"tags/worldgen/biome","schema":"biome_tag","minVersion":"1.18.2"},{"id":"block_definition","url":"assets/blockstate","path":"blockstates","tags":["assets"],"schema":"block_definition"},{"id":"model","url":"assets/model","path":"models","tags":["assets"],"schema":"model"},{"id":"block_growth","url":"partners/immersive-weathering/block-growth","path":"block_growths","tags":["partners"],"partner":"immersive_weathering","schema":"immersive_weathering:block_growth","minVersion":"1.18.2"}]}');function Jr(e){return typeof e=="object"&&e!==null}function Uo(e){return e.toString(16).padStart(2,"0")}function Nr(e=12){var t=new Uint8Array(e/2);return window.crypto.getRandomValues(t),Array.from(t,Uo).join("")}function Xn(){return BigInt(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))}function Z3(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function Kh(e){const t=Math.floor(Math.random()*4294967296)-2147483648,n=e.get(new P.Path(["dimensions"]));e.set(new P.Path(["seed"]),t,!0),Jr(n)&&Object.keys(n).forEach(r=>{e.set(new P.Path(["dimensions",r,"generator","seed"]),t,!0),e.set(new P.Path(["dimensions",r,"generator","biome_source","seed"]),t,!0)}),e.set(new P.Path(["placement","salt"]),Math.abs(t),!0),e.set(new P.Path(["generator","seed"]),t,!0),e.set(new P.Path(["generator","biome_source","seed"]),t)}function Jh(e){let t=0;for(let n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t}function _r(e){return`/${e}/`.replaceAll("//","/")}function G3(e){const t=e.indexOf("?");return t>=0&&(e=e.slice(0,t)),_r(e)}function Qh(e){const t=G3(e).replace(/^\//,"").replace(/\/$/,"");return Oe.generators.find(n=>n.url===t)}function ep({path:e,search:t,hash:n,replace:r}){const i=(e!==void 0?_r(e):location.pathname)+(t!==void 0?t.startsWith("?")||t.length===0?t:"?"+t:location.search)+(n!==void 0?n.startsWith("#")?n:"#"+n:location.hash);qr(i,r)}function Y3(e){const t=cc.load(e.substring(3,e.indexOf("---",3)));return Jr(t)?t:{}}function W3(e,t){var r;let n=0;for(;;){const i=e.indexOf("{#",n);if(i<0)break;const s=q3(e,i+2),o=e.indexOf("#[",i+1);let a="";if(o>=0&&o<s){const l=e.indexOf("]",o+2);e.substring(o+2,l)===t&&(a=e.substring(l+1,s).trim())}else{const l=e.substring(i+2,s),u=Oe.versions.find(c=>c.id===t);a=(r={version:u==null?void 0:u.id,pack_format:u==null?void 0:u.pack_format.toString()}[l])!=null?r:""}e=e.substring(0,i)+a+e.substring(s+2),n=i}return e}function q3(e,t){let n=0,r=0;for(;r++<1e3;){const i=e.indexOf("#}",t),s=e.indexOf("{#",t);if(i<0)return console.warn("Missing closing bracket"),e.length;if(s<0){if(n===0)return i;n-=1,t=i+2}else if(s<i)n+=1,t=s+2;else{if(n===0)return i;n-=1,t=i+2}}return console.warn("Exceeded max iterations while finding closing bracket"),e.length}function Jc(e){const t=Math.abs(Jh(e));return[t%256,(t>>8)%256,(t>>16)%256]}function X3(e){if(!Array.isArray(e)||e.length!==3)return"#000000";const[t,n,r]=e;return"#"+Uo(t)+Uo(n)+Uo(r)}function K3(e){if(typeof e!="string")return[0,0,0];const t=parseInt(e.startsWith("#")?e.slice(1):e,16),n=t>>16&255,r=t>>8&255,i=t&255;return[n,r,i]}function es(e){return e*e}function Ht(e,t,n){return Math.max(e,Math.min(t,n))}function wl(e,t,n){return n<0?e:n>1?t:Ho(n,e,t)}function Ho(e,t,n){return t+e*(n-t)}function J3(e,t,n,r,i,s){return Ho(t,Ho(e,n,r),Ho(e,i,s))}function Wt(e){return e instanceof Error?e.message:`${e}`}const ja=z3();function Br(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,r;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=0;r<n;r++)if(!Br(e[r],t[r]))return!1;return!0}if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const i=Object.keys(e);if(n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!Br(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}class Q3{constructor(){this.forward=new Map,this.backward=new Map}set(t,n){this.forward.set(t,n),this.backward.set(n,t)}getA(t){return this.backward.get(t)}getB(t){return this.forward.get(t)}getOrPut(t,n){const r=this.forward.get(t);return r===void 0?(this.set(t,n),n):r}}async function ew(e){const t=await e.arrayBuffer(),r=await new C5(new nh(new Blob([t]))).getEntries();return await Promise.all(r.filter(i=>!i.directory).map(async i=>{var o;const s=new t5("utf-8");return[i.filename,await((o=i.getData)==null?void 0:o.call(i,s))]}))}async function tw(e){const t=new j5(new n5("application/zip"));return await Promise.all(e.map(async([n,r])=>{await t.add(n,new e5(r))})),await t.close()}function Zo({icon:e,label:t,large:n,larger:r,doSelect:i,value:s,placeholder:o,dataList:a,onChange:l}){const u=l===void 0?()=>{}:f=>{const h=f.target.value;l==null||l(h)},c=Le(null);me(()=>{i&&c.current&&c.current.select()},[i]);const d=a&&Nr();return F("div",{class:`btn btn-input ${n?"large-input":""} ${r?"larger-input":""}`,onClick:f=>f.stopPropagation(),children:[e&&he[e],t&&p("span",{children:t}),p("input",{ref:c,type:"text",value:s,onChange:u,placeholder:o,list:d}),a&&p("datalist",{id:d,children:a.map(f=>p("option",{value:f}))})]})}function ss({link:e,icon:t,label:n,tooltip:r,tooltipLoc:i,swapped:s}){return p("a",Me(fe({},e?{href:e}:{disabled:!0}),{class:`btn btn-link${r?` tooltipped tip-${i!=null?i:"sw"}`:""}`,"aria-label":r,children:s?F(pe,{children:[n&&p("span",{children:n}),t&&he[t]]}):F(pe,{children:[t&&he[t],n&&p("span",{children:n})]})}))}function uc({cooldown:e,invert:t,initial:n}={}){const[r,i]=X(n),s=Le(void 0);return[r,()=>{i(!t),s.current!==void 0&&clearTimeout(s.current),s.current=setTimeout(()=>{i(!!t)},e!=null?e:2e3)}]}function br(e,t=[],n={loading:!0}){const[r,i]=nw(e,t,n);return me(()=>{i()},[i]),Me(fe({},r),{refresh:i})}const Go=Symbol("async-cancel");function nw(e,t=[],n={loading:!1}){const[r,i]=X(n),s=Le(!1),o=Le(0);me(()=>(s.current=!0,()=>s.current=!1),[]);const a=Fe((...l)=>{const u=++o.current;return r.loading||i(c=>Me(fe({},c),{loading:!0})),e(...l).then(c=>(s.current&&u===o.current&&c!==Go&&i({value:c,loading:!1}),c),c=>{s.current&&u===o.current&&i({error:c,loading:!1})})},t);return[r,a]}function Js({size:e,draw:t,onDrag:n,onHover:r,onLeave:i},s){const o=Le(null),a=Le(),l=Le(),u=Le([0,0]),c=Le(!1);me(()=>{if(!o.current)return;const h=g=>{a.current=[g.offsetX,g.offsetY]},w=g=>{if(a.current===void 0){if(!o.current)return;const x=g.offsetX/o.current.clientWidth,y=g.offsetY/o.current.clientHeight;r==null||r(x,y);return}if(!n)return;const v=g.offsetX-a.current[0],b=g.offsetY-a.current[1];v===0&&b===0||(u.current=[u.current[0]+v,u.current[1]+b],c.current||(l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(async()=>{if(!o.current)return;c.current=!0;const x=u.current[0]/o.current.clientWidth,y=u.current[1]/o.current.clientHeight;u.current=[0,0],await(n==null?void 0:n(x,y)),c.current=!1}))),a.current=[g.offsetX,g.offsetY]},_=()=>{a.current=void 0},m=()=>{i==null||i()};return o.current.addEventListener("mousedown",h),o.current.addEventListener("mousemove",w),o.current.addEventListener("mouseleave",m),document.body.addEventListener("mouseup",_),()=>{var g,v,b;(g=o.current)==null||g.removeEventListener("mousedown",h),(v=o.current)==null||v.removeEventListener("mousemove",w),(b=o.current)==null||b.removeEventListener("mouseleave",m),document.body.removeEventListener("mouseup",_)}},[...s!=null?s:[],o.current]);const d=Le(),f=Le(0);return d.current=async()=>{if(!o.current)return;const h=o.current.getContext("2d"),w=e();o.current.width=w[0],o.current.height=w[1];const _=h.getImageData(0,0,w[0],w[1]),m=f.current+=1;try{await t(_)}catch(g){throw g}m===f.current&&h.putImageData(_,0,0)},{canvas:o,redraw:d.current}}const dc="misode-lose-focus";function Va(){const[e,t]=X(!1),n=()=>{t(!1)};return me(()=>(e&&(document.body.addEventListener("click",n),document.body.addEventListener("contextmenu",n),document.body.addEventListener(dc,n)),()=>{document.body.removeEventListener("click",n),document.body.removeEventListener("contextmenu",n),document.body.removeEventListener(dc,n)}),[e]),[e,(r=!0)=>t(r)]}function rw(){const[e,t]=X(window.location.hash),n=Fe(()=>{t(window.location.hash)},[]);me(()=>(window.addEventListener("hashchange",n),window.addEventListener("replacestate",n),()=>{window.removeEventListener("hashchange",n),window.removeEventListener("replacestate",n)}),[]);const r=Fe(i=>{i!==e&&ep({hash:i})},[e]);return[e,r]}function tp(e,t,n,r){const i=Fe(()=>{const l=localStorage.getItem(e);return l===null?t:n===void 0?l:n(l)},[]),[s,o]=X(i()),a=Fe(l=>{l==null?(localStorage.removeItem(e),o(t)):r!==void 0?(localStorage.setItem(e,r(l)),o(l)):(localStorage.setItem(e,l),o(l))},[]);return[s,a]}function fa(e){const[t,n]=X(matchMedia(e).matches),r=i=>{n(i.matches)};return me(()=>{const i=matchMedia(e);return i.addEventListener("change",r),()=>{i.removeEventListener("change",r)}},[e]),t}function za(e,t,n){const r={invalidated(){e&&t(e)}};me(()=>(e==null||e.addListener(r),()=>{e==null||e.removeListener(r)}),[e,...n!=null?n:[]])}const ru=(e,t)=>{var n;return(n=new URLSearchParams(e).get(t))!=null?n:void 0};function jr(e){const t=window.location,[n,r]=X(ru(t.search,e));me(()=>{const s=()=>{r(ru(t.search,e))};return window.addEventListener("popstate",s),window.addEventListener("pushstate",s),window.addEventListener("replacestate",s),()=>{window.removeEventListener("popstate",s),window.removeEventListener("pushstate",s),window.removeEventListener("replacestate",s)}},[]);const i=Fe((s,o)=>{if(s!==n){r(s);const a=new URLSearchParams(t.search);s===void 0||s.length===0?a.delete(e):a.set(e,s),ep({search:a.toString().replaceAll("%7C","|"),replace:o})}},[n]);return[n,i]}const iw="tags",vl="|";function np(){const[e,t]=jr(iw),n=ye(()=>{var i;return(i=e==null?void 0:e.split(vl))!=null?i:[]},[e]);return[n,(i,s)=>{s===!1||n.includes(i)&&s!==!0?t(n.filter(o=>o!==i).join(vl),!0):t([...n,i].sort().join(vl),!0)}]}function Bt(e){const{icon:t,label:n,relative:r,tooltip:i,tooltipLoc:s,children:o}=e,[a,l]=Va();return F("div",Me(fe({},e),{class:`btn-menu${r===!1?" no-relative":""} ${e.class}`,children:[p(oe,{icon:t,label:n,tooltip:i,tooltipLoc:s,onClick:()=>l()}),a&&p("div",{class:"btn-group",children:o})]}))}function Qc({title:e,overlay:t,link:n,children:r}){const i=F(pe,{children:[t&&p("span",{class:"card-overlay",children:t}),F("div",{class:"card-content",children:[e&&p("h3",{class:"card-title",children:e}),r]})]});return n===void 0?p("div",{class:"card",children:i}):p("a",{class:"card",href:n,children:i})}const sw="modulepreload",iu={},ow="/",be=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${ow}${r}`,r in iu)return;iu[r]=!0;const i=r.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${s}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":sw,i||(o.as="script",o.crossOrigin=""),o.href=r,document.head.appendChild(o),i)return new Promise((a,l)=>{o.addEventListener("load",a),o.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};function Ei({error:e,onDismiss:t}){const[n,r]=X(!1),[i,s]=X(void 0);me(()=>{if(e instanceof Error){const a=e.stack.split(`
|
|
`).map(l=>l.replace(/^(\s+)at (?:async )?(https?:.*)/,"$1at ($2)"));s(a.join(`
|
|
`)),be(()=>import("./sourcemapped-stacktrace.e97596ad.js").then(function(l){return l.s}),[]).then(({mapStackTrace:l})=>{l(a.join(`
|
|
`),u=>{const c=u.map(d=>d.replace(/..\/..\/src\//,"src/")).join(`
|
|
`);s(c)})})}},[e]);const o=ye(()=>{let a="https://github.com/misode/misode.github.io/issues/new";return e instanceof Error?(a+=`?title=${encodeURIComponent(`${e.name}: ${e.message}`)}`,i&&(a+=`&body=${encodeURIComponent(`\`\`\`
|
|
${e.name}: ${e.message}
|
|
${i}
|
|
\`\`\`
|
|
`)}`)):a+=`?title=${encodeURIComponent(e.toString())}`,a},[e,i]);return F("div",{class:"error",children:[t&&p("div",{class:"error-dismiss",onClick:t,children:he.x}),F("h3",{children:[e instanceof Error?e.message:e,i&&p("span",{onClick:()=>r(!n),children:he.info})]}),i&&n&&p("pre",{children:i}),F("p",{children:["If you think this is a bug, you can report it ",p("a",{href:o,target:"_blank",children:"on GitHub"})]})]})}const ts="https://www.minecraft.net/article/",aw=new Map(Object.entries({"1.16-pre2":"minecraft-1-16-pre-release-1","1.16-pre4":"minecraft-1-16-pre-release-3","1.16-pre5":"minecraft-1-16-pre-release-3","1.16-pre7":"minecraft-1-16-pre-release-6","1.16-pre8":"minecraft-1-16-pre-release-6","1.16-rc1":"minecraft-1-16-release-candidate",1.16:"nether-update-java","1.16.2-pre3":"minecraft-1-16-2-pre-release-2","1.16.2-rc1":"minecraft-1-16-2-pre-release-2","1.16.2-rc2":"minecraft-1-16-2-pre-release-2","1.17-pre3":"minecraft-1-17-pre-release-2","1.17-pre4":"minecraft-1-17-pre-release-2","1.17-pre5":"minecraft-1-17-pre-release-2","1.17.1-pre3":"minecraft-1-17-1-pre-release-2",1.17:"caves---cliffs--part-i-out-today-java","1.18-pre3":"minecraft-1-18-pre-release-2","1.18-pre4":"minecraft-1-18-pre-release-2","1.18-pre5":"minecraft-1-18-pre-release-2","1.18-pre7":"minecraft-1-18-pre-release-6","1.18-pre8":"minecraft-1-18-pre-release-6",1.18:"caves---cliffs--part-ii-out-today-java","1.18.2-pre3":"minecraft-1-18-2-pre-release-2","1.18.2-pre5":"minecraft-1-18-2-pre-release-4",1.19:"the-wild-update-out-today-java"}));function lw(e){const t=aw.get(e);if(t)return ts+t;let n;if((n=e.match(/^(\d\dw\d\d)[a-z]$/))&&n[1])return ts+"minecraft-snapshot-"+n[1]+"a";if((n=e.match(/^(\d+\.\d+(?:\.\d+)?)-pre([0-9]+)$/))&&n[1]&&n[2])return ts+"minecraft-"+n[1].replaceAll(".","-")+"-pre-release-"+n[2];if((n=e.match(/^(\d+\.\d+(?:\.\d+)?)-rc[0-9]+$/))&&n[1])return ts+"minecraft-"+n[1].replaceAll(".","-")+"-release-candidate-1";if(e.match(/^\d+\.\d+\.\d+$/))return ts+"minecraft-java-edition-"+e.replaceAll(".","-")}const Ai="misode-v2",su="cached_latest_version",ou="misode_cache_patch",xl="1.19.1-pre2",vi="https://raw.githubusercontent.com/misode/mcmeta",cw="https://raw.githubusercontent.com/misode/technical-changes";function Kn(e,t){return`${vi}/${e.dynamic?t:`${e.ref}-${t}`}`}async function Ua(e){await gw(),e.dynamic&&(localStorage.getItem(su)!==xl&&(await ip(t=>t.startsWith(`${vi}/summary/`)||t.startsWith(`${vi}/data/`)||t.startsWith(`${vi}/assets/`)||t.startsWith(`${vi}/registries/`)),localStorage.setItem(su,xl)),e.ref=xl)}async function uw(e,t,n){const r=Oe.versions.find(i=>i.id===e);if(!r){console.error(`[fetchData] Unknown version ${r} in ${JSON.stringify(Oe.versions)}`);return}await Ua(r),await Promise.all([dw(r,t),fw(r,n)])}async function dw(e,t){console.debug(`[fetchRegistries] ${e.id}`);try{const n=await Vr(`${Kn(e,"summary")}/registries/data.min.json`);for(const r in n)t.register(r,n[r].map(i=>"minecraft:"+i))}catch(n){console.warn("Error occurred while fetching registries:",Wt(n))}}async function fw(e,t){console.debug(`[fetchBlockStateMap] ${e.id}`);try{const n=await Vr(`${Kn(e,"summary")}/blocks/data.min.json`);for(const r in n)t["minecraft:"+r]={properties:n[r][0],default:n[r][1]}}catch(n){console.warn("Error occurred while fetching block state map:",Wt(n))}}async function rp(e,t,n){console.debug(`[fetchPreset] ${e} ${t} ${n}`);const r=Oe.versions.find(i=>i.id===e);try{let i;if(n.startsWith("immersive_weathering:"))i=`https://raw.githubusercontent.com/AstralOrdana/Immersive-Weathering/main/src/main/resources/data/immersive_weathering/block_growths/${n.slice(21)}.json`;else{const o=["blockstates","models"].includes(t)?"assets":"data";i=`${Kn(r,o)}/${o}/minecraft/${t}/${n}.json`}return await(await fetch(i)).json()}catch(i){throw new Error(`Error occurred while fetching ${t} preset ${n}: ${Wt(i)}`)}}async function au(e,t){console.debug(`[fetchAllPresets] ${e} ${t}`);const n=Oe.versions.find(r=>r.id===e);await Ua(n);try{const r=await Vr(`${Kn(n,"registries")}/${t}/data.min.json`);return new Map(await Promise.all(r.map(async i=>[i,await Vr(`${Kn(n,"data")}/data/minecraft/${t}/${i}.json`)])))}catch(r){throw new Error(`Error occurred while fetching all ${t} presets: ${Wt(r)}`)}}async function hw(e){const t=Oe.versions.find(n=>n.id===e);await Ua(t);try{const n=`${Kn(t,"summary")}/sounds/data.min.json`;return await Vr(n)}catch(n){throw new Error(`Error occurred while fetching sounds for ${t}: ${Wt(n)}`)}}function pw(e,t){const n=Oe.versions.find(r=>r.id===e);return`${Kn(n,"assets")}/assets/minecraft/sounds/${t}.ogg`}async function e0(){const e=Oe.versions[Oe.versions.length-1];await Ua(e);try{return Vr(`${Kn(e,"summary")}/versions/data.min.json`,{refresh:!0})}catch(t){throw new Error(`Error occured while fetching versions: ${Wt(t)}`)}}function mw(e,t){const n=Oe.versions.find(r=>r.id===e);return`${Kn(n,"assets")}/assets/minecraft/textures/${t}.png`}async function t0(){try{const[e,t]=await Promise.all([Vr(`${cw}/generated/changes.json`,{refresh:!0}),e0()]),n=new Map(t.map((r,i)=>[r.id,t.length-i]));return e.map(r=>{var i;return Me(fe({},r),{order:(i=n.get(r.version))!=null?i:0})})}catch(e){throw new Error(`Error occured while fetching technical changes: ${Wt(e)}`)}}const lu=new Set;async function Vr(e,{decode:t=r=>r.json(),refresh:n}={}){try{const r=await caches.open(Ai);console.debug(`[cachedFetch] Opened cache ${Ai} ${e}`);const i=await r.match(e);if(n&&(lu.has(e)?n=!1:lu.add(e)),n)try{return await cu(r,e,t)}catch{if(i&&i.ok)return console.debug(`[cachedFetch] Cannot refresh, using cache ${e}`),await t(i);throw new Error("Failed to fetch")}else return i&&i.ok?(console.debug(`[cachedFetch] Retrieving cached data ${e}`),await t(i)):await cu(r,e,t)}catch(r){console.warn(`[cachedFetch] Failed to open cache ${Ai}: ${r.message}`),console.debug(`[cachedFetch] Fetching data ${e}`);const i=await fetch(e);return await t(i)}}async function cu(e,t,n){console.debug(`[cachedFetch] Fetching data ${t}`);const r=await fetch(t),i=r.clone(),s=await n(r);return await e.put(t,i),s}async function ip(e){try{const t=await caches.open(Ai);console.debug(`[deleteMatching] Opened cache ${Ai}`);const n=[];for(const r of await t.keys())e(r.url)&&n.push(t.delete(r));console.debug(`[deleteMatching] Removing ${n.length} cache objects...`),await Promise.all(n)}catch(t){console.warn(`[deleteMatching] Failed to open cache ${Ai}: ${Wt(t)}`)}}const uu=[async()=>{["1.15","1.16","1.17"].forEach(e=>localStorage.removeItem(`cache_${e}`)),["mcdata_master","vanilla_datapack_summary"].forEach(e=>localStorage.removeItem(`cached_${e}`)),caches.delete("misode-v1")},async()=>{await ip(e=>e.startsWith(`${vi}/1.18.2-summary/`))}];async function gw(){var t;const e=parseInt((t=localStorage.getItem(ou))!=null?t:"0");for(let n=e+1;n<=uu.length;n+=1){const r=uu[n-1];r&&await r(),localStorage.setItem(ou,n.toFixed())}}const it="immersive_weathering";function _w(e,t){const n=P.Reference.bind(void 0,e),r=P.StringNode.bind(void 0,t),i=s=>P.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:s,allowTag:!0}}),change:o=>{if(Array.isArray(o)&&typeof o[0]=="string"&&!o[0].startsWith("#"))return o[0]}},{type:"list",node:P.ListNode(r({validator:"resource",params:{pool:s}})),change:o=>typeof o=="string"&&!o.startsWith("#")?[o]:[]}],{choiceContext:"tag"});e.register(`${it}:block_growth`,P.ObjectNode({area_condition:n(`${it}:area_condition`),position_predicates:P.Opt(P.ListNode(n(`${it}:position_test`))),growth_chance:P.NumberNode({min:0,max:1}),growth_for_face:P.ListNode(P.ObjectNode({direction:P.Opt(r({enum:"direction"})),weight:P.Opt(P.NumberNode({integer:!0})),growth:P.ListNode(P.ObjectNode({data:n(`${it}:block_pair`),weight:P.NumberNode({integer:!0})}))},{category:"pool"})),owners:P.ListNode(r({validator:"resource",params:{pool:"block"}})),replacing_target:n(`${it}:rule_test`),target_self:P.Opt(P.BooleanNode()),destroy_target:P.Opt(P.BooleanNode())},{context:`${it}.block_growth`})),e.register(`${it}:area_condition`,P.ObjectNode({type:r({enum:["generate_if_not_too_many","neighbor_based_generation"]}),[P.Switch]:[{push:"type"}],[P.Case]:{generate_if_not_too_many:{radiusX:P.NumberNode({integer:!0}),radiusY:P.NumberNode({integer:!0}),radiusZ:P.NumberNode({integer:!0}),requiredAmount:P.NumberNode({integer:!0}),yOffset:P.Opt(P.NumberNode({integer:!0})),must_have:P.Opt(n(`${it}:rule_test`)),must_not_have:P.Opt(n(`${it}:rule_test`)),includes:P.Opt(i("block"))},neighbor_based_generation:{must_have:n(`${it}:rule_test`),must_not_have:P.Opt(n(`${it}:rule_test`)),required_amount:P.Opt(P.NumberNode({integer:!0})),directions:P.ListNode(r({enum:"direction"}))}}},{context:`${it}.area_condition`})),e.register(`${it}:block_pair`,P.ObjectNode({block:n(`${it}:block_state`),above_block:P.Opt(n(`${it}:block_state`))},{context:`${it}.block_pair`})),e.register(`${it}:block_state`,P.ObjectNode({Name:r({validator:"resource",params:{pool:"block"}}),Properties:P.Opt(P.MapNode(r(),r()))},{context:"block_state"})),e.register(`${it}:position_test`,P.ObjectNode({predicate_type:r({enum:["biome_match","day_test","nand","precipitation_test","temperature_range"]}),[P.Switch]:[{push:"predicate_type"}],[P.Case]:{biome_match:{biomes:i("$worldgen/biome")},day_test:{day:P.BooleanNode()},nand:{predicates:P.ListNode(n(`${it}:position_test`))},precipitation_test:{precipitation:r({enum:["none","rain","snow"]})},temperature_range:{min:P.NumberNode(),max:P.NumberNode(),use_local_pos:P.Opt(P.BooleanNode())}}},{context:`${it}.position_test`,category:"predicate"})),t.register(`${it}:rule_test`,[...t.get("rule_test"),"immersive_weathering:block_set_match","immersive_weathering:fluid_match","immersive_weathering:tree_log"]),e.register(`${it}:rule_test`,P.ObjectNode({predicate_type:r({validator:"resource",params:{pool:`${it}:rule_test`}}),[P.Switch]:[{push:"predicate_type"}],[P.Case]:{"minecraft:block_match":{block:r({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:n("block_state")},"minecraft:random_block_match":{block:r({validator:"resource",params:{pool:"block"}}),probability:P.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:n("block_state"),probability:P.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:r({validator:"resource",params:{pool:"$tag/block"}})},"immersive_weathering:block_set_match":{blocks:i("block"),probability:P.Opt(P.NumberNode({min:0,max:1}))},"immersive_weathering:fluid_match":{fluid:r({validator:"resource",params:{pool:"fluid"}})}}},{context:"rule_test",disableSwitchContext:!0})),t.register("block_growth",["immersive_weathering:brain_coral","immersive_weathering:bubble_coral","immersive_weathering:cracked_mud_rivers","immersive_weathering:crimson_nylium","immersive_weathering:cryosol","immersive_weathering:farmland_rare_weeds","immersive_weathering:farmland_weeds","immersive_weathering:fire_coral","immersive_weathering:fire_soot","immersive_weathering:fluvisol","immersive_weathering:grass_base","immersive_weathering:grass_block_badlands","immersive_weathering:grass_block_bamboo_jungle","immersive_weathering:grass_block_birch_forest","immersive_weathering:grass_block_dark_forest","immersive_weathering:grass_block_flower_forest","immersive_weathering:grass_block_forest","immersive_weathering:grass_block_jungle","immersive_weathering:grass_block_lush_caves","immersive_weathering:grass_block_old_growth_spruce","immersive_weathering:grass_block_plains","immersive_weathering:grass_block_sunflower_plains","immersive_weathering:grass_block_swamp","immersive_weathering:grass_block_taiga","immersive_weathering:grass_block_wooded_badlands","immersive_weathering:hanging_roots","immersive_weathering:horn_coral","immersive_weathering:humus","immersive_weathering:icicle_growth","immersive_weathering:large_fern","immersive_weathering:magma","immersive_weathering:mycelium","immersive_weathering:podzol","immersive_weathering:red_sand_weathering","immersive_weathering:rooted_dirt","immersive_weathering:rooted_grass","immersive_weathering:sand_weathering","immersive_weathering:sapling","immersive_weathering:sapling_nether","immersive_weathering:silt","immersive_weathering:tall_grass","immersive_weathering:tall_seagrass","immersive_weathering:tube_coral","immersive_weathering:vertisol","immersive_weathering:warped_nylium"])}function ww(e,t){_w(e,t)}const fc=["1.15","1.16","1.17","1.18","1.18.2","1.19"],vw="1.19",oi={},ai={},xw={1.15:()=>be(()=>import("./index.14cbcb5f.js").then(function(e){return e.i}),[]),1.16:()=>be(()=>import("./index.aa7bbc06.js").then(function(e){return e.i}),[]),1.17:()=>be(()=>import("./index.7e82f8c1.js").then(function(e){return e.i}),[]),1.18:()=>be(()=>import("./index.6afb1b14.js").then(function(e){return e.i}),[]),"1.18.2":()=>be(()=>import("./index.2d01ed73.js").then(function(e){return e.i}),[]),1.19:()=>be(()=>import("./index.cc7eb8e2.js").then(function(e){return e.i}),[])};let sp,op,hs;async function n0(e){return oi[e]||(oi[e]=(async()=>{try{const t=await xw[e](),n=t.getCollections(),r={};await uw(e,n,r);const i=t.getSchemas(n);return ww(i,n),oi[e]={collections:n,schemas:i,blockStates:r},oi[e]}catch(t){throw new Error(`Cannot get version "${e}": ${Wt(t)}`)}})()),oi[e]}async function bw(e,t){var n;if(!ai[t]||ai[t].version!==e){const r=await n0(e);sp=P.Reference(r.schemas,"configured_decorator"),op=P.ChoiceNode([{type:"string",node:P.StringNode(r.collections,{validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:P.Reference(r.schemas,"configured_feature")}],{choiceContext:"feature"});const i=(n=Oe.generators.find(s=>s.id===t))==null?void 0:n.schema;if(!i)throw new Error(`Cannot find model ${t}`);try{const s=r.schemas.get(i),o=new P.DataModel(s,{wrapLists:!0});ai[t]?o.reset(ai[t].model.data,!1):(o.validate(!0),o.history=[JSON.stringify(o.data)]),ai[t]={model:o,version:e}}catch(s){const o=new Error(`Cannot get generator "${t}" for version "${e}": ${Wt(s)}`);throw s instanceof Error&&(o.stack=s.stack),o}}return ai[t].model}async function yw(e){const t=await n0(e);return hs=t.collections,t.collections}async function kw(e){return(await n0(e)).blockStates}function ct(e,t,n){const r=Oe.versions.findIndex(o=>o.id===e),i=t?Oe.versions.findIndex(o=>o.id===t):0,s=n?Oe.versions.findIndex(o=>o.id===n):Oe.versions.length-1;return i<=r&&r<=s}var ap={exports:{}};(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,u){if(!s[l]){s[l]={};for(var c=0;c<l.length;c++)s[l][l.charAt(c)]=c}return s[l][u]}var a={compressToBase64:function(l){if(l==null)return"";var u=a._compress(l,6,function(c){return r.charAt(c)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:a._decompress(l.length,32,function(u){return o(r,l.charAt(u))})},compressToUTF16:function(l){return l==null?"":a._compress(l,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:a._decompress(l.length,16384,function(u){return l.charCodeAt(u)-32})},compressToUint8Array:function(l){for(var u=a.compress(l),c=new Uint8Array(u.length*2),d=0,f=u.length;d<f;d++){var h=u.charCodeAt(d);c[d*2]=h>>>8,c[d*2+1]=h%256}return c},decompressFromUint8Array:function(l){if(l==null)return a.decompress(l);for(var u=new Array(l.length/2),c=0,d=u.length;c<d;c++)u[c]=l[c*2]*256+l[c*2+1];var f=[];return u.forEach(function(h){f.push(n(h))}),a.decompress(f.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":a._compress(l,6,function(u){return i.charAt(u)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),a._decompress(l.length,32,function(u){return o(i,l.charAt(u))}))},compress:function(l){return a._compress(l,16,function(u){return n(u)})},_compress:function(l,u,c){if(l==null)return"";var d,f,h={},w={},_="",m="",g="",v=2,b=3,x=2,y=[],k=0,C=0,E;for(E=0;E<l.length;E+=1)if(_=l.charAt(E),Object.prototype.hasOwnProperty.call(h,_)||(h[_]=b++,w[_]=!0),m=g+_,Object.prototype.hasOwnProperty.call(h,m))g=m;else{if(Object.prototype.hasOwnProperty.call(w,g)){if(g.charCodeAt(0)<256){for(d=0;d<x;d++)k=k<<1,C==u-1?(C=0,y.push(c(k)),k=0):C++;for(f=g.charCodeAt(0),d=0;d<8;d++)k=k<<1|f&1,C==u-1?(C=0,y.push(c(k)),k=0):C++,f=f>>1}else{for(f=1,d=0;d<x;d++)k=k<<1|f,C==u-1?(C=0,y.push(c(k)),k=0):C++,f=0;for(f=g.charCodeAt(0),d=0;d<16;d++)k=k<<1|f&1,C==u-1?(C=0,y.push(c(k)),k=0):C++,f=f>>1}v--,v==0&&(v=Math.pow(2,x),x++),delete w[g]}else for(f=h[g],d=0;d<x;d++)k=k<<1|f&1,C==u-1?(C=0,y.push(c(k)),k=0):C++,f=f>>1;v--,v==0&&(v=Math.pow(2,x),x++),h[m]=b++,g=String(_)}if(g!==""){if(Object.prototype.hasOwnProperty.call(w,g)){if(g.charCodeAt(0)<256){for(d=0;d<x;d++)k=k<<1,C==u-1?(C=0,y.push(c(k)),k=0):C++;for(f=g.charCodeAt(0),d=0;d<8;d++)k=k<<1|f&1,C==u-1?(C=0,y.push(c(k)),k=0):C++,f=f>>1}else{for(f=1,d=0;d<x;d++)k=k<<1|f,C==u-1?(C=0,y.push(c(k)),k=0):C++,f=0;for(f=g.charCodeAt(0),d=0;d<16;d++)k=k<<1|f&1,C==u-1?(C=0,y.push(c(k)),k=0):C++,f=f>>1}v--,v==0&&(v=Math.pow(2,x),x++),delete w[g]}else for(f=h[g],d=0;d<x;d++)k=k<<1|f&1,C==u-1?(C=0,y.push(c(k)),k=0):C++,f=f>>1;v--,v==0&&(v=Math.pow(2,x),x++)}for(f=2,d=0;d<x;d++)k=k<<1|f&1,C==u-1?(C=0,y.push(c(k)),k=0):C++,f=f>>1;for(;;)if(k=k<<1,C==u-1){y.push(c(k));break}else C++;return y.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 d=[],f=4,h=4,w=3,_="",m=[],g,v,b,x,y,k,C,E={val:c(0),position:u,index:1};for(g=0;g<3;g+=1)d[g]=g;for(b=0,y=Math.pow(2,2),k=1;k!=y;)x=E.val&E.position,E.position>>=1,E.position==0&&(E.position=u,E.val=c(E.index++)),b|=(x>0?1:0)*k,k<<=1;switch(b){case 0:for(b=0,y=Math.pow(2,8),k=1;k!=y;)x=E.val&E.position,E.position>>=1,E.position==0&&(E.position=u,E.val=c(E.index++)),b|=(x>0?1:0)*k,k<<=1;C=n(b);break;case 1:for(b=0,y=Math.pow(2,16),k=1;k!=y;)x=E.val&E.position,E.position>>=1,E.position==0&&(E.position=u,E.val=c(E.index++)),b|=(x>0?1:0)*k,k<<=1;C=n(b);break;case 2:return""}for(d[3]=C,v=C,m.push(C);;){if(E.index>l)return"";for(b=0,y=Math.pow(2,w),k=1;k!=y;)x=E.val&E.position,E.position>>=1,E.position==0&&(E.position=u,E.val=c(E.index++)),b|=(x>0?1:0)*k,k<<=1;switch(C=b){case 0:for(b=0,y=Math.pow(2,8),k=1;k!=y;)x=E.val&E.position,E.position>>=1,E.position==0&&(E.position=u,E.val=c(E.index++)),b|=(x>0?1:0)*k,k<<=1;d[h++]=n(b),C=h-1,f--;break;case 1:for(b=0,y=Math.pow(2,16),k=1;k!=y;)x=E.val&E.position,E.position>>=1,E.position==0&&(E.position=u,E.val=c(E.index++)),b|=(x>0?1:0)*k,k<<=1;d[h++]=n(b),C=h-1,f--;break;case 2:return m.join("")}if(f==0&&(f=Math.pow(2,w),w++),d[C])_=d[C];else if(C===h)_=v+v.charAt(0);else return null;m.push(_),d[h++]=v+_.charAt(0),f--,v=_,f==0&&(f=Math.pow(2,w),w++)}}};return a}();e!=null&&(e.exports=t)})(ap);var lp=ap.exports;const Cw="https://z15g7can.directus.app/items",du=new Map;async function Ew(e,t,n,r){try{const i=JSON.stringify(n),s=lp.compressToBase64(i);console.debug("Compression rate",i.length/i.length);const o=JSON.stringify({data:s,type:e,version:t,show_preview:r});let a=du.get(o);if(!a){const l=await cp("/snippets",o);du.set(o,l.id),a=l.id}return{id:a,length:i.length,compressed:s.length,rate:i.length/s.length}}catch(i){throw i instanceof Error&&(i.message=`Error creating share link: ${i.message}`),i}}async function Aw(e){var t;try{const n=await cp(`/snippets/${e}`);return Me(fe({},n),{data:JSON.parse((t=lp.decompressFromBase64(n.data))!=null?t:"{}")})}catch(n){throw n instanceof Error&&(n.message=`Error loading shared content: ${n.message}`),n}}async function cp(e,t){var i,s,o;const r=await(await fetch(Cw+e,t?{method:"post",headers:{"Content-Type":"application/json"},body:t}:void 0)).json();if(r.data)return r.data;throw new Error((o=(s=(i=r.errors)==null?void 0:i[0])==null?void 0:s.message)!=null?o:"Unknown error")}const r0={"2_spaces":2,"4_spaces":4,tabs:" ",minified:void 0};let ns=null;const i0={json:{parse:async e=>{try{return JSON.parse(e)}catch{return ns=await be(()=>import("./index.173d7b72.js").then(function(n){return n.i}),[]),ns.parse(e)}},stringify:(e,t)=>(ns!=null?ns:JSON).stringify(e,null,t)+`
|
|
`},yaml:{parse:async e=>cc.load(e),stringify:(e,t)=>cc.dump(e,{flowLevel:t===void 0?0:-1,indent:typeof t=="string"?4:t})}};function hc(e,t,n){return i0[t!=null?t:ze.getFormat()].stringify(e,r0[n!=null?n:ze.getIndent()])}async function up(e,t){return await i0[t].parse(e)}function Sw(e){return r0[e]}function Iw(){return Object.keys(r0)}function Mw(){return Object.keys(i0)}var ze;(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",e.ID_PROJECT_PANEL_OPEN="misode_project_panel_open",e.ID_OPEN_PROJECT="misode_open_project",e.ID_TREE_VIEW_MODE="misode_tree_view_mode",e.ID_GENERATOR_HISTORY="misode_generator_history";function t(){var L;return(L=localStorage.getItem(e.ID_LANGUAGE))!=null?L:"en"}e.getLanguage=t;function n(){var L;return(L=localStorage.getItem(e.ID_THEME))!=null?L:"dark"}e.getTheme=n;function r(){const L=localStorage.getItem(e.ID_VERSION);return L&&fc.includes(L)?L:"1.19"}e.getVersionOrDefault=r;function i(){const L=localStorage.getItem(e.ID_VERSION);return L&&fc.includes(L)?L:null}e.getVersion=i;function s(){var L;return(L=localStorage.getItem(e.ID_INDENT))!=null?L:"2_spaces"}e.getIndent=s;function o(){var L;return(L=localStorage.getItem(e.ID_FORMAT))!=null?L:"json"}e.getFormat=o;function a(){return localStorage.getItem(e.ID_HIGHLIGHTING)!=="false"}e.getHighlighting=a;function l(){var L;return(L=localStorage.getItem(e.ID_SOUNDS_VERSION))!=null?L:"latest"}e.getSoundsVersion=l;function u(){const L=localStorage.getItem(e.ID_PROJECTS);return L?JSON.parse(L):[wr]}e.getProjects=u;function c(L){var G;return JSON.parse((G=localStorage.getItem(e.ID_BACKUPS))!=null?G:"{}")[L]}e.getBackup=c;function d(){const L=localStorage.getItem(e.ID_PROJECT_PANEL_OPEN);if(L!==null)return JSON.parse(L)}e.getProjectPanelOpen=d;function f(){var L;return(L=localStorage.getItem(e.ID_OPEN_PROJECT))!=null?L:wr.name}e.getOpenProject=f;function h(){var L;return(L=localStorage.getItem(e.ID_TREE_VIEW_MODE))!=null?L:"resources"}e.getTreeViewMode=h;function w(){var L;return JSON.parse((L=localStorage.getItem(e.ID_GENERATOR_HISTORY))!=null?L:"[]")}e.getGeneratorHistory=w;function _(L){L&&localStorage.setItem(e.ID_LANGUAGE,L)}e.setLanguage=_;function m(L){L&&localStorage.setItem(e.ID_THEME,L)}e.setTheme=m;function g(L){L&&localStorage.setItem(e.ID_VERSION,L)}e.setVersion=g;function v(L){L&&localStorage.setItem(e.ID_INDENT,L)}e.setIndent=v;function b(L){L&&localStorage.setItem(e.ID_FORMAT,L)}e.setFormat=b;function x(L){L!==void 0&&localStorage.setItem(e.ID_HIGHLIGHTING,L.toString())}e.setHighlighting=x;function y(L){L&&localStorage.setItem(e.ID_SOUNDS_VERSION,L)}e.setSoundsVersion=y;function k(L){L&&localStorage.setItem(e.ID_PROJECTS,JSON.stringify(L))}e.setProjects=k;function C(L,D){var z;const G=JSON.parse((z=localStorage.getItem(e.ID_BACKUPS))!=null?z:"{}");D===void 0?delete G[L]:G[L]=D,localStorage.setItem(e.ID_BACKUPS,JSON.stringify(G))}e.setBackup=C;function E(L){L===void 0?localStorage.removeItem(e.ID_PROJECT_PANEL_OPEN):localStorage.setItem(e.ID_PROJECT_PANEL_OPEN,JSON.stringify(L))}e.setProjectPanelOpen=E;function I(L){L===void 0?localStorage.removeItem(e.ID_OPEN_PROJECT):localStorage.setItem(e.ID_OPEN_PROJECT,L)}e.setOpenProject=I;function S(L){L&&localStorage.setItem(e.ID_TREE_VIEW_MODE,L)}e.setTreeViewMode=S;function T(L){const D=w();D.push(L),localStorage.setItem(e.ID_GENERATOR_HISTORY,JSON.stringify(D.slice(-50)))}e.visitGenerator=T})(ze||(ze={}));var dp=JSON.parse('{"add":"Add","add_bottom":"Add to bottom","add_top":"Add to top","advancement":"Advancement","any_version":"Any","assets":"Assets","back":"Back","block_definition":"Blockstate","changelog":"Technical changelog","changelog.search":"Search changes","changelog.no_results":"No documented changes","changelog.show_more":"Show %0% more changes","choose_file":"Choose file","choose_zip_file":"Choose zip file","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","developed_by":"Developed by","dimension_type":"Dimension Type","dimension":"Dimension","disabled":"Disabled","donate":"Donate","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","generate_new_uuid":"Generate new UUID","generators.all":"All generators","generators.popular":"Popular Generators","generators.recent":"Recently Used Generators","generators.search":"Search generators","generators.no_results":"No generators for this query","github":"GitHub","guides":"Guides","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","hide_project":"Hide project","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_file_chosen":"No file chosen","no_presets":"No presets","output_settings":"Output settings","predicate":"Predicate","recipe":"Recipe","redo":"Redo","reset":"Reset","reset_default":"Reset to default","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","tag/block":"Block Tag","tag/entity_type":"Entity Type Tag","tag/fluid":"Fluid Tag","tag/game_event":"Game Event Tag","tag/item":"Item Tag","tag/worldgen/biome":"Biome Tag","tags":"Tags","theme.dark":"Dark","theme.light":"Light","theme.system":"System","title.changelog":"Technical Changelog","title.generator":"%0% Generator","title.generator_category":"%0% Generators","title.generators":"Data Pack Generators","title.guides":"Data Pack Guides","title.home":"Data Pack Generators","title.partners":"Partners","title.project":"%0% Project","title.new_project":"Create a new project","title.sounds":"Sound Explorer","title.versions":"Versions Explorer","title.worldgen":"Worldgen Generators and Guides","tools":"Tools","pack_mcmeta":"Pack.mcmeta","partner.immersive_weathering":"Immersive Weathering","partner.immersive_weathering.block_growth":"Block Growth","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.new":"New project","project.cancel":"Cancel","project.create":"Create a new project","project.delete":"Delete project","project.delete_confirm.1":"You are about to delete %0%","project.delete_confirm.2":"This cannot be undone!","project.delete_file":"Delete file","project.download":"Download data pack","project.go_to":"Go to project","project.new_file":"New file","project.no_files":"No files","project.rename":"Rename","project.rename_file":"Rename file","project.save":"Save","project.save_current_file":"Save file to project","project.search":"Search project","project.search_drafts":"Search drafts","project.show_file_paths":"Show file paths","project.show_resources":"Show resources","project.unsaved_file":"Unsaved file","project.name":"Project name","project.name.already_exists":"There already exists a project with this name","project.namespace":"Default namespace","project.namespace.invalid":"Invalid namespace","remove":"Remove","resource_location":"Resource location","search":"Search","show_output":"Show output","show_preview":"Show preview","show_project":"Show project","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_code_on":"Source code on","source_placeholder":"Paste raw %0% content here","switch_generator":"Switch generator","switch_project":"Switch project","switch_version":"Switch version","terrain_settings":"Terrain settings","text_component":"Text Component","undo":"Undo","versions.article":"Article","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","versions.minecraft_versions":"Minecraft Versions","versions.latest_snapshot":"Latest snapshot","versions.latest_release":"Latest release","world":"World Settings","worldgen":"Worldgen","worldgen/biome":"Biome","worldgen/configured_carver":"Configured Carver","worldgen/configured_feature":"Configured 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"}'),Tw=Object.freeze(Object.defineProperty({__proto__:null,default:dp},Symbol.toStringTag,{value:"Module"}));function Lw(e){switch(e){case"../../../node_modules/@mcschema/locales/src/cs.json":return be(()=>import("./cs.967a01eb.js"),[]);case"../../../node_modules/@mcschema/locales/src/de.json":return be(()=>import("./de.489974c1.js"),[]);case"../../../node_modules/@mcschema/locales/src/en.json":return be(()=>import("./en.8708b83f.js"),[]);case"../../../node_modules/@mcschema/locales/src/es.json":return be(()=>import("./es.6b3597bc.js"),[]);case"../../../node_modules/@mcschema/locales/src/fr.json":return be(()=>import("./fr.e316b1e2.js"),[]);case"../../../node_modules/@mcschema/locales/src/it.json":return be(()=>import("./it.7ff123cd.js"),[]);case"../../../node_modules/@mcschema/locales/src/ja.json":return be(()=>import("./ja.3170354d.js"),[]);case"../../../node_modules/@mcschema/locales/src/pl.json":return be(()=>import("./pl.ae1f6791.js"),[]);case"../../../node_modules/@mcschema/locales/src/pt.json":return be(()=>import("./pt.31e14993.js"),[]);case"../../../node_modules/@mcschema/locales/src/ru.json":return be(()=>import("./ru.1298edc9.js"),[]);case"../../../node_modules/@mcschema/locales/src/sk.json":return be(()=>import("./sk.d4265232.js"),[]);case"../../../node_modules/@mcschema/locales/src/zh-cn.json":return be(()=>import("./zh-cn.4129665a.js"),[]);case"../../../node_modules/@mcschema/locales/src/zh-tw.json":return be(()=>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 Ow(e){switch(e){case"../../locales/de.json":return be(()=>import("./de.a269acce.js"),[]);case"../../locales/en.json":return be(()=>Promise.resolve().then(function(){return Tw}),void 0);case"../../locales/es.json":return be(()=>import("./es.833a9774.js"),[]);case"../../locales/fr.json":return be(()=>import("./fr.0918dd41.js"),[]);case"../../locales/it.json":return be(()=>import("./it.fd9a8268.js"),[]);case"../../locales/ja.json":return be(()=>import("./ja.167de97b.js"),[]);case"../../locales/ko.json":return be(()=>import("./ko.b4055eb4.js"),[]);case"../../locales/pl.json":return be(()=>import("./pl.3a9fb38c.js"),[]);case"../../locales/pt.json":return be(()=>import("./pt.1a04bd2d.js"),[]);case"../../locales/ru.json":return be(()=>import("./ru.578070fe.js"),[]);case"../../locales/sk.json":return be(()=>import("./sk.96bbf351.js"),[]);case"../../locales/zh-cn.json":return be(()=>import("./zh-cn.aa5468cf.js"),[]);case"../../locales/zh-tw.json":return be(()=>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 fp=xr({lang:"none",locale:e=>e,changeLocale:()=>{}}),ps={fallback:dp};function Te(e,t,...n){var i,s,o,a,l;const r=(l=(a=(o=(i=ps[e])==null?void 0:i[t])!=null?o:(s=ps.en)==null?void 0:s[t])!=null?a:ps.fallback[t])!=null?l:t;return Rw(r,n)}function Rw(e,t){return e.replace(/%\d+%/g,n=>{const r=parseInt(n.slice(1,-1));return(t==null?void 0:t[r])!==void 0?t[r]:n})}async function bl(e){if(ps[e])return;const t=Oe.languages.find(s=>s.code===e);if(!t)return;const n=await Ow(`../../locales/${e}.json`),r=t.schemas!==!1&&await Lw(`../../../node_modules/@mcschema/locales/src/${e}.json`);let i={default:{}};e==="en"&&(i=await be(()=>import("./en.321d8b56.js"),[])),ps[e]=fe(fe(fe({},n.default),r.default),i.default)}function Ce(){return Kr(fp)}function Nw({children:e}){const[t,n]=X("none"),r=Fe((o,...a)=>Te(t,o,...a),[t]),i=Fe(async o=>{await bl(o),Ae.changeLocale(t,o),ze.setLanguage(o),n(o)},[t]);me(()=>{(async()=>{const o=ze.getLanguage();Ae.setLocale(o),await Promise.all([bl("en"),...o!=="en"?[bl(o)]:[]]),n(o)})()},[]);const s={lang:t,locale:r,changeLocale:i};return p(fp.Provider,{value:s,children:e})}const wr={name:"Drafts",namespace:"draft",files:[]},Dw=["worldgen/[a-z_]+","tags/worldgen/[a-z_]+","tags/[a-z_]+","[a-z_]+"].map(e=>RegExp(`^data/([a-z0-9._-]+)/(${e})/([a-z0-9/._-]+)$`)),hp=xr({projects:[wr],project:wr,createProject:()=>{},deleteProject:()=>{},changeProject:()=>{},updateProject:()=>{},updateFile:()=>!1,openFile:()=>{},closeFile:()=>{}});function tr(){return Kr(hp)}function Fw({children:e}){const[t,n]=X(ze.getProjects()),[r,i]=X(ze.getOpenProject()),s=ye(()=>{var v;return(v=t.find(b=>b.name===r))!=null?v:wr},[t,r]),[o,a]=X(void 0),l=ye(()=>{if(!!o)return s.files.find(v=>v.type===o[0]&&v.id===o[1])},[s,o]),u=Fe(v=>{ze.setProjects(v),n(v)},[]),c=Fe((v,b,x)=>{u([...t,{name:v,namespace:b,version:x,files:[]}])},[t]),d=Fe(v=>{v!==wr.name&&u(t.filter(b=>b.name!==v))},[t]),f=Fe(v=>{ze.setOpenProject(v),i(v)},[]),h=Fe(v=>{u(t.map(b=>b.name===r?fe(fe({},b),v):b))},[t,r]),w=Fe((v,b,x)=>{var y,k;if(!x.id)h({files:s.files.filter(C=>C.type!==v||C.id!==b)});else{const C=v==="pack_mcmeta"?"pack":x.id.includes(":")?x.id:`${(y=s.namespace)!=null?y:"minecraft"}:${x.id}`,E=s.files.some(I=>I.type===v&&I.id===C);if(b){if((l==null?void 0:l.id)===b&&b!==C&&E)return!1;h({files:s.files.map(I=>I.type===v&&I.id===b?Me(fe(fe({},I),x),{id:C}):I)}),(l==null?void 0:l.id)===b&&a([v,C])}else{if(E)return!1;h({files:[...s.files,{type:v,id:C,data:(k=x.data)!=null?k:{}}]}),a([v,C])}}return!0},[h,s,l]),_=Fe((v,b)=>{const x=Oe.generators.find(y=>y.id===v||y.path===v);if(!x)throw new Error(`Cannot find generator of type ${v}`);a([x.id,b]),qr(_r(x.url))},[]),m=Fe(()=>{a(void 0)},[]),g={projects:t,project:s,file:l,createProject:c,changeProject:f,deleteProject:d,updateProject:h,updateFile:w,openFile:_,closeFile:m};return p(hp.Provider,{value:g,children:e})}function yl(e){var i;const[t,n]=e.id.includes(":")?e.id.split(":"):["minecraft",e.id];if(e.type==="pack_mcmeta")return e.id==="pack"?"pack.mcmeta":void 0;const r=Oe.generators.find(s=>s.id===e.type);if(!!r)return`data/${t}/${(i=r.path)!=null?i:r.id}/${n}.json`}function pp(e){if(e==="pack.mcmeta")return{type:"pack_mcmeta",id:"pack"};for(const t of Dw){const n=e.match(t);if(!n)continue;const r=Oe.generators.find(o=>{var a;return((a=o.path)!=null?a:o.id)===n[2]});if(!r)continue;const i=n[1],s=n[3].replace(/\.[a-z]+$/,"");return{type:r.id,id:`${i}:${s}`}}}const mp=xr({biomeColors:{},setBiomeColor:()=>{}});function gp(){return Kr(mp)}function Pw({children:e}){const[t,n]=tp("misode_biome_colors",{},JSON.parse,JSON.stringify),r=Fe((s,o)=>{n(Me(fe({},t),{[s]:o}))},[t]),i={biomeColors:t,setBiomeColor:r};return p(mp.Provider,{value:i,children:e})}const _p=xr({theme:"dark",actualTheme:"dark",changeTheme:()=>{}});function wp(){return Kr(_p)}function $w({children:e}){const[t,n]=X(ze.getTheme()),r=fa("(prefers-color-scheme: light)"),i=fa("(prefers-color-scheme: dark)");me(()=>{document.documentElement.setAttribute("data-theme",t)},[t]);const s=Fe(a=>{Ae.changeTheme(t,a),ze.setTheme(a),n(a)},[t]);me(()=>{Ae.setPrefersColorScheme(r?"light":i?"dark":"none")},[r,i]),me(()=>{Ae.setTheme(t)},[]);const o={theme:t,actualTheme:t==="light"||t!=="dark"&&r?"light":"dark",changeTheme:s};return p(_p.Provider,{value:o,children:e})}const Bw=3,vp=xr({title:"",changeTitle:()=>{}});function gn(e,t,n){const r=Kr(vp);return me(()=>{e&&r.changeTitle(e,t,n)},[e,t,n]),r}function jw({children:e}){const{locale:t}=Ce(),[n,r]=X(t("title.home")),i=Fe((o,a,l)=>{let u=Oe.versions;a!==void 0&&(u=Oe.versions.filter(d=>a==null?void 0:a.includes(d.id)));let c="";l&&(c=` - ${l}`),(a==null?void 0:a.length)!==0&&(c=` - Minecraft ${u.map(f=>f.id).slice(-Bw).join(", ")}`),document.title=o+c,r(o)},[]),s={title:n,changeTitle:i};return p(vp.Provider,{value:s,children:e})}const Vw="version",xp=xr({version:"1.18.2",changeVersion:()=>{},changeTargetVersion:()=>{}});function yr(){return Kr(xp)}function zw({children:e}){const[t,n]=X(ze.getVersionOrDefault()),[r,i]=jr(Vw);me(()=>{fc.includes(r)&&t!==r&&(Ae.setVersion(r),n(r))},[t,r]);const s=Fe((a,l=!0,u=!1)=>{(u||r)&&i(a,!0),l&&(Ae.changeVersion(t,a),ze.setVersion(a)),n(a)},[t,r]);me(()=>{var a;Ae.setVersion(t),Ae.setSelectedVersion((a=ze.getVersion())!=null?a:"default")},[]);const o={version:t,changeVersion:s,changeTargetVersion:i};return p(xp.Provider,{value:o,children:e})}function Uw({value:e,onChange:t,label:n,accept:r}){const{locale:i}=Ce(),s=Le(null),o=()=>{var l,u;if(s.current!==null)for(let c=0;c<((u=(l=s.current.files)==null?void 0:l.length)!=null?u:0);c++){const d=s.current.files[c];t(d)}},a=Fe(l=>{if(l.preventDefault(),!!l.dataTransfer)for(let u=0;u<l.dataTransfer.files.length;u++){const c=l.dataTransfer.files[u];t(c)}},[t]);return F("label",{class:"file-upload",onDrop:a,onDragOver:l=>l.preventDefault(),children:[p("input",{ref:s,type:"file",onChange:o,accept:r}),p(oe,{label:n!=null?n:i("choose_file")}),p("span",{children:e?e.name:i("no_file_chosen")})]})}function On({donate:e}){const{locale:t}=Ce();return F("footer",{children:[p("p",{children:F("span",{children:[t("developed_by")," ",p("a",{href:"https://github.com/misode",target:"_blank",rel:"noreferrer",children:"Misode"})]})}),e!==!1&&F("p",{class:"donate",children:[he.heart,p("a",{href:"https://ko-fi.com/misode",target:"_blank",rel:"noreferrer",children:t("donate")})]}),F("p",{children:[he.mark_github,F("span",{children:[t("source_code_on")," ",p("a",{href:"https://github.com/misode/misode.github.io",target:"_blank",rel:"noreferrer",children:t("github")})]})]})]})}function Hw({label:e,value:t,onChange:n}){const r=Nr();return F("label",{class:"checkbox",children:[p("input",{id:r,type:"checkbox",checked:t,onClick:()=>n(!t)}),e]})}function s0(e,t,n){const r=i=>{const s=i.onChange&&(l=>{var c;const u=l.target.value;(c=i.onChange)==null||c.call(i,n(u))}),o=i.onEnter&&(l=>{var u,c;if(l.key==="Enter"){const d=l.target.value;(u=i.onEnter)==null||u.call(i,n(d))}else l.key==="Escape"&&((c=i.onCancel)==null||c.call(i))}),a=Le(null);return me(()=>{var l;i.autofocus&&((l=a.current)==null||l.select())},[i.autofocus]),p("input",Me(fe({ref:a},i),{type:t,onChange:s,onKeyDown:o}))};return r.displayName=e,r}const mn=s0("TextInput","text",e=>e),Zw=s0("NumberInput","number",e=>Number(e)),fu=s0("RangeInput","range",e=>Number(e));function Gw({values:e,onSelect:t,searchPlaceholder:n,noResults:r}){const[i,s]=X(""),o=ye(()=>{var l;const a=i.trim().split(" ");return(l=e==null?void 0:e.filter(u=>a.every(c=>u.includes(c))))!=null?l:[]},[e,i]);return F(pe,{children:[p(Zo,{icon:"search",large:!0,value:i,onChange:s,doSelect:1,placeholder:n!=null?n:"Search"}),F("div",{class:"result-list",children:[o.map(a=>p(oe,{label:a,onClick:()=>t==null?void 0:t(a)},a)),o.length===0&&p(oe,{label:r!=null?r:"No results"})]})]})}const kl="data-modals";function Ha(e){var n;me(()=>(hu(1),window.addEventListener("click",e.onDismiss),()=>{hu(-1),window.removeEventListener("click",e.onDismiss)}));const t=Fe(r=>{var i;r.stopPropagation(),(i=r.target)==null||i.dispatchEvent(new Event(dc,{bubbles:!0}))},[]);return p("div",Me(fe({},e),{class:`modal ${(n=e.class)!=null?n:""}`,onClick:t,children:e.children}))}function hu(e){var r;const n=parseInt((r=document.body.getAttribute(kl))!=null?r:"0")+e;n<=0?document.body.removeAttribute(kl):document.body.setAttribute(kl,n.toFixed())}function Yw({model:e,id:t,method:n,onClose:r}){const{locale:i}=Ce(),{projects:s,project:o,updateFile:a}=tr(),[l,u]=X(t==="pack_mcmeta"?"pack":""),c=()=>{Ae.saveProjectFile(t,s.length,o.files.length,n),a(t,void 0,{type:t,id:l,data:P.DataModel.unwrapLists(e.data)}),r()};return F(Ha,{class:"file-modal",onDismiss:r,children:[p("p",{children:i("project.save_current_file")}),p(mn,{autofocus:t!=="pack_mcmeta",class:"btn btn-input",value:l,onChange:u,onEnter:c,onCancel:r,placeholder:i("resource_location"),spellcheck:!1,readOnly:t==="pack_mcmeta"}),p(oe,{icon:"file",label:i("project.save"),onClick:c})]})}function Ww({id:e,name:t,onClose:n}){const{locale:r}=Ce(),{projects:i,project:s,updateFile:o}=tr(),[a,l]=X(t),u=()=>{Ae.renameProjectFile(e,i.length,s.files.length,"menu"),o(e,t,{type:e,id:a}),n()};return F(Ha,{class:"file-modal",onDismiss:n,children:[p("p",{children:r("project.rename_file")}),p(mn,{autofocus:!0,class:"btn btn-input",value:a,onChange:l,onEnter:u,placeholder:r("resource_location"),spellcheck:!1}),p(oe,{icon:"pencil",label:r("project.rename"),onClick:u})]})}function Cn({id:e,minimal:t}){var l;const{locale:n}=Ce(),r=ye(()=>{const u=Oe.generators.find(c=>c.id===e);return u===void 0?{id:e,schema:e,url:e}:u},[e]),i=n(r.partner?`partner.${r.partner}.${r.id}`:r.id),s=Object.keys(Bi).includes(e)?e:void 0;if(t)return p(Yn,{title:i,link:_r(r.url),titleIcon:s});const o=ye(()=>r?Oe.versions.filter(u=>ct(u.id,r.minVersion,r.maxVersion)).map(u=>u.id):[],[r]),a=ye(()=>{var u;return(u=r.tags)!=null&&u.includes("assets")?["resource-pack"]:[]},[r]);return F(Qc,{title:F(pe,{children:[i,s&&Bi[s]]}),overlay:r.partner?n(`partner.${r.partner}`):o.join(" \u2022 "),link:_r(r.url),children:[!r.noPath&&F("p",{class:"card-subtitle",children:["/",(l=r.path)!=null?l:r.id]}),a.length>0&&p("div",{class:"badges-list",children:a.sort().map(u=>p(Zi,{label:u}))})]})}function o0({predicate:e}){const{locale:t}=Ce(),{version:n,changeVersion:r}=yr(),[i,s]=X(""),[o,a]=X(!0),l=ye(()=>Oe.generators.filter(c=>e===void 0||!e(c)?!1:o===!1?!0:ct(n,c.minVersion,c.maxVersion)),[n,o]),u=ye(()=>{const c=i.split(" ").map(d=>d.trim().toLowerCase()).filter(d=>d.length>0);return l.filter(d=>{var h,w,_,m;const f=`${d.id} ${(w=(h=d.tags)==null?void 0:h.join(" "))!=null?w:""} ${(_=d.path)!=null?_:""} ${(m=d.partner)!=null?m:""} ${t(d.id).toLowerCase()}`;return c.every(g=>g.startsWith("!")?g.length===1||!f.includes(g.slice(1)):f.includes(g))})},[l,i,t]);return F("div",{class:"generator-list",children:[F("div",{class:"navigation",children:[p(mn,{class:"btn btn-input query-search",placeholder:t("generators.search"),value:i,onChange:s}),p(so,{value:o?n:void 0,onChange:c=>{r(c),a(!0)},hasAny:!0,onAny:()=>a(!1)})]}),u.length===0?p(pe,{children:p("span",{class:"note",children:t("generators.no_results")})}):p("div",{class:"card-column",children:u.map(c=>p(Cn,{id:c.id}))})]})}let xe,bp=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});bp.decode();let bo=null;function qw(){return(bo===null||bo.buffer!==xe.memory.buffer)&&(bo=new Uint8Array(xe.memory.buffer)),bo}function Xw(e,t){return bp.decode(qw().subarray(e,e+t))}const pc=new Uint32Array(2),Kw=new BigInt64Array(pc.buffer);let yo=null;function As(){return(yo===null||yo.buffer!==xe.memory.buffer)&&(yo=new Int32Array(xe.memory.buffer)),yo}let ko=null;function yp(){return(ko===null||ko.buffer!==xe.memory.buffer)&&(ko=new Float64Array(xe.memory.buffer)),ko}function Jw(e,t){return yp().subarray(e/8,e/8+t)}let st=0;function dt(e,t){const n=t(e.length*8);return yp().set(e,n/8),st=e.length,n}let Co=null;function Qw(){return(Co===null||Co.buffer!==xe.memory.buffer)&&(Co=new Uint32Array(xe.memory.buffer)),Co}function e6(e,t){const n=t(e.length*4);return Qw().set(e,n/4),st=e.length,n}function t6(e,t,n,r,i,s,o,a,l,u,c,d,f,h){var w=dt(e,xe.__wbindgen_malloc),_=st,m=dt(t,xe.__wbindgen_malloc),g=st,v=dt(n,xe.__wbindgen_malloc),b=st,x=dt(r,xe.__wbindgen_malloc),y=st,k=dt(i,xe.__wbindgen_malloc),C=st,E=dt(s,xe.__wbindgen_malloc),I=st,S=dt(o,xe.__wbindgen_malloc),T=st,L=dt(a,xe.__wbindgen_malloc),D=st,G=dt(l,xe.__wbindgen_malloc),z=st,O=dt(u,xe.__wbindgen_malloc),$=st,U=dt(c,xe.__wbindgen_malloc),Q=st,N=dt(d,xe.__wbindgen_malloc),A=st,R=dt(f,xe.__wbindgen_malloc),B=st,q=e6(h,xe.__wbindgen_malloc),ie=st,j=xe.biome_parameters(w,_,m,g,v,b,x,y,k,C,E,I,S,T,L,D,G,z,O,$,U,Q,N,A,R,B,q,ie);return Za.__wrap(j)}function n6(e,t,n,r,i,s,o,a,l,u,c,d,f){Kw[0]=e;const h=pc[0],w=pc[1];var _=dt(n,xe.__wbindgen_malloc),m=st,g=dt(i,xe.__wbindgen_malloc),v=st,b=dt(o,xe.__wbindgen_malloc),x=st,y=dt(l,xe.__wbindgen_malloc),k=st,C=dt(c,xe.__wbindgen_malloc),E=st,I=dt(f,xe.__wbindgen_malloc),S=st,T=xe.climate_sampler(h,w,t,_,m,r,g,v,s,b,x,a,y,k,u,C,E,d,I,S);return Qs.__wrap(T)}function mc(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`);return e.ptr}function r6(e,t){return As().subarray(e/4,e/4+t)}function pu(e,t,n,r,i,s,o,a,l,u,c){try{const w=xe.__wbindgen_add_to_stack_pointer(-16);mc(e,Za),mc(t,Qs),xe.multi_noise(w,e.ptr,t.ptr,n,r,i,s,o,a,l,u,c);var d=As()[w/4+0],f=As()[w/4+1],h=r6(d,f).slice();return xe.__wbindgen_free(d,f*4),h}finally{xe.__wbindgen_add_to_stack_pointer(16)}}function mu(e,t,n,r,i,s,o,a,l,u){try{const h=xe.__wbindgen_add_to_stack_pointer(-16);mc(e,Qs),xe.climate_noise(h,e.ptr,t,n,r,i,s,o,a,l,u);var c=As()[h/4+0],d=As()[h/4+1],f=Jw(c,d).slice();return xe.__wbindgen_free(c,d*8),f}finally{xe.__wbindgen_add_to_stack_pointer(16)}}class Za{static __wrap(t){const n=Object.create(Za.prototype);return n.ptr=t,n}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();xe.__wbg_parameterlist_free(t)}}class Qs{static __wrap(t){const n=Object.create(Qs.prototype);return n.ptr=t,n}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();xe.__wbg_sampler_free(t)}}async function i6(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}async function kp(e){typeof e=="undefined"&&(e=new URL("/assets/deepslate_rs_bg.4990c219.wasm",self.location));const t={};t.wbg={},t.wbg.__wbindgen_throw=function(i,s){throw new Error(Xw(i,s))},(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await i6(await e,t);return xe=n.exports,kp.__wbindgen_wasm_module=r,xe}var gu="/assets/deepslate_rs_bg.4990c219.wasm",Jt;(function(e){e.UP="up",e.DOWN="down",e.NORTH="north",e.EAST="east",e.SOUTH="south",e.WEST="west"})(Jt||(Jt={}));const s6={[Jt.UP]:[0,1,0],[Jt.DOWN]:[0,-1,0],[Jt.NORTH]:[0,0,-1],[Jt.EAST]:[1,0,0],[Jt.SOUTH]:[0,0,1],[Jt.WEST]:[-1,0,0]};(function(e){e.ALL=[e.UP,e.DOWN,e.NORTH,e.EAST,e.SOUTH,e.WEST];function t(n){return s6[n]}e.normal=t})(Jt||(Jt={}));var Dt;(function(e){function t(o,a,l){return[o,a,l]}e.create=t,e.ZERO=e.create(0,0,0);function n(o,a,l,u){return[o[0]+a,o[1]+l,o[2]+u]}e.offset=n;function r(o,a){return e.offset(o,...Jt.normal(a))}e.towards=r;function i(o,a){return o===a?!0:o[0]===a[0]&&o[1]===a[1]&&o[2]===a[2]}e.equals=i;function s(o){return o[0]*o[0]+o[1]*o[1]+o[2]*o[2]}e.magnitude=s})(Dt||(Dt={}));/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */const o6=4,_u=0,wu=1,a6=2;function Ui(e){let t=e.length;for(;--t>=0;)e[t]=0}const l6=0,Cp=1,c6=2,u6=3,d6=258,a0=29,eo=256,Ss=eo+1+a0,Si=30,l0=19,Ep=2*Ss+1,Tr=15,Cl=16,f6=7,c0=256,Ap=16,Sp=17,Ip=18,gc=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]),Yo=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]),h6=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Mp=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p6=512,$n=new Array((Ss+2)*2);Ui($n);const ms=new Array(Si*2);Ui(ms);const Is=new Array(p6);Ui(Is);const Ms=new Array(d6-u6+1);Ui(Ms);const u0=new Array(a0);Ui(u0);const ha=new Array(Si);Ui(ha);function El(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let Tp,Lp,Op;function Al(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const Rp=e=>e<256?Is[e]:Is[256+(e>>>7)],Ts=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},jt=(e,t,n)=>{e.bi_valid>Cl-n?(e.bi_buf|=t<<e.bi_valid&65535,Ts(e,e.bi_buf),e.bi_buf=t>>Cl-e.bi_valid,e.bi_valid+=n-Cl):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},En=(e,t,n)=>{jt(e,n[t*2],n[t*2+1])},Np=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},m6=e=>{e.bi_valid===16?(Ts(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},g6=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let u,c,d,f,h,w,_=0;for(f=0;f<=Tr;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<Ep;u++)c=e.heap[u],f=n[n[c*2+1]*2+1]+1,f>l&&(f=l,_++),n[c*2+1]=f,!(c>r)&&(e.bl_count[f]++,h=0,c>=a&&(h=o[c-a]),w=n[c*2],e.opt_len+=w*(f+h),s&&(e.static_len+=w*(i[c*2+1]+h)));if(_!==0){do{for(f=l-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[l]--,_-=2}while(_>0);for(f=l;f!==0;f--)for(c=e.bl_count[f];c!==0;)d=e.heap[--u],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),c--)}},Dp=(e,t,n)=>{const r=new Array(Tr+1);let i=0,s,o;for(s=1;s<=Tr;s++)r[s]=i=i+n[s-1]<<1;for(o=0;o<=t;o++){let a=e[o*2+1];a!==0&&(e[o*2]=Np(r[a]++,a))}},_6=()=>{let e,t,n,r,i;const s=new Array(Tr+1);for(n=0,r=0;r<a0-1;r++)for(u0[r]=n,e=0;e<1<<gc[r];e++)Ms[n++]=r;for(Ms[n-1]=r,i=0,r=0;r<16;r++)for(ha[r]=i,e=0;e<1<<Yo[r];e++)Is[i++]=r;for(i>>=7;r<Si;r++)for(ha[r]=i<<7,e=0;e<1<<Yo[r]-7;e++)Is[256+i++]=r;for(t=0;t<=Tr;t++)s[t]=0;for(e=0;e<=143;)$n[e*2+1]=8,e++,s[8]++;for(;e<=255;)$n[e*2+1]=9,e++,s[9]++;for(;e<=279;)$n[e*2+1]=7,e++,s[7]++;for(;e<=287;)$n[e*2+1]=8,e++,s[8]++;for(Dp($n,Ss+1,s),e=0;e<Si;e++)ms[e*2+1]=5,ms[e*2]=Np(e,5);Tp=new El($n,gc,eo+1,Ss,Tr),Lp=new El(ms,Yo,0,Si,Tr),Op=new El(new Array(0),h6,0,l0,f6)},Fp=e=>{let t;for(t=0;t<Ss;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Si;t++)e.dyn_dtree[t*2]=0;for(t=0;t<l0;t++)e.bl_tree[t*2]=0;e.dyn_ltree[c0*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0},Pp=e=>{e.bi_valid>8?Ts(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},w6=(e,t,n,r)=>{Pp(e),r&&(Ts(e,n),Ts(e,~n)),e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},vu=(e,t,n,r)=>{const i=t*2,s=n*2;return e[i]<e[s]||e[i]===e[s]&&r[t]<=r[n]},Sl=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&vu(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!vu(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},xu=(e,t,n)=>{let r,i,s=0,o,a;if(e.last_lit!==0)do r=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1],i=e.pending_buf[e.l_buf+s],s++,r===0?En(e,i,t):(o=Ms[i],En(e,o+eo+1,t),a=gc[o],a!==0&&(i-=u0[o],jt(e,i,a)),r--,o=Rp(r),En(e,o,n),a=Yo[o],a!==0&&(r-=ha[o],jt(e,r,a)));while(s<e.last_lit);En(e,c0,t)},_c=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,s=t.stat_desc.elems;let o,a,l=-1,u;for(e.heap_len=0,e.heap_max=Ep,o=0;o<s;o++)n[o*2]!==0?(e.heap[++e.heap_len]=l=o,e.depth[o]=0):n[o*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=l<2?++l:0,n[u*2]=1,e.depth[u]=0,e.opt_len--,i&&(e.static_len-=r[u*2+1]);for(t.max_code=l,o=e.heap_len>>1;o>=1;o--)Sl(e,n,o);u=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Sl(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++,Sl(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],g6(e,t),Dp(n,l,e.bl_count)},bu=(e,t,n)=>{let r,i=-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,r=0;r<=n;r++)s=o,o=t[(r+1)*2+1],!(++a<l&&s===o)&&(a<u?e.bl_tree[s*2]+=a:s!==0?(s!==i&&e.bl_tree[s*2]++,e.bl_tree[Ap*2]++):a<=10?e.bl_tree[Sp*2]++:e.bl_tree[Ip*2]++,a=0,i=s,o===0?(l=138,u=3):s===o?(l=6,u=3):(l=7,u=4))},yu=(e,t,n)=>{let r,i=-1,s,o=t[0*2+1],a=0,l=7,u=4;for(o===0&&(l=138,u=3),r=0;r<=n;r++)if(s=o,o=t[(r+1)*2+1],!(++a<l&&s===o)){if(a<u)do En(e,s,e.bl_tree);while(--a!==0);else s!==0?(s!==i&&(En(e,s,e.bl_tree),a--),En(e,Ap,e.bl_tree),jt(e,a-3,2)):a<=10?(En(e,Sp,e.bl_tree),jt(e,a-3,3)):(En(e,Ip,e.bl_tree),jt(e,a-11,7));a=0,i=s,o===0?(l=138,u=3):s===o?(l=6,u=3):(l=7,u=4)}},v6=e=>{let t;for(bu(e,e.dyn_ltree,e.l_desc.max_code),bu(e,e.dyn_dtree,e.d_desc.max_code),_c(e,e.bl_desc),t=l0-1;t>=3&&e.bl_tree[Mp[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},x6=(e,t,n,r)=>{let i;for(jt(e,t-257,5),jt(e,n-1,5),jt(e,r-4,4),i=0;i<r;i++)jt(e,e.bl_tree[Mp[i]*2+1],3);yu(e,e.dyn_ltree,t-1),yu(e,e.dyn_dtree,n-1)},b6=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return _u;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return wu;for(n=32;n<eo;n++)if(e.dyn_ltree[n*2]!==0)return wu;return _u};let ku=!1;const y6=e=>{ku||(_6(),ku=!0),e.l_desc=new Al(e.dyn_ltree,Tp),e.d_desc=new Al(e.dyn_dtree,Lp),e.bl_desc=new Al(e.bl_tree,Op),e.bi_buf=0,e.bi_valid=0,Fp(e)},$p=(e,t,n,r)=>{jt(e,(l6<<1)+(r?1:0),3),w6(e,t,n,!0)},k6=e=>{jt(e,Cp<<1,3),En(e,c0,$n),m6(e)},C6=(e,t,n,r)=>{let i,s,o=0;e.level>0?(e.strm.data_type===a6&&(e.strm.data_type=b6(e)),_c(e,e.l_desc),_c(e,e.d_desc),o=v6(e),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=i&&(i=s)):i=s=n+5,n+4<=i&&t!==-1?$p(e,t,n,r):e.strategy===o6||s===i?(jt(e,(Cp<<1)+(r?1:0),3),xu(e,$n,ms)):(jt(e,(c6<<1)+(r?1:0),3),x6(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),xu(e,e.dyn_ltree,e.dyn_dtree)),Fp(e),r&&Pp(e)},E6=(e,t,n)=>(e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Ms[n]+eo+1)*2]++,e.dyn_dtree[Rp(t)*2]++),e.last_lit===e.lit_bufsize-1);var A6=y6,S6=$p,I6=C6,M6=E6,T6=k6,L6={_tr_init:A6,_tr_stored_block:S6,_tr_flush_block:I6,_tr_tally:M6,_tr_align:T6};const O6=(e,t,n,r)=>{let i=e&65535|0,s=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0};var Ls=O6;const R6=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},N6=new Uint32Array(R6()),D6=(e,t,n,r)=>{const i=N6,s=r+n;e^=-1;for(let o=r;o<s;o++)e=e>>>8^i[(e^t[o])&255];return e^-1};var mt=D6,zr={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"},Qr={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:F6,_tr_stored_block:P6,_tr_flush_block:$6,_tr_tally:hr,_tr_align:B6}=L6,{Z_NO_FLUSH:ei,Z_PARTIAL_FLUSH:j6,Z_FULL_FLUSH:V6,Z_FINISH:pr,Z_BLOCK:Cu,Z_OK:An,Z_STREAM_END:Eu,Z_STREAM_ERROR:tn,Z_DATA_ERROR:z6,Z_BUF_ERROR:Il,Z_DEFAULT_COMPRESSION:U6,Z_FILTERED:H6,Z_HUFFMAN_ONLY:Eo,Z_RLE:Z6,Z_FIXED:G6,Z_DEFAULT_STRATEGY:Y6,Z_UNKNOWN:W6,Z_DEFLATED:Ga}=Qr,q6=9,X6=15,K6=8,J6=29,Q6=256,wc=Q6+1+J6,e7=30,t7=19,n7=2*wc+1,r7=15,Se=3,cr=258,pn=cr+Se+1,i7=32,Ya=42,vc=69,Wo=73,qo=91,Xo=103,Lr=113,os=666,ft=1,to=2,Ur=3,Hi=4,s7=3,ur=(e,t)=>(e.msg=zr[t],t),Au=e=>(e<<1)-(e>4?9:0),lr=e=>{let t=e.length;for(;--t>=0;)e[t]=0};let o7=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,mr=o7;const sr=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Ct=(e,t)=>{$6(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,sr(e.strm)},De=(e,t)=>{e.pending_buf[e.pending++]=t},rs=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},a7=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=Ls(e.adler,t,i,n):e.state.wrap===2&&(e.adler=mt(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Bp=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,s,o=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-pn?e.strstart-(e.w_size-pn):0,u=e.window,c=e.w_mask,d=e.prev,f=e.strstart+cr;let h=u[r+o-1],w=u[r+o];e.prev_length>=e.good_match&&(n>>=2),a>e.lookahead&&(a=e.lookahead);do if(i=t,!(u[i+o]!==w||u[i+o-1]!==h||u[i]!==u[r]||u[++i]!==u[r+1])){r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&r<f);if(s=cr-(f-r),r=f-cr,s>o){if(e.match_start=t,o=s,s>=a)break;h=u[r+o-1],w=u[r+o]}}while((t=d[t&c])>l&&--n!==0);return o<=e.lookahead?o:e.lookahead},Hr=e=>{const t=e.w_size;let n,r,i,s,o;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-pn)){e.window.set(e.window.subarray(t,t+t),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,r=e.hash_size,n=r;do i=e.head[--n],e.head[n]=i>=t?i-t:0;while(--r);r=t,n=r;do i=e.prev[--n],e.prev[n]=i>=t?i-t:0;while(--r);s+=t}if(e.strm.avail_in===0)break;if(r=a7(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=r,e.lookahead+e.insert>=Se)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=mr(e,e.ins_h,e.window[o+1]);e.insert&&(e.ins_h=mr(e,e.ins_h,e.window[o+Se-1]),e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<Se)););}while(e.lookahead<pn&&e.strm.avail_in!==0)},l7=(e,t)=>{let n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Hr(e),e.lookahead===0&&t===ei)return ft;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;const r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Ct(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-pn&&(Ct(e,!1),e.strm.avail_out===0))return ft}return e.insert=0,t===pr?(Ct(e,!0),e.strm.avail_out===0?Ur:Hi):(e.strstart>e.block_start&&(Ct(e,!1),e.strm.avail_out===0),ft)},Ml=(e,t)=>{let n,r;for(;;){if(e.lookahead<pn){if(Hr(e),e.lookahead<pn&&t===ei)return ft;if(e.lookahead===0)break}if(n=0,e.lookahead>=Se&&(e.ins_h=mr(e,e.ins_h,e.window[e.strstart+Se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-pn&&(e.match_length=Bp(e,n)),e.match_length>=Se)if(r=hr(e,e.strstart-e.match_start,e.match_length-Se),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Se){e.match_length--;do e.strstart++,e.ins_h=mr(e,e.ins_h,e.window[e.strstart+Se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=mr(e,e.ins_h,e.window[e.strstart+1]);else r=hr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Ct(e,!1),e.strm.avail_out===0))return ft}return e.insert=e.strstart<Se-1?e.strstart:Se-1,t===pr?(Ct(e,!0),e.strm.avail_out===0?Ur:Hi):e.last_lit&&(Ct(e,!1),e.strm.avail_out===0)?ft:to},li=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<pn){if(Hr(e),e.lookahead<pn&&t===ei)return ft;if(e.lookahead===0)break}if(n=0,e.lookahead>=Se&&(e.ins_h=mr(e,e.ins_h,e.window[e.strstart+Se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Se-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-pn&&(e.match_length=Bp(e,n),e.match_length<=5&&(e.strategy===H6||e.match_length===Se&&e.strstart-e.match_start>4096)&&(e.match_length=Se-1)),e.prev_length>=Se&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Se,r=hr(e,e.strstart-1-e.prev_match,e.prev_length-Se),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=mr(e,e.ins_h,e.window[e.strstart+Se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Se-1,e.strstart++,r&&(Ct(e,!1),e.strm.avail_out===0))return ft}else if(e.match_available){if(r=hr(e,0,e.window[e.strstart-1]),r&&Ct(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ft}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=hr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Se-1?e.strstart:Se-1,t===pr?(Ct(e,!0),e.strm.avail_out===0?Ur:Hi):e.last_lit&&(Ct(e,!1),e.strm.avail_out===0)?ft:to},c7=(e,t)=>{let n,r,i,s;const o=e.window;for(;;){if(e.lookahead<=cr){if(Hr(e),e.lookahead<=cr&&t===ei)return ft;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Se&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){s=e.strstart+cr;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<s);e.match_length=cr-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Se?(n=hr(e,1,e.match_length-Se),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=hr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Ct(e,!1),e.strm.avail_out===0))return ft}return e.insert=0,t===pr?(Ct(e,!0),e.strm.avail_out===0?Ur:Hi):e.last_lit&&(Ct(e,!1),e.strm.avail_out===0)?ft:to},u7=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Hr(e),e.lookahead===0)){if(t===ei)return ft;break}if(e.match_length=0,n=hr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Ct(e,!1),e.strm.avail_out===0))return ft}return e.insert=0,t===pr?(Ct(e,!0),e.strm.avail_out===0?Ur:Hi):e.last_lit&&(Ct(e,!1),e.strm.avail_out===0)?ft:to};function bn(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const as=[new bn(0,0,0,0,l7),new bn(4,4,8,4,Ml),new bn(4,5,16,8,Ml),new bn(4,6,32,32,Ml),new bn(4,4,16,16,li),new bn(8,16,32,32,li),new bn(8,16,128,128,li),new bn(8,32,128,256,li),new bn(32,128,258,1024,li),new bn(32,258,258,4096,li)],d7=e=>{e.window_size=2*e.w_size,lr(e.head),e.max_lazy_match=as[e.level].max_lazy,e.good_match=as[e.level].good_length,e.nice_match=as[e.level].nice_length,e.max_chain_length=as[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Se-1,e.match_available=0,e.ins_h=0};function f7(){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=Ga,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(n7*2),this.dyn_dtree=new Uint16Array((2*e7+1)*2),this.bl_tree=new Uint16Array((2*t7+1)*2),lr(this.dyn_ltree),lr(this.dyn_dtree),lr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(r7+1),this.heap=new Uint16Array(2*wc+1),lr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*wc+1),lr(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 jp=e=>{if(!e||!e.state)return ur(e,tn);e.total_in=e.total_out=0,e.data_type=W6;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Ya:Lr,e.adler=t.wrap===2?0:1,t.last_flush=ei,F6(t),An},Vp=e=>{const t=jp(e);return t===An&&d7(e.state),t},h7=(e,t)=>!e||!e.state||e.state.wrap!==2?tn:(e.state.gzhead=t,An),zp=(e,t,n,r,i,s)=>{if(!e)return tn;let o=1;if(t===U6&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>q6||n!==Ga||r<8||r>15||t<0||t>9||s<0||s>G6)return ur(e,tn);r===8&&(r=9);const a=new f7;return e.state=a,a.strm=e,a.wrap=o,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+Se-1)/Se),a.window=new Uint8Array(a.w_size*2),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new Uint8Array(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=(1+2)*a.lit_bufsize,a.level=t,a.strategy=s,a.method=n,Vp(e)},p7=(e,t)=>zp(e,t,Ga,X6,K6,Y6),m7=(e,t)=>{let n,r;if(!e||!e.state||t>Cu||t<0)return e?ur(e,tn):tn;const i=e.state;if(!e.output||!e.input&&e.avail_in!==0||i.status===os&&t!==pr)return ur(e,e.avail_out===0?Il:tn);i.strm=e;const s=i.last_flush;if(i.last_flush=t,i.status===Ya)if(i.wrap===2)e.adler=0,De(i,31),De(i,139),De(i,8),i.gzhead?(De(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),De(i,i.gzhead.time&255),De(i,i.gzhead.time>>8&255),De(i,i.gzhead.time>>16&255),De(i,i.gzhead.time>>24&255),De(i,i.level===9?2:i.strategy>=Eo||i.level<2?4:0),De(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(De(i,i.gzhead.extra.length&255),De(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=mt(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=vc):(De(i,0),De(i,0),De(i,0),De(i,0),De(i,0),De(i,i.level===9?2:i.strategy>=Eo||i.level<2?4:0),De(i,s7),i.status=Lr);else{let o=Ga+(i.w_bits-8<<4)<<8,a=-1;i.strategy>=Eo||i.level<2?a=0:i.level<6?a=1:i.level===6?a=2:a=3,o|=a<<6,i.strstart!==0&&(o|=i7),o+=31-o%31,i.status=Lr,rs(i,o),i.strstart!==0&&(rs(i,e.adler>>>16),rs(i,e.adler&65535)),e.adler=1}if(i.status===vc)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=mt(e.adler,i.pending_buf,i.pending-n,n)),sr(e),n=i.pending,i.pending===i.pending_buf_size));)De(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=mt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Wo)}else i.status=Wo;if(i.status===Wo)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=mt(e.adler,i.pending_buf,i.pending-n,n)),sr(e),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}i.gzindex<i.gzhead.name.length?r=i.gzhead.name.charCodeAt(i.gzindex++)&255:r=0,De(i,r)}while(r!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=mt(e.adler,i.pending_buf,i.pending-n,n)),r===0&&(i.gzindex=0,i.status=qo)}else i.status=qo;if(i.status===qo)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=mt(e.adler,i.pending_buf,i.pending-n,n)),sr(e),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}i.gzindex<i.gzhead.comment.length?r=i.gzhead.comment.charCodeAt(i.gzindex++)&255:r=0,De(i,r)}while(r!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=mt(e.adler,i.pending_buf,i.pending-n,n)),r===0&&(i.status=Xo)}else i.status=Xo;if(i.status===Xo&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&sr(e),i.pending+2<=i.pending_buf_size&&(De(i,e.adler&255),De(i,e.adler>>8&255),e.adler=0,i.status=Lr)):i.status=Lr),i.pending!==0){if(sr(e),e.avail_out===0)return i.last_flush=-1,An}else if(e.avail_in===0&&Au(t)<=Au(s)&&t!==pr)return ur(e,Il);if(i.status===os&&e.avail_in!==0)return ur(e,Il);if(e.avail_in!==0||i.lookahead!==0||t!==ei&&i.status!==os){let o=i.strategy===Eo?u7(i,t):i.strategy===Z6?c7(i,t):as[i.level].func(i,t);if((o===Ur||o===Hi)&&(i.status=os),o===ft||o===Ur)return e.avail_out===0&&(i.last_flush=-1),An;if(o===to&&(t===j6?B6(i):t!==Cu&&(P6(i,0,0,!1),t===V6&&(lr(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),sr(e),e.avail_out===0))return i.last_flush=-1,An}return t!==pr?An:i.wrap<=0?Eu:(i.wrap===2?(De(i,e.adler&255),De(i,e.adler>>8&255),De(i,e.adler>>16&255),De(i,e.adler>>24&255),De(i,e.total_in&255),De(i,e.total_in>>8&255),De(i,e.total_in>>16&255),De(i,e.total_in>>24&255)):(rs(i,e.adler>>>16),rs(i,e.adler&65535)),sr(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?An:Eu)},g7=e=>{if(!e||!e.state)return tn;const t=e.state.status;return t!==Ya&&t!==vc&&t!==Wo&&t!==qo&&t!==Xo&&t!==Lr&&t!==os?ur(e,tn):(e.state=null,t===Lr?ur(e,z6):An)},_7=(e,t)=>{let n=t.length;if(!e||!e.state)return tn;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==Ya||r.lookahead)return tn;if(i===1&&(e.adler=Ls(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(lr(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(n-r.w_size,n),0),t=l,n=r.w_size}const s=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Hr(r);r.lookahead>=Se;){let l=r.strstart,u=r.lookahead-(Se-1);do r.ins_h=mr(r,r.ins_h,r.window[l+Se-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--u);r.strstart=l,r.lookahead=Se-1,Hr(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Se-1,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=s,r.wrap=i,An};var w7=p7,v7=zp,x7=Vp,b7=jp,y7=h7,k7=m7,C7=g7,E7=_7,A7="pako deflate (from Nodeca project)",gs={deflateInit:w7,deflateInit2:v7,deflateReset:x7,deflateResetKeep:b7,deflateSetHeader:y7,deflate:k7,deflateEnd:C7,deflateSetDictionary:E7,deflateInfo:A7};const S7=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var I7=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(!!n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)S7(n,r)&&(e[r]=n[r])}}return e},M7=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,s=e.length;r<s;r++){let o=e[r];n.set(o,i),i+=o.length}return n},Wa={assign:I7,flattenChunks:M7};let Up=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Up=!1}const Os=new Uint8Array(256);for(let e=0;e<256;e++)Os[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Os[254]=Os[254]=1;var T7=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,s,o=e.length,a=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),s=0,i=0;s<a;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[s++]=n:n<2048?(t[s++]=192|n>>>6,t[s++]=128|n&63):n<65536?(t[s++]=224|n>>>12,t[s++]=128|n>>>6&63,t[s++]=128|n&63):(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63,t[s++]=128|n>>>6&63,t[s++]=128|n&63);return t};const L7=(e,t)=>{if(t<65534&&e.subarray&&Up)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var O7=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const s=new Array(n*2);for(i=0,r=0;r<n;){let o=e[r++];if(o<128){s[i++]=o;continue}let a=Os[o];if(a>4){s[i++]=65533,r+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&r<n;)o=o<<6|e[r++]&63,a--;if(a>1){s[i++]=65533;continue}o<65536?s[i++]=o:(o-=65536,s[i++]=55296|o>>10&1023,s[i++]=56320|o&1023)}return L7(s,i)},R7=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Os[e[n]]>t?n:t},Rs={string2buf:T7,buf2string:O7,utf8border:R7};function N7(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Hp=N7;const Zp=Object.prototype.toString,{Z_NO_FLUSH:D7,Z_SYNC_FLUSH:F7,Z_FULL_FLUSH:P7,Z_FINISH:$7,Z_OK:pa,Z_STREAM_END:B7,Z_DEFAULT_COMPRESSION:j7,Z_DEFAULT_STRATEGY:V7,Z_DEFLATED:z7}=Qr;function no(e){this.options=Wa.assign({level:j7,method:z7,chunkSize:16384,windowBits:15,memLevel:8,strategy:V7},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Hp,this.strm.avail_out=0;let n=gs.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==pa)throw new Error(zr[n]);if(t.header&&gs.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Rs.string2buf(t.dictionary):Zp.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=gs.deflateSetDictionary(this.strm,r),n!==pa)throw new Error(zr[n]);this._dict_set=!0}}no.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?$7:D7,typeof e=="string"?n.input=Rs.string2buf(e):Zp.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(s===F7||s===P7)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=gs.deflate(n,s),i===B7)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=gs.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===pa;if(n.avail_out===0){this.onData(n.output);continue}if(s>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};no.prototype.onData=function(e){this.chunks.push(e)};no.prototype.onEnd=function(e){e===pa&&(this.result=Wa.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function d0(e,t){const n=new no(t);if(n.push(e,!0),n.err)throw n.msg||zr[n.err];return n.result}function U7(e,t){return t=t||{},t.raw=!0,d0(e,t)}function H7(e,t){return t=t||{},t.gzip=!0,d0(e,t)}var Z7=no,G7=d0,Y7=U7,W7=H7,q7=Qr,X7={Deflate:Z7,deflate:G7,deflateRaw:Y7,gzip:W7,constants:q7};const Ao=30,K7=12;var J7=function(t,n){let r,i,s,o,a,l,u,c,d,f,h,w,_,m,g,v,b,x,y,k,C,E,I,S;const T=t.state;r=t.next_in,I=t.input,i=r+(t.avail_in-5),s=t.next_out,S=t.output,o=s-(n-t.avail_out),a=s+(t.avail_out-257),l=T.dmax,u=T.wsize,c=T.whave,d=T.wnext,f=T.window,h=T.hold,w=T.bits,_=T.lencode,m=T.distcode,g=(1<<T.lenbits)-1,v=(1<<T.distbits)-1;e:do{w<15&&(h+=I[r++]<<w,w+=8,h+=I[r++]<<w,w+=8),b=_[h&g];t:for(;;){if(x=b>>>24,h>>>=x,w-=x,x=b>>>16&255,x===0)S[s++]=b&65535;else if(x&16){y=b&65535,x&=15,x&&(w<x&&(h+=I[r++]<<w,w+=8),y+=h&(1<<x)-1,h>>>=x,w-=x),w<15&&(h+=I[r++]<<w,w+=8,h+=I[r++]<<w,w+=8),b=m[h&v];n:for(;;){if(x=b>>>24,h>>>=x,w-=x,x=b>>>16&255,x&16){if(k=b&65535,x&=15,w<x&&(h+=I[r++]<<w,w+=8,w<x&&(h+=I[r++]<<w,w+=8)),k+=h&(1<<x)-1,k>l){t.msg="invalid distance too far back",T.mode=Ao;break e}if(h>>>=x,w-=x,x=s-o,k>x){if(x=k-x,x>c&&T.sane){t.msg="invalid distance too far back",T.mode=Ao;break e}if(C=0,E=f,d===0){if(C+=u-x,x<y){y-=x;do S[s++]=f[C++];while(--x);C=s-k,E=S}}else if(d<x){if(C+=u+d-x,x-=d,x<y){y-=x;do S[s++]=f[C++];while(--x);if(C=0,d<y){x=d,y-=x;do S[s++]=f[C++];while(--x);C=s-k,E=S}}}else if(C+=d-x,x<y){y-=x;do S[s++]=f[C++];while(--x);C=s-k,E=S}for(;y>2;)S[s++]=E[C++],S[s++]=E[C++],S[s++]=E[C++],y-=3;y&&(S[s++]=E[C++],y>1&&(S[s++]=E[C++]))}else{C=s-k;do S[s++]=S[C++],S[s++]=S[C++],S[s++]=S[C++],y-=3;while(y>2);y&&(S[s++]=S[C++],y>1&&(S[s++]=S[C++]))}}else if((x&64)===0){b=m[(b&65535)+(h&(1<<x)-1)];continue n}else{t.msg="invalid distance code",T.mode=Ao;break e}break}}else if((x&64)===0){b=_[(b&65535)+(h&(1<<x)-1)];continue t}else if(x&32){T.mode=K7;break e}else{t.msg="invalid literal/length code",T.mode=Ao;break e}break}}while(r<i&&s<a);y=w>>3,r-=y,w-=y<<3,h&=(1<<w)-1,t.next_in=r,t.next_out=s,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=s<a?257+(a-s):257-(s-a),T.hold=h,T.bits=w};const ci=15,Su=852,Iu=592,Mu=0,Tl=1,Tu=2,Q7=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),e4=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),t4=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),n4=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),r4=(e,t,n,r,i,s,o,a)=>{const l=a.bits;let u=0,c=0,d=0,f=0,h=0,w=0,_=0,m=0,g=0,v=0,b,x,y,k,C,E=null,I=0,S;const T=new Uint16Array(ci+1),L=new Uint16Array(ci+1);let D=null,G=0,z,O,$;for(u=0;u<=ci;u++)T[u]=0;for(c=0;c<r;c++)T[t[n+c]]++;for(h=l,f=ci;f>=1&&T[f]===0;f--);if(h>f&&(h=f),f===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,a.bits=1,0;for(d=1;d<f&&T[d]===0;d++);for(h<d&&(h=d),m=1,u=1;u<=ci;u++)if(m<<=1,m-=T[u],m<0)return-1;if(m>0&&(e===Mu||f!==1))return-1;for(L[1]=0,u=1;u<ci;u++)L[u+1]=L[u]+T[u];for(c=0;c<r;c++)t[n+c]!==0&&(o[L[t[n+c]]++]=c);if(e===Mu?(E=D=o,S=19):e===Tl?(E=Q7,I-=257,D=e4,G-=257,S=256):(E=t4,D=n4,S=-1),v=0,c=0,u=d,C=s,w=h,_=0,y=-1,g=1<<h,k=g-1,e===Tl&&g>Su||e===Tu&&g>Iu)return 1;for(;;){z=u-_,o[c]<S?(O=0,$=o[c]):o[c]>S?(O=D[G+o[c]],$=E[I+o[c]]):(O=32+64,$=0),b=1<<u-_,x=1<<w,d=x;do x-=b,i[C+(v>>_)+x]=z<<24|O<<16|$|0;while(x!==0);for(b=1<<u-1;v&b;)b>>=1;if(b!==0?(v&=b-1,v+=b):v=0,c++,--T[u]===0){if(u===f)break;u=t[n+o[c]]}if(u>h&&(v&k)!==y){for(_===0&&(_=h),C+=d,w=u-_,m=1<<w;w+_<f&&(m-=T[w+_],!(m<=0));)w++,m<<=1;if(g+=1<<w,e===Tl&&g>Su||e===Tu&&g>Iu)return 1;y=v&k,i[y]=h<<24|w<<16|C-s|0}}return v!==0&&(i[C+v]=u-_<<24|64<<16|0),a.bits=h,0};var _s=r4;const i4=0,Gp=1,Yp=2,{Z_FINISH:Lu,Z_BLOCK:s4,Z_TREES:So,Z_OK:Zr,Z_STREAM_END:o4,Z_NEED_DICT:a4,Z_STREAM_ERROR:nn,Z_DATA_ERROR:Wp,Z_MEM_ERROR:qp,Z_BUF_ERROR:l4,Z_DEFLATED:Ou}=Qr,Xp=1,Ru=2,Nu=3,Du=4,Fu=5,Pu=6,$u=7,Bu=8,ju=9,Vu=10,ma=11,Nn=12,Ll=13,zu=14,Ol=15,Uu=16,Hu=17,Zu=18,Gu=19,Io=20,Mo=21,Yu=22,Wu=23,qu=24,Xu=25,Ku=26,Rl=27,Ju=28,Qu=29,nt=30,Kp=31,c4=32,u4=852,d4=592,f4=15,h4=f4,ed=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function p4(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Jp=e=>{if(!e||!e.state)return nn;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Xp,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(u4),t.distcode=t.distdyn=new Int32Array(d4),t.sane=1,t.back=-1,Zr},Qp=e=>{if(!e||!e.state)return nn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Jp(e)},e2=(e,t)=>{let n;if(!e||!e.state)return nn;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15)?nn:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Qp(e))},t2=(e,t)=>{if(!e)return nn;const n=new p4;e.state=n,n.window=null;const r=e2(e,t);return r!==Zr&&(e.state=null),r},m4=e=>t2(e,h4);let td=!0,Nl,Dl;const g4=e=>{if(td){Nl=new Int32Array(512),Dl=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(_s(Gp,e.lens,0,288,Nl,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;_s(Yp,e.lens,0,32,Dl,0,e.work,{bits:5}),td=!1}e.lencode=Nl,e.lenbits=9,e.distcode=Dl,e.distbits=5},n2=(e,t,n,r)=>{let i;const s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),r>=s.wsize?(s.window.set(t.subarray(n-s.wsize,n),0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),s.window.set(t.subarray(n-r,n-r+i),s.wnext),r-=i,r?(s.window.set(t.subarray(n-r,n),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0},_4=(e,t)=>{let n,r,i,s,o,a,l,u,c,d,f,h,w,_,m=0,g,v,b,x,y,k,C,E;const I=new Uint8Array(4);let S,T;const L=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return nn;n=e.state,n.mode===Nn&&(n.mode=Ll),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,u=n.hold,c=n.bits,d=a,f=l,E=Zr;e:for(;;)switch(n.mode){case Xp:if(n.wrap===0){n.mode=Ll;break}for(;c<16;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}if(n.wrap&2&&u===35615){n.check=0,I[0]=u&255,I[1]=u>>>8&255,n.check=mt(n.check,I,2,0),u=0,c=0,n.mode=Ru;break}if(n.flags=0,n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=nt;break}if((u&15)!==Ou){e.msg="unknown compression method",n.mode=nt;break}if(u>>>=4,c-=4,C=(u&15)+8,n.wbits===0)n.wbits=C;else if(C>n.wbits){e.msg="invalid window size",n.mode=nt;break}n.dmax=1<<n.wbits,e.adler=n.check=1,n.mode=u&512?Vu:Nn,u=0,c=0;break;case Ru:for(;c<16;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}if(n.flags=u,(n.flags&255)!==Ou){e.msg="unknown compression method",n.mode=nt;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=nt;break}n.head&&(n.head.text=u>>8&1),n.flags&512&&(I[0]=u&255,I[1]=u>>>8&255,n.check=mt(n.check,I,2,0)),u=0,c=0,n.mode=Nu;case Nu:for(;c<32;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}n.head&&(n.head.time=u),n.flags&512&&(I[0]=u&255,I[1]=u>>>8&255,I[2]=u>>>16&255,I[3]=u>>>24&255,n.check=mt(n.check,I,4,0)),u=0,c=0,n.mode=Du;case Du:for(;c<16;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}n.head&&(n.head.xflags=u&255,n.head.os=u>>8),n.flags&512&&(I[0]=u&255,I[1]=u>>>8&255,n.check=mt(n.check,I,2,0)),u=0,c=0,n.mode=Fu;case Fu:if(n.flags&1024){for(;c<16;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}n.length=u,n.head&&(n.head.extra_len=u),n.flags&512&&(I[0]=u&255,I[1]=u>>>8&255,n.check=mt(n.check,I,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=Pu;case Pu:if(n.flags&1024&&(h=n.length,h>a&&(h=a),h&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(s,s+h),C)),n.flags&512&&(n.check=mt(n.check,r,h,s)),a-=h,s+=h,n.length-=h),n.length))break e;n.length=0,n.mode=$u;case $u:if(n.flags&2048){if(a===0)break e;h=0;do C=r[s+h++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C));while(C&&h<a);if(n.flags&512&&(n.check=mt(n.check,r,h,s)),a-=h,s+=h,C)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=Bu;case Bu:if(n.flags&4096){if(a===0)break e;h=0;do C=r[s+h++],n.head&&C&&n.length<65536&&(n.head.comment+=String.fromCharCode(C));while(C&&h<a);if(n.flags&512&&(n.check=mt(n.check,r,h,s)),a-=h,s+=h,C)break e}else n.head&&(n.head.comment=null);n.mode=ju;case ju:if(n.flags&512){for(;c<16;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}if(u!==(n.check&65535)){e.msg="header crc mismatch",n.mode=nt;break}u=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Nn;break;case Vu:for(;c<32;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}e.adler=n.check=ed(u),u=0,c=0,n.mode=ma;case ma:if(n.havedict===0)return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=u,n.bits=c,a4;e.adler=n.check=1,n.mode=Nn;case Nn:if(t===s4||t===So)break e;case Ll:if(n.last){u>>>=c&7,c-=c&7,n.mode=Rl;break}for(;c<3;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}switch(n.last=u&1,u>>>=1,c-=1,u&3){case 0:n.mode=zu;break;case 1:if(g4(n),n.mode=Io,t===So){u>>>=2,c-=2;break e}break;case 2:n.mode=Hu;break;case 3:e.msg="invalid block type",n.mode=nt}u>>>=2,c-=2;break;case zu:for(u>>>=c&7,c-=c&7;c<32;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=nt;break}if(n.length=u&65535,u=0,c=0,n.mode=Ol,t===So)break e;case Ol:n.mode=Uu;case Uu:if(h=n.length,h){if(h>a&&(h=a),h>l&&(h=l),h===0)break e;i.set(r.subarray(s,s+h),o),a-=h,s+=h,l-=h,o+=h,n.length-=h;break}n.mode=Nn;break;case Hu:for(;c<14;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}if(n.nlen=(u&31)+257,u>>>=5,c-=5,n.ndist=(u&31)+1,u>>>=5,c-=5,n.ncode=(u&15)+4,u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=nt;break}n.have=0,n.mode=Zu;case Zu:for(;n.have<n.ncode;){for(;c<3;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}n.lens[L[n.have++]]=u&7,u>>>=3,c-=3}for(;n.have<19;)n.lens[L[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},E=_s(i4,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,E){e.msg="invalid code lengths set",n.mode=nt;break}n.have=0,n.mode=Gu;case Gu:for(;n.have<n.nlen+n.ndist;){for(;m=n.lencode[u&(1<<n.lenbits)-1],g=m>>>24,v=m>>>16&255,b=m&65535,!(g<=c);){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}if(b<16)u>>>=g,c-=g,n.lens[n.have++]=b;else{if(b===16){for(T=g+2;c<T;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}if(u>>>=g,c-=g,n.have===0){e.msg="invalid bit length repeat",n.mode=nt;break}C=n.lens[n.have-1],h=3+(u&3),u>>>=2,c-=2}else if(b===17){for(T=g+3;c<T;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}u>>>=g,c-=g,C=0,h=3+(u&7),u>>>=3,c-=3}else{for(T=g+7;c<T;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}u>>>=g,c-=g,C=0,h=11+(u&127),u>>>=7,c-=7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=nt;break}for(;h--;)n.lens[n.have++]=C}}if(n.mode===nt)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=nt;break}if(n.lenbits=9,S={bits:n.lenbits},E=_s(Gp,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,E){e.msg="invalid literal/lengths set",n.mode=nt;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},E=_s(Yp,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,E){e.msg="invalid distances set",n.mode=nt;break}if(n.mode=Io,t===So)break e;case Io:n.mode=Mo;case Mo:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=u,n.bits=c,J7(e,f),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,u=n.hold,c=n.bits,n.mode===Nn&&(n.back=-1);break}for(n.back=0;m=n.lencode[u&(1<<n.lenbits)-1],g=m>>>24,v=m>>>16&255,b=m&65535,!(g<=c);){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}if(v&&(v&240)===0){for(x=g,y=v,k=b;m=n.lencode[k+((u&(1<<x+y)-1)>>x)],g=m>>>24,v=m>>>16&255,b=m&65535,!(x+g<=c);){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}u>>>=x,c-=x,n.back+=x}if(u>>>=g,c-=g,n.back+=g,n.length=b,v===0){n.mode=Ku;break}if(v&32){n.back=-1,n.mode=Nn;break}if(v&64){e.msg="invalid literal/length code",n.mode=nt;break}n.extra=v&15,n.mode=Yu;case Yu:if(n.extra){for(T=n.extra;c<T;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Wu;case Wu:for(;m=n.distcode[u&(1<<n.distbits)-1],g=m>>>24,v=m>>>16&255,b=m&65535,!(g<=c);){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}if((v&240)===0){for(x=g,y=v,k=b;m=n.distcode[k+((u&(1<<x+y)-1)>>x)],g=m>>>24,v=m>>>16&255,b=m&65535,!(x+g<=c);){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}u>>>=x,c-=x,n.back+=x}if(u>>>=g,c-=g,n.back+=g,v&64){e.msg="invalid distance code",n.mode=nt;break}n.offset=b,n.extra=v&15,n.mode=qu;case qu:if(n.extra){for(T=n.extra;c<T;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=nt;break}n.mode=Xu;case Xu:if(l===0)break e;if(h=f-l,n.offset>h){if(h=n.offset-h,h>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=nt;break}h>n.wnext?(h-=n.wnext,w=n.wsize-h):w=n.wnext-h,h>n.length&&(h=n.length),_=n.window}else _=i,w=o-n.offset,h=n.length;h>l&&(h=l),l-=h,n.length-=h;do i[o++]=_[w++];while(--h);n.length===0&&(n.mode=Mo);break;case Ku:if(l===0)break e;i[o++]=n.length,l--,n.mode=Mo;break;case Rl:if(n.wrap){for(;c<32;){if(a===0)break e;a--,u|=r[s++]<<c,c+=8}if(f-=l,e.total_out+=f,n.total+=f,f&&(e.adler=n.check=n.flags?mt(n.check,i,f,o-f):Ls(n.check,i,f,o-f)),f=l,(n.flags?u:ed(u))!==n.check){e.msg="incorrect data check",n.mode=nt;break}u=0,c=0}n.mode=Ju;case Ju:if(n.wrap&&n.flags){for(;c<32;){if(a===0)break e;a--,u+=r[s++]<<c,c+=8}if(u!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=nt;break}u=0,c=0}n.mode=Qu;case Qu:E=o4;break e;case nt:E=Wp;break e;case Kp:return qp;case c4:default:return nn}return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=u,n.bits=c,(n.wsize||f!==e.avail_out&&n.mode<nt&&(n.mode<Rl||t!==Lu))&&n2(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,n.wrap&&f&&(e.adler=n.check=n.flags?mt(n.check,i,f,e.next_out-f):Ls(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Nn?128:0)+(n.mode===Io||n.mode===Ol?256:0),(d===0&&f===0||t===Lu)&&E===Zr&&(E=l4),E},w4=e=>{if(!e||!e.state)return nn;let t=e.state;return t.window&&(t.window=null),e.state=null,Zr},v4=(e,t)=>{if(!e||!e.state)return nn;const n=e.state;return(n.wrap&2)===0?nn:(n.head=t,t.done=!1,Zr)},x4=(e,t)=>{const n=t.length;let r,i,s;return!e||!e.state||(r=e.state,r.wrap!==0&&r.mode!==ma)?nn:r.mode===ma&&(i=1,i=Ls(i,t,n,0),i!==r.check)?Wp:(s=n2(e,t,n,n),s?(r.mode=Kp,qp):(r.havedict=1,Zr))};var b4=Qp,y4=e2,k4=Jp,C4=m4,E4=t2,A4=_4,S4=w4,I4=v4,M4=x4,T4="pako inflate (from Nodeca project)",Bn={inflateReset:b4,inflateReset2:y4,inflateResetKeep:k4,inflateInit:C4,inflateInit2:E4,inflate:A4,inflateEnd:S4,inflateGetHeader:I4,inflateSetDictionary:M4,inflateInfo:T4};function L4(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var O4=L4;const r2=Object.prototype.toString,{Z_NO_FLUSH:R4,Z_FINISH:N4,Z_OK:Ns,Z_STREAM_END:Fl,Z_NEED_DICT:Pl,Z_STREAM_ERROR:D4,Z_DATA_ERROR:nd,Z_MEM_ERROR:F4}=Qr;function ro(e){this.options=Wa.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Hp,this.strm.avail_out=0;let n=Bn.inflateInit2(this.strm,t.windowBits);if(n!==Ns)throw new Error(zr[n]);if(this.header=new O4,Bn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Rs.string2buf(t.dictionary):r2.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Bn.inflateSetDictionary(this.strm,t.dictionary),n!==Ns)))throw new Error(zr[n])}ro.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let s,o,a;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?N4:R4,r2.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),s=Bn.inflate(n,o),s===Pl&&i&&(s=Bn.inflateSetDictionary(n,i),s===Ns?s=Bn.inflate(n,o):s===nd&&(s=Pl));n.avail_in>0&&s===Fl&&n.state.wrap>0&&e[n.next_in]!==0;)Bn.inflateReset(n),s=Bn.inflate(n,o);switch(s){case D4:case nd:case Pl:case F4:return this.onEnd(s),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||s===Fl))if(this.options.to==="string"){let l=Rs.utf8border(n.output,n.next_out),u=n.next_out-l,c=Rs.buf2string(n.output,l);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(l,l+u),0),this.onData(c)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(s===Ns&&a===0)){if(s===Fl)return s=Bn.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};ro.prototype.onData=function(e){this.chunks.push(e)};ro.prototype.onEnd=function(e){e===Ns&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Wa.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function f0(e,t){const n=new ro(t);if(n.push(e),n.err)throw n.msg||zr[n.err];return n.result}function P4(e,t){return t=t||{},t.raw=!0,f0(e,t)}var $4=ro,B4=f0,j4=P4,V4=f0,z4=Qr,U4={Inflate:$4,inflate:B4,inflateRaw:j4,ungzip:V4,constants:z4};const{Deflate:H4,deflate:Z4,deflateRaw:G4,gzip:Y4}=X7,{Inflate:W4,inflate:q4,inflateRaw:X4,ungzip:K4}=U4;var J4=H4,Q4=Z4,ev=G4,tv=Y4,nv=W4,rv=q4,iv=X4,sv=K4,ov=Qr,Pb={Deflate:J4,deflate:Q4,deflateRaw:ev,gzip:tv,Inflate:nv,inflate:rv,inflateRaw:iv,ungzip:sv,constants:ov};function Ii(e,t,n){if(!e[t])throw new Error(`Missing ${t} tag`);if(e[t].type!==n)throw new Error(`Expected ${t} to be of type ${n}, but found ${e[t].type}`);return e[t].value}function To(e,t,n,r){const i=Ii(e,t,"list");if(i.type!==n)throw new Error(`Expected ${t} to be a list of ${n}s, but found ${i.type}s`);if(r&&i.value.length!==r)throw new Error(`Expected ${t} to be a list of length ${r}, but found length ${i.value.length}`);return i.value}function i2(e,t){try{return e()}catch{return t}}var K;(function(e){function t(c){return typeof c=="number"?c:void 0}e.readNumber=t;function n(c){return typeof c=="number"?Math.floor(c):void 0}e.readInt=n;function r(c){return typeof c=="string"?c:void 0}e.readString=r;function i(c){return typeof c=="boolean"?c:void 0}e.readBoolean=i;function s(c){return typeof c=="object"&&c!==null?c:void 0}e.readObject=s;function o(c,d){if(!!Array.isArray(c))return c.map(f=>d(f))}e.readArray=o;function a(c,d){var h;const f=(h=s(c))!=null?h:{};return Object.fromEntries(Object.entries(f).map(([w,_])=>[w,d(_)]))}e.readMap=a;function l(c,d,f){const h=d(c);return h?f(h):void 0}e.compose=l;function u(c,d){return typeof c!="string"?d[0]:d.includes(c)?c:d[0]}e.readEnum=u})(K||(K={}));function ws(e){let t=null;return()=>(t==null&&(t=e()),t)}function io(e,t,n){const r=e.get(t);if(r)return r;const i=n(t);return e.set(t,i),i}const or=class{constructor(t,n){M(this,"namespace");M(this,"path");if(this.namespace=t,this.path=n,!t.match(/^[a-z0-9._-]+$/))throw new Error(`Non [a-z0-9._-] character in namespace of ${t}${or.SEPARATOR}${n}`);if(!n.match(/^[a-z0-9/._-]+$/))throw new Error(`Non [a-z0-9/._-] character in path of ${t}${or.SEPARATOR}${n}`)}equals(t){return this===t?!0:this.namespace===t.namespace&&this.path===t.path}toString(){return this.namespace+or.SEPARATOR+this.path}static create(t){return new or(this.DEFAULT_NAMESPACE,t)}static parse(t){const n=t.indexOf(this.SEPARATOR);if(n>=0){const r=n>=1?t.substring(0,n):this.DEFAULT_NAMESPACE,i=t.substring(n+1);return new or(r,i)}return new or(this.DEFAULT_NAMESPACE,t)}};let Be=or;M(Be,"DEFAULT_NAMESPACE","minecraft"),M(Be,"SEPARATOR",":");const ln=class{constructor(t,n={}){M(this,"properties");M(this,"name");this.properties=n,this.name=typeof t=="string"?Be.parse(t):t}getName(){return this.name}getProperties(){return this.properties}getProperty(t){return this.properties[t]}isFluid(){return this.is(ln.WATER)||this.is(ln.LAVA)}equals(t){return this.name.equals(t.name)?Object.keys(this.properties).every(n=>t.properties[n]===this.properties[n]):!1}is(t){return this.name.equals(t.name)}toString(){return Object.keys(this.properties).length===0?this.name.toString():`${this.name.toString()}[${Object.entries(this.properties).map(([t,n])=>t+"="+n).join(",")}]`}static fromNbt(t){const n=Be.parse(Ii(t.value,"Name","string")),r=i2(()=>Ii(t.value,"Properties","compound"),{}),i=Object.keys(r).reduce((s,o)=>Me(fe({},s),{[o]:Ii(r,o,"string")}),{});return new ln(n,i)}static fromJson(t){var s,o;const n=(s=K.readObject(t))!=null?s:{},r=Be.parse((o=K.readString(n.Name))!=null?o:ln.STONE.name.toString()),i=K.readMap(n.Properties,a=>{var l;return(l=K.readString(a))!=null?l:""});return new ln(r,i)}};let $e=ln;M($e,"AIR",new ln(Be.create("air"))),M($e,"STONE",new ln(Be.create("stone"))),M($e,"WATER",new ln(Be.create("water"),{level:"0"})),M($e,"LAVA",new ln(Be.create("lava"),{level:"0"}));const bi=class{constructor(t){M(this,"minY");M(this,"storage");M(this,"palette");this.minY=t,this.storage=Array(bi.SIZE).fill(0),this.palette=[$e.AIR]}get minBlockY(){return this.minY<<4}index(t,n,r){return(t<<8)+(n<<4)+r}getBlockState(t,n,r){var s;const i=this.storage[this.index(t,n,r)];return(s=this.palette[i])!=null?s:$e.AIR}setBlockState(t,n,r,i){let s=this.palette.findIndex(o=>o.equals(i));s===-1&&(s=this.palette.length,this.palette.push(i)),this.storage[this.index(t,n,r)]=s}};let xi=bi;M(xi,"WIDTH",16),M(xi,"SIZE",bi.WIDTH*bi.WIDTH*bi.WIDTH);class av{constructor(t,n,r){M(this,"minY");M(this,"height");M(this,"pos");M(this,"sections");this.minY=t,this.height=n,this.pos=r,this.sections=Array(this.sectionsCount).fill(null)}get maxY(){return this.minY+this.height}get minSection(){return this.minY>>4}get maxSection(){return(this.maxY-1>>4)+1}get sectionsCount(){return this.maxSection-this.minSection}getSectionIndex(t){return(t>>4)-this.minSection}getBlockState(t){var o;const[n,r,i]=t,s=this.sections[this.getSectionIndex(r)];return(o=s==null?void 0:s.getBlockState(n&15,r&15,i&15))!=null?o:$e.AIR}setBlockState(t,n){const[r,i,s]=t,o=this.getSectionIndex(i);let a=this.sections[o];if(a===null){if(n.equals($e.AIR))return;a=this.getOrCreateSection(o)}a.setBlockState(r&15,i&15,s&15,n)}getOrCreateSection(t){return this.sections[t]==null&&(this.sections[t]=new xi(this.minSection+t)),this.sections[t]}}var Lt;(function(e){function t(c,d){return[c,d]}e.create=t;function n(c){return[c[0]>>4,c[2]>>4]}e.fromBlockPos=n;function r(c){return[Number(c)&4294967295,Number(c>>BigInt(32))]}e.fromLong=r;function i(c){return s(c[0],c[1])}e.toLong=i;function s(c,d){return BigInt(c&4294967295)|BigInt(d&4294967295)<<BigInt(32)}e.asLong=s;function o(c){return c[0]<<4}e.minBlockX=o;function a(c){return c[1]<<4}e.minBlockZ=a;function l(c){return(c[0]<<4)+15}e.maxBlockX=l;function u(c){return(c[1]<<4)+15}e.maxBlockZ=u})(Lt||(Lt={}));var Gr;(function(e){function t(i,s){return o=>typeof o=="string"?r(i,Be.parse(o)):n(s(o))}e.parser=t;function n(i){return{value:()=>i,key:()=>{}}}e.direct=n;function r(i,s){return{value:()=>i.getOrThrow(s),key:()=>s}}e.reference=r})(Gr||(Gr={}));const Ma=class{constructor(t,n){M(this,"key");M(this,"parser");M(this,"storage",new Map);M(this,"builtin",new Map);this.key=t,this.parser=n}register(t,n,r){return this.storage.set(t.toString(),n),r&&this.builtin.set(t.toString(),n),Gr.reference(this,t)}delete(t){const n=this.storage.delete(t.toString());return this.builtin.delete(t.toString()),n}keys(){return[...this.storage.keys()].map(t=>Be.parse(t))}has(t){return this.storage.has(t.toString())}get(t){return this.storage.get(t.toString())}getOrThrow(t){const n=this.storage.get(t.toString());if(n===void 0)throw new Error(`Missing key in ${this.key.toString()}: ${t.toString()}`);return n}parse(t){if(!this.parser)throw new Error(`No parser exists for ${this.key.toString()}`);return this.parser(t)}clear(){this.storage.clear();for(const[t,n]of this.builtin.entries())this.storage.set(t,n);return this}assign(t){if(!this.key.equals(t.key))throw new Error(`Cannot assign registry of type ${t.key.toString()} to registry of type ${this.key.toString()}`);for(const n of t.keys())this.storage.set(n.toString(),t.getOrThrow(n));return this}cloneEmpty(){return new Ma(this.key,this.parser)}forEach(t){for(const[n,r]of this.storage.entries())t(Be.parse(n),r,this)}map(t){return[...this.storage.entries()].map(([n,r])=>t(Be.parse(n),r,this))}};let Mi=Ma;M(Mi,"REGISTRY",new Ma(Be.create("root")));class h0{constructor(t,n=[],r=[]){M(this,"size");M(this,"palette");M(this,"blocks");M(this,"blocksMap",[]);this.size=t,this.palette=n,this.blocks=r,r.forEach(i=>{if(!this.isInside(i.pos))throw new Error(`Found block at ${i.pos} which is outside the structure bounds ${this.size}`);this.blocksMap[i.pos[0]*t[1]*t[2]+i.pos[1]*t[2]+i.pos[2]]=i})}getSize(){return this.size}addBlock(t,n,r,i){if(!this.isInside(t))throw new Error(`Cannot add block at ${t} outside the structure bounds ${this.size}`);const s=new $e(n,r);let o=this.palette.findIndex(a=>a.equals(s));return o===-1&&(o=this.palette.length,this.palette.push(s)),this.blocks.push({pos:t,state:o,nbt:i}),this.blocksMap[t[0]*this.size[1]*this.size[2]+t[1]*this.size[2]+t[2]]={pos:t,state:o,nbt:i},this}getBlocks(){return this.blocks.map(t=>({pos:t.pos,state:this.palette[t.state],nbt:t.nbt}))}getBlock(t){if(!this.isInside(t))return null;const n=this.blocksMap[t[0]*this.size[1]*this.size[2]+t[1]*this.size[2]+t[2]];return n?{pos:n.pos,state:this.palette[n.state],nbt:n.nbt}:null}isInside(t){return t[0]>=0&&t[0]<this.size[0]&&t[1]>=0&&t[1]<this.size[1]&&t[2]>=0&&t[2]<this.size[2]}static fromNbt(t){const n=To(t.value,"size","int",3),r=To(t.value,"palette","compound").map(s=>$e.fromNbt({name:"",value:s})),i=To(t.value,"blocks","compound").map(s=>{const o=To(s,"pos","int",3),a=Ii(s,"state","int"),l=i2(()=>Ii(s,"nbt","compound"),void 0);return{pos:o,state:a,nbt:l}});return new h0(n,r,i)}}function Dn(e){return e*e}function Ds(e,t,n){return Math.max(t,Math.min(n,e))}function Gn(e,t,n){return t+e*(n-t)}function _a(e,t,n,r,i,s){return Gn(t,Gn(e,n,r),Gn(e,i,s))}function s2(e,t,n,r,i,s,o,a,l,u,c){return Gn(n,_a(e,t,r,i,s,o),_a(e,t,a,l,u,c))}function vs(e,t,n){return e===0?t():e===1?n():t()+e*(n()-t())}function xc(e,t,n,r,i,s){return vs(t,()=>vs(e,n,r),()=>vs(e,i,s))}function o2(e,t,n,r,i,s,o,a,l,u,c){return vs(n,()=>xc(e,t,r,i,s,o),()=>xc(e,t,a,l,u,c))}function qa(e,t,n){return n<0?e:n>1?t:Gn(n,e,t)}function p0(e,t,n){return(e-t)/(n-t)}function Ko(e){return e*e*e*(e*(e*6-15)+10)}function Fs(e,t,n,r,i){return Gn(p0(e,t,n),r,i)}function Xa(e,t,n,r,i){return qa(r,i,p0(e,t,n))}function a2(e,t,n){let r=t-e;for(;r>0;){const i=Math.floor(r/2),s=e+i;if(n(s)){r=i;continue}e=s+1,r-=i+1}return e}function m0(e,t,n){let r=BigInt(e*3129871)^BigInt(n)*BigInt(116129781)^BigInt(t);return r=r*r*BigInt(42317861)+r*BigInt(11),r>>BigInt(16)}function wa(e,t,n,r,i,s,o,a){return BigInt(e)<<BigInt(56)|BigInt(t)<<BigInt(48)|BigInt(n)<<BigInt(40)|BigInt(r)<<BigInt(32)|BigInt(i)<<BigInt(24)|BigInt(s)<<BigInt(16)|BigInt(o)<<BigInt(8)|BigInt(a)}function lv(e){return(e&e-1)===0}function cv(e){return e-=1,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>18,e|=e>>32,e+1}var va;(function(e){function t(n){return typeof n=="object"&&n!==null&&"minValue"in n&&"maxValue"in n}e.is=t})(va||(va={}));var xa;(function(e){function t(i,s){var u,c,d,f;if(typeof i=="number")return new n(i);const o=(u=K.readObject(i))!=null?u:{},a=new r(s(o.coordinate)),l=(c=K.readArray(o.points,h=>{var w;return(w=K.readObject(h))!=null?w:{}}))!=null?c:[];if(l.length===0)return new n(0);for(const h of l){const w=(d=K.readNumber(h.location))!=null?d:0,_=t(h.value,s),m=(f=K.readNumber(h.derivative))!=null?f:0;a.addPoint(w,_,m)}return a}e.fromJson=t;class n{constructor(s){M(this,"value");this.value=s}compute(){return this.value}min(){return this.value}max(){return this.value}mapAll(){return this}calculateMinMax(){}}e.Constant=n;class r{constructor(s,o=[],a=[],l=[]){M(this,"coordinate");M(this,"locations");M(this,"values");M(this,"derivatives");M(this,"calculatedMin",Number.NEGATIVE_INFINITY);M(this,"calculatedMax",Number.POSITIVE_INFINITY);this.coordinate=s,this.locations=o,this.values=a,this.derivatives=l}compute(s){const o=this.coordinate.compute(s),a=a2(0,this.locations.length,b=>o<this.locations[b])-1,l=this.locations.length-1;if(a<0)return this.values[0].compute(s)+this.derivatives[0]*(o-this.locations[0]);if(a===l)return this.values[l].compute(s)+this.derivatives[l]*(o-this.locations[l]);const u=this.locations[a],c=this.locations[a+1],d=this.derivatives[a],f=this.derivatives[a+1],h=(o-u)/(c-u),w=this.values[a].compute(s),_=this.values[a+1].compute(s),m=d*(c-u)-(_-w),g=-f*(c-u)+(_-w);return Gn(h,w,_)+h*(1-h)*Gn(h,m,g)}min(){return this.calculatedMin}max(){return this.calculatedMax}mapAll(s){return new r(s(this.coordinate),this.locations,this.values.map(o=>o.mapAll(s)),this.derivatives)}addPoint(s,o,a=0){return this.locations.push(s),this.values.push(typeof o=="number"?new e.Constant(o):o),this.derivatives.push(a),this}calculateMinMax(){if(!va.is(this.coordinate))return;const s=this.locations.length-1;var o=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;const l=this.coordinate.minValue(),u=this.coordinate.maxValue();for(const d of this.values)d.calculateMinMax();if(l<this.locations[0]){const d=r.linearExtend(l,this.locations,this.values[0].min(),this.derivatives,0),f=r.linearExtend(l,this.locations,this.values[0].max(),this.derivatives,0);o=Math.min(o,Math.min(d,f)),a=Math.max(a,Math.max(d,f))}if(u>this.locations[s]){const d=r.linearExtend(u,this.locations,this.values[s].min(),this.derivatives,s),f=r.linearExtend(u,this.locations,this.values[s].max(),this.derivatives,s);o=Math.min(o,Math.min(d,f)),a=Math.max(a,Math.max(d,f))}for(const d of this.values)o=Math.min(o,d.min()),a=Math.max(a,d.max());for(var c=0;c<s;++c){const d=this.locations[c],h=this.locations[c+1]-d,w=this.values[c],_=this.values[c+1],m=w.min(),g=w.max(),v=_.min(),b=_.max(),x=this.derivatives[c],y=this.derivatives[c+1];if(x!==0||y!==0){const k=x*h,C=y*h,E=Math.min(m,v),I=Math.max(g,b),S=k-b+m,T=k-v+g,L=-C+v-g,D=-C+b-m,G=Math.min(S,L),z=Math.max(T,D);o=Math.min(o,E+.25*G),a=Math.max(a,I+.25*z)}}this.calculatedMin=o,this.calculatedMax=a}static linearExtend(s,o,a,l,u){const c=l[u];return c==0?a:a+c*(s-o[u])}}e.MultiPoint=r})(xa||(xa={}));var l2={exports:{}},c2={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],i=0,s=0;i<n.length;i++,s+=8)r[s>>>5]|=n[i]<<24-s%32;return r},wordsToBytes:function(n){for(var r=[],i=0;i<n.length*32;i+=8)r.push(n[i>>>5]>>>24-i%32&255);return r},bytesToHex:function(n){for(var r=[],i=0;i<n.length;i++)r.push((n[i]>>>4).toString(16)),r.push((n[i]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],i=0;i<n.length;i+=2)r.push(parseInt(n.substr(i,2),16));return r},bytesToBase64:function(n){for(var r=[],i=0;i<n.length;i+=3)for(var s=n[i]<<16|n[i+1]<<8|n[i+2],o=0;o<4;o++)i*8+o*6<=n.length*8?r.push(e.charAt(s>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],i=0,s=0;i<n.length;s=++i%4)s!=0&&r.push((e.indexOf(n.charAt(i-1))&Math.pow(2,-2*s+8)-1)<<s*2|e.indexOf(n.charAt(i))>>>6-s*2);return r}};c2.exports=t})();var bc={utf8:{stringToBytes:function(e){return bc.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(bc.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},rd=bc;/*!
|
|
* Determine if an object is a Buffer
|
|
*
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
* @license MIT
|
|
*/var uv=function(e){return e!=null&&(u2(e)||dv(e)||!!e._isBuffer)};function u2(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function dv(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&u2(e.slice(0,0))}(function(){var e=c2.exports,t=rd.utf8,n=uv,r=rd.bin,i=function(s,o){s.constructor==String?o&&o.encoding==="binary"?s=r.stringToBytes(s):s=t.stringToBytes(s):n(s)?s=Array.prototype.slice.call(s,0):!Array.isArray(s)&&s.constructor!==Uint8Array&&(s=s.toString());for(var a=e.bytesToWords(s),l=s.length*8,u=1732584193,c=-271733879,d=-1732584194,f=271733878,h=0;h<a.length;h++)a[h]=(a[h]<<8|a[h]>>>24)&16711935|(a[h]<<24|a[h]>>>8)&4278255360;a[l>>>5]|=128<<l%32,a[(l+64>>>9<<4)+14]=l;for(var w=i._ff,_=i._gg,m=i._hh,g=i._ii,h=0;h<a.length;h+=16){var v=u,b=c,x=d,y=f;u=w(u,c,d,f,a[h+0],7,-680876936),f=w(f,u,c,d,a[h+1],12,-389564586),d=w(d,f,u,c,a[h+2],17,606105819),c=w(c,d,f,u,a[h+3],22,-1044525330),u=w(u,c,d,f,a[h+4],7,-176418897),f=w(f,u,c,d,a[h+5],12,1200080426),d=w(d,f,u,c,a[h+6],17,-1473231341),c=w(c,d,f,u,a[h+7],22,-45705983),u=w(u,c,d,f,a[h+8],7,1770035416),f=w(f,u,c,d,a[h+9],12,-1958414417),d=w(d,f,u,c,a[h+10],17,-42063),c=w(c,d,f,u,a[h+11],22,-1990404162),u=w(u,c,d,f,a[h+12],7,1804603682),f=w(f,u,c,d,a[h+13],12,-40341101),d=w(d,f,u,c,a[h+14],17,-1502002290),c=w(c,d,f,u,a[h+15],22,1236535329),u=_(u,c,d,f,a[h+1],5,-165796510),f=_(f,u,c,d,a[h+6],9,-1069501632),d=_(d,f,u,c,a[h+11],14,643717713),c=_(c,d,f,u,a[h+0],20,-373897302),u=_(u,c,d,f,a[h+5],5,-701558691),f=_(f,u,c,d,a[h+10],9,38016083),d=_(d,f,u,c,a[h+15],14,-660478335),c=_(c,d,f,u,a[h+4],20,-405537848),u=_(u,c,d,f,a[h+9],5,568446438),f=_(f,u,c,d,a[h+14],9,-1019803690),d=_(d,f,u,c,a[h+3],14,-187363961),c=_(c,d,f,u,a[h+8],20,1163531501),u=_(u,c,d,f,a[h+13],5,-1444681467),f=_(f,u,c,d,a[h+2],9,-51403784),d=_(d,f,u,c,a[h+7],14,1735328473),c=_(c,d,f,u,a[h+12],20,-1926607734),u=m(u,c,d,f,a[h+5],4,-378558),f=m(f,u,c,d,a[h+8],11,-2022574463),d=m(d,f,u,c,a[h+11],16,1839030562),c=m(c,d,f,u,a[h+14],23,-35309556),u=m(u,c,d,f,a[h+1],4,-1530992060),f=m(f,u,c,d,a[h+4],11,1272893353),d=m(d,f,u,c,a[h+7],16,-155497632),c=m(c,d,f,u,a[h+10],23,-1094730640),u=m(u,c,d,f,a[h+13],4,681279174),f=m(f,u,c,d,a[h+0],11,-358537222),d=m(d,f,u,c,a[h+3],16,-722521979),c=m(c,d,f,u,a[h+6],23,76029189),u=m(u,c,d,f,a[h+9],4,-640364487),f=m(f,u,c,d,a[h+12],11,-421815835),d=m(d,f,u,c,a[h+15],16,530742520),c=m(c,d,f,u,a[h+2],23,-995338651),u=g(u,c,d,f,a[h+0],6,-198630844),f=g(f,u,c,d,a[h+7],10,1126891415),d=g(d,f,u,c,a[h+14],15,-1416354905),c=g(c,d,f,u,a[h+5],21,-57434055),u=g(u,c,d,f,a[h+12],6,1700485571),f=g(f,u,c,d,a[h+3],10,-1894986606),d=g(d,f,u,c,a[h+10],15,-1051523),c=g(c,d,f,u,a[h+1],21,-2054922799),u=g(u,c,d,f,a[h+8],6,1873313359),f=g(f,u,c,d,a[h+15],10,-30611744),d=g(d,f,u,c,a[h+6],15,-1560198380),c=g(c,d,f,u,a[h+13],21,1309151649),u=g(u,c,d,f,a[h+4],6,-145523070),f=g(f,u,c,d,a[h+11],10,-1120210379),d=g(d,f,u,c,a[h+2],15,718787259),c=g(c,d,f,u,a[h+9],21,-343485551),u=u+v>>>0,c=c+b>>>0,d=d+x>>>0,f=f+y>>>0}return e.endian([u,c,d,f])};i._ff=function(s,o,a,l,u,c,d){var f=s+(o&a|~o&l)+(u>>>0)+d;return(f<<c|f>>>32-c)+o},i._gg=function(s,o,a,l,u,c,d){var f=s+(o&l|a&~l)+(u>>>0)+d;return(f<<c|f>>>32-c)+o},i._hh=function(s,o,a,l,u,c,d){var f=s+(o^a^l)+(u>>>0)+d;return(f<<c|f>>>32-c)+o},i._ii=function(s,o,a,l,u,c,d){var f=s+(a^(o|~l))+(u>>>0)+d;return(f<<c|f>>>32-c)+o},i._blocksize=16,i._digestsize=16,l2.exports=function(s,o){if(s==null)throw new Error("Illegal argument "+s);var a=e.wordsToBytes(i(s,o));return o&&o.asBytes?a:o&&o.asString?r.bytesToString(a):e.bytesToHex(a)}})();var d2=l2.exports;const cn=class{constructor(t){M(this,"seed",BigInt(0));this.setSeed(t)}fork(){return new cn(this.nextLong())}forkPositional(){return new f2(this.nextLong())}setSeed(t){this.seed=t^cn.MULTIPLIER&cn.MODULUS_MASK}advance(){this.seed=this.seed*cn.MULTIPLIER+cn.INCREMENT&cn.MODULUS_MASK}consume(t){for(let n=0;n<t;n+=1)this.advance()}next(t){this.advance();const n=Number(this.seed>>BigInt(cn.MODULUS_BITS-t));return n>2147483647?n-4294967296:n}nextInt(t){if(t===void 0)return this.next(32);if((t&t-1)==0)return Number(BigInt(t)*BigInt(this.next(31))>>BigInt(31));let n,r;for(;(n=this.next(31))-(r=n%t)+(t-1)<0;);return r}nextLong(){return(BigInt(this.next(32))<<BigInt(32))+BigInt(this.next(32))}nextFloat(){return this.next(24)*cn.FLOAT_MULTIPLIER}nextDouble(){const t=this.next(30);return this.advance(),t*cn.DOUBLE_MULTIPLIER}};let Tt=cn;M(Tt,"MODULUS_BITS",48),M(Tt,"MODULUS_MASK",BigInt("281474976710655")),M(Tt,"MULTIPLIER",BigInt("25214903917")),M(Tt,"INCREMENT",BigInt("11")),M(Tt,"FLOAT_MULTIPLIER",1/Math.pow(2,24)),M(Tt,"DOUBLE_MULTIPLIER",1/Math.pow(2,30));class f2{constructor(t){M(this,"seed");this.seed=t}at(t,n,r){const i=m0(t,n,r);return new Tt(i^this.seed)}fromHashOf(t){const n=d2(t,{asBytes:!0}),r=wa(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]);return new Tt(r^this.seed)}seedKey(){return[this.seed,BigInt(0)]}}const ge=class{constructor(t){M(this,"seed",[BigInt(0),BigInt(0)]);this.seed=t}static create(t){return new ge(ge.upgradeSeedTo128bit(t))}static mixStafford13(t){return t=(t^t>>ge.BIGINT_30)*ge.STAFFORD_1&ge.MAX_ULONG,t=(t^t>>ge.BIGINT_27)*ge.STAFFORD_2&ge.MAX_ULONG,(t^t>>ge.BIGINT_31)&ge.MAX_ULONG}static upgradeSeedTo128bit(t){t<0&&(t+=ge.POW2_60);const n=t^ge.SILVER_RATIO_64,r=n+ge.GOLDEN_RATIO_64&ge.MAX_ULONG;return[ge.mixStafford13(n),ge.mixStafford13(r)]}static rotateLeft(t,n){return t<<n&ge.MAX_ULONG|t>>ge.BIGINT_64-n}setSeed(t){this.seed=ge.upgradeSeedTo128bit(t)}fork(){return new ge([this.next(),this.next()])}forkPositional(){return new h2(this.next(),this.next())}next(){const t=this.seed[0];let n=this.seed[1];const r=ge.rotateLeft(t+n&ge.MAX_ULONG,ge.BIGINT_17)+t&ge.MAX_ULONG;return n^=t,this.seed=[ge.rotateLeft(t,ge.BIGINT_49)^n^n<<ge.BIGINT_21&ge.MAX_ULONG,ge.rotateLeft(n,ge.BIGINT_28)],r}nextLong(){let t=this.next();return t>ge.POW2_63&&(t-=ge.POW2_60),t}consume(t){let n=this.seed[0],r=this.seed[1];for(let i=0;i<t;i+=1)r^=n,n=ge.rotateLeft(n,ge.BIGINT_49)^r^r<<ge.BIGINT_21,r=ge.rotateLeft(r,ge.BIGINT_28);this.seed=[n,r]}nextBits(t){return this.next()>>BigInt(64-t)}nextInt(t){let n=this.next()&ge.MAX_UINT;if(t){const r=BigInt(t);let i=n*r,s=i&ge.MAX_UINT;if(s<r){const a=((~r&ge.MAX_UINT)+ge.BIGINT_1)%r;for(;s<a;)n=this.next()&ge.MAX_UINT,i=n*r,s=i&ge.MAX_UINT}const o=i>>ge.BIGINT_32;return Number(o)}else{let r=Number(n);return r>=2147483648&&(r-=4294967296),r}}nextFloat(){return Number(this.nextBits(24))*ge.FLOAT_MULTIPLIER}nextDouble(){return Number(this.nextBits(53))*ge.DOUBLE_MULTIPLIER}parityConfigString(){return"seedLo: "+this.seed[0]+", seedHi: "+this.seed[1]}};let He=ge;M(He,"SILVER_RATIO_64",BigInt("7640891576956012809")),M(He,"GOLDEN_RATIO_64",BigInt("-7046029254386353131")),M(He,"FLOAT_MULTIPLIER",1/Math.pow(2,24)),M(He,"DOUBLE_MULTIPLIER",11102230246251565e-32),M(He,"BIGINT_1",BigInt(1)),M(He,"BIGINT_17",BigInt(17)),M(He,"BIGINT_21",BigInt(21)),M(He,"BIGINT_27",BigInt(27)),M(He,"BIGINT_28",BigInt(28)),M(He,"BIGINT_30",BigInt(30)),M(He,"BIGINT_31",BigInt(31)),M(He,"BIGINT_32",BigInt(32)),M(He,"BIGINT_49",BigInt(49)),M(He,"BIGINT_64",BigInt(64)),M(He,"STAFFORD_1",BigInt("-4658895280553007687")),M(He,"STAFFORD_2",BigInt("-7723592293110705685")),M(He,"MAX_ULONG",BigInt("0xFFFFFFFFFFFFFFFF")),M(He,"POW2_60",BigInt("0x10000000000000000")),M(He,"POW2_63",BigInt("0x8000000000000000")),M(He,"MAX_UINT",BigInt(4294967295));class h2{constructor(t,n){M(this,"seedLo");M(this,"seedHi");this.seedLo=t,this.seedHi=n}at(t,n,r){const s=m0(t,n,r)^this.seedLo;return new He([s,this.seedHi])}fromHashOf(t){const n=d2(t,{asBytes:!0}),r=wa(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),i=wa(n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]);return new He([r^this.seedLo,i^this.seedHi])}seedKey(){return[this.seedLo,this.seedHi]}}const kn=class{constructor(t){M(this,"p");M(this,"xo");M(this,"yo");M(this,"zo");this.xo=t.nextDouble()*256,this.yo=t.nextDouble()*256,this.zo=t.nextDouble()*256,this.p=Array(256);for(let n=0;n<256;n+=1)this.p[n]=n;for(let n=0;n<256;n+=1){const r=t.nextInt(256-n),i=this.p[n];this.p[n]=this.p[n+r],this.p[n+r]=i}}sample2D(t,n){let r,i,s;const o=(t+n)*kn.F2,a=Math.floor(t+o),l=a-(r=(a+(i=Math.floor(n+o)))*kn.G2),u=t-l;let c,d;u>(s=n-(i-r))?(c=1,d=0):(c=0,d=1);const f=u-c+kn.G2,h=s-d+kn.G2,w=u-1+2*kn.G2,_=s-1+2*kn.G2,m=a&255,g=i&255,v=this.P(m+this.P(g))%12,b=this.P(m+c+this.P(g+d))%12,x=this.P(m+1+this.P(g+1))%12,y=this.getCornerNoise3D(v,u,s,0,.5),k=this.getCornerNoise3D(b,f,h,0,.5),C=this.getCornerNoise3D(x,w,_,0,.5);return 70*(y+k+C)}sample(t,n,r){const i=(t+n+r)*.3333333333333333,s=Math.floor(t+i),o=Math.floor(n+i),a=Math.floor(r+i),l=(s+o+a)*.16666666666666666,u=t-(s-l),c=n-(o-l),d=r-(a-l);let f,h,w,_,m,g;u>=c?c>=d?(f=1,h=0,w=0,_=1,m=1,g=0):u>=d?(f=1,h=0,w=0,_=1,m=0,g=1):(f=0,h=0,w=1,_=1,m=0,g=1):c<d?(f=0,h=0,w=1,_=0,m=1,g=1):u<d?(f=0,h=1,w=0,_=0,m=1,g=1):(f=0,h=1,w=0,_=1,m=1,g=0);const v=u-f+.16666666666666666,b=c-h+.16666666666666666,x=d-w+.16666666666666666,y=u-_+.3333333333333333,k=c-m+.3333333333333333,C=d-g+.3333333333333333,E=u-.5,I=c-.5,S=d-.5,T=s&255,L=o&255,D=a&255,G=this.P(T+this.P(L+this.P(D)))%12,z=this.P(T+f+this.P(L+h+this.P(D+w)))%12,O=this.P(T+_+this.P(L+m+this.P(D+g)))%12,$=this.P(T+1+this.P(L+1+this.P(D+1)))%12,U=this.getCornerNoise3D(G,u,c,d,.6),Q=this.getCornerNoise3D(z,v,b,x,.6),N=this.getCornerNoise3D(O,y,k,C,.6),A=this.getCornerNoise3D($,E,I,S,.6);return 32*(U+Q+N+A)}P(t){return this.p[t&255]}getCornerNoise3D(t,n,r,i,s){let o,a=s-n*n-r*r-i*i;return a<0?o=0:(a*=a,o=a*a*kn.gradDot(t,n,r,i)),o}static gradDot(t,n,r,i){const s=kn.GRADIENT[t&15];return s[0]*n+s[1]*r+s[2]*i}};let Et=kn;M(Et,"GRADIENT",[[1,1,0],[-1,1,0],[1,-1,0],[-1,-1,0],[1,0,1],[-1,0,1],[1,0,-1],[-1,0,-1],[0,1,1],[0,-1,1],[0,1,-1],[0,-1,-1],[1,1,0],[0,-1,1],[-1,1,0],[0,-1,-1]]),M(Et,"F2",.5*(Math.sqrt(3)-1)),M(Et,"G2",(3-Math.sqrt(3))/6);class yc{constructor(t){M(this,"p");M(this,"xo");M(this,"yo");M(this,"zo");this.xo=t.nextDouble()*256,this.yo=t.nextDouble()*256,this.zo=t.nextDouble()*256,this.p=Array(256);for(let n=0;n<256;n+=1)this.p[n]=n>127?n-256:n;for(let n=0;n<256;n+=1){const r=t.nextInt(256-n),i=this.p[n];this.p[n]=this.p[n+r],this.p[n+r]=i}}sample(t,n,r,i=0,s=0){const o=t+this.xo,a=n+this.yo,l=r+this.zo,u=Math.floor(o),c=Math.floor(a),d=Math.floor(l),f=o-u,h=a-c,w=l-d;let _=0;if(i!==0){const m=s>=0&&s<h?s:h;_=Math.floor(m/i+1e-7)*i}return this.sampleAndLerp(u,c,d,f,h-_,w,h)}sampleAndLerp(t,n,r,i,s,o,a){const l=this.P(t),u=this.P(t+1),c=this.P(l+n),d=this.P(l+n+1),f=this.P(u+n),h=this.P(u+n+1),w=Et.gradDot(this.P(c+r),i,s,o),_=Et.gradDot(this.P(f+r),i-1,s,o),m=Et.gradDot(this.P(d+r),i,s-1,o),g=Et.gradDot(this.P(h+r),i-1,s-1,o),v=Et.gradDot(this.P(c+r+1),i,s,o-1),b=Et.gradDot(this.P(f+r+1),i-1,s,o-1),x=Et.gradDot(this.P(d+r+1),i,s-1,o-1),y=Et.gradDot(this.P(h+r+1),i-1,s-1,o-1),k=Ko(i),C=Ko(a),E=Ko(o);return s2(k,C,E,w,_,m,g,v,b,x,y)}P(t){return this.p[t&255]&255}}class Ge{constructor(t,n,r){M(this,"noiseLevels");M(this,"amplitudes");M(this,"lowestFreqInputFactor");M(this,"lowestFreqValueFactor");M(this,"maxValue");if(t instanceof He){const i=t.forkPositional();this.noiseLevels=Array(r.length);for(let s=0;s<r.length;s++)if(r[s]!==0){const o=n+s;this.noiseLevels[s]=new yc(i.fromHashOf("octave_"+o))}}else{if(1-n<r.length)throw new Error("Positive octaves are not allowed when using LegacyRandom");this.noiseLevels=Array(r.length);for(let i=-n;i>=0;i-=1)i<r.length&&r[i]!==0?this.noiseLevels[i]=new yc(t):t.consume(262)}this.amplitudes=r,this.lowestFreqInputFactor=Math.pow(2,n),this.lowestFreqValueFactor=Math.pow(2,r.length-1)/(Math.pow(2,r.length)-1),this.maxValue=this.edgeValue(2)}sample(t,n,r,i=0,s=0,o=!1){let a=0,l=this.lowestFreqInputFactor,u=this.lowestFreqValueFactor;for(let c=0;c<this.noiseLevels.length;c+=1){const d=this.noiseLevels[c];d&&(a+=this.amplitudes[c]*u*d.sample(Ge.wrap(t*l),o?-d.yo:Ge.wrap(n*l),Ge.wrap(r*l),i*l,s*l)),l*=2,u/=2}return a}getOctaveNoise(t){return this.noiseLevels[this.noiseLevels.length-1-t]}edgeValue(t){let n=0,r=this.lowestFreqValueFactor;for(let i=0;i<this.noiseLevels.length;i+=1)this.noiseLevels[i]&&(n+=this.amplitudes[i]*t*r),r/=2;return n}static wrap(t){return t-Math.floor(t/33554432+.5)*33554432}}class p2{constructor(t,n,r,i,s,o){M(this,"xzScale");M(this,"yScale");M(this,"xzFactor");M(this,"yFactor");M(this,"smearScaleMultiplier");M(this,"minLimitNoise");M(this,"maxLimitNoise");M(this,"mainNoise");M(this,"xzMultiplier");M(this,"yMultiplier");M(this,"maxValue");this.xzScale=n,this.yScale=r,this.xzFactor=i,this.yFactor=s,this.smearScaleMultiplier=o,this.minLimitNoise=new Ge(t,-15,[1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0]),this.maxLimitNoise=new Ge(t,-15,[1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0]),this.mainNoise=new Ge(t,-7,[1,1,1,1,1,0,0,0]),this.xzMultiplier=684.412*n,this.yMultiplier=684.412*r,this.maxValue=this.minLimitNoise.edgeValue(this.yScale+2)}sample(t,n,r){const i=t*this.xzMultiplier,s=n*this.yMultiplier,o=r*this.xzMultiplier,a=i/this.xzFactor,l=s/this.yFactor,u=o/this.xzFactor,c=this.yMultiplier*this.smearScaleMultiplier,d=c/this.yFactor;let f,h=0,w=1;for(let g=0;g<8;g+=1){if(f=this.mainNoise.getOctaveNoise(g),f){const v=Ge.wrap(a*w),b=Ge.wrap(l*w),x=Ge.wrap(u*w);h+=f.sample(v,b,x,d*w,l*w)/w}w/=2}h=(h/10+1)/2,w=1;let _=0,m=0;for(let g=0;g<16;g+=1){const v=Ge.wrap(i*w),b=Ge.wrap(s*w),x=Ge.wrap(o*w),y=c*w;h<1&&(f=this.minLimitNoise.getOctaveNoise(g))&&(_+=f.sample(v,b,x,y,s*w)/w),h>0&&(f=this.maxLimitNoise.getOctaveNoise(g))&&(m+=f.sample(v,b,x,y,s*w)/w),w/=2}return qa(_/512,m/512,h)/128}}const xs=class{constructor(t,{firstOctave:n,amplitudes:r}){M(this,"valueFactor");M(this,"first");M(this,"second");M(this,"maxValue");this.first=new Ge(t,n,r),this.second=new Ge(t,n,r);let i=1/0,s=-1/0;for(let a=0;a<r.length;a+=1)r[a]!==0&&(i=Math.min(i,a),s=Math.max(s,a));const o=.1*(1+1/(s-i+1));this.valueFactor=1/6/o,this.maxValue=(this.first.maxValue+this.second.maxValue)*this.valueFactor}sample(t,n,r){const i=t*xs.INPUT_FACTOR,s=n*xs.INPUT_FACTOR,o=r*xs.INPUT_FACTOR;return(this.first.sample(t,n,r)+this.second.sample(i,s,o))*this.valueFactor}};let Dr=xs;M(Dr,"INPUT_FACTOR",1.0181268882175227);var Yr;(function(e){function t(r,i){return{firstOctave:r,amplitudes:i}}e.create=t;function n(r){var s,o,a;const i=(s=K.readObject(r))!=null?s:{};return{firstOctave:(o=K.readInt(i.firstOctave))!=null?o:0,amplitudes:(a=K.readArray(i.amplitudes,l=>{var u;return(u=K.readNumber(l))!=null?u:0}))!=null?a:[]}}e.fromJson=n})(Yr||(Yr={}));class fv{constructor(t,n){M(this,"noiseLevels");M(this,"highestFreqInputFactor");M(this,"highestFreqValueFactor");const r=n[n.length-1],s=-n[0]+r+1,o=new Set(n),a=new Et(t);this.noiseLevels=Array(s),r>=0&&r<s&&o.has(0)&&(this.noiseLevels[r]=a);for(let l=r+1;l<s;l+=1)l>=0&&o.has(r-l)?this.noiseLevels[l]=new Et(t):t.consume(262);if(r>0)throw new Error("Positive octaves are not allowed");this.highestFreqInputFactor=Math.pow(2,r),this.highestFreqValueFactor=1/(Math.pow(2,s)-1)}sample(t,n,r){let i=0,s=this.highestFreqInputFactor,o=this.highestFreqValueFactor;for(let a=0;a<this.noiseLevels.length;a+=1){const l=this.noiseLevels[a];l&&(i+=o*l.sample2D(t*s+(r?l.xo:0),n*s+(r?l.yo:0))),s/=2,o*=2}return i}}var Wr;(function(e){e.NOISE=t("worldgen/noise",Yr.fromJson),e.DENSITY_FUNCTION=t("worldgen/density_function",n=>ke.fromJson(n));function t(n,r){const i=new Mi(Be.create(n),r);return Mi.REGISTRY.register(i.key,i),i}})(Wr||(Wr={}));class ke{minValue(){return-this.maxValue()}mapAll(t){return t.map(this)}}(function(e){function t(Q,N,A){return{x:Q,y:N,z:A}}e.context=t;class n extends e{constructor(A){super();M(this,"input");this.input=A}compute(A){return this.transform(A,this.input.compute(A))}}const r=Gr.parser(Wr.NOISE,Yr.fromJson);function i(Q,N=i){var B,q,ie,j,J,_e,ve,We,Ze,Ke,vt,Ie,je,Ve,ae,wn,Ue,Ne,tt,xt;if(typeof Q=="string")return new o(Gr.reference(Wr.DENSITY_FUNCTION,Be.parse(Q)));if(typeof Q=="number")return new s(Q);const A=(B=K.readObject(Q))!=null?B:{},R=(q=K.readString(A.type))==null?void 0:q.replace(/^minecraft:/,"");switch(R){case"blend_alpha":return new a(1,0,1);case"blend_offset":return new a(0,-1/0,1/0);case"beardifier":return new a(0,-1/0,1/0);case"old_blended_noise":return new l((ie=K.readNumber(A.xz_scale))!=null?ie:1,(j=K.readNumber(A.y_scale))!=null?j:1,(J=K.readNumber(A.xz_factor))!=null?J:80,(_e=K.readNumber(A.y_factor))!=null?_e:160,(ve=K.readNumber(A.smear_scale_multiplier))!=null?ve:8);case"flat_cache":return new c(N(A.argument));case"interpolated":return new w(N(A.argument));case"cache_2d":return new f(N(A.argument));case"cache_once":return new h(N(A.argument));case"cache_all_in_cell":return new d(N(A.argument));case"noise":return new _((We=K.readNumber(A.xz_scale))!=null?We:1,(Ze=K.readNumber(A.y_scale))!=null?Ze:1,r(A.noise));case"end_islands":return new m;case"weird_scaled_sampler":return new v(N(A.input),K.readEnum(A.rarity_value_mapper,g),r(A.noise));case"shifted_noise":return new b(N(A.shift_x),N(A.shift_y),N(A.shift_z),(Ke=K.readNumber(A.xz_scale))!=null?Ke:1,(vt=K.readNumber(A.y_scale))!=null?vt:1,r(A.noise));case"range_choice":return new x(N(A.input),(Ie=K.readNumber(A.min_inclusive))!=null?Ie:0,(je=K.readNumber(A.max_exclusive))!=null?je:1,N(A.when_in_range),N(A.when_out_of_range));case"shift_a":return new k(r(A.argument));case"shift_b":return new C(r(A.argument));case"shift":return new E(r(A.argument));case"blend_density":return new I(N(A.argument));case"clamp":return new S(N(A.input),(Ve=K.readNumber(A.min))!=null?Ve:0,(ae=K.readNumber(A.max))!=null?ae:1);case"abs":case"square":case"cube":case"half_negative":case"quarter_negative":case"squeeze":return new T(R,N(A.argument));case"add":case"mul":case"min":case"max":return new D(K.readEnum(R,L),N(A.argument1),N(A.argument2));case"spline":return new G(xa.fromJson(A.spline,N));case"constant":return new s((wn=K.readNumber(A.argument))!=null?wn:0);case"y_clamped_gradient":return new z((Ue=K.readInt(A.from_y))!=null?Ue:-4064,(Ne=K.readInt(A.to_y))!=null?Ne:4062,(tt=K.readNumber(A.from_value))!=null?tt:-4064,(xt=K.readNumber(A.to_value))!=null?xt:4062)}return s.ZERO}e.fromJson=i;const O=class extends e{constructor(A){super();M(this,"value");this.value=A}compute(){return this.value}minValue(){return this.value}maxValue(){return this.value}};let s=O;M(s,"ZERO",new O(0)),M(s,"ONE",new O(1)),e.Constant=s;class o extends e{constructor(A){super();M(this,"holder");this.holder=A}compute(A){return this.holder.value().compute(A)}minValue(){return this.holder.value().minValue()}maxValue(){return this.holder.value().maxValue()}}e.HolderHolder=o;class a extends e.Constant{constructor(A,R,B){super(A);M(this,"min");M(this,"max");this.min=R,this.max=B}minValue(){return this.min}maxValue(){return this.max}}e.ConstantMinMax=a;class l extends e{constructor(A,R,B,q,ie,j){super();M(this,"xzScale");M(this,"yScale");M(this,"xzFactor");M(this,"yFactor");M(this,"smearScaleMultiplier");M(this,"blendedNoise");this.xzScale=A,this.yScale=R,this.xzFactor=B,this.yFactor=q,this.smearScaleMultiplier=ie,this.blendedNoise=j}compute(A){var R,B;return(B=(R=this.blendedNoise)==null?void 0:R.sample(A.x,A.y,A.z))!=null?B:0}maxValue(){var A,R;return(R=(A=this.blendedNoise)==null?void 0:A.maxValue)!=null?R:0}}e.OldBlendedNoise=l;class u extends e{constructor(A){super();M(this,"wrapped");this.wrapped=A}minValue(){return this.wrapped.minValue()}maxValue(){return this.wrapped.maxValue()}}class c extends u{constructor(A){super(A);M(this,"lastQuartX");M(this,"lastQuartZ");M(this,"lastValue",0)}compute(A){const R=A.x>>2,B=A.z>>2;return(this.lastQuartX!==R||this.lastQuartZ!==B)&&(this.lastValue=this.wrapped.compute(e.context(R<<2,0,B<<2)),this.lastQuartX=R,this.lastQuartZ=B),this.lastValue}mapAll(A){return A.map(new c(this.wrapped.mapAll(A)))}}e.FlatCache=c;class d extends u{constructor(N){super(N)}compute(N){return this.wrapped.compute(N)}mapAll(N){return N.map(new d(this.wrapped.mapAll(N)))}}e.CacheAllInCell=d;class f extends u{constructor(A){super(A);M(this,"lastBlockX");M(this,"lastBlockZ");M(this,"lastValue",0)}compute(A){const R=A.x,B=A.z;return(this.lastBlockX!==R||this.lastBlockZ!==B)&&(this.lastValue=this.wrapped.compute(A),this.lastBlockX=R,this.lastBlockZ=B),this.lastValue}mapAll(A){return A.map(new f(this.wrapped.mapAll(A)))}}e.Cache2D=f;class h extends u{constructor(A){super(A);M(this,"lastBlockX");M(this,"lastBlockY");M(this,"lastBlockZ");M(this,"lastValue",0)}compute(A){const R=A.x,B=A.y,q=A.z;return(this.lastBlockX!==R||this.lastBlockY!==B||this.lastBlockZ!==q)&&(this.lastValue=this.wrapped.compute(A),this.lastBlockX=R,this.lastBlockY=B,this.lastBlockZ=q),this.lastValue}mapAll(A){return A.map(new h(this.wrapped.mapAll(A)))}}e.CacheOnce=h;class w extends u{constructor(A,R=4,B=4){super(A);M(this,"cellWidth");M(this,"cellHeight");M(this,"values");this.cellWidth=R,this.cellHeight=B,this.values=new Map}compute({x:A,y:R,z:B}){const q=this.cellWidth,ie=this.cellHeight,j=(A%q+q)%q/q,J=(R%ie+ie)%ie/ie,_e=(B%q+q)%q/q,ve=Math.floor(A/q)*q,We=Math.floor(R/ie)*ie,Ze=Math.floor(B/q)*q;return o2(j,J,_e,()=>this.computeCorner(ve,We,Ze),()=>this.computeCorner(ve+q,We,Ze),()=>this.computeCorner(ve,We+ie,Ze),()=>this.computeCorner(ve+q,We+ie,Ze),()=>this.computeCorner(ve,We,Ze+q),()=>this.computeCorner(ve+q,We,Ze+q),()=>this.computeCorner(ve,We+ie,Ze+q),()=>this.computeCorner(ve+q,We+ie,Ze+q))}computeCorner(A,R,B){return io(this.values,`${A} ${R} ${B}`,()=>this.wrapped.compute(e.context(A,R,B)))}mapAll(A){return A.map(new w(this.wrapped.mapAll(A)))}withCellSize(A,R){return new w(this.wrapped,A,R)}}e.Interpolated=w;class _ extends e{constructor(A,R,B,q){super();M(this,"xzScale");M(this,"yScale");M(this,"noiseData");M(this,"noise");this.xzScale=A,this.yScale=R,this.noiseData=B,this.noise=q}compute(A){var R,B;return(B=(R=this.noise)==null?void 0:R.sample(A.x*this.xzScale,A.y*this.yScale,A.z*this.xzScale))!=null?B:0}maxValue(){var A,R;return(R=(A=this.noise)==null?void 0:A.maxValue)!=null?R:2}}e.Noise=_;class m extends e{compute(){return 0}minValue(){return-.84375}maxValue(){return .5625}}const g=["type_1","type_2"],$=class extends n{constructor(A,R,B,q){super(A);M(this,"rarityValueMapper");M(this,"noiseData");M(this,"noise");M(this,"mapper");this.rarityValueMapper=R,this.noiseData=B,this.noise=q,this.mapper=$.ValueMapper[this.rarityValueMapper]}transform(A,R){if(!this.noise)return 0;const B=this.mapper(R);return B*Math.abs(this.noise.sample(A.x/B,A.y/B,A.z/B))}mapAll(A){return A.map(new $(this.input.mapAll(A),this.rarityValueMapper,this.noiseData,this.noise))}minValue(){return 0}maxValue(){return this.rarityValueMapper==="type_1"?2:3}static rarityValueMapper1(A){return A<-.5?.75:A<0?1:A<.5?1.5:2}static rarityValueMapper2(A){return A<-.75?.5:A<-.5?.75:A<.5?1:A<.75?2:3}};let v=$;M(v,"ValueMapper",{type_1:$.rarityValueMapper1,type_2:$.rarityValueMapper2}),e.WeirdScaledSampler=v;class b extends _{constructor(A,R,B,q,ie,j,J){super(q,ie,j,J);M(this,"shiftX");M(this,"shiftY");M(this,"shiftZ");this.shiftX=A,this.shiftY=R,this.shiftZ=B}compute(A){var ie,j;const R=A.x*this.xzScale+this.shiftX.compute(A),B=A.y*this.yScale+this.shiftY.compute(A),q=A.z*this.xzScale+this.shiftZ.compute(A);return(j=(ie=this.noise)==null?void 0:ie.sample(R,B,q))!=null?j:0}mapAll(A){return A.map(new b(this.shiftX.mapAll(A),this.shiftY.mapAll(A),this.shiftZ.mapAll(A),this.xzScale,this.yScale,this.noiseData,this.noise))}}e.ShiftedNoise=b;class x extends e{constructor(A,R,B,q,ie){super();M(this,"input");M(this,"minInclusive");M(this,"maxExclusive");M(this,"whenInRange");M(this,"whenOutOfRange");this.input=A,this.minInclusive=R,this.maxExclusive=B,this.whenInRange=q,this.whenOutOfRange=ie}compute(A){const R=this.input.compute(A);return this.minInclusive<=R&&R<this.maxExclusive?this.whenInRange.compute(A):this.whenOutOfRange.compute(A)}mapAll(A){return A.map(new x(this.input.mapAll(A),this.minInclusive,this.maxExclusive,this.whenInRange.mapAll(A),this.whenOutOfRange.mapAll(A)))}minValue(){return Math.min(this.whenInRange.minValue(),this.whenOutOfRange.minValue())}maxValue(){return Math.max(this.whenInRange.maxValue(),this.whenOutOfRange.maxValue())}}e.RangeChoice=x;class y extends e{constructor(A,R){super();M(this,"noiseData");M(this,"offsetNoise");this.noiseData=A,this.offsetNoise=R}compute(A){var R,B;return(B=(R=this.offsetNoise)==null?void 0:R.sample(A.x*.25,A.y*.25,A.z*.25))!=null?B:0}maxValue(){var A,R;return((R=(A=this.offsetNoise)==null?void 0:A.maxValue)!=null?R:2)*4}}e.ShiftNoise=y;class k extends y{constructor(N,A){super(N,A)}compute(N){return super.compute(e.context(N.x,0,N.z))}withNewNoise(N){return new k(this.noiseData,N)}}e.ShiftA=k;class C extends y{constructor(N,A){super(N,A)}compute(N){return super.compute(e.context(N.z,N.x,0))}withNewNoise(N){return new C(this.noiseData,N)}}e.ShiftB=C;class E extends y{constructor(N,A){super(N,A)}withNewNoise(N){return new E(this.noiseData,N)}}e.Shift=E;class I extends n{constructor(N){super(N)}transform(N,A){return A}mapAll(N){return N.map(new I(this.input.mapAll(N)))}minValue(){return-1/0}maxValue(){return 1/0}}e.BlendDensity=I;class S extends n{constructor(A,R,B){super(A);M(this,"min");M(this,"max");this.min=R,this.max=B}transform(A,R){return Ds(R,this.min,this.max)}mapAll(A){return A.map(new S(this.input.mapAll(A),this.min,this.max))}minValue(){return this.min}maxValue(){return this.max}}e.Clamp=S;const U=class extends n{constructor(A,R,B,q){super(R);M(this,"type");M(this,"min");M(this,"max");M(this,"transformer");this.type=A,this.min=B,this.max=q,this.transformer=U.MappedTypes[this.type]}transform(A,R){return this.transformer(R)}mapAll(A){return A.map(new U(this.type,this.input.mapAll(A)))}minValue(){var A;return(A=this.min)!=null?A:-1/0}maxValue(){var A;return(A=this.max)!=null?A:1/0}withMinMax(){const A=this.input.minValue();let R=this.transformer(A),B=this.transformer(this.input.maxValue());return(this.type==="abs"||this.type==="square")&&(B=Math.max(R,B),R=Math.max(0,A)),new U(this.type,this.input,R,B)}};let T=U;M(T,"MappedTypes",{abs:A=>Math.abs(A),square:A=>A*A,cube:A=>A*A*A,half_negative:A=>A>0?A:A*.5,quarter_negative:A=>A>0?A:A*.25,squeeze:A=>{const R=Ds(A,-1,1);return R/2-R*R*R/24}}),e.Mapped=T;const L=["add","mul","min","max"];class D extends e{constructor(A,R,B,q,ie){super();M(this,"type");M(this,"argument1");M(this,"argument2");M(this,"min");M(this,"max");this.type=A,this.argument1=R,this.argument2=B,this.min=q,this.max=ie}compute(A){const R=this.argument1.compute(A);switch(this.type){case"add":return R+this.argument2.compute(A);case"mul":return R===0?0:R*this.argument2.compute(A);case"min":return R<this.argument2.minValue()?R:Math.min(R,this.argument2.compute(A));case"max":return R>this.argument2.maxValue()?R:Math.max(R,this.argument2.compute(A))}}mapAll(A){return A.map(new D(this.type,this.argument1.mapAll(A),this.argument2.mapAll(A)))}minValue(){var A;return(A=this.min)!=null?A:-1/0}maxValue(){var A;return(A=this.max)!=null?A:1/0}withMinMax(){const A=this.argument1.minValue(),R=this.argument2.minValue(),B=this.argument1.maxValue(),q=this.argument2.maxValue();(this.type==="min"||this.type==="max")&&(A>=q||R>=B)&&console.warn(`Creating a ${this.type} function between two non-overlapping inputs`);let ie,j;switch(this.type){case"add":ie=A+R,j=B+q;break;case"mul":ie=A>0&&R>0?A*R||0:B<0&&q<0?B*q||0:Math.min(A*q||0,R*B||0),j=A>0&&R>0?B*q||0:B<0&&q<0?A*R||0:Math.max(A*R||0,B*q||0);break;case"min":ie=Math.min(A,R),j=Math.min(B,q);break;case"max":ie=Math.max(A,R),j=Math.max(B,q);break}return new D(this.type,this.argument1,this.argument2,ie,j)}}e.Ap2=D;class G extends e{constructor(A){super();M(this,"spline");this.spline=A}compute(A){return this.spline.compute(A)}mapAll(A){const R=this.spline.mapAll(B=>B instanceof e?B.mapAll(A):B);return R.calculateMinMax(),A.map(new G(R))}minValue(){return this.spline.min()}maxValue(){return this.spline.max()}}e.Spline=G;class z extends e{constructor(A,R,B,q){super();M(this,"fromY");M(this,"toY");M(this,"fromValue");M(this,"toValue");this.fromY=A,this.toY=R,this.fromValue=B,this.toValue=q}compute(A){return Xa(A.y,this.fromY,this.toY,this.fromValue,this.toValue)}minValue(){return Math.min(this.fromValue,this.toValue)}maxValue(){return Math.max(this.fromValue,this.toValue)}}e.YClampedGradient=z})(ke||(ke={}));class Ps{constructor(t,n){M(this,"level");M(this,"type");this.level=t,this.type=n}at(t){return t<this.level?this.type:$e.AIR}}var ba;(function(e){function t(n){return{compute({x:r,y:i,z:s},o){if(!(o>0))return n(r,i,s).at(i)}}}e.createDisabled=t})(ba||(ba={}));const Kt=class{constructor(t,n,r,i,s,o,a,l,u,c){M(this,"noiseChunk");M(this,"barrierNoise");M(this,"fluidLevelFloodednessNoise");M(this,"fluidLevelSpreadNoise");M(this,"lavaNoise");M(this,"random");M(this,"globalFluidPicker");M(this,"minGridX");M(this,"minGridY");M(this,"minGridZ");M(this,"gridSizeX");M(this,"gridSizeZ");M(this,"gridSize");M(this,"aquiferCache");M(this,"aquiferLocationCache");this.noiseChunk=t,this.barrierNoise=r,this.fluidLevelFloodednessNoise=i,this.fluidLevelSpreadNoise=s,this.lavaNoise=o,this.random=a,this.globalFluidPicker=c,this.minGridX=this.gridX(Lt.minBlockX(n))-1,this.gridSizeX=this.gridX(Lt.maxBlockX(n))+1-this.minGridX+1,this.minGridY=this.gridY(l)-1,this.minGridZ=this.gridZ(Lt.minBlockZ(n))-1,this.gridSizeZ=this.gridZ(Lt.maxBlockZ(n))+1-this.minGridZ+1;const d=this.gridY(l+u)+1-this.minGridY+1;this.gridSize=this.gridSizeX*d*this.gridSizeZ,this.aquiferCache=Array(this.gridSize).fill(void 0),this.aquiferLocationCache=Array(this.gridSize).fill(Dt.ZERO)}compute({x:t,y:n,z:r},i){if(i<=0){if(this.globalFluidPicker(t,n,r).at(n).is($e.LAVA))return $e.LAVA;{const s=this.gridX(t-5),o=this.gridY(n+1),a=this.gridZ(r-5);let l=Number.MAX_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,c=Number.MAX_SAFE_INTEGER,d=Dt.ZERO,f=Dt.ZERO,h=Dt.ZERO;for(let y=0;y<=1;y+=1)for(let k=-1;k<=1;k+=1)for(let C=0;C<=1;C+=1){const E=this.getLocation(s+y,o+k,a+C),I=Dt.magnitude(E);l>=I?(h=f,f=d,d=E,c=u,u=l,l=I):u>=I?(h=f,f=E,c=u,u=I):c>=I&&(h=E,c=I)}const w=this.getStatus(d),_=this.getStatus(f),m=this.getStatus(h),g=Kt.similarity(l,u),v=Kt.similarity(l,c),b=Kt.similarity(u,c);let x;if(w.at(n).is($e.WATER)&&this.globalFluidPicker(t,n-1,r).at(n-1).is($e.LAVA))x=1;else if(g>-1){const y=ws(()=>this.barrierNoise.compute(ke.context(t,n*.5,r))),k=this.calculatePressure(n,w,_,y),C=this.calculatePressure(n,w,m,y),E=this.calculatePressure(n,_,m,y),I=Math.max(k,C*Math.max(0,v),E*Math.max(b));x=Math.max(0,2*Math.max(0,g)*I)}else x=0;if(i+x<=0)return w.at(n)}}}static similarity(t,n){return 1-Math.abs(n-t)/25}calculatePressure(t,n,r,i){const s=n.at(t),o=r.at(t);if(s.is($e.LAVA)&&o.is($e.WATER)||s.is($e.WATER)&&o.is($e.LAVA))return 1;const a=Math.abs(n.level-r.level);if(a===0)return 0;const l=(n.level+r.level)/2,u=t+.5-l,c=a/2-Math.abs(u),d=u>0?c>0?c/1.5:c/2.5:c>-3?(c+3)/3:(c+3)/10;return d<-2||d>2?d:d+i()}getStatus(t){const[n,r,i]=t,s=this.getIndex(this.gridX(n),this.gridY(r),this.gridZ(i)),o=this.aquiferCache[s];if(o!==void 0)return o;const a=this.computeStatus(n,r,i);return this.aquiferCache[s]=a,a}computeStatus(t,n,r){const i=this.globalFluidPicker(t,n,r);let s=Number.MAX_SAFE_INTEGER,o=!1;for(const[w,_]of Kt.SURFACE_SAMPLING){const m=t+(_<<4),g=r+(_<<4),v=this.noiseChunk.getPreliminarySurfaceLevel(m,g);s=Math.min(s,v);const b=w===0&&_===0;if(b&&n-12>v+8)return i;if(b||n+12>v+8){const x=this.globalFluidPicker(m,v+8,g);if(!x.at(v+8).is($e.AIR)){if(b)return x;o=!0}}}const a=o?Xa(s+8-n,0,64,1,0):0,l=Ds(this.fluidLevelFloodednessNoise.compute(ke.context(t,n*.67,r)),-1,1);if(l>Fs(a,1,0,-.3,.8))return i;if(l<=Fs(a,1,0,-.8,.4))return new Ps(Number.MIN_SAFE_INTEGER,i.type);const u=Math.floor(n/40),c=this.fluidLevelSpreadNoise.compute(ke.context(Math.floor(t/16),u,Math.floor(r/16))),d=u*40+20+Math.floor(c/3)*3,f=Math.min(s,d),h=this.getFluidType(t,n,r,i.type,d);return new Ps(f,h)}getFluidType(t,n,r,i,s){if(s<=-10){const o=this.lavaNoise.compute(ke.context(Math.floor(t/64),Math.floor(n/40),Math.floor(r/64)));if(Math.abs(o)>.3)return $e.LAVA}return i}getLocation(t,n,r){const i=this.getIndex(t,n,r),s=this.aquiferLocationCache[i];if(Dt.equals(s,Dt.ZERO))return s;const o=this.random.at(t,n,r),a=Dt.create(t*Kt.X_SPACING+o.nextInt(10),n*Kt.Y_SPACING+o.nextInt(9),r*Kt.Z_SPACING+o.nextInt(10));return this.aquiferLocationCache[i]=a,a}getIndex(t,n,r){const i=t-this.minGridX,s=n-this.minGridY,o=r-this.minGridZ,a=(s*this.gridSizeZ+o)*this.gridSizeX+i;if(a<0||a>=this.gridSize)throw new Error(`Invalid aquifer index at ${t} ${n} ${r}: 0 <= ${a} < ${this.gridSize}`);return a}gridX(t){return Math.floor(t/Kt.X_SPACING)}gridY(t){return Math.floor(t/Kt.Y_SPACING)}gridZ(t){return Math.floor(t/Kt.Z_SPACING)}};let Sr=Kt;M(Sr,"X_SPACING",16),M(Sr,"Y_SPACING",12),M(Sr,"Z_SPACING",16),M(Sr,"SURFACE_SAMPLING",[[-2,-1],[-1,-1],[0,-1],[1,-1],[-3,0],[-2,0],[-1,0],[0,0],[1,0],[-2,1],[-1,1],[0,1],[1,1]]);var $s;(function(e){function n(_,m,g,v,b,x){return new a(_,m,g,v,b,x)}e.target=n;function r(_,m,g,v,b,x,y){return new o(i(_),i(m),i(g),i(v),i(b),i(x),y)}e.parameters=r;function i(_,m){return typeof _=="number"?new s(_,m!=null?m:_):_}e.param=i;class s{constructor(m,g){M(this,"min");M(this,"max");this.min=m,this.max=g}distance(m){const g=(typeof m=="number"?m:m.min)-this.max,v=this.min-(typeof m=="number"?m:m.max);return g>0?g:Math.max(v,0)}union(m){return new s(Math.min(this.min,m.min),Math.max(this.max,m.max))}static fromJson(m){var b;if(typeof m=="number")return new s(m,m);const[g,v]=(b=K.readArray(m,x=>K.readNumber(x)))!=null?b:[];return new s(g!=null?g:0,v!=null?v:0)}}e.Param=s;class o{constructor(m,g,v,b,x,y,k){M(this,"temperature");M(this,"humidity");M(this,"continentalness");M(this,"erosion");M(this,"depth");M(this,"weirdness");M(this,"offset");this.temperature=m,this.humidity=g,this.continentalness=v,this.erosion=b,this.depth=x,this.weirdness=y,this.offset=k}fittness(m){return Dn(this.temperature.distance(m.temperature))+Dn(this.humidity.distance(m.humidity))+Dn(this.continentalness.distance(m.continentalness))+Dn(this.erosion.distance(m.erosion))+Dn(this.depth.distance(m.depth))+Dn(this.weirdness.distance(m.weirdness))+Dn(this.offset-m.offset)}space(){return[this.temperature,this.humidity,this.continentalness,this.erosion,this.depth,this.weirdness,new s(this.offset,this.offset)]}static fromJson(m){var v,b;const g=(v=K.readObject(m))!=null?v:{};return new o(s.fromJson(g.temperature),s.fromJson(g.humidity),s.fromJson(g.continentalness),s.fromJson(g.erosion),s.fromJson(g.depth),s.fromJson(g.weirdness),(b=K.readInt(g.offset))!=null?b:0)}}e.ParamPoint=o;class a{constructor(m,g,v,b,x,y){M(this,"temperature");M(this,"humidity");M(this,"continentalness");M(this,"erosion");M(this,"depth");M(this,"weirdness");this.temperature=m,this.humidity=g,this.continentalness=v,this.erosion=b,this.depth=x,this.weirdness=y}get offset(){return 0}toArray(){return[this.temperature,this.humidity,this.continentalness,this.erosion,this.depth,this.weirdness,this.offset]}}e.TargetPoint=a;class l{constructor(m){M(this,"things");M(this,"index");this.things=m,this.index=new c(m)}find(m){return this.index.search(m,(g,v)=>g.distance(v))}}e.Parameters=l;class u{constructor(m,g,v,b,x,y){M(this,"temperature");M(this,"humidity");M(this,"continentalness");M(this,"erosion");M(this,"depth");M(this,"weirdness");this.temperature=m,this.humidity=g,this.continentalness=v,this.erosion=b,this.depth=x,this.weirdness=y}static fromRouter(m){return new e.Sampler(m.temperature,m.vegetation,m.continents,m.erosion,m.depth,m.ridges)}sample(m,g,v){const b=ke.context(m<<2,g<<2,v<<2);return e.target(this.temperature.compute(b),this.humidity.compute(b),this.continentalness.compute(b),this.erosion.compute(b),this.depth.compute(b),this.weirdness.compute(b))}}e.Sampler=u;const w=class{constructor(m){M(this,"root");this.root=w.build(m.map(([g,v])=>new h(g,v)))}static build(m){if(m.length===1)return m[0];if(m.length<=w.CHILDREN_PER_NODE){const x=m.map(y=>{let k=0;for(let C=0;C<7;C+=1){const E=y.space[C];k+=Math.abs((E.min+E.max)/2)}return{key:k,node:y}}).sort((y,k)=>y.key-k.key).map(({node:y})=>y);return new f(x)}let g=1/0,v=-1,b=[];for(let x=0;x<7;++x){m=w.sort(m,x,!1),b=w.bucketize(m);let y=0;for(const k of b)y+=w.area(k.space);g>y&&(g=y,v=x)}return m=w.sort(m,v,!1),b=w.bucketize(m),b=w.sort(b,v,!0),new f(b.map(x=>w.build(x.children)))}static sort(m,g,v){return m.map(b=>{const x=b.space[g],y=(x.min+x.max)/2;return{key:v?Math.abs(y):y,node:b}}).sort((b,x)=>b.key-x.key).map(({node:b})=>b)}static bucketize(m){const g=[];let v=[];const b=Math.pow(10,Math.floor(Math.log(m.length-.01)/Math.log(10)));for(const x of m)v.push(x),!(v.length<b)&&(g.push(new f(v)),v=[]);return v.length!==0&&g.push(new f(v)),g}static area(m){let g=0;for(const v of m)g+=Math.abs(v.max-v.min);return g}search(m,g){return this.root.search(m.toArray(),g).thing()}};let c=w;M(c,"CHILDREN_PER_NODE",10),e.RTree=c;class d{constructor(m){M(this,"space");this.space=m}distance(m){let g=0;for(let v=0;v<7;v+=1)g+=Dn(this.space[v].distance(m[v]));return g}}e.RNode=d;class f extends d{constructor(g){super(f.buildSpace(g));M(this,"children");this.children=g}static buildSpace(g){let v=[...Array(7)].map(()=>new s(1/0,-1/0));for(const b of g)v=[...Array(7)].map((x,y)=>v[y].union(b.space[y]));return v}search(g,v){let b=1/0,x=null;for(const y of this.children){const k=v(y,g);if(b<=k)continue;const C=y.search(g,v),E=y==C?k:v(C,g);b<=E||(b=E,x=C)}return x}}e.RSubTree=f;class h extends d{constructor(g,v){super(g.space());M(this,"thing");this.thing=v}search(){return this}}e.RLeaf=h})($s||($s={}));class Bs{constructor(t){M(this,"biome");this.biome=t}getBiome(){return this.biome}static fromJson(t){var i,s;const n=(i=K.readObject(t))!=null?i:{},r=Be.parse((s=K.readString(n.biome))!=null?s:"minecraft:the_void");return new Bs(r)}}class g0{constructor(t){M(this,"parameters");this.parameters=t}getBiome(t,n,r,i){const s=i.sample(t,n,r);return this.parameters.find(s)}static fromJson(t){var s,o;const n=(s=K.readObject(t))!=null?s:{},i=((o=K.readArray(n.biomes,a=>{var l;return(u=>{var c;return{biome:Be.parse((c=K.readString(u.biome))!=null?c:"minecraft:the_void"),parameters:$s.ParamPoint.fromJson(u.parameters)}})((l=K.readObject(a))!=null?l:{})}))!=null?o:[]).map(a=>[a.parameters,()=>a.biome]);return new g0(new $s.Parameters(i))}}var hn;(function(e){e.TEMPERATURE=t("temperature",-10,[1.5,0,1,0,0,0]),e.VEGETATION=t("vegetation",-8,[1,1,0,0,0,0]),e.CONTINENTALNESS=t("continentalness",-9,[1,1,2,2,2,1,1,1,1]),e.EROSION=t("erosion",-9,[1,1,0,1,1]),e.TEMPERATURE_LARGE=t("temperature_large",-12,[1.5,0,1,0,0,0]),e.VEGETATION_LARGE=t("vegetation_large",-10,[1,1,0,0,0,0]),e.CONTINENTALNESS_LARGE=t("continentalness_large",-11,[1,1,2,2,2,1,1,1,1]),e.EROSION_LARGE=t("erosion_large",-11,[1,1,0,1,1]),e.RIDGE=t("ridge",-7,[1,2,1,0,0,0]),e.SHIFT=t("offset",-3,[1,1,1,0]),e.AQUIFER_BARRIER=t("aquifer_barrier",-3,[1]),e.AQUIFER_FLUID_LEVEL_FLOODEDNESS=t("aquifer_fluid_level_floodedness",-7,[1]),e.AQUIFER_FLUID_LEVEL_SPREAD=t("aquifer_fluid_level_spread",-5,[1]),e.AQUIFER_LAVA=t("aquifer_lava",-1,[1]),e.PILLAR=t("pillar",-7,[1,1]),e.PILLAR_RARENESS=t("pillar_rareness",-8,[1]),e.PILLAR_THICKNESS=t("pillar_thickness",-8,[1]),e.SPAGHETTI_2D=t("spaghetti_2d",-8,[1]),e.SPAGHETTI_2D_ELEVATION=t("spaghetti_2d_elevation",-8,[1]),e.SPAGHETTI_2D_MODULATOR=t("spaghetti_2d_modulator",-8,[1]),e.SPAGHETTI_2D_THICKNESS=t("spaghetti_2d_thickness",-8,[1]),e.SPAGHETTI_3D_1=t("spaghetti_3d_1",-8,[1]),e.SPAGHETTI_3D_2=t("spaghetti_3d_2",-8,[1]),e.SPAGHETTI_3D_RARITY=t("spaghetti_3d_rarity",-8,[1]),e.SPAGHETTI_3D_THICKNESS=t("spaghetti_3d_thickness",-8,[1]),e.SPAGHETTI_ROUGHNESS=t("spaghetti_roughness",-8,[1]),e.SPAGHETTI_ROUGHNESS_MODULATOR=t("spaghetti_roughness_modulator",-8,[1]),e.CAVE_ENTRANCE=t("cave_entrance",-7,[.4,.5,1]),e.CAVE_LAYER=t("cave_layer",-8,[1]),e.CAVE_CHEESE=t("cave_cheese",-8,[.5,1,2,1,2,1,0,2,0]),e.NOODLE=t("noodle",-8,[1]),e.NOODLE_THICKNESS=t("noodle_thickness",-8,[1]),e.NOODLE_RIDGE_A=t("noodle_ridge_a",-7,[1]),e.NOODLE_RIDGE_B=t("noodle_ridge_b",-7,[1]),e.JAGGED=t("jagged",-16,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),e.SURFACE=t("surface",-6,[1,1,1]),e.SURFACE_SECONDARY=t("surface_secondary",-6,[1,1,0,1]);function t(i,s,o){return Wr.NOISE.register(Be.create(i),Yr.create(s,o),!0)}const n=new Map;function r(i,s){var c;const o=(c=s.key())==null?void 0:c.toString();if(!o)throw new Error("Cannot instantiate noise from direct holder");const a=i.seedKey(),l=n.get(o);if(l&&l[0]===a[0]&&l[1]===a[1])return l[2];const u=new Dr(i.fromHashOf(o),s.value());return n.set(o,[a[0],a[1],u]),u}e.instantiate=r})(hn||(hn={}));var St;(function(e){function t(o){var l,u,c,d,f;const a=(l=K.readObject(o))!=null?l:{};return{minY:(u=K.readInt(a.min_y))!=null?u:0,height:(c=K.readInt(a.height))!=null?c:256,xzSize:(d=K.readInt(a.size_horizontal))!=null?d:1,ySize:(f=K.readInt(a.size_vertical))!=null?f:1}}e.fromJson=t;function n(o){return o.ySize<<2}e.cellHeight=n;function r(o){return o.xzSize<<2}e.cellWidth=r;function i(o){return o.height/n(o)}e.cellCountY=i;function s(o){return Math.floor(o.minY/n(o))}e.minCellY=s})(St||(St={}));var kc;(function(e){function t(r){var s,o,a,l;const i=(s=K.readObject(r))!=null?s:{};return{target:(o=K.readNumber(i.target))!=null?o:0,size:(a=K.readInt(i.size))!=null?a:0,offset:(l=K.readInt(i.offset))!=null?l:0}}e.fromJson=t;function n(r,i,s){if(r.size<=0)return i;const o=(s-r.offset)/r.size;return qa(r.target,i,o)}e.apply=n})(kc||(kc={}));var Pi;(function(e){const t=a=>Gr.parser(Wr.DENSITY_FUNCTION,ke.fromJson)(a).value();function n(a){var u;const l=(u=K.readObject(a))!=null?u:{};return{barrier:t(l.barrier),fluidLevelFloodedness:t(l.fluid_level_floodedness),fluidLevelSpread:t(l.fluid_level_spread),lava:t(l.lava),temperature:t(l.temperature),vegetation:t(l.vegetation),continents:t(l.continents),erosion:t(l.erosion),depth:t(l.depth),ridges:t(l.ridges),initialDensityWithoutJaggedness:t(l.initial_density_without_jaggedness),finalDensity:t(l.final_density),veinToggle:t(l.vein_toggle),veinRidged:t(l.vein_ridged),veinGap:t(l.vein_gap)}}e.fromJson=n;function r(a){return fe({barrier:ke.Constant.ZERO,fluidLevelFloodedness:ke.Constant.ZERO,fluidLevelSpread:ke.Constant.ZERO,lava:ke.Constant.ZERO,temperature:ke.Constant.ZERO,vegetation:ke.Constant.ZERO,continents:ke.Constant.ZERO,erosion:ke.Constant.ZERO,depth:ke.Constant.ZERO,ridges:ke.Constant.ZERO,initialDensityWithoutJaggedness:ke.Constant.ZERO,finalDensity:ke.Constant.ZERO,veinToggle:ke.Constant.ZERO,veinRidged:ke.Constant.ZERO,veinGap:ke.Constant.ZERO},a)}e.create=r;function i(a,l,u,c=!1){const d=(c?new Tt(u):He.create(u)).forkPositional(),f=new s(d,l);return Me(fe({},f.mapAll(a)),{aquiferPositionalRandomFactory:d.fromHashOf(Be.create("aquifer").toString()).forkPositional(),oreVeinsPositionalRandomFactory:d.fromHashOf(Be.create("ore").toString()).forkPositional()})}e.withSettings=i;class s{constructor(l,u){M(this,"random");M(this,"settings");M(this,"mapped",new Map);this.random=l,this.settings=u}map(l){if(l instanceof ke.HolderHolder){const u=l.holder.key();if(u!==void 0&&this.mapped.has(u.toString()))return this.mapped.get(u.toString());{const c=l.holder.value().mapAll(this);return u!==void 0&&this.mapped.set(u.toString(),c),c}}if(l instanceof ke.Interpolated)return l.withCellSize(St.cellWidth(this.settings),St.cellHeight(this.settings));if(l instanceof ke.ShiftedNoise){const u=hn.instantiate(this.random,l.noiseData);return new ke.ShiftedNoise(l.shiftX,l.shiftY,l.shiftZ,l.xzScale,l.yScale,l.noiseData,u)}return l instanceof ke.Noise?new ke.Noise(l.xzScale,l.yScale,l.noiseData,hn.instantiate(this.random,l.noiseData)):l instanceof ke.ShiftNoise?l.withNewNoise(hn.instantiate(this.random,l.noiseData)):l instanceof ke.WeirdScaledSampler?new ke.WeirdScaledSampler(l.input,l.rarityValueMapper,l.noiseData,hn.instantiate(this.random,l.noiseData)):l instanceof ke.OldBlendedNoise?new ke.OldBlendedNoise(l.xzScale,l.yScale,l.xzFactor,l.yFactor,l.smearScaleMultiplier,new p2(this.random.fromHashOf(Be.create("terrain").toString()),l.xzScale,l.yScale,l.xzFactor,l.yFactor,l.smearScaleMultiplier)):l instanceof ke.Mapped||l instanceof ke.Ap2?l.withMinMax():l}mapAll(l){return{barrier:l.barrier.mapAll(this),fluidLevelFloodedness:l.fluidLevelFloodedness.mapAll(this),fluidLevelSpread:l.fluidLevelSpread.mapAll(this),lava:l.lava.mapAll(this),temperature:l.temperature.mapAll(this),vegetation:l.vegetation.mapAll(this),continents:l.continents.mapAll(this),erosion:l.erosion.mapAll(this),depth:l.depth.mapAll(this),ridges:l.ridges.mapAll(this),initialDensityWithoutJaggedness:l.initialDensityWithoutJaggedness.mapAll(this),finalDensity:l.finalDensity.mapAll(this),veinToggle:l.veinToggle.mapAll(this),veinRidged:l.veinRidged.mapAll(this),veinGap:l.veinGap.mapAll(this)}}}e.Visitor=s;function o(a,l,u,c){const d=St.minCellY(a)+St.cellCountY(a),f=St.minCellY(a),h=St.cellHeight(a);for(let w=d;w>=f;w-=1){const _=w*h;if(Ds(l.compute(ke.context(u,_,c)),-64,64)>=.390625)return _}return Number.MAX_SAFE_INTEGER}e.computePreliminarySurfaceLevelScanning=o})(Pi||(Pi={}));class m2{constructor(t,n,r,i,s,o,a,l,u){M(this,"cellCountXZ");M(this,"cellCountY");M(this,"cellNoiseMinY");M(this,"router");M(this,"minX");M(this,"minZ");M(this,"settings");M(this,"cellWidth");M(this,"cellHeight");M(this,"firstCellX");M(this,"firstCellZ");M(this,"firstNoiseX");M(this,"firstNoiseZ");M(this,"noiseSizeXZ");M(this,"preliminarySurfaceLevel",new Map);M(this,"aquifer");M(this,"materialRule");M(this,"initialDensityWithoutJaggedness");this.cellCountXZ=t,this.cellCountY=n,this.cellNoiseMinY=r,this.router=i,this.minX=s,this.minZ=o,this.settings=a,this.cellWidth=St.cellWidth(a),this.cellHeight=St.cellHeight(a),this.firstCellX=Math.floor(s/this.cellWidth),this.firstCellZ=Math.floor(o/this.cellWidth),this.firstNoiseX=s>>2,this.firstNoiseZ=o>>2,this.noiseSizeXZ=t*this.cellWidth>>2,this.aquifer=ba.createDisabled(u);const c=this.router.finalDensity;this.materialRule=ya.fromList([d=>this.aquifer.compute(d,c.compute(d))]),this.initialDensityWithoutJaggedness=this.router.initialDensityWithoutJaggedness}getFinalState(t,n,r){return this.materialRule({x:t,y:n,z:r})}getPreliminarySurfaceLevel(t,n){return io(this.preliminarySurfaceLevel,Lt.asLong(t,n),()=>Pi.computePreliminarySurfaceLevelScanning(this.settings,this.initialDensityWithoutJaggedness,t<<2,n<<2))}getAquifer(){return this.aquifer}}var ya;(function(e){function t(n){return r=>{for(const i of n){const s=i(r);if(s)return s}}}e.fromList=t})(ya||(ya={}));var Ti;(function(e){function t(s){var a,l,u,c;const o=(a=K.readObject(s))!=null?a:{};return o.absolute!==void 0?n((l=K.readNumber(o.absolute))!=null?l:0):o.above_bottom!==void 0?r((u=K.readNumber(o.above_bottom))!=null?u:0):o.below_top!==void 0?i((c=K.readNumber(o.below_top))!=null?c:0):()=>0}e.fromJson=t;function n(s){return()=>s}function r(s){return o=>o.minY+s}function i(s){return o=>o.maxY-s}})(Ti||(Ti={}));var ka;(function(e){function t(n,r){return{minY:n,height:r,maxY:n+r-1}}e.create=t})(ka||(ka={}));class g2{constructor(t,n,r){M(this,"rule");M(this,"defaultBlock");M(this,"surfaceNoise");M(this,"surfaceSecondaryNoise");M(this,"random");M(this,"positionalRandoms");this.rule=t,this.defaultBlock=n,this.random=He.create(r).forkPositional(),this.surfaceNoise=hn.instantiate(this.random,hn.SURFACE),this.surfaceSecondaryNoise=hn.instantiate(this.random,hn.SURFACE_SECONDARY),this.positionalRandoms=new Map}buildSurface(t,n,r,i){const s=Lt.minBlockX(t.pos),o=Lt.minBlockZ(t.pos),a=new _2(this,t,n,r,i),l=this.rule(a);for(let u=0;u<16;u+=1){const c=s+u;for(let d=0;d<1;d+=1){const f=o+d;a.updateXZ(c,f);let h=0,w=Number.MIN_SAFE_INTEGER,_=Number.MAX_SAFE_INTEGER;for(let m=t.maxY;m>=t.minY;m-=1){const g=Dt.create(c,m,f),v=t.getBlockState(g);if(v.equals($e.AIR)){h=0,w=Number.MIN_SAFE_INTEGER;continue}if(v.isFluid()){w===Number.MIN_SAFE_INTEGER&&(w=m+1);continue}if(_>=m){_=Number.MIN_SAFE_INTEGER;for(let y=m-1;y>=t.minY;y-=1){const k=t.getBlockState(Dt.create(c,y,f));if(k.equals($e.AIR)||k.isFluid()){_=y+1;break}}}h+=1;const b=m-_+1;if(!v.equals(this.defaultBlock))continue;a.updateY(h,b,w,m);const x=l(c,m,f);x&&t.setBlockState(g,x)}}}}getSurfaceDepth(t,n){const r=this.surfaceNoise.sample(t,0,n),i=this.random.at(t,0,n).nextDouble()*.25;return r*2.75+3+i}getSurfaceSecondary(t,n){return this.surfaceSecondaryNoise.sample(t,0,n)}getRandom(t){return io(this.positionalRandoms,t,()=>this.random.fromHashOf(t))}}class _2{constructor(t,n,r,i,s){M(this,"system");M(this,"chunk");M(this,"noiseChunk");M(this,"context");M(this,"getBiome");M(this,"blockX",0);M(this,"blockY",0);M(this,"blockZ",0);M(this,"stoneDepthAbove",0);M(this,"stoneDepthBelow",0);M(this,"surfaceDepth",0);M(this,"waterHeight",0);M(this,"biome",()=>"");M(this,"surfaceSecondary",()=>0);M(this,"minSurfaceLevel",()=>0);this.system=t,this.chunk=n,this.noiseChunk=r,this.context=i,this.getBiome=s}updateXZ(t,n){this.blockX=t,this.blockZ=n,this.surfaceDepth=this.system.getSurfaceDepth(t,n),this.surfaceSecondary=ws(()=>this.system.getSurfaceSecondary(t,n)),this.minSurfaceLevel=ws(()=>this.calculateMinSurfaceLevel(t,n))}updateY(t,n,r,i){this.blockY=i,this.stoneDepthAbove=t,this.stoneDepthBelow=n,this.waterHeight=r,this.biome=ws(()=>this.getBiome(Dt.create(this.blockX,this.blockY,this.blockZ)))}calculateMinSurfaceLevel(t,n){const r=t>>4,i=n>>4,s=this.noiseChunk.getPreliminarySurfaceLevel(r<<4,i<<4),o=this.noiseChunk.getPreliminarySurfaceLevel(r+1<<4,i<<4),a=this.noiseChunk.getPreliminarySurfaceLevel(r<<4,i+1<<4),l=this.noiseChunk.getPreliminarySurfaceLevel(r+1<<4,i+1<<4);return Math.floor(_a((t&15)/16,(n&15)/16,s,o,a,l))+this.surfaceDepth-8}}var Ca;(function(e){e.NOOP=()=>()=>{};function t(s){var l,u,c;const o=(l=K.readObject(s))!=null?l:{};switch((u=K.readString(o.type))==null?void 0:u.replace(/^minecraft:/,"")){case"block":return n($e.fromJson(o.result_state));case"sequence":return r((c=K.readArray(o.sequence,e.fromJson))!=null?c:[]);case"condition":return i(Ea.fromJson(o.if_true),e.fromJson(o.then_run))}return e.NOOP}e.fromJson=t;function n(s){return()=>()=>s}e.block=n;function r(s){return o=>{const a=s.map(l=>l(o));return(l,u,c)=>{for(const d of a){const f=d(l,u,c);if(f)return f}}}}e.sequence=r;function i(s,o){return a=>(l,u,c)=>{if(s(a))return o(a)(l,u,c)}}e.condition=i})(Ca||(Ca={}));var Ea;(function(e){e.FALSE=()=>!1,e.TRUE=()=>!0;function t(u){var f,h,w,_,m,g,v,b,x,y,k,C;const c=(f=K.readObject(u))!=null?f:{};switch((h=K.readString(c.type))==null?void 0:h.replace(/^minecraft:/,"")){case"above_preliminary_surface":return n();case"biome":return r((w=K.readArray(c.biome_is,E=>{var I;return(I=K.readString(E))!=null?I:""}))!=null?w:[]);case"not":return i(e.fromJson(c.invert));case"stone_depth":return s((_=K.readInt(c.offset))!=null?_:0,(m=K.readBoolean(c.add_surface_depth))!=null?m:!1,(g=K.readInt(c.secondary_depth_range))!=null?g:0,K.readString(c.surface_type)==="ceiling");case"vertical_gradient":return o((v=K.readString(c.random_name))!=null?v:"",Ti.fromJson(c.true_at_and_below),Ti.fromJson(c.false_at_and_above));case"water":return a((b=K.readInt(c.offset))!=null?b:0,(x=K.readInt(c.surface_depth_multiplier))!=null?x:0,(y=K.readBoolean(c.add_surface_depth))!=null?y:!1);case"y_above":return l(Ti.fromJson(c.anchor),(k=K.readInt(c.surface_depth_multiplier))!=null?k:0,(C=K.readBoolean(c.add_surface_depth))!=null?C:!1)}return e.FALSE}e.fromJson=t;function n(){return u=>u.blockY>=u.minSurfaceLevel()}e.abovePreliminarySurface=n;function r(u){const c=new Set(u);return d=>c.has(d.biome())}e.biome=r;function i(u){return c=>!u(c)}e.not=i;function s(u,c,d,f){return h=>{const w=f?h.stoneDepthBelow:h.stoneDepthAbove,_=c?h.surfaceDepth:0,m=d===0?0:Fs(h.surfaceSecondary(),-1,1,0,d);return w<=1+u+_+m}}e.stoneDepth=s;function o(u,c,d){return f=>{const h=c(f.context),w=d(f.context);if(f.blockY<=h)return!0;if(f.blockY>=w)return!1;const _=f.system.getRandom(u),m=Fs(f.blockY,h,w,1,0);return _.nextFloat()<m}}e.verticalGradient=o;function a(u,c,d){return f=>{if(f.waterHeight===Number.MIN_SAFE_INTEGER)return!0;const h=d?f.stoneDepthAbove:0;return f.blockY+h>=f.waterHeight+u+f.surfaceDepth*c}}e.water=a;function l(u,c,d){return f=>{const h=d?f.stoneDepthAbove:0;return f.blockY+h>=u(f.context)+f.surfaceDepth*c}}e.yAbove=l})(Ea||(Ea={}));class hv{constructor(t,n,r){M(this,"biomeSource");M(this,"settings");M(this,"router");M(this,"noiseChunkCache");M(this,"surfaceSystem");M(this,"globalFluidPicker");this.biomeSource=n,this.settings=r,this.router=Pi.withSettings(r.noiseRouter,r.noise,t,r.legacyRandomSource),this.noiseChunkCache=new Map,this.surfaceSystem=new g2(r.surfaceRule,r.defaultBlock,t);const i=new Ps(-54,$e.LAVA),s=new Ps(r.seaLevel,r.defaultFluid);this.globalFluidPicker=(o,a,l)=>a<Math.min(-54,r.seaLevel)?i:s}fill(t,n=!1){var h;const r=Math.max(t.minY,this.settings.noise.minY),i=Math.min(t.maxY,this.settings.noise.minY+this.settings.noise.height),s=St.cellWidth(this.settings.noise),o=St.cellHeight(this.settings.noise),a=Math.floor(16/s),l=Math.floor(r/o),u=Math.floor((i-r)/o),c=Lt.minBlockX(t.pos),d=Lt.minBlockZ(t.pos),f=this.getNoiseChunk(t);for(let w=0;w<a;w+=1)for(let _=0;_<(n?1:a);_+=1){let m=t.getOrCreateSection(t.sectionsCount-1);for(let g=u-1;g>=0;g-=1)for(let v=o-1;v>=0;v-=1){const b=(l+g)*o+v,x=b&15,y=t.getSectionIndex(b);t.getSectionIndex(m.minBlockY)!==y&&(m=t.getOrCreateSection(y));for(let k=0;k<s;k+=1){const C=c+w*s+k,E=C&15;for(let I=0;I<(n?1:s);I+=1){const S=d+_*s+I,T=S&15,L=(h=f.getFinalState(C,b,S))!=null?h:this.settings.defaultBlock;m.setBlockState(E,x,T,L)}}}}}buildSurface(t,n="minecraft:plains"){const r=this.getNoiseChunk(t),i=ka.create(this.settings.noise.minY,this.settings.noise.height);this.surfaceSystem.buildSurface(t,r,i,()=>n)}getNoiseChunk(t){return io(this.noiseChunkCache,Lt.toLong(t.pos),()=>{const n=Math.max(t.minY,this.settings.noise.minY),r=Math.min(t.maxY,this.settings.noise.minY+this.settings.noise.height),i=St.cellWidth(this.settings.noise),s=St.cellHeight(this.settings.noise),o=Math.floor(16/i),a=Math.floor(n/s),l=Math.floor((r-n)/s),u=Lt.minBlockX(t.pos),c=Lt.minBlockZ(t.pos);return new m2(o,l,a,this.router,u,c,this.settings.noise,this.settings.aquifersEnabled,this.globalFluidPicker)})}}var Cc;(function(e){function t(n){var i,s,o,a,l,u;const r=(i=K.readObject(n))!=null?i:{};return{surfaceRule:Ca.fromJson(r.surface_rule),noise:St.fromJson(r.noise),defaultBlock:$e.fromJson(r.default_block),defaultFluid:$e.fromJson(r.default_fluid),noiseRouter:Pi.fromJson(r.noise_router),seaLevel:(s=K.readInt(r.sea_level))!=null?s:0,disableMobGeneration:(o=K.readBoolean(r.disable_mob_generation))!=null?o:!1,aquifersEnabled:(a=K.readBoolean(r.aquifers_enabled))!=null?a:!1,oreVeinsEnabled:(l=K.readBoolean(r.ore_veins_enabled))!=null?l:!1,legacyRandomSource:(u=K.readBoolean(r.legacy_random_source))!=null?u:!1}}e.fromJson=t})(Cc||(Cc={}));var id=Object.freeze(Object.defineProperty({__proto__:null,get BlockPos(){return Dt},BlockState:$e,Chunk:av,get ChunkPos(){return Lt},ChunkSection:xi,get Direction(){return Jt},get Holder(){return Gr},Identifier:Be,Registry:Mi,Structure:h0,get MinMaxNumberFunction(){return va},get CubicSpline(){return xa},BlendedNoise:p2,ImprovedNoise:yc,NormalNoise:Dr,get NoiseParameters(){return Yr},PerlinNoise:Ge,PerlinSimplexNoise:fv,SimplexNoise:Et,LegacyRandom:Tt,LegacyPositionalRandom:f2,XoroshiroRandom:He,XoroshiroPositionalRandom:h2,square:Dn,clamp:Ds,lerp:Gn,lerp2:_a,lerp3:s2,lazyLerp:vs,lazyLerp2:xc,lazyLerp3:o2,clampedLerp:qa,inverseLerp:p0,smoothstep:Ko,map:Fs,clampedMap:Xa,binarySearch:a2,getSeed:m0,longfromBytes:wa,isPowerOfTwo:lv,upperPowerOfTwo:cv,get Json(){return K},lazy:ws,computeIfAbsent:io,FluidStatus:Ps,get Aquifer(){return ba},NoiseAquifer:Sr,get Climate(){return $s},FixedBiome:Bs,MultiNoise:g0,get DensityFunction(){return ke},NoiseChunk:m2,get MaterialRule(){return ya},NoiseChunkGenerator:hv,get NoiseGeneratorSettings(){return Cc},get NoiseRouter(){return Pi},get Noises(){return hn},get NoiseSettings(){return St},get NoiseSlideSettings(){return kc},SurfaceSystem:g2,SurfaceContext:_2,get SurfaceRule(){return Ca},get SurfaceCondition(){return Ea},get VerticalAnchor(){return Ti},get WorldgenContext(){return ka},get WorldgenRegistries(){return Wr}},Symbol.toStringTag,{value:"Module"}));let sd=!1;async function pv(){sd||(await kp(gu),sd=!0,console.debug(`Loaded deepslate-rs from "${gu}"`))}const mv={temperature:[-1,1],humidity:[-1,1],continentalness:[-1.1,1],erosion:[-1,1],weirdness:[-1,1],offset:[-1,1],factor:[0,12],jaggedness:[0,1]};let od,ad;async function gv(e,t,n){var w,_,m;const{biomeSource:r}=await w2(e,n),i=t.data,s=-Math.round(n.offset[0])-100+n.res/2,o=-Math.round(n.offset[1])-100+n.res/2,a=t.width*4/n.res,l=4/n.res,u=[s*n.scale,(200+s)*n.scale,n.res*n.scale],c=[o*n.scale,(200+o)*n.scale,n.res*n.scale],d=n.layers.has("biomes")?(w=r.getBiomes)==null?void 0:w.call(r,...u,64,65,1,...c):void 0,f=[...n.layers].filter(g=>g!=="biomes"),h=f.length===0||(_=r.getClimates)==null?void 0:_.call(r,...u,64,65,1,...c);for(let g=0;g<200;g+=n.res)for(let v=0;v<200;v+=n.res){const b=v*a+g*l,x=g/n.res*200/n.res+v/n.res,y=(g+s)*n.scale,k=(v+o)*n.scale;let C=[50,50,50];if(n.layers.has("biomes")){const E=(m=d==null?void 0:d[x])!=null?m:r.getBiome(y,64,k);C=vv(E.toString(),n.biomeColors)}else if(h&&f[0]){const E=h[x][f[0]],[I,S]=mv[f[0]],T=(E-I)/(S-I)*256;C=[T,T,T]}i[b]=C[0],i[b+1]=C[1],i[b+2]=C[2],i[b+3]=255}}async function _v(e,t,n,r){var a;const{biomeSource:i}=await w2(e,r),[s,o]=xv([t,n],r);return fe({biome:i.getBiome(s,64,o).toString()},(a=i.getClimate)==null?void 0:a.call(i,s,64,o))}async function w2(e,t){const n=[e,t.octaves,`${t.seed}`,t.version];return Br(n,od)||(od=ja(n),ad=await wv(e,t)),{biomeSource:ad}}async function wv(e,t){var n,r,i,s,o;switch((n=e==null?void 0:e.type)==null?void 0:n.replace(/^minecraft:/,"")){case"fixed":return new Bs(Be.parse(e.biome));case"checkerboard":const a=((r=e.scale)!=null?r:2)+2,l=(s=(i=e.biomes)==null?void 0:i.length)!=null?s:0;return{getBiome(u,c,d){var h;const f=(((u>>a)+(d>>a))%l+l)%l;return Be.parse((h=e.biomes)==null?void 0:h[f].node)}};case"multi_noise":switch((o=e.preset)==null?void 0:o.replace(/^minecraft:/,"")){case"nether":e=ct(t.version,"1.18")?yv:bv;break;case"overworld":e=ct(t.version,"1.18")?await kv():e;break}if(e=P.DataModel.unwrapLists(e),ct(t.version,"1.18")){await pv();const u=new Q3,c=T=>typeof T=="number"?[T,T]:T,[d,f,h,w,_,m,g,v,b,x,y,k,C,E]=[[],[],[],[],[],[],[],[],[],[],[],[],[],[]];for(const T of e.biomes){const{temperature:L,humidity:D,continentalness:G,erosion:z,weirdness:O,depth:$,offset:U}=T.parameters;d.push(c(L)[0]),f.push(c(L)[1]),h.push(c(D)[0]),w.push(c(D)[1]),_.push(c(G)[0]),m.push(c(G)[1]),g.push(c(z)[0]),v.push(c(z)[1]),b.push(c(O)[0]),x.push(c(O)[1]),y.push(c($)[0]),k.push(c($)[1]),C.push(U),E.push(u.getOrPut(T.biome,Math.floor(Math.random()*2147483647)))}const I=t6(new Float64Array(d),new Float64Array(f),new Float64Array(h),new Float64Array(w),new Float64Array(_),new Float64Array(m),new Float64Array(g),new Float64Array(v),new Float64Array(b),new Float64Array(x),new Float64Array(y),new Float64Array(k),new Float64Array(C),new Int32Array(E)),S=n6(t.seed,t.octaves.temperature.firstOctave,new Float64Array(t.octaves.temperature.amplitudes),t.octaves.humidity.firstOctave,new Float64Array(t.octaves.humidity.amplitudes),t.octaves.continentalness.firstOctave,new Float64Array(t.octaves.continentalness.amplitudes),t.octaves.erosion.firstOctave,new Float64Array(t.octaves.erosion.amplitudes),t.octaves.weirdness.firstOctave,new Float64Array(t.octaves.weirdness.amplitudes),t.octaves.shift.firstOctave,new Float64Array(t.octaves.shift.amplitudes));return{getBiome(T,L,D){var z;const G=pu(I,S,T,T+1,1,L,L+1,1,D,D+1,1);return Be.parse((z=u.getA(G[0]))!=null?z:"unknown")},getBiomes(T,L,D,G,z,O,$,U,Q){return[...pu(I,S,T,L,D,G,z,O,$,U,Q)].map(A=>{var R;return Be.parse((R=u.getA(A))!=null?R:"unknown")})},getClimate(T,L,D){const G=mu(S,T,T+1,1,L,L+1,1,D,D+1,1),[z,O,$,U,Q]=G.slice(0,5);return{temperature:z,humidity:O,continentalness:$,erosion:U,weirdness:Q}},getClimates(T,L,D,G,z,O,$,U,Q){const N=mu(S,T,L,D,G,z,O,$,U,Q),A=[];for(let R=0;R<N.length;R+=7){const[B,q,ie,j,J]=N.slice(R,R+5);A.push({temperature:B,humidity:q,continentalness:ie,erosion:j,weirdness:J})}return A}}}else{const u=["altitude","temperature","humidity","weirdness"].map((c,d)=>{var h;const f=e[`${c}_noise`];return f.firstOctave=Ht((h=f.firstOctave)!=null?h:-7,-100,-1),new Dr(new Tt(t.seed+BigInt(d)),f)});return!Array.isArray(e.biomes)||e.biomes.length===0?new Bs(Be.create("unknown")):{getBiome(c,d,f){const h=u.map(m=>m.sample(c,f,0));let w=1/0,_="";for(const{biome:m,parameters:g}of e.biomes){const v=es(g.altitude-h[0])+es(g.temperature-h[1])+es(g.humidity-h[2])+es(g.weirdness-h[3])+es(g.offset);v<w&&(w=v,_=m)}return Be.parse(_)}}}}throw new Error("Unknown biome source")}function vv(e,t){var r;if(!e)return[128,128,128];const n=(r=t[e])!=null?r:v2[e];return n===void 0?Jc(e):n}function xv([e,t],n){const r=(e-n.offset[0]-100+n.res/2)*n.scale,i=(t-n.offset[1]-100+n.res/2)*n.scale;return[r,i]}const v2={"minecraft:badlands":[217,69,21],"minecraft:badlands_plateau":[202,140,101],"minecraft:bamboo_jungle":[118,142,20],"minecraft:bamboo_jungle_hills":[59,71,10],"minecraft:basalt_deltas":[64,54,54],"minecraft:beach":[250,222,85],"minecraft:birch_forest":[48,116,68],"minecraft:birch_forest_hills":[31,95,50],"minecraft:cold_ocean":[32,32,112],"minecraft:crimson_forest":[221,8,8],"minecraft:dark_forest":[64,81,26],"minecraft:dark_forest_hills":[104,121,66],"minecraft:deep_cold_ocean":[32,32,56],"minecraft:deep_frozen_ocean":[64,64,144],"minecraft:deep_lukewarm_ocean":[0,0,64],"minecraft:deep_ocean":[0,0,48],"minecraft:deep_warm_ocean":[0,0,80],"minecraft:desert":[250,148,24],"minecraft:desert_hills":[210,95,18],"minecraft:desert_lakes":[255,188,64],"minecraft:end_barrens":[128,128,255],"minecraft:end_highlands":[128,128,255],"minecraft:end_midlands":[128,128,255],"minecraft:eroded_badlands":[255,109,61],"minecraft:flower_forest":[45,142,73],"minecraft:forest":[5,102,33],"minecraft:frozen_ocean":[112,112,214],"minecraft:frozen_river":[160,160,255],"minecraft:giant_spruce_taiga":[129,142,121],"minecraft:old_growth_spruce_taiga":[129,142,121],"minecraft:giant_spruce_taiga_hills":[109,119,102],"minecraft:giant_tree_taiga":[89,102,81],"minecraft:old_growth_pine_taiga":[89,102,81],"minecraft:giant_tree_taiga_hills":[69,79,62],"minecraft:gravelly_hills":[136,136,136],"minecraft:gravelly_mountains":[136,136,136],"minecraft:windswept_gravelly_hills":[136,136,136],"minecraft:ice_spikes":[180,220,220],"minecraft:jungle":[83,123,9],"minecraft:jungle_edge":[98,139,23],"minecraft:sparse_jungle":[98,139,23],"minecraft:jungle_hills":[44,66,5],"minecraft:lukewarm_ocean":[0,0,144],"minecraft:modified_badlands_plateau":[242,180,141],"minecraft:modified_gravelly_mountains":[120,152,120],"minecraft:modified_jungle":[123,163,49],"minecraft:modified_jungle_edge":[138,179,63],"minecraft:modified_wooded_badlands_plateau":[216,191,141],"minecraft:mountain_edge":[114,120,154],"minecraft:extreme_hills":[96,96,96],"minecraft:mountains":[96,96,96],"minecraft:windswept_hills":[96,96,96],"minecraft:mushroom_field_shore":[160,0,255],"minecraft:mushroom_fields":[255,0,255],"minecraft:nether_wastes":[191,59,59],"minecraft:ocean":[0,0,112],"minecraft:plains":[141,179,96],"minecraft:river":[0,0,255],"minecraft:savanna":[189,178,95],"minecraft:savanna_plateau":[167,157,100],"minecraft:shattered_savanna":[229,218,135],"minecraft:windswept_savanna":[229,218,135],"minecraft:shattered_savanna_plateau":[207,197,140],"minecraft:small_end_islands":[128,128,255],"minecraft:snowy_beach":[250,240,192],"minecraft:snowy_mountains":[160,160,160],"minecraft:snowy_taiga":[49,85,74],"minecraft:snowy_taiga_hills":[36,63,54],"minecraft:snowy_taiga_mountains":[89,125,114],"minecraft:snowy_tundra":[255,255,255],"minecraft:snowy_plains":[255,255,255],"minecraft:soul_sand_valley":[94,56,48],"minecraft:stone_shore":[162,162,132],"minecraft:stony_shore":[162,162,132],"minecraft:sunflower_plains":[181,219,136],"minecraft:swamp":[7,249,178],"minecraft:swamp_hills":[47,255,218],"minecraft:taiga":[11,102,89],"minecraft:taiga_hills":[22,57,51],"minecraft:taiga_mountains":[51,142,129],"minecraft:tall_birch_forest":[88,156,108],"minecraft:old_growth_birch_forest":[88,156,108],"minecraft:tall_birch_hills":[71,135,90],"minecraft:the_end":[128,128,255],"minecraft:the_void":[0,0,0],"minecraft:warm_ocean":[0,0,172],"minecraft:warped_forest":[73,144,123],"minecraft:wooded_badlands_plateau":[176,151,101],"minecraft:wooded_badlands":[176,151,101],"minecraft:wooded_hills":[34,85,28],"minecraft:wooded_mountains":[80,112,80],"minecraft:windswept_forest":[80,112,80],"minecraft:snowy_slopes":[140,195,222],"minecraft:lofty_peaks":[196,168,193],"minecraft:jagged_peaks":[196,168,193],"minecraft:snowcapped_peaks":[200,198,200],"minecraft:frozen_peaks":[200,198,200],"minecraft:stony_peaks":[82,92,103],"minecraft:grove":[150,150,189],"minecraft:meadow":[169,197,80],"minecraft:lush_caves":[112,255,79],"minecraft:dripstone_caves":[140,124,0]},bv={type:"minecraft:multi_noise",seed:0,altitude_noise:{firstOctave:-7,amplitudes:[1,1]},temperature_noise:{firstOctave:-7,amplitudes:[1,1]},humidity_noise:{firstOctave:-7,amplitudes:[1,1]},weirdness_noise:{firstOctave:-7,amplitudes:[1,1]},biomes:[{biome:"minecraft:nether_wastes",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}},{biome:"minecraft:soul_sand_valley",parameters:{altitude:0,temperature:0,humidity:-.5,weirdness:0,offset:0}},{biome:"minecraft:crimson_forest",parameters:{altitude:0,temperature:.4,humidity:0,weirdness:0,offset:0}},{biome:"minecraft:warped_forest",parameters:{altitude:0,temperature:0,humidity:.5,weirdness:0,offset:.375}},{biome:"minecraft:basalt_deltas",parameters:{altitude:0,temperature:-.5,humidity:0,weirdness:0,offset:.175}}]},yv={type:"minecraft:multi_noise",biomes:[{biome:"minecraft:nether_wastes",parameters:{temperature:0,humidity:0,continentalness:0,erosion:0,depth:0,weirdness:0,offset:0}},{biome:"minecraft:soul_sand_valley",parameters:{temperature:0,humidity:-.5,continentalness:0,erosion:0,depth:0,weirdness:0,offset:0}},{biome:"minecraft:crimson_forest",parameters:{temperature:.4,humidity:0,continentalness:0,erosion:0,depth:0,weirdness:0,offset:0}},{biome:"minecraft:warped_forest",parameters:{temperature:0,humidity:.5,continentalness:0,erosion:0,depth:0,weirdness:0,offset:.375}},{biome:"minecraft:basalt_deltas",parameters:{temperature:-.5,humidity:0,continentalness:0,erosion:0,depth:0,weirdness:0,offset:.175}}]};async function kv(){return(await rp("1.18","dimension","overworld")).generator.biome_source}const Ir=[50,50,51,51,52,52,53,54,56,57,57,58,58,59,60,60,60,59,59,59,60,61,61,62,63,63,64,64,64,65,65,66,66,65,65,66,66,67,67,67,68,69,71,73,74,76,79,80,81,81,82,83,83,82,82,81,81,80,80,80,81,81,82,82],ld=[[255,77,54],[59,118,255],[91,207,25],[217,32,245],[255,209,41],[52,204,209]];function Cv(e,t,n){const r=new Tt(n.seed),i={placements:[],features:[],random:r,biomeInfoNoise:new Ge(r.fork(),0,[1]),seaLevel:63,version:n.version,nextFloat:()=>r.nextFloat(),nextInt:o=>r.nextInt(o),nextGaussian:()=>Math.sqrt(-2*Math.log(1-r.nextFloat()))*Math.cos(2*Math.PI*r.nextFloat()),sampleInt(o){return Ev(o,this)}};for(let o=0;o<n.size[0]/16;o+=1)for(let a=0;a<n.size[2]/16;a+=1)ct(n.version,void 0,"1.17")?hi([o*16,0,a*16],P.DataModel.unwrapLists(e),i):Mv([o*16,0,a*16],P.DataModel.unwrapLists(e.placement),i);const s=t.data;t.data.fill(255);for(const[o,a]of i.placements){if(o[0]<0||o[1]<0||o[2]<0||o[0]>=n.size[0]||o[1]>=n.size[1]||o[2]>=n.size[2])continue;const l=o[2]*(t.width*4)+o[0]*4,u=a<ld.length?ld[a]:Jc(i.features[a]);s[l]=Ht(50,205,u[0]),s[l+1]=Ht(50,205,u[1]),s[l+2]=Ht(50,205,u[2]),s[l+3]=255}for(let o=0;o<n.size[0];o+=1)for(let a=0;a<n.size[2];a+=1){if((Math.floor(o/16)+Math.floor(a/16))%2===0)continue;const l=a*(t.width*4)+o*4;for(let u=0;u<3;u+=1)s[l+u]=.85*s[l+u]}}function $i(e){return e.startsWith("minecraft:")?e.slice(10):e}function Xt(e,t){return[[e[0],t,e[2]]]}function Ev(e,t){var n,r;if(typeof e=="number")return e;if(e.base)return(r=e.base)!=null?r:1+t.nextInt(1+((n=e.spread)!=null?n:0));switch($i(e.type)){case"constant":return e.value;case"uniform":return e.value.min_inclusive+t.nextInt(e.value.max_inclusive-e.value.min_inclusive+1);case"biased_to_bottom":return e.value.min_inclusive+t.nextInt(t.nextInt(e.value.max_inclusive-e.value.min_inclusive+1)+1);case"clamped":return Ht(t.sampleInt(e.value.source),e.value.min_inclusive,e.value.max_inclusive);case"clamped_normal":const i=e.value.mean+t.nextGaussian()*e.value.deviation;return Math.floor(Ht(e.value.min_inclusive,e.value.max_inclusive,i));case"weighted_list":const s=e.distribution.reduce((a,l)=>a+l.weight,0);let o=t.nextInt(s);for(const a of e.distribution)if(o-=a.weight,o<0)return t.sampleInt(a.data);return 0}return 1}function yn(e,t){if(!Jr(e))throw new Error("Invalid vertical anchor");if(e.absolute)return e.absolute;if(e.above_bottom)return e.above_bottom;if(e.below_top)return 256-e.below_top;throw new Error("Invalid vertical anchor")}function Av(e,t){var n,r,i,s;if(!Jr(e))throw new Error("Invalid height provider");if(typeof e.type!="string")return yn(e);switch($i(e.type)){case"constant":return yn(e.value);case"uniform":{const o=yn(e.min_inclusive),a=yn(e.max_inclusive);return o+t.nextInt(a-o+1)}case"biased_to_bottom":{const o=yn(e.min_inclusive),a=yn(e.max_inclusive),l=t.nextInt(a-o-((n=e.inner)!=null?n:1)+1);return o+t.nextInt(l+((r=e.inner)!=null?r:1))}case"very_biased_to_bottom":{const o=yn(e.min_inclusive),a=yn(e.max_inclusive),l=(i=e.inner)!=null?i:1,u=o+l+t.nextInt(a-o-l+1),c=o+t.nextInt(u-o);return o+t.nextInt(c-o+l)}case"trapezoid":{const o=yn(e.min_inclusive),a=yn(e.max_inclusive),l=(s=e.plateau)!=null?s:0;if(l>=a-o)return o+t.nextInt(a-o+1);const u=(a-o-l)/2,c=a-o-u;return o+t.nextInt(c+1)+t.nextInt(u+1)}default:throw new Error(`Invalid height provider ${e.type}`)}}function cd(e,t){const n=t.features.indexOf(e);return n!=-1?n:(t.features.push(e),t.features.length-1)}function hi(e,t,n){var s;if(typeof t=="string"){n.placements.push([e,cd(t,n)]);return}const r=$i((s=t==null?void 0:t.type)!=null?s:"no_op"),i=Sv[r];i?i(t.config,e,n):n.placements.push([e,cd(JSON.stringify(t),n)])}function Ec(e,t,n){var s;const r=$i((s=t==null?void 0:t.type)!=null?s:"nope"),i=Iv[r];return i?i(t==null?void 0:t.config,e,n):[e]}const Sv={decorated:(e,t,n)=>{Ec(t,e==null?void 0:e.decorator,n).forEach(i=>hi(i,e==null?void 0:e.feature,n))},random_boolean_selector:(e,t,n)=>{const r=n.nextFloat()<.5?e==null?void 0:e.feature_true:e==null?void 0:e.feature_false;hi(t,r,n)},random_selector:(e,t,n)=>{var r,i;for(const s of(r=e==null?void 0:e.features)!=null?r:[])if(n.nextFloat()<((i=s==null?void 0:s.chance)!=null?i:0)){hi(t,s.feature,n);return}hi(t,e==null?void 0:e.default,n)},simple_random_selector:(e,t,n)=>{var i,s,o;const r=(o=e==null?void 0:e.features)==null?void 0:o[n.nextInt((s=(i=e==null?void 0:e.features)==null?void 0:i.length)!=null?s:0)];hi(t,r,n)}},Iv={chance:(e,t,n)=>{var r;return n.nextFloat()<1/((r=e==null?void 0:e.chance)!=null?r:1)?[t]:[]},count:(e,t,n)=>{var r;return new Array(n.sampleInt((r=e==null?void 0:e.count)!=null?r:1)).fill(t)},count_extra:(e,t,n)=>{var i,s;let r=(i=e==null?void 0:e.count)!=null?i:1;return n.nextFloat()<e.extra_chance&&(r+=(s=e.extra_count)!=null?s:0),new Array(r).fill(t)},count_multilayer:(e,t,n)=>{var r;return new Array(n.sampleInt((r=e==null?void 0:e.count)!=null?r:1)).fill(t).map(i=>[i[0]+n.nextInt(16),i[1],i[2]+n.nextInt(16)])},count_noise:(e,t,n)=>{const i=n.biomeInfoNoise.sample(t[0]/200,0,t[2]/200)<e.noise_level?e.below_noise:e.above_noise;return new Array(i).fill(t)},count_noise_biased:(e,t,n)=>{var o;const r=Math.max(1,e.noise_factor),i=n.biomeInfoNoise.sample(t[0]/r,0,t[2]/r),s=Math.max(0,Math.ceil((i+((o=e.noise_offset)!=null?o:0))*e.noise_to_count_ratio));return new Array(s).fill(t)},dark_oak_tree:(e,t,n)=>[...new Array(16)].map((r,i)=>{const s=Math.floor(i/4)*4+1+n.nextInt(3)+t[0],o=Math.max(n.seaLevel,Ir[Ht(0,63,s)]),a=Math.floor(i%4)*4+1+n.nextInt(3)+t[2];return[s,o,a]}),decorated:(e,t,n)=>Ec(t,e==null?void 0:e.outer,n).flatMap(r=>Ec(r,e==null?void 0:e.inner,n)),depth_average:(e,t,n)=>{var i,s,o,a;const r=n.nextInt((i=e==null?void 0:e.spread)!=null?i:0)+n.nextInt((s=e==null?void 0:e.spread)!=null?s:0)-((o=e.spread)!=null?o:0)+((a=e==null?void 0:e.baseline)!=null?a:0);return Xt(t,r)},emerald_ore:(e,t,n)=>{const r=3+n.nextInt(6);return[...new Array(r)].map(()=>[t[0]+n.nextInt(16),4+n.nextInt(28),t[2]+n.nextInt(16)])},fire:(e,t,n)=>{const r=1+n.nextInt(n.nextInt(n.sampleInt(e==null?void 0:e.count)));return[...new Array(r)].map(()=>[t[0]+n.nextInt(16),n.nextInt(128),t[2]+n.nextInt(16)])},glowstone:(e,t,n)=>{const r=n.nextInt(1+n.nextInt(n.sampleInt(e==null?void 0:e.count)));return[...new Array(r)].map(()=>[t[0]+n.nextInt(16),n.nextInt(128),t[2]+n.nextInt(16)])},heightmap:(e,t,n)=>{const r=Math.max(n.seaLevel,Ir[Ht(0,63,t[0])]);return Xt(t,r)},heightmap_spread_double:(e,t,n)=>{const r=Math.max(n.seaLevel,Ir[Ht(0,63,t[0])]);return Xt(t,n.nextInt(r*2))},heightmap_world_surface:(e,t,n)=>{const r=Math.max(n.seaLevel,Ir[Ht(0,63,t[0])]);return Xt(t,r)},iceberg:(e,t,n)=>[[t[0]+4+n.nextInt(8),t[1],t[2]+4+n.nextInt(8)]],lava_lake:(e,t,n)=>{var r,i;if(n.nextInt(((r=e.chance)!=null?r:1)/10)===0){const s=n.nextInt(n.nextInt(248)+8);if(s<n.seaLevel||n.nextInt(((i=e==null?void 0:e.chance)!=null?i:1)/8)==0){const o=n.nextInt(16)+t[0],a=n.nextInt(16)+t[2];return[[o,s,a]]}}return[]},nope:(e,t)=>[t],range:(e,t,n)=>{var i,s,o;const r=n.nextInt(((i=e==null?void 0:e.maximum)!=null?i:1)-((s=e==null?void 0:e.top_offset)!=null?s:0))+((o=e==null?void 0:e.bottom_offset)!=null?o:0);return Xt(t,r)},range_biased:(e,t,n)=>{var i,s,o;const r=n.nextInt(n.nextInt(((i=e==null?void 0:e.maximum)!=null?i:1)-((s=e==null?void 0:e.top_offset)!=null?s:0))+((o=e==null?void 0:e.bottom_offset)!=null?o:0));return Xt(t,r)},range_very_biased:(e,t,n)=>{var i,s,o,a;const r=n.nextInt(n.nextInt(n.nextInt(((i=e==null?void 0:e.maximum)!=null?i:1)-((s=e==null?void 0:e.top_offset)!=null?s:0))+((o=e==null?void 0:e.bottom_offset)!=null?o:0))+((a=e==null?void 0:e.bottom_offset)!=null?a:0));return Xt(t,r)},spread_32_above:(e,t,n)=>{const r=n.nextInt(t[1]+32);return Xt(t,r)},top_solid_heightmap:(e,t)=>{const n=Ir[Ht(0,63,t[0])];return Xt(t,n)},magma:(e,t,n)=>{const r=n.nextInt(t[1]+32);return Xt(t,r)},square:(e,t,n)=>[[t[0]+n.nextInt(16),t[1],t[2]+n.nextInt(16)]],surface_relative_threshold:(e,t)=>{var s,o;const n=Ir[Ht(0,63,t[0])],r=n+((s=e==null?void 0:e.min_inclusive)!=null?s:-1/0),i=n+((o=e==null?void 0:e.max_inclusive)!=null?o:1/0);return t[1]<r||t[1]>i?[t]:[]},water_lake:(e,t,n)=>{var r;return n.nextInt((r=e.chance)!=null?r:1)===0?[[t[0]+n.nextInt(16),n.nextInt(256),t[2]+n.nextInt(16)]]:[]}};function Mv(e,t,n){var i;let r=[e];for(const s of t)!ud[$i((i=s==null?void 0:s.type)!=null?i:"nope")]||(r=r.flatMap(a=>ud[$i(s.type)](s,a,n)));for(const s of r)n.placements.push([s,0])}const ud={count:({count:e},t,n)=>new Array(n.sampleInt(e!=null?e:1)).fill(t),count_on_every_layer:({count:e},t,n)=>new Array(n.sampleInt(e!=null?e:1)).fill(t).map(r=>[r[0]+n.nextInt(16),r[1],r[2]+n.nextInt(16)]),environment_scan:({},e)=>[e],height_range:({height:e},t,n)=>Xt(t,Av(e,n)),heightmap:({},e,t)=>{const n=Math.max(t.seaLevel,Ir[Ht(0,63,e[0])]);return Xt(e,n)},in_square:({},e,t)=>[[e[0]+t.nextInt(16),e[1],e[2]+t.nextInt(16)]],noise_based_count:({noise_to_count_ratio:e,noise_factor:t,noise_offset:n},r,i)=>{const s=Math.max(1,t),o=i.biomeInfoNoise.sample(r[0]/s,0,r[2]/s),a=Math.max(0,Math.ceil((o+(n!=null?n:0))*e));return new Array(a).fill(r)},noise_threshold_count:({noise_level:e,below_noise:t,above_noise:n},r,i)=>{const o=i.biomeInfoNoise.sample(r[0]/200,0,r[2]/200)<e?t:n;return new Array(o).fill(r)},random_offset:({xz_spread:e,y_spread:t},n,r)=>[[n[0]+r.sampleInt(e),n[1]+r.sampleInt(t),n[2]+r.sampleInt(e)]],rarity_filter:({chance:e},t,n)=>n.nextFloat()<1/(e!=null?e:1)?[t]:[]},dd=new Set(["minecraft:worldgen/noise","minecraft:worldgen/density_function"]);class Tv{constructor(){this.d=id,this.deepslateCache=new Map,this.Z=0,this.chunksCache=[]}async loadVersion(t,n){if(this.loadedVersion===t){this.applyProjectData(t,n);return}return(this.loadingVersion!==t||!this.loadingPromise)&&(this.loadingVersion=t,this.loadingPromise=this.doLoadVersion(t,n)),this.loadingPromise}async doLoadVersion(t,n){const r=this.deepslateCache.get(t);if(r)this.d=r;else{if(ct(t,"1.19")?this.d=id:ct(t,"1.18.2")?this.d=await be(()=>import("./deepslate.esm.895cbe66.js"),["assets/deepslate.esm.895cbe66.js","assets/vec3.6bb9fc18.js"]):this.d=await be(()=>import("./deepslate.esm.c48a56e6.js"),["assets/deepslate.esm.c48a56e6.js","assets/vec3.6bb9fc18.js"]),ct(t,"1.19"))await Promise.all(this.d.Registry.REGISTRY.map(async(i,s)=>{if(dd.has(i.toString())){const o=await au(t,i.path);for(const[a,l]of o.entries())s.register(this.d.Identifier.parse(a),s.parse(l),!0)}}));else if(ct(t,"1.18.2")){const i=[["worldgen/noise","NOISE",this.d.NoiseParameters],["worldgen/density_function","DENSITY_FUNCTION",this.d.DensityFunction]];await Promise.all(i.map(async([s,o,a])=>{const l=await au(t,s);for(const[u,c]of l.entries())this.d.WorldgenRegistries[o].register(this.d.Identifier.parse(u),a.fromJson(c),!0)}))}this.deepslateCache.set(t,this.d)}this.applyProjectData(t,n),this.loadedVersion=t,this.loadingVersion=void 0}applyProjectData(t,n){ct(t,"1.19")&&this.d.Registry.REGISTRY.forEach((r,i)=>{var s;if(dd.has(r.toString())){i.clear();for(const[o,a]of Object.entries((s=n==null?void 0:n[r.path])!=null?s:{}))i.register(this.d.Identifier.parse(o),i.parse(a))}})}loadChunkGenerator(t,n,r="unknown"){if(!this.loadedVersion)throw new Error("No deepslate version loaded");const i=[t,`${n}`,r];if(!Br(this.cacheState,i)){const s=new this.d.FixedBiome(ct(this.loadedVersion,"1.18.2")?this.d.Identifier.parse(r):r),o=this.d.NoiseGeneratorSettings.fromJson(P.DataModel.unwrapLists(t)),a=new this.d.NoiseChunkGenerator(n,s,o);this.settingsCache=o.noise,this.generatorCache=a,this.chunksCache=[],this.cacheState=ja(i)}}generateChunks(t,n,r="unknown"){if(t=Math.floor(t),!this.settingsCache)throw new Error("Tried to generate chunks before settings are loaded");const i=this.settingsCache.minY,s=this.settingsCache.height;return[...Array(Math.ceil(n/16)+1)].map((o,a)=>{const l=(t>>4)+a,u=this.chunksCache.find(d=>d.pos[0]===l);if(u)return u;const c=new this.d.Chunk(i,s,this.d.ChunkPos.create(l,this.Z>>4));if(!this.generatorCache)throw new Error("Tried to generate chunks before generator is loaded");return this.generatorCache.fill(c,!0),this.generatorCache.buildSurface(c,r),this.chunksCache.push(c),c})}loadDensityFunction(t,n){const r=this.d.XoroshiroRandom.create(n).forkPositional(),i=this.d.NoiseSettings.fromJson({min_y:-64,height:384,size_horizontal:1,size_vertical:2,sampling:{xz_scale:1,y_scale:1,xz_factor:80,y_factor:160},bottom_slide:{target:.1171875,size:3,offset:0},top_slide:{target:-.078125,size:2,offset:8},terrain_shaper:{offset:.044,factor:4,jaggedness:0}});return this.settingsCache=i,this.d.DensityFunction.fromJson(t).mapAll(new this.d.NoiseRouter.Visitor(r,i))}getNoiseSettings(){if(!this.settingsCache)throw new Error("Tried to access noise settings when they are not loaded");return this.settingsCache}getBlockState(t,n){t=Math.floor(t),n=Math.floor(n);const r=this.chunksCache.find(i=>this.d.ChunkPos.minBlockX(i.pos)<=t&&this.d.ChunkPos.maxBlockX(i.pos)>=t);return r==null?void 0:r.getBlockState(this.d.BlockPos.create(t,n,this.Z))}}class Lv{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 Tt(t);this.minLimitPerlinNoise=new Ge(n,-15,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),this.maxLimitPerlinNoise=new Ge(n,-15,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),this.mainPerlinNoise=new Ge(n,-7,[1,1,1,1,1,1,1,1]),this.depthNoise=new Ge(n,-15,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1])}reset(t,n,r,i,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,r=1+r*4),this.biomeDepth=.265625*(n*.5-.125),this.biomeScale=96/(r*.9+.1),this.noiseColumnCache=Array(s).fill(null),this.xOffset=i}iterateNoiseColumn(t){const n=Array(this.chunkCountY*this.chunkHeight),r=Math.floor(t/this.chunkWidth),i=Math.floor(t%this.chunkWidth)/this.chunkWidth,s=this.fillNoiseColumn(r),o=this.fillNoiseColumn(r+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]=J3(u,i,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 r=Array(this.chunkCountY+1),i=684.412*this.settings.sampling.xz_scale,s=684.412*this.settings.sampling.y_scale,o=i/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,i,s,o,a);const h=((1-u*2/this.chunkCountY+l)*this.settings.density_factor+this.settings.density_offset+this.biomeDepth)*this.biomeScale;c+=h*(h>0?4:1),this.settings.top_slide.size>0&&(c=wl(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=wl(this.settings.bottom_slide.target,c,(u-this.settings.bottom_slide.offset)/this.settings.bottom_slide.size)),r[u]=c}return this.noiseColumnCache[t-this.xOffset]=r,r}getRandomDensity(t){const n=this.depthNoise.sample(t*200,10,this.depthNoise.getOctaveNoise(0).zo,1,0,!0),i=(n<0?-n*.3:n)*24.575625-2;return i<0?i*.009486607142857142:Math.min(i,1)*.006640625}sampleAndClampNoise(t,n,r,i,s,o,a){let l=0,u=0,c=0,d=1;for(let f=0;f<16;f+=1){const h=Ge.wrap(t*i*d),w=Ge.wrap(n*s*d),_=Ge.wrap(r*i*d),m=s*d,g=this.minLimitPerlinNoise.getOctaveNoise(f);g&&(l+=g.sample(h,w,_,m,n*m)/d);const v=this.maxLimitPerlinNoise.getOctaveNoise(f);if(v&&(u+=v.sample(h,w,_,m,n*m)/d),f<8){const b=this.mainPerlinNoise.getOctaveNoise(f);b&&(c+=b.sample(Ge.wrap(t*o*d),Ge.wrap(n*a*d),Ge.wrap(r*o*d),a*d,n*a*d)/d)}d/=2}return wl(l/512,u/512,(c/10+1)/2)}}const Ov={"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]},zn=new Tv;async function Rv(e,t,n){var o,a,l,u;if(ct(n.version,"1.18")){await zn.loadVersion(n.version,x2(n.project)),zn.loadChunkGenerator(e,n.seed,n.biome),zn.generateChunks(-n.offset,n.width,n.biome);const c=zn.getNoiseSettings(),d=t.data;for(let f=0;f<n.width;f+=1)for(let h=0;h<c.height;h+=1){const w=f*4+(c.height-h-1)*4*t.width,_=(o=zn.getBlockState(f-n.offset,h+c.minY))!=null?o:$e.AIR,m=(a=Ov[_.getName().toString()])!=null?a:[0,0,0];d[w]=m[0],d[w+1]=m[1],d[w+2]=m[2],d[w+3]=255}return}const r=new Lv(n.seed);r.reset(e.noise,(l=n.biomeDepth)!=null?l:0,(u=n.biomeScale)!=null?u:0,n.offset,n.width);const i=t.data,s=t.width*4;for(let c=0;c<n.width;c+=1){const d=r.iterateNoiseColumn(c-n.offset).reverse();for(let f=0;f<e.noise.height;f+=1){const h=f*s+c*4,w=Fv(d,f);i[h]=w,i[h+1]=w,i[h+2]=w,i[h+3]=255}}}function Nv(e,t){return zn.getBlockState(e,t)}async function Dv(e,t,n){await zn.loadVersion(n.version,x2(n.project));const r=zn.loadDensityFunction(e,n.seed),i=zn.getNoiseSettings(),s=Array(n.width*i.height);let o=1/0,a=-1/0;for(let u=0;u<n.width;u+=1)for(let c=0;c<i.height;c+=1){const d=u+(i.height-c-1)*n.width,f=r.compute(ke.context(u-n.offset,c,0));o=Math.min(o,f),a=Math.max(a,f),s[d]=f}const l=t.data;for(let u=0;u<n.width*i.height;u+=1){const c=Math.floor(Xa(s[u],o,a,0,256));l[4*u]=c,l[4*u+1]=c,l[4*u+2]=c,l[4*u+3]=255}}function x2(e){return Object.fromEntries(["worldgen/noise","worldgen/density_function"].map(t=>{const n=Object.fromEntries(e.files.filter(r=>r.type===t).map(r=>[r.id,r.data]));return[t,n]}))}function Fv(e,t){return e[t]>0?0:e[t+1]>0?150:255}function Pv(e,t,n){const r=He.create(n.seed),i=Yr.fromJson(P.DataModel.unwrapLists(e)),s=new Dr(r,i),o=-n.offset[0]-100,a=-n.offset[1]-100,l=t.data;for(let u=0;u<256;u+=1)for(let c=0;c<256;c+=1){const d=u*4+c*4*256,f=(u+o)*n.scale,h=(c+a)*n.scale,w=(s.sample(f,h,0)+1)*128;l[d]=w,l[d+1]=w,l[d+2]=w,l[d+3]=255}}const $v=["biomes","temperature","humidity","continentalness","erosion","weirdness"],Bv=({model:e,data:t,shown:n,version:r})=>{var C,E;const{locale:i}=Ce(),[s]=X(Xn()),[o,a]=X(2),[l,u]=X(void 0),[c,d]=X(new Set(["biomes"])),{biomeColors:f}=gp(),h=Le([0,0]),w=Le(1),_=Le(),m=BigInt((C=e.get(new P.Path(["generator","seed"])))!=null?C:s),g=ye(()=>{if(!!n)return Vv(e.get(new P.Path(["generator","settings"])))},[n]),v=n?jv(t,g):"",b=(E=t.type)==null?void 0:E.replace(/^minecraft:/,""),{canvas:x,redraw:y}=Js({size(){return[200/w.current,200/w.current]},async draw(I){const S={octaves:g,biomeColors:f,layers:c,offset:h.current,scale:o,seed:m,res:w.current,version:r};await gv(t,I,S),w.current===4&&(clearTimeout(_.current),_.current=setTimeout(()=>{w.current=1,y()},150))},async onDrag(I,S){h.current[0]=h.current[0]+I*200,h.current[1]=h.current[1]+S*200,clearTimeout(_.current),w.current=b==="multi_noise"?4:1,y()},async onHover(I,S){const T={octaves:g,biomeColors:f,layers:c,offset:h.current,scale:o,seed:s,res:1,version:r},L=await _v(t,Math.floor(I*200),Math.floor(S*200),T);u(L)},onLeave(){u(void 0)}},[r,v,o,s,c,f]);me(()=>{n&&(w.current=b==="multi_noise"?4:1,y())},[r,v,o,s,c,n,f]);const k=I=>{h.current[0]=h.current[0]*o/I,h.current[1]=h.current[1]*o/I,a(I)};return F(pe,{children:[F("div",{class:"controls preview-controls",children:[l&&p(oe,{label:l.biome,class:"no-pointer"}),b==="multi_noise"&&p(Bt,{icon:"stack",tooltip:i("configure_layers"),children:$v.map(I=>{const S=c.has(I);return p(oe,{label:i(`layer.${I}`),active:S,tooltip:i(S?"enabled":"disabled"),onClick:T=>{d(new Set([I])),T.stopPropagation()}})})}),(b==="multi_noise"||b==="checkerboard")&&F(pe,{children:[p(oe,{icon:"dash",tooltip:i("zoom_out"),onClick:()=>k(o*1.5)}),p(oe,{icon:"plus",tooltip:i("zoom_in"),onClick:()=>k(o/1.5)})]}),b==="multi_noise"&&p(oe,{icon:"sync",tooltip:i("generate_new_seed"),onClick:()=>Kh(e)})]}),(l==null?void 0:l.temperature)!==void 0&&p("div",{class:"controls secondary-controls",children:p(oe,{class:"no-pointer",label:Object.entries(l).filter(([I])=>I!=="biome").map(([I,S])=>`${I[0].toUpperCase()}: ${S.toFixed(2)}`).join(" ")})}),p("canvas",{ref:x,width:"200",height:"200"})]})};function jv(e,t){return JSON.stringify([e,t])}function Vv(e){switch(typeof e!="string"&&(e=e.legacy_random_source?"minecraft:nether":"minecraft:overworld"),e.replace(/^minecraft:/,"")){case"overworld":case"amplified":return{temperature:{firstOctave:-9,amplitudes:[1.5,0,1,0,0,0]},humidity:{firstOctave:-7,amplitudes:[1,1,0,0,0,0]},continentalness:{firstOctave:-9,amplitudes:[1,1,2,2,2,1,1,1,1]},erosion:{firstOctave:-9,amplitudes:[1,1,0,1,1]},weirdness:{firstOctave:-7,amplitudes:[1,2,1,0,0,0]},shift:{firstOctave:-3,amplitudes:[1,1,1,0]}};case"large_biomes":return{temperature:{firstOctave:-12,amplitudes:[1.5,0,1,0,0,0]},humidity:{firstOctave:-10,amplitudes:[1,1,0,0,0,0]},continentalness:{firstOctave:-11,amplitudes:[1,1,2,2,2,1,1,1,1]},erosion:{firstOctave:-11,amplitudes:[1,1,0,1,1]},weirdness:{firstOctave:-7,amplitudes:[1,2,1,0,0,0]},shift:{firstOctave:-3,amplitudes:[1,1,1,0]}};default:return{temperature:{firstOctave:-7,amplitudes:[1,1]},humidity:{firstOctave:-7,amplitudes:[1,1]},continentalness:{firstOctave:-7,amplitudes:[1,1]},erosion:{firstOctave:-7,amplitudes:[1,1]},weirdness:{firstOctave:-7,amplitudes:[1,1]},shift:{firstOctave:0,amplitudes:[0]}}}}const zv=({data:e,version:t,shown:n})=>{const{locale:r}=Ce(),[i,s]=X(4),[o,a]=X(Xn()),l=JSON.stringify(e),{canvas:u,redraw:c}=Js({size(){return[i*16,i*16]},async draw(d){Cv(e,d,{seed:o,version:t,size:[i*16,128,i*16]})}},[t,l,o]);return me(()=>{n&&c()},[t,l,i,o,n]),F(pe,{children:[F("div",{class:"controls preview-controls",children:[p(oe,{icon:"dash",tooltip:r("zoom_out"),onClick:()=>s(Math.min(16,i+1))}),p(oe,{icon:"plus",tooltip:r("zoom_in"),onClick:()=>s(Math.max(1,i-1))}),p(oe,{icon:"sync",tooltip:r("generate_new_seed"),onClick:()=>a(Xn())})]}),p("canvas",{ref:u,width:"64",height:"64"})]})},Uv=({data:e,shown:t,version:n})=>{var g,v;const{locale:r}=Ce(),{project:i}=tr(),[s,o]=X(Xn()),[a,l]=X(!1),[u,c]=X(void 0),d=Le(0),f=Le(void 0),h=JSON.stringify([e]),w=(v=(g=e==null?void 0:e.noise)==null?void 0:g.height)!=null?v:256,{canvas:_,redraw:m}=Js({size(){return[w,w]},async draw(b){const x={offset:d.current,width:b.width,seed:s,version:n,project:i};await Dv(e,b,x)},async onDrag(b){d.current+=b*w,m()},async onHover(b,x){var C,E;const y=Math.floor(b*w-d.current),k=w-Math.max(1,Math.ceil(x*w))+((E=(C=e==null?void 0:e.noise)==null?void 0:C.min_y)!=null?E:0);c(`X=${y} Y=${k}`)},onLeave(){c(void 0)}},[n,h,s,i]);return me(()=>{f.current&&clearInterval(f.current),t&&(m(),a&&(f.current=setInterval(()=>{d.current-=8,m()},100)))},[n,h,s,i,t,a]),F(pe,{children:[F("div",{class:"controls preview-controls",children:[u&&p(oe,{label:u,class:"no-pointer"}),p(Bt,{icon:"gear",tooltip:r("terrain_settings"),children:p(oe,{icon:a?"square_fill":"square",label:r("preview.auto_scroll"),onClick:()=>l(!a)})}),p(oe,{icon:"sync",tooltip:r("generate_new_seed"),onClick:()=>o(Xn())})]}),p("canvas",{ref:_,width:w,height:w})]})},Hv=({data:e,shown:t,version:n})=>{const{locale:r}=Ce(),[i,s]=X(Xn()),[o,a]=X(2),l=Le([0,0]),u=JSON.stringify([e]),{canvas:c,redraw:d}=Js({size(){return[256,256]},async draw(h){const w={offset:l.current,scale:o,seed:i,version:n};Pv(e,h,w)},async onDrag(h,w){l.current[0]=l.current[0]+h*256,l.current[1]=l.current[1]+w*256,d()}},[n,u,o,i]);me(()=>{t&&d()},[n,u,o,i,t]);const f=h=>{l.current[0]=l.current[0]*o/h,l.current[1]=l.current[1]*o/h,a(h)};return F(pe,{children:[F("div",{class:"controls preview-controls",children:[p(oe,{icon:"dash",tooltip:r("zoom_out"),onClick:()=>f(o*1.5)}),p(oe,{icon:"plus",tooltip:r("zoom_in"),onClick:()=>f(o/1.5)}),p(oe,{icon:"sync",tooltip:r("generate_new_seed"),onClick:()=>s(Xn())})]}),p("canvas",{ref:c,width:"256",height:"256"})]})},Zv=({data:e,shown:t,version:n})=>{var E,I;const{locale:r}=Ce(),{project:i}=tr(),[s,o]=X(Xn()),[a,l]=X("minecraft:plains"),[u,c]=X(.2),[d,f]=X(.1),[h,w]=X(!1),[_,m]=X(void 0),g=Le(0),v=Le(void 0),b=JSON.stringify([e,u,d]),x=(I=(E=e==null?void 0:e.noise)==null?void 0:E.height)!=null?I:256,{canvas:y,redraw:k}=Js({size(){return[x,x]},async draw(S){const T={biome:a,biomeDepth:d,biomeScale:u,offset:g.current,width:S.width,seed:s,version:n,project:i};await Rv(e,S,T)},async onDrag(S){g.current+=S*x,k()},async onHover(S,T){var z,O;const L=Math.floor(S*x-g.current),D=x-Math.max(1,Math.ceil(T*x))+((O=(z=e==null?void 0:e.noise)==null?void 0:z.min_y)!=null?O:0),G=Nv(L,D);m(G?`Y=${D} (${G.getName().path})`:`Y=${D}`)},onLeave(){m(void 0)}},[b,s,i]);me(()=>{v.current&&clearInterval(v.current),t&&(async()=>{try{await k(),h&&(v.current=setInterval(()=>{g.current-=8,k()},100))}catch(S){throw S}})()},[n,b,s,i,t,a,u,d,h]);const C=ye(()=>{var S;return(S=hs==null?void 0:hs.get("worldgen/biome"))!=null?S:[]},[n]);return F(pe,{children:[F("div",{class:"controls preview-controls",children:[_&&p(oe,{label:_,class:"no-pointer"}),F(Bt,{icon:"gear",tooltip:r("terrain_settings"),children:[ct(n,void 0,"1.17")?F(pe,{children:[p(Zo,{label:r("preview.scale"),value:`${u}`,onChange:S=>c(Number(S))}),p(Zo,{label:r("preview.depth"),value:`${d}`,onChange:S=>f(Number(S))})]}):p(Zo,{label:r("preview.biome"),value:a,onChange:l,dataList:C,larger:!0}),p(oe,{icon:h?"square_fill":"square",label:r("preview.auto_scroll"),onClick:()=>w(!h)})]}),p(oe,{icon:"sync",tooltip:r("generate_new_seed"),onClick:()=>o(Xn())})]}),p("canvas",{ref:y,width:x,height:x})]})},Gv=["dimension","worldgen/density_function","worldgen/noise","worldgen/noise_settings","worldgen/configured_feature","worldgen/placed_feature"];function Yv({model:e,version:t,id:n,shown:r}){var s;const[,i]=X(0);if(za(e,()=>{i(o=>o+1)}),!e)return p(pe,{});if(n==="dimension"&&((s=e.get(new P.Path(["generator","type"])))==null?void 0:s.endsWith("noise"))){const o=e.get(new P.Path(["generator","biome_source"]));if(o)return p(Bv,{model:e,version:t,shown:r,data:o})}if(n==="worldgen/density_function"){const o=e.get(new P.Path([]));if(o)return p(Uv,{model:e,version:t,shown:r,data:o})}if(n==="worldgen/noise"){const o=e.get(new P.Path([]));if(o)return p(Hv,{model:e,version:t,shown:r,data:o})}if(n==="worldgen/noise_settings"){const o=e.get(new P.Path([]));if(o)return p(Zv,{model:e,version:t,shown:r,data:o})}if(n==="worldgen/placed_feature"||n==="worldgen/configured_feature"&&ct(t,"1.16","1.17")){const o=e.get(new P.Path([]));if(o)return p(zv,{model:e,version:t,shown:r,data:o})}return p(pe,{})}function Wv({onClose:e}){const{locale:t}=Ce(),{projects:n,createProject:r,changeProject:i,updateProject:s}=tr(),[o,a]=X(""),[l,u]=X(""),[c,d]=X(vw),[f,h]=X(void 0),[w,_]=X(!1),m=k=>{k.type.match(/^application\/(x-)?zip(-compressed)?$/)&&(o.length===0&&a(k.name.replace(/\.zip$/,"").replaceAll(/[ _-]+/g," ")),h(k))},g=Le(s);me(()=>{g.current=s},[s]);const v=()=>{_(!0),r(o,l||void 0,c),i(o),f?ew(f).then(async k=>{const C={files:[]};await Promise.all(k.map(async E=>{const I=pp(E[0]);if(I)try{const S=await up(E[1],"json");C.files.push(Me(fe({},I),{data:S}))}catch(S){console.error(`Failed parsing ${I.type} ${I.id}: ${Wt(S)}`)}})),g.current(C),e()}).catch(()=>{e()}):e()},b=ye(()=>n.map(k=>k.name.trim().toLowerCase()).includes(o.trim().toLowerCase()),[n,o]),x=ye(()=>!(l.length===0||l.match(/^(?:[a-z0-9._-]+:)?[a-z0-9/._-]+$/)),[l]),y=Oe.versions.map(k=>k.id).reverse();return F(Ha,{class:"project-creation",onDismiss:e,children:[p("p",{children:t("project.create")}),F("div",{class:"input-group",children:[p(mn,{autofocus:!0,class:`btn btn-input${!w&&(b||o.length===0)?" invalid":""}`,placeholder:t("project.name"),value:o,onChange:a}),!w&&b&&p("div",{class:"status-icon danger tooltipped tip-e","aria-label":t("project.name.already_exists"),children:he.issue_opened})]}),F("div",{class:"input-group",children:[p(mn,{class:`btn btn-input${!w&&x?" invalid":""}`,placeholder:t("project.namespace"),value:l,onChange:u}),!w&&x&&p("div",{class:"status-icon danger tooltipped tip-e","aria-label":t("project.namespace.invalid"),children:he.issue_opened})]}),p(Bt,{icon:"tag",label:c,tooltip:t("switch_version"),"data-cy":"version-switcher",children:y.map(k=>p(oe,{label:k,active:k===c,onClick:()=>d(k)}))}),p(Uw,{value:f,onChange:m,label:t("choose_zip_file"),accept:".zip"}),p(oe,{icon:"rocket",label:"Create!",disabled:w||b||o.length===0||x,onClick:v})]})}function qv({onClose:e}){const{locale:t}=Ce(),{projects:n,project:r,deleteProject:i}=tr(),s=()=>{Ae.deleteProject(n.length,r.files.length,"menu"),i(r.name),e()};return F(Ha,{class:"file-modal",onDismiss:e,children:[p("p",{children:t("project.delete_confirm.1",r.name)}),p("p",{children:p("b",{children:t("project.delete_confirm.2")})}),F("div",{class:"button-group",children:[p(oe,{icon:"trashcan",label:t("project.delete"),onClick:s,class:"danger"}),p(oe,{label:t("project.cancel"),onClick:e})]})]})}const Er="/";function b2({entries:e,onSelect:t,selected:n,actions:r,errors:i,indent:s}){const o=ye(()=>{var f;const d={};for(const h of e){const w=h.indexOf(Er);if(w>=0){const _=h.slice(0,w);((f=d[_])!=null?f:d[_]=[]).push(h.slice(w+1))}}return Object.entries(d).map(([h,w])=>{const _=r==null?void 0:r.map(g=>Me(fe({},g),{onAction:v=>g.onAction(h+Er+v)})),m=i==null?void 0:i.flatMap(g=>g.path.startsWith(h+Er)?[Me(fe({},g),{path:g.path.slice(h.length+Er.length)})]:[]);return[h,w,_,m]}).sort()},[e,r,i]),a=ye(()=>e.filter(d=>!d.includes(Er)),[e]),[l,u]=X(new Set),c=d=>{l.has(d)?l.delete(d):l.add(d),u(new Set(l))};return F("div",{class:"tree-view",style:`--indent: ${s!=null?s:0};`,children:[o.map(([d,f,h,w])=>{var _;return F("div",{children:[p(fd,{icon:l.has(d)?"chevron_right":"chevron_down",label:d,onClick:()=>c(d),error:((_=w==null?void 0:w.length)!=null?_:0)>0},d),!l.has(d)&&p(b2,{entries:f,onSelect:m=>t(`${d}${Er}${m}`),selected:n!=null&&n.startsWith(d+Er)?n.substring(d.length+1):void 0,actions:h,errors:w,indent:(s!=null?s:0)+1})]})}),a.map(d=>{var f;return p(fd,{icon:"file",label:d,active:d===n,onClick:()=>t(d),actions:r==null?void 0:r.map(h=>Me(fe({},h),{onAction:()=>h.onAction(d)})),error:(f=i==null?void 0:i.find(h=>h.path===d))==null?void 0:f.message},d)})]})}function fd({icon:e,label:t,active:n,onClick:r,actions:i,error:s}){const[o,a]=Va();return F("div",{class:`entry${s?" has-error":""}${n?" active":""}${o?" focused":""}`,onClick:r,onContextMenu:u=>{u.preventDefault(),i!=null&&i.length&&a()},children:[he[e],p("span",{children:t.replaceAll("\u2215","/")}),typeof s=="string"&&p("div",{class:"status-icon danger tooltipped tip-se","aria-label":s,children:he.issue_opened}),o&&p("div",{class:"entry-menu",children:i==null?void 0:i.map(u=>F("div",{class:"action",onClick:c=>{u.onAction(""),c.stopPropagation(),a(!1)},children:[he[u.icon],u.label]}))})]})}function Xv({onRename:e,onCreate:t,onDeleteProject:n}){const{locale:r}=Ce(),{version:i}=yr(),{projects:s,project:o,changeProject:a,file:l,openFile:u,updateFile:c}=tr(),[d,f]=X(ze.getTreeViewMode()),h=Fe(y=>{ze.setTreeViewMode(y),Ae.setTreeViewMode(y),f(y)},[]),w=Fe(y=>{if(d==="resources"&&y!=="pack.mcmeta"){const[k,C]=y.split("/");return{type:k.replaceAll("\u2215","/"),id:C.replaceAll("\u2215","/")}}return pp(y)},[d]),_=ye(()=>o.files.flatMap(y=>{const k=yl(y);return k?y.type==="pack_mcmeta"?"pack.mcmeta":d==="resources"?[`${y.type.replaceAll("/","\u2215")}/${y.id.replaceAll("/","\u2215")}`]:[k]:[]}),[d,...o.files]),m=ye(()=>l&&yl(l),[l]),g=Fe(y=>{const k=w(y);k&&u(k.type,k.id)},[w]),v=Le(null),b=async()=>{if(!v.current)return;let y=!1;const k=o.files.flatMap(E=>{const I=yl(E);return I===void 0?[]:(I==="pack.mcmeta"&&(y=!0),[[I,hc(E.data)]])});if(!y){const E=Oe.versions.find(I=>I.id===i).pack_format;k.push(["pack.mcmeta",hc({pack:{pack_format:E,description:""}})])}const C=await tw(k);v.current.setAttribute("href",C),v.current.setAttribute("download",`${o.name.replaceAll(" ","_")}.zip`),v.current.click()},x=ye(()=>[{icon:"pencil",label:r("project.rename_file"),onAction:y=>{const k=w(y);k&&e(k)}},{icon:"trashcan",label:r("project.delete_file"),onAction:y=>{const k=w(y);k&&(Ae.deleteProjectFile(k.type,s.length,o.files.length,"menu"),c(k.type,k.id,{}))}}],[w,c,e]);return F(pe,{children:[F("div",{class:"project-controls",children:[p(Bt,{icon:"chevron_down",label:o.name,tooltip:r("switch_project"),tooltipLoc:"se",children:s.map(y=>p(oe,{label:y.name,active:y.name===o.name,onClick:()=>a(y.name)}))}),F(Bt,{icon:"kebab_horizontal",children:[p(oe,{icon:"file_zip",label:r("project.download"),onClick:b}),p(oe,{icon:"plus_circle",label:r("project.new"),onClick:t}),p(oe,{icon:d==="resources"?"three_bars":"rows",label:r(d==="resources"?"project.show_file_paths":"project.show_resources"),onClick:()=>h(d==="resources"?"files":"resources")}),o.name!==wr.name&&p(oe,{icon:"trashcan",label:r("project.delete"),onClick:n})]})]}),p("div",{class:"file-view",children:_.length===0?p("span",{children:r("project.no_files")}):p(b2,{entries:_,selected:m,onSelect:g,actions:x})}),p("a",{ref:v,style:"display: none;"})]})}function Ac(e,t){return e.schema.hook(Kv,new P.ModelPath(e),e.data,{blockStates:t})}const Kv={base({},e,t){return t},choice({switchNode:e},t,n,r){return e.hook(this,t,n,r)},list({children:e},t,n,r){if(!Array.isArray(n))return n;const i=n.map((s,o)=>e.hook(this,t.push(o),s.node,r));for(const s of Object.getOwnPropertySymbols(n))i[s]=n[s];return i},map({children:e,config:t},n,r,i){var a,l;if(r===void 0)return;const s=((a=t.validation)==null?void 0:a.validator)==="block_state_map"?(l=i.blockStates)==null?void 0:l[P.relativePath(n,t.validation.params.id).get()]:null,o={};Object.keys(r).forEach(u=>{var c;s&&!Object.keys((c=s.properties)!=null?c:{}).includes(u)||(o[u]=e.hook(this,n.push(u),r[u],i))});for(const u of Object.getOwnPropertySymbols(r))o[u]=r[u];return o},object({getActiveFields:e},t,n,r){if(n==null||typeof n!="object")return n;const i={},s=e(t);Object.keys(s).filter(o=>s[o].enabled(t)).forEach(o=>{const a=s[o].hook(this,t.push(o),n[o],r);a!=null&&(i[o]=a)});for(const o of Object.getOwnPropertySymbols(n))i[o]=n[o];return i}};function Jv({name:e,model:t,blockStates:n,doCopy:r,doDownload:i,doImport:s,copySuccess:o,onError:a}){const{locale:l}=Ce(),[u,c]=X(ze.getIndent()),[d,f]=X(ze.getFormat()),[h,w]=X(ze.getHighlighting()),[_,m]=X(!1),g=Le(null),v=Le(()=>{}),b=Le(async()=>{}),x=Le(null),y=Le(),k=Fe((S,T)=>{const L=Ac(S,T);return hc(L,d,u)},[u,d]);me(()=>{v.current=()=>{if(!!y.current&&!(!t||!n))try{const S=k(t,n);y.current.setValue(S)}catch(S){S instanceof Error?(S.message=`Error getting JSON output: ${S.message}`,a(S)):a(`Error getting JSON output: ${Wt(S)}`),console.error(S),y.current.setValue("")}},b.current=async()=>{if(!y.current)return;const S=y.current.getValue();if(S.length!==0)try{const T=await up(S,d);t==null||t.reset(P.DataModel.wrapLists(T),!1)}catch(T){T instanceof Error?(T.message=`Error importing: ${T.message}`,a(T)):a(`Error importing: ${Wt(T)}`),console.error(T)}}},[t,n,u,d,h]),me(()=>{h?(m(!1),y.current={getValue(){return""},setValue(){},configure(){},select(){}},be(()=>import("./index.8ac52a74.js").then(function(S){return S.i}),[]).then(async S=>{await Promise.all([be(()=>import("./json.c327d69b.js").then(function(L){return L.j}),[]),be(()=>import("./yaml.e8f3b9ab.js"),[])]);const T=S.edit("editor");T.setOptions({fontSize:14,showFoldWidgets:!1,highlightSelectedWord:!1}),T.$blockScrolling=1/0,T.on("blur",()=>b.current()),T.getSession().setMode("ace/mode/json"),y.current={getValue(){return T.getSession().getValue()},setValue(L){T.getSession().setValue(L)},configure(L,D){T.setOption("useSoftTabs",L!=="tabs"),T.setOption("tabSize",L==="tabs"?4:Sw(L)),T.getSession().setMode(`ace/mode/${D}`)},select(){T.selectAll()}},m(!0)})):y.current={getValue(){return x.current?x.current.value:""},setValue(S){!x.current||(x.current.value=S)},configure(){},select(){}}},[h]),za(t,()=>{!v.current||v.current()}),me(()=>{!v.current||t&&v.current()},[t]),me(()=>{!y.current||!v.current||(!h||_)&&(y.current.configure(u,d),v.current())},[u,d,h,_]),me(()=>{r&&t&&n&&navigator.clipboard.writeText(k(t,n)).then(()=>{o()})},[r]),me(()=>{if(i&&t&&n&&g.current){const S=encodeURIComponent(k(t,n));g.current.setAttribute("href",`data:text/json;charset=utf-8,${S}`);const T=e==="pack_mcmeta"?"pack.mcmeta":`${e}.${d}`;g.current.setAttribute("download",T),g.current.click()}},[i]),me(()=>{s&&y.current&&(y.current.setValue(""),y.current.select())},[s]);const C=S=>{ze.setIndent(S),c(S)},E=S=>{ze.setFormat(S),f(S)},I=S=>{ze.setHighlighting(S),w(S)};return F(pe,{children:[p("div",{class:"controls source-controls",children:F(Bt,{icon:"gear",tooltip:l("output_settings"),"data-cy":"source-controls",children:[Iw().map(S=>p(oe,{label:l(`indentation.${S}`),active:u===S,onClick:()=>C(S)})),p("hr",{}),Mw().map(S=>p(oe,{label:l(`format.${S}`),active:d===S,onClick:()=>E(S)})),p("hr",{}),p(oe,{icon:h?"square_fill":"square",label:l("highlighting"),onClick:()=>I(!h)})]})}),h?p("pre",{id:"editor",class:"source"}):p("textarea",{ref:x,class:"source",spellcheck:!1,autocorrect:"off",onBlur:b.current}),p("a",{ref:g,style:"display: none;"})]})}function y2(e,t){for(var n in t)e[n]=t[n];return e}function Sc(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Ic(e){this.props=e}function k2(e,t){function n(i){var s=this.props.ref,o=s==i.ref;return!o&&s&&(s.call?s(null):s.current=null),t?!t(this.props,i)||!o:Sc(this.props,i)}function r(i){return this.shouldComponentUpdate=n,Yt(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ic.prototype=new Qt).isPureReactComponent=!0,Ic.prototype.shouldComponentUpdate=function(e,t){return Sc(this.props,e)||Sc(this.state,t)};var hd=le.__b;le.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),hd&&hd(e)};var Qv=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function e9(e){function t(n){var r=y2({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Qv,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var pd=function(e,t){return e==null?null:en(en(e).map(t))},t9={map:pd,forEach:pd,count:function(e){return e?en(e).length:0},only:function(e){var t=en(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:en},n9=le.__e;le.__e=function(e,t,n,r){if(e.then){for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}n9(e,t,n,r)};var md=le.unmount;function Jo(){this.__u=0,this.t=null,this.__b=null}function C2(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function r9(e){var t,n,r;function i(s){if(t||(t=e()).then(function(o){n=o.default||o},function(o){r=o}),r)throw r;if(!n)throw t;return Yt(n,s)}return i.displayName="Lazy",i.__f=!0,i}function ls(){this.u=null,this.o=null}le.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),md&&md(e)},(Jo.prototype=new Qt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=C2(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__e){var u=r.state.__e;r.__v.__k[0]=function d(f,h,w){return f&&(f.__v=null,f.__k=f.__k&&f.__k.map(function(_){return d(_,h,w)}),f.__c&&f.__c.__P===h&&(f.__e&&w.insertBefore(f.__e,f.__d),f.__c.__e=!0,f.__c.__P=w)),f}(u,u.__c.__P,u.__c.__O)}var c;for(r.setState({__e:r.__b=null});c=r.t.pop();)c.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(o,o)},Jo.prototype.componentWillUnmount=function(){this.t=[]},Jo.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function s(o,a,l){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(u){typeof u.__c=="function"&&u.__c()}),o.__c.__H=null),(o=y2({},o)).__c!=null&&(o.__c.__P===l&&(o.__c.__P=a),o.__c=null),o.__k=o.__k&&o.__k.map(function(u){return s(u,a,l)})),o}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__e&&Yt(Wn,null,e.fallback);return i&&(i.__h=null),[Yt(Wn,null,t.__e?null:e.children),i]};var gd=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function i9(e){return this.getChildContext=function(){return e.context},e.children}function s9(e){var t=this,n=e.i;t.componentWillUnmount=function(){Pr(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Pr(Yt(i9,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function o9(e,t){var n=Yt(s9,{__v:e,i:t});return n.containerInfo=t,n}(ls.prototype=new Qt).__e=function(e){var t=this,n=C2(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),gd(t,e,r)):i()};n?n(s):s()}},ls.prototype.render=function(e){this.u=null,this.o=new Map;var t=en(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ls.prototype.componentDidUpdate=ls.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){gd(e,n,t)})};var E2=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,a9=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,l9=typeof document!="undefined",c9=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};function u9(e,t,n){return t.__k==null&&(t.textContent=""),Pr(e,t),typeof n=="function"&&n(),e?e.__c:null}function d9(e,t,n){return Rc(e,t),typeof n=="function"&&n(),e?e.__c:null}Qt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Qt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var _d=le.event;function f9(){}function h9(){return this.cancelBubble}function p9(){return this.defaultPrevented}le.event=function(e){return _d&&(e=_d(e)),e.persist=f9,e.isPropagationStopped=h9,e.isDefaultPrevented=p9,e.nativeEvent=e};var A2,wd={configurable:!0,get:function(){return this.class}},vd=le.vnode;le.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var s in r={},n){var o=n[s];l9&&s==="children"&&t==="noscript"||s==="value"&&"defaultValue"in n&&o==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&o===!0?o="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+t)&&!c9(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&a9.test(s)?s=s.replace(/[A-Z0-9]/,"-$&").toLowerCase():o===null&&(o=void 0),/^oninput/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=o)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=en(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=en(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),e.props=r,n.class!=n.className&&(wd.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",wd))}e.$$typeof=E2,vd&&vd(e)};var xd=le.__r;le.__r=function(e){xd&&xd(e),A2=e.__c};var m9={ReactCurrentDispatcher:{current:{readContext:function(e){return A2.__n[e.__c].props.value}}}};function g9(e){return Yt.bind(null,e)}function S2(e){return!!e&&e.$$typeof===E2}function _9(e){return S2(e)?Nc.apply(null,arguments):e}function w9(e){return!!e.__k&&(Pr(null,e),!0)}function v9(e){return e&&(e.base||e.nodeType===1&&e)||null}var x9=function(e,t){return e(t)},b9=function(e,t){return e(t)},Mc={useState:X,useReducer:pf,useEffect:me,useLayoutEffect:mf,useRef:Le,useImperativeHandle:vm,useMemo:ye,useCallback:Fe,useContext:Kr,useDebugValue:xm,version:"17.0.2",Children:t9,render:u9,hydrate:d9,unmountComponentAtNode:w9,createPortal:o9,createElement:Yt,createContext:xr,createFactory:g9,cloneElement:_9,createRef:Jd,Fragment:Wn,isValidElement:S2,findDOMNode:v9,Component:Qt,PureComponent:Ic,memo:k2,forwardRef:e9,flushSync:b9,unstable_batchedUpdates:x9,StrictMode:Wn,Suspense:Jo,SuspenseList:ls,lazy:r9,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:m9};class I2 extends P.DataModel{constructor(t,n,r,i){super(t),this.mapper=n,this.getter=r,this.setter=i}map(t){return this.mapper(t)}get(t){return this.getter(t)}set(t,n,r){return this.setter(t,n,r)}}const y9=["loot_table.type","loot_entry.type","function.function","condition.condition","criterion.trigger","recipe.type","dimension.generator.type","dimension.generator.biome_source.type","dimension.generator.biome_source.preset","carver.type","feature.type","decorator.type","feature.tree.minimum_size.type","block_state_provider.type","trunk_placer.type","foliage_placer.type","tree_decorator.type","int_provider.type","float_provider.type","height_provider.type","structure_feature.type","surface_builder.type","processor.processor_type","rule_test.predicate_type","pos_rule_test.predicate_type","template_element.element_type","block_placer.type","block_predicate.type","material_rule.type","material_condition.type","structure_placement.type","density_function.type","root_placer.type","entity.type_specific.cat.variant","entity.type_specific.frog.variant"],k9=["number_provider.type","score_provider.type","nbt_provider.type","int_provider.type","float_provider.type","height_provider.type"],C9=["feature.config","decorator.config","int_provider.value","float_provider.value","block_state_provider.simple_state_provider.state","block_state_provider.rotated_block_provider.state","block_state_provider.weighted_state_provider.entries.entry.data","rule_test.block_state","structure_feature.config","surface_builder.config","template_pool.elements.entry.element","decorator.block_survives_filter.state","material_rule.block.result_state"],E9=["loot_entry.type","function.function","condition.condition","criterion.trigger","dimension.generator.type","dimension.generator.biome_source.type","feature.type","decorator.type","block_state_provider.type","feature.tree.minimum_size.type","trunk_placer.type","foliage_placer.type","tree_decorator.type","block_placer.type","rule_test.predicate_type","processor.processor_type","template_element.element_type","nbt_operation.op","number_provider.value","score_provider.name","score_provider.target","nbt_provider.source","nbt_provider.target","generator_biome.biome","block_predicate.type","material_rule.type","material_condition.type","density_function.type","root_placer.type","entity.type_specific.type","immersive_weathering.area_condition.type","immersive_weathering.block_growth.growth_for_face.entry.direction","immersive_weathering.position_test.predicate_type"],A9=["function.set_nbt.tag","advancement.display.icon.nbt","text_component_object.nbt","entity.nbt","block.nbt","item.nbt"],S9=["generator_biome.parameters.temperature","generator_biome.parameters.humidity","generator_biome.parameters.continentalness","generator_biome.parameters.erosion","generator_biome.parameters.depth","generator_biome.parameters.weirdness","feature.end_spike.crystal_beam_target","feature.end_gateway.exit","decorator.block_filter.offset","block_predicate.matching_blocks.offset","block_predicate.matching_fluids.offset","model_element.from","model_element.to","model_element.rotation.origin","model_element.faces.uv","item_transform.rotation","item_transform.translation","item_transform.scale","generator_structure.random_spread.locate_offset"],bd=["noise_settings.surface_rule","noise_settings.noise.terrain_shaper"],I9=["density_function.argument","density_function.argument1","density_function.argument2","density_function.input","density_function.when_in_range","density_function.when_out_of_range"],M9='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M8.878.392a1.75 1.75 0 00-1.756 0l-5.25 3.045A1.75 1.75 0 001 4.951v6.098c0 .624.332 1.2.872 1.514l5.25 3.045a1.75 1.75 0 001.756 0l5.25-3.045c.54-.313.872-.89.872-1.514V4.951c0-.624-.332-1.2-.872-1.514L8.878.392zM7.875 1.69a.25.25 0 01.25 0l4.63 2.685L8 7.133 3.245 4.375l4.63-2.685zM2.5 5.677v5.372c0 .09.047.171.125.216l4.625 2.683V8.432L2.5 5.677zm6.25 8.271l4.625-2.683a.25.25 0 00.125-.216V5.677L8.75 8.432v5.516z"></path></svg>',T9=e=>Oe.generators.find(t=>t.id===e.replace(/^\$/,"")),L9=new P.DataModel(P.MapNode(P.StringNode(),P.StringNode()),{historyMax:0});function O9({model:e,lang:t,version:n,blockStates:r}){var l;const i=new P.ModelPath(e),[s,o,a]=e.schema.hook(M2,i,ja(e.data),t,n,r,{});return(l=o==null?void 0:o.props)!=null&&l.children.some(u=>u)?F("div",{class:`node ${e.schema.type(i)}-node`,"data-category":e.schema.category(i),children:[F("div",{class:"node-header",children:[s,o]}),p("div",{class:"node-body",children:a})]}):a}const M2={base(){return[null,null,null]},boolean(e,t,n,r,i,s,o){return[null,p(R9,Me(fe({},e),{path:t,value:n,lang:r,version:i,states:s,ctx:o})),null]},choice({choices:e,config:t,switchNode:n},r,i,s,o,a,l){const u=n.activeCase(r,!0),c=t!=null&&t.context?new P.ModelPath(r.getModel(),new P.Path(r.getArray(),[t.context])):r,[d,f,h]=u.node.hook(this,c,i,s,o,a,l);if(e.length===1)return[d,f,h];const w=t!=null&&t.choiceContext?new P.Path([],[t.choiceContext]):t!=null&&t.context?new P.Path([],[t.context]):r,_=g=>{var y;const v=(y=e.find(k=>k.type===g))!=null?y:u,b=v.node.default(),x=v.change?v.change(P.DataModel.unwrapLists(i)):t.choiceContext==="feature"&&(b==null?void 0:b.type)==="minecraft:decorated"?b.config.feature:b;r.model.set(r,P.DataModel.wrapLists(x))},m=p("select",{value:u.type,onChange:g=>_(g.target.value),children:e.map(g=>p("option",{value:g.type,children:Aa(s,w.contextPush(g.type))}))});return[d,F(pe,{children:[m,f]}),h]},list({children:e,config:t},n,r,i,s,o,a){const{expand:l,collapse:u,isToggled:c}=$l(),[d,f]=X(50),h=n.getContext().join(".");if(S9.includes(h)){const v=F(pe,{children:[[...Array(t.maxLength)].map((x,y)=>p(cs,{lang:i,path:n.modelPush(y)})),p("div",{class:"fixed-list"})]}),b=p(pe,{children:[...Array(t.maxLength)].map((x,y)=>{var C;return e.hook(this,n.modelPush(y),(C=r==null?void 0:r[y])==null?void 0:C.node,i,s,o,a)[1]})});return[v,b,null]}const w=()=>{Array.isArray(r)||(r=[]);const v=P.DataModel.wrapLists(e.default());n.model.set(n,[{node:v,id:Nr()},...r])},_=()=>{Array.isArray(r)||(r=[]);const v=P.DataModel.wrapLists(e.default());n.model.set(n,[...r,{node:v,id:Nr()}])},m=p("button",{class:"add tooltipped tip-se","aria-label":Te(i,"add_top"),onClick:w,children:he.plus_circle}),g=F(pe,{children:[r&&Array.isArray(r)&&r.map(({node:v,id:b},x)=>{if(x===d)return F("div",{class:"node node-header",children:[p("label",{children:Te(i,"entries_hidden",`${r.length-d}`)}),p("button",{onClick:()=>f(Math.min(d+50,r.length)),children:Te(i,"entries_hidden.more","50")}),p("button",{onClick:()=>f(r.length),children:Te(i,"entries_hidden.all")})]});if(x>d)return null;const y=n.push(x).contextPush("entry"),k=e.type(y)==="object",C=c(b);let E;if(["loot_pool.entries.entry","loot_entry.alternatives.children.entry","loot_entry.group.children.entry","loot_entry.sequence.children.entry","function.set_contents.entries.entry"].includes(y.getContext().join("."))&&Jr(v)&&typeof v.type=="string"&&v.type.replace(/^minecraft:/,"")==="item"&&typeof v.name=="string"){const D=`item/${v.name.replace(/^minecraft:/,"")}`;hs.get("texture").includes("minecraft:"+D)?E=p("img",{src:mw(s,D),alt:"",onError:G=>G.currentTarget.outerHTML=M9}):E=he.package}if(k&&(C===!1||C===void 0&&r.length>20))return F("div",{class:"node node-header","data-category":e.category(y),children:[p(cs,{lang:i,path:y,nested:!0}),p("button",{class:"toggle tooltipped tip-se","aria-label":`${Te(i,"expand")}
|
|
${Te(i,"expand_all","Ctrl")}`,onClick:l(b),children:he.chevron_right}),p("label",{children:E!=null?E:Aa(i,y,`${x}`)}),p(yd,{path:y,value:v,schema:e},b)]});const I=()=>y.set(void 0),S=()=>{const D=[...n.get()];[D[x-1],D[x]]=[D[x],D[x-1]],n.model.set(n,D)},T=()=>{const D=[...n.get()];[D[x+1],D[x]]=[D[x],D[x+1]],n.model.set(n,D)};return F(Bl,{label:E,path:y,schema:e,value:v,lang:i,version:s,states:o,actions:[{icon:"duplicate",label:"duplicate",onSelect:()=>{const D=[...n.get()];D.splice(x,0,{id:Nr(),node:ja(v)}),n.model.set(n,D)}}],ctx:Me(fe({},a),{index:(x===0?1:0)+(x===r.length-1?2:0)}),children:[k&&p("button",{class:"toggle tooltipped tip-se","aria-label":`${Te(i,"collapse")}
|
|
${Te(i,"collapse_all","Ctrl")}`,onClick:u(b),children:he.chevron_down}),p("button",{class:"remove tooltipped tip-se","aria-label":Te(i,"remove"),onClick:I,children:he.trashcan}),r.length>1&&F("div",{class:"node-move",children:[p("button",{class:"move tooltipped tip-se","aria-label":Te(i,"move_up"),onClick:S,disabled:x===0,children:he.chevron_up}),p("button",{class:"move tooltipped tip-se","aria-label":Te(i,"move_down"),onClick:T,disabled:x===r.length-1,children:he.chevron_down})]})]},b)}),r&&r.length>0&&r.length<=d&&p("div",{class:"node node-header",children:p("button",{class:"add tooltipped tip-se","aria-label":Te(i,"add_bottom"),onClick:_,children:he.plus_circle})})]});return[null,m,g]},map({children:e,keys:t,config:n},r,i,s,o,a,l){var v,b,x,y,k;const{expand:u,collapse:c,isToggled:d}=$l(),f=new P.ModelPath(L9,new P.Path([P9(r.toString())])),h=()=>{const C=f.get();r.model.set(r.push(C),P.DataModel.wrapLists(e.default()))},w=((v=n.validation)==null?void 0:v.validator)==="block_state_map"?a==null?void 0:a[P.relativePath(r,n.validation.params.id).get()]:null,_=w!=null&&w.properties?P.StringNode(null,{enum:Object.keys((b=w.properties)!=null?b:{})}):t;if(w&&r.last()==="Properties"){typeof i!="object"&&(i={});const C=Object.entries((x=w.properties)!=null?x:{}).map(([E,I])=>[E,P.StringNode(null,{enum:I})]);return Object.entries((y=w.properties)!=null?y:{}).forEach(([E,I])=>{typeof i[E]!="string"?r.model.errors.add(r.push(E),"error.expected_string"):I.includes(i[E])||r.model.errors.add(r.push(E),"error.invalid_enum_option",i[E])}),P.ObjectNode(Object.fromEntries(C)).hook(this,r,i,s,o,a,l)}const m=F(pe,{children:[_.hook(this,f,(k=f.get())!=null?k:"",s,o,a,l)[1],p("button",{class:"add tooltipped tip-se","aria-label":Te(s,"add"),onClick:h,children:he.plus_circle})]}),g=p(pe,{children:typeof i=="object"&&Object.entries(i).map(([C,E])=>{var G,z,O,$;const I=r.modelPush(C),S=e.type(I)==="object",T=d(C);if(S&&(T===!1||T===void 0&&i.length>20))return F("div",{class:"node node-header","data-category":e.category(I),children:[p(cs,{lang:s,path:I,nested:!0}),p("button",{class:"toggle tooltipped tip-se","aria-label":`${Te(s,"expand")}
|
|
${Te(s,"expand_all","Ctrl")}`,onClick:u(C),children:he.chevron_right}),p("label",{children:C}),p(yd,{path:I,value:E,schema:e},C)]});const L=w?P.StringNode(null,{enum:(z=(G=w.properties)==null?void 0:G[C])!=null?z:[]}):e;((O=w==null?void 0:w.properties)==null?void 0:O[C])&&typeof E=="string"&&!(($=w.properties)!=null&&$[C].includes(E))&&r.model.errors.add(I,"error.invalid_enum_option",E);const D=()=>I.set(void 0);return F(Bl,{schema:L,path:I,value:E,lang:s,version:o,states:a,ctx:l,label:C,children:[S&&p("button",{class:"toggle tooltipped tip-se","aria-label":`${Te(s,"collapse")}
|
|
${Te(s,"collapse_all","Ctrl")}`,onClick:c(C),children:he.chevron_down}),p("button",{class:"remove tooltipped tip-se","aria-label":Te(s,"remove"),onClick:D,children:he.trashcan})]},C)})});return[null,m,g]},number(e,t,n,r,i,s,o){return[null,p(N9,Me(fe({},e),{path:t,value:n,lang:r,version:i,states:s,ctx:o})),null]},object({node:e,config:t,getActiveFields:n,getChildModelPath:r},i,s,o,a,l,u){var v;const{expand:c,collapse:d,isToggled:f}=$l();if(i.getArray().length==0&&$9(t.context,s)){const{wrapper:b,fields:x}=B9(n(i),i,s);s=b.data,n=()=>x,r=(y,k)=>new P.ModelPath(b,new P.Path(y.getArray(),["feature"])).push(k)}let h=null,w=null;if(e.optional())if(s===void 0){const b=()=>i.set(P.DataModel.wrapLists(e.default()));w=p("button",{class:"collapse closed tooltipped tip-se","aria-label":Te(o,"expand"),onClick:b,children:he.plus_circle})}else{const b=()=>i.set(void 0);w=p("button",{class:"collapse open tooltipped tip-se","aria-label":Te(o,"remove"),onClick:b,children:he.trashcan})}const _=i.getContext().join(".");if(I9.includes(_)||bd.includes(_)){const b=f(""),x=bd.includes(_)?b:!b;if(h=p(pe,{children:p("button",{class:"toggle tooltipped tip-se","aria-label":Te(o,x?"collapse":"expand"),onClick:b?d(""):c(""),children:x?he.chevron_down:he.chevron_right})}),!x)return[h,w,null]}const m=typeof s=="object"&&s!==null&&((v=e.default())==null?void 0:v.pools)?Me(fe({},u),{loot:s==null?void 0:s.type}):u,g=p(pe,{children:typeof s=="object"&&s!==null&&!(e.optional()&&s===void 0)&&Object.entries(n(i)).filter(([b,x])=>x.enabled(i)).map(([b,x])=>{const y=r(i,b),k=y.getContext().join(".");if(k9.includes(k))return null;const[C,E,I]=x.hook(this,y,s[b],o,a,l,m),S=x.type(y)==="object"&&C9.includes(k),T=E9.includes(k);return S||T?(h=F(pe,{children:[h,p(cs,{lang:o,path:y}),p(T2,{lang:o,path:y}),C]}),w=F(pe,{children:[w,E]}),S?I:null):p(Bl,{schema:x,path:y,value:s[b],lang:o,version:a,states:l,ctx:m},b)})});return[h,w,g]},string(e,t,n,r,i,s,o){return[null,p(D9,Me(fe({},e),{path:t,value:n,lang:r,version:i,states:s,ctx:o})),null]}};function yd({path:e,value:t}){var r,i,s,o,a;switch(e.getContext().join(".")){case"loot_table.pools.entry":return F("label",{children:[(i=(r=t==null?void 0:t.entries)==null?void 0:r.length)!=null?i:0," entries"]});case"function.set_contents.entries.entry":case"loot_pool.entries.entry":return p("label",{children:(a=(s=t==null?void 0:t.name)==null?void 0:s.replace(/^minecraft:/,""))!=null?a:(o=t==null?void 0:t.type)==null?void 0:o.replace(/^minecraft:/,"")})}for(const l of Object.values(t!=null?t:{}))if(typeof l=="string")return p("label",{children:l.replace(/^minecraft:/,"")});return null}function $l(){const[e,t]=X(new Map),[n,r]=X(void 0);return{expand:a=>l=>{l.ctrlKey?(t(new Map),r(!0)):t(u=>new Map(u.set(a,!0)))},collapse:a=>l=>{l.ctrlKey?(t(new Map),r(!1)):t(u=>new Map(u.set(a,!1)))},isToggled:a=>{var l;return e instanceof Map?(l=e.get(a))!=null?l:n:!1}}}function R9({path:e,node:t,value:n,lang:r}){const i=s=>{e.model.set(e,t.optional()&&n===s?void 0:s)};return F(pe,{children:[p("button",{class:n===!1?"selected":"",onClick:()=>i(!1),children:Te(r,"false")}),p("button",{class:n===!0?"selected":"",onClick:()=>i(!0),children:Te(r,"true")})]})}function N9({path:e,config:t,integer:n,value:r,lang:i}){var a;const s=l=>{const u=l.target.value,c=n?parseInt(u):parseFloat(u);e.model.set(e,c)},o=l=>{const u=l.target.value,c=parseInt(u.slice(1),16);e.model.set(e,c)};return F(pe,{children:[p("input",{type:"text",value:r!=null?r:"",onBlur:s,onKeyDown:l=>{l.key==="Enter"&&s(l)}}),(t==null?void 0:t.color)&&p("input",{type:"color",value:"#"+((a=r==null?void 0:r.toString(16).padStart(6,"0"))!=null?a:"000000"),onChange:o}),["dimension.generator.seed","dimension.generator.biome_source.seed","world_settings.seed","structure_placement.salt"].includes(e.getContext().join("."))&&p("button",{onClick:()=>Kh(e.model),class:"tooltipped tip-se","aria-label":Te(i,"generate_new_seed"),children:he.sync})]})}function D9({path:e,getValues:t,config:n,node:r,value:i,lang:s,version:o,states:a}){var f,h,w;const l=_=>{_.stopPropagation();const m=_.target.value;m!==i&&e.model.set(e,m.length===0?void 0:m)},u=t(),c=e.getContext().join("."),d=!is(n)&&(n==null?void 0:n.validator)==="resource"&&typeof n.params.pool=="string"?n.params.pool:void 0;if(A9.includes(c))return p("textarea",{value:i!=null?i:"",onBlur:l});if(is(n)&&!n.additional||y9.includes(c)){let _=new P.Path([]);return is(n)&&typeof n.enum=="string"?_=_.contextPush(n.enum):d?_=_.contextPush(d):is(n)&&(_=e),F("select",{value:i!=null?i:"",onChange:l,children:[r.optional()&&p("option",{value:"",children:Te(s,"unset")}),u.map(m=>p("option",{value:m,children:Aa(s,_.contextPush(m.replace(/^minecraft:/,"")))}))]})}else if(!is(n)&&(n==null?void 0:n.validator)==="block_state_key"){const _=a==null?void 0:a[P.relativePath(e,n.params.id).get()],m=Object.keys((f=_==null?void 0:_.properties)!=null?f:{});return p("select",{value:i!=null?i:"",onChange:l,children:m.map(g=>p("option",{children:g}))})}else{const{biomeColors:_,setBiomeColor:m}=gp(),g=typeof i=="string"?i.includes(":")?i:"minecraft:"+i:"unknown",v=Nr(),b=d?T9(d):void 0;return F(pe,{children:[p("input",{value:i!=null?i:"",onBlur:l,onKeyDown:x=>{x.key==="Enter"&&l(x)},list:u.length>0?v:""}),u.length>0&&p("datalist",{id:v,children:u.map(x=>p("option",{value:x}))}),["generator_biome.biome"].includes(c)&&p("input",{type:"color",value:X3((w=(h=_[g])!=null?h:v2[g])!=null?w:Jc(g)),onChange:x=>m(g,K3(x.currentTarget.value))}),["attribute_modifier.id","text_component_object.hoverEvent.show_entity.contents.id"].includes(c)&&p("button",{onClick:()=>e.set(Z3()),class:"tooltipped tip-se","aria-label":Te(s,"generate_new_uuid"),children:he.sync}),b&&u.includes(i)&&i.startsWith("minecraft:")&&p("a",{href:`/${b.url}/?version=${o}&preset=${i.replace(/^minecraft:/,"")}`,class:"tooltipped tip-se","aria-label":Te(s,"follow_reference"),children:he.link_external})]})}}function F9({label:e,schema:t,path:n,value:r,lang:i,version:s,states:o,ctx:a,actions:l,children:u}){var x;const c=t.type(n),d=t.category(n),f=n.getContext().join("."),[h,w]=Va(),_=y=>{y.preventDefault(),w()},m=Me(fe({},a),{depth:((x=a.depth)!=null?x:0)+1});delete m.index;const[g,v,b]=t.hook(M2,n,r,i,s,o,m);return F("div",{class:`node ${c}-node`,"data-category":d,children:[F("div",{class:"node-header",onContextMenu:_,children:[p(cs,{lang:i,path:n}),p(T2,{lang:i,path:n}),u,g,F("label",{children:[e!=null?e:Aa(i,n,`${n.last()}`),h&&F("div",{class:"node-menu",children:[l==null?void 0:l.map(y=>{var k;return F("div",{class:"menu-item",children:[p(oe,{icon:y.icon,tooltip:Te(i,y.label),tooltipLoc:"se",onClick:()=>y.onSelect()}),p("span",{children:(k=y.description)!=null?k:Te(i,y.label)})]},y.label)}),F("div",{class:"menu-item",children:[p(oe,{icon:"clippy",tooltip:Te(i,"copy_context"),tooltipLoc:"se",onClick:()=>navigator.clipboard.writeText(f)}),p("span",{children:f})]})]})]}),v]}),b&&p("div",{class:"node-body",children:b})]})}const Bl=k2(F9,(e,t)=>e.schema===t.schema&&e.lang===t.lang&&e.path.equals(t.path)&&Br(e.ctx,t.ctx)&&Br(e.value,t.value));function is(e){return!!(e!=null&&e.enum)}function P9(e){var t=0,n,r;for(n=0;n<e.length;n++)r=e.charCodeAt(n),t=(t<<5)-t+r,t|=0;return t}function Aa(e,t,...n){const r=t.getContext();for(let i=0;i<r.length;i+=1){const s=r.slice(i).join("."),o=Te(e,s,...n);if(s!==o)return o}return r[r.length-1]}function cs({lang:e,path:t,nested:n}){var s;t.model instanceof I2&&(t=t.model.map(t).withModel(t.model));const r=n?t.model.errors.getAll().filter(o=>o.path.startsWith(t)):t.model.errors.get(t,!0);if(r.length===0)return null;const i=Te(e,r[0].error,...(s=r[0].params)!=null?s:[]);return L2("node-error","issue_opened",i)}function T2({lang:e,path:t}){const n=t.contextPush("help").getContext().join("."),r=Te(e,n);return r===n?null:L2("node-help","info",r)}const L2=(e,t,n)=>{const[r,i]=Va();return F("div",{class:`node-icon ${e}${r?" show":""}`,onClick:()=>i(),children:[he[t],p("span",{class:"icon-popup",children:n})]})};function $9(e,t){var n;return e==="feature"&&((n=t==null?void 0:t.type)==null?void 0:n.replace(/^minecraft:/,""))==="decorated"&&Jr(t==null?void 0:t.config)}function B9(e,t,n){const r=[],i=us(n,r),s={type:e.type,config:P.ObjectNode({decorators:P.ListNode(sp),feature:op},{context:"feature.decorated"})},o=P.ObjectNode(s,{context:"feature"}),a=new P.Path(["config","feature"]),l=new P.Path(["config","decorators"]),u=t.getModel(),c=new I2(o,d=>{if(d.startsWith(a))return new P.Path([...[...Array(r.length-1)].flatMap(()=>["config","feature"]),...d.modelArr]);if(d.startsWith(l)){if(d.modelArr.length===2)return new P.Path([]);const f=d.modelArr[2];if(typeof f=="number")return new P.Path([...[...Array(f)].flatMap(()=>["config","feature"]),"config","decorator",...d.modelArr.slice(3)])}return d},d=>{if(d.equals(l)){const f=[];return us(u.data,f),f}return u.get(c.map(d))},(d,f,h)=>{if(d.startsWith(a)){const w=[];us(u.data,w);const _=new P.Path([...[...Array(w.length-1)].flatMap(()=>["config","feature"]),...d.modelArr]);return u.set(_,f,h)}else if(d.startsWith(l)){const w=d.modelArr[2];if(d.modelArr.length===2){const _=c.get(a);return u.set(new P.Path,Tc(_,f),h)}else if(typeof w=="number")if(d.modelArr.length===3&&f===void 0){const _=c.get(a),m=[];us(u.data,m),m.splice(w,1);const g=Tc(_,m);return u.set(new P.Path,g,h)}else{const _=new P.Path([...[...Array(w)].flatMap(()=>["config","feature"]),"config","decorator",...d.modelArr.slice(3)]);return u.set(_,f,h)}}u.set(d,f,h)});return c.data={type:u.data.type,config:{decorators:r,feature:i}},c.errors=u.errors,{fields:s,wrapper:c}}function us(e,t){var n,r;return((n=e==null?void 0:e.type)==null?void 0:n.replace(/^minecraft:/,""))!=="decorated"||!Jr(e==null?void 0:e.config)?e:(t.push({id:t.length,node:e.config.decorator}),us((r=e.config.feature)!=null?r:"",t))}function Tc(e,t){return t.length===0?e:{type:"minecraft:decorated",config:{decorator:t.shift().node,feature:Tc(e,t)}}}function j9({version:e,model:t,blockStates:n,onError:r}){const{lang:i}=Ce();if(!t||!n||i==="none")return p(pe,{});const[s]=gf(a=>{r(`Error rendering the tree: ${a.message}`),console.error(a)});if(s)return p(pe,{});const[,o]=X(0);return za(t,()=>{o(a=>a+1)}),p("div",{class:"tree","data-cy":"tree",children:p(O9,{model:t,lang:i,version:e,blockStates:n})})}var V9=Object.defineProperty,z9=Object.defineProperties,U9=Object.getOwnPropertyDescriptors,kd=Object.getOwnPropertySymbols,H9=Object.prototype.hasOwnProperty,Z9=Object.prototype.propertyIsEnumerable,Cd=(e,t,n)=>t in e?V9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O2=(e,t)=>{for(var n in t||(t={}))H9.call(t,n)&&Cd(e,n,t[n]);if(kd)for(var n of kd(t))Z9.call(t,n)&&Cd(e,n,t[n]);return e};const Ed="Please consider reporting this error at https://github.com/laymonage/giscus/issues/new.";function Lo(e){return`[giscus] An error occurred. Error message: "${e}".`}function Ad(e){const t=document.querySelector(`meta[property='og:${e}'],meta[name='${e}']`);return t?t.content:""}function G9(){const e=document.getElementById("giscus-css")||document.createElement("style");e.id="giscus-css",e.textContent=`
|
|
.giscus, .giscus-frame {
|
|
width: 100%;
|
|
}
|
|
.giscus-frame {
|
|
border: none;
|
|
color-scheme: normal;
|
|
}
|
|
`,document.head.prepend(e)}function Y9(e){const[t,n]=X(""),r=function({repo:o,repoId:a,category:l="",categoryId:u="",mapping:c,term:d="",theme:f="light",reactionsEnabled:h="1",emitMetadata:w="0",inputPosition:_="bottom",lang:m="en",session:g,origin:v}){const b=new URL(location.href);b.searchParams.delete("giscus");const x=b.toString(),y={origin:v=v||x,session:g,theme:f,reactionsEnabled:h,emitMetadata:w,inputPosition:_,repo:o,repoId:a,category:l,categoryId:u,description:Ad("description")};switch(c){case"url":y.term=x;break;case"title":y.term=document.title;break;case"og:title":y.term=Ad("title");break;case"specific":y.term=d;break;case"number":y.number=d;break;case"pathname":default:y.term=location.pathname.length<2?"index":location.pathname.substring(1).replace(/\.\w+$/,"")}return`https://giscus.app/${m}/widget?${new URLSearchParams(y)}`}((i=O2({},e),z9(i,U9({session:t}))));var i;const s=Le(null);return me(()=>{const o=location.href,a=new URL(o),l=localStorage.getItem("giscus-session"),u=a.searchParams.get("giscus")||"";if(u)return localStorage.setItem("giscus-session",JSON.stringify(u)),n(u),a.searchParams.delete("giscus"),void history.replaceState(void 0,document.title,a.toString());if(l)try{n(JSON.parse(l||"")||"")}catch(c){n(""),localStorage.removeItem("giscus-session"),console.warn(`${Lo(c==null?void 0:c.message)} Session has been cleared.`)}},[]),me(G9,[]),me(()=>{const o=function(a,l=null){return function(u){if(u.origin!=="https://giscus.app")return;const{data:c}=u;if(typeof c!="object"||!c.giscus||(l&&c.giscus.resizeHeight&&(l.style.height=`${c.giscus.resizeHeight}px`),!c.giscus.error))return;const d=c.giscus.error;if(d.includes("Bad credentials")||d.includes("Invalid state value")){if(localStorage.getItem("giscus-session")!==null)return localStorage.removeItem("giscus-session"),a(),void console.warn(`${Lo(d)} Session has been cleared.`);console.error(`${Lo(d)} No session is stored initially. ${Ed}`)}d.includes("Discussion not found")?console.warn(`[giscus] ${d}. A new discussion will be created if a comment/reaction is submitted.`):console.error(`${Lo(d)} ${Ed}`)}}(()=>n(""),s.current);return window.addEventListener("message",o),()=>window.removeEventListener("message",o)},[]),Mc.createElement("div",{className:"giscus"},Mc.createElement("iframe",{className:"giscus-frame",title:"Comments",scrolling:"no",src:r,ref:s}))}function W9(e){const[t,n]=X(!1);return me(()=>n(!0),[]),t?Mc.createElement(Y9,O2({},e)):null}function _0({term:e}){const{actualTheme:t}=wp(),n=t==="light"?"-burn":"",r=`${location.protocol}//${location.host}/assets/giscus${n}.css`;return p("div",{class:"giscus-container",children:p(W9,{repo:"misode/misode.github.io",repoId:"MDEwOlJlcG9zaXRvcnkxOTIyNTQyMzA=",category:"Site",categoryId:"DIC_kwDOC3WRFs4COB8r",mapping:e?"specific":"pathname",term:e,reactionsEnabled:"1",emitMetadata:"0",inputPosition:"top",theme:r,lang:"en"})})}function Lc(){return[{id:"adding-custom-structures",title:"Adding custom structures",versions:["1.18.2","1.19"],tags:["worldgen","structures"]},{id:"density-functions",title:"Density function types and their configuration",versions:["1.18.2","1.19"],tags:["worldgen","noise","density"]},{id:"feature-order-cycle",title:"How to fix feature order cycles",versions:["1.18","1.18.2","1.19"],tags:["worldgen","biomes","features"]},{id:"heightmap-types",title:"The different heightmap types explained",versions:["1.16","1.17","1.18","1.18.2","1.19"],tags:["worldgen"]},{id:"noise-router",title:"How terrain is generated using the noise router",versions:["1.18.2","1.19"],tags:["worldgen","noise","density"]},{id:"placed-features",title:"Placed features and their configuration",versions:["1.18","1.18.2","1.19"],tags:["worldgen","features"]}]}function q9(e){const t=Lc().find(n=>n.id===e);return t===void 0?{id:e,title:"Unknown Guide"}:t}function js({id:e,minimal:t,activeTags:n,toggleTag:r}){const{title:i,versions:s,tags:o}=ye(()=>q9(e),[e]),a=l=>u=>{r&&r(l),u.preventDefault(),u.stopImmediatePropagation()};return p(Qc,{title:i,overlay:!t&&(s==null?void 0:s.join(" \u2022 ")),link:`/guides/${e}/`,children:p("div",{class:"badges-list",children:o==null?void 0:o.sort().map(l=>p(Zi,{label:l,onClick:a(l),active:n==null?void 0:n.includes(l)}))})})}const Sd={system:"device_desktop",dark:"moon",light:"sun"};function X9(){const{lang:e,locale:t,changeLocale:n}=Ce(),{theme:r,changeTheme:i}=wp(),{version:s}=yr(),{projects:o,project:a,changeProject:l}=tr(),{title:u}=gn(),c=Oi(),d=Qh(c);return F("header",{children:[F("div",{class:"title",children:[p(ff,{class:"home-link",href:"/","aria-label":t("home"),"data-cy":"home-link",children:Bi.home}),p("h1",{children:u}),d&&p(Bt,{icon:"chevron_down",tooltip:t("switch_generator"),"data-cy":"generator-switcher",children:Oe.generators.filter(f=>{var h,w;return((h=f.tags)==null?void 0:h[0])===((w=d==null?void 0:d.tags)==null?void 0:w[0])&&ct(s,f.minVersion)}).map(f=>p(oe,{label:t(f.partner?`partner.${f.partner}.${f.id}`:f.id),active:f.id===d.id,onClick:()=>qr(_r(f.url))}))}),!d&&c.match(/\/?project\/?$/)&&p(Bt,{icon:"chevron_down",tooltip:t("switch_project"),children:o.map(f=>p(oe,{label:f.name,active:f.name===a.name,onClick:()=>l(f.name)}))})]}),p("nav",{children:F("ul",{children:[p("li",{"data-cy":"language-switcher",children:p(Bt,{icon:"globe",tooltip:t("language"),children:Oe.languages.map(({code:f,name:h})=>p(oe,{label:h,active:f===e,onClick:()=>n(f)}))})}),p("li",{"data-cy":"theme-switcher",children:p(Bt,{icon:Sd[r],tooltip:t("theme"),children:Object.entries(Sd).map(([f,h])=>p(oe,{icon:h,label:t(`theme.${f}`),active:f===r,onClick:()=>i(f)}))})}),p("li",{class:"dimmed",children:p("a",{href:"https://github.com/misode/misode.github.io",target:"_blank",rel:"noreferrer",class:"tooltipped tip-sw","aria-label":t("github"),children:he.mark_github})})]})})]})}const ui=p("svg",{width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8284 0.686291C17.298 0.686291 16.7893 0.897005 16.4142 1.27208L1.44365 16.2426C0.662602 17.0237 0.662602 18.29 1.44365 19.0711L9.92893 27.5563C10.71 28.3374 11.9763 28.3374 12.7574 27.5563L27.7279 12.5858C28.103 12.2107 28.3137 11.702 28.3137 11.1716V2.68629C28.3137 1.58172 27.4183 0.686291 26.3137 0.686291H17.8284ZM23.5 8C24.8807 8 26 6.88071 26 5.5C26 4.11929 24.8807 3 23.5 3C22.1193 3 21 4.11929 21 5.5C21 6.88071 22.1193 8 23.5 8Z"})}),Id=p("svg",{width:"28",height:"22",viewBox:"0 0 28 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M26.8426 9.83057L23.3294 9.83057V20.8306C23.3294 21.3829 22.8817 21.8306 22.3294 21.8306H5.3294C4.77712 21.8306 4.3294 21.3829 4.3294 20.8306V9.83057L1.00171 9.83057C-0.017101 9.83057 -0.383456 8.48519 0.494688 7.96864L13.8067 0.138065C14.1279 -0.0509101 14.5276 -0.045538 14.8437 0.152002L27.3726 7.98258C28.2246 8.51506 27.8473 9.83057 26.8426 9.83057ZM15.3294 11.8306C14.7771 11.8306 14.3294 12.2783 14.3294 12.8306V16.8306C14.3294 17.3829 14.7771 17.8306 15.3294 17.8306H18.3294C18.8817 17.8306 19.3294 17.3829 19.3294 16.8306V12.8306C19.3294 12.2783 18.8817 11.8306 18.3294 11.8306H15.3294Z"})}),Bi={home:F("svg",{width:"32",height:"28",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("rect",{width:"26",height:"6",rx:"3",fill:"#7CB45C"}),p("rect",{x:"8",width:"18",height:"6",rx:"3",fill:"#4BA041"}),p("rect",{y:"11",width:"32",height:"6",rx:"3",fill:"#AAA8A8"}),p("rect",{x:"11",y:"11",width:"21",height:"6",rx:"3",fill:"#91908F"}),p("rect",{x:"11",y:"22",width:"21",height:"6",rx:"3",fill:"#70B5C3"}),p("rect",{x:"17",y:"22",width:"15",height:"6",rx:"3",fill:"#4D989B"})]}),report:F("svg",{width:"30",height:"36",viewBox:"0 0 30 36",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{d:"M0 16C0 13.7909 1.79086 12 4 12V12C6.20914 12 8 13.7909 8 16V32C8 34.2091 6.20914 36 4 36V36C1.79086 36 0 34.2091 0 32V16Z",fill:"#6ACC5D"}),p("path",{d:"M11 4C11 1.79086 12.7909 0 15 0V0C17.2091 0 19 1.79086 19 4V32C19 34.2091 17.2091 36 15 36V36C12.7909 36 11 34.2091 11 32V4Z",fill:"#FF4C4C"}),p("path",{d:"M22 10C22 7.79086 23.7909 6 26 6V6C28.2091 6 30 7.79086 30 10V32C30 34.2091 28.2091 36 26 36V36C23.7909 36 22 34.2091 22 32V10Z",fill:"#E5B442"}),p("path",{d:"M0 23C0 20.7909 1.79086 19 4 19V19C6.20914 19 8 20.7909 8 23V32C8 34.2091 6.20914 36 4 36V36C1.79086 36 0 34.2091 0 32V23Z",fill:"#2BAD1D"}),p("path",{d:"M11 15C11 12.7909 12.7909 11 15 11V11C17.2091 11 19 12.7909 19 15V32C19 34.2091 17.2091 36 15 36V36C12.7909 36 11 34.2091 11 32V15Z",fill:"#C10B0B"}),p("path",{d:"M22 19C22 16.7909 23.7909 15 26 15V15C28.2091 15 30 16.7909 30 19V32C30 34.2091 28.2091 36 26 36V36C23.7909 36 22 34.2091 22 32V19Z",fill:"#CC8E00"})]}),sounds:F("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[p("circle",{cx:"10",cy:"10",r:"10",fill:"#451475"}),p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.5 10C3.5 8.27609 4.18482 6.62279 5.40381 5.40381C6.62279 4.18482 8.27609 3.5 10 3.5C11.7239 3.5 13.3772 4.18482 14.5962 5.40381C15.8152 6.62279 16.5 8.27609 16.5 10C16.5 11.7239 15.8152 13.3772 14.5962 14.5962C13.3772 15.8152 11.7239 16.5 10 16.5C8.27609 16.5 6.62279 15.8152 5.40381 14.5962C4.18482 13.3772 3.5 11.7239 3.5 10V10ZM10 2C7.87827 2 5.84344 2.84285 4.34315 4.34315C2.84285 5.84344 2 7.87827 2 10C2 12.1217 2.84285 14.1566 4.34315 15.6569C5.84344 17.1571 7.87827 18 10 18C12.1217 18 14.1566 17.1571 15.6569 15.6569C17.1571 14.1566 18 12.1217 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84285 12.1217 2 10 2V2ZM8.379 7.227C8.34101 7.20412 8.29762 7.19175 8.25327 7.19117C8.20892 7.19059 8.16522 7.20181 8.12664 7.2237C8.08807 7.24558 8.05601 7.27733 8.03375 7.3157C8.0115 7.35406 7.99985 7.39765 8 7.442V12.559C8.00003 12.6033 8.0118 12.6467 8.03413 12.685C8.05646 12.7232 8.08854 12.7548 8.12708 12.7765C8.16563 12.7983 8.20926 12.8095 8.25352 12.8088C8.29778 12.8082 8.34108 12.7958 8.379 12.773L12.643 10.214C12.6798 10.1917 12.7103 10.1604 12.7315 10.1229C12.7526 10.0854 12.7638 10.043 12.7638 10C12.7638 9.95695 12.7526 9.91463 12.7315 9.87714C12.7103 9.83965 12.6798 9.80825 12.643 9.786L8.379 7.227Z",fill:"#C5A5E6"})]}),advancement:p("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M5.76943 2.86824L2.18356 0.819176C1.29934 0.313911 0.313911 1.29934 0.819176 2.18356L2.86824 5.76943C2.95458 5.92052 3 6.09154 3 6.26556V20.7344C3 20.9085 2.95459 21.0795 2.86824 21.2306L0.819176 24.8164C0.313911 25.7007 1.29934 26.6861 2.18356 26.1808L5.76943 24.1318C5.92052 24.0454 6.09154 24 6.26556 24H20.7344C20.9085 24 21.0795 24.0454 21.2306 24.1318L24.8164 26.1808C25.7007 26.6861 26.6861 25.7007 26.1808 24.8164L24.1318 21.2306C24.0454 21.0795 24 20.9085 24 20.7344V6.26556C24 6.09154 24.0454 5.92052 24.1318 5.76943L26.1808 2.18356C26.6861 1.29934 25.7007 0.313911 24.8164 0.819176L21.2306 2.86824C21.0795 2.95458 20.9085 3 20.7344 3H6.26556C6.09154 3 5.92052 2.95459 5.76943 2.86824Z"})}),block_definition:p("svg",{width:"28",height:"30",viewBox:"0 0 28 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.75 0.272806C13.5437 -0.0909347 14.4563 -0.0909357 15.25 0.272805L26.25 5.31447C27.3163 5.80322 28 6.86864 28 8.04167V21.3583C28 22.5313 27.3163 23.5967 26.25 24.0855L15.25 29.1272C14.4563 29.4909 13.5437 29.4909 12.75 29.1272L1.75004 24.0855C0.683681 23.5967 0 22.5313 0 21.3583V8.04167C0 6.86864 0.683678 5.80322 1.75004 5.31447L12.75 0.272806ZM14 4.10003L6.92266 7.34381L14 10.2391L21.0773 7.34381L14 4.10003ZM24 10.4699V20.7166L16 24.3833V13.7427L24 10.4699ZM12 13.7427L4 10.4699V20.7166L12 24.3833V13.7427Z"})}),chat_type:p("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 0C1.79086 0 0 1.79086 0 4V21C0 23.2091 1.79086 25 4 25H8V30.7732C8 31.636 9.01946 32.0938 9.66436 31.5206L17 25H28C30.2091 25 32 23.2091 32 21V4C32 1.79086 30.2091 0 28 0H4Z"})}),dimension:p("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.7659 0.445701C18.5582 0.154357 17.2971 0 16 0C12.7056 0 9.64369 0.995672 7.09887 2.70251C7.94418 3.62868 8.45554 4.49063 8.75229 5.30669C9.09264 6.24263 9.125 7.05145 9.125 7.6875C9.125 7.78933 9.12466 7.88242 9.12434 7.96797V7.96834V7.96869V7.96901V7.96902C9.12247 8.47232 9.12158 8.71409 9.19707 8.93677C9.24638 9.08226 9.36226 9.31309 9.94721 9.60557C10.5615 9.91273 10.7586 9.8353 10.7733 9.82952L10.7739 9.82929C10.8476 9.80165 10.9347 9.73088 11.2191 9.3753L11.256 9.32901C11.4803 9.04661 11.8843 8.53789 12.5239 8.29804C13.2651 8.02009 14.0719 8.16789 14.9472 8.60557C16.4469 9.35541 17.3707 9.72195 17.9896 9.84301C18.2833 9.90046 18.4612 9.89221 18.5724 9.86953C18.6731 9.84897 18.7646 9.80771 18.8753 9.71913C19.2786 9.39647 19.6673 8.76901 19.9604 7.83984C20.2468 6.93156 20.4085 5.83955 20.4378 4.72369C20.4672 3.60868 20.3634 2.50945 20.1445 1.59133C20.0358 1.13577 19.9057 0.75371 19.7659 0.445701ZM5.50368 3.92379C2.13164 6.85717 4.76837e-07 11.1797 4.76837e-07 16C4.76837e-07 16.1436 0.00189157 16.2867 0.00565022 16.4294C1.54401 16.9679 2.98111 16.6462 4.47925 16.2249C4.59499 16.1923 4.71296 16.1585 4.83279 16.1242L4.83282 16.1242C5.68141 15.881 6.62293 15.6113 7.5179 15.5713C8.62706 15.5218 9.72807 15.8138 10.7071 16.7929C11.7646 17.8503 12.0777 19.3283 11.8236 20.6012C11.5699 21.8719 10.7059 23.1043 9.24253 23.4702C8.94395 23.5448 8.87224 23.6435 8.85319 23.6716C8.82014 23.7204 8.77492 23.8288 8.77233 24.0677C8.7697 24.3108 8.81045 24.5892 8.869 24.9304L8.88606 25.0286L8.88606 25.0286C8.93527 25.3102 9 25.6807 9 26C9 27.4332 8.58821 28.8019 8.09018 29.9113C10.4231 31.2406 13.1229 32 16 32C19.5354 32 22.8029 30.8534 25.4511 28.9117C25.3471 28.7646 25.2399 28.6153 25.1301 28.465C24.5506 27.672 23.9089 26.8682 23.2732 26.2107C22.6167 25.5315 22.05 25.0971 21.6286 24.9285C20.8738 24.6266 20.1566 24.1617 19.9616 23.3144C19.8718 22.9244 19.9228 22.5591 20.0033 22.2613C20.0827 21.9675 20.2083 21.6782 20.3292 21.4199C20.3937 21.2823 20.4611 21.1436 20.5296 21.0026L20.5296 21.0024C20.9898 20.055 21.5 19.0047 21.5 17.5C21.5 16.2061 22.0035 15.2171 22.8218 14.4932C23.5953 13.8089 24.6068 13.3989 25.5877 13.1047C26.3248 12.8835 27.1287 12.7056 27.8822 12.5388L27.8824 12.5388L27.8824 12.5388L27.8824 12.5388C28.1297 12.484 28.3716 12.4305 28.6038 12.377C29.5877 12.1506 30.4202 11.9219 31.0528 11.6056C31.1525 11.5557 31.2566 11.5241 31.3612 11.5094C29.9973 6.83578 26.5583 3.04703 22.1087 1.2075C22.3608 2.30151 22.4695 3.54643 22.4372 4.7763C22.404 6.03545 22.2219 7.31843 21.8678 8.4414C21.5202 9.54349 20.9714 10.6035 20.1247 11.2809C19.7989 11.5415 19.4221 11.7373 18.9722 11.8291C18.5328 11.9188 18.0778 11.8982 17.6057 11.8058C16.6928 11.6273 15.5531 11.1446 14.0528 10.3944C13.4385 10.0873 13.2414 10.1647 13.2267 10.1705L13.2261 10.1707C13.1524 10.1983 13.0653 10.2691 12.7809 10.6247L12.744 10.671C12.5197 10.9534 12.1157 11.4621 11.4761 11.702C10.7349 11.9799 9.92815 11.8321 9.05279 11.3944C8.13774 10.9369 7.56612 10.3552 7.30294 9.57885C7.10968 9.00876 7.1174 8.37679 7.1232 7.90214V7.90213C7.12412 7.82627 7.125 7.75443 7.125 7.6875C7.125 7.13604 7.09486 6.60111 6.87271 5.99018C6.66804 5.42734 6.27867 4.74354 5.50368 3.92379ZM31.8004 13.4655C30.9636 13.8583 29.9823 14.1121 29.0524 14.3261C28.782 14.3883 28.5159 14.4472 28.2543 14.5052C27.5209 14.6676 26.8227 14.8222 26.1623 15.0203C25.2682 15.2886 24.5922 15.5973 24.147 15.9912C23.7465 16.3454 23.5 16.7939 23.5 17.5C23.5 19.496 22.7817 20.9579 22.3162 21.9053L22.3159 21.9058C22.2518 22.0363 22.1925 22.157 22.1405 22.268C22.0298 22.5045 21.9661 22.6645 21.934 22.7831C21.9282 22.8046 21.9241 22.8225 21.9212 22.837C21.9775 22.8824 22.105 22.965 22.3714 23.0715C23.2 23.403 24.0083 24.0935 24.7112 24.8206C25.4349 25.5693 26.1369 26.4531 26.7449 27.285C26.8288 27.3998 26.9111 27.5139 26.9917 27.6269C30.0758 24.7103 32 20.5798 32 16C32 15.1375 31.9318 14.291 31.8004 13.4655ZM6.39285 28.7958C6.7349 27.9612 7 26.9846 7 26C7 25.8639 6.96675 25.6702 6.9058 25.3152L6.8978 25.2686C6.84067 24.9356 6.76762 24.4924 6.77245 24.0461C6.77733 23.5956 6.86084 23.0468 7.19719 22.5502C7.54754 22.0328 8.08591 21.6977 8.75748 21.5299C9.2941 21.3957 9.72071 20.9187 9.86229 20.2096C10.0034 19.5028 9.81659 18.7308 9.2929 18.2071C8.77193 17.6861 8.24794 17.5407 7.6071 17.5693C6.96482 17.598 6.27253 17.7947 5.38824 18.0461L5.38718 18.0464L5.3833 18.0475C5.26594 18.0808 5.1452 18.1152 5.02075 18.1502C3.64971 18.5358 2.00798 18.9412 0.20345 18.5584C0.873856 22.73 3.15691 26.3624 6.39285 28.7958ZM21.8827 22.799C21.882 22.7982 21.8816 22.7979 21.8815 22.7979C21.881 22.798 21.883 22.8012 21.8886 22.8073C21.886 22.8031 21.884 22.8004 21.8827 22.799Z"})}),dimension_type:p("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.2929 22.7071C11.6834 23.0976 12.3166 23.0976 12.7071 22.7071L19.0711 16.3431C19.4616 15.9526 19.4616 15.3195 19.0711 14.9289C18.6805 14.5384 18.0474 14.5384 17.6569 14.9289L13 19.5858V14.1521C14.074 14.1106 15.2545 13.9152 16.5 13.5C17.4051 13.1983 18.0371 12.8511 18.602 12.5408C19.9096 11.8225 20.8576 11.3017 24 12V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V9.5C3 7.5 6 10.5 7.5 12.5C7.95659 13.1088 9.22475 13.7863 11 14.0485V19.5858L6.34315 14.9289C5.95262 14.5384 5.31946 14.5384 4.92893 14.9289C4.53841 15.3195 4.53841 15.9526 4.92893 16.3431L11.2929 22.7071ZM11 14.0485V3.41421L6.34315 8.07107C5.95262 8.46159 5.31946 8.46159 4.92893 8.07107C4.53841 7.68054 4.53841 7.04738 4.92893 6.65686L11.2929 0.292893C11.6834 -0.097631 12.3166 -0.097631 12.7071 0.292893L19.0711 6.65686C19.4616 7.04738 19.4616 7.68054 19.0711 8.07107C18.6805 8.46159 18.0474 8.46159 17.6569 8.07107L13 3.41421V14.1521C12.2816 14.1799 11.6108 14.1388 11 14.0485Z"})}),item_modifier:F("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("line",{x1:"8.05026",y1:"17.9498",x2:"17.9498",y2:"8.05026",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round"}),p("path",{d:"M10.1749 4.51138C10.1749 4.51138 16.4785 3.75061 19.364 6.63604C22.2494 9.52148 21.4886 15.8251 21.4886 15.8251",fill:"none",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round"})]}),loot_table:p("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.159296 8.96068C-0.224317 6.7851 1.22836 4.71047 3.40393 4.32686L27.0393 0.159301C29.2149 -0.224312 31.2895 1.22836 31.6731 3.40394L35.8407 27.0393C36.2243 29.2149 34.7716 31.2895 32.5961 31.6731L8.96068 35.8407C6.7851 36.2243 4.71047 34.7716 4.32685 32.5961L0.159296 8.96068ZM11.5999 10.4974C11.9356 12.401 10.6645 14.2163 8.76089 14.552C6.85726 14.8876 5.04196 13.6165 4.7063 11.7129C4.37063 9.80928 5.64172 7.99398 7.54535 7.65832C9.44898 7.32266 11.2643 8.59375 11.5999 10.4974ZM25.5026 11.6C27.4063 11.2643 28.6773 9.44899 28.3417 7.54536C28.006 5.64173 26.1907 4.37064 24.2871 4.7063C22.3835 5.04196 21.1124 6.85727 21.448 8.7609C21.7837 10.6645 23.599 11.9356 25.5026 11.6ZM14.552 27.2391C14.8876 29.1427 13.6165 30.958 11.7129 31.2937C9.80928 31.6294 7.99398 30.3583 7.65831 28.4546C7.32265 26.551 8.59374 24.7357 10.4974 24.4001C12.401 24.0644 14.2163 25.3355 14.552 27.2391ZM28.4546 28.3417C30.3583 28.006 31.6294 26.1907 31.2937 24.2871C30.958 22.3835 29.1427 21.1124 27.2391 21.448C25.3355 21.7837 24.0644 23.599 24.4 25.5026C24.7357 27.4063 26.551 28.6773 28.4546 28.3417Z"})}),model:p("svg",{width:"28",height:"23",viewBox:"0 0 28 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.75 0.27279C13.5437 -0.09095 14.4563 -0.0909509 15.25 0.27279L26.25 5.31446C27.3163 5.8032 28 6.86863 28 8.04165V15.3333C28 16.5444 27.2718 17.6367 26.1538 18.1025L15.1538 22.6859C14.4154 22.9936 13.5846 22.9936 12.8462 22.6859L1.84615 18.1025C0.728214 17.6367 0 16.5444 0 15.3333V8.04165C0 6.86863 0.683678 5.8032 1.75004 5.31446L12.75 0.27279ZM14 4.10002L6.92266 7.3438L14 10.2391L21.0773 7.3438L14 4.10002ZM24 10.4699V14.6666L16 18V13.7427L24 10.4699ZM12 13.7427L4 10.4699V14.6666L12 18V13.7427Z"})}),pack_mcmeta:p("svg",{width:"28",height:"31",viewBox:"0 0 28 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.25 0.872837C14.4563 0.509096 13.5437 0.509097 12.75 0.872837L1.75004 5.9145C0.683678 6.40325 0 7.46867 0 8.6417V23.3333C0 24.5444 0.728212 25.6368 1.84615 26.1026L12.8462 30.6859C13.5846 30.9936 14.4154 30.9936 15.1538 30.6859L26.1538 26.1026C27.2718 25.6368 28 24.5444 28 23.3333V8.6417C28 7.46867 27.3163 6.40325 26.25 5.9145L15.25 0.872837ZM11.8374 5.69126L14 4.70006L21.0773 7.94384L18.8225 8.86629L11.8374 5.69126ZM9.4308 6.79428L6.92266 7.94384L14 10.8391L16.2787 9.90694L9.4308 6.79428ZM24 22.6667V11.07L16 14.3427V26L24 22.6667ZM4 11.07L12 14.3427V26L4 22.6667V11.07Z"})}),predicate:p("svg",{width:"24",height:"22",viewBox:"0 0 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M22 0H2C1.17595 0 0.705573 0.940764 1.2 1.6L8.8 11.7333C8.92982 11.9064 9 12.117 9 12.3333V20.382C9 21.1253 9.78231 21.6088 10.4472 21.2764L14.4472 19.2764C14.786 19.107 15 18.7607 15 18.382V12.3333C15 12.117 15.0702 11.9064 15.2 11.7333L22.8 1.6C23.2944 0.940764 22.824 0 22 0Z"})}),recipe:p("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 2H12V10L20 10V2ZM10 2V10H2V4C2 2.89543 2.89543 2 4 2H10ZM2 20L2 12H10V20H2ZM2 22L2 28C2 29.1046 2.89543 30 4 30H10V22H2ZM12 22V30H20V22L12 22ZM22 22V30H28C29.1046 30 30 29.1046 30 28V22H22ZM30 20V12H22V20H30ZM20 20L12 20V12L20 12V20ZM30 4V10H22V2H28C29.1046 2 30 2.89543 30 4ZM4 0C1.79086 0 0 1.79086 0 4V28C0 30.2091 1.79086 32 4 32H28C30.2091 32 32 30.2091 32 28V4C32 1.79086 30.2091 0 28 0H4Z"})}),"tag/block":ui,"tag/entity_type":ui,"tag/fluid":ui,"tag/game_event":ui,"tag/item":ui,"tag/worldgen/biome":ui,text_component:p("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 4C0 1.79086 1.79086 0 4 0H28C30.2091 0 32 1.79086 32 4V21C32 23.2091 30.2091 25 28 25H17L9.66436 31.5206C9.01946 32.0938 8 31.636 8 30.7732V25H4C1.79086 25 0 23.2091 0 21V4ZM2.46875 20H6.24716L7.20402 16.946H12.2272L13.1861 20H16.9645L12.0568 5.45455H7.37642L2.46875 20ZM11.3888 14.2756L9.76989 9.11932H9.65625L8.04072 14.2756H11.3888ZM19.7521 19.8366C20.2919 20.0687 20.9098 20.1847 21.6058 20.1847C22.1125 20.1847 22.567 20.1207 22.9695 19.9929C23.3767 19.8651 23.7294 19.6733 24.0277 19.4176C24.3307 19.1619 24.5793 18.8494 24.7734 18.4801H24.8587V20H28.1257V12.5852C28.1257 12.0076 28.005 11.4938 27.7635 11.044C27.5268 10.5942 27.1906 10.2154 26.755 9.90767C26.3194 9.59517 25.808 9.35843 25.2209 9.19744C24.6338 9.03172 23.9922 8.94886 23.2962 8.94886C22.3208 8.94886 21.4851 9.10038 20.7891 9.40341C20.0978 9.7017 19.5533 10.1136 19.1555 10.6392C18.7625 11.16 18.5187 11.7519 18.424 12.4148L21.6271 12.5284C21.7029 12.178 21.8804 11.9034 22.1598 11.7045C22.4392 11.5057 22.8085 11.4062 23.2678 11.4062C23.6939 11.4062 24.0324 11.5057 24.2834 11.7045C24.5343 11.9034 24.6598 12.1851 24.6598 12.5497V12.5852C24.6598 12.8078 24.5722 12.9806 24.397 13.1037C24.2266 13.2221 23.9519 13.3144 23.5732 13.3807C23.1944 13.4422 22.6948 13.5014 22.0746 13.5582C21.5206 13.6056 20.9998 13.6979 20.5121 13.8352C20.0244 13.9678 19.5935 14.1643 19.2195 14.4247C18.8454 14.6851 18.5518 15.0237 18.3388 15.4403C18.1257 15.857 18.0192 16.3684 18.0192 16.9744C18.0192 17.6941 18.1731 18.2931 18.4808 18.7713C18.7933 19.2448 19.2171 19.5999 19.7521 19.8366ZM23.6868 17.6847C23.3885 17.8362 23.0523 17.9119 22.6783 17.9119C22.2805 17.9119 21.9515 17.8172 21.6911 17.6278C21.4354 17.4384 21.3075 17.1638 21.3075 16.804C21.3075 16.5672 21.3667 16.3636 21.4851 16.1932C21.6082 16.018 21.7834 15.8759 22.0107 15.767C22.2427 15.6581 22.522 15.5777 22.8487 15.5256C23.0097 15.5019 23.1778 15.4759 23.353 15.4474C23.5282 15.419 23.6986 15.3859 23.8643 15.348C24.0301 15.3101 24.1816 15.2699 24.3189 15.2273C24.4609 15.1847 24.5817 15.1373 24.6811 15.0852V16.1222C24.6811 16.4773 24.5911 16.7898 24.4112 17.0597C24.2313 17.3248 23.9898 17.5331 23.6868 17.6847Z"})}),world:p("svg",{width:"28",height:"29",viewBox:"0 0 28 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 2C6 0.895431 6.89543 0 8 0H10C11.1046 0 12 0.895431 12 2V4C12 5.10457 11.1046 6 10 6V10.5688C10.2875 10.9298 10.5816 11.3478 10.8939 11.7915L10.8939 11.7916C11.5 12.6529 12.1742 13.6111 13 14.4368C13.8636 15.3004 15.3471 15.813 17 15.9652V12C15.8954 12 15 11.1046 15 10V8C15 6.89543 15.8954 6 17 6H19C20.1046 6 21 6.89543 21 8V10C21 11.1046 20.1046 12 19 12V15.8819C20.1705 15.6766 21.362 15.2558 22 14.9368C23 14.4368 26 14 28 14.4368V20C28 22.2091 26.2091 24 24 24H8C5.79086 24 4 22.2091 4 20V9C5.38919 8.65271 6.77837 8.54664 8 9.01691V6C6.89543 6 6 5.10457 6 4V2ZM22 26.2968H6C3.79086 26.2968 2 24.5059 2 22.2968V13C1.34604 13.0169 0.673018 13.1285 0 13.2968V24.2968C0 26.5059 1.79086 28.2968 4 28.2968H20C21.6222 28.2968 23.0189 27.3311 23.6465 25.9433C23.1444 26.1704 22.5869 26.2968 22 26.2968Z"})}),worldgen:p("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 0C2.89543 0 2 0.89543 2 2V4C2 5.10457 2.89543 6 4 6V9.01691C2.77837 8.54664 1.38919 8.65271 0 9V20C0 22.2091 1.79086 24 4 24H20C22.2091 24 24 22.2091 24 20V14.4368C22 14 19 14.4368 18 14.9368C17.362 15.2558 16.1705 15.6766 15 15.8819V12C16.1046 12 17 11.1046 17 10V8C17 6.89543 16.1046 6 15 6H13C11.8954 6 11 6.89543 11 8V10C11 11.1046 11.8954 12 13 12V15.9652C11.3471 15.813 9.86362 15.3004 9 14.4368C8.17424 13.6111 7.50001 12.6529 6.8939 11.7916L6.89388 11.7916L6.89388 11.7916L6.89385 11.7915C6.58163 11.3478 6.28748 10.9298 6 10.5688V6C7.10457 6 8 5.10457 8 4V2C8 0.895431 7.10457 0 6 0H4Z"})}),"worldgen/biome":p("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 1C7 0.447715 7.44772 0 8 0C8.55229 0 9 0.447715 9 1V3C9 3.55228 8.55229 4 8 4C7.44772 4 7 3.55228 7 3V1ZM20.5 21H22.5C23.2136 21 23.6975 20.2741 23.4231 19.6154L19.9231 11.2154C19.5812 10.3949 18.4188 10.3949 18.0769 11.2154L14.5769 19.6154C14.3025 20.2741 14.7864 21 15.5 21H17.5V24H20.5V21ZM16 8C16 7.44772 15.5523 7 15 7H13C12.4477 7 12 7.44772 12 8C12 8.55228 12.4477 9 13 9H15C15.5523 9 16 8.55229 16 8ZM14.4142 13C14.8047 13.3905 14.8047 14.0237 14.4142 14.4142C14.0237 14.8047 13.3905 14.8047 13 14.4142L11.5858 13C11.1953 12.6095 11.1953 11.9763 11.5858 11.5858C11.9763 11.1953 12.6095 11.1953 13 11.5858L14.4142 13ZM4 8C4 7.44772 3.55228 7 3 7H1C0.447715 7 0 7.44772 0 8C0 8.55228 0.447715 9 1 9H3C3.55228 9 4 8.55229 4 8ZM4.41422 3C4.80474 3.39053 4.80474 4.02369 4.41422 4.41421C4.02369 4.80474 3.39053 4.80474 3 4.41421L1.58579 3C1.19526 2.60948 1.19526 1.97631 1.58579 1.58579C1.97631 1.19526 2.60948 1.19526 3 1.58579L4.41422 3ZM8 16C8.55229 16 9 15.5523 9 15V13C9 12.4477 8.55229 12 8 12C7.44772 12 7 12.4477 7 13L7 15C7 15.5523 7.44772 16 8 16ZM3 14.4142C2.60947 14.8047 1.97631 14.8047 1.58579 14.4142C1.19526 14.0237 1.19526 13.3905 1.58579 13L3 11.5858C3.39052 11.1953 4.02369 11.1953 4.41421 11.5858C4.80474 11.9763 4.80474 12.6095 4.41421 13L3 14.4142ZM14.4142 1.58579C14.0237 1.19526 13.3905 1.19526 13 1.58579L11.5858 3C11.1953 3.39053 11.1953 4.02369 11.5858 4.41422C11.9763 4.80474 12.6095 4.80474 13 4.41422L14.4142 3C14.8047 2.60948 14.8047 1.97631 14.4142 1.58579ZM7 5C5.89543 5 5 5.89543 5 7V9C5 10.1046 5.89543 11 7 11H9C10.1046 11 11 10.1046 11 9V7C11 5.89543 10.1046 5 9 5H7Z"})}),"worldgen/configured_carver":F("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{d:"M20 24H4C1.79086 24 0 22.2091 2.47955e-06 20L3.09944e-06 19C1.5 20.5 4.5 22 7 21.5C9.5 21 10 19.7806 10 17.5C10 15 9.17881 12.9285 11.5 12C14 11 16 17 18.5 17.5C20.5 17.9 23 15.3333 24 14.5V20C24 22.2091 22.2091 24 20 24Z"}),p("path",{d:"M24 4V8C22.1667 9.66667 20.1125 11.8062 18.5 11C16.5 10 14 9 11.5 8.5C10.5194 8.30388 8.5 9 7.5 11C6.5 13 7.5 14.5 6.5 15.5C5.5 16.5 4.5 17 3.5 16C2.05778 14.5578 2 13 0 12.5L2.10762e-06 4C2.65539e-06 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4Z"})]}),"worldgen/configured_feature":p("svg",{width:"11",height:"18",viewBox:"0 0 11 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 2C0 0.89543 0.895431 0 2 0H7C8.10457 0 9 0.895431 9 2V4C10.1046 4 11 4.89543 11 6V8C11 9.10457 10.1046 10 9 10H7C6.63571 10 6.29417 9.90261 6 9.73244L6 18H3V15H1C0.447715 15 0 14.5523 0 14V12C0 11.4477 0.447715 11 1 11H3L3 9H2C0.89543 9 0 8.10457 0 7V2Z"})}),"worldgen/configured_structure_feature":Id,"worldgen/configured_surface_builder":p("svg",{width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.21953 2.06398C0.59354 2.14445 0 1.68765 0 1.0565C0 0.611334 0.302132 0.217946 0.74016 0.138531C2.48644 -0.178075 4.18528 -0.0156892 5.5 1.29904C5.94949 1.74852 6.39898 2.38729 6.89388 3.09058L6.89388 3.09059C7.5 3.95195 8.17424 4.91009 9 5.73586C9.9499 6.68575 11.6497 7.21092 13.5 7.29903C15 7.37046 17.078 6.69683 18 6.23586C18.8772 5.79726 21.2934 5.40727 23.2235 5.61295C23.6802 5.66162 24 6.06324 24 6.52248C24 7.14603 23.4206 7.61579 22.7982 7.57749C20.9522 7.46389 18.8138 7.82895 18 8.23586C17.078 8.69683 15 9.37046 13.5 9.29904C11.6497 9.21092 9.9499 8.68575 9 7.73586C8.17424 6.91009 7.5 5.95195 6.89388 5.09059L6.89388 5.09059L6.89387 5.09058C6.39898 4.38729 5.94949 3.74852 5.5 3.29904C4.30594 2.10498 2.79505 1.86144 1.21953 2.06398ZM4 19.299H20C22.2091 19.299 24 17.5082 24 15.299V9.73586C22 9.29903 19 9.73586 18 10.2359C17.078 10.6968 15 11.3705 13.5 11.299C11.6497 11.2109 9.9499 10.6858 9 9.73586C8.17423 8.91009 7.5 7.95194 6.89388 7.09058C6.39898 6.38729 5.94949 5.74852 5.5 5.29903C4 3.79903 2 3.79904 0 4.29903V15.299C0 17.5082 1.79086 19.299 4 19.299Z"})}),"worldgen/density_function":p("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.99999 19C3.44771 19 2.99999 18.5523 2.99999 18V16H0.999994C0.447709 16 -6.40123e-06 15.5523 -6.40123e-06 15C-6.40123e-06 14.4477 0.447709 14 0.999994 14H2.99999V6.50898C2.73742 6.59875 2.44791 6.71456 2.12858 6.86194C1.3764 7.2091 0.485216 6.88077 0.138056 6.12859C-0.209103 5.37641 0.11923 4.48522 0.871408 4.13806C1.62438 3.79054 2.33177 3.5433 2.99999 3.39632V1C2.99999 0.447716 3.44771 0 3.99999 0C4.55228 0 4.99999 0.447716 4.99999 1V3.2668C5.19676 3.28855 5.38996 3.32136 5.57983 3.36522C6.95063 3.68192 7.87758 4.51535 8.55369 5.26846C8.81818 5.56308 9.07365 5.88025 9.29728 6.15788L9.29731 6.15792C9.35241 6.22632 9.40557 6.29232 9.45646 6.35499C9.73181 6.69411 9.96489 6.96732 10.2004 7.19234C10.6367 7.60933 11.0034 7.79103 11.5 7.79103C13.4431 7.79103 14.7031 7.02516 16.2234 6.10111L16.4096 5.988C18.0133 5.01523 19.9627 3.89955 22.8254 4.53572C23.6341 4.71543 24.144 5.51669 23.9643 6.32539C23.7846 7.13409 22.9833 7.64399 22.1746 7.46428C20.5373 7.10044 19.4867 7.63028 17.9654 8.55302C17.8762 8.60715 17.7854 8.66264 17.6929 8.71915C16.2113 9.62479 14.3033 10.791 11.5 10.791C9.99661 10.791 8.92576 10.1238 8.12775 9.36127C7.74604 8.99651 7.41271 8.59727 7.12751 8.24603C7.06056 8.16357 6.99674 8.0844 6.93508 8.00791L6.9348 8.00757C6.71743 7.73792 6.52696 7.50165 6.3213 7.27257C5.84352 6.74037 5.44831 6.44194 4.99999 6.31296V14H23C23.5523 14 24 14.4477 24 15C24 15.5523 23.5523 16 23 16H4.99999V18C4.99999 18.5523 4.55228 19 3.99999 19Z"})}),"worldgen/flat_level_generator_preset":p("svg",{width:"24",height:"22",viewBox:"0 0 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 0C3.89543 0 3 0.895431 3 2V4C3 5.10457 3.89543 6 5 6V10H1C0.447715 10 0 10.4477 0 11C0 11.5523 0.447716 12 1 12H23C23.5523 12 24 11.5523 24 11C24 10.4477 23.5523 10 23 10H7V6C8.10457 6 9 5.10457 9 4V2C9 0.895431 8.10457 0 7 0H5ZM0 15C0 14.4477 0.447715 14 1 14H23C23.5523 14 24 14.4477 24 15V21C24 21.5523 23.5523 22 23 22H1C0.447716 22 0 21.5523 0 21V15Z"})}),"worldgen/noise":p("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 0H5C7 5 3 8 0 8V25.5C2.5 31 6.64628 28.2245 11 23C13.5 20 18 19 17.5 32H28C30.2091 32 32 30.2091 32 28V21.5C27.754 23.044 24.104 20.4161 21.05 18.2174C20.148 17.568 19.298 16.956 18.5 16.5C15 14.5 17.953 6.1094 23.5 5C25.2216 4.65569 25.5205 4.78558 27.6624 5.71624C28.6308 6.13704 29.9761 6.72157 32 7.5V4C32 1.79086 30.2091 0 28 0ZM8.5 11.5C7.5 11 6.5 10.5 5 12C2.87868 14.1213 3.5 19.5 6.5 19C9.5 18.5 10 16 10 14.5C10 13.3 9.13246 11.8162 8.5 11.5Z"})}),"worldgen/noise_settings":p("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{d:"M20 18.299H4C1.79086 18.299 0 16.5082 0 14.299V3.29904C1.5 1 3.5 -1.5 6 2C7 3.4 7.5 7.23586 9 8.73586C9.9499 9.68576 11.3494 10.3408 13 9.5C14.5 8.73586 15 7 16.5 6.5C18.091 5.96967 22 8.29904 24 8.73586V14.299C24 16.5082 22.2091 18.299 20 18.299Z"})}),"worldgen/placed_feature":p("svg",{width:"15",height:"20",viewBox:"0 0 15 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11 0C9.89543 0 9 0.89543 9 2V4C9 5.10457 9.89543 6 11 6V9H10C8.89543 9 8 9.89543 8 11V13C8 14.1046 8.89543 15 10 15V19.5H12V15C13.1046 15 14 14.1046 14 13V11C14 10.2597 13.5978 9.61337 13 9.26756V6C14.1046 6 15 5.10457 15 4V2C15 0.895431 14.1046 0 13 0H11ZM2 5C0.895431 5 0 5.89543 0 7V9C0 10.1046 0.89543 11 2 11L2 15.5H4V11C5.10457 11 6 10.1046 6 9V7C6 5.89543 5.10457 5 4 5H2Z"})}),"worldgen/processor_list":p("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.21973 0H4C1.79086 0 0 1.79086 0 4V5.82578L4.72912 3.27934L6.21973 0ZM0 8.0973V11H16.9613L17.9149 6.09189L11.6129 0H8.41664L6.48011 4.26037C6.34438 4.55898 6.11451 4.80487 5.82571 4.96037L5.43726 5.16954L7.99614 6.63176C8.47566 6.90577 8.64226 7.51662 8.36825 7.99614C8.09424 8.47566 7.48338 8.64225 7.00387 8.36824L3.50386 6.36824C3.45778 6.34191 3.41458 6.31246 3.37439 6.28032L0 8.0973ZM14.4905 0L17.5131 2.92179L19.4556 1.66116C19.9189 1.36051 20.5382 1.49235 20.8388 1.95563C21.1395 2.41891 21.0077 3.03819 20.5444 3.33884L18.9888 4.34834L19.5 4.84246C19.8649 5.19527 20.0267 5.70872 19.9299 6.20702L18.9987 11H24V4C24 1.79086 22.2091 0 20 0H14.4905ZM3.94591 14H0V20C0 22.2091 1.79086 24 4 24H11V19.1801L6.54232 18.1514L4.89443 21.4472C4.64744 21.9412 4.04677 22.1414 3.55279 21.8944C3.05881 21.6474 2.85859 21.0468 3.10558 20.5528L4.92033 16.9233L3.94591 14ZM11 17.1276V14H6.0541L6.77134 16.1517L11 17.1276ZM21.6247 17.7809C22.056 17.4359 22.1259 16.8066 21.7809 16.3753C21.4359 15.944 20.8066 15.8741 20.3753 16.2191L18.0071 18.1137C17.7506 18.3189 17.5686 18.6026 17.4889 18.9212L16.2192 24H14V14H24V20C24 22.2091 22.2091 24 20 24H18.2808L19.3883 19.57L21.6247 17.7809Z"})}),"worldgen/structure":Id,"worldgen/structure_set":p("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11 4L9.5376 4C9.05336 4 8.85189 3.38045 9.24351 3.09563L13.2059 0.21388C13.3812 0.0863707 13.6188 0.0863706 13.7941 0.21388L17.7565 3.09563C18.1481 3.38045 17.9467 4 17.4624 4L16 4V7C16 7.55228 15.5523 8 15 8H12C11.4477 8 11 7.55228 11 7V4ZM8.46241 7H0.537581C0.0533412 7 -0.148129 6.38045 0.243493 6.09563L4.2059 3.21388C4.38123 3.08637 4.61875 3.08637 4.79407 3.21388L8.75649 6.09563C9.14812 6.38045 8.94665 7 8.46241 7ZM6.99999 10V7H1.99999V10C1.99999 10.5523 2.4477 11 2.99999 11H5.99999C6.55227 11 6.99999 10.5523 6.99999 10ZM9.99999 17V14H8.5376C8.05336 14 7.85189 13.3804 8.24351 13.0956L12.2059 10.2139C12.3812 10.0864 12.6188 10.0864 12.7941 10.2139L16.7565 13.0956C17.1481 13.3804 16.9467 14 16.4624 14H15V17C15 17.5523 14.5523 18 14 18H11C10.4477 18 9.99999 17.5523 9.99999 17Z"})}),"worldgen/template_pool":p("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.2361 5C10.7111 4.46924 11 3.76835 11 3C11 1.34315 9.65685 0 8 0C6.34315 0 5 1.34315 5 3C5 3.76835 5.28885 4.46924 5.76389 5H3C1.34315 5 0 6.34315 0 8V10.1707C0.312779 10.0602 0.649365 10 1 10C2.65685 10 4 11.3431 4 13C4 14.6569 2.65685 16 1 16C0.649365 16 0.312779 15.9398 0 15.8293V18C0 19.6569 1.34315 21 3 21H5.17071C5.06015 20.6872 5 20.3506 5 20C5 18.3431 6.34315 17 8 17C9.65685 17 11 18.3431 11 20C11 20.3506 10.9398 20.6872 10.8293 21H13C14.6569 21 16 19.6569 16 18V15.8293C16.3128 15.9398 16.6494 16 17 16C18.6569 16 20 14.6569 20 13C20 11.3431 18.6569 10 17 10C16.6494 10 16.3128 10.0602 16 10.1707V8C16 6.34315 14.6569 5 13 5H10.2361Z"})}),"worldgen/world_preset":p("svg",{width:"28",height:"23",viewBox:"0 0 28 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 2C15 0.89543 15.8954 0 17 0H19C20.1046 0 21 0.895431 21 2V4C21 5.10457 20.1046 6 19 6V9.88192C20.1705 9.67661 21.362 9.2558 22 8.93682C23 8.43682 26 8 28 8.43682V14C28 16.2091 26.2091 18 24 18H8C5.79086 18 4 16.2091 4 14V3C6 2.50001 8 2.5 9.5 4C9.94949 4.44949 10.399 5.08825 10.8939 5.79154L10.8939 5.79155C11.5 6.65291 12.1742 7.61106 13 8.43682C13.8636 9.30044 15.3471 9.81299 17 9.96519V6C15.8954 6 15 5.10457 15 4V2ZM22 20.2968H6C3.79086 20.2968 2 18.5059 2 16.2968V7C1.34604 7.01691 0.673018 7.12855 0 7.2968V18.2968C0 20.5059 1.79086 22.2968 4 22.2968H20C21.6222 22.2968 23.0189 21.3311 23.6465 19.9433C23.1444 20.1704 22.5869 20.2968 22 20.2968Z"})})},he={alert:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M8.22 1.754a.25.25 0 00-.44 0L1.698 13.132a.25.25 0 00.22.368h12.164a.25.25 0 00.22-.368L8.22 1.754zm-1.763-.707c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM9 11a1 1 0 11-2 0 1 1 0 012 0zm-.25-5.25a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0v-2.5z"})}),archive:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M1.75 2.5a.25.25 0 00-.25.25v1.5c0 .138.112.25.25.25h12.5a.25.25 0 00.25-.25v-1.5a.25.25 0 00-.25-.25H1.75zM0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v1.5A1.75 1.75 0 0114.25 6H1.75A1.75 1.75 0 010 4.25v-1.5zM1.75 7a.75.75 0 01.75.75v5.5c0 .138.112.25.25.25h10.5a.25.25 0 00.25-.25v-5.5a.75.75 0 111.5 0v5.5A1.75 1.75 0 0113.25 15H2.75A1.75 1.75 0 011 13.25v-5.5A.75.75 0 011.75 7zm4.5 1a.75.75 0 000 1.5h3.5a.75.75 0 100-1.5h-3.5z"})}),arrow_left:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M7.78 12.53a.75.75 0 01-1.06 0L2.47 8.28a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 1.06L4.81 7h7.44a.75.75 0 010 1.5H4.81l2.97 2.97a.75.75 0 010 1.06z"})}),arrow_right:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M8.22 2.97a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06l2.97-2.97H3.75a.75.75 0 010-1.5h7.44L8.22 4.03a.75.75 0 010-1.06z"})}),check:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})}),chevron_down:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M12.78 6.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L3.22 7.28a.75.75 0 011.06-1.06L8 9.94l3.72-3.72a.75.75 0 011.06 0z"})}),chevron_left:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M9.78 12.78a.75.75 0 01-1.06 0L4.47 8.53a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 1.06L6.06 8l3.72 3.72a.75.75 0 010 1.06z"})}),chevron_right:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"})}),chevron_up:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M3.22 9.78a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 0l4.25 4.25a.75.75 0 01-1.06 1.06L8 6.06 4.28 9.78a.75.75 0 01-1.06 0z"})}),clippy:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M5.75 1a.75.75 0 00-.75.75v3c0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75v-3a.75.75 0 00-.75-.75h-4.5zm.75 3V2.5h3V4h-3zm-2.874-.467a.75.75 0 00-.752-1.298A1.75 1.75 0 002 3.75v9.5c0 .966.784 1.75 1.75 1.75h8.5A1.75 1.75 0 0014 13.25v-9.5a1.75 1.75 0 00-.874-1.515.75.75 0 10-.752 1.298.25.25 0 01.126.217v9.5a.25.25 0 01-.25.25h-8.5a.25.25 0 01-.25-.25v-9.5a.25.25 0 01.126-.217z"})}),code:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M4.72 3.22a.75.75 0 011.06 1.06L2.06 8l3.72 3.72a.75.75 0 11-1.06 1.06L.47 8.53a.75.75 0 010-1.06l4.25-4.25zm6.56 0a.75.75 0 10-1.06 1.06L13.94 8l-3.72 3.72a.75.75 0 101.06 1.06l4.25-4.25a.75.75 0 000-1.06l-4.25-4.25z"})}),codescan_checkmark:F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[p("path",{d:"M10.28 6.28a.75.75 0 10-1.06-1.06L6.25 8.19l-.97-.97a.75.75 0 00-1.06 1.06l1.5 1.5a.75.75 0 001.06 0l3.5-3.5z"}),p("path",{"fill-rule":"evenodd",d:"M7.5 15a7.469 7.469 0 004.746-1.693l2.474 2.473a.75.75 0 101.06-1.06l-2.473-2.474A7.5 7.5 0 107.5 15zm0-13.5a6 6 0 104.094 10.386.75.75 0 01.293-.292A6 6 0 007.5 1.5z"})]}),dash:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M2 8a.75.75 0 01.75-.75h10.5a.75.75 0 010 1.5H2.75A.75.75 0 012 8z"})}),device_desktop:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M1.75 2.5h12.5a.25.25 0 01.25.25v7.5a.25.25 0 01-.25.25H1.75a.25.25 0 01-.25-.25v-7.5a.25.25 0 01.25-.25zM14.25 1H1.75A1.75 1.75 0 000 2.75v7.5C0 11.216.784 12 1.75 12h3.727c-.1 1.041-.52 1.872-1.292 2.757A.75.75 0 004.75 16h6.5a.75.75 0 00.565-1.243c-.772-.885-1.193-1.716-1.292-2.757h3.727A1.75 1.75 0 0016 10.25v-7.5A1.75 1.75 0 0014.25 1zM9.018 12H6.982a5.72 5.72 0 01-.765 2.5h3.566a5.72 5.72 0 01-.765-2.5z"})}),dot_fill:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8z"})}),download:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M7.47 10.78a.75.75 0 001.06 0l3.75-3.75a.75.75 0 00-1.06-1.06L8.75 8.44V1.75a.75.75 0 00-1.5 0v6.69L4.78 5.97a.75.75 0 00-1.06 1.06l3.75 3.75zM3.75 13a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5z"})}),duplicate:F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[p("path",{d:"M10.5 3a.75.75 0 01.75.75v1h1a.75.75 0 010 1.5h-1v1a.75.75 0 01-1.5 0v-1h-1a.75.75 0 010-1.5h1v-1A.75.75 0 0110.5 3z"}),p("path",{"fill-rule":"evenodd",d:"M6.75 0A1.75 1.75 0 005 1.75v7.5c0 .966.784 1.75 1.75 1.75h7.5A1.75 1.75 0 0016 9.25v-7.5A1.75 1.75 0 0014.25 0h-7.5zM6.5 1.75a.25.25 0 01.25-.25h7.5a.25.25 0 01.25.25v7.5a.25.25 0 01-.25.25h-7.5a.25.25 0 01-.25-.25v-7.5z"}),p("path",{d:"M1.75 5A1.75 1.75 0 000 6.75v7.5C0 15.216.784 16 1.75 16h7.5A1.75 1.75 0 0011 14.25v-1.5a.75.75 0 00-1.5 0v1.5a.25.25 0 01-.25.25h-7.5a.25.25 0 01-.25-.25v-7.5a.25.25 0 01.25-.25h1.5a.75.75 0 000-1.5h-1.5z"})]}),eye:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M1.679 7.932c.412-.621 1.242-1.75 2.366-2.717C5.175 4.242 6.527 3.5 8 3.5c1.473 0 2.824.742 3.955 1.715 1.124.967 1.954 2.096 2.366 2.717a.119.119 0 010 .136c-.412.621-1.242 1.75-2.366 2.717C10.825 11.758 9.473 12.5 8 12.5c-1.473 0-2.824-.742-3.955-1.715C2.92 9.818 2.09 8.69 1.679 8.068a.119.119 0 010-.136zM8 2c-1.981 0-3.67.992-4.933 2.078C1.797 5.169.88 6.423.43 7.1a1.619 1.619 0 000 1.798c.45.678 1.367 1.932 2.637 3.024C4.329 13.008 6.019 14 8 14c1.981 0 3.67-.992 4.933-2.078 1.27-1.091 2.187-2.345 2.637-3.023a1.619 1.619 0 000-1.798c-.45-.678-1.367-1.932-2.637-3.023C11.671 2.992 9.981 2 8 2zm0 8a2 2 0 100-4 2 2 0 000 4z"})}),eye_closed:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M.143 2.31a.75.75 0 011.047-.167l14.5 10.5a.75.75 0 11-.88 1.214l-2.248-1.628C11.346 13.19 9.792 14 8 14c-1.981 0-3.67-.992-4.933-2.078C1.797 10.832.88 9.577.43 8.9a1.618 1.618 0 010-1.797c.353-.533.995-1.42 1.868-2.305L.31 3.357A.75.75 0 01.143 2.31zm3.386 3.378a14.21 14.21 0 00-1.85 2.244.12.12 0 00-.022.068c0 .021.006.045.022.068.412.621 1.242 1.75 2.366 2.717C5.175 11.758 6.527 12.5 8 12.5c1.195 0 2.31-.488 3.29-1.191L9.063 9.695A2 2 0 016.058 7.52l-2.53-1.832zM8 3.5c-.516 0-1.017.09-1.499.251a.75.75 0 11-.473-1.423A6.23 6.23 0 018 2c1.981 0 3.67.992 4.933 2.078 1.27 1.091 2.187 2.345 2.637 3.023a1.619 1.619 0 010 1.798c-.11.166-.248.365-.41.587a.75.75 0 11-1.21-.887c.148-.201.272-.382.371-.53a.119.119 0 000-.137c-.412-.621-1.242-1.75-2.366-2.717C10.825 4.242 9.473 3.5 8 3.5z"})}),file:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M3.75 1.5a.25.25 0 00-.25.25v11.5c0 .138.112.25.25.25h8.5a.25.25 0 00.25-.25V6H9.75A1.75 1.75 0 018 4.25V1.5H3.75zm5.75.56v2.19c0 .138.112.25.25.25h2.19L9.5 2.06zM2 1.75C2 .784 2.784 0 3.75 0h5.086c.464 0 .909.184 1.237.513l3.414 3.414c.329.328.513.773.513 1.237v8.086A1.75 1.75 0 0112.25 15h-8.5A1.75 1.75 0 012 13.25V1.75z"})}),file_directory:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M1.75 1A1.75 1.75 0 000 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0016 13.25v-8.5A1.75 1.75 0 0014.25 3h-6.5a.25.25 0 01-.2-.1l-.9-1.2c-.33-.44-.85-.7-1.4-.7h-3.5z"})}),file_zip:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M3.5 1.75a.25.25 0 01.25-.25h3a.75.75 0 000 1.5h.5a.75.75 0 000-1.5h2.086a.25.25 0 01.177.073l2.914 2.914a.25.25 0 01.073.177v8.586a.25.25 0 01-.25.25h-.5a.75.75 0 000 1.5h.5A1.75 1.75 0 0014 13.25V4.664c0-.464-.184-.909-.513-1.237L10.573.513A1.75 1.75 0 009.336 0H3.75A1.75 1.75 0 002 1.75v11.5c0 .649.353 1.214.874 1.515a.75.75 0 10.752-1.298.25.25 0 01-.126-.217V1.75zM8.75 3a.75.75 0 000 1.5h.5a.75.75 0 000-1.5h-.5zM6 5.25a.75.75 0 01.75-.75h.5a.75.75 0 010 1.5h-.5A.75.75 0 016 5.25zm2 1.5A.75.75 0 018.75 6h.5a.75.75 0 010 1.5h-.5A.75.75 0 018 6.75zm-1.25.75a.75.75 0 000 1.5h.5a.75.75 0 000-1.5h-.5zM8 9.75A.75.75 0 018.75 9h.5a.75.75 0 010 1.5h-.5A.75.75 0 018 9.75zm-.75.75a1.75 1.75 0 00-1.75 1.75v3c0 .414.336.75.75.75h2.5a.75.75 0 00.75-.75v-3a1.75 1.75 0 00-1.75-1.75h-.5zM7 12.25a.25.25 0 01.25-.25h.5a.25.25 0 01.25.25v2.25H7v-2.25z"})}),gear:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M7.429 1.525a6.593 6.593 0 011.142 0c.036.003.108.036.137.146l.289 1.105c.147.56.55.967.997 1.189.174.086.341.183.501.29.417.278.97.423 1.53.27l1.102-.303c.11-.03.175.016.195.046.219.31.41.641.573.989.014.031.022.11-.059.19l-.815.806c-.411.406-.562.957-.53 1.456a4.588 4.588 0 010 .582c-.032.499.119 1.05.53 1.456l.815.806c.08.08.073.159.059.19a6.494 6.494 0 01-.573.99c-.02.029-.086.074-.195.045l-1.103-.303c-.559-.153-1.112-.008-1.529.27-.16.107-.327.204-.5.29-.449.222-.851.628-.998 1.189l-.289 1.105c-.029.11-.101.143-.137.146a6.613 6.613 0 01-1.142 0c-.036-.003-.108-.037-.137-.146l-.289-1.105c-.147-.56-.55-.967-.997-1.189a4.502 4.502 0 01-.501-.29c-.417-.278-.97-.423-1.53-.27l-1.102.303c-.11.03-.175-.016-.195-.046a6.492 6.492 0 01-.573-.989c-.014-.031-.022-.11.059-.19l.815-.806c.411-.406.562-.957.53-1.456a4.587 4.587 0 010-.582c.032-.499-.119-1.05-.53-1.456l-.815-.806c-.08-.08-.073-.159-.059-.19a6.44 6.44 0 01.573-.99c.02-.029.086-.075.195-.045l1.103.303c.559.153 1.112.008 1.529-.27.16-.107.327-.204.5-.29.449-.222.851-.628.998-1.189l.289-1.105c.029-.11.101-.143.137-.146zM8 0c-.236 0-.47.01-.701.03-.743.065-1.29.615-1.458 1.261l-.29 1.106c-.017.066-.078.158-.211.224a5.994 5.994 0 00-.668.386c-.123.082-.233.09-.3.071L3.27 2.776c-.644-.177-1.392.02-1.82.63a7.977 7.977 0 00-.704 1.217c-.315.675-.111 1.422.363 1.891l.815.806c.05.048.098.147.088.294a6.084 6.084 0 000 .772c.01.147-.038.246-.088.294l-.815.806c-.474.469-.678 1.216-.363 1.891.2.428.436.835.704 1.218.428.609 1.176.806 1.82.63l1.103-.303c.066-.019.176-.011.299.071.213.143.436.272.668.386.133.066.194.158.212.224l.289 1.106c.169.646.715 1.196 1.458 1.26a8.094 8.094 0 001.402 0c.743-.064 1.29-.614 1.458-1.26l.29-1.106c.017-.066.078-.158.211-.224a5.98 5.98 0 00.668-.386c.123-.082.233-.09.3-.071l1.102.302c.644.177 1.392-.02 1.82-.63.268-.382.505-.789.704-1.217.315-.675.111-1.422-.364-1.891l-.814-.806c-.05-.048-.098-.147-.088-.294a6.1 6.1 0 000-.772c-.01-.147.039-.246.088-.294l.814-.806c.475-.469.679-1.216.364-1.891a7.992 7.992 0 00-.704-1.218c-.428-.609-1.176-.806-1.82-.63l-1.103.303c-.066.019-.176.011-.299-.071a5.991 5.991 0 00-.668-.386c-.133-.066-.194-.158-.212-.224L10.16 1.29C9.99.645 9.444.095 8.701.031A8.094 8.094 0 008 0zm1.5 8a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM11 8a3 3 0 11-6 0 3 3 0 016 0z"})}),git_commit:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M10.5 7.75a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm1.43.75a4.002 4.002 0 01-7.86 0H.75a.75.75 0 110-1.5h3.32a4.001 4.001 0 017.86 0h3.32a.75.75 0 110 1.5h-3.32z"})}),globe:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M1.543 7.25h2.733c.144-2.074.866-3.756 1.58-4.948.12-.197.237-.381.353-.552a6.506 6.506 0 00-4.666 5.5zm2.733 1.5H1.543a6.506 6.506 0 004.666 5.5 11.13 11.13 0 01-.352-.552c-.715-1.192-1.437-2.874-1.581-4.948zm1.504 0h4.44a9.637 9.637 0 01-1.363 4.177c-.306.51-.612.919-.857 1.215a9.978 9.978 0 01-.857-1.215A9.637 9.637 0 015.78 8.75zm4.44-1.5H5.78a9.637 9.637 0 011.363-4.177c.306-.51.612-.919.857-1.215.245.296.55.705.857 1.215A9.638 9.638 0 0110.22 7.25zm1.504 1.5c-.144 2.074-.866 3.756-1.58 4.948-.12.197-.237.381-.353.552a6.506 6.506 0 004.666-5.5h-2.733zm2.733-1.5h-2.733c-.144-2.074-.866-3.756-1.58-4.948a11.738 11.738 0 00-.353-.552 6.506 6.506 0 014.666 5.5zM8 0a8 8 0 100 16A8 8 0 008 0z"})}),heart:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.565 20.565 0 008 13.393a20.561 20.561 0 003.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.75.75 0 01-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5zM8 14.25l-.345.666-.002-.001-.006-.003-.018-.01a7.643 7.643 0 01-.31-.17 22.075 22.075 0 01-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.08 22.08 0 01-3.744 2.584l-.018.01-.006.003h-.002L8 14.25zm0 0l.345.666a.752.752 0 01-.69 0L8 14.25z"})}),history:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M1.643 3.143L.427 1.927A.25.25 0 000 2.104V5.75c0 .138.112.25.25.25h3.646a.25.25 0 00.177-.427L2.715 4.215a6.5 6.5 0 11-1.18 4.458.75.75 0 10-1.493.154 8.001 8.001 0 101.6-5.684zM7.75 4a.75.75 0 01.75.75v2.992l2.028.812a.75.75 0 01-.557 1.392l-2.5-1A.75.75 0 017 8.25v-3.5A.75.75 0 017.75 4z"})}),info:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm6.5-.25A.75.75 0 017.25 7h1a.75.75 0 01.75.75v2.75h.25a.75.75 0 010 1.5h-2a.75.75 0 010-1.5h.25v-2h-.25a.75.75 0 01-.75-.75zM8 6a1 1 0 100-2 1 1 0 000 2z"})}),issue_opened:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm9 3a1 1 0 11-2 0 1 1 0 012 0zm-.25-6.25a.75.75 0 00-1.5 0v3.5a.75.75 0 001.5 0v-3.5z"})}),kebab_horizontal:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{d:"M8 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM1.5 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3zm13 0a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"})}),link:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"})}),link_external:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M10.604 1h4.146a.25.25 0 01.25.25v4.146a.25.25 0 01-.427.177L13.03 4.03 9.28 7.78a.75.75 0 01-1.06-1.06l3.75-3.75-1.543-1.543A.25.25 0 0110.604 1zM3.75 2A1.75 1.75 0 002 3.75v8.5c0 .966.784 1.75 1.75 1.75h8.5A1.75 1.75 0 0014 12.25v-3.5a.75.75 0 00-1.5 0v3.5a.25.25 0 01-.25.25h-8.5a.25.25 0 01-.25-.25v-8.5a.25.25 0 01.25-.25h3.5a.75.75 0 000-1.5h-3.5z"})}),mark_github:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})}),moon:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M9.598 1.591a.75.75 0 01.785-.175 7 7 0 11-8.967 8.967.75.75 0 01.961-.96 5.5 5.5 0 007.046-7.046.75.75 0 01.175-.786zm1.616 1.945a7 7 0 01-7.678 7.678 5.5 5.5 0 107.678-7.678z"})}),package:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M8.878.392a1.75 1.75 0 00-1.756 0l-5.25 3.045A1.75 1.75 0 001 4.951v6.098c0 .624.332 1.2.872 1.514l5.25 3.045a1.75 1.75 0 001.756 0l5.25-3.045c.54-.313.872-.89.872-1.514V4.951c0-.624-.332-1.2-.872-1.514L8.878.392zM7.875 1.69a.25.25 0 01.25 0l4.63 2.685L8 7.133 3.245 4.375l4.63-2.685zM2.5 5.677v5.372c0 .09.047.171.125.216l4.625 2.683V8.432L2.5 5.677zm6.25 8.271l4.625-2.683a.25.25 0 00.125-.216V5.677L8.75 8.432v5.516z"})}),pencil:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"})}),play:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zM6.379 5.227A.25.25 0 006 5.442v5.117a.25.25 0 00.379.214l4.264-2.559a.25.25 0 000-.428L6.379 5.227z"})}),plus:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M8 2a.75.75 0 01.75.75v4.5h4.5a.75.75 0 010 1.5h-4.5v4.5a.75.75 0 01-1.5 0v-4.5h-4.5a.75.75 0 010-1.5h4.5v-4.5A.75.75 0 018 2z"})}),plus_circle:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.75 4.75a.75.75 0 00-1.5 0v2.5h-2.5a.75.75 0 000 1.5h2.5v2.5a.75.75 0 001.5 0v-2.5h2.5a.75.75 0 000-1.5h-2.5v-2.5z"})}),repo:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M2 2.5A2.5 2.5 0 014.5 0h8.75a.75.75 0 01.75.75v12.5a.75.75 0 01-.75.75h-2.5a.75.75 0 110-1.5h1.75v-2h-8a1 1 0 00-.714 1.7.75.75 0 01-1.072 1.05A2.495 2.495 0 012 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 011-1h8zM5 12.25v3.25a.25.25 0 00.4.2l1.45-1.087a.25.25 0 01.3 0L8.6 15.7a.25.25 0 00.4-.2v-3.25a.25.25 0 00-.25-.25h-3.5a.25.25 0 00-.25.25z"})}),rocket:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M14.064 0a8.75 8.75 0 00-6.187 2.563l-.459.458c-.314.314-.616.641-.904.979H3.31a1.75 1.75 0 00-1.49.833L.11 7.607a.75.75 0 00.418 1.11l3.102.954c.037.051.079.1.124.145l2.429 2.428c.046.046.094.088.145.125l.954 3.102a.75.75 0 001.11.418l2.774-1.707a1.75 1.75 0 00.833-1.49V9.485c.338-.288.665-.59.979-.904l.458-.459A8.75 8.75 0 0016 1.936V1.75A1.75 1.75 0 0014.25 0h-.186zM10.5 10.625c-.088.06-.177.118-.266.175l-2.35 1.521.548 1.783 1.949-1.2a.25.25 0 00.119-.213v-2.066zM3.678 8.116L5.2 5.766c.058-.09.117-.178.176-.266H3.309a.25.25 0 00-.213.119l-1.2 1.95 1.782.547zm5.26-4.493A7.25 7.25 0 0114.063 1.5h.186a.25.25 0 01.25.25v.186a7.25 7.25 0 01-2.123 5.127l-.459.458a15.21 15.21 0 01-2.499 2.02l-2.317 1.5-2.143-2.143 1.5-2.317a15.25 15.25 0 012.02-2.5l.458-.458h.002zM12 5a1 1 0 11-2 0 1 1 0 012 0zm-8.44 9.56a1.5 1.5 0 10-2.12-2.12c-.734.73-1.047 2.332-1.15 3.003a.23.23 0 00.265.265c.671-.103 2.273-.416 3.005-1.148z"})}),rows:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M16 2.75A1.75 1.75 0 0014.25 1H1.75A1.75 1.75 0 000 2.75v2.5A1.75 1.75 0 001.75 7h12.5A1.75 1.75 0 0016 5.25v-2.5zm-1.75-.25a.25.25 0 01.25.25v2.5a.25.25 0 01-.25.25H1.75a.25.25 0 01-.25-.25v-2.5a.25.25 0 01.25-.25h12.5zM16 10.75A1.75 1.75 0 0014.25 9H1.75A1.75 1.75 0 000 10.75v2.5A1.75 1.75 0 001.75 15h12.5A1.75 1.75 0 0016 13.25v-2.5zm-1.75-.25a.25.25 0 01.25.25v2.5a.25.25 0 01-.25.25H1.75a.25.25 0 01-.25-.25v-2.5a.25.25 0 01.25-.25h12.5z"})}),search:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M11.5 7a4.499 4.499 0 11-8.998 0A4.499 4.499 0 0111.5 7zm-.82 4.74a6 6 0 111.06-1.06l3.04 3.04a.75.75 0 11-1.06 1.06l-3.04-3.04z"})}),sort_asc:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M0 4.25a.75.75 0 01.75-.75h2.5a.75.75 0 010 1.5H.75A.75.75 0 010 4.25zm0 4a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5H.75A.75.75 0 010 8.25zm0 4a.75.75 0 01.75-.75h7.5a.75.75 0 010 1.5H.75a.75.75 0 01-.75-.75zm12.927-9.677a.25.25 0 00-.354 0l-3 3A.25.25 0 009.75 6H12v6.75a.75.75 0 001.5 0V6h2.25a.25.25 0 00.177-.427l-3-3z"})}),sort_desc:F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[p("path",{"fill-rule":"evenodd",d:"M0 4.25a.75.75 0 01.75-.75h7.5a.75.75 0 010 1.5H.75A.75.75 0 010 4.25zm0 4a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5H.75A.75.75 0 010 8.25zm0 4a.75.75 0 01.75-.75h2.5a.75.75 0 010 1.5H.75a.75.75 0 01-.75-.75z"}),p("path",{d:"M13.5 10h2.25a.25.25 0 01.177.427l-3 3a.25.25 0 01-.354 0l-3-3A.25.25 0 019.75 10H12V3.75a.75.75 0 011.5 0V10z"})]}),square:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M4 5.75C4 4.784 4.784 4 5.75 4h4.5c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0110.25 12h-4.5A1.75 1.75 0 014 10.25v-4.5zm1.75-.25a.25.25 0 00-.25.25v4.5c0 .138.112.25.25.25h4.5a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-4.5z"})}),square_fill:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M5.75 4A1.75 1.75 0 004 5.75v4.5c0 .966.784 1.75 1.75 1.75h4.5A1.75 1.75 0 0012 10.25v-4.5A1.75 1.75 0 0010.25 4h-4.5z"})}),stack:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M7.122.392a1.75 1.75 0 011.756 0l5.003 2.902c.83.481.83 1.68 0 2.162L8.878 8.358a1.75 1.75 0 01-1.756 0L2.119 5.456a1.25 1.25 0 010-2.162L7.122.392zM8.125 1.69a.25.25 0 00-.25 0l-4.63 2.685 4.63 2.685a.25.25 0 00.25 0l4.63-2.685-4.63-2.685zM1.601 7.789a.75.75 0 011.025-.273l5.249 3.044a.25.25 0 00.25 0l5.249-3.044a.75.75 0 01.752 1.298l-5.248 3.044a1.75 1.75 0 01-1.756 0L1.874 8.814A.75.75 0 011.6 7.789zm0 3.5a.75.75 0 011.025-.273l5.249 3.044a.25.25 0 00.25 0l5.249-3.044a.75.75 0 01.752 1.298l-5.248 3.044a1.75 1.75 0 01-1.756 0l-5.248-3.044a.75.75 0 01-.273-1.025z"})}),sun:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M8 10.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zM8 12a4 4 0 100-8 4 4 0 000 8zM8 0a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0V.75A.75.75 0 018 0zm0 13a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 018 13zM2.343 2.343a.75.75 0 011.061 0l1.06 1.061a.75.75 0 01-1.06 1.06l-1.06-1.06a.75.75 0 010-1.06zm9.193 9.193a.75.75 0 011.06 0l1.061 1.06a.75.75 0 01-1.06 1.061l-1.061-1.06a.75.75 0 010-1.061zM16 8a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 0116 8zM3 8a.75.75 0 01-.75.75H.75a.75.75 0 010-1.5h1.5A.75.75 0 013 8zm10.657-5.657a.75.75 0 010 1.061l-1.061 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zm-9.193 9.193a.75.75 0 010 1.06l-1.06 1.061a.75.75 0 11-1.061-1.06l1.06-1.061a.75.75 0 011.061 0z"})}),sync:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M8 2.5a5.487 5.487 0 00-4.131 1.869l1.204 1.204A.25.25 0 014.896 6H1.25A.25.25 0 011 5.75V2.104a.25.25 0 01.427-.177l1.38 1.38A7.001 7.001 0 0114.95 7.16a.75.75 0 11-1.49.178A5.501 5.501 0 008 2.5zM1.705 8.005a.75.75 0 01.834.656 5.501 5.501 0 009.592 2.97l-1.204-1.204a.25.25 0 01.177-.427h3.646a.25.25 0 01.25.25v3.646a.25.25 0 01-.427.177l-1.38-1.38A7.001 7.001 0 011.05 8.84a.75.75 0 01.656-.834z"})}),tag:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M2.5 7.775V2.75a.25.25 0 01.25-.25h5.025a.25.25 0 01.177.073l6.25 6.25a.25.25 0 010 .354l-5.025 5.025a.25.25 0 01-.354 0l-6.25-6.25a.25.25 0 01-.073-.177zm-1.5 0V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 010 2.474l-5.026 5.026a1.75 1.75 0 01-2.474 0l-6.25-6.25A1.75 1.75 0 011 7.775zM6 5a1 1 0 100 2 1 1 0 000-2z"})}),terminal:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0114.25 15H1.75A1.75 1.75 0 010 13.25V2.75zm1.75-.25a.25.25 0 00-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 00.25-.25V2.75a.25.25 0 00-.25-.25H1.75zM7.25 8a.75.75 0 01-.22.53l-2.25 2.25a.75.75 0 11-1.06-1.06L5.44 8 3.72 6.28a.75.75 0 111.06-1.06l2.25 2.25c.141.14.22.331.22.53zm1.5 1.5a.75.75 0 000 1.5h3a.75.75 0 000-1.5h-3z"})}),three_bars:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M1 2.75A.75.75 0 011.75 2h12.5a.75.75 0 110 1.5H1.75A.75.75 0 011 2.75zm0 5A.75.75 0 011.75 7h12.5a.75.75 0 110 1.5H1.75A.75.75 0 011 7.75zM1.75 12a.75.75 0 100 1.5h12.5a.75.75 0 100-1.5H1.75z"})}),trashcan:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M6.5 1.75a.25.25 0 01.25-.25h2.5a.25.25 0 01.25.25V3h-3V1.75zm4.5 0V3h2.25a.75.75 0 010 1.5H2.75a.75.75 0 010-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75zM4.496 6.675a.75.75 0 10-1.492.15l.66 6.6A1.75 1.75 0 005.405 15h5.19c.9 0 1.652-.681 1.741-1.576l.66-6.6a.75.75 0 00-1.492-.149l-.66 6.6a.25.25 0 01-.249.225h-5.19a.25.25 0 01-.249-.225l-.66-6.6z"})}),unfold:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{d:"M8.177.677l2.896 2.896a.25.25 0 01-.177.427H8.75v1.25a.75.75 0 01-1.5 0V4H5.104a.25.25 0 01-.177-.427L7.823.677a.25.25 0 01.354 0zM7.25 10.75a.75.75 0 011.5 0V12h2.146a.25.25 0 01.177.427l-2.896 2.896a.25.25 0 01-.354 0l-2.896-2.896A.25.25 0 015.104 12H7.25v-1.25zm-5-2a.75.75 0 000-1.5h-.5a.75.75 0 000 1.5h.5zM6 8a.75.75 0 01-.75.75h-.5a.75.75 0 010-1.5h.5A.75.75 0 016 8zm2.25.75a.75.75 0 000-1.5h-.5a.75.75 0 000 1.5h.5zM12 8a.75.75 0 01-.75.75h-.5a.75.75 0 010-1.5h.5A.75.75 0 0112 8zm2.25.75a.75.75 0 000-1.5h-.5a.75.75 0 000 1.5h.5z"})}),upload:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M8.53 1.22a.75.75 0 00-1.06 0L3.72 4.97a.75.75 0 001.06 1.06l2.47-2.47v6.69a.75.75 0 001.5 0V3.56l2.47 2.47a.75.75 0 101.06-1.06L8.53 1.22zM3.75 13a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5z"})}),x:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})}),x_circle:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:p("path",{"fill-rule":"evenodd",d:"M3.404 12.596a6.5 6.5 0 119.192-9.192 6.5 6.5 0 01-9.192 9.192zM2.344 2.343a8 8 0 1011.313 11.314A8 8 0 002.343 2.343zM6.03 4.97a.75.75 0 00-1.06 1.06L6.94 8 4.97 9.97a.75.75 0 101.06 1.06L8 9.06l1.97 1.97a.75.75 0 101.06-1.06L9.06 8l1.97-1.97a.75.75 0 10-1.06-1.06L8 6.94 6.03 4.97z"})})};function K9({howler:e,sounds:t,sound:n,delay:r,pitch:i,volume:s,onEdit:o,onDelete:a,delayedPlay:l}){const{locale:u}=Ce(),{version:c}=yr(),[d,f]=X(!0),[h,w]=X(!1),[_,m]=X(!1),g=Le([]),v=`playsound minecraft:${n} master @s ~ ~ ~ ${s} ${i}`;me(()=>{var S,T,L;const I=t[n];m(((T=(S=I==null?void 0:I.sounds)==null?void 0:S.length)!=null?T:0)===0),g.current.forEach(D=>D.stop()),g.current=((L=I==null?void 0:I.sounds)!=null?L:[]).map(D=>{const G=typeof D=="string"?D:D.name,z=pw(c,G),O=e({src:[z],format:["ogg"],volume:s,rate:i});O.on("end",()=>{w(!1)});const $=()=>{d&&g.current.every(U=>U.state()==="loaded")&&f(!1)};return O.state()==="loaded"?setTimeout(()=>$()):O.on("load",()=>{$()}),O}),f(!0)},[n,t]),me(()=>{g.current.forEach(I=>I.rate(i))},[i]),me(()=>{g.current.forEach(I=>I.volume(s))},[s]);const b=()=>{if(d||_)return;x();const I=Math.floor(Math.random()*g.current.length);g.current[I].play(),w(!0)},x=()=>{g.current.forEach(I=>I.stop())};me(()=>{l&&setTimeout(()=>b(),r*50)},[l]),me(()=>()=>x(),[]);const[y,k]=X(!1),C=Le(void 0),E=()=>{navigator.clipboard.writeText(v),k(!0),C.current!==void 0&&clearTimeout(C.current),C.current=setTimeout(()=>{k(!1)},2e3)};return F("div",{class:`sound-config${d?" loading":h?" playing":""}${_?" invalid":""}`,children:[p(oe,{class:"play",icon:_?"alert":d?"sync":"play",label:u("sounds.play"),onClick:b,tooltip:u(_?"sounds.unknown_sound":d?"sounds.loading_sound":"sounds.play_sound"),tooltipLoc:"se"}),p(mn,{class:"btn btn-input sound",list:"sound-list",spellcheck:!1,value:n,onChange:I=>o({sound:I})}),F("label",{class:"delay-label",children:[u("sounds.delay"),": "]}),p(Zw,{class:"btn btn-input delay",min:0,value:r,onChange:I=>o({delay:I})}),F("label",{class:"pitch-label",children:[u("sounds.pitch"),": "]}),p(fu,{class:"pitch tooltipped tip-s",min:.5,max:2,step:.01,"aria-label":i.toFixed(2),style:`--x: ${(i-.5)*(100/1.5)}%`,value:i,onChange:I=>o({pitch:I})}),F("label",{class:"volume-label",children:[u("sounds.volume"),": "]}),p(fu,{class:"volume tooltipped tip-s",min:0,max:1,step:.01,"aria-label":s.toFixed(2),style:`--x: ${s*100}%`,value:s,onChange:I=>o({volume:I})}),p(oe,{class:`copy${y?" active":""}`,icon:y?"check":"terminal",label:u("copy"),tooltip:u(y?"copied":"sounds.copy_command"),onClick:E}),p(oe,{class:"remove",icon:"trashcan",tooltip:u("sounds.remove_sound"),onClick:()=>{a(),x()}})]})}function Yn({title:e,desc:t,link:n,icon:r,titleIcon:i}){return r||t?F("a",{class:"tool-card",href:n,children:[r&&Bi[r],F("div",{children:[p(Md,{title:e,titleIcon:i}),p("p",{children:t})]})]}):p("a",{class:"tool-card",href:n,children:p(Md,{title:e,titleIcon:i})})}function Md({title:e,titleIcon:t}){return F("h3",{children:[e,t&&(t in he?he[t]:Bi[t])]})}function vr({title:e,titleIcon:t,link:n,children:r}){return F("div",{class:"tool-group",children:[n===void 0?p("div",{class:"tool-card",children:p("h3",{children:e})}):p(Yn,{title:e,titleIcon:t,link:n}),r&&p("div",{class:"tool-body",children:r})]})}function Zi({label:e,active:t,onClick:n}){const r=e==="breaking"?5:Jh(e)%360;return F("div",{class:`badge${t?" active":""}${n?" clickable":""}`,style:`--tint: ${r}`,onClick:n,children:[e==="breaking"&&he.alert,e]})}function R2(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Gi=R2();function J9(e){Gi=e}const Q9=/[&<>"']/,ex=/[&<>"']/g,tx=/[<>"']|&(?!#?\w+;)/,nx=/[<>"']|&(?!#?\w+;)/g,rx={"&":"&","<":"<",">":">",'"':""","'":"'"},Td=e=>rx[e];function gt(e,t){if(t){if(Q9.test(e))return e.replace(ex,Td)}else if(tx.test(e))return e.replace(nx,Td);return e}const ix=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function N2(e){return e.replace(ix,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const sx=/(^|[^\[])\^/g;function Ye(e,t){e=e.source||e,t=t||"";const n={replace:(r,i)=>(i=i.source||i,i=i.replace(sx,"$1"),e=e.replace(r,i),n),getRegex:()=>new RegExp(e,t)};return n}const ox=/[^\w:]/g,ax=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ld(e,t,n){if(e){let r;try{r=decodeURIComponent(N2(n)).replace(ox,"").toLowerCase()}catch{return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}t&&!ax.test(n)&&(n=dx(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const Oo={},lx=/^[^:]+:\/*[^/]*$/,cx=/^([^:]+:)[\s\S]*$/,ux=/^([^:]+:\/*[^/]*)[\s\S]*$/;function dx(e,t){Oo[" "+e]||(lx.test(e)?Oo[" "+e]=e+"/":Oo[" "+e]=Qo(e,"/",!0)),e=Oo[" "+e];const n=e.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:e.replace(cx,"$1")+t:t.charAt(0)==="/"?n?t:e.replace(ux,"$1")+t:e+t}const Sa={exec:function(){}};function _n(e){let t=1,n,r;for(;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}function Od(e,t){const n=e.replace(/\|/g,(s,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r[r.length-1].trim()||r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function Qo(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s===t&&!n)i++;else if(s!==t&&n)i++;else break}return e.substr(0,r-i)}function fx(e,t){if(e.indexOf(t[1])===-1)return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1}function D2(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Rd(e,t){if(t<1)return"";let n="";for(;t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function Nd(e,t,n,r){const i=t.href,s=t.title?gt(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:i,title:s,text:o,tokens:r.inlineTokens(o,[])};return r.state.inLink=!1,a}else return{type:"image",raw:n,href:i,title:s,text:gt(o)}}function hx(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
|
|
`).map(i=>{const s=i.match(/^\s+/);if(s===null)return i;const[o]=s;return o.length>=r.length?i.slice(r.length):i}).join(`
|
|
`)}class w0{constructor(t){this.options=t||Gi}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Qo(r,`
|
|
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=hx(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim():n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const s=Qo(r,"#");(this.options.pedantic||!s||/ $/.test(s))&&(r=s.trim())}const i={type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:[]};return this.lexer.inline(i.text,i.tokens),i}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const r=n[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:n[0],tokens:this.lexer.blockTokens(r,[]),text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r,i,s,o,a,l,u,c,d,f,h,w,_=n[1].trim();const m=_.length>1,g={type:"list",raw:"",ordered:m,start:m?+_.slice(0,-1):"",loose:!1,items:[]};_=m?`\\d{1,9}\\${_.slice(-1)}`:`\\${_}`,this.options.pedantic&&(_=m?_:"[*+-]");const v=new RegExp(`^( {0,3}${_})((?: [^\\n]*)?(?:\\n|$))`);for(;t&&(w=!1,!(!(n=v.exec(t))||this.rules.block.hr.test(t)));){if(r=n[0],t=t.substring(r.length),c=n[2].split(`
|
|
`,1)[0],d=t.split(`
|
|
`,1)[0],this.options.pedantic?(o=2,h=c.trimLeft()):(o=n[2].search(/[^ ]/),o=o>4?1:o,h=c.slice(o),o+=n[1].length),l=!1,!c&&/^ *$/.test(d)&&(r+=d+`
|
|
`,t=t.substring(d.length+1),w=!0),!w){const x=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;t&&(f=t.split(`
|
|
`,1)[0],c=f,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!x.test(c));){if(c.search(/[^ ]/)>=o||!c.trim())h+=`
|
|
`+c.slice(o);else if(!l)h+=`
|
|
`+c;else break;!l&&!c.trim()&&(l=!0),r+=f+`
|
|
`,t=t.substring(f.length+1)}}g.loose||(u?g.loose=!0:/\n *\n *$/.test(r)&&(u=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(h),i&&(s=i[0]!=="[ ] ",h=h.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:r,task:!!i,checked:s,loose:!1,text:h}),g.raw+=r}g.items[g.items.length-1].raw=r.trimRight(),g.items[g.items.length-1].text=h.trimRight(),g.raw=g.raw.trimRight();const b=g.items.length;for(a=0;a<b;a++){this.lexer.state.top=!1,g.items[a].tokens=this.lexer.blockTokens(g.items[a].text,[]);const x=g.items[a].tokens.filter(k=>k.type==="space"),y=x.every(k=>{const C=k.raw.split("");let E=0;for(const I of C)if(I===`
|
|
`&&(E+=1),E>1)return!0;return!1});!g.loose&&x.length&&y&&(g.loose=!0,g.items[a].loose=!0)}return g}}html(t){const n=this.rules.block.html.exec(t);if(n){const r={type:"html",raw:n[0],pre:!this.options.sanitizer&&(n[1]==="pre"||n[1]==="script"||n[1]==="style"),text:n[0]};return this.options.sanitize&&(r.type="paragraph",r.text=this.options.sanitizer?this.options.sanitizer(n[0]):gt(n[0]),r.tokens=[],this.lexer.inline(r.text,r.tokens)),r}}def(t){const n=this.rules.block.def.exec(t);if(n){n[3]&&(n[3]=n[3].substring(1,n[3].length-1));const r=n[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:r,raw:n[0],href:n[2],title:n[3]}}}table(t){const n=this.rules.block.table.exec(t);if(n){const r={type:"table",header:Od(n[1]).map(i=>({text:i})),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:n[3]?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
`):[]};if(r.header.length===r.align.length){r.raw=n[0];let i=r.align.length,s,o,a,l;for(s=0;s<i;s++)/^ *-+: *$/.test(r.align[s])?r.align[s]="right":/^ *:-+: *$/.test(r.align[s])?r.align[s]="center":/^ *:-+ *$/.test(r.align[s])?r.align[s]="left":r.align[s]=null;for(i=r.rows.length,s=0;s<i;s++)r.rows[s]=Od(r.rows[s],r.header.length).map(u=>({text:u}));for(i=r.header.length,o=0;o<i;o++)r.header[o].tokens=[],this.lexer.inlineTokens(r.header[o].text,r.header[o].tokens);for(i=r.rows.length,o=0;o<i;o++)for(l=r.rows[o],a=0;a<l.length;a++)l[a].tokens=[],this.lexer.inlineTokens(l[a].text,l[a].tokens);return r}}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n){const r={type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r={type:"paragraph",raw:n[0],text:n[1].charAt(n[1].length-1)===`
|
|
`?n[1].slice(0,-1):n[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}text(t){const n=this.rules.block.text.exec(t);if(n){const r={type:"text",raw:n[0],text:n[0],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:gt(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):gt(n[0]):n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const o=Qo(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=fx(n[2],"()");if(o>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let i=n[2],s="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],s=o[3])}else s=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(r)?i=i.slice(1):i=i.slice(1,-1)),Nd(n,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let i=(r[2]||r[1]).replace(/\s+/g," ");if(i=n[i.toLowerCase()],!i||!i.href){const s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return Nd(r,i,r[0],this.lexer)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrong.lDelim.exec(t);if(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))return;const s=i[1]||i[2]||"";if(!s||s&&(r===""||this.rules.inline.punctuation.exec(r))){const o=i[0].length-1;let a,l,u=o,c=0;const d=i[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+o);(i=d.exec(n))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(l=a.length,i[3]||i[4]){u+=l;continue}else if((i[5]||i[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(u-=l,u>0)continue;if(l=Math.min(l,l+u+c),Math.min(o,l)%2){const h=t.slice(1,o+i.index+l);return{type:"em",raw:t.slice(0,o+i.index+l+1),text:h,tokens:this.lexer.inlineTokens(h,[])}}const f=t.slice(2,o+i.index+l-1);return{type:"strong",raw:t.slice(0,o+i.index+l+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const i=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return i&&s&&(r=r.substring(1,r.length-1)),r=gt(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2],[])}}autolink(t,n){const r=this.rules.inline.autolink.exec(t);if(r){let i,s;return r[2]==="@"?(i=gt(this.options.mangle?n(r[1]):r[1]),s="mailto:"+i):(i=gt(r[1]),s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t,n){let r;if(r=this.rules.inline.url.exec(t)){let i,s;if(r[2]==="@")i=gt(this.options.mangle?n(r[0]):r[0]),s="mailto:"+i;else{let o;do o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(o!==r[0]);i=gt(r[0]),r[1]==="www."?s="http://"+i:s=i}return{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t,n){const r=this.rules.inline.text.exec(t);if(r){let i;return this.lexer.state.inRawBlock?i=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):gt(r[0]):r[0]:i=gt(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}}}}const ce={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Sa,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};ce._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;ce._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;ce.def=Ye(ce.def).replace("label",ce._label).replace("title",ce._title).getRegex();ce.bullet=/(?:[*+-]|\d{1,9}[.)])/;ce.listItemStart=Ye(/^( *)(bull) */).replace("bull",ce.bullet).getRegex();ce.list=Ye(ce.list).replace(/bull/g,ce.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ce.def.source+")").getRegex();ce._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";ce._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;ce.html=Ye(ce.html,"i").replace("comment",ce._comment).replace("tag",ce._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();ce.paragraph=Ye(ce._paragraph).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ce._tag).getRegex();ce.blockquote=Ye(ce.blockquote).replace("paragraph",ce.paragraph).getRegex();ce.normal=_n({},ce);ce.gfm=_n({},ce.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});ce.gfm.table=Ye(ce.gfm.table).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ce._tag).getRegex();ce.gfm.paragraph=Ye(ce._paragraph).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ce.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ce._tag).getRegex();ce.pedantic=_n({},ce.normal,{html:Ye(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ce._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Sa,paragraph:Ye(ce.normal._paragraph).replace("hr",ce.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",ce.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const re={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Sa,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Sa,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};re._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";re.punctuation=Ye(re.punctuation).replace(/punctuation/g,re._punctuation).getRegex();re.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;re.escapedEmSt=/\\\*|\\_/g;re._comment=Ye(ce._comment).replace("(?:-->|$)","-->").getRegex();re.emStrong.lDelim=Ye(re.emStrong.lDelim).replace(/punct/g,re._punctuation).getRegex();re.emStrong.rDelimAst=Ye(re.emStrong.rDelimAst,"g").replace(/punct/g,re._punctuation).getRegex();re.emStrong.rDelimUnd=Ye(re.emStrong.rDelimUnd,"g").replace(/punct/g,re._punctuation).getRegex();re._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;re._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;re._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;re.autolink=Ye(re.autolink).replace("scheme",re._scheme).replace("email",re._email).getRegex();re._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;re.tag=Ye(re.tag).replace("comment",re._comment).replace("attribute",re._attribute).getRegex();re._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;re._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;re._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;re.link=Ye(re.link).replace("label",re._label).replace("href",re._href).replace("title",re._title).getRegex();re.reflink=Ye(re.reflink).replace("label",re._label).replace("ref",ce._label).getRegex();re.nolink=Ye(re.nolink).replace("ref",ce._label).getRegex();re.reflinkSearch=Ye(re.reflinkSearch,"g").replace("reflink",re.reflink).replace("nolink",re.nolink).getRegex();re.normal=_n({},re);re.pedantic=_n({},re.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ye(/^!?\[(label)\]\((.*?)\)/).replace("label",re._label).getRegex(),reflink:Ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",re._label).getRegex()});re.gfm=_n({},re.normal,{escape:Ye(re.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});re.gfm.url=Ye(re.gfm.url,"i").replace("email",re.gfm._extended_email).getRegex();re.breaks=_n({},re.gfm,{br:Ye(re.br).replace("{2,}","*").getRegex(),text:Ye(re.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function px(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function Dd(e){let t="",n,r;const i=e.length;for(n=0;n<i;n++)r=e.charCodeAt(n),Math.random()>.5&&(r="x"+r.toString(16)),t+="&#"+r+";";return t}class Jn{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Gi,this.options.tokenizer=this.options.tokenizer||new w0,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:ce.normal,inline:re.normal};this.options.pedantic?(n.block=ce.pedantic,n.inline=re.pedantic):this.options.gfm&&(n.block=ce.gfm,this.options.breaks?n.inline=re.breaks:n.inline=re.gfm),this.tokenizer.rules=n}static get rules(){return{block:ce,inline:re}}static lex(t,n){return new Jn(n).lex(t)}static lexInline(t,n){return new Jn(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(t,this.tokens);let n;for(;n=this.inlineQueue.shift();)this.inlineTokens(n.src,n.tokens);return this.tokens}blockTokens(t,n=[]){this.options.pedantic&&(t=t.replace(/^ +$/gm,""));let r,i,s,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(r=a.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=`
|
|
`:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
`+r.raw,i.text+=`
|
|
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
`+r.raw,i.text+=`
|
|
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=t.slice(1);let u;this.options.extensions.startBlock.forEach(function(c){u=c.call({lexer:this},l),typeof u=="number"&&u>=0&&(a=Math.min(a,u))}),a<1/0&&a>=0&&(s=t.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){i=n[n.length-1],o&&i.type==="paragraph"?(i.raw+=`
|
|
`+r.raw,i.text+=`
|
|
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r),o=s.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&i.type==="text"?(i.raw+=`
|
|
`+r.raw,i.text+=`
|
|
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n){this.inlineQueue.push({src:t,tokens:n})}inlineTokens(t,n=[]){let r,i,s,o=t,a,l,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+Rd("a",a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+Rd("a",a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,o,u)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t,Dd)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t,Dd))){t=t.substring(r.raw.length),n.push(r);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const d=t.slice(1);let f;this.options.extensions.startInline.forEach(function(h){f=h.call({lexer:this},d),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}if(r=this.tokenizer.inlineText(s,px)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),l=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class v0{constructor(t){this.options=t||Gi}code(t,n,r){const i=(n||"").match(/\S*/)[0];if(this.options.highlight){const s=this.options.highlight(t,i);s!=null&&s!==t&&(r=!0,t=s)}return t=t.replace(/\n$/,"")+`
|
|
`,i?'<pre><code class="'+this.options.langPrefix+gt(i,!0)+'">'+(r?t:gt(t,!0))+`</code></pre>
|
|
`:"<pre><code>"+(r?t:gt(t,!0))+`</code></pre>
|
|
`}blockquote(t){return`<blockquote>
|
|
`+t+`</blockquote>
|
|
`}html(t){return t}heading(t,n,r,i){return this.options.headerIds?"<h"+n+' id="'+this.options.headerPrefix+i.slug(r)+'">'+t+"</h"+n+`>
|
|
`:"<h"+n+">"+t+"</h"+n+`>
|
|
`}hr(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`}list(t,n,r){const i=n?"ol":"ul",s=n&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
|
|
`+t+"</"+i+`>
|
|
`}listitem(t){return"<li>"+t+`</li>
|
|
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return"<p>"+t+`</p>
|
|
`}table(t,n){return n&&(n="<tbody>"+n+"</tbody>"),`<table>
|
|
<thead>
|
|
`+t+`</thead>
|
|
`+n+`</table>
|
|
`}tablerow(t){return`<tr>
|
|
`+t+`</tr>
|
|
`}tablecell(t,n){const r=n.header?"th":"td";return(n.align?"<"+r+' align="'+n.align+'">':"<"+r+">")+t+"</"+r+`>
|
|
`}strong(t){return"<strong>"+t+"</strong>"}em(t){return"<em>"+t+"</em>"}codespan(t){return"<code>"+t+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return"<del>"+t+"</del>"}link(t,n,r){if(t=Ld(this.options.sanitize,this.options.baseUrl,t),t===null)return r;let i='<a href="'+gt(t)+'"';return n&&(i+=' title="'+n+'"'),i+=">"+r+"</a>",i}image(t,n,r){if(t=Ld(this.options.sanitize,this.options.baseUrl,t),t===null)return r;let i='<img src="'+t+'" alt="'+r+'"';return n&&(i+=' title="'+n+'"'),i+=this.options.xhtml?"/>":">",i}text(t){return t}}class F2{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,r){return""+r}image(t,n,r){return""+r}br(){return""}}class P2{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,n){let r=t,i=0;if(this.seen.hasOwnProperty(r)){i=this.seen[t];do i++,r=t+"-"+i;while(this.seen.hasOwnProperty(r))}return n||(this.seen[t]=i,this.seen[r]=0),r}slug(t,n={}){const r=this.serialize(t);return this.getNextSafeSlug(r,n.dryrun)}}class Qn{constructor(t){this.options=t||Gi,this.options.renderer=this.options.renderer||new v0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new F2,this.slugger=new P2}static parse(t,n){return new Qn(n).parse(t)}static parseInline(t,n){return new Qn(n).parseInline(t)}parse(t,n=!0){let r="",i,s,o,a,l,u,c,d,f,h,w,_,m,g,v,b,x,y,k;const C=t.length;for(i=0;i<C;i++){if(h=t[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type]&&(k=this.options.extensions.renderers[h.type].call({parser:this},h),k!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type))){r+=k||"";continue}switch(h.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{r+=this.renderer.heading(this.parseInline(h.tokens),h.depth,N2(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue}case"code":{r+=this.renderer.code(h.text,h.lang,h.escaped);continue}case"table":{for(d="",c="",a=h.header.length,s=0;s<a;s++)c+=this.renderer.tablecell(this.parseInline(h.header[s].tokens),{header:!0,align:h.align[s]});for(d+=this.renderer.tablerow(c),f="",a=h.rows.length,s=0;s<a;s++){for(u=h.rows[s],c="",l=u.length,o=0;o<l;o++)c+=this.renderer.tablecell(this.parseInline(u[o].tokens),{header:!1,align:h.align[o]});f+=this.renderer.tablerow(c)}r+=this.renderer.table(d,f);continue}case"blockquote":{f=this.parse(h.tokens),r+=this.renderer.blockquote(f);continue}case"list":{for(w=h.ordered,_=h.start,m=h.loose,a=h.items.length,f="",s=0;s<a;s++)v=h.items[s],b=v.checked,x=v.task,g="",v.task&&(y=this.renderer.checkbox(b),m?v.tokens.length>0&&v.tokens[0].type==="paragraph"?(v.tokens[0].text=y+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&v.tokens[0].tokens[0].type==="text"&&(v.tokens[0].tokens[0].text=y+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:y}):g+=y),g+=this.parse(v.tokens,m),f+=this.renderer.listitem(g,x,b);r+=this.renderer.list(f,w,_);continue}case"html":{r+=this.renderer.html(h.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(h.tokens));continue}case"text":{for(f=h.tokens?this.parseInline(h.tokens):h.text;i+1<C&&t[i+1].type==="text";)h=t[++i],f+=`
|
|
`+(h.tokens?this.parseInline(h.tokens):h.text);r+=n?this.renderer.paragraph(f):f;continue}default:{const E='Token with "'+h.type+'" type was not found.';if(this.options.silent){console.error(E);return}else throw new Error(E)}}}return r}parseInline(t,n){n=n||this.renderer;let r="",i,s,o;const a=t.length;for(i=0;i<a;i++){if(s=t[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(o=this.options.extensions.renderers[s.type].call({parser:this},s),o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type))){r+=o||"";continue}switch(s.type){case"escape":{r+=n.text(s.text);break}case"html":{r+=n.html(s.text);break}case"link":{r+=n.link(s.href,s.title,this.parseInline(s.tokens,n));break}case"image":{r+=n.image(s.href,s.title,s.text);break}case"strong":{r+=n.strong(this.parseInline(s.tokens,n));break}case"em":{r+=n.em(this.parseInline(s.tokens,n));break}case"codespan":{r+=n.codespan(s.text);break}case"br":{r+=n.br();break}case"del":{r+=n.del(this.parseInline(s.tokens,n));break}case"text":{r+=n.text(s.text);break}default:{const l='Token with "'+s.type+'" type was not found.';if(this.options.silent){console.error(l);return}else throw new Error(l)}}}return r}}function we(e,t,n){if(typeof e=="undefined"||e===null)throw new Error("marked(): input parameter is undefined or null");if(typeof e!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(typeof t=="function"&&(n=t,t=null),t=_n({},we.defaults,t||{}),D2(t),n){const r=t.highlight;let i;try{i=Jn.lex(e,t)}catch(a){return n(a)}const s=function(a){let l;if(!a)try{t.walkTokens&&we.walkTokens(i,t.walkTokens),l=Qn.parse(i,t)}catch(u){a=u}return t.highlight=r,a?n(a):n(null,l)};if(!r||r.length<3||(delete t.highlight,!i.length))return s();let o=0;we.walkTokens(i,function(a){a.type==="code"&&(o++,setTimeout(()=>{r(a.text,a.lang,function(l,u){if(l)return s(l);u!=null&&u!==a.text&&(a.text=u,a.escaped=!0),o--,o===0&&s()})},0))}),o===0&&s();return}try{const r=Jn.lex(e,t);return t.walkTokens&&we.walkTokens(r,t.walkTokens),Qn.parse(r,t)}catch(r){if(r.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,t.silent)return"<p>An error occurred:</p><pre>"+gt(r.message+"",!0)+"</pre>";throw r}}we.options=we.setOptions=function(e){return _n(we.defaults,e),J9(we.defaults),we};we.getDefaults=R2;we.defaults=Gi;we.use=function(...e){const t=_n({},...e),n=we.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach(i=>{if(i.extensions&&(r=!0,i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){const o=n.renderers?n.renderers[s.name]:null;o?n.renderers[s.name]=function(...a){let l=s.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:n.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");n[s.level]?n[s.level].unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}s.childTokens&&(n.childTokens[s.name]=s.childTokens)})),i.renderer){const s=we.defaults.renderer||new v0;for(const o in i.renderer){const a=s[o];s[o]=(...l)=>{let u=i.renderer[o].apply(s,l);return u===!1&&(u=a.apply(s,l)),u}}t.renderer=s}if(i.tokenizer){const s=we.defaults.tokenizer||new w0;for(const o in i.tokenizer){const a=s[o];s[o]=(...l)=>{let u=i.tokenizer[o].apply(s,l);return u===!1&&(u=a.apply(s,l)),u}}t.tokenizer=s}if(i.walkTokens){const s=we.defaults.walkTokens;t.walkTokens=function(o){i.walkTokens.call(this,o),s&&s.call(this,o)}}r&&(t.extensions=n),we.setOptions(t)})};we.walkTokens=function(e,t){for(const n of e)switch(t.call(we,n),n.type){case"table":{for(const r of n.header)we.walkTokens(r.tokens,t);for(const r of n.rows)for(const i of r)we.walkTokens(i.tokens,t);break}case"list":{we.walkTokens(n.items,t);break}default:we.defaults.extensions&&we.defaults.extensions.childTokens&&we.defaults.extensions.childTokens[n.type]?we.defaults.extensions.childTokens[n.type].forEach(function(r){we.walkTokens(n[r],t)}):n.tokens&&we.walkTokens(n.tokens,t)}};we.parseInline=function(e,t){if(typeof e=="undefined"||e===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof e!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=_n({},we.defaults,t||{}),D2(t);try{const n=Jn.lexInline(e,t);return t.walkTokens&&we.walkTokens(n,t.walkTokens),Qn.parseInline(n,t)}catch(n){if(n.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,t.silent)return"<p>An error occurred:</p><pre>"+gt(n.message+"",!0)+"</pre>";throw n}};we.Parser=Qn;we.parser=Qn.parse;we.Renderer=v0;we.TextRenderer=F2;we.Lexer=Jn;we.lexer=Jn.lex;we.Tokenizer=w0;we.Slugger=P2;we.parse=we;Qn.parse;Jn.lex;function $2({change:e,minimal:t,activeTags:n,toggleTag:r}){return F(Qc,{overlay:!t&&F(pe,{children:[p("a",{class:"changelog-version",href:`/versions/?id=${e.version}`,children:e.version}),p("a",{class:"changelog-version",href:`/versions/?id=${e.group}`,children:e.group})]}),children:[p("div",{class:"badges-list",children:e.tags.map(i=>p(Zi,{label:i,onClick:r?()=>r(i):void 0,active:n==null?void 0:n.includes(i)}))}),p("div",{class:"changelog-content",dangerouslySetInnerHTML:{__html:we(e.content)}})]})}const mx="search";function B2({changes:e,defaultOrder:t,limit:n,navigation:r}){var g,v;const{locale:i}=Ce(),[s,o]=jr(mx),[a,l]=np(),u=ye(()=>{const b=(s!=null?s:"").split(" ").map(x=>x.trim().toLowerCase()).filter(x=>x.length>0);return b.length===0&&a.length===0?e:e==null?void 0:e.filter(x=>{if(!a.every(k=>x.tags.includes(k)))return!1;const y=`${x.group} ${x.version} ${x.tags.join(" ")} ${x.content.toLowerCase()}`;return b.every(k=>k.startsWith("!")?k.length===1||!y.includes(k.slice(1)):y.includes(k))})},[e,s,a]),[c,d]=X(t==="desc"),f=ye(()=>u==null?void 0:u.sort((b,x)=>c?x.order-b.order:b.order-x.order),[u,c]),[h,w]=X(!0),_=ye(()=>!h||(n!=null?n:-1)<0?f:f==null?void 0:f.slice(0,n),[f,h,n,c]),m=((g=f==null?void 0:f.length)!=null?g:0)-((v=_==null?void 0:_.length)!=null?v:0);return F(pe,{children:[F("div",{class:"navigation",children:[r,p(mn,{class:"btn btn-input query-search",list:"sound-list",placeholder:i("changelog.search"),value:s,onChange:b=>o(b,!0)}),p(oe,{icon:c?"sort_desc":"sort_asc",label:c?"Newest first":"Oldest first",onClick:()=>d(!c)})]}),a.length>0&&p("div",{class:"badges-list",children:a.map(b=>p(Zi,{label:b,onClick:()=>l(b)}))}),F("div",{class:"card-column",children:[_===void 0?p(pe,{children:p("span",{class:"note",children:i("loading")})}):_.length===0?p(pe,{children:p("span",{class:"note",children:i("changelog.no_results")})}):p(pe,{children:_.map(b=>p($2,{change:b,activeTags:a,toggleTag:l}))}),m>0&&p(oe,{label:i("changelog.show_more",`${m}`),onClick:()=>w(!1)})]})]})}function gx({id:e,version:t}){var l,u;const{locale:n}=Ce(),[r,i]=X("changelog"),{value:s}=br(t0,[]),o=ye(()=>s==null?void 0:s.filter(c=>c.version===e||c.group===e),[e,s]),a=t&&lw(t.id);return p(pe,{children:F("div",{class:"version-detail",children:[p("h2",{children:(l=t==null?void 0:t.name)!=null?l:e}),p("div",{class:"version-info",children:t?F(pe,{children:[p(jn,{label:n("versions.released"),value:j2(t)}),p(jn,{label:n("versions.release_target"),value:t.release_target,link:t.id!==t.release_target?`/versions/?id=${t.release_target}`:void 0}),p(jn,{label:n("versions.data_version"),value:t.data_version}),p(jn,{label:n("versions.protocol_version"),value:t.protocol_version}),p(jn,{label:n("versions.data_pack_format"),value:t.data_pack_version}),p(jn,{label:n("versions.resource_pack_format"),value:t.resource_pack_version})]}):((u=o==null?void 0:o.length)!=null?u:0>1)?p("p",{children:"This version is not released yet."}):p("p",{children:"This version does not exist. Only versions since 1.14 are tracked, or it may be too recent."})}),F("div",{class:"version-tabs",children:[p("span",{class:r==="changelog"?"selected":"",onClick:()=>i("changelog"),children:n("versions.technical_changes")}),p("span",{class:r==="discussion"?"selected":"",onClick:()=>i("discussion"),children:n("versions.discussion")}),a&&F("a",{href:a,target:"_blank",children:[n("versions.article"),he.link_external]})]}),F("div",{class:"version-tab",children:[r==="changelog"&&p(B2,{changes:o,defaultOrder:"asc"}),r==="discussion"&&p(_0,{term:`version/${e}/`})]})]})})}function j2(e){return new Date(e.release_time).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"})}function _x({version:e,link:t}){const{locale:n}=Ce();return F("a",{class:"version-entry",href:t,children:[p("span",{class:"version-id",children:e.id}),p(jn,{label:n("versions.released"),value:j2(e),compact:!0}),p(jn,{label:n("versions.data_version"),value:e.data_version,optional:!0}),p(jn,{label:n("versions.pack_format"),value:e.data_pack_version,optional:!0})]})}const wx="misode_include_snapshots",vx="search";function xx({versions:e,link:t,navigation:n}){const{locale:r}=Ce(),[i,s]=tp(wx,!0,u=>u==="true",u=>`${u}`),[o,a]=jr(vx),l=ye(()=>e==null?void 0:e.filter(u=>u.type==="snapshot"&&!i?!1:u.id.includes(o!=null?o:"")),[e,i,o]);return F(pe,{children:[F("div",{class:"navigation",children:[n,p(mn,{class:"btn btn-input query-search",placeholder:r("versions.search"),value:o,onChange:a}),p(Hw,{label:"Include snapshots",value:i,onChange:s})]}),p("div",{class:"version-list",children:l===void 0?p("span",{class:"note",children:r("loading")}):l.length===0?p("span",{class:"note",children:r("versions.no_results")}):l.map(u=>p(_x,{version:u,link:t==null?void 0:t(u.id)}))})]})}function jn({label:e,value:t,link:n,compact:r,optional:i}){return F("div",{class:`version-metadata${i?" version-metadata-hide":""}`,children:[F("span",{class:r?"version-metadata-hide":void 0,children:[e,": "]}),p("span",{class:"version-metadata-value",children:t}),n&&p("a",{href:n,class:"version-metadata-link",children:he.link_external})]})}function so({value:e,allowed:t,hasAny:n,onChange:r,onAny:i}){const{locale:s}=Ce(),o=ye(()=>t||Oe.versions.map(a=>a.id).reverse(),[t]);return F(Bt,{class:`version-switcher${ze.getVersion()===null?" attention":""}`,icon:"tag",label:e!=null?e:s("any_version"),tooltip:s("switch_version"),children:[n&&p(oe,{label:s("any_version"),onClick:i,active:!e}),o.map(a=>p(oe,{label:a,active:a===e,onClick:()=>r(a)}))]})}function bx({}){const{locale:e}=Ce();gn(e("title.changelog"));const{value:t,error:n}=br(t0,[]);return F("main",{children:[n&&p(Ei,{error:n}),p("div",{class:"container changelog",children:p(B2,{changes:t,defaultOrder:"desc",limit:100,navigation:p(ss,{link:"/versions/",icon:"three_bars",label:e("versions.all")})})}),p(On,{})]})}const jl="share";function yx({}){var W,te;const{locale:e}=Ce(),{version:t,changeVersion:n,changeTargetVersion:r}=yr(),{projects:i,project:s,file:o,updateProject:a,updateFile:l}=tr(),[u,c]=X(null),[d,f]=gf();if(d)return d.message=`Something went wrong rendering the generator: ${d.message}`,p("main",{children:p(Ei,{error:d,onDismiss:f})});const h=Qh(Oi());if(!h)return p("main",{children:p(Ei,{error:`Cannot find generator "${Oi()}"`})});const w=ye(()=>Oe.versions.filter(Z=>ct(Z.id,h.minVersion,h.maxVersion)).map(Z=>Z.id).reverse(),[h.minVersion,h.maxVersion]);gn(e("title.generator",e(h.partner?`partner.${h.partner}.${h.id}`:h.id)),w),ct(t,h.minVersion)||c(`The minimum version for this generator is ${h.minVersion}`),ct(t,void 0,h.maxVersion)||c(`This generator is not available in versions above ${h.maxVersion}`),me(()=>ze.visitGenerator(h.id),[h.id]);const[_,m]=jr("preset"),[g,v]=jr(jl),b=Le(!1),x=ye(()=>ze.getBackup(h.id),[h.id]),y=()=>{x!==void 0&&(C==null||C.reset(P.DataModel.wrapLists(x),!1))},{value:k}=br(async()=>{let Z;if(_&&g)return v(void 0),Go;if(_)Z=await $(_);else if(g){const qe=await Aw(g);let ht=!1;if(qe.version&&qe.version!==t&&(n(qe.version,!1),ht=!0),qe.type&&qe.type!==h.id){const sn=Oe.generators.find(ao=>ao.id===qe.type);sn&&(qr(`${_r(sn.url)}?${jl}=${qe.id}`),ht=!0)}if(ht)return Go;qe.show_preview&&!tt&&(xt(!0),_e(!1)),Ae.openSnippet(h.id,g,t),Z=qe.data}else if(o){if(s.version&&s.version!==t)return n(s.version,!1),Go;Z=o.data}const[se,Je]=await Promise.all([bw(t,h.id),kw(t)]);return Z&&(b.current=!0,se.reset(P.DataModel.wrapLists(Z),!1)),Ae.setGenerator(h.id),{model:se,blockStates:Je}},[h.id,t,g,_,s.name,o==null?void 0:o.id]),C=k==null?void 0:k.model,E=k==null?void 0:k.blockStates;za(C,Z=>{if(b.current||(m(void 0,!0),v(void 0,!0)),o&&Z&&E){const se=Ac(Z,E);l(h.id,o.id,{id:o.id,data:se})}b.current=!1,ze.setBackup(h.id,P.DataModel.unwrapLists(Z.data)),c(null)},[h.id,m,v,E,o==null?void 0:o.id]);const I=()=>{var Z;Ae.resetGenerator(h.id,(Z=C==null?void 0:C.historyIndex)!=null?Z:1,"menu"),C==null||C.reset(P.DataModel.wrapLists(C.schema.default()),!0)},S=Z=>{var se;Z.stopPropagation(),Ae.undoGenerator(h.id,(se=C==null?void 0:C.historyIndex)!=null?se:1,"menu"),C==null||C.undo()},T=Z=>{var se;Z.stopPropagation(),Ae.redoGenerator(h.id,(se=C==null?void 0:C.historyIndex)!=null?se:1,"menu"),C==null||C.redo()},L=Z=>{var se,Je;Z.ctrlKey&&Z.key==="z"?(Ae.undoGenerator(h.id,(se=C==null?void 0:C.historyIndex)!=null?se:1,"hotkey"),C==null||C.undo()):Z.ctrlKey&&Z.key==="y"&&(Ae.redoGenerator(h.id,(Je=C==null?void 0:C.historyIndex)!=null?Je:1,"hotkey"),C==null||C.redo())},D=Z=>{Z.ctrlKey&&Z.key==="s"&&(V("hotkey"),Z.preventDefault(),Z.stopPropagation())};me(()=>(document.addEventListener("keyup",L),document.addEventListener("keydown",D),()=>{document.removeEventListener("keyup",L),document.removeEventListener("keydown",D)}),[C,E,o]);const[G,z]=X([]);me(()=>{yw(t).then(Z=>{z(Z.get(h.id).map(se=>se.startsWith("minecraft:")?se.slice(10):se))}).catch(Z=>{console.error(Z),c(Z)})},[t,h.id]);const O=Z=>{Ae.loadPreset(h.id,Z),v(void 0,!0),r(t,!0),m(Z)},$=async Z=>{var se,Je,qe;try{const ht=await rp(t,(se=h.path)!=null?se:h.id,Z),sn=C==null?void 0:C.get(new P.Path(["generator","seed"]));return((Je=ht==null?void 0:ht.generator)==null?void 0:Je.seed)!==void 0&&sn!==void 0&&(ht.generator.seed=sn,((qe=ht.generator.biome_source)==null?void 0:qe.seed)!==void 0&&(ht.generator.biome_source.seed=sn)),ht}catch{c(`Cannot load preset ${Z} in ${t}`),m(void 0,!0)}},U=Z=>{v(void 0,!0),n(Z),s.name!==wr.name&&s.version!==Z&&a({version:Z})},[Q,N]=X(void 0),[A,R]=X(!1),[B,q]=uc({cooldown:3e3}),ie=()=>{if(A){R(!1);return}if(_)N(`${location.origin}/${h.url}/?version=${t}&preset=${_}`),R(!0),j();else if(C&&E){const Z=Ac(C,E);Br(Z,C.schema.default())?(N(`${location.origin}/${h.url}/?version=${t}`),R(!0)):Ew(h.id,t,Z,tt).then(({id:se,length:Je,compressed:qe,rate:ht})=>{Ae.createSnippet(h.id,se,t,Je,qe,ht);const sn=`${location.origin}/${h.url}/?${jl}=${se}`;N(sn),R(!0)}).catch(se=>{se instanceof Error&&c(se)})}},j=()=>{navigator.clipboard.writeText(Q!=null?Q:""),q()};me(()=>{B||(N(void 0),R(!1))},[B]);const[J,_e]=X(window.innerWidth>820),[ve,We]=X(0),[Ze,Ke]=X(0),[vt,Ie]=X(0),je=()=>{Ae.copyOutput(h.id,"menu"),We(ve+1)},Ve=()=>{Ae.downloadOutput(h.id,"menu"),Ke(Ze+1)},ae=()=>{Ae.generatorEvent("import"),_e(!0),Ie(vt+1)},wn=()=>{J?Ae.hideOutput(h.id,"menu"):Ae.showOutput(h.id,"menu"),_e(!J),We(0),Ke(0),Ie(0)},[Ue,Ne]=uc(),[tt,xt]=X(!1),vn=Gv.includes(h.id)&&!(h.id==="worldgen/configured_feature"&&ct(t,"1.18"));tt&&!vn&&xt(!1);let Rn=2;vn&&(Rn+=1),J&&(Rn+=2);const ee=()=>{J?Ae.hidePreview(h.id,"menu"):Ae.showPreview(h.id,"menu"),xt(!tt),!tt&&J&&_e(!1)},[ne,de]=X((W=ze.getProjectPanelOpen())!=null?W:window.innerWidth>600),Ee=Fe(()=>{ne?Ae.hideProject(h.id,i.length,s.files.length,"menu"):Ae.showProject(h.id,i.length,s.files.length,"menu"),ze.setProjectPanelOpen(!ne),de(!ne)},[ne]),[at,Mt]=X(!1),[Yi,ni]=X(!1),[oo,V]=X(void 0),[Y,H]=X(void 0);return F(pe,{children:[F("main",{class:`generator${tt?" has-preview":""}${ne?" has-project":""}`,children:[!h.partner&&p(yf,{id:"data-pack-generator",type:"text"}),F("div",{class:"controls generator-controls",children:[p(oe,{icon:"upload",label:e("import"),onClick:ae}),p(Bt,{icon:"archive",label:e("presets"),relative:!1,children:p(Gw,{searchPlaceholder:e("search"),noResults:e("no_presets"),values:G,onSelect:O})}),p(so,{value:t,onChange:U,allowed:w}),F(Bt,{icon:"kebab_horizontal",tooltip:e("more"),children:[p(oe,{icon:"history",label:e("reset_default"),onClick:I}),x!==void 0&&p(oe,{icon:"history",label:e("restore_backup"),onClick:y}),p(oe,{icon:"arrow_left",label:e("undo"),onClick:S}),p(oe,{icon:"arrow_right",label:e("redo"),onClick:T}),p(oe,{icon:"file",label:e("project.save"),onClick:()=>V("menu")})]})]}),u&&p(Ei,{error:u,onDismiss:()=>c(null)}),p(j9,{model:C,version:t,blockStates:E,onError:c}),p(On,{donate:!h.partner})]}),F("div",{class:"popup-actions right-actions",style:`--offset: -${8+Rn*50}px;`,children:[p("div",{class:`popup-action action-preview${vn?" shown":""} tooltipped tip-nw`,"aria-label":e(tt?"hide_preview":"show_preview"),onClick:ee,children:tt?he.x_circle:he.play}),p("div",{class:"popup-action action-share shown tooltipped tip-nw","aria-label":e("share"),onClick:ie,children:he.link}),p("div",{class:`popup-action action-download${J?" shown":""} tooltipped tip-nw`,"aria-label":e("download"),onClick:Ve,children:he.download}),p("div",{class:`popup-action action-copy${J?" shown":""}${Ue?" active":""} tooltipped tip-nw`,"aria-label":e(Ue?"copied":"copy"),onClick:je,children:Ue?he.check:he.clippy}),p("div",{class:"popup-action action-code shown tooltipped tip-nw","aria-label":e(J?"hide_output":"show_output"),onClick:wn,children:J?he.chevron_right:he.code})]}),p("div",{class:`popup-preview${tt?" shown":""}`,children:p(Yv,{model:C,version:t,id:h.id,shown:tt,onError:c})}),p("div",{class:`popup-source${J?" shown":""}`,children:p(Jv,{model:C,blockStates:E,doCopy:ve,doDownload:Ze,doImport:vt,name:(te=h.schema)!=null?te:"data",copySuccess:Ne,onError:c})}),F("div",{class:`popup-share${A?" shown":""}`,children:[p(mn,{value:Q,readonly:!0}),p(oe,{icon:B?"check":"clippy",onClick:j,tooltip:e(B?"copied":"copy_share"),tooltipLoc:"nw",active:B})]}),p("div",{class:"popup-actions left-actions",style:"--offset: 50px;",children:p("div",{class:"popup-action action-project shown tooltipped tip-ne","aria-label":e(ne?"hide_project":"show_project"),onClick:Ee,children:ne?he.chevron_left:he.repo})}),p("div",{class:`popup-project${ne?" shown":""}`,children:p(Xv,{model:C,version:t,id:h.id,onError:c,onDeleteProject:()=>ni(!0),onRename:H,onCreate:()=>Mt(!0)})}),at&&p(Wv,{onClose:()=>Mt(!1)}),Yi&&p(qv,{onClose:()=>ni(!1)}),C&&oo&&p(Yw,{id:h.id,model:C,method:oo,onClose:()=>V(void 0)}),Y&&p(Ww,{id:Y.type,name:Y.id,onClose:()=>H(void 0)})]})}function kx({}){const{locale:e}=Ce();return gn(e("title.generators")),F("main",{children:[p("div",{class:"container",children:p(o0,{predicate:t=>!t.partner})}),p(On,{})]})}var x0={exports:{}};function b0(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];typeof n=="object"&&!Object.isFrozen(n)&&b0(n)}),e}x0.exports=b0;x0.exports.default=b0;var Cx=x0.exports;class Fd{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function V2(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function dr(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const Ex="</span>",Pd=e=>!!e.kind,Ax=(e,{prefix:t})=>{if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class Sx{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=V2(t)}openNode(t){if(!Pd(t))return;let n=t.kind;t.sublanguage?n=`language-${n}`:n=Ax(n,{prefix:this.classPrefix}),this.span(n)}closeNode(t){!Pd(t)||(this.buffer+=Ex)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}class y0{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n={kind:t,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&(!t.children||(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{y0._collapse(n)})))}}class Ix extends y0{constructor(t){super(),this.options=t}addKeyword(t,n){t!==""&&(this.openNode(n),this.addText(t),this.closeNode())}addText(t){t!==""&&this.add(t)}addSublanguage(t,n){const r=t.root;r.kind=n,r.sublanguage=!0,this.add(r)}toHTML(){return new Sx(this,this.options).value()}finalize(){return!0}}function Vs(e){return e?typeof e=="string"?e:e.source:null}function z2(e){return ti("(?=",e,")")}function Mx(e){return ti("(?:",e,")*")}function Tx(e){return ti("(?:",e,")?")}function ti(...e){return e.map(n=>Vs(n)).join("")}function Lx(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function k0(...e){const t=Lx(e);return"("+(t.capture?"":"?:")+e.map(r=>Vs(r)).join("|")+")"}function U2(e){return new RegExp(e.toString()+"|").exec("").length-1}function Ox(e,t){const n=e&&e.exec(t);return n&&n.index===0}const Rx=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C0(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let s=Vs(r),o="";for(;s.length>0;){const a=Rx.exec(s);if(!a){o+=s;break}o+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+i):(o+=a[0],a[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(t)}const Nx=/\b\B/,H2="[a-zA-Z]\\w*",E0="[a-zA-Z_]\\w*",Z2="\\b\\d+(\\.\\d+)?",G2="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Y2="\\b(0b[01]+)",Dx="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Fx=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=ti(t,/.*\b/,e.binary,/\b.*/)),dr({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},zs={begin:"\\\\[\\s\\S]",relevance:0},Px={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[zs]},$x={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[zs]},Bx={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Ka=function(e,t,n={}){const r=dr({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=k0("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:ti(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},jx=Ka("//","$"),Vx=Ka("/\\*","\\*/"),zx=Ka("#","$"),Ux={scope:"number",begin:Z2,relevance:0},Hx={scope:"number",begin:G2,relevance:0},Zx={scope:"number",begin:Y2,relevance:0},Gx={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[zs,{begin:/\[/,end:/\]/,relevance:0,contains:[zs]}]}]},Yx={scope:"title",begin:H2,relevance:0},Wx={scope:"title",begin:E0,relevance:0},qx={begin:"\\.\\s*"+E0,relevance:0},Xx=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var Ro=Object.freeze({__proto__:null,MATCH_NOTHING_RE:Nx,IDENT_RE:H2,UNDERSCORE_IDENT_RE:E0,NUMBER_RE:Z2,C_NUMBER_RE:G2,BINARY_NUMBER_RE:Y2,RE_STARTERS_RE:Dx,SHEBANG:Fx,BACKSLASH_ESCAPE:zs,APOS_STRING_MODE:Px,QUOTE_STRING_MODE:$x,PHRASAL_WORDS_MODE:Bx,COMMENT:Ka,C_LINE_COMMENT_MODE:jx,C_BLOCK_COMMENT_MODE:Vx,HASH_COMMENT_MODE:zx,NUMBER_MODE:Ux,C_NUMBER_MODE:Hx,BINARY_NUMBER_MODE:Zx,REGEXP_MODE:Gx,TITLE_MODE:Yx,UNDERSCORE_TITLE_MODE:Wx,METHOD_GUARD:qx,END_SAME_AS_BEGIN:Xx});function Kx(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Jx(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Qx(e,t){!t||!e.beginKeywords||(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Kx,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function eb(e,t){!Array.isArray(e.illegal)||(e.illegal=k0(...e.illegal))}function tb(e,t){if(!!e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function nb(e,t){e.relevance===void 0&&(e.relevance=1)}const rb=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=ti(n.beforeMatch,z2(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},ib=["of","and","for","in","not","or","if","then","parent","list","value"],sb="keyword";function W2(e,t,n=sb){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(s){Object.assign(r,W2(e[s],t,s))}),r;function i(s,o){t&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const l=a.split("|");r[l[0]]=[s,ob(l[0],l[1])]})}}function ob(e,t){return t?Number(t):ab(e)?0:1}function ab(e){return ib.includes(e.toLowerCase())}const $d={},Fr=e=>{console.error(e)},Bd=(e,...t)=>{console.log(`WARN: ${e}`,...t)},di=(e,t)=>{$d[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),$d[`${e}/${t}`]=!0)},Ia=new Error;function q2(e,t,{key:n}){let r=0;const i=e[n],s={},o={};for(let a=1;a<=t.length;a++)o[a+r]=i[a],s[a+r]=!0,r+=U2(t[a-1]);e[n]=o,e[n]._emit=s,e[n]._multi=!0}function lb(e){if(!!Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Fr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ia;if(typeof e.beginScope!="object"||e.beginScope===null)throw Fr("beginScope must be object"),Ia;q2(e,e.begin,{key:"beginScope"}),e.begin=C0(e.begin,{joinWith:""})}}function cb(e){if(!!Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Fr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ia;if(typeof e.endScope!="object"||e.endScope===null)throw Fr("endScope must be object"),Ia;q2(e,e.end,{key:"endScope"}),e.end=C0(e.end,{joinWith:""})}}function ub(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function db(e){ub(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),lb(e),cb(e)}function fb(e){function t(o,a){return new RegExp(Vs(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=U2(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=t(C0(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const u=l.findIndex((d,f)=>f>0&&d!==void 0),c=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,c)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new n;return this.rules.slice(a).forEach(([u,c])=>l.addRule(u,c)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let u=l.exec(a);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,u=c.exec(a)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function i(o){const a=new r;return o.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function s(o,a){const l=o;if(o.isCompiled)return l;[Jx,tb,db,rb].forEach(c=>c(o,a)),e.compilerExtensions.forEach(c=>c(o,a)),o.__beforeBegin=null,[Qx,eb,nb].forEach(c=>c(o,a)),o.isCompiled=!0;let u=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),u=o.keywords.$pattern,delete o.keywords.$pattern),u=u||/\w+/,o.keywords&&(o.keywords=W2(o.keywords,e.case_insensitive)),l.keywordPatternRe=t(u,!0),a&&(o.begin||(o.begin=/\B|\b/),l.beginRe=t(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=t(l.end)),l.terminatorEnd=Vs(l.end)||"",o.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(l.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(c){return hb(c==="self"?o:c)})),o.contains.forEach(function(c){s(c,l)}),o.starts&&s(o.starts,a),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=dr(e.classNameAliases||{}),s(e)}function X2(e){return e?e.endsWithParent||X2(e.starts):!1}function hb(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return dr(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:X2(e)?dr(e,{starts:e.starts?dr(e.starts):null}):Object.isFrozen(e)?dr(e):e}var pb="11.5.1";class mb extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const Vl=V2,jd=dr,Vd=Symbol("nomatch"),gb=7,_b=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ix};function l(O){return a.noHighlightRe.test(O)}function u(O){let $=O.className+" ";$+=O.parentNode?O.parentNode.className:"";const U=a.languageDetectRe.exec($);if(U){const Q=I(U[1]);return Q||(Bd(s.replace("{}",U[1])),Bd("Falling back to no-highlight mode for this block.",O)),Q?U[1]:"no-highlight"}return $.split(/\s+/).find(Q=>l(Q)||I(Q))}function c(O,$,U){let Q="",N="";typeof $=="object"?(Q=O,U=$.ignoreIllegals,N=$.language):(di("10.7.0","highlight(lang, code, ...args) has been deprecated."),di("10.7.0",`Please use highlight(code, options) instead.
|
|
https://github.com/highlightjs/highlight.js/issues/2277`),N=O,Q=$),U===void 0&&(U=!0);const A={code:Q,language:N};G("before:highlight",A);const R=A.result?A.result:d(A.language,A.code,U);return R.code=A.code,G("after:highlight",R),R}function d(O,$,U,Q){const N=Object.create(null);function A(ee,ne){return ee.keywords[ne]}function R(){if(!ae.keywords){Ue.addText(Ne);return}let ee=0;ae.keywordPatternRe.lastIndex=0;let ne=ae.keywordPatternRe.exec(Ne),de="";for(;ne;){de+=Ne.substring(ee,ne.index);const Ee=Ie.case_insensitive?ne[0].toLowerCase():ne[0],at=A(ae,Ee);if(at){const[Mt,Yi]=at;if(Ue.addText(de),de="",N[Ee]=(N[Ee]||0)+1,N[Ee]<=gb&&(tt+=Yi),Mt.startsWith("_"))de+=ne[0];else{const ni=Ie.classNameAliases[Mt]||Mt;Ue.addKeyword(ne[0],ni)}}else de+=ne[0];ee=ae.keywordPatternRe.lastIndex,ne=ae.keywordPatternRe.exec(Ne)}de+=Ne.substr(ee),Ue.addText(de)}function B(){if(Ne==="")return;let ee=null;if(typeof ae.subLanguage=="string"){if(!t[ae.subLanguage]){Ue.addText(Ne);return}ee=d(ae.subLanguage,Ne,!0,wn[ae.subLanguage]),wn[ae.subLanguage]=ee._top}else ee=h(Ne,ae.subLanguage.length?ae.subLanguage:null);ae.relevance>0&&(tt+=ee.relevance),Ue.addSublanguage(ee._emitter,ee.language)}function q(){ae.subLanguage!=null?B():R(),Ne=""}function ie(ee,ne){let de=1;const Ee=ne.length-1;for(;de<=Ee;){if(!ee._emit[de]){de++;continue}const at=Ie.classNameAliases[ee[de]]||ee[de],Mt=ne[de];at?Ue.addKeyword(Mt,at):(Ne=Mt,R(),Ne=""),de++}}function j(ee,ne){return ee.scope&&typeof ee.scope=="string"&&Ue.openNode(Ie.classNameAliases[ee.scope]||ee.scope),ee.beginScope&&(ee.beginScope._wrap?(Ue.addKeyword(Ne,Ie.classNameAliases[ee.beginScope._wrap]||ee.beginScope._wrap),Ne=""):ee.beginScope._multi&&(ie(ee.beginScope,ne),Ne="")),ae=Object.create(ee,{parent:{value:ae}}),ae}function J(ee,ne,de){let Ee=Ox(ee.endRe,de);if(Ee){if(ee["on:end"]){const at=new Fd(ee);ee["on:end"](ne,at),at.isMatchIgnored&&(Ee=!1)}if(Ee){for(;ee.endsParent&&ee.parent;)ee=ee.parent;return ee}}if(ee.endsWithParent)return J(ee.parent,ne,de)}function _e(ee){return ae.matcher.regexIndex===0?(Ne+=ee[0],1):(Rn=!0,0)}function ve(ee){const ne=ee[0],de=ee.rule,Ee=new Fd(de),at=[de.__beforeBegin,de["on:begin"]];for(const Mt of at)if(!!Mt&&(Mt(ee,Ee),Ee.isMatchIgnored))return _e(ne);return de.skip?Ne+=ne:(de.excludeBegin&&(Ne+=ne),q(),!de.returnBegin&&!de.excludeBegin&&(Ne=ne)),j(de,ee),de.returnBegin?0:ne.length}function We(ee){const ne=ee[0],de=$.substr(ee.index),Ee=J(ae,ee,de);if(!Ee)return Vd;const at=ae;ae.endScope&&ae.endScope._wrap?(q(),Ue.addKeyword(ne,ae.endScope._wrap)):ae.endScope&&ae.endScope._multi?(q(),ie(ae.endScope,ee)):at.skip?Ne+=ne:(at.returnEnd||at.excludeEnd||(Ne+=ne),q(),at.excludeEnd&&(Ne=ne));do ae.scope&&Ue.closeNode(),!ae.skip&&!ae.subLanguage&&(tt+=ae.relevance),ae=ae.parent;while(ae!==Ee.parent);return Ee.starts&&j(Ee.starts,ee),at.returnEnd?0:ne.length}function Ze(){const ee=[];for(let ne=ae;ne!==Ie;ne=ne.parent)ne.scope&&ee.unshift(ne.scope);ee.forEach(ne=>Ue.openNode(ne))}let Ke={};function vt(ee,ne){const de=ne&&ne[0];if(Ne+=ee,de==null)return q(),0;if(Ke.type==="begin"&&ne.type==="end"&&Ke.index===ne.index&&de===""){if(Ne+=$.slice(ne.index,ne.index+1),!i){const Ee=new Error(`0 width match regex (${O})`);throw Ee.languageName=O,Ee.badRule=Ke.rule,Ee}return 1}if(Ke=ne,ne.type==="begin")return ve(ne);if(ne.type==="illegal"&&!U){const Ee=new Error('Illegal lexeme "'+de+'" for mode "'+(ae.scope||"<unnamed>")+'"');throw Ee.mode=ae,Ee}else if(ne.type==="end"){const Ee=We(ne);if(Ee!==Vd)return Ee}if(ne.type==="illegal"&&de==="")return 1;if(vn>1e5&&vn>ne.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ne+=de,de.length}const Ie=I(O);if(!Ie)throw Fr(s.replace("{}",O)),new Error('Unknown language: "'+O+'"');const je=fb(Ie);let Ve="",ae=Q||je;const wn={},Ue=new a.__emitter(a);Ze();let Ne="",tt=0,xt=0,vn=0,Rn=!1;try{for(ae.matcher.considerAll();;){vn++,Rn?Rn=!1:ae.matcher.considerAll(),ae.matcher.lastIndex=xt;const ee=ae.matcher.exec($);if(!ee)break;const ne=$.substring(xt,ee.index),de=vt(ne,ee);xt=ee.index+de}return vt($.substr(xt)),Ue.closeAllNodes(),Ue.finalize(),Ve=Ue.toHTML(),{language:O,value:Ve,relevance:tt,illegal:!1,_emitter:Ue,_top:ae}}catch(ee){if(ee.message&&ee.message.includes("Illegal"))return{language:O,value:Vl($),illegal:!0,relevance:0,_illegalBy:{message:ee.message,index:xt,context:$.slice(xt-100,xt+100),mode:ee.mode,resultSoFar:Ve},_emitter:Ue};if(i)return{language:O,value:Vl($),illegal:!1,relevance:0,errorRaised:ee,_emitter:Ue,_top:ae};throw ee}}function f(O){const $={value:Vl(O),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return $._emitter.addText(O),$}function h(O,$){$=$||a.languages||Object.keys(t);const U=f(O),Q=$.filter(I).filter(T).map(q=>d(q,O,!1));Q.unshift(U);const N=Q.sort((q,ie)=>{if(q.relevance!==ie.relevance)return ie.relevance-q.relevance;if(q.language&&ie.language){if(I(q.language).supersetOf===ie.language)return 1;if(I(ie.language).supersetOf===q.language)return-1}return 0}),[A,R]=N,B=A;return B.secondBest=R,B}function w(O,$,U){const Q=$&&n[$]||U;O.classList.add("hljs"),O.classList.add(`language-${Q}`)}function _(O){let $=null;const U=u(O);if(l(U))return;if(G("before:highlightElement",{el:O,language:U}),O.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(O)),a.throwUnescapedHTML))throw new mb("One of your code blocks includes unescaped HTML.",O.innerHTML);$=O;const Q=$.textContent,N=U?c(Q,{language:U,ignoreIllegals:!0}):h(Q);O.innerHTML=N.value,w(O,U,N.language),O.result={language:N.language,re:N.relevance,relevance:N.relevance},N.secondBest&&(O.secondBest={language:N.secondBest.language,relevance:N.secondBest.relevance}),G("after:highlightElement",{el:O,result:N,text:Q})}function m(O){a=jd(a,O)}const g=()=>{x(),di("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function v(){x(),di("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let b=!1;function x(){if(document.readyState==="loading"){b=!0;return}document.querySelectorAll(a.cssSelector).forEach(_)}function y(){b&&x()}typeof window!="undefined"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",y,!1);function k(O,$){let U=null;try{U=$(e)}catch(Q){if(Fr("Language definition for '{}' could not be registered.".replace("{}",O)),i)Fr(Q);else throw Q;U=o}U.name||(U.name=O),t[O]=U,U.rawDefinition=$.bind(null,e),U.aliases&&S(U.aliases,{languageName:O})}function C(O){delete t[O];for(const $ of Object.keys(n))n[$]===O&&delete n[$]}function E(){return Object.keys(t)}function I(O){return O=(O||"").toLowerCase(),t[O]||t[n[O]]}function S(O,{languageName:$}){typeof O=="string"&&(O=[O]),O.forEach(U=>{n[U.toLowerCase()]=$})}function T(O){const $=I(O);return $&&!$.disableAutodetect}function L(O){O["before:highlightBlock"]&&!O["before:highlightElement"]&&(O["before:highlightElement"]=$=>{O["before:highlightBlock"](Object.assign({block:$.el},$))}),O["after:highlightBlock"]&&!O["after:highlightElement"]&&(O["after:highlightElement"]=$=>{O["after:highlightBlock"](Object.assign({block:$.el},$))})}function D(O){L(O),r.push(O)}function G(O,$){const U=O;r.forEach(function(Q){Q[U]&&Q[U]($)})}function z(O){return di("10.7.0","highlightBlock will be removed entirely in v12.0"),di("10.7.0","Please use highlightElement now."),_(O)}Object.assign(e,{highlight:c,highlightAuto:h,highlightAll:x,highlightElement:_,highlightBlock:z,configure:m,initHighlighting:g,initHighlightingOnLoad:v,registerLanguage:k,unregisterLanguage:C,listLanguages:E,getLanguage:I,registerAliases:S,autoDetection:T,inherit:jd,addPlugin:D}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=pb,e.regex={concat:ti,lookahead:z2,either:k0,optional:Tx,anyNumberOfTimes:Mx};for(const O in Ro)typeof Ro[O]=="object"&&Cx(Ro[O]);return Object.assign(e,Ro),e};var Us=_b({}),wb=Us;Us.HighlightJS=Us;Us.default=Us;var A0=wb;function vb(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r={beginKeywords:["true","false","null"].join(" ")};return{name:"JSON",contains:[t,n,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}const xb='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M6.368 1.01a.75.75 0 01.623.859L6.57 4.5h3.98l.46-2.868a.75.75 0 011.48.237L12.07 4.5h2.18a.75.75 0 010 1.5h-2.42l-.64 4h2.56a.75.75 0 010 1.5h-2.8l-.46 2.869a.75.75 0 01-1.48-.237l.42-2.632H5.45l-.46 2.869a.75.75 0 01-1.48-.237l.42-2.632H1.75a.75.75 0 010-1.5h2.42l.64-4H2.25a.75.75 0 010-1.5h2.8l.46-2.868a.75.75 0 01.858-.622zM9.67 10l.64-4H6.33l-.64 4h3.98z"></path></svg>';A0.registerLanguage("json",vb);we.use({highlight:(e,t)=>{if(t!=="")return A0.highlight(e,{language:t}).value}});function bb({id:e}){const{locale:t}=Ce(),{version:n,changeVersion:r}=yr(),{changeTitle:i}=gn(),{value:s,refresh:o}=br(async()=>await(await fetch(`../../guides/${e}.md`)).text(),[e]),a=ye(()=>{if(!s)return;const x=Y3(s);return i(x==null?void 0:x.title,x==null?void 0:x.versions),x},[s]),l=ye(()=>{var y;const x=Oe.versions.map(k=>k.id);return(y=a==null?void 0:a.versions)==null?void 0:y.sort((k,C)=>x.indexOf(C)-x.indexOf(k))},[a==null?void 0:a.versions]),u=ye(()=>!l||l.includes(n)?n:l[0],[n,a==null?void 0:a.versions]),c=ye(()=>{if(!s)return;const x=[];let y=!1;we.use({extensions:[{name:"styledCode",level:"inline",start(E){var I,S;return(S=(I=E.match(/\b[fsnj]`/))==null?void 0:I.index)!=null?S:-1},tokenizer(E){const I=E.match(/^([fsnj])`([^`]+)`/);if(I)return{type:"styledCode",raw:I[0],prefix:I[1],text:I[2]}},renderer(E){let I=E.text,S={f:"hljs-attr",s:"hljs-string",n:"hljs-number"}[E.prefix];return E.prefix==="j"&&(I=A0.highlight("json",E.text).value,S="language-json"),`<code${S?` class="${S}"`:""}>${I}</code>`}}],walkTokens(E){E.type==="heading"&&x.push(E)},renderer:{link(E,I,S){if(E===null)return S;const T=I?` title="${I}"`:"",L=E!=null&&E.match(/^https?:\/\//)?' target="_blank"':"";return`<a href="${E}"${T}${L}>${S}</a>`},heading(E,I,S,T){let L="";y||(L=`<ol class="guide-toc">${x.filter(z=>z.depth===2).map(z=>{var U,Q;const O=T.slug((Q=(U=z.raw.match(/^#+ (.*)/))==null?void 0:U[1])!=null?Q:"",{dryrun:!0}),$=z.text.replaceAll("`","");return`<li><a href="#${O}">${$}</a></li>`}).join("")}</ol>`,y=!0);const D=T.slug(S),G=`<span id="guide-${D}" href="?version=${n}#${D}">${xb}</span>`;return`${L}<h${I}>${G}${E}</h${I}>`}}});const k=s.substring(s.indexOf("---",3)+3),C=W3(k,u);return we(C,{version:"1.19"})},[u,s]),[d,f]=rw(),h=Fe(()=>{if(!c)return;const x=document.querySelector(`[id=guide-${d.slice(1)}]`);if(x){const y=x.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:y-68,behavior:"smooth"})}},[c,d]);me(()=>{h()},[c===void 0,d]);const w=Fe(x=>{if(!(x.target instanceof HTMLSpanElement))return;const y="#"+x.target.id.replace(/^guide-/,"");r(n,!1,!0),f(y),y===d&&h()},[h,d,n]),[_,m]=uc(),g=Fe(()=>{const x=`${location.origin}/guides/${e}/?version=${n}`;navigator.clipboard.writeText(x),m()},[e,n]),v=Fe(x=>{qr(`/guides/?tags=${x}`)},[]),[b]=X(window.innerWidth>600);return F("main",{children:[F("div",{class:"container guide",children:[F("div",{class:"navigation",children:[F("a",{class:"btn btn-link",href:"/guides/",children:[he.arrow_left,p("span",{children:t("guides.all")})]}),F("a",{class:"btn btn-link",href:"/worldgen/",children:[Bi.worldgen,p("span",{children:t("worldgen")})]}),p("div",{class:"navigation-divider"}),p(oe,{icon:_?"check":"link",label:t("share"),onClick:g,active:_,tooltip:t(_?"copied":"copy_share"),class:"guide-share"}),l&&p(so,{value:u,allowed:l,onChange:r})]}),(a==null?void 0:a.tags)&&a.tags.length>0&&p("div",{class:"badges-list",children:a.tags.map(x=>p(Zi,{label:x,active:!0,onClick:()=>v(x)}))}),c&&F(pe,{children:[p(yf,{id:"guide",type:b?"image":"text"}),p("div",{class:"guide-content",dangerouslySetInnerHTML:{__html:c},onClick:w}),p(_0,{})]})]}),p(On,{})]})}function yb({}){const{locale:e}=Ce(),{version:t,changeVersion:n}=yr();gn(e("title.guides"));const[r,i]=X(""),[s,o]=np(),[a,l]=X(!1),u=ye(()=>a===!1?Lc():Lc().filter(d=>{var f;return(f=d.versions)==null?void 0:f.includes(t)}),[t,a]),c=ye(()=>{const d=r.split(" ").map(f=>f.trim().toLowerCase()).filter(f=>f.length>0);return u.filter(f=>{var w;if(!s.every(_=>{var m;return(m=f.tags)==null?void 0:m.includes(_)}))return!1;const h=((w=f.tags)==null?void 0:w.join(" "))+" "+f.title.toLowerCase();return d.every(_=>_.startsWith("!")?_.length===1||!h.includes(_.slice(1)):h.includes(_))})},[u,r,s]);return F("main",{children:[F("div",{class:"container guides",children:[F("div",{class:"navigation",children:[p(mn,{class:"btn btn-input query-search",placeholder:e("guides.search"),value:r,onChange:i}),p(so,{value:a?t:void 0,onChange:d=>{n(d),l(!0)},hasAny:!0,onAny:()=>l(!1)})]}),s.length>0&&p("div",{class:"badges-list",children:s.map(d=>p(Zi,{label:d,onClick:()=>o(d)}))}),p("div",{class:"card-column",children:u.length===0?p(pe,{children:p("span",{class:"note",children:e("guides.no_results.version")})}):c.length===0?p(pe,{children:p("span",{class:"note",children:e("guides.no_results.query")})}):c.map(d=>p(js,{id:d.id,activeTags:s,toggleTag:o}))})]}),p(On,{})]})}const kb=2,Cb=5;function Eb({}){const{locale:e}=Ce();gn(e("title.home"));const t=fa("(max-width: 580px)");return p("main",{children:F("div",{class:"container",children:[F("div",{class:"card-group",children:[F("div",{class:"card-column",children:[p(Ab,{}),t&&p(zd,{}),p(Ib,{}),t&&p(Ud,{}),p(Sb,{}),t&&p(Hd,{})]}),!t&&F("div",{class:"card-column",children:[p(zd,{}),p(Ud,{}),p(Hd,{})]})]}),p(_0,{}),p(On,{})]})})}function Ab(){const{locale:e}=Ce();return F(vr,{title:e("generators.popular"),link:"/generators/",children:[p(Cn,{minimal:!0,id:"loot_table"}),p(Cn,{minimal:!0,id:"advancement"}),p(Cn,{minimal:!0,id:"predicate"}),p(Yn,{title:e("worldgen"),link:"/worldgen/",titleIcon:"worldgen"}),p(Yn,{title:e("generators.all"),link:"/generators/",titleIcon:"arrow_right"})]})}function zd(){const{locale:e}=Ce(),t=ye(()=>{const n=[];for(const r of ze.getGeneratorHistory().reverse())n.includes(r)||n.push(r);return n.slice(0,Cb)},[]);return t.length<kb?p(pe,{}):p(vr,{title:e("generators.recent"),children:t.map(n=>p(Cn,{minimal:!0,id:n}))})}function Ud(){const{locale:e}=Ce();return F(vr,{title:e("guides"),link:"/guides/",titleIcon:"arrow_right",children:[p(js,{minimal:!0,id:"adding-custom-structures"}),p(js,{minimal:!0,id:"noise-router"})]})}function Hd(){const{locale:e}=Ce();return F(vr,{title:e("tools"),children:[p(Yn,{title:"Report Inspector",icon:"report",link:"https://misode.github.io/report/",desc:"Analyse your performance reports"}),p(Yn,{title:"Minecraft Sounds",icon:"sounds",link:"/sounds/",desc:"Browse through and mix all the vanilla sounds"}),p(Yn,{title:"Data Pack Upgrader",link:"https://misode.github.io/upgrader/",desc:"Convert your data packs from 1.16 to 1.19"})]})}function Sb(){const{locale:e}=Ce(),{value:t}=br(e0,[]),n=ye(()=>t==null?void 0:t.find(r=>r.type==="release"),[t]);return p(vr,{title:e("versions.minecraft_versions"),link:"/versions/",titleIcon:"arrow_right",children:(t==null?void 0:t[0])&&n&&F(pe,{children:[t[0].id!==n.id&&p(Yn,{title:t[0].name,link:`/versions/?id=${t[0].id}`,desc:e("versions.latest_snapshot")}),p(Yn,{title:n.name,link:`/versions/?id=${n.id}`,desc:e("versions.latest_release")})]})})}function Ib(){const{locale:e}=Ce(),t=fa("(min-width: 960px)"),{value:n}=br(t0,[]),r=ye(()=>n==null?void 0:n.sort((i,s)=>s.order-i.order).slice(0,2),[n]);return p(vr,{title:e("changelog"),link:"/changelog/",titleIcon:"git_commit",children:r==null?void 0:r.map(i=>p($2,{minimal:!t,change:i}))})}function Mb({}){const{locale:e}=Ce();return gn(e("title.partners")),F("main",{children:[p("div",{class:"container",children:p(o0,{predicate:t=>t.partner!==void 0})}),p(On,{donate:!1})]})}function Tb({}){const{locale:e}=Ce(),{version:t,changeVersion:n}=yr();gn(e("title.sounds"));const[r,i]=X(void 0);me(()=>{(async()=>{const x=await be(()=>import("./howler.7280839a.js").then(function(y){return y.h}),[]);i(()=>y=>new x.Howl(y))})()},[]);const{value:s,error:o}=br(async()=>await hw(t),[t]),a=ye(()=>Object.keys(s!=null?s:{}),[s]),[l,u]=X(""),[c,d]=X([]),f=()=>{d([{id:Nr(),sound:l,delay:0,pitch:1,volume:1},...c])},h=x=>y=>{d(c.map(k=>k.id===x?fe(fe({},k),y):k))},w=x=>()=>{d(c.filter(y=>y.id!==x))},[_,m]=X(0),g=()=>{m(_+1)},v=Le(null),b=()=>{if(!v.current)return;const x=c.some(k=>k.delay>0),y=c.sort((k,C)=>k.delay-C.delay).map(k=>`${x?`execute if score @s delay matches ${k.delay} run `:""}playsound minecraft:${k.sound} master @s ~ ~ ~ ${k.volume} ${k.pitch}`).join(`
|
|
`);v.current.setAttribute("href","data:text/plain;charset=utf-8,"+y+"%0A"),v.current.setAttribute("download","sounds.mcfunction"),v.current.click()};return F("main",{children:[o&&p(Ei,{error:o}),a.length>0&&F(pe,{children:[F("div",{class:"sounds-controls",children:[F("div",{class:"sound-search-group",children:[p(mn,{class:"btn btn-input sound-search",list:"sound-list",placeholder:e("sounds.search"),value:l,onChange:u,onEnter:f}),p(oe,{icon:"plus",tooltip:e("sounds.add_sound"),class:"add-sound",onClick:f})]}),c.length>1&&p(oe,{icon:"play",label:e("sounds.play_all"),class:"play-all-sounds",onClick:g}),p("div",{class:"spacer"}),p(oe,{icon:"download",label:e("download"),tooltip:e("sounds.download_function"),tooltipLoc:"se",class:"download-sounds",onClick:b}),p(so,{value:t,onChange:n})]}),p("div",{class:"sounds",children:s&&r&&c.map(x=>p(K9,Me(fe({},x),{howler:r,sounds:s,delayedPlay:_,onEdit:h(x.id),onDelete:w(x.id)}),x.id))}),p("a",{ref:v,style:"display: none;"}),p("datalist",{id:"sound-list",children:a.map(x=>p("option",{value:x},x))})]}),p(On,{donate:!1})]})}function Lb({}){const{locale:e}=Ce(),{value:t,error:n}=br(e0,[]),[r]=jr("id"),i=(t!=null?t:[]).find(a=>a.id===r);gn(i?`Minecraft ${i.name}`:"Versions Explorer",i?[]:void 0,i?"Changes and metadata":void 0);const s=i&&Zd(t!=null?t:[],i,-1),o=i&&Zd(t!=null?t:[],i,1);return F("main",{children:[n&&p(Ei,{error:n}),p("div",{class:"container",children:r?F(pe,{children:[F("div",{class:"navigation",children:[p(ss,{link:"/versions/",icon:"three_bars",label:e("versions.all")}),p(ss,{link:o?`/versions/?id=${o.id}`:void 0,icon:"arrow_left",label:e("versions.previous")}),p(ss,{link:s?`/versions/?id=${s.id}`:void 0,icon:"arrow_right",label:e("versions.next"),swapped:!0})]}),p(gx,{id:r,version:i})]}):p(pe,{children:p(xx,{versions:t,link:a=>`/versions/?id=${a}`,navigation:p(ss,{link:"/changelog",icon:"git_commit",label:e("versions.technical_changes")})})})}),p(On,{donate:!1})]})}function Zd(e,t,n){const i=e.findIndex(s=>s.id===t.id)+n;if(!(i<0||i>=e.length))return e[i]}function Ob({}){const{locale:e}=Ce();return gn(e("title.worldgen")),F("main",{children:[F("div",{class:"container worldgen",children:[F("div",{class:"card-group",children:[F(vr,{title:e("generators.popular"),children:[p(Cn,{minimal:!0,id:"dimension"}),p(Cn,{minimal:!0,id:"worldgen/biome"}),p(Cn,{minimal:!0,id:"worldgen/noise_settings"}),p(Cn,{minimal:!0,id:"worldgen/configured_feature"}),p(Cn,{minimal:!0,id:"worldgen/placed_feature"})]}),F(vr,{title:e("guides"),link:"/guides/?tags=worldgen",titleIcon:"arrow_right",children:[p(js,{id:"adding-custom-structures"}),p(js,{id:"placed-features"})]})]}),p(o0,{predicate:t=>{var n;return(n=t.tags)==null?void 0:n.includes("worldgen")}})]}),p(On,{})]})}function Rb(){const e=t=>{window.dispatchEvent(new CustomEvent("replacestate")),setTimeout(()=>Ae.pageview(_r(t.url)))};return F(pe,{children:[p(X9,{}),F(qn,{onChange:e,children:[p(Eb,{path:"/"}),p(kx,{path:"/generators"}),p(Ob,{path:"/worldgen"}),p(Mb,{path:"/partners"}),p(Tb,{path:"/sounds"}),p(bx,{path:"/changelog"}),p(Lb,{path:"/versions"}),p(yb,{path:"/guides"}),p(bb,{path:"/guides/:id"}),p(yx,{default:!0})]})]})}function Nb(){return p(Pw,{children:p(Nw,{children:p($w,{children:p(zw,{children:p(jw,{children:p(Fw,{children:p(Rb,{})})})})})})})}Pr(p(Nb,{}),document.body);export{co as c,d2 as e,P as l,Pb as p};
|
|
//# sourceMappingURL=index.c8f58dcc.js.map
|