PageSourceSearch

https://ephemeral-cheesecake-94204a.netlify.app/bundle-68f950.min.js

js ephemeral-cheesecake-94204a.netlify.app collected 2026-10-03 10:42:18 UTC 2,073,534 bytes, 3,997 lines download raw bytes

vendor: 18,870 bytes, line 1
1!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=167)}([function(e,t,n){"use strict";e.exports=n(170)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(174),t),i(n(175),t),i(n(176),t),i(n(177),t),i(n(178),t),i(n(179),t),i(n(180),t),i(n(181),t),i(n(182),t),i(n(183),t),i(n(184),t),i(n(185),t),i(n(186),t),i(n(187),t),i(n(188),t),i(n(189),t),i(n(190),t),i(n(191),t),i(n(192),t)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Le})),n.d(t,"b",(function(){return ye})),n.d(t,"d",(function(){return Ne}));var r=n(71),i=n(0),o=n.n(i),a=n(136),s=n.n(a),l=n(137),c=n(138),u=n(106),f=n(73),d=n.n(f);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},g=Object.freeze([]),v=Object.freeze({});function y(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var E=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",k="undefined"!=typeof window&&"HTMLElement"in window,x=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY)),S={};function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var A=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&_(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),C=new Map,T=new Map,P=1,O=function(e){if(C.has(e))return C.get(e);for(;T.has(P);)P++;var t=P++;return C.set(e,t),T.set(t,e),t},M=function(e){return T.get(e)},I=function(e,t){t>=P&&(P=t+1),C.set(e,t),T.set(t,e)},R="style["+E+'][data-styled-version="5.3.1"]',L=new RegExp("^"+E+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),N=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},j=function(e,t){for(var n=(t.innerHTML||"").split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(L);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(I(c,l),N(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},B=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},F=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(E))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(E,"active"),r.setAttribute("data-styled-version","5.3.1");var a=B();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},D=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}_(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),z=function(){function e(e){var t=this.element=F(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),U=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),$=k,H={isServer:!k,useCSSOMInjection:!x},J=function(){function e(e,t,n){void 0===e&&(e=v),void 0===t&&(t={}),this.options=h({},H,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&k&&$&&($=!1,function(e){for(var t=document.querySelectorAll(R),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(E)&&(j(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return O(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new U(i):r?new D(i):new z(i),new A(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(O(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(O(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(O(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=M(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var l=E+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),G=/(a)(d)/gi,V=function(e){return String.fromCharCode(e+(e>25?39:97))};function X(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=V(t%52)+n;return(V(t%52)+n).replace(G,"$1-$2")}var W=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},q=function(e){return W(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y(n)&&!w(n))return!1}return!0}var Z=q("5.3.1"),Y=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&K(e),this.componentId=t,this.baseHash=W(Z,t),this.baseStyle=n,J.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=ge(this.rules,e,t,n).join(""),a=X(W(this.baseHash,o)>>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=W(this.baseHash,n.hash),u="",f=0;f<l;f++){var d=this.rules[f];if("string"==typeof d)u+=d;else if(d){var h=ge(d,e,t,n),p=Array.isArray(h)?h.join(""):h;c=W(c,p+f),u+=p}}if(u){var m=X(c>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}i.push(m)}}return i.join(" ")},e}(),Q=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,n,r,i,o=void 0===e?v:e,a=o.options,s=void 0===a?v:a,c=o.plugins,u=void 0===c?g:c,f=new l.a(s),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,c,u,f){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,o){return 0===r&&-1!==ee.indexOf(o[n.length])||o.match(i)?e:"."+t};function m(e,o,a,s){void 0===s&&(s="&");var l=e.replace(Q,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),f(a||!o?"":o,c)}return f.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||_(15),W(e,t.name)}),5381).toString():"",m}var ne=o.a.createContext(),re=(ne.Consumer,o.a.createContext()),ie=(re.Consumer,new J),oe=te();function ae(){return Object(i.useContext)(ne)||ie}function se(){return Object(i.useContext)(re)||oe}function le(e){var t=Object(i.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ae(),l=Object(i.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=Object(i.useMemo)((function(){return te({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(i.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.a.createElement(ne.Provider,{value:l},o.a.createElement(re.Provider,{value:c},e.children))}var ce=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return _(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),ue=/([A-Z])/,fe=/([A-Z])/g,de=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function pe(e){return ue.test(e)?e.replace(fe,he).replace(de,"-ms-"):e}var me=function(e){return null==e||!1===e||""===e};function ge(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=ge(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return me(e)?"":w(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ge(e(t),t,n,r):e instanceof ce?n?(e.inject(n,r),e.getName(r)):e:m(e)?function e(t,n){var r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!me(t[a])&&(Array.isArray(t[a])&&t[a].isCss||y(t[a])?o.push(pe(a)+":",t[a],";"):m(t[a])?o.push.apply(o,e(t[a],a)):o.push(pe(a)+": "+(r=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in c.a?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString();var l}var ve=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ye(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y(e)||m(e)?ve(ge(p(g,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ve(ge(p(e,n)))}new Set;var be=function(e,t,n){return void 0===n&&(n=v),e.theme!==n.theme&&e.theme||t||n.theme},we=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ee=/(^-|-$)/g;function ke(e){return e.replace(we,"-").replace(Ee,"")}var xe=function(e){return X(q(e)>>>0)};function Se(e){return"string"==typeof e&&!0}var _e=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ae=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ce(e,t,n){var r=e[n];_e(t)&&_e(r)?Te(r,t):e[n]=t}function Te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(_e(a))for(var s in a)Ae(s)&&Ce(e,a[s],s)}return e}var Pe=o.a.createContext();Pe.Consumer;var Oe={};function Me(e,t,n){var r=w(e),a=!Se(e),s=t.attrs,l=void 0===s?g:s,c=t.componentId,f=void 0===c?function(e,t){var n="string"!=typeof e?"sc":ke(e);Oe[n]=(Oe[n]||0)+1;var r=n+"-"+xe("5.3.1"+n+Oe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,p=t.displayName,m=void 0===p?function(e){return Se(e)?"styled."+e:"Styled("+b(e)+")"}(e):p,E=t.displayName&&t.componentId?ke(t.displayName)+"-"+t.componentId:t.componentId||f,k=r&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,x=t.shouldForwardProp;r&&e.shouldForwardProp&&(x=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var S,_=new Y(n,E,r?e.componentStyle:void 0),A=_.isStatic&&0===l.length,C=function(e,t){return function(e,t,n,r){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,f=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=v);var r=h({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in y(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(be(t,Object(i.useContext)(Pe),s)||v,t,o),m=p[0],g=p[1],b=function(e,t,n,r){var i=ae(),o=se();return t?e.generateAndInjectStyles(v,i,o):e.generateAndInjectStyles(n,i,o)}(a,r,m),w=n,E=g.$as||t.$as||g.as||t.as||d,k=Se(E),x=g!==t?h({},t,{},g):t,S={};for(var _ in x)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?S.as=x[_]:(c?c(_,u.a,E):!k||Object(u.a)(_))&&(S[_]=x[_]));return t.style&&g.style!==t.style&&(S.style=h({},t.style,{},g.style)),S.className=Array.prototype.concat(l,f,b!==f?b:null,t.className,g.className).filter(Boolean).join(" "),S.ref=w,Object(i.createElement)(E,S)}(S,e,t,A)};return C.displayName=m,(S=o.a.forwardRef(C)).attrs=k,S.componentStyle=_,S.displayName=m,S.shouldForwardProp=x,S.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,S.styledComponentId=E,S.target=r?e.target:e,S.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Se(e)?e:ke(b(e)));return Me(e,h({},i,{attrs:k,componentId:o}),n)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Te({},e.defaultProps,t):t}}),S.toString=function(){return"."+S.styledComponentId},a&&d()(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var Ie=function(e){return function e(t,n,i){if(void 0===i&&(i=v),!Object(r.isValidElementType)(n))return _(1,String(n));var o=function(){return t(n,i,ye.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,h({},i,{},r))},o.attrs=function(r){return e(t,n,h({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},o}(Me,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ie[e]=Ie(e)}));var Re=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),J.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(ge(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&J.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=ye.apply(void 0,[e].concat(n)),s="sc-global-"+xe(JSON.stringify(a)),l=new Re(a,s);function c(e){var t=ae(),n=se(),r=Object(i.useContext)(Pe),o=Object(i.useRef)(t.allocateGSInstance(s)).current;return t.server&&u(o,e,t,r,n),Object(i.useLayoutEffect)((function(){if(!t.server)return u(o,e,t,r,n),function(){return l.removeStyles(o,t)}}),[o,e,t,r,n]),null}function u(e,t,n,r,i){if(l.isStatic)l.renderStyles(e,S,n,i);else{var o=h({},t,{theme:be(t,r,c.defaultProps)});
1l.renderStyles(e,o,n,i)}}return o.a.memo(c)}function Ne(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=ye.apply(void 0,[e].concat(n)).join(""),o=xe(i);return new ce(o,i)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=B();return"<style "+[n&&'nonce="'+n+'"',E+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?_(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return _(2);var n=((t={})[E]="",t["data-styled-version"]="5.3.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=B();return r&&(n.nonce=r),[o.a.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new J({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?_(2):o.a.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return _(3)}}();t.c=Ie}).call(this,n(88))},function(e,t,n){"use strict";n.d(t,"k",(function(){return a})),n.d(t,"j",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"o",(function(){return u})),n.d(t,"p",(function(){return f})),n.d(t,"l",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"g",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"h",(function(){return b})),n.d(t,"n",(function(){return w})),n.d(t,"m",(function(){return E}));const r=new(n(5).b)("bytes/5.4.0");function i(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function a(e){return d(e)&&!(e.length%2)||s(e)}function s(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(null==e.length)return!1;for(let t=0;t<e.length;t++){const n=e[t];if("number"!=typeof n||n<0||n>=256||n%1)return!1}return!0}function l(e,t){if(t||(t={}),"number"==typeof e){r.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),o(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),d(e)){let n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0x0"+n.substring(2):"right"===t.hexPad?n+="0":r.throwArgumentError("hex data is odd-length","value",e));const i=[];for(let e=0;e<n.length;e+=2)i.push(parseInt(n.substring(e,e+2),16));return o(new Uint8Array(i))}return s(e)?o(new Uint8Array(e)):r.throwArgumentError("invalid arrayify value","value",e)}function c(e){const t=e.map(e=>l(e)),n=t.reduce((e,t)=>e+t.length,0),r=new Uint8Array(n);return t.reduce((e,t)=>(r.set(t,e),e+t.length),0),o(r)}function u(e){let t=l(e);if(0===t.length)return t;let n=0;for(;n<t.length&&0===t[n];)n++;return n&&(t=t.slice(n)),t}function f(e,t){(e=l(e)).length>t&&r.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(t);return n.set(e,t-e.length),o(n)}function d(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}function h(e,t){if(t||(t={}),"number"==typeof e){r.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t="0123456789abcdef"[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e))return e.toHexString();if(d(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":r.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(s(e)){let t="0x";for(let n=0;n<e.length;n++){let r=e[n];t+="0123456789abcdef"[(240&r)>>4]+"0123456789abcdef"[15&r]}return t}return r.throwArgumentError("invalid hexlify value","value",e)}function p(e){if("string"!=typeof e)e=h(e);else if(!d(e)||e.length%2)return null;return(e.length-2)/2}function m(e,t,n){return"string"!=typeof e?e=h(e):(!d(e)||e.length%2)&&r.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function g(e){let t="0x";
1return e.forEach(e=>{t+=h(e).substring(2)}),t}function v(e){const t=y(h(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function y(e){"string"!=typeof e&&(e=h(e)),d(e)||r.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function b(e,t){for("string"!=typeof e?e=h(e):d(e)||r.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&r.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function w(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(a(e)){const n=l(e);65!==n.length&&r.throwArgumentError("invalid signature string; must be 65 bytes","signature",e),t.r=h(n.slice(0,32)),t.s=h(n.slice(32,64)),t.v=n[64],t.v<27&&(0===t.v||1===t.v?t.v+=27:r.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=h(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const n=f(l(t._vs),32);t._vs=h(n);const i=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;const o=h(n);null==t.s?t.s=o:t.s!==o&&r.throwArgumentError("signature v mismatch _vs","signature",e)}null==t.recoveryParam?null==t.v?r.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2:null==t.v?t.v=27+t.recoveryParam:t.recoveryParam!==1-t.v%2&&r.throwArgumentError("signature recoveryParam mismatch v","signature",e),null!=t.r&&d(t.r)?t.r=b(t.r,32):r.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&d(t.s)?t.s=b(t.s,32):r.throwArgumentError("signature missing or invalid s","signature",e);const n=l(t.s);n[0]>=128&&r.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(n[0]|=128);const i=h(n);t._vs&&(d(t._vs)||r.throwArgumentError("signature invalid _vs","signature",e),t._vs=b(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&r.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t}function E(e){return h(c([(e=w(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return p}));var r=n(5);var i=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const o=new r.b("properties/5.4.1");function a(e,t,n){Object.defineProperty(e,t,{enumerable:!0,value:n,writable:!1})}function s(e,t){for(let n=0;n<32;n++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function l(e){return i(this,void 0,void 0,(function*(){const t=Object.keys(e).map(t=>{const n=e[t];return Promise.resolve(n).then(e=>({key:t,value:e}))});return(yield Promise.all(t)).reduce((e,t)=>(e[t.key]=t.value,e),{})}))}function c(e,t){e&&"object"==typeof e||o.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(n=>{t[n]||o.throwArgumentError("invalid object key - "+n,"transaction:"+n,e)})}function u(e){const t={};for(const n in e)t[n]=e[n];return t}const f={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function d(e){if(function e(t){if(null==t||f[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;const n=Object.keys(t);for(let r=0;r<n.length;r++){let i=null;try{i=t[n[r]]}catch(e){continue}if(!e(i))return!1}return!0}return o.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>h(e)));if("object"==typeof e){const t={};for(const n in e){const r=e[n];void 0!==r&&a(t,n,h(r))}return t}return o.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function h(e){return d(e)}class p{constructor(e){for(const t in e)this[t]=h(e[t])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));let r=!1,i=!1;const o={debug:1,default:2,info:2,warning:3,error:4,off:5};let a=o.default,s=null;const l=function(){try{const e=[];
vendor: 4,142 bytes, line 1
1if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(n){e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var c,u;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(c||(c={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(u||(u={}));const f="0123456789abcdef";class d{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const n=e.toLowerCase();null==o[n]&&this.throwArgumentError("invalid log level name","logLevel",e),a>o[n]||console.log.apply(console,t)}debug(...e){this._log(d.levels.DEBUG,e)}info(...e){this._log(d.levels.INFO,e)}warn(...e){this._log(d.levels.WARNING,e)}makeError(e,t,n){if(i)return this.makeError("censored error",t,{});t||(t=d.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach(e=>{const t=n[e];try{if(t instanceof Uint8Array){let n="";for(let e=0;e<t.length;e++)n+=f[t[e]>>4],n+=f[15&t[e]];r.push(e+"=Uint8Array(0x"+n+")")}else r.push(e+"="+JSON.stringify(t))}catch(t){r.push(e+"="+JSON.stringify(n[e].toString()))}}),r.push("code="+t),r.push("version="+this.version);const o=e;r.length&&(e+=" ("+r.join(", ")+")");const a=new Error(e);return a.reason=o,a.code=t,Object.keys(n).forEach((function(e){a[e]=n[e]})),a}throwError(e,t,n){throw this.makeError(e,t,n)}throwArgumentError(e,t,n){return this.throwError(e,d.errors.INVALID_ARGUMENT,{argument:t,value:n})}assert(e,t,n,r){e||this.throwError(t,n,r)}assertArgument(e,t,n,r){e||this.throwArgumentError(t,n,r)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",d.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,n){n=n?": "+n:"",e<t&&this.throwError("missing argument"+n,d.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+n,d.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",d.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",d.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",d.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return s||(s=new d("logger/5.4.1")),s}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),r){if(!e)return;this.globalLogger().throwError("error censorship permanent",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!e,r=!!t}static setLogLevel(e){const t=o[e.toLowerCase()];null!=t?a=t:d.globalLogger().warn("invalid log level - "+e)}static from(e){return new d(e)}}d.errors=u,d.levels=c},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PLANET_CLAIM_MIN_LEVEL=t.RECOMMENDED_MODAL_WIDTH=t.GAS_PRICES_INTERVAL_MS=t.BLOCK_EXPLORER_URL=t.MAX_AUTO_GAS_PRICE_GWEI=t.DEFAULT_GAS_PRICES=t.GAS_PRICE_API=t.MAX_BIOME=t.MIN_BIOME=t.MAX_PLANET_LEVEL=t.MIN_PLANET_LEVEL=t.MAX_ARTIFACT_RARITY=t.MIN_ARTIFACT_RARITY=t.MAX_ARTIFACT_TYPE=t.MIN_ARTIFACT_TYPE=t.EMPTY_ARTIFACT_ID=t.EMPTY_LOCATION_ID=t.EMPTY_ADDRESS=t.LOCATION_ID_UB=t.DEFAULT_MAX_CALL_RETRIES=t.CONTRACT_PRECISION=void 0;const i=n(1),o=r(n(8));t.CONTRACT_PRECISION=1e3,t.DEFAULT_MAX_CALL_RETRIES=12,t.LOCATION_ID_UB=(0,o.default)("21888242871839275222246405745257275088548364400416034343698204186575808495617"),t.EMPTY_ADDRESS="0x0000000000000000000000000000000000000000",t.EMPTY_LOCATION_ID="0000000000000000000000000000000000000000000000000000000000000000",t.EMPTY_ARTIFACT_ID="0000000000000000000000000000000000000000000000000000000000000000",t.MIN_ARTIFACT_TYPE=i.ArtifactType.Monolith,t.MAX_ARTIFACT_TYPE=i.ArtifactType.BlackDomain,t.MIN_ARTIFACT_RARITY=i.ArtifactRarity.Common,t.MAX_ARTIFACT_RARITY=i.ArtifactRarity.Mythic,t.MIN_PLANET_LEVEL=i.PlanetLevel.ZERO,t.MAX_PLANET_LEVEL=i.PlanetLevel.NINE,t.MIN_BIOME=i.Biome.OCEAN,t.MAX_BIOME=i.Biome.CORRUPTED,t.GAS_PRICE_API="",t.DEFAULT_GAS_PRICES={slow:50,average:50,fast:50},t.MAX_AUTO_GAS_PRICE_GWEI=500,t.BLOCK_EXPLORER_URL="https://explorer.ps.hmny.io/",t.GAS_PRICES_INTERVAL_MS=6e4,t.RECOMMENDED_MODAL_WIDTH="400px",t.PLANET_CLAIM_MIN_LEVEL=3},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(55),t),i(n(216),t),i(n(115),t),i(n(217),t),i(n(218),t),i(n(56),t),i(n(219),t),i(n(220),t),i(n(221),t),i(n(116),t)},function(e,t,n){(function(e){var r,i=function(e){"use strict";var t=1e7,n=9007199254740992,r=f(n),o="function"==typeof BigInt;function a(e,t,n,r){return void 0===e?a[0]:void 0!==t&&(10!=+t||n)?z(e,t,n,r):G(e)}function s(e,t){this.value=e,this.sign=t,this.isSmall=!1}function l(e){this.value=e,this.sign=e<0,this.isSmall=!0}function c(e){this.value=e}function u(e){return-n<e&&e<n}function f(e){return e<1e7?[e]:e<1e14?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function d(e){h(e);var n=e.length;if(n<4&&T(e,r)<0)switch(n){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}return e}function h(e){for(var t=e.length;0===e[--t];);e.length=t+1}function p(e){for(var t=new Array(e),n=-1;++n<e;)t[n]=0;return t}function m(e){return e>0?Math.floor(e):Math.ceil(e)}function g(e,n){var r,i,o=e.length,a=n.length,s=new Array(o),l=0,c=t;for(i=0;i<a;i++)l=(r=e[i]+n[i]+l)>=c?1:0,s[i]=r-l*c;for(;i<o;)l=(r=e[i]+l)===c?1:0,s[i++]=r-l*c;return l>0&&s.push(l),s}function v(e,t){return e.length>=t.length?g(e,t):g(t,e)}function y(e,n){var r,i,o=e.length,a=new Array(o),s=t;for(i=0;i<o;i++)r=e[i]-s+n,n=Math.floor(r/s),a[i]=r-n*s,n+=1;for(;n>0;)a[i++]=n%s,n=Math.floor(n/s);return a}function b(e,t){var n,r,i=e.length,o=t.length,a=new Array(i),s=0;for(n=0;n<o;n++)(r=e[n]-s-t[n])<0?(r+=1e7,s=1):s=0,a[n]=r;for(n=o;n<i;n++){if(!((r=e[n]-s)<0)){a[n++]=r;break}r+=1e7,a[n]=r}for(;n<i;n++)a[n]=e[n];return h(a),a}function w(e,t,n){var r,i,o=e.length,a=new Array(o),c=-t;for(r=0;r<o;r++)i=e[r]+c,c=Math.floor(i/1e7),i%=1e7,a[r]=i<0?i+1e7:i;return"number"==typeof(a=d(a))?(n&&(a=-a),new l(a)):new s(a,n)}function E(e,t){var n,r,i,o,a=e.length,s=t.length,l=p(a+s);for(i=0;i<a;
vendor: 19,954 bytes, line 1
1++i){o=e[i];for(var c=0;c<s;++c)n=o*t[c]+l[i+c],r=Math.floor(n/1e7),l[i+c]=n-1e7*r,l[i+c+1]+=r}return h(l),l}function k(e,n){var r,i,o=e.length,a=new Array(o),s=t,l=0;for(i=0;i<o;i++)r=e[i]*n+l,l=Math.floor(r/s),a[i]=r-l*s;for(;l>0;)a[i++]=l%s,l=Math.floor(l/s);return a}function x(e,t){for(var n=[];t-- >0;)n.push(0);return n.concat(e)}function S(e,n,r){return new s(e<t?k(n,e):E(n,f(e)),r)}function _(e){var t,n,r,i,o=e.length,a=p(o+o);for(r=0;r<o;r++){n=0-(i=e[r])*i;for(var s=r;s<o;s++)t=i*e[s]*2+a[r+s]+n,n=Math.floor(t/1e7),a[r+s]=t-1e7*n;a[r+o]=n}return h(a),a}function A(e,t){var n,r,i,o,a=e.length,s=p(a);for(i=0,n=a-1;n>=0;--n)i=(o=1e7*i+e[n])-(r=m(o/t))*t,s[n]=0|r;return[s,0|i]}function C(e,n){var r,i=G(n);if(o)return[new c(e.value/i.value),new c(e.value%i.value)];var u,g=e.value,v=i.value;if(0===v)throw new Error("Cannot divide by zero");if(e.isSmall)return i.isSmall?[new l(m(g/v)),new l(g%v)]:[a[0],e];if(i.isSmall){if(1===v)return[e,a[0]];if(-1==v)return[e.negate(),a[0]];var y=Math.abs(v);if(y<t){u=d((r=A(g,y))[0]);var w=r[1];return e.sign&&(w=-w),"number"==typeof u?(e.sign!==i.sign&&(u=-u),[new l(u),new l(w)]):[new s(u,e.sign!==i.sign),new l(w)]}v=f(y)}var E=T(g,v);if(-1===E)return[a[0],e];if(0===E)return[a[e.sign===i.sign?1:-1],a[0]];u=(r=g.length+v.length<=200?function(e,n){var r,i,o,a,s,l,c,u=e.length,f=n.length,h=t,m=p(n.length),g=n[f-1],v=Math.ceil(h/(2*g)),y=k(e,v),b=k(n,v);for(y.length<=u&&y.push(0),b.push(0),g=b[f-1],i=u-f;i>=0;i--){for(r=h-1,y[i+f]!==g&&(r=Math.floor((y[i+f]*h+y[i+f-1])/g)),o=0,a=0,l=b.length,s=0;s<l;s++)o+=r*b[s],c=Math.floor(o/h),a+=y[i+s]-(o-c*h),o=c,a<0?(y[i+s]=a+h,a=-1):(y[i+s]=a,a=0);for(;0!==a;){for(r-=1,o=0,s=0;s<l;s++)(o+=y[i+s]-h+b[s])<0?(y[i+s]=o+h,o=0):(y[i+s]=o,o=1);a+=o}m[i]=r}return y=A(y,v)[0],[d(m),d(y)]}(g,v):function(e,t){for(var n,r,i,o,a,s=e.length,l=t.length,c=[],u=[];s;)if(u.unshift(e[--s]),h(u),T(u,t)<0)c.push(0);else{i=1e7*u[(r=u.length)-1]+u[r-2],o=1e7*t[l-1]+t[l-2],r>l&&(i=1e7*(i+1)),n=Math.ceil(i/o);do{if(T(a=k(t,n),u)<=0)break;n--}while(n);c.push(n),u=b(u,a)}return c.reverse(),[d(c),d(u)]}(g,v))[0];var x=e.sign!==i.sign,S=r[1],_=e.sign;return"number"==typeof u?(x&&(u=-u),u=new l(u)):u=new s(u,x),"number"==typeof S?(_&&(S=-S),S=new l(S)):S=new s(S,_),[u,S]}function T(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}function P(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function O(e,t){for(var n,r,o,a=e.prev(),s=a,l=0;s.isEven();)s=s.divide(2),l++;e:for(r=0;r<t.length;r++)if(!e.lesser(t[r])&&!(o=i(t[r]).modPow(s,e)).isUnit()&&!o.equals(a)){for(n=l-1;0!=n;n--){if((o=o.square().mod(e)).isUnit())return!1;if(o.equals(a))continue e}return!1}return!0}s.prototype=Object.create(a.prototype),l.prototype=Object.create(a.prototype),c.prototype=Object.create(a.prototype),s.prototype.add=function(e){var t=G(e);if(this.sign!==t.sign)return this.subtract(t.negate());var n=this.value,r=t.value;return t.isSmall?new s(y(n,Math.abs(r)),this.sign):new s(v(n,r),this.sign)},s.prototype.plus=s.prototype.add,l.prototype.add=function(e){var t=G(e),n=this.value;if(n<0!==t.sign)return this.subtract(t.negate());var r=t.value;if(t.isSmall){if(u(n+r))return new l(n+r);r=f(Math.abs(r))}return new s(y(r,Math.abs(n)),n<0)},l.prototype.plus=l.prototype.add,c.prototype.add=function(e){return new c(this.value+G(e).value)},c.prototype.plus=c.prototype.add,s.prototype.subtract=function(e){var t=G(e);if(this.sign!==t.sign)return this.add(t.negate());var n=this.value,r=t.value;return t.isSmall?w(n,Math.abs(r),this.sign):function(e,t,n){var r;return T(e,t)>=0?r=b(e,t):(r=b(t,e),n=!n),"number"==typeof(r=d(r))?(n&&(r=-r),new l(r)):new s(r,n)}(n,r,this.sign)},s.prototype.minus=s.prototype.subtract,l.prototype.subtract=function(e){var t=G(e),n=this.value;if(n<0!==t.sign)return this.add(t.negate());var r=t.value;return t.isSmall?new l(n-r):w(r,Math.abs(n),n>=0)},l.prototype.minus=l.prototype.subtract,c.prototype.subtract=function(e){return new c(this.value-G(e).value)},c.prototype.minus=c.prototype.subtract,s.prototype.negate=function(){return new s(this.value,!this.sign)},l.prototype.negate=function(){var e=this.sign,t=new l(-this.value);return t.sign=!e,t},c.prototype.negate=function(){return new c(-this.value)},s.prototype.abs=function(){return new s(this.value,!1)},l.prototype.abs=function(){return new l(Math.abs(this.value))},c.prototype.abs=function(){return new c(this.value>=0?this.value:-this.value)},s.prototype.multiply=function(e){var n,r,i,o=G(e),l=this.value,c=o.value,u=this.sign!==o.sign;if(o.isSmall){if(0===c)return a[0];if(1===c)return this;if(-1===c)return this.negate();if((n=Math.abs(c))<t)return new s(k(l,n),u);c=f(n)}return r=l.length,i=c.length,new s(-.012*r-.012*i+15e-6*r*i>0?function e(t,n){var r=Math.max(t.length,n.length);if(r<=30)return E(t,n);r=Math.ceil(r/2);var i=t.slice(r),o=t.slice(0,r),a=n.slice(r),s=n.slice(0,r),l=e(o,s),c=e(i,a),u=e(v(o,i),v(s,a)),f=v(v(l,x(b(b(u,l),c),r)),x(c,2*r));return h(f),f}(l,c):E(l,c),u)},s.prototype.times=s.prototype.multiply,l.prototype._multiplyBySmall=function(e){return u(e.value*this.value)?new l(e.value*this.value):S(Math.abs(e.value),f(Math.abs(this.value)),this.sign!==e.sign)},s.prototype._multiplyBySmall=function(e){return 0===e.value?a[0]:1===e.value?this:-1===e.value?this.negate():S(Math.abs(e.value),this.value,this.sign!==e.sign)},l.prototype.multiply=function(e){return G(e)._multiplyBySmall(this)},l.prototype.times=l.prototype.multiply,c.prototype.multiply=function(e){return new c(this.value*G(e).value)},c.prototype.times=c.prototype.multiply,s.prototype.square=function(){return new s(_(this.value),!1)},l.prototype.square=function(){var e=this.value*this.value;return u(e)?new l(e):new s(_(f(Math.abs(this.value))),!1)},c.prototype.square=function(e){return new c(this.value*this.value)},s.prototype.divmod=function(e){var t=C(this,e);return{quotient:t[0],remainder:t[1]}},c.prototype.divmod=l.prototype.divmod=s.prototype.divmod,s.prototype.divide=function(e){return C(this,e)[0]},c.prototype.over=c.prototype.divide=function(e){return new c(this.value/G(e).value)},l.prototype.over=l.prototype.divide=s.prototype.over=s.prototype.divide,s.prototype.mod=function(e){return C(this,e)[1]},c.prototype.mod=c.prototype.remainder=function(e){return new c(this.value%G(e).value)},l.prototype.remainder=l.prototype.mod=s.prototype.remainder=s.prototype.mod,s.prototype.pow=function(e){var t,n,r,i=G(e),o=this.value,s=i.value;if(0===s)return a[1];if(0===o)return a[0];if(1===o)return a[1];if(-1===o)return i.isEven()?a[1]:a[-1];if(i.sign)return a[0];if(!i.isSmall)throw new Error("The exponent "+i.toString()+" is too large.");if(this.isSmall&&u(t=Math.pow(o,s)))return new l(m(t));for(n=this,r=a[1];!0&s&&(r=r.times(n),--s),0!==s;)s/=2,n=n.square();return r},l.prototype.pow=s.prototype.pow,c.prototype.pow=function(e){var t=G(e),n=this.value,r=t.value,i=BigInt(0),o=BigInt(1),s=BigInt(2);if(r===i)return a[1];if(n===i)return a[0];if(n===o)return a[1];if(n===BigInt(-1))return t.isEven()?a[1]:a[-1];if(t.isNegative())return new c(i);for(var l=this,u=a[1];(r&o)===o&&(u=u.times(l),--r),r!==i;)r/=s,l=l.square();return u},s.prototype.modPow=function(e,t){if(e=G(e),(t=G(t)).isZero())throw new Error("Cannot take modPow with modulus 0");var n=a[1],r=this.mod(t);for(e.isNegative()&&(e=e.multiply(a[-1]),r=r.modInv(t));e.isPositive();){if(r.isZero())return a[0];e.isOdd()&&(n=n.multiply(r).mod(t)),e=e.divide(2),r=r.square().mod(t)}return n},c.prototype.modPow=l.prototype.modPow=s.prototype.modPow,s.prototype.compareAbs=function(e){var t=G(e),n=this.value,r=t.value;return t.isSmall?1:T(n,r)},l.prototype.compareAbs=function(e){var t=G(e),n=Math.abs(this.value),r=t.value;return t.isSmall?n===(r=Math.abs(r))?0:n>r?1:-1:-1},c.prototype.compareAbs=function(e){var t=this.value,n=G(e).value;return(t=t>=0?t:-t)===(n=n>=0?n:-n)?0:t>n?1:-1},s.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=G(e),n=this.value,r=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:T(n,r)*(this.sign?-1:1)},s.prototype.compareTo=s.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=G(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0!==t.sign?n<0?-1:1:n<0?1:-1},l.prototype.compareTo=l.prototype.compare,c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=G(e).value;return t===n?0:t>n?1:-1},c.prototype.compareTo=c.prototype.compare,s.prototype.equals=function(e){return 0===this.compare(e)},c.prototype.eq=c.prototype.equals=l.prototype.eq=l.prototype.equals=s.prototype.eq=s.prototype.equals,s.prototype.notEquals=function(e){return 0!==this.compare(e)},c.prototype.neq=c.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=s.prototype.neq=s.prototype.notEquals,s.prototype.greater=function(e){return this.compare(e)>0},c.prototype.gt=c.prototype.greater=l.prototype.gt=l.prototype.greater=s.prototype.gt=s.prototype.greater,s.prototype.lesser=function(e){return this.compare(e)<0},c.prototype.lt=c.prototype.lesser=l.prototype.lt=l.prototype.lesser=s.prototype.lt=s.prototype.lesser,s.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},c.prototype.geq=c.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals,s.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},c.prototype.leq=c.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals,s.prototype.isEven=function(){return 0==(1&this.value[0])},l.prototype.isEven=function(){return 0==(1&this.value)},c.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},s.prototype.isOdd=function(){return 1==(1&this.value[0])},l.prototype.isOdd=function(){return 1==(1&this.value)},c.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},s.prototype.isPositive=function(){return!this.sign},l.prototype.isPositive=function(){return this.value>0},c.prototype.isPositive=l.prototype.isPositive,s.prototype.isNegative=function(){return this.sign},l.prototype.isNegative=function(){return this.value<0},c.prototype.isNegative=l.prototype.isNegative,s.prototype.isUnit=function(){return!1},l.prototype.isUnit=function(){return 1===Math.abs(this.value)},c.prototype.isUnit=function(){return this.abs().value===BigInt(1)},s.prototype.isZero=function(){return!1},l.prototype.isZero=function(){return 0===this.value},c.prototype.isZero=function(){return this.value===BigInt(0)},s.prototype.isDivisibleBy=function(e){var t=G(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},c.prototype.isDivisibleBy=l.prototype.isDivisibleBy=s.prototype.isDivisibleBy,s.prototype.isPrime=function(e){var t=P(this);if(void 0!==t)return t;var n=this.abs(),r=n.bitLength();if(r<=64)return O(n,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var o=Math.log(2)*r.toJSNumber(),a=Math.ceil(!0===e?2*Math.pow(o,2):o),s=[],l=0;l<a;l++)s.push(i(l+2));return O(n,s)},c.prototype.isPrime=l.prototype.isPrime=s.prototype.isPrime,s.prototype.isProbablePrime=function(e,t){var n=P(this);if(void 0!==n)return n;for(var r=this.abs(),o=void 0===e?5:e,a=[],s=0;s<o;s++)a.push(i.randBetween(2,r.minus(2),t));return O(r,a)},c.prototype.isProbablePrime=l.prototype.isProbablePrime=s.prototype.isProbablePrime,s.prototype.modInv=function(e){for(var t,n,r,o=i.zero,a=i.one,s=G(e),l=this.abs();!l.isZero();)t=s.divide(l),n=o,r=s,o=a,s=l,a=n.subtract(t.multiply(a)),l=r.subtract(t.multiply(l));if(!s.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");return-1===o.compare(0)&&(o=o.add(e)),this.isNegative()?o.negate():o},c.prototype.modInv=l.prototype.modInv=s.prototype.modInv,s.prototype.next=function(){var e=this.value;return this.sign?w(e,1,this.sign):new s(y(e,1),this.sign)},l.prototype.next=function(){var e=this.value;return e+1<n?new l(e+1):new s(r,!1)},c.prototype.next=function(){return new c(this.value+BigInt(1))},s.prototype.prev=function(){var e=this.value;return this.sign?new s(y(e,1),!0):w(e,1,this.sign)},l.prototype.prev=function(){var e=this.value;return e-1>-n?new l(e-1):new s(r,!0)},c.prototype.prev=function(){return new c(this.value-BigInt(1))};for(var M=[1];2*M[M.length-1]<=t;)M.push(2*M[M.length-1]);var I=M.length,R=M[I-1];function L(e){return Math.abs(e)<=t}function N(e,t,n){t=G(t);for(var r=e.isNegative(),o=t.isNegative(),a=r?e.not():e,s=o?t.not():t,l=0,c=0,u=null,f=null,d=[];!a.isZero()||!s.isZero();)l=(u=C(a,R))[1].toJSNumber(),r&&(l=R-1-l),c=(f=C(s,R))[1].toJSNumber(),o&&(c=R-1-c),a=u[0],s=f[0],d.push(n(l,c));for(var h=0!==n(r?1:0,o?1:0)?i(-1):i(0),p=d.length-1;p>=0;p-=1)h=h.multiply(R).add(i(d[p]));return h}s.prototype.shiftLeft=function(e){var t=G(e).toJSNumber();if(!L(t))throw new Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=I;)n=n.multiply(R),t-=I-1;return n.multiply(M[t])},c.prototype.shiftLeft=l.prototype.shiftLeft=s.prototype.shiftLeft,s.prototype.shiftRight=function(e){var t,n=G(e).toJSNumber();if(!L(n))throw new Error(String(n)+" is too large for shifting.");if(n<0)return this.shiftLeft(-n);for(var r=this;n>=I;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;r=(t=C(r,R))[1].isNegative()?t[0].prev():t[0],n-=I-1}return(t=C(r,M[n]))[1].isNegative()?t[0].prev():t[0]},c.prototype.shiftRight=l.prototype.shiftRight=s.prototype.shiftRight,s.prototype.not=function(){return this.negate().prev()},c.prototype.not=l.prototype.not=s.prototype.not,s.prototype.and=function(e){return N(this,e,(function(e,t){return e&t}))},c.prototype.and=l.prototype.and=s.prototype.and,s.prototype.or=function(e){return N(this,e,(function(e,t){return e|t}))},c.prototype.or=l.prototype.or=s.prototype.or,s.prototype.xor=function(e){return N(this,e,(function(e,t){return e^t}))},c.prototype.xor=l.prototype.xor=s.prototype.xor;function j(e){var n=e.value,r="number"==typeof n?n|1<<30:"bigint"==typeof n?n|BigInt(1<<30):n[0]+n[1]*t|1073758208;return r&-r}function B(e,t){return e=G(e),t=G(t),e.greater(t)?e:t}function F(e,t){return e=G(e),t=G(t),e.lesser(t)?e:t}function D(e,t){if(e=G(e).abs(),t=G(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n,r,i=a[1];e.isEven()&&t.isEven();)n=F(j(e),j(t)),e=e.divide(n),t=t.divide(n),i=i.multiply(n);for(;e.isEven();)e=e.divide(j(e));do{for(;t.isEven();)t=t.divide(j(t));e.greater(t)&&(r=t,t=e,e=r),t=t.subtract(e)}while(!t.isZero());return i.isUnit()?e:e.multiply(i)}s.prototype.bitLength=function(){var e=this;return e.compareTo(i(0))<0&&(e=e.negate().subtract(i(1))),0===e.compareTo(i(0))?i(0):i(function e(t,n){if(n.compareTo(t)<=0){var r=e(t,n.square(n)),o=r.p,a=r.e,s=o.multiply(n);return s.compareTo(t)<=0?{p:s,e:2*a+1}:{p:o,e:2*a}}return{p:i(1),e:0}}(e,i(2)).e).add(i(1))},c.prototype.bitLength=l.prototype.bitLength=s.prototype.bitLength;var z=function(e,t,n,r){n=n||"0123456789abcdefghijklmnopqrstuvwxyz",e=String(e),r||(e=e.toLowerCase(),n=n.toLowerCase());var i,o=e.length,a=Math.abs(t),s={};for(i=0;i<n.length;i++)s[n[i]]=i;for(i=0;i<o;i++){if("-"!==(u=e[i])&&(u in s&&s[u]>=a)){if("1"===u&&1===a)continue;throw new Error(u+" is not a valid digit in base "+t+".")}}t=G(t);var l=[],c="-"===e[0];for(i=c?1:0;i<e.length;i++){var u;if((u=e[i])in s)l.push(G(s[u]));else{if("<"!==u)throw new Error(u+" is not a valid character");var f=i;do{i++}while(">"!==e[i]&&i<e.length);l.push(G(e.slice(f+1,i)))}}return U(l,t,c)};function U(e,t,n){var r,i=a[0],o=a[1];for(r=e.length-1;r>=0;r--)i=i.add(e[r].times(o)),o=o.times(t);return n?i.negate():i}function $(e,t){if((t=i(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var r=!1;if(e.isNegative()&&t.isPositive()&&(r=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:r};for(var o,a=[],s=e;s.isNegative()||s.compareAbs(t)>=0;){o=s.divmod(t),s=o.quotient;var l=o.remainder;l.isNegative()&&(l=t.minus(l).abs(),s=s.next()),a.push(l.toJSNumber())}return a.push(s.toJSNumber()),{value:a.reverse(),isNegative:r}}function H(e,t,n){var r=$(e,t);return(r.isNegative?"-":"")+r.value.map((function(e){return function(e,t){return e<(t=t||"0123456789abcdefghijklmnopqrstuvwxyz").length?t[e]:"<"+e+">"}(e,n)})).join("")}function J(e){if(u(+e)){var t=+e;if(t===m(t))return o?new c(BigInt(t)):new l(t);throw new Error("Invalid integer: "+e)}var n="-"===e[0];n&&(e=e.slice(1));var r=e.split(/e/i);if(r.length>2)throw new Error("Invalid integer: "+r.join("e"));if(2===r.length){var i=r[1];if("+"===i[0]&&(i=i.slice(1)),(i=+i)!==m(i)||!u(i))throw new Error("Invalid integer: "+i+" is not a valid exponent.");var a=r[0],f=a.indexOf(".");if(f>=0&&(i-=a.length-f-1,a=a.slice(0,f)+a.slice(f+1)),i<0)throw new Error("Cannot include negative exponent part for integers");e=a+=new Array(i+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);if(o)return new c(BigInt(n?"-"+e:e));for(var d=[],p=e.length,g=p-7;p>0;)d.push(+e.slice(g,p)),(g-=7)<0&&(g=0),p-=7;return h(d),new s(d,n)}function G(e){return"number"==typeof e?function(e){if(o)return new c(BigInt(e));if(u(e)){if(e!==m(e))throw new Error(e+" is not an integer.");return new l(e)}return J(e.toString())}(e):"string"==typeof e?J(e):"bigint"==typeof e?new c(e):e}s.prototype.toArray=function(e){return $(this,e)},l.prototype.toArray=function(e){return $(this,e)},c.prototype.toArray=function(e){return $(this,e)},s.prototype.toString=function(e,t){if(void 0===e&&(e=10),10!==e)return H(this,e,t);for(var n,r=this.value,i=r.length,o=String(r[--i]);--i>=0;)n=String(r[i]),o+="0000000".slice(n.length)+n;return(this.sign?"-":"")+o},l.prototype.toString=function(e,t){return void 0===e&&(e=10),10!=e?H(this,e,t):String(this.value)},c.prototype.toString=l.prototype.toString,c.prototype.toJSON=s.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()},s.prototype.valueOf=function(){return parseInt(this.toString(),10)},s.prototype.toJSNumber=s.prototype.valueOf,l.prototype.valueOf=function(){return this.value},l.prototype.toJSNumber=l.prototype.valueOf,c.prototype.valueOf=c.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var V=0;V<1e3;V++)a[V]=G(V),V>0&&(a[-V]=G(-V));return a.one=a[1],a.zero=a[0],a.minusOne=a[-1],a.max=B,a.min=F,a.gcd=D,a.lcm=function(e,t){return e=G(e).abs(),t=G(t).abs(),e.divide(D(e,t)).multiply(t)},a.isInstance=function(e){return e instanceof s||e instanceof l||e instanceof c},a.randBetween=function(e,n,r){e=G(e),n=G(n);var i=r||Math.random,o=F(e,n),s=B(e,n).subtract(o).add(1);if(s.isSmall)return o.add(Math.floor(i()*s));for(var l=$(s,t).value,c=[],u=!0,f=0;f<l.length;f++){var d=u?l[f]:t,h=m(i()*d);c.push(h),h<d&&(u=!1)}return o.add(a.fromArray(c,t,!1))},a.fromArray=function(e,t,n){return U(e.map(G),G(t||10),n)},a}();e.hasOwnProperty("exports")&&(e.exports=i),void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}).call(this,n(87)(e))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};
vendor: 4,635 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),i(n(209),t),i(n(213),t),i(n(214),t),i(n(123),t),i(n(89),t),i(n(236),t),i(n(125),t)},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(222).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function l(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,a=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=l(e,t,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=l(e,t,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)f*=t;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 12,568 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var u=l>>>26,f=67108863&l,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&a}n.words[c]=0|f,l=0|u}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?u[6-l.length]+l+n:l+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=f[e],h=d[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?m+n:u[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,c=new e(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,i,o,a=e.words,s=t.words,l=n.words,c=0,u=0|a[0],f=8191&u,d=u>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,E=b>>>13,k=0|a[4],x=8191&k,S=k>>>13,_=0|a[5],A=8191&_,C=_>>>13,T=0|a[6],P=8191&T,O=T>>>13,M=0|a[7],I=8191&M,R=M>>>13,L=0|a[8],N=8191&L,j=L>>>13,B=0|a[9],F=8191&B,D=B>>>13,z=0|s[0],U=8191&z,$=z>>>13,H=0|s[1],J=8191&H,G=H>>>13,V=0|s[2],X=8191&V,W=V>>>13,q=0|s[3],K=8191&q,Z=q>>>13,Y=0|s[4],Q=8191&Y,ee=Y>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],fe=8191&ue,de=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,$))+Math.imul(d,U)|0))<<13)|0;c=((o=Math.imul(d,$))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,$))+Math.imul(m,U)|0,o=Math.imul(m,$);var ve=(c+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,U),i=(i=Math.imul(v,$))+Math.imul(y,U)|0,o=Math.imul(y,$),r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,G)|0;var ye=(c+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(d,X)|0))<<13)|0;c=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,U),i=(i=Math.imul(w,$))+Math.imul(E,U)|0,o=Math.imul(E,$),r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,G)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,W)|0;var be=(c+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(d,K)|0))<<13)|0;c=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(x,U),i=(i=Math.imul(x,$))+Math.imul(S,U)|0,o=Math.imul(S,$),r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Z)|0;var we=(c+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(A,U),i=(i=Math.imul(A,$))+Math.imul(C,U)|0,o=Math.imul(C,$),r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,W)|0,r=r+Math.imul(v,K)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var Ee=(c+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;c=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(P,U),i=(i=Math.imul(P,$))+Math.imul(O,U)|0,o=Math.imul(O,$),r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,W)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(c+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(I,U),i=(i=Math.imul(I,$))+Math.imul(R,U)|0,o=Math.imul(R,$),r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,G)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var xe=(c+(r=r+Math.imul(f,le)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(d,le)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(N,U),i=(i=Math.imul(N,$))+Math.imul(j,U)|0,o=Math.imul(j,$),r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,G)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(E,ne)|0,o=o+Math.imul(E,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ce)|0;var Se=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(F,U),i=(i=Math.imul(F,$))+Math.imul(D,U)|0,o=Math.imul(D,$),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,G)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,r=r+Math.imul(v,le)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,
vendor: 1,077 bytes, line 1
1ce)|0,r=r+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var _e=(c+(r=r+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(F,J),i=(i=Math.imul(F,G))+Math.imul(D,J)|0,o=Math.imul(D,G),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,W)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,le)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(E,le)|0,o=o+Math.imul(E,ce)|0,r=r+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(y,fe)|0,o=o+Math.imul(y,de)|0;var Ae=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>
vendor: 8,709 bytes, line 1
126)|0,Ae&=67108863,r=Math.imul(F,X),i=(i=Math.imul(F,W))+Math.imul(D,X)|0,o=Math.imul(D,W),r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,Z)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,r=r+Math.imul(x,le)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(S,le)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,de)|0;var Ce=(c+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;c=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(F,K),i=(i=Math.imul(F,Z))+Math.imul(D,K)|0,o=Math.imul(D,Z),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(R,ne)|0,o=o+Math.imul(R,re)|0,r=r+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(A,le)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,ce)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Te=(c+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(F,Q),i=(i=Math.imul(F,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(j,ne)|0,o=o+Math.imul(j,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,r=r+Math.imul(P,le)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(O,le)|0,o=o+Math.imul(O,ce)|0,r=r+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,de)|0;var Pe=(c+(r=r+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(F,ne),i=(i=Math.imul(F,re))+Math.imul(D,ne)|0,o=Math.imul(D,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,r=r+Math.imul(I,le)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(R,le)|0,o=o+Math.imul(R,ce)|0,r=r+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,de)|0;var Oe=(c+(r=r+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(F,oe),i=(i=Math.imul(F,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),r=r+Math.imul(N,le)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(j,le)|0,o=o+Math.imul(j,ce)|0,r=r+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,de)|0;var Me=(c+(r=r+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(F,le),i=(i=Math.imul(F,ce))+Math.imul(D,le)|0,o=Math.imul(D,ce),r=r+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,de)|0;var Ie=(c+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(R,pe)|0))<<13)|0;c=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(F,fe),i=(i=Math.imul(F,de))+Math.imul(D,fe)|0,o=Math.imul(D,de);var Re=(c+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(j,pe)|0))<<13)|0;c=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Le=(c+(r=Math.imul(F,pe))|0)+((8191&(i=(i=Math.imul(F,me))+Math.imul(D,pe)|0))<<13)|0;return c=((o=Math.imul(D,me))+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,l[0]=ge,l[1]=ve,l[2]=ye,l[3]=be,l[4]=we,l[5]=Ee,l[6]=ke,l[7]=xe,l[8]=Se,l[9]=_e,l[10]=Ae,l[11]=Ce,l[12]=Te,l[13]=Pe,l[14]=Oe,l[15]=Me,l[16]=Ie,l[17]=Re,l[18]=Le,0!==c&&(l[19]=c,n.length++),n};function m(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,f=(0|e.words[u])*(0|t.words[c]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},g.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},g.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},g.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=l,d=c,h=0;h<a;h++){var p=n[u+h],m=r[u+h],g=n[u+h+a],v=r[u+h+a],y=f*g-d*v;v=f*v+d*g,g=y,n[u+h]=p+g,r[u+h]=m+v,n[u+h+a]=p-g,r[u+h+a]=m-v,h!==s&&(y=l*f-c*d,d=l*d+c*f,f=y)}},g.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},g.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},g.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),l=new Array(r),c=new Array(r),u=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,c,r),this.transform(a,o,s,l,r,i),this.transform(c,o,u,f,r,i);for(var h=0;h<r;h++){var p=s[h]*u[h]-l[h]*f[h];l[h]=s[h]*f[h]+l[h]*u[h],s[h]=p}return this.conjugate(s,l,r),this.transform(s,l,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),m(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<n;this.words[t]=l|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=n;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var f=0|this.words[c];this.words[c]=u<<26-o|f>>>o,u=f&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n
vendor: 16,384 bytes, line 1
1)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var l=(0|e.words[i])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=r.clone()._ishlnsubmul(i,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var f=l-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(l)):(n.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(b,y),b.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,y),i(E,y),i(k,y),k.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new w;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return v[e]=t,t},x.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var v=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=g}return d},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=l-1;u>=0;u--){var f=c>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new S(e)},i(S,x),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(87)(e))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create
1?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_PERLIN_VALUE=t.Fraction=t.seededRandom=t.fakeHash=t.modPBigIntNative=t.modPBigInt=t.getRandomGradientAt=t.rand=t.perlin=t.mimcHash=void 0;const a=n(207);Object.defineProperty(t,"fakeHash",{enumerable:!0,get:function(){return a.fakeHash}}),Object.defineProperty(t,"seededRandom",{enumerable:!0,get:function(){return a.seededRandom}});const s=n(110);Object.defineProperty(t,"Fraction",{enumerable:!0,get:function(){return s.Fraction}});const l=o(n(111));t.mimcHash=l.default,Object.defineProperty(t,"modPBigInt",{enumerable:!0,get:function(){return l.modPBigInt}}),Object.defineProperty(t,"modPBigIntNative",{enumerable:!0,get:function(){return l.modPBigIntNative}});const c=n(208);Object.defineProperty(t,"getRandomGradientAt",{enumerable:!0,get:function(){return c.getRandomGradientAt}}),Object.defineProperty(t,"MAX_PERLIN_VALUE",{enumerable:!0,get:function(){return c.MAX_PERLIN_VALUE}}),Object.defineProperty(t,"perlin",{enumerable:!0,get:function(){return c.perlin}}),Object.defineProperty(t,"rand",{enumerable:!0,get:function(){return c.rand}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return v}));var r=n(3),i=n(17),o=n(13),a=n(41);const s=new(n(5).b)("address/5.4.0");function l(e){Object(r.l)(e,20)||s.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let e=0;e<40;e++)n[e]=t[e].charCodeAt(0);const i=Object(r.a)(Object(o.a)(n));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}const c={};for(let e=0;e<10;e++)c[String(e)]=String(e);for(let e=0;e<26;e++)c[String.fromCharCode(65+e)]=String(10+e);const u=Math.floor((f=9007199254740991,Math.log10?Math.log10(f):Math.log(f)/Math.LN10));var f;function d(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>c[e]).join("");for(;t.length>=u;){let e=t.substring(0,u);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}function h(e){let t=null;if("string"!=typeof e&&s.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=l(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&s.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==d(e)&&s.throwArgumentError("bad icap checksum","address",e),t=Object(i.c)(e.substring(4));t.length<40;)t="0"+t;t=l("0x"+t)}else s.throwArgumentError("invalid address","address",e);return t}function p(e){try{return h(e),!0}catch(e){}return!1}function m(e){let t=Object(i.b)(h(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+d("XE00"+t)+t}function g(e){let t=null;try{t=h(e.from)}catch(t){s.throwArgumentError("missing from address","transaction",e)}const n=Object(r.o)(Object(r.a)(i.a.from(e.nonce).toHexString()));return h(Object(r.e)(Object(o.a)(Object(a.encode)([t,n])),12))}function v(e,t,n){return 32!==Object(r.d)(t)&&s.throwArgumentError("salt must be 32 bytes","salt",t),32!==Object(r.d)(n)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),h(Object(r.e)(Object(o.a)(Object(r.b)(["0xff",h(e),t,n])),12))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(140),i=n.n(r),o=n(3);function a(e){return"0x"+i.a.keccak_256(Object(o.a)(e))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}
1)),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c}));var r=n(3),i=n(33);function o(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Object(r.a)(e)}function a(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}function s(e){return"string"==typeof e?Object(i.f)(e,i.a.NFKC):Object(r.a)(e)}function l(e,t){let n=e;const r=t.toLowerCase().split("/");for(let e=0;e<r.length;e++){let t=null;for(const i in n)if(i.toLowerCase()===r[e]){t=n[i];break}if(null===t)return null;n=t}return n}function c(e){const t=Object(r.a)(e);t[6]=15&t[6]|64,t[8]=63&t[8]|128;const n=Object(r.i)(t);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-")}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(59),i=n(4),o=n(5);const a=new o.b("wordlists/5.4.0");class s{constructor(e){a.checkAbstract(new.target,s),Object(i.d)(this,"locale",e)}split(e){return e.toLowerCase().split(/ +/g)}join(e){return e.join(" ")}static check(e){const t=[];for(let n=0;n<2048;n++){const r=e.getWord(n);if(n!==e.getWordIndex(r))return"0x";t.push(r)}return Object(r.a)(t.join("\n")+"\n")}static register(e,t){t||(t=e.locale)}}},function(e,t,n){(function(e,r){var i;
2/**
3 * @license
4 * Lodash <https://lodash.com/>
5 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
6 * Released under MIT license <https://lodash.com/license>
7 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
8 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
9 */(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",c="[object Array]",u="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",y="[object RegExp]",b="[object Set]",w="[object String]",E="[object Symbol]",k="[object WeakMap]",x="[object ArrayBuffer]",S="[object DataView]",_="[object Float32Array]",A="[object Float64Array]",C="[object Int8Array]",T="[object Int16Array]",P="[object Int32Array]",O="[object Uint8Array]",M="[object Uint16Array]",I="[object Uint32Array]",R=/\b__p \+= '';/g,L=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,B=/[&<>"']/g,F=RegExp(j.source),D=RegExp(B.source),z=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V=/[\\^$.*+?()[\]{}|]/g,X=RegExp(V.source),W=/^\s+/,q=/\s/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Z=/\{\n\/\* \[wrapped with (.+)\] \*/,Y=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 6,069 bytes, line 9
97f]/g,ue=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",he="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",me="["+he+"]",ge="["+de+"]",ve="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+he+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ee="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Se="[\\ud800-\\udbff][\\udc00-\\udfff]",_e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ae="(?:"+be+"|"+we+")",Ce="(?:"+_e+"|"+we+")",Te="(?:"+ge+"|"+Ee+")"+"?",Pe="[\\ufe0e\\ufe0f]?"+Te+("(?:\\u200d(?:"+[ke,xe,Se].join("|")+")[\\ufe0e\\ufe0f]?"+Te+")*"),Oe="(?:"+[ye,xe,Se].join("|")+")"+Pe,Me="(?:"+[ke+ge+"?",ge,xe,Se,pe].join("|")+")",Ie=RegExp("['’]","g"),Re=RegExp(ge,"g"),Le=RegExp(Ee+"(?="+Ee+")|"+Me+Pe,"g"),Ne=RegExp([_e+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,_e,"$"].join("|")+")",Ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,_e+Ae,"$"].join("|")+")",_e+"?"+Ae+"+(?:['’](?:d|ll|m|re|s|t|ve))?",_e+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Oe].join("|"),"g"),je=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),Be=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],De=-1,ze={};ze[_]=ze[A]=ze[C]=ze[T]=ze[P]=ze[O]=ze["[object Uint8ClampedArray]"]=ze[M]=ze[I]=!0,ze[l]=ze[c]=ze[x]=ze[u]=ze[S]=ze[f]=ze[d]=ze[h]=ze[m]=ze[g]=ze[v]=ze[y]=ze[b]=ze[w]=ze[k]=!1;var Ue={};Ue[l]=Ue[c]=Ue[x]=Ue[S]=Ue[u]=Ue[f]=Ue[_]=Ue[A]=Ue[C]=Ue[T]=Ue[P]=Ue[m]=Ue[g]=Ue[v]=Ue[y]=Ue[b]=Ue[w]=Ue[E]=Ue[O]=Ue["[object Uint8ClampedArray]"]=Ue[M]=Ue[I]=!0,Ue[d]=Ue[h]=Ue[k]=!1;var $e={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,Je=parseInt,Ge="object"==typeof e&&e&&e.Object===Object&&e,Ve="object"==typeof self&&self&&self.Object===Object&&self,Xe=Ge||Ve||Function("return this")(),We=t&&!t.nodeType&&t,qe=We&&"object"==typeof r&&r&&!r.nodeType&&r,Ke=qe&&qe.exports===We,Ze=Ke&&Ge.process,Ye=function(){try{var e=qe&&qe.require&&qe.require("util").types;return e||Ze&&Ze.binding&&Ze.binding("util")}catch(e){}}(),Qe=Ye&&Ye.isArrayBuffer,et=Ye&&Ye.isDate,tt=Ye&&Ye.isMap,nt=Ye&&Ye.isRegExp,rt=Ye&&Ye.isSet,it=Ye&&Ye.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function ft(e,t){return!!(null==e?0:e.length)&&Et(e,t,0)>-1}function dt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ht(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function mt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function gt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yt=_t("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function wt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Et(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):wt(e,xt,n)}function kt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function xt(e){return e!=e}function St(e,t){var n=null==e?0:e.length;return n?Tt(e,t)/n:NaN}function _t(e){return function(t){return null==t?void 0:t[e]}}function At(e){return function(t){return null==e?void 0:e[t]}}function Ct(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Tt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Pt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ot(e){return e?e.slice(0,Wt(e)+1).replace(W,""):e}function Mt(e){return function(t){return e(t)}}function It(e,t){return ht(t,(function(t){return e[t]}))}function Rt(e,t){return e.has(t)}function Lt(e,t){for(var n=-1,r=e.length;++n<r&&Et(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length;n--&&Et(t,e[n],0)>-1;);return n}function jt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Bt=At({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"
9c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ft=At({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Dt(e){return"\\"+$e[e]}function zt(e){return je.test(e)}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function $t(e,t){return function(n){return e(t(n))}}function Ht(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function Jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Gt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Vt(e){return zt(e)?function(e){var t=Le.lastIndex=0;for(;Le.test(e);)++t;return t}(e):yt(e)}function Xt(e){return zt(e)?function(e){return e.match(Le)||[]}(e):function(e){return e.split("")}(e)}function Wt(e){for(var t=e.length;t--&&q.test(e.charAt(t)););return t}var qt=At({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Kt=function e(t){var n,r=(t=null==t?Xe:Kt.defaults(Xe.Object(),t,Kt.pick(Xe,Fe))).Array,i=t.Date,q=t.Error,de=t.Function,he=t.Math,pe=t.Object,me=t.RegExp,ge=t.String,ve=t.TypeError,ye=r.prototype,be=de.prototype,we=pe.prototype,Ee=t["__core-js_shared__"],ke=be.toString,xe=we.hasOwnProperty,Se=0,_e=(n=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ae=we.toString,Ce=ke.call(pe),Te=Xe._,Pe=me("^"+ke.call(xe).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=Ke?t.Buffer:void 0,Me=t.Symbol,Le=t.Uint8Array,je=Oe?Oe.allocUnsafe:void 0,$e=$t(pe.getPrototypeOf,pe),Ge=pe.create,Ve=we.propertyIsEnumerable,We=ye.splice,qe=Me?Me.isConcatSpreadable:void 0,Ze=Me?Me.iterator:void 0,Ye=Me?Me.toStringTag:void 0,yt=function(){try{var e=eo(pe,"defineProperty");return e({},"",{}),e}catch(e){}}(),At=t.clearTimeout!==Xe.clearTimeout&&t.clearTimeout,Zt=i&&i.now!==Xe.Date.now&&i.now,Yt=t.setTimeout!==Xe.setTimeout&&t.setTimeout,Qt=he.ceil,en=he.floor,tn=pe.getOwnPropertySymbols,nn=Oe?Oe.isBuffer:void 0,rn=t.isFinite,on=ye.join,an=$t(pe.keys,pe),sn=he.max,ln=he.min,cn=i.now,un=t.parseInt,fn=he.random,dn=ye.reverse,hn=eo(t,"DataView"),pn=eo(t,"Map"),mn=eo(t,"Promise"),gn=eo(t,"Set"),vn=eo(t,"WeakMap"),yn=eo(pe,"create"),bn=vn&&new vn,wn={},En=To(hn),kn=To(pn),xn=To(mn),Sn=To(gn),_n=To(vn),An=Me?Me.prototype:void 0,Cn=An?An.valueOf:void 0,Tn=An?An.toString:void 0;function Pn(e){if(Ga(e)&&!La(e)&&!(e instanceof Rn)){if(e instanceof In)return e;if(xe.call(e,"__wrapped__"))return Po(e)}return new In(e)}var On=function(){function e(){}return function(t){if(!Ja(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Mn(){}function In(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Rn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Bn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new jn;++t<n;)this.add(e[t])}function Fn(e){var t=this.__data__=new Nn(e);this.size=t.size}function Dn(e,t){var n=La(e),r=!n&&Ra(e),i=!n&&!r&&Fa(e),o=!n&&!r&&!i&&Qa(e),a=n||r||i||o,s=a?Pt(e.length,ge):[],l=s.length;for(var c in e)!t&&!xe.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||so(c,l))||s.push(c);return s}function zn(e){var t=e.length;return t?e[Br(0,t-1)]:void 0}function Un(e,t){return _o(yi(e),Kn(t,0,e.length))}function $n(e){return _o(yi(e))}function Hn(e,t,n){(void 0!==n&&!Oa(e[t],n)||void 0===n&&!(t in e))&&Wn(e,t,n)}
vendor: 7,471 bytes, line 9
9function Jn(e,t,n){var r=e[t];xe.call(e,t)&&Oa(r,n)&&(void 0!==n||t in e)||Wn(e,t,n)}function Gn(e,t){for(var n=e.length;n--;)if(Oa(e[n][0],t))return n;return-1}function Vn(e,t,n,r){return tr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Xn(e,t){return e&&bi(t,Es(t),e)}function Wn(e,t,n){"__proto__"==t&&yt?yt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function qn(e,t){for(var n=-1,i=t.length,o=r(i),a=null==e;++n<i;)o[n]=a?void 0:gs(e,t[n]);return o}function Kn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Zn(e,t,n,r,i,o){var a,s=1&t,c=2&t,d=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ja(e))return e;var k=La(e);if(k){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&xe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return yi(e,a)}else{var R=ro(e),L=R==h||R==p;if(Fa(e))return di(e,s);if(R==v||R==l||L&&!i){if(a=c||L?{}:oo(e),!s)return c?function(e,t){return bi(e,no(e),t)}(e,function(e,t){return e&&bi(t,ks(t),e)}(a,e)):function(e,t){return bi(e,to(e),t)}(e,Xn(a,e))}else{if(!Ue[R])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case x:return hi(e);case u:case f:return new r(+e);case S:return function(e,t){var n=t?hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case _:case A:case C:case T:case P:case O:case"[object Uint8ClampedArray]":case M:case I:return pi(e,n);case m:return new r;case g:case w:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case E:return i=e,Cn?pe(Cn.call(i)):{}}var i}(e,R,s)}}o||(o=new Fn);var N=o.get(e);if(N)return N;o.set(e,a),Ka(e)?e.forEach((function(r){a.add(Zn(r,t,n,r,e,o))})):Va(e)&&e.forEach((function(r,i){a.set(i,Zn(r,t,n,i,e,o))}));var j=k?void 0:(d?c?Xi:Vi:c?ks:Es)(e);return st(j||e,(function(r,i){j&&(r=e[i=r]),Jn(a,i,Zn(r,t,n,i,e,o))})),a}function Yn(e,t,n){var r=n.length;if(null==e)return!r;for(e=pe(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ve(o);return Eo((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var i=-1,o=ft,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=ht(t,Mt(n))),r?(o=dt,a=!1):t.length>=200&&(o=Rt,a=!1,t=new Bn(t));e:for(;++i<s;){var u=e[i],f=null==n?u:n(u);if(u=r||0!==u?u:0,a&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;l.push(u)}else o(t,f,r)||l.push(u)}return l}Pn.templateSettings={escape:z,evaluate:U,interpolate:$,variable:"",imports:{_:Pn}},Pn.prototype=Mn.prototype,Pn.prototype.constructor=Pn,In.prototype=On(Mn.prototype),In.prototype.constructor=In,Rn.prototype=On(Mn.prototype),Rn.prototype.constructor=Rn,Ln.prototype.clear=function(){this.__data__=yn?yn(null):{},this.size=0},Ln.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ln.prototype.get=function(e){var t=this.__data__;if(yn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return xe.call(t,e)?t[e]:void 0},Ln.prototype.has=function(e){var t=this.__data__;return yn?void 0!==t[e]:xe.call(t,e)},Ln.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yn&&void 0===t?"__lodash_hash_undefined__":t,this},Nn.prototype.clear=function(){this.__data__=[],this.size=0},Nn.prototype.delete=function(e){var t=this.__data__,n=Gn(t,e);return!(n<0)&&(n==t.length-1?t.pop():We.call(t,n,1),--this.size,!0)},Nn.prototype.get=function(e){var t=this.__data__,n=Gn(t,e);return n<0?void 0:t[n][1]},Nn.prototype.has=function(e){return Gn(this.__data__,e)>-1},Nn.prototype.set=function(e,t){var n=this.__data__,r=Gn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Ln,map:new(pn||Nn),string:new Ln}},jn.prototype.delete=function(e){var t=Yi(this,e).delete(e);return this.size-=t?1:0,t},jn.prototype.get=function(e){return Yi(this,e).get(e)},jn.prototype.has=function(e){return Yi(this,e).has(e)},jn.prototype.set=function(e,t){var n=Yi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Bn.prototype.add=Bn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Bn.prototype.has=function(e){return this.__data__.has(e)},Fn.prototype.clear=function(){this.__data__=new Nn,this.size=0},Fn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Fn.prototype.get=function(e){return this.__data__.get(e)},Fn.prototype.has=function(e){return this.__data__.has(e)},Fn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Nn){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jn(r)}return n.set(e,t),this.size=n.size,this};var tr=ki(cr),nr=ki(ur,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!Ya(a):n(a,s)))var s=a,l=o}return l}function or(e,t){var n=[];return tr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function ar(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=ao),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?ar(s,t-1,n,r,i):pt(i,s):r||(i[i.length]=s)}return i}var sr=xi(),lr=xi(!0);function cr(e,t){return e&&sr(e,t,Es)}function ur(e,t){return e&&lr(e,t,Es)}function fr(e,t){return ut(t,(function(t){return Ua(e[t])}))}function dr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&n<r;)e=e[Co(t[n++])];return n&&n==r?e:void 0}function hr(e,t,n){var r=t(e);return La(e)?r:pt(r,n(e))}function pr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ye&&Ye in pe(e)?function(e){var t=xe.call(e,Ye),n=e[Ye];try{e[Ye]=void 0;var r=!0}catch(e){}var i=Ae.call(e);r&&(t?e[Ye]=n:delete e[Ye]);return i}(e):function(e){return Ae.call(e)}(e)}function mr(e,t){return e>t}function gr(e,t){return null!=e&&xe.call(e,t)}function vr(e,t){return null!=e&&t in pe(e)}function yr(e,t,n){for(var i=n?dt:ft,o=e[0].length,a=e.length,s=a,l=r(a),c=1/0,u=[];s--;){var f=e[s];s&&t&&(f=ht(f,Mt(t))),c=ln(f.length,c),l[s]=!n&&(t||o>=120&&f.length>=120)?new Bn(s&&f):void 0}f=e[0];var d=-1,h=l[0];e:for(;++d<o&&u.length<c;){var p=f[d],m=t?t(p):p;if(p=n||0!==p?p:0,!(h?Rt(h,m):i(u,m,n))){for(s=a;--s;){var g=l[s];if(!(g?Rt(g,m):i(e[s],m,n)))continue e}h&&h.push(m),u.push(p)}}return u}function br(e,t,n){var r=null==(e=vo(e,t=li(t,e)))?e:e[Co(zo(t))];return null==r?void 0:ot(r,e,n)}function wr(e){return Ga(e)&&pr(e)==l}function Er(e,t,n,r,i){return e===t||(null==e||null==t||!Ga(e)&&!Ga(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=La(e),s=La(t),h=a?c:ro(e),p=s?c:ro(t),k=(h=h==l?v:h)==v,_=(p=p==l?v:p)==v,A=h==p;if(A&&Fa(e)){if(!Fa(t))return!1;a=!0,k=!1}if(A&&!k)return o||(o=new Fn),a||Qa(e)?Ji(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!o(new Le(e),new Le(t)));case u:case f:case g:return Oa(+e,+t);case d:return e.name==t.name&&e.message==t.message;case y:case w:return e==t+"";case m:var s=Ut;case b:var l=1&r;if(s||(s=Jt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var h=Ji(s(e),s(t),r,i,o,a);return a.delete(e),h;case E:if(Cn)return Cn.call(e)==Cn.call(t)}return!1}(e,t,h,n,r,i,o);if(!(1&n)){var C=k&&xe.call(e,"__wrapped__"),T=_&&xe.call(t,"__wrapped__");
vendor: 6,541 bytes, line 9
9if(C||T){var P=C?e.value():e,O=T?t.value():t;return o||(o=new Fn),i(P,O,n,r,o)}}if(!A)return!1;return o||(o=new Fn),function(e,t,n,r,i,o){var a=1&n,s=Vi(e),l=s.length,c=Vi(t).length;if(l!=c&&!a)return!1;var u=l;for(;u--;){var f=s[u];if(!(a?f in t:xe.call(t,f)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);var m=a;for(;++u<l;){f=s[u];var g=e[f],v=t[f];if(r)var y=a?r(v,g,f,t,e,o):r(g,v,f,e,t,o);if(!(void 0===y?g===v||i(g,v,n,r,o):y)){p=!1;break}m||(m="constructor"==f)}if(p&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o)}(e,t,n,r,Er,i))}function kr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=pe(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var f=new Fn;if(r)var d=r(c,u,l,e,t,f);if(!(void 0===d?Er(u,c,3,r,f):d))return!1}}return!0}function xr(e){return!(!Ja(e)||(t=e,_e&&_e in t))&&(Ua(e)?Pe:ae).test(To(e));var t}function Sr(e){return"function"==typeof e?e:null==e?Xs:"object"==typeof e?La(e)?Or(e[0],e[1]):Pr(e):nl(e)}function _r(e){if(!ho(e))return an(e);var t=[];for(var n in pe(e))xe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ar(e){if(!Ja(e))return function(e){var t=[];if(null!=e)for(var n in pe(e))t.push(n);return t}(e);var t=ho(e),n=[];for(var r in e)("constructor"!=r||!t&&xe.call(e,r))&&n.push(r);return n}function Cr(e,t){return e<t}function Tr(e,t){var n=-1,i=ja(e)?r(e.length):[];return tr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Pr(e){var t=Qi(e);return 1==t.length&&t[0][2]?mo(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Or(e,t){return co(e)&&po(t)?mo(Co(e),t):function(n){var r=gs(n,e);return void 0===r&&r===t?vs(n,e):Er(t,r,3)}}function Mr(e,t,n,r,i){e!==t&&sr(t,(function(o,a){if(i||(i=new Fn),Ja(o))!function(e,t,n,r,i,o,a){var s=bo(e,n),l=bo(t,n),c=a.get(l);if(c)return void Hn(e,n,c);var u=o?o(s,l,n+"",e,t,a):void 0,f=void 0===u;if(f){var d=La(l),h=!d&&Fa(l),p=!d&&!h&&Qa(l);u=l,d||h||p?La(s)?u=s:Ba(s)?u=yi(s):h?(f=!1,u=di(l,!0)):p?(f=!1,u=pi(l,!0)):u=[]:Wa(l)||Ra(l)?(u=s,Ra(s)?u=ss(s):Ja(s)&&!Ua(s)||(u=oo(l))):f=!1}f&&(a.set(l,u),i(u,l,r,o,a),a.delete(l));Hn(e,n,u)}(e,t,a,n,Mr,r,i);else{var s=r?r(bo(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Hn(e,a,s)}}),ks)}function Ir(e,t){var n=e.length;if(n)return so(t+=t<0?n:0,n)?e[t]:void 0}function Rr(e,t,n){t=t.length?ht(t,(function(e){return La(e)?function(t){return dr(t,1===e.length?e[0]:e)}:e})):[Xs];var r=-1;return t=ht(t,Mt(Zi())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Tr(e,(function(e,n,i){return{criteria:ht(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var l=mi(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Lr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=dr(e,a);n(s,a)&&$r(o,li(a,e),s)}return o}function Nr(e,t,n,r){var i=r?kt:Et,o=-1,a=t.length,s=e;for(e===t&&(t=yi(t)),n&&(s=ht(e,Mt(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&We.call(s,l,1),We.call(e,l,1);return e}function jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;so(i)?We.call(e,i,1):ei(e,i)}}return e}function Br(e,t){return e+en(fn()*(t-e+1))}function Fr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Dr(e,t){return ko(go(e,t,Xs),e+"")}function zr(e){return zn(Os(e))}function Ur(e,t){var n=Os(e);return _o(n,Kn(t,0,n.length))}function $r(e,t,n,r){if(!Ja(e))return e;for(var i=-1,o=(t=li(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=Co(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=Ja(u)?u:so(t[i+1])?[]:{})}Jn(s,l,c),s=s[l]}return e}var Hr=bn?function(e,t){return bn.set(e,t),e}:Xs,Jr=yt?function(e,t){return yt(e,"toString",{configurable:!0,enumerable:!1,value:Js(t),writable:!0})}:Xs;function Gr(e){return _o(Os(e))}function Vr(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function Xr(e,t){var n;return tr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Wr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Ya(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return qr(e,t,Xs,n)}function qr(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,s=null===t,l=Ya(t),c=void 0===t;i<o;){var u=en((i+o)/2),f=n(e[u]),d=void 0!==f,h=null===f,p=f==f,m=Ya(f);if(a)var g=r||p;else g=c?p&&(r||d):s?p&&d&&(r||!h):l?p&&d&&!h&&(r||!m):!h&&!m&&(r?f<=t:f<t);g?i=u+1:o=u}return ln(o,4294967294)}function Kr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Oa(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function Zr(e){return"number"==typeof e?e:Ya(e)?NaN:+e}function Yr(e){if("string"==typeof e)return e;if(La(e))return ht(e,Yr)+"";if(Ya(e))return Tn?Tn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qr(e,t,n){var r=-1,i=ft,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=dt;else if(o>=200){var c=t?null:Fi(e);if(c)return Jt(c);a=!1,i=Rt,l=new Bn}else l=t?[]:s;e:for(;++r<o;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(u)}else i(l,f,n)||(l!==s&&l.push(f),s.push(u))}return s}function ei(e,t){return null==(e=vo(e,t=li(t,e)))||delete e[Co(zo(t))]}function ti(e,t,n,r){return $r(e,t,n(dr(e,t)),r)}function ni(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Vr(e,r?0:o,r?o+1:i):Vr(e,r?o+1:0,r?i:o)}function ri(e,t){var n=e;return n instanceof Rn&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,pt([e],t.args))}),n)}function ii(e,t,n){var i=e.length;if(i<2)return i?Qr(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=er(a[o]||s,e[l],t,n));return Qr(ar(a,1),t,n)}function oi(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function ai(e){return Ba(e)?e:[]}function si(e){return"function"==typeof e?e:Xs}function li(e,t){return La(e)?e:co(e,t)?[e]:Ao(ls(e))}var ci=Dr;
vendor: 5,805 bytes, line 9
9function ui(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Vr(e,t,n)}var fi=At||function(e){return Xe.clearTimeout(e)};function di(e,t){if(t)return e.slice();var n=e.length,r=je?je(n):new e.constructor(n);return e.copy(r),r}function hi(e){var t=new e.constructor(e.byteLength);return new Le(t).set(new Le(e)),t}function pi(e,t){var n=t?hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Ya(e),a=void 0!==t,s=null===t,l=t==t,c=Ya(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}function gi(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,c=t.length,u=sn(a-s,0),f=r(c+u),d=!i;++l<c;)f[l]=t[l];for(;++o<s;)(d||o<a)&&(f[n[o]]=e[o]);for(;u--;)f[l++]=e[o++];return f}function vi(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,f=sn(a-l,0),d=r(f+u),h=!i;++o<f;)d[o]=e[o];for(var p=o;++c<u;)d[p+c]=t[c];for(;++s<l;)(h||o<a)&&(d[p+n[s]]=e[o++]);return d}function yi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function bi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Wn(n,s,l):Jn(n,s,l)}return n}function wi(e,t){return function(n,r){var i=La(n)?at:Vn,o=t?t():{};return i(n,e,Zi(r,2),o)}}function Ei(e){return Dr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&lo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=pe(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}function ki(e,t){return function(n,r){if(null==n)return n;if(!ja(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=pe(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function xi(e){return function(t,n,r){for(var i=-1,o=pe(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Si(e){return function(t){var n=zt(t=ls(t))?Xt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ui(n,1).join(""):t.slice(1);return r[e]()+i}}function _i(e){return function(t){return mt(Us(Rs(t).replace(Ie,"")),e,"")}}function Ai(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=On(e.prototype),r=e.apply(n,t);return Ja(r)?r:n}}function Ci(e){return function(t,n,r){var i=pe(t);if(!ja(t)){var o=Zi(n,3);t=Es(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}function Ti(e){return Gi((function(t){var n=t.length,r=n,i=In.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ve(o);if(i&&!s&&"wrapper"==qi(a))var s=new In([],!0)}for(r=s?r:n;++r<n;){var l=qi(a=t[r]),c="wrapper"==l?Wi(a):void 0;s=c&&uo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[qi(c[0])].apply(s,c[3]):1==a.length&&uo(a)?s[l]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&La(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Pi(e,t,n,i,o,a,s,l,c,u){var f=128&t,d=1&t,h=2&t,p=24&t,m=512&t,g=h?void 0:Ai(e);return function v(){for(var y=arguments.length,b=r(y),w=y;w--;)b[w]=arguments[w];if(p)var E=Ki(v),k=jt(b,E);if(i&&(b=gi(b,i,o,p)),a&&(b=vi(b,a,s,p)),y-=k,p&&y<u){var x=Ht(b,E);return ji(e,t,Pi,v.placeholder,n,b,x,l,c,u-y)}var S=d?n:this,_=h?S[e]:e;return y=b.length,l?b=yo(b,l):m&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==Xe&&this instanceof v&&(_=g||Ai(_)),_.apply(S,b)}}function Oi(e,t){return function(n,r){return function(e,t,n,r){return cr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Mi(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Yr(n),r=Yr(r)):(n=Zr(n),r=Zr(r)),i=e(n,r)}return i}}function Ii(e){return Gi((function(t){return t=ht(t,Mt(Zi())),Dr((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Ri(e,t){var n=(t=void 0===t?" ":Yr(t)).length;if(n<2)return n?Fr(t,e):t;var r=Fr(t,Qt(e/Vt(t)));return zt(t)?ui(Xt(r),0,e).join(""):r.slice(0,e)}function Li(e){return function(t,n,i){return i&&"number"!=typeof i&&lo(t,n,i)&&(n=i=void 0),t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n,i){for(var o=-1,a=sn(Qt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,i=void 0===i?t<n?1:-1:rs(i),e)}}function Ni(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=as(t),n=as(n)),e(t,n)}}function ji(e,t,n,r,i,o,a,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var f=[e,t,i,u?o:void 0,u?a:void 0,u?void 0:o,u?void 0:a,s,l,c],d=n.apply(void 0,f);return uo(e)&&wo(d,f),d.placeholder=r,xo(d,e,t)}function Bi(e){var t=he[e];return function(e,n){if(e=as(e),(n=null==n?0:ln(is(n),292))&&rn(e)){var r=(ls(e)+"e").split("e");return+((r=(ls(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Fi=gn&&1/Jt(new gn([,-0]))[1]==1/0?function(e){return new gn(e)}:Ys;function Di(e){return function(t){var n=ro(t);return n==m?Ut(t):n==b?Gt(t):function(e,t){return ht(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function zi(e,t,n,i,s,l,c,u){var f=2&t;if(!f&&"function"!=typeof e)throw new ve(o);var d=i?i.length:0;if(d||(t&=-97,i=s=void 0),c=void 0===c?c:sn(is(c),0),u=void 0===u?u:is(u),d-=s?s.length:0,64&t){var h=i,p=s;i=s=void 0}var m=f?void 0:Wi(e),g=[e,t,n,i,s,h,p,l,c,u];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;
vendor: 4,864 bytes, line 9
9if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?gi(c,l,t[4]):l,e[4]=c?Ht(e[3],a):t[4]}(l=t[5])&&(c=e[5],e[5]=c?vi(c,l,t[6]):l,e[6]=c?Ht(e[5],a):t[6]);(l=t[7])&&(e[7]=l);128&r&&(e[8]=null==e[8]?t[8]:ln(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(g,m),e=g[0],t=g[1],n=g[2],i=g[3],s=g[4],!(u=g[9]=void 0===g[9]?f?0:e.length:sn(g[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var i=Ai(e);return function o(){for(var a=arguments.length,s=r(a),l=a,c=Ki(o);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:Ht(s,c);if((a-=u.length)<n)return ji(e,t,Pi,o.placeholder,void 0,s,u,void 0,void 0,n-a);var f=this&&this!==Xe&&this instanceof o?i:e;return ot(f,this,s)}}(e,t,u):32!=t&&33!=t||s.length?Pi.apply(void 0,g):function(e,t,n,i){var o=1&t,a=Ai(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,f=r(u+l),d=this&&this!==Xe&&this instanceof t?a:e;++c<u;)f[c]=i[c];for(;l--;)f[c++]=arguments[++s];return ot(d,o?n:this,f)}}(e,t,n,i);else var v=function(e,t,n){var r=1&t,i=Ai(e);return function t(){var o=this&&this!==Xe&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,n);return xo((m?Hr:wo)(v,g),e,t)}function Ui(e,t,n,r){return void 0===e||Oa(e,we[n])&&!xe.call(r,n)?t:e}function $i(e,t,n,r,i,o){return Ja(e)&&Ja(t)&&(o.set(t,e),Mr(e,t,void 0,$i,o),o.delete(t)),e}function Hi(e){return Wa(e)?void 0:e}function Ji(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=2&n?new Bn:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],m=t[f];if(r)var g=a?r(m,p,f,t,e,o):r(p,m,f,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!vt(t,(function(e,t){if(!Rt(h,t)&&(p===e||i(p,e,n,r,o)))return h.push(t)}))){d=!1;break}}else if(p!==m&&!i(p,m,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Gi(e){return ko(go(e,void 0,No),e+"")}function Vi(e){return hr(e,Es,to)}function Xi(e){return hr(e,ks,no)}var Wi=bn?function(e){return bn.get(e)}:Ys;function qi(e){for(var t=e.name+"",n=wn[t],r=xe.call(wn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ki(e){return(xe.call(Pn,"placeholder")?Pn:e).placeholder}function Zi(){var e=Pn.iteratee||Ws;return e=e===Ws?Sr:e,arguments.length?e(arguments[0],arguments[1]):e}function Yi(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Qi(e){for(var t=Es(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,po(i)]}return t}function eo(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xr(n)?n:void 0}var to=tn?function(e){return null==e?[]:(e=pe(e),ut(tn(e),(function(t){return Ve.call(e,t)})))}:ol,no=tn?function(e){for(var t=[];e;)pt(t,to(e)),e=$e(e);return t}:ol,ro=pr;function io(e,t,n){for(var r=-1,i=(t=li(t,e)).length,o=!1;++r<i;){var a=Co(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ha(i)&&so(a,i)&&(La(e)||Ra(e))}function oo(e){return"function"!=typeof e.constructor||ho(e)?{}:On($e(e))}function ao(e){return La(e)||Ra(e)||!!(qe&&e&&e[qe])}function so(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function lo(e,t,n){if(!Ja(n))return!1;var r=typeof t;return!!("number"==r?ja(n)&&so(t,n.length):"string"==r&&t in n)&&Oa(n[t],e)}function co(e,t){if(La(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ya(e))||(J.test(e)||!H.test(e)||null!=t&&e in pe(t))}function uo(e){var t=qi(e),n=Pn[t];if("function"!=typeof n||!(t in Rn.prototype))return!1;if(e===n)return!0;var r=Wi(n);return!!r&&e===r[0]}(hn&&ro(new hn(new ArrayBuffer(1)))!=S||pn&&ro(new pn)!=m||mn&&"[object Promise]"!=ro(mn.resolve())||gn&&ro(new gn)!=b||vn&&ro(new vn)!=k)&&(ro=function(e){var t=pr(e),n=t==v?e.constructor:void 0,r=n?To(n):"";if(r)switch(r){case En:return S;case kn:return m;case xn:return"[object Promise]";case Sn:return b;case _n:return k}return t});var fo=Ee?Ua:al;function ho(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function po(e){return e==e&&!Ja(e)}function mo(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in pe(n)))}}function go(e,t,n){return t=sn(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=sn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),ot(e,this,l)}}function vo(e,t){return t.length<2?e:dr(e,Vr(t,0,-1))}function yo(e,t){for(var n=e.length,r=ln(t.length,n),i=yi(e);r--;){var o=t[r];e[r]=so(o,n)?i[o]:void 0}return e}function bo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var wo=So(Hr),Eo=Yt||function(e,t){return Xe.setTimeout(e,t)},ko=So(Jr);
vendor: 3,565 bytes, line 9
9function xo(e,t,n){var r=t+"";return ko(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(K,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Z);return t?t[1].split(Y):[]}(r),n)))}function So(e){var t=0,n=0;return function(){var r=cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _o(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=Br(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var Ao=function(e){var t=Sa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(G,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function Co(e){if("string"==typeof e||Ya(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function To(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Po(e){if(e instanceof Rn)return e.clone();var t=new In(e.__wrapped__,e.__chain__);return t.__actions__=yi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Oo=Dr((function(e,t){return Ba(e)?er(e,ar(t,1,Ba,!0)):[]})),Mo=Dr((function(e,t){var n=zo(t);return Ba(n)&&(n=void 0),Ba(e)?er(e,ar(t,1,Ba,!0),Zi(n,2)):[]})),Io=Dr((function(e,t){var n=zo(t);return Ba(n)&&(n=void 0),Ba(e)?er(e,ar(t,1,Ba,!0),void 0,n):[]}));function Ro(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),wt(e,Zi(t,3),i)}function Lo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=is(n),i=n<0?sn(r+i,0):ln(i,r-1)),wt(e,Zi(t,3),i,!0)}function No(e){return(null==e?0:e.length)?ar(e,1):[]}function jo(e){return e&&e.length?e[0]:void 0}var Bo=Dr((function(e){var t=ht(e,ai);return t.length&&t[0]===e[0]?yr(t):[]})),Fo=Dr((function(e){var t=zo(e),n=ht(e,ai);return t===zo(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?yr(n,Zi(t,2)):[]})),Do=Dr((function(e){var t=zo(e),n=ht(e,ai);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?yr(n,void 0,t):[]}));function zo(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Uo=Dr($o);function $o(e,t){return e&&e.length&&t&&t.length?Nr(e,t):e}var Ho=Gi((function(e,t){var n=null==e?0:e.length,r=qn(e,t);return jr(e,ht(t,(function(e){return so(e,n)?+e:e})).sort(mi)),r}));function Jo(e){return null==e?e:dn.call(e)}var Go=Dr((function(e){return Qr(ar(e,1,Ba,!0))})),Vo=Dr((function(e){var t=zo(e);return Ba(t)&&(t=void 0),Qr(ar(e,1,Ba,!0),Zi(t,2))})),Xo=Dr((function(e){var t=zo(e);return t="function"==typeof t?t:void 0,Qr(ar(e,1,Ba,!0),void 0,t)}));function Wo(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(Ba(e))return t=sn(e.length,t),!0})),Pt(t,(function(t){return ht(e,_t(t))}))}function qo(e,t){if(!e||!e.length)return[];var n=Wo(e);return null==t?n:ht(n,(function(e){return ot(t,void 0,e)}))}var Ko=Dr((function(e,t){return Ba(e)?er(e,t):[]})),Zo=Dr((function(e){return ii(ut(e,Ba))})),Yo=Dr((function(e){var t=zo(e);return Ba(t)&&(t=void 0),ii(ut(e,Ba),Zi(t,2))})),Qo=Dr((function(e){var t=zo(e);return t="function"==typeof t?t:void 0,ii(ut(e,Ba),void 0,t)})),ea=Dr(Wo);var ta=Dr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,qo(e,n)}));function na(e){var t=Pn(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var ia=Gi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,
vendor: 5,681 bytes, line 9
9i=function(t){return qn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Rn&&so(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[i],thisArg:void 0}),new In(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var oa=wi((function(e,t,n){xe.call(e,n)?++e[n]:Wn(e,n,1)}));var aa=Ci(Ro),sa=Ci(Lo);function la(e,t){return(La(e)?st:tr)(e,Zi(t,3))}function ca(e,t){return(La(e)?lt:nr)(e,Zi(t,3))}var ua=wi((function(e,t,n){xe.call(e,n)?e[n].push(t):Wn(e,n,[t])}));var fa=Dr((function(e,t,n){var i=-1,o="function"==typeof t,a=ja(e)?r(e.length):[];return tr(e,(function(e){a[++i]=o?ot(t,e,n):br(e,t,n)})),a})),da=wi((function(e,t,n){Wn(e,n,t)}));function ha(e,t){return(La(e)?ht:Tr)(e,Zi(t,3))}var pa=wi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ma=Dr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&lo(e,t[0],t[1])?t=[]:n>2&&lo(t[0],t[1],t[2])&&(t=[t[0]]),Rr(e,ar(t,1),[])})),ga=Zt||function(){return Xe.Date.now()};function va(e,t,n){return t=n?void 0:t,zi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ya(e,t){var n;if("function"!=typeof t)throw new ve(o);return e=is(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Dr((function(e,t,n){var r=1;if(n.length){var i=Ht(n,Ki(ba));r|=32}return zi(e,r,t,n,i)})),wa=Dr((function(e,t,n){var r=3;if(n.length){var i=Ht(n,Ki(wa));r|=32}return zi(t,r,e,n,i)}));function Ea(e,t,n){var r,i,a,s,l,c,u=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new ve(o);function p(t){var n=r,o=i;return r=i=void 0,u=t,s=e.apply(o,n)}function m(e){return u=e,l=Eo(v,t),f?p(e):s}function g(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-u>=a}function v(){var e=ga();if(g(e))return y(e);l=Eo(v,function(e){var n=t-(e-c);return d?ln(n,a-(e-u)):n}(e))}function y(e){return l=void 0,h&&r?p(e):(r=i=void 0,s)}function b(){var e=ga(),n=g(e);if(r=arguments,i=this,c=e,n){if(void 0===l)return m(c);if(d)return fi(l),l=Eo(v,t),p(c)}return void 0===l&&(l=Eo(v,t)),s}return t=as(t)||0,Ja(n)&&(f=!!n.leading,a=(d="maxWait"in n)?sn(as(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){void 0!==l&&fi(l),u=0,r=c=i=l=void 0},b.flush=function(){return void 0===l?s:y(ga())},b}var ka=Dr((function(e,t){return Qn(e,1,t)})),xa=Dr((function(e,t,n){return Qn(e,as(t)||0,n)}));function Sa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Sa.Cache||jn),n}function _a(e){if("function"!=typeof e)throw new ve(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Sa.Cache=jn;var Aa=ci((function(e,t){var n=(t=1==t.length&&La(t[0])?ht(t[0],Mt(Zi())):ht(ar(t,1),Mt(Zi()))).length;return Dr((function(r){for(var i=-1,o=ln(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),Ca=Dr((function(e,t){return zi(e,32,void 0,t,Ht(t,Ki(Ca)))})),Ta=Dr((function(e,t){return zi(e,64,void 0,t,Ht(t,Ki(Ta)))})),Pa=Gi((function(e,t){return zi(e,256,void 0,void 0,void 0,t)}));function Oa(e,t){return e===t||e!=e&&t!=t}var Ma=Ni(mr),Ia=Ni((function(e,t){return e>=t})),Ra=wr(function(){return arguments}())?wr:function(e){return Ga(e)&&xe.call(e,"callee")&&!Ve.call(e,"callee")},La=r.isArray,Na=Qe?Mt(Qe):function(e){return Ga(e)&&pr(e)==x};function ja(e){return null!=e&&Ha(e.length)&&!Ua(e)}function Ba(e){return Ga(e)&&ja(e)}var Fa=nn||al,Da=et?Mt(et):function(e){return Ga(e)&&pr(e)==f};function za(e){if(!Ga(e))return!1;var t=pr(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Wa(e)}function Ua(e){if(!Ja(e))return!1;var t=pr(e);return t==h||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==is(e)}function Ha(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ja(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ga(e){return null!=e&&"object"==typeof e}var Va=tt?Mt(tt):function(e){return Ga(e)&&ro(e)==m};function Xa(e){return"number"==typeof e||Ga(e)&&pr(e)==g}function Wa(e){if(!Ga(e)||pr(e)!=v)return!1;var t=$e(e);if(null===t)return!0;var n=xe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Ce}var qa=nt?Mt(nt):function(e){return Ga(e)&&pr(e)==y};var Ka=rt?Mt(rt):function(e){return Ga(e)&&ro(e)==b};function Za(e){return"string"==typeof e||!La(e)&&Ga(e)&&pr(e)==w}function Ya(e){return"symbol"==typeof e||Ga(e)&&pr(e)==E}var Qa=it?Mt(it):function(e){return Ga(e)&&Ha(e.length)&&!!ze[pr(e)]};var es=Ni(Cr),ts=Ni((function(e,t){return e<=t}));function ns(e){if(!e)return[];if(ja(e))return Za(e)?Xt(e):yi(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=ro(e);return(t==m?Ut:t==b?Jt:Os)(e)}function rs(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function is(e){var t=rs(e),n=t%1;return t==t?n?t-n:t:0}function os(e){return e?Kn(is(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Ya(e))return NaN;if(Ja(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ja(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ot(e);var n=oe.test(e);return n||se.test(e)?Je(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function ss(e){return bi(e,ks(e))}function ls(e){return null==e?"":Yr(e)}var cs=Ei((function(e,t){if(ho(t)||ja(t))bi(t,Es(t),e);
vendor: 14,953 bytes, line 9
9else for(var n in t)xe.call(t,n)&&Jn(e,n,t[n])})),us=Ei((function(e,t){bi(t,ks(t),e)})),fs=Ei((function(e,t,n,r){bi(t,ks(t),e,r)})),ds=Ei((function(e,t,n,r){bi(t,Es(t),e,r)})),hs=Gi(qn);var ps=Dr((function(e,t){e=pe(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&lo(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=ks(o),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(void 0===u||Oa(u,we[c])&&!xe.call(e,c))&&(e[c]=o[c])}return e})),ms=Dr((function(e){return e.push(void 0,$i),ot(Ss,void 0,e)}));function gs(e,t,n){var r=null==e?void 0:dr(e,t);return void 0===r?n:r}function vs(e,t){return null!=e&&io(e,t,vr)}var ys=Oi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),e[t]=n}),Js(Xs)),bs=Oi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),xe.call(e,t)?e[t].push(n):e[t]=[n]}),Zi),ws=Dr(br);function Es(e){return ja(e)?Dn(e):_r(e)}function ks(e){return ja(e)?Dn(e,!0):Ar(e)}var xs=Ei((function(e,t,n){Mr(e,t,n)})),Ss=Ei((function(e,t,n,r){Mr(e,t,n,r)})),_s=Gi((function(e,t){var n={};if(null==e)return n;var r=!1;t=ht(t,(function(t){return t=li(t,e),r||(r=t.length>1),t})),bi(e,Xi(e),n),r&&(n=Zn(n,7,Hi));for(var i=t.length;i--;)ei(n,t[i]);return n}));var As=Gi((function(e,t){return null==e?{}:function(e,t){return Lr(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Cs(e,t){if(null==e)return{};var n=ht(Xi(e),(function(e){return[e]}));return t=Zi(t),Lr(e,n,(function(e,n){return t(e,n[0])}))}var Ts=Di(Es),Ps=Di(ks);function Os(e){return null==e?[]:It(e,Es(e))}var Ms=_i((function(e,t,n){return t=t.toLowerCase(),e+(n?Is(t):t)}));function Is(e){return zs(ls(e).toLowerCase())}function Rs(e){return(e=ls(e))&&e.replace(ce,Bt).replace(Re,"")}var Ls=_i((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ns=_i((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),js=Si("toLowerCase");var Bs=_i((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Fs=_i((function(e,t,n){return e+(n?" ":"")+zs(t)}));var Ds=_i((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),zs=Si("toUpperCase");function Us(e,t,n){return e=ls(e),void 0===(t=n?void 0:t)?function(e){return Be.test(e)}(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.match(Q)||[]}(e):e.match(t)||[]}var $s=Dr((function(e,t){try{return ot(e,void 0,t)}catch(e){return za(e)?e:new q(e)}})),Hs=Gi((function(e,t){return st(t,(function(t){t=Co(t),Wn(e,t,ba(e[t],e))})),e}));function Js(e){return function(){return e}}var Gs=Ti(),Vs=Ti(!0);function Xs(e){return e}function Ws(e){return Sr("function"==typeof e?e:Zn(e,1))}var qs=Dr((function(e,t){return function(n){return br(n,e,t)}})),Ks=Dr((function(e,t){return function(n){return br(e,n,t)}}));function Zs(e,t,n){var r=Es(t),i=fr(t,r);null!=n||Ja(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=fr(t,Es(t)));var o=!(Ja(n)&&"chain"in n&&!n.chain),a=Ua(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=yi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Ys(){}var Qs=Ii(ht),el=Ii(ct),tl=Ii(vt);function nl(e){return co(e)?_t(Co(e)):function(e){return function(t){return dr(t,e)}}(e)}var rl=Li(),il=Li(!0);function ol(){return[]}function al(){return!1}var sl=Mi((function(e,t){return e+t}),0),ll=Bi("ceil"),cl=Mi((function(e,t){return e/t}),1),ul=Bi("floor");var fl,dl=Mi((function(e,t){return e*t}),1),hl=Bi("round"),pl=Mi((function(e,t){return e-t}),0);return Pn.after=function(e,t){if("function"!=typeof t)throw new ve(o);return e=is(e),function(){if(--e<1)return t.apply(this,arguments)}},Pn.ary=va,Pn.assign=cs,Pn.assignIn=us,Pn.assignInWith=fs,Pn.assignWith=ds,Pn.at=hs,Pn.before=ya,Pn.bind=ba,Pn.bindAll=Hs,Pn.bindKey=wa,Pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return La(e)?e:[e]},Pn.chain=na,Pn.chunk=function(e,t,n){t=(n?lo(e,t,n):void 0===t)?1:sn(is(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Qt(i/t));o<i;)s[a++]=Vr(e,o,o+=t);return s},Pn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Pn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return pt(La(n)?yi(n):[n],ar(t,1))},Pn.cond=function(e){var t=null==e?0:e.length,n=Zi();return e=t?ht(e,(function(e){if("function"!=typeof e[1])throw new ve(o);return[n(e[0]),e[1]]})):[],Dr((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},Pn.conforms=function(e){return function(e){var t=Es(e);return function(n){return Yn(n,e,t)}}(Zn(e,1))},Pn.constant=Js,Pn.countBy=oa,Pn.create=function(e,t){var n=On(e);return null==t?n:Xn(n,t)},Pn.curry=function e(t,n,r){var i=zi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Pn.curryRight=function e(t,n,r){var i=zi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Pn.debounce=Ea,Pn.defaults=ps,Pn.defaultsDeep=ms,Pn.defer=ka,Pn.delay=xa,Pn.difference=Oo,Pn.differenceBy=Mo,Pn.differenceWith=Io,Pn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Vr(e,(t=n||void 0===t?1:is(t))<0?0:t,r):[]},Pn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Vr(e,0,(t=r-(t=n||void 0===t?1:is(t)))<0?0:t):[]},Pn.dropRightWhile=function(e,t){return e&&e.length?ni(e,Zi(t,3),!0,!0):[]},Pn.dropWhile=function(e,t){return e&&e.length?ni(e,Zi(t,3),!0):[]},Pn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&lo(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=is(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:os(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Pn.filter=function(e,t){return(La(e)?ut:or)(e,Zi(t,3))},Pn.flatMap=function(e,t){return ar(ha(e,t),1)},Pn.flatMapDeep=function(e,t){return ar(ha(e,t),1/0)},Pn.flatMapDepth=function(e,t,n){return n=void 0===n?1:is(n),ar(ha(e,t),n)},Pn.flatten=No,Pn.flattenDeep=function(e){return(null==e?0:e.length)?ar(e,1/0):[]},Pn.flattenDepth=function(e,t){return(null==e?0:e.length)?ar(e,t=void 0===t?1:is(t)):[]},Pn.flip=function(e){return zi(e,512)},Pn.flow=Gs,Pn.flowRight=Vs,Pn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Pn.functions=function(e){return null==e?[]:fr(e,Es(e))},Pn.functionsIn=function(e){return null==e?[]:fr(e,ks(e))},Pn.groupBy=ua,Pn.initial=function(e){return(null==e?0:e.length)?Vr(e,0,-1):[]},Pn.intersection=Bo,Pn.intersectionBy=Fo,Pn.intersectionWith=Do,Pn.invert=ys,Pn.invertBy=bs,Pn.invokeMap=fa,Pn.iteratee=Ws,Pn.keyBy=da,Pn.keys=Es,Pn.keysIn=ks,Pn.map=ha,Pn.mapKeys=function(e,t){var n={};return t=Zi(t,3),cr(e,(function(e,r,i){Wn(n,t(e,r,i),e)})),n},Pn.mapValues=function(e,t){var n={};return t=Zi(t,3),cr(e,(function(e,r,i){Wn(n,r,t(e,r,i))})),n},Pn.matches=function(e){return Pr(Zn(e,1))},Pn.matchesProperty=function(e,t){return Or(e,Zn(t,1))},Pn.memoize=Sa,Pn.merge=xs,Pn.mergeWith=Ss,Pn.method=qs,Pn.methodOf=Ks,Pn.mixin=Zs,Pn.negate=_a,Pn.nthArg=function(e){return e=is(e),Dr((function(t){return Ir(t,e)}))},Pn.omit=_s,Pn.omitBy=function(e,t){return Cs(e,_a(Zi(t)))},Pn.once=function(e){return ya(2,e)},Pn.orderBy=function(e,t,n,r){return null==e?[]:(La(t)||(t=null==t?[]:[t]),La(n=r?void 0:n)||(n=null==n?[]:[n]),Rr(e,t,n))},Pn.over=Qs,Pn.overArgs=Aa,Pn.overEvery=el,Pn.overSome=tl,Pn.partial=Ca,Pn.partialRight=Ta,Pn.partition=pa,Pn.pick=As,Pn.pickBy=Cs,Pn.property=nl,Pn.propertyOf=function(e){return function(t){return null==e?void 0:dr(e,t)}},Pn.pull=Uo,Pn.pullAll=$o,Pn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Nr(e,t,Zi(n,2)):e},Pn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Nr(e,t,void 0,n):e},Pn.pullAt=Ho,Pn.range=rl,Pn.rangeRight=il,Pn.rearg=Pa,Pn.reject=function(e,t){return(La(e)?ut:or)(e,_a(Zi(t,3)))},Pn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Zi(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return jr(e,i),n},Pn.rest=function(e,t){if("function"!=typeof e)throw new ve(o);return Dr(e,t=void 0===t?t:is(t))},Pn.reverse=Jo,Pn.sampleSize=function(e,t,n){return t=(n?lo(e,t,n):void 0===t)?1:is(t),(La(e)?Un:Ur)(e,t)},Pn.set=function(e,t,n){return null==e?e:$r(e,t,n)},Pn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:$r(e,t,n,r)},Pn.shuffle=function(e){return(La(e)?$n:Gr)(e)},Pn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&lo(e,t,n)?(t=0,n=r):(t=null==t?0:is(t),n=void 0===n?r:is(n)),Vr(e,t,n)):[]},Pn.sortBy=ma,Pn.sortedUniq=function(e){return e&&e.length?Kr(e):[]},Pn.sortedUniqBy=function(e,t){return e&&e.length?Kr(e,Zi(t,2)):[]},Pn.split=function(e,t,n){return n&&"number"!=typeof n&&lo(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ls(e))&&("string"==typeof t||null!=t&&!qa(t))&&!(t=Yr(t))&&zt(e)?ui(Xt(e),0,n):e.split(t,n):[]},Pn.spread=function(e,t){if("function"!=typeof e)throw new ve(o);return t=null==t?0:sn(is(t),0),Dr((function(n){var r=n[t],i=ui(n,0,t);return r&&pt(i,r),ot(e,this,i)}))},Pn.tail=function(e){var t=null==e?0:e.length;return t?Vr(e,1,t):[]},Pn.take=function(e,t,n){return e&&e.length?Vr(e,0,(t=n||void 0===t?1:is(t))<0?0:t):[]},Pn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Vr(e,(t=r-(t=n||void 0===t?1:is(t)))<0?0:t,r):[]},Pn.takeRightWhile=function(e,t){return e&&e.length?ni(e,Zi(t,3),!1,!0):[]},Pn.takeWhile=function(e,t){return e&&e.length?ni(e,Zi(t,3)):[]},Pn.tap=function(e,t){return t(e),e},Pn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ve(o);return Ja(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ea(e,t,{leading:r,maxWait:t,trailing:i})},Pn.thru=ra,Pn.toArray=ns,Pn.toPairs=Ts,Pn.toPairsIn=Ps,Pn.toPath=function(e){return La(e)?ht(e,Co):Ya(e)?[e]:yi(Ao(ls(e)))},Pn.toPlainObject=ss,Pn.transform=function(e,t,n){var r=La(e),i=r||Fa(e)||Qa(e);if(t=Zi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ja(e)&&Ua(o)?On($e(e)):{}}return(i?st:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Pn.unary=function(e){return va(e,1)},Pn.union=Go,Pn.unionBy=Vo,Pn.unionWith=Xo,Pn.uniq=function(e){return e&&e.length?Qr(e):[]},Pn.uniqBy=function(e,t){return e&&e.length?Qr(e,Zi(t,2)):[]},Pn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},Pn.unset=function(e,t){return null==e||ei(e,t)},Pn.unzip=Wo,Pn.unzipWith=qo,Pn.update=function(e,t,n){return null==e?e:ti(e,t,si(n))},Pn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ti(e,t,si(n),r)},Pn.values=Os,Pn.valuesIn=function(e){return null==e?[]:It(e,ks(e))},Pn.without=Ko,Pn.words=Us,Pn.wrap=function(e,t){return Ca(si(t),e)},Pn.xor=Zo,Pn.xorBy=Yo,Pn.xorWith=Qo,Pn.zip=ea,Pn.zipObject=function(e,t){return oi(e||[],t||[],Jn)},Pn.zipObjectDeep=function(e,t){return oi(e||[],t||[],$r)},Pn.zipWith=ta,Pn.entries=Ts,Pn.entriesIn=Ps,Pn.extend=us,Pn.extendWith=fs,Zs(Pn,Pn),Pn.add=sl,Pn.attempt=$s,Pn.camelCase=Ms,Pn.capitalize=Is,Pn.ceil=ll,Pn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Kn(as(e),t,n)},Pn.clone=function(e){return Zn(e,4)},Pn.cloneDeep=function(e){return Zn(e,5)},Pn.cloneDeepWith=function(e,t){return Zn(e,5,t="function"==typeof t?t:void 0)},Pn.cloneWith=function(e,t){return Zn(e,4,t="function"==typeof t?t:void 0)},Pn.conformsTo=function(e,t){return null==t||Yn(e,t,Es(t))},Pn.deburr=Rs,Pn.defaultTo=function(e,t){return null==e||e!=e?t:e},Pn.divide=cl,Pn.endsWith=function(e,t,n){e=ls(e),t=Yr(t);var r=e.length,i=n=void 0===n?r:Kn(is(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Pn.eq=Oa,Pn.escape=function(e){return(e=ls(e))&&D.test(e)?e.replace(B,Ft):e},Pn.escapeRegExp=function(e){return(e=ls(e))&&X.test(e)?e.replace(V,"\\$&"):e},Pn.every=function(e,t,n){var r=La(e)?ct:rr;return n&&lo(e,t,n)&&(t=void 0),r(e,Zi(t,3))},Pn.find=aa,Pn.findIndex=Ro,Pn.findKey=function(e,t){return bt(e,Zi(t,3),cr)},Pn.findLast=sa,Pn.findLastIndex=Lo,Pn.findLastKey=function(e,t){return bt(e,Zi(t,3),ur)},Pn.floor=ul,Pn.forEach=la,Pn.forEachRight=ca,Pn.forIn=function(e,t){return null==e?e:sr(e,Zi(t,3),ks)},Pn.forInRight=function(e,t){return null==e?e:lr(e,Zi(t,3),ks)},Pn.forOwn=function(e,t){return e&&cr(e,Zi(t,3))},Pn.forOwnRight=function(e,t){return e&&ur(e,Zi(t,3))},Pn.get=gs,Pn.gt=Ma,Pn.gte=Ia,Pn.has=function(e,t){return null!=e&&io(e,t,gr)},Pn.hasIn=vs,Pn.head=jo,Pn.identity=Xs,Pn.includes=function(e,t,n,r){e=ja(e)?e:Os(e),n=n&&!r?is(n):0;var i=e.length;return n<0&&(n=sn(i+n,0)),Za(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Et(e,t,n)>-1},Pn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),Et(e,t,i)},Pn.inRange=function(e,t,n){return t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n){return e>=ln(t,n)&&e<sn(t,n)}(e=as(e),t,n)},Pn.invoke=ws,Pn.isArguments=Ra,Pn.isArray=La,Pn.isArrayBuffer=Na,Pn.isArrayLike=ja,Pn.isArrayLikeObject=Ba,Pn.isBoolean=function(e){return!0===e||!1===e||Ga(e)&&pr(e)==u},Pn.isBuffer=Fa,Pn.isDate=Da,Pn.isElement=function(e){return Ga(e)&&1===e.nodeType&&!Wa(e)},Pn.isEmpty=function(e){if(null==e)return!0;if(ja(e)&&(La(e)||"string"==typeof e||"function"==typeof e.splice||Fa(e)||Qa(e)||Ra(e)))return!e.length;var t=ro(e);if(t==m||t==b)return!e.size;if(ho(e))return!_r(e).length;for(var n in e)if(xe.call(e,n))return!1;return!0},Pn.isEqual=function(e,t){return Er(e,t)},Pn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Er(e,t,void 0,n):!!r},Pn.isError=za,Pn.isFinite=function(e){return"number"==typeof e&&rn(e)},Pn.isFunction=Ua,Pn.isInteger=$a,Pn.isLength=Ha,Pn.isMap=Va,Pn.isMatch=function(e,t){return e===t||kr(e,t,Qi(t))},Pn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,kr(e,t,Qi(t),n)},Pn.isNaN=function(e){return Xa(e)&&e!=+e},Pn.isNative=function(e){if(fo(e))throw new q("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},Pn.isNil=function(e){return null==e},Pn.isNull=function(e){return null===e},Pn.isNumber=Xa,Pn.isObject=Ja,Pn.isObjectLike=Ga,Pn.isPlainObject=Wa,Pn.isRegExp=qa,Pn.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=9007199254740991},Pn.isSet=Ka,Pn.isString=Za,Pn.isSymbol=Ya,Pn.isTypedArray=Qa,Pn.isUndefined=function(e){return void 0===e},Pn.isWeakMap=function(e){return Ga(e)&&ro(e)==k},Pn.isWeakSet=function(e){return Ga(e)&&"[object WeakSet]"==pr(e)},Pn.join=function(e,t){return null==e?"":on.call(e,t)},Pn.kebabCase=Ls,Pn.last=zo,Pn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?sn(r+i,0):ln(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):wt(e,xt,i,!0)},Pn.lowerCase=Ns,Pn.lowerFirst=js,Pn.lt=es,Pn.lte=ts,Pn.max=function(e){return e&&e.length?
vendor: 10,986 bytes, line 9
9ir(e,Xs,mr):void 0},Pn.maxBy=function(e,t){return e&&e.length?ir(e,Zi(t,2),mr):void 0},Pn.mean=function(e){return St(e,Xs)},Pn.meanBy=function(e,t){return St(e,Zi(t,2))},Pn.min=function(e){return e&&e.length?ir(e,Xs,Cr):void 0},Pn.minBy=function(e,t){return e&&e.length?ir(e,Zi(t,2),Cr):void 0},Pn.stubArray=ol,Pn.stubFalse=al,Pn.stubObject=function(){return{}},Pn.stubString=function(){return""},Pn.stubTrue=function(){return!0},Pn.multiply=dl,Pn.nth=function(e,t){return e&&e.length?Ir(e,is(t)):void 0},Pn.noConflict=function(){return Xe._===this&&(Xe._=Te),this},Pn.noop=Ys,Pn.now=ga,Pn.pad=function(e,t,n){e=ls(e);var r=(t=is(t))?Vt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ri(en(i),n)+e+Ri(Qt(i),n)},Pn.padEnd=function(e,t,n){e=ls(e);var r=(t=is(t))?Vt(e):0;return t&&r<t?e+Ri(t-r,n):e},Pn.padStart=function(e,t,n){e=ls(e);var r=(t=is(t))?Vt(e):0;return t&&r<t?Ri(t-r,n)+e:e},Pn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),un(ls(e).replace(W,""),t||0)},Pn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&lo(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=rs(e),void 0===t?(t=e,e=0):t=rs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=fn();return ln(e+i*(t-e+He("1e-"+((i+"").length-1))),t)}return Br(e,t)},Pn.reduce=function(e,t,n){var r=La(e)?mt:Ct,i=arguments.length<3;return r(e,Zi(t,4),n,i,tr)},Pn.reduceRight=function(e,t,n){var r=La(e)?gt:Ct,i=arguments.length<3;return r(e,Zi(t,4),n,i,nr)},Pn.repeat=function(e,t,n){return t=(n?lo(e,t,n):void 0===t)?1:is(t),Fr(ls(e),t)},Pn.replace=function(){var e=arguments,t=ls(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Pn.result=function(e,t,n){var r=-1,i=(t=li(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[Co(t[r])];void 0===o&&(r=i,o=n),e=Ua(o)?o.call(e):o}return e},Pn.round=hl,Pn.runInContext=e,Pn.sample=function(e){return(La(e)?zn:zr)(e)},Pn.size=function(e){if(null==e)return 0;if(ja(e))return Za(e)?Vt(e):e.length;var t=ro(e);return t==m||t==b?e.size:_r(e).length},Pn.snakeCase=Bs,Pn.some=function(e,t,n){var r=La(e)?vt:Xr;return n&&lo(e,t,n)&&(t=void 0),r(e,Zi(t,3))},Pn.sortedIndex=function(e,t){return Wr(e,t)},Pn.sortedIndexBy=function(e,t,n){return qr(e,t,Zi(n,2))},Pn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Wr(e,t);if(r<n&&Oa(e[r],t))return r}return-1},Pn.sortedLastIndex=function(e,t){return Wr(e,t,!0)},Pn.sortedLastIndexBy=function(e,t,n){return qr(e,t,Zi(n,2),!0)},Pn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Wr(e,t,!0)-1;if(Oa(e[n],t))return n}return-1},Pn.startCase=Fs,Pn.startsWith=function(e,t,n){return e=ls(e),n=null==n?0:Kn(is(n),0,e.length),t=Yr(t),e.slice(n,n+t.length)==t},Pn.subtract=pl,Pn.sum=function(e){return e&&e.length?Tt(e,Xs):0},Pn.sumBy=function(e,t){return e&&e.length?Tt(e,Zi(t,2)):0},Pn.template=function(e,t,n){var r=Pn.templateSettings;n&&lo(e,t,n)&&(t=void 0),e=ls(e),t=fs({},t,r,Ui);var i,o,a=fs({},t.imports,r.imports,Ui),s=Es(a),l=It(a,s),c=0,u=t.interpolate||ue,f="__p += '",d=me((t.escape||ue).source+"|"+u.source+"|"+(u===$?ne:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),h="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++De+"]")+"\n";e.replace(d,(function(t,n,r,a,s,l){return r||(r=a),f+=e.slice(c,l).replace(fe,Dt),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var p=xe.call(t,"variable")&&t.variable;if(p){if(ee.test(p))throw new q("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(R,""):f).replace(L,"$1").replace(N,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=$s((function(){return de(s,h+"return "+f).apply(void 0,l)}));if(m.source=f,za(m))throw m;return m},Pn.times=function(e,t){if((e=is(e))<1||e>9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var i=Pt(r,t=Zi(t));++n<e;)t(n);return i},Pn.toFinite=rs,Pn.toInteger=is,Pn.toLength=os,Pn.toLower=function(e){return ls(e).toLowerCase()},Pn.toNumber=as,Pn.toSafeInteger=function(e){return e?Kn(is(e),-9007199254740991,9007199254740991):0===e?e:0},Pn.toString=ls,Pn.toUpper=function(e){return ls(e).toUpperCase()},Pn.trim=function(e,t,n){if((e=ls(e))&&(n||void 0===t))return Ot(e);if(!e||!(t=Yr(t)))return e;var r=Xt(e),i=Xt(t);return ui(r,Lt(r,i),Nt(r,i)+1).join("")},Pn.trimEnd=function(e,t,n){if((e=ls(e))&&(n||void 0===t))return e.slice(0,Wt(e)+1);if(!e||!(t=Yr(t)))return e;var r=Xt(e);return ui(r,0,Nt(r,Xt(t))+1).join("")},Pn.trimStart=function(e,t,n){if((e=ls(e))&&(n||void 0===t))return e.replace(W,"");if(!e||!(t=Yr(t)))return e;var r=Xt(e);return ui(r,Lt(r,Xt(t))).join("")},Pn.truncate=function(e,t){var n=30,r="...";if(Ja(t)){var i="separator"in t?t.separator:i;n="length"in t?is(t.length):n,r="omission"in t?Yr(t.omission):r}var o=(e=ls(e)).length;if(zt(e)){var a=Xt(e);o=a.length}if(n>=o)return e;var s=n-Vt(r);if(s<1)return r;var l=a?ui(a,0,s).join(""):e.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),qa(i)){if(e.slice(s).search(i)){var c,u=l;for(i.global||(i=me(i.source,ls(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var f=c.index;l=l.slice(0,void 0===f?s:f)}}else if(e.indexOf(Yr(i),s)!=s){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r},Pn.unescape=function(e){return(e=ls(e))&&F.test(e)?e.replace(j,qt):e},Pn.uniqueId=function(e){var t=++Se;return ls(e)+t},Pn.upperCase=Ds,Pn.upperFirst=zs,Pn.each=la,Pn.eachRight=ca,Pn.first=jo,Zs(Pn,(fl={},cr(Pn,(function(e,t){xe.call(Pn.prototype,t)||(fl[t]=e)})),fl),{chain:!1}),Pn.VERSION="4.17.21",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Pn[e].placeholder=Pn})),st(["drop","take"],(function(e,t){Rn.prototype[e]=function(n){n=void 0===n?1:sn(is(n),0);var r=this.__filtered__&&!t?new Rn(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Rn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Rn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Zi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Rn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Rn.prototype[e]=function(){return this.__filtered__?new Rn(this):this[n](1)}})),Rn.prototype.compact=function(){return this.filter(Xs)},Rn.prototype.find=function(e){return this.filter(e).head()},Rn.prototype.findLast=function(e){return this.reverse().find(e)},Rn.prototype.invokeMap=Dr((function(e,t){return"function"==typeof e?new Rn(this):this.map((function(n){return br(n,e,t)}))})),Rn.prototype.reject=function(e){return this.filter(_a(Zi(e)))},Rn.prototype.slice=function(e,t){e=is(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Rn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=is(t))<0?n.dropRight(-t):n.take(t-e)),n)},Rn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Rn.prototype.toArray=function(){return this.take(4294967295)},cr(Rn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Pn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Pn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Rn,l=a[0],c=s||La(t),u=function(e){var t=i.apply(Pn,pt([e],a));return r&&f?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var f=this.__chain__,d=!!this.__actions__.length,h=o&&!f,p=s&&!d;if(!o&&c){t=p?t:new Rn(this);var m=e.apply(t,a);return m.__actions__.push({func:ra,args:[u],thisArg:void 0}),new In(m,f)}return h&&p?e.apply(this,a):(m=this.thru(u),h?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Pn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(La(i)?i:[],e)}return this[n]((function(n){return t.apply(La(n)?n:[],e)}))}})),cr(Rn.prototype,(function(e,t){var n=Pn[t];if(n){var r=n.name+"";xe.call(wn,r)||(wn[r]=[]),wn[r].push({name:t,func:n})}})),wn[Pi(void 0,2).name]=[{name:"wrapper",func:void 0}],Rn.prototype.clone=function(){var e=new Rn(this.__wrapped__);return e.__actions__=yi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yi(this.__views__),e},Rn.prototype.reverse=function(){if(this.__filtered__){var e=new Rn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Rn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=La(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=ln(t,e+a);break;case"takeRight":e=sn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,f=u.length,d=0,h=ln(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return ri(e,this.__actions__);var p=[];e:for(;l--&&d<h;){for(var m=-1,g=e[c+=t];++m<f;){var v=u[m],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}p[d++]=g}return p},Pn.prototype.at=ia,Pn.prototype.chain=function(){return na(this)},Pn.prototype.commit=function(){return new In(this.value(),this.__chain__)},Pn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ns(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Pn.prototype.plant=function(e){for(var t,n=this;n instanceof Mn;){var r=Po(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Rn){var t=e;return this.__actions__.length&&(t=new Rn(this)),(t=t.reverse()).__actions__.push({func:ra,args:[Jo],thisArg:void 0}),new In(t,this.__chain__)}return this.thru(Jo)},Pn.prototype.toJSON=Pn.prototype.valueOf=Pn.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},Pn.prototype.first=Pn.prototype.head,Ze&&(Pn.prototype[Ze]=function(){return this}),Pn}();Xe._=Kt,void 0===(i=function(){return Kt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(37),n(87)(e))},function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}
9)),n.d(t,"b",(function(){return b}));var r=n(10),i=n.n(r),o=n(3),a=n(5),s=n(78),l=i.a.BN;const c=new a.b(s.a),u={};function f(e){return null!=e&&(h.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||Object(o.l)(e)||"bigint"==typeof e||Object(o.j)(e))}let d=!1;class h{constructor(e,t){c.checkNew(new.target,h),e!==u&&c.throwError("cannot call constructor directly; use BigNumber.from",a.b.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return m(g(this).fromTwos(e))}toTwos(e){return m(g(this).toTwos(e))}abs(){return"-"===this._hex[0]?h.from(this._hex.substring(1)):this}add(e){return m(g(this).add(g(e)))}sub(e){return m(g(this).sub(g(e)))}div(e){return h.from(e).isZero()&&v("division by zero","div"),m(g(this).div(g(e)))}mul(e){return m(g(this).mul(g(e)))}mod(e){const t=g(e);return t.isNeg()&&v("cannot modulo negative values","mod"),m(g(this).umod(t))}pow(e){const t=g(e);return t.isNeg()&&v("cannot raise to negative values","pow"),m(g(this).pow(t))}and(e){const t=g(e);return(this.isNegative()||t.isNeg())&&v("cannot 'and' negative values","and"),m(g(this).and(t))}or(e){const t=g(e);return(this.isNegative()||t.isNeg())&&v("cannot 'or' negative values","or"),m(g(this).or(t))}xor(e){const t=g(e);return(this.isNegative()||t.isNeg())&&v("cannot 'xor' negative values","xor"),m(g(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&v("cannot mask negative values","mask"),m(g(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&v("cannot shift negative values","shl"),m(g(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&v("cannot shift negative values","shr"),m(g(this).shrn(e))}eq(e){return g(this).eq(g(e))}lt(e){return g(this).lt(g(e))}lte(e){return g(this).lte(g(e))}gt(e){return g(this).gt(g(e))}gte(e){return g(this).gte(g(e))}isNegative(){return"-"===this._hex[0]}isZero(){return g(this).isZero()}toNumber(){try{return g(this).toNumber()}catch(e){v("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return c.throwError("this platform does not support BigInt",a.b.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?d||(d=!0,c.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?c.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",a.b.errors.UNEXPECTED_ARGUMENT,{}):c.throwError("BigNumber.toString does not accept parameters",a.b.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof h)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new h(u,p(e)):e.match(/^-?[0-9]+$/)?new h(u,p(new l(e))):c.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&v("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&v("overflow","BigNumber.from",e),h.from(String(e));const t=e;if("bigint"==typeof t)return h.from(t.toString());if(Object(o.j)(t))return h.from(Object(o.i)(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return h.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(Object(o.l)(e)||"-"===e[0]&&Object(o.l)(e.substring(1))))return h.from(e)}return c.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function p(e){if("string"!=typeof e)return p(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&c.throwArgumentError("invalid hex","value",e),"0x00"===(e=p(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function m(e){return h.from(p(e))}function g(e){const t=h.from(e).toHexString();return"-"===t[0]?new l("-"+t.substring(3),16):new l(t.substring(2),16)}function v(e,t,n){const r={fault:e,operation:t};return null!=n&&(r.value=n),c.throwError(e,a.b.errors.NUMERIC_FAULT,r)}function y(e){return new l(e,36).toString(16)}function b(e){return new l(e,16).toString(36)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}
9)),n.d(t,"e",(function(){return b})),n.d(t,"b",(function(){return k})),n.d(t,"f",(function(){return A})),n.d(t,"d",(function(){return T}));var r=n(12),i=n(17),o=n(3),a=n(50),s=n(13),l=n(4),c=n(41),u=n(34),f=n(5);const d=new f.b("transactions/5.4.0");var h;function p(e){return"0x"===e?null:Object(r.a)(e)}function m(e){return"0x"===e?a.h:i.a.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(h||(h={}));const g=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],v={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function y(e){const t=Object(u.b)(e);return Object(r.a)(Object(o.e)(Object(s.a)(Object(o.e)(t,1)),12))}function b(e,t){return y(Object(u.c)(Object(o.a)(e),t))}function w(e,t){const n=Object(o.o)(i.a.from(e).toHexString());return n.length>32&&d.throwArgumentError("invalid length for "+t,"transaction:"+t,e),n}function E(e,t){return{address:Object(r.a)(e),storageKeys:(t||[]).map((t,n)=>(32!==Object(o.d)(t)&&d.throwArgumentError("invalid access list storageKey",`accessList[${e}:${n}]`,t),t.toLowerCase()))}}function k(e){if(Array.isArray(e))return e.map((e,t)=>Array.isArray(e)?(e.length>2&&d.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),E(e[0],e[1])):E(e.address,e.storageKeys));const t=Object.keys(e).map(t=>{const n=e[t].reduce((e,t)=>(e[t]=!0,e),{});return E(t,Object.keys(n).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function x(e){return k(e).map(e=>[e.address,e.storageKeys])}function S(e,t){if(null!=e.gasPrice){const t=i.a.from(e.gasPrice),n=i.a.from(e.maxFeePerGas||0);t.eq(n)||d.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:n})}const n=[w(e.chainId||0,"chainId"),w(e.nonce||0,"nonce"),w(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),w(e.maxFeePerGas||0,"maxFeePerGas"),w(e.gasLim
9it||0,"gasLimit"),null!=e.to?Object(r.a)(e.to):"0x",w(e.value||0,"value"),e.data||"0x",x(e.accessList||[])];if(t){const e=Object(o.n)(t);n.push(w(e.recoveryParam,"recoveryParam")),n.push(Object(o.o)(e.r)),n.push(Object(o.o)(e.s))}return Object(o.c)(["0x02",c.encode(n)])}function _(e,t){const n=[w(e.chainId||0,"chainId"),w(e.nonce||0,"nonce"),w(e.gasPrice||0,"gasPrice"),w(e.gasLimit||0,"gasLimit"),null!=e.to?Object(r.a)(e.to):"0x",w(e.value||0,"value"),e.data||"0x",x(e.accessList||[])];if(t){const e=Object(o.n)(t);n.push(w(e.recoveryParam,"recoveryParam")),n.push(Object(o.o)(e.r)),n.push(Object(o.o)(e.s))}return Object(o.c)(["0x01",c.encode(n)])}function A(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&d.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){Object(l.b)(e,v);const n=[];g.forEach((function(t){let r=e[t.name]||[];const i={};t.numeric&&(i.hexPad="left"),r=Object(o.a)(Object(o.i)(r,i)),t.length&&r.length!==t.length&&r.length>0&&d.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),t.maxLength&&(r=Object(o.o)(r),r.length>t.maxLength&&d.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r)),n.push(Object(o.i)(r))}));let r=0;if(null!=e.chainId?(r=e.chainId,"number"!=typeof r&&d.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!Object(o.k)(t)&&t.v>28&&(r=Math.floor((t.v-35)/2)),0!==r&&(n.push(Object(o.i)(r)),n.push("0x"),n.push("0x")),!t)return c.encode(n);const i=Object(o.n)(t);let a=27+i.recoveryParam;return 0!==r?(n.pop(),n.pop(),n.pop(),a+=2*r+8,i.v>28&&i.v!==a&&d.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==a&&d.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),n.push(Object(o.i)(a)),n.push(Object(o.o)(Object(o.a)(i.r))),n.push(Object(o.o)(Object(o.a)(i.s))),c.encode(n)}(e,t);switch(e.type){case 1:return _(e,t);case 2:return S(e,t)}return d.throwError("unsupported transaction type: "+e.type,f.b.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function C(e,t,n){try{const n=m(t[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");e.v=n}catch(e){d.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=Object(o.h)(t[1],32),e.s=Object(o.h)(t[2],32);try{const t=Object(s.a)(n(e));e.from=b(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){console.log(e)}}function T(e){const t=Object(o.a)(e);if(t[0]>127)return function(e){const t=c.decode(e);9!==t.length&&6!==t.length&&d.throwArgumentError("invalid raw transaction","rawTransaction",e);const n={nonce:m(t[0]).toNumber(),gasPrice:m(t[1]),gasLimit:m(t[2]),to:p(t[3]),value:m(t[4]),data:t[5],chainId:0};if(6===t.length)return n;try{n.v=i.a.from(t[6]).toNumber()}catch(e){return console.log(e),n}if(n.r=Object(o.h)(t[7],32),n.s=Object(o.h)(t[8],32),i.a.from(n.r).isZero()&&i.a.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let r=n.v-27;const i=t.slice(0,6);0!==n.chainId&&(i.push(Object(o.i)(n.chainId)),i.push("0x"),i.push("0x"),r-=2*n.chainId+8);const a=Object(s.a)(c.encode(i));try{n.from=b(a,{r:Object(o.i)(n.r),s:Object(o.i)(n.s),recoveryParam:r})}catch(e){console.log(e)}n.hash=Object(s.a)(e)}return n.type=null,n}(t);switch(t[0]){case 1:return function(e){const t=c.decode(e.slice(1));8!==t.length&&11!==t.length&&d.throwArgumentError("invalid component count for transaction type: 1","payload",Object(o.i)(e));const n={type:1,chainId:m(t[0]).toNumber(),nonce:m(t[1]).toNumber(),gasPrice:m(t[2]),gasLimit:m(t[3]),to:p(t[4]),value:m(t[5]),data:t[6],accessList:k(t[7])};return 8===t.length||(n.hash=Object(s.a)(e),C(n,t.slice(8),_)),n}(t);case 2:return function(e){const t=c.decode(e.slice(1));9!==t.length&&12!==t.length&&d.throwArgumentError("invalid component count for transaction type: 2","payload",Object(o.i)(e));const n=m(t[2]),r=m(t[3]),i={type:2,chainId:m(t[0]).toNumber(),nonce:m(t[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:m(t[4]),to:p(t[5]),value:m(t[6]),data:t[7],accessList:k(t[8])};return 9===t.length||(i.hash=Object(s.a)(e),C(i,t.slice(9),S)),i}(t)}return d.throwError("unsupported transaction type: "+t[0],f.b.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};
9Object.defineProperty(t,"__esModule",{value:!0}),i(n(215),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCORING_CONTRACT_ADDRESS=t.GPT_CREDIT_CONTRACT_ADDRESS=t.BETTING_CONTRACT_ADDRESS=t.WHITELIST_CONTRACT_ADDRESS=t.GETTERS_CONTRACT_ADDRESS=t.TOKENS_CONTRACT_ADDRESS=t.CORE_CONTRACT_ADDRESS=t.LAZY_UPDATE_LIBRARY_ADDRESS=t.INITIALIZE_LIBRARY_ADDRESS=t.VERIFIER_LIBRARY_ADDRESS=t.ARTIFACT_UTILS_LIBRARY_ADDRESS=t.PLANET_LIBRARY_ADDRESS=t.UTILS_LIBRARY_ADDRESS=t.START_BLOCK=t.NETWORK_ID=t.NETWORK=void 0,t.NETWORK="harmonydevnet",t.NETWORK_ID=16669e5,t.START_BLOCK=8309696,t.UTILS_LIBRARY_ADDRESS="0x610c6729a0e979f23C79cc7Ca33AFEDB7B2143E3",t.PLANET_LIBRARY_ADDRESS="0x1398d4964Ecde488d8C4c32Df5F1503F3edD4f91",t.ARTIFACT_UTILS_LIBRARY_ADDRESS="0x1fA1187F55BFe09C9DD0cecff992f597Da078641",t.VERIFIER_LIBRARY_ADDRESS="0xcAD4Be421E051112B51cCeD51A142Da8c2485B7E",t.INITIALIZE_LIBRARY_ADDRESS="0x27B1Bc88758f042238005A4D2FE222e03152B455",t.LAZY_UPDATE_LIBRARY_ADDRESS="0x63532B3F128Aa1701D3a02f4d9D35Ff8aA64EdBa",t.CORE_CONTRACT_ADDRESS="0x040EB67a754530DD287a522eCBA0FE2F94F3F8C5",t.TOKENS_CONTRACT_ADDRESS="0x7660C53fea64185c9BfbaEf669e490E3324Ea8eb",t.GETTERS_CONTRACT_ADDRESS="0x152Caa02ED9394950961D163ce54EdC95269abeA",t.WHITELIST_CONTRACT_ADDRESS="0x81622E600541c7238b0a4B7395aC2212cDfB04Ec",t.BETTING_CONTRACT_ADDRESS="0x70182CbebaE4fA70A26c200B1a2e67672D64FaCD",t.GPT_CREDIT_CONTRACT_ADDRESS="0xbadB2FBF07BdADb18c878d6E6EC4C6c43A265667",t.SCORING_CONTRACT_ADDRESS=""},function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(3),i=n(17),o=n(4),a=n(5),s=n(49);const l=new a.b(s.a);function c(e){const t=[],n=function(e,r){if(Array.isArray(r))for(let i in r){const o=e.slice();o.push(i);try{n(o,r[i])}catch(e){t.push({path:o,error:e})}}};return n([],e),t}class u{constructor(e,t,n,r){this.name=e,this.type=t,this.localName=n,this.dynamic=r}_throwError(e,t){l.throwArgumentError(e,this.localName,t)}}class f{constructor(e){Object(o.d)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return Object(r.c)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(Object(r.b)(e._data))}writeBytes(e){let t=Object(r.a)(e);const n=t.length%this.wordSize;return n&&(t=Object(r.b)([t,this._padding.slice(n)])),this._writeData(t)}_getValue(e){let t=Object(r.a)(i.a.from(e));return t.length>this.wordSize&&l.throwError("value out-of-bounds",a.b.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(r.b)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class d{constructor(e,t,n,i){Object(o.d)(this,"_data",Object(r.a)(e)),Object(o.d)(this,"wordSize",t||32),Object(o.d)(this,"_coerceFunc",n),Object(o.d)(this,"allowLoose",i),this._offset=0}get data(){return Object(r.i)(this._data)}get consumed(){return this._offset}static coerce(e,t){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):d.coerce(e,t)}_peekBytes(e,t,n){let r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?r=t:l.throwError("data out-of-bounds",a.b.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}subReader(e){return new d(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)}readValue(){return i.a.from(this.readBytes(this.wordSize))}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return x})),n.d(t,"g",(function(){return S})),n.d(t,"f",(function(){return _})),n.d(t,"c",(function(){return A})),n.d(t,"e",(function(){return C})),n.d(t,"d",(function(){return T}));var r=n(53),i=n(3),o=n(17),a=n(33),s=n(304),l=n(4),c=n(34),u=n(155),f=n(141),d=n(18),h=n(302);const p=new(n(5).b)("hdnode/5.4.0"),m=o.a.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),g=Object(a.f)("Bitcoin seed");function v(e){return(1<<e)-1<<8-e}function y(e){return Object(i.h)(Object(i.i)(e),32)}function b(e){return r.a.encode(Object(i.b)([e,Object(i.e)(Object(u.c)(Object(u.c)(e)),0,4)]))}function w(e){if(null==e)return h.a.en;if("string"==typeof e){const t=h.a[e];return null==t&&p.throwArgumentError("unknown locale","wordlist",e),t}return e}const E={},k="m/44'/60'/0'/0/0";class x{constructor(e,t,n,r,o,a,s,f){if(p.checkNew(new.target,x),e!==E)throw new Error("HDNode constructor cannot be called directly");if(t){const e=new c.a(t);Object(l.d)(this,"privateKey",e.privateKey),Object(l.d)(this,"publicKey",e.compressedPublicKey)}else Object(l.d)(this,"privateKey",null),Object(l.d)(this,"publicKey",Object(i.i)(n));Object(l.d)(this,"parentFingerprint",r),Object(l.d)(this,"fingerprint",Object(i.e)(Object(u.b)(Object(u.c)(this.publicKey)),0,4)),Ob
9ject(l.d)(this,"address",Object(d.c)(this.publicKey)),Object(l.d)(this,"chainCode",o),Object(l.d)(this,"index",a),Object(l.d)(this,"depth",s),null==f?(Object(l.d)(this,"mnemonic",null),Object(l.d)(this,"path",null)):"string"==typeof f?(Object(l.d)(this,"mnemonic",null),Object(l.d)(this,"path",f)):(Object(l.d)(this,"mnemonic",f),Object(l.d)(this,"path",f.path))}get extendedKey(){if(this.depth>=256)throw new Error("Depth too large!");return b(Object(i.b)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(i.i)(this.depth),this.parentFingerprint,Object(i.h)(Object(i.i)(this.index),4),this.chainCode,null!=this.privateKey?Object(i.b)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new x(E,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(2147483647&e));const n=new Uint8Array(37);if(2147483648&e){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(Object(i.a)(this.privateKey),1),t&&(t+="'")}else n.set(Object(i.a)(this.publicKey));for(let t=24;t>=0;t-=8)n[33+(t>>3)]=e>>24-t&255;const r=Object(i.a)(Object(u.a)(f.a.sha512,this.chainCode,n)),a=r.slice(0,32),s=r.slice(32);let l=null,d=null;if(this.privateKey)l=y(o.a.from(a).add(this.privateKey).mod(m));else{d=new c.a(Object(i.i)(a))._addPoint(this.publicKey)}let h=t;const p=this.mnemonic;return p&&(h=Object.freeze({phrase:p.phrase,path:t,locale:p.locale||"en"})),new x(E,l,d,this.fingerprint,y(s),e,this.depth+1,h)}derivePath(e){const t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();let n=this;for(let e=0;e<t.length;e++){const r=t[e];if(r.match(/^[0-9]+'$/)){const e=parseInt(r.substring(0,r.length-1));if(e>=2147483648)throw new Error("invalid path index - "+r);n=n._derive(2147483648+e)}else{if(!r.match(/^[0-9]+$/))throw new Error("invalid path component - "+r);{const e=parseInt(r);if(e>=2147483648)throw new Error("invalid path index - "+r);n=n._derive(e)}}}return n}static _fromSeed(e,t){const n=Object(i.a)(e);if(n.length<16||n.length>64)throw new Error("invalid seed");const r=Object(i.a)(Object(u.a)(f.a.sha512,g,n));return new x(E,y(r.slice(0,32)),null,"0x00000000",y(r.slice(32)),0,0,t)}static fromMnemonic(e,t,n){return e=A(_(e,n=w(n)),n),x._fromSeed(S(e,t),{phrase:e,path:"m",locale:n.locale})}static fromSeed(e){return x._fromSeed(e,null)}static fromExtendedKey(e){const t=r.a.decode(e);82===t.length&&b(t.slice(0,78))===e||p.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=t[4],o=Object(i.i)(t.slice(5,9)),a=parseInt(Object(i.i)(t.slice(9,13)).substring(2),16),s=Object(i.i)(t.slice(13,45)),l=t.slice(45,78);switch(Object(i.i)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new x(E,null,Object(i.i)(l),o,s,a,n,null);case"0x0488ade4":case"0x04358394 ":if(0!==l[0])break;return new x(E,Object(i.i)(l.slice(1)),null,o,s,a,n,null)}return p.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function S(e,t){t||(t="");const n=Object(a.f)("mnemonic"+t,a.a.NFKD);return Object(s.a)(Object(a.f)(e,a.a.NFKD),n,2048,64,"sha512")}function _(e,t){t=w(t),p.checkNormalize();const n=t.split(e);if(n.length%3!=0)throw new Error("invalid mnemonic");const r=Object(i.a)(new Uint8Array(Math.ceil(11*n.length/8)));let o=0;for(let e=0;e<n.length;e++){let i=t.getWordIndex(n[e].normalize("NFKD"));if(-1===i)throw new Error("invalid mnemonic");for(let e=0;e<11;e++)i&1<<10-e&&(r[o>>3]|=1<<7-o%8),o++}const a=32*n.length/3,s=v(n.length/3);if((Object(i.a)(Object(u.c)(r.slice(0,a/8)))[0]&s)!==(r[r.length-1]&s))throw new Error("invalid checksum");return Object(i.i)(r.slice(0,a/8))}function A(e,t){if(t=w(t),(e=Object(i.a)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");const n=[0];let r=11;for(let t=0;t<e.length;t++)r>8?(n[n.length-1]<<=8,n[n.length-1]|=e[t],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=e[t]>>8-r,n.push(e[t]&(1<<8-r)-1),r+=3);const o=e.length/4,a=Object(i.a)(Object(u.c)(e))[0]&v(o);return n[n.length-1]<<=o,n[n.length-1]|=a>>8-o,t.join(n.map(e=>t.getWord(e)))}function C(e,t){try{return _(e,t),!0}catch(e){}return!1}function T(e){return("number"!=typeof e||e<0||e>=2147483648||e%1)&&p.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}},function(e,t){var n="undefined"!=typeof ArrayBuffer,r="undefined"!=typeof Symbol;function i(e,t){var i,o,a,s,l;
9if(!e)throw new Error("obliterator/forEach: invalid iterable.");if("function"!=typeof t)throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||n&&ArrayBuffer.isView(e)||"string"==typeof e||"[object Arguments]"===e.toString())for(a=0,s=e.length;a<s;a++)t(e[a],a);else if("function"!=typeof e.forEach)if(r&&Symbol.iterator in e&&"function"!=typeof e.next&&(e=e[Symbol.iterator]()),"function"!=typeof e.next)for(o in e)e.hasOwnProperty(o)&&t(e[o],o);else for(i=e,a=0;!0!==(l=i.next()).done;)t(l.value,a),a++;else e.forEach(t)}i.forEachWithNullKeys=function(e,t){var i,o,a,s,l;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if("function"!=typeof t)throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||n&&ArrayBuffer.isView(e)||"string"==typeof e||"[object Arguments]"===e.toString())for(a=0,s=e.length;a<s;a++)t(e[a],null);else if(e instanceof Set)e.forEach((function(e){t(e,null)}));else if("function"!=typeof e.forEach)if(r&&Symbol.iterator in e&&"function"!=typeof e.next&&(e=e[Symbol.iterator]()),"function"!=typeof e.next)for(o in e)e.hasOwnProperty(o)&&t(e[o],o);else for(i=e,a=0;!0!==(l=i.next()).done;)t(l.value,null),a++;else e.forEach(t)},e.exports=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(237),t),i(n(126),t)},function(e,t,n){"use strict";e.exports=(e,{include:t,exclude:n}={})=>{const r=e=>{const r=t=>"string"==typeof t?e===t:t.test(e);return t?t.some(r):!n||!n.some(r)};for(const[t,n]of(e=>{const t=new Set;do{for(const n of Reflect.ownKeys(e))t.add([e,n])}while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return t})(e.constructor.prototype)){if("constructor"===n||!r(n))continue;const i=Reflect.getOwnPropertyDescriptor(t,n);i&&"function"==typeof i.value&&(e[n]=e[n].bind(e))}return e}},function(e,t,n){"use strict";var r=n(193),i=n(197),o=[].slice,a=["keyword","gray","hex"],s={};
vendor: 5,569 bytes, line 9
9Object.keys(i).forEach((function(e){s[o.call(i[e].labels).sort().join("")]=e}));var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in a&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);var n,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var f=r.get(e);if(null===f)throw new Error("Unable to parse color from string: "+e);this.model=f.model,u=i[this.model].channels,this.color=f.value.slice(0,u),this.valpha="number"==typeof f.value[u]?f.value[u]:1}else if(e.length){this.model=t||"rgb",u=i[this.model].channels;var d=o.call(e,0,u);this.color=h(d,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);"alpha"in e&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var m=p.sort().join("");if(!(m in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[m];var g=i[this.model].labels,v=[];for(n=0;n<g.length;n++)v.push(e[g[n]]);this.color=h(v)}if(l[this.model])for(u=i[this.model].channels,n=0;n<u;n++){var y=l[this.model][n];y&&(this.color[n]=y(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function u(e,t,n){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(l[e]||(l[e]=[]))[t]=n})),e=e[0],function(r){var i;return arguments.length?(n&&(r=n(r)),(i=this[e]()).color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function f(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e){return Array.isArray(e)?e:[e]}function h(e,t){for(var n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}c.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in r.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return r.to[t.model](n)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:t.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=i[this.model].channels,n=i[this.model].labels,r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new c(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new c(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:u("rgb",0,f(255)),green:u("rgb",1,f(255)),blue:u("rgb",2,f(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:u("hsl",1,f(100)),lightness:u("hsl",2,f(100)),saturationv:u("hsv",1,f(100)),value:u("hsv",2,f(100)),chroma:u("hcg",1,f(100)),gray:u("hcg",2,f(100)),white:u("hwb",1,f(100)),wblack:u("hwb",2,f(100)),cyan:u("cmyk",0,f(100)),magenta:u("cmyk",1,f(100)),yellow:u("cmyk",2,f(100)),black:u("cmyk",3,f(100)),x:u("xyz",0,f(100)),y:u("xyz",1,f(100)),z:u("xyz",2,f(100)),l:u("lab",0,f(100)),a:u("lab",1),b:u("lab",2),keyword:function(e){return arguments.length?new c(e):i[this.model].keyword(this.color)},hex:function(e){return arguments.length?new c(e):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return c.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}}
vendor: 5,035 bytes, line 9
9,Object.keys(i).forEach((function(e){if(-1===a.indexOf(e)){var t=i[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var n="number"==typeof arguments[t]?t:this.valpha;return new c(d(i[this.model][e].raw(this.color)).concat(n),e)},c[e]=function(n){return"number"==typeof n&&(n=h(o.call(arguments),t)),new c(n,e)}}})),e.exports=c},,function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,n)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a,s;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var c=l.length,u=g(l,c);for(n=0;n<c;++n)o(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit
9("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return g}));var r=n(90),i=n(3),o=n(4),a=n(33),s=n(5);var l=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function c(e,t){return l(this,void 0,void 0,(function*(){null==t&&(t={});const n={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0,mode:"cors",cache:"no-cache",credentials:"same-origin",redirect:"follow",referrer:"client"},r=yield fetch(e,n),o=yield r.arrayBuffer(),a={};return r.headers.forEach?r.headers.forEach((e,t)=>{a[t.toLowerCase()]=e}):r.headers.keys().forEach(e=>{a[e.toLowerCase()]=r.headers.get(e)}),{headers:a,statusCode:r.status,statusMessage:r.statusText,body:Object(i.a)(new Uint8Array(o))}}))}var u=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const f=new s.b("web/5.4.0");function d(e){return new Promise(t=>{setTimeout(t,e)})}function h(e,t){if(null==e)return null;if("string"==typeof e)return e;if(Object(i.k)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Object(a.h)(e)}catch(e){}return Object(i.i)(e)}return e}function p(e,t,n){const i="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;f.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);const o="object"==typeof e?e.throttleCallback:null,l="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;f.assertArgument(l>0&&l%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",l);const p={};let m=null;const g={method:"GET"};let v=!1,y=12e4;if("string"==typeof e)m=e;else if("object"==typeof e){if(null!=e&&null!=e.url||f.throwArgumentError("missing URL","connection.url",e),m=e.url,"number"==typeof e.timeout&&e.timeout>0&&(y=e.timeout),e.headers)for(const t in e.headers)p[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(v=!0);if(g.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==m.substring(0,6)&&!0!==e.allowInsecureAuthentication&&f.throwError("basic authentication requires a secure https url",s.b.errors.INVALID_ARGUMENT,{argument:"url",url:m,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;p.authorization={key:"Authorization",value:"Basic "+Object(r.b)(Object(a.f)(t))}}}t&&(g.method="POST",g.body=t,null==p["content-type"]&&(p["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==p["content-length"]&&(p["content-length"]={key:"Content-Length",value:String(t.length)}));const b={};
9Object.keys(p).forEach(e=>{const t=p[e];b[t.key]=t.value}),g.headers=b;const w=function(){let e=null;return{promise:new Promise((function(t,n){y&&(e=setTimeout(()=>{null!=e&&(e=null,n(f.makeError("timeout",s.b.errors.TIMEOUT,{requestBody:h(g.body,b["content-type"]),requestMethod:g.method,timeout:y,url:m})))},y))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),E=function(){return u(this,void 0,void 0,(function*(){for(let e=0;e<i;e++){let t=null;try{if(t=yield c(m,g),429===t.statusCode&&e<i){let n=!0;if(o&&(n=yield o(e,m)),n){let n=0;const r=t.headers["retry-after"];n="string"==typeof r&&r.match(/^[1-9][0-9]*$/)?1e3*parseInt(r):l*parseInt(String(Math.random()*Math.pow(2,e))),yield d(n);continue}}}catch(e){t=e.response,null==t&&(w.cancel(),f.throwError("missing response",s.b.errors.SERVER_ERROR,{requestBody:h(g.body,b["content-type"]),requestMethod:g.method,serverError:e,url:m}))}let r=t.body;if(v&&304===t.statusCode?r=null:(t.statusCode<200||t.statusCode>=300)&&(w.cancel(),f.throwError("bad response",s.b.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:h(r,t.headers?t.headers["content-type"]:null),requestBody:h(g.body,b["content-type"]),requestMethod:g.method,url:m})),n)try{const e=yield n(r,t);return w.cancel(),e}catch(n){if(n.throttleRetry&&e<i){let t=!0;if(o&&(t=yield o(e,m)),t){const t=l*parseInt(String(Math.random()*Math.pow(2,e)));yield d(t);continue}}w.cancel(),f.throwError("processing response error",s.b.errors.SERVER_ERROR,{body:h(r,t.headers?t.headers["content-type"]:null),error:n,requestBody:h(g.body,b["content-type"]),requestMethod:g.method,url:m})}return w.cancel(),r}return f.throwError("failed response",s.b.errors.SERVER_ERROR,{requestBody:h(g.body,b["content-type"]),requestMethod:g.method,url:m})}))}();return Promise.race([w.promise,E])}function m(e,t,n){let r=null;if(null!=t){r=Object(a.f)(t);const n="string"==typeof e?{url:e}:Object(o.g)(e);if(n.headers){0!==Object.keys(n.headers).filter(e=>"content-type"===e.toLowerCase()).length||(n.headers=Object(o.g)(n.headers),n.headers["content-type"]="application/json")}else n.headers={"content-type":"application/json"};e=n}return p(e,r,(e,t)=>{let r=null;if(null!=e)try{r=JSON.parse(Object(a.h)(e))}catch(t){f.throwError("invalid JSON",s.b.errors.SERVER_ERROR,{body:e,error:t})}return n&&(r=n(r,t)),r})}function g(e,t){return t||(t={}),null==(t=Object(o.g)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(n,r){let i=null,o=!1;const a=()=>!o&&(o=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout(()=>{a()&&r(new Error("timeout"))},t.timeout));const s=t.retryLimit;let l=0;!function i(){return e().then((function(e){if(void 0!==e)a()&&n(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(l++,l>s)return void(a()&&r(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,l)));e<t.floor&&(e=t.floor),e>t.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null}),(function(e){a()&&r(e)}))}()}))}},,function(e,t){function n(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}n.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e},"undefined"!=typeof Symbol&&(n.prototype[Symbol.iterator]=function(){return this}),n.of=function(){var e=arguments,t=e.length,r=0;return new n((function(){return r>=t?{done:!0}:{done:!1,value:e[r++]}}))},n.empty=function(){var e=new n(null);return e.done=!0,e},n.is=function(e){return e instanceof n||"object"==typeof e&&null!==e&&"function"==typeof e.next},e.exports=n},function(e,t,n){var r=t;r.utils=n(48),r.common=n(67),r.sha=n(224),r.ripemd=n(228),r.hmac=n(229),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"g",(function(){return m}));var r=n(3);const i=new(n(5).b)("strings/5.4.0");var o,a;function s(e,t,n,r,i){if(e===a.BAD_PREFIX||e===a.UNEXPECTED_CONTINUE){let e=0;for(let r=t+1;r<n.length&&n[r]>>6==2;r++)e++;return e}return e===a.OVERRUN?n.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(o||(o={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(a||(a={}));const l=Object.freeze({error:function(e,t,n,r,o){return i.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:s,replace:function(e,t,n,r,i){return e===a.OVERLONG?(r.push(i),0):(r.push(65533),s(e,t,n
9))}});function c(e,t){null==t&&(t=l.error),e=Object(r.a)(e);const n=[];let i=0;for(;i<e.length;){const r=e[i++];if(r>>7==0){n.push(r);continue}let o=null,s=null;if(192==(224&r))o=1,s=127;else if(224==(240&r))o=2,s=2047;else{if(240!=(248&r)){i+=t(128==(192&r)?a.UNEXPECTED_CONTINUE:a.BAD_PREFIX,i-1,e,n);continue}o=3,s=65535}if(i-1+o>=e.length){i+=t(a.OVERRUN,i-1,e,n);continue}let l=r&(1<<8-o-1)-1;for(let r=0;r<o;r++){let r=e[i];if(128!=(192&r)){i+=t(a.MISSING_CONTINUE,i,e,n),l=null;break}l=l<<6|63&r,i++}null!==l&&(l>1114111?i+=t(a.OUT_OF_RANGE,i-1-o,e,n,l):l>=55296&&l<=57343?i+=t(a.UTF16_SURROGATE,i-1-o,e,n,l):l<=s?i+=t(a.OVERLONG,i-1-o,e,n,l):n.push(l))}return n}function u(e,t=o.current){t!=o.current&&(i.checkNormalize(),e=e.normalize(t));let n=[];for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r<128)n.push(r);else if(r<2048)n.push(r>>6|192),n.push(63&r|128);else if(55296==(64512&r)){t++;const i=e.charCodeAt(t);if(t>=e.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&r)<<10)+(1023&i);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(r>>12|224),n.push(r>>6&63|128),n.push(63&r|128)}return Object(r.a)(n)}function f(e){const t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function d(e,t){return'"'+c(e,t).map(e=>{if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?f(e):f(55296+((e-=65536)>>10&1023))+f(56320+(1023&e))}).join("")+'"'}function h(e){return e.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))).join("")}function p(e,t){return h(c(e,t))}function m(e,t=o.current){return c(u(e,t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return f}));var r=n(139),i=n(3),o=n(4);const a=new(n(5).b)("signing-key/5.4.0");let s=null;function l(){return s||(s=new r.a("secp256k1")),s}class c{constructor(e){Object(o.d)(this,"curve","secp256k1"),Object(o.d)(this,"privateKey",Object(i.i)(e));const t=l().keyFromPrivate(Object(i.a)(this.privateKey));Object(o.d)(this,"publicKey","0x"+t.getPublic(!1,"hex")),Object(o.d)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),Object(o.d)(this,"_isSigningKey",!0)}_addPoint(e){const t=l().keyFromPublic(Object(i.a)(this.publicKey)),n=l().keyFromPublic(Object(i.a)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const t=l().keyFromPrivate(Object(i.a)(this.privateKey)),n=Object(i.a)(e);32!==n.length&&a.throwArgumentError("bad digest length","digest",e);const r=t.sign(n,{canonical:!0});return Object(i.n)({recoveryParam:r.recoveryParam,r:Object(i.h)("0x"+r.r.toString(16),32),s:Object(i.h)("0x"+r.s.toString(16),32)})}computeSharedSecret(e){const t=l().keyFromPrivate(Object(i.a)(this.privateKey)),n=l().keyFromPublic(Object(i.a)(f(e)));return Object(i.h)("0x"+t.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function u(e,t){const n=Object(i.n)(t),r={r:Object(i.a)(n.r),s:Object(i.a)(n.s)};return"0x"+l().recoverPubKey(Object(i.a)(e),r,n.recoveryParam).encode("hex",!1)}function f(e,t){const n=Object(i.a)(e);if(32===n.length){const e=new c(n);return t?"0x"+l().keyFromPrivate(n).getPublic(!0,"hex"):e.publicKey}return 33===n.length?t?Object(i.i)(n):"0x"+l().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+l().keyFromPublic(n).getPublic(!0,"hex"):Object(i.i)(n):a.throwArgumentError("invalid public or private key","key","[REDACTED]")}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"g",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"a",(function(){return k})),n.d(t,"f",(function(){return x})),n.d(t,"b",(function(){return _}));var r=n(17),i=n(4),o=n(5),a=n(49);const s=new o.b(a.a),l={};let c={calldata:!0,memory:!0,storage:!0},u={calldata:!0,memory:!0};function f(e,t){if("bytes"===e||"string"===e){if(c[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&u[t])return!0;return(c[t]||"payable"===t)&&s.throwArgumentError("invalid modifier","name",t),!1}
vendor: 9,289 bytes, line 9
9function d(e,t){for(let n in t)Object(i.d)(e,n,t[n])}const h=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),p=new RegExp(/^(.*)\[([0-9]*)\]$/);class m{constructor(e,t){e!==l&&s.throwError("use fromString",o.b.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),d(this,t);let n=this.type.match(p);d(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:m.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=h.sighash),h[e]||s.throwArgumentError("invalid format type","format",e),e===h.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==h.sighash&&(t+=this.type),t+="("+this.components.map(t=>t.format(e)).join(e===h.full?", ":",")+")"):t+=this.type,e!==h.sighash&&(!0===this.indexed&&(t+=" indexed"),e===h.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?m.fromString(e,t):m.fromObject(e)}static fromObject(e){return m.isParamType(e)?e:new m(l,{name:e.name||null,type:A(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(m.fromObject):null})}static fromString(e,t){return function(e){return m.fromObject({name:e.name,type:e.type,indexed:e.indexed,components:e.components})}(function(e,t){let n=e;function r(t){s.throwArgumentError("unexpected character at position "+t,"param",e)}function i(e){let n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},a=o;for(let n=0;n<e.length;n++){let o=e[n];switch(o){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||r(n),a.state.allowType=!1,a.type=A(a.type),a.components=[i(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(t||r(n),a.indexed=!0,a.name=""),f(a.type,a.name)&&(a.name=""),a.type=A(a.type);let e=a;a=a.parent,a||r(n),delete e.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(t||r(n),a.indexed=!0,a.name=""),f(a.type,a.name)&&(a.name=""),a.type=A(a.type);let s=i(a.parent);a.parent.components.push(s),delete a.parent,a=s;break;case" ":a.state.allowType&&""!==a.type&&(a.type=A(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(t||r(n),a.indexed&&r(n),a.indexed=!0,a.name=""):f(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||r(n),a.type+=o,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||r(n),a.type+=o,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=o,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=o,delete a.state.allowArray):a.state.readArray?a.type+=o:r(n)}}return a.parent&&s.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===a.name?(t||r(n.length-7),a.indexed&&r(n.length-7),a.indexed=!0,a.name=""):f(a.type,a.name)&&(a.name=""),o.type=A(o.type),o}(e,!!t))}static isParamType(e){return!(null==e||!e._isParamType)}}function g(e,t){return function(e){e=e.trim();let t=[],n="",r=0;for(let i=0;i<e.length;i++){let o=e[i];","===o&&0===r?(t.push(n),n=""):(n+=o,"("===o?r++:")"===o&&(r--,-1===r&&s.throwArgumentError("unbalanced parenthesis","value",e)))}n&&t.push(n);return t}(e).map(e=>m.fromString(e,t))}class v{constructor(e,t){e!==l&&s.throwError("use a static from method",o.b.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),d(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return v.isFragment(e)?e:"string"==typeof e?v.fromString(e):v.fromObject(e)}static fromObject(e){if(v.isFragment(e))return e;switch(e.type){case"function":return x.fromObject(e);case"event":return y.fromObject(e);case"constructor":return k.fromObject(e);case"error":return _.fromObject(e);case"fallback":case"receive":return null}return s.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?y.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?x.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?k.fromString(e.trim()):"error"===e.split(" ")[0]?_.fromString(e.substring(5).trim()):s.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class y extends v{format(e){if(e||(e=h.sighash),h[e]||s.throwArgumentError("invalid format type","format",e),e===h.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==h.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===h.full?", ":",")+") ",e!==h.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?y.fromString(e):y.fromObject(e)}static fromObject(e){if(y.isEventFragment(e))return e;"event"!==e.type&&s.throwArgumentError("invalid event object","value",e);const t={name:T(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(m.fromObject):[],type:"event"};return new y(l,t)}static fromString(e){let t=e.match(P);t||s.throwArgumentError("invalid event string","value",e);let n=!1;return t[3].split(" ").forEach(e=>{switch(e.trim()){case"anonymous":n=!0;break;case"":break;default:s.warn("unknown modifier: "+e)}}),y.fromObject({name:t[1].trim(),anonymous:n,inputs:g(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function b(e,t){t.gas=null;let n=e.split("@");return 1!==n.length?(n.length>2&&s.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||s.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=r.a.from(n[1]),n[0]):e}function w(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}})}function E(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&s.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&s.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||s.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&s.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&s.throwArgumentError("unable to determine stateMutability","value",e),t}class k extends v{format(e){if(e||(e=h.sighash),h[e]||s.throwArgumentError("invalid format type","format",e),e===h.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});e===h.sighash&&s.throwError("cannot format a constructor for sighash",o.b.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map(t=>t.format(e)).join(e===h.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?k.fromString(e):k.fromObject(e)}static fromObject(e){if(k.isConstructorFragment(e))return e;"constructor"!==e.type&&s.throwArgumentError("invalid constructor object","value",e);let t=E(e);t.constant&&s.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(m.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?r.a.from(e.gas):null};return new k(l,n)}static fromString(e){let t={type:"constructor"},n=(e=b(e,t)).match(P);return n&&"constructor"===n[1].trim()||s.throwArgumentError("invalid constructor string","value",e),t.input
9s=g(n[2].trim(),!1),w(n[3].trim(),t),k.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class x extends k{format(e){if(e||(e=h.sighash),h[e]||s.throwArgumentError("invalid format type","format",e),e===h.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==h.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===h.full?", ":",")+") ",e!==h.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map(t=>t.format(e)).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?x.fromString(e):x.fromObject(e)}static fromObject(e){if(x.isFunctionFragment(e))return e;"function"!==e.type&&s.throwArgumentError("invalid function object","value",e);let t=E(e);const n={type:e.type,name:T(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(m.fromObject):[],outputs:e.outputs?e.outputs.map(m.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?r.a.from(e.gas):null};return new x(l,n)}static fromString(e){let t={type:"function"},n=(e=b(e,t)).split(" returns ");n.length>2&&s.throwArgumentError("invalid function string","value",e);let r=n[0].match(P);if(r||s.throwArgumentError("invalid function signature","value",e),t.name=r[1].trim(),t.name&&T(t.name),t.inputs=g(r[2],!1),w(r[3].trim(),t),n.length>1){let r=n[1].match(P);""==r[1].trim()&&""==r[3].trim()||s.throwArgumentError("unexpected tokens","value",e),t.outputs=g(r[2],!1)}else t.outputs=[];return x.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function S(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||s.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class _ extends v{format(e){if(e||(e=h.sighash),h[e]||s.throwArgumentError("invalid format type","format",e),e===h.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==h.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===h.full?", ":",")+") ",t.trim()}static from(e){return"string"==typeof e?_.fromString(e):_.fromObject(e)}static fromObject(e){if(_.isErrorFragment(e))return e;"error"!==e.type&&s.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:T(e.name),inputs:e.inputs?e.inputs.map(m.fromObject):[]};return S(new _(l,t))}static fromString(e){let t={type:"error"},n=e.match(P);return n||s.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&T(t.name),t.inputs=g(n[2],!1),S(_.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function A(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const C=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function T(e){return e&&e.match(C)||s.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const P=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(52);n.d(t,"ethers",(function(){return r}));var i=n(39);n.d(t,"Signer",(function(){return i.a}));var o=n(60);n.d(t,"Wallet",(function(){return o.a})),n.d(t,"VoidSigner",(function(){return i.b}));var a=n(70);n.d(t,"getDefaultProvider",(function(){return a.getDefaultProvider})),n.d(t,"providers",(function(){return r.providers}));var s=n(57);n.d(t,"BaseContract",(function(){return s.a})),n.d(t,"Contract",(function(){return s.b})),n.d(t,"ContractFactory",(function(){return s.c}));var l=n(17);n.d(t,"BigNumber",(function(){return l.a}));var c=n(231);n.d(t,"FixedNumber",(function(){return c.a})),n.d(t,"constants",(function(){return r.constants}));var u=n(5);n.d(t,"errors",(function(){return u.a})),n.d(t,"logger",(function(){return r.logger})),n.d(t,"utils",(function(){return r.utils}));var f=n(302);n.d(t,"wordlists",(function(){return f.a}));var d=n(77);n.d(t,"version",(function(){return d.a}));var h=n(15);n.d(t,"Wordlist",(function(){return h.a}));try{const e=window;null==e._ethers&&(e._ethers=r)}catch(e){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var r=n(4),i=n(5);
9var o=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const a=new i.b("abstract-signer/5.4.1"),s=["accessList","chainId","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],l=[i.b.errors.INSUFFICIENT_FUNDS,i.b.errors.NONCE_EXPIRED,i.b.errors.REPLACEMENT_UNDERPRICED];class c{constructor(){a.checkAbstract(new.target,c),Object(r.d)(this,"_isSigner",!0)}getBalance(e){return o(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)}))}getTransactionCount(e){return o(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)}))}estimateGas(e){return o(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const t=yield Object(r.f)(this.checkTransaction(e));return yield this.provider.estimateGas(t)}))}call(e,t){return o(this,void 0,void 0,(function*(){this._checkProvider("call");const n=yield Object(r.f)(this.checkTransaction(e));return yield this.provider.call(n,t)}))}sendTransaction(e){return o(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),n=yield this.signTransaction(t);return yield this.provider.sendTransaction(n)}))}getChainId(){return o(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return o(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return o(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(e){return o(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)}))}checkTransaction(e){for(const t in e)-1===s.indexOf(t)&&a.throwArgumentError("invalid transaction key: "+t,"transaction",e);const t=Object(r.g)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then(t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&a.throwArgumentError("from address mismatch","transaction",e),t[0])),t}populateTransaction(e){return o(this,void 0,void 0,(function*(){const t=yield Object(r.f)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then(e=>o(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.resolveName(e);return null==t&&a.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))),t.to.catch(e=>{}));const n=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!n?0!==t.type&&1!==t.type||!n||a.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):a.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(n&&a.throwError("network does not support EIP-1559",i.b.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):a.throwError("failed to get consistent fee data",i.b.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch(e=>{if(l.indexOf(e.code)>=0)throw e;return a.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})})),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(t=>(0!==t[1]&&t[0]!==t[1]&&a.throwArgumentError("chainId address mismatch","transaction",e),t[0])),yield Object(r.f)(t)}))}_checkProvider(e){this.provider||a.throwError("missing provider",i.b.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class u extends c{constructor(e,t){a.checkNew(new.target,u),super(),Object(r.d)(this,"address",e),Object(r.d)(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then(()=>{a.throwError(e,i.b.errors.UNSUPPORTED_OPERATION,{operation:t})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new u(this.address,e)}}},function(e,t,n){var r="undefined"!=typeof JSON?JSON:n(232);e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n=t.space||"";"number"==typeof n&&(n=Array(n+1).join(" "));var a,s="boolean"==typeof t.cycles&&t.cycles,l=t.replacer||function(e,t){return t},c=t.cmp&&(a=t.cmp,function(e){return function(t,n){var r={key:t,value:e[t]},i={key:n,value:e[n]};return a(r,i)}}),u=[];return function e(t,a,f,d){var h=n?"\n"+new Array(d+1).join(n):"",p=n?": ":":";if(f&&f.toJSON&&"function"==typeof f.toJSON&&(f=f.toJSON()),void 0!==(f=l.call(t,a,f))){if("object"!=typeof f||null===f)return r.stringify(f);
9if(i(f)){for(var m=[],g=0;g<f.length;g++){var v=e(f,g,f[g],d+1)||r.stringify(null);m.push(h+n+v)}return"["+m.join(",")+h+"]"}if(-1!==u.indexOf(f)){if(s)return r.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}u.push(f);var y=o(f).sort(c&&c(f));for(m=[],g=0;g<y.length;g++){var b=e(f,a=y[g],f[a],d+1);if(b){var w=r.stringify(a)+p+b;m.push(h+n+w)}}return u.splice(u.indexOf(f),1),"{"+m.join(",")+h+"}"}}({"":e},"",e,0)};var i=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},o=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"encode",(function(){return l})),n.d(t,"decode",(function(){return f}));var r=n(3),i=n(5);const o=new i.b("rlp/5.4.0");function a(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function s(e,t,n){let r=0;for(let i=0;i<n;i++)r=256*r+e[t+i];return r}function l(e){return Object(r.i)(function e(t){if(Array.isArray(t)){let n=[];if(t.forEach((function(t){n=n.concat(e(t))})),n.length<=55)return n.unshift(192+n.length),n;const r=a(n.length);return r.unshift(247+r.length),r.concat(n)}Object(r.k)(t)||o.throwArgumentError("RLP object must be BytesLike","object",t);const n=Array.prototype.slice.call(Object(r.a)(t));if(1===n.length&&n[0]<=127)return n;if(n.length<=55)return n.unshift(128+n.length),n;const i=a(n.length);return i.unshift(183+i.length),i.concat(n)}(e))}function c(e,t,n,r){const a=[];for(;n<t+1+r;){const s=u(e,n);a.push(s.result),(n+=s.consumed)>t+1+r&&o.throwError("child data too short",i.b.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:a}}function u(e,t){if(0===e.length&&o.throwError("data too short",i.b.errors.BUFFER_OVERRUN,{}),e[t]>=248){const n=e[t]-247;t+1+n>e.length&&o.throwError("data short segment too short",i.b.errors.BUFFER_OVERRUN,{});const r=s(e,t+1,n);return t+1+n+r>e.length&&o.throwError("data long segment too short",i.b.errors.BUFFER_OVERRUN,{}),c(e,t,t+1+n,n+r)}if(e[t]>=192){const n=e[t]-192;return t+1+n>e.length&&o.throwError("data array too short",i.b.errors.BUFFER_OVERRUN,{}),c(e,t,t+1,n)}if(e[t]>=184){const n=e[t]-183;t+1+n>e.length&&o.throwError("data array too short",i.b.errors.BUFFER_OVERRUN,{});const a=s(e,t+1,n);t+1+n+a>e.length&&o.throwError("data array too short",i.b.errors.BUFFER_OVERRUN,{});return{consumed:1+n+a,result:Object(r.i)(e.slice(t+1+n,t+1+n+a))}}if(e[t]>=128){const n=e[t]-128;t+1+n>e.length&&o.throwError("data too short",i.b.errors.BUFFER_OVERRUN,{});return{consumed:1+n,result:Object(r.i)(e.slice(t+1,t+1+n))}}return{consumed:1,result:Object(r.i)(e[t])}}function f(e){const t=Object(r.a)(e),n=u(t,0);return n.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),n.result}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t){var n=Math.pow(2,8)-1,r=Math.pow(2,16)-1,i=Math.pow(2,32)-1,o=Math.pow(2,7)-1,a=Math.pow(2,15)-1,s=Math.pow(2,31)-1;t.getPointerArray=function(e){var t=e-1;if(t<=n)return Uint8Array;
9if(t<=r)return Uint16Array;if(t<=i)return Uint32Array;throw new Error("mnemonist: Pointer Array of size > 4294967295 is not supported.")},t.getSignedPointerArray=function(e){var t=e-1;return t<=o?Int8Array:t<=a?Int16Array:t<=s?Int32Array:Float64Array},t.getNumberType=function(e){return e===(0|e)?-1===Math.sign(e)?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var l={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};t.getMinimalRepresentation=function(e,n){var r,i,o,a,s,c=null,u=0;for(a=0,s=e.length;a<s;a++)o=n?n(e[a]):e[a],i=t.getNumberType(o),(r=l[i.name])>u&&(u=r,c=i);return c},t.isTypedArray=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView(e)},t.concat=function(){var e,t,n,r=0;for(e=0,n=arguments.length;e<n;e++)r+=arguments[e].length;var i=new arguments[0].constructor(r);for(e=0,t=0;e<n;e++)i.set(arguments[e],t),t+=arguments[e].length;return i},t.indices=function(e){for(var n=new(t.getPointerArray(e))(e),r=0;r<e;r++)n[r]=r;return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var r=n(17),i=(n(3),n(4)),o=n(5);var a=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const s=new o.b("abstract-provider/5.4.1");class l extends i.a{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class c{constructor(){s.checkAbstract(new.target,c),Object(i.d)(this,"_isProvider",!0)}getFeeData(){return a(this,void 0,void 0,(function*(){const{block:e,gasPrice:t}=yield Object(i.f)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(e=>null)});let n=null,o=null;return e&&e.baseFeePerGas&&(o=r.a.from("2500000000"),n=e.baseFeePerGas.mul(2).add(o)),{maxFeePerGas:n,maxPriorityFeePerGas:o,gasPrice:t}}))}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.planetHasBonus=t.bonusFromHex=t.getBytesFromHex=void 0;const i=r(n(8));function o(e,t,n){const r=e.substring(2*t,2*n);return(0,i.default)("0x"+r)}t.getBytesFromHex=o;const a=new Map;function s(e){const t=a.get(e);if(t)return t;const n=Array(5).fill(!1);for(let t=0;t<n.length;t++)n[t]=o(e,9+t,10+t).lesser(16);return a.set(e,n),n}t.bonusFromHex=s,t.planetHasBonus=function(e){return!!e&&s(e.locationId).some(e=>e)}},function(e,t,n){"use strict";!function(t){function n(e){return parseInt(e)===e}function r(e){if(!n(e.length))return!1;for(var t=0;t<e.length;t++)if(!n(e[t])||e[t]<0||e[t]>255)return!1;return!0}function i(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function o(e){return new Uint8Array(e)}function a(e,t,n,r,i){null==r&&null==i||(e=e.slice?e.slice(r,i):Array.prototype.slice.call(e,r,i)),t.set(e,n)}var s,l={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n<e.length;){var r=e.charCodeAt(n++);37===r?(t.push(parseInt(e.substr(n,2),16)),n+=2):t.push(r)}return i(t)},fromBytes:function(e){for(var t=[],n=0;n<e.length;){var r=e[n];r<128?(t.push(String.fromCharCode(r)),n++):r>191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},c=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},fromBytes:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(s[(240&r)>>4]+s[15&r])}return t.join("")}}),u={16:10,24:12,32:14},f=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,9
90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,16733
913503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],g=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389
9623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],v=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],y=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,
9632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],b=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],w=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,12974
903050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],E=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,60
97398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],k=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],x=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,12
901765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],S=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],_=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861
vendor: 4,961 bytes, line 9
9748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function A(e){for(var t=[],n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}var C=function(e){if(!(this instanceof C))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:i(e,!0)}),this._prepare()};C.prototype._prepare=function(){var e=u[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var n,r=4*(e+1),i=this.key.length/4,o=A(this.key);for(t=0;t<i;t++)n=t>>2,this._Ke[n][t%4]=o[t],this._Kd[e-n][t%4]=o[t];for(var a,s=0,l=i;l<r;){if(a=o[i-1],o[0]^=d[a>>16&255]<<24^d[a>>8&255]<<16^d[255&a]<<8^d[a>>24&255]^f[s]<<24,s+=1,8!=i)for(t=1;t<i;t++)o[t]^=o[t-1];else{for(t=1;t<i/2;t++)o[t]^=o[t-1];a=o[i/2-1],o[i/2]^=d[255&a]^d[a>>8&255]<<8^d[a>>16&255]<<16^d[a>>24&255]<<24;for(t=i/2+1;t<i;t++)o[t]^=o[t-1]}for(t=0;t<i&&l<r;)c=l>>2,h=l%4,this._Ke[c][h]=o[t],this._Kd[e-c][h]=o[t++],l++}for(var c=1;c<e;c++)for(var h=0;h<4;h++)a=this._Kd[c][h],this._Kd[c][h]=k[a>>24&255]^x[a>>16&255]^S[a>>8&255]^_[255&a]},C.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=A(e),i=0;i<4;i++)r[i]^=this._Ke[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)n[i]=p[r[i]>>24&255]^m[r[(i+1)%4]>>16&255]^g[r[(i+2)%4]>>8&255]^v[255&r[(i+3)%4]]^this._Ke[a][i];r=n.slice()}var s,l=o(16);for(i=0;i<4;i++)s=this._Ke[t][i],l[4*i]=255&(d[r[i]>>24&255]^s>>24),l[4*i+1]=255&(d[r[(i+1)%4]>>16&255]^s>>16),l[4*i+2]=255&(d[r[(i+2)%4]>>8&255]^s>>8),l[4*i+3]=255&(d[255&r[(i+3)%4]]^s);return l},C.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=A(e),i=0;i<4;i++)r[i]^=this._Kd[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)n[i]=y[r[i]>>24&255]^b[r[(i+3)%4]>>16&255]^w[r[(i+2)%4]>>8&255]^E[255&r[(i+1)%4]]^this._Kd[a][i];r=n.slice()}var s,l=o(16);for(i=0;i<4;i++)s=this._Kd[t][i],l[4*i]=255&(h[r[i]>>24&255]^s>>24),l[4*i+1]=255&(h[r[(i+3)%4]>>16&255]^s>>16),l[4*i+2]=255&(h[r[(i+2)%4]>>8&255]^s>>8),l[4*i+3]=255&(h[255&r[(i+1)%4]]^s);return l};var T=function(e){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new C(e)};T.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;
9r+=16)a(e,n,0,r,r+16),a(n=this._aes.encrypt(n),t,r);return t},T.prototype.decrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16)a(e,n,0,r,r+16),a(n=this._aes.decrypt(n),t,r);return t};var P=function(e,t){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=o(16);this._lastCipherblock=i(t,!0),this._aes=new C(e)};P.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16){a(e,n,0,r,r+16);for(var s=0;s<16;s++)n[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(n),a(this._lastCipherblock,t,r)}return t},P.prototype.decrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16){a(e,n,0,r,r+16),n=this._aes.decrypt(n);for(var s=0;s<16;s++)t[r+s]=n[s]^this._lastCipherblock[s];a(e,this._lastCipherblock,0,r,r+16)}return t};var O=function(e,t,n){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 size)")}else t=o(16);n||(n=1),this.segmentSize=n,this._shiftRegister=i(t,!0),this._aes=new C(e)};O.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,n=i(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)n[r+o]^=t[o];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(n,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n},O.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,n=i(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)n[r+o]^=t[o];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(e,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n};var M=function(e,t){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=o(16);this._lastPrecipher=i(t,!0),this._lastPrecipherIndex=16,this._aes=new C(e)};M.prototype.encrypt=function(e){for(var t=i(e,!0),n=0;n<t.length;n++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[n]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},M.prototype.decrypt=M.prototype.encrypt;var I=function(e){if(!(this instanceof I))throw Error("Counter must be instanitated with `new`");0===e||e||(e=1),"number"==typeof e?(this._counter=o(16),this.setValue(e)):this.setBytes(e)};I.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");for(var t=15;t>=0;--t)this._counter[t]=e%256,e>>=8},I.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},I.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var R=function(e,t){if(!(this instanceof R))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof I||(t=new I(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new C(e)};R.prototype.encrypt=function(e){for(var t=i(e,!0),n=0;n<t.length;n++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt
9(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[n]^=this._remainingCounter[this._remainingCounterIndex++];return t},R.prototype.decrypt=R.prototype.encrypt;var L={AES:C,Counter:I,ModeOfOperation:{ecb:T,cbc:P,cfb:O,ofb:M,ctr:R},utils:{hex:c,utf8:l},padding:{pkcs7:{pad:function(e){var t=16-(e=i(e,!0)).length%16,n=o(e.length+t);a(e,n);for(var r=e.length;r<n.length;r++)n[r]=t;return n},strip:function(e){if((e=i(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r<t;r++)if(e[n+r]!==t)throw new Error("PKCS#7 invalid padding byte");var s=o(n);return a(e,s,0,0,n),s}}},_arrayTest:{coerceArray:i,createArray:o,copyArray:a}};e.exports=L}()},function(e,t,n){var r=n(23),i=n(43);function o(e){return"number"==typeof e.length?e.length:"number"==typeof e.size?e.size:void 0}t.isArrayLike=function(e){return Array.isArray(e)||i.isTypedArray(e)},t.guessLength=o,t.toArray=function(e){var t=o(e),n="number"==typeof t?new Array(t):[],i=0;return r(e,(function(e){n[i++]=e})),n},t.toArrayWithIndices=function(e){var t=o(e),n="number"==typeof t?i.getPointerArray(t):Array,a="number"==typeof t?new Array(t):[],s="number"==typeof t?new n(t):[],l=0;return r(e,(function(e){a[l]=e,s[l]=l++})),[a,s]}},function(e,t,n){"use strict";var r=n(66),i=n(223);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=a(i)),n+=l(i.toString(16))}return n},t.zero2=s,t.zero8=l,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var a=new Array(o/4),s=0,l=t;s<a.length;s++,l+=4){var c;c="big"===i?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],a[s]=c>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,s){var l=0,c=t;return l+=(c=c+r>>>0)<t?1:0,l+=(c=c+o>>>0)<o?1:0,e+n+i+a+(l+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,l,c){var u=0,f=t;return u+=(f=f+r>>>0)<t?1:0,u+=(f=f+o>>>0)<o?1:0,u+=(f=f+s>>>0)<s?1:0,e+n+i+a+l+(u+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,l,c){return t+r+o+s+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="abi/5.4.1"},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"h",(function(){return o}
9)),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return f}));var r=n(17);const i=r.a.from(-1),o=r.a.from(0),a=r.a.from(1),s=r.a.from(2),l=r.a.from("1000000000000000000"),c=r.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),u=r.a.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),f=r.a.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.biomebaseSnarkZkeyPath=t.biomebaseSnarkWasmPath=t.moveSnarkZkeyPath=t.moveSnarkWasmPath=t.initSnarkZkeyPath=t.initSnarkWasmPath=t.revealSnarkZkeyPath=t.revealSnarkWasmPath=t.fakeProof=t.buildContractCallArgs=void 0,t.buildContractCallArgs=function(e,t){return[e.pi_a.slice(0,2),[e.pi_b[0].slice(0).reverse(),e.pi_b[1].slice(0).reverse()],e.pi_c.slice(0,2),t]},t.fakeProof=function(e=[]){return{proof:{pi_a:["0","0","0"],pi_b:[["0","0"],["0","0"],["0","0"]],pi_c:["0","0","0"]},publicSignals:e}},t.revealSnarkWasmPath=94,t.revealSnarkZkeyPath=95,t.initSnarkWasmPath=96,t.initSnarkZkeyPath=97,t.moveSnarkWasmPath=98,t.moveSnarkZkeyPath=99,t.biomebaseSnarkWasmPath=100,t.biomebaseSnarkZkeyPath=101},function(e,t,n){"use strict";n.r(t),n.d(t,"Signer",(function(){return s.a})),n.d(t,"Wallet",(function(){return l.a})),n.d(t,"VoidSigner",(function(){return s.b})),n.d(t,"getDefaultProvider",(function(){return u.getDefaultProvider})),n.d(t,"providers",(function(){return u})),n.d(t,"BaseContract",(function(){return i.a})),n.d(t,"Contract",(function(){return i.b})),n.d(t,"ContractFactory",(function(){return i.c})),n.d(t,"BigNumber",(function(){return o.a})),n.d(t,"FixedNumber",(function(){return a.a})),n.d(t,"constants",(function(){return c})),n.d(t,"errors",(function(){return T.a})),n.d(t,"logger",(function(){return re})),n.d(t,"utils",(function(){return r})),n.d(t,"wordlists",(function(){return f.a})),n.d(t,"version",(function(){return ne.a})),n.d(t,"Wordlist",(function(){return d.a}));var r={};n.r(r),n.d(r,"AbiCoder",(function(){return h.a})),n.d(r,"defaultAbiCoder",(function(){return h.b})),n.d(r,"Fragment",(function(){return p.e})),n.d(r,"ConstructorFragment",(function(){return p.a})),n.d(r,"ErrorFragment",(function(){return p.b})),n.d(r,"EventFragment",(function(){return p.c})),n.d(r,"FunctionFragment",(function(){return p.f})),n.d(r,"ParamType",(function(){return p.g})),n.d(r,"FormatTypes",(function(){return p.d})),n.d(r,"checkResultErrors",(function(){return m.d})),n.d(r,"Logger",(function(){return T.b})),n.d(r,"RLP",(function(){return z})),n.d(r,"_fetchData",(function(){return ee.a})),n.d(r,"fetchJson",(function(){return ee.b})),n.d(r,"poll",(function(){return ee.c})),n.d(r,"checkProperties",(function(){return D.b})),n.d(r,"deepCopy",(function(){return D.c})),n.d(r,"defineReadOnly",(function(){return D.d})),n.d(r,"getStatic",(function(){return D.e})),n.d(r,"resolveProperties",(function(){return D.f})),n.d(r,"shallowCopy",(function(){return D.g})),n.d(r,"arrayify",(function(){return w.a})),n.d(r,"concat",(function(){return w.b})),n.d(r,"stripZeros",(function(){return w.o})),n.d(r,"zeroPad",(function(){return w.p})),n.d(r,"isBytes",(function(){return w.j})),n.d(r,"isBytesLike",(function(){return w.k})),n.d(r,"defaultPath",(function(){return _.b})),n.d(r,"HDNode",(function(){return _.a})),n.d(r,"SigningKey",(function(){return U.a})),n.d(r,"Interface",(function(){return g.b})),n.d(r,"LogDescription",(function(){return g.c})),n.d(r,"TransactionDescription",(function(){return g.d})),n.d(r,"base58",(function(){return b.a})),n.d(r,"base64",(function(){return y})),n.d(r,"hexlify",(function(){return w.i})),n.d(r,"isHexString",(function(){return w.l})),n.d(r,"hexConcat",(function(){return w.c})),n.d(r,"hexStripZeros",(function(){return w.f})),n.d(r,"hexValue",(function(){return w.g})),n.d(r,"hexZeroPad",(function(){return w.h})),n.d(r,"hexDataLength",(function(){return w.d})),n.d(r,"hexDataSlice",(function(){return w.e})),n.d(r,"nameprep",(function(){return $.a})),n.d(r,"_toEscapedUtf8String",(function(){return O.d})),n.d(r,"toUtf8Bytes",(function(){return O.f})),n.d(r,"toUtf8CodePoints",(function(){return O.g})),n.d(r,"toUtf8String",(function(){return O.h})),n.d(r,"Utf8ErrorFuncs",(function(){return O.b})),n.d(r,"formatBytes32String",(function(){return J})),n.d(r,"parseBytes32String",(function(){return G})),n.d(r,"hashMessage",(function(){return E.a})),n.d(r,"namehash",(function(){return k.b})),n.d(r,"isValidName",(function(){return k.a})),n.d(r,"id",(function(){return x.a})),n.d(r,"_TypedDataEncoder",(function(){return S.a})),n.d(r,"getAddress",(function(){return v.a})),n.d(r,"getIcapAddress",(function(){return v.d})),n.d(r,"getContractAddress",(function(){return v.b})),n.d(r,"getCreate2Address",(function(){return v.c})),n.d(r,"isAddress",(function(){return v.e})),n.d(r,"formatEther",(function(){return Y})),n.d(r,"parseEther",(function(){return Q})),n.d(r,"formatUnits",(function(){return K})),n.d(r,"parseUnits",(function(){return Z})),n.d(r,"commify",(function(){return q})),n.d(r,"computeHmac",(function(){return P.a})),n.d(r,"keccak256",(function(){return C.a})),n.d(r,"ripemd160",(function(){return P.b})),n.d(r,"sha256",(function(){return P.c})),n.d(r,"sha512",(function(){return P.d})),n.d(r,"randomBytes",(function(){return B.a})),n.d(r,"shuffled",(function(){return F.a})),n.d(r,"solidityPack",(function(){return L})),n.d(r,"solidityKeccak256",(function(){return N})),n.d(r,"soliditySha256",(function(){return j})),n.d(r,"splitSignature",(function(){return w.n})),n.d(r,"joinSignature",(function(){return w.m})),n.d(r,"accessListify",(function(){return V.b})),n.d(r,"parseTransaction",(function(){return V.d})),n.d(r,"serializeTransaction",(function(){return V.f})),n.d(r,"TransactionTypes",(function(){return V.a})),n.d(r,"getJsonWalletAddress",(function(){return A.a})),n.d(r,"computeAddress",(function(){return V.c}
9)),n.d(r,"recoverAddress",(function(){return V.e})),n.d(r,"computePublicKey",(function(){return U.b})),n.d(r,"recoverPublicKey",(function(){return U.c})),n.d(r,"verifyMessage",(function(){return l.b})),n.d(r,"verifyTypedData",(function(){return l.c})),n.d(r,"getAccountPath",(function(){return _.d})),n.d(r,"mnemonicToEntropy",(function(){return _.f})),n.d(r,"entropyToMnemonic",(function(){return _.c})),n.d(r,"isValidMnemonic",(function(){return _.e})),n.d(r,"mnemonicToSeed",(function(){return _.g})),n.d(r,"SupportedAlgorithm",(function(){return te.a})),n.d(r,"UnicodeNormalizationForm",(function(){return O.a})),n.d(r,"Utf8ErrorReason",(function(){return O.c})),n.d(r,"Indexed",(function(){return g.a}));var i=n(57),o=n(17),a=n(231),s=n(39),l=n(60),c=n(58),u=n(70),f=n(302),d=n(15),h=n(153),p=n(36),m=n(21),g=n(309),v=n(12),y=n(91),b=n(53),w=n(3),E=n(305),k=n(307),x=n(59),S=n(306),_=n(22),A=n(54),C=n(13),T=n(5),P=n(155),O=n(33);const M=new RegExp("^bytes([0-9]+)$"),I=new RegExp("^(u?int)([0-9]*)$"),R=new RegExp("^(.*)\\[([0-9]*)\\]$");function L(e,t){if(e.length!=t.length)throw new Error("type/value count mismatch");const n=[];return e.forEach((function(e,r){n.push(function e(t,n,r){switch(t){case"address":return r?Object(w.p)(n,32):Object(w.a)(n);case"string":return Object(O.f)(n);case"bytes":return Object(w.a)(n);case"bool":return n=n?"0x01":"0x00",r?Object(w.p)(n,32):Object(w.a)(n)}let i=t.match(I);if(i){let e=parseInt(i[2]||"256");if(i[2]&&String(e)!==i[2]||e%8!=0||0===e||e>256)throw new Error("invalid number type - "+t);return r&&(e=256),n=o.a.from(n).toTwos(e),Object(w.p)(n,e/8)}if(i=t.match(M),i){const e=parseInt(i[1]);if(String(e)!==i[1]||0===e||e>32)throw new Error("invalid bytes type - "+t);if(Object(w.a)(n).byteLength!==e)throw new Error("invalid value for "+t);return r?Object(w.a)((n+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):n}if(i=t.match(R),i&&Array.isArray(n)){const r=i[1];if(parseInt(i[2]||String(n.length))!=n.length)throw new Error("invalid value for "+t);const o=[];return n.forEach((function(t){o.push(e(r,t,!0))})),Object(w.b)(o)}throw new Error("invalid type - "+t)}(e,t[r]))})),Object(w.i)(Object(w.b)(n))}function N(e,t){return Object(C.a)(L(e,t))}function j(e,t){return Object(P.c)(L(e,t))}var B=n(84),F=n(308),D=n(4),z=n(41),U=n(34),$=n(154),H=n(121);function J(e){const t=Object(O.f)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Object(w.i)(Object(w.b)([t,H.a]).slice(0,32))}function G(e){const t=Object(w.a)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let n=31;for(;0===t[n-1];)n--;return Object(O.h)(t.slice(0,n))}var V=n(18);const X=new T.b("units/5.4.0"),W=["wei","kwei","mwei","gwei","szabo","finney","ether"];function q(e){const t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&X.throwArgumentError("invalid value","value",e);let n=t[0],r="";for("-"===n.substring(0,1)&&(r="-",n=n.substring(1));"0"===n.substring(0,1);)n=n.substring(1);""===n&&(n="0");let i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);const o=[];for(;n.length;){if(n.length<=3){o.unshift(n);break}{const e=n.length-3;o.unshift(n.substring(e)),n=n.substring(0,e)}}return r+o.join(",")+i}function K(e,t){if("string"==typeof t){const e=W.indexOf(t);-1!==e&&(t=3*e)}return Object(a.b)(e,null!=t?t:18)}function Z(e,t){if("string"!=typeof e&&X.throwArgumentError("value must be a string","value",e),"string"==typeof t){const e=W.indexOf(t);-1!==e&&(t=3*e)}return Object(a.c)(e,null!=t?t:18)}function Y(e){return K(e,18)}function Q(e){return Z(e,18)}var ee=n(29),te=n(141),ne=n(77);const re=new T.b(ne.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),i=n(4);class o{constructor(e){Object(i.d)(this,"alphabet",e),Object(i.d)(this,"base",e.length),Object(i.d)(this,"_alphabetMap",{}),Object(i.d)(this,"_leader",e.charAt(0));for(let t=0;t<e.length;t++)this._alphabetMap[e.charAt(t)]=t}encode(e){let t=Object(r.a)(e);if(0===t.length)return"";let n=[0];for(let e=0;e<t.length;++e){let r=t[e];for(let e=0;e<n.length;++e)r+=n[e]<<8,n[e]=r%this.base,r=r/this.base|0;for(;r>0;)n.push(r%this.base),r=r/this.base|0}let i="";for(let e=0;0===t[e]&&e<t.length-1;++e)i+=this._leader;for(let e=n.length-1;e>=0;
9--e)i+=this.alphabet[n[e]];return i}decode(e){if("string"!=typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let n=0;n<e.length;n++){let r=this._alphabetMap[e[n]];if(void 0===r)throw new Error("Non-base"+this.base+" character");let i=r;for(let e=0;e<t.length;++e)i+=t[e]*this.base,t[e]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(let n=0;e[n]===this._leader&&n<e.length-1;++n)t.push(0);return Object(r.a)(new Uint8Array(t.reverse()))}}new o("abcdefghijklmnopqrstuvwxyz234567");const a=new o("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(12);function i(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return t.encseed&&t.ethaddr}function o(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return!(!t.version||parseInt(t.version)!==t.version||3!==parseInt(t.version))}function a(e){if(i(e))try{return Object(r.a)(JSON.parse(e).ethaddr)}catch(e){return null}if(o(e))try{return Object(r.a)(JSON.parse(e).address)}catch(e){return null}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.address=void 0,t.address=function(e){let t=e.toLowerCase();"0x"===t.slice(0,2)&&(t=t.slice(2));for(const e of t)if(-1==="0123456789abcdef".indexOf(e))throw new Error("not a valid address");if(40!==t.length)throw new Error("not a valid address");return"0x"+t}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.locationIdToDecStr=t.locationIdFromEthersBN=t.locationIdFromBigInt=t.locationIdFromDecStr=t.locationIdFromHexStr=void 0;const i=n(6),o=r(n(8));function a(e){const t=(0,o.default)(e);if(t.geq(i.LOCATION_ID_UB))throw new Error("not a valid location");let n=t.toString(16);for(;n.length<64;)n="0"+n;return n}t.locationIdFromHexStr=function(e){const t=(0,o.default)(e,16);if(t.geq(i.LOCATION_ID_UB))throw new Error("not a valid location");let n=t.toString(16);for(;n.length<64;)n="0"+n;return n},t.locationIdFromDecStr=a,t.locationIdFromBigInt=function(e){const t=(0,o.default)(e);if(t.geq(i.LOCATION_ID_UB))throw new Error("not a valid location");let n=t.toString(16);for(;n.length<64;)n="0"+n;return n},t.locationIdFromEthersBN=function(e){return a(e.toString())},t.locationIdToDecStr=function(e){return(0,o.default)(e,16).toString(10)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return T}));var r=n(21),i=n(309),o=n(44),a=n(39),s=n(12),l=n(17),c=n(3),u=n(4),f=n(18),d=n(5);var h=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const p=new d.b("contracts/5.4.1"),m={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};function g(e,t){return h(this,void 0,void 0,(function*(){const n=yield t;try{return Object(s.a)(n)}catch(e){}e||p.throwError("a provider or signer is needed to resolve ENS names",d.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const r=yield e.resolveName(n);return null==r&&p.throwArgumentError("resolver or addr is not configured for ENS name","name",n),r}))}function v(e,t,n){return h(this,void 0,void 0,(function*(){return Array.isArray(n)?yield Promise.all(n.map((n,r)=>v(e,Array.isArray(t)?t[r]:t[n.name],n))):"address"===n.type?yield g(e,t):"tuple"===n.type?yield v(e,t,n.components):"array"===n.baseType?Array.isArray(t)?yield Promise.all(t.map(t=>v(e,t,n.arrayChildren))):Promise.reject(new Error("invalid value for array")):t}))}function y(e,t,n){return h(this,void 0,void 0,(function*(){let r={};n.length===t.inputs.length+1&&"object"==typeof n[n.length-1]&&(r=Object(u.g)(n.pop())),p.checkArgumentCount(n.length,t.input
9s.length,"passed to contract"),e.signer?r.from?r.from=Object(u.f)({override:g(e.signer,r.from),signer:e.signer.getAddress()}).then(e=>h(this,void 0,void 0,(function*(){return Object(s.a)(e.signer)!==e.override&&p.throwError("Contract with a Signer cannot override from",d.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override}))):r.from=e.signer.getAddress():r.from&&(r.from=g(e.provider,r.from));const i=yield Object(u.f)({args:v(e.signer||e.provider,n,t.inputs),address:e.resolvedAddress,overrides:Object(u.f)(r)||{}}),o=e.interface.encodeFunctionData(t,i.args),a={data:o,to:i.address},m=i.overrides;if(null!=m.nonce&&(a.nonce=l.a.from(m.nonce).toNumber()),null!=m.gasLimit&&(a.gasLimit=l.a.from(m.gasLimit)),null!=m.gasPrice&&(a.gasPrice=l.a.from(m.gasPrice)),null!=m.maxFeePerGas&&(a.maxFeePerGas=l.a.from(m.maxFeePerGas)),null!=m.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=l.a.from(m.maxPriorityFeePerGas)),null!=m.from&&(a.from=m.from),null!=m.type&&(a.type=m.type),null!=m.accessList&&(a.accessList=Object(f.b)(m.accessList)),null==a.gasLimit&&null!=t.gas){let e=21e3;const n=Object(c.a)(o);for(let t=0;t<n.length;t++)e+=4,n[t]&&(e+=64);a.gasLimit=l.a.from(t.gas).add(e)}if(m.value){const e=l.a.from(m.value);e.isZero()||t.payable||p.throwError("non-payable method cannot override value",d.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:r.value}),a.value=e}delete r.nonce,delete r.gasLimit,delete r.gasPrice,delete r.from,delete r.value,delete r.type,delete r.accessList,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas;const y=Object.keys(r).filter(e=>null!=r[e]);return y.length&&p.throwError("cannot override "+y.map(e=>JSON.stringify(e)).join(","),d.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:y}),a}))}function b(e,t,n){const r=e.signer||e.provider;return function(...i){return h(this,void 0,void 0,(function*(){let o=void 0;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){const e=Object(u.g)(i.pop());null!=e.blockTag&&(o=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(o));const a=yield y(e,t,i),s=yield r.call(a,o);try{let r=e.interface.decodeFunctionResult(t,s);return n&&1===t.outputs.length&&(r=r[0]),r}catch(t){throw t.code===d.b.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=i,t.transaction=a),t}}))}}function w(e,t,n){return t.constant?b(e,t,n):function(e,t){return function(...n){return h(this,void 0,void 0,(function*(){e.signer||p.throwError("sending a transaction requires a signer",d.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());const r=yield y(e,t,n),i=yield e.signer.sendTransaction(r),o=i.wait.bind(i);return i.wait=t=>o(t).then(t=>(t.events=t.logs.map(n=>{let r=Object(u.c)(n),i=null;try{i=e.interface.parseLog(n)}catch(e){}return i&&(r.args=i.args,r.decode=(t,n)=>e.interface.decodeEventLog(i.eventFragment,t,n),r.event=i.name,r.eventSignature=i.signature),r.removeListener=()=>e.provider,r.getBlock=()=>e.provider.getBlock(t.blockHash),r.getTransaction=()=>e.provider.getTransaction(t.transactionHash),r.getTransactionReceipt=()=>Promise.resolve(t),r}),t)),i}))}}(e,t)}function E(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):""):"*"}class k{constructor(e,t){Object(u.d)(this,"tag",e),Object(u.d)(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter(n=>!(!t&&n.listener===e)||(t=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const t=this.listenerCount();return this._listeners=this._listeners.filter(t=>{const n=e.slice();return setTimeout(()=>{t.listener.apply(this,n)},0),!t.once}),t}prepareEvent(e){}getEmit(e){return[e]}}class x extends k{constructor(){super("error",null)}}class S extends k{constructor(e,t,n,r){const i={address:e};let o=t.getEventTopic(n);r?(o!==r[0]&&p.throwArgumentError("topic mismatch","topics",r),i.topics=r.slice()):i.topics=[o],super(E(i),i),Object(u.d)(this,"address",e),Object(u.d)(this,"interface",t),Object(u.d)(this,"fragment",n)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){const t=Object(r.d)(e.args);if(t.length)throw t[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class _ extends k{constructor(e,t){super("*",{address:e}),Object(u.d)(this,"address",e),Object(u.d)(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{const t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,n)=>this.interface.decodeEventLog(t.eventFragment,e,n),e.args=t.args}catch(e){}}}class A{constructor(e,t,n){p.checkNew(new.target,C),Object(u.d)(this,"interface",Object(u.e)(new.target,"getInterface")(t)),null==n?(Object(u.d)(this,"provider",null),Object(u.d)(this,"signer",null)):a.a.isSigner(n)?(Object(u.d)(this,"provider",n.provider||null),Object(u.d)(this,"signer",n)):o.b.isProvider(n)?(Object(u.d)(this,"provider",n),Object(u.d)(this,"signer",null)):p.throwArgumentError("invalid signer or provider","signerOrProvider",n),Object(u.d)(this,"callStatic",{}),Object(u.d)(this,"estimateGas",{}),Object(u.d)(this,"functions",{}),Object(u.d)(this,"populateTransaction",{}),Object(u.d)(this,"filters",{});{const e={};
9Object.keys(this.interface.events).forEach(t=>{const n=this.interface.events[t];Object(u.d)(this.filters,t,(...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(n,e)})),e[n.name]||(e[n.name]=[]),e[n.name].push(t)}),Object.keys(e).forEach(t=>{const n=e[t];1===n.length?Object(u.d)(this.filters,t,this.filters[n[0]]):p.warn(`Duplicate definition of ${t} (${n.join(", ")})`)})}if(Object(u.d)(this,"_runningEvents",{}),Object(u.d)(this,"_wrappedEmits",{}),null==e&&p.throwArgumentError("invalid contract address or ENS name","addressOrName",e),Object(u.d)(this,"address",e),this.provider)Object(u.d)(this,"resolvedAddress",g(this.provider,e));else try{Object(u.d)(this,"resolvedAddress",Promise.resolve(Object(s.a)(e)))}catch(e){p.throwError("provider is required to use ENS name as contract address",d.b.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}const r={},i={};Object.keys(this.interface.functions).forEach(e=>{const t=this.interface.functions[e];if(i[e])p.warn("Duplicate ABI entry for "+JSON.str
9ingify(e));else{i[e]=!0;{const n=t.name;r[n]||(r[n]=[]),r[n].push(e)}null==this[e]&&Object(u.d)(this,e,w(this,t,!0)),null==this.functions[e]&&Object(u.d)(this.functions,e,w(this,t,!1)),null==this.callStatic[e]&&Object(u.d)(this.callStatic,e,b(this,t,!0)),null==this.populateTransaction[e]&&Object(u.d)(this.populateTransaction,e,function(e,t){return function(...n){return y(e,t,n)}}(this,t)),null==this.estimateGas[e]&&Object(u.d)(this.estimateGas,e,function(e,t){const n=e.signer||e.provider;return function(...r){return h(this,void 0,void 0,(function*(){n||p.throwError("estimate require a provider or signer",d.b.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield y(e,t,r);return yield n.estimateGas(i)}))}}(this,t))}}),Object.keys(r).forEach(e=>{const t=r[e];if(t.length>1)return;const n=t[0];try{null==this[e]&&Object(u.d)(this,e,this[n])}catch(e){}null==this.functions[e]&&Object(u.d)(this.functions,e,this.functions[n]),null==this.callStatic[e]&&Object(u.d)(this.callStatic,e,this.callStatic[n]),null==this.populateTransaction[e]&&Object(u.d)(this.populateTransaction,e,this.populateTransaction[n]),null==this.estimateGas[e]&&Object(u.d)(this.estimateGas,e,this.estimateGas[n])})}static getContractAddress(e){return Object(s.b)(e)}static getInterface(e){return i.b.isInterface(e)?e:new i.b(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(e=>("0x"===e&&p.throwError("contract not deployed",d.b.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||p.throwError("sending a transactions require a signer",d.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=Object(u.g)(e||{});return["from","to"].forEach((function(e){null!=t[e]&&p.throwError("cannot override "+e,d.b.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(t))}connect(e){"string"==typeof e&&(e=new a.b(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&Object(u.d)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return i.a.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new x);if("event"===e)return this._normalizeRunningEvent(new k("event",null));if("*"===e)return this._normalizeRunningEvent(new _(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new S(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{const t=e.topics[0];if("string"!=typeof t)throw new Error("invalid topic");const n=this.interface.getEvent(t);return this._normalizeRunningEvent(new S(this.address,this.interface,n,e.topics))}catch(e){}const t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new k(E(t),t))}return this._normalizeRunningEvent(new _(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];const t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,n){const r=Object(u.c)(t);return r.removeListener=()=>{n&&(e.removeListener(n),this._checkRunningEvents(e))},r.getBlock=()=>this.provider.getBlock(t.blockHash),r.getTransaction=()=>this.provider.getTransaction(t.transactionHash),r.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(r),r}_addEventListener(e,t,n){if(this.provider||p.throwError("events require a provider or a signer with a provider",d.b.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const n=n=>{let r=this._wrapEvent(e,n,t);if(null==r.decodeError)try{const t=e.getEmit(r);
9this.emit(e.filter,...t)}catch(e){r.decodeError=e.error}null!=e.filter&&this.emit("event",r),null!=r.decodeError&&this.emit("error",r.decodeError,r)};this._wrappedEmits[e.tag]=n,null!=e.filter&&this.provider.on(e.filter,n)}}queryFilter(e,t,n){const r=this._getRunningEvent(e),i=Object(u.g)(r.filter);return"string"==typeof t&&Object(c.l)(t,32)?(null!=n&&p.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=n?n:"latest"),this.provider.getLogs(i).then(e=>e.map(e=>this._wrapEvent(r,e,null)))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;const n=this._getRunningEvent(e),r=n.run(t)>0;return this._checkRunningEvents(n),r}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce((e,t)=>e+this._runningEvents[t].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){const e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach(t=>{e.push(t)});return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(const e in this._runningEvents){const t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}const t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;const n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this}removeListener(e,t){return this.off(e,t)}}class C extends A{}class T{constructor(e,t,n){let r=null;r="string"==typeof t?t:Object(c.j)(t)?Object(c.i)(t):t&&"string"==typeof t.object?t.object:"!","0x"!==r.substring(0,2)&&(r="0x"+r),(!Object(c.l)(r)||r.length%2)&&p.throwArgumentError("invalid bytecode","bytecode",t),n&&!a.a.isSigner(n)&&p.throwArgumentError("invalid signer","signer",n),Object(u.d)(this,"bytecode",r),Object(u.d)(this,"interface",Object(u.e)(new.target,"getInterface")(e)),Object(u.d)(this,"signer",n||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){t=Object(u.g)(e.pop());for(const e in t)if(!m[e])throw new Error("unknown transaction override "+e)}if(["data","from","to"].forEach(e=>{null!=t[e]&&p.throwError("cannot override "+e,d.b.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.value){l.a.from(t.value).isZero()||this.interface.deploy.payable||p.throwError("non-payable constructor cannot override value",d.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value})}return p.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=Object(c.i)(Object(c.b)([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return h(this,void 0,void 0,(function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),p.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");const n=yield v(this.signer,e,this.interface.deploy.inputs);n.push(t);const r=this.getDeployTransaction(...n),i=yield this.signer.sendTransaction(r),o=Object(u.e)(this.constructor,"getContractAddress")(i),a=Object(u.e)(this.constructor,"getContract")(o,this.interface,this.signer);return Object(u.d)(a,"deployTransaction",i),a}))}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&p.throwError("missing compiler output",d.b.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));const n=e.abi;let r=null;return e.bytecode?r=e.bytecode:e.evm&&e.evm.bytecode&&(r=e.evm.bytecode),new this(n,r,t)}static getInterface(e){return C.getInterface(e)}static getContractAddress(e){return Object(s.b)(e)}static getContract(e,t,n){return new C(e,t,n)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"AddressZero",(function(){return r.a})),n.d(t,"NegativeOne",(function(){return i.d})),n.d(t,"Zero",(function(){return i.h})),n.d(t,"One",(function(){return i.e})),n.d(t,"Two",(function(){return i.f})),n.d(t,"WeiPerEther",(function(){return i.g})),n.d(t,"MaxUint256",(function(){return i.b})),n.d(t,"MinInt256",(function(){return i.c})),n.d(t,"MaxInt256",(function(){return i.a})),n.d(t,"HashZero",(function(){return o.a})),n.d(t,"EtherSymbol",(function(){return a}));var r=n(122),i=n(50),o=n(121);const a="Ξ"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}
9));var r=n(13),i=n(33);function o(e){return Object(r.a)(Object(i.f)(e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return k}));var r=n(12),i=n(44),o=n(39),a=n(3),s=n(305),l=n(306),c=n(22),u=n(13),f=n(4),d=n(84),h=n(34),p=n(61),m=n(81),g=n(18),v=n(5);var y=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const b=new v.b("wallet/5.4.0");class w extends o.a{constructor(e,t){if(b.checkNew(new.target,w),super(),null!=(n=e)&&Object(a.l)(n.privateKey,32)&&null!=n.address){const t=new h.a(e.privateKey);if(Object(f.d)(this,"_signingKey",()=>t),Object(f.d)(this,"address",Object(g.c)(this.publicKey)),this.address!==Object(r.a)(e.address)&&b.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){const t=e.mnemonic;return t&&t.phrase}(e)){const t=e.mnemonic;Object(f.d)(this,"_mnemonic",()=>({phrase:t.phrase,path:t.path||c.b,locale:t.locale||"en"}));const n=this.mnemonic,r=c.a.fromMnemonic(n.phrase,null,n.locale).derivePath(n.path);Object(g.c)(r.privateKey)!==this.address&&b.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Object(f.d)(this,"_mnemonic",()=>null)}else{if(h.a.isSigningKey(e))"secp256k1"!==e.curve&&b.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Object(f.d)(this,"_signingKey",()=>e);else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);const t=new h.a(e);Object(f.d)(this,"_signingKey",()=>t)}Object(f.d)(this,"_mnemonic",()=>null),Object(f.d)(this,"address",Object(g.c)(this.publicKey))}var n;t&&!i.b.isProvider(t)&&b.throwArgumentError("invalid provider","provider",t),Object(f.d)(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new w(this,e)}signTransaction(e){return Object(f.f)(e).then(t=>{null!=t.from&&(Object(r.a)(t.from)!==this.address&&b.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);const n=this._signingKey().signDigest(Object(u.a)(Object(g.f)(t)));return Object(g.f)(t,n)})}signMessage(e){return y(this,void 0,void 0,(function*(){return Object(a.m)(this._signingKey().signDigest(Object(s.a)(e)))}))}_signTypedData(e,t,n){return y(this,void 0,void 0,(function*(){const r=yield l.a.resolveNames(e,t,n,e=>(null==this.provider&&b.throwError("cannot resolve ENS names without a provider",v.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e)));return Object(a.m)(this._signingKey().signDigest(l.a.hash(r.domain,t,r.value)))}))}encrypt(e,t,n){if("function"!=typeof t||n||(n=t,t={}),n&&"function"!=typeof n)throw new Error("invalid callback");return t||(t={}),Object(p.c)(this,e,t,n)}static createRandom(e){let t=Object(d.a)(16);e||(e={}),e.extraEntropy&&(t=Object(a.a)(Object(a.e)(Object(u.a)(Object(a.b)([t,e.extraEntropy])),0,16)));const n=Object(c.c)(t,e.locale);return w.fromMnemonic(n,e.path,e.locale)}static fromEncryptedJson(e,t,n){return Object(m.a)(e,t,n).then(e=>new w(e))}static fromEncryptedJsonSync(e,t){return new w(Object(m.b)(e,t))}static fromMnemonic(e,t,n){return t||(t=c.b),new w(c.a.fromMnemonic(e,null,n).derivePath(t))}}function E(e,t){return Object(g.e)(Object(s.a)(e),t)}function k(e,t,n,r){return Object(g.e)(l.a.hash(e,t,n),r)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return C})),n.d(t,"c",(function(){return T}));var r=n(46),i=n.n(r),o=n(82),a=n.n(o),s=n(12),l=n(3),c=n(22),u=n(13),f=n(304),d=n(84),h=n(4),p=n(18),m=n(14),g=n(5),v=n(80),y=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const b=new g.b(v.a);function w(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}class E extends h.a{isKeystoreAccount(e){return!(!e||!e._isKeystoreAccount)}}function k(e,t){const n=Object(m.b)(Object(m.c)(e,"crypto/ciphertext"));if(Object(l.i)(Object(u.a)(Object(l.b)([t.slice(16,32),n]))).substring(2)!==Object(m.c)(e,"crypto/mac").toLowerCase())throw new Error("invalid password");const r=function(e,t,n){if("aes-128-ctr"===Object(m.c)(e,"crypto/cipher")){const r=Object(m.b)(Object(m.c)(e,"crypto/cipherparams/iv")),o=new i.a.C
9ounter(r),a=new i.a.ModeOfOperation.ctr(t,o);return Object(l.a)(a.decrypt(n))}return null}(e,t.slice(0,16),n);r||b.throwError("unsupported cipher",g.b.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const o=t.slice(32,64),a=Object(p.c)(r);if(e.address){let t=e.address.toLowerCase();if("0x"!==t.substring(0,2)&&(t="0x"+t),Object(s.a)(t)!==a)throw new Error("address mismatch")}const f={_isKeystoreAccount:!0,address:a,privateKey:Object(l.i)(r)};if("0.1"===Object(m.c)(e,"x-ethers/version")){const t=Object(m.b)(Object(m.c)(e,"x-ethers/mnemonicCiphertext")),n=Object(m.b)(Object(m.c)(e,"x-ethers/mnemonicCounter")),r=new i.a.Counter(n),a=new i.a.ModeOfOperation.ctr(o,r),s=Object(m.c)(e,"x-ethers/path")||c.b,u=Object(m.c)(e,"x-ethers/locale")||"en",d=Object(l.a)(a.decrypt(t));try{const e=Object(c.c)(d,u),t=c.a.fromMnemonic(e,null,u).derivePath(s);if(t.privateKey!=f.privateKey)throw new Error("mnemonic mismatch");f.mnemonic=t.mnemonic}catch(e){if(e.code!==g.b.errors.INVALID_ARGUMENT||"wordlist"!==e.argument)throw e}}return new E(f)}function x(e,t,n,r,i){return Object(l.a)(Object(f.a)(e,t,n,r,i))}function S(e,t,n,r,i){return Promise.resolve(x(e,t,n,r,i))}function _(e,t,n,r,i){const o=Object(m.a)(t),a=Object(m.c)(e,"crypto/kdf");if(a&&"string"==typeof a){const t=function(e,t){return b.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===a.toLowerCase()){const n=Object(m.b)(Object(m.c)(e,"crypto/kdfparams/salt")),s=parseInt(Object(m.c)(e,"crypto/kdfparams/n")),l=parseInt(Object(m.c)(e,"crypto/kdfparams/r")),c=parseInt(Object(m.c)(e,"crypto/kdfparams/p"));s&&l&&c||t("kdf",a),0!=(s&s-1)&&t("N",s);const u=parseInt(Object(m.c)(e,"crypto/kdfparams/dklen"));return 32!==u&&t("dklen",u),r(o,n,s,l,c,64,i)}if("pbkdf2"===a.toLowerCase()){const r=Object(m.b)(Object(m.c)(e,"crypto/kdfparams/salt"));let i=null;const a=Object(m.c)(e,"crypto/kdfparams/prf");"hmac-sha256"===a?i="sha256":"hmac-sha512"===a?i="sha512":t("prf",a);const s=parseInt(Object(m.c)(e,"crypto/kdfparams/c")),l=parseInt(Object(m.c)(e,"crypto/kdfparams/dklen"));return 32!==l&&t("dklen",l),n(o,r,s,l,i)}}return b.throwArgumentError("unsupported key-derivation function","kdf",a)}function A(e,t){const n=JSON.parse(e);return k(n,_(n,t,x,a.a.syncScrypt))}function C(e,t,n){return y(this,void 0,void 0,(function*(){const r=JSON.parse(e);return k(r,yield _(r,t,S,a.a.scrypt,n))}))}function T(e,t,n,r){try{if(Object(s.a)(e.address)!==Object(p.c)(e.privateKey))throw new Error("address/privateKey mismatch");if(w(e)){const t=e.mnemonic;if(c.a.fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||c.b).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(e){return Promise.reject(e)}"function"!=typeof n||r||(r=n,n={}),n||(n={});const o=Object(l.a)(e.privateKey),f=Object(m.a)(t);let h=null,g=null,v=null;if(w(e)){const t=e.mnemonic;h=Object(l.a)(Object(c.f)(t.phrase,t.locale||"en")),g=t.path||c.b,v=t.locale||"en"}let y=n.client;y||(y="ethers.js");let b=null;b=n.salt?Object(l.a)(n.salt):Object(d.a)(32);let E=null;if(n.iv){if(E=Object(l.a)(n.iv),16!==E.length)throw new Error("invalid iv")}else E=Object(d.a)(16);let k=null;if(n.uuid){if(k=Object(l.a)(n.uuid),16!==k.length)throw new Error("invalid uuid")}else k=Object(d.a)(16);let x=1<<17,S=8,_=1;return n.scrypt&&(n.scrypt.N&&(x=n.scrypt.N),n.scrypt.r&&(S=n.scrypt.r),n.scrypt.p&&(_=n.scrypt.p)),a.a.scrypt(f,b,x,S,_,64,r).then(t=>{const n=(t=Object(l.a)(t)).slice(0,16),r=t.slice(16,32),a=t.slice(32,64),s=new i.a.Counter(E),c=new i.a.ModeOfOperation.ctr(n,s),f=Object(l.a)(c.encrypt
9(o)),p=Object(u.a)(Object(l.b)([r,f])),w={address:e.address.substring(2).toLowerCase(),id:Object(m.d)(k),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Object(l.i)(E).substring(2)},ciphertext:Object(l.i)(f).substring(2),kdf:"scrypt",kdfparams:{salt:Object(l.i)(b).substring(2),n:x,dklen:32,p:_,r:S},mac:p.substring(2)}};if(h){const e=Object(d.a)(16),t=new i.a.Counter(e),n=new i.a.ModeOfOperation.ctr(a,t),r=Object(l.a)(n.encrypt(h)),o=new Date,s=o.getUTCFullYear()+"-"+Object(m.e)(o.getUTCMonth()+1,2)+"-"+Object(m.e)(o.getUTCDate(),2)+"T"+Object(m.e)(o.getUTCHours(),2)+"-"+Object(m.e)(o.getUTCMinutes(),2)+"-"+Object(m.e)(o.getUTCSeconds(),2)+".0Z";w["x-ethers"]={client:y,gethFilename:"UTC--"+s+"--"+w.address,mnemonicCounter:Object(l.i)(e).substring(2),mnemonicCiphertext:Object(l.i)(r).substring(2),path:g,locale:v,version:"0.1"}}return JSON.stringify(w)})}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(171)},function(e,t,n){!function(e){"use strict";class t{constructor(e,t,n,r,i){this.x=e,this.y=t,this.w=n,this.h=r,this.data=i}contains(e){return e.x>=this.x&&e.x<=this.x+this.w&&e.y>=this.y&&e.y<=this.y+this.h}intersects(e){return!(e.x>this.x+this.w||e.x+e.w<this.x||e.y>this.y+this.h||e.y+e.h<this.y)}}const n={capacity:4,removeEmptyNodes:!1,maximumDepth:-1,arePointsEqual:(e,t)=>e.x===t.x&&e.y===t.y};class r{constructor(e,t,r=[]){this.container=e,this.config=Object.assign({},n,t),this.isDivided=!1,this.points=[];for(const e of r)this.insertRecursive(e)}getTree(){let e;return e=this.isDivided?{ne:this.ne.getTree(),nw:this.nw.getTree(),se:this.se.getTree(),sw:this.sw.getTree()}:this.getNodePointAmount(),e}getAllPoints(){const e=[];return this.getAllPointsRecursive(e),e}getAllPointsRecursive(e){this.isDivided?(this.ne.getAllPointsRecursive(e),this.nw.getAllPointsRecursive(e),this.se.getAllPointsRecursive(e),this.sw.getAllPointsRecursive(e)):Array.prototype.push.apply(e,this.points.slice())}getNodePointAmount(){return this.points.length}divide(){const e=-1===this.config.maximumDepth?-1:this.config.maximumDepth-1,n=Object.assign({},this.config,{maximumDepth:e});this.isDivided=!0;const i=this.container.x,o=this.container.y,a=this.container.w/2,s=this.container.h/2;this.ne=new r(new t(i+a,o,a,s),n),this.nw=new r(new t(i,o,a,s),n),this.se=new r(new t(i+a,o+s,a,s),n),this.sw=new r(new t(i,o+s,a,s),n),this.insert(this.points.slice()),this.points.length=0,this.points=[]}remove(e){if(Array.isArray(e))for(const t of e)this.removeRecursive(t);else this.removeRecursive(e)}removeRecursive(e){if(this.container.contains(e))if(this.isDivided)this.ne.removeRecursive(e),this.nw.removeRecursive(e),this.se.removeRecursive(e),this.sw.removeRecursive(e),this.config.removeEmptyNodes&&(0!==this.ne.getNodePointAmount()||this.ne.isDivided||0!==this.nw.getNodePointAmount()||this.nw.isDivided||0!==this.se.getNodePointAmount()||this.se.isDivided||0!==this.sw.getNodePointAmount()||this.sw.isDivided||(this.isDivided=!1,delete this.ne,delete this.nw,delete this.se,delete this.sw));else for(let t=this.points.length-1;t>=0;t--)this.config.arePointsEqual(e,this.points[t])&&this.points.splice(t,1)}insert(e){if(Array.isArray(e)){let t=!0;for(const n of e)t=t&&this.insertRecursive(n);return t}return this.insertRecursive(e)}insertRecursive(e){if(!this.container.contains(e))return!1;if(!this.isDivided){if(this.getNodePointAmount()<this.config.capacity||0===this.config.maximumDepth)return this.points.push(e),!0;(-1===this.config.maximumDepth||this.config.maximumDepth>0)&&this.divide()}return!!this.isDivided&&(this.ne.insertRecursive(e)||this.nw.insertRecursive(e)||this.se.insertRecursive(e)||this.sw.insertRecursive(e))}query(e){const t=[];return this.queryRecursive(e,t),t}queryRecursive(e,t){if(e.intersects(this.container))if(this.isDivided)this.ne.queryRecursive(e,t),this.nw.queryRecursive(e,t),this.se.queryRecursive(e,t),this.sw.queryRecursive(e,t);else{const n=this.points.filter(t=>e.contains(t));Array.prototype.push.apply(t,n)}}clear(){this.points=[],this.isDivided=!1,delete this.ne,delete this.nw,delete this.se,delete this.sw}}e.Box=t,e.Circle=class{constructor(e,t,n,r){this.x=e,this.y=t,this.r=n,this.rPow2=this.r*this.r,this.data=r}euclideanDistancePow2(e,t){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)}contains(e){return this.euclideanDistancePow2(e,this)<=this.rPow2}intersects(e){const t=this.x-Math.max(e.x,Math.min(this.x,e.x+e.w)),n=this.y-Math.max(e.y,Math.min(this.y,e.y+e.h));return t*t+n*n<=this.rPow2}},e.Point=class{constructor(e,t,n){this.x=e,this.y=t,this.data=n}}
vendor: 5,423 bytes, line 9
9,e.QuadTree=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},,,function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=n(48),i=n(66);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],l=t.base?o[0]+t.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var f=s(u),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:u,updater:g(d,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,f=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,m=0;function g(e,t){var n,r,i;if(t.singleton){var o=m++;n=p||(p=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=h.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";n.r(t),n.d(t,"Provider",(function(){return r.b})),n.d(t,"BaseProvider",(function(){return W})),n.d(t,"Resolver",(function(){return G})),n.d(t,"UrlJsonRpcProvider",(function(){return ve})),n.d(t,"FallbackProvider",(function(){return We}
vendor: 4,791 bytes, line 9
9)),n.d(t,"AlchemyProvider",(function(){return Ee})),n.d(t,"AlchemyWebSocketProvider",(function(){return we})),n.d(t,"CloudflareProvider",(function(){return Se})),n.d(t,"EtherscanProvider",(function(){return Ie})),n.d(t,"InfuraProvider",(function(){return Qe})),n.d(t,"InfuraWebSocketProvider",(function(){return Ye})),n.d(t,"JsonRpcProvider",(function(){return le})),n.d(t,"JsonRpcBatchProvider",(function(){return et})),n.d(t,"NodesmithProvider",(function(){return nt})),n.d(t,"PocketProvider",(function(){return ot})),n.d(t,"StaticJsonRpcProvider",(function(){return ge})),n.d(t,"Web3Provider",(function(){return ct})),n.d(t,"WebSocketProvider",(function(){return he})),n.d(t,"IpcProvider",(function(){return qe})),n.d(t,"JsonRpcSigner",(function(){return oe})),n.d(t,"getDefaultProvider",(function(){return ft})),n.d(t,"getNetwork",(function(){return d})),n.d(t,"isCommunityResource",(function(){return O})),n.d(t,"isCommunityResourcable",(function(){return P})),n.d(t,"showThrottleMessage",(function(){return I})),n.d(t,"Formatter",(function(){return T}));var r=n(44),i=n(5);const o=new i.b("networks/5.4.2");function a(e){const t=function(t,n){null==n&&(n={});const r=[];if(t.InfuraProvider)try{r.push(new t.InfuraProvider(e,n.infura))}catch(e){}if(t.EtherscanProvider)try{r.push(new t.EtherscanProvider(e,n.etherscan))}catch(e){}if(t.AlchemyProvider)try{r.push(new t.AlchemyProvider(e,n.alchemy))}catch(e){}if(t.PocketProvider){const n=["goerli","ropsten","rinkeby"];try{const i=new t.PocketProvider(e);i.network&&-1===n.indexOf(i.network.name)&&r.push(i)}catch(e){}}if(t.CloudflareProvider)try{r.push(new t.CloudflareProvider(e))}catch(e){}if(0===r.length)return null;if(t.FallbackProvider){let i=1;return null!=n.quorum?i=n.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(r,i)}return r[0]};return t.renetwork=function(e){return a(e)},t}function s(e,t){const n=function(n,r){return n.JsonRpcProvider?new n.JsonRpcProvider(e,t):null};return n.renetwork=function(t){return s(e,t)},n}const l={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:a("homestead")},c={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:a("ropsten")},u={chainId:63,name:"classicMordor",_defaultProvider:s("https://www.ethercluster.com/mordor","classicMordor")},f={unspecified:{chainId:0,name:"unspecified"},homestead:l,mainnet:l,morden:{chainId:2,name:"morden"},ropsten:c,testnet:c,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:a("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:a("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:a("goerli")},classic:{chainId:61,name:"classic",_defaultProvider:s("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:u,classicTestnet:u,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:s("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic"},maticmum:{chainId:80001,name:"maticmum"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function d(e){if(null==e)return null;if("number"==typeof e){for(const t in f){const n=f[t];if(n.chainId===e)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){const t=f[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=f[e.name];if(!t)return"number"!=typeof e.chainId&&o.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&o.throwArgumentError("network chainId mismatch","network",e);let n=e._defaultProvider||null;var r;return null==n&&t._defaultProvider&&(n=(r=t._defaultProvider)&&"function"==typeof r.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:n}}var h=n(53),p=n(17),m=n(3),g=n(121),v=n(307),y=n(4),b=n(155),w=n(33),E=n(29),k=n(102),x=n.n(k);var S=n(12),_=n(122),A=n(18);const C=new i.b("providers/5.4.5");class T{constructor(){C.checkNew(new.target,T),this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),n=this.bigNumber.bind(this),r=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),a=this.hex.bind(this),s=this.number.bind(this),l=this.type.bind(this);return e.transaction={hash:o,type:l,accessList:T.allowNull(this.accessList.bind(this),null),blockHash:T.allowNull(o,null),blockNumber:T.allowNull(s,null),transactionIndex:T.allowNull(s,null),
9confirmations:T.allowNull(s,null),from:t,gasPrice:T.allowNull(n),maxPriorityFeePerGas:T.allowNull(n),maxFeePerGas:T.allowNull(n),gasLimit:n,to:T.allowNull(t,null),value:n,nonce:s,data:i,r:T.allowNull(this.uint256),s:T.allowNull(this.uint256),v:T.allowNull(s),creates:T.allowNull(t,null),raw:T.allowNull(i)},e.transactionRequest={from:T.allowNull(t),nonce:T.allowNull(s),gasLimit:T.allowNull(n),gasPrice:T.allowNull(n),maxPriorityFeePerGas:T.allowNull(n),maxFeePerGas:T.allowNull(n),to:T.allowNull(t),value:T.allowNull(n),data:T.allowNull(e=>this.data(e,!0)),type:T.allowNull(s),accessList:T.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:s,blockNumber:s,transactionHash:o,address:t,topics:T.arrayOf(o),data:i,logIndex:s,blockHash:o},e.receipt={to:T.allowNull(this.address,null),from:T.allowNull(this.address,null),contractAddress:T.allowNull(t,null),transactionIndex:s,root:T.allowNull(a),gasUsed:n,logsBloom:T.allowNull(i),blockHash:o,transactionHash:o,logs:T.arrayOf(this.receiptLog.bind(this)),blockNumber:s,confirmations:T.allowNull(s,null),cumulativeGasUsed:n,effectiveGasPrice:T.allowNull(n),status:T.allowNull(s),type:l},e.block={hash:o,parentHash:o,number:s,timestamp:s,nonce:T.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:t,extraData:i,transactions:T.allowNull(T.arrayOf(o)),baseFeePerGas:T.allowNull(n)},e.blockWithTransactions=Object(y.g)(e.block),e.blockWithTransactions.transactions=T.allowNull(T.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:T.allowNull(r,void 0),toBlock:T.allowNull(r,void 0),blockHash:T.allowNull(o,void 0),address:T.allowNull(t,void 0),topics:T.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:T.allowNull(s),blockHash:T.allowNull(o),transactionIndex:s,removed:T.allowNull(this.boolean.bind(this)),address:t,data:T.allowFalsish(i,"0x"),topics:T.arrayOf(o),transactionHash:o,logIndex:s},e}accessList(e){return Object(A.b)(e||[])}number(e){return"0x"===e?0:p.a.from(e).toNumber()}type(e){return"0x"===e||null==e?0:p.a.from(e).toNumber()}bigNumber(e){return p.a.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),Object(m.l)(e))?e.toLowerCase():C.throwArgumentError("invalid hash","value",e)}data(e,t){const n=this.hex(e,t);if(n.length%2!=0)throw new Error("invalid data; odd-length - "+e);return n}address(e){return Object(S.a)(e)}callAddress(e){if(!Object(m.l)(e,32))return null;const t=Object(S.a)(Object(m.e)(e,12));return t===_.a?null:t}contractAddress(e){return Object(S.b)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";if("latest"===e||"pending"===e)return e;if("number"==typeof e||Object(m.l)(e))return Object(m.g)(e);throw new Error("invalid blockTag")}hash(e,t){const n=this.hex(e,t);return 32!==Object(m.d)(n)?C.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(null==e)return null;const t=p.a.from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!Object(m.l)(e))throw new Error("invalid uint256");return Object(m.h)(e,32)}_block(e,t){return null!=e.author&&null==e.miner&&(e.miner=e.author),T.check(t,e)}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return T.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&p.a.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=T.check(this.formats.transaction,e);if(null!=e.chainId){let n=e.chainId;Object(m.l)(n)&&(n=p.a.from(n).toNumber()),t.chainId=n}else{let n=e.networkId;null==n&&null==t.v&&(n=e.chainId),Object(m.l)(n)&&(n=p.a.from(n).toNumber()),"number"!=typeof n&&null!=t.v&&(n=(t.v-35)/2,n<0&&(n=0),n=parseInt(n)),"number"!=typeof n&&(n=0),t.chainId=n}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return Object(A.d)(e)}receiptLog(e){return T.check(this.formats.receiptLog,e)}receipt(e){const t=T.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=p.a.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&C.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):C.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&C.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map(e=>this.topics(e)):null!=e?this.hash(e,!0):null}filter(e){return T.check(this.formats.filter,e)}filterLog(e){return T.check(this.formats.filterLog,e)}static check(e,t){const n={};for(const r in e)try{const i=e[r](t[r]);void 0!==i&&(n[r]=i)}catch(e){throw e.checkKey=r,e.checkValue=t[r],e}return n}static allowNull(e,t){return function(n){return null==n?t:e(n)}}static allowFalsish(e,t){return function(n){return n?e(n):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const n=[];return t.forEach((function(t){n.push(e(t))})),n}}}function P(e){return e&&"function"==typeof e.isCommunityResource}function O(e){return P(e)&&e.isCommunityResource()}let M=!1;function I(){M||(M=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded  (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}
9var R=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const L=new i.b("providers/5.4.5");function N(e){return null==e?"null":(32!==Object(m.d)(e)&&L.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function j(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map(e=>{if(Array.isArray(e)){const t={};e.forEach(e=>{t[N(e)]=!0});const n=Object.keys(t);return n.sort(),n.join("|")}return N(e)}).join("&")}function B(e){if("string"==typeof e){if(e=e.toLowerCase(),32===Object(m.d)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+j(e);if(r.a.isForkEvent(e))throw L.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+j(e.topics||[])}throw new Error("invalid event - "+e)}function F(){return(new Date).getTime()}function D(e){return new Promise(t=>{setTimeout(t,e)})}const z=["block","network","pending","poll"];class U{constructor(e,t,n){Object(y.d)(this,"tag",e),Object(y.d)(this,"listener",t),Object(y.d)(this,"once",n)}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],n=""===(r=e[2])?[]:r.split(/&/g).map(e=>{if(""===e)return[];const t=e.split("|").map(e=>"null"===e?null:e);return 1===t.length?t[0]:t});var r;const i={};return n.length>0&&(i.topics=n),t&&"*"!==t&&(i.address=t),i}pollable(){return this.tag.indexOf(":")>=0||z.indexOf(this.tag)>=0}}const $={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function H(e){return Object(m.h)(p.a.from(e).toHexString(),32)}function J(e){return h.a.encode(Object(m.b)([e,Object(m.e)(Object(b.c)(Object(b.c)(e)),0,4)]))}class G{constructor(e,t,n){Object(y.d)(this,"provider",e),Object(y.d)(this,"name",n),Object(y.d)(this,"address",e.formatter.address(t))}_fetchBytes(e,t){return R(this,void 0,void 0,(function*(){const n={to:this.address,data:Object(m.c)([e,Object(v.b)(this.name),t||"0x"])};try{const e=yield this.provider.call(n);if("0x"===e)return null;const t=p.a.from(Object(m.e)(e,0,32)).toNumber(),r=p.a.from(Object(m.e)(e,t,t+32)).toNumber();return Object(m.e)(e,t+32,t+32+r)}catch(e){return e.code,i.b.errors.CALL_EXCEPTION,null}}))}_getAddress(e,t){const n=$[String(e)];if(null==n&&L.throwError("unsupported coin type: "+e,i.b.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===n.ilk)return this.provider.formatter.address(t);const r=Object(m.a)(t);if(null!=n.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return J(Object(m.b)([[n.p2pkh],"0x"+e[2]]))}}if(null!=n.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return J(Object(m.b)([[n.p2sh],"0x"+e[2]]))}}if(null!=n.prefix){const e=r[1];let t=r[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&r.length===2+e&&e>=1&&e<=75){const e=x.a.toWords(r.slice(2));return e.unshift(t),x.a.encode(n.prefix,e)}}return null}getAddress(e){return R(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e={to:this.address,data:"0x3b3b57de"+Object(v.b)(this.name).substring(2)},t=yield this.provider.call(e);return"0x"===t||t===g.a?null:this.provider.formatter.callAddress(t)}catch(e){if(e.code===i.b.errors.CALL_EXCEPTION)return null;throw e}const t=yield this._fetchBytes("0xf1cb7e06",H(e));if(null==t||"0x"===t)return null;const n=this._getAddress(e,t);return null==n&&L.throwError("invalid or unsupported coin data",i.b.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),n}))}getContentHash(){return R(this,void 0,void 0,(function*(){const e=yield this._fetchBytes("0xbc1c58d1");if(null==e||"0x"===e)return null;const t=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const e=parseInt(t[3],16);if(t[4].length===2*e)return"ipfs://"+h.a.encode("0x"+t[1])}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);
9return n&&64===n[1].length?"bzz://"+n[1]:L.throwError("invalid or unsupported content hash data",i.b.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return R(this,void 0,void 0,(function*(){let t=Object(w.f)(e);t=Object(m.b)([H(64),H(t.length),t]),t.length%32!=0&&(t=Object(m.b)([t,Object(m.h)("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",Object(m.i)(t));return null==n||"0x"===n?null:Object(w.h)(n)}))}}let V=null,X=1;class W extends r.b{constructor(e){if(L.checkNew(new.target,r.b),super(),this._events=[],this._emitted={block:-2},this.formatter=new.target.getFormatter(),Object(y.d)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(e=>{}),this._ready().catch(e=>{});else{const t=Object(y.e)(new.target,"getNetwork")(e);t?(Object(y.d)(this,"_network",t),this.emit("network",t,null)):L.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return R(this,void 0,void 0,(function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||L.throwError("no network detected",i.b.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:Object(y.d)(this,"_network",e),this.emit("network",e,null))}return this._network}))}get ready(){return Object(E.c)(()=>this._ready().then(e=>e,e=>{if(e.code!==i.b.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}static getFormatter(){return null==V&&(V=new T),V}static getNetwork(e){return d(null==e?"homestead":e)}_getInternalBlockNumber(e){return R(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const n=yield t;if(F()-n.respTime<=e)return n.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}const t=F(),n=Object(y.f)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(e=>null,e=>e)}).then(({blockNumber:e,networkError:r})=>{if(r)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),r;const i=F();return(e=p.a.from(e).toNumber())<this._maxInternalBlockNumber&&(e=this._maxInternalBlockNumber),this._maxInternalBlockNumber=e,this._setFastBlockNumber(e),{blockNumber:e,reqTime:t,respTime:i}});return this._internalBlockNumber=n,n.catch(e=>{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber}))}poll(){return R(this,void 0,void 0,(function*(){const e=X++,t=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){return void this.emit("error",e)}if(this._setFastBlockNumber(n),this.emit("poll",e,n),n!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)L.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",L.makeError("network block skew detected",i.b.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let e=this._emitted.block+1;e<=n;e++)this.emit("block",e);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach(e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&n-t>12&&delete this._emitted[e]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach(e=>{switch(e.type){case"tx":{const n=e.hash;let r=this.getTransactionReceipt(n).then(e=>e&&null!=e.blockNumber?(this._emitted["t:"+n]=e.blockNumber,this.emit(n,e),null):null).catch(e=>{this.emit("error",e)});t.push(r);break}case"filter":{const r=e.filter;r.fromBlock=this._lastBlockNumber+1,r.toBlock=n;const i=this.getLogs(r).then(e=>{0!==e.length&&e.forEach(e=>{this._emitted["b:"+e.blockHash]=e.blockNumber,this._emitted["t:"+e.transactionHash]=e.blockNumber,this.emit(r,e)})}).catch(e=>{this.emit("error",e)});t.push(i);break}}}),this._lastBlockNumber=n,Promise.all(t).then(()=>
9{this.emit("didPoll",e)}).catch(e=>{this.emit("error",e)})}else this.emit("didPoll",e)}))}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return R(this,void 0,void 0,(function*(){return L.throwError("provider does not support network detection",i.b.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return R(this,void 0,void 0,(function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield D(0),this._network;const n=L.makeError("underlying network changed",i.b.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",n),n}return e}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=F();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&e<this._fastBlockNumber||(this._fastQueryDate=F(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,n){return R(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,n||0,null)}))}_waitForTransaction(e,t,n,r){return R(this,void 0,void 0,(function*(){const o=yield this.getTransactionReceipt(e);return(o?o.confirmations:0)>=t?o:new Promise((o,a)=>{const s=[];let l=!1;const c=function(){return!!l||(l=!0,s.forEach(e=>{e()}),!1)},u=e=>{e.confirmations<t||c()||o(e)};if(this.on(e,u),s.push(()=>{this.removeListener(e,u)}),r){let n=r.startBlock,o=null;const u=s=>R(this,void 0,void 0,(function*(){l||(yield D(1e3),this.getTransactionCount(r.from).then(f=>R(this,void 0,void 0,(function*(){if(!l){if(f<=r.nonce)n=s;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==o&&(o=n-3,o<r.startBlock&&(o=r.startBlock));o<=s;){if(l)return;const n=yield this.getBlockWithTransactions(o);for(let o=0;o<n.transactions.length;o++){const s=n.transactions[o];if(s.hash===e)return;if(s.from===r.from&&s.nonce===r.nonce){if(l)return;const n=yield this.waitForTransaction(s.hash,t);if(c())return;let o="replaced";return s.data===r.data&&s.to===r.to&&s.value.eq(r.value)?o="repriced":"0x"===s.data&&s.from===s.to&&s.value.isZero()&&(o="cancelled"),void a(L.makeError("transaction was replaced",i.b.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===o||"cancelled"===o,reason:o,replacement:this._wrapTransaction(s),hash:e,receipt:n}))}}o++}}l||this.once("block",u)}})),e=>{l||this.once("block",u)}))}));if(l)return;this.once("block",u),s.push(()=>{this.removeListener("block",u)})}if("number"==typeof n&&n>0){const e=setTimeout(()=>{c()||a(L.makeError("timeout exceeded",i.b.errors.TIMEOUT,{timeout:n}))},n);e.unref&&e.unref(),s.push(()=>{clearTimeout(e)})}})}))}getBlockNumber(){return R(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return p.a.from(e)}catch(t){return L.throwError("bad result from backend",i.b.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}}))}getBalance(e,t){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield Object(y.f)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}
9),r=yield this.perform("getBalance",n);try{return p.a.from(r)}catch(e){return L.throwError("bad result from backend",i.b.errors.SERVER_ERROR,{method:"getBalance",params:n,result:r,error:e})}}))}getTransactionCount(e,t){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield Object(y.f)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),r=yield this.perform("getTransactionCount",n);try{return p.a.from(r).toNumber()}catch(e){return L.throwError("bad result from backend",i.b.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:r,error:e})}}))}getCode(e,t){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield Object(y.f)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),r=yield this.perform("getCode",n);try{return Object(m.i)(r)}catch(e){return L.throwError("bad result from backend",i.b.errors.SERVER_ERROR,{method:"getCode",params:n,result:r,error:e})}}))}getStorageAt(e,t,n){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield Object(y.f)({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(t).then(e=>Object(m.g)(e))}),o=yield this.perform("getStorageAt",r);try{return Object(m.i)(o)}catch(e){return L.throwError("bad result from backend",i.b.errors.SERVER_ERROR,{method:"getStorageAt",params:r,result:o,error:e})}}))}_wrapTransaction(e,t,n){if(null!=t&&32!==Object(m.d)(t))throw new Error("invalid response - sendTransaction");const r=e;return null!=t&&e.hash!==t&&L.throwError("Transaction hash mismatch from Provider.sendTransaction.",i.b.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),r.wait=(t,r)=>R(this,void 0,void 0,(function*(){null==t&&(t=1),null==r&&(r=0);let o=void 0;0!==t&&null!=n&&(o={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n});const a=yield this._waitForTransaction(e.hash,t,r,o);return null==a&&0===t?null:(this._emitted["t:"+e.hash]=a.blockNumber,0===a.status&&L.throwError("transaction failed",i.b.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),a)})),r}sendTransaction(e){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then(e=>Object(m.i)(e)),n=this.formatter.transaction(e);null==n.confirmations&&(n.confirmations=0);const r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(n,e,r)}catch(e){throw e.transaction=n,e.transactionHash=n.hash,e}}))}_getTransactionRequest(e){return R(this,void 0,void 0,(function*(){const t=yield e,n={};return["from","to"].forEach(e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then(e=>e?this._getAddress(e):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then(e=>e?p.a.from(e):null))}),["type"].forEach(e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then(e=>null!=e?e:null))}),t.accessList&&(n.accessList=this.formatter.accessList(t.accessList)),["data"].forEach(e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then(e=>e?Object(m.i)(e):null))}),this.formatter.transactionRequest(yield Object(y.f)(n))}))}_getFilter(e){return R(this,void 0,void 0,(function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach(n=>{null!=e[n]&&(t[n]=e[n])}),["fromBlock","toBlock"].forEach(n=>{null!=e[n]&&(t[n]=this._getBlockTag(e[n]))}),this.formatter.filter(yield Object(y.f)(t))}))}call(e,t){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield Object(y.f)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t)}),r=yield this.perform("call",n);try{return Object(m.i)(r)}catch(e){return L.throwError("bad result from backend",i.b.errors.SERVER_ERROR,{method:"call",params:n,result:r,error:e})}}))}estimateGas(e){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Object(y.f)({transaction:this._getTransactionRequest(e)}),n=yield this.perform("estimateGas",t);try{return p.a.from(n)}catch(e){return L.throwError("bad result from backend",i.b.errors.SERVER_ERROR,{method:"estimateGas",params:t,result:n,error:e})}}))}_getAddress(e){return R(this,void 0,void 0,(function*(){const t=yield this.resolveName(e);return null==t&&L.throwError("ENS name not configured",i.b.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),t}))}_getBlock(e,t){return R(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;let n=-128;const r={includeTransactions:!!t};if(Object(m.l)(e,32))r.blockHash=e;else try{r.blockTag=this.formatter.blockTag(yield this._getBlockTag(e)),Object(m.l)(r.blockTag)&&(n=parseInt(r.blockTag.substring(2),16))}catch(t){L.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return Object(E.c)(()=>R(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",r);if(null==e)return null!=r.blockHash&&null==this._emitted["b:"+r.blockHash]||null!=r.blockTag&&n>this._emitted.block?null:void 0;if(t){let t=null;for(let n=0;n<e.transactions.length;n++){const r=e.transactions[n];if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){null==t&&(t=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let e=t-r.blockNumber+1;e<=0&&(e=1),r.confirmations=e}}const n=this.formatter.blockWithTransactions(e);return n.transactions=n.transactions.map(e=>this._wrapTransaction(e)),n}return this.formatter.block(e)})),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return R(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return Object(E.c)(()=>R(this,void 0,void 0,(function*(){const n=yield this.perform("getTransaction",t);if(null==n)return null==this._emitted["t:"+e]?null:void 0;const r=this.formatter.transactionResponse(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;e<=0&&(e=1),r.confirmations=e}return this._wrapTransaction(r)})),{oncePoll:this})}))}getTransactionReceipt(e){return R(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return Object(E.c)(()=>R(this,void 0,void 0,(function*(){const n=yield this.perform("getTransactionReceipt",t);if(null==n)return null==this._emitted["t:"+e]?null:void 0;if(null==n.blockHash)return;const r=this.formatter.receipt(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;e<=0&&(e=1),r.confirmations=e}return r})),{oncePoll:this})}))}getLogs(e){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Object(y.f)({filter:this._getFilter(e)}),n=yield this.perform("getLogs",t);
9return n.forEach(e=>{null==e.removed&&(e.removed=!1)}),T.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)}))}getEtherPrice(){return R(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return R(this,void 0,void 0,(function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&L.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)}))}getResolver(e){return R(this,void 0,void 0,(function*(){try{const t=yield this._getResolver(e);return null==t?null:new G(this,t,e)}catch(e){return e.code,i.b.errors.CALL_EXCEPTION,null}}))}_getResolver(e){return R(this,void 0,void 0,(function*(){const t=yield this.getNetwork();t.ensAddress||L.throwError("network does not support ENS",i.b.errors.UNSUPPORTED_OPERATION,{operation:"ENS",network:t.name});const n={to:t.ensAddress,data:"0x0178b8bf"+Object(v.b)(e).substring(2)};try{return this.formatter.callAddress(yield this.call(n))}catch(e){if(e.code===i.b.errors.CALL_EXCEPTION)return null;throw e}}))}resolveName(e){return R(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if(Object(m.l)(e))throw t}"string"!=typeof e&&L.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(e){return R(this,void 0,void 0,(function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(t);if(!n)return null;let r=Object(m.a)(yield this.call({to:n,data:"0x691f3431"+Object(v.b)(t).substring(2)}));if(r.length<32||!p.a.from(r.slice(0,32)).eq(32))return null;if(r=r.slice(32),r.length<32)return null;const i=p.a.from(r.slice(0,32)).toNumber();if(r=r.slice(32),i>r.length)return null;const o=Object(w.h)(r.slice(0,i));return(yield this.resolveName(o))!=e?null:o}))}perform(e,t){return L.throwError(e+" not implemented",i.b.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(e,t,n){const r=new U(B(e),t,n);return this._events.push(r),this._startEvent(r),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let n=!1,r=[],i=B(e);return this._events=this._events.filter(e=>e.tag!==i||(setTimeout(()=>{e.listener.apply(this,t)},0),n=!0,!e.once||(r.push(e),!1))),r.forEach(e=>{this._stopEvent(e)}),n}listenerCount(e){if(!e)return this._events.length;let t=B(e);return this._events.filter(e=>e.tag===t).length}listeners(e){if(null==e)return this._events.map(e=>e.listener);let t=B(e);return this._events.filter(e=>e.tag===t).map(e=>e.listener)}off(e,t){if(null==t)return this.removeAllListeners(e);const n=[];let r=!1,i=B(e);return this._events=this._events.filter(e=>e.tag!==i||e.listener!=t||(!!r||(r=!0,n.push(e),!1))),n.forEach(e=>{this._stopEvent(e)}),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const n=B(e);this._events=this._events.filter(e=>e.tag!==n||(t.push(e),!1))}return t.forEach(e=>{this._stopEvent(e)}),this}}var q=n(39),K=n(306),Z=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const Y=new i.b("providers/5.4.5"),Q=["call","estimateGas"];function ee(e,t,n){if("call"===e&&t.code===i.b.errors.SERVER_ERROR){const e=t.error;if(e&&e.message.match("reverted")&&Object(m.l)(e.data))return e.data;Y.throwError("missing revert data in call exception",i.b.errors.CALL_EXCEPTION,{error:t,data:"0x"})}let r=t.message;t.code===i.b.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?r=t.error.message:"string"==typeof t.body?r=t.body:"string"==typeof t.responseText&&(r=t.responseText),r=(r||"").toLowerCase();const o=n.transaction||n.signedTransaction;throw r.match(/insufficient funds|base fee exceeds gas limit/)&&Y.throwError("insufficient funds for intrinsic transaction cost",i.b.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:o}),r.match(/nonce too low/)&&Y.throwError("nonce has already been used",i.b.errors.NONCE_EXPIRED,{error:t,method:e,transaction:o}),r.match(/replacement transaction underpriced/)&&Y.throwError("replacement fee too low",i.b.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:o}),r.match(/only replay-protected/)&&Y.throwError("legacy pre-eip-155 transactions not supported",i.b.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:o}),Q.indexOf(e)>=0&&r.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&Y.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:o}),t}function te(e){return new Promise((function(t){setTimeout(t,e)}))}function ne(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function re(e){return e?e.toLowerCase():e}const ie={};class oe extends q.a{constructor(e,t,n){if(Y.checkNew(new.target,oe),super(),e!==ie)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");Object(y.d)(this,"provider",t),null==n&&(n=0),"string"==typeof n?(Object(y.d)(this,"_address",this.provider.formatter.address(n)),Object(y.d)(this,"_index",null)):"number"==typeof n?(Object(y.d)(this,"_index",n),Object(y.d)(this,"_address",null)):Y.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return Y.throwError("cannot alter JSON-RPC Signer connection",i.b.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new ae(ie,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&Y.throwError("unknown account #"+this._index,i.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=Object(y.g)(e);const t=this.getAddress().then(e=>(e&&(e=e.toLowerCase()),e));
9if(null==e.gasLimit){const n=Object(y.g)(e);n.from=t,e.gasLimit=this.provider.estimateGas(n)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(e=>Z(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&Y.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})))),Object(y.f)({tx:Object(y.f)(e),sender:t}).then(({tx:t,sender:n})=>{null!=t.from?t.from.toLowerCase()!==n&&Y.throwArgumentError("from address mismatch","transaction",e):t.from=n;const r=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[r]).then(e=>e,e=>ee("sendTransaction",e,r))})}signTransaction(e){return Y.throwError("signing transactions is unsupported",i.b.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return Z(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(e);try{return yield Object(E.c)(()=>Z(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(n);if(null!==e)return this.provider._wrapTransaction(e,n,t)})),{oncePoll:this.provider})}catch(e){throw e.transactionHash=n,e}}))}signMessage(e){return Z(this,void 0,void 0,(function*(){const t="string"==typeof e?Object(w.f)(e):e,n=yield this.getAddress();return yield this.provider.send("eth_sign",[n.toLowerCase(),Object(m.i)(t)])}))}_signTypedData(e,t,n){return Z(this,void 0,void 0,(function*(){const r=yield K.a.resolveNames(e,t,n,e=>this.provider.resolveName(e)),i=yield this.getAddress();return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(K.a.getPayload(r.domain,t,r.value))])}))}unlock(e){return Z(this,void 0,void 0,(function*(){const t=this.provider,n=yield this.getAddress();return t.send("personal_unlockAccount",[n.toLowerCase(),e,null])}))}}class ae extends oe{sendTransaction(e){return this.sendUncheckedTransaction(e).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)}))}}const se={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class le extends W{constructor(e,t){Y.checkNew(new.target,le);let n=t;null==n&&(n=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(t=>{e(t)},e=>{t(e)})},0)})),super(n),e||(e=Object(y.e)(this.constructor,"defaultUrl")()),"string"==typeof e?Object(y.d)(this,"connection",Object.freeze({url:e})):Object(y.d)(this,"connection",Object.freeze(Object(y.g)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return Z(this,void 0,void 0,(function*(){yield te(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){const t=Object(y.e)(this.constructor,"getNetwork");try{return t(p.a.from(e).toNumber())}catch(t){return Y.throwError("could not detect network",i.b.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return Y.throwError("could not detect network",i.b.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new oe(ie,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(e=>this.formatter.address(e)))}send(e,t){const n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:Object(y.c)(n),provider:this});const r=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(r&&this._cache[e])return this._cache[e];const i=Object(E.b)(this.connection,JSON.stringify(n),ne).then(e=>(this.emit("debug",{action:"response",request:n,response:e,provider:this}),e),e=>
9{throw this.emit("debug",{action:"response",error:e,request:n,provider:this}),e});return r&&(this._cache[e]=i,setTimeout(()=>{this._cache[e]=null},0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[re(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[re(t.address),t.blockTag]];case"getCode":return["eth_getCode",[re(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[re(t.address),t.position,t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[Object(y.e)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[Object(y.e)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=re(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return Z(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&p.a.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const n=yield this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&((t=Object(y.g)(t)).transaction=Object(y.g)(e),delete t.transaction.type)}}const n=this.prepareRequest(e,t);null==n&&Y.throwError(e+" not implemented",i.b.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(n){return ee(e,n,t)}}))}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(n){return function r(){e.send("eth_getFilterChanges",[n]).then((function(n){if(e._pendingFilter!=t)return null;let r=Promise.resolve();return n.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",r=r.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),r.then((function(){return te(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){r()}),0),null;e.send("eth_uninstallFilter",[n])})).catch(e=>{})}(),n})).catch(e=>{})}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const n=Object(y.g)(se);if(t)for(const e in t)t[e]&&(n[e]=!0);Object(y.b)(e,n);const r={};return["gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const n=Object(m.g)(e[t]);"gasLimit"===t&&(t="gas"),r[t]=n})),["from","to","data"].forEach((function(t){null!=e[t]&&(r[t]=Object(m.i)(e[t]))})),e.accessList&&(r.accessList=Object(A.b)(e.accessList)),r}}let ce=null;try{if(ce=WebSocket,null==ce)throw new Error("inject please")}catch(e){const t=new i.b("providers/5.4.5");ce=function(){t.throwError("WebSockets not supported in this environment",i.b.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var ue=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const fe=new i.b("providers/5.4.5");let de=1;class he extends le{constructor(e,t){"any"===t&&fe.throwError("WebSocketProvider does not support 'any' network yet",i.b.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super(e,t),this._pollingInterval=-1,this._wsReady=!1,Object(y.d)(this,"_websocket",new ce(this.connection.url)),Object(y.d)(this,"_requests",{}),Object(y.d)(this,"_subs",{}),Object(y.d)(this,"_subIds",{}),Object(y.d)(this,"_detectNetwork",super.detectNetwork()),this._websocket.onopen=()=>
9{this._wsReady=!0,Object.keys(this._requests).forEach(e=>{this._websocket.send(this._requests[e].payload)})},this._websocket.onmessage=e=>{const t=e.data,n=JSON.parse(t);if(null!=n.id){const e=String(n.id),r=this._requests[e];if(delete this._requests[e],void 0!==n.result)r.callback(null,n.result),this.emit("debug",{action:"response",request:JSON.parse(r.payload),response:n.result,provider:this});else{let e=null;n.error?(e=new Error(n.error.message||"unknown error"),Object(y.d)(e,"code",n.error.code||null),Object(y.d)(e,"response",t)):e=new Error("unknown error"),r.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(r.payload),provider:this})}}else if("eth_subscription"===n.method){const e=this._subs[n.params.subscription];e&&e.processFunc(n.params.result)}else console.warn("this should not happen")};const n=setInterval(()=>{this.emit("poll")},1e3);n.unref&&n.unref()}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){fe.throwError("cannot reset events block on WebSocketProvider",i.b.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){fe.throwError("cannot set polling interval on WebSocketProvider",i.b.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return ue(this,void 0,void 0,(function*(){return null}))}set polling(e){e&&fe.throwError("cannot set polling on WebSocketProvider",i.b.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){const n=de++;return new Promise((r,i)=>{const o=JSON.stringify({method:e,params:t,id:n,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(o),provider:this}),this._requests[String(n)]={callback:function(e,t){return e?i(e):r(t)},payload:o},this._wsReady&&this._websocket.send(o)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,n){return ue(this,void 0,void 0,(function*(){let r=this._subIds[e];null==r&&(r=Promise.all(t).then(e=>this.send("eth_subscribe",e)),this._subIds[e]=r);const i=yield r;this._subs[i]={tag:e,processFunc:n}}))}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],e=>{const t=p.a.from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],e=>{this.emit("pending",e)});break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))});break;case"tx":{const t=e=>{const t=e.hash;this.getTransactionReceipt(t).then(e=>{e&&this.emit(t,e)})};t(e),this._subscribe("tx",["newHeads"],e=>{this._events.filter(e=>"tx"===e.type).forEach(t)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter(e=>"tx"===e.type).length)return;t="tx"}else if(this.listenerCount(e.event))return;const n=this._subIds[t];n&&(delete this._subIds[t],n.then(e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))}))}destroy(){return ue(this,void 0,void 0,(function*(){this._websocket.readyState===ce.CONNECTING&&(yield new Promise(e=>{this._websocket.onopen=function(){e(!0)},this._websocket.onerror=function(){e(!1)}})),this._websocket.close(1e3)}))}}var pe=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const me=new i.b("providers/5.4.5");class ge extends le{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return pe(this,void 0,void 0,(function*(){let t=this.network;return null==t&&(t=yield e.detectNetwork.call(this),t||me.throwError("no network detected",i.b.errors.UNKNOWN_ERROR,{}),null==this._network&&(Object(y.d)(this,"_network",t),this.emit("network",t,null))),t}))}}class ve extends ge{constructor(e,t){me.checkAbstract(new.target,ve),e=Object(y.e)(new.target,"getNetwork")(e),t=Object(y.e)(new.target,"getApiKey")(t);super(Object(y.e)(new.target,"getUrl")(e,t),e),"string"==typeof t?Object(y.d)(this,"apiKey",t):null!=t&&Object.keys(t).forEach(e
9=>{Object(y.d)(this,e,t[e])})}_startPending(){me.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return me.throwError("API provider does not support signing",i.b.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return me.throwError("not implemented; sub-classes must override getUrl",i.b.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const ye=new i.b("providers/5.4.5"),be="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class we extends he{constructor(e,t){const n=new Ee(e,t);super(n.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),n.network),Object(y.d)(this,"apiKey",n.apiKey)}isCommunityResource(){return this.apiKey===be}}class Ee extends ve{static getWebSocketProvider(e,t){return new we(e,t)}static getApiKey(e){return null==e?be:(e&&"string"!=typeof e&&ye.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let n=null;switch(e.name){case"homestead":n="eth-mainnet.alchemyapi.io/v2/";break;case"ropsten":n="eth-ropsten.alchemyapi.io/v2/";break;case"rinkeby":n="eth-rinkeby.alchemyapi.io/v2/";break;case"goerli":n="eth-goerli.alchemyapi.io/v2/";break;case"kovan":n="eth-kovan.alchemyapi.io/v2/";break;case"matic":n="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":n="polygon-mumbai.g.alchemy.com/v2/";break;default:ye.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+n+t,throttleCallback:(e,n)=>(t===be&&I(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===be}}var ke=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const xe=new i.b("providers/5.4.5");class Se extends ve{static getApiKey(e){return null!=e&&xe.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let n=null;switch(e.name){case"homestead":n="https://cloudflare-eth.com/";break;default:xe.throwArgumentError("unsupported network","network",arguments[0])}return n}perform(e,t){const n=Object.create(null,{perform:{get:()=>super.perform}});return ke(this,void 0,void 0,(function*(){if("getBlockNumber"===e){return(yield n.perform.call(this,"getBlock",{blockTag:"latest"})).number}return n.perform.call(this,e,t)}))}}var _e=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const Ae=new i.b("providers/5.4.5");function Ce(e){const t={};for(let n in e){if(null==e[n])continue;let r=e[n];"type"===n&&0===r||(r={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n]?Object(m.g)(Object(m.i)(r)):"accessList"===n?"["+Object(A.b)(r).map(e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`).join(",")+"]":Object(m.i)(r),t[n]=r)}return t}function Te(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"OK"!=e.message){const t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function Pe(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){const t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function Oe(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function Me(e,t,n){if("call"===e&&t.code===i.b.errors.SERVER_ERROR){const e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let n=e.data;
9if(n&&(n="0x"+n.replace(/^.*0x/i,"")),Object(m.l)(n))return n;Ae.throwError("missing revert data in call exception",i.b.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let r=t.message;throw t.code===i.b.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?r=t.error.message:"string"==typeof t.body?r=t.body:"string"==typeof t.responseText&&(r=t.responseText)),r=(r||"").toLowerCase(),r.match(/insufficient funds/)&&Ae.throwError("insufficient funds for intrinsic transaction cost",i.b.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),r.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Ae.throwError("nonce has already been used",i.b.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),r.match(/another transaction with same nonce/)&&Ae.throwError("replacement fee too low",i.b.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),r.match(/execution failed due to an exception|execution reverted/)&&Ae.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}class Ie extends W{constructor(e,t){Ae.checkNew(new.target,Ie),super(e),Object(y.d)(this,"baseUrl",this.getBaseUrl()),Object(y.d)(this,"apiKey",t||"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB")}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"ropsten":return"https://api-ropsten.etherscan.io";case"rinkeby":return"https://api-rinkeby.etherscan.io";case"kovan":return"https://api-kovan.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io"}return Ae.throwArgumentError("unsupported network","network",name)}getUrl(e,t){const n=Object.keys(t).reduce((e,n)=>{const r=t[n];return null!=r&&(e+=`&${n}=${r}`),e},""),r=this.apiKey?"&apikey="+this.apiKey:"";return`${this.baseUrl}/api?module=${e}${n}${r}`}getPostUrl(){return this.baseUrl+"/api"}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,n){return _e(this,void 0,void 0,(function*(){const r=n?this.getPostUrl():this.getUrl(e,t),i=n?this.getPostData(e,t):null,o="proxy"===e?Pe:Te;this.emit("debug",{action:"request",request:r,provider:this});const a={url:r,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&I(),Promise.resolve(!0))};let s=null;i&&(a.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},s=Object.keys(i).map(e=>`${e}=${i[e]}`).join("&"));const l=yield Object(E.b)(a,s,o||Pe);return this.emit("debug",{action:"response",request:r,response:Object(y.c)(l),provider:this}),l}))}detectNetwork(){return _e(this,void 0,void 0,(function*(){return this.network}))}perform(e,t){const n=Object.create(null,{perform:{get:()=>super.perform}});return _e(this,void 0,void 0,(function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch(e=>Me("sendTransaction",e,t.signedTransaction));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const e=Ce(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(e){return Me("call",e,t.transaction)}}case"estimateGas":{const e=Ce(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(e){return Me("estimateGas",e,t.transaction)}}case"getLogs":{const e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=Oe(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=Oe(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&Ae.throwError("unsupported topic count",i.b.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){const n=t.filter.topics[0];"string"==typeof n&&66===n.length||Ae.throwError("unsupported topic format",i.b.errors.UNSUPPORTED_OPERATION,{topic0:n}),e.topic0=n}const n=yield this.fetch("logs",e);let r={};for(let e=0;e<n.length;e++){const t=n[e];if(null==t.blockHash){if(null==r[t.blockNumber]){const e=yield this.getBlock(t.blockNumber);e&&(r[t.blockNumber]=e.hash)}t.blockHash=r[t.blockNumber]}}return n}case"getEtherPrice":return"homestead"!==this.network.name?0:parseFloat((yield this.fetch("stats",{action:"ethprice"})).ethusd)}return n.perform.call(this,e,t)}))}
9getHistory(e,t,n){return _e(this,void 0,void 0,(function*(){const r={action:"txlist",address:yield this.resolveName(e),startblock:null==t?0:t,endblock:null==n?99999999:n,sort:"asc"};return(yield this.fetch("account",r)).map(e=>{["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);const t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t})}))}isCommunityResource(){return"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB"===this.apiKey}}var Re=n(308),Le=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const Ne=new i.b("providers/5.4.5");function je(){return(new Date).getTime()}function Be(e){let t=null;for(let n=0;n<e.length;n++){const r=e[n];if(null==r)return null;t?t.name===r.name&&t.chainId===r.chainId&&(t.ensAddress===r.ensAddress||null==t.ensAddress&&null==r.ensAddress)||Ne.throwArgumentError("provider mismatch","networks",e):t=r}return t}function Fe(e,t){e=e.slice().sort();const n=Math.floor(e.length/2);if(e.length%2)return e[n];const r=e[n-1],i=e[n];return null!=t&&Math.abs(r-i)>t?null:(r+i)/2}function De(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(p.a.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map(e=>De(e)));if("object"==typeof e){const t=Object.keys(e);return t.sort(),"{"+t.map(t=>{let n=e[t];return n="function"==typeof n?"[function]":De(n),JSON.stringify(t)+":"+n}).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}let ze=1;function Ue(e){let t=null,n=null,r=new Promise(r=>{t=function(){n&&(clearTimeout(n),n=null),r()},n=setTimeout(t,e)});return{cancel:t,getPromise:function(){return r},wait:e=>(r=r.then(e),r)}}const $e=[i.b.errors.CALL_EXCEPTION,i.b.errors.INSUFFICIENT_FUNDS,i.b.errors.NONCE_EXPIRED,i.b.errors.REPLACEMENT_UNDERPRICED,i.b.errors.UNPREDICTABLE_GAS_LIMIT],He=["address","args","errorArgs","errorSignature","method","transaction"];function Je(e,t){const n={weight:e.weight};return Object.defineProperty(n,"provider",{get:()=>e.provider}),e.start&&(n.start=e.start),t&&(n.duration=t-e.start),e.done&&(e.error?n.error=e.error:n.result=e.result||null),n}function Ge(e,t,n){let r=De;switch(t){case"getBlockNumber":return function(t){const n=t.map(e=>e.result);let r=Fe(t.map(e=>e.result),2);if(null!=r)return r=Math.ceil(r),n.indexOf(r+1)>=0&&r++,r>=e._highestBlockNumber&&(e._highestBlockNumber=r),e._highestBlockNumber};case"getGasPrice":return function(e){const t=e.map(e=>e.result);return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return Fe(e.map(e=>e.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":r=function(e){return null==e?null:((e=Object(y.g)(e)).confirmations=-1,De(e))};break;case"getBlock":r=n.includeTransactions?function(e){return null==e?null:((e=Object(y.g)(e)).transactions=e.transactions.map(e=>((e=Object(y.g)(e)).confirmations=-1,e)),De(e))}:function(e){return null==e?null:De(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(n){const r={};n.forEach(t=>{const n=e(t.result);r[n]||(r[n]={count:0,result:t.result}),r[n].count++});const i=Object.keys(r);for(let e=0;e<i.length;e++){const n=r[i[e]];if(n.count>=t)return n.result}}}(r,e.quorum)}function Ve(e,t){return Le(this,void 0,void 0,(function*(){const n=e.provider;return null!=n.blockNumber&&n.blockNumber>=t||-1===t?n:Object(E.c)(()=>new Promise((r,i)=>{setTimeout((function(){return n.blockNumber>=t?r(n):e.cancelled?r(null):r(void 0)}),0)}),{oncePoll:n})}))}function Xe(e,t,n,r){return Le(this,void 0,void 0,(function*(){let o=e.provider;switch(n){case"getBlockNumber":case"getGasPrice":return o[n]();case"getEtherPrice":if(o.getEtherPrice)return o.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return r.blockTag&&Object(m.l)(r.blockTag)&&(o=yield Ve(e,t)),o[n](r.address,r.blockTag||"latest");case"getStorageAt":return r.blockTag&&Object(m.l)(r.blockTag)&&(o=yield Ve(e,t)),o.getStorageAt(r.address,r.position,r.blockTag||"latest");case"getBlock":return r.blockTag&&Object(m.l)(r.blockTag)&&(o=yield Ve(e,t)),o[r.includeTransactions?"getBlockWithTransactions":"getBlock"](r.blockTag||r.blockHash);case"call":case"estimateGas":return r.blockTag&&Object(m.l)(r.blockTag)&&(o=yield Ve(e,t)),o[n](r.transaction);case"getTransaction":case"getTransactionReceipt":return o[n](r.transactionHash);case"getLogs":{let n=r.filter;return(n.fromBlock&&Object(m.l)(n.fromBlock)||n.toBlock&&Object(m.l)(n.toBlock))&&(o=yield Ve(e,t)),o.getLogs(n)}}return Ne.throwError("unknown method error",i.b.errors.UNKNOWN_ERROR,{method:n,params:r})}))}class We extends W{constructor(e,t){Ne.checkNew(new.target,We),0===e.length&&Ne.throwArgumentError("missing providers","providers",e);const n=e.map((e,t)=>{if(r.b.isProvider(e)){const t=O(e)?2e3:750,n=1;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:n})}const n=Object(y.g)(e);null==n.priority&&(n.priority=1),null==n.stallTimeout&&(n.stallTimeout=O(e)?2e3:750),null==n.weight&&(n.weight=1);const i=n.weight;return(i%1||i>512||i<1)&&Ne.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${t}].weight`,i),Object.freeze(n)}),i=n.reduce((e,t)=>
9e+t.weight,0);null==t?t=i/2:t>i&&Ne.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let o=Be(n.map(e=>e.provider.network));null==o&&(o=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(e,t)},0)})),super(o),Object(y.d)(this,"providerConfigs",Object.freeze(n)),Object(y.d)(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return Le(this,void 0,void 0,(function*(){return Be(yield Promise.all(this.providerConfigs.map(e=>e.provider.getNetwork())))}))}perform(e,t){return Le(this,void 0,void 0,(function*(){if("sendTransaction"===e){const e=yield Promise.all(this.providerConfigs.map(e=>e.provider.sendTransaction(t.signedTransaction).then(e=>e.hash,e=>e)));for(let t=0;t<e.length;t++){const n=e[t];if("string"==typeof n)return n}throw e[0]}-1===this._highestBlockNumber&&"getBlockNumber"!==e&&(yield this.getBlockNumber());const n=Ge(this,e,t),r=Object(Re.a)(this.providerConfigs.map(y.g));r.sort((e,t)=>e.priority-t.priority);const o=this._highestBlockNumber;let a=0,s=!0;for(;;){const i=je();let l=r.filter(e=>e.runner&&i-e.start<e.stallTimeout).reduce((e,t)=>e+t.weight,0);for(;l<this.quorum&&a<r.length;){const n=r[a++],i=ze++;n.start=je(),n.staller=Ue(n.stallTimeout),n.staller.wait(()=>{n.staller=null}),n.runner=Xe(n,o,e,t).then(r=>{n.done=!0,n.result=r,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:i,backend:Je(n,je()),request:{method:e,params:Object(y.c)(t)},provider:this})},r=>{n.done=!0,n.error=r,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:i,backend:Je(n,je()),request:{method:e,params:Object(y.c)(t)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:i,backend:Je(n,null),request:{method:e,params:Object(y.c)(t)},provider:this}),l+=n.weight}const c=[];r.forEach(e=>{!e.done&&e.runner&&(c.push(e.runner),e.staller&&c.push(e.staller.getPromise()))}),c.length&&(yield Promise.race(c));const u=r.filter(e=>e.done&&null==e.error);if(u.length>=this.quorum){const e=n(u);if(void 0!==e)return r.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),e;s||(yield Ue(100).getPromise()),s=!1}const f=r.reduce((e,t)=>{if(!t.done||null==t.error)return e;const n=t.error.code;return $e.indexOf(n)>=0&&(e[n]||(e[n]={error:t.error,weight:0}),e[n].weight+=t.weight),e},{});if(Object.keys(f).forEach(e=>{const t=f[e];if(t.weight<this.quorum)return;r.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0});const n=t.error,i={};He.forEach(e=>{null!=n[e]&&(i[e]=n[e])}),Ne.throwError(n.reason||n.message,e,i)}),0===r.filter(e=>!e.done).length)break}return r.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),Ne.throwError("failed to meet quorum",i.b.errors.SERVER_ERROR,{method:e,params:t,results:r.map(e=>Je(e)),provider:this})}))}}const qe=null,Ke=new i.b("providers/5.4.5"),Ze="84842078b09946638c03157f83405213";class Ye extends he{constructor(e,t){const n=new Qe(e,t),r=n.connection;r.password&&Ke.throwError("INFURA WebSocket project secrets unsupported",i.b.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});super(r.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),Object(y.d)(this,"apiKey",n.projectId),Object(y.d)(this,"projectId",n.projectId),Object(y.d)(this,"projectSecret",n.projectSecret)}isCommunityResource(){return this.projectId===Ze}}class Qe extends ve{static getWebSocketProvider(e,t){return new Ye(e,t)}static getApiKey(e){const t={apiKey:Ze,projectId:Ze,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(Ke.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),Ke.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let n=null;switch(e?e.name:"unknown"){case"homestead":n="mainnet.infura.io";break;case"ropsten":n="ropsten.infura.io";break;case"rinkeby":n="rinkeby.infura.io";break;case"kovan":n="kovan.infura.io";break;case"goerli":n="goerli.infura.io";break;case"matic":n="polygon-mainnet.infura.io";break;case"maticmum":n="polygon-mumbai.infura.io";break;
9default:Ke.throwError("unsupported network",i.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const r={allowGzip:!0,url:"https://"+n+"/v3/"+t.projectId,throttleCallback:(e,n)=>(t.projectId===Ze&&I(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}isCommunityResource(){return this.projectId===Ze}}class et extends le{send(e,t){const n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise((e,t)=>{r.resolve=e,r.reject=t});return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{const e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const t=e.map(e=>e.request);return this.emit("debug",{action:"requestBatch",request:Object(y.c)(t),provider:this}),Object(E.b)(this.connection,JSON.stringify(t)).then(n=>{this.emit("debug",{action:"response",request:t,response:n,provider:this}),e.forEach((e,t)=>{const r=n[t];if(r.error){const t=new Error(r.error.message);t.code=r.error.code,t.data=r.error.data,e.reject(t)}else e.resolve(r.result)})},n=>{this.emit("debug",{action:"response",error:n,request:t,provider:this}),e.forEach(e=>{e.reject(n)})})},10)),i}}const tt=new i.b("providers/5.4.5");class nt extends ve{static getApiKey(e){return e&&"string"!=typeof e&&tt.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){tt.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let n=null;switch(e.name){case"homestead":n="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":n="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":n="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":n="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":n="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:tt.throwArgumentError("unsupported network","network",arguments[0])}return n+"?apiKey="+t}}const rt=new i.b("providers/5.4.5"),it={homestead:"6004bcd10040261633ade990",ropsten:"6004bd4d0040261633ade991",rinkeby:"6004bda20040261633ade994",goerli:"6004bd860040261633ade992"};class ot extends ve{constructor(e,t){if(null==t){const n=Object(y.e)(new.target,"getNetwork")(e);if(n){const e=it[n.name];e&&(t={applicationId:e,loadBalancer:!0})}null==t&&rt.throwError("unsupported network",i.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}super(e,t)}static getApiKey(e){null==e&&rt.throwArgumentError("PocketProvider.getApiKey does not support null apiKey","apiKey",e);const t={applicationId:null,loadBalancer:!1,applicationSecretKey:null};return"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(rt.assertArgument("string"==typeof e.applicationId,"applicationSecretKey requires an applicationId","applicationId",e.applicationId),rt.assertArgument("string"==typeof e.applicationSecretKey,"invalid applicationSecretKey","applicationSecretKey","[REDACTED]"),t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey,t.loadBalancer=!!e.loadBalancer):e.applicationId?(rt.assertArgument("string"==typeof e.applicationId,"apiKey.applicationId must be a string","apiKey.applicationId",e.applicationId),t.applicationId=e.applicationId,t.loadBalancer=!!e.loadBalancer):rt.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let n=null;switch(e?e.name:"unknown"){case"homestead":n="eth-mainnet.gateway.pokt.network";break;case"ropsten":n="eth-ropsten.gateway.pokt.network";break;case"rinkeby":n="eth-rinkeby.gateway.pokt.network";break;case"goerli":n="eth-goerli.gateway.pokt.network";break;default:rt.throwError("unsupported network",i.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let r=null;r=t.loadBalancer?`https://${n}/v1/lb/${t.applicationId}`:`https://${n}/v1/${t.applicationId}`;const o={url:r,headers:{}};return null!=t.applicationSecretKey&&(o.user="",o.password=t.applicationSecretKey),o}isCommunityResource(){return this.applicationId===it[this.network.name]}}const at=new i.b("providers/5.4.5");let st=1;function lt(e,t){const n="Web3LegacyFetcher";return function(r,i){"eth_sign"==r&&(e.isMetaMask||e.isStatus)&&(r="personal_sign",i=[i[1],i[0]]);const o={method:r,params:i,id:st++,jsonrpc:"2.0"};return new Promise((e,r)=>
9{this.emit("debug",{action:"request",fetcher:n,request:Object(y.c)(o),provider:this}),t(o,(t,i)=>{if(t)return this.emit("debug",{action:"response",fetcher:n,error:t,request:o,provider:this}),r(t);if(this.emit("debug",{action:"response",fetcher:n,request:o,response:i,provider:this}),i.error){const e=new Error(i.error.message);return e.code=i.error.code,e.data=i.error.data,r(e)}e(i.result)})})}}class ct extends le{constructor(e,t){at.checkNew(new.target,ct),null==e&&at.throwArgumentError("missing provider","provider",e);let n=null,r=null,i=null;"function"==typeof e?(n="unknown:",r=e):(n=e.host||e.path||"",!n&&e.isMetaMask&&(n="metamask"),i=e,e.request?(""===n&&(n="eip-1193:"),r=function(e){return function(t,n){null==n&&(n=[]),"eth_sign"==t&&(e.isMetaMask||e.isStatus)&&(t="personal_sign",n=[n[1],n[0]]);const r={method:t,params:n};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:Object(y.c)(r),provider:this}),e.request(r).then(e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,error:e,provider:this}),e})}}(e)):e.sendAsync?r=lt(e,e.sendAsync.bind(e)):e.send?r=lt(e,e.send.bind(e)):at.throwArgumentError("unsupported provider","provider",e),n||(n="unknown:")),super(n,t),Object(y.d)(this,"jsonRpcFetchFunc",r),Object(y.d)(this,"provider",i)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}const ut=new i.b("providers/5.4.5");function ft(e,t){if(null==e&&(e="homestead"),"string"==typeof e){const t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1]){case"http":return new le(e);case"ws":return new he(e);default:ut.throwArgumentError("unsupported URL scheme","network",e)}}const n=d(e);return n&&n._defaultProvider||ut.throwError("unsupported getDefaultProvider network",i.b.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),n._defaultProvider({FallbackProvider:We,AlchemyProvider:Ee,CloudflareProvider:Se,EtherscanProvider:Ie,InfuraProvider:Qe,JsonRpcProvider:le,NodesmithProvider:nt,PocketProvider:ot,Web3Provider:ct,IpcProvider:qe},t)}},function(e,t,n){"use strict";e.exports=n(200)},function(e,t,n){e.exports=n(279)()},function(e,t,n){"use strict";var r=n(71),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=u(n);f&&(a=a.concat(f(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=d(n,v);try{c(t,v,y)}catch(e){}}}}return t}},function(e,t){var n=function(){var e=Math.random,t=function(e,t,r){this.errors=[],void 0===r.raw&&(this.errors.push("Empty input for node"),r.raw=""),e instanceof n.Grammar?(this.grammar=e,this.parent=null,this.depth=0,this.childIndex=0):(this.grammar=e.grammar,this.parent=e,this.depth=e.depth+1,this.childIndex=t),this.raw=r.raw,this.type=r.type,this.isExpanded=!1,this.grammar||console.warn("No grammar specified for this node",this)};function r(e,t){this.node=e;var n=t.split(":");this.target=n[0],1===n.length?this.type=2:(this.rule=n[1],"POP"===this.rule?this.type=1:this.type=0)}function i(e,t){this.raw=t,this.grammar=e,this.falloff=1,Array.isArray(t)?this.defaultRules=t:("string"==typeof t||t instanceof String)&&(this.defaultRules=[t])}t.prototype.toString=function(){return"Node('"+this.raw+"' "+this.type+" d:"+this.depth+")"},t.prototype.expandChildren=function(e,r){if(this.children=[],this.finishedText="",this.childRule=e,void 0!==this.childRule){var i=n.parse(e);i.errors.length>0&&(this.errors=this.errors.concat(i.errors));for(var o=0;o<i.length;o++)this.children[o]=new t(this,o,i[o]),r||this.children[o].expand(r),this.finishedText
9+=this.children[o].finishedText}else this.errors.push("No child rule provided, can't expand children"),console.warn("No child rule provided, can't expand children")},t.prototype.expand=function(e){if(!this.isExpanded)switch(this.isExpanded=!0,this.expansionErrors=[],this.type){case-1:this.expandChildren(this.raw,e);break;case 0:this.finishedText=this.raw;break;case 1:this.preactions=[],this.postactions=[];var t=n.parseTag(this.raw);this.symbol=t.symbol,this.modifiers=t.modifiers;for(var i=0;i<t.preactions.length;i++)this.preactions[i]=new r(this,t.preactions[i].raw);for(i=0;i<t.postactions.length;i++);for(i=0;i<this.preactions.length;i++)0===this.preactions[i].type&&this.postactions.push(this.preactions[i].createUndo());for(i=0;i<this.preactions.length;i++)this.preactions[i].activate();this.finishedText=this.raw;var o=this.grammar.selectRule(this.symbol,this,this.errors);this.expandChildren(o,e);for(i=0;i<this.modifiers.length;i++){var a=this.modifiers[i],s=[];if(a.indexOf("(")>0){var l=/\(([^)]+)\)/.exec(this.modifiers[i]);if(!l||l.length<2);else{s=l[1].split(",");a=this.modifiers[i].substring(0,a.indexOf("("))}}var c=this.grammar.modifiers[a];c?this.finishedText=c(this.finishedText,s):(this.errors.push("Missing modifier "+a),this.finishedText+="((."+a+"))")}for(i=0;i<this.postactions.length;i++)this.postactions[i].activate();break;case 2:this.action=new r(this,this.raw),this.action.activate(),this.finishedText=""}},t.prototype.clearEscapeChars=function(){this.finishedText=this.finishedText.replace(/\\\\/g,"DOUBLEBACKSLASH").replace(/\\/g,"").replace(/DOUBLEBACKSLASH/g,"\\")},r.prototype.createUndo=function(){return 0===this.type?new r(this.node,this.target+":POP"):null},r.prototype.activate=function(){var e=this.node.grammar;switch(this.type){case 0:this.ruleSections=this.rule.split(","),this.finishedRules=[],this.ruleNodes=[];for(var n=0;n<this.ruleSections.length;n++){var r=new t(e,0,{type:-1,raw:this.ruleSections[n]});r.expand(),this.finishedRules.push(r.finishedText)}e.pushRules(this.target,this.finishedRules,this);break;case 1:e.popRules(this.target);break;case 2:e.flatten(this.target,!0)}},r.prototype.toText=function(){switch(this.type){case 0:return this.target+":"+this.rule;case 1:return this.target+":POP";case 2:return"((some function))";default:return"((Unknown Action))"}},i.prototype.selectRule=function(t){if(this.conditionalRule){var n=this.grammar.expand(this.conditionalRule,!0);if(this.conditionalValues[n])if(null!=(i=this.conditionalValues[n].selectRule(t)))return i}if(this.ranking)for(var r=0;r<this.ranking.length;r++){var i;if(null!=(i=this.ranking.selectRule()))return i}if(void 0!==this.defaultRules){var o=0,a=this.distribution;switch(a||(a=this.grammar.distribution),a){case"shuffle":this.shuffledDeck&&0!==this.shuffledDeck.length||(this.shuffledDeck=function(t,n){var r,i,o=t.length;for(;0!==o;)i=Math.floor(e()*o),r=t[o-=1],t[o]=t[i],t[i]=r;return t}(Array.apply(null,{length:this.defaultRules.length}).map(Number.call,Number),this.falloff)),o=this.shuffledDeck.pop();break;case"weighted":t.push("Weighted distribution not yet implemented");break;case"falloff":t.push("Falloff distribution not yet implemented");break;default:o=Math.floor(Math.pow(e(),this.falloff)*this.defaultRules.length)}return this.defaultUses||(this.defaultUses=[]),this.defaultUses[o]=++this.defaultUses[o]||1,this.defaultRules[o]}return t.push("No default rules defined for "+this),null},i.prototype.clearState=function(){this.defaultUses&&(this.defaultUses=[])};var o=function(e,t,n){this.key=t,this.grammar=e,this.rawRules=n,this.baseRules=new i(this.grammar,n),this.clearState()};o.prototype.clearState=function(){this.stack=[this.baseRules],this.uses=[],this.baseRules.clearState()},o.prototype.pushRules=function(e){var t=new i(this.grammar,e);this.stack.push(t)},o.prototype.popRules=function(){this.stack.pop()},o.prototype.selectRule=function(e,t){return this.uses.push({node:e}),0===this.stack.length?(t.push("The rule stack for '"+this.key+"' is empty, too many pops?"),"(("+this.key+"))"):this.stack[this.stack.length-1].selectRule()},o.prototype.getActiveRules=function(){return 0===this.stack.length?null:this.stack[this.stack.length-1].selectRule()},o.prototype.rulesToJSON=function(){return JSON.stringify(this.rawRules)};var a=function(e,t){this.modifiers={},this.loadFromRawObj(e)};return a.prototype.clearState=function(){for(var e=Object.keys(this.symbols),t=0;t<e.length;t++)this.symbols[e[t]].clearState()},a.prototype.addModifiers=function(e){for(var t in e)e.hasOwnProperty(t)&&(this.modifiers[t]=e[t])},a.prototype.loadFromRawObj=function(e){if(this.raw=e,this.symbols={},this.subgrammars=[],this.raw)for(var t in this.raw)this.raw.hasOwnProperty(t)&&(this.symbols[t]=new o(this,t,this.raw[t]))},a.prototype.createRoot=function(e){return new t(this,0,{type:-1,raw:e})},a.prototype.expand=function(e,t){var n=this.createRoot(e);return n.expand(),t||n.clearEscapeChars(),n},a.prototype.flatten=function(e,t){return this.expand(e,t).finishedText},a.prototype.toJSON=function(){for(var e=Object.keys(this.symbols),t=[],n=0;n<e.length;n++){var r=e[n];t.push(' "'+r+'" : '+this.symbols[r].rulesToJSON())}return"{\n"+t.join(",\n")+"\n}"},a.prototype.pushRules=function(e,t,n){void 0===this.symbols[e]?(this.symbols[e]=new o(this,e,t),n&&(this.symbols[e].isDynamic=!0)):this.symbols[e].pushRules(t)},a.prototype.popRules=function(e){this.symbols[e]||this.errors.push("Can't pop: no symbol for key "+e),this.symbols[e].popRules()},a.prototype.selectRule=function(e,t,n){if(this.symbols[e])return this.symbols[e].selectRule(t,n);for(var r=0;r<this.subgrammars.length;r++)if(this.subgrammars[r].symbols[e])return this.subgrammars[r].symbols[e].selectRule();return n.push("No symbol for '"+e+"'"),"(("+e+"))"},(n={createGrammar:function(e){return new a(e)},parseTag:function(e){for(var t={symbol:void 0,preactions:[],postactions:[],modifiers:[]}
9,r=n.parse(e),i=void 0,o=0;o<r.length;o++)if(0===r[o].type){if(void 0!==i)throw"multiple main sections in "+e;i=r[o].raw}else t.preactions.push(r[o]);if(void 0===i);else{var a=i.split(".");t.symbol=a[0],t.modifiers=a.slice(1)}return t},parse:function(e){var t=0,n=!1,r=[],i=!1,o=[],a=0,s="",l=void 0;if(null===e)return(r=[]).errors=o,r;function c(t,n,i){var a;n-t<1&&(1===i&&o.push(t+": empty tag"),2===i&&o.push(t+": empty action")),a=void 0!==l?s+"\\"+e.substring(l+1,n):e.substring(t,n),r.push({type:i,raw:a}),l=void 0,s=""}for(var u=0;u<e.length;u++){if(i)i=!1;else switch(e.charAt(u)){case"[":0!==t||n||(a<u&&c(a,u,0),a=u+1),t++;break;case"]":0!==--t||n||(c(a,u,2),a=u+1);break;case"#":0===t&&(n?(c(a,u,1),a=u+1):(a<u&&c(a,u,0),a=u+1),n=!n);break;case"\\":i=!0,s+=e.substring(a,u),a=u+1,l=u}}return a<e.length&&c(a,e.length,0),n&&o.push("Unclosed tag"),t>0&&o.push("Too many ["),t<0&&o.push("Too many ]"),(r=r.filter((function(e){return 0!==e.type||0!==e.raw.length}))).errors=o,r}}).TraceryNode=t,n.Grammar=a,n.Symbol=o,n.RuleSet=i,n.setRng=function(t){e=t},n}();e.exports=n},function(e,t){t.DEFAULT_COMPARATOR=function(e,t){return e<t?-1:e>t?1:0},t.DEFAULT_REVERSE_COMPARATOR=function(e,t){return e<t?1:e>t?-1:0},t.reverseComparator=function(e){return function(t,n){return e(n,t)}},t.createTupleComparator=function(e){return 2===e?function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:e[1]<t[1]?-1:e[1]>t[1]?1:0}:function(t,n){for(var r=0;r<e;){if(t[r]<n[r])return-1;if(t[r]>n[r])return 1;r++}return 0}}},function(e,t,n){"use strict";e.exports=()=>{const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="ethers/5.4.7"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="bignumber/5.4.2"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="hash/5.4.0"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="json-wallets/5.4.0"},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return w}));var r=n(46),i=n.n(r),o=n(12),a=n(3),s=n(13),l=n(304),c=n(33),u=n(4),f=n(5),d=n(80),h=n(14);const p=new f.b(d.a);class m extends u.a{isCrowdsaleAccount(e){return!(!e||!e._isCrowdsaleAccount)}}function g(e,t){const n=JSON.parse(e);t=Object(h.a)(t);const r=Object(o.a)(Object(h.c)(n,"ethaddr")),u=Object(h.b)(Object(h.c)(n,"encseed"));u&&u.length%16==0||p.throwArgumentError("invalid encseed","json",e);const f=Object(a.a)(Object(l.a)(t,t,2e3,32,"sha256")).slice(0,16),d=u.slice(0,16),g=u.slice(16),v=new i.a.ModeOfOperation.cbc(f,d),y=i.a.padding.pkcs7.strip(Object(a.a)(v.decrypt(g)));let b="";for(let e=0;e<y.length;e++)b+=String.fromCharCode(y[e]);const w=Object(c.f)(b),E=Object(s.a)(w);return new m({_isCrowdsaleAccount:!0,address:r,privateKey:E})}var v=n(54),y=n(61);function b(e,t,n){if(Object(v.b)(e)){n&&n(0);const r=g(e,t);return n&&n(1),Promise.resolve(r)}return Object(v.c)(e)?Object(y.a)(e,t,n):Promise.reject(new Error("invalid JSON wallet"))}function w(e,t){if(Object(v.b)(e))return g(e,t);if(Object(v.c)(e))return Object(y.b)(e,t);throw new Error("invalid JSON wallet")}},function(e,t,n){"use strict";(function(t){!function(n){function r(e){const t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);let n=1779033703,r=3144134277,i=1013904242,o=2773480762,a=1359893119,s=2600822924,l=528734635,c=1541459225;const u=new Uint32Array(64);function f(e){let f=0,d=e.length;for(;d>=64;){let h,p,m,g,v,y=n,b=r,w=i,E=o,k=a,x=s,S=l,_=c;for(p=0;p<16;p++)m=f+4*p,u[p]=(255&e[m])<<24|(255&e[m+1])<<16|(255&e[m+2])<<8|255&e[m+3];for(p=16;p<64;p++)h=u[p-2],g=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,h=u[p-15],v=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,u[p]=(g+u[p-7]|0)+(v+u[p-16]|0)|0;for(p=0;p<64;p++)g=(((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&x^~k&S)|0)+(_+(t[p]+u[p]|0)|0)|0,v=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&b^y&w^b&w)|0,_=S,S=x,x=k,k=E+g|0,E=w,w=b,b=y,y=g+v|0;n=n+y|0,r=r+b|0,i=i+w|0,o=o+E|0,a=a+k|0,s=s+x|0,l=l+S|0,c=c+_|0,f+=64,d-=64}}f(e);let d,h=e.length%64,p=e.length/536870912|0,m=e.length<<3,g=h<56?56:120,v=e.slice(e.length-h,e.length);for(v.push(128),d=h+1;d<g;d++)v.push(0);return v.push(p>>>24&255),v.push(p>>>16&255),v.push(p>>>8&255),v.push(p>>>0&255),v.push(m>>>24&255),v.push(m>>>16&255),v.push(m>>>8&255),v.push(m>>>0&255),f(v),[n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,l>>>24&255,l>>>16&255,l>>>8&255,l>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255]}function i(e,t,n){e=e.length<=64?e:r(e);const i=64+t.length+4,o=new Array(i),a=new Array(64);let s,l=[];for(s=0;s<64;s++)o[s]=54;
9for(s=0;s<e.length;s++)o[s]^=e[s];for(s=0;s<t.length;s++)o[64+s]=t[s];for(s=i-4;s<i;s++)o[s]=0;for(s=0;s<64;s++)a[s]=92;for(s=0;s<e.length;s++)a[s]^=e[s];function c(){for(let e=i-1;e>=i-4;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;n>=32;)c(),l=l.concat(r(a.concat(r(o)))),n-=32;return n>0&&(c(),l=l.concat(r(a.concat(r(o))).slice(0,n))),l}function o(e,t,n,r,i){let o;for(c(e,16*(2*n-1),i,0,16),o=0;o<2*n;o++)l(e,16*o,i,16),s(i,r),c(i,0,e,t+16*o,16);for(o=0;o<n;o++)c(e,t+2*o*16,e,16*o,16);for(o=0;o<n;o++)c(e,t+16*(2*o+1),e,16*(o+n),16)}function a(e,t){return e<<t|e>>>32-t}function s(e,t){c(e,0,t,0,16);for(let e=8;e>0;e-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18);for(let n=0;n<16;++n)e[n]+=t[n]}function l(e,t,n,r){for(let i=0;i<r;i++)n[i]^=e[t+i]}function c(e,t,n,r,i){for(;i--;)n[r++]=e[t++]}function u(e){if(!e||"number"!=typeof e.length)return!1;for(let t=0;t<e.length;t++){const n=e[t];if("number"!=typeof n||n%1||n<0||n>=256)return!1}return!0}function f(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function d(e,n,r,a,s,d,h){if(r=f(r,"N"),a=f(a,"r"),s=f(s,"p"),d=f(d,"dkLen"),0===r||0!=(r&r-1))throw new Error("N must be power of 2");if(r>2147483647/128/a)throw new Error("N too large");if(a>2147483647/128/s)throw new Error("r too large");if(!u(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!u(n))throw new Error("salt must be an array or buffer");n=Array.prototype.slice.call(n);let p=i(e,n,128*s*a);const m=new Uint32Array(32*s*a);for(let e=0;e<m.length;e++){const t=4*e;m[e]=(255&p[t+3])<<24|(255&p[t+2])<<16|(255&p[t+1])<<8|(255&p[t+0])<<0}const g=new Uint32Array(64*a),v=new Uint32Array(32*a*r),y=32*a,b=new Uint32Array(16),w=new Uint32Array(16),E=s*r*2;let k,x,S=0,_=null,A=!1,C=0,T=0;const P=h?parseInt(1e3/a):4294967295,O=void 0!==t?t:setTimeout,M=function(){if(A)return h(new Error("cancelled"),S/E);let t;switch(C){case 0:x=32*T*a,c(m,x,g,0,y),C=1,k=0;case 1:t=r-k,t>P&&(t=P);for(let e=0;e<t;e++)c(g,0,v,(k+e)*y,y),o(g,y,a,b,w);if(k+=t,S+=t,h){const e=parseInt(1e3*S/E);if(e!==_){if(A=h(null,S/E),A)break;_=e}}if(k<r)break;k=0,C=2;case 2:t=r-k,t>P&&(t=P);for(let e=0;e<t;e++){const e=g[16*(2*a-1)]&r-1;l(v,e*y,g,y),o(g,y,a,b,w)}if(k+=t,S+=t,h){const e=parseInt(1e3*S/E);if(e!==_){if(A=h(null,S/E),A)break;_=e}}if(k<r)break;if(c(g,0,m,x,y),T++,T<s){C=0;break}p=[];for(let e=0;e<m.length;e++)p.push(m[e]>>0&255),p.push(m[e]>>8&255),p.push(m[e]>>16&255),p.push(m[e]>>24&255);const n=i(e,p,d);return h&&h(null,1,n),n}h&&O(M)};if(!h)for(;;){const e=M();if(null!=e)return e}M()}const h={scrypt:function(e,t,n,r,i,o,a){return new Promise((function(s,l){let c=0;a&&a(0),d(e,t,n,r,i,o,(function(e,t,n){if(e)l(e);else if(n)a&&1!==c&&a(1),s(new Uint8Array(n));else if(a&&t!==c)return c=t,a(t)}))}))},syncScrypt:function(e,t,n,r,i,o){return new Uint8Array(d(e,t,n,r,i,o))}};e.exports=h}()}).call(this,n(120).setImmediate)},function(e,t,n){"use strict";var r=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e)return!1;if(e.length>254)return!1;if(!r.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some((function(e){return e.length>63}))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(3),i=n(5),o=n(142);const a=new i.b(o.a);let s=null;try{if(s=window,null==s)throw new Error("try next")}catch(t){try{if(s=e,null==s)throw new Error("try next")}catch(e){s={}}}let l=s.crypto||s.msCrypto;function c(e){(e<=0||e>1024||e%1)&&a.throwArgumentError("invalid length","length",e);const t=new Uint8Array(e);return l.getRandomValues(t),Object(r.a)(t)}l&&l.getRandomValues||(a.warn("WARNING: Missing strong random number source"),l={getRandomValues:function(e){return a.throwError("no secure random source avaialble",i.b.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})}).call(this,n(37))},,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,f=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&h())}function h(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++f<t;)l&&l[f].run();f=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);
9if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThrottledConcurrentQueue=void 0;const i=r(n(113)),o=r(n(76));t.ThrottledConcurrentQueue=class{constructor(e){var t;if(this.taskQueue=[],this.concurrency=0,this.invocationIntervalMs=e.invocationIntervalMs,this.maxConcurrency=null!==(t=e.maxConcurrency)&&void 0!==t?t:Number.POSITIVE_INFINITY,this.executionTimestamps=new i.default(Array,e.maxInvocationsPerIntervalMs),e.maxInvocationsPerIntervalMs<=0)throw new Error("must allow at least one invocation per interval");if(this.invocationIntervalMs<=0)throw new Error("invocation interval must be positive");if(this.maxConcurrency<=0)throw new Error("max concurrency must be positive")}add(e){const{resolve:t,reject:n,promise:r}=(0,o.default)();return this.taskQueue.unshift({resolve:t,reject:n,start:e}),setTimeout(()=>{this.executeNextTasks()},0),r}size(){return this.taskQueue.length}async executeNextTasks(){this.deleteOutdatedExecutionTimestamps();const e=Math.min(this.throttleQuotaRemaining(),this.concurrencyQuotaRemaining(),this.taskQueue.length);for(let t=0;t<e;t++)this.next().then(this.executeNextTasks.bind(this));const t=this.nextPossibleExecution();this.taskQueue.length>0&&t&&(this.executionTimeout&&clearTimeout(this.executionTimeout),this.executionTimeout=setTimeout(this.executeNextTasks.bind(this),t))}nextPossibleExecution(){const e=this.executionTimestamps.peekFirst();if(e&&0!==this.concurrencyQuotaRemaining())return Date.now()-e+this.invocationIntervalMs}concurrencyQuotaRemaining(){return this.maxConcurrency-this.concurrency}throttleQuotaRemaining(){return this.executionTimestamps.capacity-this.executionTimestamps.size}deleteOutdatedExecutionTimestamps(){const e=Date.now();let t=this.executionTimestamps.peekFirst();for(;t&&t<e-this.invocationIntervalMs;)this.executionTimestamps.shift(),t=this.executionTimestamps.peekFirst()}async next(){const e=this.taskQueue.pop();if(e){this.executionTimestamps.push(Date.now()),this.concurrency++;try{e.resolve(await e.start())}catch(t){e.reject(t)}this.concurrency--}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(3);function i(e){e=atob(e);const t=[];for(let n=0;n<e.length;n++)t.push(e.charCodeAt(n));return Object(r.a)(t)}function o(e){e=Object(r.a)(e);let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}},function(e,t,n){"use strict";n.r(t);var r=n(90);n.d(t,"decode",(function(){return r.a})),n.d(t,"encode",(function(){return r.b}))},function(e,t,n){var r=n(23),i=n(75),o=n(47),a=i.DEFAULT_COMPARATOR,s=i.reverseComparator;function l(e,t,n,r){for(var i,o,a=t[r];r>n&&e(a,o=t[i=r-1>>1])<0;)t[r]=o,r=i;t[r]=a}function c(e,t,n){for(var r,i=t.length,o=n,a=t[n],s=2*n+1;s<i;)(r=s+1)<i&&e(t[s],t[r])>=0&&(s=r),t[n]=t[s],s=2*(n=s)+1;t[n]=a,l(e,t,o,n)}function u(e,t,n){t.push(n),l(e,t,0,t.length-1)}function f(e,t){var n=t.pop();if(0!==t.length){var r=t[0];return t[0]=n,c(e,t,0),r}return n}function d(e,t,n){if(0===t.length)throw new Error("mnemonist/heap.replace: cannot pop an empty heap.");var r=t[0];return t[0]=n,c(e,t,0),r}function h(e,t,n){var r;return 0!==t.length&&e(t[0],n)<0&&(r=t[0],t[0]=n,n=r,c(e,t,0)),n}function p(e,t){for(var n=t.length>>1;--n>=0;)c(e,t,n)}function m(e,t){for(var n=t.length,r=0,i=new Array(n);r<n;)i[r++]=f(e,t);return i}function g(e){if(this.clear(),this.comparator=e||a,"function"!=typeof this.comparator)throw new Error("mnemonist/Heap.constructor: given comparator should be a function.")}function v(e){if(this.clear(),this.comparator=e||a,"function"!=typeof this.comparator)throw new Error("mnemonist/MaxHeap.constructor: given comparator should be a function.");this.comparator=s(this.comparator)}g.prototype.clear=function(){this.items=[],this.size=0},g.prototype.push=function(e){return u(this.comparator,this.items,e),++this.size},g.prototype.peek=function(){return this.items[0]},g.prototype.pop=function(){return 0!==this.size&&this.size--,f(this.comparator,this.items)},g.prototype.replace=function(e){return d(this.comparator,this.items,e)},g.prototype.pushpop=function(e){return h(this.comparator,this.items,e)},g.prototype.consume=function(){return this.size=0,m(this.comparator,this.items)},g.prototype.toArray=function(){return m(this.comparator,this.items.slice())},g.prototype.inspect=function(){var e=this.toArray();return Object.defineProperty(e,"constructor",{value:g,enumerable:!1}),e},"undefined"!=typeof Symbol&&(g.prototype[Symbol.for("nodejs.util.inspect.custom")]=g.prototype.inspect),v.prototype=g.prototype,g.from=function(e,t){var n,r=new g(t);return n=o.isArrayLike(e)?e.slice():o.toArray(e),p(r.comparator,n),r.items=n,r.size=n.length,r},v.from=function(e,t){var n,r=new v(t);return n=o.isArrayLike(e)?e.slice():o.toArray(e),p(r.comparator,n),r.items=n,r.size=n.length,r},g.siftUp=c,g.siftDown=l,g.push=u,g.pop=f,g.replace=d,g.pushpop=h,g.heapify=p,g.consume=m,g.nsmallest=function(e,t,n){2===arguments.length&&(n=t,t=e,e=a);var i,l,c,u,f=s(e),h=1/0;
9if(1===t){if(o.isArrayLike(n)){for(i=0,l=n.length;i<l;i++)c=n[i],(h===1/0||e(c,h)<0)&&(h=c);return(u=new n.constructor(1))[0]=h,u}return r(n,(function(t){(h===1/0||e(t,h)<0)&&(h=t)})),[h]}if(o.isArrayLike(n)){if(t>=n.length)return n.slice().sort(e);for(u=n.slice(0,t),p(f,u),i=t,l=n.length;i<l;i++)f(n[i],u[0])>0&&d(f,u,n[i]);return u.sort(e)}var m=o.guessLength(n);return null!==m&&m<t&&(t=m),u=new Array(t),i=0,r(n,(function(e){i<t?u[i]=e:(i===t&&p(f,u),f(e,u[0])>0&&d(f,u,e)),i++})),u.length>i&&(u.length=i),u.sort(e)},g.nlargest=function(e,t,n){2===arguments.length&&(n=t,t=e,e=a);var i,l,c,u,f=s(e),h=-1/0;if(1===t){if(o.isArrayLike(n)){for(i=0,l=n.length;i<l;i++)c=n[i],(h===-1/0||e(c,h)>0)&&(h=c);return(u=new n.constructor(1))[0]=h,u}return r(n,(function(t){(h===-1/0||e(t,h)>0)&&(h=t)})),[h]}if(o.isArrayLike(n)){if(t>=n.length)return n.slice().sort(f);for(u=n.slice(0,t),p(e,u),i=t,l=n.length;i<l;i++)e(n[i],u[0])>0&&d(e,u,n[i]);return u.sort(f)}var m=o.guessLength(n);return null!==m&&m<t&&(t=m),u=new Array(t),i=0,r(n,(function(n){i<t?u[i]=n:(i===t&&p(e,u),e(n,u[0])>0&&d(e,u,n)),i++})),u.length>i&&(u.length=i),u.sort(f)},g.MinHeap=g,g.MaxHeap=v,e.exports=g},function(e,t,n){var r=n(75),i=n(92),o=r.DEFAULT_COMPARATOR,a=r.reverseComparator;function s(e,t,n,r){for(var o,a=n,s=r,l=t[r],c=2*r+1;c<a;)(o=c+1)<a&&e(t[c],t[o])>=0&&(c=o),t[r]=t[c],c=2*(r=c)+1;t[r]=l,i.siftDown(e,t,s,r)}function l(e,t,n,r){for(var i,o,a=r,l=new e(r);a>0;)i=n[--a],0!==a&&(o=n[0],n[0]=i,s(t,n,--r,0),i=o),l[a]=i;return l}function c(e,t,n){if(2===arguments.length&&(n=t,t=null),this.ArrayClass=e,this.capacity=n,this.items=new e(n),this.clear(),this.comparator=t||o,"number"!=typeof n&&n<=0)throw new Error("mnemonist/FixedReverseHeap.constructor: capacity should be a number > 0.");if("function"!=typeof this.comparator)throw new Error("mnemonist/FixedReverseHeap.constructor: given comparator should be a function.");this.comparator=a(this.comparator)}c.prototype.clear=function(){this.size=0},c.prototype.push=function(e){return this.size<this.capacity?(this.items[this.size]=e,i.siftDown(this.comparator,this.items,0,this.size),this.size++):this.comparator(e,this.items[0])>0&&i.replace(this.comparator,this.items,e),this.size},c.prototype.peek=function(){return this.items[0]},c.prototype.consume=function(){var e=l(this.ArrayClass,this.comparator,this.items,this.size);return this.size=0,e},c.prototype.toArray=function(){return l(this.ArrayClass,this.comparator,this.items.slice(0,this.size),this.size)},c.prototype.inspect=function(){var e=this.toArray();return Object.defineProperty(e,"constructor",{value:c,enumerable:!1}),e},"undefined"!=typeof Symbol&&(c.prototype[Symbol.for("nodejs.util.inspect.custom")]=c.prototype.inspect),e.exports=c},function(e,t,n){"use strict";n.r(t),t.default=n.p+"reveal.wasm"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"reveal.zkey"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"init.wasm"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"init.zkey"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"move.wasm"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"move.zkey"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"biomebase.wasm"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"biomebase.zkey"},function(e,t,n){"use strict";for(var r="qpzry9x8gf2tvdw0s3jn54khce6mua7l",i={},o=0;o<r.length;o++){var a=r.charAt(o);if(void 0!==i[a])throw new TypeError(a+" is ambiguous");i[a]=o}function s(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function l(e){for(var t=1,n=0;n<e.length;++n){var r=e.charCodeAt(n);if(r<33||r>126)return"Invalid prefix ("+e+")";t=s(t)^r>>5}for(t=s(t),n=0;n<e.length;++n){var i=e.charCodeAt(n);t=s(t)^31&i}return t}function c(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),r=e.toUpperCase();if(e!==n&&e!==r)return"Mixed-case string "+e;var o=(e=n).lastIndexOf("1");if(-1===o)return"No separator character for "+e;if(0===o)return"Missing prefix for "+e;var a=e.slice(0,o),c=e.slice(o+1);if(c.length<6)return"Data too short";var u=l(a);if("string"==typeof u)return u;for(var f=[],d=0;d<c.length;++d){var h=c.charAt(d),p=i[h];if(void 0===p)return"Unknown character "+h;u=s(u)^p,d+6>=c.length||f.push(p)}return 1!==u?"Invalid checksum for "+e:{prefix:a,words:f}}function u(e,t,n,r){for(var i=0,o=0,a=(1<<n)-1,s=[],l=0;l<e.length;++l)for(i=i<<t|e[l],o+=t;o>=n;)o-=n,s.push(i>
9>o&a);if(r)o>0&&s.push(i<<n-o&a);else{if(o>=t)return"Excess padding";if(i<<n-o&a)return"Non-zero padding"}return s}e.exports={decodeUnsafe:function(){var e=c.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=c.apply(null,arguments);if("object"==typeof t)return t;throw new Error(t)},encode:function(e,t,n){if(n=n||90,e.length+7+t.length>n)throw new TypeError("Exceeds length limit");var i=l(e=e.toLowerCase());if("string"==typeof i)throw new Error(i);for(var o=e+"1",a=0;a<t.length;++a){var c=t[a];if(c>>5!=0)throw new Error("Non 5-bit word");i=s(i)^c,o+=r.charAt(c)}for(a=0;a<6;++a)i=s(i);for(i^=1,a=0;a<6;++a){o+=r.charAt(i>>5*(5-a)&31)}return o},toWordsUnsafe:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},function(e,t,n){var r=n(92),i=n(127),o=n(239);e.exports={BiMap:n(240),BitSet:n(241),BitVector:n(242),BloomFilter:n(243),BKTree:n(245),CircularBuffer:n(113),DefaultMap:n(246),DefaultWeakMap:n(247),FixedDeque:n(114),StaticDisjointSet:n(248),FibonacciHeap:i,MinFibonacciHeap:i.MinFibonacciHeap,MaxFibonacciHeap:i.MaxFibonacciHeap,FixedReverseHeap:n(93),FuzzyMap:n(249),FuzzyMultiMap:n(250),HashedArrayTree:n(251),Heap:r,MinHeap:r.MinHeap,MaxHeap:r.MaxHeap,StaticIntervalTree:n(252),InvertedIndex:n(253),KDTree:n(255),LinkedList:n(256),LRUCache:n(133),LRUMap:n(257),MultiMap:n(129),MultiSet:n(258),PassjoinIndex:n(259),Queue:n(260),FixedStack:n(130),Stack:n(261),SuffixArray:o,GeneralizedSuffixArray:o.GeneralizedSuffixArray,Set:n(262),SparseQueueSet:n(263),SparseMap:n(264),SparseSet:n(265),SymSpell:n(266),Trie:n(267),TrieMap:n(134),Vector:n(268),VPTree:n(269)}},function(e,t,n){(function(t){var n=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(o=i.util.objId(t),n[o])return n[o];for(var a in r={},n[o]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return o=i.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||i.languages)[e],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=o[s])}var c=r[e];return r[e]=a,i.languages.DFS(i.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,o){o=o||{};var a=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],c=i.util.type(l);"Object"!==c||o[a(l)]?"Array"!==c||o[a(l)]||(o[a(l)]=!0,e(l,n,s,o)):(o[a(l)]=!0,e(l,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(n,r,o){var a=i.util.getLanguage(n),s=i.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var l=n.parentElement;
vendor: 4,512 bytes, lines 9-12
9l&&"pre"===l.nodeName.toLowerCase()&&(l.className=l.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var c={element:n,language:a,grammar:s,code:n.textContent};function u(e){c.highlightedCode=e,i.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,i.hooks.run("after-highlight",c),i.hooks.run("complete",c),o&&o.call(c.element)}if(i.hooks.run("before-sanity-check",c),(l=c.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!c.code)return i.hooks.run("complete",c),void(o&&o.call(c.element));if(i.hooks.run("before-highlight",c),c.grammar)if(r&&e.Worker){var f=new Worker(i.filename);f.onmessage=function(e){u(e.data)},f.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else u(i.highlight(c.code,c.grammar,c.language));else u(i.util.encode(c.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return i.hooks.run("before-tokenize",r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var u=new s;return l(u,u.head,e),function e(t,n,r,s,u,f){for(var d in r)if(r.hasOwnProperty(d)&&r[d]){var h=r[d];h=Array.isArray(h)?h:[h];for(var p=0;p<h.length;++p){if(f&&f.cause==d+","+p)return;var m=h[p],g=m.inside,v=!!m.lookbehind,y=!!m.greedy,b=m.alias;if(y&&!m.pattern.global){var w=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,w+"g")}for(var E=m.pattern||m,k=s.next,x=u;k!==n.tail&&!(f&&x>=f.reach);x+=k.value.length,k=k.next){var S=k.value;if(n.length>t.length)return;if(!(S instanceof o)){var _,A=1;if(y){if(!(_=a(E,x,t,v)))break;var C=_.index,T=_.index+_[0].length,P=x;for(P+=k.value.length;C>=P;)k=k.next,P+=k.value.length;if(P-=k.value.length,x=P,k.value instanceof o)continue;for(var O=k;O!==n.tail&&(P<T||"string"==typeof O.value);O=O.next)A++,P+=O.value.length;A--,S=t.slice(x,P),_.index-=x}else if(!(_=a(E,0,S,v)))continue;C=_.index;var M=_[0],I=S.slice(0,C),R=S.slice(C+M.length),L=x+S.length;f&&L>f.reach&&(f.reach=L);var N=k.prev;I&&(N=l(n,N,I),x+=I.length),c(n,N,A);var j=new o(d,g?i.tokenize(M,g):M,b,M);if(k=l(n,N,j),R&&l(n,k,R),A>1){var B={cause:d+","+p,reach:L};e(t,n,r,k.prev,x,B),f&&B.reach>f.reach&&(f.reach=B.reach)}}}}}}(e,u,t,u.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(u)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function c(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()}),!1),i):i;var u=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(u&&(i.filename=u.src,u.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var d=document.readyState;"loading"===d||"interactive"===d&&u&&u.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
10/**
11 * Prism: Lightweight, robust, elegant syntax highlighting
12 *
13 * @license MIT <https://opensource.org/licenses/MIT>
14 * @author Lea Verou <https://lea.verou.me>
15 * @namespace
16 * @public
17 */e.exports&&(e.exports=n),void 0!==t&&(t.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(e,t){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}
vendor: 4,338 bytes, line 17
17],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?
17:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(void 0!==n&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',r=/\blang(?:uage)?-([\w-]+)\b/i;n.hooks.add("before-highlightall",(function(e){e.selector+=", "+t})),n.hooks.add("before-sanity-check",(function(r){var i=r.element;if(i.matches(t)){r.code="",i.setAttribute("data-src-status","loading");var a=i.appendChild(document.createElement("CODE"));a.textContent="Loading…";var s=i.getAttribute("data-src"),l=r.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}o(a,l),o(i,l);var u=n.plugins.autoloader;u&&u.loadLanguages(l);var f=new XMLHttpRequest;f.open("GET",s,!0),f.onreadystatechange=function(){var e,t;4==f.readyState&&(f.status<400&&f.responseText?(i.setAttribute("data-src-status","loaded"),a.textContent=f.responseText,n.highlightElement(a)):(i.setAttribute("data-src-status","failed"),f.status>=400?a.textContent=(e=f.status,t=f.statusText,"✖ Error "+e+" while fetching file: "+t):a.textContent="✖ Error: File does not exist or is empty"))},f.send(null)}})),n.plugins.fileHighlight={highlight:function(e){for(var r,i=(e||document).querySelectorAll(t),o=0;r=i[o++];)n.highlightElement(r)}};var i=!1;n.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}function o(e,t){var n=e.className;n=n.replace(r," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}).call(this,n(37))},function(e,t,n){var r=n(281);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],d=n[1],h=n.index;if(s+=e.slice(a,h),a=h+f.length,d)s+=d[1];else{var p=e[a],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var E=null!=m&&null!=p&&p!==m,k="+"===b||"*"===b,x="?"===b||"*"===b,S=n[2]||u,_=v||y;r.push({name:g||o++,prefix:m||"",delimiter:S,optional:x,repeat:k,partial:E,asterisk:!!w,pattern:_?c(_):w?".*":"[^"+l(S)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",s=t||{},l=(i||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var f,d=s[u.name];if(null==d){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=l(d[h]),!n[c].test(f))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===h?u.prefix:u.delimiter)+f}}else{if(f=u.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(d),!n[c].test(f))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+f+'"');o+=u.prefix+f}}else o+=u}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)a+=l(c);else{var d=l(c.prefix),h="(?:"+c.pattern+")";t.push(c),c.repeat&&(h+="(?:"+d+h+")*"),a+=h=c.optional?c.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}var p=l(n.delimiter||"/"),m=a.slice(-p.length)===p;
vendor: 4,878 bytes, lines 17-21
17return i||(a=(m?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+p+"|$)",u(new RegExp("^"+a,f(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(o(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=i},,function(e,t,n){"use strict";
18/*
19object-assign
20(c) Sindre Sorhus
21@license MIT
vendor: 5,135 bytes, line 22
22*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))i.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(l[s[f]]=n[s[f]])}}return l}},function(e,t,n){var r=n(198),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:l}),Object.defineProperty(a[s],"labels",{value:c})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a;return s===a?t=0:r===s?t=(i-o)/l:i===s?t=2+(o-r)/l:o===s&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),f=function(e){return(c-e)/6/u+.5};return 0===u?i=o=0:(o=u/c,t=f(a),n=f(s),r=f(l),a===c?i=r-n:s===c?i=1/3+t-r:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o,a,s=1/0;for(var l in r)if(r.hasOwnProperty(l)){var c=r[l],u=(o=e,a=c,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));u<s&&(s=u,n=l)}return n},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,i,o,a,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,f=c+u;switch(f>1&&(c/=f,u/=f),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),i=c+r*((n=1-u)-c),t){default:case 6:case 0:o=n,a=i,s=c;break;case 1:o=i,a=n,s=c;break;case 2:o=c,a=n,s=i;break;case 3:o=c,a=i,s=n;break;case 4:o=i,a=c,s=n;break;case 5:o=n,a=c,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;
22return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return t=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,n){var r;
23/**
24 * @license Fraction.js v4.0.12 09/09/2015
25 * http://www.xarg.org/2014/03/rational-numbers-in-javascript/
26 *
27 * Copyright (c) 2015, Robert Eisele ([email protected])
28 * Dual licensed under the MIT or GPL Version 2 licenses.
29 **/function i(){const e=Error.apply(this,arguments);e.name=this.name=name,this.stack=e.stack,this.message=e.message}try{!function(n){"use strict";BigInt||(BigInt=function(e){return e});const o=BigInt(1),a=BigInt(0),s=BigInt(10),l=BigInt(2),c=BigInt(5),u=BigInt(2e3),f={s:o,n:a,d:o};function d(e){function t(){}return t.prototype=Error.prototype,i.prototype=new t,i}const h=b.DivisionByZero=d(),p=b.InvalidParameter=d();function m(e,t){try{e=BigInt(e)}catch(e){throw new p}return e*t}const g=function(e,t){let n=a,r=o,i=o;if(null==e);else if(void 0!==t)n=BigInt(e),r=BigInt(t),i=n*r;else if("object"==typeof e){if("d"in e&&"n"in e)n=BigInt(e.n),r=BigInt(e.d),"s"in e&&(n*=BigInt(e.s));else if(0 in e)n=BigInt(e[0]),1 in e&&(r=BigInt(e[1]));else{if(!(e instanceof BigInt))throw new p;n=BigInt(e)}i=n*r}else if("number"==typeof e){if(isNaN(e))throw new p;if(e<0&&(i=-o,e=-e),e%1==0)n=BigInt(e);else if(e>0){let t=1,i=0,o=1,a=1,s=1,l=1e7;for(e>=1&&(t=10**Math.floor(1+Math.log10(e)),e/=t);o<=l&&s<=l;){let t=(i+a)/(o+s);if(e===t){o+s<=l?(n=i+a,r=o+s):s>o?(n=a,r=s):(n=i,r=o);break}e>t?(i+=a,o+=s):(a+=i,s+=o),o>l?(n=a,r=s):(n=i,r=o)}n=BigInt(n)*BigInt(t),r=BigInt(r)}else isNaN(e)&&(r=n=NaN)}else{if("string"!=typeof e)throw new p;{let t=0,l=a,c=a,u=a,f=o,d=o,h=e.match(/\d+|./g);if(null===h)throw new p;if("-"===h[t]?(i=-o,t++):"+"===h[t]&&t++,h.length===t+1?c=m(h[t++],i):"."===h[t+1]||"."===h[t]?("."!==h[t]&&(l=m(h[t++],i)),t++,(t+1===h.length||"("===h[t+1]&&")"===h[t+3]||"'"
29===h[t+1]&&"'"===h[t+3])&&(c=m(h[t],i),f=s**BigInt(h[t].length),t++),("("===h[t]&&")"===h[t+2]||"'"===h[t]&&"'"===h[t+2])&&(u=m(h[t+1],i),d=s**BigInt(h[t+1].length)-o,t+=3)):"/"===h[t+1]||":"===h[t+1]?(c=m(h[t],i),f=m(h[t+2],o),t+=3):"/"===h[t+3]&&" "===h[t+1]&&(l=m(h[t],i),c=m(h[t+2],i),f=m(h[t+4],o),t+=5),!(h.length<=t))throw new p;r=f*d,i=n=u+r*l+d*c}}if(r===a)throw new h;f.s=i<a?-o:o,f.n=n<a?-n:n,f.d=r<a?-r:r};function v(e,t,n){let r=o,i=function(e,t,n){let r=o;for(;t>a;e=e*e%n,t>>=o)t&o&&(r=r*e%n);return r}(s,n,t);for(let e=0;e<300;e++){if(r===i)return BigInt(e);r=r*s%t,i=i*s%t}return 0}function y(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function b(e,t){if(!(this instanceof b))return new b(e,t);g(e,t),e=y(f.d,f.n),this.s=f.s,this.n=f.n/e|a,this.d=f.d/e|a}b.prototype={s:o,n:a,d:o,abs:function(){return new b(this.n,this.d)},neg:function(){return new b(-this.s*this.n,this.d)},add:function(e,t){return g(e,t),new b(this.s*this.n*f.d+f.s*this.d*f.n,this.d*f.d)},sub:function(e,t){return g(e,t),new b(this.s*this.n*f.d-f.s*this.d*f.n,this.d*f.d)},mul:function(e,t){return g(e,t),new b(this.s*f.s*this.n*f.n,this.d*f.d)},div:function(e,t){return g(e,t),new b(this.s*f.s*this.n*f.d,this.d*f.n)},clone:function(){return new b(this)},mod:function(e,t){return void 0===e?new b(this.s*this.n%this.d,1):(g(e,t),0===f.n&&0===this.d&&b(0,0),new b(this.s*(f.d*this.n)%(f.n*this.d),f.d*this.d))},gcd:function(e,t){return g(e,t),new b(y(f.n,this.n)*y(f.d,this.d),f.d*this.d)},lcm:function(e,t){return g(e,t),f.n===a&&this.n===a?new b:new b(f.n*this.n,y(f.n,this.n)*y(f.d,this.d))},inverse:function(){return new b(this.s*this.d,this.n)},pow:function(e){return e<0?new b((this.s*this.d)**BigInt(-e),this.n**BigInt(-e)):new b((this.s*this.n)**BigInt(+e),this.d**BigInt(+e))},equals:function(e,t){return g(e,t),this.s*this.n*f.d==f.s*f.n*this.d},compare:function(e,t){g(e,t);let n=this.s*this.n*f.d-f.s*f.n*this.d;return(a<n)-(n<a)},ceil:function(e){return e=10**Number(e||0),new b(Math.ceil(e*Number(this.s*this.n)/Number(this.d)),e)},floor:function(e){return e=10**Number(e||0),new b(Math.floor(e*Number(this.s*this.n)/Number(this.d)),e)},round:function(e){return e=10**Number(e||0),new b(Math.round(e*Number(this.s*this.n)/Number(this.d)),e)},divisible:function(e,t){return g(e,t),!(!(f.n*this.d)||this.n*f.d%(f.n*this.d))},valueOf:function(){return Number(this.s*this.n)/Number(this.d)},toString:function(e){let t=this.n,n=this.d;e=e||15;let r=function(e,t){for(;t%l===a;t/=l);for(;t%c===a;t/=c);if(t===o)return a;let n=s%t,r=o;for(;n!==o;r++)if(n=n*s%t,r>u)return a;return r}(0,n),i=v(0,n,r),f=this.s<a?"-":"";if(f+=t/n|a,t%=n,t*=s,t&&(f+="."),r){for(let e=i;e--;)f+=t/n|a,t%=n,t*=s;f+="(";for(let e=r;e--;)f+=t/n|a,t%=n,t*=s;f+=")"}else for(let r=e;t&&r--;)f+=t/n|a,t%=n,t*=s;return f},toFraction:function(e){let t=this.n,n=this.d,r=this.s<a?"-":"";if(n===o)r+=t;else{let i=t/n|a;e&&i>a&&(r+=i,r+=" ",t%=n),r+=t,r+="/",r+=n}return r},toLatex:function(e){let t=this.n,n=this.d,r=this.s<a?"-":"";if(n===o)r+=t;else{let i=t/n|a;e&&i>a&&(r+=i,t%=n),r+="\\frac{",r+=t,r+="}{",r+=n,r+="}"}return r},toContinued:function(){let e=this.n,t=this.d,n=[];do{n.push(e/t|a);let r=e%t;e=t,t=r}while(e!==o);return n},simplify:function(e){let t=this.abs().toContinued();function n(e){return 1===e.length?new b(e[0]):n(e.slice(1)).inverse().add(e[0])}e=e||.001;for(let r=0;r<t.length;r++){let i=n(t.slice(0,r+1));if(i.sub(this.abs()).abs().valueOf()<e)return i.mul(this.s)}return this}},void 0===(r=function(){return{Fraction:b,errorConstructor:i}}.apply(t,[]))||(e.exports=r)}()}catch(e){console.log("Browser does not support BigInt.")}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.perlinRandHash=t.mimcWithRounds=t.modPBigIntNative=t.modPBigInt=t.p=void 0;const i=r(n(8));t.p=(0,i.default)("21888242871839275222246405745257275088548364400416034343698204186575808495617");const o=["0","7120861356467848435263064379192047478074060781135320967663101236819528304084","5024705281721889198577876690145313457398658950011302225525409148828000436681","17980351014018068290387269214713820287804403312720763401943303895585469787384","19886576439381707240399940949310933992335779767309383709787331470398675714258","1213715278223786725806155661738676903520350859678319590331207960381534602599","18162138253399958831050545255414688239130588254891200470934232514682584734511","7667462281466170157858259197976388676420847047604921256361474169980037581876","7207551498477838452286210989212982851118089401128156132319807392460388436957","9864183311657946807255900203841777810810224615118629957816193727554621093838","4798196928559910300796064665904583125427459076060519468052008159779219347957","17387238494588145257484818061490088963673275521250153686214197573695921400950","1000533476193
290299057035055370088813230849810566234116771751925093634136574742","11897542014760736209670863723231849628230383119798486487899539017466261308762","16771780563523793011283273687253985566177232886900511371656074413362142152543","749264854018824809464168489785113337925400687349357088413132714480582918506","3683645737503705042628598550438395339383572464204988015434959428676652575331","7556750851783822914673316211129907782679509728346361368978891584375551186255","20391289379084797414557439284689954098721219201171527383291525676334308303023","18146517657445423462330854383025300323335289319277199154920964274562014376193","8080173465267536232534446836148661251987053305394647905212781979099916615292","10796443006899450245502071131975731672911747129805343722228413358507805531141","5404287610364961067658660283245291234008692303120470305032076412056764726509","4623894483395123520243967718315330178025957095502546813929290333264120223168","16845753148201777192406958674202574751725237939980634861948953189320362207797","4622170486584704769521001011395820886029808520586507873417553166762370293671","16688277490485052681847773549197928630624828392248424077804829676011512392564","11878652861183667748838188993669912629573713271883125458838494308957689090959","2436445725746972287496138382764643208791713986676129260589667864467010129482","1888098689545151571063267806606510032698677328923740058080630641742325067877","148924106504065664829055598316821983869409581623245780505601526786791681102","18875020877782404439294079398043479420415331640996249745272087358069018086569","15189693413320228845990326214136820307649565437237093707846682797649429515840","19669450123472657781282985229369348220906547335081730205028099210442632534079","5521922218264623411380547905210139511350706092570900075727555783240701821773","4144769320246558352780591737261172907511489963810975650573703217887429086546","10097732913112662248360143041019433907849917041759137293018029019134392559350","1720059427972723034107765345743336447947522473310069975142483982753181038321","6302388219880227251325608388535181451187131054211388356563634768253301290116","6745410632962119604799318394592010194450845483518862700079921360015766217097","10858157235265583624235850660462324469799552996870780238992046963007491306222","20241898894740093733047052816576694435372877719072347814065227797906130857593","10165780782761211520836029617746977303303335603838343292431760011576528327409","2832093654883670345969792724123161241696170611611744759675180839473215203706","153011722355526826233082383360057587249818749719433916258246100068258954737","20196970640587451358539129330170636295243141659030208529338914906436009086943","3180973917010545328313139835982464870638521890385603025657430208141494469656","17198004293191777441573635123110935015228014028618868252989374962722329283022","7642160509228669138628515458941659189680509753651629476399516332224325757132","19346204940546791021518535594447257347218878114049998691060016493806845179755","11501810868606870391127866188394535330696206817602260610801897042898616817272","3113973447392053821824427670386252797811804954746053461397972968381571297505","6545064306297957002139416752334741502722251869537551068239642131448768236585","5203908808704813498389265425172875593837960384349653691918590736979872578408","2246692432011290582160062129070762007374502637007107318105405626910313810224","11760570435432189127645691249600821064883781677693087773459065574359292849137","5543749482491340532547407723464609328207990784853381797689466144924198391839","8837549193990558762776520822018694066937602576881497343584903902880277769302","12855514863299373699594410385
29788943772765811961581749194183533625311486462501","5363660674689121676875069134269386492382220935599781121306637800261912519729","13162342403579303950549728848130828093497701266240457479693991108217307949435","916941639326869583414469202910306428966657806899788970948781207501251816730","15618589556584434434009868216186115416835494805174158488636000580759692174228","8959562060028569701043973060670353733575345393653685776974948916988033453971","16390754464333401712265575949874369157699293840516802426621216808905079127650","168282396747788514908709091757591226095443902501365500003618183905496160435","8327443473179334761744301768309008451162322941906921742120510244986704677004","17213012626801210615058753489149961717422101711567228037597150941152495100640","10394369641533736715250242399198097296122982486516256408681925424076248952280","17784386835392322654196171115293700800825771210400152504776806618892170162248","16533189939837087893364000390641148516479148564190420358849587959161226782982","18725396114211370207078434315900726338547621160475533496863298091023511945076","7132325028834551397904855671244375895110341505383911719294705267624034122405","148317947440800089795933930720822493695
29520852448386394775371401743494965187","19001050671757720352890779127693793630251266879994702723636759889378387053056","18824274411769830274877839365728651108434404855803844568234862945613766611460","12771414330193951156383998390424063470766226667986423961689712557338777174205","11332046574800279729678603488745295198038913503395629790213378101166488244657","9607550223176946388146938069307456967842408600269548190739947540821716354749","8756385288462344550200229174435953103162307705310807828651304665320046782583","176061952957067086877570020242717222844908281373122372938833890096257042779","12200212977482648306758992405065921724409841940671166017620928947866825250857","10868453624107875516866146499877130701929063632959660262366632833504750028858","2016095394399807253596787752134573207202567875457560571095586743878953450738","21815578223768330433802113452339488275704145896544481092014911825656390567514","4923772847693564777744725640710197015181591950368494148029046443433103381621","1813584943682214789802230765734821149202472893379265320098816901270224589984","10810123816265612772922113403831964815724109728287572256602010709288980656498","1153669123397255702524721206511185557982017410156956216465120456256288427021","5007518659266430200134478928344522649876467369278722765097865662497773767152","2511432546938591792036639990606464315121646668029252285288323664350666551637","32883284540320451295484135704808083452381176816565850047310272290579727564","10484856914279112612610993418405543310546746652738541161791501150994088679557","2026733759645519472558796412979210009170379159866522399881566309631434814953","14731806221235869882801331463708736361296174006732553130708107037190460654379","14740327483193277147065845135561988641238516852487657117813536909482068950652","18787428285295558781869865751953016580493190547148386433580291216673009884554","3804047064713122820157099453648459188816376755739202017447862327783289895072","16709604795697901641948603019242067672006293290826991671766611326262532802914","11061717085931490100602849654034280576915102867237101935487893025907907250695","2821730726367472966906149684046356272806484545281639696873240305052362149654","17467794879902895769410571945152708684493991588672014763135370927880883292655","1571520786233540988201616650622796363168031165456869481368085474420849243232","10041051776251223165849354194892664881051125330236567356945669006147134614302","3981753758468103976812813304477670033098707002886030847251581853700311567551","4365864398105436789177703571412645548020537580493599380018290523813331678900","2391801327305361293476178683853802679507598622000359948432171562543560193350","214219368547551689972421167733597094823289857206402800635962137077096090722","18192064100315141084242006659317257023098826945893371479835220462302399655674","15487549757142039139328911515400805508248576685795694919457041092150651939253","10142447197759703415402259672441315777933858467700579946665223821199077641122","11246573086260753259993971254725613211193686683988426513880826148090811891866","6574066859860991369704567902211886840188702386542112593710271426704432301235","11311085442652291634822798307831431035776248927202286895207125867542470350078","20977948360215259915441258687649465618185769343138135384346964466965010873779","792781492853909872425531014397300057232399608769451037135936617996830018501","5027602491523497423798779154966735896562099398367163998686335127580757861872","14595204575654316237672764823862241845410365278802914304953002937313300553572","13973538843621261113924259058427434053808430378163734641175100160836376897004","16395063164993626722686882727042150241125309409717445381854913964674649318585","8465768840047024550750516678171433288207841931251654898809033371655109266663","21345603324471810861925019445720576814602636473739003852898308205213912255830","21171984405852590343970239018692870799717057961108910523876770029017785940991","10761027113757988230637066281488532903174559953630210849190212601991063767647","6678298831065390834922566306988418588227382406175769592902974103663687992230","4993662582188632374202316265508850988596880036291765531885657575099537176757","18364168158495573675698600238443218434246806358811328083953887470513967121206","3506345610354615013737144848471391553141006285964325596214723571988011984829","248732676202643792226973868626360612151424823368345645514532870
29586234380100","10090204501612803176317709245679152331057882187411777688746797044706063410969","21297149835078365363970699581821844234354988617890041296044775371855432973500","16729368143229828574342820060716366330476985824952922184463387490091156065099","4467191506765339364971058668792642195242197133011672559453028147641428433293","8677548159358013363291014307402600830078662555833653517843708051504582990832","1022951765127126818581466247360193856197472064872288389992480993218645055345","1888195070251580606973417065636430294417895423429240431595054184472931224452","4221265384902749246920810956363310125115516771964522748896154428740238579824","2825393571154632139467378429077438870179957021959813965940638905853993971879","19171031072692942278056619599721228021635671304612437350119663236604712493093","10780807212297131186617505517708903709488273075252405602261683478333331220733","18230936781133176044598070768084230333433368654744509969087239465125979720995","16901065971871379877929280081392692752968612240624985552337779093292740763381","146494141603558321291767829522948454429758543710648402457451799015963102253","2492729278659146790410698334997955258248120870028541691998279257260289595548","2204224910006646535594933495262085193210692406133533679934843341237521233504","16062117410185840274616925297332331018523844434907012275592638570193234893570","5894928453677122829055071981254202951712129328678534592916926069506935491729","4947482739415078212217504789923078546034438919537985740403824517728200332286","16143265650645676880461646123844627780378251900510645261875867423498913438066","397690828254561723549349897112473766901585444153303054845160673059519614409","11272653598912269895509621181205395118899451234151664604248382803490621227687","15566927854306879444693061574322104423426072650522411176731130806720753591030","14222898219492484180162096141564251903058269177856173968147960855133048449557","16690275395485630428127725067513114066329712673106153451801968992299636791385","3667030990325966886479548860429670833692690972701471494757671819017808678584","21280039024501430842616328642522421302481259067470872421086939673482530783142","15895485136902450169492923978042129726601461603404514670348703312850236146328","7733050956302327984762132317027414325566202380840692458138724610131603812560","438123800976401478772659663183448617575635636575786782566035096946820525816","814913922521637742587885320797606426167962526342166512693085292151314976633","12368712287081330853637674140264759478736012797026621876924395982504369598764","2494806857395134874309386694756263421445039103814920780777601708371037591569","1610113230151433898951294606178632063717984343588682510240624818350710631287
297","6252650284989960032925831409804233477770646333900692286731621844532438095656","9277135875276787021836189566799935097400042171346561246305113339462708861695","10493603554686607050979497281838644324893776154179810893893660722522945589063","8673089750662709235894359384294076697329948991010184356091130382437645649279","9558393272910366944245875920138649617479779893610128634419086981339060613250","19012287860122586147374214541764572282814469237161122489573881644994964647218","9783723818270121678386992630754842961728702994964214799008457449989291229500","15550788416669474113213749561488122552422887538676036667630838378023479382689","15016165746156232864069722572047169071786333815661109750860165034341572904221","6506225705710197163670556961299945987488979904603689017479840649664564978574","10796631184889302076168355684722130903785890709107732067446714470783437829037","19871836214837460419845806980869387567383718044439891735114283113359312279540","20871081766843466343749609089986071784031203517506781251203251608363835140622","5100105771517691442278432864090229416166996183792075307747582375962855820797","8777887112076272395250620301071581171386440850451972412060638225741125310886","5300440870136391278944213332144327695659161151625757537632832724102670898756","1205448543652932944633962232545707633928124666868453915721030884663332604536","5542499997310181530432302492142574333860449305424174466698068685590909336771","11028094245762332275225364962905938096659249161369092798505554939952525894293","19187314764836593118404597958543112407224947638377479622725713735224279297009","17047263688548829001253658727764731047114098556534482052135734487985276987385","19914849528178967155534624144358541535306360577227460456855821557421213606310","2929658084700714257515872921366736697080475676508114973627124569375444665664","15092262360719700162343163278648422751610766427236295023221516498310468956361","21578580340755653236050830649990190843552802306886938815497471545814130084980","1258781501221760320019859066036073675029057285507345332959539295621677296991","3819598418157732134449049289585680301176983019643974929528867686268702720163","8653175945487997845203439345797943132543211416447757110963967501177317426221","6614652990340435611114076169697104582524566019034036680161902142028967568142","19212515502973904821995111796203064175854996071497099383090983975618035391558","18664315914479294273286016871365663486061896605232511201418576829062292269769","11498264615058604317482574216318586415670903094838791165247179252175768794889","10814026414212439999107945133852431304483604215416531759535467355316227331774","17566185590731088197064706533119299946752127014428399631467913813769853431107","14016139747289624978792446847000951708158212463304817001882956166752906714332","8242601581342441750402731523736202888792436665415852106196418942315563860366","9244680976345080074252591214216060854998619670381671198295645618515047080988","12216779172735125538689875667307129262237123728082657485828359100719208190116","10702811721859145441471328511968332847175733707711670171718794132331147396634","6479667912792222539919362076122453947926362746906450079329453150607427372979","15117544653571553820496948522381772148324367479772362833334593000535648316185","6842203153996907264167856337497139692895299874139131328642472698663046726780","12732823292801537626009139514048596316076834307941224506504666470961250728055","6936272626871035740815028148058841877090860312517423346335878088297448888663","17297554111853491139852678417579991271009602631577069694853813331124433680030","16641596134749940573104316021365063031319260205559553673368334842484345864859","7400481189785154329569470986896455371037813715804007747228648863919991399081","2273205422216987330510475127669563545720586464429614439716564154166712854048","15162538063742142685306302282127534305212832649282186184583465569986719234456","5628039096440332922248578319648483863204530861778160259559031331287721255522","16085392195894691829567913404182676871326863890140775376809129785155092531260","14227467863135365427954093998621993651369686288941275436795622973781503444257","18224457394066545825553407391290108485121649197258948320896164404518684305122","274945154732293792784580363548970818611304339008964723447672490026510689427","11050822248291117548220126630860474473945266276626263036056336623671308219529","2119542016932434047340813757208803962484943912710204325088879681995922344971","0"].map(e=>(0,i.default)(e));class a{constructor(e,t){this.l=(0,i.default)(0),this.r=(0,i.default)(0),this.rounds=e,this.k=t}inject(e){this.l=this.l.add(e).mod(t.p)}mix(){for(let e=0;e<this.rounds-1;e++){const n=this.k.add(this.l).add(o[e]).mod(t.p).modPow(5,t.p).add(this.r).mod(t.p);this.r=this.l,this.l=n}const e=this.k.add(this.l).mod(t.p);this.r=e.modPow(5,t.p).add(this.r).mod(t.p)}}function s(e){let n=(0,i.default)(e).mod(t.p);return n.lesser((0,i.default)(0))&&(n=n.add(t.p)),n}t.modPBigInt=s,t.modPBigIntNative=function(e){let n=e.mod(t.p);return n.lesser((0,i.default)(0))&&(n=n.add(t.p)),n};t.mimcWithRounds=(e,t)=>(...n)=>function(e,t,n,r){const o=new a(n,(0,i.default)(r));for(const t of e)o.inject(t),o.mix();const s=[o.l];for(let e=0;e<t-1;
29e++)o.mix(),s.push(o.l);return s}(n.map(e=>s(e)),1,e,t)[0];t.perlinRandHash=e=>(0,t.mimcWithRounds)(4,e),t.default=function(e){return(0,t.mimcWithRounds)(220,e)}},function(e,t,n){"use strict";const r=n(210),i=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];class o extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,({message:e}=e)):(this.originalError=new Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}}const a=(e,t)=>new Promise((n,a)=>{t={onFailedAttempt:()=>{},retries:10,...t};const s=r.operation(t);s.attempt(async r=>{try{n(await e(r))}catch(e){if(!(e instanceof Error))return void a(new TypeError(`Non-error was thrown: "${e}". You should only throw errors.`));if(e instanceof o)s.stop(),a(e.originalError);else if(e instanceof TypeError&&(l=e.message,!i.includes(l)))s.stop(),a(e);else{((e,t,n)=>{const r=n.retries-(t-1);e.attemptNumber=t,e.retriesLeft=r})(e,r,t);try{await t.onFailedAttempt(e)}catch(e){return void a(e)}s.retry(e)||a(s.mainError())}}var l})});e.exports=a,e.exports.default=a,e.exports.AbortError=o},function(e,t,n){var r=n(47),i=n(114);function o(e,t){if(arguments.length<2)throw new Error("mnemonist/circular-buffer: expecting an Array class and a capacity.");if("number"!=typeof t||t<=0)throw new Error("mnemonist/circular-buffer: `capacity` should be a positive number.");this.ArrayClass=e,this.capacity=t,this.items=new e(this.capacity),this.clear()}function a(e){o.prototype[e]=i.prototype[e]}Object.keys(i.prototype).forEach(a),"undefined"!=typeof Symbol&&Object.getOwnPropertySymbols(i.prototype).forEach(a),o.prototype.push=function(e){var t=(this.start+this.size)%this.capacity;return this.items[t]=e,this.size===this.capacity?(this.start=(t+1)%this.capacity,this.size):++this.size},o.prototype.unshift=function(e){var t=this.start-1;return 0===this.start&&(t=this.capacity-1),this.items[t]=e,this.size===this.capacity?(this.start=t,this.size):(this.start=t,++this.size)},o.from=function(e,t,n){if(arguments.length<3&&"number"!=typeof(n=r.guessLength(e)))throw new Error("mnemonist/circular-buffer.from: could not guess iterable length. Please provide desired capacity as last argument.");var i=new o(t,n);if(r.isArrayLike(e)){var a,s;for(a=0,s=e.length;a<s;a++)i.items[a]=e[a];return i.size=s,i}return r.forEach(e,(function(e){i.push(e)})),i},e.exports=o},function(e,t,n){var r=n(47),i=n(31);function o(e,t){if(arguments.length<2)throw new Error("mnemonist/fixed-deque: expecting an Array class and a capacity.");if("number"!=typeof t||t<=0)throw new Error("mnemonist/fixed-deque: `capacity` should be a positive number.");this.ArrayClass=e,this.capacity=t,this.items=new e(this.capacity),this.clear()}o.prototype.clear=function(){this.start=0,this.size=0},o.prototype.push=function(e){if(this.size===this.capacity)throw new Error("mnemonist/fixed-deque.push: deque capacity ("+this.capacity+") exceeded!");var t=(this.start+this.size)%this.capacity;return this.items[t]=e,++this.size},o.prototype.unshift=function(e){if(this.size===this.capacity)throw new Error("mnemonist/fixed-deque.unshift: deque capacity ("+this.capacity+") exceeded!");var t=this.start-1;return 0===this.start&&(t=this.capacity-1),this.items[t]=e,this.start=t,++this.size},o.prototype.pop=function(){if(0===this.size)return;const e=(this.start+this.size-1)%this.capacity;return this.size--,this.items[e]},o.prototype.shift=function(){if(0!==this.size){var e=this.start;return this.size--,this.start++,this.start===this.capacity&&(this.start=0),this.items[e]}},o.prototype.peekFirst=function(){if(0!==this.size)return this.items[this.start]},o.prototype.peekLast=function(){if(0!==this.size){var e=this.start+this.size-1;return e>this.capacity&&(e-=this.capacity),this.items[e]}},o.prototype.get=function(e){if(0!==this.size)return(e=this.start+e)>this.capacity&&(e-=this.capacity),this.items[e]},o.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=this.capacity,r=this.size,i=this.start,o=0;o<r;)e.call(t,this.items[i],o,this),o++,++i===n&&(i=0)},o.prototype.toArray=function(){var e=this.start+this.size;if(e<this.capacity)return this.items.slice(this.start,e);for(var t=new this.ArrayClass(this.size),n=this.capacity,r=this.size,i=this.start,o=0;o<r;)t[o]=this.items[i],o++,++i===n&&(i=0);return t},o.prototype.values=function(){var e=this.items,t=this.capacity,n=this.size,r=this.start,o=0;return new i((function(){if(o>=n)return{done:!0};var i=e[r];return r++,o++,r===t&&(r=0),{value:i,done:!1}}
29))},o.prototype.entries=function(){var e=this.items,t=this.capacity,n=this.size,r=this.start,o=0;return new i((function(){if(o>=n)return{done:!0};var i=e[r];return++r===t&&(r=0),{value:[o++,i],done:!1}}))},"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.values),o.prototype.inspect=function(){var e=this.toArray();return e.type=this.ArrayClass.name,e.capacity=this.capacity,Object.defineProperty(e,"constructor",{value:o,enumerable:!1}),e},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),o.from=function(e,t,n){if(arguments.length<3&&"number"!=typeof(n=r.guessLength(e)))throw new Error("mnemonist/fixed-deque.from: could not guess iterable length. Please provide desired capacity as last argument.");var i=new o(t,n);if(r.isArrayLike(e)){var a,s;for(a=0,s=e.length;a<s;a++)i.items[a]=e[a];return i.size=s,i}return r.forEach(e,(function(e){i.push(e)})),i},e.exports=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeArtifact=t.decodeArtifactPointValues=t.artifactIdToDecStr=t.artifactIdFromEthersBN=t.artifactIdFromDecStr=t.artifactIdFromHexStr=void 0;const i=n(1),o=r(n(8)),a=n(55),s=n(56),l=n(116);function c(e){let t=(0,o.default)(e).toString(16);for(;t.length<64;)t="0"+t;return t}function u(e){return c(e.toString())}t.artifactIdFromHexStr=function(e){let t=(0,o.default)(e,16).toString(16);if(t.length>64)throw new Error("not a valid artifact id");for(;t.length<64;)t="0"+t;return t},t.artifactIdFromDecStr=c,t.artifactIdFromEthersBN=u,t.artifactIdToDecStr=function(e){return(0,o.default)(e,16).toString(10)},t.decodeArtifactPointValues=function(e){return{[i.ArtifactRarity.Unknown]:e[i.ArtifactRarity.Unknown].toNumber(),[i.ArtifactRarity.Common]:e[i.ArtifactRarity.Common].toNumber(),[i.ArtifactRarity.Rare]:e[i.ArtifactRarity.Rare].toNumber(),[i.ArtifactRarity.Epic]:e[i.ArtifactRarity.Epic].toNumber(),[i.ArtifactRarity.Legendary]:e[i.ArtifactRarity.Legendary].toNumber(),[i.ArtifactRarity.Mythic]:e[i.ArtifactRarity.Mythic].toNumber()}},t.decodeArtifact=function(e){const{artifact:t,owner:n,upgrade:r,timeDelayedUpgrade:i,locationId:o,voyageId:c}=e;return{isInititalized:t.isInitialized,id:u(t.id),planetDiscoveredOn:(0,s.locationIdFromDecStr)(t.planetDiscoveredOn.toString()),rarity:t.rarity,planetBiome:t.planetBiome,mintedAtTimestamp:t.mintedAtTimestamp.toNumber(),discoverer:(0,a.address)(t.discoverer),artifactType:t.artifactType,lastActivated:t.lastActivated.toNumber(),lastDeactivated:t.lastDeactivated.toNumber(),wormholeTo:t.wormholeTo.eq(0)?void 0:(0,s.locationIdFromEthersBN)(t.wormholeTo),currentOwner:(0,a.address)(n),upgrade:(0,l.decodeUpgrade)(r),timeDelayedUpgrade:(0,l.decodeUpgrade)(i),onPlanetId:o.eq(0)?void 0:(0,s.locationIdFromEthersBN)(o),onVoyageId:c.eq(0)?void 0:c.toString()}}},function(e,t,n){"use strict";function r(e){return{energyCapMultiplier:e.popCapMultiplier.toNumber(),energyGroMultiplier:e.popGroMultiplier.toNumber(),rangeMultiplier:e.rangeMultiplier.toNumber(),speedMultiplier:e.speedMultiplier.toNumber(),defMultiplier:e.defMultiplier.toNumber()}}Object.defineProperty(t,"__esModule",{value:!0}),t.decodeUpgradeBranches=t.decodeUpgrade=void 0,t.decodeUpgrade=r,t.decodeUpgradeBranches=function(e){return e.map(e=>e.map(r))}},function(e,t,n){"use strict";var r=n(48).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(48),i=n(67),o=n(117),a=n(66),s=r.sum32,l=r.sum32_4,c=r.sum32_5,u=o.ch32,f=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
vendor: 2,840 bytes, line 29
29734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=l(m(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],v=this.h[3],y=this.h[4],b=this.h[5],w=this.h[6],E=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var k=c(E,h(y),u(y,b,w),this.k[r],n[r]),x=s(d(i),f(i,o,g));E=w,w=b,b=y,y=s(v,k),v=g,g=o,o=i,i=s(k,x)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],E)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(48),i=n(67),o=n(66),a=r.rotr64_hi,s=r.rotr64_lo,l=r.shr64_hi,c=r.shr64_lo,u=r.sum64,f=r.sum64_hi,d=r.sum64_lo,h=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,g=r.sum64_5_lo,v=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
291126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function w(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}function E(e,t,n,r,i,o){var a=t&r^~t&o;return a<0&&(a+=4294967296),a}function k(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}function x(e,t,n,r,i,o){var a=t&r^t&o^r&o;return a<0&&(a+=4294967296),a}function S(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function _(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function A(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function C(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function T(e,t){var n=a(e,t,1)^a(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function P(e,t){var n=s(e,t,1)^s(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function O(e,t){var n=a(e,t,19)^a(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}function M(e,t){var n=s(e,t,19)^s(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(b,v),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=O(n[r-4],n[r-3]),o=M(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],l=T(n[r-30],n[r-29]),c=P(n[r-30],n[r-29]),u=n[r-32],f=n[r-31];n[r]=h(i,o,a,s,l,c,u,f),n[r+1]=p(i,o,a,s,l,c,u,f)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],c=this.h[5],h=this.h[6],p=this.h[7],v=this.h[8],y=this.h[9],b=this.h[10],T=this.h[11],P=this.h[12],O=this.h[13],M=this.h[14],I=this.h[15];o(this.k.length===n.length);for(var R=0;R<n.length;R+=2){var L=M,N=I,j=A(v,y),B=C(v,y),F=w(v,y,b,T,P),D=E(v,y,b,T,P,O),z=this.k[R],U=this.k[R+1],$=n[R],H=n[R+1],J=m(L,N,j,B,F,D,z,U,$,H),G=g(L,N,j,B,F,D,z,U,$,H);L=S(r,i),N=_(r,i),j=k(r,i,a,s,l),B=x(r,i,a,s,l,c);var V=f(L,N,j,B),X=d(L,N,j,B);M=P,I=O,P=b,O=T,b=v,T=y,v=f(h,p,J,G),y=d(p,p,J,G),h=l,p=c,l=a,c=s,a=r,s=i,r=f(J,G,V,X),i=d(J,G,V,X)}u(this.h,0,r,i),u(this.h,2,a,s),u(this.h,4,l,c),u(this.h,6,h,p),u(this.h,8,v,y),u(this.h,10,b,T),u(this.h,12,P,O),u(this.h,14,M,I)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(230),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(37))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="0x0000000000000000000000000000000000000000000000000000000000000000"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="0x0000000000000000000000000000000000000000"},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getResult=t.isPurchase=t.ethToWei=t.weiToEth=t.weiToGwei=t.gweiToWei=t.verifySignature=t.assertProperlySigned=t.makeProvider=t.createContract=t.waitForTransaction=t.aggregateBulkGetter=t.neverResolves=t.getGasSettingGwei=t.callWithRetry=void 0;const i=n(6),o=n(1),a=n(38),s=r(n(40)),l=r(n(112)),c=r(n(124));t.callWithRetry=async(e,t=[],n,r=i.DEFAULT_MAX_CALL_RETRIES,o=1e3)=>(0,l.default)(()=>e(...t),{retries:r,minTimeout:o,maxTimeout:6e4,onFailedAttempt(e){if(console.error("error: "+e),console.log(`retrying (${e.attemptNumber+1}/${r})...`),n)try{n(e.attemptNumber,e)}catch(e){console.log("failed executing callWithRetry error handler",e)}}}),t.getGasSettingGwei=function(e,t){switch(e){case o.AutoGasSetting.Slow:return t.slow;case o.AutoGasSetting.Average:return t.average;case o.AutoGasSetting.Fast:return t.fast;default:return}},t.neverResolves=function(){return new Promise(()=>{})};function u(e,t,n){return a.utils.verifyMessage(e,t).toLowerCase()===n}t.aggregateBulkGetter=async(e,t,n,r,i=0)=>{const o=[];let a=0;for(let s=0;s*t+i<e;s+=1){const l=s*t+i,c=Math.min((s+1)*t+i,e),u=c-l;o.push(new Promise(async t=>{let i=[];for(;0===i.length;)i=await n(l,c),a+=u,r&&r(a/e);t(i)}))}const s=await Promise.all(o);return r&&r(1),s.flat()},t.waitForTransaction=function(e,t){return(0,l.default)(async n=>{console.log(`[wait-tx] WAITING ON tx hash: ${t} tries ${n}`);try{const r=await(0,c.default)(e.getTransactionReceipt(t),3e4);return r?(console.log(`[wait-tx] FINISHED tx hash: ${t} tries ${n}`),console.log("Receipt ",r),r):Promise.reject(new Error("couldn't get receipt"))}catch(e){return console.error(`[wait-tx] TIMED OUT tx hash: ${t} tries ${n} error:`,e),Promise.reject(e)}},{retries:i.DEFAULT_MAX_CALL_RETRIES,minTimeout:2e3,maxTimeout:6e4,factor:1.5,onFailedAttempt(e){console.log(`[wait-tx] SLEEPING tx hash: ${t} tries ${e.attemptNumber} sleeping...`)}})},t.createContract=function(e,t,n,r){return new a.Contract(e,t,null!=r?r:n)},t.makeProvider=function(e){let t;return e.startsWith("wss://")?t=new a.providers.WebSocketProvider(e):(t=new a.providers.StaticJsonRpcProvider(e),t.pollingInterval=8e3),t},t.assertProperlySigned=function(e){if(!u((0,s.default)(e.message),e.signature,e.sender))throw new Error("failed to verify: "+e)},t.verifySignature=u,t.gweiToWei=function(e){return a.utils.parseUnits(e+"","gwei")},t.weiToGwei=function(e){return parseFloat(a.utils.formatUnits(e,"gwei"))},t.weiToEth=function(e){return parseFloat(a.utils.formatEther(e))},t.ethToWei=function(e){return a.utils.parseEther(e+"")},t.isPurchase=function(e){return void 0!==e.value&&e.value>0},t.getResult=async function(e){const[t,n]=await Promise.all([e.submitted,e.confirmed]);return n}},function(e,t,n){"use strict";
29class r extends Error{constructor(e){super(e),this.name="TimeoutError"}}const i=(e,t,n,i)=>{let o;const a=new Promise((a,s)=>{if("number"!=typeof t||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");t!==1/0?(i={customTimers:{setTimeout:setTimeout,clearTimeout:clearTimeout},...i},o=i.customTimers.setTimeout.call(void 0,()=>{if("function"==typeof n){try{a(n())}catch(e){s(e)}return}const i=n instanceof Error?n:new r("string"==typeof n?n:`Promise timed out after ${t} milliseconds`);"function"==typeof e.cancel&&e.cancel(),s(i)},t),(async()=>{try{a(await e)}catch(e){s(e)}finally{i.customTimers.clearTimeout.call(void 0,o)}})()):a(e)});return a.clear=()=>{clearTimeout(o),o=void 0},a};e.exports=i,e.exports.default=i,e.exports.TimeoutError=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAutoGasPrices=void 0;const r=n(6);t.getAutoGasPrices=async function(){return r.DEFAULT_GAS_PRICES}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.colors=void 0;const i=(0,r(n(26)).default)("#bbb").hex();t.colors={text:i}},function(e,t,n){var r=n(75),i=n(23),o=r.DEFAULT_COMPARATOR,a=r.reverseComparator;function s(e){if(this.clear(),this.comparator=e||o,"function"!=typeof this.comparator)throw new Error("mnemonist/FibonacciHeap.constructor: given comparator should be a function.")}function l(e,t){e.root?(t.right=e.root.right,t.left=e.root,e.root.right.left=t,e.root.right=t):e.root=t}function c(e){for(var t=[],n=e,r=!1;n!==e||!r;)n===e&&(r=!0),t.push(n),n=n.right;return t}function u(e,t){e.root===t&&(e.root=t.right),t.left.right=t.right,t.right.left=t.left}function f(e,t,n){var r,i;u(e,t),t.left=t,t.right=t,i=t,(r=n).child?(i.right=r.child.right,i.left=r.child,r.child.right.left=i,r.child.right=i):r.child=i,n.degree++,t.parent=n}function d(e){if(this.clear(),this.comparator=e||o,"function"!=typeof this.comparator)throw new Error("mnemonist/FibonacciHeap.constructor: given comparator should be a function.");this.comparator=a(this.comparator)}s.prototype.clear=function(){this.root=null,this.min=null,this.size=0},s.prototype.push=function(e){var t=function(e){return{item:e,degree:0}}(e);return t.left=t,t.right=t,l(this,t),(!this.min||this.comparator(t.item,this.min.item)<=0)&&(this.min=t),++this.size},s.prototype.peek=function(){return this.min?this.min.item:void 0},s.prototype.pop=function(){if(this.size){var e=this.min;if(e.child){var t,n,r,i=c(e.child);for(n=0,r=i.length;n<r;n++)l(this,t=i[n]),delete t.parent}return u(this,e),e===e.right?(this.min=null,this.root=null):(this.min=e.right,function(e){var t,n,r,i,o,a,s=new Array(e.size),l=c(e.root);for(t=0,n=l.length;t<n;t++){for(o=(r=l[t]).degree;s[o];)i=s[o],e.comparator(r.item,i.item)>0&&(a=r,r=i,i=a),f(e,i,r),s[o]=null,o++;s[o]=r}for(t=0;t<e.size;t++)s[t]&&e.comparator(s[t].item,e.min.item)<=0&&(e.min=s[t])}(this)),this.size--,e.item}},s.prototype.inspect=function(){var e={size:this.size};return this.min&&"item"in this.min&&(e.top=this.min.item),Object.defineProperty(e,"constructor",{value:s,enumerable:!1}),e},"undefined"!=typeof Symbol&&(s.prototype[Symbol.for("nodejs.util.inspect.custom")]=s.prototype.inspect),d.prototype=s.prototype,s.from=function(e,t){var n=new s(t);return i(e,(function(e){n.push(e)})),n},d.from=function(e,t){var n=new d(t);return i(e,(function(e){n.push(e)})),n},s.MinFibonacciHeap=s,s.MaxFibonacciHeap=d,e.exports=s},function(e,t){function n(e){return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,(e|=e>>16)&~(e>>1)}function r(e){return e|=e>>1,e|=e>>2,(e|=e>>4)&~(e>>1)}t.msb32=n,t.msb8=r,t.test=function(e,t){return e>>t&1},t.criticalBit8=function(e,t){return r(e^t)},t.criticalBit8Mask=function(e,t){return~r(e^t)>>>0&255},t.testCriticalBit8=function(e,t){return 1+(e|t)>>8},t.criticalBit32Mask=function(e,t){return~n(e^t)>>>0&4294967295},t.popcount=function(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)};for(var i=new Uint8Array(Math.pow(2,8)),o=0,a=i.length;o<a;o++)i[o]=t.popcount(o);t.table8Popcount=function(e){return i[255&e]+i[e>>8&255]+i[e>>16&255]+i[e>>24&255]}},function(e,t,n){var r=n(31),i=n(23);function o(e){this.Container=e||Array,this.items=new Map,this.clear(),Object.defineProperty(this.items,"constructor",{value:o,enumerable:!1})}o.prototype.clear=function(){this.size=0,this.dimension=0,this.items.clear()},o.prototype.set=function(e,t){var n,r=this.items.get(e);return r||(this.dimension++,r=new this.Container,this.items.set(e,r)),this.Container===Set?(n=r.size,r.add(t),n<r.size&&this.size++):(r.push(t),this.size++),this},o.prototype.delete=function(e){var t=this.items.get(e);return!!t&&(this.size-=this.Container===Set?t.size:t.length,this.dimension--,this.items.delete(e),!0)},o.prototype.remove=function(e,t){var n,r,i=this.items.get(e);return!!i&&(this.Container===Set?((n=i.delete(t))&&this.size--,0===i.size&&(this.items.delete(e),this.dimension--),n):-1!==(r=i.indexOf(t))&&(this.size--,1===i.length?(this.items.delete(e),this.dimension--,!0):(i.splice(r,1),!0)))},o.prototype.has=function(e){return this.items.has(e)},o.prototype.get=function(e){return this.items.get(e)},o.prototype.multiplicity=function(e){var t=this.items.get(e);return void 0===t?0:this.Container===Set?t.size:t.length},o.prototype.count=o.prototype.multiplicity,o.prototype.forEach=function(e,t){var n;function r(r){e.call(t,r,n)}t=arguments.length>
291?t:this,this.items.forEach((function(e,t){n=t,e.forEach(r)}))},o.prototype.forEachAssociation=function(e,t){t=arguments.length>1?t:this,this.items.forEach(e,t)},o.prototype.keys=function(){return this.items.keys()},o.prototype.values=function(){var e,t,n,i,o=this.items.values(),a=!1;return this.Container===Set?new r((function n(){if(!a){if((t=o.next()).done)return{done:!0};a=!0,e=t.value.values()}return(t=e.next()).done?(a=!1,n()):{done:!1,value:t.value}})):new r((function r(){if(!a){if((t=o.next()).done)return{done:!0};a=!0,e=t.value,n=0,i=e.length}return n>=i?(a=!1,r()):{done:!1,value:e[n++]}}))},o.prototype.entries=function(){var e,t,n,i,o,a=this.items.entries(),s=!1;return this.Container===Set?new r((function r(){if(!s){if((t=a.next()).done)return{done:!0};s=!0,n=t.value[0],e=t.value[1].values()}return(t=e.next()).done?(s=!1,r()):{done:!1,value:[n,t.value]}})):new r((function r(){if(!s){if((t=a.next()).done)return{done:!0};s=!0,n=t.value[0],e=t.value[1],i=0,o=e.length}return i>=o?(s=!1,r()):{done:!1,value:[n,e[i++]]}}))},o.prototype.containers=function(){return this.items.values()},o.prototype.associations=function(){return this.items.entries()},"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.entries),o.prototype.inspect=function(){return this.items},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),o.prototype.toJSON=function(){return this.items},o.from=function(e,t){var n=new o(t);return i(e,(function(e,t){n.set(t,e)})),n},e.exports=o},function(e,t,n){var r=n(31),i=n(47);function o(e,t){if(arguments.length<2)throw new Error("mnemonist/fixed-stack: expecting an Array class and a capacity.");if("number"!=typeof t||t<=0)throw new Error("mnemonist/fixed-stack: `capacity` should be a positive number.");this.capacity=t,this.ArrayClass=e,this.items=new this.ArrayClass(this.capacity),this.clear()}o.prototype.clear=function(){this.size=0},o.prototype.push=function(e){if(this.size===this.capacity)throw new Error("mnemonist/fixed-stack.push: stack capacity ("+this.capacity+") exceeded!");return this.items[this.size++]=e,this.size},o.prototype.pop=function(){if(0!==this.size)return this.items[--this.size]},o.prototype.peek=function(){return this.items[this.size-1]},o.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.items.length;n<r;n++)e.call(t,this.items[r-n-1],n,this)},o.prototype.toArray=function(){for(var e=new this.ArrayClass(this.size),t=this.size-1,n=this.size;n--;)e[n]=this.items[t-n];return e},o.prototype.values=function(){var e=this.items,t=this.size,n=0;return new r((function(){if(n>=t)return{done:!0};var r=e[t-n-1];return n++,{value:r,done:!1}}))},o.prototype.entries=function(){var e=this.items,t=this.size,n=0;return new r((function(){if(n>=t)return{done:!0};var r=e[t-n-1];return{value:[n++,r],done:!1}}))},"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.values),o.prototype.toString=function(){return this.toArray().join(",")},o.prototype.toJSON=function(){return this.toArray()},o.prototype.inspect=function(){var e=this.toArray();return e.type=this.ArrayClass.name,e.capacity=this.capacity,Object.defineProperty(e,"constructor",{value:o,enumerable:!1}),e},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),o.from=function(e,t,n){if(arguments.length<3&&"number"!=typeof(n=i.guessLength(e)))throw new Error("mnemonist/fixed-stack.from: could not guess iterable length. Please provide desired capacity as last argument.");var r=new o(t,n);if(i.isArrayLike(e)){var a,s;for(a=0,s=e.length;a<s;a++)r.items[a]=e[a];return r.size=s,r}return i.forEach(e,(function(e){r.push(e)})),r},e.exports=o},function(e,t){t.search=function(e,t,n,r){var i,o=0;for(n=void 0!==n?n:0,r=void 0!==r?r:e.length,r--;n<=r;)if((i=e[o=n+r>>>1])>t)r=~-o;else{if(!(i<t))return o;n=-~o}return-1},t.searchWithComparator=function(e,t,n){for(var r,i=0,o=0,a=~-t.length;o<=a;)if((r=e(t[i=o+a>>>1],n))>0)a=~-i;else{if(!(r<0))return i;o=-~i}return-1},t.lowerBound=function(e,t,n,r){var i=0;for(n=void 0!==n?n:0,r=void 0!==r?r:e.length;n<r;)t<=e[i=n+r>>>1]?r=i:n=-~i;return n},t.lowerBoundWithComparator=function(e,t,n){for(var r=0,i=0,o=t.length;i<o;)e(n,t[r=i+o>>>1])<=0?o=r:i=-~r;return i},t.lowerBoundIndices=function(e,t,n,r,i){var o=0;for(r=void 0!==r?r:0,i=void 0!==i?i:e.length;r<i;)n<=e[t[o=r+i>>>1]]?i=o:r=-~o;return r},t.upperBound=function(e,t,n,r){var i=0;for(n=void 0!==n?n:0,r=void 0!==r?r:e.length;n<r;)t>
29=e[i=n+r>>>1]?n=-~i:r=i;return n},t.upperBoundWithComparator=function(e,t,n){for(var r=0,i=0,o=t.length;i<o;)e(n,t[r=i+o>>>1])>=0?i=-~r:o=r;return i}},function(e,t){var n=new Float64Array(64),r=new Float64Array(64);t.inplaceQuickSort=function(e,t,i){var o,a,s,l,c;for(n[0]=t,r[0]=i,a=0;a>=0;)if((s=n[a])<(l=r[a]-1)){for(o=e[s];s<l;){for(;e[l]>=o&&s<l;)l--;for(s<l&&(e[s++]=e[l]);e[s]<=o&&s<l;)s++;s<l&&(e[l--]=e[s])}e[s]=o,n[a+1]=s+1,r[a+1]=r[a],r[a++]=s,r[a]-n[a]>r[a-1]-n[a-1]&&(c=n[a],n[a]=n[a-1],n[a-1]=c,c=r[a],r[a]=r[a-1],r[a-1]=c)}else a--;return e},t.inplaceQuickSortIndices=function(e,t,i,o){var a,s,l,c,u,f;for(n[0]=i,r[0]=o,s=0;s>=0;)if((l=n[s])<(c=r[s]-1)){for(a=e[u=t[l]];l<c;){for(;e[t[c]]>=a&&l<c;)c--;for(l<c&&(t[l++]=t[c]);e[t[l]]<=a&&l<c;)l++;l<c&&(t[c--]=t[l])}t[l]=u,n[s+1]=l+1,r[s+1]=r[s],r[s++]=l,r[s]-n[s]>r[s-1]-n[s-1]&&(f=n[s],n[s]=n[s-1],n[s-1]=f,f=r[s],r[s]=r[s-1],r[s-1]=f)}else s--;return t}},function(e,t,n){var r=n(31),i=n(23),o=n(43),a=n(47);function s(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,"number"!=typeof this.capacity||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");if(!isFinite(this.capacity)||Math.floor(this.capacity)!==this.capacity)throw new Error("mnemonist/lru-cache: capacity should be a finite positive integer.");var r=o.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K="function"==typeof e?new e(n):new Array(n),this.V="function"==typeof t?new t(n):new Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}s.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}},s.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],r=this.forward[e];return this.tail===e?this.tail=n:this.backward[r]=n,this.forward[n]=r,this.backward[t]=e,this.head=e,this.forward[e]=t,this},s.prototype.set=function(e,t){var n=this.items[e];if(void 0!==n)return this.splayOnTop(n),void(this.V[n]=t);this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n},s.prototype.setpop=function(e,t){var n=null,r=null,i=this.items[e];return void 0!==i?(this.splayOnTop(i),n=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],n=this.V[i],r=this.K[i],delete this.items[this.K[i]]),this.items[e]=i,this.K[i]=e,this.V[i]=t,this.forward[i]=this.head,this.backward[this.head]=i,this.head=i,r?{evicted:!0,key:r,value:n}:null)},s.prototype.has=function(e){return e in this.items},s.prototype.get=function(e){var t=this.items[e];if(void 0!==t)return this.splayOnTop(t),this.V[t]},s.prototype.peek=function(e){var t=this.items[e];if(void 0!==t)return this.V[t]},s.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,i=this.head,o=this.K,a=this.V,s=this.forward;n<r;)e.call(t,a[i],o[i],this),i=s[i],n++},s.prototype.keys=function(){var e=0,t=this.size,n=this.head,i=this.K,o=this.forward;return new r((function(){if(e>=t)return{done:!0};var r=i[n];return++e<t&&(n=o[n]),{done:!1,value:r}}))},s.prototype.values=function(){var e=0,t=this.size,n=this.head,i=this.V,o=this.forward;return new r((function(){if(e>=t)return{done:!0};var r=i[n];return++e<t&&(n=o[n]),{done:!1,value:r}}))},s.prototype.entries=function(){var e=0,t=this.size,n=this.head,i=this.K,o=this.V,a=this.forward;return new r((function(){if(e>=t)return{done:!0};var r=i[n],s=o[n];return++e<t&&(n=a[n]),{done:!1,value:[r,s]}}))},"undefined"!=typeof Symbol&&(s.prototype[Symbol.iterator]=s.prototype.entries),s.prototype.inspect=function(){for(var e,t=new Map,n=this.entries();!(e=n.next()).done;)t.set(e.value[0],e.value[1]);return Object.defineProperty(t,"constructor",{value:s,enumerable:!1}),t},"undefined"!=typeof Symbol&&(s.prototype[Symbol.for("nodejs.util.inspect.custom")]=s.prototype.inspect),s.from=function(e,t,n,r){if(arguments.length<2){if("number"!=typeof(r=a.guessLength(e)))throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else 2===arguments.length&&(r=t,t=null,n=null);var o=new s(t,n,r);return i(e,(function(e,t){o.set(t,e)})),o},e.exports=s},function(e,t,n){var r=n(23),i=n(31),o=String.fromCharCode(0);function a(e){this.mode=e===Array?"array":"string",this.clear()}a.prototype.clear=function(){this.root={},this.size=0},a.prototype.set=function(e,t){for(var n,r=this.root,i=0,a=e.length;i<a;i++)r=r[n=e[i]]||(r[n]={});return o in r||this.size++,r[o]=t,this},a.prototype.update=function(e,t){for(var n,r=this.root,i=0,a=e.length;i<a;i++)r=r[n=e[i]]||(r[n]={});return o in r||this.size++,r[o]=t(r[o]),this},a.prototype.get=function(e){var t,n,r=this.root;for(t=0,n=e.length;t<n;t++)if(void 0===(r=r[e[t]]))return;if(o in r)return r[o]},a.prototype.delete=function(e){var t,n,r,i,a=this.root,s=null,l=null;for(r=0,i=e.length;r<i;r++){if(t=a,void 0===(a=a[n=e[r]]))return!1;null!==s?Object.keys(a).length>1&&(s=null,l=null):Object.keys(a).length<2&&(s=t,l=n)}return o in a&&(this.size--,s?delete s[l]:delete a[o],!0)},a.prototype.has=function(e){for(var t=this.root,n=0,r=e.length;n<r;n++)if(void 0===(t=t[e[n]]))return!1;return o in t},a.prototype.find=function(e){var t,n,r="string"==typeof e,i=this.root,a=[];for(t=0,n=e.length;t<n;t++)if(void 0===(i=i[e[t]]))return a;for(var s,l=[i],c=[e];l.length;
29)for(s in e=c.pop(),i=l.pop())s!==o?(l.push(i[s]),c.push(r?e+s:e.concat(s))):a.push([e,i[o]]);return a},a.prototype.values=function(e){var t,n,r=this.root,a=[];if(e)for(t=0,n=e.length;t<n;t++)if(void 0===(r=r[e[t]]))return i.empty();return a.push(r),new i((function(){for(var e,t,n=!1;a.length;){for(t in e=a.pop())t!==o?a.push(e[t]):n=!0;if(n)return{done:!1,value:e[o]}}return{done:!0}}))},a.prototype.prefixes=function(e){var t,n,r=this.root,a=[],s=[],l="string"===this.mode;if(e){for(t=0,n=e.length;t<n;t++)if(void 0===(r=r[e[t]]))return i.empty()}else e=l?"":[];return a.push(r),s.push(e),new i((function(){for(var e,t,n,r=!1;a.length;){for(n in e=a.pop(),t=s.pop(),e)n!==o?(a.push(e[n]),s.push(l?t+n:t.concat(n))):r=!0;if(r)return{done:!1,value:t}}return{done:!0}}))},a.prototype.keys=a.prototype.prefixes,a.prototype.entries=function(e){var t,n,r=this.root,a=[],s=[],l="string"===this.mode;if(e){for(t=0,n=e.length;t<n;t++)if(void 0===(r=r[e[t]]))return i.empty()}else e=l?"":[];return a.push(r),s.push(e),new i((function(){for(var e,t,n,r=!1;a.length;){for(n in e=a.pop(),t=s.pop(),e)n!==o?(a.push(e[n]),s.push(l?t+n:t.concat(n))):r=!0;if(r)return{done:!1,value:[t,e[o]]}}return{done:!0}}))},"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=a.prototype.entries),a.prototype.inspect=function(){for(var e,t=new Array(this.size),n=this.entries(),r=0;!(e=n.next()).done;)t[r++]=e.value;return Object.defineProperty(t,"constructor",{value:a,enumerable:!1}),t},"undefined"!=typeof Symbol&&(a.prototype[Symbol.for("nodejs.util.inspect.custom")]=a.prototype.inspect),a.prototype.toJSON=function(){return this.root},a.from=function(e){var t=new a;return r(e,(function(e,n){t.set(n,e)})),t},a.SENTINEL=o,e.exports=a},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],f=t[c];if(!1===(i=n?n.call(r,u,f,c):void 0)||void 0===i&&u!==f)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,t,r){var i=t.trim().split(p);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=n(e[c]+" ",i[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var a=e+";",s=2*t+3*n+4*o;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===P||2===P&&i(l,1)?"-webkit-"+l+l:l}if(0===P||2===P&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(_,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;
vendor: 4,255 bytes, line 29
29case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return d.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(b,"tb");break;case 232:l=a.replace(b,"tb-rl");break;case 220:l=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?r:r.replace(x,"$1"),n,t)}function o(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,i,o,a,s,c,u){for(var f,d=0,h=t;d<I;++d)switch(f=M[d].call(l,e,h,n,r,i,o,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?P=1:(P=2,R=e):P=0),s}function l(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<I){var l=a(-1,n,s,s,C,A,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var f=function e(n,s,l,f,d){for(var h,p,m,b,E,k=0,x=0,S=0,_=0,M=0,R=0,N=m=h=0,j=0,B=0,F=0,D=0,z=l.length,U=z-1,$="",H="",J="",G="";j<z;){if(p=l.charCodeAt(j),j===U&&0!==x+_+S+k&&(0!==x&&(p=47===x?10:47),_=S=k=0,z++,U++),0===x+_+S+k){if(j===U&&(0<B&&($=$.replace(u,"")),0<$.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:$+=l.charAt(j)}p=59}switch(p){case 123:for(h=($=$.trim()).charCodeAt(0),m=1,D=++j;j<z;){switch(p=l.charCodeAt(j)){case 123:m++;break;case 125:m--;break;case 47:switch(p=l.charCodeAt(j+1)){case 42:case 47:e:{for(N=j+1;N<U;++N)switch(l.charCodeAt(N)){case 47:if(42===p&&42===l.charCodeAt(N-1)&&j+2!==N){j=N+1;break e}break;case 10:if(47===p){j=N+1;break e}}j=N}}break;case 91:p++;case 40:p++;case 34:case 39:for(;j++<U&&l.charCodeAt(j)!==p;);}if(0===m)break;j++}switch(m=l.substring(D,j),0===h&&(h=($=$.replace(c,"").trim()).charCodeAt(0)),h){case 64:switch(0<B&&($=$.replace(u,"")),p=$.charCodeAt(1)){case 100:case 109:case 115:case 45:B=s;break;default:B=O}if(D=(m=e(s,B,m,p,d+1)).length,0<I&&(E=a(3,m,B=t(O,$,F),s,C,A,D,p,d,f),$=B.join(""),void 0!==E&&0===(D=(m=E.trim()).length)&&(p=0,m="")),0<D)switch(p){case 115:$=$.replace(w,o);case 100:case 109:case 45:m=$+"{"+m+"}";break;case 107:m=($=$.replace(g,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=$+m,112===f&&(H+=m,m="")}else m="";break;default:m=e(s,t(s,$,F),m,f,d+1)}J+=m,m=F=B=N=h=0,$="",p=l.charCodeAt(++j);break;case 125:case 59:if(1<(D=($=(0<B?$.replace(u,""):$).trim()).length))switch(0===N&&(h=$.charCodeAt(0),45===h||96<h&&123>h)&&(D=($=$.replace(" ",":")).length),0<I&&void 0!==(E=a(1,$,s,n,C,A,H.length,f,d,f))&&0===(D=($=E.trim()).length)&&($="\0\0"),h=$.charCodeAt(0),p=$.charCodeAt(1),h){case 0:break;
29case 64:if(105===p||99===p){G+=$+l.charAt(j);break}default:58!==$.charCodeAt(D-1)&&(H+=r($,h,p,$.charCodeAt(2)))}F=B=N=h=0,$="",p=l.charCodeAt(++j)}}switch(p){case 13:case 10:47===x?x=0:0===1+h&&107!==f&&0<$.length&&(B=1,$+="\0"),0<I*L&&a(0,$,s,n,C,A,H.length,f,d,f),A=1,C++;break;case 59:case 125:if(0===x+_+S+k){A++;break}default:switch(A++,b=l.charAt(j),p){case 9:case 32:if(0===_+k+x)switch(M){case 44:case 58:case 9:case 32:b="";break;default:32!==p&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===_+x+k&&(B=F=1,b="\f"+b);break;case 108:if(0===_+x+k+T&&0<N)switch(j-N){case 2:112===M&&58===l.charCodeAt(j-3)&&(T=M);case 8:111===R&&(T=R)}break;case 58:0===_+x+k&&(N=j);break;case 44:0===x+S+_+k&&(B=1,b+="\r");break;case 34:case 39:0===x&&(_=_===p?0:0===_?p:_);break;case 91:0===_+x+S&&k++;break;case 93:0===_+x+S&&k--;break;case 41:0===_+x+k&&S--;break;case 40:if(0===_+x+k){if(0===h)switch(2*M+3*R){case 533:break;default:h=1}S++}break;case 64:0===x+S+_+k+N+m&&(m=1);break;case 42:case 47:if(!(0<_+k+S))switch(x){case 0:switch(2*p+3*l.charCodeAt(j+1)){case 235:x=47;break;case 220:D=j,x=42}break;case 42:47===p&&42===M&&D+2!==j&&(33===l.charCodeAt(D+2)&&(H+=l.substring(D,j+1)),b="",x=0)}}0===x&&($+=b)}R=M,M=p,j++}if(0<(D=H.length)){if(B=s,0<I&&(void 0!==(E=a(2,H,B,n,C,A,D,f,d,f))&&0===(H=E).length))return G+H+J;if(H=B.join(",")+"{"+H+"}",0!=P*T){switch(2!==P||i(H,2)||(T=0),T){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}T=0}}return G+H+J}(O,s,n,0,0);return 0<I&&(void 0!==(l=a(-2,f,s,s,C,A,f.length,0,0,0))&&(f=l)),"",T=0,A=C=1,f}var c=/^\0+/g,u=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,p=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,k=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,A=1,C=1,T=0,P=1,O=[],M=[],I=0,R=null,L=0;return l.use=function e(t){switch(t){case void 0:case null:I=M.length=0;break;default:if("function"==typeof t)M[I++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else L=0|!!t}return e},l.set=s,void 0!==e&&s(e),l}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return $}));var r=n(10),i=n.n(r),o=n(32),a=n.n(o);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;function s(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var l=c;function c(e,t){if(!e)throw new Error(t||"Assertion failed")}c.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var u=s((function(e,t){var n=t;function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>
vendor: 9,808 bytes, line 29
29>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}})),f=s((function(e,t){var n=t;n.assert=l,n.toArray=u.toArray,n.zero2=u.zero2,n.toHex=u.toHex,n.encode=u.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<r.length;a++){var s,l=o.andln(i-1);o.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,l=e.andln(3)+i&3,c=t.andln(3)+o&3;3===l&&(l=-1),3===c&&(c=-1),a=0==(1&l)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==c?l:-l,n[0].push(a),s=0==(1&c)?0:3!==(r=t.andln(7)+o&7)&&5!==r||2!==l?c:-c,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i.a(e,"hex","le")}})),d=f.getNAF,h=f.getJSF,p=f.assert;function m(e,t){this.type=e,this.p=new i.a(t.p,16),this.red=t.prime?i.a.red(t.prime):i.a.mont(this.p),this.zero=new i.a(0).toRed(this.red),this.one=new i.a(1).toRed(this.red),this.two=new i.a(2).toRed(this.red),this.n=t.n&&new i.a(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var g=m;function v(e,t){this.curve=e,this.type=t,this.precomputed=null}m.prototype.point=function(){throw new Error("Not implemented")},m.prototype.validate=function(){throw new Error("Not implemented")},m.prototype._fixedNafMul=function(e,t){p(e.precomputed);var n=e._getDoubles(),r=d(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;var o,a,s=[];for(o=0;o<r.length;o+=n.step){a=0;for(var l=o+n.step-1;l>=o;l--)a=(a<<1)+r[l];s.push(a)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o<s.length;o++)(a=s[o])===f?u=u.mixedAdd(n.points[o]):a===-f&&(u=u.mixedAdd(n.points[o].neg()));c=c.add(u)}return c.toP()},m.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=d(t,n,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var l=0;s>=0&&0===o[s];s--)l++;if(s>=0&&l++,a=a.dblp(l),s<0)break;var c=o[s];p(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},m.prototype._wnafMulAdd=function(e,t,n,r,i){var o,a,s,l=this._wnafT1,c=this._wnafT2,u=this._wnafT3,f=0;for(o=0;o<r;o++){var p=(s=t[o])._getNAFPoints(e);l[o]=p.wnd,c[o]=p.points}for(o=r-1;o>=1;o-=2){var m=o-1,g=o;if(1===l[m]&&1===l[g]){var v=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(v[1]=t[m].add(t[g]),v[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(v[1]=t[m].toJ().mixedAdd(t[g]),v[2]=t[m].add(t[g].neg())):(v[1]=t[m].toJ().mixedAdd(t[g]),v[2]=t[m].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],b=h(n[m],n[g]);for(f=Math.max(b[0].length,f),u[m]=new Array(f),u[g]=new Array(f),a=0;a<f;a++){var w=0|b[0][a],E=0|b[1][a];u[m][a]=y[3*(w+1)+(E+1)],u[g][a]=0,c[m]=v}}else u[m]=d(n[m],l[m],this._bitLength),u[g]=d(n[g],l[g],this._bitLength),f=Math.max(u[m].length,f),f=Math.max(u[g].length,f)}var k=this.jpoint(null,null,null),x=this._wnafT4;for(o=f;o>=0;o--){for(var S=0;o>=0;){var _=!0;for(a=0;a<r;a++)x[a]=0|u[a][o],0!==x[a]&&(_=!1);if(!_)break;S++,o--}if(o>=0&&S++,k=k.dblp(S),o<0)break;for(a=0;a<r;a++){var A=x[a];0!==A&&(A>0?s=c[a][A-1>>1]:A<0&&(s=c[a][-A-1>>1].neg()),k="affine"===s.type?k.mixedAdd(s):k.add(s))}}for(o=0;o<r;o++)c[o]=null;return i?k:k.toP()},m.BasePoint=v,v.prototype.eq=function(){throw new Error("Not implemented")},v.prototype.validate=function(){return this.curve.validate(this)},m.prototype.decodePoint=function(e,t){e=f.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?p(e[e.length-1]%2==0):7===e[0]&&p(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},v.prototype.encodeCompressed=function(e){return this.encode(e,!0)},v.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},v.prototype.encode=function(e,t){return f.encode(this._encode(t),e)},v.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},v.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},v.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},v.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},v.prototype._getBeta=function(){return null},v.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t};var y=s((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),b=f.assert;function w(e){g.call(this,"short",e),this.a=new i.a(e.a,16).toRed(this.red),this.b=new i.a(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}y(w,g);var E=w;function k(e,t,n,r){g.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i.a(t,16),this.y=new i.a(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function x(e,t,n,r){g.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i.a(0)):(this.x=new i.a(t,16),this.y=new i.a(n,16),this.z=new i.a(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}w.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i.a(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i.a(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?n=o[0]:(n=o[1],b(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i.a(e.a,16),b:new i.a(e.b,16)}})):this._getEndoBasis(n)}}},w.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.a.mont(e),n=new i.a(2).toRed(t).redInvm(),r=n.redNeg(),o=new i.a(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},w.prototype._getEndoBasis=function(e){for(var t,n,r,o,a,s,l,c,u,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i.a(1),m=new i.a(0),g=new i.a(0),v=new i.a(1),y=0;0!==d.cmpn(0);){var b=h.div(d);c=h.sub(b.mul(d)),u=g.sub(b.mul(p));var w=v.sub(b.mul(m));if(!r&&c.cmp(f)<0)t=l.neg(),n=p,r=c.neg(),o=u;else if(r&&2==++y)break;l=c,h=d,d=c,g=p,p=u,v=m,m=w}a=c.neg(),s=u;var E=r.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(E)>=0&&(a=t,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a:a,b:s}]},w.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),l=i.mul(n.b),c=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:l.add(c).neg()}},w.prototype.pointFromX=function(e,t){(e=new i.a(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(t&&!o||!t&&o)&&(r=r.redNeg()),this.point(e,r)},w.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},w.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),r[2*o]=s,r[2*o+1]=l,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,r,i,2*o,n),u=0;u<2*o;u++)r[u]=null,i[u]=null;return c},y(k,g.BasePoint),w.prototype.point=function(e,t,n){return new k(this,e,t,n)},w.prototype.pointFromJSON=function(e,t){return k.fromJSON(this,e,t)},k.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 5,109 bytes, line 29
29omputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},k.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},k.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var o=t[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},k.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},k.prototype.isInfinity=function(){return this.inf},k.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},k.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(e){return e=new i.a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},k.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},k.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},k.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},k.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},k.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},y(x,g.BasePoint),w.prototype.jpoint=function(e,t,n){return new x(this,e,t,n)},x.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},x.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},x.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),f=r.redMul(c),d=l.redSqr().redIAdd(u).redISub(f).redISub(f),h=l.redMul(f.redISub(d)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},x.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),u=n.redMul(l),f=s.redSqr().redIAdd(c).redISub(u).redISub(u),d=s.redMul(u.redISub(f)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(f,d,h)},x.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var u=o.redSqr(),f=c.redSqr(),d=f.redSqr(),h=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(l)),p=o.redMul(f),m=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),v=h.redMul(g);v=v.redIAdd(v).redISub(d);var y=c.redMul(s);
vendor: 18,662 bytes, lines 29-38
29t+1<e&&(l=l.redMul(d)),o=m,s=y,c=v}return this.curve.jpoint(o,c.redMul(i),s)},x.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},x.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),l=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(a.redISub(l)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(u).redISub(d);h=h.redIAdd(h);var p=u.redAdd(u).redIAdd(u),m=p.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},x.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(l)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),h=this.x.redSub(u).redMul(this.x.redAdd(u));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(u);var g=f.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,n)},x.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=t.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(a),u=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(u),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(f).redISub(d),p=n.redAdd(n).redMul(r);return this.curve.jpoint(u,h,p)},x.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),l=r.redIAdd(r);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var f=this.x.redMul(s).redISub(u);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(c.redMul(l.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,d,h)},x.prototype.mul=function(e,t){return e=new i.a(e,t),this.curve._wnafMul(this,e)},x.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},x.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},x.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},x.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var S=s((function(e,t){var n=t;n.base=g,n.short=E,n.mont=null,n.edwards=null})),_=s((function(e,t){var n,r=t,i=f.assert;function o(e){"short"===e.type?this.curve=new S.short(e):"edwards"===e.type?this.curve=new S.edwards(e):this.curve=new S.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(e){n=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function A(e){if(!(this instanceof A))return new A(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=u.toArray(e.entropy,e.entropyEnc||"hex"),n=u.toArray(e.nonce,e.nonceEnc||"hex"),r=u.toArray(e.pers,e.persEnc||"hex");l(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var C=A;A.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},A.prototype._hmac=function(){return new a.a.hmac(this.hash,this.K)},A.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},A.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=u.toArray(e,t),n=u.toArray(n,r),l(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},A.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=u.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(n),this._reseed++,u.encode(o,t)};var T=f.assert;function P(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var O=P;P.fromPublic=function(e,t,n){return t instanceof P?t:new P(e,{pub:t,pubEnc:n})},P.fromPrivate=function(e,t,n){return t instanceof P?t:new P(e,{priv:t,privEnc:n})},P.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},P.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},P.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},P.prototype._importPrivate=function(e,t){this.priv=new i.a(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},P.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?T(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||T(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},P.prototype.derive=function(e){return e.validate()||T(e.validate(),"public point not validated"),e.mul(this.priv).getX()},P.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},P.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},P.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var M=f.assert;function I(e,t){if(e instanceof I)return e;this._importDER(e,t)||(M(e.r&&e.s,"Signature without r or s"),this.r=new i.a(e.r,16),this.s=new i.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var R=I;function L(){this.place=0}function N(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o<r;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function j(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function B(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}I.prototype._importDER=function(e,t){e=f.toArray(e,t);var n=new L;if(48!==e[n.place++])return!1;var r=N(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=N(e,n);if(!1===o)return!1;var a=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var s=N(e,n);if(!1===s)return!1;if(e.length!==s+n.place)return!1;var l=e.slice(n.place,s+n.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new i.a(a),this.s=new i.a(l),this.recoveryParam=null,!0},I.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=j(t),n=j(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];B(r,t.length),(r=r.concat(t)).push(2),B(r,n.length);var i=r.concat(n),o=[48];return B(o,i.length),o=o.concat(i),f.encode(o,e)};var F=function(){throw new Error("unsupported")},D=f.assert;function z(e){if(!(this instanceof z))return new z(e);"string"==typeof e&&(D(Object.prototype.hasOwnProperty.call(_,e),"Unknown curve "+e),e=_[e]),e instanceof _.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var U=z;z.prototype.keyPair=function(e){return new O(this,e)},z.prototype.keyFromPrivate=function(e,t){return O.fromPrivate(this,e,t)},z.prototype.keyFromPublic=function(e,t){return O.fromPublic(this,e,t)},z.prototype.genKeyPair=function(e){e||(e={});for(var t=new C({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||F(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new i.a(2));;){var o=new i.a(t.generate(n));if(!(o.cmp(r)>0))return o.iaddn(1),this.keyFromPrivate(o)}},z.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},z.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new i.a(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),s=e.toArray("be",o),l=new C({hash:this.hash,entropy:a,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"}),c=this.n.sub(new i.a(1)),u=0;;u++){var f=r.k?r.k(u):new i.a(l.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(c)>=0)){var d=this.g.mul(f);if(!d.isInfinity()){var h=d.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var m=f.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var g=(d.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return r.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),g^=1),new R({r:p,s:m,recoveryParam:g})}}}}}},z.prototype.verify=function(e,t,n,r){e=this._truncateToN(new i.a(e,16)),n=this.keyFromPublic(n,r);var o=(t=new R(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,l=a.invm(this.n),c=l.mul(e).umod(this.n),u=l.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,n.getPublic(),u)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,n.getPublic(),u)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},z.prototype.recoverPubKey=function(e,t,n,r){D((3&n)===n,"The recovery param is more than two bits"),t=new R(t,r);var o=this.n,a=new i.a(e),s=t.r,l=t.s,c=1&n,u=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");s=u?this.curve.pointFromX(s.add(this.curve.n),c):this.curve.pointFromX(s,c);var f=t.r.invm(o),d=o.sub(a).mul(f).umod(o),h=l.mul(f).umod(o);return this.g.mulAdd(d,s,h)},z.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new R(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var $=s((function(e,t){var n=t;n.version="6.5.4",n.utils=f,n.rand=function(){throw new Error("unsupported")},n.curve=S,n.curves=_,n.ec=U,n.eddsa=null})).ec}).call(this,n(37))},function(e,t,n){(function(t,n){
30/**
31 * [js-sha3]{@link https://github.com/emn178/js-sha3}
32 *
33 * @version 0.5.7
34 * @author Chen, Yi-Cyuan [[email protected]]
35 * @copyright Chen, Yi-Cyuan 2015-2016
36 * @license MIT
37 */
38!function(){"use strict";var r="object"==typeof window?window:{};!r.JS_SHA3_NO_NODE_JS&&"object"==typeof t&&t.versions&&t.versions.node&&(r=n);for(var i=!r.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,o="0123456789abcdef".split(""),a=[0,8,16,24],s=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],l=[224,256,384,512],c=["hex","buffer","arrayBuffer","array"],u=function(e,t,n){return function(r){return new E(e,t,e).update(r)[n]()}},f=function(e,t,n){return function(r,i){return new E(e,t,i).update(r)[n]()}},d=function(e,t){var n=u(e,t,"hex");n.create=function(){return new E(e,t,e)},n.update=function(e){return n.create().update(e)};for(var r=0;r<c.length;++r){var i=c[r];n[i]=u(e,t,i)}return n},h=[{name:"keccak",padding:[1,256,65536,16777216],bits:l,createMethod:d},{name:"sha3",padding:[6,1536,393216,100663296],bits:l,createMethod:d},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var n=f(e,t,"hex");n.create=function(n){return new E(e,t,n)},n.update=function(e,t){return n.create(t).update(e)};for(var r=0;r<c.length;++r){var i=c[r];n[i]=f(e,t,i)}return n}}],p={},m=[],g=0;g<h.length;
vendor: 4,495 bytes, line 38
38++g)for(var v=h[g],y=v.bits,b=0;b<y.length;++b){var w=v.name+"_"+y[b];m.push(w),p[w]=v.createMethod(y[b],v.padding)}function E(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}E.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var n,r,i=e.length,o=this.blocks,s=this.byteCount,l=this.blockCount,c=0,u=this.s;c<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<l+1;++n)o[n]=0;if(t)for(n=this.start;c<i&&n<s;++c)o[n>>2]|=e[c]<<a[3&n++];else for(n=this.start;c<i&&n<s;++c)(r=e.charCodeAt(c))<128?o[n>>2]|=r<<a[3&n++]:r<2048?(o[n>>2]|=(192|r>>6)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]):r<55296||r>=57344?(o[n>>2]|=(224|r>>12)<<a[3&n++],o[n>>2]|=(128|r>>6&63)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++c)),o[n>>2]|=(240|r>>18)<<a[3&n++],o[n>>2]|=(128|r>>12&63)<<a[3&n++],o[n>>2]|=(128|r>>6&63)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=o[l],n=0;n<l;++n)u[n]^=o[n];k(u),this.reset=!0}else this.start=n}return this},E.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];k(r)},E.prototype.toString=E.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,a=0,s=0,l="";s<r;){for(a=0;a<t&&s<r;++a,++s)e=n[a],l+=o[e>>4&15]+o[15&e]+o[e>>12&15]+o[e>>8&15]+o[e>>20&15]+o[e>>16&15]+o[e>>28&15]+o[e>>24&15];s%t==0&&(k(n),a=0)}return i&&(e=n[a],i>0&&(l+=o[e>>4&15]+o[15&e]),i>1&&(l+=o[e>>12&15]+o[e>>8&15]),i>2&&(l+=o[e>>20&15]+o[e>>16&15])),l},E.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var l=new Uint32Array(e);a<r;){for(o=0;o<t&&a<r;++o,++a)l[a]=n[o];a%t==0&&k(n)}return i&&(l[o]=n[o],e=e.slice(0,s)),e},E.prototype.buffer=E.prototype.arrayBuffer,E.prototype.digest=E.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,l=[];s<i;){for(a=0;a<n&&s<i;++a,++s)e=s<<2,t=r[a],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;s%n==0&&k(r)}return o&&(e=s<<2,t=r[a],o>0&&(l[e]=255&t),o>1&&(l[e+1]=t>>8&255),o>2&&(l[e+2]=t>>16&255)),l};var k=function(e){var t,n,r,i,o,a,l,c,u,f,d,h,p,m,g,v,y,b,w,E,k,x,S,_,A,C,T,P,O,M,I,R,L,N,j,B,F,D,z,U,$,H,J,G,V,X,W,q,K,Z,Y,Q,ee,te,ne,re,ie,oe,ae,se,le,ce,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],l=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|l>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(l<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(c<<1|u>>>31),n=o^(u<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(f<<1|d>>>31),n=l^(d<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(h<<1|p>>>31),n=u^(p<<1|h>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(i<<1|o>>>31),n=d^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],g=e[1],X=e[11]<<4|e[10]>>>28,W=e[10]<<4|e[11]>>>28,P=e[20]<<3|e[21]>>>29,O=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,le=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,J=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,j=e[3]<<1|e[2]>>>31,v=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,q=e[22]<<10|e[23]>>>22,K=e[23]<<10|e[22]>>>22,M=e[33]<<13|e[32]>>>19,I=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,F=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,Y=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,L=e[44]<<29|e[45]>>>3,_=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>
389,ie=e[16]<<23|e[17]>>>9,D=e[26]<<25|e[27]>>>7,z=e[27]<<25|e[26]>>>7,E=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,G=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,C=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,U=e[38]<<8|e[39]>>>24,$=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~v&b,e[1]=g^~y&w,e[10]=_^~C&P,e[11]=A^~T&O,e[20]=N^~B&D,e[21]=j^~F&z,e[30]=G^~X&q,e[31]=V^~W&K,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=v^~b&E,e[3]=y^~w&k,e[12]=C^~P&M,e[13]=T^~O&I,e[22]=B^~D&U,e[23]=F^~z&$,e[32]=X^~q&Z,e[33]=W^~K&Y,e[42]=re^~oe&se,e[43]=ie^~ae&le,e[4]=b^~E&x,e[5]=w^~k&S,e[14]=P^~M&R,e[15]=O^~I&L,e[24]=D^~U&H,e[25]=z^~$&J,e[34]=q^~Z&Q,e[35]=K^~Y&ee,e[44]=oe^~se&ce,e[45]=ae^~le&ue,e[6]=E^~x&m,e[7]=k^~S&g,e[16]=M^~R&_,e[17]=I^~L&A,e[26]=U^~H&N,e[27]=$^~J&j,e[36]=Z^~Q&G,e[37]=Y^~ee&V,e[46]=se^~ce&te,e[47]=le^~ue&ne,e[8]=x^~m&v,e[9]=S^~g&y,e[18]=R^~_&C,e[19]=L^~A&T,e[28]=H^~N&B,e[29]=J^~j&F,e[38]=Q^~G&X,e[39]=ee^~V&W,e[48]=ce^~te&re,e[49]=ue^~ne&ie,e[0]^=s[r],e[1]^=s[r+1]};if(i)e.exports=p;else for(g=0;g<m.length;++g)r[m[g]]=p[m[g]]}()}).call(this,n(88),n(37))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.sha256="sha256",e.sha512="sha512"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="random/5.4.0"},function(e,t,n){"use strict";class r extends Error{constructor(e){super(e),this.name="TimeoutError"}}const i=(e,t,n,i)=>{let o;const a=new Promise((a,s)=>{if("number"!=typeof t||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");t!==1/0?(i={customTimers:{setTimeout:setTimeout,clearTimeout:clearTimeout},...i},o=i.customTimers.setTimeout.call(void 0,()=>{if("function"==typeof n){try{a(n())}catch(e){s(e)}return}const i=n instanceof Error?n:new r("string"==typeof n?n:`Promise timed out after ${t} milliseconds`);"function"==typeof e.cancel&&e.cancel(),s(i)},t),(async()=>{try{a(await e)}catch(e){s(e)}finally{i.customTimers.clearTimeout.call(void 0,o)}})()):a(e)});return a.clear=()=>{clearTimeout(o),o=void 0},a};e.exports=i,e.exports.default=i,e.exports.TimeoutError=r},function(e,t,n){"use strict";const r=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},i=({clearTimeout:e,setTimeout:t,willResolve:n})=>(i,{value:o,signal:a}={})=>{if(a&&a.aborted)return Promise.reject(r());let s,l,c;const u=e||clearTimeout,f=()=>{u(s),c(r())},d=new Promise((e,r)=>{l=()=>{a&&a.removeEventListener("abort",f),n?e(o):r(o)},c=r,s=(t||setTimeout)(l,i)});return a&&a.addEventListener("abort",f,{once:!0}),d.clear=()=>{u(s),s=null,l()},d},o=e=>{const t=i({...e,willResolve:!0});return t.reject=i({...e,willResolve:!1}),t.range=(e,n,r)=>t(((e,t)=>Math.floor(Math.random()*(t-e+1)+e))(e,n),r),t},a=o();a.createWithTimers=o,e.exports=a,e.exports.default=a},function(e,t,n){e.exports=function(){return new Worker(n.p+"d24838d9c23319b138d0.worker.js")}},function(e,t,n){"use strict";var r=n(238);function i(e,t,n){if("function"==typeof e&&(n=t,t=e,e=null),n<1)throw new Error("fastqueue concurrency must be greater than 1");var i=r(a),s=null,l=null,c=0,u=null,f={push:function(n,r){var a=i.get();a.context=e,a.release=d,a.value=n,a.callback=r||o,a.errorHandler=u,c===f.concurrency||f.paused?l?(l.next=a,l=a):(s=a,l=a,f.saturated()):(c++,t.call(e,a.value,a.worked))},drain:o,saturated:o,pause:function(){f.paused=!0},paused:!1,concurrency:n,running:function(){return c},resume:function(){if(!f.paused)return;f.paused=!1;for(var e=0;e<f.concurrency;e++)c++,d()},idle:function(){return 0===c&&0===f.length()},length:function(){var e=s,t=0;for(;e;)e=e.next,t++;return t},getQueue:function(){var e=s,t=[];for(;e;)t.push(e.value),e=e.next;return t},unshift:function(n,r){var a=i.get();a.context=e,a.release=d,a.value=n,a.callback=r||o,c===f.concurrency||f.paused?s?(a.next=s,s=a):(s=a,l=a,f.saturated()):(c++,t.call(e,a.value,a.worked))},empty:o,kill:function(){s=null,l=null,f.drain=o},killAndDrain:function(){s=null,l=null,f.drain(),f.drain=o},error:function(e){u=e}};return f;function d(n){n&&i.release(n);var r=s;r?f.paused?c--:(l===s&&(l=null),s=r.next,r.next=null,t.call(e,r.value,r.worked),null===l&&f.empty()):0==--c&&f.drain()}}function o(){}function a(){this.value=null,this.callback=o,this.next=null,this.release=o,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var r=e.callback,i=e.errorHandler,a=e.value;e.value=null,e.callback=o,e.errorHandler&&i(t,a),r.call(e.context,t,n),e.release(e)}}
38e.exports=i,e.exports.promise=function(e,t,n){"function"==typeof e&&(n=t,t=e,e=null);var r=i(e,(function(e,n){t.call(this,e).then((function(e){n(null,e)}),n)}),n),a=r.push,s=r.unshift;return r.push=function(e){var t=new Promise((function(t,n){a(e,(function(e,r){e?n(e):t(r)}))}));return t.catch(o),t},r.unshift=function(e){var t=new Promise((function(t,n){s(e,(function(e,r){e?n(e):t(r)}))}));return t.catch(o),t},r.drained=function(){var e=r.drain;return new Promise((function(t){r.drain=function(){e(),t()}}))},r}},function(e,t,n){(function(t){var r;e.exports=(r=n(0),function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=50)}([function(e,t){e.exports=r},function(e,t,n){e.exports=n(19)()},function(e,t){e.exports={EMOJI_PROPERTY_NAME:"n",EMOJI_PROPERTY_UNIFIED:"u",EMOJI_PROPERTY_SKIN_VARIATIONS:"v",EMOJI_PROPERTY_GROUP:"g",GROUP_NAME_PEOPLE:"smileys_people",GROUP_NAME_NATURE:"animals_nature",GROUP_NAME_FOOD:"food_drink",GROUP_NAME_TRAVEL:"travel_places",GROUP_NAME_ACTIVITIES:"activities",GROUP_NAME_OBJECTS:"objects",GROUP_NAME_SYMBOLS:"symbols",GROUP_NAME_FLAGS:"flags",GROUP_NAME_RECENTLY_USED:"recently_used"}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(22),i=n(23),o=n(13),a=n(24);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){"use strict";var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],l=t.base?s[0]+t.base:s[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var f=a(u),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==f?(o[f].references++,o[f].updater(d)):o.push({identifier:u,updater:m(d,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function f(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function d(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,p=0;function m(e,t){var n,r,i;if(t.singleton){var o=p++;n=h||(h=l(t)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}
vendor: 5,320 bytes, line 38
38else n=l(t),r=d.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var l=s(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=l}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(16),i=n(17),o=n(13),a=n(18);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e){e.exports=JSON.parse('["smileys_people","animals_nature","food_drink","travel_places","activities","objects","symbols","flags"]')},function(e){e.exports=JSON.parse('["neutral","1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"]')},function(e){e.exports=JSON.parse('{"travel_places":[{"n":["earth globe europe-africa","earth_africa"],"u":"1f30d"},{"n":["earth globe americas","earth_americas"],"u":"1f30e"},{"n":["earth globe asia-australia","earth_asia"],"u":"1f30f"},{"n":["globe with meridians","globe_with_meridians"],"u":"1f310"},{"n":["world_map"],"u":"1f5fa-fe0f"},{"n":["silhouette of japan","japan"],"u":"1f5fe"},{"n":["snow_capped_mountain"],"u":"1f3d4-fe0f"},{"n":["mountain"],"u":"26f0-fe0f"},{"n":["volcano"],"u":"1f30b"},{"n":["mount fuji","mount_fuji"],"u":"1f5fb"},{"n":["camping"],"u":"1f3d5-fe0f"},{"n":["beach_with_umbrella"],"u":"1f3d6-fe0f"},{"n":["desert"],"u":"1f3dc-fe0f"},{"n":["desert_island"],"u":"1f3dd-fe0f"},{"n":["national_park"],"u":"1f3de-fe0f"},{"n":["stadium"],"u":"1f3df-fe0f"},{"n":["classical_building"],"u":"1f3db-fe0f"},{"n":["building_construction"],"u":"1f3d7-fe0f"},{"n":["house_buildings"],"u":"1f3d8-fe0f"},{"n":["cityscape"],"u":"1f3d9-fe0f"},{"n":["derelict_house_building"],"u":"1f3da-fe0f"},{"n":["house building","house"],"u":"1f3e0"},{"n":["house with garden","house_with_garden"],"u":"1f3e1"},{"n":["office building","office"],"u":"1f3e2"},{"n":["japanese post office","post_office"],"u":"1f3e3"},{"n":["european post office","european_post_office"],"u":"1f3e4"},{"n":["hospital"],"u":"1f3e5"},{"n":["bank"],"u":"1f3e6"},{"n":["hotel"],"u":"1f3e8"},{"n":["love hotel","love_hotel"],"u":"1f3e9"},{"n":["convenience store","convenience_store"],"u":"1f3ea"},{"n":["school"],"u":"1f3eb"},{"n":["department store","department_store"],"u":"1f3ec"},{"n":["factory"],"u":"1f3ed"},{"n":["japanese castle","japanese_castle"],"u":"1f3ef"},{"n":["european castle","european_castle"],"u":"1f3f0"},{"n":["wedding"],"u":"1f492"},{"n":["tokyo tower","tokyo_tower"],"u":"1f5fc"},{"n":["statue of liberty","statue_of_liberty"],"u":"1f5fd"},{"n":["church"],"u":"26ea"},{"n":["mosque"],"u":"1f54c"},{"n":["synagogue"],"u":"1f54d"},{"n":["shinto_shrine"],"u":"26e9-fe0f"},{"n":["kaaba"],"u":"1f54b"},{"n":["fountain"],"u":"26f2"},{"n":["tent"],"u":"26fa"},{"n":["foggy"],"u":"1f301"},{"n":["night with stars","night_with_stars"],"u":"1f303"},{"n":["sunrise over mountains","sunrise_over_mountains"],"u":"1f304"},{"n":["sunrise"],"u":"1f305"},{"n":["cityscape at dusk","city_sunset"],"u":"1f306"},{"n":["sunset over buildings","city_sunrise"],"u":"1f307"},{"n":["bridge at night","bridge_at_night"],"u":"1f309"},{"n":["hot springs","hotsprings"],"u":"2668-fe0f"},{"n":["milky way","milky_way"],"u":"1f30c"},{"n":["carousel horse","carousel_horse"],"u":"1f3a0"},{"n":["ferris wheel","ferris_wheel"],"u":"1f3a1"},{"n":["roller coaster","roller_coaster"],"u":"1f3a2"},{"n":["barber pole","barber"],"u":"1f488"}
38,{"n":["circus tent","circus_tent"],"u":"1f3aa"},{"n":["performing arts","performing_arts"],"u":"1f3ad"},{"n":["frame_with_picture"],"u":"1f5bc-fe0f"},{"n":["artist palette","art"],"u":"1f3a8"},{"n":["slot machine","slot_machine"],"u":"1f3b0"},{"n":["steam locomotive","steam_locomotive"],"u":"1f682"},{"n":["railway car","railway_car"],"u":"1f683"},{"n":["high-speed train","bullettrain_side"],"u":"1f684"},{"n":["high-speed train with bullet nose","bullettrain_front"],"u":"1f685"},{"n":["train","train2"],"u":"1f686"},{"n":["metro"],"u":"1f687"},{"n":["light rail","light_rail"],"u":"1f688"},{"n":["station"],"u":"1f689"},{"n":["tram"],"u":"1f68a"},{"n":["monorail"],"u":"1f69d"},{"n":["mountain railway","mountain_railway"],"u":"1f69e"},{"n":["tram car","train"],"u":"1f68b"},{"n":["bus"],"u":"1f68c"},{"n":["oncoming bus","oncoming_bus"],"u":"1f68d"},{"n":["trolleybus"],"u":"1f68e"},{"n":["minibus"],"u":"1f690"},{"n":["ambulance"],"u":"1f691"},{"n":["fire engine","fire_engine"],"u":"1f692"},{"n":["police car","police_car"],"u":"1f693"},{"n":["oncoming police car","oncoming_police_car"],"u":"1f694"},{"n":["taxi"],"u":"1f695"},{"n":["oncoming taxi","oncoming_taxi"],"u":"1f696"},{"n":["automobile","car","red_car"],"u":"1f697"},{"n":["oncoming automobile","oncoming_automobile"],"u":"1f698"},{"n":["recreational vehicle","blue_car"],"u":"1f699"},{"n":["delivery truck","truck"],"u":"1f69a"},{"n":["articulated lorry","articulated_lorry"],"u":"1f69b"},{"n":["tractor"],"u":"1f69c"},{"n":["bicycle","bike"],"u":"1f6b2"},{"n":["scooter"],"u":"1f6f4"},{"n":["motor scooter","motor_scooter"],"u":"1f6f5"},{"n":["bus stop","busstop"],"u":"1f68f"},{"n":["motorway"],"u":"1f6e3-fe0f"},{"n":["railway_track"],"u":"1f6e4-fe0f"},{"n":["fuel pump","fuelpump"],"u":"26fd"},{"n":["police cars revolving light","rotating_light"],"u":"1f6a8"},{"n":["horizontal traffic light","traffic_light"],"u":"1f6a5"},{"n":["vertical traffic light","vertical_traffic_light"],"u":"1f6a6"},{"n":["construction sign","construction"],"u":"1f6a7"},{"n":["octagonal sign","octagonal_sign"],"u":"1f6d1"},{"n":["anchor"],"u":"2693"},{"n":["sailboat","boat"],"u":"26f5"},{"n":["canoe"],"u":"1f6f6"},{"n":["speedboat"],"u":"1f6a4"},{"n":["passenger_ship"],"u":"1f6f3-fe0f"},{"n":["ferry"],"u":"26f4-fe0f"},{"n":["motor_boat"],"u":"1f6e5-fe0f"},{"n":["ship"],"u":"1f6a2"},{"n":["airplane"],"u":"2708-fe0f"},{"n":["small_airplane"],"u":"1f6e9-fe0f"},{"n":["airplane departure","airplane_departure"],"u":"1f6eb"},{"n":["airplane arriving","airplane_arriving"],"u":"1f6ec"},{"n":["seat"],"u":"1f4ba"},{"n":["helicopter"],"u":"1f681"},{"n":["suspension railway","suspension_railway"],"u":"1f69f"},{"n":["mountain cableway","mountain_cableway"],"u":"1f6a0"},{"n":["aerial tramway","aerial_tramway"],"u":"1f6a1"},{"n":["satellite"],"u":"1f6f0-fe0f"},{"n":["rocket"],"u":"1f680"},{"n":["flying saucer","flying_saucer"],"u":"1f6f8"},{"n":["bellhop_bell"],"u":"1f6ce-fe0f"},{"n":["door"],"u":"1f6aa"},{"n":["bed"],"u":"1f6cf-fe0f"},{"n":["couch_and_lamp"],"u":"1f6cb-fe0f"},{"n":["toilet"],"u":"1f6bd"},{"n":["shower"],"u":"1f6bf"},{"n":["bathtub"],"u":"1f6c1"},{"n":["hourglass"],"u":"231b"},{"n":["hourglass with flowing sand","hourglass_flowing_sand"],"u":"23f3"},{"n":["watch"],"u":"231a"},{"n":["alarm clock","alarm_clock"],"u":"23f0"},{"n":["stopwatch"],"u":"23f1-fe0f"},{"n":["timer_clock"],"u":"23f2-fe0f"},{"n":["mantelpiece_clock"],"u":"1f570-fe0f"},{"n":["clock face twelve oclock","clock12"],"u":"1f55b"},{"n":["clock face twelve-thirty","clock1230"],"u":"1f567"},{"n":["clock face one oclock","clock1"],"u":"1f550"},{"n":["clock face one-thirty","clock130"],"u":"1f55c"},{"n":["clock face two oclock","clock2"],"u":"1f551"},{"n":["clock face two-thirty","clock230"],"u":"1f55d"},{"n":["clock face three oclock","clock3"],"u":"1f552"},{"n":["clock face three-thirty","clock330"],"u":"1f55e"},{"n":["clock face four oclock","clock4"],"u":"1f553"},{"n":["clock face four-thirty","clock430"],"u":"1f55f"},{"n":["clock face five oclock","clock5"],"u":"1f554"},{"n":["clock face five-thirty","clock530"],"u":"1f560"},{"n":["clock face six oclock","clock6"],"u":"1f555"},{"n":["clock face six-thirty","clock630"],"u":"1f561"},{"n":["clock face seven oclock","clock7"],"u":"1f556"},{"n":["clock face seven-thirty","clock730"],"u":"1f562"},{"n":["clock face eight oclock","clock8"],"u":"1f557"},{"n":["clock face eight-thirty","clock830"],"u":"1f563"},{"n":["clock face nine oclock","clock9"],"u":"1f558"},{"n":["clock face nine-thirty","clock930"],"u":"1f564"},{"n":["clock face ten oclock","clock10"],"u":"1f559"},{"n":["clock face ten-thirty","clock1030"],"u":"1f565"}
38,{"n":["clock face eleven oclock","clock11"],"u":"1f55a"},{"n":["clock face eleven-thirty","clock1130"],"u":"1f566"},{"n":["new moon symbol","new_moon"],"u":"1f311"},{"n":["waxing crescent moon symbol","waxing_crescent_moon"],"u":"1f312"},{"n":["first quarter moon symbol","first_quarter_moon"],"u":"1f313"},{"n":["waxing gibbous moon symbol","moon","waxing_gibbous_moon"],"u":"1f314"},{"n":["full moon symbol","full_moon"],"u":"1f315"},{"n":["waning gibbous moon symbol","waning_gibbous_moon"],"u":"1f316"},{"n":["last quarter moon symbol","last_quarter_moon"],"u":"1f317"},{"n":["waning crescent moon symbol","waning_crescent_moon"],"u":"1f318"},{"n":["crescent moon","crescent_moon"],"u":"1f319"},{"n":["new moon with face","new_moon_with_face"],"u":"1f31a"},{"n":["first quarter moon with face","first_quarter_moon_with_face"],"u":"1f31b"},{"n":["last quarter moon with face","last_quarter_moon_with_face"],"u":"1f31c"},{"n":["thermometer"],"u":"1f321-fe0f"},{"n":["black sun with rays","sunny"],"u":"2600-fe0f"},{"n":["full moon with face","full_moon_with_face"],"u":"1f31d"},{"n":["sun with face","sun_with_face"],"u":"1f31e"},{"n":["white medium star","star"],"u":"2b50"},{"n":["glowing star","star2"],"u":"1f31f"},{"n":["shooting star","stars"],"u":"1f320"},{"n":["cloud"],"u":"2601-fe0f"},{"n":["sun behind cloud","partly_sunny"],"u":"26c5"},{"n":["thunder_cloud_and_rain"],"u":"26c8-fe0f"},{"n":["mostly_sunny","sun_small_cloud"],"u":"1f324-fe0f"},{"n":["barely_sunny","sun_behind_cloud"],"u":"1f325-fe0f"},{"n":["partly_sunny_rain","sun_behind_rain_cloud"],"u":"1f326-fe0f"},{"n":["rain_cloud"],"u":"1f327-fe0f"},{"n":["snow_cloud"],"u":"1f328-fe0f"},{"n":["lightning","lightning_cloud"],"u":"1f329-fe0f"},{"n":["tornado","tornado_cloud"],"u":"1f32a-fe0f"},{"n":["fog"],"u":"1f32b-fe0f"},{"n":["wind_blowing_face"],"u":"1f32c-fe0f"},{"n":["cyclone"],"u":"1f300"},{"n":["rainbow"],"u":"1f308"},{"n":["closed umbrella","closed_umbrella"],"u":"1f302"},{"n":["umbrella"],"u":"2602-fe0f"},{"n":["umbrella with rain drops","umbrella_with_rain_drops"],"u":"2614"},{"n":["umbrella_on_ground"],"u":"26f1-fe0f"},{"n":["high voltage sign","zap"],"u":"26a1"},{"n":["snowflake"],"u":"2744-fe0f"},{"n":["snowman"],"u":"2603-fe0f"},{"n":["snowman without snow","snowman_without_snow"],"u":"26c4"},{"n":["comet"],"u":"2604-fe0f"},{"n":["fire"],"u":"1f525"},{"n":["droplet"],"u":"1f4a7"},{"n":["water wave","ocean"],"u":"1f30a"}],"food_drink":[{"n":["grapes"],"u":"1f347"},{"n":["melon"],"u":"1f348"},{"n":["watermelon"],"u":"1f349"},{"n":["tangerine"],"u":"1f34a"},{"n":["lemon"],"u":"1f34b"},{"n":["banana"],"u":"1f34c"},{"n":["pineapple"],"u":"1f34d"},{"n":["red apple","apple"],"u":"1f34e"},{"n":["green apple","green_apple"],"u":"1f34f"},{"n":["pear"],"u":"1f350"},{"n":["peach"],"u":"1f351"},{"n":["cherries"],"u":"1f352"},{"n":["strawberry"],"u":"1f353"},{"n":["kiwifruit"],"u":"1f95d"},{"n":["tomato"],"u":"1f345"},{"n":["coconut"],"u":"1f965"},{"n":["avocado"],"u":"1f951"},{"n":["aubergine","eggplant"],"u":"1f346"},{"n":["potato"],"u":"1f954"},{"n":["carrot"],"u":"1f955"},{"n":["ear of maize","corn"],"u":"1f33d"},{"n":["hot_pepper"],"u":"1f336-fe0f"},{"n":["cucumber"],"u":"1f952"},{"n":["broccoli"],"u":"1f966"},{"n":["mushroom"],"u":"1f344"},{"n":["peanuts"],"u":"1f95c"},{"n":["chestnut"],"u":"1f330"},{"n":["bread"],"u":"1f35e"},{"n":["croissant"],"u":"1f950"},{"n":["baguette bread","baguette_bread"],"u":"1f956"},{"n":["pretzel"],"u":"1f968"},{"n":["pancakes"],"u":"1f95e"},{"n":["cheese wedge","cheese_wedge"],"u":"1f9c0"},{"n":["meat on bone","meat_on_bone"],"u":"1f356"},{"n":["poultry leg","poultry_leg"],"u":"1f357"},{"n":["cut of meat","cut_of_meat"],"u":"1f969"},{"n":["bacon"],"u":"1f953"},{"n":["hamburger"],"u":"1f354"},{"n":["french fries","fries"],"u":"1f35f"},{"n":["slice of pizza","pizza"],"u":"1f355"},{"n":["hot dog","hotdog"],"u":"1f32d"},{"n":["sandwich"],"u":"1f96a"},{"n":["taco"],"u":"1f32e"},{"n":["burrito"],"u":"1f32f"},{"n":["stuffed flatbread","stuffed_flatbread"],"u":"1f959"},{"n":["egg"],"u":"1f95a"},{"n":["cooking","fried_egg"],"u":"1f373"},{"n":["shallow pan of food","shallow_pan_of_food"],"u":"1f958"},{"n":["pot of food","stew"],"u":"1f372"},{"n":["bowl with spoon","bowl_with_spoon"],"u":"1f963"},{"n":["green salad","green_salad"],"u":"1f957"},{"n":["popcorn"],"u":"1f37f"},{"n":["canned food","canned_food"],"u":"1f96b"},{"n":["bento box","bento"],"u":"1f371"},{"n":["rice cracker","rice_cracker"],"u":"1f358"},{"n":["rice ball","rice_ball"],"u":"1f359"},{"n":["cooked rice","rice"],"u":"1f35a"},{"n":["curry and rice","curry"],"u":"1f35b"},{"n":["steaming bowl","ramen"],"u":"1f35c"},{"n":["spaghetti"],"u":"1f35d"},{"n":["roasted sweet potato","sweet_potato"],"u":"1f360"},{"n":["oden"],"u":"1f362"},{"n":["sushi"],"u":"1f363"},{"n":["fried shrimp","fried_shrimp"],"u":"1f364"},{"n":["fish cake with swirl design","fish_cake"],"u":"1f365"},{"n":["dango"],"u":"1f361"},{"n":["dumpling"],"u":"1f95f"},{"n":["fortune cookie","fortune_cookie"],"u":"1f960"},{"n":["takeout box","takeout_box"],"u":"1f961"},{"n":["soft ice cream","icecream"],"u":"1f366"},{"n":["shaved ice","shaved_ice"],"u":"1f367"},{"n":["ice cream","ice_cream"],"u":"1f368"},{"n":["doughnut"],"u":"1f369"},{"n":["cookie"],"u":"1f36a"},{"n":["birthday cake","birthday"],"u":"1f382"},{"n":["shortcake","cake"],"u":"1f370"},{"n":["pie"],"u":"1f967"},{"n":["chocolate bar","chocolate_bar"],"u":"1f36b"},{"n":["candy"],"u":"1f36c"},{"n":["lollipop"],"u":"1f36d"},{"n":["custard"],"u":"1f36e"},{"n":["honey pot","honey_pot"],"u":"1f36f"},{"n":["baby bottle","baby_bottle"],"u":"1f37c"},{"n":["glass of milk","glass_of_milk"],"u":"1f95b"},{"n":["hot beverage","coffee"],"u":"2615"},{"n":["teacup without handle","tea"],"u":"1f375"},{"n":["sake bottle and cup","sake"],"u":"1f376"},{"n":["bottle with popping cork","champagne"],"u":"1f37e"},{"n":["wine glass","wine_glass"],"u":"1f377"},{"n":["cocktail glass","cocktail"],"u":"1f378"},{"n":["tropical drink","tropical_drink"],"u":"1f379"},{"n":["beer mug","beer"],"u":"1f37a"},{"n":["clinking beer mugs","beers"],"u":"1f37b"},{"n":["clinking glasses","clinking_glasses"],"u":"1f942"},{"n":["tumbler glass","tumbler_glass"],"u":"1f943"}
38,{"n":["cup with straw","cup_with_straw"],"u":"1f964"},{"n":["chopsticks"],"u":"1f962"},{"n":["knife_fork_plate"],"u":"1f37d-fe0f"},{"n":["fork and knife","fork_and_knife"],"u":"1f374"},{"n":["spoon"],"u":"1f944"},{"n":["hocho","knife"],"u":"1f52a"},{"n":["amphora"],"u":"1f3fa"}],"activities":[{"n":["jack-o-lantern","jack_o_lantern"],"u":"1f383"},{"n":["christmas tree","christmas_tree"],"u":"1f384"},{"n":["fireworks"],"u":"1f386"},{"n":["firework sparkler","sparkler"],"u":"1f387"},{"n":["sparkles"],"u":"2728"},{"n":["balloon"],"u":"1f388"},{"n":["party popper","tada"],"u":"1f389"},{"n":["confetti ball","confetti_ball"],"u":"1f38a"},{"n":["tanabata tree","tanabata_tree"],"u":"1f38b"},{"n":["pine decoration","bamboo"],"u":"1f38d"},{"n":["japanese dolls","dolls"],"u":"1f38e"},{"n":["carp streamer","flags"],"u":"1f38f"},{"n":["wind chime","wind_chime"],"u":"1f390"},{"n":["moon viewing ceremony","rice_scene"],"u":"1f391"},{"n":["ribbon"],"u":"1f380"},{"n":["wrapped present","gift"],"u":"1f381"},{"n":["reminder_ribbon"],"u":"1f397-fe0f"},{"n":["admission_tickets"],"u":"1f39f-fe0f"},{"n":["ticket"],"u":"1f3ab"},{"n":["medal"],"u":"1f396-fe0f"},{"n":["trophy"],"u":"1f3c6"},{"n":["sports medal","sports_medal"],"u":"1f3c5"},{"n":["first place medal","first_place_medal"],"u":"1f947"},{"n":["second place medal","second_place_medal"],"u":"1f948"},{"n":["third place medal","third_place_medal"],"u":"1f949"},{"n":["soccer ball","soccer"],"u":"26bd"},{"n":["baseball"],"u":"26be"},{"n":["basketball and hoop","basketball"],"u":"1f3c0"},{"n":["volleyball"],"u":"1f3d0"},{"n":["american football","football"],"u":"1f3c8"},{"n":["rugby football","rugby_football"],"u":"1f3c9"},{"n":["tennis racquet and ball","tennis"],"u":"1f3be"},{"n":["billiards","8ball"],"u":"1f3b1"},{"n":["bowling"],"u":"1f3b3"},{"n":["cricket bat and ball","cricket_bat_and_ball"],"u":"1f3cf"},{"n":["field hockey stick and ball","field_hockey_stick_and_ball"],"u":"1f3d1"},{"n":["ice hockey stick and puck","ice_hockey_stick_and_puck"],"u":"1f3d2"},{"n":["table tennis paddle and ball","table_tennis_paddle_and_ball"],"u":"1f3d3"},{"n":["badminton racquet and shuttlecock","badminton_racquet_and_shuttlecock"],"u":"1f3f8"},{"n":["boxing glove","boxing_glove"],"u":"1f94a"},{"n":["martial arts uniform","martial_arts_uniform"],"u":"1f94b"},{"n":["goal net","goal_net"],"u":"1f945"},{"n":["direct hit","dart"],"u":"1f3af"},{"n":["flag in hole","golf"],"u":"26f3"},{"n":["ice_skate"],"u":"26f8-fe0f"},{"n":["fishing pole and fish","fishing_pole_and_fish"],"u":"1f3a3"},{"n":["running shirt with sash","running_shirt_with_sash"],"u":"1f3bd"},{"n":["ski and ski boot","ski"],"u":"1f3bf"},{"n":["sled"],"u":"1f6f7"},{"n":["curling stone","curling_stone"],"u":"1f94c"},{"n":["video game","video_game"],"u":"1f3ae"},{"n":["joystick"],"u":"1f579-fe0f"},{"n":["game die","game_die"],"u":"1f3b2"},{"n":["black spade suit","spades"],"u":"2660-fe0f"},{"n":["black heart suit","hearts"],"u":"2665-fe0f"},{"n":["black diamond suit","diamonds"],"u":"2666-fe0f"},{"n":["black club suit","clubs"],"u":"2663-fe0f"},{"n":["playing card black joker","black_joker"],"u":"1f0cf"},{"n":["mahjong tile red dragon","mahjong"],"u":"1f004"},{"n":["flower playing cards","flower_playing_cards"],"u":"1f3b4"}],"flags":[{"n":["chequered flag","checkered_flag"],"u":"1f3c1"},{"n":["triangular flag on post","triangular_flag_on_post"],"u":"1f6a9"},{"n":["crossed flags","crossed_flags"],"u":"1f38c"},{"n":["waving black flag","waving_black_flag"],"u":"1f3f4"},{"n":["waving_white_flag"],"u":"1f3f3-fe0f"},{"n":["rainbow-flag"],"u":"1f3f3-fe0f-200d-1f308"},{"n":["ascension island flag","flag-ac"],"u":"1f1e6-1f1e8"},{"n":["andorra flag","flag-ad"],"u":"1f1e6-1f1e9"},{"n":["united arab emirates flag","flag-ae"],"u":"1f1e6-1f1ea"},{"n":["afghanistan flag","flag-af"],"u":"1f1e6-1f1eb"},{"n":["antigua & barbuda flag","flag-ag"],"u":"1f1e6-1f1ec"},{"n":["anguilla flag","flag-ai"],"u":"1f1e6-1f1ee"},{"n":["albania flag","flag-al"],"u":"1f1e6-1f1f1"},{"n":["armenia flag","flag-am"],"u":"1f1e6-1f1f2"},{"n":["angola flag","flag-ao"],"u":"1f1e6-1f1f4"}
38,{"n":["antarctica flag","flag-aq"],"u":"1f1e6-1f1f6"},{"n":["argentina flag","flag-ar"],"u":"1f1e6-1f1f7"},{"n":["american samoa flag","flag-as"],"u":"1f1e6-1f1f8"},{"n":["austria flag","flag-at"],"u":"1f1e6-1f1f9"},{"n":["australia flag","flag-au"],"u":"1f1e6-1f1fa"},{"n":["aruba flag","flag-aw"],"u":"1f1e6-1f1fc"},{"n":["åland islands flag","flag-ax"],"u":"1f1e6-1f1fd"},{"n":["azerbaijan flag","flag-az"],"u":"1f1e6-1f1ff"},{"n":["bosnia & herzegovina flag","flag-ba"],"u":"1f1e7-1f1e6"},{"n":["barbados flag","flag-bb"],"u":"1f1e7-1f1e7"},{"n":["bangladesh flag","flag-bd"],"u":"1f1e7-1f1e9"},{"n":["belgium flag","flag-be"],"u":"1f1e7-1f1ea"},{"n":["burkina faso flag","flag-bf"],"u":"1f1e7-1f1eb"},{"n":["bulgaria flag","flag-bg"],"u":"1f1e7-1f1ec"},{"n":["bahrain flag","flag-bh"],"u":"1f1e7-1f1ed"},{"n":["burundi flag","flag-bi"],"u":"1f1e7-1f1ee"},{"n":["benin flag","flag-bj"],"u":"1f1e7-1f1ef"},{"n":["st. barthélemy flag","flag-bl"],"u":"1f1e7-1f1f1"},{"n":["bermuda flag","flag-bm"],"u":"1f1e7-1f1f2"},{"n":["brunei flag","flag-bn"],"u":"1f1e7-1f1f3"},{"n":["bolivia flag","flag-bo"],"u":"1f1e7-1f1f4"},{"n":["caribbean netherlands flag","flag-bq"],"u":"1f1e7-1f1f6"},{"n":["brazil flag","flag-br"],"u":"1f1e7-1f1f7"},{"n":["bahamas flag","flag-bs"],"u":"1f1e7-1f1f8"},{"n":["bhutan flag","flag-bt"],"u":"1f1e7-1f1f9"},{"n":["bouvet island flag","flag-bv"],"u":"1f1e7-1f1fb"},{"n":["botswana flag","flag-bw"],"u":"1f1e7-1f1fc"},{"n":["belarus flag","flag-by"],"u":"1f1e7-1f1fe"},{"n":["belize flag","flag-bz"],"u":"1f1e7-1f1ff"},{"n":["canada flag","flag-ca"],"u":"1f1e8-1f1e6"},{"n":["cocos (keeling) islands flag","flag-cc"],"u":"1f1e8-1f1e8"},{"n":["congo - kinshasa flag","flag-cd"],"u":"1f1e8-1f1e9"},{"n":["central african republic flag","flag-cf"],"u":"1f1e8-1f1eb"},{"n":["congo - brazzaville flag","flag-cg"],"u":"1f1e8-1f1ec"},{"n":["switzerland flag","flag-ch"],"u":"1f1e8-1f1ed"},{"n":["côte d’ivoire flag","flag-ci"],"u":"1f1e8-1f1ee"},{"n":["cook islands flag","flag-ck"],"u":"1f1e8-1f1f0"},{"n":["chile flag","flag-cl"],"u":"1f1e8-1f1f1"},{"n":["cameroon flag","flag-cm"],"u":"1f1e8-1f1f2"},{"n":["china flag","cn","flag-cn"],"u":"1f1e8-1f1f3"},{"n":["colombia flag","flag-co"],"u":"1f1e8-1f1f4"},{"n":["clipperton island flag","flag-cp"],"u":"1f1e8-1f1f5"},{"n":["costa rica flag","flag-cr"],"u":"1f1e8-1f1f7"},{"n":["cuba flag","flag-cu"],"u":"1f1e8-1f1fa"},{"n":["cape verde flag","flag-cv"],"u":"1f1e8-1f1fb"},{"n":["curaçao flag","flag-cw"],"u":"1f1e8-1f1fc"},{"n":["christmas island flag","flag-cx"],"u":"1f1e8-1f1fd"},{"n":["cyprus flag","flag-cy"],"u":"1f1e8-1f1fe"},{"n":["czechia flag","flag-cz"],"u":"1f1e8-1f1ff"},{"n":["germany flag","de","flag-de"],"u":"1f1e9-1f1ea"},{"n":["diego garcia flag","flag-dg"],"u":"1f1e9-1f1ec"},{"n":["djibouti flag","flag-dj"],"u":"1f1e9-1f1ef"},{"n":["denmark flag","flag-dk"],"u":"1f1e9-1f1f0"},{"n":["dominica flag","flag-dm"],"u":"1f1e9-1f1f2"},{"n":["dominican republic flag","flag-do"],"u":"1f1e9-1f1f4"},{"n":["algeria flag","flag-dz"],"u":"1f1e9-1f1ff"},{"n":["ceuta & melilla flag","flag-ea"],"u":"1f1ea-1f1e6"},{"n":["ecuador flag","flag-ec"],"u":"1f1ea-1f1e8"},{"n":["estonia flag","flag-ee"],"u":"1f1ea-1f1ea"},{"n":["egypt flag","flag-eg"],"u":"1f1ea-1f1ec"},{"n":["western sahara flag","flag-eh"],"u":"1f1ea-1f1ed"},{"n":["eritrea flag","flag-er"],"u":"1f1ea-1f1f7"},{"n":["spain flag","es","flag-es"],"u":"1f1ea-1f1f8"},{"n":["ethiopia flag","flag-et"],"u":"1f1ea-1f1f9"},{"n":["european union flag","flag-eu"],"u":"1f1ea-1f1fa"},{"n":["finland flag","flag-fi"],"u":"1f1eb-1f1ee"},{"n":["fiji flag","flag-fj"],"u":"1f1eb-1f1ef"},{"n":["falkland islands flag","flag-fk"],"u":"1f1eb-1f1f0"},{"n":["micronesia flag","flag-fm"],"u":"1f1eb-1f1f2"},{"n":["faroe islands flag","flag-fo"],"u":"1f1eb-1f1f4"},{"n":["france flag","fr","flag-fr"],"u":"1f1eb-1f1f7"},{"n":["gabon flag","flag-ga"],"u":"1f1ec-1f1e6"},{"n":["united kingdom flag","gb","uk","flag-gb"],"u":"1f1ec-1f1e7"},{"n":["grenada flag","flag-gd"],"u":"1f1ec-1f1e9"},{"n":["georgia flag","flag-ge"],"u":"1f1ec-1f1ea"},{"n":["french guiana flag","flag-gf"],"u":"1f1ec-1f1eb"},{"n":["guernsey flag","flag-gg"],"u":"1f1ec-1f1ec"},{"n":["ghana flag","flag-gh"],"u":"1f1ec-1f1ed"},{"n":["gibraltar flag","flag-gi"],"u":"1f1ec-1f1ee"},{"n":["greenland flag","flag-gl"],"u":"1f1ec-1f1f1"},{"n":["gambia flag","flag-gm"],"u":"1f1ec-1f1f2"},{"n":["guinea flag","flag-gn"],"u":"1f1ec-1f1f3"},{"n":["guadeloupe flag","flag-gp"],"u":"1f1ec-1f1f5"}
38,{"n":["equatorial guinea flag","flag-gq"],"u":"1f1ec-1f1f6"},{"n":["greece flag","flag-gr"],"u":"1f1ec-1f1f7"},{"n":["south georgia & south sandwich islands flag","flag-gs"],"u":"1f1ec-1f1f8"},{"n":["guatemala flag","flag-gt"],"u":"1f1ec-1f1f9"},{"n":["guam flag","flag-gu"],"u":"1f1ec-1f1fa"},{"n":["guinea-bissau flag","flag-gw"],"u":"1f1ec-1f1fc"},{"n":["guyana flag","flag-gy"],"u":"1f1ec-1f1fe"},{"n":["hong kong sar china flag","flag-hk"],"u":"1f1ed-1f1f0"},{"n":["heard & mcdonald islands flag","flag-hm"],"u":"1f1ed-1f1f2"},{"n":["honduras flag","flag-hn"],"u":"1f1ed-1f1f3"},{"n":["croatia flag","flag-hr"],"u":"1f1ed-1f1f7"},{"n":["haiti flag","flag-ht"],"u":"1f1ed-1f1f9"},{"n":["hungary flag","flag-hu"],"u":"1f1ed-1f1fa"},{"n":["canary islands flag","flag-ic"],"u":"1f1ee-1f1e8"},{"n":["indonesia flag","flag-id"],"u":"1f1ee-1f1e9"},{"n":["ireland flag","flag-ie"],"u":"1f1ee-1f1ea"},{"n":["israel flag","flag-il"],"u":"1f1ee-1f1f1"},{"n":["isle of man flag","flag-im"],"u":"1f1ee-1f1f2"},{"n":["india flag","flag-in"],"u":"1f1ee-1f1f3"},{"n":["british indian ocean territory flag","flag-io"],"u":"1f1ee-1f1f4"},{"n":["iraq flag","flag-iq"],"u":"1f1ee-1f1f6"},{"n":["iran flag","flag-ir"],"u":"1f1ee-1f1f7"},{"n":["iceland flag","flag-is"],"u":"1f1ee-1f1f8"},{"n":["italy flag","it","flag-it"],"u":"1f1ee-1f1f9"},{"n":["jersey flag","flag-je"],"u":"1f1ef-1f1ea"},{"n":["jamaica flag","flag-jm"],"u":"1f1ef-1f1f2"},{"n":["jordan flag","flag-jo"],"u":"1f1ef-1f1f4"},{"n":["japan flag","jp","flag-jp"],"u":"1f1ef-1f1f5"},{"n":["kenya flag","flag-ke"],"u":"1f1f0-1f1ea"},{"n":["kyrgyzstan flag","flag-kg"],"u":"1f1f0-1f1ec"},{"n":["cambodia flag","flag-kh"],"u":"1f1f0-1f1ed"},{"n":["kiribati flag","flag-ki"],"u":"1f1f0-1f1ee"},{"n":["comoros flag","flag-km"],"u":"1f1f0-1f1f2"},{"n":["st. kitts & nevis flag","flag-kn"],"u":"1f1f0-1f1f3"},{"n":["north korea flag","flag-kp"],"u":"1f1f0-1f1f5"},{"n":["south korea flag","kr","flag-kr"],"u":"1f1f0-1f1f7"},{"n":["kuwait flag","flag-kw"],"u":"1f1f0-1f1fc"},{"n":["cayman islands flag","flag-ky"],"u":"1f1f0-1f1fe"},{"n":["kazakhstan flag","flag-kz"],"u":"1f1f0-1f1ff"},{"n":["laos flag","flag-la"],"u":"1f1f1-1f1e6"},{"n":["lebanon flag","flag-lb"],"u":"1f1f1-1f1e7"},{"n":["st. lucia flag","flag-lc"],"u":"1f1f1-1f1e8"},{"n":["liechtenstein flag","flag-li"],"u":"1f1f1-1f1ee"},{"n":["sri lanka flag","flag-lk"],"u":"1f1f1-1f1f0"},{"n":["liberia flag","flag-lr"],"u":"1f1f1-1f1f7"},{"n":["lesotho flag","flag-ls"],"u":"1f1f1-1f1f8"},{"n":["lithuania flag","flag-lt"],"u":"1f1f1-1f1f9"},{"n":["luxembourg flag","flag-lu"],"u":"1f1f1-1f1fa"},{"n":["latvia flag","flag-lv"],"u":"1f1f1-1f1fb"},{"n":["libya flag","flag-ly"],"u":"1f1f1-1f1fe"},{"n":["morocco flag","flag-ma"],"u":"1f1f2-1f1e6"},{"n":["monaco flag","flag-mc"],"u":"1f1f2-1f1e8"},{"n":["moldova flag","flag-md"],"u":"1f1f2-1f1e9"},{"n":["montenegro flag","flag-me"],"u":"1f1f2-1f1ea"},{"n":["st. martin flag","flag-mf"],"u":"1f1f2-1f1eb"},{"n":["madagascar flag","flag-mg"],"u":"1f1f2-1f1ec"},{"n":["marshall islands flag","flag-mh"],"u":"1f1f2-1f1ed"},{"n":["macedonia flag","flag-mk"],"u":"1f1f2-1f1f0"},{"n":["mali flag","flag-ml"],"u":"1f1f2-1f1f1"},{"n":["myanmar (burma) flag","flag-mm"],"u":"1f1f2-1f1f2"},{"n":["mongolia flag","flag-mn"],"u":"1f1f2-1f1f3"},{"n":["macau sar china flag","flag-mo"],"u":"1f1f2-1f1f4"},{"n":["northern mariana islands flag","flag-mp"],"u":"1f1f2-1f1f5"},{"n":["martinique flag","flag-mq"],"u":"1f1f2-1f1f6"},{"n":["mauritania flag","flag-mr"],"u":"1f1f2-1f1f7"},{"n":["montserrat flag","flag-ms"],"u":"1f1f2-1f1f8"},{"n":["malta flag","flag-mt"],"u":"1f1f2-1f1f9"},{"n":["mauritius flag","flag-mu"],"u":"1f1f2-1f1fa"},{"n":["maldives flag","flag-mv"],"u":"1f1f2-1f1fb"},{"n":["malawi flag","flag-mw"],"u":"1f1f2-1f1fc"},{"n":["mexico flag","flag-mx"],"u":"1f1f2-1f1fd"},{"n":["malaysia flag","flag-my"],"u":"1f1f2-1f1fe"},{"n":["mozambique flag","flag-mz"],"u":"1f1f2-1f1ff"},{"n":["namibia flag","flag-na"],"u":"1f1f3-1f1e6"},{"n":["new caledonia flag","flag-nc"],"u":"1f1f3-1f1e8"},{"n":["niger flag","flag-ne"],"u":"1f1f3-1f1ea"},{"n":["norfolk island flag","flag-nf"],"u":"1f1f3-1f1eb"},{"n":["nigeria flag","flag-ng"],"u":"1f1f3-1f1ec"},{"n":["nicaragua flag","flag-ni"],"u":"1f1f3-1f1ee"},{"n":["netherlands flag","flag-nl"],"u":"1f1f3-1f1f1"},{"n":["norway flag","flag-no"],"u":"1f1f3-1f1f4"},{"n":["nepal flag","flag-np"],"u":"1f1f3-1f1f5"},{"n":["nauru flag","flag-nr"],"u":"1f1f3-1f1f7"},{"n":["niue flag","flag-nu"],"u":"1f1f3-1f1fa"},{"n":["new zealand flag","flag-nz"],"u":"1f1f3-1f1ff"},{"n":["oman flag","flag-om"],"u":"1f1f4-1f1f2"},{"n":["panama flag","flag-pa"],"u":"1f1f5-1f1e6"},{"n":["peru flag","flag-pe"],"u":"1f1f5-1f1ea"},{"n":["french polynesia flag","flag-pf"],"u":"1f1f5-1f1eb"},{"n":["papua new guinea flag","flag-pg"],"u":"1f1f5-1f1ec"},{"n":["philippines flag","flag-ph"],"u":"1f1f5-1f1ed"},{"n":["pakistan flag","flag-pk"],"u":"1f1f5-1f1f0"},{"n":["poland flag","flag-pl"],"u":"1f1f5-1f1f1"},{"n":["st. pierre & miquelon flag","flag-pm"],"u":"1f1f5-1f1f2"},{"n":["pitcairn islands flag","flag-pn"],"u":"1f1f5-1f1f3"},{"n":["puerto rico flag","flag-pr"],"u":"1f1f5-1f1f7"},{"n":["palestinian territories flag","flag-ps"],"u":"1f1f5-1f1f8"},{"n":["portugal flag","flag-pt"],"u":"1f1f5-1f1f9"},{"n":["palau flag","flag-pw"],"u":"1f1f5-1f1fc"},{"n":["paraguay flag","flag-py"],"u":"1f1f5-1f1fe"},{"n":["qatar flag","flag-qa"],"u":"1f1f6-1f1e6"},{"n":["réunion flag","flag-re"],"u":"1f1f7-1f1ea"},{"n":["romania flag","flag-ro"],"u":"1f1f7-1f1f4"},{"n":["serbia flag","flag-rs"],"u":"1f1f7-1f1f8"},{"n":["russia flag","ru","flag-ru"],"u":"1f1f7-1f1fa"},{"n":["rwanda flag","flag-rw"],"u":"1f1f7-1f1fc"},{"n":["saudi arabia flag","flag-sa"],"u":"1f1f8-1f1e6"},{"n":["solomon islands flag","flag-sb"],"u":"1f1f8-1f1e7"},{"n":["seychelles flag","flag-sc"],"u":"1f1f8-1f1e8"},{"n":["sudan flag","flag-sd"],"u":"1f1f8-1f1e9"},{"n":["sweden flag","flag-se"],"u":"1f1f8-1f1ea"},{"n":["singapore flag","flag-sg"],"u":"1f1f8-1f1ec"},{"n":["st. helena flag","flag-sh"],"u":"1f1f8-1f1ed"},{"n":["slovenia flag","flag-si"],"u":"1f1f8-1f1ee"},{"n":["svalbard & jan mayen flag","flag-sj"],"u":"1f1f8-1f1ef"},{"n":["slovakia flag","flag-sk"],"u":"1f1f8-1f1f0"},{"n":["sierra leone flag","flag-sl"],"u":"1f1f8-1f1f1"},{"n":["san marino flag","flag-sm"],"u":"1f1f8-1f1f2"},{"n":["senegal flag","flag-sn"],"u":"1f1f8-1f1f3"},{"n":["somalia flag","flag-so"],"u":"1f1f8-1f1f4"},{"n":["suriname flag","flag-sr"],"u":"1f1f8-1f1f7"},{"n":["south sudan flag","flag-ss"],"u":"1f1f8-1f1f8"},{"n":["são tomé & príncipe flag","flag-st"],"u":"1f1f8-1f1f9"},{"n":["el salvador flag","flag-sv"],"u":"1f1f8-1f1fb"},{"n":["sint maarten flag","flag-sx"],"u":"1f1f8-1f1fd"},{"n":["syria flag","flag-sy"],"u":"1f1f8-1f1fe"},{"n":["swaziland flag","flag-sz"],"u":"1f1f8-1f1ff"},{"n":["tristan da cunha flag","flag-ta"],"u":"1f1f9-1f1e6"},{"n":["turks & caicos islands flag","flag-tc"],"u":"1f1f9-1f1e8"},{"n":["chad flag","flag-td"],"u":"1f1f9-1f1e9"},{"n":["french southern territories flag","flag-tf"],"u":"1f1f9-1f1eb"},{"n":["togo flag","flag-tg"],"u":"1f1f9-1f1ec"},{"n":["thailand flag","flag-th"],"u":"1f1f9-1f1ed"},{"n":["tajikistan flag","flag-tj"],"u":"1f1f9-1f1ef"},{"n":["tokelau flag","flag-tk"],"u":"1f1f9-1f1f0"},{"n":["timor-leste flag","flag-tl"],"u":"1f1f9-1f1f1"},{"n":["turkmenistan flag","flag-tm"],"u":"1f1f9-1f1f2"},{"n":["tunisia flag","flag-tn"],"u":"1f1f9-1f1f3"},{"n":["tonga flag","flag-to"],"u":"1f1f9-1f1f4"},{"n":["turkey flag","flag-tr"],"u":"1f1f9-1f1f7"},{"n":["trinidad & tobago flag","flag-tt"],"u":"1f1f9-1f1f9"},{"n":["tuvalu flag","flag-tv"],"u":"1f1f9-1f1fb"},{"n":["taiwan flag","flag-tw"],"u":"1f1f9-1f1fc"},{"n":["tanzania flag","flag-tz"],"u":"1f1f9-1f1ff"},{"n":["ukraine flag","flag-ua"],"u":"1f1fa-1f1e6"},{"n":["uganda flag","flag-ug"],"u":"1f1fa-1f1ec"},{"n":["u.s. outlying islands flag","flag-um"],"u":"1f1fa-1f1f2"},{"n":["united nations flag","flag-un"],"u":"1f1fa-1f1f3"},{"n":["united states flag","us","flag-us"],"u":"1f1fa-1f1f8"},{"n":["uruguay flag","flag-uy"],"u":"1f1fa-1f1fe"},{"n":["uzbekistan flag","flag-uz"],"u":"1f1fa-1f1ff"},{"n":["vatican city flag","flag-va"],"u":"1f1fb-1f1e6"},{"n":["st. vincent & grenadines flag","flag-vc"],"u":"1f1fb-1f1e8"},{"n":["venezuela flag","flag-ve"],"u":"1f1fb-1f1ea"},{"n":["british virgin islands flag","flag-vg"],"u":"1f1fb-1f1ec"},{"n":["u.s. virgin islands flag","flag-vi"],"u":"1f1fb-1f1ee"},{"n":["vietnam flag","flag-vn"],"u":"1f1fb-1f1f3"},{"n":["vanuatu flag","flag-vu"],"u":"1f1fb-1f1fa"},{"n":["wallis & futuna flag","flag-wf"],"u":"1f1fc-1f1eb"},{"n":["samoa flag","flag-ws"],"u":"1f1fc-1f1f8"},{"n":["kosovo flag","flag-xk"],"u":"1f1fd-1f1f0"},{"n":["yemen flag","flag-ye"],"u":"1f1fe-1f1ea"},{"n":["mayotte flag","flag-yt"],"u":"1f1fe-1f1f9"},{"n":["south africa flag","flag-za"],"u":"1f1ff-1f1e6"},{"n":["zambia flag","flag-zm"],"u":"1f1ff-1f1f2"},{"n":["zimbabwe flag","flag-zw"],"u":"1f1ff-1f1fc"},{"n":["england flag","flag-england"],"u":"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f"},{"n":["scotland flag","flag-scotland"],"u":"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f"},{"n":["wales flag","flag-wales"],"u":"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f"}],"symbols":[{"n":["automated teller machine","atm"],"u":"1f3e7"},{"n":["put litter in its place symbol","put_litter_in_its_place"],"u":"1f6ae"},{"n":["potable water symbol","potable_water"],"u":"1f6b0"},{"n":["wheelchair symbol","wheelchair"],"u":"267f"},{"n":["mens symbol","mens"],"u":"1f6b9"},{"n":["womens symbol","womens"],"u":"1f6ba"},{"n":["restroom"],"u":"1f6bb"},{"n":["baby symbol","baby_symbol"],"u":"1f6bc"},{"n":["water closet","wc"],"u":"1f6be"},{"n":["passport control","passport_control"],"u":"1f6c2"},{"n":["customs"],"u":"1f6c3"},{"n":["baggage claim","baggage_claim"],"u":"1f6c4"},{"n":["left luggage","left_luggage"],"u":"1f6c5"},{"n":["warning sign","warning"],"u":"26a0-fe0f"},{"n":["children crossing","children_crossing"],"u":"1f6b8"},{"n":["no entry","no_entry"],"u":"26d4"},{"n":["no entry sign","no_entry_sign"],"u":"1f6ab"},{"n":["no bicycles","no_bicycles"],"u":"1f6b3"},{"n":["no smoking symbol","no_smoking"],"u":"1f6ad"},{"n":["do not litter symbol","do_not_litter"],"u":"1f6af"},{"n":["non-potable water symbol","non-potable_water"],"u":"1f6b1"},{"n":["no pedestrians","no_pedestrians"],"u":"1f6b7"},{"n":["no mobile phones","no_mobile_phones"],"u":"1f4f5"},{"n":["no one under eighteen symbol","underage"],"u":"1f51e"},{"n":["radioactive_sign"],"u":"2622-fe0f"},{"n":["biohazard_sign"],"u":"2623-fe0f"},{"n":["upwards black arrow","arrow_up"],"u":"2b06-fe0f"},{"n":["north east arrow","arrow_upper_right"],"u":"2197-fe0f"},{"n":["black rightwards arrow","arrow_right"],"u":"27a1-fe0f"},{"n":["south east arrow","arrow_lower_right"],"u":"2198-fe0f"},{"n":["downwards black arrow","arrow_down"],"u":"2b07-fe0f"},{"n":["south west arrow","arrow_lower_left"],"u":"2199-fe0f"},{"n":["leftwards black arrow","arrow_left"],"u":"2b05-fe0f"},{"n":["north west arrow","arrow_upper_left"],"u":"2196-fe0f"},{"n":["up down arrow","arrow_up_down"],"u":"2195-fe0f"}
38,{"n":["left right arrow","left_right_arrow"],"u":"2194-fe0f"},{"n":["leftwards arrow with hook","leftwards_arrow_with_hook"],"u":"21a9-fe0f"},{"n":["rightwards arrow with hook","arrow_right_hook"],"u":"21aa-fe0f"},{"n":["arrow pointing rightwards then curving upwards","arrow_heading_up"],"u":"2934-fe0f"},{"n":["arrow pointing rightwards then curving downwards","arrow_heading_down"],"u":"2935-fe0f"},{"n":["clockwise downwards and upwards open circle arrows","arrows_clockwise"],"u":"1f503"},{"n":["anticlockwise downwards and upwards open circle arrows","arrows_counterclockwise"],"u":"1f504"},{"n":["back with leftwards arrow above","back"],"u":"1f519"},{"n":["end with leftwards arrow above","end"],"u":"1f51a"},{"n":["on with exclamation mark with left right arrow above","on"],"u":"1f51b"},{"n":["soon with rightwards arrow above","soon"],"u":"1f51c"},{"n":["top with upwards arrow above","top"],"u":"1f51d"},{"n":["place of worship","place_of_worship"],"u":"1f6d0"},{"n":["atom_symbol"],"u":"269b-fe0f"},{"n":["om_symbol"],"u":"1f549-fe0f"},{"n":["star_of_david"],"u":"2721-fe0f"},{"n":["wheel_of_dharma"],"u":"2638-fe0f"},{"n":["yin_yang"],"u":"262f-fe0f"},{"n":["latin_cross"],"u":"271d-fe0f"},{"n":["orthodox_cross"],"u":"2626-fe0f"},{"n":["star_and_crescent"],"u":"262a-fe0f"},{"n":["peace_symbol"],"u":"262e-fe0f"},{"n":["menorah with nine branches","menorah_with_nine_branches"],"u":"1f54e"},{"n":["six pointed star with middle dot","six_pointed_star"],"u":"1f52f"},{"n":["aries"],"u":"2648"},{"n":["taurus"],"u":"2649"},{"n":["gemini"],"u":"264a"},{"n":["cancer"],"u":"264b"},{"n":["leo"],"u":"264c"},{"n":["virgo"],"u":"264d"},{"n":["libra"],"u":"264e"},{"n":["scorpius"],"u":"264f"},{"n":["sagittarius"],"u":"2650"},{"n":["capricorn"],"u":"2651"},{"n":["aquarius"],"u":"2652"},{"n":["pisces"],"u":"2653"},{"n":["ophiuchus"],"u":"26ce"},{"n":["twisted rightwards arrows","twisted_rightwards_arrows"],"u":"1f500"},{"n":["clockwise rightwards and leftwards open circle arrows","repeat"],"u":"1f501"},{"n":["clockwise rightwards and leftwards open circle arrows with circled one overlay","repeat_one"],"u":"1f502"},{"n":["black right-pointing triangle","arrow_forward"],"u":"25b6-fe0f"},{"n":["black right-pointing double triangle","fast_forward"],"u":"23e9"},{"n":["black_right_pointing_double_triangle_with_vertical_bar"],"u":"23ed-fe0f"},{"n":["black_right_pointing_triangle_with_double_vertical_bar"],"u":"23ef-fe0f"},{"n":["black left-pointing triangle","arrow_backward"],"u":"25c0-fe0f"},{"n":["black left-pointing double triangle","rewind"],"u":"23ea"},{"n":["black_left_pointing_double_triangle_with_vertical_bar"],"u":"23ee-fe0f"},{"n":["up-pointing small red triangle","arrow_up_small"],"u":"1f53c"},{"n":["black up-pointing double triangle","arrow_double_up"],"u":"23eb"},{"n":["down-pointing small red triangle","arrow_down_small"],"u":"1f53d"},{"n":["black down-pointing double triangle","arrow_double_down"],"u":"23ec"},{"n":["double_vertical_bar"],"u":"23f8-fe0f"},{"n":["black_square_for_stop"],"u":"23f9-fe0f"},{"n":["black_circle_for_record"],"u":"23fa-fe0f"},{"n":["eject"],"u":"23cf-fe0f"},{"n":["cinema"],"u":"1f3a6"},{"n":["low brightness symbol","low_brightness"],"u":"1f505"},{"n":["high brightness symbol","high_brightness"],"u":"1f506"},{"n":["antenna with bars","signal_strength"],"u":"1f4f6"},{"n":["vibration mode","vibration_mode"],"u":"1f4f3"},{"n":["mobile phone off","mobile_phone_off"],"u":"1f4f4"},{"n":["female_sign"],"u":"2640-fe0f"},{"n":["male_sign"],"u":"2642-fe0f"},{"n":["medical_symbol","staff_of_aesculapius"],"u":"2695-fe0f"},{"n":["black universal recycling symbol","recycle"],"u":"267b-fe0f"},{"n":["fleur_de_lis"],"u":"269c-fe0f"},{"n":["trident emblem","trident"],"u":"1f531"},{"n":["name badge","name_badge"],"u":"1f4db"},{"n":["japanese symbol for beginner","beginner"],"u":"1f530"},{"n":["heavy large circle","o"],"u":"2b55"},{"n":["white heavy check mark","white_check_mark"],"u":"2705"},{"n":["ballot box with check","ballot_box_with_check"],"u":"2611-fe0f"},{"n":["heavy check mark","heavy_check_mark"],"u":"2714-fe0f"},{"n":["heavy multiplication x","heavy_multiplication_x"],"u":"2716-fe0f"},{"n":["cross mark","x"],"u":"274c"},{"n":["negative squared cross mark","negative_squared_cross_mark"],"u":"274e"},{"n":["heavy plus sign","heavy_plus_sign"],"u":"2795"},{"n":["heavy minus sign","heavy_minus_sign"],"u":"2796"},{"n":["heavy division sign","heavy_division_sign"],"u":"2797"},{"n":["curly loop","curly_loop"],"u":"27b0"},{"n":["double curly loop","loop"],"u":"27bf"},{"n":["part alternation mark","part_alternation_mark"],"u":"303d-fe0f"},{"n":["eight spoked asterisk","eight_spoked_asterisk"],"u":"2733-fe0f"},{"n":["eight pointed black star","eight_pointed_black_star"],"u":"2734-fe0f"},{"n":["sparkle"],"u":"2747-fe0f"},{"n":["double exclamation mark","bangbang"],"u":"203c-fe0f"},{"n":["exclamation question mark","interrobang"],"u":"2049-fe0f"},{"n":["black question mark ornament","question"],"u":"2753"},{"n":["white question mark ornament","grey_question"],"u":"2754"},{"n":["white exclamation mark ornament","grey_exclamation"],"u":"2755"},{"n":["heavy exclamation mark symbol","exclamation","heavy_exclamation_mark"],"u":"2757"},{"n":["wavy dash","wavy_dash"],"u":"3030-fe0f"},{"n":["copyright sign","copyright"],"u":"00a9-fe0f"},{"n":["registered sign","registered"],"u":"00ae-fe0f"},{"n":["trade mark sign","tm"],"u":"2122-fe0f"},{"n":["hash key","hash"],"u":"0023-fe0f-20e3"},{"n":["keycap_star"],"u":"002a-fe0f-20e3"},{"n":["keycap 0","zero"],"u":"0030-fe0f-20e3"},{"n":["keycap 1","one"],"u":"0031-fe0f-20e3"},{"n":["keycap 2","two"],"u":"0032-fe0f-20e3"},{"n":["keycap 3","three"],"u":"0033-fe0f-20e3"},{"n":["keycap 4","four"],"u":"0034-fe0f-20e3"},{"n":["keycap 5","five"],"u":"0035-fe0f-20e3"},{"n":["keycap 6","six"],"u":"0036-fe0f-20e3"},{"n":["keycap 7","seven"],"u":"0037-fe0f-20e3"},{"n":["keycap 8","eight"],"u":"0038-fe0f-20e3"},{"n":["keycap 9","nine"],"u":"0039-fe0f-20e3"},{"n":["keycap ten","keycap_ten"],"u":"1f51f"},{"n":["hundred points symbol","100"],"u":"1f4af"},{"n":["input symbol for latin capital letters","capital_abcd"],"u":"1f520"},{"n":["input symbol for latin small letters","abcd"],"u":"1f521"},{"n":["input symbol for numbers","1234"],"u":"1f522"},{"n":["input symbol for symbols","symbols"],"u":"1f523"},{"n":["input symbol for latin letters","abc"],"u":"1f524"},{"n":["negative squared latin capital letter a","a"],"u":"1f170-fe0f"},{"n":["negative squared ab","ab"],"u":"1f18e"},{"n":["negative squared latin capital letter b","b"],"u":"1f171-fe0f"},{"n":["squared cl","cl"],"u":"1f191"},{"n":["squared cool","cool"],"u":"1f192"},{"n":["squared free","free"],"u":"1f193"},{"n":["information source","information_source"],"u":"2139-fe0f"},{"n":["squared id","id"],"u":"1f194"}
38,{"n":["circled latin capital letter m","m"],"u":"24c2-fe0f"},{"n":["squared new","new"],"u":"1f195"},{"n":["squared ng","ng"],"u":"1f196"},{"n":["negative squared latin capital letter o","o2"],"u":"1f17e-fe0f"},{"n":["squared ok","ok"],"u":"1f197"},{"n":["negative squared latin capital letter p","parking"],"u":"1f17f-fe0f"},{"n":["squared sos","sos"],"u":"1f198"},{"n":["squared up with exclamation mark","up"],"u":"1f199"},{"n":["squared vs","vs"],"u":"1f19a"},{"n":["squared katakana koko","koko"],"u":"1f201"},{"n":["squared katakana sa","sa"],"u":"1f202-fe0f"},{"n":["squared cjk unified ideograph-6708","u6708"],"u":"1f237-fe0f"},{"n":["squared cjk unified ideograph-6709","u6709"],"u":"1f236"},{"n":["squared cjk unified ideograph-6307","u6307"],"u":"1f22f"},{"n":["circled ideograph advantage","ideograph_advantage"],"u":"1f250"},{"n":["squared cjk unified ideograph-5272","u5272"],"u":"1f239"},{"n":["squared cjk unified ideograph-7121","u7121"],"u":"1f21a"},{"n":["squared cjk unified ideograph-7981","u7981"],"u":"1f232"},{"n":["circled ideograph accept","accept"],"u":"1f251"},{"n":["squared cjk unified ideograph-7533","u7533"],"u":"1f238"},{"n":["squared cjk unified ideograph-5408","u5408"],"u":"1f234"},{"n":["squared cjk unified ideograph-7a7a","u7a7a"],"u":"1f233"},{"n":["circled ideograph congratulation","congratulations"],"u":"3297-fe0f"},{"n":["circled ideograph secret","secret"],"u":"3299-fe0f"},{"n":["squared cjk unified ideograph-55b6","u55b6"],"u":"1f23a"},{"n":["squared cjk unified ideograph-6e80","u6e80"],"u":"1f235"},{"n":["black small square","black_small_square"],"u":"25aa-fe0f"},{"n":["white small square","white_small_square"],"u":"25ab-fe0f"},{"n":["white medium square","white_medium_square"],"u":"25fb-fe0f"},{"n":["black medium square","black_medium_square"],"u":"25fc-fe0f"},{"n":["white medium small square","white_medium_small_square"],"u":"25fd"},{"n":["black medium small square","black_medium_small_square"],"u":"25fe"},{"n":["black large square","black_large_square"],"u":"2b1b"},{"n":["white large square","white_large_square"],"u":"2b1c"},{"n":["large orange diamond","large_orange_diamond"],"u":"1f536"},{"n":["large blue diamond","large_blue_diamond"],"u":"1f537"},{"n":["small orange diamond","small_orange_diamond"],"u":"1f538"},{"n":["small blue diamond","small_blue_diamond"],"u":"1f539"},{"n":["up-pointing red triangle","small_red_triangle"],"u":"1f53a"},{"n":["down-pointing red triangle","small_red_triangle_down"],"u":"1f53b"},{"n":["diamond shape with a dot inside","diamond_shape_with_a_dot_inside"],"u":"1f4a0"},{"n":["radio button","radio_button"],"u":"1f518"},{"n":["black square button","black_square_button"],"u":"1f532"},{"n":["white square button","white_square_button"],"u":"1f533"},{"n":["medium white circle","white_circle"],"u":"26aa"},{"n":["medium black circle","black_circle"],"u":"26ab"},{"n":["large red circle","red_circle"],"u":"1f534"},{"n":["large blue circle","large_blue_circle"],"u":"1f535"}],"animals_nature":[{"n":["monkey face","monkey_face"],"u":"1f435"},{"n":["monkey"],"u":"1f412"},{"n":["gorilla"],"u":"1f98d"},{"n":["dog face","dog"],"u":"1f436"},{"n":["dog","dog2"],"u":"1f415"},{"n":["poodle"],"u":"1f429"},{"n":["wolf face","wolf"],"u":"1f43a"},{"n":["fox face","fox_face"],"u":"1f98a"},{"n":["cat face","cat"],"u":"1f431"},{"n":["cat","cat2"],"u":"1f408"},{"n":["lion face","lion_face"],"u":"1f981"},{"n":["tiger face","tiger"],"u":"1f42f"},{"n":["tiger","tiger2"],"u":"1f405"},{"n":["leopard"],"u":"1f406"},{"n":["horse face","horse"],"u":"1f434"},{"n":["horse","racehorse"],"u":"1f40e"},{"n":["unicorn face","unicorn_face"],"u":"1f984"},{"n":["zebra face","zebra_face"],"u":"1f993"},{"n":["deer"],"u":"1f98c"},{"n":["cow face","cow"],"u":"1f42e"},{"n":["ox"],"u":"1f402"},{"n":["water buffalo","water_buffalo"],"u":"1f403"},{"n":["cow","cow2"],"u":"1f404"},{"n":["pig face","pig"],"u":"1f437"},{"n":["pig","pig2"],"u":"1f416"},{"n":["boar"],"u":"1f417"},{"n":["pig nose","pig_nose"],"u":"1f43d"},{"n":["ram"],"u":"1f40f"},{"n":["sheep"],"u":"1f411"},{"n":["goat"],"u":"1f410"},{"n":["dromedary camel","dromedary_camel"],"u":"1f42a"},{"n":["bactrian camel","camel"],"u":"1f42b"},{"n":["giraffe face","giraffe_face"],"u":"1f992"},{"n":["elephant"],"u":"1f418"},{"n":["rhinoceros"],"u":"1f98f"},{"n":["mouse face","mouse"],"u":"1f42d"},{"n":["mouse","mouse2"],"u":"1f401"},{"n":["rat"],"u":"1f400"},{"n":["hamster face","hamster"],"u":"1f439"},{"n":["rabbit face","rabbit"],"u":"1f430"},{"n":["rabbit","rabbit2"],"u":"1f407"},{"n":["chipmunk"],"u":"1f43f-fe0f"},{"n":["hedgehog"],"u":"1f994"},{"n":["bat"],"u":"1f987"},{"n":["bear face","bear"],"u":"1f43b"},{"n":["koala"],"u":"1f428"},{"n":["panda face","panda_face"],"u":"1f43c"},{"n":["paw prints","feet","paw_prints"],"u":"1f43e"},{"n":["turkey"],"u":"1f983"},{"n":["chicken"],"u":"1f414"},{"n":["rooster"],"u":"1f413"},{"n":["hatching chick","hatching_chick"],"u":"1f423"},{"n":["baby chick","baby_chick"],"u":"1f424"},{"n":["front-facing baby chick","hatched_chick"],"u":"1f425"},{"n":["bird"],"u":"1f426"},{"n":["penguin"],"u":"1f427"},{"n":["dove_of_peace"],"u":"1f54a-fe0f"},{"n":["eagle"],"u":"1f985"},{"n":["duck"],"u":"1f986"},{"n":["owl"],"u":"1f989"},{"n":["frog face","frog"],"u":"1f438"},{"n":["crocodile"],"u":"1f40a"},{"n":["turtle"],"u":"1f422"},{"n":["lizard"],"u":"1f98e"},{"n":["snake"],"u":"1f40d"},{"n":["dragon face","dragon_face"],"u":"1f432"},{"n":["dragon"],"u":"1f409"},{"n":["sauropod"],"u":"1f995"},{"n":["t-rex"],"u":"1f996"},{"n":["spouting whale","whale"],"u":"1f433"},{"n":["whale","whale2"],"u":"1f40b"},{"n":["dolphin","flipper"],"u":"1f42c"},{"n":["fish"],"u":"1f41f"},{"n":["tropical fish","tropical_fish"],"u":"1f420"},{"n":["blowfish"],"u":"1f421"},{"n":["shark"],"u":"1f988"},{"n":["octopus"],"u":"1f419"},{"n":["spiral shell","shell"],"u":"1f41a"},{"n":["crab"],"u":"1f980"},{"n":["shrimp"],"u":"1f990"},{"n":["squid"],"u":"1f991"},{"n":["snail"],"u":"1f40c"},{"n":["butterfly"],"u":"1f98b"},{"n":["bug"],"u":"1f41b"},{"n":["ant"],"u":"1f41c"},{"n":["honeybee","bee"],"u":"1f41d"},{"n":["lady beetle","beetle"],"u":"1f41e"},{"n":["cricket"],"u":"1f997"},{"n":["spider"],"u":"1f577-fe0f"},{"n":["spider_web"],"u":"1f578-fe0f"},{"n":["scorpion"],"u":"1f982"},{"n":["bouquet"],"u":"1f490"},{"n":["cherry blossom","cherry_blossom"],"u":"1f338"},{"n":["white flower","white_flower"],"u":"1f4ae"},{"n":["rosette"],"u":"1f3f5-fe0f"},{"n":["rose"],"u":"1f339"},{"n":["wilted flower","wilted_flower"],"u":"1f940"},{"n":["hibiscus"],"u":"1f33a"},{"n":["sunflower"],"u":"1f33b"},{"n":["blossom"],"u":"1f33c"},{"n":["tulip"],"u":"1f337"},{"n":["seedling"],"u":"1f331"},{"n":["evergreen tree","evergreen_tree"],"u":"1f332"},{"n":["deciduous tree","deciduous_tree"],"u":"1f333"},{"n":["palm tree","palm_tree"],"u":"1f334"},{"n":["cactus"],"u":"1f335"},{"n":["ear of rice","ear_of_rice"],"u":"1f33e"},{"n":["herb"],"u":"1f33f"},{"n":["shamrock"],"u":"2618-fe0f"},{"n":["four leaf clover","four_leaf_clover"],"u":"1f340"},{"n":["maple leaf","maple_leaf"],"u":"1f341"},{"n":["fallen leaf","fallen_leaf"],"u":"1f342"},{"n":["leaf fluttering in wind","leaves"],"u":"1f343"}],"objects":[{"n":["speaker with cancellation stroke","mute"],"u":"1f507"},{"n":["speaker"],"u":"1f508"},{"n":["speaker with one sound wave","sound"],"u":"1f509"},{"n":["speaker with three sound waves","loud_sound"],"u":"1f50a"},{"n":["public address loudspeaker","loudspeaker"],"u":"1f4e2"},{"n":["cheering megaphone","mega"],"u":"1f4e3"},{"n":["postal horn","postal_horn"],"u":"1f4ef"},{"n":["bell"],"u":"1f514"},{"n":["bell with cancellation stroke","no_bell"],"u":"1f515"},{"n":["musical score","musical_score"],"u":"1f3bc"},{"n":["musical note","musical_note"],"u":"1f3b5"},{"n":["multiple musical notes","notes"],"u":"1f3b6"},{"n":["studio_microphone"],"u":"1f399-fe0f"},{"n":["level_slider"],"u":"1f39a-fe0f"},{"n":["control_knobs"],"u":"1f39b-fe0f"},{"n":["microphone"],"u":"1f3a4"},{"n":["headphone","headphones"],"u":"1f3a7"},{"n":["radio"],"u":"1f4fb"},{"n":["saxophone"],"u":"1f3b7"},{"n":["guitar"],"u":"1f3b8"},{"n":["musical keyboard","musical_keyboard"],"u":"1f3b9"},{"n":["trumpet"],"u":"1f3ba"},{"n":["violin"],"u":"1f3bb"},{"n":["drum with drumsticks","drum_with_drumsticks"],"u":"1f941"},{"n":["mobile phone","iphone"],"u":"1f4f1"},{"n":["mobile phone with rightwards arrow at left","calling"],"u":"1f4f2"},{"n":["black telephone","phone","telephone"],"u":"260e-fe0f"},{"n":["telephone receiver","telephone_receiver"],"u":"1f4de"},{"n":["pager"],"u":"1f4df"},{"n":["fax machine","fax"],"u":"1f4e0"},{"n":["battery"],"u":"1f50b"},{"n":["electric plug","electric_plug"],"u":"1f50c"},{"n":["personal computer","computer"],"u":"1f4bb"},{"n":["desktop_computer"],"u":"1f5a5-fe0f"},{"n":["printer"],"u":"1f5a8-fe0f"},{"n":["keyboard"],"u":"2328-fe0f"},{"n":["three_button_mouse"],"u":"1f5b1-fe0f"},{"n":["trackball"],"u":"1f5b2-fe0f"},{"n":["minidisc"],"u":"1f4bd"},{"n":["floppy disk","floppy_disk"],"u":"1f4be"},{"n":["optical disc","cd"],"u":"1f4bf"},{"n":["dvd"],"u":"1f4c0"},{"n":["movie camera","movie_camera"],"u":"1f3a5"},{"n":["film_frames"],"u":"1f39e-fe0f"},{"n":["film_projector"],"u":"1f4fd-fe0f"},{"n":["clapper board","clapper"],"u":"1f3ac"},{"n":["television","tv"],"u":"1f4fa"},{"n":["camera"],"u":"1f4f7"},{"n":["camera with flash","camera_with_flash"],"u":"1f4f8"},{"n":["video camera","video_camera"],"u":"1f4f9"},{"n":["videocassette","vhs"],"u":"1f4fc"},{"n":["left-pointing magnifying glass","mag"],"u":"1f50d"},{"n":["right-pointing magnifying glass","mag_right"],"u":"1f50e"},{"n":["microscope"],"u":"1f52c"},{"n":["telescope"],"u":"1f52d"},{"n":["satellite antenna","satellite_antenna"],"u":"1f4e1"},{"n":["candle"],"u":"1f56f-fe0f"},{"n":["electric light bulb","bulb"],"u":"1f4a1"},{"n":["electric torch","flashlight"],"u":"1f526"},{"n":["izakaya lantern","izakaya_lantern","lantern"],"u":"1f3ee"},{"n":["notebook with decorative cover","notebook_with_decorative_cover"],"u":"1f4d4"},{"n":["closed book","closed_book"],"u":"1f4d5"},{"n":["open book","book","open_book"],"u":"1f4d6"}
38,{"n":["green book","green_book"],"u":"1f4d7"},{"n":["blue book","blue_book"],"u":"1f4d8"},{"n":["orange book","orange_book"],"u":"1f4d9"},{"n":["books"],"u":"1f4da"},{"n":["notebook"],"u":"1f4d3"},{"n":["ledger"],"u":"1f4d2"},{"n":["page with curl","page_with_curl"],"u":"1f4c3"},{"n":["scroll"],"u":"1f4dc"},{"n":["page facing up","page_facing_up"],"u":"1f4c4"},{"n":["newspaper"],"u":"1f4f0"},{"n":["rolled_up_newspaper"],"u":"1f5de-fe0f"},{"n":["bookmark tabs","bookmark_tabs"],"u":"1f4d1"},{"n":["bookmark"],"u":"1f516"},{"n":["label"],"u":"1f3f7-fe0f"},{"n":["money bag","moneybag"],"u":"1f4b0"},{"n":["banknote with yen sign","yen"],"u":"1f4b4"},{"n":["banknote with dollar sign","dollar"],"u":"1f4b5"},{"n":["banknote with euro sign","euro"],"u":"1f4b6"},{"n":["banknote with pound sign","pound"],"u":"1f4b7"},{"n":["money with wings","money_with_wings"],"u":"1f4b8"},{"n":["credit card","credit_card"],"u":"1f4b3"},{"n":["chart with upwards trend and yen sign","chart"],"u":"1f4b9"},{"n":["currency exchange","currency_exchange"],"u":"1f4b1"},{"n":["heavy dollar sign","heavy_dollar_sign"],"u":"1f4b2"},{"n":["envelope","email"],"u":"2709-fe0f"},{"n":["e-mail symbol","e-mail"],"u":"1f4e7"},{"n":["incoming envelope","incoming_envelope"],"u":"1f4e8"},{"n":["envelope with downwards arrow above","envelope_with_arrow"],"u":"1f4e9"},{"n":["outbox tray","outbox_tray"],"u":"1f4e4"},{"n":["inbox tray","inbox_tray"],"u":"1f4e5"},{"n":["package"],"u":"1f4e6"},{"n":["closed mailbox with raised flag","mailbox"],"u":"1f4eb"},{"n":["closed mailbox with lowered flag","mailbox_closed"],"u":"1f4ea"},{"n":["open mailbox with raised flag","mailbox_with_mail"],"u":"1f4ec"},{"n":["open mailbox with lowered flag","mailbox_with_no_mail"],"u":"1f4ed"},{"n":["postbox"],"u":"1f4ee"},{"n":["ballot_box_with_ballot"],"u":"1f5f3-fe0f"},{"n":["pencil","pencil2"],"u":"270f-fe0f"},{"n":["black nib","black_nib"],"u":"2712-fe0f"},{"n":["lower_left_fountain_pen"],"u":"1f58b-fe0f"},{"n":["lower_left_ballpoint_pen"],"u":"1f58a-fe0f"},{"n":["lower_left_paintbrush"],"u":"1f58c-fe0f"},{"n":["lower_left_crayon"],"u":"1f58d-fe0f"},{"n":["memo","pencil"],"u":"1f4dd"},{"n":["briefcase"],"u":"1f4bc"},{"n":["file folder","file_folder"],"u":"1f4c1"},{"n":["open file folder","open_file_folder"],"u":"1f4c2"},{"n":["card_index_dividers"],"u":"1f5c2-fe0f"},{"n":["calendar","date"],"u":"1f4c5"},{"n":["tear-off calendar","calendar"],"u":"1f4c6"},{"n":["spiral_note_pad"],"u":"1f5d2-fe0f"},{"n":["spiral_calendar_pad"],"u":"1f5d3-fe0f"},{"n":["card index","card_index"],"u":"1f4c7"},{"n":["chart with upwards trend","chart_with_upwards_trend"],"u":"1f4c8"},{"n":["chart with downwards trend","chart_with_downwards_trend"],"u":"1f4c9"},{"n":["bar chart","bar_chart"],"u":"1f4ca"},{"n":["clipboard"],"u":"1f4cb"},{"n":["pushpin"],"u":"1f4cc"},{"n":["round pushpin","round_pushpin"],"u":"1f4cd"},{"n":["paperclip"],"u":"1f4ce"},{"n":["linked_paperclips"],"u":"1f587-fe0f"},{"n":["straight ruler","straight_ruler"],"u":"1f4cf"},{"n":["triangular ruler","triangular_ruler"],"u":"1f4d0"},{"n":["black scissors","scissors"],"u":"2702-fe0f"},{"n":["card_file_box"],"u":"1f5c3-fe0f"},{"n":["file_cabinet"],"u":"1f5c4-fe0f"},{"n":["wastebasket"],"u":"1f5d1-fe0f"},{"n":["lock"],"u":"1f512"},{"n":["open lock","unlock"],"u":"1f513"},{"n":["lock with ink pen","lock_with_ink_pen"],"u":"1f50f"},{"n":["closed lock with key","closed_lock_with_key"],"u":"1f510"},{"n":["key"],"u":"1f511"},{"n":["old_key"],"u":"1f5dd-fe0f"},{"n":["hammer"],"u":"1f528"},{"n":["pick"],"u":"26cf-fe0f"},{"n":["hammer_and_pick"],"u":"2692-fe0f"},{"n":["hammer_and_wrench"],"u":"1f6e0-fe0f"},{"n":["dagger_knife"],"u":"1f5e1-fe0f"},{"n":["crossed_swords"],"u":"2694-fe0f"},{"n":["pistol","gun"],"u":"1f52b"},{"n":["bow and arrow","bow_and_arrow"],"u":"1f3f9"},{"n":["shield"],"u":"1f6e1-fe0f"},{"n":["wrench"],"u":"1f527"},{"n":["nut and bolt","nut_and_bolt"],"u":"1f529"},{"n":["gear"],"u":"2699-fe0f"},{"n":["compression"],"u":"1f5dc-fe0f"},{"n":["alembic"],"u":"2697-fe0f"},{"n":["scales"],"u":"2696-fe0f"},{"n":["link symbol","link"],"u":"1f517"},{"n":["chains"],"u":"26d3-fe0f"},{"n":["syringe"],"u":"1f489"},{"n":["pill"],"u":"1f48a"},{"n":["smoking symbol","smoking"],"u":"1f6ac"},{"n":["coffin"],"u":"26b0-fe0f"},{"n":["funeral_urn"],"u":"26b1-fe0f"},{"n":["moyai"],"u":"1f5ff"},{"n":["oil_drum"],"u":"1f6e2-fe0f"},{"n":["crystal ball","crystal_ball"],"u":"1f52e"},{"n":["shopping trolley","shopping_trolley"],"u":"1f6d2"}],"smileys_people":[{"n":["grinning face","grinning"],"u":"1f600"},{"n":["grinning face with smiling eyes","grin"],"u":"1f601"},{"n":["face with tears of joy","joy"],"u":"1f602"},{"n":["rolling on the floor laughing","rolling_on_the_floor_laughing"],"u":"1f923"},{"n":["smiling face with open mouth","smiley"],"u":"1f603"},{"n":["smiling face with open mouth and smiling eyes","smile"],"u":"1f604"},{"n":["smiling face with open mouth and cold sweat","sweat_smile"],"u":"1f605"},{"n":["smiling face with open mouth and tightly-closed eyes","laughing","satisfied"],"u":"1f606"},{"n":["winking face","wink"],"u":"1f609"},{"n":["smiling face with smiling eyes","blush"],"u":"1f60a"},{"n":["face savouring delicious food","yum"],"u":"1f60b"},{"n":["smiling face with sunglasses","sunglasses"],"u":"1f60e"},{"n":["smiling face with heart-shaped eyes","heart_eyes"],"u":"1f60d"},{"n":["face throwing a kiss","kissing_heart"],"u":"1f618"},{"n":["kissing face","kissing"],"u":"1f617"},{"n":["kissing face with smiling eyes","kissing_smiling_eyes"],"u":"1f619"},{"n":["kissing face with closed eyes","kissing_closed_eyes"],"u":"1f61a"},{"n":["white smiling face","relaxed"],"u":"263a-fe0f"},{"n":["slightly smiling face","slightly_smiling_face"],"u":"1f642"},{"n":["hugging face","hugging_face"],"u":"1f917"},{"n":["grinning face with star eyes","star-struck","grinning_face_with_star_eyes"],"u":"1f929"},{"n":["thinking face","thinking_face"],"u":"1f914"},{"n":["face with one eyebrow raised","face_with_raised_eyebrow","face_with_one_eyebrow_raised"],"u":"1f928"},{"n":["neutral face","neutral_face"],"u":"1f610"},{"n":["expressionless face","expressionless"],"u":"1f611"},{"n":["face without mouth","no_mouth"],"u":"1f636"},{"n":["face with rolling eyes","face_with_rolling_eyes"],"u":"1f644"},{"n":["smirking face","smirk"],"u":"1f60f"},{"n":["persevering face","persevere"],"u":"1f623"},{"n":["disappointed but relieved face","disappointed_relieved"],"u":"1f625"},{"n":["face with open mouth","open_mouth"],"u":"1f62e"},{"n":["zipper-mouth face","zipper_mouth_face"],"u":"1f910"},{"n":["hushed face","hushed"],"u":"1f62f"},{"n":["sleepy face","sleepy"],"u":"1f62a"},{"n":["tired face","tired_face"],"u":"1f62b"},{"n":["sleeping face","sleeping"],"u":"1f634"},{"n":["relieved face","relieved"],"u":"1f60c"},{"n":["face with stuck-out tongue","stuck_out_tongue"],"u":"1f61b"},{"n":["face with stuck-out tongue and winking eye","stuck_out_tongue_winking_eye"],"u":"1f61c"},{"n":["face with stuck-out tongue and tightly-closed eyes","stuck_out_tongue_closed_eyes"],"u":"1f61d"},{"n":["drooling face","drooling_face"],"u":"1f924"},{"n":["unamused face","unamused"],"u":"1f612"},{"n":["face with cold sweat","sweat"],"u":"1f613"},{"n":["pensive face","pensive"],"u":"1f614"},{"n":["confused face","confused"],"u":"1f615"}
38,{"n":["upside-down face","upside_down_face"],"u":"1f643"},{"n":["money-mouth face","money_mouth_face"],"u":"1f911"},{"n":["astonished face","astonished"],"u":"1f632"},{"n":["white_frowning_face"],"u":"2639-fe0f"},{"n":["slightly frowning face","slightly_frowning_face"],"u":"1f641"},{"n":["confounded face","confounded"],"u":"1f616"},{"n":["disappointed face","disappointed"],"u":"1f61e"},{"n":["worried face","worried"],"u":"1f61f"},{"n":["face with look of triumph","triumph"],"u":"1f624"},{"n":["crying face","cry"],"u":"1f622"},{"n":["loudly crying face","sob"],"u":"1f62d"},{"n":["frowning face with open mouth","frowning"],"u":"1f626"},{"n":["anguished face","anguished"],"u":"1f627"},{"n":["fearful face","fearful"],"u":"1f628"},{"n":["weary face","weary"],"u":"1f629"},{"n":["shocked face with exploding head","exploding_head","shocked_face_with_exploding_head"],"u":"1f92f"},{"n":["grimacing face","grimacing"],"u":"1f62c"},{"n":["face with open mouth and cold sweat","cold_sweat"],"u":"1f630"},{"n":["face screaming in fear","scream"],"u":"1f631"},{"n":["flushed face","flushed"],"u":"1f633"},{"n":["grinning face with one large and one small eye","zany_face","grinning_face_with_one_large_and_one_small_eye"],"u":"1f92a"},{"n":["dizzy face","dizzy_face"],"u":"1f635"},{"n":["pouting face","rage"],"u":"1f621"},{"n":["angry face","angry"],"u":"1f620"},{"n":["serious face with symbols covering mouth","face_with_symbols_on_mouth","serious_face_with_symbols_covering_mouth"],"u":"1f92c"},{"n":["face with medical mask","mask"],"u":"1f637"},{"n":["face with thermometer","face_with_thermometer"],"u":"1f912"},{"n":["face with head-bandage","face_with_head_bandage"],"u":"1f915"},{"n":["nauseated face","nauseated_face"],"u":"1f922"},{"n":["face with open mouth vomiting","face_vomiting","face_with_open_mouth_vomiting"],"u":"1f92e"},{"n":["sneezing face","sneezing_face"],"u":"1f927"},{"n":["smiling face with halo","innocent"],"u":"1f607"},{"n":["face with cowboy hat","face_with_cowboy_hat"],"u":"1f920"},{"n":["clown face","clown_face"],"u":"1f921"},{"n":["lying face","lying_face"],"u":"1f925"},{"n":["face with finger covering closed lips","shushing_face","face_with_finger_covering_closed_lips"],"u":"1f92b"},{"n":["smiling face with smiling eyes and hand covering mouth","face_with_hand_over_mouth","smiling_face_with_smiling_eyes_and_hand_covering_mouth"],"u":"1f92d"},{"n":["face with monocle","face_with_monocle"],"u":"1f9d0"},{"n":["nerd face","nerd_face"],"u":"1f913"},{"n":["smiling face with horns","smiling_imp"],"u":"1f608"},{"n":["imp"],"u":"1f47f"},{"n":["japanese ogre","japanese_ogre"],"u":"1f479"},{"n":["japanese goblin","japanese_goblin"],"u":"1f47a"},{"n":["skull"],"u":"1f480"},{"n":["skull_and_crossbones"],"u":"2620-fe0f"},{"n":["ghost"],"u":"1f47b"},{"n":["extraterrestrial alien","alien"],"u":"1f47d"},{"n":["alien monster","space_invader"],"u":"1f47e"},{"n":["robot face","robot_face"],"u":"1f916"},{"n":["pile of poo","hankey","poop","shit"],"u":"1f4a9"},{"n":["smiling cat face with open mouth","smiley_cat"],"u":"1f63a"},{"n":["grinning cat face with smiling eyes","smile_cat"],"u":"1f638"},{"n":["cat face with tears of joy","joy_cat"],"u":"1f639"},{"n":["smiling cat face with heart-shaped eyes","heart_eyes_cat"],"u":"1f63b"},{"n":["cat face with wry smile","smirk_cat"],"u":"1f63c"},{"n":["kissing cat face with closed eyes","kissing_cat"],"u":"1f63d"},{"n":["weary cat face","scream_cat"],"u":"1f640"},{"n":["crying cat face","crying_cat_face"],"u":"1f63f"},{"n":["pouting cat face","pouting_cat"],"u":"1f63e"},{"n":["see-no-evil monkey","see_no_evil"],"u":"1f648"},{"n":["hear-no-evil monkey","hear_no_evil"],"u":"1f649"},{"n":["speak-no-evil monkey","speak_no_evil"],"u":"1f64a"},{"n":["baby"],"u":"1f476","v":["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"]},{"n":["child"],"u":"1f9d2","v":["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"]},{"n":["boy"],"u":"1f466","v":["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"]},{"n":["girl"],"u":"1f467","v":["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"]},{"n":["adult"],"u":"1f9d1","v":["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"]},{"n":["man"],"u":"1f468","v":["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"]},{"n":["woman"],"u":"1f469","v":["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"]},{"n":["older adult","older_adult"],"u":"1f9d3","v":["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"]},{"n":["older man","older_man"],"u":"1f474","v":["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"]},{"n":["older woman","older_woman"],"u":"1f475","v":["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"]},{"n":["male-doctor"],"u":"1f468-200d-2695-fe0f","v":["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"]},{"n":["female-doctor"],"u":"1f469-200d-2695-fe0f","v":["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"]},{"n":["male-student"],"u":"1f468-200d-1f393","v":["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"]},{"n":["female-student"],"u":"1f469-200d-1f393","v":["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"]},{"n":["male-teacher"],"u":"1f468-200d-1f3eb","v":["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"]},{"n":["female-teacher"],"u":"1f469-200d-1f3eb","v":["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"]},{"n":["male-judge"],"u":"1f468-200d-2696-fe0f","v":["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"]},{"n":["female-judge"],"u":"1f469-200d-2696-fe0f","v":["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"]},{"n":["male-farmer"],"u":"1f468-200d-1f33e","v":["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"]},{"n":["female-farmer"],"u":"1f469-200d-1f33e","v":["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"]},{"n":["male-cook"],"u":"1f468-200d-1f373","v":["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"]},{"n":["female-cook"],"u":"1f469-200d-1f373","v":["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"]},{"n":["male-mechanic"],"u":"1f468-200d-1f527","v":["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"]},{"n":["female-mechanic"],"u":"1f469-200d-1f527","v":["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"]},{"n":["male-factory-worker"],"u":"1f468-200d-1f3ed","v":["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"]},{"n":["female-factory-worker"],"u":"1f469-200d-1f3ed","v":["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"]},{"n":["male-office-worker"],"u":"1f468-200d-1f4bc","v":["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"]},{"n":["female-office-worker"],"u":"1f469-200d-1f4bc","v":["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"]},{"n":["male-scientist"],"u":"1f468-200d-1f52c","v":["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"]},{"n":["female-scientist"],"u":"1f469-200d-1f52c","v":["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"]},{"n":["male-technologist"],"u":"1f468-200d-1f4bb","v":["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"]},{"n":["female-technologist"],"u":"1f469-200d-1f4bb","v":["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"]},{"n":["male-singer"],"u":"1f468-200d-1f3a4","v":["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"]},{"n":["female-singer"],"u":"1f469-200d-1f3a4","v":["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"]},{"n":["male-artist"],"u":"1f468-200d-1f3a8","v":["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"]},{"n":["female-artist"],"u":"1f469-200d-1f3a8","v":["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"]},{"n":["male-pilot"],"u":"1f468-200d-2708-fe0f","v":["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"]},{"n":["female-pilot"],"u":"1f469-200d-2708-fe0f","v":["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"]},{"n":["male-astronaut"],"u":"1f468-200d-1f680","v":["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"]},{"n":["female-astronaut"],"u":"1f469-200d-1f680","v":["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"]},{"n":["male-firefighter"],"u":"1f468-200d-1f692","v":["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"]},{"n":["female-firefighter"],"u":"1f469-200d-1f692","v":["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"]},{"n":["police officer","cop"],"u":"1f46e","v":["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"]},{"n":["male-police-officer"],"u":"1f46e-200d-2642-fe0f","v":["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"]},{"n":["female-police-officer"],"u":"1f46e-200d-2640-fe0f","v":["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"]},{"n":["sleuth_or_spy"],"u":"1f575-fe0f","v":["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"]},{"n":["male-detective"],"u":"1f575-fe0f-200d-2642-fe0f","v":["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"]},{"n":["female-detective"],"u":"1f575-fe0f-200d-2640-fe0f","v":["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"]},{"n":["guardsman"],"u":"1f482","v":["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"]},{"n":["male-guard"],"u":"1f482-200d-2642-fe0f","v":["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"]},{"n":["female-guard"],"u":"1f482-200d-2640-fe0f","v":["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"]},{"n":["construction worker","construction_worker"],"u":"1f477","v":["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"]},{"n":["male-construction-worker"],"u":"1f477-200d-2642-fe0f","v":["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"]},{"n":["female-construction-worker"],"u":"1f477-200d-2640-fe0f","v":["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"]},{"n":["prince"],"u":"1f934","v":["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"]},{"n":["princess"],"u":"1f478","v":["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"]},{"n":["man with turban","man_with_turban"],"u":"1f473","v":["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"]},{"n":["man-wearing-turban"],"u":"1f473-200d-2642-fe0f","v":["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"]},{"n":["woman-wearing-turban"],"u":"1f473-200d-2640-fe0f","v":["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"]},{"n":["man with gua pi mao","man_with_gua_pi_mao"],"u":"1f472","v":["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"]},{"n":["person with headscarf","person_with_headscarf"],"u":"1f9d5","v":["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"]},{"n":["bearded person","bearded_person"],"u":"1f9d4","v":["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"]},{"n":["person with blond hair","person_with_blond_hair"],"u":"1f471","v":["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"]},{"n":["blond-haired-man"],"u":"1f471-200d-2642-fe0f","v":["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"]},{"n":["blond-haired-woman"],"u":"1f471-200d-2640-fe0f","v":["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"]},{"n":["man in tuxedo","man_in_tuxedo"],"u":"1f935","v":["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"]},{"n":["bride with veil","bride_with_veil"],"u":"1f470","v":["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"]},{"n":["pregnant woman","pregnant_woman"],"u":"1f930","v":["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"]},{"n":["breast-feeding"],"u":"1f931","v":["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"]},{"n":["baby angel","angel"],"u":"1f47c","v":["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"]},{"n":["father christmas","santa"],"u":"1f385","v":["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"]},{"n":["mother christmas","mrs_claus","mother_christmas"],"u":"1f936","v":["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"]},{"n":["mage"],"u":"1f9d9","v":["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"]},{"n":["female_mage"],"u":"1f9d9-200d-2640-fe0f","v":["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"]},{"n":["male_mage"],"u":"1f9d9-200d-2642-fe0f","v":["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"]},{"n":["fairy"],"u":"1f9da","v":["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"]},{"n":["female_fairy"],"u":"1f9da-200d-2640-fe0f","v":["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"]},{"n":["male_fairy"],"u":"1f9da-200d-2642-fe0f","v":["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1
38f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"]},{"n":["vampire"],"u":"1f9db","v":["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"]},{"n":["female_vampire"],"u":"1f9db-200d-2640-fe0f","v":["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"]},{"n":["male_vampire"],"u":"1f9db-200d-2642-fe0f","v":["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"]},{"n":["merperson"],"u":"1f9dc","v":["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"]},{"n":["mermaid"],"u":"1f9dc-200d-2640-fe0f","v":["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"]},{"n":["merman"],"u":"1f9dc-200d-2642-fe0f","v":["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"]},{"n":["elf"],"u":"1f9dd","v":["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"]},{"n":["female_elf"],"u":"1f9dd-200d-2640-fe0f","v":["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"]},{"n":["male_elf"],"u":"1f9dd-200d-2642-fe0f","v":["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"]},{"n":["genie"],"u":"1f9de"},{"n":["female_genie"],"u":"1f9de-200d-2640-fe0f"},{"n":["male_genie"],"u":"1f9de-200d-2642-fe0f"},{"n":["zombie"],"u":"1f9df"},{"n":["female_zombie"],"u":"1f9df-200d-2640-fe0f"},{"n":["male_zombie"],"u":"1f9df-200d-2642-fe0f"},{"n":["person frowning","person_frowning"],"u":"1f64d","v":["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"]},{"n":["man-frowning"],"u":"1f64d-200d-2642-fe0f","v":["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"]},{"n":["woman-frowning"],"u":"1f64d-200d-2640-fe0f","v":["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"]},{"n":["person with pouting face","person_with_pouting_face"],"u":"1f64e","v":["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"]},{"n":["man-pouting"],"u":"1f64e-200d-2642-fe0f","v":["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"]},{"n":["woman-pouting"],"u":"1f64e-200d-2640-fe0f","v":["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"]},{"n":["face with no good gesture","no_good"],"u":"1f645","v":["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"]},{"n":["man-gesturing-no"],"u":"1f645-200d-2642-fe0f","v":["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"]},{"n":["woman-gesturing-no"],"u":"1f645-200d-2640-fe0f","v":["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"]},{"n":["face with ok gesture","ok_woman"],"u":"1f646","v":["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"]},{"n":["man-gesturing-ok"],"u":"1f646-200d-2642-fe0f","v":["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"]},{"n":["woman-gesturing-ok"],"u":"1f646-200d-2640-fe0f","v":["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"]},{"n":["information desk person","information_desk_person"],"u":"1f481","v":["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"]},{"n":["man-tipping-hand"],"u":"1f481-200d-2642-fe0f","v":["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"]},{"n":["woman-tipping-hand"],"u":"1f481-200d-2640-fe0f","v":["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"]},{"n":["happy person raising one hand","raising_hand"],"u":"1f64b","v":["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"]},{"n":["man-raising-hand"],"u":"1f64b-200d-2642-fe0f","v":["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"]},{"n":["woman-raising-hand"],"u":"1f64b-200d-2640-fe0f","v":["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"]},{"n":["person bowing deeply","bow"],"u":"1f647","v":["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"]},{"n":["man-bowing"],"u":"1f647-200d-2642-fe0f","v":["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"]},{"n":["woman-bowing"],"u":"1f647-200d-2640-fe0f","v":["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"]},{"n":["face palm","face_palm"],"u":"1f926","v":["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"]},{"n":["man-facepalming"],"u":"1f926-200d-2642-fe0f","v":["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"]},{"n":["woman-facepalming"],"u":"1f926-200d-2640-fe0f","v":["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"]},{"n":["shrug"],"u":"1f937","v":["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"]},{"n":["man-shrugging"],"u":"1f937-200d-2642-fe0f","v":["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"]},{"n":["woman-shrugging"],"u":"1f937-200d-2640-fe0f","v":["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"]},{"n":["face massage","massage"],"u":"1f486","v":["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"]},{"n":["man-getting-massage"],"u":"1f486-200d-2642-fe0f","v":["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"]},{"n":["woman-getting-massage"],"u":"1f486-200d-2640-fe0f","v":["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"]},{"n":["haircut"],"u":"1f487","v":["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"]},{"n":["man-getting-haircut"],"u":"1f487-200d-2642-fe0f","v":["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"]},{"n":["woman-getting-haircut"],"u":"1f487-200d-2640-fe0f","v":["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"]},{"n":["pedestrian","walking"],"u":"1f6b6","v":["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"]},{"n":["man-walking"],"u":"1f6b6-200d-2642-fe0f","v":["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"]},{"n":["woman-walking"],"u":"1f6b6-200d-2640-fe0f","v":["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"]},{"n":["runner","running"],"u":"1f3c3","v":["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"]},{"n":["man-running"],"u":"1f3c3-200d-2642-fe0f","v":["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"]},{"n":["woman-running"],"u":"1f3c3-200d-2640-fe0f","v":["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"]},{"n":["dancer"],"u":"1f483","v":["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"]},{"n":["man dancing","man_dancing"],"u":"1f57a","v":["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"]},{"n":["woman with bunny ears","dancers"],"u":"1f46f"},{"n":["man-with-bunny-ears-partying"],"u":"1f46f-200d-2642-fe0f"},{"n":["woman-with-bunny-ears-partying"],"u":"1f46f-200d-2640-fe0f"},{"n":["person in steamy room","person_in_steamy_room"],"u":"1f9d6","v":["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"]},{"n":["woman_in_steamy_room"],"u":"1f9d6-200d-2640-fe0f","v":["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"]},{"n":["man_in_steamy_room"],"u":"1f9d6-200d-2642-fe0f","v":["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"]},{"n":["person climbing","person_climbing"],"u":"1f9d7","v":["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"]},{"n":["woman_climbing"],"u":"1f9d7-200d-2640-fe0f","v":["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"]},{"n":["man_climbing"],"u":"1f9d7-200d-2642-fe0f","v":["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"]},{"n":["person in lotus position","person_in_lotus_position"],"u":"1f9d8","v":["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"]},{"n":["woman_in_lotus_position"],"u":"1f9d8-200d-2640-fe0f","v":["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"]},{"n":["man_in_lotus_position"],"u":"1f9d8-200d-2642-fe0f","v":["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"]},{"n":["bath"],"u":"1f6c0","v":["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"]},{"n":["sleeping accommodation","sleeping_accommodation"],"u":"1f6cc","v":["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"]},{"n":["man_in_business_suit_levitating"],"u":"1f574-fe0f","v":["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"]},{"n":["speaking_head_in_silhouette"],"u":"1f5e3-fe0f"},{"n":["bust in silhouette","bust_in_silhouette"],"u":"1f464"},{"n":["busts in silhouette","busts_in_silhouette"],"u":"1f465"},{"n":["fencer"],"u":"1f93a"},{"n":["horse racing","horse_racing"],"u":"1f3c7","v":["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"]},{"n":["skier"],"u":"26f7-fe0f"},{"n":["snowboarder"],"u":"1f3c2","v":["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"]},{"n":["golfer"],"u":"1f3cc-fe0f","v":["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"]},{"n":["man-golfing"],"u":"1f3cc-fe0f-200d-2642-fe0f","v":["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"]},{"n":["woman-golfing"],"u":"1f3cc-fe0f-200d-2640-fe0f","v":["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"]},{"n":["surfer"],"u":"1f3c4","v":["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"]},{"n":["man-surfing"],"u":"1f3c4-200d-2642-fe0f","v":["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"]},{"n":["woman-surfing"],"u":"1f3c4-200d-2640-fe0f","v":["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"]},{"n":["rowboat"],"u":"1f6a3","v":["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"]},{"n":["man-rowing-boat"],"u":"1f6a3-200d-2642-fe0f","v":["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"]},{"n":["woman-rowing-boat"],"u":"1f6a3-200d-2640-fe0f","v":["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"]},{"n":["swimmer"],"u":"1f3ca","v":["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"]},{"n":["man-swimming"],"u":"1f3ca-200d-2642-fe0f","v":["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"]},{"n":["woman-swimming"],"u":"1f3ca-200d-2640-fe0f","v":["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"]},{"n":["person_with_ball"],"u":"26f9-fe0f","v":["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"]},{"n":["man-bouncing-ball"],"u":"26f9-fe0f-200d-2642-fe0f","v":["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"]},{"n":["woman-bouncing-ball"],"u":"26f9-fe0f-200d-2640-fe0f","v":["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"]},{"n":["weight_lifter"],"u":"1f3cb-fe0f","v":["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"]},{"n":["man-lifting-weights"],"u":"1f3cb-fe0f-200d-2642-fe0f","v":["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"]},{"n":["woman-lifting-weights"],"u":"1f3cb-fe0f-200d-2640-fe0f","v":["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"]},{"n":["bicyclist"],"u":"1f6b4","v":["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"]},{"n":["man-biking"],"u":"1f6b4-200d-2642-fe0f","v":["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"]},{"n":["woman-biking"],"u":"1f6b4-200d-2640-fe0f","v":["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"]},{"n":["mountain bicyclist","mountain_bicyclist"],"u":"1f6b5","v":["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"]},{"n":["man-mountain-biking"],"u":"1f6b5-200d-2642-fe0f","v":["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"]},{"n":["woman-mountain-biking"],"u":"1f6b5-200d-2640-fe0f","v":["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"]},{"n":["racing_car"],"u":"1f3ce-fe0f"},{"n":["racing_motorcycle"],"u":"1f3cd-fe0f"},{"n":["person doing cartwheel","person_doing_cartwheel"],"u":"1f938","v":["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"]},{"n":["man-cartwheeling"],"u":"1f938-200d-2642-fe0f","v":["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"]},{"n":["woman-
38cartwheeling"],"u":"1f938-200d-2640-fe0f","v":["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"]},{"n":["wrestlers"],"u":"1f93c"},{"n":["man-wrestling"],"u":"1f93c-200d-2642-fe0f"},{"n":["woman-wrestling"],"u":"1f93c-200d-2640-fe0f"},{"n":["water polo","water_polo"],"u":"1f93d","v":["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"]},{"n":["man-playing-water-polo"],"u":"1f93d-200d-2642-fe0f","v":["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"]},{"n":["woman-playing-water-polo"],"u":"1f93d-200d-2640-fe0f","v":["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"]},{"n":["handball"],"u":"1f93e","v":["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"]},{"n":["man-playing-handball"],"u":"1f93e-200d-2642-fe0f","v":["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"]},{"n":["woman-playing-handball"],"u":"1f93e-200d-2640-fe0f","v":["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"]},{"n":["juggling"],"u":"1f939","v":["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"]},{"n":["man-juggling"],"u":"1f939-200d-2642-fe0f","v":["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"]},{"n":["woman-juggling"],"u":"1f939-200d-2640-fe0f","v":["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"]},{"n":["man and woman holding hands","couple","man_and_woman_holding_hands"],"u":"1f46b"},{"n":["two men holding hands","two_men_holding_hands"],"u":"1f46c"},{"n":["two women holding hands","two_women_holding_hands"],"u":"1f46d"},{"n":["kiss","couplekiss"],"u":"1f48f"},{"n":["woman-kiss-man"],"u":"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468"},{"n":["man-kiss-man"],"u":"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468"},{"n":["woman-kiss-woman"],"u":"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469"},{"n":["couple with heart","couple_with_heart"],"u":"1f491"},{"n":["woman-heart-man"],"u":"1f469-200d-2764-fe0f-200d-1f468"},{"n":["man-heart-man"],"u":"1f468-200d-2764-fe0f-200d-1f468"},{"n":["woman-heart-woman"],"u":"1f469-200d-2764-fe0f-200d-1f469"},{"n":["family","man-woman-boy"],"u":"1f46a"},{"n":["man-woman-boy","family"],"u":"1f468-200d-1f469-200d-1f466"},{"n":["man-woman-girl"],"u":"1f468-200d-1f469-200d-1f467"},{"n":["man-woman-girl-boy"],"u":"1f468-200d-1f469-200d-1f467-200d-1f466"},{"n":["man-woman-boy-boy"],"u":"1f468-200d-1f469-200d-1f466-200d-1f466"},{"n":["man-woman-girl-girl"],"u":"1f468-200d-1f469-200d-1f467-200d-1f467"},{"n":["man-man-boy"],"u":"1f468-200d-1f468-200d-1f466"},{"n":["man-man-girl"],"u":"1f468-200d-1f468-200d-1f467"},{"n":["man-man-girl-boy"],"u":"1f468-200d-1f468-200d-1f467-200d-1f466"},{"n":["man-man-boy-boy"],"u":"1f468-200d-1f468-200d-1f466-200d-1f466"},{"n":["man-man-girl-girl"],"u":"1f468-200d-1f468-200d-1f467-200d-1f467"},{"n":["woman-woman-boy"],"u":"1f469-200d-1f469-200d-1f466"},{"n":["woman-woman-girl"],"u":"1f469-200d-1f469-200d-1f467"},{"n":["woman-woman-girl-boy"],"u":"1f469-200d-1f469-200d-1f467-200d-1f466"},{"n":["woman-woman-boy-boy"],"u":"1f469-200d-1f469-200d-1f466-200d-1f466"},{"n":["woman-woman-girl-girl"],"u":"1f469-200d-1f469-200d-1f467-200d-1f467"},{"n":["man-boy"],"u":"1f468-200d-1f466"},{"n":["man-boy-boy"],"u":"1f468-200d-1f466-200d-1f466"},{"n":["man-girl"],"u":"1f468-200d-1f467"},{"n":["man-girl-boy"],"u":"1f468-200d-1f467-200d-1f466"},{"n":["man-girl-girl"],"u":"1f468-200d-1f467-200d-1f467"},{"n":["woman-boy"],"u":"1f469-200d-1f466"},{"n":["woman-boy-boy"],"u":"1f469-200d-1f466-200d-1f466"},{"n":["woman-girl"],"u":"1f469-200d-1f467"},{"n":["woman-girl-boy"],"u":"1f469-200d-1f467-200d-1f466"},{"n":["woman-girl-girl"],"u":"1f469-200d-1f467-200d-1f467"},{"n":["selfie"],"u":"1f933","v":["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"]},{"n":["flexed biceps","muscle"],"u":"1f4aa","v":["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"]},{"n":["white left pointing backhand index","point_left"],"u":"1f448","v":["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"]},{"n":["white right pointing backhand index","point_right"],"u":"1f449","v":["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"]},{"n":["white up pointing index","point_up"],"u":"261d-fe0f","v":["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"]},{"n":["white up pointing backhand index","point_up_2"],"u":"1f446","v":["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"]},{"n":["reversed hand with middle finger extended","middle_finger","reversed_hand_with_middle_finger_extended"],"u":"1f595","v":["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"]},{"n":["white down pointing backhand index","point_down"],"u":"1f447","v":["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"]},{"n":["victory hand","v"],"u":"270c-fe0f","v":["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"]},{"n":["hand with index and middle fingers crossed","crossed_fingers","hand_with_index_and_middle_fingers_crossed"],"u":"1f91e","v":["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"]},{"n":["raised hand with part between middle and ring fingers","spock-hand"],"u":"1f596","v":["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"]},{"n":["sign of the horns","the_horns","sign_of_the_horns"],"u":"1f918","v":["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"]},{"n":["call me hand","call_me_hand"],"u":"1f919","v":["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"]},{"n":["raised_hand_with_fingers_splayed"],"u":"1f590-fe0f","v":["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"]},{"n":["raised hand","hand","raised_hand"],"u":"270b","v":["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"]},{"n":["ok hand sign","ok_hand"],"u":"1f44c","v":["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"]},{"n":["thumbs up sign","+1","thumbsup"],"u":"1f44d","v":["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"]},{"n":["thumbs down sign","-1","thumbsdown"],"u":"1f44e","v":["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"]},{"n":["raised fist","fist"],"u":"270a","v":["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"]},{"n":["fisted hand sign","facepunch","punch"],"u":"1f44a","v":["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"]},{"n":["left-facing fist","left-facing_fist"],"u":"1f91b","v":["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"]},{"n":["right-facing fist","right-facing_fist"],"u":"1f91c","v":["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"]},{"n":["raised back of hand","raised_back_of_hand"],"u":"1f91a","v":["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"]},{"n":["waving hand sign","wave"],"u":"1f44b","v":["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"]},{"n":["i love you hand sign","i_love_you_hand_sign"],"u":"1f91f","v":["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"]},{"n":["writing_hand"],"u":"270d-fe0f","v":["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"]},{"n":["clapping hands sign","clap"],"u":"1f44f","v":["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"]},{"n":["open hands sign","open_hands"],"u":"1f450","v":["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"]},{"n":["person raising both hands in celebration","raised_hands"],"u":"1f64c","v":["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"]},{"n":["palms up together","palms_up_together"],"u":"1f932","v":["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"]},{"n":["person with folded hands","pray"],"u":"1f64f","v":["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"]},{"n":["handshake"],"u":"1f91d"},{"n":["nail polish","nail_care"],"u":"1f485","v":["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"]},{"n":["ear"],"u":"1f442","v":["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"]},{"n":["nose"],"u":"1f443","v":["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"]},{"n":["footprints"],"u":"1f463"},{"n":["eyes"],"u":"1f440"},{"n":["eye"],"u":"1f441-fe0f"},{"n":["eye-in-speech-bubble"],"u":"1f441-fe0f-200d-1f5e8-fe0f"},{"n":["brain"],"u":"1f9e0"},{"n":["tongue"],"u":"1f445"},{"n":["mouth","lips"],"u":"1f444"},{"n":["kiss mark","kiss"],"u":"1f48b"},{"n":["heart with arrow","cupid"],"u":"1f498"},{"n":["heavy black heart","heart"],"u":"2764-fe0f"},{"n":["beating heart","heartbeat"],"u":"1f493"},{"n":["broken heart","broken_heart"],"u":"1f494"},{"n":["two hearts","two_hearts"],"u":"1f495"},{"n":["sparkling heart","sparkling_heart"],"u":"1f496"},{"n":["growing heart","heartpulse"],"u":"1f497"},{"n":["blue heart","blue_heart"],"u":"1f499"},{"n":["green heart","green_heart"],"u":"1f49a"},{"n":["yellow heart","yellow_heart"],"u":"1f49b"},{"n":["orange heart","orange_heart"],"u":"1f9e1"},{"n":["purple heart","purple_heart"],"u":"1f49c"},{"n":["black heart","black_heart"],"u":"1f5a4"},{"n":["heart with ribbon","gift_heart"],"u":"1f49d"},{"n":["revolving hearts","revolving_hearts"],"u":"1f49e"},{"n":["heart decoration","heart_decoration"],"u":"1f49f"},{"n":["heavy_heart_exclamation_mark_ornament"],"u":"2763-fe0f"},{"n":["love letter","love_letter"],"u":"1f48c"},{"n":["sleeping symbol","zzz"],"u":"1f4a4"},{"n":["anger symbol","anger"],"u":"1f4a2"},{"n":["bomb"],"u":"1f4a3"},{"n":["collision symbol","boom","collision"],"u":"1f4a5"},{"n":["splashing sweat symbol","sweat_drops"],"u":"1f4a6"},{"n":["dash symbol","dash"],"u":"1f4a8"},{"n":["dizzy symbol","dizzy"],"u":"1f4ab"},{"n":["speech balloon","speech_balloon"],"u":"1f4ac"},{"n":["left_speech_bubble"],"u":"1f5e8-fe0f"},{"n":["right_anger_bubble"],"u":"1f5ef-fe0f"},{"n":["thought balloon","thought_balloon"],"u":"1f4ad"},{"n":["hole"],"u":"1f573-fe0f"},{"n":["eyeglasses"],"u":"1f453"},{"n":["dark_sunglasses"],"u":"1f576-fe0f"},{"n":["necktie"],"u":"1f454"},{"n":["t-shirt","shirt","tshirt"],"u":"1f455"},{"n":["jeans"],"u":"1f456"},{"n":["scarf"],"u":"1f9e3"},{"n":["gloves"],"u":"1f9e4"},{"n":["coat"],"u":"1f9e5"},{"n":["socks"],"u":"1f9e6"},{"n":["dress"],"u":"1f457"},{"n":["kimono"],"u":"1f458"},{"n":["bikini"],"u":"1f459"},{"n":["womans clothes","womans_clothes"],"u":"1f45a"},{"n":["purse"],"u":"1f45b"},{"n":["handbag"],"u":"1f45c"},{"n":["pouch"],"u":"1f45d"},{"n":["shopping_bags"],"u":"1f6cd-fe0f"},{"n":["school satchel","school_satchel"],"u":"1f392"},{"n":["mans shoe","mans_shoe","shoe"],"u":"1f45e"},{"n":["athletic shoe","athletic_shoe"],"u":"1f45f"},{"n":["high-heeled shoe","high_heel"],"u":"1f460"},{"n":["womans sandal","sandal"],"u":"1f461"},{"n":["womans boots","boot"],"u":"1f462"},{"n":["crown"],"u":"1f451"},{"n":["womans hat","womans_hat"],"u":"1f452"},{"n":["top hat","tophat"],"u":"1f3a9"},{"n":["graduation cap","mortar_board"],"u":"1f393"},{"n":["billed cap","billed_cap"],"u":"1f9e2"},{"n":["helmet_with_white_cross"],"u":"26d1-fe0f"},{"n":["prayer beads","prayer_beads"],"u":"1f4ff"},{"n":["lipstick"],"u":"1f484"},{"n":["ring"],"u":"1f48d"},{"n":["gem stone","gem"],"u":"1f48e"}]}')},function(e,t,n){var r=n(14);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(21);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to de
38structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";var r=n(20);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},function(e,t,n){var r=n(14);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(5),i=n(26);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(6)(!1)).push([e.i,".emoji-picker-react ul.skin-tones-list {\n  padding: 0;\n  margin: 0;\n  list-style-type: none;\n  position: absolute;\n  top: 13px;\n  right: 40px;\n}\n\n.emoji-picker-react ul.skin-tones-list li {\n  background-color: currentColor;\n  position: absolute;\n  padding: 0;\n  border-radius: 2px;\n  overflow: hidden;\n  transition: transform 0.3s ease;\n}\n\n.emoji-picker-react ul.skin-tones-list label {\n  height: 10px;\n  width: 10px;\n  padding: 0;\n  display: block;\n  cursor: pointer;\n}\n\n.emoji-picker-react ul.skin-tones-list input {\n  height: 0;\n  width: 0;\n  opacity: 0;\n  visibility: hidden;\n  display: none;\n}\n\n.emoji-picker-react ul.skin-tones-list li.tneutral {\n  color: #ffd225;\n}\n.emoji-picker-react ul.skin-tones-list li.t1f3fb {\n  color: #ffdfbd;\n}\n.emoji-picker-react ul.skin-tones-list li.t1f3fc {\n  color: #e9c197;\n}\n.emoji-picker-react ul.skin-tones-list li.t1f3fd {\n  color: #c88e62;\n}\n.emoji-picker-react ul.skin-tones-list li.t1f3fe {\n  color: #a86637;\n}\n.emoji-picker-react ul.skin-tones-list li.t1f3ff {\n  color: #60463a;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(5),i=n(28);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(6)(!1)).push([e.i,".emoji-picker-react img.emoji-img {\n  height: 25px;\n  width: 25px;\n  margin: 5px;\n}\n\n.emoji-picker-react .native {\n  height: 25px;\n  width: 25px;\n  margin: 5px;\n  font-size: 25px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(5),i=n(30);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(6)(!1)).push([e.i,".emoji-picker-react .variation-wrapper {\n  position: relative;\n}\n\n.emoji-picker-react .variation-list {\n  background: #f4f4f4;\n  border-bottom: 1px solid #efefef;\n  position: absolute;\n  top: 0;\n  right: 0;\n  left: 0;\n  z-index: 10;\n  margin: 0;\n  padding: 0;\n  display: flex;\n  justify-content: space-evenly;\n  list-style-type: none;\n  transition: transform 0.1s;\n  transform: translateY(-100%);\n}\n\n.emoji-picker-react .variation-list.visible {\n  transform: translateY(0);\n}\n\n.emoji-picker-react .variation-list button {\n  display: flex;\n}\n\n.emoji-picker-react .variation-list button {\n  border-radius: 5px;\n  transition: background 0.1s;\n  background: none;\n  padding: 0;\n}\n\n.emoji-picker-react .variation-list button:hover {\n  background-color: #dbdbdb;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(5),i=n(32);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){var r=n(6),i=n(33),o=n(34),a=n(35),s=n(36),l=n(37),c=n(38),u=n(39),f=n(40),d=n(41);t=r(!1);var h=i(o),p=i(a),m=i(s),g=i(l),v=i(c),y=i(u),b=i(f),w=i(d);
vendor: 7,955 bytes, line 38
38t.push([e.i,".emoji-picker-react .emoji-categories button {\n  height: 40px;\n  width: 20px;\n  padding: 5px 0;\n  background-repeat: no-repeat;\n  background-size: 20px;\n  background-position: 50% 50%;\n  cursor: pointer;\n  opacity: 0.5;\n  transition: opacity 0.1s;\n}\n\n.emoji-picker-react .active-category-indicator-wrapper {\n  position: relative;\n  width: 100%;\n}\n.emoji-picker-react\n  .active-category-indicator-wrapper\n  .active-category-indicator {\n  background: #99c2f1;\n  height: 3px;\n  width: 5px;\n  position: absolute;\n  bottom: 3px;\n  border-radius: 5px;\n  transition: 0.3s;\n  width: 30px;\n  left: -7px;\n}\n\n.emoji-picker-react .emoji-categories button.icn-activities {\n  background-image: url("+h+");\n}\n.emoji-picker-react .emoji-categories button.icn-animals_nature {\n  background-image: url("+p+");\n}\n.emoji-picker-react .emoji-categories button.icn-flags {\n  background-image: url("+m+");\n}\n.emoji-picker-react .emoji-categories button.icn-food_drink {\n  background-image: url("+g+");\n}\n.emoji-picker-react .emoji-categories button.icn-objects {\n  background-image: url("+v+");\n}\n.emoji-picker-react .emoji-categories button.icn-smileys_people {\n  background-image: url("+y+");\n}\n.emoji-picker-react .emoji-categories button.icn-symbols {\n  background-image: url("+b+");\n}\n.emoji-picker-react .emoji-categories button.icn-travel_places {\n  background-image: url("+w+");\n}\n\n.emoji-picker-react .emoji-categories {\n  padding: 0 15px;\n  display: flex;\n  justify-content: space-between;\n  box-sizing: border-box;\n}\n\n.emoji-picker-react .emoji-categories.inactive button,\n.emoji-picker-react .emoji-categories.inactive button.active,\n.emoji-picker-react .emoji-categories.inactive button:hover {\n  opacity: 0.4;\n  cursor: default;\n}\n\n.emoji-picker-react .emoji-categories button.active {\n  opacity: 1;\n}\n\n.emoji-picker-react .emoji-categories button:hover {\n  opacity: 0.7;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 0C14.355 0 0 14.355 0 32s14.355 32 32 32 32-14.355 32-32S49.645 0 32 0zm29.624 36.731l-3.885-6.439 2.681-7.88a29.867 29.867 0 0 1 1.204 14.319zm-7.558 15.567a.994.994 0 0 0-.408-.02L43.98 53.83a.993.993 0 0 0-.123-.345l-5.502-9.17 8.896-13.7h8.428a.992.992 0 0 0 .105.312l5.236 8.678a29.956 29.956 0 0 1-6.954 12.693zm-10.085 3.557l7.688-1.232a29.958 29.958 0 0 1-11.706 6.296l4.018-5.064zM12.65 9.1a29.858 29.858 0 0 1 18.628-7.082.982.982 0 0 0 .24.376l5.525 5.214-2.185 8.156-14.237 5.465c-.052-.042-.093-.094-.154-.126l-8.87-4.701L12.65 9.1zm25.736-2.976l-4.283-4.042a29.763 29.763 0 0 1 10.989 2.931l-6.706 1.111zM21.93 38.737l-.816-15.554L35.655 17.6l9.803 12.106-8.483 13.063-15.045-4.032zm37.375-19.141c-.031.054-.072.098-.093.159l-3.015 8.86h-9.048L36.882 15.937l2.113-7.887 8.27-1.371a.979.979 0 0 0 .453-.218 30.2 30.2 0 0 1 11.587 13.135zm-48.994-8.289l-.802 5.561-5.349 3.975a30.035 30.035 0 0 1 6.151-9.536zm-7.255 12.82c.044-.023.09-.037.131-.068l7.737-5.751 8.158 4.323.888 16.936c.002.025.013.048.016.073l-7.71 7.629c-.066.065-.105.145-.149.222L4.734 44.32c-.028-.012-.057-.009-.085-.018A29.822 29.822 0 0 1 2 32c0-2.725.372-5.362 1.056-7.873zm3.022 22.945l5.415 2.322 4.141 7.729a30.222 30.222 0 0 1-9.556-10.051zm12.759 11.879c-.019-.064-.025-.131-.058-.192l-5.317-9.924c.076-.043.155-.08.22-.145l8.027-7.942 14.507 3.888 5.927 9.879c.05.083.11.154.178.217l-5.449 6.867c-1.587.26-3.213.401-4.872.401-4.72 0-9.186-1.099-13.163-3.049z'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 470 470'%3E%3Cpath d='M401.17 68.83C356.784 24.444 297.771 0 235 0S113.216 24.444 68.83 68.83 0 172.229 0 235s24.444 121.784 68.83 166.17S172.229 470 235 470s121.784-24.444 166.17-68.83S470 297.771 470 235s-24.444-121.784-68.83-166.17zM235 455c-121.309 0-220-98.691-220-220S113.691 15 235 15s220 98.691 220 220-98.691 220-220 220z'/%3E%3Cpath d='M382.5 173.979c3.532 0 6.735 1.824 8.568 4.879a7.499 7.499 0 0 0 12.864 0c1.833-3.055 5.036-4.879 8.568-4.879 4.143 0 7.5-3.357 7.5-7.5s-3.357-7.5-7.5-7.5c-5.461 0-10.724 1.829-15 5.039-4.276-3.21-9.539-5.039-15-5.039-4.143 0-7.5 3.357-7.5 7.5s3.357 7.5 7.5 7.5zM322.5 135.459c3.532 0 6.735 1.824 8.568 4.879a7.499 7.499 0 0 0 12.864 0c1.833-3.055 5.036-4.879 8.568-4.879 4.143 0 7.5-3.357 7.5-7.5s-3.357-7.5-7.5-7.5c-5.461 0-10.724 1.829-15 5.039-4.276-3.21-9.539-5.039-15-5.039-4.143 0-7.5 3.357-7.5 7.5s3.357 7.5 7.5 7.5zM117.5 173.979c3.532 0 6.735 1.824 8.568 4.879a7.499 7.499 0 0 0 12.864 0c1.833-3.055 5.036-4.879 8.568-4.879 4.143 0 7.5-3.357 7.5-7.5s-3.357-7.5-7.5-7.5c-5.461 0-10.724 1.829-15 5.039-4.276-3.21-9.539-5.039-15-5.039-4.143 0-7.5 3.357-7.5 7.5s3.357 7.5 7.5 7.5zM436.826 253.173a7.5 7.5 0 0 0-5.443-2.6c-12.664-.4-24.343-7.548-32.041-19.608a7.5 7.5 0 0 0-12.643-.001c-7.974 12.489-20.074 19.652-33.2 19.652-13.089 0-25.177-7.164-33.162-19.656a7.502 7.502 0 0 0-12.635-.004c-8 12.494-20.098 19.66-33.192 19.66-13.098 0-25.189-7.164-33.175-19.656a7.5 7.5 0 0 0-12.64.004c-7.974 12.489-20.069 19.652-33.187 19.652-13.098 0-25.19-7.164-33.176-19.656a7.502 7.502 0 0 0-12.635-.004c-8 12.494-20.098 19.66-33.191 19.66-13.099 0-25.19-7.164-33.175-19.655a7.5 7.5 0 0 0-12.64.004c-7.699 12.061-19.389 19.207-32.07 19.608a7.494 7.494 0 0 0-5.443 2.6 7.497 7.497 0 0 0-1.769 5.767c5.786 49.506 29.545 95.215 66.901 128.706C135.964 421.407 184.509 440 235 440c45.241 0 88.17-14.518 124.145-41.982a7.498 7.498 0 0 0 1.41-10.512 7.496 7.496 0 0 0-10.512-1.41C316.705 411.547 276.924 425 235 425c-93.882 0-173.276-68.424-187.68-160.366 11.265-2.217 21.561-8.215 29.707-17.284 10.49 11.584 24.673 18.267 39.476 18.267 14.808 0 29.002-6.691 39.505-18.291 10.493 11.6 24.685 18.291 39.498 18.291 14.828 0 29.022-6.689 39.511-18.284 10.493 11.595 24.682 18.284 39.491 18.284 14.808 0 29.002-6.691 39.505-18.291 10.493 11.6 24.679 18.291 39.485 18.291 14.826 0 29.018-6.681 39.505-18.264 8.14 9.065 18.422 15.061 29.671 17.278-6.044 38.177-24.008 74.246-51.068 102.269a7.5 7.5 0 1 0 10.791 10.419c31.08-32.185 51.038-74.226 56.198-118.38a7.495 7.495 0 0 0-1.769-5.766z'/%3E%3Cpath d='M289.513 310.616c-4.143 0-7.5 3.357-7.5 7.5s3.357 7.5 7.5 7.5h10c4.143 0 7.5-3.357 7.5-7.5s-3.357-7.5-7.5-7.5h-10zM358.49 280.616h-10c-4.143 0-7.5 3.357-7.5 7.5s3.357 7.5 7.5 7.5h10c4.143 0 7.5-3.357 7.5-7.5s-3.357-7.5-7.5-7.5zM111.503 280.616c-4.143 0-7.5 3.357-7.5 7.5s3.357 7.5 7.5 7.5h10c4.143 0 7.5-3.357 7.5-7.5s-3.357-7.5-7.5-7.5h-10zM235 191.25c30.327 0 55-24.673 55-55s-24.673-55-55-55-55 24.673-55 55 24.673 55 55 55zm0-95c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.944-40 40-40z'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 502 502'%3E%3Cpath d='M428.484 73.516C381.076 26.108 318.044 0 251 0S120.924 26.108 73.516 73.516 0 183.956 0 251s26.108 130.076 73.516 177.484S183.956 502 251 502s130.076-26.108 177.484-73.516C475.892 381.076 502 318.044 502 251s-26.108-130.076-73.516-177.484zM283.829 39h58.868c58.354 25.338 104.274 74.079 125.849 134.317h-41.725a21.139 21.139 0 0 0-19.587 13.087 21.139 21.139 0 0 0 4.595 23.104l3.3 3.3c4.638 4.637 4.638 12.184 0 16.821a11.42 11.42 0 0 1-8.13 3.368 11.422 11.422 0 0 1-8.13-3.368l-7.969-7.969c-13.135-13.135-30.599-20.369-49.175-20.369h-6.397v-8.036c0-19.265-7.502-37.376-21.124-50.999l-9.952-9.952c-10.216-10.216-23.799-15.843-38.247-15.843h-19.931c-7.721 0-14.98 3.007-20.439 8.466l-5.17 5.169c-5.459 5.459-8.466 12.718-8.466 20.439a4.736 4.736 0 0 1-4.73 4.73h-8.66v-12.154c0-8.648 3.368-16.78 9.483-22.895l5.849-5.849c5.244
38-5.243 8.131-12.214 8.131-19.629V92.71c0-.394.32-.713.713-.713H320.5c12.407 0 22.5-10.093 22.5-22.5S332.907 47 320.5 47h-36.671c-2.206 0-4-1.794-4-4s1.794-4 4-4zm74.893 252.437l-5.452 5.484a155.066 155.066 0 0 0-22.913 29.41l-9.918 16.5-12.403 20.492a48.673 48.673 0 0 0-7.036 25.21v.615a.857.857 0 0 1-.856.856h-.004a8.78 8.78 0 0 1-6.247-2.586 8.776 8.776 0 0 1-2.589-6.25c0-12.58-4.899-24.407-13.794-33.303l-4.591-4.591c-6.947-6.947-10.773-16.183-10.773-26.007v-29.475c0-14.806-12.045-26.851-26.852-26.851H231.8c-8.349 0-15.142-6.792-15.142-15.142v-15.343c0-9.034 7.35-16.384 16.384-16.384h79.886l24.099 24.1c6.003 6.003 9.309 13.984 9.309 22.473v11.464c0 8.56 5.082 15.955 12.386 19.328zM20 251c0-9.444.583-18.752 1.69-27.902h30.619c10.153 0 19.698 3.954 26.876 11.133l8.781 8.78c7.527 7.527 17.534 11.672 28.179 11.672 5.65 0 10.962 2.2 14.957 6.195l.193.193c7.233 7.233 11.217 16.851 11.217 27.081v17.886c0 13.63-5.308 26.444-14.945 36.082l-19.15 19.15c-13.442 13.443-21.939 30.512-24.58 49.002C44.303 368.799 20 312.684 20 251zm231 231c-56.288 0-107.93-20.247-148.049-53.827v-5.423c0-17.881 6.963-34.693 19.607-47.337l19.15-19.15c13.415-13.416 20.803-31.252 20.803-50.224v-17.886c0-15.573-6.064-30.213-17.075-41.224l-.193-.192c-7.772-7.772-18.106-12.053-29.099-12.053a19.72 19.72 0 0 1-14.036-5.814l-8.781-8.781c-10.957-10.956-25.524-16.99-41.019-16.99h-27.3C47.126 98.635 140.047 20 251 20c7.743 0 15.396.39 22.946 1.138-8.316 3.774-14.117 12.151-14.117 21.862 0 13.234 10.766 24 24 24H320.5c1.378 0 2.5 1.122 2.5 2.5s-1.122 2.5-2.5 2.5h-97.713c-11.421 0-20.713 9.292-20.713 20.713v2.028a7.706 7.706 0 0 1-2.273 5.486l-5.85 5.85c-9.893 9.893-15.341 23.047-15.341 37.037v13.574c0 10.245 8.334 18.58 18.579 18.58h10.081c13.636 0 24.73-11.094 24.73-24.73 0-2.379.926-4.615 2.608-6.297l5.169-5.169c.203-.203.414-.393.632-.574.167.195.334.389.518.574l19.932 19.932c-3.833 3.911-3.813 10.186.068 14.068 1.953 1.953 4.512 2.929 7.071 2.929s5.119-.976 7.071-2.929l7-7c3.905-3.905 3.905-10.237 0-14.143l-15.45-15.45c8.875.156 17.197 3.677 23.489 9.97l9.953 9.952c9.844 9.844 15.266 22.934 15.266 36.856v.817H233.04c-20.062 0-36.384 16.322-36.384 36.384V245.8c0 19.377 15.765 35.142 35.142 35.142h3.493a6.86 6.86 0 0 1 6.852 6.851v29.475c0 15.167 5.906 29.425 16.63 40.15l4.591 4.591c5.118 5.118 7.937 11.923 7.937 19.161 0 7.705 3.001 14.948 8.451 20.396 5.446 5.443 12.685 8.44 20.384 8.44h.015C311.648 410 321 400.644 321 389.149v-.614a28.68 28.68 0 0 1 4.146-14.854l12.409-20.502a.226.226 0 0 1 .016-.026l9.928-16.517a135.064 135.064 0 0 1 19.955-25.613l11.147-11.213c4.428-4.455 5.731-11.08 3.319-16.879s-8.029-9.546-14.31-9.546a1.274 1.274 0 0 1-1.273-1.273v-11.464c0-13.832-5.386-26.835-15.167-36.616l-2.215-2.215c10.49 1.524 20.173 6.357 27.804 13.988l7.969 7.969c6.141 6.141 14.207 9.211 22.272 9.211s16.132-3.07 22.272-9.211c6.024-6.024 9.341-14.033 9.341-22.553 0-8.519-3.317-16.528-9.341-22.553l-3.3-3.3c-.198-.198-.567-.567-.26-1.308.307-.741.829-.741 1.109-.741h47.888C479.468 211.761 482 231.09 482 251c0 127.374-103.626 231-231 231z'/%3E%3Cpath d='M184 85c5.523 0 10-4.477 10-10V54.494c0-5.523-4.477-10-10-10s-10 4.477-10 10V75c0 5.523 4.477 10 10 10zM450.39 314.63c-5.176-1.93-10.935.702-12.863 5.877C408.652 397.961 333.692 450 251 450c-5.523 0-10 4.477-10 10s4.477 10 10 10c45.543 0 89.207-13.849 126.272-40.048 36.24-25.617 63.556-61.046 78.995-102.458 1.929-5.175-.702-10.934-5.877-12.864zM202.433 444.034a198.232 198.232 0 0 1-28.554-9.526c-5.092-2.144-10.954.249-13.096 5.339-2.142 5.09.249 10.954 5.339 13.096a218.202 218.202 0 0 0 31.445 10.491c.817.205 1.635.303 2.44.303 4.478 0 8.554-3.03 9.692-7.57 1.344-5.358-1.909-10.79-7.266-12.133z'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M337.502 61.244c-46.267-19.341-98.094-21.573-145.933-6.282-5.497 1.758-8.528 7.638-6.772 13.134 1.758 5.497 7.64 8.528 13.134 6.772 43.115-13.782 89.819-11.772 131.51 5.657 1.317.55 2.682.811 4.026.811 4.087 0 7.969-2.415 9.644-6.422 2.228-5.324-.284-11.445-5.609-13.67zM368.323 77.252a11.31 11.31 0 0 0-.375-.239c-4.925-3.009-11.356-1.458-14.364 3.467-2.984 4.884-1.483 11.249 3.346 14.29a10.398 10.398 0 0 0 5.587 1.626c3.377 0 6.69-1.633 8.704-4.654 3.201-4.801 1.904-11.289-2.898-14.49zM447.293 161.884c-4.081-4.08-10.698-4.08-14.778 0l-14.629 14.629c-4.08 4.081-4.08 10.698 0 14.778 2.04 2.041 4.715 3.06 7.388 3.06s5.349-1.02 7.389-3.06l14.629-14.629c4.081-4.081 4.081-10.698.001-14.778zM83.999 214.617c-4.081-4.08-10.698-4.08-14.778 0l-14.629 14.629c-4.08 4.081-4.08 10.698 0 14.778 2.04 2.041 4.715 3.06 7.388 3.06s5.349-1.02 7.39-3.06l14.629-14.629c4.081-4.082 4.081-10.698 0-14.778zM115.508 100.235c-4.081-4.08-10.698-4.08-14.778 0l-14.629 14.629c-4.08 4.081-4.08 10.698 0 14.778 2.04 2.041 4.715 3.06 7.388 3.06s5.348-1.02 7.39-3.06l14.629-14.629c4.081-4.081 4.081-10.698 0-14.778zM386.754 116.24h-20.688c-5.7
3871 0-10.449 4.678-10.449 10.449s4.678 10.449 10.449 10.449h20.688c5.771 0 10.449-4.678 10.449-10.449s-4.678-10.449-10.449-10.449zM151.326 161.908l-14.618-14.618c-4.081-4.08-10.698-4.081-14.778 0s-4.08 10.698 0 14.778l14.618 14.618a10.413 10.413 0 0 0 7.388 3.06c2.674 0 5.349-1.02 7.39-3.06 4.081-4.081 4.081-10.698 0-14.778zM411.753 229.241l-14.618-14.617c-4.08-4.081-10.696-4.08-14.777 0s-4.08 10.697 0 14.777l14.618 14.617c2.041 2.041 4.715 3.06 7.388 3.06s5.348-1.021 7.388-3.06c4.083-4.08 4.082-10.696.001-14.777zM318.326 126.607l-14.617-14.617c-4.081-4.08-10.698-4.081-14.778 0s-4.08 10.698 0 14.778l14.617 14.617a10.414 10.414 0 0 0 7.388 3.061 10.42 10.42 0 0 0 7.39-3.061c4.08-4.081 4.08-10.698 0-14.778zM195.194 97.387c-3.904-4.25-10.515-4.528-14.763-.622l-15.22 13.989c-4.249 3.905-4.527 10.515-.622 14.763a10.42 10.42 0 0 0 7.696 3.378c2.528 0 5.063-.911 7.068-2.756l15.22-13.989c4.248-3.905 4.526-10.515.621-14.763zM256.153 145.241H255.865c-5.762 0-10.437 4.665-10.449 10.429-.011 5.771 4.658 10.457 10.429 10.469H256.134c5.762 0 10.438-4.664 10.449-10.429.01-5.771-4.659-10.458-10.43-10.469z'/%3E%3Cpath d='M437.019 74.981C388.668 26.628 324.38 0 256 0S123.332 26.628 74.981 74.981C26.629 123.333 0 187.62 0 256c0 68.38 26.628 132.668 74.981 181.019C123.333 485.371 187.62 512 256 512c68.38 0 132.668-26.628 181.019-74.981C485.371 388.667 512 324.38 512 256s-26.628-132.668-74.981-181.019zM256 491.102c-94.256 0-175.718-55.763-213.173-136.024 6.781-.56 13.126-3.458 18.112-8.35 5.756-5.647 9.057-13.495 9.057-21.531v-9.364c0-7.449 6.027-13.624 13.435-13.767 3.561-.079 6.976 1.322 9.617 3.913 2.77 2.718 4.359 6.484 4.359 10.332v23.709c0 18.754 15.222 34.302 33.932 34.66.221.004.442.006.664.006 8.973 0 17.47-3.499 23.989-9.895 6.751-6.623 10.623-15.826 10.623-25.25v-18.215c20.172 27.524 52.723 45.432 89.384 45.432 52.209 0 96.09-36.312 107.73-85.007a10.027 10.027 0 0 1 2.18 6.23v25.773c0 19.673 15.968 35.984 35.596 36.361.233.004.464.006.696.006 9.409 0 18.321-3.671 25.161-10.38 7.086-6.951 11.149-16.61 11.149-26.5v-24.856c0-2.83 1.17-5.6 3.21-7.602 1.927-1.889 4.429-2.882 6.986-2.854 5.403.104 9.8 4.612 9.8 10.05v2.721c0 14.409 10.071 26.69 23.526 30.04C453.848 418.996 363.189 491.102 256 491.102zm223.405-200.399v-2.721c0-16.741-13.591-30.624-30.297-30.944-8.235-.159-16.057 2.978-22.022 8.829-6.021 5.906-9.473 14.113-9.473 22.52v24.856c0 4.314-1.782 8.536-4.886 11.582-2.97 2.912-6.846 4.462-10.82 4.397-8.326-.16-15.099-7.098-15.099-15.468v-25.773c0-13.154-8.392-24.538-20.091-28.971.027-1.001.043-2.004.043-3.011 0-46.06-29.007-87.788-72.182-103.836-5.411-2.01-11.425.745-13.434 6.154-2.01 5.409.745 11.424 6.154 13.434 35.027 13.021 58.562 46.877 58.562 84.248 0 49.549-40.312 89.861-89.861 89.861-49.549 0-89.861-40.312-89.861-89.861 0-37.372 23.535-71.228 58.565-84.246 5.409-2.01 8.164-8.026 6.154-13.434s-8.022-8.165-13.434-6.154C174.248 168.21 145.239 209.938 145.239 256a110.22 110.22 0 0 0 7.085 38.971 30.145 30.145 0 0 0-6.607 18.808v25.763c0 3.848-1.589 7.614-4.359 10.332-2.642 2.591-6.036 3.973-9.617 3.913-7.407-.142-13.434-6.317-13.434-13.766v-23.709c0-9.424-3.872-18.627-10.623-25.251-6.681-6.554-15.435-10.081-24.652-9.889-18.71.358-33.932 15.907-33.932 34.66v9.364c0 2.461-1.019 4.871-2.794 6.613-1.668 1.635-3.808 2.506-6.034 2.47-3.374-.065-6.387-2.139-7.733-5.21-7.543-23.011-11.64-47.569-11.64-73.07C20.898 126.365 126.365 20.898 256 20.898S491.102 126.365 491.102 256c0 15.182-1.464 30.026-4.227 44.414-4.281-1.138-7.47-5.083-7.47-9.711z'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58.153 58.153'%3E%3Cpath d='M40.076 29.153h-7.142a3.995 3.995 0 0 0-2.858-2.858V16.153a1 1 0 1 0-2 0v10.142c-1.72.447-3 1.999-3 3.858 0 2.206 1.794 4 4 4 1.858 0 3.411-1.28 3.858-3h7.142a1 1 0 1 0 0-2zm-11 3c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2z'/%3E%3Cpath d='M50.188 9.764l4.096 4.096a1 1 0 0 0 1.414 0c3.167-3.166 3.167-8.319 0-11.485s-8.319-3.166-11.485 0a.997.997 0 0 0 0 1.414l4.561 4.561-1.699 1.699c-4.78-4.284-11.089-6.896-17.998-6.896s-13.218 2.612-17.998 6.896l-1.7-1.699 4.561-4.561a.997.997 0 0 0 0-1.414c-3.166-3.166-8.318-3.166-11.485 0s-3.167 8.319 0 11.485a1 1 0 0 0 1.414 0l4.096-4.096 1.676 1.676c-4.679 4.857-7.565 11.453-7.565 18.713 0 9.898 5.357 18.564 13.321 23.265l-3.028 3.028a.999.999 0 1 0 1.414 1.414l3.45-3.45c3.578 1.754 7.597 2.743 11.843 2.743s8.265-.989 11.843-2.743l3.45 3.45a.997.997 0 0 0 1.414 0 .999.999 0 0 0 0-1.414l-3.028-3.028c7.964-4.701 13.321-13.367 13.321-23.265 0-7.26-2.886-13.856-7.565-18.713l1.677-1.676zm4.095-5.975c2.146 2.146 2.362 5.502.649 7.893L46.391 3.14a6.13 6.13 0 0 1 7.892.649zM3.22 11.681c-1.713-2.39-1.497-5.746.649-7.892s5.502-2.361 7.892-.649L3.22 11.681zm25.856 43.472c-13.785 0-25-11.215-25-25s11.215-25 25-25 25 11.215 25 25-11.214 25-25 25z'/%3E%3Cpath d='M29.076 10.032a1 1 0 0 0 1-1v-1a1 1 0 1 0-2 0v1a1 1 0 0 0 1 1zM29.076 50.032a1 1 0 0 0-1 1v1a1 1 0 1 0 2 0v-1a1 1 0 0 0-1-1zM50.076 31.032h1a1 1 0 1 0 0-2h-1a1 1 0 1 0 0 2zM8.076 29.032h-1a1 1 0 1 0 0 2h1a1 1 0 1 0 0-2zM43.926 13.768l-.707.707a.999.999 0 1 0 1.414 1.414l.707-.707a.999.999 0 1 0-1.414-1.414zM13.52 44.174l-.707.707a.999.999 0 1 0 1.414 1.414l.707-.707a.999.999 0 1 0-1.414-1.414zM44.633 44.174a.999.999 0 1 0-1.414 1.414l.707.707a.997.997 0 0 0 1.414 0 .999.999 0 0 0 0-1.414l-.707-.707zM14.227 13.768a.999.999 0 1 0-1.414 1.414l.707.707a.997.997 0 0 0 1.414 0 .999.999 0 0 0 0-1.414l-.707-.707z'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 33 33'%3E%3Cpath d='M16.5 33C7.402 33 0 25.598 0 16.5S7.402 0 16.5 0 33 7.402 33 16.5 25.598 33 16.5 33zm0-32C7.953 1 1 7.953 1 16.5S7.953 32 16.5 32 32 25.047 32 16.5 25.047 1 16.5 1z'/%3E%3Cpath d='M16.5 33a16.38 16.38 0 0 1-9.549-3.06.5.5 0 1 1 .116-.876c4.146-1.535 4.815-2.781 4.815-5.169 0-.
38631-.142-.838-.398-1.214-.339-.494-.803-1.171-1.129-2.939-.048-.254-.089-.274-.316-.384-.606-.292-1.163-.712-1.309-2.628 0-.928.32-1.441.585-1.708-.058-.33-.153-.899-.242-1.519-.453-2.777-.473-6.178 3.433-7.759 3.404-1.38 6.121-.626 6.974.273.604.019 2.162.177 3.246 1.438 1.668 1.94 1.137 6.363.955 7.562.266.261.589.767.589 1.675-.146 1.954-.703 2.375-1.31 2.666-.228.11-.269.129-.316.384-.326 1.768-.789 2.445-1.128 2.939-.257.375-.398.583-.398 1.214 0 2.388.669 3.634 4.815 5.169a.498.498 0 0 1 .116.876A16.38 16.38 0 0 1 16.5 33zm-8.183-3.349C10.779 31.191 13.589 32 16.5 32s5.721-.809 8.183-2.349c-3.474-1.426-4.565-2.864-4.565-5.755 0-.941.278-1.348.573-1.779.304-.444.682-.996.971-2.556.139-.754.576-.964.865-1.103.311-.149.631-.303.744-1.803-.001-.764-.344-.972-.358-.98a.533.533 0 0 1-.264-.537c.248-1.329.656-5.474-.681-7.031-.913-1.062-2.352-1.091-2.626-1.08-.046-.004-.091-.005-.134-.016-.13-.033-.35-.146-.417-.262-.272-.466-2.641-1.403-5.91-.08-3.231 1.308-3.238 4.112-2.819 6.682.138.957.289 1.784.29 1.788a.5.5 0 0 1-.283.544c.003 0-.339.209-.339 1.008.112 1.461.433 1.616.743 1.765.289.139.727.349.866 1.103.288 1.56.666 2.112.97 2.556.296.431.574.838.574 1.779 0 2.894-1.091 4.332-4.566 5.757z'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 490.4 490.4'%3E%3Cpath d='M229 381.2c4.4 4.4 10.1 6.8 16.3 6.8 6.2 0 12-2.4 16.3-6.8l96.3-96.3c15.7-15.7 24.4-36.6 24.4-58.7 0-22.2-8.6-43.1-24.3-58.8-15.7-15.7-36.6-24.3-58.7-24.3-20 0-38.9 7-54 19.9-15.1-13-34.1-20-54.1-20-22.2 0-43 8.6-58.7 24.3s-24.3 36.6-24.3 58.8 8.7 43 24.4 58.7l96.4 96.4zm-79.3-196.7c11.1-11.1 25.7-17.1 41.4-17.1s30.4 6.1 41.5 17.2l4 4c4.8 4.8 12.5 4.8 17.3 0l3.9-3.9c11.1-11.1 25.8-17.2 41.5-17.2 15.6 0 30.3 6.1 41.4 17.2 11.1 11.1 17.2 25.8 17.1 41.4 0 15.7-6.1 30.4-17.2 41.5l-95.3 95.3-95.5-95.5c-11.1-11.1-17.2-25.8-17.2-41.4 0-15.7 6.1-30.4 17.1-41.5z'/%3E%3Cpath d='M245.2 490.4c135.2 0 245.2-110 245.2-245.2S380.4 0 245.2 0 0 110 0 245.2s110 245.2 245.2 245.2zm0-465.9c121.7 0 220.7 99 220.7 220.7s-99 220.7-220.7 220.7-220.7-99-220.7-220.7 99-220.7 220.7-220.7z'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 470 470'%3E%3Cpath d='M401.17 68.83C356.784 24.444 297.771 0 235 0S113.216 24.444 68.83 68.83C24.444 113.215 0 172.229 0 235s24.444 121.785 68.83 166.17C113.216 445.556 172.229 470 235 470s121.784-24.444 166.17-68.83C445.556 356.785 470 297.771 470 235s-24.444-121.785-68.83-166.17zM235 455c-121.309 0-220-98.691-220-220S113.691 15 235 15s220 98.691 220 220-98.691 220-220 220z'/%3E%3Ccircle cx='235' cy='97.5' r='7.5'/%3E%3Cpath d='M437.56 242.365a7.501 7.501 0 0 0-5.467-2.365h-26.046v-22.5c0-4.142-3.357-7.5-7.5-7.5s-7.5 3.358-7.5 7.5V240H372.5v-52.5a7.5 7.5 0 0 0-3.525-6.36L292.5 133.343V97.5A7.5 7.5 0 0 0 285 90h-13.253C268.262 72.905 253.109 60 235 60s-33.262 12.905-36.747 30H185a7.5 7.5 0 0 0-7.5 7.5V130h-25v-22.5c0-4.142-3.357-7.5-7.5-7.5s-7.5 3.358-7.5 7.5V130H105a7.5 7.5 0 0 0-7.5 7.5v102.499l-59.593-.01a7.504 7.504 0 0 0-7.487 7.969c3.523 56.171 29.666 105.984 69.187 140.798.281.291.587.556.911.799 23.389 20.362 51.39 35.496 82.128 43.638.307.102.622.184.946.246A204.258 204.258 0 0 0 235 440c17.409 0 34.679-2.229 51.386-6.558a7.297 7.297 0 0 0 1.002-.262 203.842 203.842 0 0 0 50.574-20.966c30.222-17.629 55.631-42.86 73.479-72.965a7.5 7.5 0 0 0-12.902-7.65 189.49 189.49 0 0 1-26.039 34.299V255h51.438a188.457 188.457 0 0 1-12.616 50.728 7.499 7.499 0 0 0 4.156 9.758 7.498 7.498 0 0 0 9.758-4.157 203.511 203.511 0 0 0 14.342-63.359 7.499 7.499 0 0 0-2.018-5.605zM192.5 175h85v215h-85V175zm0-70H205a7.5 7.5 0 0 0 7.5-7.5c0-12.407 10.094-22.5 22.5-22.5s22.5 10.093 22.5 22.5a7.5 7.5 0 0 0 7.5 7.5h12.5v55h-85v-55zM46.059 254.99l51.441.009V307.5c0 4.142 3.357 7.5 7.5 7.5s7.5-3.358 7.5-7.5V145h65v245H175c-4.143 0-7.5 3.358-7.5 7.5s3.357 7.5 7.5 7.5h2.5v11.078c-24.056-7.668-46.091-20.018-65-35.997V337.5c0-4.142-3.357-7.5-7.5-7.5s-7.5 3.358-7.5 7.5v28.458c-28.127-29.492
38-46.937-68.033-51.441-110.968zM192.5 420.179V405h85v15.106A187.644 187.644 0 0 1 235 425a189.427 189.427 0 0 1-42.5-4.821zm100-4.235V405h2.5c4.143 0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5h-2.5V151.032l65 40.625v188.307a191.989 191.989 0 0 1-65 35.98z'/%3E%3Cpath d='M325 320a7.5 7.5 0 0 0-7.5 7.5v10c0 4.142 3.357 7.5 7.5 7.5s7.5-3.358 7.5-7.5v-10a7.5 7.5 0 0 0-7.5-7.5zM325 280a7.5 7.5 0 0 0-7.5 7.5v10c0 4.142 3.357 7.5 7.5 7.5s7.5-3.358 7.5-7.5v-10a7.5 7.5 0 0 0-7.5-7.5zM325 240a7.5 7.5 0 0 0-7.5 7.5v10c0 4.142 3.357 7.5 7.5 7.5s7.5-3.358 7.5-7.5v-10a7.5 7.5 0 0 0-7.5-7.5zM325 200a7.5 7.5 0 0 0-7.5 7.5v10c0 4.142 3.357 7.5 7.5 7.5s7.5-3.358 7.5-7.5v-10a7.5 7.5 0 0 0-7.5-7.5zM145 345a7.5 7.5 0 0 0 7.5-7.5v-10c0-4.142-3.357-7.5-7.5-7.5s-7.5 3.358-7.5 7.5v10a7.5 7.5 0 0 0 7.5 7.5zM145 305a7.5 7.5 0 0 0 7.5-7.5v-10c0-4.142-3.357-7.5-7.5-7.5s-7.5 3.358-7.5 7.5v10a7.5 7.5 0 0 0 7.5 7.5zM145 265a7.5 7.5 0 0 0 7.5-7.5v-10c0-4.142-3.357-7.5-7.5-7.5s-7.5 3.358-7.5 7.5v10a7.5 7.5 0 0 0 7.5 7.5zM145 185a7.5 7.5 0 0 0 7.5-7.5v-10c0-4.142-3.357-7.5-7.5-7.5s-7.5 3.358-7.5 7.5v10a7.5 7.5 0 0 0 7.5 7.5zM145 225a7.5 7.5 0 0 0 7.5-7.5v-10c0-4.142-3.357-7.5-7.5-7.5s-7.5 3.358-7.5 7.5v10a7.5 7.5 0 0 0 7.5 7.5zM235 350a7.5 7.5 0 0 0-7.5 7.5v10c0 4.142 3.357 7.5 7.5 7.5s7.5-3.358 7.5-7.5v-10a7.5 7.5 0 0 0-7.5-7.5zM235 310a7.5 7.5 0 0 0-7.5 7.5v10c0 4.142 3.357 7.5 7.5 7.5s7.5-3.358 7.5-7.5v-10a7.5 7.5 0 0 0-7.5-7.5zM235 270a7.5 7.5 0 0 0-7.5 7.5v10c0 4.142 3.357 7.5 7.5 7.5s7.5-3.358 7.5-7.5v-10a7.5 7.5 0 0 0-7.5-7.5zM235 230a7.5 7.5 0 0 0-7.5 7.5v10c0 4.142 3.357 7.5 7.5 7.5s7.5-3.358 7.5-7.5v-10a7.5 7.5 0 0 0-7.5-7.5zM235 190a7.5 7.5 0 0 0-7.5 7.5v10c0 4.142 3.357 7.5 7.5 7.5s7.5-3.358 7.5-7.5v-10a7.5 7.5 0 0 0-7.5-7.5zM215 145h40c4.143 0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5h-40c-4.143 0-7.5 3.358-7.5 7.5s3.357 7.5 7.5 7.5z'/%3E%3C/svg%3E"},function(e,t,n){var r=n(5),i=n(43);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(6)(!1)).push([e.i,".emoji-picker-react .emoji {\n  position: relative;\n}\n\n.emoji-picker-react .emoji.has-skin-variation button:before {\n  content: '';\n  display: block;\n  width: 0;\n  height: 0;\n  right: -2px;\n  bottom: 0px;\n  position: absolute;\n  border-left: 4px solid transparent;\n  border-right: 4px solid transparent;\n  border-bottom: 4px solid rgba(0, 0, 0, 0.1);\n  transform: rotate(135deg);\n  z-index: 1;\n}\n\n.emoji-picker-react .emoji.has-skin-variation button:hover:before,\n.emoji-picker-react .emoji.has-skin-variation button:focus-visible:before {\n  border-bottom: 4px solid rgba(0, 0, 0, 0.4);\n}\n\n.emoji-picker-react .emoji button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  color: inherit;\n  border-radius: 5px;\n  transition: 0.1s background;\n  padding: 0;\n  margin: 0;\n}\n\n.emoji-picker-react .emoji button:hover,\n.emoji-picker-react .emoji button:focus-visible {\n  background-color: currentColor;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(5),i=n(45);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(6)(!1)).push([e.i,".emoji-picker-react .emoji-group {\n  clear: both;\n  padding: 0 15px;\n  list-style: none;\n  margin: 0;\n  display: flex;\n  flex-flow: row wrap;\n  justify-content: space-between;\n}\n\n.emoji-picker-react .emoji-group:before {\n  content: attr(data-display-name);\n  color: #aaa;\n  font-size: 14px;\n  position: sticky;\n  background: rgba(255, 255, 255, 0.95);\n  width: 100%;\n  z-index: 1;\n  top: 0;\n  text-transform: uppercase;\n  line-height: 45px;\n  font-weight: 700;\n}\n\n.emoji-picker-react .emoji-group:after {\n  content: '';\n  flex: 1000;\n  order: 99999;\n  flex-basis: 25px;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(5),i=n(47);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(6)(!1)).push([e.i,".emoji-picker-react input.emoji-search {\n  width: calc(100% - 30px);\n  margin-left: 15px;\n  outline: none;\n  box-shadow: none;\n  padding: 10px;\n  box-sizing: border-box;\n  border: 1px solid #efefef;\n  border-radius: 3px;\n  transition: border 0.1s;\n}\n\n.emoji-picker-react input.emoji-search:focus {\n  border: 1px solid #d6d6d6;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(5),i=n(49);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}}
38,function(e,t,n){(t=n(6)(!1)).push([e.i,"aside.emoji-picker-react {\n  background: #fff;\n  display: flex;\n  flex-direction: column;\n  height: 320px;\n  width: 280px;\n  font-family: sans-serif;\n  border: 1px solid #efefef;\n  border-radius: 5px;\n  box-sizing: border-box;\n  box-shadow: 0 5px 10px #efefef;\n  overflow: hidden;\n  position: relative;\n}\n\naside.emoji-picker-react .content-wrapper {\n  flex: 1;\n  overflow-y: hidden;\n  position: relative;\n}\n\n.emoji-picker-react .emoji-scroll-wrapper {\n  overflow-y: scroll;\n  position: relative;\n  height: 100%;\n  box-sizing: border-box;\n}\n\naside.emoji-picker-react .content-wrapper:before {\n  content: attr(data-name);\n  color: #aaa;\n  font-size: 11px;\n  display: block;\n  position: absolute;\n  right: 15px;\n  z-index: 10;\n  line-height: 45px;\n  max-height: 45px;\n  overflow: hidden;\n  max-width: 100px;\n  text-overflow: ellipsis;\n  text-align: right;\n}\n\naside.emoji-picker-react button {\n  border: none;\n  cursor: pointer;\n  outline: none;\n  background: none;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"SKIN_TONE_NEUTRAL",(function(){return D})),n.d(t,"SKIN_TONE_LIGHT",(function(){return z})),n.d(t,"SKIN_TONE_MEDIUM_LIGHT",(function(){return U})),n.d(t,"SKIN_TONE_MEDIUM",(function(){return $})),n.d(t,"SKIN_TONE_MEDIUM_DARK",(function(){return H})),n.d(t,"SKIN_TONE_DARK",(function(){return J}));var r,i=n(3),o=n.n(i),a=n(9),s=n.n(a),l=n(0),c=n.n(l),u=n(1),f=n.n(u),d=n(2),h=(r={},o()(r,d.GROUP_NAME_PEOPLE,"smileys & people"),o()(r,d.GROUP_NAME_NATURE,"animals & nature"),o()(r,d.GROUP_NAME_FOOD,"food & drink"),o()(r,d.GROUP_NAME_TRAVEL,"travel & places"),o()(r,d.GROUP_NAME_OBJECTS,d.GROUP_NAME_OBJECTS),o()(r,d.GROUP_NAME_ACTIVITIES,d.GROUP_NAME_ACTIVITIES),o()(r,d.GROUP_NAME_SYMBOLS,d.GROUP_NAME_SYMBOLS),o()(r,d.GROUP_NAME_FLAGS,d.GROUP_NAME_FLAGS),o()(r,d.GROUP_NAME_RECENTLY_USED,"Recently Used"),r),p=n(15),m=n.n(p);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y,b=Object(l.createContext)({}),w="ACTIVE_CATEGORY_SET",E="VARIATION_MENU_SET",k="SKIN_TONES_SPREAD",x="ACTIVE_SKIN_TONE_SET",S="GROUP_SEEN_SET",_="EMOJI_NOT_LOADED_SET",A="FILTER_SET",C=function(e,t){var n=t.type,r=m()(t,["type"]);switch(n){case E:return e.variationMenu===r.emoji?e:v(v({},e),{},{variationMenu:r.emoji});case k:return v(v({},e),{},{skinTonesSpread:!!r.spread});case x:return e.activeSkinTone===r.skinTone?e:v(v({},e),{},{activeSkinTone:r.skinTone});case S:return e.seenGroups&&e.seenGroups[r.group]?e:v(v({},e),{},{seenGroups:v(v({},e.seenGroups),{},o()({},r.group,!0))});case _:return v(v({},e),{},{failedToLoad:v(v({},e.failedToLoad),{},o()({},r.unified,!0))});case A:return v(v({},e),{},{activeCategory:null},r);case w:return v(v({},e),r);default:return e}},T=n(4),P=n.n(T);try{y=window}catch(e){y={}}var O=y;function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R="localStorage"in O,L=function(){if(!R)return[];var e=localStorage.getItem("epr_ru");return e?JSON.parse(e):[]},N=function(e){var t=e.unified,n=e.originalUnified;if(R){var r=t.split("-"),i="";t!==n&&r.length>1&&(i=r[1]);var a=[I(o()({},d.EMOJI_PROPERTY_UNIFIED,n),i&&o()({}
38,d.EMOJI_PROPERTY_SKIN_VARIATIONS,i))].concat(P()(L().filter((function(e){return e[d.EMOJI_PROPERTY_UNIFIED]!==n})))).splice(0,14);localStorage.setItem("epr_ru",JSON.stringify(a))}},j=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object.assign({unified:e,emoji:e.split("-").map((function(e){return parseInt(e,16)})).map((function(e){return String.fromCodePoint(e)})).join(""),originalUnified:t[d.EMOJI_PROPERTY_UNIFIED],names:t[d.EMOJI_PROPERTY_NAME],activeSkinTone:n},r)},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,n,r,i){var o=j(n,r,i);return N(o),e.current&&e.current(t,o)}},F=n(11),D="neutral",z="1f3fb",U="1f3fc",$="1f3fe",H="1f3ff",J="1f3fd",G=(n(25),function(){var e=Object(l.useContext)(b),t=e.state,n=t.skinTonesSpread,r=t.activeSkinTone,i=e.dispatch,o=function(){i({type:k,spread:!n})},a=function(e){var t=e.target.value;i({type:x,skinTone:t})};return c.a.createElement("ul",{className:"skin-tones-list"},F.map((function(e,t){var i=e===r;return c.a.createElement("li",{key:e,className:"t".concat(e),style:{transform:"translateX(-".concat(n?20*t:0,"px) scale(").concat(i?"1.5":1,")"),zIndex:i?2:1}},c.a.createElement("input",{type:"radio",onChange:a,name:"skin-tone",value:e,id:"tone_".concat(e)}),c.a.createElement("label",{htmlFor:"tone_".concat(e),"data-name":"tones",onClick:o}))})))}),V=n(7),X=n.n(V),W=n(8),q=n.n(W),K=function(e){var t=Object(l.useContext)(b).state.emojiUrl;return e?"".concat(t,"/").concat(e,".png"):t},Z=(n(27),function(e){var t=e.unified,n=e.dispatch,r=e.shouldLoad,i=void 0===r||r,o=e.native;return void 0!==o&&o?c.a.createElement("div",{className:"native"},t.split("-").map((function(e){return parseInt(e,16)})).map((function(e){return String.fromCodePoint(e)})).join("")):c.a.createElement("img",q()({className:"emoji-img",onError:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Function.prototype;t({type:_,unified:e})}(t,n)}},i&&function(e){return{src:K(e)}}(t)))}),Y=Z;Z.propTypes={unified:f.a.string,shouldLoad:f.a.bool,dispatch:f.a.func,native:f.a.bool},n(29);var Q=function(e){var t=e.closeVariations,n=Object(l.useState)(!1),r=s()(n,2),i=r[0],o=r[1],a=Object(l.useContext)(b),u=a.state,f=u.variationMenu,h=u.activeSkinTone,p=u.native,m=a.onEmojiClick;if(Object(l.useEffect)((function(){return f&&!i&&o(!0),function(){o(!1)}}),[f]),!f)return null;var g=X()("variation-list",{visible:i});return c.a.createElement("div",{className:"variations-wrapper"},c.a.createElement("ul",{className:g},F.map((function(e){var n=f[d.EMOJI_PROPERTY_SKIN_VARIATIONS].find((function(t){return t.includes(e)}))||f[d.EMOJI_PROPERTY_UNIFIED];return c.a.createElement("li",{key:n},c.a.createElement("button",{onClick:function(e){return t(e),m(e,n,f,h)},onMouseDown:function(e){return e.stopPropagation()}},c.a.createElement(Y,{native:p,unified:n})))}))))},ee=Q;Q.propTypes={closeVariations:f.a.func};var te=n(10),ne=(n(31),function(e){var t=e.emojiListRef,n=Object(l.useRef)(null),r=Object(l.useContext)(b),i=r.state,o=i.activeCategory,a=i.filter,s=i.groupVisibility,u=r.dispatch,f=!1;a&&a.length&&(f=!0);var d,h=0,p=0,m="0";return n&&n.current&&((d=n.current.querySelector("[".concat("data-name",'="').concat(o,'"]')))?(h=d&&d.offsetLeft||n.current.firstChild.offsetLeft,m="0"):(h=n.current.firstChild.offsetLeft,m="0")),c.a.createElement(c.a.Fragment,null,c.a.createElement("nav",{onClick:function(e){var n=e.target;if(!f){var r=n.getAttribute("data-name");if(t&&t.current&&r){u({type:w,activeCategory:r}),u({type:S,group:r});var i=t.current,o=i.querySelector("[".concat("data-name",'="').concat(r,'"]'));i.scrollTop=o.offsetTop}}},className:X()("emoji-categories",{inactive:f}),ref:n},te.map((function(e,t){if(!1===s[e])return null;var n=o===e;return n&&(p=t),c.a.createElement("button",{key:e,type:"button",className:X()("icn-".concat(e),{active:n}),"data-name":e})}))),c.a.createElement("div",{className:"active-category-indicator-wrapper"},c.a.createElement("div",{className:"active-category-indicator",style:{transform:"translateX(".concat(Math.max(h+p/2,h),"px)"),opacity:m}})))}),re=ne;
38ne.propTypes={emojiListRef:f.a.shape({current:f.a.instanceOf(Element)})};var ie,oe=n(12),ae=function(e){var t={groups:{},emojis:{}},n=function(n){e[n].reduce((function(e,t){var r=t[d.EMOJI_PROPERTY_UNIFIED];return t[d.EMOJI_PROPERTY_GROUP]=n,e.emojis[r]=t,e.groups[n]=e.groups[n]||[],e.groups[n].push(r),e}),t)};for(var r in e)n(r);return t}(oe),se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=".content-wrapper",r=t&&t.current?t.current.closest("".concat(n)):document.querySelector(".emoji-picker-react ".concat(n));r.setAttribute("data-name",e)},le=f.a.shape((ie={},o()(ie,d.EMOJI_PROPERTY_NAME,f.a.arrayOf(f.a.string)),o()(ie,d.EMOJI_PROPERTY_UNIFIED,f.a.string),o()(ie,d.EMOJI_PROPERTY_SKIN_VARIATIONS,f.a.arrayOf(f.a.string)),o()(ie,d.EMOJI_PROPERTY_GROUP,f.a.string),ie)),ce=f.a.shape({smileys_people:f.a.string,animals_nature:f.a.string,food_drink:f.a.string,travel_places:f.a.string,activities:f.a.string,objects:f.a.string,symbols:f.a.string,flags:f.a.string,recently_used:f.a.string});function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(42);var de=["#aeeff0","#ffe0e0","#d6f8b8","#c6cfff","#f1f0d1"],he=null,pe=function(){return clearTimeout(he)},me=function(e){var t,n,r=e.emoji,i=e.shouldLoad,o=e.hidden,a=e.activeSkinTone,s=e.openVariationMenu,l=e.variationMenuOpenRef,u=e.handleMouseEnter,f=e.handleMouseLeave,h=e.onEmojiClick,p=e.index,m=e.dispatch,g=e.native,v=void 0!==g&&g,y=r[d.EMOJI_PROPERTY_SKIN_VARIATIONS],b=fe(fe({},o&&{display:"none"}),{},{color:(n=p,de[n%de.length])});return y&&r[d.EMOJI_PROPERTY_SKIN_VARIATIONS]&&(t=r[d.EMOJI_PROPERTY_SKIN_VARIATIONS].find((function(e){return e.indexOf(a)>=0}))),t||(t=r[d.EMOJI_PROPERTY_UNIFIED]),c.a.createElement("li",{style:b,className:X()("emoji",{"has-skin-variation":y&&s})},c.a.createElement("button",{onMouseDown:function(){y&&s&&(he=setTimeout((function(){s(r)}),500))},onMouseEnter:u,onMouseLeave:f,onMouseUp:pe,type:"button",onClick:function(e){l&&l.current||h(e,t,r,a)}},c.a.createElement(Y,{unified:t,shouldLoad:i,dispatch:m,native:v})))},ge=me;function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}me.propTypes={emoji:le,shouldLoad:f.a.bool,hidden:f.a.bool,activeSkinTone:f.a.string,openVariationMenu:f.a.func,variationMenuOpenRef:f.a.shape({current:f.a.bool}),handleMouseEnter:f.a.func,handleMouseLeave:f.a.func,onEmojiClick:f.a.func,index:f.a.number,dis
38patch:f.a.func,native:f.a.bool},n(44);var ye=function(e){var t=e.emojiListRef,n=Object(l.useContext)(b).state,r=n.filterResult,i=n.filter,o=n.groupNames,a=n.activeCategory,u=Object(l.useRef)(a),f=Object(l.useRef)(r),d=Object(l.useState)(!0),h=s()(d,2),p=h[0],m=h[1],g=i&&i.length?i[i.length-1].value:"";Object(l.useEffect)((function(){g||requestAnimationFrame((function(){m(!0)}))}),[g]),Object(l.useEffect)((function(){p&&requestAnimationFrame((function(){m(!1)}))}),[p]),function(e,t,n,r){var i=Object(l.useRef)(null),o=Object(l.useContext)(b).dispatch;Object(l.useEffect)((function(){var a=t.current;if(void 0===O.IntersectionObserver||!e.current||n.current||r||(i.current=new IntersectionObserver((function(e){e.forEach((function(e){var t=e.target.getAttribute("data-name");0!==e.intersectionRatio&&(o({type:S,group:t}),a||o({type:w,activeCategory:t}))}))}),{root:e.current.parentElement})),i.current)return P()(e.current.querySelectorAll(".emoji-group")).forEach((function(e){i.current.observe(e,{threshold:1})})),function(){i.current.disconnect()}}),[e.current,r])}(t,u,f,p),function(e,t){var n=Object(l.useRef)();Object(l.useEffect)((function(){t&&t.current&&(t.current.scrollTop=0),n.current=e}),[e]),n.current}(r,t);var v={emojiListRef:t,searchTerm:g,groupNames:o};return c.a.createElement(c.a.Fragment,null,c.a.createElement(be,q()({name:te[0]},v)),!p&&te.slice(1).map((function(e){return c.a.createElement(be,q()({key:e,name:e},v))})))},be=c.a.memo((function(e){var t=e.name,n=e.searchTerm,r=e.emojiListRef,i=e.groupNames;if(!1===Object(l.useContext)(b).state.groupVisibility[t])return null;var a=function(e,t){var n=t.emojiListRef,r=t.searchTerm,i=Object(l.useContext)(b),o=i.state,a=o.activeSkinTone,s=o.filterResult,u=o.seenGroups,f=void 0===u?{}:u,h=o.variationMenu,p=o.failedToLoad,m=void 0===p?null:p,g=o.preload,v=o.native,y=i.dispatch,w=i.onEmojiClick,k=Object(l.useRef)(!!h),x=Object(l.useCallback)((function(){return se("",n)}));Object(l.useEffect)((function(){k.current=!!h}),[h]);var S=g||!(!f[e]&&!s&&"function"==typeof O.IntersectionObserver),_=function(e){return y({type:E,emoji:e})};return Object(l.useMemo)((function(){var t=s?Object.keys(s[e]||{}):ae.groups[e];return t.reduce((function(e,r,i){if(m&&m[r])return e;var o=ae.emojis[r],s=!t.length;return e.shown||s||(e.shown=!0),e.list.push(c.a.createElement(ge,{emoji:o,dispatch:y,openVariationMenu:_,activeSkinTone:a,handleMouseLeave:x,variationMenuOpenRef:k,handleMouseEnter:function(){return se(o[d.EMOJI_PROPERTY_NAME][0],n)},hidden:s,shouldLoad:S,onEmojiClick:w,index:i,key:o[d.EMOJI_PROPERTY_UNIFIED],native:v})),e}),{list:[],shown:!1})}),[a,r,S,m,v])}(t,{searchTerm:n,emojiListRef:r}),s=a.list,u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},!a.shown&&{display:"none"});return c.a.createElement("ul",{className:"emoji-group","data-name":t,"data-display-name":i[t],key:t,style:u},s)})),we=ye;ye.propTypes={emojiListRef:f.a.shape({current:f.a.instanceOf(Element)}),unsetEmojiName:f.a.func},be.propTypes={name:f.a.string,searchTerm:f.a.string,emojiListRef:f.a.shape({current:f.a.instanceOf(Element)}),groupNames:ce};var Ee,ke,xe=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100,i=n;return new Promise((function(n){var o=0;!function a(){for(var s=o;s<o+r&&s<e.length;s++)i=t(i,e[s],s,e);if(!((o+=r)<e.length))return n(i);setTimeout((function(){a()}))}()}))},Se=Array.prototype.concat.apply([],Object.values(oe));xe(Se,(function(e,t){return t?t[d.EMOJI_PROPERTY_NAME].reduce((function(e,t){return[].concat(P()(e),P()((t||"").split(/[- _]/))).filter(Boolean)}),[]).reduce((function(e,n){var r=n.toLowerCase();return e[r]=e[r]||[],e[r].push(t[d.EMOJI_PROPERTY_UNIFIED]),e}),e):e}),{}).then((function(e){return xe(Object.keys(e),(function(e,t){return t?(t.split("").filter(
38Boolean)||[]).reduce((function(e,n){return e[n]=e[n]||[],e[n].includes(t)||e[n].push(t),e}),e):e}),{}).then((function(t){return{searchTerms:e,mappedSearchTerms:t}}))})).then((function(e){Ee=e.searchTerms,ke=e.mappedSearchTerms}));var _e=function(){var e=Object(l.useContext)(b),t=e.state.filter,n=void 0===t?[]:t,r=e.dispatch;return function(e){var t,i=e.target.value,o=n[n.length-1];if(i=i.trim().toLowerCase(),!o||o.value!==i){if(1===i.length)t=[{value:i,terms:ke[i]||[]}];else if(o&&i.length>o.value.length&&i.includes(o.value))t=[].concat(P()(n),[{value:i,terms:o.terms.filter((function(e){return e.includes(i)}))}]);else if(o&&i.length<o.value.length&&o.value.includes(i)){for(var a=0,s=n.length;s>0;s--)if(i.includes(n[s-1].value)){a=s;break}n.length=a,t=P()(n)}else 0!==n.length&&i.includes(o.value)||(t=[{value:i,terms:(ke[i[0]]||[]).filter((function(e){return e.includes(i)}))}]);var l=t&&t[t.length-1];l&&l.value?xe(l&&l.terms||[],(function(e,t){return Ee[t]?(Ee[t]||[]).reduce((function(e,t){var n=ae.emojis[t][d.EMOJI_PROPERTY_GROUP];return e[n]=e[n]||{},e[n][t]=!0,e}),e):e}),{}).then((function(e){r({type:A,filter:t,filterResult:e})})):r({type:A,filter:t,filterResult:null})}}},Ae=(n(46),function(e){var t=e.disableAutoFocus;return c.a.createElement("input",{className:"emoji-search",onChange:_e(),autoFocus:!t})});Ae.propTypes={disableAutoFocus:f.a.bool};var Ce=Ae,Te=function(e){var t=e.emojiListRef,n=Object(l.useContext)(b),r=n.state,i=r.recentlyUsed,o=r.groupNames,a=r.filterResult,s=r.failedToLoad,u=void 0===s?{}:s,f=r.native,h=r.groupVisibility,p=n.dispatch,m=n.onEmojiClick,g=Object(l.useCallback)((function(){return se("",t)}));return!i.length||a||!1===h[d.GROUP_NAME_RECENTLY_USED]?null:c.a.createElement("ul",{className:"emoji-group","data-display-name":o[d.GROUP_NAME_RECENTLY_USED]},i.map((function(e,n){var r=e[d.EMOJI_PROPERTY_UNIFIED],i=ae.emojis[r];return u[r]||!i?null:c.a.createElement(ge,q()({key:n,emoji:i},e[d.EMOJI_PROPERTY_SKIN_VARIATIONS]&&{activeSkinTone:e[d.EMOJI_PROPERTY_SKIN_VARIATIONS]},{index:n,native:f,handleMouseLeave:g,onEmojiClick:m,handleMouseEnter:function(){return se(i[d.EMOJI_PROPERTY_NAME][0],t)},dispatch:p,shouldLoad:!0}))}
38)))},Pe=Te;Te.propTypes={unsetEmojiName:f.a.func,emojiListRef:f.a.shape({current:f.a.instanceOf(Element)})},n(48);var Oe=function(e){var t=e.emojiUrl,n=void 0===t?"https://cdn.jsdelivr.net/npm/[email protected]/img/apple/64":t,r=e.onEmojiClick,i=e.preload,a=void 0!==i&&i,u=e.native,f=void 0!==u&&u,p=e.skinTone,m=void 0===p?D:p,g=e.disableAutoFocus,v=void 0!==g&&g,y=e.disableSearchBar,w=void 0!==y&&y,x=e.disableSkinTonePicker,S=void 0!==x&&x,_=e.groupNames,A=void 0===_?{}:_,T=e.pickerStyle,P=void 0===T?{}:T,O=e.groupVisibility,M=void 0===O?{}:O,I=Object(l.useRef)(null),R=Object(l.useRef)(!0),N=Object(l.useRef)(r);N.current=r,Object(l.useEffect)((function(){return function(){R.current=!1}}),[]);var j=Object(l.useReducer)(C,{activeSkinTone:m,emojiUrl:n,seenGroups:o()({},d.GROUP_NAME_PEOPLE,!0),recentlyUsed:L(),preload:a,native:f,filterResult:null,groupNames:Object.assign(h,A),groupVisibility:M}),F=s()(j,2),z=F[0],U=F[1],$=function(){if(R.current)return U.apply(void 0,arguments)},H=function(e){var t=e.target;z.variationMenu&&$({type:E}
38),z.skinTonesSpread&&"tones"!==t.getAttribute("data-name")&&$({type:k})};return c.a.createElement(b.Provider,{value:{state:z,dispatch:$,onEmojiClick:B(N)}},c.a.createElement("aside",{className:"emoji-picker-react",style:P,onScroll:H,onMouseDown:H},c.a.createElement(re,{emojiListRef:I}),!w&&c.a.createElement("div",{style:{position:"relative"}},c.a.createElement(Ce,{disableAutoFocus:v}),!S&&c.a.createElement(G,null)),c.a.createElement("div",{className:"content-wrapper","data-name":z.emojiName},c.a.createElement(ee,{closeVariations:H}),c.a.createElement("section",{className:"emoji-scroll-wrapper",ref:I},c.a.createElement(Pe,{emojiListRef:I}),c.a.createElement(we,{emojiListRef:I,key:z.filterResult})))))};t.default=Oe,Oe.propTypes={emojiUrl:f.a.string,onEmojiClick:f.a.func,preload:f.a.bool,skinTone:f.a.string,disableAutoFocus:f.a.bool,disableSearchBar:f.a.bool,disableSkinTonePicker:f.a.bool,groupNames:ce,native:f.a.bool,pickerStyle:f.a.objectOf(f.a.string),groupVisibility:f.a.objectOf(f.a.bool)}}]))}).call(this,n(37))},function(e,t,n){var r=x(n(35)),i=n(0),o=i.Children,a=i.cloneElement,s=i.Component,l=i.createElement,c=i.createRef,u=x(n(275)),f=n(276),d=x(f);t.Sortable=d;var h=f.Direction;t.Direction=h;var p=f.DOMRect;t.DOMRect=p;var m=f.GroupOptions;t.GroupOptions=m;var g=f.MoveEvent;t.MoveEvent=g;var v=f.Options;t.Options=v;var y=f.PullResult;t.PullResult=y;var b=f.PutResult;t.PutResult=b;var w=f.SortableEvent;t.SortableEvent=w;var E=f.SortableOptions;t.SortableOptions=E;var k=f.Utils;function x(e){return e&&e.__esModule?e.default:e}function S(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function O(e){e.forEach((function(e){return P(e.element)}))}function M(e){e.forEach((function(e){var t,n,r,i;t=e.parentElement,n=e.element,r=e.oldIndex,i=t.children[r]||null,t.insertBefore(n,i)}))}function I(e,t){var n=N(e),r={parentElement:e.from},i=[];switch(n){case"normal":i=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":i=[C({element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex},r),C({element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex},r)];break;case"multidrag":i=e.oldIndicies.map((function(t,n){return C({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index},r)}))}return function(e,t){return e.map((function(e){return C(C({},e),{},{item:t[e.oldIndex]})})).sort((function(e,t){return e.oldIndex-t.oldIndex}))}(i,t)}function R(e,t){var n=S(t);return e.concat().reverse().forEach((function(e){return n.splice(e.oldIndex,1)})),n}function L(e,t,n,r){var i=S(t);return e.forEach((function(e){var t=r&&n&&r(e.item,n);i.splice(e.newIndex,0,t||e.item)})),i}function N(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
38t%2?D(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e,t){return!t||"object"!==j(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function J(e){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Utils=k;var V={dragging:null},X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$(e,t)}(f,s);var t,n,i=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=J(e);if(t){var i=J(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return H(this,n)}}(f);function f(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=i.call(this,e)).ref=c();var n=e.list.map((function(e){return z(z({},e),{},{chosen:!1,selected:!1})}));return e.setList(n,t.sortable,V),r(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag(
38))"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n      '),t}return t=f,(n=[{key:"componentDidMount",value:function(){if(null!==this.ref.current){var e=this.makeOptions();d.create(this.ref.current,e)}}},{key:"render",value:function(){var e=this.props,t=e.tag,n={style:e.style,className:e.className,id:e.id};return l(t&&null!==t?t:"div",z({ref:this.ref},n),this.getChildren())}},{key:"getChildren",value:function(){var e=this.props,t=e.children,n=e.dataIdAttr,r=e.selectedClass,i=void 0===r?"sortable-selected":r,s=e.chosenClass,l=void 0===s?"sortable-chosen":s,c=(e.dragClass,e.fallbackClass,e.ghostClass,e.swapClass,e.filter),f=void 0===c?"sortable-filter":c,d=e.list;if(!t||null==t)return null;var h=n||"data-id";return o.map(t,(function(e,t){var n,r,o=d[t],s=e.props.className,c="string"==typeof f&&G({},f.replace(".",""),!!o.filtered),p=u(s,z((G(n={},i,o.selected),G(n,l,o.chosen),n),c));return a(e,(G(r={},h,e.key),G(r,"className",p),r))}))}},{key:"makeOptions",value:function(){var e,t=this,n=((e=this.props).list,e.setList,e.children,e.tag,e.style,e.className,e.clone,e.onAdd,e.onChange,e.onChoose,e.onClone,e.onEnd,e.onFilter,e.onRemove,e.onSort,e.onStart,e.onUnchoose,e.onUpdate,e.onMove,e.onSpill,e.onSelect,e.onDeselect,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["list","setList","children","tag","style","className","clone","onAdd","onChange","onChoose","onClone","onEnd","onFilter","onRemove","onSort","onStart","onUnchoose","onUpdate","onMove","onSpill","onSelect","onDeselect"]));return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((function(e){return n[e]=t.prepareOnHandlerPropAndDOM(e)})),["onChange","onClone","onFilter","onSort"].forEach((function(e){return n[e]=t.prepareOnHandlerProp(e)})),z(z({},n),{},{onMove:function(e,n){var r=t.props.onMove,i=e.willInsertAfter||-1;if(!r)return i;var o=r(e,n,t.sortable,V);return void 0!==o&&o}})}},{key:"prepareOnHandlerPropAndDOM",value:function(e){var t=this;return function(n){t.callOnHandlerProp(n,e),t[e](n)}}},{key:"prepareOnHandlerProp",value:function(e){var t=this;return function(n){t.callOnHandlerProp(n,e)}}},{key:"callOnHandlerProp",value:function(e,t){var n=this.props[t];n&&n(e,this.sortable,V)}},{key:"onAdd",value:function(e){var t=this.props,n=t.list,r=t.setList,i=t.clone,o=I(e,B(V.dragging.props.list));O(o),r(L(o,n,e,i).map((function(e){return z(z({},e),{},{selected:!1})})),this.sortable,V)}},{key:"onRemove",value:function(e){var t=this,n=this.props,i=n.list,o=n.setList,a=N(e),s=I(e,i);M(s);var l=B(i);if("clone"!==e.pullMode)l=R(s,l);else{var c=s;switch(a){case"multidrag":c=s.map((function(t,n){return z(z({},t),{},{element:e.clones[n]})}));break;case"normal":c=s.map((function(t){return z(z({},t),{},{element:e.clone})}));break;case"swap":default:r(!0,'mode "'.concat(a,'" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "').concat(a,'" plugin'))}
38O(c),s.forEach((function(n){var r=n.oldIndex,i=t.props.clone(n.item,e);l.splice(r,1,i)}))}o(l=l.map((function(e){return z(z({},e),{},{selected:!1})})),this.sortable,V)}},{key:"onUpdate",value:function(e){var t=this.props,n=t.list,r=t.setList,i=I(e,n);return O(i),M(i),r(function(e,t){return L(e,R(e,t))}(i,n),this.sortable,V)}},{key:"onStart",value:function(){V.dragging=this}},{key:"onEnd",value:function(){V.dragging=null}},{key:"onChoose",value:function(e){var t=this.props,n=t.list;(0,t.setList)(n.map((function(t,n){return n===e.oldIndex?z(z({},t),{},{chosen:!0}):t})),this.sortable,V)}},{key:"onUnchoose",value:function(e){var t=this.props,n=t.list;(0,t.setList)(n.map((function(t,n){return n===e.oldIndex?z(z({},t),{},{chosen:!1}):t})),this.sortable,V)}},{key:"onSpill",value:function(e){var t=this.props,n=t.removeOnSpill,r=t.revertOnSpill;n&&!r&&P(e.item)}},{key:"onSelect",value:function(e){var t=this.props,n=t.list,r=t.setList,i=n.map((function(e){return z(z({},e),{},{selected:!1})}));e.newIndicies.forEach((function(t){var n=t.index;if(-1===n)return console.log('"'.concat(e.type,'" had indice of "').concat(t.index,"\", which is probably -1 and doesn't usually happen here.")),void console.log(e);i[n].selected=!0})),r(i,this.sortable,V)}},{key:"onDeselect",value:function(e){var t=this.props,n=t.list,r=t.setList,i=n.map((function(e){return z(z({},e),{},{selected:!1})}));e.newIndicies.forEach((function(e){var t=e.index;-1!==t&&(i[t].selected=!0)})),r(i,this.sortable,V)}},{key:"sortable",get:function(){var e=this.ref.current;if(null===e)return null;var t=Object.keys(e).find((function(e){return e.includes("Sortable")}));return t?e[t]:null}}])&&U(t.prototype,n),f}();t.ReactSortable=X,G(X,"defaultProps",{clone:function(e){return e}})},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l="navigator"in e&&/Win/i.test(navigator.platform),c="navigator"in e&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),u="npm__react-simple-code-editor__textarea",f=function(e){function t(){var e,n,i;a(this,t);for(var o=arguments.length,u=Array(o),f=0;f<o;f++)u[f]=arguments[f];return n=i=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.state={capture:!0},i._recordCurrentState=function(){var e=i._input;if(e){var t=e.value,n=e.selectionStart,r=e.selectionEnd;i._recordChange({value:t,selectionStart:n,selectionEnd:r})}},i._getLines=function(e,t){return e.substring(0,t).split("\n")},i._recordChange=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i._history,o=n.stack,a=n.offset;if(o.length&&a>-1){i._history.stack=o.slice(0,a+1);var s=i._history.stack.length;if(s>100){var l=s-100;i._history.stack=o.slice(l,s),i._history.offset=Math.max(i._history.offset-l,0)}}var c=Date.now();if(t){var u=i._history.stack[i._history.offset];if(u&&c-u.timestamp<3e3){var f=/[^a-z0-9]([a-z0-9]+)$/i,d=i._getLines(u.value,u.selectionStart).pop().match(f),h=i._getLines(e.value,e.selectionStart).pop().match(f);if(d&&h&&h[1].startsWith(d[1]))return void(i._history.stack[i._history.offset]=r({},e,{timestamp:c}))}}i._history.stack.push(r({},e,{timestamp:c})),i._history.offset++},i._updateInput=function(e){var t=i._input;t&&(t.value=e.value,t.selectionStart=e.selectionStart,t.selectionEnd=e.selectionEnd,i.props.onValueChange(e.value))},i._applyEdits=function(e){var t=i._input,n=i._history.stack[i._history.offset];n&&t&&(i._history.stack[i._history.offset]=r({},n,{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})),i._recordChange(e),i._updateInput(e)},i._undoEdit=function(){var e=i._history,t=e.stack,n=e.offset,r=t[n-1];r&&(i._updateInput(r),i._history.offset=Math.max(n-1,0))},i._redoEdit=function(){var e=i._history,t=e.stack,n=e.offset,r=t[n+1];r&&(i._updateInput(r),i._history.offset=Math.min(n+1,t.length-1))},i._handleKeyDown=function(e){var t=i.props,n=t.tabSize,r=t.insertSpaces,o=t.ignoreTabKey,a=t.onKeyDown;
38if(!a||(a(e),!e.defaultPrevented)){27===e.keyCode&&e.target.blur();var s=e.target,u=s.value,f=s.selectionStart,d=s.selectionEnd,h=(r?" ":"\t").repeat(n);if(9===e.keyCode&&!o&&i.state.capture)if(e.preventDefault(),e.shiftKey){var p=i._getLines(u,f),m=p.length-1,g=i._getLines(u,d).length-1,v=u.split("\n").map((function(e,t){return t>=m&&t<=g&&e.startsWith(h)?e.substring(h.length):e})).join("\n");if(u!==v){var y=p[m];i._applyEdits({value:v,selectionStart:y.startsWith(h)?f-h.length:f,selectionEnd:d-(u.length-v.length)})}}else if(f!==d){var b=i._getLines(u,f),w=b.length-1,E=i._getLines(u,d).length-1,k=b[w];i._applyEdits({value:u.split("\n").map((function(e,t){return t>=w&&t<=E?h+e:e})).join("\n"),selectionStart:/\S/.test(k)?f+h.length:f,selectionEnd:d+h.length*(E-w+1)})}else{var x=f+h.length;i._applyEdits({value:u.substring(0,f)+h+u.substring(d),selectionStart:x,selectionEnd:x})}else if(8===e.keyCode){var S=f!==d;if(u.substring(0,f).endsWith(h)&&!S){e.preventDefault();var _=f-h.length;i._applyEdits({value:u.substring(0,f-h.length)+u.substring(d),selectionStart:_,selectionEnd:_})}}else if(13===e.keyCode){if(f===d){var A=i._getLines(u,f).pop().match(/^\s+/);if(A&&A[0]){e.preventDefault();var C="\n"+A[0],T=f+C.length;i._applyEdits({value:u.substring(0,f)+C+u.substring(d),selectionStart:T,selectionEnd:T})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var P=void 0;57===e.keyCode&&e.shiftKey?P=["(",")"]:219===e.keyCode?P=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?P=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(P=["`","`"]),f!==d&&P&&(e.preventDefault(),i._applyEdits({value:u.substring(0,f)+P[0]+u.substring(f,d)+P[1]+u.substring(d),selectionStart:f,selectionEnd:d+2}))}else!(c?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(c?e.metaKey&&90===e.keyCode&&e.shiftKey:l?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),i._redoEdit()):77!==e.keyCode||!e.ctrlKey||c&&!e.shiftKey||(e.preventDefault(),i.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),i._undoEdit())}},i._handleChange=function(e){var t=e.target,n=t.value,r=t.selectionStart,o=t.selectionEnd;i._recordChange({value:n,selectionStart:r,selectionEnd:o},!0),i.props.onValueChange(n)},i._history={stack:[],offset:-1},s(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this._recordCurrentState()}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,i=t.style,a=t.padding,s=t.highlight,l=t.textareaId,c=t.textareaClassName,f=t.autoFocus,h=t.disabled,p=t.form,m=t.maxLength,g=t.minLength,v=t.name,y=t.placeholder,b=t.readOnly,w=t.required,E=t.onClick,k=t.onFocus,x=t.onBlur,S=t.onKeyUp,_=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,t.preClassName),A=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),C={paddingTop:a,paddingRight:a,paddingBottom:a,paddingLeft:a},T=s(n);return o.createElement("div",r({},A,{style:r({},d.container,i)}),o.createElement("textarea",{ref:function(t){return e._input=t},style:r({},d.editor,d.textarea,C),className:u+(c?" "+c:""),id:l,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:E,onKeyUp:S,onFocus:k,onBlur:x,disabled:h,form:p,maxLength:m,minLength:g,name:v,placeholder:y,readOnly:b,required:w,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),o.createElement("pre",r({className:_,"aria-hidden":"true",style:r({},d.editor,d.highlight,C)},"string"==typeof T?{dangerouslySetInnerHTML:{__html:T+"<br />"}}:{children:T})),o.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.npm__react-simple-code-editor__textarea:empty {\
vendor: 14,820 bytes, line 38
38n  -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n  /**\n    * IE doesn't support '-webkit-text-fill-color'\n    * So we use 'color: transparent' to make the text transparent on IE\n    * Unlike other browsers, it doesn't affect caret color in IE\n    */\n  .npm__react-simple-code-editor__textarea {\n    color: transparent !important;\n  }\n\n  .npm__react-simple-code-editor__textarea::selection {\n    background-color: #accef7 !important;\n    color: transparent !important;\n  }\n}\n"}}))}},{key:"session",get:function(){return{history:this._history}},set:function(e){this._history=e.history}}]),t}(o.Component);f.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t.default=f;var d={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}}).call(this,n(37))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(42),a=n(72),s=n.n(a),l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function c(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var u=i.a.createContext||function(e,t){var n,i,a,u="__create-react-context-"+((l[a="__global_unique_id__"]=(l[a]||0)+1)+"__"),f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=c(t.props.value),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[u]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[u]=s.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[u]&&this.context[u].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[u]&&this.context[u].off(this.onUpdate)},r.getValue=function(){return this.context[u]?this.context[u].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((i={})[u]=s.a.object,i),{Provider:f,Consumer:d}};t.a=u}).call(this,n(37))},function(e,t,n){(function(t,n,r){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o=!1,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,a,s,l,c,u=[],f=0,d=e.length,h=d,p="string"!==r.getTypeOf(e);f<e.length;)h=d-f,i=p?(t=e[f++],n=f<d?e[f++]:0,f<d?e[f++]:0):(t=e.charCodeAt(f++),n=f<d?e.charCodeAt(f++):0,f<d?e.charCodeAt(f++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<h?(15&n)<<2|i>>6:64,c=2<h?63&i:64,u.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(c));return u.join("")},n.decode=function(e){var t,n,r,a,s,l,c=0,u=0,f="data:";if(e.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var d,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&h--,e.charAt(e.length-2)===o.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|h):new Array(0|h);c<e.length;)t=o.indexOf(e.charAt(c++))<<2|(a=o.indexOf(e.charAt(c++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(l=o.indexOf(e.charAt(c++))),d[u++]=t,64!==s&&(d[u++]=n),64!==l&&(d[u++]=r);return d}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(e){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var o=i,a=0+n;e^=-1;for(var s=0;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,n,r){var o=i,a=0+n;e^=-1;for(var s=0;s<a;s++)e=e>>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,a,u){var f,d,h=e.file,p=e.compression,m=u!==s.utf8encode,g=o.transformTo("string",u(h.name)),v=o.transformTo("string",s.utf8encode(h.name)),y=h.comment,b=o.transformTo("string",u(y)),w=o.transformTo("string",s.utf8encode(y)),E=v.length!==h.name.length,k=w.length!==y.length,x="",S="",_="",A=h.dir,C=h.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var P=0;t&&(P|=8),m||!E&&!k||(P|=2048);var O=0,M=0;A&&(O|=16),"UNIX"===a?(M=798,O|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(h.unixPermissions,A)):(M=20,O|=function(e){return 63&(e||0)}(h.dosPermissions)),f=C.getUTCHours(),f<<=6,f|=C.getUTCMinutes(),f<<=5,f|=C.getUTCSeconds()/2,d=C.getUTCFullYear()-1980,d<<=4,d|=C.getUTCMonth()+1,d<<=5,d|=C.getUTCDate(),E&&(S=r(1,1)+r(l(g),4)+v,x+="up"+r(S.length,2)+S),k&&(_=r(1,1)+r(l(b),4)+w,x+="uc"+r(_.length,2)+_);var I="";return I+="\n\0",I+=r(P,2),I+=p.magic,I+=r(f,2),I+=r(d,2),I+=r(T.crc32,4),I+=r(T.compressedSize,4),I+=r(T.uncompressedSize,4),I+=r(g.length,2),I+=r(x.length,2),{fileRecord:c.LOCAL_FILE_HEADER+I+g+x,dirRecord:c.CENTRAL_FILE_HEADER+r(M,2)+I+r(b.length,2)+"\0\0\0\0"+r(O,4)+r(i,4)+g+x+b}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,a),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,a){var s=o.transformTo("string",a(i));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},u.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new i(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.7.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip f
38ile",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var o=0;o<r.length;o++)n.push(c(r[o]));return i.Promise.all(n)})).then((function(e){for(var r=e.shift(),i=r.files,o=0;o<i.length;o++){var a=i[o];n.file(a.fileNameStr,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders})}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,n,r){"use strict";n.exports={isNode:void 0!==t,newBufferFrom:function(e,n){if(t.from&&t.from!==Uint8Array.from)return t.from(e,n);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new t(e,n)},allocBuffer:function(e){if(t.alloc)return t.alloc(e);var n=new t(e);return n.fill(0),n},isBuffer:function(e){return t.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,i=o.getTypeOf(t),s=o.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(r=p(e))&&g.call(this,r,!0);var f,v="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!v),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string"),f=t instanceof c||t instanceof a?t:d.isNode&&d.isStream(t)?new h(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new u(e,f,s);this.files[e]=y}var i=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),f=e("./generate"),d=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(v(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}
vendor: 4,189 bytes, line 38
38,generateInternalStream:function(e){var t,n={};try{if((n=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=f.generateWorker(this,n,r)}catch(e){(t=new a("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t}
vendor: 1,606 bytes, line 38
38,t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK��",n.CENTRAL_FILE_HEADER="PK��",n.CENTRAL_DIRECTORY_END="PK��",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK��",n.ZIP64_CENTRAL_DIRECTORY_END="PK��",n.DATA_DESCRIPTOR="PK�\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}
vendor: 7,630 bytes, line 38
38r.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,n,r){"use strict";var i=e("../utils"),o=e("./ConvertWorker"),a=e("./GenericWorker"),s=e("../base64"),l=e("../support"),c=e("../external"),u=null;if(l.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function f(e,t,n){var r=t;switch(t){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=t,this._mimeType=n,i.checkSupport(r),this._worker=e.pipe(new o(r)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}f.prototype={accumulate:function(e){return function(e,n){return new c.Promise((function(r,o){var a=[],l=e._internalType,c=e._outputType,u=e._mimeType;e.on("data",(function(e,t){a.push(e),n&&n(t)})).on("error",(function(e){a=[],o(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return i.transformTo(e,t)}}(c,function(e,n){var r,i=0,o=null,a=0;for(r=0;r<n.length;r++)a+=n[r].length;switch(e){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(o=new Uint8Array(a),r=0;r<n.length;r++)o.set(n[r],i),i+=n[r].length;return o;case"nodebuffer":return t.concat(n);default:throw new Error("concat : unsupported type '"+e+"'")}}(l,a),u);r(e)}catch(e){o(e)}a=[]})).resume()}))}(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},n.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,n,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer=void 0!==t,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),r.blob=0===o.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,r,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,a=e.length,l=new Array(2*a);for(t=n=0;t<a;)if((i=e[t++])<128)l[n++]=i;else if(4<(o=s[i]))l[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<a;)i=i<<6|63&e[t++],o--;
vendor: 4,502 bytes, line 38
381<o?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(c,a),c.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;a!==t.length&&(i.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,r.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("set-immediate-shim"),s=e("./external");function l(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,n){var r=[],i=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function f(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return u.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=f;var h={};h.string={string:l,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,o.allocBuffer(e.length))}},h.array={string:f,array:l,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return f(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:l,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:f,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:l,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:f,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:l},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return h[r][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&o.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;
vendor: 4,193 bytes, line 38
38n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){a((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,a,l){return s.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var u=n.getTypeOf(t);return u?("arraybuffer"===u?t=n.transformTo("uint8array",t):"string"===u&&(l?t=i.decode(t):o&&!0!==a&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=(e("./utf8"),e("./support"));function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
38ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&
vendor: 41,460 bytes, line 38
38(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<c.length;f++)r.prototype[c[f]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}t.exports=function(e){1!==c.push(e)||r||n()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var r=e("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function f(e,t,n){r((function(){var r;try{r=t(n)}catch(r){return o.reject(e,r)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=p((function(){t(i,r)}));"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?f(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(d,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return o.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,c=new this(i);++l<n;)u(e[l],l);return c;function u(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(c,a))}),(function(e){r||(r=!0,o.reject(c,e))}))}},c.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r,a=-1,s=new this(i);++a<t;)r=e[a],this.resolve(r).then((function(e){n||(n=!0,o.resolve(s,e))}),(function(e){n||(n=!0,o.reject(s,e))}));return s}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,u)))throw new Error(a[n]);this._dict_set=!0}}function u(e,t){var n=new c(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(e,t){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),!(s.avail_out=0))},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=c,n.deflate=u,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)}function d(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}f.prototype.push=function(e,t){var n,s,l,c,f,d,h=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=o.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(d="string"==typeof m?o.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(h.output,h.next_out),c=h.next_out-l,f=o.buf2string(h.output,l),h.next_out=c,h.avail_out=p-c,c&&i.arraySet(h.output,h.output,l,c,0),this.onData(f)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((0<h.avail_in||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(h.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=f,n.inflate=d,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,o,s=t||e.length,c=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)c[r++]=i;else if(4<(o=a[i]))c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&e[n++],o--;1<o?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],44:[function(e,t,n){"use strict";t.exports={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_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}},{}],45:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=-2,u=258,f=262,d=113;function h(e,t){return e.msg=l[t],t}function p(e){return(e<<1)-(4<e?9:0)}function m(e){for(var t=e.length;0<=--t;)e[t]=0}function g(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,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,0===t.pending&&(t.pending_out=0))}function v(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,g(e.strm)}function y(e,t){e.pending_buf[e.pending++]=t}function b(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function w(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,c=e.window,d=e.w_mask,h=e.prev,p=e.strstart+u,m=c[o+a-1],g=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===g&&c[n+a-1]===m&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<p);if(r=u-(p-o),o=p-u,a<r){if(e.match_start=t,s<=(a=r))break;m=c[o+a-1],g=c[o+a]}}}while((t=h[t&d])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function E(e){var t,n,r,o,l,c,u,d,h,p,m=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-f)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;r=e.head[--t],e.head[t]=m<=r?r-m:0,--n;);for(t=n=m;r=e.prev[--t],e.prev[t]=m<=r?r-m:0,--n;);o+=m}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,p=void 0,(h=o)<(p=c.avail_in)&&(p=h),n=0===p?0:(c.avail_in-=p,i.arraySet(u,c.input,c.next_in,p,d),1===c.state.wrap?c.adler=a(c.adler,u,p,d):2===c.state.wrap&&(c.adler=s(c.adler,u,p,d)),c.next_in+=p,c.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<f&&0!==e.strm.avail_in)}function k(e,t){for(var n,r;;){if(e.lookahead<f){if(E(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-f&&(e.match_length=w(e,n)),e.match_length>=3)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function x(e,t){for(var n,r,i;;){if(e.lookahead<f){if(E(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,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=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-f&&(e.match_length=w(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(v(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&v(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function S(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function _(){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=8,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 i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),m(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}function A(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:d,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):h(e,c)}function C(e){var t=A(e);return 0===t&&function(e){e.window_size=2*e.w_size,m(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0}(e.state),t}function T(e,t,n,r,o,a){if(!e)return c;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||9<o||8!==n||r<8||15<r||t<0||9<t||a<0||4<a)return h(e,c);8===r&&(r=9);var l=new _;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,C(e)}r=[new S(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(E(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,v(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)})),new S(4,4,8,4,k),new S(4,5,16,8,k),new S(4,6,32,32,k),new S(4,4,16,16,x),new S(8,16,32,32,x),new S(8,16,128,128,x),new S(8,32,128,256,x),new S(32,128,258,1024,x),new S(32,258,258,4096,x)],n.deflateInit=function(e,t){return T(e,t,8,15,8,0)},n.deflateInit2=T,n.deflateReset=C,n.deflateResetKeep=A,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,0):c},n.deflate=function(e,t){var n,i,a,l;if(!e||!e.state||5<t||t<0)return e?h(e,c):c;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return h(e,0===e.avail_out?-5:c);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,y(i,31),y(i,139),y(i,8),i.gzhead?(y(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)),y(i,255&i.gzhead.time),y(i,i.gzhead.time>>8&255),y(i,i.gzhead.time>>16&255),y(i,i.gzhead.time>>24&255),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(y(i,255&i.gzhead.extra.length),y(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(y(i,0),y(i,0),y(i,0),y(i,0),y(i,0),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,3),i.status=d);else{var f=8+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=d,b(i,f),0!==i.strstart&&(b(i,e.adler>>>16),b(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),g(e),a=i.pending,i.pending!==i.pending_buf_size));)y(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),g(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,y(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),g(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,y(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&g(e),i.pending+2<=i.pending_buf_size&&(y(i,255&e.adler),y(i,e.adler>>8&255),e.adler=0,i.status=d)):i.status=d),0!==i.pending){if(g(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(n)&&4!==t)return h(e,-5);if(666===i.status&&0!==e.avail_in)return h(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var w=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(E(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=u){if(E(e),e.lookahead<=u&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+u;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=u-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==w&&4!==w||(i.status=666),1===w||3===w)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===w&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(m(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),g(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(y(i,255&e.adler),y(i,e.adler>>8&255),y(i,e.adler>>16&255),y(i,e.adler>>24&255),y(i,255&e.total_in),y(i,e.total_in>>8&255),y(i,e.total_in>>16&255),y(i,e.total_in>>24&255)):(b(i,e.adler>>>16),b(i,65535&e.adler)),g(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},n.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==d&&666!==t?h(e,c):(e.state=null,t===d?h(e,-3):0):c},n.deflateSetDictionary=function(e,t){var n,r,o,s,l,u,f,d,h=t.length;if(!e||!e.state)return c;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return c;for(1===s&&(e.adler=a(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(m(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,t,h-n.w_size,n.w_size,0),t=d,h=n.w_size),l=e.avail_in,u=e.next_in,f=e.input,e.avail_in=h,e.next_in=0,e.input=t,E(n);n.lookahead>=3;){for(r=n.strstart,o=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=2,E(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=u,e.input=f,e.avail_in=l,n.wrap=s,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){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}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,a,s,l,c,u,f,d,h,p,m,g,v,y,b,w,E,k,x,S,_,A;n=e.state,r=e.next_in,_=e.input,i=r+(e.avail_in-5),o=e.next_out,A=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,f=n.wnext,d=n.window,h=n.hold,p=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(h+=_[r++]<<p,p+=8,h+=_[r++]<<p,p+=8),b=m[h&v];t:for(;;){if(h>>>=w=b>>>24,p-=w,0==(w=b>>>16&255))A[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=m[(65535&b)+(h&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}E=65535&b,(w&=15)&&(p<w&&(h+=_[r++]<<p,p+=8),E+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=_[r++]<<p,p+=8,h+=_[r++]<<p,p+=8),b=g[h&y];n:for(;;){if(h>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=g[(65535&b)+(h&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(k=65535&b,p<(w&=15)&&(h+=_[r++]<<p,(p+=8)<w&&(h+=_[r++]<<p,p+=8)),l<(k+=h&(1<<w)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=w,p-=w,(w=o-a)<k){if(u<(w=k-w)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=d,(x=0)===f){if(x+=c-w,w<E){for(E-=w;A[o++]=d[x++],--w;);x=o-k,S=A}}else if(f<w){if(x+=c+f-w,(w-=f)<E){for(E-=w;A[o++]=d[x++],--w;);if(x=0,f<E){for(E-=w=f;A[o++]=d[x++],--w;);x=o-k,S=A}}}else if(x+=f-w,w<E){for(E-=w;A[o++]=d[x++],--w;);x=o-k,S=A}for(;2<E;)A[o++]=S[x++],A[o++]=S[x++],A[o++]=S[x++],E-=3;E&&(A[o++]=S[x++],1<E&&(A[o++]=S[x++]))}else{for(x=o-k;A[o++]=A[x++],A[o++]=A[x++],A[o++]=A[x++],2<(E-=3););E&&(A[o++]=A[x++],1<E&&(A[o++]=A[x++]))}break}}break}}while(r<i&&o<s);r-=E=p>>3,h&=(1<<(p-=E<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=h,n.bits=p}},{}],49:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=-2;function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){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 r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):l}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,f(e)):l}function h(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?l:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,d(e))):l}function p(e,t){var n,r;return e?(r=new u,(e.state=r).window=null,0!==(n=h(e,t))&&(e.state=null),n):l}var m,g,v=!0;function y(e){if(v){var t;for(m=new r.Buf32(512),g=new r.Buf32(32),t=0;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(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,g,0,e.work,{bits:5}),v=!1}e.lencode=m,e.lenbits=9,e.distcode=g,e.distbits=5}function b(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=d,n.inflateReset2=h,n.inflateResetKeep=f,n.inflateInit=function(e){return p(e,15)},n.inflateInit2=p,n.inflate=function(e,t){var n,u,f,d,h,p,m,g,v,w,E,k,x,S,_,A,C,T,P,O,M,I,R,L,N=0,j=new r.Buf8(4),B=[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&&0!==e.avail_in)return l;12===(n=e.state).mode&&(n.mode=13),h=e.next_out,f=e.output,m=e.avail_out,d=e.next_in,u=e.input,p=e.avail_in,g=n.hold,v=n.bits,w=p,E=m,I=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}if(2&n.wrap&&35615===g){j[n.check=0]=255&g,j[1]=g>>>8&255,n.check=o(n.check,j,2,0),v=g=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&g)){e.msg="unknown compression method",n.mode=30;break}if(v-=4,M=8+(15&(g>>>=4)),0===n.wbits)n.wbits=M;else if(M>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<M,e.adler=n.check=1,n.mode=512&g?10:12,v=g=0;break;case 2:for(;v<16;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}if(n.flags=g,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=g>>8&1),512&n.flags&&(j[0]=255&g,j[1]=g>>>8&255,n.check=o(n.check,j,2,0)),v=g=0,n.mode=3;case 3:for(;v<32;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}n.head&&(n.head.time=g),512&n.flags&&(j[0]=255&g,j[1]=g>>>8&255,j[2]=g>>>16&255,j[3]=g>>>24&255,n.check=o(n.check,j,4,0)),v=g=0,n.mode=4;case 4:for(;v<16;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}n.head&&(n.head.xflags=255&g,n.head.os=g>>8),512&n.flags&&(j[0]=255&g,j[1]=g>>>8&255,n.check=o(n.check,j,2,0)),v=g=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}n.length=g,n.head&&(n.head.extra_len=g),512&n.flags&&(j[0]=255&g,j[1]=g>>>8&255,n.check=o(n.check,j,2,0)),v=g=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(p<(k=n.length)&&(k=p),k&&(n.head&&(M=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,u,d,k,M)),512&n.flags&&(n.check=o(n.check,u,k,d)),p-=k,d+=k,n.length-=k),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break e;for(k=0;M=u[d+k++],n.head&&M&&n.length<65536&&(n.head.name+=String.fromCharCode(M)),M&&k<p;);if(512&n.flags&&(n.check=o(n.check,u,k,d)),p-=k,d+=k,M)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break e;for(k=0;M=u[d+k++],n.head&&M&&n.length<65536&&(n.head.comment+=String.fromCharCode(M)),M&&k<p;);if(512&n.flags&&(n.check=o(n.check,u,k,d)),p-=k,d+=k,M)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}if(g!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}v=g=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}e.adler=n.check=c(g),v=g=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=h,e.avail_out=m,e.next_in=d,e.avail_in=p,n.hold=g,n.bits=v,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){g>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}switch(n.last=1&g,v-=1,3&(g>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6!==t)break;g>>>=2,v-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}g>>>=2,v-=2;break;case 14:for(g>>>=7&v,v-=7&v;v<32;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&g,v=g=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(k=n.length){if(p<k&&(k=p),m<k&&(k=m),0===k)break e;r.arraySet(f,u,d,k,h),p-=k,d+=k,m-=k,h+=k,n.length-=k;break}n.mode=12;break;case 17:for(;v<14;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}if(n.nlen=257+(31&g),g>>>=5,v-=5,n.ndist=1+(31&g),g>>>=5,v-=5,n.ncode=4+(15&g),g>>>=4,v-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}n.lens[B[n.have++]]=7&g,g>>>=3,v-=3}for(;n.have<19;)n.lens[B[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},I=s(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,I){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;A=(N=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,C=65535&N,!((_=N>>>24)<=v);){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}if(C<16)g>>>=_,v-=_,n.lens[n.have++]=C;else{if(16===C){for(L=_+2;v<L;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}if(g>>>=_,v-=_,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}M=n.lens[n.have-1],k=3+(3&g),g>>>=2,v-=2}else if(17===C){for(L=_+3;v<L;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}v-=_,M=0,k=3+(7&(g>>>=_)),g>>>=3,v-=3}else{for(L=_+7;v<L;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}v-=_,M=0,k=11+(127&(g>>>=_)),g>>>=7,v-=7}if(n.have+k>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;k--;)n.lens[n.have++]=M}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,R={bits:n.lenbits},I=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,I){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},I=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,I){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=p&&258<=m){e.next_out=h,e.avail_out=m,e.next_in=d,e.avail_in=p,n.hold=g,n.bits=v,a(e,E),h=e.next_out,f=e.output,m=e.avail_out,d=e.next_in,u=e.input,p=e.avail_in,g=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;A=(N=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,C=65535&N,!((_=N>>>24)<=v);){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}if(A&&0==(240&A)){for(T=_,P=A,O=C;A=(N=n.lencode[O+((g&(1<<T+P)-1)>>T)])>>>16&255,C=65535&N,!(T+(_=N>>>24)<=v);){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}g>>>=T,v-=T,n.back+=T}if(g>>>=_,v-=_,n.back+=_,n.length=C,0===A){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(L=n.extra;v<L;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}n.length+=g&(1<<n.extra)-1,g>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(N=n.distcode[g&(1<<n.distbits)-1])>>>16&255,C=65535&N,!((_=N>>>24)<=v);){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}if(0==(240&A)){for(T=_,P=A,O=C;A=(N=n.distcode[O+((g&(1<<T+P)-1)>>T)])>>>16&255,C=65535&N,!(T+(_=N>>>24)<=v);){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}g>>>=T,v-=T,n.back+=T}if(g>>>=_,v-=_,n.back+=_,64&A){e.msg="invalid distance code",n.mode=30;break}n.offset=C,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(L=n.extra;v<L;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}n.offset+=g&(1<<n.extra)-1,g>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>
vendor: 4,606 bytes, line 38
38n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===m)break e;if(k=E-m,n.offset>k){if((k=n.offset-k)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}x=k>n.wnext?(k-=n.wnext,n.wsize-k):n.wnext-k,k>n.length&&(k=n.length),S=n.window}else S=f,x=h-n.offset,k=n.length;for(m<k&&(k=m),m-=k,n.length-=k;f[h++]=S[x++],--k;);0===n.length&&(n.mode=21);break;case 26:if(0===m)break e;f[h++]=n.length,m--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===p)break e;p--,g|=u[d++]<<v,v+=8}if(E-=m,e.total_out+=E,n.total+=E,E&&(e.adler=n.check=n.flags?o(n.check,f,E,h-E):i(n.check,f,E,h-E)),E=m,(n.flags?g:c(g))!==n.check){e.msg="incorrect data check",n.mode=30;break}v=g=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===p)break e;p--,g+=u[d++]<<v,v+=8}if(g!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}v=g=0}n.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;case 32:default:return l}return e.next_out=h,e.avail_out=m,e.next_in=d,e.avail_in=p,n.hold=g,n.bits=v,(n.wsize||E!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&b(e,e.output,e.next_out,E-e.avail_out)?(n.mode=31,-4):(w-=e.avail_in,E-=e.avail_out,e.total_in+=w,e.total_out+=E,n.total+=E,n.wrap&&E&&(e.adler=n.check=n.flags?o(n.check,f,E,e.next_out-E):i(n.check,f,E,e.next_out-E)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===E||4===t)&&0===I&&(I=-5),I)},n.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?l:((n.head=t).done=!1,0):l},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?l:11===n.mode&&i(1,t,r,0)!==n.check?-3:b(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):l},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[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],o=[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],a=[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],s=[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];t.exports=function(e,t,n,l,c,u,f,d){var h,p,m,g,v,y,b,w,E,k=d.bits,x=0,S=0,_=0,A=0,C=0,T=0,P=0,O=0,M=0,I=0,R=null,L=0,N=new r.Buf16(16),j=new r.Buf16(16),B=null,F=0;for(x=0;x<=15;x++)N[x]=0;for(S=0;S<l;S++)N[t[n+S]]++;for(C=k,A=15;1<=A&&0===N[A];A--);if(A<C&&(C=A),0===A)return c[u++]=20971520,c[u++]=20971520,d.bits=1,0;for(_=1;_<A&&0===N[_];_++);for(C<_&&(C=_),x=O=1;x<=15;x++)if(O<<=1,(O-=N[x])<0)return-1;if(0<O&&(0===e||1!==A))return-1;for(j[1]=0,x=1;x<15;x++)j[x+1]=j[x]+N[x];for(S=0;S<l;S++)0!==t[n+S]&&(f[j[t[n+S]]++]=S);if(y=0===e?(R=B=f,19):1===e?(R=i,L-=257,B=o,F-=257,256):(R=a,B=s,-1),x=_,v=u,P=S=I=0,m=-1,g=(M=1<<(T=C))-1,1===e&&852<M||2===e&&592<M)return 1;for(;;){for(b=x-P,E=f[S]<y?(w=0,f[S]):f[S]>y?(w=B[F+f[S]],R[L+f[S]]):(w=96,0),h=1<<x-P,_=p=1<<T;c[v+(I>>P)+(p-=h)]=b<<24|w<<16|E|0,0!==p;);for(h=1<<x-1;I&h;)h>>=1;if(0!==h?(I&=h-1,I+=h):I=0,S++,0==--N[x]){if(x===A)break;x=t[n+f[S]]}if(C<x&&(I&g)!==m){for(0===P&&(P=C),v+=_,O=1<<(T=x-P);T+P<A&&!((O-=N[T+P])<=0);)T++,O<<=1;if(M+=1<<T,1===e&&852<M||2===e&&592<M)return 1;c[m=I&g]=C<<24|T<<16|v-u|0}}return 0!==I&&(c[v+I]=x-P<<24|64<<16|0),d.bits=C,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={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"}},{}],52:[function(e,t,n){"use strict";var r=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var o=256,a=286,s=30,l=15,c=[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],u=[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],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],h=new Array(576);i(h);var p=new Array(60);i(p);var m=new Array(512);i(m);var g=new Array(256);i(g);var v=new Array(29);i(v);var y,b,w,E=new Array(s);function k(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}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function S(e){return e<256?m[e]:m[256+(e>>>7)]}
vendor: 5,746 bytes, line 38
38function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function A(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function C(e,t,n){A(e,n[2*t],n[2*t+1])}function T(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function P(e,t,n){var r,i,o=new Array(16),a=0;for(r=1;r<=l;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=T(o[s]++,s))}}function O(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function M(e){8<e.bi_valid?_(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function I(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function R(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&I(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!I(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function L(e,t,n){var r,i,a,s,l=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===r?C(e,i,t):(C(e,(a=g[i])+o+1,t),0!==(s=c[a])&&A(e,i-=v[a],s),C(e,a=S(--r),n),0!==(s=u[a])&&A(e,r-=E[a],s)),l<e.last_lit;);C(e,256,t)}function N(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)R(e,o,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],R(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,R(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,c=t.dyn_tree,u=t.max_code,f=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(o=0;o<=l;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)m<(o=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(o=m,g++),c[2*r+1]=o,u<r||(e.bl_count[o]++,a=0,p<=r&&(a=h[r-p]),s=c[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(f[2*r+1]+a)));if(0!==g){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,g-=2}while(0<g);for(o=m;0!==o;o--)for(r=e.bl_count[o];0!==r;)u<(i=e.heap[--n])||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(e,t),P(o,u,e.bl_count)}function j(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,c=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4))}function B(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<c)for(;C(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(C(e,i,e.bl_tree),s--),C(e,16,e.bl_tree),A(e,s-3,2)):s<=10?(C(e,17,e.bl_tree),A(e,s-3,3)):(C(e,18,e.bl_tree),A(e,s-11,7));o=i,c=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4)}}i(E);var F=!1;function D(e,t,n,i){A(e,0+(i?1:0),3),function(e,t,n,i){M(e),_(e,n),_(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}n._tr_init=function(e){F||(function(){var e,t,n,r,i,o=new Array(16);for(r=n=0;r<28;r++)for(v[r]=n,e=0;e<1<<c[r];e++)g[n++]=r;for(g[n-1]=r,r=i=0;r<16;r++)for(E[r]=i,e=0;e<1<<u[r];e++)m[i++]=r;for(i>>=7;r<s;r++)for(E[r]=i<<7,e=0;e<1<<u[r]-7;e++)m[256+i++]=r;for(t=0;t<=l;t++)o[t]=0;for(e=0;e<=143;)h[2*e+1]=8,e++,o[8]++;for(;e<=255;)h[2*e+1]=9,e++,o[9]++;for(;e<=279;)h[2*e+1]=7,e++,o[7]++;for(;e<=287;)h[2*e+1]=8,e++,o[8]++;for(P(h,287,o),e=0;e<s;e++)p[2*e+1]=5,p[2*e]=T(e,5);y=new k(h,c,257,a,l),b=new k(p,u,0,s,l),w=new k(new Array(0),f,0,19,7)}(),F=!0),e.l_desc=new x(e.dyn_ltree,y),e.d_desc=new x(e.dyn_dtree,b),e.bl_desc=new x(e.bl_tree,w),e.bi_buf=0,e.bi_valid=0,O(e)},n._tr_stored_block=D,n._tr_flush_block=function(e,t,n,r){var i,a,s=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),N(e,e.l_desc),N(e,e.d_desc),s=function(e){var t;for(j(e,e.dyn_ltree,e.l_desc.max_code),j(e,e.dyn_dtree,e.d_desc.max_code),N(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*d[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?D(e,t,n,r):4===e.strategy||a===i?(A(e,2+(r?1:0),3),L(e,h,p)):(A(e,4+(r?1:0),3),function(e,t,n,r){var i;for(A(e,t-257,5),A(e,n-1,5),A(e,r-4,4),i=0;i<r;i++)A(e,e.bl_tree[2*d[i]+1],3);B(e,e.dyn_ltree,t-1),B(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),L(e,e.dyn_ltree,e.dyn_dtree)),O(e),r&&M(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(g[n]+o+1)]++,e.dyn_dtree[2*S(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){A(e,2,3),C(e,256,h),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";
38t.exports=function(){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}},{}],54:[function(e,t,n){"use strict";t.exports="function"==typeof r?r:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}).call(this,n(282).Buffer,n(37),n(120).setImmediate)},function(e,t,n){t.hot=function(e){return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return M}));var r=n(3),i=n(4),o=n(5),a=n(49),s=n(21),l=n(12);class c extends s.a{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=Object(l.a)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return Object(l.a)(Object(r.h)(e.readValue().toHexString(),20))}}class u extends s.a{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const f=new o.b(a.a);function d(e,t,n){let r=null;if(Array.isArray(n))r=n;else if(n&&"object"==typeof n){let e={};r=t.map(t=>{const r=t.localName;return r||f.throwError("cannot encode object for signature with missing names",o.b.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:n}),e[r]&&f.throwError("cannot encode object for signature with duplicate names",o.b.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:n}),e[r]=!0,n[r]})}else f.throwArgumentError("invalid tuple value","tuple",n);t.length!==r.length&&f.throwArgumentError("types/value length mismatch","tuple",n);let i=new s.c(e.wordSize),a=new s.c(e.wordSize),l=[];t.forEach((e,t)=>{let n=r[t];if(e.dynamic){let t=a.length;e.encode(a,n);let r=i.writeUpdatableValue();l.push(e=>{r(e+t)})}else e.encode(i,n)}),l.forEach(e=>{e(i.length)});let c=e.appendWriter(i);return c+=e.appendWriter(a),c}function h(e,t){let n=[],r=e.subReader(0);t.forEach(t=>{let i=null;if(t.dynamic){let n=e.readValue(),a=r.subReader(n.toNumber());try{i=t.decode(a)}catch(e){if(e.code===o.b.errors.BUFFER_OVERRUN)throw e;i=e,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===o.b.errors.BUFFER_OVERRUN)throw e;i=e,i.baseType=t.name,i.name=t.localName,i.type=t.type}null!=i&&n.push(i)});const i=t.reduce((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e},{});t.forEach((e,t)=>{let r=e.localName;if(!r||1!==i[r])return;if("length"===r&&(r="_length"),null!=n[r])return;const o=n[t];o instanceof Error?Object.defineProperty(n,r,{enumerable:!0,get:()=>{throw o}}):n[r]=o});for(let e=0;e<n.length;e++){const t=n[e];t instanceof Error&&Object.defineProperty(n,e,{enumerable:!0,get:()=>{throw t}})}return Object.freeze(n)}class p extends s.a{constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let n=0;n<this.length;n++)t.push(e);return t}encode(e,t){Array.isArray(t)||this._throwError("expected array value",t);let n=this.length;-1===n&&(n=t.length,e.writeValue(t.length)),f.checkArgumentCount(t.length,n,"coder array"+(this.localName?" "+this.localName:""));let r=[];for(let e=0;e<t.length;e++)r.push(this.coder);return d(e,r,t)}decode(e){let t=this.length;-1===t&&(t=e.readValue().toNumber(),32*t>e._data.length&&f.throwError("insufficient data length",o.b.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let n=[];for(let e=0;e<t;e++)n.push(new u(this.coder));return e.coerce(this.name,h(e,n))}}class m extends s.a{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class g extends s.a{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=Object(r.a)(t);let n=e.writeValue(t.length);return n+=e.writeBytes(t),n}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class v extends g{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,Object(r.i)(super.decode(e)))}}class y extends s.a{constructor(e,t){let n="bytes"+String(e);super(n,n,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let n=Object(r.a)(t);return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}decode(e){return e.coerce(this.name,Object(r.i)(e.readBytes(this.size)))}}class b extends s.a{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}var w=n(17),E=n(50);class k extends s.a{constructor(e,t,n){const r=(t?"int":"uint")+8*e;super(r,r,n,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let n=w.a.from(t),r=E.b.mask(8*e.wordSize);if(this.signed){let e=r.mask(8*this.size-1);(n.gt(e)||n.lt(e.add(E.e).mul(E.d)))&&this._throwError("value out-of-bounds",t)}else(n.lt(E.h)||n.gt(r.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return n=n.toTwos(8*this.size).mask(8*this.size),this.signed&&(n=n.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(n)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}var x=n(33);class S extends g{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,Object(x.f)(t))}decode(e){return Object(x.h)(super.decode(e))}}class _ extends s.a{constructor(e,t){let n=!1;const r=[];
38e.forEach(e=>{e.dynamic&&(n=!0),r.push(e.type)});super("tuple","tuple("+r.join(",")+")",t,n),this.coders=e}defaultValue(){const e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});const t=this.coders.reduce((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e},{});return this.coders.forEach((n,r)=>{let i=n.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[r]))}),Object.freeze(e)}encode(e,t){return d(e,this.coders,t)}decode(e){return e.coerce(this.name,h(e,this.coders))}}var A=n(36);const C=new o.b(a.a),T=new RegExp(/^bytes([0-9]*)$/),P=new RegExp(/^(u?int)([0-9]*)$/);class O{constructor(e){C.checkNew(new.target,O),Object(i.d)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new c(e.name);case"bool":return new m(e.name);case"string":return new S(e.name);case"bytes":return new v(e.name);case"array":return new p(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new _((e.components||[]).map(e=>this._getCoder(e)),e.name);case"":return new b(e.name)}
vendor: 7,682 bytes, line 38
38let t=e.type.match(P);if(t){let n=parseInt(t[2]||"256");return(0===n||n>256||n%8!=0)&&C.throwArgumentError("invalid "+t[1]+" bit length","param",e),new k(n/8,"int"===t[1],e.name)}if(t=e.type.match(T),t){let n=parseInt(t[1]);return(0===n||n>32)&&C.throwArgumentError("invalid bytes length","param",e),new y(n,e.name)}return C.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new s.b(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new s.c(this._getWordSize())}getDefaultValue(e){const t=e.map(e=>this._getCoder(A.g.from(e)));return new _(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&C.throwError("types/values length mismatch",o.b.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const n=e.map(e=>this._getCoder(A.g.from(e))),r=new _(n,"_"),i=this._getWriter();return r.encode(i,t),i.data}decode(e,t,n){const i=e.map(e=>this._getCoder(A.g.from(e)));return new _(i,"_").decode(this._getReader(Object(r.a)(t),n))}}const M=new O},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(33);function i(e,t){t||(t=function(e){return[parseInt(e,16)]});let n=0,r={};return e.split(",").forEach(e=>{let i=e.split(":");n+=parseInt(i[0],16),r[n]=t(i[1])}),r}function o(e){let t=0;return e.split(",").map(e=>{let n=e.split("-");1===n.length?n[1]="0":""===n[1]&&(n[1]="1");let r=t+parseInt(n[0],16);return t=parseInt(n[1],16),{l:r,h:t}})}function a(e,t){let n=0;for(let r=0;r<t.length;r++){let i=t[r];if(n+=i.l,e>=n&&e<=n+i.h&&(e-n)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-n))continue;return i}}return null}const s=o("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),l="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(e=>parseInt(e,16)),c=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],u=i("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),f=i("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),d=i("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");let t=[];for(let n=0;n<e.length;n+=4)t.push(parseInt(e.substring(n,n+4),16));return t})),h=o("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function p(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();let t=Object(r.g)(e);var n;n=t.map(e=>{if(l.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];let t=function(e){let t=a(e,c);if(t)return[e+t.s];let n=u[e];
38if(n)return n;let r=f[e];if(r)return[e+r[0]];let i=d[e];return i||null}(e);return t||[e]}),t=n.reduce((e,t)=>(t.forEach(t=>{e.push(t)}),e),[]),t=Object(r.g)(Object(r.e)(t),r.a.NFKC),t.forEach(e=>{if(a(e,h))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),t.forEach(e=>{if(a(e,s))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let i=Object(r.e)(t);if("-"===i.substring(0,1)||"--"===i.substring(2,4)||"-"===i.substring(i.length-1))throw new Error("invalid hyphen");if(i.length>63)throw new Error("too long");return i}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"a",(function(){return d}));var r=n(32),i=n.n(r),o=n(3),a=n(141),s=n(5);const l=new s.b("sha2/5.4.0");function c(e){return"0x"+i.a.ripemd160().update(Object(o.a)(e)).digest("hex")}function u(e){return"0x"+i.a.sha256().update(Object(o.a)(e)).digest("hex")}function f(e){return"0x"+i.a.sha512().update(Object(o.a)(e)).digest("hex")}function d(e,t,n){return a.a[e]||l.throwError("unsupported algorithm "+e,s.b.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+i.a.hmac(i.a[e],Object(o.a)(t)).update(Object(o.a)(n)).digest("hex")}},,,,,,,,,,,,function(e,t,n){n(168),e.exports=n(301)},function(e,t,n){"use strict";e.exports=n(169)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(0))&&"object"==typeof r&&"default"in r?r.default:r;function o(e){return o.warnAboutHMRDisabled&&(o.warnAboutHMRDisabled=!0,console.error("React-Hot-Loader: misconfiguration detected, using production version in non-production environment."),console.error("React-Hot-Loader: Hot Module Replacement is not enabled.")),i.Children.only(e.children)}o.warnAboutHMRDisabled=!1;var a=function e(){return e.shouldWrapWithAppContainer?function(e){return function(t){return i.createElement(o,null,i.createElement(e,t))}}:function(e){return e}};a.shouldWrapWithAppContainer=!1;t.AppContainer=o,t.hot=a,t.areComponentsEqual=function(e,t){return e===t},t.setConfig=function(){},t.cold=function(e){return e},t.configureComponent=function(){}},function(e,t,n){"use strict";
39/** @license React v16.14.0
40 * react.production.min.js
41 *
42 * Copyright (c) Facebook, Inc. and its affiliates.
43 *
44 * This source code is licensed under the MIT license found in the
45 * LICENSE file in the root directory of this source tree.
46 */var r=n(108),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function E(){}function k(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=w.prototype;var x=k.prototype=new E;x.constructor=k,r(x,w.prototype),x.isPureReactComponent=!0;var S={current:null},_=Object.prototype.hasOwnProperty,A={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,r)&&!A.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:S.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var P=/\/+/g,O=[];function M(e,t,n,r){if(O.length){var i=O.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case a:l=!0}}if(l)return r(i,t,""===n?"."+L(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+L(s=t[c],c);l+=e(s,u,r,i)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=g&&t[g]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(s=t.next()).done;)l+=e(s=s.value,u=n+L(s,c++),r,i);else if("object"===s)throw r=""+t,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}
vendor: 4,838 bytes, lines 46-54
46(e,"",t,n)}function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function N(e,t){e.func.call(e.context,t,e.count++)}function j(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?B(e,r,n,(function(e){return e})):null!=e&&(T(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),r.push(e))}function B(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(P,"$&/")+"/"),R(e,j,t=M(t,o,r,i)),I(t)}var F={current:null};function D(){var e=F.current;if(null===e)throw Error(v(321));return e}var z={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return B(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,N,t=M(null,null,t,n)),I(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return B(e,t,null,(function(e){return e})),t},only:function(e){if(!T(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=c,t.PureComponent=k,t.StrictMode=l,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)_.call(t,u)&&!A.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var f=0;f<u;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return D().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,n){return D().useReducer(e,t,n)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";
47/** @license React v17.0.1
48 * react-dom.production.min.js
49 *
50 * Copyright (c) Facebook, Inc. and its affiliates.
51 *
52 * This source code is licensed under the MIT license found in the
53 * LICENSE file in the root directory of this source tree.
54 */var r=n(0),i=n(108),o=n(172);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,p={},m={};function g(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 17,166 bytes, line 54
54h((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(m,e)||!h.call(p,e)&&(d.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,x=60106,S=60107,_=60108,A=60114,C=60109,T=60110,P=60112,O=60113,M=60120,I=60115,R=60116,L=60121,N=60128,j=60129,B=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var D=Symbol.for;k=D("react.element"),x=D("react.portal"),S=D("react.fragment"),_=D("react.strict_mode"),A=D("react.profiler"),C=D("react.provider"),T=D("react.context"),P=D("react.forward_ref"),O=D("react.suspense"),M=D("react.suspense_list"),I=D("react.memo"),R=D("react.lazy"),L=D("react.block"),D("react.scope"),N=D("react.opaque.id"),j=D("react.debug_trace_mode"),B=D("react.offscreen"),F=D("react.legacy_hidden")}var z,U="function"==typeof Symbol&&Symbol.iterator;function $(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=U&&e[U]||e["@@iterator"])?e:null}function H(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var J=!1;function G(e,t){if(!e||J)return"";J=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{J=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function V(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 22:return e=G(e.type._render,!1);case 1:return e=G(e.type,!0);default:return""}}function X(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case A:return"Profiler";case _:return"StrictMode";case O:return"Suspense";case M:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return X(e.type);case L:return X(e._render);case R:t=e._payload,e=e._init;try{return X(e(t))}catch(e){}}return null}function W(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ce(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ge=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xe(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ae=null,Ce=null,Te=null;function Pe(e){if(e=Yr(e)){if("function"!=typeof Ae)throw Error(a(280));var t=e.stateNode;t&&(t=ei(t),Ae(e.stateNode,e.type,t))}}function Oe(e){Ce?Te?Te.push(e):Te=[e]:Ce=e}function Me(){if(Ce){var e=Ce,t=Te;if(Te=Ce=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Ie(e,t){return e(t)}function Re(e,t,n,r,i){return e(t,n,r,i)}function Le(){}var Ne=Ie,je=!1,Be=!1;function Fe(){null===Ce&&null===Te||(Le(),Me())}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=ei(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var ze=!1;if(f)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(e){ze=!1}function $e(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var He=!1,Je=null,Ge=!1,Ve=null,Xe={onError:function(e){He=!0,Je=e}};function We(e,t,n,r,i,o,a,s,l){He=!1,Je=null,$e.apply(Xe,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ze(e){if(qe(e)!==e)throw Error(a(188))}function Ye(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Ze(i),e;if(o===r)return Ze(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Qe(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,st=null,lt=null,ct=new Map,ut=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function pt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=ht(t,n,r,i,o),null!==t&&(null!==(t=Yr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function gt(e){var t=Zr(e.target);if(null!==t){var n=qe(t);
vendor: 7,413 bytes, line 54
54if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Yr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){vt(e)&&n.delete(t)}function bt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=Yr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&vt(at)&&(at=null),null!==st&&vt(st)&&(st=null),null!==lt&&vt(lt)&&(lt=null),ct.forEach(yt),ut.forEach(yt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function Et(e){function t(t){return wt(t,e)}if(0<ot.length){wt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&wt(at,e),null!==st&&wt(st,e),null!==lt&&wt(lt,e),ct.forEach(t),ut.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)gt(n),null===n.blockedOn&&ft.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xt={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},St={},_t={};function At(e){if(St[e])return St[e];if(!xt[e])return e;var t,n=xt[e];for(t in n)if(n.hasOwnProperty(t)&&t in _t)return St[e]=n[t];return e}f&&(_t=document.createElement("div").style,"AnimationEvent"in window||(delete xt.animationend.animation,delete xt.animationiteration.animation,delete xt.animationstart.animation),"TransitionEvent"in window||delete xt.transitionend.transition);var Ct=At("animationend"),Tt=At("animationiteration"),Pt=At("animationstart"),Ot=At("transitionend"),Mt=new Map,It=new Map,Rt=["abort","abort",Ct,"animationEnd",Tt,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ot,"transitionEnd","waiting","waiting"];function Lt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),It.set(r,t),Mt.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Nt=8;function jt(e){if(0!=(1&e))return Nt=15,1;if(0!=(2&e))return Nt=14,2;if(0!=(4&e))return Nt=13,4;var t=24&e;return 0!==t?(Nt=12,t):0!=(32&e)?(Nt=11,32):0!==(t=192&e)?(Nt=10,t):0!=(256&e)?(Nt=9,256):0!==(t=3584&e)?(Nt=8,t):0!=(4096&e)?(Nt=7,4096):0!==(t=4186112&e)?(Nt=6,t):0!==(t=62914560&e)?(Nt=5,t):67108864&e?(Nt=4,67108864):0!=(134217728&e)?(Nt=3,134217728):0!==(t=805306368&e)?(Nt=2,t):0!=(1073741824&e)?(Nt=1,1073741824):(Nt=8,e)}function Bt(e,t){var n=e.pendingLanes;if(0===n)return Nt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Nt=15;else if(0!==(o=134217727&n)){var l=o&~a;0!==l?(r=jt(l),i=Nt):0!==(s&=o)&&(r=jt(s),i=Nt)}else 0!==(o=n&~a)?(r=jt(o),i=Nt):0!==s&&(r=jt(s),i=Nt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(jt(t),i<=Nt)return t;Nt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ht(t)),r|=e[n],t&=~i;return r}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Dt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Dt(10,t):e;case 10:return 0===(e=zt(192&~t))?Dt(8,t):e;case 8:return 0===(e=zt(3584&~t))&&(0===(e=zt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function zt(e){return e&-e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $t(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Jt(e)/Gt|0)|0},Jt=Math.log,Gt=Math.LN2;var Vt=o.unstable_UserBlockingPriority,Xt=o.unstable_runWithPriority,Wt=!0;function qt(e,t,n,r){je||Le();var i=Zt,o=je;je=!0;try{Re(i,e,t,n,r)}finally{(je=o)||Fe()}}function Kt(e,t,n,r){Xt(Vt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var i;if(Wt)if((i=0==(4&t))&&0<ot.length&&-1<dt.indexOf(e))e=ht(null,e,t,n,r),ot.push(e);else{var o=Yt(e,t,n,r);if(null===o)i&&pt(e,r);else{if(i){if(-1<dt.indexOf(e))return e=ht(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=mt(at,e,t,n,r,i),!0;case"dragenter":return st=mt(st,e,t,n,r,i),!0;case"mouseover":return lt=mt(lt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ut.set(o,mt(ut.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;pt(e,r)}Or(e,t,r,null,n)}}}function Yt(e,t,n,r){var i=_e(r);if(null!==(i=Zr(i))){var o=qe(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ke(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Or(e,t,r,i,n),null}var Qt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,cn,un,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=sn(fn),hn=i({},fn,{view:0,detail:0}),pn=sn(hn),mn=i({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 8,805 bytes, line 54
54Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(ln=e.screenX-un.screenX,cn=e.screenY-un.screenY):cn=ln=0,un=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=sn(mn),vn=sn(i({},mn,{dataTransfer:0})),yn=sn(i({},hn,{relatedTarget:0})),bn=sn(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=sn(i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),En=sn(i({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function An(){return _n}var Cn=sn(i({},hn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=sn(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=sn(i({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),On=sn(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=sn(i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),In=[9,13,27,32],Rn=f&&"CompositionEvent"in window,Ln=null;f&&"documentMode"in document&&(Ln=document.documentMode);var Nn=f&&"TextEvent"in window&&!Ln,jn=f&&(!Rn||Ln&&8<Ln&&11>=Ln),Bn=String.fromCharCode(32),Fn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Jn(e,t,n,r){Oe(r),0<(t=Ir(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Vn=null;function Xn(e){Sr(e,0)}function Wn(e){if(Z(Qr(e)))return e}function qn(e,t){if("change"===e)return t}var Kn=!1;if(f){var Zn;if(f){var Yn="oninput"in document;if(!Yn){var Qn=document.createElement("div");Qn.setAttribute("oninput","return;"),Yn="function"==typeof Qn.oninput}Zn=Yn}else Zn=!1;Kn=Zn&&(!document.documentMode||9<document.documentMode)}function er(){Gn&&(Gn.detachEvent("onpropertychange",tr),Vn=Gn=null)}function tr(e){if("value"===e.propertyName&&Wn(Vn)){var t=[];if(Jn(t,Vn,e,_e(e)),e=Xn,je)e(t);else{je=!0;try{Ie(e,t)}finally{je=!1,Fe()}}}}function nr(e,t,n){"focusin"===e?(er(),Vn=n,(Gn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wn(Vn)}function ir(e,t){if("click"===e)return Wn(t)}function or(e,t){if("input"===e||"change"===e)return Wn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},sr=Object.prototype.hasOwnProperty;function lr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!sr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function fr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hr=f&&"documentMode"in document&&11>=document.documentMode,pr=null,mr=null,gr=null,vr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==pr||pr!==Y(r)||("selectionStart"in(r=pr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&lr(gr,r)||(gr=r,0<(r=Ir(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}Lt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Lt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Lt(Rt,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wr=0;wr<br.length;wr++)It.set(br[wr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Er="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Er));function xr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,c){if(We.apply(this,arguments),He){if(!He)throw Error(a(198));var u=Je;He=!1,Je=null,Ge||(Ge=!0,Ve=u)}}(r,t,void 0,e),e.currentTarget=null}function Sr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;xr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;xr(i,s,c),o=l}}}if(Ge)throw e=Ve,Ge=!1,Ve=null,e}function _r(e,t){var n=ti(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Ar="_reactListening"+Math.random().toString(36).slice(2);
vendor: 4,485 bytes, line 54
54function Cr(e){e[Ar]||(e[Ar]=!0,s.forEach((function(t){kr.has(t)||Tr(t,!1,e,null),Tr(t,!0,e,null)})))}function Tr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ti(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Pr(o,e,i,t),a.add(s))}function Pr(e,t,n,r){var i=It.get(t);switch(void 0===i?2:i){case 0:i=qt;break;case 1:i=Kt;break;default:i=Zt}n=i.bind(null,t,n,e),i=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Or(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=Zr(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Be)return e(t,n);Be=!0;try{Ne(e,t,n)}finally{Be=!1,Fe()}}((function(){var r=o,i=_e(n),a=[];e:{var s=Mt.get(e);if(void 0!==s){var l=dn,c=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":c="focus",l=yn;break;case"focusout":c="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Ct:case Tt:case Pt:l=bn;break;case Ot:l=On;break;case"scroll":l=pn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!=(4&t),f=!u&&"scroll"===e,d=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&(null!=(m=De(p,d))&&u.push(Mr(p,m,h)))),f)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(c=n.relatedTarget||n.fromElement)||!Zr(c)&&!c[qr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?Zr(c):null)&&(c!==(f=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=gn,m="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,m="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==l?s:Qr(l),h=null==c?s:Qr(c),(s=new u(m,p+"leave",l,n,i)).target=f,s.relatedTarget=h,m=null,Zr(i)===r&&((u=new u(d,p+"enter",c,n,i)).target=h,u.relatedTarget=f,m=u),f=m,l&&c)e:{for(d=c,p=0,h=u=l;h;h=Rr(h))p++;for(h=0,m=d;m;m=Rr(m))h++;for(;0<p-h;)u=Rr(u),p--;for(;0<h-p;)d=Rr(d),h--;for(;p--;){if(u===d||null!==d&&u===d.alternate)break e;u=Rr(u),d=Rr(d)}u=null}else u=null;null!==l&&Lr(a,s,l,u,!1),null!==c&&null!==f&&Lr(a,f,c,u,!0)}if("select"===(l=(s=r?Qr(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=qn;else if(Hn(s))if(Kn)g=or;else{g=rr;var v=nr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Jn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ie(s,"number",s.value)),v=r?Qr(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(pr=v,mr=r,gr=null);break;case"focusout":gr=mr=pr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,yr(a,n,i);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":yr(a,n,i)}var y;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");
vendor: 4,194 bytes, line 54
54b&&(jn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(y=nn()):(en="value"in(Qt=i)?Qt.value:Qt.textContent,Un=!0)),0<(v=Ir(r,b)).length&&(b=new En(b,e,null,n,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=Nn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Rn&&Dn(e,t)?(e=nn(),tn=en=Qt=null,Un=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Ir(r,"onBeforeInput")).length&&(i=new En("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Sr(a,t)}))}function Mr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=De(e,n))&&r.unshift(Mr(e,o,i)),null!=(o=De(e,t))&&r.push(Mr(e,o,i))),e=e.return}return r}function Rr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Lr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=De(n,o))&&a.unshift(Mr(n,l,s)):i||null!=(l=De(n,o))&&a.push(Mr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Nr(){}var jr=null,Br=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Dr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var zr="function"==typeof setTimeout?setTimeout:void 0,Ur="function"==typeof clearTimeout?clearTimeout:void 0;function $r(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Hr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Jr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Gr=0;var Vr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Vr,Wr="__reactProps$"+Vr,qr="__reactContainer$"+Vr,Kr="__reactEvents$"+Vr;function Zr(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qr]||n[Xr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Jr(e);null!==e;){if(n=e[Xr])return n;e=Jr(e)}return t}n=(e=n).parentNode}return null}function Yr(e){return!(e=e[Xr]||e[qr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Qr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ei(e){return e[Wr]||null}function ti(e){var t=e[Kr];return void 0===t&&(t=e[Kr]=new Set),t}var ni=[],ri=-1;function ii(e){return{current:e}}function oi(e){0>ri||(e.current=ni[ri],ni[ri]=null,ri--)}function ai(e,t){ri++,ni[ri]=e.current,e.current=t}var si={},li=ii(si),ci=ii(!1),ui=si;function fi(e,t){var n=e.type.contextTypes;if(!n)return si;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function di(e){return null!=(e=e.childContextTypes)}function hi(){oi(ci),oi(li)}function pi(e,t,n){if(li.current!==si)throw Error(a(168));ai(li,t),ai(ci,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,X(t)||"Unknown",o));return i({},n,r)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||si,ui=li.current,ai(li,e),ai(ci,ci.current),!0}
vendor: 5,251 bytes, line 54
54function vi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,ui),r.__reactInternalMemoizedMergedChildContext=e,oi(ci),oi(li),ai(li,e)):oi(ci),ai(ci,n)}var yi=null,bi=null,wi=o.unstable_runWithPriority,Ei=o.unstable_scheduleCallback,ki=o.unstable_cancelCallback,xi=o.unstable_shouldYield,Si=o.unstable_requestPaint,_i=o.unstable_now,Ai=o.unstable_getCurrentPriorityLevel,Ci=o.unstable_ImmediatePriority,Ti=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,Oi=o.unstable_LowPriority,Mi=o.unstable_IdlePriority,Ii={},Ri=void 0!==Si?Si:function(){},Li=null,Ni=null,ji=!1,Bi=_i(),Fi=1e4>Bi?_i:function(){return _i()-Bi};function Di(){switch(Ai()){case Ci:return 99;case Ti:return 98;case Pi:return 97;case Oi:return 96;case Mi:return 95;default:throw Error(a(332))}}function zi(e){switch(e){case 99:return Ci;case 98:return Ti;case 97:return Pi;case 96:return Oi;case 95:return Mi;default:throw Error(a(332))}}function Ui(e,t){return e=zi(e),wi(e,t)}function $i(e,t,n){return e=zi(e),Ei(e,t,n)}function Hi(){if(null!==Ni){var e=Ni;Ni=null,ki(e)}Ji()}function Ji(){if(!ji&&null!==Li){ji=!0;var e=0;try{var t=Li;Ui(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Li=null}catch(t){throw null!==Li&&(Li=Li.slice(e+1)),Ei(Ci,Hi),t}finally{ji=!1}}}var Gi=E.ReactCurrentBatchConfig;function Vi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Xi=ii(null),Wi=null,qi=null,Ki=null;function Zi(){Ki=qi=Wi=null}function Yi(e){var t=Xi.current;oi(Xi),e.type._context._currentValue=t}function Qi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function eo(e,t){Wi=e,Ki=qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ia=!0),e.firstContext=null)}function to(e,t){if(Ki!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ki=e,t=1073741823),t={context:e,observedBits:t,next:null},null===qi){if(null===Wi)throw Error(a(308));qi=t,Wi.dependencies={lanes:0,firstContext:t,responders:null}}else qi=qi.next=t;return e._currentValue}var no=!1;function ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ao(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function so(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function lo(e,t,n,r){var o=e.updateQueue;no=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=u:d.next=u,f.lastBaseUpdate=c)}}if(null!==a){for(d=o.baseState,s=0,f=u=c=null;;){l=a.lane;var h=a.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(l=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,l);break e}d=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null==(l="function"==typeof(p=m.payload)?p.call(h,d,l):p))break e;d=i({},d,l);break e;case 2:no=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else h={eventTime:h,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(u=f=h,c=d):f=f.next=h,s|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===f&&(c=d),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=f,Ls|=s,e.lanes=s,e.memoizedState=d}}function co(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var uo=(new r.Component).refs;function fo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ho={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ol(),i=al(e),o=oo(r,i);o.payload=t,null!=n&&(o.callback=n),ao(e,o),sl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ol(),i=al(e),o=oo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),ao(e,o),sl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;
vendor: 4,739 bytes, line 54
54var n=ol(),r=al(e),i=oo(n,r);i.tag=2,null!=t&&(i.callback=t),ao(e,i),sl(e,r,n)}};function po(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function mo(e,t,n){var r=!1,i=si,o=t.contextType;return"object"==typeof o&&null!==o?o=to(o):(i=di(t)?ui:li.current,o=(r=null!=(r=t.contextTypes))?fi(e,i):si),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ho,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function go(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ho.enqueueReplaceState(t,t.state,null)}function vo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=uo,ro(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=to(o):(o=di(t)?ui:li.current,i.context=fi(e,o)),lo(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(fo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ho.enqueueReplaceState(i,i.state,null),lo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var yo=Array.isArray;function bo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===uo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function wo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Eo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Dl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=bo(e,t,n),r.return=e,r):((r=zl(n.type,n.key,n.props,null,e.mode,r)).ref=bo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Jl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Ul(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Hl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=zl(t.type,t.key,t.props,null,e.mode,n)).ref=bo(e,null,t),n.return=e,n;case x:return(t=Jl(t,e.mode,n)).return=e,t}if(yo(t)||$(t))return(t=Ul(t,e.mode,n,null)).return=e,t;wo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):c(e,t,n,r):null;case x:return n.key===i?u(e,t,n,r):null}if(yo(n)||$(n))return null!==i?null:f(e,t,n,r,null);wo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):c(t,e,r,i);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(yo(r)||$(r))return f(t,e=e.get(n)||null,r,i,null);wo(t,r)}return null}function m(i,a,s,l){for(var c=null,u=null,f=a,m=a=0,g=null;null!==f&&m<s.length;m++){f.index>
vendor: 4,660 bytes, line 54
54m?(g=f,f=null):g=f.sibling;var v=h(i,f,s[m],l);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(i,f),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,f=g}if(m===s.length)return n(i,f),c;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],l))&&(a=o(f,a,m),null===u?c=f:u.sibling=f,u=f);return c}for(f=r(i,f);m<s.length;m++)null!==(g=p(f,i,m,s[m],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&f.forEach((function(e){return t(i,e)})),c}function g(i,s,l,c){var u=$(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var f=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===f?u=b:f.sibling=b,f=b,m=v}if(y.done)return n(i,m),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=d(i,y.value,c))&&(s=o(y,s,g),null===f?u=y:f.sibling=y,f=y);return u}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=p(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===f?u=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),u}return function(e,r,o,l){var c="object"==typeof o&&null!==o&&o.type===S&&null===o.key;c&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case k:e:{for(u=o.key,c=r;null!==c;){if(c.key===u){switch(c.tag){case 7:if(o.type===S){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}break;default:if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=bo(e,c,o),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}o.type===S?((r=Ul(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=zl(o.type,o.key,o.props,null,e.mode,l)).ref=bo(e,r,o),l.return=e,e=l)}return s(e);case x:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Jl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Hl(o,e.mode,l)).return=e,e=r),s(e);if(yo(o))return m(e,r,o,l);if($(o))return g(e,r,o,l);if(u&&wo(e,o),void 0===o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,X(e.type)||"Component"))}return n(e,r)}}var ko=Eo(!0),xo=Eo(!1),So={},_o=ii(So),Ao=ii(So),Co=ii(So);function To(e){if(e===So)throw Error(a(174));return e}function Po(e,t){switch(ai(Co,t),ai(Ao,e),ai(_o,So),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}oi(_o),ai(_o,t)}function Oo(){oi(_o),oi(Ao),oi(Co)}function Mo(e){To(Co.current);var t=To(_o.current),n=pe(t,e.type);t!==n&&(ai(Ao,e),ai(_o,n))}function Io(e){Ao.current===e&&(oi(_o),oi(Ao))}var Ro=ii(0);function Lo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var No=null,jo=null,Bo=!1;function Fo(e,t){var n=Bl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Do(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function zo(e){if(Bo){var t=jo;if(t){var n=t;if(!Do(e,t)){if(!(t=Hr(n.nextSibling))||!Do(e,t))return e.flags=-1025&e.flags|2,Bo=!1,void(No=e);Fo(No,n)}No=e,jo=Hr(t.firstChild)}else e.flags=-1025&e.flags|2,Bo=!1,No=e}}function Uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;No=e}function $o(e){if(e!==No)return!1;if(!Bo)return Uo(e),Bo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Dr(t,e.memoizedProps))for(t=jo;t;)Fo(e,t),t=Hr(t.nextSibling);if(Uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){jo=Hr(e.nextSibling);break e}t--}
vendor: 7,733 bytes, line 54
54else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}jo=null}}else jo=No?Hr(e.stateNode.nextSibling):null;return!0}function Ho(){jo=No=null,Bo=!1}var Jo=[];function Go(){for(var e=0;e<Jo.length;e++)Jo[e]._workInProgressVersionPrimary=null;Jo.length=0}var Vo=E.ReactCurrentDispatcher,Xo=E.ReactCurrentBatchConfig,Wo=0,qo=null,Ko=null,Zo=null,Yo=!1,Qo=!1;function ea(){throw Error(a(321))}function ta(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function na(e,t,n,r,i,o){if(Wo=o,qo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Vo.current=null===e||null===e.memoizedState?Ta:Pa,e=n(r,i),Qo){o=0;do{if(Qo=!1,!(25>o))throw Error(a(301));o+=1,Zo=Ko=null,t.updateQueue=null,Vo.current=Oa,e=n(r,i)}while(Qo)}if(Vo.current=Ca,t=null!==Ko&&null!==Ko.next,Wo=0,Zo=Ko=qo=null,Yo=!1,t)throw Error(a(300));return e}function ra(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zo?qo.memoizedState=Zo=e:Zo=Zo.next=e,Zo}function ia(){if(null===Ko){var e=qo.alternate;e=null!==e?e.memoizedState:null}else e=Ko.next;var t=null===Zo?qo.memoizedState:Zo.next;if(null!==t)Zo=t,Ko=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ko=e).memoizedState,baseState:Ko.baseState,baseQueue:Ko.baseQueue,queue:Ko.queue,next:null},null===Zo?qo.memoizedState=Zo=e:Zo=Zo.next=e}return Zo}function oa(e,t){return"function"==typeof t?t(e):t}function aa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ko,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,c=i;do{var u=c.lane;if((Wo&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var f={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=f,o=r):l=l.next=f,qo.lanes|=u,Ls|=u}c=c.next}while(null!==c&&c!==i);null===l?o=r:l.next=s,ar(r,t.memoizedState)||(Ia=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function sa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);ar(o,t.memoizedState)||(Ia=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function la(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Wo&e)===e)&&(t._workInProgressVersionPrimary=r,Jo.push(t))),e)return n(t._source);throw Jo.push(t),Error(a(350))}function ca(e,t,n,r){var i=As;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),l=Vo.current,c=l.useState((function(){return la(i,t,n)})),u=c[1],f=c[0];c=Zo;var d=e.memoizedState,h=d.refs,p=h.getSnapshot,m=d.source;d=d.subscribe;var g=qo;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect((function(){h.getSnapshot=n,h.setSnapshot=u;var e=o(t._source);if(!ar(s,e)){e=n(t._source),ar(f,e)||(u(e),e=al(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var l=31-Ht(a),c=1<<l;r[l]|=e,a&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=al(g);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(p,n)&&ar(m,t)&&ar(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:f}).dispatch=u=Aa.bind(null,qo,e),c.queue=e,c.baseQueue=null,f=la(i,t,n),c.memoizedState=c.baseState=f),f}function ua(e,t,n){return ca(ia(),e,t,n)}function fa(e){var t=ra();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e}).dispatch=Aa.bind(null,qo,e),[t.memoizedState,e]}function da(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=qo.updateQueue)?(t={lastEffect:null},qo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ha(e){return e={current:e},ra().memoizedState=e}function pa(){return ia().memoizedState}function ma(e,t,n,r){var i=ra();qo.flags|=e,i.memoizedState=da(1|t,n,void 0,void 0===r?null:r)}function ga(e,t,n,r){var i=ia();r=void 0===r?null:r;var o=void 0;if(null!==Ko){var a=Ko.memoizedState;if(o=a.destroy,null!==r&&ta(r,a.deps))return void da(t,n,o,r)}qo.flags|=e,i.memoizedState=da(1|t,n,o,r)}function va(e,t){return ma(516,4,e,t)}function ya(e,t){return ga(516,4,e,t)}function ba(e,t){return ga(4,2,e,t)}function wa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ea(e,t,n){return n=null!=n?n.concat([e]):null,ga(4,2,wa.bind(null,t,e),n)}function ka(){}function xa(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sa(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _a(e,t){var n=Di();Ui(98>n?98:n,(function(){e(!0)})),Ui(97<n?97:n,(function(){var n=Xo.transition;Xo.transition=1;try{e(!1),t()}finally{Xo.transition=n}}))}function Aa(e,t,n){var r=ol(),i=al(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===qo||null!==a&&a===qo)Qo=Yo=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,ar(l,s))return}catch(e){}sl(e,i,r)}}var Ca={readContext:to,useCallback:ea,useContext:ea,useEffect:ea,useImperativeHandle:ea,useLayoutEffect:ea,useMemo:ea,useReducer:ea,useRef:ea,useState:ea,useDebugValue:ea,useDeferredValue:ea,useTransition:ea,useMutableSource:ea,useOpaqueIdentifier:ea,unstable_isNewReconciler:!1},Ta={readContext:to,useCallback:function(e,t){return ra().memoizedState=[e,void 0===t?null:t],e},useContext:to,useEffect:va,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,2,wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=ra();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ra();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Aa.bind(null,qo,e),[r.memoizedState,e]},useRef:ha,useState:fa,useDebugValue:ka,useDeferredValue:function(e){var t=fa(e),n=t[0],r=t[1];return va((function(){var t=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=t}}),[e]),n},useTransition:function(){var e=fa(!1),t=e[0];return ha(e=_a.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ra();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ca(r,e,t,n)},useOpaqueIdentifier:function(){if(Bo){var e=!1,t=function(e){return{$$typeof:N,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Gr++).toString(36))),Error(a(355))})),n=fa(t)[1];return 0==(2&qo.mode)&&(qo.flags|=516,da(5,(function(){n("r:"+(Gr++).toString(36))}),void 0,null)),t}return fa(t="r:"+(Gr++).toString(36)),t},unstable_isNewReconciler:!1},Pa={readContext:to,useCallback:xa,useContext:to,useEffect:ya,useImperativeHandle:Ea,useLayoutEffect:ba,useMemo:Sa,useReducer:aa,useRef
vendor: 5,947 bytes, line 54
54:pa,useState:function(){return aa(oa)},useDebugValue:ka,useDeferredValue:function(e){var t=aa(oa),n=t[0],r=t[1];return ya((function(){var t=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=t}}),[e]),n},useTransition:function(){var e=aa(oa)[0];return[pa().current,e]},useMutableSource:ua,useOpaqueIdentifier:function(){return aa(oa)[0]},unstable_isNewReconciler:!1},Oa={readContext:to,useCallback:xa,useContext:to,useEffect:ya,useImperativeHandle:Ea,useLayoutEffect:ba,useMemo:Sa,useReducer:sa,useRef:pa,useState:function(){return sa(oa)},useDebugValue:ka,useDeferredValue:function(e){var t=sa(oa),n=t[0],r=t[1];return ya((function(){var t=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=t}}),[e]),n},useTransition:function(){var e=sa(oa)[0];return[pa().current,e]},useMutableSource:ua,useOpaqueIdentifier:function(){return sa(oa)[0]},unstable_isNewReconciler:!1},Ma=E.ReactCurrentOwner,Ia=!1;function Ra(e,t,n,r){t.child=null===e?xo(t,null,n,r):ko(t,e.child,n,r)}function La(e,t,n,r,i){n=n.render;var o=t.ref;return eo(t,i),r=na(e,t,n,r,o,i),null===e||Ia?(t.flags|=1,Ra(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Na(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Fl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ja(e,t,a,r,i,o))}return a=e.child,0==(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)?es(e,t,o):(t.flags|=1,(e=Dl(a,r)).ref=t.ref,e.return=t,t.child=e)}function ja(e,t,n,r,i,o){if(null!==e&&lr(e.memoizedProps,r)&&e.ref===t.ref){if(Ia=!1,0==(o&i))return t.lanes=e.lanes,es(e,t,o);0!=(16384&e.flags)&&(Ia=!0)}return Da(e,t,n,r,o)}function Ba(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},ml(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ml(t,e),null;t.memoizedState={baseLanes:0},ml(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ml(t,r);return Ra(e,t,i,n),t.child}function Fa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Da(e,t,n,r,i){var o=di(n)?ui:li.current;return o=fi(t,o),eo(t,i),n=na(e,t,n,r,o,i),null===e||Ia?(t.flags|=1,Ra(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function za(e,t,n,r,i){if(di(n)){var o=!0;gi(t)}else o=!1;if(eo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mo(t,n,r),vo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=to(c):c=fi(t,c=di(n)?ui:li.current);var u=n.getDerivedStateFromProps,f="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&go(t,a,r,c),no=!1;var d=t.memoizedState;a.state=d,lo(t,r,a,i),l=t.memoizedState,s!==r||d!==l||ci.current||no?("function"==typeof u&&(fo(t,n,u,r),l=t.memoizedState),(s=no||po(t,n,s,r,d,l,c))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,io(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Vi(t.type,s),a.props=c,f=t.pendingProps,d=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=to(l):l=fi(t,l=di(n)?ui:li.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==l)&&go(t,a,r,l),no=!1,d=t.memoizedState,a.state=d,lo(t,r,a,i);var p=t.memoizedState;s!==f||d!==p||ci.current||no?("function"==typeof h&&(fo(t,n,h,r),p=t.memoizedState),(c=no||po(t,n,c,r,d,p,l))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ua(e,t,n,r,o,i)}function Ua(e,t,n,r,i,o){Fa(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&vi(t,n,!1),es(e,t,o);r=t.stateNode,Ma.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ko(t,e.child,null,o),t.child=ko(t,null,s,o)):Ra(e,t,s,o),t.memoizedState=r.state,i&&vi(t,n,!0),t.child}function $a(e){var t=e.stateNode;t.pendingContext?pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&pi(0,t.context,!1),Po(e,t.containerInfo)}var Ha,Ja,Ga,Va={dehydrated:null,retryLane:0};function Xa(e,t,n){var r,i=t.pendingProps,o=Ro.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?
vendor: 8,397 bytes, line 54
54(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ai(Ro,1&o),null===e?(void 0!==i.fallback&&zo(t),e=i.children,o=i.fallback,a?(e=Wa(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Va,e):"number"==typeof i.unstable_expectedLoadTime?(e=Wa(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Va,t.lanes=33554432,e):((n=$l({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=Ka(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Va,i):(n=qa(e,t,i.children,n),t.memoizedState=null,n))}function Wa(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=$l(t,i,0,null),n=Ul(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function qa(e,t,n,r){var i=e.child;return e=i.sibling,n=Dl(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ka(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Dl(a,s),null!==e?r=Dl(e,r):(r=Ul(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Za(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Qi(e.return,t)}function Ya(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function Qa(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ra(e,t,r.children,n),0!=(2&(r=Ro.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Za(e,n);else if(19===e.tag)Za(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ai(Ro,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Lo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ya(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Lo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ya(t,!0,n,null,o,t.lastEffect);break;case"together":Ya(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function es(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ls|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Dl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ts(e,t){if(!Bo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ns(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return di(t.type)&&hi(),null;case 3:return Oo(),oi(ci),oi(li),Go(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||($o(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Io(t);var o=To(Co.current);if(n=t.type,null!==e&&null!=t.stateNode)Ja(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=To(_o.current),$o(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Xr]=t,r[Wr]=s,n){case"dialog":_r("cancel",r),_r("close",r);break;case"iframe":case"object":case"embed":_r("load",r);break;case"video":case"audio":for(e=0;e<Er.length;e++)_r(Er[e],r);break;case"source":_r("error",r);break;case"img":case"image":case"link":_r("error",r),_r("load",r);break;case"details":_r("toggle",r);break;case"input":ee(r,s),_r("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},_r("invalid",r);break;case"textarea":le(r,s),_r("invalid",r)}for(var c in xe(n,s),e=null,s)s.hasOwnProperty(c)&&(o=s[c],"children"===c?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&_r("scroll",r));switch(n){case"input":K(r),re(r,s,!0);break;case"textarea":K(r),ue(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Nr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=he(n)),e===fe?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Xr]=t,e[Wr]=r,Ha(e,t),t.stateNode=e,c=Se(n,r),n){case"dialog":_r("cancel",e),_r("close",e),o=r;break;case"iframe":case"object":case"embed":_r("load",e),o=r;break;case"video":case"audio":for(o=0;o<Er.length;o++)_r(Er[o],e);o=r;break;case"source":_r("error",e),o=r;break;case"img":case"image":case"link":_r("error",e),_r("load",e),o=r;break;case"details":_r("toggle",e),o=r;break;case"input":ee(e,r),o=Q(e,r),_r("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),_r("invalid",e);break;case"textarea":le(e,r),o=se(e,r),_r("invalid",e);break;default:o=r}xe(n,o);var u=o;for(s in u)if(u.hasOwnProperty(s)){var f=u[s];"style"===s?Ee(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===s?"string"==typeof f?("textarea"!==n||""!==f)&&ve(e,f):"number"==typeof f&&ve(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=f&&"onScroll"===s&&_r("scroll",e):null!=f&&w(e,s,f,c))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Nr)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ga(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=To(Co.current),To(_o.current),$o(t)?(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Xr]=t,t.stateNode=r)}return null;case 13:return oi(Ro),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&$o(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ro.current)?0===Ms&&(Ms=3):(0!==Ms&&3!==Ms||(Ms=4),null===As||0==(134217727&Ls)&&0==(134217727&Ns)||fl(As,Ts))),(r||n)&&(t.flags|=4),null);case 4:return Oo(),null===e&&Cr(t.stateNode.containerInfo),null;case 10:return Yi(t),null;case 17:return di(t.type)&&hi(),null;case 19:if(oi(Ro),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(c=r.rendering))if(s)ts(r,!1);else{if(0!==Ms||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Lo(e))){for(t.flags|=64,ts(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,
vendor: 42,400 bytes, lines 54-62
54s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ai(Ro,1&Ro.current|2),t.child}e=e.sibling}null!==r.tail&&Fi()>Ds&&(t.flags|=64,s=!0,ts(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Lo(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ts(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Bo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>Ds&&1073741824!==n&&(t.flags|=64,s=!0,ts(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=Ro.current,ai(Ro,s?1&t|2:1&t),n):null;case 23:case 24:return gl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function rs(e){switch(e.tag){case 1:di(e.type)&&hi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Oo(),oi(ci),oi(li),Go(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Io(e),null;case 13:return oi(Ro),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return oi(Ro),null;case 4:return Oo(),null;case 10:return Yi(e),null;case 23:case 24:return gl(),null;default:return null}}function is(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function os(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ha=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ja=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,To(_o.current);var a,s=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Nr)}for(f in xe(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var c=o[f];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var u=r[f];if(c=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&u!==c&&(null!=u||null!=c))if("style"===f)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(f,n)),n=u;else"dangerouslySetInnerHTML"===f?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(f,u)):"children"===f?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(f,""+u):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=u&&"onScroll"===f&&_r("scroll",e),s||c===u||(s=[])):"object"==typeof u&&null!==u&&u.$$typeof===N?u.toString():(s=s||[]).push(f,u))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Ga=function(e,t,n,r){n!==r&&(t.flags|=4)};var as="function"==typeof WeakMap?WeakMap:Map;function ss(e,t,n){(n=oo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,Js=r),os(0,t)},n}function ls(e,t,n){(n=oo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return os(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this),os(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var cs="function"==typeof WeakSet?WeakSet:Set;function us(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Rl(e,t)}else t.current=null}function fs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Vi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&$r(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ds(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Ol(n,e),Pl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Vi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&co(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}co(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function hs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=we("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ps(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(yi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Ol(t,n);else{r=t;try{i()}catch(e){Rl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(us(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Rl(t,e)}break;case 5:us(t);break;case 4:ys(e,t)}}function ms(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gs(e){return 5===e.tag||3===e.tag||4===e.tag}function vs(e){e:{for(var t=e.return;null!==t;){if(gs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Nr));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function ys(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,c=l;;)if(ps(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(ps(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function bs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Wr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?Ee(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?ve(n,l):w(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Fs=Fi(),hs(t.child,!0)),void ws(t);case 19:return void ws(t);case 17:return;case 23:case 24:return void hs(t,null!==t.memoizedState)}throw Error(a(163))}function ws(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new cs),t.forEach((function(t){var r=Nl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Es(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var ks=Math.ceil,xs=E.ReactCurrentDispatcher,Ss=E.ReactCurrentOwner,_s=0,As=null,Cs=null,Ts=0,Ps=0,Os=ii(0),Ms=0,Is=null,Rs=0,Ls=0,Ns=0,js=0,Bs=null,Fs=0,Ds=1/0;function zs(){Ds=Fi()+500}var Us,$s=null,Hs=!1,Js=null,Gs=null,Vs=!1,Xs=null,Ws=90,qs=[],Ks=[],Zs=null,Ys=0,Qs=null,el=-1,tl=0,nl=0,rl=null,il=!1;function ol(){return 0!=(48&_s)?Fi():-1!==el?el:el=Fi()}function al(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Di()?1:2;if(0===tl&&(tl=Rs),0!==Gi.transition){0!==nl&&(nl=null!==Bs?Bs.pendingLanes:0),e=tl;var t=4186112&~nl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Di(),0!=(4&_s)&&98===e?e=Dt(12,tl):e=Dt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),tl),e}function sl(e,t,n){if(50<Ys)throw Ys=0,Qs=null,Error(a(185));if(null===(e=ll(e,t)))return null;$t(e,t,n),e===As&&(Ns|=t,4===Ms&&fl(e,Ts));var r=Di();1===t?0!=(8&_s)&&0==(48&_s)?dl(e):(cl(e,n),0===_s&&(zs(),Hi())):(0==(4&_s)||98!==r&&99!==r||(null===Zs?Zs=new Set([e]):Zs.add(e)),cl(e,n)),Bs=e}function ll(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function cl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ht(s),c=1<<l,u=o[l];if(-1===u){if(0==(c&r)||0!=(c&i)){u=t,jt(c);var f=Nt;o[l]=10<=f?u+250:6<=f?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=Bt(e,e===As?Ts:0),t=Nt,0===r)null!==n&&(n!==Ii&&ki(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ii&&ki(n)}15===t?(n=dl.bind(null,e),null===Li?(Li=[n],Ni=Ei(Ci,Ji)):Li.push(n),n=Ii):14===t?n=$i(99,dl.bind(null,e)):n=$i(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),ul.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function ul(e){if(el=-1,nl=tl=0,0!=(48&_s))throw Error(a(327));var t=e.callbackNode;if(Tl()&&e.callbackNode!==t)return null;var n=Bt(e,e===As?Ts:0);if(0===n)return null;var r=n,i=_s;_s|=16;var o=bl();for(As===e&&Ts===r||(zs(),vl(e,r));;)try{kl();break}catch(t){yl(e,t)}if(Zi(),xs.current=o,_s=i,null!==Cs?r=0:(As=null,Ts=0,r=Ms),0!=(Rs&Ns))vl(e,0);else if(0!==r){if(2===r&&(_s|=64,e.hydrate&&(e.hydrate=!1,$r(e.containerInfo)),0!==(n=Ft(e))&&(r=wl(e,n))),1===r)throw t=Is,vl(e,0),fl(e,n),cl(e,Fi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:_l(e);break;case 3:if(fl(e,n),(62914560&n)===n&&10<(r=Fs+500-Fi())){if(0!==Bt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ol(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=zr(_l.bind(null,e),r);break}_l(e);break;case 4:if(fl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Ht(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=Fi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*ks(n/1960))-n)){e.timeoutHandle=zr(_l.bind(null,e),n);break}_l(e);break;case 5:_l(e);break;default:throw Error(a(329))}}return cl(e,Fi()),e.callbackNode===t?ul.bind(null,e):null}function fl(e,t){for(t&=~js,t&=~Ns,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function dl(e){if(0!=(48&_s))throw Error(a(327));if(Tl(),e===As&&0!=(e.expiredLanes&Ts)){var t=Ts,n=wl(e,t);0!=(Rs&Ns)&&(n=wl(e,t=Bt(e,t)))}else n=wl(e,t=Bt(e,0));if(0!==e.tag&&2===n&&(_s|=64,e.hydrate&&(e.hydrate=!1,$r(e.containerInfo)),0!==(t=Ft(e))&&(n=wl(e,t))),1===n)throw n=Is,vl(e,0),fl(e,t),cl(e,Fi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,_l(e),cl(e,Fi()),null}function hl(e,t){var n=_s;_s|=1;try{return e(t)}finally{0===(_s=n)&&(zs(),Hi())}}function pl(e,t){var n=_s;_s&=-2,_s|=8;try{return e(t)}finally{0===(_s=n)&&(zs(),Hi())}}function ml(e,t){ai(Os,Ps),Ps|=t,Rs|=t}function gl(){Ps=Os.current,oi(Os)}function vl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Ur(n)),null!==Cs)for(n=Cs.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&hi();break;case 3:Oo(),oi(ci),oi(li),Go();break;case 5:Io(r);break;case 4:Oo();break;case 13:case 19:oi(Ro);break;case 10:Yi(r);break;case 23:case 24:gl()}n=n.return}As=e,Cs=Dl(e.current,null),Ts=Ps=Rs=t,Ms=0,Is=null,js=Ns=Ls=0}function yl(e,t){for(;;){var n=Cs;try{if(Zi(),Vo.current=Ca,Yo){for(var r=qo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Yo=!1}if(Wo=0,Zo=Ko=qo=null,Qo=!1,Ss.current=null,null===n||null===n.return){Ms=1,Is=t,Cs=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Ts,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(0==(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&Ro.current),d=a;do{var h;if(h=13===d.tag){var p=d.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var m=d.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(h){var g=d.updateQueue;if(null===g){var v=new Set;v.add(c),d.updateQueue=v}else g.add(c);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=oo(-1,1);y.tag=2,ao(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new as,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var w=Ll.bind(null,o,c,s);c.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((X(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ms&&(Ms=2),l=is(l,s),d=a;do{switch(d.tag){case 3:o=l,d.flags|=4096,t&=-t,d.lanes|=t,so(d,ss(0,o,t));break e;case 1:o=l;var E=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Gs||!Gs.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,so(d,ls(d,o,t));break e}}d=d.return}while(null!==d)}Sl(n)}catch(e){t=e,Cs===n&&null!==n&&(Cs=n=n.return);continue}break}}function bl(){var e=xs.current;return xs.current=Ca,null===e?Ca:e}function wl(e,t){var n=_s;_s|=16;var r=bl();for(As===e&&Ts===t||vl(e,t);;)try{El();break}catch(t){yl(e,t)}if(Zi(),_s=n,xs.current=r,null!==Cs)throw Error(a(261));return As=null,Ts=0,Ms}function El(){for(;null!==Cs;)xl(Cs)}function kl(){for(;null!==Cs&&!xi();)xl(Cs)}function xl(e){var t=Us(e.alternate,e,Ps);e.memoizedProps=e.pendingProps,null===t?Sl(e):Cs=t,Ss.current=null}function Sl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ns(n,t,Ps)))return void(Cs=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ps)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rs(t)))return n.flags&=2047,void(Cs=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Cs=t);Cs=t=e}while(null!==t);0===Ms&&(Ms=5)}function _l(e){var t=Di();return Ui(99,Al.bind(null,e,t)),null}function Al(e,t){do{Tl()}while(null!==Xs);if(0!=(48&_s))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var c=31-Ht(o),u=1<<c;i[c]=0,s[c]=-1,l[c]=-1,o&=~u}if(null!==Zs&&0==(24&r)&&Zs.has(e)&&Zs.delete(e),e===As&&(Cs=As=null,Ts=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=_s,_s|=32,Ss.current=null,jr=Wt,dr(s=fr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,o=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var f=0,d=-1,h=-1,p=0,m=0,g=s,v=null;t:for(;;){for(var y;g!==l||0!==o&&3!==g.nodeType||(d=f+o),g!==c||0!==u&&3!==g.nodeType||(h=f+u),3===g.nodeType&&(f+=g.nodeValue.length),null!==(y=g.firstChild);)v=g,g=y;for(;;){if(g===s)break t;if(v===l&&++p===o&&(d=f),v===c&&++m===u&&(h=f),null!==(y=g.nextSibling))break;v=(g=v).parentNode}g=y}l=-1===d||-1===h?null:{start:d,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Br={focusedElem:s,selectionRange:l},Wt=!1,rl=null,il=!1,$s=r;do{try{Cl()}catch(e){if(null===$s)throw Error(a(330));Rl($s,e),$s=$s.nextEffect}}while(null!==$s);rl=null,$s=r;do{try{for(s=e;null!==$s;){var b=$s.flags;if(16&b&&ve($s.stateNode,""),128&b){var w=$s.alternate;if(null!==w){var E=w.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&b){case 2:vs($s),$s.flags&=-3;break;case 6:vs($s),$s.flags&=-3,bs($s.alternate,$s);break;case 1024:$s.flags&=-1025;break;case 1028:$s.flags&=-1025,bs($s.alternate,$s);break;case 4:bs($s.alternate,$s);break;case 8:ys(s,l=$s);var k=l.alternate;ms(l),null!==k&&ms(k)}$s=$s.nextEffect}}catch(e){if(null===$s)throw Error(a(330));Rl($s,e),$s=$s.nextEffect}}while(null!==$s);if(E=Br,w=fr(),b=E.focusedElem,s=E.selectionRange,w!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==s&&dr(b)&&(w=s.start,void 0===(E=s.end)&&(E=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(E,b.value.length)):(E=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),l=b.textContent.length,k=Math.min(s.start,l),s=void 0===s.end?k:Math.min(s.end,l),!E.extend&&k>s&&(l=s,s=k,k=l),l=ur(b,k),o=ur(b,s),l&&o&&(1!==E.rangeCount||E.anchorNode!==l.node||E.anchorOffset!==l.offset||E.focusNode!==o.node||E.focusOffset!==o.offset)&&((w=w.createRange()).setStart(l.node,l.offset),E.removeAllRanges(),k>s?(E.addRange(w),E.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),E.addRange(w))))),w=[];for(E=b;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(E=w[b]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Wt=!!jr,Br=jr=null,e.current=n,$s=r;do{try{for(b=e;null!==$s;){var x=$s.flags;if(36&x&&ds(b,$s.alternate,$s),128&x){w=void 0;var S=$s.ref;if(null!==S){var _=$s.stateNode;switch($s.tag){case 5:w=_;break;default:w=_}"function"==typeof S?S(w):S.current=w}}$s=$s.nextEffect}}catch(e){if(null===$s)throw Error(a(330));Rl($s,e),$s=$s.nextEffect}}while(null!==$s);$s=null,Ri(),_s=i}else e.current=n;if(Vs)Vs=!1,Xs=e,Ws=t;else for($s=r;null!==$s;)t=$s.nextEffect,$s.nextEffect=null,8&$s.flags&&((x=$s).sibling=null,x.stateNode=null),$s=t;if(0===(r=e.pendingLanes)&&(Gs=null),1===r?e===Qs?Ys++:(Ys=0,Qs=e):Ys=0,n=n.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(yi,n,void 0,64==(64&n.current.flags))}catch(e){}if(cl(e,Fi()),Hs)throw Hs=!1,e=Js,Js=null,e;return 0!=(8&_s)||Hi(),null}function Cl(){for(;null!==$s;){var e=$s.alternate;il||null===rl||(0!=(8&$s.flags)?Qe($s,rl)&&(il=!0):13===$s.tag&&Es(e,$s)&&Qe($s,rl)&&(il=!0));var t=$s.flags;0!=(256&t)&&fs(e,$s),0==(512&t)||Vs||(Vs=!0,$i(97,(function(){return Tl(),null}))),$s=$s.nextEffect}}function Tl(){if(90!==Ws){var e=97<Ws?97:Ws;return Ws=90,Ui(e,Ml)}return!1}function Pl(e,t){qs.push(t,e),Vs||(Vs=!0,$i(97,(function(){return Tl(),null})))}function Ol(e,t){Ks.push(t,e),Vs||(Vs=!0,$i(97,(function(){return Tl(),null})))}function Ml(){if(null===Xs)return!1;var e=Xs;if(Xs=null,0!=(48&_s))throw Error(a(331));var t=_s;_s|=32;var n=Ks;Ks=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===o)throw Error(a(330));Rl(o,e)}}for(n=qs,qs=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===o)throw Error(a(330));Rl(o,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return _s=t,Hi(),!0}function Il(e,t,n){ao(e,t=ss(0,t=is(n,t),1)),t=ol(),null!==(e=ll(e,1))&&($t(e,1,t),cl(e,t))}function Rl(e,t){if(3===e.tag)Il(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Il(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){var i=ls(n,e=is(t,e),1);if(ao(n,i),i=ol(),null!==(n=ll(n,1)))$t(n,1,i),cl(n,i);else if("function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Ll(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ol(),e.pingedLanes|=e.suspendedLanes&n,As===e&&(Ts&n)===n&&(4===Ms||3===Ms&&(62914560&Ts)===Ts&&500>Fi()-Fs?vl(e,0):js|=n),cl(e,t)}function Nl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Di()?1:2:(0===tl&&(tl=Rs),0===(t=zt(62914560&~tl))&&(t=4194304))),n=ol(),null!==(e=ll(e,t))&&($t(e,t,n),cl(e,n))}function jl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Bl(e,t,n,r){return new jl(e,t,n,r)}function Fl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dl(e,t){var n=e.alternate;return null===n?((n=Bl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zl(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Fl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Ul(n.children,i,o,t);case j:s=8,i|=16;break;case _:s=8,i|=1;break;case A:return(e=Bl(12,n,t,8|i)).elementType=A,e.type=A,e.lanes=o,e;case O:return(e=Bl(13,n,t,i)).type=O,e.elementType=O,e.lanes=o,e;case M:return(e=Bl(19,n,t,i)).elementType=M,e.lanes=o,e;case B:return $l(n,i,o,t);case F:return(e=Bl(24,n,t,i)).elementType=F,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case T:s=9;break e;case P:s=11;break e;case I:s=14;break e;case R:s=16,r=null;break e;case L:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Bl(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Ul(e,t,n,r){return(e=Bl(7,e,r,t)).lanes=n,e}function $l(e,t,n,r){return(e=Bl(23,e,r,t)).elementType=B,e.lanes=n,e}function Hl(e,t,n){return(e=Bl(6,e,null,t)).lanes=n,e}function Jl(e,t,n){return(t=Bl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Vl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Xl(e,t,n,r){var i=t.current,o=ol(),s=al(i);e:if(n){t:{if(qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(di(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(di(c)){n=mi(n,c,l);break e}}n=l}else n=si;return null===t.context?t.context=n:t.pendingContext=n,(t=oo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ao(i,t),sl(i,s,o),s}function Wl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function ql(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kl(e,t){ql(e,t),(e=e.alternate)&&ql(e,t)}function Zl(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Gl(e,t,null!=n&&!0===n.hydrate),t=Bl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ro(t),e[qr]=n.current,Cr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Yl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ql(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Wl(a);s.call(e)}}Xl(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Zl(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Wl(a);l.call(e)}}pl((function(){Xl(t,a,e,i)}))}return Wl(a)}function ec(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yl(t))throw Error(a(200));return Vl(e,t,null,n)}Us=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ci.current)Ia=!0;else{if(0==(n&r)){switch(Ia=!1,t.tag){case 3:$a(t),Ho();break;case 5:Mo(t);break;case 1:di(t.type)&&gi(t);break;case 4:Po(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ai(Xi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Xa(e,t,n):(ai(Ro,1&Ro.current),null!==(t=es(e,t,n))?t.sibling:null);ai(Ro,1&Ro.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Qa(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ai(Ro,Ro.current),r)break;return null;case 23:case 24:return t.lanes=0,Ba(e,t,n)}return es(e,t,n)}Ia=0!=(16384&e.flags)}else Ia=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,li.current),eo(t,n),i=na(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,di(r)){var o=!0;gi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ro(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&fo(t,r,s,e),i.updater=ho,t.stateNode=i,i._reactInternals=t,vo(t,r,e,n),t=Ua(null,t,r,!0,o,n)}else t.tag=0,Ra(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Fl(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===I)return 14}return 2}(i),e=Vi(i,e),o){case 0:t=Da(null,t,i,e,n);break e;case 1:t=za(null,t,i,e,n);break e;case 11:t=La(null,t,i,e,n);break e;case 14:t=Na(null,t,i,Vi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Da(e,t,r,i=t.elementType===r?i:Vi(r,i),n);case 1:return r=t.type,i=t.pendingProps,za(e,t,r,i=t.elementType===r?i:Vi(r,i),n);case 3:if($a(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,io(e,t),lo(t,r,null,n),(r=t.memoizedState.element)===i)Ho(),t=es(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(jo=Hr(t.stateNode.containerInfo.firstChild),No=t,o=Bo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Jo.push(o);for(n=xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ra(e,t,r,n),Ho();t=t.child}return t;case 5:return Mo(t),null===e&&zo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Dr(r,i)?s=null:null!==o&&Dr(r,o)&&(t.flags|=16),Fa(e,t),Ra(e,t,s,n),t.child;case 6:return null===e&&zo(t),null;case 13:return Xa(e,t,n);case 4:return Po(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ko(t,null,r,n):Ra(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,La(e,t,r,i=t.elementType===r?i:Vi(r,i),n);case 7:return Ra(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ra(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(ai(Xi,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=ar(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!ci.current){t=es(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&o)){1===l.tag&&((u=oo(-1,n&-n)).tag=2,ao(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),Qi(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Ra(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,eo(t,n),r=r(i=to(i,o.unstable_observedBits)),t.flags|=1,Ra(e,t,r,n),t.child;case 14:return o=Vi(i=t.type,t.pendingProps),Na(e,t,i,o=Vi(i.type,o),r,n);case 15:return ja(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,di(r)?(e=!0,gi(t)):e=!1,eo(t,n),mo(t,r,i),vo(t,r,i,n),Ua(null,t,r,!0,e,n);case 19:return Qa(e,t,n);case 23:case 24:return Ba(e,t,n)}throw Error(a(156,t.tag))},Zl.prototype.render=function(e){Xl(e,this._internalRoot,null,null)},Zl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Xl(null,e,null,(function(){t[qr]=null}))},et=function(e){13===e.tag&&(sl(e,4,ol()),Kl(e,4))},tt=function(e){13===e.tag&&(sl(e,67108864,ol()),Kl(e,67108864))},nt=function(e){if(13===e.tag){var t=ol(),n=al(e);sl(e,n,t),Kl(e,n)}},rt=function(e,t){return t()},Ae=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ei(r);if(!i)throw Error(a(90));Z(r),ne(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ie=hl,Re=function(e,t,n,r,i){var o=_s;_s|=4;try{return Ui(98,e.bind(null,t,n,r,i))}finally{0===(_s=o)&&(zs(),Hi())}},Le=function(){0==(49&_s)&&(function(){if(null!==Zs){var e=Zs;Zs=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,cl(e,Fi())}))}Hi()}(),Tl())},Ne=function(e,t){var n=_s;_s|=2;try{return e(t)}finally{0===(_s=n)&&(zs(),Hi())}};var tc={Events:[Yr,Qr,ei,Oe,Me,Tl,{current:!1}]},nc={findFiberByHostInstance:Zr,bundleType:0,version:"17.0.1",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ye(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{yi=ic.inject(rc),bi=ic}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=ec,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Ye(t))?null:e.stateNode},t.flushSync=function(e,t){var n=_s;if(0!=(48&n))return e(t);_s|=1;try{if(e)return Ui(99,e.bind(null,t))}finally{_s=n,Hi()}},t.hydrate=function(e,t,n){if(!Yl(t))throw Error(a(200));return Ql(null,e,t,!0,n)},t.render=function(e,t,n){if(!Yl(t))throw Error(a(200));return Ql(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yl(e))throw Error(a(40));return!!e._reactRootContainer&&(pl((function(){Ql(null,null,e,!1,(function(){e._reactRootContainer=null,e[qr]=null}))})),!0)},t.unstable_batchedUpdates=hl,t.unstable_createPortal=function(e,t){return ec(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yl(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Ql(e,t,n,!1,r)},t.version="17.0.1"},function(e,t,n){"use strict";e.exports=n(173)},function(e,t,n){"use strict";
55/** @license React v0.20.2
56 * scheduler.production.min.js
57 *
58 * Copyright (c) Facebook, Inc. and its affiliates.
59 *
60 * This source code is licensed under the MIT license found in the
61 * LICENSE file in the root directory of this source tree.
62 */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,f=null,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,v=null,y=-1,b=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,k=E.port2;E.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();w=e+b;try{v(!0,e)?k.postMessage(null):(g=!1,v=null)}catch(e){throw k.postMessage(null),e}}else g=!1},r=function(e){v=e,g||(g=!0,k.postMessage(null))},i=function(e,n){y=h((function(){e(t.unstable_now())}),n)},o=function(){p(y),y=-1}}function x(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<A(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>A(a,n))void 0!==l&&0>A(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>A(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],T=[],P=1,O=null,M=3,I=!1,R=!1,L=!1;function N(e){for(var t=S(T);null!==t;){if(null===t.callback)_(T);else{if(!(t.startTime<=e))break;_(T),t.sortIndex=t.expirationTime,x(C,t)}t=S(T)}}function j(e){if(L=!1,N(e),!R)if(null!==S(C))R=!0,r(B);else{var t=S(T);null!==t&&i(j,t.startTime-e)}}function B(e,n){R=!1,L&&(L=!1,o()),I=!0;var r=M;try{for(N(n),O=S(C);null!==O&&(!(O.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=O.callback;if("function"==typeof a){O.callback=null,M=O.priorityLevel;var s=a(O.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?O.callback=s:O===S(C)&&_(C),N(n)}else _(C);O=S(C)}if(null!==O)var l=!0;else{var c=S(T);null!==c&&i(j,c.startTime-n),l=!1}return l}finally{O=null,M=r,I=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||I||(R=!0,r(B))},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var n=M;M=t;try{return e()}finally{M=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=M;M=e;try{return t()}finally{M=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,x(T,e),null===S(C)&&e===S(T)&&(L?o():L=!0,i(j,a-s))):(e.sortIndex=l,x(C,e),R||I||(
62R=!0,r(B))),e},t.unstable_wrapCallback=function(e){var t=M;return function(){var n=M;M=t;try{return e.apply(this,arguments)}finally{M=n}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.artifactNameFromArtifact=t.ArtifactRarityNames=t.ArtifactRarity=t.ArtifactTypeNames=t.ArtifactType=void 0,t.ArtifactType={Unknown:0,Monolith:1,Colossus:2,Spaceship:3,Pyramid:4,Wormhole:5,PlanetaryShield:6,PhotoidCannon:7,BloomFilter:8,BlackDomain:9},t.ArtifactTypeNames={[t.ArtifactType.Unknown]:"Unknown",[t.ArtifactType.Monolith]:"Monolith",[t.ArtifactType.Colossus]:"Colossus",[t.ArtifactType.Spaceship]:"Spaceship",[t.ArtifactType.Pyramid]:"Pyramid",[t.ArtifactType.Wormhole]:"Wormhole",[t.ArtifactType.PlanetaryShield]:"Planetary Shield",[t.ArtifactType.PhotoidCannon]:"Photoid Cannon",[t.ArtifactType.BloomFilter]:"Bloom Filter",[t.ArtifactType.BlackDomain]:"Black Domain"},t.ArtifactRarity={Unknown:0,Common:1,Rare:2,Epic:3,Legendary:4,Mythic:5},t.ArtifactRarityNames={[t.ArtifactRarity.Unknown]:"Unknown",[t.ArtifactRarity.Common]:"Common",[t.ArtifactRarity.Rare]:"Rare",[t.ArtifactRarity.Epic]:"Epic",[t.ArtifactRarity.Legendary]:"Legendary",[t.ArtifactRarity.Mythic]:"Mythic"};const r=["c'","za","ry'","ab'","bak'","dt'","ek'","fah'","q'","qo","van","bow","gui","si"],i=["thun","tchalla","thovo","saron","zoth","sharrj","thulu","ra","wer","doin","renstad","nevere","goth","anton","layton"];t.artifactNameFromArtifact=function(e){const t=parseInt(e.id,16),n=t%7919%r.length,o=t%7883%i.length,a=r[n]+i[o];return a.charAt(0).toUpperCase()+a.slice(1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BiomeNames=t.Biome=t.SpaceTypeNames=t.SpaceType=void 0,t.SpaceType={NEBULA:0,SPACE:1,DEEP_SPACE:2,DEAD_SPACE:3},t.SpaceTypeNames={[t.SpaceType.NEBULA]:"Nebula",[t.SpaceType.SPACE]:"Space",[t.SpaceType.DEEP_SPACE]:"Deep Space",[t.SpaceType.DEAD_SPACE]:"Dead Space"},t.Biome={UNKNOWN:0,OCEAN:1,FOREST:2,GRASSLAND:3,TUNDRA:4,SWAMP:5,DESERT:6,ICE:7,WASTELAND:8,LAVA:9,CORRUPTED:10},t.BiomeNames={[t.Biome.UNKNOWN]:"Unknown",[t.Biome.OCEAN]:"Ocean",[t.Biome.FOREST]:"Forest",[t.Biome.GRASSLAND]:"Grassland",[t.Biome.TUNDRA]:"Tundra",[t.Biome.SWAMP]:"Swamp",[t.Biome.DESERT]:"Desert",[t.Biome.ICE]:"Ice",[t.Biome.WASTELAND]:"Wasteland",[t.Biome.LAVA]:"Lava",[t.Biome.CORRUPTED]:"Corrupted"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DFStatefulAnimation=t.DFAnimation=t.PlanetTypeNames=t.PlanetType=t.PlanetLevelNames=t.PlanetLevel=void 0,t.PlanetLevel={ZERO:0,ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,SIX:6,SEVEN:7,EIGHT:8,NINE:9},t.PlanetLevelNames={[t.PlanetLevel.ZERO]:"Level 0",[t.PlanetLevel.ONE]:"Level 1",[t.PlanetLevel.TWO]:"Level 2",[t.PlanetLevel.THREE]:"Level 3",[t.PlanetLevel.FOUR]:"Level 4",[t.PlanetLevel.FIVE]:"Level 5",[t.PlanetLevel.SIX]:"Level 6",[t.PlanetLevel.SEVEN]:"Level 7",[t.PlanetLevel.EIGHT]:"Level 8",[t.PlanetLevel.NINE]:"Level 9"},t.PlanetType={PLANET:0,SILVER_MINE:1,RUINS:2,TRADING_POST:3,SILVER_BANK:4},t.PlanetTypeNames={[t.PlanetType.PLANET]:"Planet",[t.PlanetType.SILVER_MINE]:"Asteroid Field",[t.PlanetType.RUINS]:"Foundry",[t.PlanetType.TRADING_POST]:"Spacetime Rip",[t.PlanetType.SILVER_BANK]:"Quasar"};class r{constructor(e){this._update=e,this._value=0}update(){this._value=this._update()}value(){return this._value}}t.DFAnimation=r;t.DFStatefulAnimation=class extends r{constructor(e,t){super(t),this._state=e}state(){return this._state}}},function(e,t,n){"use strict";
vendor: 10,876 bytes, line 62
62Object.defineProperty(t,"__esModule",{value:!0}),t.PlanetMessageType=void 0,t.PlanetMessageType={EmojiFlag:"EmojiFlag"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoGasSetting=void 0,t.AutoGasSetting={Slow:"Slow",Average:"Average",Fast:"Fast"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UpgradeBranchName=void 0,t.UpgradeBranchName={Defense:0,Range:1,Speed:2}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){var r=n(194),i=n(195),o={};for(var a in r)r.hasOwnProperty(a)&&(o[r[a]]=a);var s=e.exports={to:{},get:{}};function l(e,t,n){return Math.min(Math.max(t,e),n)}function c(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}s.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=s.get.hsl(e),n="hsl";break;case"hwb":t=s.get.hwb(e),n="hwb";break;default:t=s.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},s.get.rgb=function(e){if(!e)return null;var t,n,i,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],n=0;n<3;n++){var a=2*n;o[n]=parseInt(t.slice(a,a+2),16)}i&&(o[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],n=0;n<3;n++)o[n]=parseInt(t[n]+t[n],16);i&&(o[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(t[n+1],0);t[4]&&(o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?"transparent"===t[1]?[0,0,0,0]:(o=r[t[1]])?(o[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(o[3]=parseFloat(t[4]))}for(n=0;n<3;n++)o[n]=l(o[n],0,255);return o[3]=l(o[3],0,1),o},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=i(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},s.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},s.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},s.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},s.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return o[e.slice(0,3)]}},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){"use strict";var r=n(196),i=Array.prototype.concat,o=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n<a;n++){var s=e[n];r(s)?t=i.call(t,o.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},function(e,t){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,n){var r=n(109),i=n(199),o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
62ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){var r=n(109);function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),o=Object.keys(r[i]),a=o.length,s=0;s<a;s++){var l=o[s],c=t[l];-1===c.distance&&(c.distance=t[i].distance+1,c.parent=i,n.unshift(l))}return t}function o(e,t){return function(n){return t(e(n))}}function a(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),i=o(r[t[a].parent][a],i),a=t[a].parent;return i.conversion=n,i}e.exports=function(e){for(var t=i(e),n={},r=Object.keys(t),o=r.length,s=0;s<o;s++){var l=r[s];null!==t[l].parent&&(n[l]=a(l,t))}return n}},function(e,t,n){"use strict";
63/** @license React v16.13.1
64 * react-is.production.min.js
65 *
66 * Copyright (c) Facebook, Inc. and its affiliates.
67 *
68 * This source code is licensed under the MIT license found in the
69 * LICENSE file in the root directory of this source tree.
70 */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case d:case a:case l:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case v:case g:case c:return e;default:return t}}case o:return t}}}function x(e){return k(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=h,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||k(e)===f},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return k(e)===h},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===v},t.isMemo=function(e){return k(e)===g},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===l},t.isStrictMode=function(e){return k(e)===s},t.isSuspense=function(e){return k(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===s||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===h||e.$$typeof===b||e.$$typeof===w||e.$$typeof===E||e.$$typeof===y)},t.typeOf=k},function(e,t,n){const r=n(202).words,i=n(203).array;e.exports=class{constructor(e={}){Object.assign(this,{list:e.emptyList&&[]||Array.prototype.concat.apply(r,[i,e.list||[]]),exclude:e.exclude||[],splitRegex:e.splitRegex||/\b/,placeHolder:e.placeHolder||"*",regex:e.regex||/[^a-zA-Z0-9|\$|\@]|\^/g,replaceRegex:e.replaceRegex||/\w/g})}isProfane(e){return this.list.filter(t=>{const n=new RegExp(`\\b${t.replace(/(\W)/g,"\\$1")}\\b`,"gi");return!this.exclude.includes(t.toLowerCase())&&n.test(e)}).length>0||!1}replaceWord(e){return e.replace(this.regex,"").replace(this.replaceRegex,this.placeHolder)}clean(e){return e.split(this.splitRegex).map(e=>this.isProfane(e)?this.replaceWord(e):e).join(this.splitRegex.exec(e)[0])}addWords(){let e=Array.from(arguments);this.list.push(...e),e.map(e=>
70e.toLowerCase()).forEach(e=>{this.exclude.includes(e)&&this.exclude.splice(this.exclude.indexOf(e),1)})}removeWords(){this.exclude.push(...Array.from(arguments).map(e=>e.toLowerCase()))}}},function(e){e.exports=JSON.parse('{"words":["ahole","anus","ash0le","ash0les","asholes","ass","Ass Monkey","Assface","assh0le","assh0lez","asshole","assholes","assholz","asswipe","azzhole","bassterds","bastard","bastards","bastardz","basterds","basterdz","Biatch","bitch","bitches","Blow Job","boffing","butthole","buttwipe","c0ck","c0cks","c0k","Carpet Muncher","cawk","cawks","Clit","cnts","cntz","cock","cockhead","cock-head","cocks","CockSucker","cock-sucker","crap","cum","cunt","cunts","cuntz","dick","dild0","dild0s","dildo","dildos","dilld0","dilld0s","dominatricks","dominatrics","dominatrix","dyke","enema","f u c k","f u c k e r","fag","fag1t","faget","fagg1t","faggit","faggot","fagg0t","fagit","fags","fagz","faig","faigs","fart","flipping the bird","fuck","fucker","fuckin","fucking","fucks","Fudge Packer","fuk","Fukah","Fuken","fuker","Fukin","Fukk","Fukkah","Fukken","Fukker","Fukkin","g00k","God-damned","h00r","h0ar","h0re","hells","hoar","hoor","hoore","jackoff","jap","japs","jerk-off","jisim","jiss","jizm","jizz","knob","knobs","knobz","kunt","kunts","kuntz","Lezzian","Lipshits","Lipshitz","masochist","masokist","massterbait","masstrbait","masstrbate","masterbaiter","masterbate","masterbates","Motha Fucker","Motha Fuker","Motha Fukkah","Motha Fukker","Mother Fucker","Mother Fukah","Mother Fuker","Mother Fukkah","Mother Fukker","mother-fucker","Mutha Fucker","Mutha Fukah","Mutha Fuker","Mutha Fukkah","Mutha Fukker","n1gr","nastt","nigger;","nigur;","niiger;","niigr;","orafis","orgasim;","orgasm","orgasum","oriface","orifice","orifiss","packi","packie","packy","paki","pakie","paky","pecker","peeenus","peeenusss","peenus","peinus","pen1s","penas","penis","penis-breath","penus","penuus","Phuc","Phuck","Phuk","Phuker","Phukker","polac","polack","polak","Poonani","pr1c","pr1ck","pr1k","pusse","pussee","pussy","puuke","puuker","qweir","recktum","rectum","retard","sadist","scank","schlong","screwing","semen","sex","sexy","Sh!t","sh1t","sh1ter","sh1ts","sh1tter","sh1tz","shit","shits","shitter","Shitty","Shity","shitz","Shyt","Shyte","Shytty","Shyty","skanck","skank","skankee","skankey","skanks","Skanky","slag","slut","sluts","Slutty","slutz","son-of-a-bitch","tit","turd","va1jina","vag1na","vagiina","vagina","vaj1na","vajina","vullva","vulva","w0p","wh00r","wh0re","whore","xrated","xxx","b!+ch","bitch","blowjob","clit","arschloch","fuck","shit","ass","asshole","b!tch","b17ch","b1tch","bastard","bi+ch","boiolas","buceta","c0ck","cawk","chink","cipa","clits","cock","cum","cunt","dildo","dirsa","ejakulate","fatass","fcuk","fuk","fux0r","hoer","hore","jism","kawk","l3itch","l3i+ch","masturbate","masterbat*","masterbat3","motherfucker","s.o.b.","mofo","nazi","nigga","nigger","nutsack","phuck","pimpis","pusse","pussy","scrotum","sh!t","shemale","shi+","sh!+","slut","smut","teets","tits","boobs","b00bs","teez","testical","testicle","titt","w00se","jackoff","wank","whoar","whore","*damn","*dyke","*fuck*","*shit*","@$$","amcik","andskota","arse*","assrammer","ayir","bi7ch","bitch*","bollock*","breasts","butt-pirate","cabron","cazzo","chraa","chuj","Cock*","cunt*","d4mn","daygo","dego","dick*","dike*","dupa","dziwka","ejackulate","Ekrem*","Ekto","enculer","faen","fag*","fanculo","fanny","feces","feg","Felcher","ficken","fitt*","Flikker","foreskin","Fotze","Fu(*","fuk*","futkretzn","gook","guiena","h0r","h4x0r","hell","helvete","hoer*","honkey","Huevon","hui","injun","jizz","kanker*","kike","klootzak","kraut","knulle","kuk","kuksuger","Kurac","kurwa","kusi*","kyrpa*","lesbo","mamhoon","masturbat*","merd*","mibun","monkleigh","mouliewop","muie","mulkku","muschi","nazis","nepesaurio","nigger*","orospu","paska*","perse","picka","pierdol*","pillu*","pimmel","piss*","pizda","poontsee","poop","porn","p0rn","pr0n","preteen","pula","pule","puta","puto","qahbeh","queef*","rautenberg","schaffer","scheiss*","schlampe","schmuck","screw","sh!t*","sharmuta","sharmute","shipal","shiz","skribz","skurwysyn","sphencter","spic","
70spierdalaj","splooge","suka","b00b*","testicle*","titt*","twat","vittu","wank*","wetback*","wichser","wop*","yed","zabourah"]}')},function(e,t,n){e.exports={object:n(204),array:n(205),regex:n(206)}},function(e,t){e.exports={"4r5e":1,"5h1t":1,"5hit":1,a55:1,anal:1,anus:1,ar5e:1,arrse:1,arse:1,ass:1,"ass-fucker":1,asses:1,assfucker:1,assfukka:1,asshole:1,assholes:1,asswhole:1,a_s_s:1,"b!tch":1,b00bs:1,b17ch:1,b1tch:1,ballbag:1,balls:1,ballsack:1,bastard:1,beastial:1,beastiality:1,bellend:1,bestial:1,bestiality:1,"bi+ch":1,biatch:1,bitch:1,bitcher:1,bitchers:1,bitches:1,bitchin:1,bitching:1,bloody:1,"blow job":1,blowjob:1,blowjobs:1,boiolas:1,bollock:1,bollok:1,boner:1,boob:1,boobs:1,booobs:1,boooobs:1,booooobs:1,booooooobs:1,breasts:1,buceta:1,bugger:1,bum:1,"bunny fucker":1,butt:1,butthole:1,buttmuch:1,buttplug:1,c0ck:1,c0cksucker:1,"carpet muncher":1,cawk:1,chink:1,cipa:1,cl1t:1,clit:1,clitoris:1,clits:1,cnut:1,cock:1,"cock-sucker":1,cockface:1,cockhead:1,cockmunch:1,cockmuncher:1,cocks:1,cocksuck:1,cocksucked:1,cocksucker:1,cocksucking:1,cocksucks:1,cocksuka:1,cocksukka:1,cok:1,cokmuncher:1,coksucka:1,coon:1,cox:1,crap:1,cum:1,cummer:1,cumming:1,cums:1,cumshot:1,cunilingus:1,cunillingus:1,cunnilingus:1,cunt:1,cuntlick:1,cuntlicker:1,cuntlicking:1,cunts:1,cyalis:1,cyberfuc:1,cyberfuck:1,cyberfucked:1,cyberfucker:1,cyberfuckers:1,cyberfucking:1,d1ck:1,damn:1,dick:1,dickhead:1,dildo:1,dildos:1,dink:1,dinks:1,dirsa:1,dlck:1,"dog-fucker":1,doggin:1,dogging:1,donkeyribber:1,doosh:1,duche:1,dyke:1,ejaculate:1,ejaculated:1,ejaculates:1,ejaculating:1,ejaculatings:1,ejaculation:1,ejakulate:1,"f u c k":1,"f u c k e r":1,f4nny:1,fag:1,fagging:1,faggitt:1,faggot:1,faggs:1,fagot:1,fagots:1,fags:1,fanny:1,fannyflaps:1,fannyfucker:1,fanyy:1,fatass:1,fcuk:1,fcuker:1,fcuking:1,feck:1,fecker:1,felching:1,fellate:1,fellatio:1,fingerfuck:1,fingerfucked:1,fingerfucker:1,fingerfuckers:1,fingerfucking:1,fingerfucks:1,fistfuck:1,fistfucked:1,fistfucker:1,fistfuckers:1,fistfucking:1,fistfuckings:1,fistfucks:1,flange:1,fook:1,fooker:1,fuck:1,fucka:1,fucked:1,fucker:1,fuckers:1,fuckhead:1,fuckheads:1,fuckin:1,fucking:1,fuckings:1,fuckingshitmotherfucker:1,fuckme:1,fucks:1,fuckwhit:1,fuckwit:1,"fudge packer":1,fudgepacker:1,fuk:1,fuker:1,fukker:1,fukkin:1,fuks:1,fukwhit:1,fukwit:1,fux:1,fux0r:1,f_u_c_k:1,gangbang:1,gangbanged:1,gangbangs:1,gaylord:1,gaysex:1,goatse:1,God:1,"god-dam":1,"god-damned":1,goddamn:1,goddamned:1,hardcoresex:1,hell:1,heshe:1,hoar:1,hoare:1,hoer:1,homo:1,hore:1,horniest:1,horny:1,hotsex:1,"jack-off":1,jackoff:1,jap:1,"jerk-off":1,jism:1,jiz:1,jizm:1,jizz:1,kawk:1,knob:1,knobead:1,knobed:1,knobend:1,knobhead:1,knobjocky:1,knobjokey:1,kock:1,kondum:1,kondums:1,kum:1,kummer:1,kumming:1,kums:1,kunilingus:1,"l3i+ch":1,l3itch:1,labia:1,lust:1,lusting:1,m0f0:1,m0fo:1,m45terbate:1,ma5terb8:1,ma5terbate:1,masochist:1,"master-bate":1,masterb8:1,"masterbat*":1,masterbat3:1,masterbate:1,masterbation:1,masterbations:1,masturbate:1,"mo-fo":1,mof0:1,mofo:1,mothafuck:1,mothafucka:1,mothafuckas:1,mothafuckaz:1,mothafucked:1,mothafucker:1,mothafuckers:1,mothafuckin:1,mothafucking:1,mothafuckings:1,mothafucks:1,"mother fucker":1,motherfuck:1,motherfucked:1,motherfucker:1,motherfuckers:1,motherfuckin:1,motherfucking:1,motherfuckings:1,motherfuckka:1,motherfucks:1,muff:1,mutha:1,muthafecker:1,muthafuckker:1,muther:1,mutherfucker:1,n1gga:1,n1gger:1,nazi:1,nigg3r:1,nigg4h:1,nigga:1,niggah:1,niggas:1,niggaz:1,nigger:1,niggers:1,nob:1,"nob jokey":1,nobhead:1,nobjocky:1,nobjokey:1,numbnuts:1,nutsack:1,orgasim:1,orgasims:1,orgasm:1,orgasms:1,p0rn:1,pawn:1,pecker:1,penis:1,penisfucker:1,phonesex:1,phuck:1,phuk:1,phuked:1,phuking:1,phukked:1,phukking:1,phuks:1,phuq:1,pigfucker:1,pimpis:1,piss:1,pissed:1,pisser:1,pissers:1,pisses:1,pissflaps:1,pissin:1,pissing:1,pissoff:1,poop:1,porn:1,porno:1,pornography:1,pornos:1,prick:1,pricks:1,pron:1,pube:1,pusse:1,pussi:1,pussies:1,pussy:1,pussys:1,rectum:1,retard:1,rimjaw:1,rimming:1,"s hit":1,"s.o.b.":1,sadist:1,schlong:1,screwing:1,scroat:1,scrote:1,scrotum:1,semen:1,sex:1,"sh!+":1,"sh!t":1,sh1t:1,shag:1,shagger:1,shaggin:1,shagging:1,shemale:1,"shi+":1,shit:1,shitdick:1,shite:1,shited:1,shitey:1,shitfuck:1,shitfull:1,shithead:1,shiting:1,shitings:1,shits:1,shitted:1,shitter:1,shitters:1,shitting:1,shittings:1,shitty:1,skank:1,slut:1,sluts:1,smegma:1,smut:1,snatch:1,"son-of-a-bitch":1,spac:1,spunk:1,s_h_i_t:1,t1tt1e5:1,t1tties:1,teets:1,teez:1,testical:1,testicle:1,tit:1,titfuck:1,tits:1,titt:1,tittie5:1,tittiefucker:1,titties:1,tittyfuck:1,titt
70ywank:1,titwank:1,tosser:1,turd:1,tw4t:1,twat:1,twathead:1,twatty:1,twunt:1,twunter:1,v14gra:1,v1gra:1,vagina:1,viagra:1,vulva:1,w00se:1,wang:1,wank:1,wanker:1,wanky:1,whoar:1,whore:1,willies:1,willy:1,xrated:1,xxx:1}},function(e,t){e.exports=["4r5e","5h1t","5hit","a55","anal","anus","ar5e","arrse","arse","ass","ass-fucker","asses","assfucker","assfukka","asshole","assholes","asswhole","a_s_s","b!tch","b00bs","b17ch","b1tch","ballbag","balls","ballsack","bastard","beastial","beastiality","bellend","bestial","bestiality","bi+ch","biatch","bitch","bitcher","bitchers","bitches","bitchin","bitching","bloody","blow job","blowjob","blowjobs","boiolas","bollock","bollok","boner","boob","boobs","booobs","boooobs","booooobs","booooooobs","breasts","buceta","bugger","bum","bunny fucker","butt","butthole","buttmuch","buttplug","c0ck","c0cksucker","carpet muncher","cawk","chink","cipa","cl1t","clit","clitoris","clits","cnut","cock","cock-sucker","cockface","cockhead","cockmunch","cockmuncher","cocks","cocksuck","cocksucked","cocksucker","cocksucking","cocksucks","cocksuka","cocksukka","cok","cokmuncher","coksucka","coon","cox","crap","cum","cummer","cumming","cums","cumshot","cunilingus","cunillingus","cunnilingus","cunt","cuntlick","cuntlicker","cuntlicking","cunts","cyalis","cyberfuc","cyberfuck","cyberfucked","cyberfucker","cyberfuckers","cyberfucking","d1ck","damn","dick","dickhead","dildo","dildos","dink","dinks","dirsa","dlck","dog-fucker","doggin","dogging","donkeyribber","doosh","duche","dyke","ejaculate","ejaculated","ejaculates","ejaculating","ejaculatings","ejaculation","ejakulate","f u c k","f u c k e r","f4nny","fag","fagging","faggitt","faggot","faggs","fagot","fagots","fags","fanny","fannyflaps","fannyfucker","fanyy","fatass","fcuk","fcuker","fcuking","feck","fecker","felching","fellate","fellatio","fingerfuck","fingerfucked","fingerfucker","fingerfuckers","fingerfucking","fingerfucks","fistfuck","fistfucked","fistfucker","fistfuckers","fistfucking","fistfuckings","fistfucks","flange","fook","fooker","fuck","fucka","fucked","fucker","fuckers","fuckhead","fuckheads","fuckin","fucking","fuckings","fuckingshitmotherfucker","fuckme","fucks","fuckwhit","fuckwit","fudge packer","fudgepacker","fuk","fuker","fukker","fukkin","fuks","fukwhit","fukwit","fux","fux0r","f_u_c_k","gangbang","gangbanged","gangbangs","gaylord","gaysex","goatse","God","god-dam","god-damned","goddamn","goddamned","hardcoresex","hell","heshe","hoar","hoare","hoer","homo","hore","horniest","horny","hotsex","jack-off","jackoff","jap","jerk-off","jism","jiz","jizm","jizz","kawk","knob","knobead","knobed","knobend","knobhead","knobjocky","knobjokey","kock","kondum","kondums","kum","kummer","kumming","kums","kunilingus","l3i+ch","l3itch","labia","lust","lusting","m0f0","m0fo","m45terbate","ma5terb8","ma5terbate","masochist","master-bate","masterb8","masterbat*","masterbat3","masterbate","masterbation","masterbations","masturbate","mo-fo","mof0","mofo","mothafuck","mothafucka","mothafuckas","mothafuckaz","mothafucked","mothafucker","mothafuckers","mothafuckin","mothafucking","mothafuckings","mothafucks","mother fucker","motherfuck","motherfucked","motherfucker","motherfuckers","motherfuckin","motherfucking","motherfuckings","motherfuckka","motherfucks","muff","mutha","muthafecker","muthafuckker","muther","mutherfucker","n1gga","n1gger","nazi","nigg3r","nigg4h","nigga","niggah","niggas","niggaz","nigger","niggers","nob","nob jokey","nobhead","nobjocky","nobjokey","numbnuts","nutsack","orgasim","orgasims","orgasm","orgasms","p0rn","pawn","pecker","penis","penisfucker","phonesex","phuck","phuk","phuked","phuking","phukked","phukking","phuks","phuq","pigfucker","pimpis","piss","pissed","pisser","pissers","pisses","pissflaps","pissin","pissing","pissoff","poop","porn","porno","pornography","pornos","prick","pricks","pron","pube","pusse","pussi","pussies","pussy","pussys","rectum","retard","rimjaw","rimming","s hit","s.o.b.","sadist","schlong","screwing","scroat","scrote","scrotum","semen","sex","sh!+","sh!t","sh1t","shag","shagger","shaggin","shagging","shemale","shi+","shit","shitdick","shite","shited","shitey","shitfuck","shitfull","shithead","shiting","shitings","shits","shitted","shitter","shitters","shitting","shittings","shitty","skank","slut","sluts","smegma","smut","snatch","son-of-a-bitch","spac","spunk","s_h_i_t","t1tt1e5","t1tties","teets","teez","testical","testicle","tit","titfuck","tits","titt","tittie5","tittiefucker","titties","tittyfuck","tittywank","titwank","tosser","turd","tw4t","t
70wat","twathead","twatty","twunt","twunter","v14gra","v1gra","vagina","viagra","vulva","w00se","wang","wank","wanker","wanky","whoar","whore","willies","willy","xrated","xxx"]},function(e,t){e.exports=/\b(4r5e|5h1t|5hit|a55|anal|anus|ar5e|arrse|arse|ass|ass-fucker|asses|assfucker|assfukka|asshole|assholes|asswhole|a_s_s|b!tch|b00bs|b17ch|b1tch|ballbag|balls|ballsack|bastard|beastial|beastiality|bellend|bestial|bestiality|bi\+ch|biatch|bitch|bitcher|bitchers|bitches|bitchin|bitching|bloody|blow job|blowjob|blowjobs|boiolas|bollock|bollok|boner|boob|boobs|booobs|boooobs|booooobs|booooooobs|breasts|buceta|bugger|bum|bunny fucker|butt|butthole|buttmuch|buttplug|c0ck|c0cksucker|carpet muncher|cawk|chink|cipa|cl1t|clit|clitoris|clits|cnut|cock|cock-sucker|cockface|cockhead|cockmunch|cockmuncher|cocks|cocksuck|cocksucked|cocksucker|cocksucking|cocksucks|cocksuka|cocksukka|cok|cokmuncher|coksucka|coon|cox|crap|cum|cummer|cumming|cums|cumshot|cunilingus|cunillingus|cunnilingus|cunt|cuntlick|cuntlicker|cuntlicking|cunts|cyalis|cyberfuc|cyberfuck|cyberfucked|cyberfucker|cyberfuckers|cyberfucking|d1ck|damn|dick|dickhead|dildo|dildos|dink|dinks|dirsa|dlck|dog-fucker|doggin|dogging|donkeyribber|doosh|duche|dyke|ejaculate|ejaculated|ejaculates|ejaculating|ejaculatings|ejaculation|ejakulate|f u c k|f u c k e r|f4nny|fag|fagging|faggitt|faggot|faggs|fagot|fagots|fags|fanny|fannyflaps|fannyfucker|fanyy|fatass|fcuk|fcuker|fcuking|feck|fecker|felching|fellate|fellatio|fingerfuck|fingerfucked|fingerfucker|fingerfuckers|fingerfucking|fingerfucks|fistfuck|fistfucked|fistfucker|fistfuckers|fistfucking|fistfuckings|fistfucks|flange|fook|fooker|fuck|fucka|fucked|fucker|fuckers|fuckhead|fuckheads|fuckin|fucking|fuckings|fuckingshitmotherfucker|fuckme|fucks|fuckwhit|fuckwit|fudge packer|fudgepacker|fuk|fuker|fukker|fukkin|fuks|fukwhit|fukwit|fux|fux0r|f_u_c_k|gangbang|gangbanged|gangbangs|gaylord|gaysex|goatse|God|god-dam|god-damned|goddamn|goddamned|hardcoresex|hell|heshe|hoar|hoare|hoer|homo|hore|horniest|horny|hotsex|jack-off|jackoff|jap|jerk-off|jism|jiz|jizm|jizz|kawk|knob|knobead|knobed|knobend|knobhead|knobjocky|knobjokey|kock|kondum|kondums|kum|kummer|kumming|kums|kunilingus|l3i\+ch|l3itch|labia|lust|lusting|m0f0|m0fo|m45terbate|ma5terb8|ma5terbate|masochist|master-bate|masterb8|masterbat*|masterbat3|masterbate|masterbation|masterbations|masturbate|mo-fo|mof0|mofo|mothafuck|mothafucka|mothafuckas|mothafuckaz|mothafucked|mothafucker|mothafuckers|mothafuckin|mothafucking|mothafuckings|mothafucks|mother fucker|motherfuck|motherfucked|motherfucker|motherfuckers|motherfuckin|motherfucking|motherfuckings|motherfuckka|motherfucks|muff|mutha|muthafecker|muthafuckker|muther|mutherfucker|n1gga|n1gger|nazi|nigg3r|nigg4h|nigga|niggah|niggas|niggaz|nigger|niggers|nob|nob jokey|nobhead|nobjocky|nobjokey|numbnuts|nutsack|orgasim|orgasims|orgasm|orgasms|p0rn|pawn|pecker|penis|penisfucker|phonesex|phuck|phuk|phuked|phuking|phukked|phukking|phuks|phuq|pigfucker|pimpis|piss|pissed|pisser|pissers|pisses|pissflaps|pissin|pissing|pissoff|poop|porn|porno|pornography|pornos|prick|pricks|pron|pube|pusse|pussi|pussies|pussy|pussys|rectum|retard|rimjaw|rimming|s hit|s.o.b.|sadist|schlong|screwing|scroat|scrote|scrotum|semen|sex|sh!\+|sh!t|sh1t|shag|shagger|shaggin|shagging|shemale|shi\+|shit|shitdick|shite|shited|shitey|shitfuck|shitfull|shithead|shiting|shitings|shits|shitted|shitter|shitters|shitting|shittings|shitty|skank|slut|sluts|smegma|smut|snatch|son-of-a-bitch|spac|spunk|s_h_i_t|t1tt1e5|t1tties|teets|teez|testical|testicle|tit|titfuck|tits|titt|tittie5|tittiefucker|titties|tittyfuck|tittywank|titwank|tosser|turd|tw4t|twat|twathead|twatty|twunt|twunter|v14gra|v1gra|vagina|viagra|vulva|w00se|wang|wank|wanker|wanky|whoar|whore|willies|willy|xrated|xxx)\b/gi},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fakeHash=t.seededRandom=void 0;const i=r(n(8));function o(e){const t=1e4*Math.sin(e);return t-Math.floor(t)}t.seededRandom=o;let a=1;const s=[];for(let e=0;e<65536;e+=1)s.push({idx:e,rand:o(a++)});s.sort((e,t)=>
70e.rand-t.rand);const l=s.map(e=>e.idx),c=Array(65536).fill(0);for(let e=0;e<65536;e+=1)c[l[e]]=e;const u=(e,t)=>e-Math.floor(e/t)*t,f=(e,t)=>{const n=u(256*e+t,65536);return[Math.floor(l[n]/256),l[n]%256]};t.fakeHash=(e,t)=>{const n=Math.floor(e/256),r=e-256*n,a=Math.floor(t/256),s=t-256*a,[l,c]=f(n,a),[d,h]=f(...((e,t)=>(n,r)=>{const i=u(256*(n+e)+(r+t),65536);return[Math.floor(i/256),i%256]})(l,c)(...f(r,s)));let p=0===d&&h<4?"00000000":"1eadbeef";const m=8*(1e7*e+t);for(let e=0;e<7;e+=1){let t=Math.floor(o(m+e)*2**32).toString(16);for(;t.length<8;)t="0"+t;p+=t}return(0,i.default)(p,16)}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.perlin=t.MAX_PERLIN_VALUE=t.getRandomGradientAt=t.rand=void 0;const i=r(n(8)),o=n(110),a=n(111);let s;t.rand=e=>(...t)=>(0,a.perlinRandHash)(e)(...t).remainder(16).toJSNumber();try{s=[[1e3,0],[923,382],[707,707],[382,923],[0,1e3],[-383,923],[-708,707],[-924,382],[-1e3,0],[-924,-383],[-708,-708],[-383,-924],[-1,-1e3],[382,-924],[707,-708],[923,-383]].map(([e,t])=>({x:new o.Fraction(e,1e3),y:new o.Fraction(t,1e3)}))}catch(e){console.error("Browser does not support BigInt.",e)}t.getRandomGradientAt=(e,t,n)=>s[n(e.x.valueOf(),e.y.valueOf(),t.valueOf())];const l=(e,t)=>e.x.mul(t.x).add(e.y.mul(t.y)),c=(e,t)=>({x:t.x.mul(e),y:t.y.mul(e)}),u=(e,t)=>new o.Fraction(1).sub(t.x.sub(e.x).abs()).mul(new o.Fraction(1).sub(t.y.sub(e.y).abs()));let f=(0,i.default)(1);const d=(e,t)=>{const n=e.mod(t);return"-1"===n.s.toString()?n.add(t):n},h=(e,n,r)=>{const i={x:e.x.sub(d(e.x,n)),y:e.y.sub(d(e.y,n))},a={x:i.x.add(n),y:i.y},s={x:i.x,y:i.y.add(n)},f={x:i.x.add(n),y:i.y.add(n)};return((e,t,n)=>{let r=new o.Fraction(0);for(const o of e){const e=(i=n,a=o.coords,{x:i.x.sub(a.x),y:i.y.sub(a.y)});r=r.add(u(c(t.inverse(),o.coords),c(t.inverse(),n)).mul(l(c(t.inverse(),e),o.gradient)))}var i,a;return r})([{coords:i,gradient:(0,t.getRandomGradientAt)(i,n,r)},{coords:a,gradient:(0,t.getRandomGradientAt)(a,n,r)},{coords:s,gradient:(0,t.getRandomGradientAt)(s,n,r)},{coords:f,gradient:(0,t.getRandomGradientAt)(f,n,r)}],n,e)};t.MAX_PERLIN_VALUE=32,t.perlin=function(e,n){let{x:r,y:a}=e;n.mirrorY&&(r=Math.abs(r)),n.mirrorX&&(a=Math.abs(a));const s={x:new o.Fraction(r),y:new o.Fraction(a)};let l=new o.Fraction(0);const c=[];for(let e=0;e<3;e+=1)c.push(h(s,new o.Fraction(n.scale*2**e),(0,t.rand)(n.key)));var u;l=l.add(c[0]),l=l.add(c[0]),l=l.add(c[1]),l=l.add(c[2]),l=l.div(4),u=f,(0,i.default)(l.d),f=u,l=l.mul(t.MAX_PERLIN_VALUE/2),n.floor&&(l=l.floor()),l=l.add(t.MAX_PERLIN_VALUE/2);const d=l.valueOf();return Math.floor(100*d)/100}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContractCaller=void 0;const i=n(6),o=r(n(112)),a=n(89);t.ContractCaller=class{constructor(e,t){this.queue=new a.ThrottledConcurrentQueue({maxInvocationsPerIntervalMs:10,invocationIntervalMs:200,maxConcurrency:20}),this.maxRetries=i.DEFAULT_MAX_CALL_RETRIES,e&&(this.queue=e),t&&(this.maxRetries=t)}async makeCall(e,t=[]){var n;const r=(0,o.default)(async()=>{var n,r;const i=this.queue.add(()=>{var n;return null===(n=this.diagnosticsUpdater)||void 0===n||n.updateDiagnostics(e=>{e.totalCalls++}),e(...t)});null===(n=this.diagnosticsUpdater)||void 0===n||n.updateDiagnostics(e=>{e.callsInQueue=this.queue.size()});const o=await i;return null===(r=this.diagnosticsUpdater)||void 0===r||r.updateDiagnostics(e=>{e.callsInQueue=this.queue.size()}),o},{retries:this.maxRetries});return null===(n=this.diagnosticsUpdater)||void 0===n||n.updateDiagnostics(e=>{e.totalCalls++}),r}setDiagnosticUpdater(e){this.diagnosticsUpdater=e}}},function(e,t,n){e.exports=n(211)},function(e,t,n){var r=n(212);t.operation=function(e){var n=t.timeouts(e);return new r(n,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var r=[],i=0;i<t.retries;i++)r.push(this.createTimeout(i,t));return e&&e.forever&&!r.length&&r.push(this.createTimeout(i,t)),r.sort((function(e,t){return e-t})),r},t.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,r=Math.round(n*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return r=Math.min(r,t.maxTimeout)},t.wrap=function(e,n,r){if(n instanceof Array&&(r=n,n=null),!r)for(var i in r=[],e)"function"==typeof e[i]&&r.push(i);for(var o=0;o<r.length;o++){var a=r[o],s=e[a];
70e[a]=function(r){var i=t.operation(n),o=Array.prototype.slice.call(arguments,1),a=o.pop();o.push((function(e){i.retry(e)||(e&&(arguments[0]=i.mainError()),a.apply(this,arguments))})),i.attempt((function(){r.apply(e,o)}))}.bind(e,s),e[a].options=n}}},function(e,t){function n(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(void 0===n){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1)}var r=this;return this._timer=setTimeout((function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout((function(){r._operationTimeoutCb(r._attempts)}),r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)}),n),this._options.unref&&this._timer.unref(),!0},n.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){n._operationTimeoutCb()}),n._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},n.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},n.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,n=0,r=0;r<this._errors.length;r++){var i=this._errors[r],o=i.message,a=(e[o]||0)+1;e[o]=a,a>=n&&(t=i,n=a)}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createEthConnection=t.EthConnection=void 0;const i=n(6),o=n(19),a=n(7),s=n(38),l=r(n(40)),c=r(n(235)),u=n(123),f=n(125);class d{constructor(e,t){this.gasPrices=i.DEFAULT_GAS_PRICES,this.contracts=new Map,this.loaders=new Map,this.provider=e,this.balance=s.BigNumber.from("0"),this.blockNumber=t,this.blockNumber$=(0,o.monomitter)(!0),this.rpcChanged$=(0,o.monomitter)(!0),this.myBalance$=(0,o.monomitter)(!0),this.gasPrices$=(0,o.monomitter)(),this.rpcChanged$.publish(e.connection.url),this.startPolling()}async reloadContracts(){for(const[e,t]of this.loaders){const n=await t(e,this.provider,this.signer);this.contracts.set(e,n)}}async loadContract(e,t){this.loaders.set(e,t);const n=await t(e,this.provider,this.signer);return this.contracts.set(e,n),n}getContract(e){const t=this.contracts.get(e);if(!t)throw new Error("Contract never loaded. Address: "+e);return t}async setRpcUrl(e){const t=await(0,u.makeProvider)(e);await this.reloadContracts(),this.rpcChanged$.publish(t.connection.url),this.provider=t}async setAccount(e){this.signer=new s.Wallet(e,this.provider),this.balance=await this.loadBalance(this.signer.address),await this.reloadContracts()}async refreshBalance(){if(this.signer){const e=await this.loadBalance(this.signer.address);this.balance=e,this.myBalance$.publish(e)}}async refreshGasPrices(){var e;this.gasPrices=await(0,f.getAutoGasPrices)(),this.gasPrices$.publish(this.gasPrices),null===(e=this.diagnosticsUpdater)||void 0===e||e.updateDiagnostics(e=>e.gasPrices=this.gasPrices)}getAutoGasPrices(){return{...this.gasPrices}}getAutoGasPriceGwei(e,t){const n=(0,u.getGasSettingGwei)(t,e);if(void 0!==n)return n;const r=parseFloat(t);return isNaN(r)?e.average:r}getRpcEndpoint(){return this.provider.connection.url}hasSigner(){return!!this.signer}
70subscribeToContractEvents(e,t,n){const r=(0,c.default)(this.onNewBlock.bind(this),1e3,!0,!0);this.provider.on("block",async i=>{r(i,e,t,n)})}onNewBlock(e,t,n,r){const i=this.blockNumber;this.blockNumber=e,this.blockNumber$.publish(e),this.processEvents(Math.min(i+1,e),e,r,t,n)}async processEvents(e,t,n,r,i){(await this.provider.getLogs({fromBlock:e,toBlock:t,...n})).forEach(e=>{const t=r.interface.parseLog(e),n=i[t.name];void 0!==n&&n(...t.args)})}getAddress(){if(this.signer)return(0,a.address)(this.signer.address)}getPrivateKey(){if(this.signer)return this.signer.privateKey}async getNonce(){return this.signer?(0,u.callWithRetry)(this.provider.getTransactionCount.bind(this.provider),[this.signer.address]):0}async signMessage(e){if(!this.signer)throw new Error("no signer was set.");return this.signer.signMessage(e)}async signMessageObject(e){if(!this.signer)throw new Error("no signer was set.");const t=(0,l.default)(e);return{signature:await this.signMessage(t),sender:this.signer.address.toLowerCase(),message:e}}async loadBalance(e){return await(0,u.callWithRetry)(this.provider.getBalance.bind(this.provider),[e])}sendTransaction(e){if(!this.signer)throw new Error("no signer");return this.signer.sendTransaction(e)}getProvider(){return this.provider}getSigner(){return this.signer}getMyBalance(){return this.balance}waitForTransaction(e){return(0,u.waitForTransaction)(this.provider,e)}setDiagnosticUpdater(e){this.diagnosticsUpdater=e,this.rpcChanged$.subscribe(()=>{null==e||e.updateDiagnostics(e=>e.rpcUrl=this.getRpcEndpoint())}),this.gasPrices$.subscribe(t=>{null==e||e.updateDiagnostics(e=>e.gasPrices=t)})}destroy(){this.stopPolling()}stopPolling(){this.gasPricesInterval&&clearInterval(this.gasPricesInterval),this.balanceInterval&&clearInterval(this.balanceInterval)}startPolling(){this.refreshGasPrices(),this.gasPricesInterval=setInterval(this.refreshGasPrices.bind(this),i.GAS_PRICES_INTERVAL_MS),this.refreshBalance(),this.balanceInterval=setInterval(this.refreshBalance.bind(this),1e4)}}t.EthConnection=d,t.createEthConnection=async function(e){const t=await(0,u.makeProvider)(e),n=await t.getBlockNumber();return new d(t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.monomitter=void 0,t.monomitter=function(e=!1){const t=new Set;let n=!1,r=void 0;return{publish:function(e){n=!0,r=e,t.forEach(t=>t(e))},subscribe:function(i){return t.add(i),e&&n&&i(r),{unsubscribe(){t.delete(i)}}},clear:function(){t.clear()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeArrival=void 0;const r=n(6),i=n(55),o=n(115),a=n(56);t.decodeArrival=function(e){return{eventId:e.id.toString(),player:(0,i.address)(e.player),fromPlanet:(0,a.locationIdFromDecStr)(e.fromPlanet.toString()),toPlanet:(0,a.locationIdFromDecStr)(e.toPlanet.toString()),energyArriving:e.popArriving.toNumber()/r.CONTRACT_PRECISION,silverMoved:e.silverMoved.toNumber()/r.CONTRACT_PRECISION,departureTime:e.departureTime.toNumber(),arrivalTime:e.arrivalTime.toNumber(),artifactId:e.carriedArtifactId.eq(0)?void 0:(0,o.artifactIdFromEthersBN)(e.carriedArtifactId)}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeClaimedCoords=void 0;const i=n(6),o=r(n(8)),a=n(55),s=n(56);t.decodeClaimedCoords=function(e){const t=(0,s.locationIdFromDecStr)(e.locationId.toString());let n=(0,o.default)(e.x.toString()),r=(0,o.default)(e.y.toString()),l=0,c=0;return n.gt(i.LOCATION_ID_UB.divide(2))&&(n=n.minus(i.LOCATION_ID_UB)),l=n.toJSNumber(),r.gt(i.LOCATION_ID_UB.divide(2))&&(r=r.minus(i.LOCATION_ID_UB)),c=r.toJSNumber(),{hash:t,x:l,y:c,score:e.score.toNumber(),revealer:(0,a.address)(e.claimer)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNetworkEvent=void 0;const r=n(1);t.isNetworkEvent=function(e){return"string"==typeof e.tx_to&&"string"==typeof e.tx_type&&"number"==typeof e.time_exec_called&&(void 0===e.autoGasPriceSetting||Object.values(r.AutoGasSetting).includes(e.autoGasPriceSetting))}},function(e,t,n){"use strict";
70Object.defineProperty(t,"__esModule",{value:!0}),t.decodePlanetDefaults=t.decodePlanet=void 0;const r=n(6),i=n(45),o=n(55),a=n(56);t.decodePlanet=function(e,t,n){const s=(0,a.locationIdFromDecStr)(e.toString());return{locationId:s,perlin:n.perlin.toNumber(),spaceType:n.spaceType,owner:(0,o.address)(t.owner),hatLevel:n.hatLevel.toNumber(),planetLevel:t.planetLevel.toNumber(),planetType:t.planetType,isHomePlanet:t.isHomePlanet,energyCap:t.populationCap.toNumber()/r.CONTRACT_PRECISION,energyGrowth:t.populationGrowth.toNumber()/r.CONTRACT_PRECISION,silverCap:t.silverCap.toNumber()/r.CONTRACT_PRECISION,silverGrowth:t.silverGrowth.toNumber()/r.CONTRACT_PRECISION,energy:t.population.toNumber()/r.CONTRACT_PRECISION,silver:t.silver.toNumber()/r.CONTRACT_PRECISION,range:t.range.toNumber(),speed:t.speed.toNumber(),defense:t.defense.toNumber(),lastUpdated:n.lastUpdated.toNumber(),upgradeState:[n.upgradeState0.toNumber(),n.upgradeState1.toNumber(),n.upgradeState2.toNumber()],unconfirmedDepartures:[],unconfirmedUpgrades:[],unconfirmedBuyHats:[],unconfirmedPlanetTransfers:[],unconfirmedClearEmoji:!1,unconfirmedAddEmoji:!1,loadingServerState:!1,needsServerRefresh:!0,silverSpent:0,coordsRevealed:!1,isInContract:!0,syncedWithContract:!0,hasTriedFindingArtifact:n[9],prospectedBlockNumber:n.prospectedBlockNumber.eq(0)?void 0:n.prospectedBlockNumber.toNumber(),destroyed:n[11],heldArtifactIds:[],bonus:(0,i.bonusFromHex)(s)}},t.decodePlanetDefaults=function(e){return{populationCap:e.map(e=>e[1].toNumber()/r.CONTRACT_PRECISION),populationGrowth:e.map(e=>e[2].toNumber()/r.CONTRACT_PRECISION),range:e.map(e=>e[3].toNumber()),speed:e.map(e=>e[4].toNumber()),defense:e.map(e=>e[5].toNumber()),silverGrowth:e.map(e=>e[6].toNumber()/r.CONTRACT_PRECISION),silverCap:e.map(e=>e[7].toNumber()/r.CONTRACT_PRECISION),barbarianPercentage:e.map(e=>e[8].toNumber())}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePlayer=void 0;const r=n(55),i=n(56);t.decodePlayer=function(e){return{address:(0,r.address)(e.player),initTimestamp:e.initTimestamp.toNumber(),homePlanetId:(0,i.locationIdFromEthersBN)(e.homePlanetId),lastRevealTimestamp:e.lastRevealTimestamp.toNumber(),lastClaimTimestamp:e.lastRevealTimestamp.toNumber(),score:e.score.toNumber()}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRevealedCoords=void 0;const i=n(6),o=r(n(8)),a=n(55),s=n(56);t.decodeRevealedCoords=function(e){const t=(0,s.locationIdFromDecStr)(e.locationId.toString());let n=(0,o.default)(e.x.toString()),r=(0,o.default)(e.y.toString()),l=0,c=0;return n.gt(i.LOCATION_ID_UB.divide(2))&&(n=n.minus(i.LOCATION_ID_UB)),l=n.toJSNumber(),r.gt(i.LOCATION_ID_UB.divide(2))&&(r=r.minus(i.LOCATION_ID_UB)),c=r.toJSNumber(),{hash:t,x:l,y:c,revealer:(0,a.address)(e.revealer)}}},function(e,t){},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";t.sha1=n(225),t.sha224=n(226),t.sha256=n(118),t.sha384=n(227),t.sha512=n(119)},function(e,t,n){"use strict";var r=n(48),i=n(67),o=n(117),a=r.rotl32,s=r.sum32,l=r.sum32_5,c=o.ft_1,u=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,u),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],d=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),m=l(a(i,5),c(p,o,u,d),h,n[r],f[p]);h=d,d=u,u=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(48),i=n(118);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(48),i=n(119);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";
70var r=n(48),i=n(67),o=r.rotl32,a=r.sum32,s=r.sum32_3,l=r.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],y=n,b=r,w=i,E=c,k=u,x=0;x<80;x++){var S=a(o(l(n,f(x,r,i,c),e[p[x]+t],d(x)),g[x]),u);n=u,u=c,c=o(i,10),i=r,r=S,S=a(o(l(y,f(79-x,b,w,E),e[m[x]+t],h(x)),v[x]),k),y=k,k=E,E=o(w,10),w=b,b=S}S=s(this.h[1],i,E),this.h[1]=s(this.h[2],c,k),this.h[2]=s(this.h[3],u,y),this.h[3]=s(this.h[4],n,b),this.h[4]=s(this.h[0],r,w),this.h[0]=S},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,n){"use strict";var r=n(48),i=n(66);function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,l=1,c={},u=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return c[l]=i,r(l),l++},d.clearImmediate=h}function h(e){delete c[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(37),n(88))},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return v}));var r=n(3),i=n(5),o=n(78),a=n(17);const s=new i.b(o.a),l={},c=a.a.from(0),u=a.a.from(-1);function f(e,t,n,r){const o={fault:t,operation:n};return void 0!==r&&(o.value=r),s.throwError(e,i.b.errors.NUMERIC_FAULT,o)}let d="0";for(;d.length<256;)d+=d;function h(e){if("number"!=typeof e)try{e=a.a.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+d.substring(0,e):s.throwArgumentError("invalid decimal size","decimals",e)}function p(e,t){null==t&&(t=0);const n=h(t),r=(e=a.a.from(e)).lt(c);r&&(e=e.mul(u));let i=e.mod(n).toString();for(;i.length<n.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];const o=e.div(n).toString();return e=1===n.length?o:o+"."+i,r&&(e="-"+e),e}function m(e,t){null==t&&(t=0);const n=h(t);"string"==typeof e&&e.match(/^-?[0-9.,]+$/)||s.throwArgumentError("invalid decimal value","value",e);const r="-"===e.substring(0,1);r&&(e=e.substring(1)),"."===e&&s.throwArgumentError("missing value","value",e);const i=e.split(".");i.length>2&&s.throwArgumentError("too many decimal points","value",e);let o=i[0],l=i[1];for(o||(o="0"),l||(l="0");"0"===l[l.length-1];)l=l.substring(0,l.length-1);for(l.length>n.length-1&&f("fractional component exceeds decimals","underflow","parseFixed"),""===l&&(l="0");l.length<n.length-1;)l+="0";const c=a.a.from(o),d=a.a.from(l);let p=c.mul(n).add(d);return r&&(p=p.mul(u)),p}class g{constructor(e,t,n,r){e!==l&&s.throwError("cannot use FixedFormat constructor; use FixedFormat.from",i.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=t,this.width=n,this.decimals=r,this.name=(t?"":"u")+"fixed"+String(n)+"x"+String(r),this._multiplier=h(r),Object.freeze(this)}static from(e){if(e instanceof g)return e;"number"==typeof e&&(e="fixed128x"+e);let t=!0,n=128,r=18;if("string"==typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||s.throwArgumentError("invalid fixed format","format",e),t="u"!==i[1],n=parseInt(i[2]),r=parseInt(i[3])}else if(e){const i=(t,n,r)=>null==e[t]?r:(typeof e[t]!==n&&s.throwArgumentError("invalid fixed format ("+t+" not "+n+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),n=i("width","number",n),r=i("decimals","number",r)}return n%8&&s.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),r>80&&s.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",r),new g(l,t,n,r)}}class v{constructor(e,t,n,r){s.checkNew(new.target,v),e!==l&&s.throwError("cannot use FixedNumber constructor; use FixedNumber.from",i.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=r,this._hex=t,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&s.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=m(this._value,this.format.decimals),n=m(e._value,e.format.decimals);return v.fromValue(t.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=m(this._value,this.format.decimals),n=m(e._value,e.format.decimals);return v.fromValue(t.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=m(this._value,this.format.decimals),n=m(e._value,e.format.decimals);return v.fromValue(t.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=m(this._value,this.format.decimals),n=m(e._value,e.format.decimals);return v.fromValue(t.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=v.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(t=t.subUnsafe(y.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=v.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(t=t.addUnsafe(y.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&s.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const n=v.from("1"+d.substring(0,e),this.format),r=b.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(r).floor().divUnsafe(n)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&s.throwArgumentError("invalid byte width","width",e);const t=a.a.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return Object(r.h)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return v.fromString(this._value,e)}static fromValue(e,t,n){return null!=n||null==t||Object(a.d)(t)||(n=t,t=null),null==t&&(t=0),null==n&&(n="fixed"),v.fromString(p(e,t),g.from(n))}static fromString(e,t){null==t&&(t="fixed");const n=g.from(t),i=m(e,n.decimals);!n.signed&&i.lt(c)&&f("unsigned value cannot be negative","overflow","value",e);let o=null;n.signed?o=i.toTwos(n.width).toHexString():(o=i.toHexString(),o=Object(r.h)(o,n.width/8));const a=p(i,n.decimals);return new v(l,o,a,n)}static fromBytes(e,t){null==t&&(t="fixed");const n=g.from(t);if(Object(r.a)(e).length>n.width/8)throw new Error("overflow");let i=a.a.from(e);n.signed&&(i=i.fromTwos(n.width));const o=i.toTwos((n.signed?0:1)+n.width).toHexString(),s=p(i,n.decimals);return new v(l,o,s,n)}static from(e,t){if("string"==typeof e)return v.fromString(e,t);if(Object(r.j)(e))return v.fromBytes(e,t);try{return v.fromValue(e,0,t)}catch(e){if(e.code!==i.b.errors.INVALID_ARGUMENT)throw e}return s.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const y=v.from(1),b=v.from("0.5")},function(e,t,n){t.parse=n(233),t.stringify=n(234)},function(e,t){var n,r,i,o,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},s=function(e){throw{name:"SyntaxError",message:e,at:n,text:i}},l=function(e){return e&&e!==r&&s("Expected '"+e+"' instead of '"+r
vendor: 2,801 bytes, line 70
70+"'"),r=i.charAt(n),n+=1,r},c=function(){var e,t="";for("-"===r&&(t="-",l("-"));r>="0"&&r<="9";)t+=r,l();if("."===r)for(t+=".";l()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,l(),"-"!==r&&"+"!==r||(t+=r,l());r>="0"&&r<="9";)t+=r,l();if(e=+t,isFinite(e))return e;s("Bad number")},u=function(){var e,t,n,i="";if('"'===r)for(;l();){if('"'===r)return l(),i;if("\\"===r)if(l(),"u"===r){for(n=0,t=0;t<4&&(e=parseInt(l(),16),isFinite(e));t+=1)n=16*n+e;i+=String.fromCharCode(n)}else{if("string"!=typeof a[r])break;i+=a[r]}else i+=r}s("Bad string")},f=function(){for(;r&&r<=" ";)l()};o=function(){switch(f(),r){case"{":return function(){var e,t={};if("{"===r){if(l("{"),f(),"}"===r)return l("}"),t;for(;r;){if(e=u(),f(),l(":"),Object.hasOwnProperty.call(t,e)&&s('Duplicate key "'+e+'"'),t[e]=o(),f(),"}"===r)return l("}"),t;l(","),f()}}s("Bad object")}();case"[":return function(){var e=[];if("["===r){if(l("["),f(),"]"===r)return l("]"),e;for(;r;){if(e.push(o()),f(),"]"===r)return l("]"),e;l(","),f()}}s("Bad array")}();case'"':return u();case"-":return c();default:return r>="0"&&r<="9"?c():function(){switch(r){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}s("Unexpected '"+r+"'")}()}},e.exports=function(e,t){var a;return i=e,n=0,r=" ",a=o(),f(),r&&s("Syntax error"),"function"==typeof t?function e(n,r){var i,o,a=n[r];if(a&&"object"==typeof a)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(void 0!==(o=e(a,i))?a[i]=o:delete a[i]);return t.call(n,r,a)}({"":a},""):a}},function(e,t){var n,r,i,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,(function(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}e.exports=function(e,t,o){var a;if(n="",r="","number"==typeof o)for(a=0;a<o;a+=1)r+=" ";else"string"==typeof o&&(r=o);if(i=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return function e(t,o){var a,l,c,u,f,d=n,h=o[t];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(t)),"function"==typeof i&&(h=i.call(o,t,h)),typeof h){case"string":return s(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(n+=r,f=[],"[object Array]"===Object.prototype.toString.apply(h)){for(u=h.length,a=0;a<u;a+=1)f[a]=e(a,h)||"null";return c=0===f.length?"[]":n?"[\n"+n+f.join(",\n"+n)+"\n"+d+"]":"["+f.join(",")+"]",n=d,c}if(i&&"object"==typeof i)for(u=i.length,a=0;a<u;
70a+=1)"string"==typeof(l=i[a])&&(c=e(l,h))&&f.push(s(l)+(n?": ":":")+c);else for(l in h)Object.prototype.hasOwnProperty.call(h,l)&&(c=e(l,h))&&f.push(s(l)+(n?": ":":")+c);return c=0===f.length?"{}":n?"{\n"+n+f.join(",\n"+n)+"\n"+d+"}":"{"+f.join(",")+"}",n=d,c}}("",{"":e})}},function(e,t){e.exports=function(e,t,n,r){var i,o,a;return function(){if(a=this,o=Array.prototype.slice.call(arguments),!i||!n&&!r){if(!n)return l(),i=setTimeout(s,t);i=setTimeout(l,t),e.apply(a,o)}function s(){l(),e.apply(a,o)}function l(){clearTimeout(i),i=null}}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TxExecutor=void 0;const i=r(n(76)),o=r(n(124)),a=n(89);class s{constructor(e,t,n,r,i){this.defaultTxOptions={gasLimit:2e6,gasPrice:40},this.execute=async e=>{var t;let n=void 0,r=void 0,i=void 0,a=void 0,l=void 0,c=void 0;const u=Date.now();console.log("Execute: Inside function");try{console.log("Execute: Inside try"),await this.maybeUpdateNonce(),this.beforeTransaction&&await this.beforeTransaction(e);const r=Object.assign(JSON.parse(JSON.stringify(this.defaultTxOptions)),e.overrides);console.log("Execute: submitting"),console.log(e.overrides.gasLimit),console.log(e.overrides.gasPrice),n=Date.now();const u=await(0,o.default)(e.contract[e.methodName](...e.args,{...r,nonce:this.nonce}),s.TX_SUBMIT_TIMEOUT,`tx request ${e.actionId} failed to submit: timed out}`);i=Date.now(),c=u.hash,void 0!==this.nonce&&(this.nonce+=1),this.lastTransactionTimestamp=i,e.onTransactionResponse(u);const f=await this.ethConnection.waitForTransaction(u.hash);if(1!==f.status)throw console.log("confirmed",f),l=Date.now(),new Error("transaction reverted");a=Date.now(),e.onTransactionReceipt(f)}catch(t){console.error(t),r=t,i?(l||(this.nonce=void 0,l=Date.now()),e.onReceiptError(r),console.log(r)):(l=Date.now(),e.onSubmissionError(r))}finally{null===(t=this.diagnosticsUpdater)||void 0===t||t.updateDiagnostics(e=>{e.totalTransactions++})}const f={tx_to:e.contract.address,tx_type:e.methodName,auto_gas_price_setting:e.autoGasPriceSetting,time_exec_called:u,tx_hash:c};if(n&&i&&(f.wait_submit=i-n,a&&(f.wait_confirm=a-n)),r&&l){f.error=r.message||JSON.stringify(r),f.wait_error=l-u;try{r.body&&(f.parsed_error=String.fromCharCode.apply(null,r.body||[]))}catch(e){}}f.rpc_endpoint=this.ethConnection.getRpcEndpoint(),f.user_address=this.ethConnection.getAddress(),console.log(f),this.afterTransaction&&this.afterTransaction(e,f)},this.queue=new a.ThrottledConcurrentQueue(null!=i?i:{invocationIntervalMs:200,maxInvocationsPerIntervalMs:3,maxConcurrency:1}),this.lastTransactionTimestamp=Date.now(),this.ethConnection=e,this.gasSettingProvider=t,this.beforeTransaction=n,this.afterTransaction=r}queueTransaction(e,t,n,r,o={gasPrice:4e10,gasLimit:2e6}){var a;console.log("In queue: starting, gas"),null===(a=this.diagnosticsUpdater)||void 0===a||a.updateDiagnostics(e=>{e.transactionsInQueue++}),console.log("In queue: submittedPromise");const{promise:s,reject:l,resolve:c}=(0,i.default)();console.log("In queue: receiptPromise");const{promise:u,reject:f,resolve:d}=(0,i.default)(),h={methodName:n,actionId:e,contract:t,args:r,overrides:o,onSubmissionError:l,onReceiptError:f,onTransactionResponse:c,onTransactionReceipt:d};return this.queue.add(()=>{var e;return null===(e=this.diagnosticsUpdater)||void 0===e||e.updateDiagnostics(e=>{e.transactionsInQueue--}),console.log("Transaction",h),console.log("Gas",h.overrides.gasPrice),this.execute(h)}),{submitted:s,confirmed:u}}async maybeUpdateNonce(){if(void 0===this.nonce||Date.now()-this.lastTransactionTimestamp>s.NONCE_STALE_AFTER_MS){const e=await this.ethConnection.getNonce();void 0!==e&&(this.nonce=e)}}setDiagnosticUpdater(e){this.diagnosticsUpdater=e}}t.TxExecutor=s,s.TX_SUBMIT_TIMEOUT=3e4,s.NONCE_STALE_AFTER_MS=5e3},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
70),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.DarkForestIcon=t.IconType=void 0;const a=n(303),s=o(n(126));t.IconType={Energy:"Energy",EnergyGrowth:"EnergyGrowth",Silver:"Silver",SilverGrowth:"SilverGrowth",Range:"Range",Speed:"Speed",Defense:"Defense",Artifact:"Artifact",MaxLevel:"MaxLevel",Pirates:"Pirates",SilverProd:"SilverProd",RankOne:"RankOne",RankTwo:"RankTwo",RankThree:"RankThree",RankFour:"RankFour",RankMax:"RankMax",Target:"Target",Play:"Play",Pause:"Pause",Withdraw:"Withdraw",Activate:"Activate",Deactivate:"Deactivate",Deposit:"Deposit",Broadcast:"Broadcast",Hat:"Hat",Help:"Help",Leaderboard:"Leaderboard",Lock:"Lock",PlanetDex:"PlanetDex",Planet:"Planet",Plugin:"Plugin",Settings:"Settings",Share:"Share",Twitter:"Twitter",Upgrade:"Upgrade",RightArrow:"RightArrow"};class l extends a.LitElement{render(){switch(this.type){case t.IconType.Energy:return a.svg`
71    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
72      <path d="M352 0l-288 288h176l-80 224 288-288h-176z" />
73    </svg>
74  `;case t.IconType.EnergyGrowth:return a.svg`
75    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
76      <path d="M251.6,164.4L416,0l-75,210H234.8L251.6,164.4z M407.4,224L284.2,343.4L224,512l288-288H407.4z" />
77      <path d="M288,0L0,288h176L96,512l288-288H208L288,0z" />
78    </svg>
79  `;case t.IconType.Silver:return a.svg`
80    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
81      <path d="M-1,102.9v305.1h512V102.9H-1z M95.3,378.4h-64v-64h32v32h32V378.4z M95.3,163.3h-32v32h-32v-64h64V163.3z M236.7,308 c8.3,0,15,6.7,15,15s-6.7,15-15,15H119.5c-5.9,0-11.2-3.4-13.6-8.7c-2.4-5.3-1.6-11.6,2.2-16l96-112.3h-84.6c-8.3,0-15-6.7-15-15 s6.7-15,15-15h117.2c5.9,0,11.2,3.4,13.6,8.7c2.4,5.3,1.6,11.6-2.2,16l-96,112.3H236.7z M400.2,334.4c-2.8,2.4-6.3,3.6-9.7,3.6 c-4.2,0-8.5-1.8-11.4-5.3l-44.5-52.3l-41.3,51.9c-2.9,3.7-7.3,5.7-11.7,5.7c-1.7,0-3.3-0.3-4.9-0.8c-6-2.1-10.1-7.8-10.1-14.2V186 c0-8.3,6.7-15,15-15s15,6.7,15,15v94l25.8-32.4c0,0,0,0,0.1-0.1l56.3-70.9c5.2-6.5,14.6-7.6,21.1-2.4c6.5,5.2,7.6,14.6,2.4,21.1 l-48.6,61.1l48.3,56.8C407.2,319.6,406.5,329.1,400.2,334.4z M486.3,378.4h-64v-32h32v-32h32V378.4z M486.3,195.3h-32v-32h-32v-32 h64V195.3z" />
82    </svg>
83  `;case t.IconType.SilverGrowth:return a.svg`
84    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
85      <path d="M-0.5,166.3v305.1h512V166.3H-0.5z M95.8,441.7h-64v-64h32v32h32V441.7z M95.8,226.6h-32v32h-32v-64h64V226.6z M237.2,371.3 c8.3,0,15,6.7,15,15s-6.7,15-15,15H120c-5.9,0-11.2-3.4-13.6-8.7c-2.4-5.3-1.6-11.6,2.2-16l96-112.3H120c-8.3,0-15-6.7-15-15 s6.7-15,15-15h117.2c5.9,0,11.2,3.4,13.6,8.7c2.4,5.3,1.6,11.6-2.2,16l-96,112.3H237.2z M400.7,397.8c-2.8,2.4-6.3,3.6-9.7,3.6 c-4.2,0-8.5-1.8-11.4-5.3l-44.5-52.3l-41.3,51.9c-2.9,3.7-7.3,5.7-11.7,5.7c-1.7,0-3.3-0.3-4.9-0.8c-6-2.1-10.1-7.8-10.1-14.2v-137 c0-8.3,6.7-15,15-15s15,6.7,15,15v94l25.8-32.4c0,0,0,0,0.1-0.1l56.3-70.9c5.2-6.5,14.6-7.6,21.1-2.4c6.5,5.2,7.6,14.6,2.4,21.1 l-48.6,61.1l48.3,56.8C407.7,382.9,407,392.4,400.7,397.8z M486.8,441.7h-64v-32h32v-32h32V441.7z M486.8,258.6h-32v-32h-32v-32h64 V258.6z M35.8,102.9h439.5V150H35.8V102.9z M73.2,39.6h364.7v47.1H73.2V39.6z" />
86    </svg>
87  `;case t.IconType.Range:return a.svg`
88    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
89      <path d="M118.627 438.627l265.373-265.372v114.745c0 17.673 14.327 32 32 32s32-14.327 32-32v-192c0-12.942-7.797-24.611-19.754-29.563-3.962-1.642-8.121-2.42-12.246-2.419v-0.018h-192c-17.673 0-32 14.327-32 32 0 17.674 14.327 32 32 32h114.745l-265.372 265.373c-6.249 6.248-9.373 14.438-9.373 22.627s3.124 16.379 9.373 22.627c12.496 12.497 32.758 12.497 45.254 0z" />
90    </svg>
91  `;case t.IconType.Speed:return a.svg`
92    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
93      <path d="M256 432v-160l-160 160v-352l160 160v-160l176 176z" />
94    </svg>
95  `;case t.IconType.Defense:return a.svg`
96    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
97      <path d="M256.002 52.45l143.999 78.545-0.001 109.005c0 30.499-3.754 57.092-11.477 81.299-7.434 23.303-18.396 43.816-33.511 62.711-22.371 27.964-53.256 51.74-99.011 76.004-45.753-24.263-76.644-48.042-99.013-76.004-15.116-18.896-26.078-39.408-33.512-62.711-7.722-24.207-11.476-50.8-11.476-81.299v-109.004l144.002-78.546zM256.003 0c-2.637 0-5.274 0.651-7.663 1.954l-176.002 96c-5.14 2.803-8.338 8.191-8.338 14.046v128c0 70.394 18.156 127.308 55.506 173.995 29.182 36.478 69.072 66.183 129.34 96.315 2.252 1.126 4.704 1.689 7.155 1.689s4.903-0.563 7.155-1.689c60.267-30.134 100.155-59.839 129.337-96.315 37.351-46.687 55.507-103.601 55.507-173.995l0.001-128c0-5.855-3.198-11.243-8.338-14.046l-175.999-96c-2.387-1.303-5.024-1.954-7.661-1.954v0z" />
98      <path d="M160 159.491v80.509c0 25.472 3.011 47.293 9.206 66.711 5.618 17.608 13.882 33.085 25.265 47.313 14.589 18.237 34.038 34.408 61.531 50.927 27.492-16.518 46.939-32.688 61.53-50.927 11.382-14.228 19.646-29.704 25.263-47.313 6.194-19.418 9.205-41.239 9.205-66.711l0.001-80.51-95.999-52.363-96.002 52.364z" />
99    </svg>
100  `;
100case t.IconType.Artifact:return a.svg`
101    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
102      <path d="M385.758 160c9.063-6.44 17.756-13.608 25.722-21.574 16.701-16.701 27.873-37.25 31.456-57.861 3.929-22.593-1.836-43.57-15.815-57.55-11.15-11.149-26.255-17.043-43.682-17.043-24.816 0-50.961 11.912-71.73 32.681-33.238 33.238-52.613 79.119-63.038 111.861-7.72-32.901-23.103-77.322-53.009-107.229-16.047-16.046-36.557-24.285-55.923-24.285-15.827 0-30.89 5.502-42.13 16.743-24.993 24.994-21.616 68.893 7.543 98.052 10.396 10.396 22.549 19.031 35.36 26.206h-108.512v128h32v224h384v-224.001h32v-128h-94.242zM337.163 64.109c13.862-13.862 31.161-22.137 46.275-22.137 5.35 0 12.854 1.127 18.225 6.499 13.015 13.014 5.706 43.154-15.64 64.499-21.973 21.973-51.53 37.084-77.216 47.030h-25.336c9.284-28.774 26.029-68.228 53.692-95.891zM130.607 108.338c-7.914-7.914-12.885-18.080-13.64-27.893-0.351-4.56-0.025-13.124 6.098-19.247 5.122-5.122 11.894-6.198 16.674-6.198v0c10.629 0 21.734 5.008 30.466 13.74 16.936 16.936 30.883 43.886 40.334 77.938 0.255 0.92 0.504 1.835 0.748 2.743-0.908-0.243-1.823-0.492-2.743-0.748-34.052-9.451-61.002-23.399-77.937-40.335zM448 272h-160v208h-64v-208h-160v-16h160v-64h64v64h160v16z" />
103    </svg>
104  `;case t.IconType.MaxLevel:return a.svg`
105    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
106      <path d="M512 198.525l-176.89-25.704-79.11-160.291-79.108 160.291-176.892 25.704 128 124.769-30.216 176.176 158.216-83.179 158.216 83.179-30.217-176.176 128.001-124.769z" />
107    </svg>
108  `;case t.IconType.Pirates:return a.svg`
109    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
110      <path d="M409.706 102.294c-45.33-45.33-105.6-70.294-169.706-70.294s-124.375 24.964-169.706 70.294-70.294 105.6-70.294 169.706c0 8.836 7.164 16 16 16 61.757 0 112 50.243 112 112v64c0 8.837 7.164 16 16 16s16-7.163 16-16v-64c0-8.837 7.164-16 16-16s16 7.163 16 16v96c0 8.837 7.164 16 16 16s16-7.163 16-16v-96c0-8.837 7.163-16 16-16s16 7.163 16 16v96c0 8.837 7.164 16 16 16s16-7.163 16-16v-96c0-8.837 7.163-16 16-16s16 7.163 16 16v64c0 8.837 7.164 16 16 16s16-7.163 16-16v-64c0-61.757 50.243-112 112-112 8.837 0 16-7.164 16-16 0-64.106-24.964-124.375-70.294-169.706zM192 224c0 17.6-14.4 32-32 32h-32c-17.6 0-32-14.4-32-32v-32c0-17.6 14.4-32 32-32h32c17.6 0 32 14.4 32 32v32zM384 224c0 17.6-14.4 32-32 32h-32c-17.6 0-32-14.4-32-32v-32c0-17.6 14.4-32 32-32h32c17.6 0 32 14.4 32 32v32z" />
111    </svg>
112  `;case t.IconType.SilverProd:return a.svg`
113    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
114      <path d="M505.365 112.030c-9.915-17.175-30.021-25.883-59.756-25.883-21.674 0-48.428 4.748-78.262 13.523-31.425-22.447-69.87-35.67-111.347-35.67-105.869 0-192 86.131-192 192 0 6.159 0.304 12.248 0.874 18.26-5.502 5.245-10.723 10.467-15.628 15.646-19.125 20.196-32.785 38.978-40.601 55.822-6.774 14.6-12.621 35.861-2.009 54.242 9.916 17.175 30.021 25.883 59.757 25.883 21.671 0 48.427-4.754 78.254-13.528 31.427 22.45 69.874 35.675 111.353 35.675 105.869 0 192-86.131 192-192 0-6.158-0.304-12.245-0.873-18.256 5.5-5.246 10.722-10.468 15.628-15.649 19.125-20.196 32.785-38.977 40.601-55.823 6.774-14.6 12.621-35.861 2.009-54.242zM256 96c76.234 0 140.177 53.595 156.151 125.083-33.514 30.175-76.791 61.004-125.016 88.846-48.080 27.76-96.982 49.888-139.406 63.763-31.781-29.261-51.729-71.188-51.729-117.692 0-88.224 71.776-160 160-160zM37.813 381.971c-3.377-5.849-0.064-27.015 35.934-65.557 8.335 25.080 21.712 47.876 38.923 67.188-17.473 4.069-33.148 6.252-46.277 6.252-17.716 0-26.38-4.073-28.58-7.883zM256 416c-25.783 0-50.156-6.139-71.748-17.018 38.247-14.396 79.657-34.074 120.884-57.876 41.045-23.697 78.808-49.61 110.579-75.674-4.9 83.85-74.657 150.568-159.715 150.568zM438.253 195.586c-8.335-25.081-21.712-47.877-38.925-67.189 17.478-4.073 33.148-6.25 46.28-6.25 17.716 0 26.379 4.072 28.579 7.883 3.378 5.849 0.065 27.015-35.934 65.556z" />
115    </svg>
116  `;case t.IconType.RankOne:return a.svg`
117    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
118      <path d="M32 416v64l224-112 224 112v-64l-224-112z" />
119    </svg>
120  `;case t.IconType.RankTwo:return a.svg`
121    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
122      <path d="M32 416v64l224-112 224 112v-64l-224-112zM32 288v64l224-112 224 112v-64l-224-112z" />
123    </svg>
124  `;case t.IconType.RankThree:return a.svg`
125    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
126      <path d="M32 416v64l224-112 224 112v-64l-224-112zM32 288v64l224-112 224 112v-64l-224-112zM256 48l-224 112v64l224-112 224 112v-64z" />
127    </svg>
128  `;case t.IconType.RankFour:return a.svg`
129    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
130      <path d="M128 384h256v64h-256zM480 96c-17.673 0-32 14.327-32 32 0 6.567 1.981 12.67 5.375 17.75l-117.375 78.25-12.031-96.254c15.799-1.955 28.031-15.417 28.031-31.746 0-17.673-14.327-32-32-32s-32 14.327-32 32c0 12.528 7.203 23.367 17.689 28.621l-49.689 99.379-49.689-99.379c10.486-5.254 17.689-16.093 17.689-28.621 0-17.673-14.327-32-32-32s-32 14.327-32 32c0 16.329 12.232 29.791 28.032 31.746l-12.032 96.254-117.374-78.25c3.393-5.079 5.374-11.183 5.374-17.75 0-17.673-14.327-32-32-32s-32 14.327-32 32 14.327 32 32 32c4.478 0 8.738-0.923 12.607-2.583l83.393 194.583h256l83.393-194.583c3.869 1.66 8.13 2.583 12.607 2.583 17.673 0 32-14.327 32-32s-14.327-32-32-32z" />
131    </svg>
132  `;case t.IconType.RankMax:return a.svg`
133    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
134      <path d="M487.024 132.75c-16.872-16.872-40.057-24.976-65.75-24.976-34.444 0-73.404 14.558-107.766 42.062-8.132-24.908-23.24-43.758-41.509-50.811v-35.025h48v-32h-48v-32h-32v32h-48v32h48v35.024c-18.268 7.053-33.376 25.902-41.508 50.809-34.361-27.503-73.321-42.062-107.765-42.060-25.693 0.002-48.879 8.104-65.75 24.976-43.739 43.739-28.542 129.85 33.941 192.333 11.679 11.679 24.186 21.694 37.083 29.993v46.882c43.829 8.785 99.454 14.043 160 14.043s116.171-5.258 160-14.043v-46.88c12.897-8.298 25.404-18.314 37.083-29.993 62.483-62.484 77.68-148.596 33.941-192.334zM81.546 189.322c0.539-0.36 3.423-1.548 9.181-1.549h0.008c15.925 0 43.814 9.293 70.005 35.484 17.287 17.287 29.66 38.181 33.948 57.326 3.059 13.66 0.767 20.748-0.007 21.868-0.536 0.359-3.416 1.549-9.18 1.549-15.928 0-43.822-9.294-70.015-35.486-17.288-17.289-29.662-38.185-33.948-57.33-3.058-13.656-0.766-20.741 0.008-21.862zM430.461 211.19c-4.287 19.145-16.66 40.039-33.946 57.324-26.193 26.193-54.086 35.486-70.015 35.486-5.762 0-8.644-1.188-9.18-1.548-0.773-1.119-3.066-8.204-0.009-21.862 4.286-19.146 16.66-40.041 33.948-57.33 26.192-26.192 54.087-35.486 70.015-35.486 5.764 0 8.645 1.188 9.18 1.548 0.774 1.12 3.067 8.208 0.007 21.868zM96 450.832v47.125c43.829 8.785 99.454 14.043 160 14.043s116.171-5.258 160-14.043v-47.125c-46.914 8.625-101.98 13.168-160 13.168s-113.086-4.543-160-13.168z" />
135    </svg>
136  `;case t.IconType.Target:return a.svg`
137    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
138      <path d="M512 224h-50.462c-13.82-89.12-84.418-159.718-173.538-173.538v-50.462h-64v50.462c-89.12 13.82-159.718 84.418-173.538 173.538h-50.462v64h50.462c13.82 89.12 84.418 159.718 173.538 173.538v50.462h64v-50.462c89.12-13.82 159.718-84.418 173.538-173.538h50.462v-64zM396.411 224h-49.881c-9.642-27.275-31.255-48.889-58.53-58.53v-49.881c53.757 12.245 96.166 54.655 108.411 108.411zM256 288c-17.673 0-32-14.327-32-32
138s14.327-32 32-32c17.673 0 32 14.327 32 32s-14.327 32-32 32zM224 115.589v49.881c-27.275 9.641-48.889 31.255-58.53 58.53h-49.881c12.245-53.756 54.655-96.166 108.411-108.411zM115.589 288h49.881c9.641 27.275 31.255 48.889 58.53 58.53v49.881c-53.756-12.245-96.166-54.654-108.411-108.411zM288 396.411v-49.881c27.275-9.642 48.889-31.255 58.53-58.53h49.881c-12.245 53.757-54.654 96.166-108.411 108.411z" />
139    </svg>
140  `;case t.IconType.Play:return a.svg`
141    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
142      <path d="M96 64l320 192-320 192z" />
143    </svg>
144  `;case t.IconType.Pause:return a.svg`
145    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
146      <path d="M64 64h160v384h-160zM288 64h160v384h-160z" />
147    </svg>
148  `;case t.IconType.Withdraw:return a.svg`
149    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 16 16">
150      <path d="M13 1h-10l-3 3v10.5c0 0.276 0.224 0.5 0.5 0.5h15c0.276 0 0.5-0.224 0.5-0.5v-10.5l-3-3zM10 10v3h-4v-3h-3l5-4 5 4h-3zM2.414 3l1-1h9.171l1 1h-11.171z" />
151    </svg>
152  `;case t.IconType.Activate:return a.svg`
153    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
154      <path d="M376.2 224H268l52.4-186.9c.9-4.5-4.6-7.1-7.2-3.4L129.5 274.6c-3.8 5.6-.2 13.4 6.3 13.4H244l-52.4 186.9c-.9 4.5 4.6 7.1 7.2 3.4l183.7-240.8c3.7-5.7.2-13.5-6.3-13.5z" />
155    </svg>
156  `;case t.IconType.Deactivate:return a.svg`
157    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
158      <path d="M382.1 442.7L154.5 55c-4-6.7-12.7-9-19.5-5.1-6.8 3.9-9.1 12.6-5.1 19.3L357.5 457c2.6 4.5 7.4 7 12.3 7 2.4 0 4.9-.6 7.2-1.9 6.7-4 9-12.6 5.1-19.4zM324.6 313.3l57.9-75.8c3.8-5.6.2-13.4-6.3-13.4h-104l52.4 89.2zM320.4 37.1c.9-4.5-4.6-7.1-7.2-3.4L227 146.9l42.4 72.3 51-182.1zM187.4 198.7l-57.9 75.8c-3.8 5.6-.2 13.4 6.3 13.4h103.9l-52.3-89.2zM191.6 474.9c-.9 4.5 4.6 7.1 7.2 3.4L285 365.1l-42.4-72.3-51 182.1z" />
159    </svg>
160  `;case t.IconType.Deposit:return a.svg`
161    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
162      <path d="M416 32h-320l-96 96v336c0 8.837 7.163 16 16 16h480c8.836 0 16-7.163 16-16v-336l-96-96zM256 416l-160-128h96v-96h128v96h96l-160 128zM77.255 96l32-32h293.489l32 32h-357.489z" />
163    </svg>
164  `;case t.IconType.Broadcast:return a.svg`
165    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
166      <path d="M504.978 457.88v0l-218.537-435.556c-8.371-14.883-19.406-22.324-30.441-22.324s-22.070 7.441-30.442 22.324l-218.537 435.556c-16.743 29.766-2.5 54.12 31.652 54.12h434.654c34.151 0 48.396-24.354 31.651-54.12zM256 448c-17.673 0-32-14.327-32-32s14.327-32 32-32c17.674 0 32 14.326 32 32s-14.326 32-32 32zM288 320c0 17.673-14.327 32-32 32s-32-14.327-32-32v-96c0-17.673 14.327-32 32-32s32 14.327 32 32v96z" />
167    </svg>
168  `;case t.IconType.Hat:return a.svg`
169    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
170      <path d="M416 248.575v-104.575c0-26.51-71.635-48-160-48s-160 21.49-160 48v104.575c-58.519 20.526-96 52.058-96 87.425 0 61.855 114.615 112 256 112s256-50.145 256-112c0-35.367-37.48-66.899-96-87.425zM416 336c0 26.51-71.635 48-160 48s-160-21.49-160-48v-64c0 26.51 71.635 48 160 48s160-21.49 160-48v64z" />
171    </svg>
172  `;case t.IconType.Help:return a.svg`
173    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
174      <path d="M192 416h96v96h-96zM400 32c26.51 0 48 21.49 48 48v144l-160 96v64h-96v-96l160-96v-64h-256v-96h304z" />
175    </svg>
176  `;case t.IconType.Leaderboard:return a.svg`
177    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
178      <path d="M416 96v-64h-320v64h-96v64c0 53.019 42.979 96 96 96 10.038 0 19.715-1.543 28.81-4.401 23.087 33.004 58.304 56.898 99.19 65.198v99.203h-32c-35.347 0-64 28.653-64 64h256c0-35.347-28.653-64-64-64h-32v-99.203c40.886-8.3 76.103-32.193 99.19-65.198 9.095 2.858 18.772 4.401 28.81 4.401 53.021 0 96-42.981 96-96v-64h-96zM96 218c-31.981 0-58-26.019-58-58v-32h58v32c0 20.093 3.715 39.316 10.477 57.034-3.401 0.623-6.899 0.966-10.477 0.966zM474 160c0 31.981-26.019 58-58 58-3.578 0-7.076-0.343-10.477-0.966 6.762-17.718 10.477-36.941 10.477-57.034v-32h58v32z" />
179    </svg>
180  `;case t.IconType.Lock:return a.svg`
181    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
182      <path d="M448 192h-32v-160c0-17.6-14.4-32-32-32h-256c-17.6 0-32 14.4-32 32v160h-32c-17.602 0-32 14.4-32 32v256c0 17.6 14.398 32 32 32h384c17.6 0 32-14.4 32-32v-256c0-17.6-14.4-32-32-32zM288 416h-64l13.92-69.6c-8.404-5.766-13.92-15.437-13.92-26.4 0-17.673 14.327-32 32-32s32 14.327 32 32c0 10.963-5.516 20.634-13.92 26.4l13.92 69.6zM352 192h-192v-128h192v128z" />
183    </svg>
184  `;case t.IconType.PlanetDex:return a.svg`
185    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
186      <path d="M448 64v416h-336c-26.513 0-48-21.49-48-48s21.487-48 48-48h304v-384h-320c-35.199 0-64 28.8-64 64v384c0 35.2 28.801 64 64 64h384v-448h-32zM160 16h160v224l-80-80-80 80v-224z" />
187      <path d="M112.028 416v0c-0.009 0.001-0.019 0-0.028 0-8.836 0-16 7.163-16 16s7.164 16 16 16c0.009 0 0.019-0.001 0.028-0.001v0.001h303.945v-32h-303.945z" />
188    </svg>
189  `;case t.IconType.Planet:return a.svg`
190    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
191      <path d="M504.915 112.289c-9.989-17.302-30.188-26.075-60.038-26.075-21.509 0-48.026 4.685-77.585 13.34-31.393-22.378-69.8-35.554-111.292-35.554-106.039 0-192 85.961-192 192 0 6.077 0.298 12.084 0.851 18.017-5.425 5.179-10.576 10.335-15.42 15.45-19.103 20.172-32.751 38.94-40.567 55.784-6.807 14.671-12.677 36.049-1.98 54.576 9.989 17.302 30.189 26.075 60.039 26.075 21.571 0 48.18-4.713 77.841-13.416 31.384 22.353 69.769 35.514 111.236 35.514 106.039 0 192-85.961 192-192 0-6.1-0.304-12.126-0.863-18.080 5.356-5.119 10.442-10.215 15.231-15.272 19.103-20.172 32.752-38.941 40.567-55.785 6.807-14.67 12.678-36.047 1.98-54.574zM435.503 197.208c-35.258 37.232-88.122 77.047-148.854 112.111-83.735 48.346-169.983 79.584-219.727 79.584-17.417 0-25.882-3.913-27.996-7.575-3.799-6.579 2.576-28.943 35.093-63.98 3.943 11.697 8.979 22.893 14.992 33.461 40.608-6.736 105.629-29.936 179.638-72.666 57.807-33.375 107.78-70.909 140.714-105.688 4.749-5.015 8.769-9.613 12.164-13.773-6.206-10.533-13.393-20.42-21.427-29.541 16.88-3.863 32.032-5.926 44.776-5.926 17.416 0 25.881 3.913 27.995 7.575 3.888 6.731-2.857 29.974-37.368 66.418z" />
192    </svg>
193  `;case t.IconType.Plugin:return a.svg`
194    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
195      <path d="M512 141.25l-45.253-45.25-89.373 89.376-50.75-50.751 89.375-89.375-45.25-45.25-89.375 89.375-57.374-57.375-43.313 43.312 256.001 256 43.312-43.311-57.376-57.376 89.376-89.375z" />
196      <path d="M397.020 336.895l-221.912-221.912c-47.909 57.452-102.26 146.227-64.698 222.608l-66.124 66.124c-15.556 15.557-15.556 41.012 0 56.568l7.429 7.429c15.557 15.557 41.013 15.557 56.569 0l66.123-66.122c76.382 37.566 165.159-16.783 222.613-64.695z" />
197    </svg>
198  `;case t.IconType.Settings:return a.svg`
199    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
200      <path d="M466.895 305.125c-26.863-46.527-10.708-106.152 36.076-133.244l-50.313-87.146c-14.375 8.427-31.088 13.259-48.923 13.259-53.768 0-97.354-43.873-97.354-97.995h-100.629c0.133 16.705-4.037 33.641-12.979 49.126-26.862 46.528-86.578 62.351-133.431 35.379l-50.312 87.146c14.485 8.236 27.025 20.294 35.943 35.739 26.819 46.454 10.756 105.96-35.854 133.112l50.313 87.146c14.325-8.348 30.958-13.127 48.7-13.127 53.598 0 97.072 43.596 97.35 97.479h100.627c-0.043-16.537 4.136-33.285 12.983-48.609 26.818-46.453 86.388-62.297 133.207-35.506l50.313-87.145c-14.39-8.233-26.846-20.249-35.717-35.614zM256 359.666c-57.254 0-103.668-46.412-103.668-103.667 0-57.254 46.413-103.667 103.668-103.667s103.666 46.413 103.666 103.667c-0.001 57.255-46.412 103.667-103.666 103.667z" />
201    </svg>
202  `;case t.IconType.Share:return a.svg`
203    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
204      <path d="m395.99992,344.66662c-16.62499,0 -31.96665,5.83333 -43.98331,15.57499l-120.8666,-87.44162a93.72995,93.72995 0 0 0 0,-33.59998l120.8666,-87.44162c12.01666,9.74166 27.35832,15.57499 43.98331,15.57499c38.61665,0 69.99996,-31.38332 69.99996,-69.99996s-31.38332,-69.99996 -69.99996,-69.99996s-69.99996,31.38332 -69.99996,69.99996c0,6.76666 0.93333,13.24166 2.7416
2047,19.42499l-114.79994,83.12496c-17.03332,-22.57499 -44.09998,-37.21665 -74.60829,-37.21665c-51.56664,0 -93.33328,41.76664 -93.33328,93.33328s41.76664,93.33328 93.33328,93.33328c30.50832,0 57.57497,-14.64166 74.60829,-37.21665l114.79994,83.12496c-1.80833,6.18333 -2.74167,12.71666 -2.74167,19.42499c0,38.61665 31.38332,69.99996 69.99996,69.99996s69.99996,-31.38332 69.99996,-69.99996s-31.38332,-69.99996 -69.99996,-69.99996zm0,-277.66652c16.74166,0 30.33332,13.59166 30.33332,30.33332s-13.59166,30.33332 -30.33332,30.33332s-30.33332,-13.59166 -30.33332,-30.33332s13.59166,-30.33332 30.33332,-30.33332zm-256.66653,240.33321c-28.29165,0 -51.33331,-23.04165 -51.33331,-51.33331s23.04165,-51.33331 51.33331,-51.33331s51.33331,23.04165 51.33331,51.33331s-23.04165,51.33331 -51.33331,51.33331zm256.66653,137.66659c-16.74166,0 -30.33332,-13.59166 -30.33332,-30.33332s13.59166,-30.33332 30.33332,-30.33332s30.33332,13.59166 30.33332,30.33332s-13.59166,30.33332 -30.33332,30.33332z" />
205    </svg>
206  `;case t.IconType.Twitter:return a.svg`
207    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
208      <path d="M512 113.2c-18.8 8.4-39.1 14-60.3 16.5 21.7-13 38.3-33.6 46.2-58.1-20.3 12-42.8 20.8-66.7 25.5-19.2-20.4-46.5-33.1-76.7-33.1-58 0-105 47-105 105 0 8.2 0.9 16.2 2.7 23.9-87.3-4.4-164.7-46.2-216.5-109.8-9 15.5-14.2 33.6-14.2 52.8 0 36.4 18.5 68.6 46.7 87.4-17.2-0.5-33.4-5.3-47.6-13.1 0 0.4 0 0.9 0 1.3 0 50.9 36.2 93.4 84.3 103-8.8 2.4-18.1 3.7-27.7 3.7-6.8 0-13.3-0.7-19.8-1.9 13.4 41.7 52.2 72.1 98.1 73-36 28.2-81.2 45-130.5 45-8.5 0-16.8-0.5-25.1-1.5 46.6 29.9 101.8 47.2 161.1 47.2 193.2 0 298.9-160.1 298.9-298.9 0-4.6-0.1-9.1-0.3-13.6 20.5-14.7 38.3-33.2 52.4-54.3z" />
209    </svg>
210  `;case t.IconType.Upgrade:return a.svg`
211    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
212      <path d="M256 16l-240 240h144v256h192v-256h144z" />
213    </svg>
214  `;case t.IconType.RightArrow:return a.svg`
215    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512">
216      <path d="M310.627 438.627l160-160c12.497-12.496 12.497-32.758 0-45.255l-160-160c-12.497-12.496-32.758-12.496-45.255 0s-12.497 32.758 0 45.255l105.373 105.373h-306.745c-17.673 0-32 14.327-32 32s14.327 32 32 32h306.745l-105.373 105.373c-6.248 6.248-9.372 14.438-9.372 22.627s3.124 16.379 9.372 22.627c12.497 12.497 32.758 12.497 45.255 0z" />
217    </svg>
218  `;default:return console.warn("Invalid icon name: "+this.type),a.nothing}}}t.DarkForestIcon=l,l.tagName="df-icon",l.styles=a.css`
219    :host {
220      width: 1em;
221      height: 1em;
222      display: inline-flex;
223      flex-direction: row;
224      justify-content: space-around;
225      align-items: center;
226    }
227
228    svg {
229      width: 100%;
230      height: 100%;
231    }
232
233    path {
234      fill: var(--df-icon-color, ${(0,a.unsafeCSS)(s.colors.text)});
235    }
236  `,l.properties={type:{type:String}}},function(e,t,n){"use strict";e.exports=function(e){var t=new e,n=t;return{get:function(){var r=t;return r.next?t=r.next:(t=new e,n=t),r.next=null,r},release:function(e){n.next=e,n=e}}}},function(e,t){function n(e,t,n){for(var r,i,o=t.length,a=[],s=o,l=-1,c=0;s--;)l=Math.max(e[t[s]+n],l);for(i=(l>>24?32:l>>16&&24)||l>>8&&16||8;c<i;c+=4){for(s=16;s--;)a[s]=[];for(s=o;s--;)a[e[t[s]+n]>>c&15].push(t[s]);for(r=0;r<16;r++)for(l=a[r].length;l--;)t[++s]=a[r][l]}}function r(e,t,n,r){return e[n]-e[r]||(n%3==2?e[n+1]-e[r+1]||t[n+2]-t[r+2]:t[n+1]-t[r+1])}function i(e,t){var o,a=[],s=[],l=2*t/3|0,c=t-l,u=l+1>>1,f=l,d=0,h=[],p=[];if(1===t)return[0];for(;f--;)a[f]=1+(3*f>>1);for(f=3;f--;)n(e,a,f);for(d=s[(a[0]/3|0)+(a[0]%3==1?0:u)]=1,f=1;f<l;f++)e[a[f]]===e[a[f-1]]&&e[a[f]+1]===e[a[f-1]+1]&&e[a[f]+2]===e[a[f-1]+2]||d++,s[(a[f]/3|0)+(a[f]%3==1?0:u)]=d;if(d<l)for(s=i(s,l),f=l;f--;)a[f]=s[f]<u?3*s[f]+1:3*(s[f]-u)+2;for(f=l;f--;)h[a[f]]=f;for(h[t]=-1,h[t+1]=-2,s=t%3==1?[t-1]:[],f=0;f<l;f++)a[f]%3==1&&s.push(a[f]-1);for(n(e,s,0),f=0,d=0,o=0;f<l&&d<c;)p[o++]=r(e,h,a[f],s[d])<0?a[f++]:s[d++];for(;f<l;)p[o++]=a[f++];for(;d<c;)p[o++]=s[d++];return p}function o(e){var t,n,r=e.length,i=r%3,o=new Array(r+i);if("string"!=typeof e){var a=Object.create(null);for(n=0;n<r;n++)a[e[n]]||(a[e[n]]=!0);var s=Object.create(null),l=Object.keys(a).sort();for(n=0,t=l.length;n<t;n++)s[l[n]]=n+1;for(n=0;n<r;n++)o[n]=s[e[n]]}else for(n=0;n<r;n++)o[n]=e.charCodeAt(n);for(;n<i;n++)o[n]=0;return o}function a(e){this.hasArbitrarySequence="string"!=typeof e,this.string=e,this.length=e.length,this.array=i(o(e),this.length)}function s(e){if(this.hasArbitrarySequence="string"!=typeof e[0],this.size=e.length,this.hasArbitrarySequence){this.text=[];for(var t=0,n=this.size;t<n;t++)this.text.push.apply(this.text,e[t]),t<n-1&&this.text.push("�")}else this.text=e.join("�");this.firstLength=e[0].length,this.length=this.text.length,this.array=i(o(this.text),this.length)}a.prototype.toString=function(){return this.array.join(",")},a.prototype.toJSON=function(){return this.array},a.prototype.inspect=function(){for(var e=new Array(this.length),t=0;t<this.length;t++)e[t]=this.string.slice(this.array[t]);return Object.defineProperty(e,"constructor",{value:a,enumerable:!1}),e},"undefined"!=typeof Symbol&&(a.prototype[Symbol.for("nodejs.util.inspect.custom")]=a.prototype.inspect),s.prototype.longestCommonSubsequence=function(){var e,t,n,r,i,o=this.hasArbitrarySequence?[]:"";for(t=1;t<this.length;t++)if(r=this.array[t],i=this.array[t-1],!(r<this.firstLength&&i<this.firstLength||r>this.firstLength&&i>this.firstLength)){for(e=Math.min(this.length-r,this.length-i),n=0;n<e;n++)if(this.text[r+n]!==this.text[i+n]){e=n;break}e>o.length&&(o=this.text.slice(r,r+e))}return o},s.prototype.toString=function(){return this.array.join(",")},s.prototype.toJSON=function(){return this.array},s.prototype.inspect=function(){for(var e=new Array(this.length),t=0;t<this.length;t++)e[t]=this.text.slice(this.array[t]);return Object.defineProperty(e,"constructor",{value:s,enumerable:!1}),e},"undefined"!=typeof Symbol&&(s.prototype[Symbol.for("nodejs.util.inspect.custom")]=s.prototype.inspect),a.GeneralizedSuffixArray=s,e.exports=a},function(e,t,n){var r=n(23);function i(e){this.size=0,this.items=new Map,this.inverse=e}function o(){this.size=0,this.items=new Map,this.inverse=new i(this)}function a(){this.size=0,this.items.clear(),this.inverse.items.clear()}function s(e,t){if(this.items.has(e)){var n=this.items.get(e);if(n===t)return this;this.inverse.items.delete(n)}if(this.inverse.items.has(t)){var r=this.inverse.items.get(t);if(r===e)return this;this.items.delete(r)}return this.items.set(e,t),this.inverse.items.set(t,e),this.size=this.items.size,this.inverse.size=this.inverse.items.size,this}function l(e){if(this.items.has(e)){var t=this.items.get(e);return this.items.delete(e),this.inverse.items.delete(t),this.size=this.items.size,this.inverse.size=this.inverse.items.size,!0}return!1}o.prototype.clear=a,i.prototype.clear=a,o.prototype.set=s,i.prototype.set=s,o.prototype.delete=l,i.prototype.delete=l;["has","get","forEach","keys","values","entries"].forEach((function(e){o.prototype[e]=i.prototype[e]=function(){return Map.prototype[e].apply(this.items,arguments)}})),"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.entries,i.prototype[Symbol.iterator]=i.prototype.entries),o.prototype.inspect=function(){var e={left:this.items,right:this.inverse.items};return Object.defineProperty(e,"constructor",{value:o,enumerable:!1}),e},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),i.prototype.inspect=function(){var e={left:this.inverse.items,right:this.items};return Object.defineProperty(e,"constructor",{value:i,enumerable:!1}),e},"undefined"!=typeof Symbol&&(i.prototype[Symbol.for("nodejs.util.inspect.custom")]=i.prototype.inspect),o.from=function(e){var t=new o;return r(e,(function(e,n){t.set(n,e)})),t},e.exports=o},function(e,t,n){var r=n(31),i=n(128);function o(e){this.length=e,this.clear()}o.prototype.clear=function(){this.size=0,this.array=new Uint32Array(Math.ceil(this.length/32))},o.prototype.set=function(e,t){var n,r=e>>5,i=31&e,o=this.array[r];return n=0===t||!1===t?this.array[r]&=~(1<<i):this.array[r]|=1<<i,(n>>>=0)>o?this.size++:n<o&&this.size--,this},o.prototype.reset=function(e){var t=e>>5,n=31&e,r=this.array[t];return(this.array[t]&=~(1<<n))<r&&this.size--,this},o.prototype.flip=function(e){var t=e>>5,n=31&e,r=this.array[t],i=this.array[t]^=1<<n;return(i>>>=0)>r?this.size++:i<r&&this.size--,this},o.prototype.get=function(e){var t=e>>5,n=31&e;return this.array[t]>>n&1},o.prototype.test=function(e){return Boolean(this.get(e))},o.prototype.rank=function(e){if(0===this.size)return 0;for(var t=e>>5,n=31&e,r=0,o=0;o<t;o++)r+=i.table8Popcount(this.array[o]);var a=this.array[t]&(1<<n)-1;return r+=i.table8Popcount(a)},o.prototype.select=function(e){if(0===this.size)return-1;if(e>=this.length)return-1;for(var t,n=32,r=0,i=0,o=0,a=this.array.length;o<a;o++)if(0!==(t=this.array[o])){o===a-1&&(n=this.length%32||32);for(var s=0;s<n;s++,r++)if((i+=t>>s&1)===e)return r}},o.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n,r,i=this.length,o=32,a=0,s=this.array.length;a<s;a++){n=this.array[a],a===s-1&&(o=i%32||32);for(var l=0;l<o;l++)r=n>>l&1,e.call(t,r,32*a+l)}},o.prototype.values=function(){var e,t=this.length,n=!1,i=this.array,o=i.length,a=0,s=-1,l=32;
236return new r((function r(){if(!n){if(a>=o)return{done:!0};a===o-1&&(l=t%32||32),e=i[a++],n=!0,s=-1}return++s>=l?(n=!1,r()):{value:e>>s&1}}))},o.prototype.entries=function(){var e,t,n=this.length,i=!1,o=this.array,a=o.length,s=0,l=-1,c=32;return new r((function r(){if(!i){if(s>=a)return{done:!0};s===a-1&&(c=n%32||32),e=o[s++],i=!0,l=-1}return l++,t=32*~-s+l,l>=c?(i=!1,r()):{value:[t,e>>l&1]}}))},"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.values),o.prototype.inspect=function(){var e=new Uint8Array(this.length);return this.forEach((function(t,n){e[n]=t})),Object.defineProperty(e,"constructor",{value:o,enumerable:!1}),e},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),o.prototype.toJSON=function(){return Array.from(this.array)},e.exports=o},function(e,t,n){var r=n(31),i=n(128),o=function(e){return Math.max(1,Math.ceil(1.5*e))};function a(e){var t,n=e||0,r=o;"object"==typeof e&&(n=e.initialLength||e.initialCapacity||0,r=e.policy||r),this.size=0,this.length=n,this.capacity=32*Math.ceil(this.length/32),this.policy=r,this.array=(t=this.capacity,new Uint32Array(Math.ceil(t/32)))}a.prototype.set=function(e,t){if(this.length<e)throw new Error("BitVector.set: index out of bounds.");var n,r=e>>5,i=31&e,o=this.array[r];return n=0===t||!1===t?this.array[r]&=~(1<<i):this.array[r]|=1<<i,(n>>>=0)>o?this.size++:n<o&&this.size--,this},a.prototype.reset=function(e){var t=e>>5,n=31&e,r=this.array[t];return(this.array[t]&=~(1<<n))<r&&this.size--,this},a.prototype.flip=function(e){var t=e>>5,n=31&e,r=this.array[t],i=this.array[t]^=1<<n;return(i>>>=0)>r?this.size++:i<r&&this.size--,this},a.prototype.applyPolicy=function(e){var t=this.policy(e||this.capacity);if("number"!=typeof t||t<0)throw new Error("mnemonist/bit-vector.applyPolicy: policy returned an invalid value (expecting a positive integer).");if(t<=this.capacity)throw new Error("mnemonist/bit-vector.applyPolicy: policy returned a less or equal capacity to allocate.");return 32*Math.ceil(t/32)},a.prototype.reallocate=function(e){var t=e;if(e=32*Math.ceil(e/32),t<this.length&&(this.length=t),e===this.capacity)return this;var n=this.array,r=e/32;return r===this.array.length||(r>this.array.length?(this.array=new Uint32Array(r),this.array.set(n,0)):this.array=n.slice(0,r),this.capacity=e),this},a.prototype.grow=function(e){var t;if("number"==typeof e){if(this.capacity>=e)return this;for(t=this.capacity;t<e;)t=this.applyPolicy(t);return this.reallocate(t),this}return t=this.applyPolicy(),this.reallocate(t),this},a.prototype.resize=function(e){return e===this.length?this:e<this.length?(this.length=e,this):(this.length=e,this.reallocate(e),this)},a.prototype.push=function(e){if(this.capacity===this.length&&this.grow(),0===e||!1===e)return++this.length;this.size++;var t=this.length++,n=t>>5,r=31&t;return this.array[n]|=1<<r,this.length},a.prototype.pop=function(){if(0!==this.length){var e=--this.length,t=e>>5,n=31&e;return this.array[t]>>n&1}},a.prototype.get=function(e){if(!(this.length<e)){var t=e>>5,n=31&e;return this.array[t]>>n&1}},a.prototype.test=function(e){return!(this.length<e)&&Boolean(this.get(e))},a.prototype.rank=function(e){if(0===this.size)return 0;for(var t=e>>5,n=31&e,r=0,o=0;o<t;o++)r+=i.table8Popcount(this.array[o]);var a=this.array[t]&(1<<n)-1;return r+=i.table8Popcount(a)},a.prototype.select=function(e){if(0===this.size)return-1;if(e>=this.length)return-1;for(var t,n=32,r=0,i=0,o=0,a=this.array.length;o<a;o++)if(0!==(t=this.array[o])){o===a-1&&(n=this.length%32||32);for(var s=0;s<n;s++,r++)if((i+=t>>s&1)===e)return r}},a.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n,r,i=this.length,o=32,a=0,s=this.array.length;a<s;a++){n=this.array[a],a===s-1&&(o=i%32||32);for(var l=0;l<o;l++)r=n>>l&1,e.call(t,r,32*a+l)}},a.prototype.values=function(){var e,t=this.length,n=!1,i=this.array,o=i.length,a=0,s=-1,l=32;return new r((function r(){if(!n){if(a>=o)return{done:!0};a===o-1&&(l=t%32||32),e=i[a++],n=!0,s=-1}return++s>=l?(n=!1,r()):{value:e>>s&1}}))},a.prototype.entries=function(){var e,t,n=this.length,i=!1,o=this.array,a=o.length,s=0,l=-1,c=32;return new r((function r(){if(!i){if(s>=a)return{done:!0};s===a-1&&(c=n%32||32),e=o[s++],i=!0,l=-1}return l++,t=32*~-s+l,l>=c?(i=!1,r()):{value:[t,e>>l&1]}}))},"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=a.prototype.values),a.prototype.inspect=function(){var e=new Uint8Array(this.length);return this.forEach((function(t,n){e[n]=t})),Object.defineProperty(e,"constructor",{value:a,enumerable:!1}),e},"undefined"!=typeof Symbol&&(a.prototype[Symbol.for("nodejs.util.inspect.custom")]=a.prototype.inspect),a.prototype.toJSON=function(){return Array.from(this.array.slice(0,1+(this.length>>5)))},e.exports=a}
236,function(e,t,n){var r=n(244),i=n(23),o=Math.LN2*Math.LN2,a=.005;function s(e){var t,n,r=new Uint16Array(e.length);for(t=0,n=e.length;t<n;t++)r[t]=e.charCodeAt(t);return r}function l(e,t,n){return r(4221880213*t&4294967295,n)%(8*e)}function c(e){var t={};if(!e)throw new Error("mnemonist/BloomFilter.constructor: a BloomFilter must be created with a capacity.");if("object"==typeof e?t=e:t.capacity=e,"number"!=typeof t.capacity||t.capacity<=0)throw new Error("mnemonist/BloomFilter.constructor: `capacity` option should be a positive integer.");if(this.capacity=t.capacity,this.errorRate=t.errorRate||a,"number"!=typeof this.errorRate||t.errorRate<=0)throw new Error("mnemonist/BloomFilter.constructor: `errorRate` option should be a positive float.");this.clear()}c.prototype.clear=function(){var e=-1/o*this.capacity*Math.log(this.errorRate)/8|0;this.hashFunctions=8*e/this.capacity*Math.LN2|0,this.data=new Uint8Array(e)},c.prototype.add=function(e){for(var t=s(e),n=0,r=this.hashFunctions;n<r;n++){var i=l(this.data.length,n,t),o=1<<(7&i);this.data[i>>3]|=o}return this},c.prototype.test=function(e){for(var t=s(e),n=0,r=this.hashFunctions;n<r;n++){var i=l(this.data.length,n,t);if(!(this.data[i>>3]&1<<(7&i)))return!1}return!0},c.prototype.toJSON=function(){return this.data},c.from=function(e,t){if(!t&&"number"!=typeof(t=e.length||e.size))throw new Error("BloomFilter.from: could not infer the filter's capacity. Try passing it as second argument.");var n=new c(t);return i(e,(function(e){n.add(e)})),n},e.exports=c},function(e,t){function n(e,t){return(65535&e)*t+(((e>>>16)*t&65535)<<16)&4294967295}function r(e,t){return e<<t|e>>>32-t}e.exports=function(e,t){var i,o,a,s,l,c=3432918353,u=461845907,f=e;for(o=0,a=t.length-4;o<=a;o+=4)i=n(i=t[o]|t[o+1]<<8|t[o+2]<<16|t[o+3]<<24,c),i=n(i=r(i,15),u),f=n(f=r(f^=i,13),5),f=(65535&(s=f))+((l=1801774676)>>>16)+(((s>>>16)+l&65535)<<16)&4294967295;switch(i=0,3&t.length){case 3:i^=t[o+2]<<16;case 2:i^=t[o+1]<<8;case 1:i=n(i^=t[o],c),f^=i=n(i=r(i,15),u)}return f^=t.length,f=n(f^=f>>>16,2246822507),f=n(f^=f>>>13,3266489909),(f^=f>>>16)>>>0}},function(e,t,n){var r=n(23);function i(e){if("function"!=typeof e)throw new Error("mnemonist/BKTree.constructor: given `distance` should be a function.");this.distance=e,this.clear()}i.prototype.add=function(e){if(!this.root)return this.root={item:e,children:{}},this.size++,this;for(var t,n=this.root;t=this.distance(e,n.item),n.children[t];)n=n.children[t];return n.children[t]={item:e,children:{}},this.size++,this},i.prototype.search=function(e,t){if(!this.root)return[];for(var n,r,i,o,a,s=[],l=[this.root];l.length;)for(n=l.pop(),(i=this.distance(t,n.item))<=e&&s.push({item:n.item,distance:i}),o=i-e,a=i+e+1;o<a;o++)(r=n.children[o])&&l.push(r);return s},i.prototype.clear=function(){this.size=0,this.root=null},i.prototype.toJSON=function(){return this.root},i.prototype.inspect=function(){for(var e,t,n=[],r=[this.root];r.length;)if(e=r.pop())for(t in n.push(e.item),e.children)r.push(e.children[t]);return Object.defineProperty(n,"constructor",{value:i,enumerable:!1}),n},"undefined"!=typeof Symbol&&(i.prototype[Symbol.for("nodejs.util.inspect.custom")]=i.prototype.inspect),i.from=function(e,t){var n=new i(t);return r(e,(function(e){n.add(e)})),n},e.exports=i},function(e,t){function n(e){if("function"!=typeof e)throw new Error("mnemonist/DefaultMap.constructor: expecting a function.");this.items=new Map,this.factory=e,this.size=0}n.prototype.clear=function(){this.items.clear(),this.size=0},n.prototype.get=function(e){var t=this.items.get(e);return void 0===t&&(t=this.factory(e,this.size),this.items.set(e,t),this.size++),t},n.prototype.peek=function(e){return this.items.get(e)},n.prototype.set=function(e,t){return this.items.set(e,t),this.size=this.items.size,this},n.prototype.has=function(e){return this.items.has(e)},n.prototype.delete=function(e){var t=this.items.delete(e);return this.size=this.items.size,t},n.prototype.forEach=function(e,t){t=arguments.length>1?t:this,this.items.forEach(e,t)},n.prototype.entries=function(){return this.items.entries()},n.prototype.keys=function(){return this.items.keys()},n.prototype.values=function(){return this.items.values()},"undefined"!=typeof Symbol&&(n.prototype[Symbol.iterator]=n.prototype.entries),n.prototype.inspect=function(){return this.items},"undefined"!=typeof Symbol&&(n.prototype[Symbol.for("nodejs.util.inspect.custom")]=n.prototype.inspect),n.autoIncrement=function(){var e=0;return function(){return e++}},e.exports=n},function(e,t){function n(e){if("function"!=typeof e)throw new Error("mnemonist/DefaultWeakMap.c
236onstructor: expecting a function.");this.items=new WeakMap,this.factory=e}n.prototype.clear=function(){this.items=new WeakMap},n.prototype.get=function(e){var t=this.items.get(e);return void 0===t&&(t=this.factory(e),this.items.set(e,t)),t},n.prototype.peek=function(e){return this.items.get(e)},n.prototype.set=function(e,t){return this.items.set(e,t),this},n.prototype.has=function(e){return this.items.has(e)},n.prototype.delete=function(e){return this.items.delete(e)},n.prototype.inspect=function(){return this.items},"undefined"!=typeof Symbol&&(n.prototype[Symbol.for("nodejs.util.inspect.custom")]=n.prototype.inspect),e.exports=n},function(e,t,n){var r=n(43);function i(e){var t=r.getPointerArray(e),n=r.getPointerArray(Math.log2(e));this.size=e,this.dimension=e,this.parents=new t(e),this.ranks=new n(e);for(var i=0;i<e;i++)this.parents[i]=i}i.prototype.find=function(e){for(var t,n,r=e;r!==(t=this.parents[r]);)r=t;for(;(n=this.parents[e])!==r;)this.parents[e]=r,e=n;return r},i.prototype.union=function(e,t){var n=this.find(e),r=this.find(t);if(n===r)return this;this.dimension--;var i=this.ranks[e],o=this.ranks[t];return i<o?this.parents[n]=r:i>o?this.parents[r]=n:(this.parents[r]=n,this.ranks[n]++),this},i.prototype.connected=function(e,t){return this.find(e)===this.find(t)},i.prototype.mapping=function(){for(var e,t={},n=new(r.getPointerArray(this.dimension))(this.size),i=0,o=0,a=this.parents.length;o<a;o++)void 0===t[e=this.find(o)]?(n[o]=i,t[e]=i++):n[o]=t[e];return n},i.prototype.compile=function(){for(var e,t={},n=new Array(this.dimension),r=0,i=0,o=this.parents.length;i<o;i++)void 0===t[e=this.find(i)]?(n[r]=[i],t[e]=r++):n[t[e]].push(i);return n},i.prototype.inspect=function(){var e=this.compile();return Object.defineProperty(e,"constructor",{value:i,enumerable:!1}),e},"undefined"!=typeof Symbol&&(i.prototype[Symbol.for("nodejs.util.inspect.custom")]=i.prototype.inspect),e.exports=i},function(e,t,n){var r=n(23),i=function(e){return e};function o(e){if(this.items=new Map,this.clear(),Array.isArray(e)?(this.writeHashFunction=e[0],this.readHashFunction=e[1]):(this.writeHashFunction=e,this.readHashFunction=e),this.writeHashFunction||(this.writeHashFunction=i),this.readHashFunction||(this.readHashFunction=i),"function"!=typeof this.writeHashFunction)throw new Error("mnemonist/FuzzyMap.constructor: invalid hash function given.");if("function"!=typeof this.readHashFunction)throw new Error("mnemonist/FuzzyMap.constructor: invalid hash function given.")}o.prototype.clear=function(){this.items.clear(),this.size=0},o.prototype.add=function(e){var t=this.writeHashFunction(e);return this.items.set(t,e),this.size=this.items.size,this},o.prototype.set=function(e,t){return e=this.writeHashFunction(e),this.items.set(e,t),this.size=this.items.size,this},o.prototype.get=function(e){return e=this.readHashFunction(e),this.items.get(e)},o.prototype.has=function(e){return e=this.readHashFunction(e),this.items.has(e)},o.prototype.forEach=function(e,t){t=arguments.length>1?t:this,this.items.forEach((function(n){e.call(t,n,n)}))},o.prototype.values=function(){return this.items.values()},"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.values),o.prototype.inspect=function(){var e=Array.from(this.items.values());return Object.defineProperty(e,"constructor",{value:o,enumerable:!1}),e},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),o.from=function(e,t,n){var i=new o(t);return r(e,(function(e,t){n?i.set(t,e):i.add(e)})),i},e.exports=o},function(e,t,n){var r=n(129),i=n(23),o=function(e){return e};function a(e,t){if(this.items=new r(t),this.clear(),Array.isArray(e)?(this.writeHashFunction=e[0],this.readHashFunction=e[1]):(this.writeHashFunction=e,this.readHashFunction=e),this.writeHashFunction||(this.writeHashFunction=o),this.readHashFunction||(this.readHashFunction=o),"function"!=typeof this.writeHashFunction)throw new Error("mnemonist/FuzzyMultiMap.constructor: invalid hash function given.");if("function"!=typeof this.readHashFunction)throw new Error("mnemonist/FuzzyMultiMap.constructor: invalid hash function given.")}a.prototype.clear=function(){this.items.clear(),this.size=0,this.dimension=0},a.prototype.add=function(e){var t=this.writeHashFunction(e);return this.items.set(t,e),this.size=this.items.size,this.dimension=this.items.dimension,this},a.prototype.set=function(e,t){return e=this.writeHashFunction(e),this.items.set(e,t),this.size=this.items.size,this.dimension=this.items.dimension,this},a.prototype.get=function(e){return e=this.readHashFunction(e),this.items.get(e)},a.prototype.has=function(e){return e=this.readHashFunction(e),this.items.has(e)},a.prototype.forEach=function(e,t){t=arguments.length>
2361?t:this,this.items.forEach((function(n){e.call(t,n,n)}))},a.prototype.values=function(){return this.items.values()},"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=a.prototype.values),a.prototype.inspect=function(){var e=Array.from(this);return Object.defineProperty(e,"constructor",{value:a,enumerable:!1}),e},"undefined"!=typeof Symbol&&(a.prototype[Symbol.for("nodejs.util.inspect.custom")]=a.prototype.inspect),a.from=function(e,t,n,r){3===arguments.length&&"boolean"==typeof n&&(r=n,n=Array);var o=new a(t,n);return i(e,(function(e,t){r?o.set(t,e):o.add(e)})),o},e.exports=a},function(e,t){function n(e){return 0==(e&e-1)}function r(e,t){if(arguments.length<1)throw new Error("mnemonist/hashed-array-tree: expecting at least a byte array constructor.");var r=t||0,i=1024,o=0;if("object"==typeof t&&(r=t.initialCapacity||0,o=t.initialLength||0,i=t.blockSize||1024),!i||!n(i))throw new Error("mnemonist/hashed-array-tree: block size should be a power of two.");var a=Math.max(o,r),s=Math.ceil(a/i);this.ArrayClass=e,this.length=o,this.capacity=s*i,this.blockSize=i,this.offsetMask=i-1,this.blockMask=Math.log2(i),this.blocks=new Array(s);for(var l=0;l<s;l++)this.blocks[l]=new this.ArrayClass(this.blockSize)}r.prototype.set=function(e,t){if(this.length<e)throw new Error("HashedArrayTree("+this.ArrayClass.name+").set: index out of bounds.");var n=e>>this.blockMask,r=e&this.offsetMask;return this.blocks[n][r]=t,this},r.prototype.get=function(e){if(!(this.length<e)){var t=e>>this.blockMask,n=e&this.offsetMask;return this.blocks[t][n]}},r.prototype.grow=function(e){if("number"!=typeof e&&(e=this.capacity+this.blockSize),this.capacity>=e)return this;for(;this.capacity<e;)this.blocks.push(new this.ArrayClass(this.blockSize)),this.capacity+=this.blockSize;return this},r.prototype.resize=function(e){return e===this.length?this:e<this.length?(this.length=e,this):(this.length=e,this.grow(e),this)},r.prototype.push=function(e){this.capacity===this.length&&this.grow();var t=this.length,n=t>>this.blockMask,r=t&this.offsetMask;return this.blocks[n][r]=e,++this.length},r.prototype.pop=function(){if(0!==this.length)return this.blocks[this.blocks.length-1][--this.length&this.offsetMask]},r.prototype.inspect=function(){for(var e,t=new this.ArrayClass(this.length),n=0,i=this.length;n<i;n++)e=n>>this.blockMask,t[n]=this.blocks[e][n&this.offsetMask];return t.type=this.ArrayClass.name,t.items=this.length,t.capacity=this.capacity,t.blockSize=this.blockSize,Object.defineProperty(t,"constructor",{value:r,enumerable:!1}),t},"undefined"!=typeof Symbol&&(r.prototype[Symbol.for("nodejs.util.inspect.custom")]=r.prototype.inspect),e.exports=r},function(e,t,n){var r=n(47),i=n(43),o=n(130);function a(e,t){this.size=e.length,this.intervals=e;var n=null,r=null;Array.isArray(t)&&(n=t[0],r=t[1]);var a,s=e.length,l=i.getPointerArray(s+1),c=new l(s);for(a=1;a<s;a++)c[a]=a;c.sort((function(t,r){return t=e[t],r=e[r],n?(t=n(t),r=n(r)):(t=t[0],r=r[0]),t<r?-1:t>r?1:0}));var u=Math.ceil(Math.log2(s+1)),f=new l(Math.pow(2,u)-1),d=new l(s);!function e(t,n,r,i,o,a,s,l){var c=s+(l-s)/2|0,u=~-c,f=-~c,d=r[c];i[a]=d+1;var h=n?n(t[d]):t[d][1],p=2*a+1,m=2*a+2,g=-1/0,v=-1/0;s<=u&&(g=e(t,n,r,i,o,p,s,u)),f<=l&&(v=e(t,n,r,i,o,m,f,l));var y=Math.max(h,g,v),b=d;return y===g?b=o[i[p]-1]:y===v&&(b=o[i[m]-1]),o[d]=b,y}(e,r,c,f,d,0,0,s-1),c=null,this.height=u,this.tree=f,this.augmentations=d,this.startGetter=n,this.endGetter=r,this.stack=new o(l,this.height)}a.prototype.intervalsContainingPoint=function(e){var t=[],n=this.stack;n.clear(),n.push(0);for(var r,i,o,a,s,l,c,u,f=this.tree.length;n.size;)r=n.pop(),i=this.tree[r]-1,o=this.intervals[i],a=this.intervals[this.augmentations[i]],e>(this.endGetter?this.endGetter(a):a[1])||((c=2*r+1)<f&&0!==this.tree[c]&&n.push(c),s=this.startGetter?this.startGetter(o):o[0],l=this.endGetter?this.endGetter(o):o[1],e>=s&&e<=l&&t.push(o),e<s||(u=2*r+2)<f&&0!==this.tree[u]&&n.push(u));return t},a.prototype.intervalsOverlappingInterval=function(e){var t=this.startGetter?this.startGetter(e):e[0],n=this.endGetter?this.endGetter(e):e[1],r=[],i=this.stack;i.clear(),i.push(0);for(var o,a,s,l,c,u,f,d,h=this.tree.length;i.size;)o=i.pop(),a=this.tree[o]-1,s=this.intervals[a],l=this.intervals[this.augmentations[a]],t>(this.endGetter?this.endGetter(l):l[1])||((f=2*o+1)<h&&0!==this.tree[f]&&i.push(f),c=this.startGetter?this.startGetter(s):s[0],u=this.endGetter?this.endGetter(s):s[1],n>=c&&t<=u&&r.push(s),n<c||(d=2*o+2)<h&&0!==this.tree[d]&&i.push(d));return r},a.prototype.inspect=function(){var e=this.intervals.slice();return Object.defineProperty(e,"constructor",{value:a,enumerable:!1}),e},"undefined"!=typeof Symbol&&(a.prototype[Symbol.for("nodejs.util.inspect.custom")]=a.prototype.inspect),a.from=function(e,t){return r.isArrayLike(e)?new a(e,t):new a(Array.from(e),t)},e.exports=a},function(e,t,n){var r=n(31),i=n(23),o=n(254);function a(e){return e}function s(e){if(this.clear(),Array.isArray(e)?(this.documentTokenizer=e[0],this.queryTokenizer=e[1]):(this.documentTokenizer=e,this.queryTokenizer=e),this.documentTokenizer||(this.documentTokenizer=a),this.queryTokenizer||(this.queryTokenizer=a),"function"!=typeof this.documentTokenizer)throw new Error("mnemonist/InvertedIndex.constructor: document tokenizer is not a function.");
236if("function"!=typeof this.queryTokenizer)throw new Error("mnemonist/InvertedIndex.constructor: query tokenizer is not a function.")}s.prototype.clear=function(){this.items=[],this.mapping=new Map,this.size=0,this.dimension=0},s.prototype.add=function(e){this.size++;var t=this.items.length;this.items.push(e);var n=this.documentTokenizer(e);if(!Array.isArray(n))throw new Error("mnemonist/InvertedIndex.add: tokenizer function should return an array of tokens.");for(var r,i,o=new Set,a=0,s=n.length;a<s;a++)r=n[a],o.has(r)||(o.add(r),(i=this.mapping.get(r))||(i=[],this.mapping.set(r,i)),i.push(t));return this.dimension=this.mapping.size,this},s.prototype.get=function(e){if(!this.size)return[];var t=this.queryTokenizer(e);if(!Array.isArray(t))throw new Error("mnemonist/InvertedIndex.query: tokenizer function should return an array of tokens.");if(!t.length)return[];var n,r,i,a=this.mapping.get(t[0]);if(void 0===a||0===a.length)return[];if(t.length>1)for(r=1,i=t.length;r<i;r++){if(void 0===(n=this.mapping.get(t[r]))||0===n.length)return[];a=o.intersectionUniqueArrays(a,n)}var s=new Array(a.length);for(r=0,i=s.length;r<i;r++)s[r]=this.items[a[r]];return s},s.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.documents.length;n<r;n++)e.call(t,this.documents[n],n,this)},s.prototype.documents=function(){var e=this.items,t=e.length,n=0;return new r((function(){return n>=t?{done:!0}:{value:e[n++],done:!1}}))},s.prototype.tokens=function(){return this.mapping.keys()},"undefined"!=typeof Symbol&&(s.prototype[Symbol.iterator]=s.prototype.documents),s.prototype.inspect=function(){var e=this.items.slice();return Object.defineProperty(e,"constructor",{value:s,enumerable:!1}),e},"undefined"!=typeof Symbol&&(s.prototype[Symbol.for("nodejs.util.inspect.custom")]=s.prototype.inspect),s.from=function(e,t){var n=new s(t);return i(e,(function(e){n.add(e)})),n},e.exports=s},function(e,t,n){var r=n(43),i=n(47).isArrayLike,o=n(131),a=n(127);function s(e,t){if(0===e.length)return t.slice();if(0===t.length)return e.slice();var n;e[0]>t[0]&&(n=e,e=t,t=n);var i=e[e.length-1],o=t[0];if(i<=o)return r.isTypedArray(e)?r.concat(e,t):e.concat(t);var a,s,l,c=new e.constructor(e.length+t.length);for(a=0,s=e.length;a<s&&(l=e[a])<=o;a++)c[a]=l;for(var u,f,d=a,h=e.length,p=0,m=t.length;d<h&&p<m;)(u=e[d])<=(f=t[p])?(c[a++]=u,d++):(c[a++]=f,p++);for(;d<h;)c[a++]=e[d++];for(;p<m;)c[a++]=t[p++];return c}function l(e,t){if(0===e.length)return t.slice();if(0===t.length)return e.slice();var n;e[0]>t[0]&&(n=e,e=t,t=n);var i=e[e.length-1],o=t[0];if(i<o)return r.isTypedArray(e)?r.concat(e,t):e.concat(t);var a,s,l,c=new e.constructor;for(a=0,s=e.length;a<s&&(l=e[a])<o;a++)c.push(l);for(var u,f,d=a,h=e.length,p=0,m=t.length;d<h&&p<m;)(u=e[d])<=(f=t[p])?(0!==c.length&&c[c.length-1]===u||c.push(u),d++):(0!==c.length&&c[c.length-1]===f||c.push(f),p++);for(;d<h;)u=e[d++],0!==c.length&&c[c.length-1]===u||c.push(u);for(;p<m;)f=t[p++],0!==c.length&&c[c.length-1]===f||c.push(f);return c}function c(e){var t,n,i,o=0,l=-1/0,c=[];for(n=0,i=e.length;n<i;n++)0!==(t=e[n].length)&&(c.push(e[n]),o+=t,t>l&&(l=t));if(0===c.length)return new e[0].constructor(0);if(1===c.length)return c[0].slice();if(2===c.length)return s(c[0],c[1]);var u,f,d=new(e=c)[0].constructor(o),h=new(r.getPointerArray(l))(e.length),p=new a((function(t,n){return(t=e[t][h[t]])<(n=e[n][h[n]])?-1:t>n?1:0}));for(n=0;n<i;n++)p.push(n);for(n=0;p.size;)u=p.pop(),f=e[u][h[u]++],d[n++]=f,h[u]<e[u].length&&p.push(u);return d}function u(e){var t,n,i,o=-1/0,s=[];for(n=0,i=e.length;n<i;n++)0!==(t=e[n].length)&&(s.push(e[n]),t>o&&(o=t));if(0===s.length)return new e[0].constructor(0);if(1===s.length)return s[0].slice();if(2===s.length)return l(s[0],s[1]);var c,u,f=new(e=s)[0].constructor,d=new(r.getPointerArray(o))(e.length),h=new a((function(t,n){return(t=e[t][d[t]])<(n=e[n][d[n]])?-1:t>n?1:0}));for(n=0;n<i;n++)h.push(n);for(;h.size;)c=h.pop(),u=e[c][d[c]++],0!==f.length&&f[f.length-1]===u||f.push(u),d[c]<e[c].length&&h.push(c);return f}t.intersectionUniqueArrays=function(e,t){if(0===e.length||0===t.length)return new e.constructor(0);var n;e[0]>t[0]&&(n=e,e=t,t=n);var r=e[e.length-1],i=t[0];if(r<i)return new e.constructor(0);for(var a,s,l=new e.constructor,c=o.lowerBound(e,i),u=e.length,f=0,d=o.upperBound(t,r);c<u&&f<d;)(a=e[c])<(s=t[f])?c=o.lowerBound(e,s,c+1):a>s?f=o.lowerBound(t,a,f+1):(l.push(a),c++,f++);return l},t.kWayIntersectionUniqueArrays=function(e){var t,n,r,i,a,s=-1/0,l=-1/0,c=1/0;for(i=0,a=e.length;i<a;i++){if(0===(r=e[i].length))return[];r>s&&(s=r),(t=e[i][0])>l&&(l=t),(n=e[i][r-1])<c&&(c=n)}if(l>c)return[];if(l===c)return[l];var u,f,d,h,p,m,g,v,y=e[0],b=l;for(i=1;i<a;i++){for(u=y,f=e[i],y=new Array,d=0,h=o.lowerBound(f,b),p=u.length,m=f.length;d<p&&h<m;)(g=u[d])<(v=f[h])?d=o.lowerBound(u,v,d+1):g>v?h=o.lowerBound(f,g,h+1):(y.push(g),d++,h++);if(0===y.length)return y;b=y[0]}return y},t.merge=function(){if(2===arguments.length){if(i(arguments[0]))return s(arguments[0],arguments[1])}else if(i(arguments[0]))return c(arguments);return null},t.unionUnique=function(){if(2===arguments.length){if(i(arguments[0]))return l(arguments[0],arguments[1])}else if(i(arguments[0]))return u(arguments);return null},t.intersectionUnique=function(){if(2===arguments.length){if(i(arguments[0]))return t.intersectionUniqueArrays(arguments[0],arguments[1])}else if(i(arguments[0]))return t.kWayIntersectionUniqueArrays(arguments);return null}},function(e,t,n){var r=n(47),i=n(43),o=n(75).createTupleComparator,a=n(93),s=n(132).inplaceQuickSortIndices;function l(e,t,n,r){var i,o,a=0;for(i=0;i<e;i++)a+=(o=t[i][n]-r[i])*o;return a}function c(e,t,n,r){for(var o,a,l,c,u,f,d,h,p=r.length,m=i.getPointerArray(p+1),g=new m(p),v=new m(p),y=new m(p),b=[[0,0,n.length,-1,0]],w=0;0!==b.length;)h=(o=b.pop())[0],f=o[1],d=o[2],a=o[3],l=o[4],s(t[h],n,f,d),u=n[c=f+((p=d-f)>>>1)],g[w]=u,a>
236-1&&(0===l?v[a]=w+1:y[a]=w+1),h=(h+1)%e,c!==f&&c!==d-1&&b.push([h,c+1,d,w,1]),c!==f&&b.push([h,f,c,w,0]),w++;return{axes:t,labels:r,pivots:g,lefts:v,rights:y}}function u(e,t){this.dimensions=e,this.visited=0,this.axes=t.axes,this.labels=t.labels,this.pivots=t.pivots,this.lefts=t.lefts,this.rights=t.rights,this.size=this.labels.length}u.prototype.nearestNeighbor=function(e){var t=1/0,n=null,r=this.dimensions,i=this.axes,o=this.pivots,a=this.lefts,s=this.rights,c=0;return function u(f,d){c++;var h=a[d],p=s[d],m=o[d],g=l(r,i,m,e);if(!(g<t&&(n=m,t=g,0===g))){var v=i[f][m]-e[f];f=(f+1)%r,v>0?0!==h&&u(f,h-1):0!==p&&u(f,p-1),v*v<t&&(v>0?0!==p&&u(f,p-1):0!==h&&u(f,h-1))}}(0,0),this.visited=c,this.labels[n]};var f=o(3),d=o(2);u.prototype.kNearestNeighbors=function(e,t){if(e<=0)throw new Error("mnemonist/kd-tree.kNearestNeighbors: k should be a positive number.");if(1===(e=Math.min(e,this.size)))return[this.nearestNeighbor(t)];var n=new a(Array,f,e),r=this.dimensions,i=this.axes,o=this.pivots,s=this.lefts,c=this.rights,u=0;!function a(f,d){var h=s[d],p=c[d],m=o[d],g=l(r,i,m,t);n.push([g,u++,m]);var v=t[f],y=i[f][m],b=v-y;f=(f+1)%r,v<y?0!==h&&a(f,h-1):0!==p&&a(f,p-1),(b*b<n.peek()[0]||n.size<e)&&(v<y?0!==p&&a(f,p-1):0!==h&&a(f,h-1))}(0,0),this.visited=u;for(var d=n.consume(),h=0;h<d.length;h++)d[h]=this.labels[d[h][2]];return d},u.prototype.linearKNearestNeighbors=function(e,t){if(e<=0)throw new Error("mnemonist/kd-tree.kNearestNeighbors: k should be a positive number.");e=Math.min(e,this.size);var n,r,i,o=new a(Array,d,e);for(n=0,r=this.size;n<r;n++)i=l(this.dimensions,this.axes,this.pivots[n],t),o.push([i,n]);var s=o.consume();for(n=0;n<s.length;n++)s[n]=this.labels[this.pivots[s[n][1]]];return s},u.prototype.inspect=function(){var e,t,n,r=new Map;for(r.dimensions=this.dimensions,Object.defineProperty(r,"constructor",{value:u,enumerable:!1}),e=0;e<this.size;e++){for(n=new Array(this.dimensions),t=0;t<this.dimensions;t++)n[t]=this.axes[t][e];r.set(this.labels[e],n)}return r},"undefined"!=typeof Symbol&&(u.prototype[Symbol.for("nodejs.util.inspect.custom")]=u.prototype.inspect),u.from=function(e,t){var n=function(e,t){var n,r,o,a,s=t.length,l=new Array(e),c=new Array(s),u=new(i.getPointerArray(s))(s),f=!0;for(r=0;r<e;r++){for(n=new Float64Array(s),o=0;o<s;o++)a=t[o],n[o]=a[1][r],f&&(c[o]=a[0],u[o]=o);f=!1,l[r]=n}return{axes:l,ids:u,labels:c}}(t,r.toArray(e));return new u(t,c(t,n.axes,n.ids,n.labels))},u.fromAxes=function(e,t){return t||(t=i.indices(e[0].length)),new u(e.length,c(e.length,e,i.indices(t.length),t))},e.exports=u},function(e,t,n){var r=n(31),i=n(23);function o(){this.clear()}o.prototype.clear=function(){this.head=null,this.tail=null,this.size=0},o.prototype.first=function(){return this.head?this.head.item:void 0},o.prototype.peek=o.prototype.first,o.prototype.last=function(){return this.tail?this.tail.item:void 0},o.prototype.push=function(e){var t={item:e,next:null};return this.head?(this.tail.next=t,this.tail=t):(this.head=t,this.tail=t),this.size++,this.size},o.prototype.unshift=function(e){var t={item:e,next:null};return this.head?(this.head.next||(this.tail=this.head),t.next=this.head,this.head=t):(this.head=t,this.tail=t),this.size++,this.size},o.prototype.shift=function(){if(this.size){var e=this.head;return this.head=e.next,this.size--,e.item}},o.prototype.forEach=function(e,t){if(this.size){t=arguments.length>1?t:this;for(var n=this.head,r=0;n;)e.call(t,n.item,r,this),n=n.next,r++}},o.prototype.toArray=function(){if(!this.size)return[];for(var e=new Array(this.size),t=0,n=this.size,r=this.head;t<n;t++)e[t]=r.item,r=r.next;return e},o.prototype.values=function(){var e=this.head;return new r((function(){if(!e)return{done:!0};var t=e.item;return e=e.next,{value:t,done:!1}}))},o.prototype.entries=function(){var e=this.head,t=0;return new r((function(){if(!e)return{done:!0};var n=e.item;return e=e.next,{value:[++t-1,n],done:!1}}))},"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.values),o.prototype.toString=function(){return this.toArray().join(",")},o.prototype.toJSON=function(){return this.toArray()},o.prototype.inspect=function(){var e=this.toArray();return Object.defineProperty(e,"constructor",{value:o,enumerable:!1}),e},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),o.from=function(e){var t=new o;return i(e,(function(e){t.push(e)})),t},e.exports=o},function(e,t,n){var r=n(133),i=n(23),o=n(43),a=n(47);function s(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,"number"!=typeof this.capacity||this.capacity<=0)throw new Error("mnemonist/lru-map: capacity should be positive number.");if(!isFinite(this.capacity)||Math.floor(this.capacity)!==this.capacity)throw new Error("mnemonist/lru-map: capacity should be a finite positive integer.");var r=o.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K="function"==typeof e?new e(n):new Array(n),this.V="function"==typeof t?new t(n):new Array(n),this.size=0,this.head=0,this.tail=0,this.items=new Map}s.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items.clear()},s.prototype.set=function(e,t){var n=this.items.get(e);if(void 0!==n)return this.splayOnTop(n),void(this.V[n]=t);this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],this.items.delete(this.K[n])),this.items.set(e,n),this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n},s.prototype.setpop=function(e,t){var n=null,r=null,i=this.items.get(e);return void 0!==i?(this.splayOnTop(i),n=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],n=this.V[i],r=this.K[i],this.items.delete(this.K[i])),this.items.set(e,i),this.K[i]=e,this.V[i]=t,this.forward[i]=this.head,this.backward[this.head]=i,this.head=i,r?{evicted:!0,key:r,value:n}:null)},s.prototype.has=function(e){return this.items.has(e)},s.prototype.get=function(e){var t=this.items.get(e);if(void 0!==t)return this.splayOnTop(t),this.V[t]},s.prototype.peek=function(e){var t=this.items.get(e);if(void 0!==t)return this.V[t]},s.prototype.splayOnTop=r.prototype.splayOnTop,s.prototype.forEach=r.prototype.forEach,s.prototype.keys=r.prototype.keys,s.prototype.values=r.prototype.values,s.prototype.entries=r.prototype.entries,"undefined"!=typeof Symbol&&(s.prototype[Symbol.iterator]=s.prototype.entries),s.prototype.inspect=r.prototype.inspect,s.from=function(e,t,n,r){if(arguments.length<2){if("number"!=typeof(r=a.guessLength(e)))throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else 2===arguments.length&&(r=t,t=null,n=null);var o=new s(t,n,r);return i(e,(function(e,t){o.set(t,e)})),o},e.exports=s},function(e,t,n){var r=n(31),i=n(23),o=n(93),a=function(e,t){return e[1]>t[1]?-1:e[1]<t[1]?1:0};function s(){this.items=new Map,Object.defineProperty(this.items,"constructor",{value:s,enumerable:!1}),this.clear()}s.prototype.clear=function(){this.size=0,this.dimension=0,this.items.clear()},s.prototype.add=function(e,t){if(0===t)return this;if(t<0)return this.remove(e,-t);if("number"!=typeof(t=t||1))throw new Error("mnemonist/multi-set.add: given count should be a number.");this.size+=t;const n=this.items.get(e);return void 0===n?this.dimension++:t+=n,this.items.set(e,t),this},s.prototype.set=function(e,t){var n;if("number"!=typeof t)throw new Error("mnemonist/multi-set.set: given count should be a number.");return t<=0?(void 0!==(n=this.items.get(e))&&(this.size-=n,this.dimension--),this.items.delete(e),this):(t=t||1,"number"==typeof(n=this.items.get(e))?this.items.set(e,n+t):(this.dimension++,this.items.set(e,t)),this.size+=t,this)},s.prototype.has=function(e){return this.items.has(e)},s.prototype.delete=function(e){var t=this.items.get(e);return 0!==t&&(this.size-=t,this.dimension--,this.items.delete(e),!0)},s.prototype.remove=function(e,t){if(0!==t){if(t<0)return this.add(e,-t);if("number"!=typeof(t=t||1))throw new Error("mnemonist/multi-set.remove: given count should be a number.");var n=this.multiplicity(e),r=Math.max(0,n-t);0===r?this.delete(e):(this.items.set(e,r),this.size-=n-r)}},s.prototype.edit=function(e,t){var n=this.multiplicity(e);if(0!==n){var r=this.multiplicity(t);return this.items.set(t,n+r),this.items.delete(e),this}},s.prototype.multiplicity=function(e){var t=this.items.get(e);return void 0===t?0:t},s.prototype.get=s.prototype.multiplicity,s.prototype.count=s.prototype.multiplicity,s.prototype.frequency=function(e){return 0===this.size?0:this.multiplicity(e)/this.size},s.prototype.top=function(e){if("number"!=typeof e||e<=0)throw new Error("mnemonist/multi-set.top: n must be a number > 0.");for(var t,n=new o(Array,a,e),r=this.items.entries();!(t=r.next()).done;)n.push(t.value);return n.consume()},s.prototype.forEach=function(e,t){var n;t=arguments.length>
2361?t:this,this.items.forEach((function(r,i){for(n=0;n<r;n++)e.call(t,i,i)}))},s.prototype.forEachMultiplicity=function(e,t){t=arguments.length>1?t:this,this.items.forEach(e,t)},s.prototype.keys=function(){return this.items.keys()},s.prototype.values=function(){var e,t,n,i,o=this.items.entries(),a=!1;return new r((function r(){if(!a){if((e=o.next()).done)return{done:!0};a=!0,t=e.value[0],n=e.value[1],i=0}return i>=n?(a=!1,r()):(i++,{done:!1,value:t})}))},s.prototype.multiplicities=function(){return this.items.entries()},"undefined"!=typeof Symbol&&(s.prototype[Symbol.iterator]=s.prototype.values),s.prototype.inspect=function(){return this.items},"undefined"!=typeof Symbol&&(s.prototype[Symbol.for("nodejs.util.inspect.custom")]=s.prototype.inspect),s.prototype.toJSON=function(){return this.items},s.from=function(e){var t=new s;return i(e,(function(e){t.add(e)})),t},s.isSubset=function(e,t){var n,r,i,o=e.multiplicities();if(e===t)return!0;if(e.dimension>t.dimension)return!1;for(;!(n=o.next()).done;)if(r=n.value[0],i=n.value[1],t.multiplicity(r)<i)return!1;return!0},s.isSuperset=function(e,t){return s.isSubset(t,e)},e.exports=s},function(e,t,n){var r=n(31),i=n(23);function o(e,t,n){return((Math.pow(e,2)-Math.pow(Math.abs(t-n),2))/2|0)+e+1}function a(e,t){var n,r,i=e+1,o=t/i|0,a=o+1,s=t-o*i,l=i-s,c=new Array(e+1);for(n=0;n<l;n++)c[n]=[n*o,o];var u=(n-1)*o+o;for(r=0;r<s;r++)c[n+r]=[u+r*a,a];return c}function s(e,t){var n,r,i,o=t.length,a=e+1,s=o/a|0,l=s+1,c=o-s*a,u=a-c,f=new Array(e+1);for(r=0;r<u;r++)n=r*s,f[r]=t.slice(n,n+s);var d=(r-1)*s+s;for(i=0;i<c;i++)n=d+i*l,f[r+i]=t.slice(n,n+l);return f}function l(e,t,n,r,i,o){var a=i-n,s=i+n,l=e-n,c=i+t-l,u=i+t+l,f=r-o;return[Math.max(0,a,c),Math.min(s,u,f)]}function c(e,t,n,r,i,o){var a,s,c,u=t.length,f=l(e,u-n,r,u,i,o),d="",h=[];for(s=f[0],c=f[1]+1;s<c;s++)(a=t.slice(s,s+o))!==d&&(h.push(a),d=a);return h}function u(e,t){if("function"!=typeof e)throw new Error("mnemonist/passjoin-index: `levenshtein` should be a function returning edit distance between two strings.");if("number"!=typeof t||t<1)throw new Error("mnemonist/passjoin-index: `k` should be a number > 0");this.levenshtein=e,this.k=t,this.clear()}u.prototype.clear=function(){this.size=0,this.strings=[],this.invertedIndices={}},u.prototype.add=function(e){var t=e.length,n=this.size;this.strings.push(e),this.size++;var r,i,o,a,l=s(this.k,e),c=this.invertedIndices[t];for(void 0===c&&(c={},this.invertedIndices[t]=c),o=0,a=l.length;o<a;o++)void 0===(r=c[i=l[o]+o])?(r=[n],c[i]=r):r.push(n);return this},u.prototype.search=function(e){var t,n,r,i,o,s,l,u,f,d,h,p,m=e.length,g=this.k,v=new Set;for(o=Math.max(0,m-g),s=m+g+1;o<s;o++){var y=this.invertedIndices[o];if(void 0!==y)for(l=0,u=(i=a(g,o)).length;l<u;l++)for((r=c(g,e,o,l,i[l][0],i[l][1])).length||(r=[""]),f=0,d=r.length;f<d;f++)if(void 0!==(t=y[r[f]+l]))for(h=0,p=t.length;h<p;h++)n=this.strings[t[h]],(m<=g&&o<=g||!v.has(n)&&this.levenshtein(e,n)<=g)&&v.add(n)}return v},u.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.strings.length;n<r;n++)e.call(t,this.strings[n],n,this)},u.prototype.values=function(){var e=this.strings,t=e.length,n=0;return new r((function(){if(n>=t)return{done:!0};var r=e[n];return n++,{value:r,done:!1}}))},"undefined"!=typeof Symbol&&(u.prototype[Symbol.iterator]=u.prototype.values),u.prototype.inspect=function(){var e=this.strings.slice();return Object.defineProperty(e,"constructor",{value:u,enumerable:!1}),e},"undefined"!=typeof Symbol&&(u.prototype[Symbol.for("nodejs.util.inspect.custom")]=u.prototype.inspect),u.from=function(e,t,n){var r=new u(t,n);return i(e,(function(e){r.add(e)})),r},u.countKeys=function(e,t){for(var n=0,r=0,i=t+1;r<i;r++)n+=o(e,t,r);return n},u.comparator=function(e,t){return e.length>t.length?-1:e.length<t.length?1:e<t?-1:e>t?1:0},u.partition=a,u.segments=s,u.segmentPos=function(e,t,n){if(0===t)return 0;var r=n.length,i=e+1,o=r/i|0,a=i-(r-o*i);return t<=a-1?t*o:a*o+(t-a)*(o+1)},u.multiMatchAwareInterval=l,u.multiMatchAwareSubstrings=c,e.exports=u},function(e,t,n){var r=n(31),i=n(23);function o(){this.clear()}o.prototype.clear=function(){this.items=[],this.offset=0,this.size=0},o.prototype.enqueue=function(e){return this.items.push(e),++this.size},o.prototype.dequeue=function(){if(this.size){var e=this.items[this.offset];return 2*++this.offset>=this.items.length&&(this.items=this.items.slice(this.offset),this.offset=0),this.size--,e}},o.prototype.peek=function(){if(this.size)return this.items[this.offset]},o.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=this.offset,r=0,i=this.items.length;n<i;n++,r++)e.call(t,this.items[n],r,this)},o.prototype.toArray=function(){return this.items.slice(this.offset)},o.prototype.values=function(){var e=this.items,t=this.offset;return new r((function(){if(t>=e.length)return{done:!0};var n=e[t];return t++,{value:n,done:!1}}
236))},o.prototype.entries=function(){var e=this.items,t=this.offset,n=0;return new r((function(){if(t>=e.length)return{done:!0};var r=e[t];return t++,{value:[n++,r],done:!1}}))},"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.values),o.prototype.toString=function(){return this.toArray().join(",")},o.prototype.toJSON=function(){return this.toArray()},o.prototype.inspect=function(){var e=this.toArray();return Object.defineProperty(e,"constructor",{value:o,enumerable:!1}),e},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),o.from=function(e){var t=new o;return i(e,(function(e){t.enqueue(e)})),t},o.of=function(){return o.from(arguments)},e.exports=o},function(e,t,n){var r=n(31),i=n(23);function o(){this.clear()}o.prototype.clear=function(){this.items=[],this.size=0},o.prototype.push=function(e){return this.items.push(e),++this.size},o.prototype.pop=function(){if(0!==this.size)return this.size--,this.items.pop()},o.prototype.peek=function(){return this.items[this.size-1]},o.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.items.length;n<r;n++)e.call(t,this.items[r-n-1],n,this)},o.prototype.toArray=function(){for(var e=new Array(this.size),t=this.size-1,n=this.size;n--;)e[n]=this.items[t-n];return e},o.prototype.values=function(){var e=this.items,t=e.length,n=0;return new r((function(){if(n>=t)return{done:!0};var r=e[t-n-1];return n++,{value:r,done:!1}}))},o.prototype.entries=function(){var e=this.items,t=e.length,n=0;return new r((function(){if(n>=t)return{done:!0};var r=e[t-n-1];return{value:[n++,r],done:!1}}))},"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.values),o.prototype.toString=function(){return this.toArray().join(",")},o.prototype.toJSON=function(){return this.toArray()},o.prototype.inspect=function(){var e=this.toArray();return Object.defineProperty(e,"constructor",{value:o,enumerable:!1}),e},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),o.from=function(e){var t=new o;return i(e,(function(e){t.push(e)})),t},o.of=function(){return o.from(arguments)},e.exports=o},function(e,t){t.intersection=function(){if(arguments.length<2)throw new Error("mnemonist/Set.intersection: needs at least two arguments.");var e,t,n=new Set,r=1/0,i=null,o=arguments.length;for(t=0;t<o;t++){if(0===(e=arguments[t]).size)return n;e.size<r&&(r=e.size,i=e)}for(var a,s,l,c,u=i.values();!(a=u.next()).done;){for(s=a.value,l=!0,t=0;t<o;t++)if((c=arguments[t])!==i&&!c.has(s)){l=!1;break}l&&n.add(s)}return n},t.union=function(){if(arguments.length<2)throw new Error("mnemonist/Set.union: needs at least two arguments.");var e,t,n,r=new Set,i=arguments.length;for(e=0;e<i;e++)for(t=arguments[e].values();!(n=t.next()).done;)r.add(n.value);return r},t.difference=function(e,t){if(!e.size)return new Set;if(!t.size)return new Set(e);for(var n,r=new Set,i=e.values();!(n=i.next()).done;)t.has(n.value)||r.add(n.value);return r},t.symmetricDifference=function(e,t){for(var n,r=new Set,i=e.values();!(n=i.next()).done;)t.has(n.value)||r.add(n.value);for(i=t.values();!(n=i.next()).done;)e.has(n.value)||r.add(n.value);return r},t.isSubset=function(e,t){var n,r=e.values();if(e===t)return!0;if(e.size>t.size)return!1;for(;!(n=r.next()).done;)if(!t.has(n.value))return!1;return!0},t.isSuperset=function(e,n){return t.isSubset(n,e)},t.add=function(e,t){for(var n,r=t.values();!(n=r.next()).done;)e.add(n.value)},t.subtract=function(e,t){for(var n,r=t.values();!(n=r.next()).done;)e.delete(n.value)},t.intersect=function(e,t){for(var n,r=e.values();!(n=r.next()).done;)t.has(n.value)||e.delete(n.value)},t.disjunct=function(e,t){for(var n,r=e.values(),i=[];!(n=r.next()).done;)t.has(n.value)&&i.push(n.value);for(r=t.values();!(n=r.next()).done;)e.has(n.value)||e.add(n.value);for(var o=0,a=i.length;o<a;o++)e.delete(i[o])},t.intersectionSize=function(e,t){var n;if(e.size>t.size&&(n=e,e=t,t=n),0===e.size)return 0;if(e===t)return e.size;for(var r,i=e.values(),o=0;!(r=i.next()).done;)t.has(r.value)&&o++;return o},t.unionSize=function(e,n){var r=t.intersectionSize(e,n);return e.size+n.size-r},t.jaccard=function(e,n){var r=t.intersectionSize(e,n);return 0===r?0:r/(e.size+n.size-r)},t.overlap=function(e,n){var r=t.intersectionSize(e,n);return 0===r?0:r/Math.min(e.size,n.size)}},function(e,t,n){var r=n(31),i=n(43).getPointerArray;function o(e){var t=i(e);this.start=0,this.size=0,this.capacity=e,this.dense=new t(e),this.sparse=new t(e)}o.prototype.clear=function(){this.start=0,this.size=0},o.prototype.has=function(e){if(0===this.size)return!1;var t=this.sparse[e];return(t<this.capacity&&t>=this.start&&t<this.start+this.size||t<(this.start+this.size)%this.capacity)&&this.dense[t]===e},o.prototype.enqueue=function(e){var t=this.sparse[e];if(0!==this.size&&((t<this.capacity&&t>=this.start&&t<this.start+this.size||t<(this.start+this.size)%this.capacity)&&this.dense[t]===e))return this;return t=(this.start+this.size)%this.capacity,this.dense[t]=e,this.sparse[e]=t,this.size++,this},o.prototype.dequeue=function(){if(0!==this.size){var e=this.start;this.size--,this.start++,this.start===this.capacity&&(this.start=0);var t=this.dense[e];return this.sparse[t]=this.capacity,t}},o.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=this.capacity,r=this.size,i=this.start,o=0;o<r;)e.call(t,this.dense[i],o,this),o++,++i===n&&(i=0)},o.prototype.values=function(){var e=this.dense,t=this.capacity,n=this.size,i=this.start,o=0;return new r((function(){if(o>=n)return{done:!0};var r=e[i];return i++,o++,i===t&&(i=0),{value:r,done:!1}}
236))},"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.values),o.prototype.inspect=function(){var e=[];return this.forEach((function(t){e.push(t)})),Object.defineProperty(e,"constructor",{value:o,enumerable:!1}),e.capacity=this.capacity,e},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),e.exports=o},function(e,t,n){var r=n(31),i=n(43).getPointerArray;function o(e,t){arguments.length<2&&(t=e,e=Array);var n=i(t);this.size=0,this.length=t,this.dense=new n(t),this.sparse=new n(t),this.vals=new e(t)}o.prototype.clear=function(){this.size=0},o.prototype.has=function(e){var t=this.sparse[e];return t<this.size&&this.dense[t]===e},o.prototype.get=function(e){var t=this.sparse[e];if(t<this.size&&this.dense[t]===e)return this.vals[t]},o.prototype.set=function(e,t){var n=this.sparse[e];return n<this.size&&this.dense[n]===e?(this.vals[n]=t,this):(this.dense[this.size]=e,this.sparse[e]=this.size,this.vals[this.size]=t,this.size++,this)},o.prototype.delete=function(e){var t=this.sparse[e];return!(t>=this.size||this.dense[t]!==e)&&(t=this.dense[this.size-1],this.dense[this.sparse[e]]=t,this.sparse[t]=this.sparse[e],this.size--,!0)},o.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0;n<this.size;n++)e.call(t,this.vals[n],this.dense[n])},o.prototype.keys=function(){var e=this.size,t=this.dense,n=0;return new r((function(){if(n<e){var r=t[n];return n++,{value:r}}return{done:!0}}))},o.prototype.values=function(){var e=this.size,t=this.vals,n=0;return new r((function(){if(n<e){var r=t[n];return n++,{value:r}}return{done:!0}}))},o.prototype.entries=function(){var e=this.size,t=this.dense,n=this.vals,i=0;return new r((function(){if(i<e){var r=[t[i],n[i]];return i++,{value:r}}return{done:!0}}))},"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.entries),o.prototype.inspect=function(){for(var e=new Map,t=0;t<this.size;t++)e.set(this.dense[t],this.vals[t]);return Object.defineProperty(e,"constructor",{value:o,enumerable:!1}),e.length=this.length,this.vals.constructor!==Array&&(e.type=this.vals.constructor.name),e},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),e.exports=o},function(e,t,n){var r=n(31),i=n(43).getPointerArray;function o(e){var t=i(e);this.size=0,this.length=e,this.dense=new t(e),this.sparse=new t(e)}o.prototype.clear=function(){this.size=0},o.prototype.has=function(e){var t=this.sparse[e];return t<this.size&&this.dense[t]===e},o.prototype.add=function(e){var t=this.sparse[e];return t<this.size&&this.dense[t]===e||(this.dense[this.size]=e,this.sparse[e]=this.size,this.size++),this},o.prototype.delete=function(e){var t=this.sparse[e];return!(t>=this.size||this.dense[t]!==e)&&(t=this.dense[this.size-1],this.dense[this.sparse[e]]=t,this.sparse[t]=this.sparse[e],this.size--,!0)},o.prototype.forEach=function(e,t){var n;t=arguments.length>1?t:this;for(var r=0;r<this.size;r++)n=this.dense[r],e.call(t,n,n)},o.prototype.values=function(){var e=this.size,t=this.dense,n=0;return new r((function(){if(n<e){var r=t[n];return n++,{value:r}}return{done:!0}}))},"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=o.prototype.values),o.prototype.inspect=function(){for(var e=new Set,t=0;t<this.size;t++)e.add(this.dense[t]);return Object.defineProperty(e,"constructor",{value:o,enumerable:!1}),e.length=this.length,e},"undefined"!=typeof Symbol&&(o.prototype[Symbol.for("nodejs.util.inspect.custom")]=o.prototype.inspect),e.exports=o},function(e,t,n){var r=n(23),i=new Set([0,1,2]),o={0:"Returns only the top suggestion",1:"Returns suggestions with the smallest edit distance",2:"Returns every suggestion (no early termination)"};function a(e){var t=new Set;return"number"==typeof e&&t.add(e),{suggestions:t,count:0}}function s(e,t,n){return{term:e||"",distance:t||0,count:n||0}}function l(e,t){var n,r,i,o=e.length,a=t.length,s=[[]],l=o+a,c=new Map;for(s[0][0]=l,n=0;n<=o;n++)s[n+1]||(s[n+1]=[]),s[n+1][1]=n,s[n+1][0]=l;for(i=0;i<=a;i++)s[1][i+1]=i,s[0][i+1]=l;var u,f=e+t;for(n=0,r=f.length;n<r;n++)u=f[n],c.has(u)||c.set(u,0);for(n=1;n<=o;n++){var d=0;for(i=1;i<=a;i++){var h=c.get(t[i-1]),p=d;e[n-1]===t[i-1]?(s[n+1][i+1]=s[n][i],d=i):s[n+1][i+1]=Math.min(s[n][i],s[n+1][i],s[n][i+1])+1,s[n+1][i+1]=Math.min(s[n+1][i+1],s[h][p]+(n-h-1)+1+(i-p-1))}c.set(e[n-1],n)}return s[o+1][a+1]}function c(e){if(e=e||{},this.clear(),this.maxDistance="number"==typeof e.maxDistance?e.maxDistance:2,this.verbosity="number"==typeof e.verbosity?e.verbosity:2,"number"!=typeof this.maxDistance||this.maxDistance<=0)throw Error("mnemonist/SymSpell.constructor: invalid `maxDistance` option. Should be a integer greater than 0.");if(!i.has(this.verbosity))throw Error("mnemonist/SymSpell.constructor: invalid `verbosity` option. Should be either 0, 1 or 2.")}c.prototype.clear=function(){this.size=0,this.dictionary=Object.create(null),this.maxLength=0,this.words=[]},c.prototype.add=function(e){var t=this.dictionary[e];if(void 0!==t?("number"==typeof t&&(t=a(t),this.dictionary[e]=t),t.count++):((t=a()).count++,this.dictionary[e]=t,e.length>this.maxLength&&(this.maxLength=e.length)),1===t.count){var n=this.words.length;this.words.push(e),function e(t,n,r,i){i=i||new Set,n++;var o,a,s=t.length;if(s>1)for(a=0;a<s;
236a++)o=t.substring(0,a)+t.substring(a+1),i.has(o)||(i.add(o),n<r&&e(o,n,r,i));return i}(e,0,this.maxDistance).forEach(t=>{var r=this.dictionary[t];void 0!==r?("number"==typeof r&&(r=a(r),this.dictionary[t]=r),r.suggestions.has(n)||function(e,t,n,r,i,o){var a=n.suggestions.values().next().value;t<2&&n.suggestions.size>0&&e[a].length-o.length>r.length-o.length&&(n.suggestions=new Set,n.count=0),(2===t||!n.suggestions.size||e[a].length-o.length>=r.length-o.length)&&n.suggestions.add(i)}(this.words,this.verbosity,r,e,n,t)):this.dictionary[t]=n})}return this.size++,this},c.prototype.search=function(e){return function(e,t,n,r,i,o){var c=o.length;if(c-r>i)return[];for(var u,f,d=[o],h=new Set,p=new Set,m=[];d.length>0&&(u=d.shift(),!(n<2&&m.length>0&&c-u.length>m[0].distance));){if(void 0!==(f=e[u])){if("number"==typeof f&&(f=a(f)),f.count>0&&!p.has(u)){p.add(u);var g=s(u,c-u.length,f.count);if(m.push(g),n<2&&c-u.length==0)break}f.suggestions.forEach(i=>{var a=t[i];if(!p.has(a)){p.add(a);var f=0;if(o!==a)if(a.length===u.length)f=c-u.length;else if(c===u.length)f=a.length-u.length;else{for(var d=0,h=0,g=a.length;d<g&&d<c&&a[d]===o[d];)d++;for(;h<g-d&&h<c&&a[g-h-1]===o[c-h-1];)h++;f=d>0||h>0?l(a.substr(d,g-d-h),o.substr(d,c-d-h)):l(a,o)}if(n<2&&m.length>0&&m[0].distance>f&&(m=[]),!(n<2&&m.length>0&&f>m[0].distance)&&f<=r){var v=e[a];void 0!==v&&m.push(s(a,f,v.count))}}})}if(c-u.length<r){if(n<2&&m.length>0&&c-u.length>=m[0].distance)continue;for(var v=0,y=u.length;v<y;v++){var b=u.substring(0,v)+u.substring(v+1);h.has(b)||(h.add(b),d.push(b))}}}return 0===n?m.slice(0,1):m}(this.dictionary,this.words,this.verbosity,this.maxDistance,this.maxLength,e)},c.prototype.inspect=function(){var e=[];for(var t in e.size=this.size,e.maxDistance=this.maxDistance,e.verbosity=this.verbosity,e.behavior=o[this.verbosity],this.dictionary)"object"==typeof this.dictionary[t]&&this.dictionary[t].count&&e.push([t,this.dictionary[t].count]);return Object.defineProperty(e,"constructor",{value:c,enumerable:!1}),e},"undefined"!=typeof Symbol&&(c.prototype[Symbol.for("nodejs.util.inspect.custom")]=c.prototype.inspect),c.from=function(e,t){var n=new c(t);return r(e,(function(e){n.add(e)})),n},e.exports=c},function(e,t,n){var r=n(23),i=n(134),o=String.fromCharCode(0);function a(e){this.mode=e===Array?"array":"string",this.clear()}for(var s in i.prototype)a.prototype[s]=i.prototype[s];delete a.prototype.set,delete a.prototype.get,delete a.prototype.values,delete a.prototype.entries,a.prototype.add=function(e){for(var t,n=this.root,r=0,i=e.length;r<i;r++)n=n[t=e[r]]||(n[t]={});return o in n||this.size++,n[o]=!0,this},a.prototype.find=function(e){var t,n,r="string"==typeof e,i=this.root,a=[];for(t=0,n=e.length;t<n;t++)if(void 0===(i=i[e[t]]))return a;for(var s,l=[i],c=[e];l.length;)for(s in e=c.pop(),i=l.pop())s!==o?(l.push(i[s]),c.push(r?e+s:e.concat(s))):a.push(e);return a},"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=a.prototype.keys),a.prototype.inspect=function(){for(var e,t=new Set,n=this.keys();!(e=n.next()).done;)t.add(e.value);return Object.defineProperty(t,"constructor",{value:a,enumerable:!1}),t},"undefined"!=typeof Symbol&&(a.prototype[Symbol.for("nodejs.util.inspect.custom")]=a.prototype.inspect),a.prototype.toJSON=function(){return this.root},a.from=function(e){var t=new a;return r(e,(function(e){t.add(e)})),t},a.SENTINEL=o,e.exports=a},function(e,t,n){var r=n(31),i=n(23),o=n(47),a=n(43),s=function(e){return Math.max(1,Math.ceil(1.5*e))};function l(e,t){if(arguments.length<1)throw new Error("mnemonist/vector: expecting at least a byte array constructor.");var n=t||0,r=s,i=0,o=!1;"object"==typeof t&&(n=t.initialCapacity||0,i=t.initialLength||0,r=t.policy||r,o=!0===t.factory),this.factory=o?e:null,this.ArrayClass=e,this.length=i,this.capacity=Math.max(i,n),this.policy=r,this.array=new e(this.capacity)}function c(e){var t=function(t){l.call(this,e,t)};for(var n in l.prototype)l.prototype.hasOwnProperty(n)&&(t.prototype[n]=l.prototype[n]);return t.from=function(t,n){return l.from(t,e,n)},"undefined"!=typeof Symbol&&(t.prototype[Symbol.iterator]=t.prototype.values),t}l.prototype.set=function(e,t){if(this.length<e)throw new Error("Vector("+this.ArrayClass.name+").set: index out of bounds.");return this.array[e]=t,this},l.prototype.get=function(e){if(!(this.length<e))return this.array[e]},l.prototype.applyPolicy=function(e){var t=this.policy(e||this.capacity);if("number"!=typeof t||t<0)throw new Error("mnemonist/vector.applyPolicy: policy returned an invali
236d value (expecting a positive integer).");if(t<=this.capacity)throw new Error("mnemonist/vector.applyPolicy: policy returned a less or equal capacity to allocate.");return t},l.prototype.reallocate=function(e){if(e===this.capacity)return this;var t=this.array;if(e<this.length&&(this.length=e),e>this.capacity)if(null===this.factory?this.array=new this.ArrayClass(e):this.array=this.factory(e),a.isTypedArray(this.array))this.array.set(t,0);else for(var n=0,r=this.length;n<r;n++)this.array[n]=t[n];else this.array=t.slice(0,e);return this.capacity=e,this},l.prototype.grow=function(e){var t;if("number"==typeof e){if(this.capacity>=e)return this;for(t=this.capacity;t<e;)t=this.applyPolicy(t);return this.reallocate(t),this}return t=this.applyPolicy(),this.reallocate(t),this},l.prototype.resize=function(e){return e===this.length?this:e<this.length?(this.length=e,this):(this.length=e,this.reallocate(e),this)},l.prototype.push=function(e){return this.capacity===this.length&&this.grow(),this.array[this.length++]=e,this.length},l.prototype.pop=function(){if(0!==this.length)return this.array[--this.length]},l.prototype.values=function(){var e=this.array,t=this.length,n=0;return new r((function(){if(n>=t)return{done:!0};var r=e[n];return n++,{value:r,done:!1}}))},l.prototype.entries=function(){var e=this.array,t=this.length,n=0;return new r((function(){if(n>=t)return{done:!0};var r=e[n];return{value:[n++,r],done:!1}}))},"undefined"!=typeof Symbol&&(l.prototype[Symbol.iterator]=l.prototype.values),l.prototype.inspect=function(){var e=this.array.slice(0,this.length);return e.type=this.array.constructor.name,e.items=this.length,e.capacity=this.capacity,Object.defineProperty(e,"constructor",{value:l,enumerable:!1}),e},"undefined"!=typeof Symbol&&(l.prototype[Symbol.for("nodejs.util.inspect.custom")]=l.prototype.inspect),l.from=function(e,t,n){if(arguments.length<3&&"number"!=typeof(n=o.guessLength(e)))throw new Error("mnemonist/vector.from: could not guess iterable length. Please provide desired capacity as last argument.");var r=new l(t,n);return i(e,(function(e){r.push(e)})),r},l.Int8Vector=c(Int8Array),l.Uint8Vector=c(Uint8Array),l.Uint8ClampedVector=c(Uint8ClampedArray),l.Int16Vector=c(Int16Array),l.Uint16Vector=c(Uint16Array),l.Int32Vector=c(Int32Array),l.Uint32Vector=c(Uint32Array),l.Float32Vector=c(Float32Array),l.Float64Vector=c(Float64Array),l.PointerVector=c((function(e){return new(a.getPointerArray(e))(e)})),e.exports=l},function(e,t,n){var r=n(47),i=n(43),o=n(132).inplaceQuickSortIndices,a=n(131).lowerBoundIndices,s=n(92),l=i.getPointerArray;function c(e,t){return e.distance<t.distance?1:e.distance>t.distance?-1:0}function u(e,t){if("function"!=typeof e)throw new Error("mnemonist/VPTree.constructor: given `distance` must be a function.");if(!t)throw new Error("mnemonist/VPTree.constructor: you must provide items to the tree. A VPTree cannot be updated after its creation.");this.distance=e,this.heap=new s(c),this.D=0;var n=r.toArrayWithIndices(t);this.items=n[0];var i=n[1];this.size=i.length;var u=function(e,t,n){for(var r,i,s,c,u,f,d,h,p,m=n.length,g=l(m),v=0,y=new g(m),b=new g(m),w=new g(m),E=new Float64Array(m),k=[0,0,m],x=new Float64Array(m);k.length;)if(u=k.pop(),c=k.pop(),r=k.pop(),i=n[u-1],p=--u-c,y[r]=i,0!==p)if(1!==p){for(h=c;h<u;h++)x[n[h]]=e(t[i],t[n[h]]);o(x,n,c,u),d=(s=c+p/2-1)===(0|s)?(x[n[s]]+x[n[s+1]])/2:x[n[Math.ceil(s)]],E[r]=d,u-(f=a(x,n,d,c,u))>0&&(v++,w[r]=v,k.push(v,f,u)),f-c>0&&(v++,b[r]=v,k.push(v,c,f))}else d=e(t[i],t[n[c]]),E[r]=d,v++,w[r]=v,y[v]=n[c];return{nodes:y,lefts:b,rights:w,mus:E}}(e,this.items,i);this.nodes=u.nodes,this.lefts=u.lefts,this.rights=u.rights,this.mus=u.mus}u.prototype.nearestNeighbors=function(e,t){var n,r,i,o,a,s,l,c=this.heap,u=[0],f=1/0;for(this.D=0;u.length;)n=u.pop(),r=this.nodes[n],i=this.items[r],l=this.distance(i,t),this.D++,l<f&&(c.push({distance:l,item:i}),c.size>e&&c.pop(),c.size>=e&&(f=c.peek().distance)),o=this.lefts[n],a=this.rights[n],(o||a)&&(l<(s=this.mus[n])?(o&&l<s+f&&u.push(o),a&&l>=s-f&&u.push(a)):(a&&l>=s-f&&u.push(a),o&&l<s+f&&u.push(o)));for(var d=new Array(c.size),h=c.size-1;h>=0;h--)d[h]=c.pop();return d},u.prototype.neighbors=function(e,t){var n,r,i,o,a,s,l,c=[],u=[0];for(this.D=0;u.length;)n=u.pop(),r=this.nodes[n],i=this.items[r],l=this.distance(i,t),this.D++,l<=e&&c.push({distance:l,item:i}),o=this.lefts[n],a=this.rights[n],(o||a)&&(l<(s=this.mus[n])?(o&&l<s+e&&u.push(o),a&&l>=s-e&&u.push(a)):(a&&l>=s-e&&u.push(a),o&&l<s+e&&u.push(o)));return c},u.prototype.inspect=function(){var e=this.items.slice();return Object.defineProperty(e,"constructor",{value:u,enumerable:!1}),e},"undefined"!=typeof Symbol&&(u.prototype[Symbol.for("nodejs.util.inspect.custom")]=u.prototype.inspect),u.from=function(e,t){return new u(t,e)},e.exports=u},function(e,t,n){var r={"./Getting-Started.ts":271,"./Locate-Artifacts.ts":272,"./Rage-Cage.ts":273,"./Remote-Explorer.ts":274};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=270},function(e,t,n){"use strict";
236n.r(t),t.default="/**\n * Hi there!\n *\n * Looks like you've found the Dark Forest plugins system.\n * Read through this script to learn how to write plugins!\n *\n * Most importantly, you have access these globals:\n * 1. df - Just like the df object in your console.\n * 2. ui - For interacting with the game's user interface.\n *\n * Let's log these to the console when you run your plugin!\n */\nconsole.log(df, ui);\n/**\n * Plugins are just TypeScript (or modern JavaScript, if you prefer), so you can use imports, too!\n */\n// @ts-ignore\nimport confetti from 'https://cdn.skypack.dev/canvas-confetti';\n/**\n * A plugin is a Class with render and destroy methods.\n * Other than that, you are free to do whatever, so be careful!\n */\nclass Readme {\n    /**\n     * A constructor can be used to keep track of information.\n     */\n    constructor() {\n        this.canvas = document.createElement('canvas');\n        this.canvas.width = 400;\n        this.canvas.height = 150;\n    }\n    /**\n     * A plugin's render function is called once.\n     * Here, you can insert custom html into a game modal.\n     * You render any sort of UI that makes sense for the plugin!\n     */\n    async render(div) {\n        div.style.width = '400px';\n        const firstTextDiv = document.createElement('div');\n        firstTextDiv.innerText =\n            'This is an example plugin. Check out its source by' +\n                ' clicking \"edit\" button that is to the right of the' +\n                ' README plugin in the Plugin Manager modal! ';\n        const secondTextDiv = document.createElement('div');\n        secondTextDiv.innerText = '... Or, click the button below to get a free artifact!';\n        const myButton = document.createElement('button');\n        myButton.innerText = 'give me an artifact';\n        myButton.addEventListener('click', async () => {\n            await confetti.create(this.canvas)({\n                origin: { x: 0.5, y: 1 },\n            });\n            const ctx = this.canvas.getContext('2d');\n            if (ctx) {\n                ctx.fillStyle = 'white';\n                ctx.font = '20px Sans-serif';\n                ctx.fillText('Gotcha!', 150, 60);\n            }\n        });\n        div.appendChild(firstTextDiv);\n        div.appendChild(document.createElement('br'));\n        div.appendChild(secondTextDiv);\n        div.appendChild(document.createElement('br'));\n        div.appendChild(this.canvas);\n        div.appendChild(myButton);\n    }\n    /**\n     * When this is unloaded, the game calls the destroy method.\n     * So you can clean up everything nicely!\n     */\n    destroy() {\n        const ctx = this.canvas.getContext('2d');\n        if (ctx) {\n            ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);\n        }\n    }\n}\n/**\n * For the game to know about your plugin, you must export it!\n *\n * Use `export default` to expose your plugin Class.\n */\nexport default Readme;
236\n"},function(e,t,n){"use strict";n.r(t),t.default="/**\n * Remember, you have access these globals:\n * 1. df - Just like the df object in your console.\n * 2. ui - For interacting with the game's user interface.\n *\n * Let's log these to the console when you run your plugin!\n */\nconsole.log(df, ui);\nclass ArtifactsFinder {\n    constructor() {\n        this.renderPlanets = () => {\n            this.planetList.innerHTML = '';\n            // keep track of how many we have found\n            let count = 0;\n            const countText = document.createElement('div');\n            this.planetList.appendChild(countText);\n            for (const planet of df.getAllPlanets()) {\n                // @ts-ignore\n                if (planet.location) {\n                    if (df.isPlanetMineable(planet)) {\n                        // is there any other filtering you'd want to do?\n                        // sometimes planets have artifacts deposited on them!\n                        // somtimes a planet's artifact has already been mined.\n                        // see if you can modify this plugin to make it do what\n                        // you want!\n                        const planetEntry = document.createElement('div');\n                        this.planetList.appendChild(planetEntry);\n                        // hint: have a hard time finding planets?\n                        // ui.centerCoords might help...\n                        planetEntry.innerText =\n                            '(' +\n                                // @ts-ignore\n                                planet.location.coords.x +\n                                ', ' +\n                                // @ts-ignore\n                                planet.location.coords.y +\n                                ')';\n                        count++;\n                    }\n                }\n            }\n            if (count === 0) {\n                countText.innerText = 'you have not found any artifacts yet';\n            }\n            else {\n                countText.innerText = 'you have found ' + count + ' artifacts';\n            }\n        };\n    }\n    async render(container) {\n        console.log('rendered 1 artifacts finder');\n        const findArtifactsButton = document.createElement('button');\n        findArtifactsButton.innerText = 'find me some artifacts!';\n        container.appendChild(findArtifactsButton);\n        container.appendChild(document.createElement('br'));\n        container.appendChild(document.createElement('br'));\n        findArtifactsButton.addEventListener('click', this.renderPlanets);\n        this.planetList = document.createElement('div');\n        container.appendChild(this.planetList);\n        this.planetList.style.maxHeight = '300px';\n        this.planetList.style.width = '400px';\n        this.planetList.style.overflowX = 'hidden';\n        this.planetList.style.overflowY = 'scroll';\n        console.log('rendered artifacts finder');\n    }\n}\n/**\n * And don't forget to export it!\n */\nexport default ArtifactsFinder;\n"},function(e,t,n){"use strict";n.r(t),t.default="class RageCage {\n    /**\n     * As you saw in the README plugin, you can render\n     * arbitrary HTML UI into a Dark Forest modal.\n     */\n    async render(div) {\n        // once this plugin is run, let's load a nice image\n        // from the internet, in order to draw it on top of\n        // planets\n        this.img = document.createElement('img');\n        this.loaded = false;\n        div.appendChild(this.img);\n        this.img.addEventListener('load', () => {\n            // we should only use the image once\n            // it actually loads.\n            this.loaded = true;\n            div.innerText = 'welcome to nicolas cage world';\n        });\n        this.img.src =\n            'https://upload.wikimedia.org/wikipedia/' + 'commons/c/c0/Nicolas_Cage_Deauville_2013.jpg';\n        // hide the image, it doesn't need to show up\n        // in the modal, we only need this img element\n        // to load the image.\n        this.img.style.display = 'none';\n        div.style.width = '100px';\n        div.style.height = '100px';\n        div.innerText = 'loading, please wait!';\n        // check out the helpful functions that appear\n        // in the Viewport class!\n        console.log(ui.getViewport());\n    }\n    /**\n     * In addition to rendering HTML UI into a div, plugins\n     * can draw directly onto the game UI. This function is\n     * optional, but if it exists, it is called 
236in sync with\n     * the rest of the game, and allows you to draw onto an\n     * HTML5 canvas that lays on top of the rest of the game.\n     *\n     * In the example below, we render an image on top of every\n     * planet.\n     *\n     * ctx is an instance of CanvasRenderingContext2D.\n     */\n    draw(ctx) {\n        // don't draw anything until nic cage loads\n        if (!this.loaded)\n            return;\n        // the viewport class provides helpful functions for\n        // interacting with the currently-visible area of the\n        // game\n        const viewport = ui.getViewport();\n        const planets = ui.getPlanetsInViewport();\n        for (const p of planets) {\n            // use the Viewport class to determine the pixel\n            // coordinates of the planet on the screen\n            const pixelCenter = viewport.worldToCanvasCoords(\n            // @ts-ignore\n            p.location.coords);\n            // how many pixels is the radius of the planet?\n            const trueRadius = viewport.worldToCanvasDist(ui.getRadiusOfPlanetLevel(p.planetLevel));\n            // draw nicolas cage on top of the planet\n            ctx.drawImage(this.img, 50, 50, 400, 400, pixelCenter.x - trueRadius, pixelCenter.y - trueRadius, trueRadius * 2, trueRadius * 2);\n        }\n    }\n}\nexport default RageCage;\n"},function(e,t,n){"use strict";n.r(t),t.default="//@ts-ignore\nimport { locationIdFromDecStr } from 'https://cdn.skypack.dev/@darkforest_eth/serde';\nimport { html, render, useEffect, useState,\n//@ts-ignore\n } from 'https://unpkg.com/htm/preact/standalone.module.js';\nconst { MinerManager: Miner, SwissCheesePattern, SpiralPattern, TowardsCenterPattern, TowardsCenterPatternV2, } = df.getConstructors();\nconst NEW_CHUNK = 'DiscoveredNewChunk';\nfunction getPattern(coords, patternType, chunkSize) {\n    if (patternType === 'swiss') {\n        return new SwissCheesePattern(coords, chunkSize);\n    }\n    else if (patternType === 'spiral') {\n        return new SpiralPattern(coords, chunkSize);\n    }\n    else if (patternType === 'towardsCenter') {\n        return new TowardsCenterPattern(coords, chunkSize);\n    }\n    else {\n        return new TowardsCenterPatternV2(coords, chunkSize);\n    }\n}\nfunction workerFactory(url) {\n    class RemoteWorker {\n        constructor() {\n            this.url = url;\n        }\n        async postMessage(msg) {\n            const msgJson = JSON.parse(msg);\n            const resp = await fetch(this.url, {\n                method: 'POST',\n                body: JSON.stringify({\n                    chunkFootprint: msgJson.chunkFootprint,\n                    planetRarity: msgJson.planetRarity,\n                    planetHashKey: msgJson.planetHashKey,\n                }),\n                headers: {\n                    'Content-Type': 'application/json',\n                },\n            });\n            const exploredChunk = await resp.json();\n            const chunkCenter = {\n                x: exploredChunk.chunkFootprint.bottomLeft.x + exploredChunk.chunkFootprint.sideLength / 2,\n                y: exploredChunk.chunkFootprint.bottomLeft.y + exploredChunk.chunkFootprint.sideLength / 2,\n            };\n            exploredChunk.perlin = df.spaceTypePerlin(chunkCenter, false);\n            for (const planetLoc of exploredChunk.planetLocations) {\n                planetLoc.hash = locationIdFromDecStr(planetLoc.hash);\n                planetLoc.perlin = df.spaceTypePerlin({ x: planetLoc.coords.x, y: planetLoc.coords.y }, true);\n                planetLoc.biomebase = df.biomebasePerlin({ x: planetLoc.coords.x, y: planetLoc.coords.y }, true);\n            }\n            this.onmessage({ data: JSON.stringify([exploredChunk, msgJson.jobId]) });\n        }\n        onmessage(_a) {\n            console.warn('Unimplemented: onmessage');\n        }\n        terminate() {\n            console.warn('Unimplemented: terminate');\n        }\n        onmessageerror() {\n            console.warn('Unimplemented: onmessageerror');\n        }\n        addEventListener() {\n            console.warn('Unimplemented: addEventListener');\n        }\n        removeEventListener() {\n            console.warn('Unimplemented: removeEventListener');\n        }\n        dispatchEvent(_event) {\n            return false;\n        }
236\n        onerror() {\n            console.warn('Unimplemented: onerror');\n        }\n    }\n    return RemoteWorker;\n}\nfunction Target() {\n    const wrapper = {\n        width: '1em',\n        height: '1em',\n        display: 'inline-block',\n        position: 'relative',\n        verticalAlign: 'text-bottom',\n    };\n    const svg = {\n        width: '100%',\n        height: '100%',\n    };\n    const path = {\n        fill: 'white',\n    };\n    return html `\n    <span style=${wrapper}>\n      <svg\n        style=${svg}\n        version=\"1.1\"\n        xmlns=\"http://www.w3.org/2000/svg\"\n        width=\"512\"\n        height=\"512\"\n        viewBox=\"0 0 512 512\"\n      >\n        <path\n          style=${path}\n          d=\"M512 224h-50.462c-13.82-89.12-84.418-159.718-173.538-173.538v-50.462h-64v50.462c-89.12 13.82-159.718 84.418-173.538 173.538h-50.462v64h50.462c13.82 89.12 84.418 159.718 173.538 173.538v50.462h64v-50.462c89.12-13.82 159.718-84.418 173.538-173.538h50.462v-64zM396.411 224h-49.881c-9.642-27.275-31.255-48.889-58.53-58.53v-49.881c53.757 12.245 96.166 54.655 108.411 108.411zM256 288c-17.673 0-32-14.327-32-32s14.327-32 32-32c17.673 0 32 14.327 32 32s-14.327 32-32 32zM224 115.589v49.881c-27.275 9.641-48.889 31.255-58.53 58.53h-49.881c12.245-53.756 54.655-96.166 108.411-108.411zM115.589 288h49.881c9.641 27.275 31.255 48.889 58.53 58.53v49.881c-53.756-12.245-96.166-54.654-108.411-108.411zM288 396.411v-49.881c27.275-9.642 48.889-31.255 58.53-58.53h49.881c-12.245 53.757-54.654 96.166-108.411 108.411z\"\n        ></path>\n      </svg>\n    </span>\n  `;\n}\nfunction MinerUI({ miner, onRemove, }) {\n    const [hashRate, setHashRate] = useState(0);\n    useEffect(() => {\n        const calcHash = (chunk, miningTimeMillis) => {\n            var _b, _c;\n            df.addNewChunk(chunk);\n            const hashRate = chunk.chunkFootprint.sideLength ** 2 / (miningTimeMillis / 1000);\n            setHashRate(Math.floor(hashRate));\n            const res = miner.getCurrentlyExploringChunk();\n            if (res) {\n                const { bottomLeft, sideLength } = res;\n                (_b = ui === null || ui === void 0 ? void 0 : ui.setExtraMinerLocation) === null || _b === void 0 ? void 0 : _b.call(ui, miner.id, {\n                    x: bottomLeft.x + sideLength / 2,\n                    y: bottomLeft.y + sideLength / 2,\n                });\n            }\n            else {\n                (_c = ui === null || ui === void 0 ? void 0 : ui.removeExtraMinerLocation) === null || _c === void 0 ? void 0 : _c.call(ui, miner.id);\n            }\n        };\n        miner.on(NEW_CHUNK, calcHash);\n        return () => {\n            miner.off(NEW_CHUNK, calcHash);\n        };\n    }, [miner]);\n    const wrapper = {\n        paddingBottom: '10px',\n        display: 'flex',\n        justifyContent: 'space-between',\n        whiteSpace: 'nowrap',\n    };\n    const buttonWrapper = {\n        width: '50px',\n        display: 'flex',\n        justifyContent: 'space-between',\n    };\n    const remove = () => {\n        onRemove(miner);\n    };\n    const [targeting, setTargeting] = useState(false);\n    const target = () => setTargeting(true);\n    useEffect(() => {\n        const hover = () => {\n            var _b;\n            const coords = ui.getHoveringOverCoords();\n            if (coords) {\n                (_b = ui === null || ui === void 0 ? void 0 : ui.setExtraMinerLocation) === null || _b === void 0 ? void 0 : _b.call(ui, miner.id, coords);\n            }\n        };\n        const click = () => {\n            window.removeEventListener('mousemove', hover);\n            window.removeEventListener('click', click);\n            const coords = ui.getHoveringOverCoords();\n            if (coords) {\n                const pattern = getPattern(coords, miner.patternType, miner.chunkSize);\n                miner.setMiningPattern(pattern);\n            }\n            miner.startExplore();\n            setTargeting(false);\n        };\n        if (targeting) {\n            miner.stopExplore();\n            window.addEventListener('mousemove', hover);\n            window.addEventListener('click', click);\n        }\n        return () => {\n            window.removeEventListener('mousemove', hover);\n            window.removeEventListener('click', click);\n        };\n    }, [targeting, miner]);\n    return html `\n    <div style=${wrapper}>
236\n      <span>${miner.url} - ${hashRate} hashes/sec</span>\n      <div style=${buttonWrapper}>\n        <button onClick=${target}><${Target} /></button>\n        <button onClick=${remove}>X</button>\n      </div>\n    </div>\n  `;\n}\nfunction App({ initialMiners = [], addMiner, removeMiner, }) {\n    const wrapper = { display: 'flex' };\n    const input = {\n        flex: '1',\n        padding: '5px',\n        outline: 'none',\n        color: 'black',\n    };\n    const button = {\n        marginLeft: '5px',\n        outline: 'none',\n    };\n    const select = {\n        background: 'rgb(8,8,8)',\n    };\n    const [miners, setMiners] = useState(initialMiners);\n    const [nextUrl, setNextUrl] = useState(null);\n    const [patternType, setPatternType] = useState('spiral');\n    const onChange = (evt) => {\n        setNextUrl(evt.target.value);\n    };\n    const add = () => {\n        if (nextUrl) {\n            const miners = addMiner(nextUrl, patternType);\n            setMiners(miners);\n            setNextUrl(null);\n        }\n    };\n    const remove = (miner) => {\n        const miners = removeMiner(miner);\n        setMiners(miners);\n    };\n    const changePattern = (evt) => {\n        setPatternType(evt.target.value);\n    };\n    return html `\n    <div>\n      ${miners.map((miner) => html `\n          <${MinerUI} key=${miner.url} miner=${miner} onRemove=${remove} />\n        `)}\n      <div style=${wrapper}>\n        <input\n          style=${input}\n          value=${nextUrl}\n          onChange=${onChange}\n          placeholder=\"URL for explore server\"\n        />\n        <select style=${select} value=${patternType} onChange=${changePattern}>\n          <option value=\"spiral\">Spiral</option>\n          <option value=\"swiss\">Swiss</option>\n          <option value=\"towardsCenter\">TowardsCenter</option>\n          <option value=\"towardsCenterV2\">TowardsCenterV2</option>\n        </select>\n        <button style=${button} onClick=${add}>Explore!</button>\n      </div>\n    </div>\n  `;\n}\nclass RemoteExplorerPlugin {\n    constructor() {\n        this.addMiner = (url, patternType = 'spiral', chunkSize = 256) => {\n            // TODO: Somehow set a default coords\n            const pattern = getPattern({ x: 0, y: 0 }, patternType, chunkSize);\n            const miner = Miner.create(df.getChunkStore(), pattern, df.getWorldRadius(), df.planetRarity, df.getHashConfig(), false, workerFactory(url));\n            miner.url = url;\n            miner.id = this.id++;\n            miner.chunkSize = chunkSize;\n            miner.patternType = patternType;\n            miner.startExplore();\n            this.miners.push(miner);\n            return this.miners;\n        };\n        this.removeMiner = (miner) => {\n            this.miners = this.miners.filter((m) => {\n                var _b;\n                if (m === miner) {\n                    (_b = ui === null || ui === void 0 ? void 0 : ui.removeExtraMinerLocation) === null || _b === void 0 ? void 0 : _b.call(ui, m.id);\n                    m.stopExplore();\n                    m.destroy();\n                    return false;\n                }\n                else {\n                    return true;\n                }\n            });\n            return this.miners;\n        };\n        this.miners = [];\n        this.id = 0;\n        this.addMiner('http://0.0.0.0:8000/mine', 'spiral', 256);\n    }\n    async render(container) {\n        container.style.minWidth = '450px';\n        container.style.width = 'auto';\n        render(html `\n        <${App}\n          initialMiners=${this.miners}\n          addMiner=${this.addMiner}\n          removeMiner=${this.removeMiner}\n        />\n      `, container);\n    }\n    destroy() {\n        var _b;\n        for (const miner of this.miners) {\n            (_b = ui === null || ui === void 0 ? void 0 : ui.removeExtraMinerLocation) === null || _b === void 0 ? void 0 : _b.call(ui, miner.id);\n            miner.stopExplore();\n            miner.destroy();\n        }\n    }\n}\nexport default RemoteExplorerPlugin;\n"},function(e,t,n){var r;
237/*!
238  Copyright (c) 2018 Jed Watson.
239  Licensed under the MIT License (MIT), see
240  http://jedwatson.github.io/classnames
241*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}
vendor: 5,040 bytes, lines 241-248
241.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";
242/**!
243 * Sortable 1.14.0
244 * @author	RubaXa   <[email protected]>
245 * @author	owenm    <[email protected]>
246 * @license MIT
247 */
248function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.r(t),n.d(t,"MultiDrag",(function(){return kt})),n.d(t,"Sortable",(function(){return He})),n.d(t,"Swap",(function(){return ft}));function f(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var d=f(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),h=f(/Edge/i),p=f(/firefox/i),m=f(/safari/i)&&!f(/chrome/i)&&!f(/android/i),g=f(/iP(ad|od|hone)/i),v=f(/chrome/i)&&f(/android/i),y={capture:!1,passive:!1};function b(e,t,n){e.addEventListener(t,n,!d&&y)}function w(e,t,n){e.removeEventListener(t,n,!d&&y)}function E(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function k(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function x(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&E(e,t):E(e,t))||r&&e===n)return e;if(e===n)break}while(e=k(e))}return null}var S,_=/\s+/g;function A(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(_," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(_," ")}}function C(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function T(e,t){var n="";if("string"==typeof e)n=e;else do{var r=C(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function P(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function O(){var e=document.scrollingElement;return e||document.documentElement}function M(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,l,c,u,f;if(e!==window&&e.parentNode&&e!==O()?(a=(o=e.getBoundingClientRect()).top,s=o.left,l=o.bottom,c=o.right,u=o.height,f=o.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!d))do{if(i&&i.getBoundingClientRect&&("none"!==C(i,"transform")||n&&"static"!==C(i,"position"))){var h=i.getBoundingClientRect();a-=h.top+parseInt(C(i,"border-top-width")),s-=h.left+parseInt(C(i,"border-left-width")),l=a+o.height,c=s+o.width;break}}while(i=i.parentNode);
vendor: 4,131 bytes, line 248
248if(r&&e!==window){var p=T(i||e),m=p&&p.a,g=p&&p.d;p&&(l=(a/=g)+(u/=g),c=(s/=m)+(f/=m))}return{top:a,left:s,bottom:l,right:c,width:f,height:u}}}function I(e,t,n){for(var r=B(e,!0),i=M(e)[t];r;){var o=M(r)[n];if(!("top"===n||"left"===n?i>=o:i<=o))return r;if(r===O())break;r=B(r,!1)}return!1}function R(e,t,n,r){for(var i=0,o=0,a=e.children;o<a.length;){if("none"!==a[o].style.display&&a[o]!==He.ghost&&(r||a[o]!==He.dragged)&&x(a[o],n.draggable,e,!1)){if(i===t)return a[o];i++}o++}return null}function L(e,t){for(var n=e.lastElementChild;n&&(n===He.ghost||"none"===C(n,"display")||t&&!E(n,t));)n=n.previousElementSibling;return n||null}function N(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===He.clone||t&&!E(e,t)||n++;return n}function j(e){var t=0,n=0,r=O();if(e)do{var i=T(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function B(e,t){if(!e||!e.getBoundingClientRect)return O();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=C(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return O();if(r||t)return n;r=!0}}}while(n=n.parentNode);return O()}function F(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function D(e,t){return function(){if(!S){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),S=setTimeout((function(){S=void 0}),t)}}}function z(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function U(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function $(e,t){C(e,"position","absolute"),C(e,"top",t.top),C(e,"left",t.left),C(e,"width",t.width),C(e,"height",t.height)}function H(e){C(e,"position",""),C(e,"top",""),C(e,"left",""),C(e,"width",""),C(e,"height","")}var J="Sortable"+(new Date).getTime();function G(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==C(e,"display")&&e!==He.ghost){t.push({target:e,rect:M(e)});var n=i({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=T(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=M(n),l=n.prevFromRect,c=n.prevToRect,u=e.rect,f=T(n,!0);f&&(s.top-=f.f,s.left-=f.e),n.toRect=s,n.thisAnimationDuration&&F(l,s)&&!F(a,s)&&(u.top-s.top)/(u.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,l,c,r.options)),F(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,u,s,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"==typeof n&&n()}),o):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){C(e,"transition",""),C(e,"transform","");var i=T(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,C(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),C(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),C(e,"transform","translate3d(0,
2480,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){C(e,"transition",""),C(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var V=[],X={initializeByDefault:!0},W={mount:function(e){for(var t in X)X.hasOwnProperty(t)&&!(t in e)&&(e[t]=X[t]);V.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),V.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";V.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](i({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](i({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in V.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[i]=o,s(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);void 0!==o&&(e.options[i]=o)}},getEventProperties:function(e,t){var n={};return V.forEach((function(r){"function"==typeof r.eventProperties&&s(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return V.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function q(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,a=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,u=e.newIndex,f=e.oldDraggableIndex,p=e.newDraggableIndex,m=e.originalEvent,g=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[J]){var y,b=t.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||d||h?(y=document.createEvent("Event")).initEvent(r,!0,!0):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=l||n,y.item=o||n,y.clone=a,y.oldIndex=c,y.newIndex=u,y.oldDraggableIndex=f,y.newDraggableIndex=p,y.originalEvent=m,y.pullMode=g?g.lastPutMode:void 0;var E=i(i({},v),W.getEventProperties(r,t));for(var k in E)y[k]=E[k];n&&n.dispatchEvent(y),b[w]&&b[w].call(t,y)}}var K=["evt"],Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=l(n,K);W.pluginEvent.bind(He)(e,t,i({dragEl:Q,parentEl:ee,ghostEl:te,rootEl:ne,nextEl:re,lastDownEl:ie,cloneEl:oe,cloneHidden:ae,dragStarted:be,putSortable:de,activeSortable:He.active,originalEvent:r,oldIndex:se,oldDraggableIndex:ce,newIndex:le,newDraggableIndex:ue,hideGhostForTarget:De,unhideGhostForTarget:ze,cloneNowHidden:function(){ae=!0},cloneNowShown:function(){ae=!1},dispatchSortableEvent:function(e){Y({sortable:t,name:e,originalEvent:r})}},o))};function Y(e){q(i({putSortable:de,cloneEl:oe,targetEl:Q,rootEl:ne,oldIndex:se,oldDraggableIndex:ce,newIndex:le,newDraggableIndex:ue},e))}var Q,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,fe,de,he,pe,me,ge,ve,ye,be,we,Ee,ke,xe,Se=!1,_e=!1,Ae=[],Ce=!1,Te=!1,Pe=[],Oe=!1,Me=[],Ie="undefined"!=typeof document,Re=g,Le=h||d?"cssFloat":"float",Ne=Ie&&!v&&!g&&"draggable"in document.createElement("div"),je=function(){if(Ie){if(d)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}
vendor: 20,960 bytes, line 248
248(),Be=function(e,t){var n=C(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=R(e,0,t),o=R(e,1,t),a=i&&C(i),s=o&&C(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+M(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+M(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[Le]||o&&"none"===n[Le]&&l+c>r)?"vertical":"horizontal"},Fe=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==o(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},De=function(){!je&&te&&C(te,"display","none")},ze=function(){!je&&te&&C(te,"display","")};Ie&&document.addEventListener("click",(function(e){if(_e)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),_e=!1,!1}),!0);var Ue=function(e){if(Q){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,o=e.clientY,Ae.some((function(e){var t=e[J].options.emptyInsertThreshold;if(t&&!L(e)){var n=M(e),r=i>=n.left-t&&i<=n.right+t,s=o>=n.top-t&&o<=n.bottom+t;return r&&s?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[J]._onDragOver(n)}}var i,o,a},$e=function(e){Q&&Q.parentNode[J]._isOutsideThisEl(e.target)};function He(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[J]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Be(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==He.supportPointer&&"PointerEvent"in window&&!m,emptyInsertThreshold:5};for(var r in W.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Fe(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Ne,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?b(e,"pointerdown",this._onTapStart):(b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Ae.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,G())}function Je(e,t,n,r,i,o,a,s){var l,c,u=e[J],f=u.options.onMove;return!window.CustomEvent||d||h?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||M(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),f&&(c=f.call(u,l,a)),c}function Ge(e){e.draggable=!1}function Ve(){Oe=!1}function Xe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function We(e){return setTimeout(e,0)}function qe(e){return clearTimeout(e)}He.prototype={constructor:He,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(we=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Q):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(function(e){Me.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Me.push(r)}}(n),!Q&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!m||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=x(s,r.draggable,n,!1))&&s.animated||ie===s)){if(se=N(s),ce=N(s,r.draggable),"function"==typeof c){if(c.call(this,e,s,this))return Y({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Z("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=x(l,r.trim(),n,!1))return Y({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Z("filter",t,{evt:e}),!0}))))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!x(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!Q&&n.parentNode===o){var l=M(n);if(ne=o,ee=(Q=n).parentNode,re=Q.nextSibling,ie=n,fe=a.group,He.dragged=Q,he={target:Q,clientX:(t||e).clientX,clientY:(t||e).clientY},ve=he.clientX-l.left,ye=he.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Q.style["will-change"]="all",r=function(){Z("delayEnded",i,{evt:e}),He.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!p&&i.nativeDraggable&&(Q.draggable=!0),i._triggerDragStart(e,t),Y({sortable:i,name:"choose",originalEvent:e}),A(Q,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){P(Q,e.trim(),Ge)})),b(s,"dragover",Ue),b(s,"mousemove",Ue),b(s,"touchmove",Ue),b(s,"mouseup",i._onDrop),b(s,"touchend",i._onDrop),b(s,"touchcancel",i._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Q.draggable=!0),Z("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(h||d))r();else{if(He.eventCanceled)return void this._onDrop();b(s,"mouseup",i._disableDelayedDrag),b(s,"touchend",i._disableDelayedDrag),b(s,"touchcancel",i._disableDelayedDrag),b(s,"mousemove",i._delayedDragTouchMoveHandler),b(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&b(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Q&&Ge(Q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;w(e,"mouseup",this._disableDelayedDrag),w(e,"touchend",this._disableDelayedDrag),w(e,"touchcancel",this._disableDelayedDrag),w(e,"mousemove",this._delayedDragTouchMoveHandler),w(e,"touchmove",this._delayedDragTouchMoveHandler),w(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):b(document,t?"touchmove":"mousemove",this._onTouchMove):(b(Q,"dragend",this),b(ne,"dragstart",this._onDragStart));try{document.selection?We((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Se=!1,ne&&Q){Z("dragStarted",this,{evt:t}),this.nativeDraggable&&b(document,"dragover",$e);var n=this.options;!e&&A(Q,n.dragClass,!1),A(Q,n.ghostClass,!0),He.active=this,e&&this._appendGhost(),Y({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(pe){this._lastX=pe.clientX,this._lastY=pe.clientY,De();for(var e=document.elementFromPoint(pe.clientX,pe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(pe.clientX,pe.clientY))!==t;)t=e;if(Q.parentNode[J]._isOutsideThisEl(e),t)do{if(t[J]){if(t[J]._onDragOver({clientX:pe.clientX,clientY:pe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);ze()}},_onTouchMove:function(e){if(he){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=te&&T(te,!0),a=te&&o&&o.a,s=te&&o&&o.d,l=Re&&xe&&j(xe),c=(i.clientX-he.clientX+r.x)/(a||1)+(l?l[0]-Pe[0]:0)/(a||1),u=(i.clientY-he.clientY+r.y)/(s||1)+(l?l[1]-Pe[1]:0)/(s||1);if(!He.active&&!Se){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(te){o?(o.e+=c-(me||0),o.f+=u-(ge||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");C(te,"webkitTransform",f),C(te,"mozTransform",f),C(te,"msTransform",f),C(te,"transform",f),me=c,ge=u,pe=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!te){var e=this.options.fallbackOnBody?document.body:ne,t=M(Q,!0,Re,!0,e),n=this.options;if(Re){for(xe=e;"static"===C(xe,"position")&&"none"===C(xe,"transform")&&xe!==document;)xe=xe.parentNode;xe!==document.body&&xe!==document.documentElement?(xe===document&&(xe=O()),t.top+=xe.scrollTop,t.left+=xe.scrollLeft):xe=O(),Pe=j(xe)}A(te=Q.cloneNode(!0),n.ghostClass,!1),A(te,n.fallbackClass,!0),A(te,n.dragClass,!0),C(te,"transition",""),C(te,"transform",""),C(te,"box-sizing","border-box"),C(te,"margin",0),C(te,"top",t.top),C(te,"left",t.left),C(te,"width",t.width),C(te,"height",t.height),C(te,"opacity","0.8"),C(te,"position",Re?"absolute":"fixed"),C(te,"zIndex","100000"),C(te,"pointerEvents","none"),He.ghost=te,e.appendChild(te),C(te,"transform-origin",ve/parseInt(te.style.width)*100+"% "+ye/parseInt(te.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;Z("dragStart",this,{evt:e}),He.eventCanceled?this._onDrop():(Z("setupClone",this),He.eventCanceled||((oe=U(Q)).draggable=!1,oe.style["will-change"]="",this._hideClone(),A(oe,this.options.chosenClass,!1),He.clone=oe),n.cloneId=We((function(){Z("clone",n),He.eventCanceled||(n.options.removeCloneOnHide||ne.insertBefore(oe,Q),n._hideClone(),Y({sortable:n,name:"clone"}))})),!t&&A(Q,i.dragClass,!0),t?(_e=!0,n._loopId=setInterval(n._emulateDragOver,50)):(w(document,"mouseup",n._onDrop),w(document,"touchend",n._onDrop),w(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,Q)),b(document,"drop",n),C(Q,"transform","translateZ(0)")),Se=!0,n._dragStartId=We(n._dragStarted.bind(n,t,e)),b(document,"selectstart",n),be=!0,m&&C(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,a=this.el,s=e.target,l=this.options,c=l.group,u=He.active,f=fe===c,d=l.sort,h=de||u,p=this,m=!1;if(!Oe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=x(s,l.draggable,a,!0),F("dragOver"),He.eventCanceled)return m;if(Q.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return U(!1);if(_e=!1,u&&!l.disabled&&(f?d||(r=ee!==ne):de===this||(this.lastPutMode=fe.checkPull(this,u,Q,e))&&c.checkPut(this,u,Q,e))){if(o="vertical"===this._getDirection(e,s),t=M(Q),F("dragOverValid"),He.eventCanceled)return m;if(r)return ee=ne,D(),this._hideClone(),F("revert"),He.eventCanceled||(re?ne.insertBefore(Q,re):ne.appendChild(Q)),U(!0);var g=L(a,l.draggable);if(!g||function(e,t,n){var r=M(L(n.el,n.options.draggable));return t?e.clientX>r.right+10||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+10}(e,o,this)&&!g.animated){if(g===Q)return U(!1);if(g&&a===e.target&&(s=g),s&&(n=M(s)),!1!==Je(ne,a,Q,t,s,n,e,!!s))return D(),a.appendChild(Q),ee=a,$(),U(!0)}else if(g&&function(e,t,n){var r=M(R(n.el,0,n.options,!0));return t?e.clientX<r.left-10||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-10||e.clientY<r.bottom&&e.clientX<r.left}(e,o,this)){var v=R(a,0,l,!0);if(v===Q)return U(!1);if(n=M(s=v),!1!==Je(ne,a,Q,t,s,n,e,!1))return D(),a.insertBefore(Q,v),ee=a,$(),U(!0)}else if(s.parentNode===a){n=M(s);var y,b,w,E=Q.parentNode!==a,k=!function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2}(Q.animated&&Q.toRect||t,s.animated&&s.toRect||n,o),S=o?"top":"left",_=I(s,"top","top")||I(Q,"top","top"),T=_?_.scrollTop:void 0;if(we!==s&&(b=n[S],Ce=!1,Te=!k&&l.invertSwap||E),0!==(y=function(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(s&&ke<c*i){if(!Ce&&(1===Ee?l>u+c*o/2:l<f-c*o/2)&&(Ce=!0),Ce)d=!0;else if(1===Ee?l<u+ke:l>f-ke)return-Ee}else if(l>u+c*(1-i)/2&&l<f-c*(1-i)/2)return function(e){return N(Q)<N(e)?1:-1}(t);if((d=d||a)&&(l<u+c*o/2||l>f-c*o/2))return l>u+c/2?1:-1;return 0}(e,s,n,o,k?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Te,we===s))){var P=N(Q);do{P-=y,w=ee.children[P]}while(w&&("none"===C(w,"display")||w===te))}if(0===y||w===s)return U(!1);we=s,Ee=y;var O=s.nextElementSibling,j=!1,B=Je(ne,a,Q,t,s,n,e,j=1===y);if(!1!==B)return 1!==B&&-1!==B||(j=1===B),Oe=!0,setTimeout(Ve,30),D(),j&&!O?a.appendChild(Q):s.parentNode.insertBefore(Q,j?O:s),_&&z(_,0,T-_.scrollTop),ee=Q.parentNode,void 0===b||Te||(ke=Math.abs(b-M(s)[S])),$(),U(!0)}if(a.contains(Q))return U(!1)}return!1}function F(l,c){Z(l,p,i({evt:e,isOwner:f,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:h,target:s,completed:U,onMove:function(n,r){return Je(ne,a,Q,t,n,M(n),e,r)},changed:$},c))}function D(){F("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function U(t){return F("dragOverCompleted",{insertion:t}),t&&(f?u._hideClone():u._showClone(p),p!==h&&(A(Q,de?de.options.ghostClass:u.options.ghostClass,!1),A(Q,l.ghostClass,!0)),de!==p&&p!==He.active?de=p:p===He.active&&de&&(de=null),h===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){F("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===Q&&!Q.animated||s===a&&!s.animated)&&(we=null),l.dragoverBubble||e.rootEl||s===document||(Q.parentNode[J]._isOutsideThisEl(e.target),!t&&Ue(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function $(){le=N(Q),ue=N(Q,l.draggable),Y({sortable:p,name:"change",toEl:a,newIndex:le,newDraggableIndex:ue,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){w(document,"mousemove",this._onTouchMove),w(document,"touchmove",this._onTouchMove),w(document,"pointermove",this._onTouchMove),w(document,"dragover",Ue),w(document,"mousemove",Ue),w(document,"touchmove",Ue)},_offUpEvents:function(){var e=this.el.ownerDocument;w(e,"mouseup",this._onDrop),w(e,"touchend",this._onDrop),w(e,"pointerup",this._onDrop),w(e,"touchcancel",this._onDrop),w(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;le=N(Q),ue=N(Q,n.draggable),Z("drop",this,{evt:e}),ee=Q&&Q.parentNode,le=N(Q),ue=N(Q,n.draggable),He.eventCanceled||(Se=!1,Te=!1,Ce=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qe(this.cloneId),qe(this._dragStartId),this.nativeDraggable&&(w(document,"drop",this),w(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&C(document.body,"user-select",""),C(Q,"transform",""),e&&(be&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),te&&te.parentNode&&te.parentNode.removeChild(te),(ne===ee||de&&"clone"!==de.lastPutMode)&&oe&&oe.parentNode&&oe.parentNode.removeChild(oe),Q&&(this.nativeDraggable&&w(Q,"dragend",this),Ge(Q),Q.style["will-change"]="",be&&!Se&&A(Q,de?de.options.ghostClass:this.options.ghostClass,!1),A(Q,this.options.chosenClass,!1),Y({sortable:this,name:"unchoose",toEl:ee,newIndex:null,newDraggableIndex:null,originalEvent:e}),ne!==ee?(le>=0&&(Y({rootEl:ee,name:"add",toEl:ee,fromEl:ne,originalEvent:e}),Y({sortable:this,name:"remove",toEl:ee,originalEvent:e}),Y({rootEl:ee,name:"sort",toEl:ee,fromEl:ne,originalEvent:e}),Y({sortable:this,name:"sort",toEl:ee,originalEvent:e})),de&&de.save()):le!==se&&le>=0&&(Y({sortable:this,name:"update",toEl:ee,originalEvent:e}),Y({sortable:this,name:"sort",toEl:ee,originalEvent:e})),He.active&&(null!=le&&-1!==le||(le=se,ue=ce),Y({sortable:this,name:"end",toEl:ee,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Z("nulling",this),ne=Q=ee=te=re=oe=ie=ae=he=pe=be=le=ue=se=ce=we=Ee=de=fe=He.dragged=He.ghost=He.clone=He.active=null,Me.forEach((function(e){e.checked=!0})),Me.length=me=ge=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Q&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)x(e=n[r],o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||Xe(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var i=r.children[t];x(i,this.options.draggable,r,!1)&&(n[e]=i)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return x(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=W.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Fe(n)},destroy:function(){Z("destroy",this);var e=this.el;e[J]=null,w(e,"mousedown",this._onTapStart),w(e,"touchstart",this._onTapStart),w(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(w(e,"dragover",this),w(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ae.splice(Ae.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ae){if(Z("hideClone",this),He.eventCanceled)return;C(oe,"display","none"),this.options.removeCloneOnHide&&oe.parentNode&&oe.parentNode.removeChild(oe),ae=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ae){if(Z("showClone",this),He.eventCanceled)return;Q.parentNode!=ne||this.options.group.revertClone?re?ne.insertBefore(oe,re):ne.appendChild(oe):ne.insertBefore(oe,Q),this.options.group.revertClone&&this.animate(Q,oe),C(oe,"display",""),ae=!1}}else this._hideClone()}},Ie&&b(document,"touchmove",(function(e){(He.active||Se)&&e.cancelable&&e.preventDefault()})),He.utils={on:b,off:w,css:C,find:P,is:function(e,t){return!!x(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:D,closest:x,toggleClass:A,clone:U,index:N,nextTick:We,cancelNextTick:qe,detectDirection:Be,getChild:R},He.get=function(e){return e[J]},He.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(He.utils=i(i({},He.utils),e.utils)),W.mount(e)}))},He.create=function(e,t){return new He(e,t)},He.version="1.14.0";var Ke,Ze,Ye,Qe,et,tt,nt=[],rt=!1;function it(){nt.forEach((function(e){clearInterval(e.pid)})),nt=[]}function ot(){clearInterval(tt)}var at,st=D((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=O(),u=!1;Ze!==n&&(Ze=n,it(),Ke=t.scroll,i=t.scrollFn,!0===Ke&&(Ke=B(n,!0)));var f=0,d=Ke;do{var h=d,p=M(h),m=p.top,g=p.bottom,v=p.left,y=p.right,b=p.width,w=p.height,E=void 0,k=void 0,x=h.scrollWidth,S=h.scrollHeight,_=C(h),A=h.scrollLeft,T=h.scrollTop;h===c?(E=b<x&&("auto"===_.overflowX||"scroll"===_.overflowX||"visible"===_.overflowX),k=w<S&&("auto"===_.overflowY||"scroll"===_.overflowY||"visible"===_.overflowY)):(E=b<x&&("auto"===_.overflowX||"scroll"===_.overflowX),k=w<S&&("auto"===_.overflowY||"scroll"===_.overflowY));
248var P=E&&(Math.abs(y-o)<=s&&A+b<x)-(Math.abs(v-o)<=s&&!!A),I=k&&(Math.abs(g-a)<=s&&T+w<S)-(Math.abs(m-a)<=s&&!!T);if(!nt[f])for(var R=0;R<=f;R++)nt[R]||(nt[R]={});nt[f].vx==P&&nt[f].vy==I&&nt[f].el===h||(nt[f].el=h,nt[f].vx=P,nt[f].vy=I,clearInterval(nt[f].pid),0==P&&0==I||(u=!0,nt[f].pid=setInterval(function(){r&&0===this.layer&&He.active._onTouchMove(et);var t=nt[this.layer].vy?nt[this.layer].vy*l:0,n=nt[this.layer].vx?nt[this.layer].vx*l:0;"function"==typeof i&&"continue"!==i.call(He.dragged.parentNode[J],n,t,e,et,nt[this.layer].el)||z(nt[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==c&&(d=B(d,!1)));rt=u}}),30),lt=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function ct(){}function ut(){}function ft(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;at=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,o=e.changed,a=e.cancel;if(i.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=at;!1!==r(n)?(A(n,l.swapClass,!0),at=n):at=null,c&&c!==at&&A(c,l.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,o=this.options;at&&A(at,o.swapClass,!1),at&&(o.swap||n&&n.options.swap)&&r!==at&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),function(e,t){var n,r,i=e.parentNode,o=t.parentNode;if(!i||!o||i.isEqualNode(t)||o.isEqualNode(e))return;n=N(e),r=N(t),i.isEqualNode(o)&&n<r&&r++;i.insertBefore(t,i.children[n]),o.insertBefore(e,o.children[r])}(r,at),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){at=null}},s(e,{pluginName:"swap",eventProperties:function(){return{swapItem:at}}})}ct.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=R(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:lt},s(ct,{pluginName:"revertOnSpill"}),ut.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:lt},s(ut,{pluginName:"removeOnSpill"});var dt,ht,pt,mt,gt,vt=[],yt=[],bt=!1,wt=!1,Et=!1;function kt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?b(document,"pointerup",this._deselectMultiDrag):(b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag)),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";vt.length&&ht===e?vt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;pt=t},delayEnded:function(){this.isMultiDrag=~vt.indexOf(pt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<vt.length;r++)yt.push(U(vt[r])),yt[r].sortableIndex=vt[r].sortableIndex,yt[r].draggable=!1,yt[r].style["will-change"]="",A(yt[r],this.options.selectedClass,!1),vt[r]===pt&&A(yt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||vt.length&&ht===t&&(xt(!0,n),r("clone"),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(xt(!1,n),yt.forEach((function(e){C(e,"display","")})),t(),gt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(yt.forEach((function(e){C(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),gt=!0,r())},dragStartGlobal:function(e){e.sortable;
248!this.isMultiDrag&&ht&&ht.multiDrag._deselectMultiDrag(),vt.forEach((function(e){e.sortableIndex=N(e)})),vt=vt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Et=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){vt.forEach((function(e){e!==pt&&C(e,"position","absolute")}));var r=M(pt,!1,!0,!0);vt.forEach((function(e){e!==pt&&$(e,r)})),wt=!0,bt=!0}n.animateAll((function(){wt=!1,bt=!1,t.options.animation&&vt.forEach((function(e){H(e)})),t.options.sort&&St()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;wt&&~vt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;vt.length>1&&(vt.forEach((function(e){r.addAnimationState({target:e,rect:wt?M(e):i}),H(e),e.fromRect=i,t.removeAnimationState(e)})),wt=!1,function(e,t){vt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,o=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),bt=!1,s.animation&&vt.length>1&&(wt||!n&&!i.options.sort&&!a)){var l=M(pt,!1,!0,!0);vt.forEach((function(e){e!==pt&&($(e,l),o.appendChild(e))})),wt=!0}if(!n)if(wt||St(),vt.length>1){var c=gt;i._showClone(t),i.options.animation&&!gt&&c&&yt.forEach((function(e){i.addAnimationState({target:e,rect:mt}),e.fromRect=mt,e.thisAnimationDuration=null}))}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(vt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){mt=s({},t);var i=T(pt,!0);mt.top-=i.f,mt.left-=i.e}},dragOverAnimationComplete:function(){wt&&(wt=!1,St())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,o=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=r.children;if(!Et)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),A(pt,c.selectedClass,!~vt.indexOf(pt)),~vt.indexOf(pt))vt.splice(vt.indexOf(pt),1),dt=null,q({sortable:i,rootEl:n,name:"deselect",targetEl:pt,originalEvt:t});else{if(vt.push(pt),q({sortable:i,rootEl:n,name:"select",targetEl:pt,originalEvt:t}),t.shiftKey&&dt&&i.el.contains(dt)){var f,d,h=N(dt),p=N(pt);if(~h&&~p&&h!==p)for(p>h?(d=h,f=p):(d=p,f=h+1);d<f;d++)~vt.indexOf(u[d])||(A(u[d],c.selectedClass,!0),vt.push(u[d]),q({sortable:i,rootEl:n,name:"select",targetEl:u[d],originalEvt:t}))}else dt=pt;ht=l}if(Et&&this.isMultiDrag){if(wt=!1,(r[J].options.sort||r!==n)&&vt.length>1){var m=M(pt),g=N(pt,":not(."+this.options.selectedClass+")");if(!bt&&c.animation&&(pt.thisAnimationDuration=null),l.captureAnimationState(),!bt&&(c.animation&&(pt.fromRect=m,vt.forEach((function(e){if(e.thisAnimationDuration=null,e!==pt){var t=wt?M(e):m;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),St(),vt.forEach((function(e){u[g]?r.insertBefore(e,u[g]):r.appendChild(e),g++})),a===N(pt))){var v=!1;vt.forEach((function(e){e.sortableIndex===N(e)||(v=!0)})),v&&o("update")}vt.forEach((function(e){H(e)})),l.animateAll()}ht=l}(n===r||s&&"clone"!==s.lastPutMode)&&yt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Et=!1,yt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),w(document,"pointerup",this._deselectMultiDrag),w(document,"mouseup",this._deselectMultiDrag),w(document,"touchend",this._deselectMultiDrag),w(document,"keydown",this._checkKeyDown),w(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==Et&&Et||ht!==this.sortable||e&&x(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;vt.length;){var t=vt[0];A(t,this.options.selectedClass,!1),vt.shift(),q({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[J];t&&t.options.multiDrag&&!~vt.indexOf(e)&&(ht&&ht!==t&&(ht.multiDrag._deselectMultiDrag(
248),ht=t),A(e,t.options.selectedClass,!0),vt.push(e))},deselect:function(e){var t=e.parentNode[J],n=vt.indexOf(e);t&&t.options.multiDrag&&~n&&(A(e,t.options.selectedClass,!1),vt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return vt.forEach((function(r){var i;t.push({multiDragElement:r,index:r.sortableIndex}),i=wt&&r!==pt?-1:wt?N(r,":not(."+e.options.selectedClass+")"):N(r),n.push({multiDragElement:r,index:i})})),{items:c(vt),clones:[].concat(yt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function xt(e,t){yt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function St(){vt.forEach((function(e){e!==pt&&e.parentNode&&e.parentNode.removeChild(e)}))}He.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):t.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):(w(document,"pointermove",this._handleFallbackAutoScroll),w(document,"touchmove",this._handleFallbackAutoScroll),w(document,"mousemove",this._handleFallbackAutoScroll)),ot(),it(),clearTimeout(S),S=void 0},nulling:function(){et=Ze=Ke=rt=tt=Ye=Qe=null,nt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(et=e,t||this.options.forceAutoScrollFallback||h||d||m){st(e,this.options,o,t);var a=B(o,!0);!rt||tt&&r===Ye&&i===Qe||(tt&&ot(),tt=setInterval((function(){var o=B(document.elementFromPoint(r,i),!0);o!==a&&(a=o,it()),st(e,n.options,o,t)}),10),Ye=r,Qe=i)}else{if(!this.options.bubbleScroll||B(o,!0)===O())return void it();st(e,this.options,B(o,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}),He.mount(ut,ct),t.default=He},function(e,t,n){var r=n(68),i=n(278);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,'/**\n * prism.js Dark theme for JavaScript, CSS and HTML\n * Based on the slides of the talk “/Reg(exp){2}lained/”\n * @author Lea Verou\n */\n\ncode[class*="language-"],\npre[class*="language-"] {\n\tcolor: white;\n\tbackground: none;\n\ttext-shadow: 0 -.1em .2em black;\n\tfont-family: Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n\tfont-size: 1em;\n\ttext-align: left;\n\twhite-space: pre;\n\tword-spacing: normal;\n\tword-break: normal;\n\tword-wrap: normal;\n\tline-height: 1.5;\n\n\t-moz-tab-size: 4;\n\t-o-tab-size: 4;\n\ttab-size: 4;\n\n\t-webkit-hyphens: none;\n\t-moz-hyphens: none;\n\t-ms-hyphens: none;\n\thyphens: none;\n}\n\n@media print {\n\tcode[class*="language-"],\n\tpre[class*="language-"] {\n\t\ttext-shadow: none;\n\t}\n}\n\npre[class*="language-"],\n:not(pre) > code[class*="language-"] {\n\tbackground: hsl(30, 20%, 25%);\n}\n\n/* Code blocks */\npre[class*="language-"] {\n\tpadding: 1em;\n\tmargin: .5em 0;\n\toverflow: auto;\n\tborder: .3em solid hsl(30, 20%, 40%);\n\tborder-radius: .5em;\n\tbox-shadow: 1px 1px .5em black inset;\n}\n\n/* Inline code */\n:not(pre) > code[class*="language-"] {\n\tpadding: .15em .2em .05em;\n\tborder-radius: .3em;\n\tborder: .13em solid hsl(30, 20%, 40%);\n\tbox-shadow: 1px 1px .3em -.1em black inset;\n\twhite-space: normal;\n}\n\n.token.comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n\tcolor: hsl(30, 20%, 50%);\n}\n\n.token.punctuation {\n\topacity: .7;\n}\n\n.token.namespace {\n\topacity: .7;\n}\n\n.token.property,\n.token.tag,\n.token.boolean,\n.token.number,\n.token.constant,\n.token.symbol {\n\tcolor: hsl(350, 40%, 70%);\n}\n\n.token.selector,\n.token.attr-name,\n.token.string,\n.token.char,\n.token.builtin,\n.token.inserted {\n\tcolor: hsl(75, 70%, 60%);\n}\n\n.token.operator,\n.token.entity,\n.token.url,\n.language-css .token.string,\n.style .token.string,\n.token.variable {\n\tcolor: hsl(40, 90%, 60%);\n}\n\n.token.atrule,\n.token.attr-value,\n.token.keyword {\n\tcolor: hsl(350, 40%, 70%);\n}\n\n.token.regex,\n.token.important {\n\tcolor: #e90;\n}\n\n.token.important,\n.token.bold {\n\tfont-weight: bold;\n}\n.token.italic {\n\tfont-style: italic;\n}\n\n.token.entity {\n\tcursor: help;\n}\n\n.token.deleted {\n\tcolor: red;\n}\n',""]),e.exports=t},function(e,t,n){"use strict";var r=n(280);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;
vendor: 4,783 bytes, lines 248-255
248var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";(function(e){
249/*!
250 * The buffer module from node.js, for the browser.
251 *
252 * @author   Feross Aboukhadijeh <http://feross.org>
253 * @license  MIT
254 */
255var r=n(283),i=n(284),o=n(285);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(u(t),e=s(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;
vendor: 14,634 bytes, line 255
255a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var f=!0,d=0;d<l;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function w(e,t,n,r){return $(z(t,e.length-n),e,n,r)}function E(e,t,n,r){return $(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return E(e,t,n,r)}function x(e,t,n,r){return $(U(t),e,n,r)}function S(e,t,n,r){return $(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n),f=0;f<s;++f)if(c[f]!==u[f]){o=c[f],a=u[f];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=D(e[o]);return i}function O(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function M(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function N(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return o||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return o||N(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:z(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>
vendor: 3,853 bytes, lines 255-257
255-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(37))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(u(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
256/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
257t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,f=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");
257t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):r(l.href)?t(e,n,a):i(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(r(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){i(a)}))}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||a)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var f=o.URL||o.webkitURL,d=f.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,i):r)||(e.exports=o)}).call(this,n(37))},function(e,t,n){var r=n(68),i=n(288);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(69),i=n(135),o=n(289),a=n(290);t=r(!1);var s=i(o),l=i(a);t.push([e.i,"/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on July 30, 2020 */\n\n@font-face {\n  font-family: 'perfect_dos_vga_437regular';\n  src: url("+s+") format('woff2'),\n    url("+l+") format('woff');\n  font-weight: normal;\n  font-style: normal;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";n.r(t),t.default=n.p+"fonts/perfect_dos_vga_437-webfont.woff2"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"fonts/perfect_dos_vga_437-webfont.woff"},function(e,t,n){var r=n(68),i=n(292);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(69),i=n(135),o=n(293),a=n(294),s=n(295),l=n(296);t=r(!1);var c=i(o),u=i(o,{hash:"#iefix"}),f=i(a),d=i(s),h=i(l,{hash:"#icomoon"});t.push([e.i,"@font-face {\n  font-family: 'icomoon';\n  src: url("+c+");\n  src: url("+u+") format('embedded-opentype'),\n    url("+f+") format('truetype'),\n    url("+d+") format('woff'),\n    url("+h+") format('svg');\n  font-weight: normal;\n  font-style: normal;\n  font-display: block;\n}\n\n[class^='icon-'],\n[class*=' icon-'] {\n  /* use !important to prevent issues with browser extensions that change fonts */\n  font-family: 'icomoon' !important;\n  speak: never;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  line-height: 1;\n\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.icon-github:before {\n  content: '\\e903';\n}\n.icon-discord:before {\n  content: '\\e900';\n}\n.icon-twitter:before {\n  content: '\\e901';\n}\n.icon-brand:before {\n  content: '\\e901';\n}\n.icon-tweet:before {\n  content: '\\e901';\n}\n.icon-social:before {\n  content: '\\e901';\n}\n.icon-mail:before {\n  content: '\\e902';\n}\n.icon-contact:before {\n  content: '\\e902';\n}\n.icon-support:before {\n  content: '\\e902';\n}\n.icon-newsletter:before {\n  content: '\\e902';\n}\n.icon-letter:before {\n  content: '\\e902';\n}\n.icon-email:before {\n  content: '\\e902';\n}\n.icon-envelop:before {\n  content: '\\e902';\n}\n.icon-social1:before {\n  content: '\\e902';\n}\n",""]),e.exports=t},function(e,t,n){"use strict";n.r(t),t.default=n.p+"fonts/icomoon.eot"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"fonts/icomoon.ttf"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"fonts/icomoon.woff"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"fonts/icomoon.svg"},function(e,t,n){var r=n(68),i=n(298);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}}
257,function(e,t,n){(t=n(69)(!1)).push([e.i,"/* Manually copied from https://unpkg.com/[email protected]/dist/base.css. This\nhelps us normalize CSS properties in an expected way that's friendly with web\napp development. */\n\n/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n   ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n  line-height: 1.15; /* 1 */\n  -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n     ========================================================================== */\n\n/**\n   * Remove the margin in all browsers.\n   */\n\nbody {\n  margin: 0;\n}\n\n/**\n   * Render the `main` element consistently in IE.\n   */\n\nmain {\n  display: block;\n}\n\n/**\n   * Correct the font size and margin on `h1` elements within `section` and\n   * `article` contexts in Chrome, Firefox, and Safari.\n   */\n\nh1 {\n  font-size: 2em;\n  margin: 0.67em 0;\n}\n\n/* Grouping content\n     ========================================================================== */\n\n/**\n   * 1. Add the correct box sizing in Firefox.\n   * 2. Show the overflow in Edge and IE.\n   */\n\nhr {\n  box-sizing: content-box; /* 1 */\n  height: 0; /* 1 */\n  overflow: visible; /* 2 */\n}\n\n/**\n   * 1. Correct the inheritance and scaling of font size in all browsers.\n   * 2. Correct the odd `em` font sizing in all browsers.\n   */\n\npre {\n  font-family: monospace, monospace; /* 1 */\n  font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n     ========================================================================== */\n\n/**\n   * Remove the gray background on active links in IE 10.\n   */\n\na {\n  background-color: transparent;\n}\n\n/**\n   * 1. Remove the bottom border in Chrome 57-\n   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n   */\n\nabbr[title] {\n  border-bottom: none; /* 1 */\n  text-decoration: underline; /* 2 */\n  -webkit-text-decoration: underline dotted;\n  text-decoration: underline dotted; /* 2 */\n}\n\n/**\n   * Add the correct font weight in Chrome, Edge, and Safari.\n   */\n\nb,\nstrong {\n  font-weight: bolder;\n}\n\n/**\n   * 1. Correct the inheritance and scaling of font size in all browsers.\n   * 2. Correct the odd `em` font sizing in all browsers.\n   */\n\ncode,\nkbd,\nsamp {\n  font-family: monospace, monospace; /* 1 */\n  font-size: 1em; /* 2 */\n}\n\n/**\n   * Add the correct font size in all browsers.\n   */\n\nsmall {\n  font-size: 80%;\n}\n\n/**\n   * Prevent `sub` and `sup` elements from affecting the line height in\n   * all browsers.\n   */\n\nsub,\nsup {\n  font-size: 75%;\n  line-height: 0;\n  position: relative;\n  vertical-align: baseline;\n}\n\nsub {\n  bottom: -0.25em;\n}\n\nsup {\n  top: -0.5em;\n}\n\n/* Embedded content\n     ========================================================================== */\n\n/**\n   * Remove the border on images inside links in IE 10.\n   */\n\nimg {\n  border-style: none;\n}\n\n/* Forms\n     ========================================================================== */\n\n/**\n   * 1. Change the font styles in all browsers.\n   * 2. Remove the margin in Firefox and Safari.\n   */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n  font-family: inherit; /* 1 */\n  font-size: 100%; /* 1 */\n  line-height: 1.15; /* 1 */\n  margin: 0; /* 2 */\n}\n\n/**\n   * Show the overflow in IE.\n   * 1. Show the overflow in Edge.\n   */\n\nbutton,\ninput {\n  /* 1 */\n  overflow: visible;\n}\n\n/**\n   * Remove the inheritance of text transform in Edge, Firefox, and IE.\n   * 1. Remove the inheritance of text transform in Firefox.\n   */\n\nbutton,\nselect {\n  /* 1 */\n  text-transform: none;\n}\n\n/**\n   * Correct the inability to style clickable types in iOS and Safari.\n   */\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n  -webkit-appearance: button;\n}\n\n/**\n   * Remove the inner border and padding in Firefox.\n   */\n\nbutton::-moz-focus-inner,\n[type='button']::-moz-focus-inner,\n[type='reset']::-moz-focus-inner,\n[type='submit']::-moz-focus-inner {\n  border-style: none;\n  padding: 0;\n}\n\n/**\n   * Restore the focus styles unset by the previous rule.\n   */\n\nbutton:-moz-focusring,\n[type='button']:-moz-focusring,\n[type='reset']:-moz-focusring,\n[type='submit']:-moz-focusring {\n  outline: 1px dotted ButtonText;\n}\n\n/**\n   * Correct the padding in Firefox.\n   */\n\nfieldset {\n  padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n   * 1. Correct the text wrapping in Edge and IE.\n   * 2. Correct the color inheritance from `fieldset` elements in IE.\n   * 3. Remove the padding so developers are not caught out when they zero out\n   *    `fieldset` elements in all browsers.\n   */\n\nlegend {\n  box-sizing: border-box; /* 1 */\n  color: inherit; /* 2 */\n  display: table; /* 1 */\n  max-width: 100%; /* 1 */\n  padding: 0; /* 3 */\n  white-space: normal; /* 1 */\n}\n\n/**\n   * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n   */\n\nprogress {\n  vertical-align: baseline;\n}\n\n/**\n   * Remove the default vertical scrollbar in IE 10+.\n   */\n\ntextarea {\n  overflow: auto;\n}\n\n/**\n   * 1. Add the correct box sizing in IE 10.\n   * 2. Remove the padding in IE 10.\n   */\n\n[type='checkbox'],\n[type='radio'] {\n  box-sizing: border-box; /* 1 */\n  padding: 0; /* 2 */\n}\n\n/**\n   * Correct the cursor style of increment and decrement buttons in Chrome.\n   */\n\n[type='number']::-webkit-inner-spin-button,\n[t
257ype='number']::-webkit-outer-spin-button {\n  height: auto;\n}\n\n/**\n   * 1. Correct the odd appearance in Chrome and Safari.\n   * 2. Correct the outline style in Safari.\n   */\n\n[type='search'] {\n  -webkit-appearance: textfield; /* 1 */\n  outline-offset: -2px; /* 2 */\n}\n\n/**\n   * Remove the inner padding in Chrome and Safari on macOS.\n   */\n\n[type='search']::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\n\n/**\n   * 1. Correct the inability to style clickable types in iOS and Safari.\n   * 2. Change font properties to `inherit` in Safari.\n   */\n\n::-webkit-file-upload-button {\n  -webkit-appearance: button; /* 1 */\n  font: inherit; /* 2 */\n}\n\n/* Interactive\n     ========================================================================== */\n\n/*\n   * Add the correct display in Edge, IE 10+, and Firefox.\n   */\n\ndetails {\n  display: block;\n}\n\n/*\n   * Add the correct display in all browsers.\n   */\n\nsummary {\n  display: list-item;\n}\n\n/* Misc\n     ========================================================================== */\n\n/**\n   * Add the correct display in IE 10+.\n   */\n\ntemplate {\n  display: none;\n}\n\n/**\n   * Add the correct display in IE 10.\n   */\n\n[hidden] {\n  display: none;\n}\n\n/**\n   * Manually forked from SUIT CSS Base: https://github.com/suitcss/base\n   * A thin layer on top of normalize.css that provides a starting point more\n   * suitable for web applications.\n   */\n\n/**\n   * Removes the default spacing and border for appropriate elements.\n   */\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n  margin: 0;\n}\n\nbutton {\n  background-color: transparent;\n  background-image: none;\n  padding: 0;\n}\n\n/**\n   * Work around a Firefox/IE bug where the transparent `button` background\n   * results in a loss of the default `button` focus styles.\n   */\n\nbutton:focus {\n  outline: 1px dotted;\n  outline: 5px auto -webkit-focus-ring-color;\n}\n\nfieldset {\n  margin: 0;\n  padding: 0;\n}\n\nol,\nul {\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n\n/**\n   * Tailwind custom reset styles\n   */\n\n/**\n   * 1. Use the user's configured `sans` font-family (with Tailwind's default\n   *    sans-serif font stack as a fallback) as a sane default.\n   * 2. Use Tailwind's default \"normal\" line-height so the user isn't forced\n   *    to override it to ensure consistency even when using the default theme.\n   */\n\nhtml {\n  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',\n    Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n    'Noto Color Emoji'; /* 1 */\n  line-height: 1.5; /* 2 */\n}\n\n/**\n   * 1. Prevent padding and border from affecting element width.\n   *\n   *    We used to set this in the html element and inherit from\n   *    the parent element for everything else. This caused issues\n   *    in shadow-dom-enhanced elements like <details> where the content\n   *    is wrapped by a div with box-sizing set to `content-box`.\n   *\n   *    https://github.com/mozdevs/cssremedy/issues/4\n   *\n   *\n   * 2. Allow adding a border to an element by just adding a border-width.\n   *\n   *    By default, the way the browser specifies that an element should have no\n   *    border is by setting it's border-style to `none` in the user-agent\n   *    stylesheet.\n   *\n   *    In order to easily add borders to elements by just setting the `border-width`\n   *    property, we change the default border-style for all elements to `solid`, and\n   *    use border-width to hide them instead. This way our `border` utilities only\n   *    need to set the `border-width` property instead of the entire `border`\n   *    shorthand, making our border utilities much more straightforward to compose.\n   *\n   *    https://github.com/tailwindcss/tailwindcss/pull/116\n   */\n\n*,\n::before,\n::after {\n  box-sizing: border-box; /* 1 */\n  border-width: 0; /* 2 */\n  border-style: solid; /* 2 */\n  border-color: #e2e8f0; /* 2 */\n}\n\n/*\n   * Ensure horizontal rules are visible by default\n   */\n\nhr {\n  border-top-width: 1px;\n}\n\n/**\n   * Undo the `border-style: none` reset that Normalize applies to images so that\n   * our `border-{width}` utilities have the expected effect.\n   *\n   * The Normalize reset is unnecessary for us since we default the border-width\n   * to 0 on all elements.\n   *\n   * https://github.com/tailwindcss/tailwindcss/issues/362\n   */\n\nimg {\n  border-style: solid;\n}\n\ntextarea {\n  resize: vertical;\n}\n\ninput:-ms-input-placeholder,\ntextarea:-ms-input-placeholder {\n  color: #a0aec0;\n}\n\ninput::-ms-input-placeholder,\ntextarea::-ms-input-placeholder {\n  color: #a0aec0;\n}\n\ninput::placeholder,\ntextarea::placeholder {\n  color: #a0aec0;\n}\n\nbutton,\n[role='button'] {\n  cursor: pointer;\n}\n\ntable {\n  border-collapse: collapse;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n  font-size: inherit;\n  font-weight: inherit;\n}\n\n/**\n   * Reset links to optimize for opt-in styling instead of\n   * opt-out.\n   */\n\na {\n  color: inherit;\n  text-decoration: inherit;\n}\n\n/**\n   * Reset form element properties that are easy to forget to\n   * style explicitly so you don't inadvertently introduce\n   * styles that deviate from your design system. These styles\n   * supplement a partial reset that is already applied by\n   * normalize.css.\n   */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n  padding: 0;\n  line-height: inherit;\n  color: inherit;\n}\n\n/**\n   * Use the configured 'mono' font family for elements that\n   * are expected to be rendered with a monospace font, falling\n   * back to the system monospace stack if there is no configured\n   * 'mono' font family.\n   */\n\npre,\ncode,\nkbd,\nsamp {\n  font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;\n}\n\n/**\n   * Make replaced elements `display: block` by default as that's\n   * the behavior you want almost all of the time. Inspired by\n   * CSS Remedy, with `svg` added as well.\n   *\n   * https://github.com/mozdevs/cssremedy/issues/14\n   */\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n  display: block;\n  vertical-align: middle;\n}\n\n/**\n   * Constrain images and videos to the parent width and preserve\n   * their instrinsic aspect ratio.\n   *\n   * https://github.com/mozdevs/cssremedy/issues/14\n   */\n\nimg,\nvideo {\n  max-width: 100%;\n  height: auto;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(68),i=n(300);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}}
vendor: 4,911 bytes, line 257
257,function(e,t,n){(t=n(69)(!1)).push([e.i,"@import url(https://fonts.googleapis.com/css2?family=Inconsolata:wght@300&display=swap);"]),t.push([e.i,"html,\nbody,\n#root {\n  height: 100%;\n}\n::-webkit-scrollbar {\n  width: 0px;\n  background: transparent;\n}\nbody {\n  font-family: 'Inconsolata', monospace;\n  font-weight: 300;\n}\n\n/* Hide scrollbar for Chrome, Safari and Opera */\n*::-webkit-scrollbar {\n  display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n* {\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"create",(function(){return rd})),n.d(r,"clone",(function(){return id})),n.d(r,"copy",(function(){return od})),n.d(r,"fromValues",(function(){return ad})),n.d(r,"set",(function(){return sd})),n.d(r,"identity",(function(){return ld})),n.d(r,"transpose",(function(){return cd})),n.d(r,"invert",(function(){return ud})),n.d(r,"adjoint",(function(){return fd})),n.d(r,"determinant",(function(){return dd})),n.d(r,"multiply",(function(){return hd})),n.d(r,"translate",(function(){return pd})),n.d(r,"scale",(function(){return md})),n.d(r,"rotate",(function(){return gd})),n.d(r,"rotateX",(function(){return vd})),n.d(r,"rotateY",(function(){return yd})),n.d(r,"rotateZ",(function(){return bd})),n.d(r,"fromTranslation",(function(){return wd})),n.d(r,"fromScaling",(function(){return Ed})),n.d(r,"fromRotation",(function(){return kd})),n.d(r,"fromXRotation",(function(){return xd})),n.d(r,"fromYRotation",(function(){return Sd})),n.d(r,"fromZRotation",(function(){return _d})),n.d(r,"fromRotationTranslation",(function(){return Ad})),n.d(r,"fromQuat2",(function(){return Cd})),n.d(r,"getTranslation",(function(){return Td})),n.d(r,"getScaling",(function(){return Pd})),n.d(r,"getRotation",(function(){return Od})),n.d(r,"fromRotationTranslationScale",(function(){return Md})),n.d(r,"fromRotationTranslationScaleOrigin",(function(){return Id})),n.d(r,"fromQuat",(function(){return Rd})),n.d(r,"frustum",(function(){return Ld})),n.d(r,"perspectiveNO",(function(){return Nd})),n.d(r,"perspective",(function(){return jd})),n.d(r,"perspectiveZO",(function(){return Bd})),n.d(r,"perspectiveFromFieldOfView",(function(){return Fd})),n.d(r,"orthoNO",(function(){return Dd})),n.d(r,"ortho",(function(){return zd})),n.d(r,"orthoZO",(function(){return Ud})),n.d(r,"lookAt",(function(){return $d})),n.d(r,"targetTo",(function(){return Hd})),n.d(r,"str",(function(){return Jd})),n.d(r,"frob",(function(){return Gd})),n.d(r,"add",(function(){return Vd})),n.d(r,"subtract",(function(){return Xd})),n.d(r,"multiplyScalar",(function(){return Wd})),n.d(r,"multiplyScalarAndAdd",(function(){return qd})),n.d(r,"exactEquals",(function(){return Kd})),n.d(r,"equals",(function(){return Zd})),n.d(r,"mul",(function(){return Yd})),n.d(r,"sub",(function(){return Qd}));var i=n(0),o=n.n(i),a=n(62),s=n.n(a),l=n(152),c=n(42);n(72);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e){return"/"===e.charAt(0)}function d(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var h=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&f(e),a=t&&f(t),s=o||a;if(e&&f(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var l=i[i.length-1];n="."===l||".."===l||""===l}else n=!1;for(var c=0,u=i.length;u>=0;u--){var h=i[u];"."===h?d(i,u):".."===h?(d(i,u),c++):c&&(d(i,u),c--)}if(!s)for(;c--;c)i.unshift("..");!s||""===i[0]||i[0]&&f(i[0])||i.unshift("");var p=i.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};var p=n(35);function m(e){return"/"===e.charAt(0)?e:"/"+e}function g(e){return"/"===e.charAt(0)?e.substr(1):e}function v(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function y(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function b(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function w(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=u({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invali
257d percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=h(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function E(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var k=!("undefined"==typeof window||!window.document||!window.document.createElement);function x(e,t){t(window.confirm(e))}function S(){try{return window.history.state||{}}catch(e){return{}}}function _(e){void 0===e&&(e={}),k||Object(p.default)(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,l=o.getUserConfirmation,c=void 0===l?x:l,f=o.keyLength,d=void 0===f?6:f,h=e.basename?y(m(e.basename)):"";function g(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return h&&(o=v(o,h)),w(o,r,n)}function _(){return Math.random().toString(36).substr(2,d)}var A=E();function C(e){u(D,e),D.length=n.length,A.notifyListeners(D.location,D.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||M(g(e.state))}function P(){M(g(S()))}var O=!1;function M(e){if(O)O=!1,C();else{A.confirmTransitionTo(e,"POP",c,(function(t){t?C({action:"POP",location:e}):function(e){var t=D.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(O=!0,N(i))}(e)}))}}var I=g(S()),R=[I.key];function L(e){return h+b(e)}function N(e){n.go(e)}var j=0;function B(e){1===(j+=e)&&1===e?(window.addEventListener("popstate",T),i&&window.addEventListener("hashchange",P)):0===j&&(window.removeEventListener("popstate",T),i&&window.removeEventListener("hashchange",P))}var F=!1;var D={length:n.length,action:"POP",location:I,createHref:L,push:function(e,t){var i=w(e,t,_(),D.location);A.confirmTransitionTo(i,"PUSH",c,(function(e){if(e){var t=L(i),o=i.key,a=i.state;if(r)if(n.pushState({key:o,state:a},null,t),s)window.location.href=t;else{var l=R.indexOf(D.location.key),c=R.slice(0,l+1);c.push(i.key),R=c,C({action:"PUSH",location:i})}else window.location.href=t}}))},replace:function(e,t){var i=w(e,t,_(),D.location);A.confirmTransitionTo(i,"REPLACE",c,(function(e){if(e){var t=L(i),o=i.key,a=i.state;if(r)if(n.replaceState({key:o,state:a},null,t),s)window.location.replace(t);else{var l=R.indexOf(D.location.key);-1!==l&&(R[l]=i.key),C({action:"REPLACE",location:i})}else window.location.replace(t)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&(e=!1);var t=A.setPrompt(e);return F||(B(1),F=!0),function(){return F&&(F=!1,B(-1)),t()}},listen:function(e){var t=A.appendListener(e);return B(1),function(){B(-1),t()}}};return D}var A={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+g(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:g,decodePath:m},slash:{encodePath:m,decodePath:m}};function C(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function T(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function P(e){window.location.replace(C(window.location.href)+"#"+e)}function O(e){void 0===e&&(e={}),k||Object(p.default)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?x:r,o=n.hashType,a=void 0===o?"slash":o,s=e.basename?y(m(e.basename)):"",l=A[a],c=l.encodePath,f=l.decodePath;function d(){var e=f(T());return s&&(e=v(e,s)),w(e)}var h=E();function g(e){u(D,e),D.length=t.length,h.notifyListeners(D.location,D.action)}var S=!1,_=null;function O(){var e,t,n=T(),r=c(n);if(n!==r)P(r);else{var o=d(),a=D.location;if(!S&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(_===b(o))return;_=null,function(e){if(S)S=!1,g();else{h.confirmTransitionTo(e,"POP",i,(function(t){t?g({action:"POP",location:e}):function(e){var t=D.location,n=L.lastIndexOf(b(t));-1===n&&(n=0);var r=L.lastIndexOf(b(e));-1===r&&(r=0);var i=n-r;i&&(S=!0,N(i))}(e)}))}}(o)}}var M=T(),I=c(M);M!==I&&P(I);var R=d(),L=[b(R)];function N(e){t.go(e)}var j=0;function B(e){1===(j+=e)&&1===e?window.addEventListener("hashchange",O):0===j&&window.removeEventListener("hashchange",O)}var F=!1;var D={length:t.length,action:"POP",location:R,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=C(window.location.href)),n+"#"+c(s+b(e))},push:function(e,t){var n=w(e,void 0,void 0,D.location);h.confirmTransitionTo(n,"PUSH",i,(function(e){if(e){var t=b(n),r=c(s+t);if(T()!==r){_=t,function(e){window.location.hash=e}(r);var i=L.lastIndexOf(b(D.location)),o=L.slice(0,i+1);o.push(t),L=o,g({action:"PUSH",location:n})}else g()}}))},replace:function(e,t){var n=w(e,void 0,void 0,D.location);h.confirmTransitionTo(n,"REPLACE",i,(function(e){if(e){var t=b(n),r=c(s+t);T()!==r&&(_=t,P(r));var i=L.indexOf(b(D.location));-1!==i&&(L[i]=t),g({action:"REPLACE",location:n})}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return F||(B(1),F=!0),function(){return F&&(F=!1,B(-1)),t()}},listen:function(e){var t=h.appendListener(e);return B(1),function(){B(-1),t()}}};return D}function M(e,t,n){return Math.min(Math.max(e,t),n)}function I(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,o=t.initialIndex,a=void 0===o?0:o,s=t.keyLength,l=void 0===s?6:s,c=E();function f(e){u(v,e),v.length=v.entries.length,c.notifyListeners(v.location,v.action)}function d(){return Math.random().toString(36).substr(2,l)}var h=M(a,0,i.length-1),p=i.map((function(e){return w(e,void 0,"string"==typeof e?d():e.key||d())})),m=b;function g(e){var t=M(v.index+e,0,v.entries.length-1),r=v.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var v={length:p.length,action:"POP",location:p[h],index:h,entries:p,createHref:m,push:function(e,t){var r=w(e,t,d(),v.location);c.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=v.index+1,n=v.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=w(e,t,d(),v.location);c.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(v.entries[v.index]=r,f({action:"REPLACE",location:r}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=v.index+e;return t>=0&&t<v.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return v}var R=n(150),L=n(105),N=n.n(L);n(71);function j(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n(73);var B=function(e){var t=Object(R.a)();return t.displayName=e,t},F=B("Router-History"),D=B("Router"),z=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(c.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pe
257ndingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.a.createElement(D.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(F.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);o.a.Component;o.a.Component;var U={},$=0;function H(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=U[n]||(U[n]={});if(r[e])return r[e];var i=[],o={regexp:N()(e,i,t),keys:i};return $<1e4&&(r[e]=o,$++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var u=l[0],f=l.slice(1),d=e===u;return o&&!d?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var J=function(e){function t(){return e.apply(this,arguments)||this}return Object(c.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(D.Consumer,null,(function(t){t||Object(p.default)(!1);var n=e.props.location||t.location,r=u({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?H(n.pathname,e.props):t.match}),i=e.props,a=i.children,s=i.component,l=i.render;return Array.isArray(a)&&function(e){return 0===o.a.Children.count(e)}(a)&&(a=null),o.a.createElement(D.Provider,{value:r},r.match?a?"function"==typeof a?a(r):a:s?o.a.createElement(s,r):l?l(r):null:"function"==typeof a?a(r):null)}))},t}(o.a.Component);function G(e){return"/"===e.charAt(0)?e:"/"+e}function V(e,t){if(!e)return t;var n=G(e);return 0!==t.pathname.indexOf(n)?t:u({},t,{pathname:t.pathname.substr(n.length)})}function X(e){return"string"==typeof e?e:b(e)}function W(e){return function(){Object(p.default)(!1)}}function q(){}o.a.Component;var K=function(e){function t(){return e.apply(this,arguments)||this}return Object(c.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(D.Consumer,null,(function(t){t||Object(p.default)(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?H(i.pathname,u({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);var Z=o.a.useContext;function Y(){return Z(F)}var Q=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=_(t.props),t}return Object(c.a)(t,e),t.prototype.render=function(){return o.a.createElement(z,{history:this.history,children:this.props.children})},t}(o.a.Component);o.a.Component;var ee=function(e,t){return"function"==typeof e?e(t):e},te=function(e,t){return"string"==typeof e?w(e,null,null,t):e},ne=function(e){return e},re=o.a.forwardRef;void 0===re&&(re=ne);var ie=re((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=j(e,["innerRef","navigate","onClick"]),s=a.target,l=u({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=ne!==re&&t||n,o.a.createElement("a",l)}));var oe=re((function(e,t){var n=e.component,r=void 0===n?ie:n,i=e.replace,a=e.to,s=e.innerRef,l=j(e,["component","replace","to","innerRef"]);return o.a.createElement(D.Consumer,null,(function(e){e||Object(p.default)(!1);var n=e.history,c=te(ee(a,e.location),e.location),f=c?n.createHref(c):"",d=u({},l,{href:f,navigate:function(){var t=ee(a,e.location),r=b(e.location)===b(te(t));(i||r?n.replace:n.push)(t)}});return ne!==re?d.ref=t||s:d.innerRef=s,o.a.createElement(r,d)}))})),ae=function(e){return e},se=o.a.forwardRef;void 0===se&&(se=ae);se((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,s=e.activeStyle,l=e.className,c=e.exact,f=e.isActive,d=e.location,h=e.sensitive,m=e.strict,g=e.style,v=e.to,y=e.innerRef,b=j(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.a.createElement(D.Consumer,null,(function(e){e||Object(p.default)(!1);var n=d||e.location,i=te(ee(v,n),n),w=i.pathname,E=w&&w.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),k=E?H(n.pathname,{path:E,exact:c,sensitive:h,strict:m}):null,x=!!(f?f(k,n):k),S="function"==typeof l?l(x):l,_="function"==typeof g?g(x):g;x&&(S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(S,a),_=u({},_,s));var A=u({"aria-current":x&&r||null,className:S,style:_,to:i},b);return ae!==se?A.ref=t||y:A.innerRef=y,o.a.createElement(oe,A)}))}
257));var le=n(2),ce=n(25),ue=n.n(ce),fe=n(6),de=n(1),he=n(26),pe=n.n(he);de.SpaceType.NEBULA,de.SpaceType.SPACE,de.SpaceType.DEEP_SPACE,de.SpaceType.DEAD_SPACE;const me=pe()("rgb(0, 174, 233)").hex(),ge=pe()(me).lighten(.3).hex(),ve=pe()("rgb(248, 248, 248)").hex(),ye=pe()(me).lighten(.5).hex(),be=pe()(me).lighten(.8).hex(),we=pe()("rgb(27,41,94)").darken(.5).hex(),Ee=pe()(we).darken(.3).hex(),ke=pe()("rgb(55, 88, 115)").darken(.2).hex(),xe="rgb(0, 214, 123)",Se={colors:{text:me,textLight:ge,subtext:ve,subbertext:ye,subbesttext:be,blueBackground:"#0a0a23",background:"rgb(27,41,94)",backgrounddark:"rgb(3,9,33)",backgroundlight:we,backgroundlighter:Ee,dfblue:"rgb(95, 152, 199)",border:"rgb(55, 88, 115)",borderDark:ke,borderDarker:pe()(ke).darken(.2).hex(),dfgreen:xe,dfgreendark:pe()(xe).darken(.7).hex(),dfgreenlight:pe()(xe).lighten(.1).hex(),dfred:"rgb(210, 53, 64)",dfyellow:"#e8e228",dfpurple:"#9189d9",dfwhite:"#ffffff",artifactBackground:"rgb(21, 17, 71)",icons:{twitter:"#1DA1F2",github:"#8e65db",discord:"#7289da",email:"#D44638",blog:"#ffcb1f"}},borderRadius:"3px",fontSize:"16pt",fontSizeS:"12pt",fontSizeXS:"10pt",fontH1:"42pt",fontH1S:"36pt",fontH2:"24pt",titleFont:"perfect_dos_vga_437regular",screenSizeS:"660px",game:{terminalWidth:"240pt",fontSize:"12pt",canvasbg:"#100544",rangecolors:{dash:"#9691bf",dashenergy:"#f5c082",colorenergy:"#080330",color100:"#050228",color50:"#050233",color25:"#050238"},bonuscolors:{energyCap:"hsl(360, 73%, 70%)",speed:"hsl(290, 73%, 70%)",def:"hsl(231, 73%, 70%)",energyGro:"hsl(136, 73%, 70%)",range:"hsl(50, 73%, 70%)"},toolbarHeight:"12em",terminalFontSize:"10pt",styles:{active:"filter: brightness(80%)",animProps:"ease-in-out infinite alternate-reverse"}},prefabs:{noselect:le.b`
258      -webkit-touch-callout: none; /* iOS Safari */
259      -webkit-user-select: none; /* Safari */
260      -khtml-user-select: none; /* Konqueror HTML */
261      -moz-user-select: none; /* Old versions of Firefox */
262      -ms-user-select: none; /* Internet Explorer/Edge */
263      user-select: none;
264    `}},_e=(le.b`
265    padding: 2px 12px;
266  `,le.b`
267    width: ${fe.RECOMMENDED_MODAL_WIDTH};
268    max-width: ${fe.RECOMMENDED_MODAL_WIDTH};
269  `,`background: ${Se.colors.background};`),Ae=`border-radius:${Se.borderRadius};`,Ce=le.b`
270    border-radius: 3px;
271    border: 1px solid ${Se.colors.borderDark};
272  `,Te=le.b`
273    position: absolute;
274    top: 0;
275    left: 0;
276  `;var Pe=Se,Oe=n(16),Me=n.n(Oe);const Ie=()=>{let e=!1;var t;return t=navigator.userAgent||navigator.vendor||"opera"in window,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
276sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e},Re=async()=>{const e={};try{e.unsupported_browser=!await(async()=>Ne()||Le()||await je())(),e.no_idb=!("indexedDB"in window),e.mobile_or_tablet=Ie()}catch(t){console.error(t),e.unexpected_error=!0}return e},Le=()=>navigator.userAgent.indexOf("Firefox")>0,Ne=()=>/Google Inc/.test(navigator.vendor),je=async()=>!(!navigator.brave||!await navigator.brave.isBrave()),Be={position:"absolute",width:"100vw",height:"150vh"};class Fe{constructor(e){this.canvas=e;const t=this.canvas.getContext("2d");if(!t)throw new Error("Not a 2D canvas.");this.ctx=t,this.mouse={x:-3735928559,y:-3735928559},this.delMouse={x:0,y:0},this.points=[],this.edges=[],ue()(this),this.setupDraw(),this.frame()}makeConstellation(e){const t=()=>{const e=Math.floor(3*Math.random());return[Pe.colors.dfgreen,Pe.colors.dfblue,Pe.colors.dfred][e]},n=[];let r=[];const i=Math.floor(2+7*Math.random());for(let r=0;r<i;r++){const r=20+160*Math.random(),i=2*Math.random()*Math.PI;n.push({pos:{x:e.x+r*Math.sin(i),y:e.y+r*Math.cos(i)},z:.2+.8*Math.random(),r:1+4*Math.random(),color:t()})}const o=Math.floor((1+Math.random())*(i-1));for(let e=0;e<o;e++){const e=Math.floor(Math.random()*i);let t=e;for(;t===e;)t=Math.floor(Math.random()*i);r.push([e,t])}const a=this.points.length;r=r.map(e=>[e[0]+a,e[1]+a]);for(const e of n)this.points.push(e),this.realPos.push({x:-3735928559,y:-3735928559});for(const e of r)this.edges.push(e)}setupDraw(){const e=this.canvas;this.points=[],this.edges=[],this.realPos=[],this.canvas.width=this.canvas.getBoundingClientRect().width,this.canvas.height=this.canvas.getBoundingClientRect().height;const t=window.innerWidth>400?Math.floor(e.width/200):2,n=window.innerHeight>600?Math.floor(e.height/360):3,r=()=>100*Math.random()-50,i=(t,n)=>(t=>.2*e.width<t&&t<.8*e.width)(t)&&(t=>.2*e.height<t&&t<.8*e.height)(n);for(let o=0;o<t;o++)for(let a=0;a<n;a++){const s=o*e.width/(t-1),l=a*e.height/2/(n-1),c=Math.random(),u=i(s,l);(u&&c<.4||!u&&c<.9)&&this.makeConstellation({x:s+r(),y:l+r()})}}allowMouse(){return!("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||Ie()||window.innerWidth<600)}frame(){const e=this.ctx,t=this.canvas,n=this.mouse,r=this.delMouse,i=this.edges,o=this.points,a=this.realPos;if(!this.allowMouse()){const e=()=>Date.now()/3e3,t=()=>1.5*(.5+.5*Math.sin(e())),n={clientX:(()=>1.5*(.5+.5*Math.cos(e())))()*window.innerWidth,clientY:t()*window.innerHeight};this._mouseMove(n)}e.clearRect(0,0,t.width,t.height);for(const e in o){const t=o[e],{z:n,pos:{x:i,y:a}}=t,s=i+n*r.x*-4,l=a+n*r.y*-4;this.realPos[e]={x:s,y:l}}for(const t of i){const[n,r]=t,i=-3735928559===a[n].x?o[n].pos:a[n],s=-3735928559===a[r].x?o[r].pos:a[r];e.strokeStyle=Pe.colors.subtext,e.lineWidth=.5,e.beginPath(),e.moveTo(i.x,i.y),e.lineTo(s.x,s.y),e.stroke()}for(const t in o){const{x:r,y:i}=this.realPos[t],a=o[t],{r:s,color:l}=a,c=(r-n.x)**2+(i-n.y)**2,u=81e4,f=Math.max(0,1-c/u)*(.5*(Math.sin(8**Math.sin(c/3e5))+1));e.fillStyle=Pe.colors.subtext,e.beginPath(),e.arc(r,i,s*(1+1.5*f),0,2*Math.PI),e.fill(),e.globalAlpha=f,e.fillStyle=l,e.beginPath(),e.arc(r,i,s*(1+1.5*f),0,2*Math.PI),e.fill(),e.globalAlpha=1}this.frameRequestId=window.requestAnimationFrame(this.frame.bind(this))}mouseMove(e){this.allowMouse()&&this._mouseMove(e)}_mouseMove(e){const t=e.clientX,n=e.clientY;let r={x:0,y:0};if(-3735928559!==this.mouse.x){r=((e,t)=>{if(e.x**2+e.y**2>t**2){const n=t/Math.sqrt(e.x**2+e.y**2);return{x:e.x*n,y:e.y*n}}return e})({x:t-this.mouse.x,y:n-this.mouse.y},20)}const i={x:this.delMouse.x+.1*r.x,y:this.delMouse.y+.1*r.y};this.delMouse=i,this.mouse={x:e.clientX,y:e.clientY}}static initialize(e){const t=new Fe(e);Fe.instance=t;const n=t;return window.addEventListener("mousemove",n.mouseMove),t}static destroyInstance(){const e=Fe.instance;e&&(window.cancelAnimationFrame(e.frameRequestId),window.removeEventListener("mousemove",e.mouseMove)),Fe.instance=null}}function De(){const[e,t]=o.a.useState(window.innerWidth),[n,r]=o.a.useState(1.5*window.innerHeight),a=Object(i.useRef)(null),s=Object(i.useCallback)((function(){t(window.innerWidth),r(window.innerHeight)}),[]);return Object(i.useEffect)(()=>(a.current?Fe.initialize(a.current):console.error("could not init draw"),window.addEventListener("resize",s),(
276)=>{window.removeEventListener("resize",s),Fe.destroyInstance()}),[s]),o.a.createElement("canvas",{width:e,height:n,ref:a,style:Be})}function ze(){return new URLSearchParams(window.location.search).get("darkForestKey")}const Ue=[0,0,0];function $e(e){const t=Date.now();return t-e[0]<3e4&&t-e[1]<3e4&&t-e[2]<3e4}async function He(e,t){if($e(Ue))throw console.log("too fast"),new Error("Too many requests. Please a few seconds before trying again.");Ue.push(Date.now()),Ue.shift();const n=await fetch("/conversation/step_conversation",{headers:{"Content-Type":"application/json"},body:JSON.stringify({darkforestKey:ze(),artifactId:e,message:t}),method:"POST"}),r=await n.json();if(r.error)throw new Error(r.error);return r.conversation}const Je=new(n(201));class Ge{constructor(e,t,n,r,i){this.terminal=e,this.setConversation=t,this.setLoading=n,this.username="Ivan",this.artifact={type:r,rarity:i,name:"Qora"},this.artifactId=`prototype-ui-${de.ArtifactRarityNames[i]}-${de.ArtifactTypeNames[r]}`}async start(){var e,t,n,r,i,o,a,s,l,c,u,f,d,h,p,m,g,v;null===(e=this.terminal.current)||void 0===e||e.println("Press Enter to Begin..."),await(null===(t=this.terminal.current)||void 0===t?void 0:t.getInput()),null===(n=this.terminal.current)||void 0===n||n.println(""),null===(r=this.terminal.current)||void 0===r||r.println(`Initializing conversation with ${this.artifact.name} (${this.artifact.type})`),null===(i=this.terminal.current)||void 0===i||i.printLoadingSpinner();try{this.setLoading(!0),this.conversation=await async function(e,t,n){const r=await fetch("/conversation/start_conversation",{headers:{"Content-Type":"application/json"},body:JSON.stringify({darkforestKey:ze(),artifactName:e.name,artifactRarity:e.rarity,artifactType:e.type,artifactId:t,username:n}),method:"POST"}),i=await r.json();if(i.error)throw new Error(i.error);return i.conversation}(this.artifact,this.artifactId,this.username),this.setConversation(this.conversation)}catch(e){return null===(o=this.terminal.current)||void 0===o||o.removeLast(2),void(null===(a=this.terminal.current)||void 0===a||a.println(e.message,5))}finally{this.setLoading(!1)}null===(s=this.terminal.current)||void 0===s||s.removeLast(2);let y=!1;for(;;){let e=!0;const t=this.conversation.messages[this.conversation.messages.length-1];null===(l=this.terminal.current)||void 0===l||l.print(this.artifact.name,6),null===(c=this.terminal.current)||void 0===c||c.print(": "),y?(this.printClean("[TRANSLATION ERROR]. I was not able to understand. Try again."),y=!1):this.printLastMessage(t),null===(u=this.terminal.current)||void 0===u||u.newline();const n=await(null===(f=this.terminal.current)||void 0===f?void 0:f.getInput())||"";if(n.length>200)null===(d=this.terminal.current)||void 0===d||d.println(`Input too long. ${n.length} chars received. (Max 200)`,5);else if(Je.isProfane(n))null===(h=this.terminal.current)||void 0===h||h.println("Profane words detected. Please try again.",5);else{try{null===(p=this.terminal.current)||void 0===p||p.printLoadingSpinner(),this.setLoading(!0);const e=await He(this.artifactId,n);this.conversation=e,this.setConversation(this.conversation)}catch(t){null===(m=this.terminal.current)||void 0===m||m.removeLast(2),null===(g=this.terminal.current)||void 0===g||g.println(t.message,5),e=!1,y=!0}finally{this.setLoading(!1)}e&&(null===(v=this.terminal.current)||void 0===v||v.removeLast(2))}}}printClean(e,t){var n;let r=e;var i;null!==e&&0!==e.length&&(i=e,r=Je.clean(i)),null===(n=this.terminal.current)||void 0===n||n.print(r,t)}printLastMessage(e){var t,n;if(0===e.highlights.length)return void this.printClean(e.message);let r=0;for(const t of e.highlights)this.printClean(e.message.substr(r,t.start-r)),this.printClean(e.message.substr(t.start,t.stop-t.start)),r=t.stop;null===(t=this.terminal.current)||void 0===t||t.print(e.message.substr(r,e.message.length-r)),null===(n=this.terminal.current)||void 0===n||n.newline()}}var Ve,Xe=new Uint8Array(16);function We(){if(!Ve&&!(Ve="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ve(Xe)}var qe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Ke=function(e){return"string"==typeof e&&qe.test(e)},Ze=[],Ye=0;Ye<256;++Ye)Ze.push((Ye+256).toString(16).substr(1));var Qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Ze[e[t+0]]+Ze[e[t+1]]+Ze[e[t+2]]+Ze[e[t+3]]+"-"+Ze[e[t+4]]+Ze[e[t+5]]+"-"+Ze[e[t+6]]+Ze[e[t+7]]+"-"+Ze[e[t+8]]+Ze[e[t+9]]+"-"+Ze[e[t+10]]+Ze[e[t+11]]+Ze[e[t+12]]+Ze[e[t+13]]+Ze[e[t+14]]+Ze[e[t+15]]).toLowerCase();
276if(!Ke(n))throw TypeError("Stringified UUID is invalid");return n};var et=function(e,t,n){var r=(e=e||{}).random||(e.rng||We)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Qe(r)};function tt(e){return o.a.createElement(nt,{...e,onClick:e.disabled?void 0:e.onClick})}const nt=le.c.span.withConfig({displayName:"BtnElement",componentId:"sc-l59wqn"})`
277  ${({disabled:e,color:t,borderColor:n,textColor:r,noBorder:i,wide:o,forceActive:a,small:s})=>le.b`
278    user-select: none;
279    display: inline-flex;
280    border-radius: 3px;
281    padding: 2px 8px;
282    ${s?"padding: 0 4px;":"padding: 2px 8px;"}
283    border: ${i?0:1}px solid ${n||t||Pe.colors.borderDark};
284    justify-content: center;
285    align-items: center;
286    cursor: pointer;
287    background-color: ${Pe.colors.backgrounddark};
288
289    ${s&&"font-size: 0.8em;"}
290    ${o&&"width: 100%;"}
291    color: ${r||t||Pe.colors.text};
292
293    &:hover {
294      ${!e&&le.b`
295        ${Pe.game.styles.active};
296        border: ${i?0:1}px solid ${n||t||Pe.colors.border};
297        color: ${Pe.colors.background};
298        background: ${t||Pe.colors.text};
299
300        /* Set the Icon color to a darker value on hover */
301        --df-icon-color: ${Pe.colors.background};
302      `}
303    }
304
305    &:active {
306      ${!e&&le.b`
307        background: ${t||pe()(Pe.colors.text).lighten(.5).hex()};
308      `}
309    }
310
311    ${e&&le.b`
312      color: ${Pe.colors.subtext};
313      border-color: ${Pe.colors.border};
314      background: none;
315      filter: none;
316    `}
317
318    ${a&&le.b`
319      border: ${i?0:1}px solid ${n||t||Pe.colors.border};
320      color: ${Pe.colors.background};
321      background: ${t||Pe.colors.text};
322    `}
323  `}
324`;var rt=n(11),it=n(8),ot=n.n(it);it("21888242871839275222246405745257275088548364400416034343698204186575808495617");const at=["None","Tiny HAT","Small HAT","Medium HAT","Large HAT","Huge HAT","Mega HAT","Enormous HAT","Titanic HAT","Legendary HAT","Almighty HAT","Cosmic HAT","Celestial HAT","Empyrean HAT","Ethereal HAT","Transcendental HAT","haaaat","HAAAAT"],st={GraduationCap:{topLayer:[],bottomLayer:["M492,267.96c-6,4-201,135-201,135l133-67c0,0,0,46,0,46s2,15-11,24c-37.43,22.63-129.6,92.01-157,101 c-27.84-9.26-119.09-78.04-157-101c-13-9-11-24-11-24s0-46,0-46l133,67c-2.97-6.13-211.75-133.17-209-147 c3.85-8.59,25.87-17.04,33-22c19.74-9.12,194.19-116.35,211-116c37.02,9.94,193.3,109.13,229,126 C493.49,248.86,509.51,255.94,492,267.96z M440,466.96l14-15l14,14v-152l-28,14V466.96z"]},PartyHat:{topLayer:["M256.19,163.68c-1.99,0-4.77-1.25-6.69-7.2l-6.27-19.42c-0.87-2.71-2.59-4.66-4.84-5.47 c-2.25-0.82-4.81-0.43-7.23,1.08l-17.28,10.85c-5.3,3.33-8.23,2.49-9.75,1.22c-1.53-1.28-2.85-4.02-0.5-9.81l7.69-18.91 c1.07-2.64,1.01-5.23-0.19-7.3c-1.2-2.07-3.41-3.42-6.23-3.82l-20.21-2.8c-6.19-0.86-7.9-3.37-8.25-5.34 c-0.35-1.96,0.4-4.91,5.93-7.83l18.04-9.54c2.52-1.33,4.13-3.36,4.55-5.72c0.42-2.35-0.41-4.81-2.32-6.93l-13.69-15.14 c-4.19-4.63-3.89-7.66-2.89-9.39c1-1.72,3.46-3.51,9.58-2.19l19.95,4.29c2.78,0.6,5.33,0.08,7.16-1.45s2.78-3.95,2.68-6.8 l-0.75-20.39c-0.23-6.25,1.95-8.37,3.82-9.05c1.87-0.68,4.91-0.46,8.74,4.48l12.53,16.11c1.75,2.25,4.03,3.49,6.42,3.49 c2.39,0,4.67-1.24,6.42-3.49l12.53-16.11c3.84-4.93,6.87-5.16,8.74-4.48c1.87,0.68,4.05,2.8,3.82,9.05l-0.75,20.39 c-0.11,2.85,0.84,5.26,2.68,6.8s4.38,2.05,7.16,1.45l19.95-4.28c6.12-1.32,8.58,0.47,9.58,2.19c1,1.72,1.3,4.75-2.89,9.39 l-13.69,15.14c-1.91,2.11-2.74,4.57-2.32,6.93c0.42,2.35,2.03,4.38,4.55,5.72L330,88.94c5.53,2.92,6.27,5.87,5.93,7.83 c-0.34,1.96-2.06,4.48-8.25,5.34l-20.21,2.8c-2.82,0.39-5.04,1.75-6.23,3.82c-1.19,2.07-1.26,4.66-0.19,7.3l7.69,18.91 c2.35,5.79,1.03,8.53-0.5,9.81c-1.53,1.28-4.45,2.11-9.75-1.22l-17.28-10.85c-2.41-1.52-4.98-1.9-7.23-1.08 c-2.24,0.82-3.96,2.76-4.84,5.47l-6.27,19.42C260.96,162.43,258.18,163.68,256.19,163.68z"],bottomLayer:["M411.86,472.67c-16.96,11.97-60.78,35.87-155.26,36c-0.03,0-0.05,0-0.08,0c-0.11,0-0.22,0-0.33,0c-0.11,0-0.22,0-0.33,0 c-0.03,0-0.05,0-0.08,0c-94.49-0.12-138.31-24.03-155.26-36c-17-12-9-40-9-40L255.28,71.41c0.38-1.79,0.58-2.73,0.58-2.73l0.33,0.73 l0.33-0.73c0,0,0.2,0.94,0.58,2.73l163.76,361.27C420.86,432.67,428.86,460.67,411.86,472.67z"]},Fish:{topLayer:[],bottomLayer:["M509.8,357.73c-25.01-40.97-57.87-74.99-95.03-98.35c-38.82-24.41-82.6-37.31-126.63-37.31 c-63.13,0-123.8,26.05-172.63,73.73c-27.74-32.76-59.58-57.61-92.9-72.36c-6.17-2.73-13.4-1.3-18.05,3.58s-5.75,12.17-2.73,18.2 l60.43,120.84L1.82,486.91c-3.02,6.04-1.92,13.32,2.73,18.2c3.09,3.23,7.3,4.96,11.58,4.96c2.18,0,4.39-0.45,6.47-1.37 c33.33-14.76,65.17-39.6,92.9-72.36c48.83,47.69,109.5,73.73,172.63,73.73c44.02,0,87.81-12.9,126.63-37.31 c37.16-23.37,70.02-57.38,95.03-98.36C512.92,369.28,512.92,362.84,509.8,357.73L509.8,357.73z M416.13,382.06 c-17.67,0-32-14.33-32-32s14.33-32,32-32s32,14.33,32,32S433.8,382.06,416.13,382.06z"]}
324,TopHat:{topLayer:["M322.86,380.88c-20.04,2.73-51.69,5.46-67,5.93c-15.31-0.46-46.96-3.2-67-5.93c-22-3-52-17.99-52-17.99v40.99 c20,9,40,15,59,18s45,5,60,5c15,0,41-2,60-5s39-9,59-18v-40.99C374.86,362.89,344.86,377.88,322.86,380.88z"],bottomLayer:["M442.86,373.88c-8,0-37,13-51,13s-17,0-17,0s0-42,1-61s12-86,16-114s11-45,9-53s-38-15-57-19s-69-5-88-5s-69,1-88,5 s-55,11-57,19s5,25,9,53s15,95,16,114s1,61,1,61s-3,0-17,0s-43-13-51-13s-25,2-25,26s39,53,78,76s107,30,134,30s95-7,134-30 s78-52,78-76S450.86,373.88,442.86,373.88z"]},Fez:{topLayer:["M264.74,171.69c-0.48-0.9-11.93-22.23-29.27-43.41c-24.86-30.35-48.94-44.82-71.58-43 c-24.54,1.97-43.07,9.49-56.66,22.98c-13.08,12.98-21.93,31.52-27.86,58.36c-3.97,17.98-7.84,38.05-11.58,57.46 c-5.22,27.1-10.56,54.85-15.66,73.61c-13.39,2.16-29.11,12.07-37.34,28.6c-11.78,23.68-1.39,45.59,4.41,68.16l0.14,0.57l0.54-0.23 c21.5-8.99,45.24-13.92,57.02-37.6c9.49-19.08,5.92-40.81-2.96-52.08c5.4-19.36,10.64-46.57,16.44-76.69 c3.71-19.26,7.54-39.18,11.45-56.85c9.68-43.77,26.4-60.35,63.91-63.37c14.2-1.13,32.57,11.07,51.73,34.38 c15.97,19.43,26.88,39.72,26.99,39.92c2.99,5.6,9.96,7.72,15.56,4.73C265.61,184.26,267.73,177.29,264.74,171.69z"],bottomLayer:["M388.35,185.37c-6.63-24.88-45.68-30.88-61.48-34.69c-15.62-3.77-45.44-5.94-70.91-5.99l0,0 c-0.15,0-0.3,0-0.44,0c-0.15,0-0.3,0-0.44,0l0,0c-25.47,0.05-55.29,2.22-70.91,5.99c-15.8,3.81-54.85,9.81-61.48,34.69L97.88,450.73 c0,0,0.45,8.35,17.75,21.98c17.3,13.62,61.71,26.56,87.18,30.65c25.05,4.02,34.37,4.74,52.22,4.77c0.01,0,0.02,0,0.03,0 c0.15,0,0.3,0,0.44,0c0.15,0,0.29,0,0.44,0c0.01,0,0.02,0,0.03,0c17.86-0.02,27.18-0.75,52.22-4.77 c25.47-4.09,69.88-17.03,87.18-30.65c17.3-13.62,17.75-21.98,17.75-21.98L388.35,185.37z"]},ChefHat:{topLayer:["M247.24,400.9c-52.68,0-103.37-11.42-115.76-14.41c0.02,0.41,0.04,0.83,0.06,1.23 c0.54,11.59,1.12,24.38,1.64,35.53c37.23,9.79,78.03,17.74,113.98,17.75c0.02,0,0.04,0,0.07,0c0,0,0.01,0,0.01,0s0.01,0,0.01,0 c0.02,0,0.04,0,0.07,0c36.08-0.01,77.06-8.02,114.4-17.86c0.51-11.13,1.1-23.86,1.63-35.42c0.02-0.44,0.04-0.89,0.06-1.33 C351.8,389.21,300.54,400.9,247.24,400.9z"],bottomLayer:["M424.53,136.11c-6.17-27.2-36.34-46.44-53.17-44.03c-16.83,2.41-26.84,4.81-45.5,17.39l-13.83,56.98l9.33-57.35 c0,0-3-18.69-21.5-35.15c-18.5-16.47-32.11-22.2-52.23-22.2c-0.06,0-0.12,0-0.18,0.01c-0.06,0-0.12-0.01-0.18-0.01 c-20.11,0-33.72,5.74-52.23,22.2c-18.5,16.47-21.5,35.15-21.5,35.15l9.33,57.35l-13.83-56.98c-18.67-12.58-28.67-14.99-45.5-17.39 c-16.83-2.41-47,16.84-53.17,44.03s1.83,50.88,15,70.86c13.17,19.98,25.5,19.24,28.67,22.2c3.17,2.96,2.5,13.14,8.17,49.4 c5.67,36.26,8,80.29,9.33,109.15c1.33,28.86,3,65.12,3,65.12c12.67,16.65,78.67,21.46,112.73,21.46l0.18-0.05l0.18,0.05 c34.06,0,100.06-4.81,112.73-21.46c0,0,1.67-36.26,3-65.12c1.33-28.86,3.67-72.89,9.33-109.15c5.67-36.26,5-46.44,8.17-49.4 c3.17-2.96,15.5-2.22,28.67-22.2C422.69,186.99,430.69,163.31,424.53,136.11z"]},CowboyHat:{topLayer:["M373.37,417.1c-0.29,0.01-0.58,0.03-0.88,0.04c-0.99-7.32-2.18
324-16.22-3.46-25.82 c-19.09,9-99.53,14.89-112.96,14.93c-13.43-0.05-93.87-5.93-112.96-14.93c-1.28,9.6-2.47,18.5-3.46,25.82 c-0.3-0.01-0.59-0.03-0.88-0.04c2.5,1.38,6.06,3.1,10.78,4.87c10.64,3.97,63.3,10.89,105.77,10.99c0.2,0,0.38,0,0.58,0 c0.05,0,0.11,0,0.16,0s0.11,0,0.16,0c0.2,0,0.39,0,0.58,0c42.47-0.1,95.13-7.02,105.77-10.99 C367.31,420.2,370.86,418.48,373.37,417.1z"],bottomLayer:["M497.83,362.57c-1.09-7.45-13.8-10.17-17.44,1.27c-3.63,11.44-28.88,32.51-41.41,39.41c-12.53,6.9-28.88,11.26-55.58,13.26 c-3.11,0.23-6.96,0.44-11.35,0.62c-4.33-32.12-12.67-94.75-14.26-113.32c-2.18-25.34-12.8-87.18-14.17-100.26s-3-34.05-19.89-32.42 c-16.82,1.63-39.34,9.19-67.88,9.26c-28.55-0.07-51.07-7.63-67.88-9.26c-16.89-1.63-18.53,19.34-19.89,32.42 s-11.99,74.92-14.17,100.26c-1.6,18.57-9.93,81.2-14.26,113.32c-4.39-0.18-8.23-0.39-11.35-0.62c-26.7-2-43.05-6.36-55.58-13.26 c-12.53-6.9-37.78-27.97-41.41-39.41c-3.63-11.44-16.35-8.72-17.44-1.27c-1.09,7.45-0.91,11.99,8.35,26.52 c9.26,14.53,14.53,21.43,37.05,45.04c22.52,23.61,69.47,52.62,96.62,59.57c21.69,5.55,67.2,4.48,99.94,3.91 c32.74,0.57,78.24,1.64,99.94-3.91c27.15-6.95,74.1-35.96,96.62-59.57c22.52-23.61,27.79-30.51,37.05-45.04 C498.74,374.56,498.92,370.02,497.83,362.57z"]},PopeHat:{topLayer:["M322.27,98.33v302.46c0,0,52.48,2.78,87.4-12.39c5.41-21.18,9.81-43.65,11.16-64.26 c4.36-66.47-25.43-147.48-60.66-189.25C349.64,122.41,336.1,109.83,322.27,98.33z","M189.48,98.33v302.46c0,0-52.48,2.78-87.4-12.39c-5.41-21.18-9.81-43.65-11.16-64.26 c-4.36-66.47,25.43-147.48,60.66-189.25C162.11,122.41,175.66,109.83,189.48,98.33z","M299.84,242.03h-37.13v-35.75c0-3.76-3.05-6.81-6.81-6.81c-0.01,0-0.01,0-0.02,0c-0.01,0-0.01,0-0.02,0 c-3.76,0-6.81,3.05-6.81,6.81v35.75h-37.13c-3.76,0-6.81,3.05-6.81,6.81s3.05,6.81,6.81,6.81h37.13v89.45 c0,3.76,3.05,6.81,6.81,6.81c0.01,0,0.01,0,0.02,0c0.01,0,0.01,0,0.02,0c3.76,0,6.81-3.05,6.81-6.81v-89.45h37.13 c3.76,0,6.81-3.05,6.81-6.81S303.6,242.03,299.84,242.03z"],bottomLayer:["M360.17,134.89c-35.23-41.76-104.28-84.62-104.31-84.64l0,0l0,0l0,0l0,0c-0.03,0.02-69.09,42.87-104.31,84.64 c-35.24,41.77-65.02,122.78-60.66,189.25s40.32,152.2,40.32,152.2c53.03,13.44,96.44,14.17,124.65,14.17l0,0c0,0,0,0,0,0s0,0,0,0 l0,0c28.21,0,71.62-0.73,124.65-14.17c0,0,35.96-85.73,40.32-152.2S395.41,176.66,360.17,134.89z"]},Squid:{topLayer:["M212.08,228.16c-14.04,0-25.43-11.38-25.43-25.43s11.38-25.43,25.43-25.43c14.04,0,25.43,11.38,25.43,25.43 S226.13,228.16,212.08,228.16z M331.02,166.3c0-12-9.73-21.72-21.72-21.72c-12,0-21.72,9.73-21.72,21.72 c0,12,9.73,21.72,21.72,21.72C321.29,188.03,331.02,178.3,331.02,166.3z"],bottomLayer:["M444.38,420.37c-4.72,0-25.97,6.36-37.6,4.18s-46.68-31.42-52.49-50.67c0,0,12.35,12.9,40.32,6.9 c27.97-5.99,50.31-20.16,65.02-37.05c14.71-16.89,19.07-27.43,18.89-53.58c-0.18-26.15-11.44-46.5-22.7-60.66 c-11.26-14.17-15.26-18.71-28.88-18.71c-13.62,0-16.53,9.99-16.53,15.98c0,5.99,27.79,32.51,31.06,49.4 c3.27,16.89-24.52,50.31-42.14,51.76c-17.62,1.45-44.13,1.27-55.03-20.16c-10.9-21.43-11.26-37.96-2.18-54.67 c9.08-16.71,46.68-56.67,45.95-81c-0.73-24.34-3.81-49.04-16.89-70.83c-13.08-21.79-31.24-31.42-59.21-42.5 c-27.86-11.03-35.48-8.56-56.12-8.54c-20.64-0.02-28.26-2.5-56.12,8.54c-27.97,11.08-46.13,20.71-59.21,42.5 c-13.08,21.8-16.16,46.5-16.89,70.83c-0.73,24.34,36.87,64.3,45.95,81c9.08,16.71,8.72,33.24-2.18,54.67 c-10.9,21.43-37.41,21.61-55.03,20.16c-17.62-1.45-45.41-34.87-42.14-51.76c3.27-16.89,31.06-43.41,31.06-49.4 c0-5.99-2.91-15.98-16.53-15.98c-13.62,0-17.62,4.54-28.88,18.71c-11.26,14.17-22.52,34.51-22.7,60.66 c-0.18,26.15,4.18,36.69,18.89,53.58c14.71,16.89,37.05,31.06,65.02,37.05c27.97,5.99,40.32-6.9,40.32-6.9 c-5.81,19.25-40.87,48.49-52.49,50.67s-32.87-4.18-37.6-4.18c-4.72,0-16.89-0.73-16.89,18.71s19.62,25.97,39.59,25.97 c19.98,0,46.5-15.62,71.56-25.79c24.21-9.82,89.82-57.94,94.26-61.21c4.44,3.27,70.05,51.39,94.26,61.21 c25.06,10.17,51.58,25.79,71.56,25.79c19.98,0,39.59-6.54,39.59-25.97S449.11,420.37,444.38,420.37z"]},SantaHat:{topLayer:["M252.4,449.8c44.3-1.2,84.2,15.3,97.2,24.6s26.4,31.5,43.9,31.5s39-29.9,39-73.5s-16.6-66.6-35.8-74.7 c-16.3-6.9-20.3-1.9-20.3-1.9s-7.5-7.6-13.5-10.5c-6-2.9-17.1-1.1-17.1-1.1s-6.2-9-16.6-12c-10.4-3-23.1,3-23.1,3s-3.5-6.9-15.9-7.8 c-12.4-0.9-18,4.4-18,4.4s-9.3-8.1-21.4-8.1s-25.6,11.3-25.6,11.3s-10.9-9.2-27.7-4.9s-22.3,14.1-22.3,14.1s-11.5-3.9-26.9,2.9 S129,367.5,129,367.5s-24.1,1.9-37.2,23.9s-10.8,47.2-7.9,60.8c2.8,13.5,14.6,51.1,37.2,52.7C143.6,506.5,172.4,452,252.4,449.8z","M447.2,185.4c-34.7,0-62.8-27.9-62.8-62.4s28.1-62.4,62.8-62.4S510,88.5,510,123S481.9,185.4,447.2,185.4z"],bottomLayer:["M115.1,386c0,0-1.2-101.8,33.6-169s75-119.3,159.2-127.8s123.2,11.5,145.2,26.6s-4.3,62.4-31.7,72.7 c-27.5,10.3-43.9,25.4-43.9,78.7s14,101.1,14,101.1l-97,29.7L115.1,386z"]}},lt=e=>{const t=It.planetRandomInt(e);if(t()%69==0)return"Fish";if(t()%16==0)return"SantaHat";switch(t()%8){case 0:return"GraduationCap";case 1:return"PartyHat";case 2:return"Squid";case 3:return"TopHat";case 4:return"Fez";case 5:return"ChefHat";case 6:return"CowboyHat";case 7:return"PopeHat";default:return"GraduationCap"}};function ct(e){return void 0!==e.location}function ut(e){return void 0!==e.body&&e.type===de.PlanetMessageType.EmojiFlag}const ft=e=>e.map(e=>{if(Array.isArray(e))return ft(e);if("string"==typeof e){return"0x"+it(e).toString(16)}return"0x"+e.toString(16)}),dt=(e,t)=>
3240===t?e.energyCapMultiplier:1===t?e.energyGroMultiplier:2===t?e.rangeMultiplier:3===t?e.speedMultiplier:4===t?e.defMultiplier:e.energyCapMultiplier;const ht=(e,t=0)=>{if(e<1e3)return""+e===e.toFixed(0)?""+e.toFixed(0):""+e.toFixed(t);const n=["","K","M","B","T","q","Q"];let r=0,i=e;for(;i/1e3>=1;)i/=1e3,r++;return 0===r?""+Math.floor(e):i<10||i<100?`${i.toFixed(1)}${n[r]}`:r<n.length?`${i.toFixed(0)}${n[r]}`:`${i.toFixed(0)}E${3*r}`},pt=()=>{const e="0123456789abcdef";let t="";for(let n=0;n<10;n+=1)t+=e[Math.floor(e.length*Math.random())];return t},mt=e=>e?e.upgradeState.reduce((e,t)=>e+t):0,gt=e=>{if(!e)return!0;const t=yt(e);return mt(e)>=t},vt=e=>["Defense","Range","Speed"][e],yt=e=>e?e.spaceType===de.SpaceType.NEBULA?3:e.spaceType===de.SpaceType.SPACE?4:5:0,bt=e=>e.owner!==fe.EMPTY_ADDRESS;class wt{constructor(){let e={};function t(e,t,n){this.x=e,this.y=t,this.z=n}t.prototype.dot2=function(e,t){return this.x*e+this.y*t},t.prototype.dot3=function(e,t,n){return this.x*e+this.y*t+this.z*n};var n=[new t(1,1,0),new t(-1,1,0),new t(1,-1,0),new t(-1,-1,0),new t(1,0,1),new t(-1,0,1),new t(1,0,-1),new t(-1,0,-1),new t(0,1,1),new t(0,-1,1),new t(0,1,-1),new t(0,-1,-1)],r=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],i=new Array(512),o=new Array(512);e.seed=function(e){e>0&&e<1&&(e*=65536),(e=Math.floor(e))<256&&(e|=e<<8);for(var t=0;t<256;t++){var a;a=1&t?r[t]^255&e:r[t]^e>>8&255,i[t]=i[t+256]=a,o[t]=o[t+256]=n[a%12]}},e.seed(0);var a=.5*(Math.sqrt(3)-1),s=(3-Math.sqrt(3))/6,l=1/6;function c(e){return e*e*e*(e*(6*e-15)+10)}function u(e,t,n){return(1-n)*e+n*t}e.simplex2=function(e,t){var n,r,l=(e+t)*a,c=Math.floor(e+l),u=Math.floor(t+l),f=(c+u)*s,d=e-c+f,h=t-u+f;d>h?(n=1,r=0):(n=0,r=1);
vendor: 4,926 bytes, line 324
324var p=d-n+s,m=h-r+s,g=d-1+2*s,v=h-1+2*s,y=o[(c&=255)+i[u&=255]],b=o[c+n+i[u+r]],w=o[c+1+i[u+1]],E=.5-d*d-h*h,k=.5-p*p-m*m,x=.5-g*g-v*v;return 70*((E<0?0:(E*=E)*E*y.dot2(d,h))+(k<0?0:(k*=k)*k*b.dot2(p,m))+(x<0?0:(x*=x)*x*w.dot2(g,v)))},e.simplex3=function(e,t,n){var r,a,s,c,u,f,d=(e+t+n)*(1/3),h=Math.floor(e+d),p=Math.floor(t+d),m=Math.floor(n+d),g=(h+p+m)*l,v=e-h+g,y=t-p+g,b=n-m+g;v>=y?y>=b?(r=1,a=0,s=0,c=1,u=1,f=0):v>=b?(r=1,a=0,s=0,c=1,u=0,f=1):(r=0,a=0,s=1,c=1,u=0,f=1):y<b?(r=0,a=0,s=1,c=0,u=1,f=1):v<b?(r=0,a=1,s=0,c=0,u=1,f=1):(r=0,a=1,s=0,c=1,u=1,f=0);var w=v-r+l,E=y-a+l,k=b-s+l,x=v-c+2*l,S=y-u+2*l,_=b-f+2*l,A=v-1+.5,C=y-1+.5,T=b-1+.5,P=o[(h&=255)+i[(p&=255)+i[m&=255]]],O=o[h+r+i[p+a+i[m+s]]],M=o[h+c+i[p+u+i[m+f]]],I=o[h+1+i[p+1+i[m+1]]],R=.6-v*v-y*y-b*b,L=.6-w*w-E*E-k*k,N=.6-x*x-S*S-_*_,j=.6-A*A-C*C-T*T;return 32*((R<0?0:(R*=R)*R*P.dot3(v,y,b))+(L<0?0:(L*=L)*L*O.dot3(w,E,k))+(N<0?0:(N*=N)*N*M.dot3(x,S,_))+(j<0?0:(j*=j)*j*I.dot3(A,C,T)))},e.perlin2=function(e,t){var n=Math.floor(e),r=Math.floor(t);e-=n,t-=r;var a=o[(n&=255)+i[r&=255]].dot2(e,t),s=o[n+i[r+1]].dot2(e,t-1),l=o[n+1+i[r]].dot2(e-1,t),f=o[n+1+i[r+1]].dot2(e-1,t-1),d=c(e);return u(u(a,l,d),u(s,f,d),c(t))},e.perlin3=function(e,t,n){var r=Math.floor(e),a=Math.floor(t),s=Math.floor(n);e-=r,t-=a,n-=s;var l=o[(r&=255)+i[(a&=255)+i[s&=255]]].dot3(e,t,n),f=o[r+i[a+i[s+1]]].dot3(e,t,n-1),d=o[r+i[a+1+i[s]]].dot3(e,t-1,n),h=o[r+i[a+1+i[s+1]]].dot3(e,t-1,n-1),p=o[r+1+i[a+i[s]]].dot3(e-1,t,n),m=o[r+1+i[a+i[s+1]]].dot3(e-1,t,n-1),g=o[r+1+i[a+1+i[s]]].dot3(e-1,t-1,n),v=o[r+1+i[a+1+i[s+1]]].dot3(e-1,t-1,n-1),y=c(e),b=c(t),w=c(n);return u(u(u(l,p,y),u(f,m,y),w),u(u(d,g,y),u(h,v,y),w),b)},this.noise=e}static initialize(){if(wt.instance)throw new Error("Noise has already been initialized");const e=new wt;return wt.instance=e,e}static getInstance(){return wt.instance||wt.initialize(),wt.instance}simplex2(e,t){return wt.instance.noise.simplex2(e,t)}}var Et=wt;const kt=["abandon","abate","aberrant","blaze","abounding","absorb","acoustic","harmony","act","action","actor","add","addition","adjustment","admit","advice","advise","afraid","aggressive","agonizing","ahead","airplane","airport","alight","alike","aloof","ambitious","amuck","amusement","anger","animated","annoyed","anxious","apparel","applaud","apple","apples","apply","aquatic","argument","aromatic","arrest","assert","assert","attempt","audacious","auspicious","authority","avoid","awake","badge","bait","ball","band","band","banish","barbarous","base","base","baseball","basket","bat","bawdy","bead","bear","beast","beast","beautify","beds","befall","befitting","behold","believe","bell","bells","bend","berserk","beseech","big","birthday","bite","bite","blade","blow","blush","bone","books","books","boot","bottle","bouncy","boundary","bow","brainy","brass","breath","breathe","bridge","bright","bring","broadcast","brother","brothers","bulb","burly","burst","bury","bushes","busy","button","cabbage","cagey","calculating","callous","calm","can","canvas","capable","careless","carriage","cars","cast","catch","cease","celebrate","cent","chain","chairs","change","changeable","channel","charge","charming","chat","cheese","cherries","chide","chief","children","chip","choke","clean","cleave","clocks","closed","clutch","cluttered","coast","collapse","collapse","collar","colour","combative","comfortable","competition","complain","complete","complex","condition","confuse","connection","connote","conserve","conspire","constitute","constrain","contribute","convene","converge","convict","convince","coo","cooing","cool","cooperative","copper","cork","corrod","cough","country","cow","cowardly","crabby","cracker","crashing","creep","crib","cry","cub","cumbersome","cup","cure","curly","curve","cut","cute","cute","daffy","daffy","daily","dance","dark","daughter","dazzling","deafening","debonair","decision","declare","decorous","defiant","degree","delay","delicate","delirious","depend","desire","destruction","develop","die","different","digestion","diligent","dim","diminish","dinner","direct","dirty","disgusted","dispensable","display","display","distinct","dive","dive","divide","dock","doctor","dog","doll","drain","draw","dream","dreary","drink","drive","drop","dry","dull","dust","dynamic","dysfunctional","earn","earthy","eatable","edge","education","efficacious","egg","eggnog","elephant","elite","elite","eminent","empower","empty","enchanting","encourage","end","end","endorse","enjoy","enlighten","enormous","enthusiastic","envious","erratic","escape","evasive","event","excited","exclusive","expensive","expert","extend","extra-large","extra-small","eyes","fabulous","fair","fall","fan","far","fascinated","fast","fear","feather","feed","feet","field","fight","finger","flaky","flame","flap","flee","flesh","flock","floor","flop","flower","fly","fly","fog","fold","follow","foregoing","four","freeze","friend","frighten","frightened","fulfil","funny","garrulous","gas
324h","gentle","gentle","giant","giant","gigantic","giraffe","glamorous","glass","glass","glib","glorious","glove","glow","godly","golden","govern","grade","grape","grass","green","green","grind","ground","group","grow","growth","gruesome","grumpy","guarded","guess","guide","gusty","haircut","hallowed","halting","handsome","hang","happy","harbor","harm","harmonious","hat","heal","hearing","heart","heat","hiss","honey","hope","hose","hospitable","humorous","hurt","hurt","hush","hustle","hydrant","hypnotic","hypnotize","ice","idealize","ill-fated","illustrate","imaginary","imagine","imminent","immolate","impart","impartial","impend","impend","imperfect","imperil","imperil","implant","implicate","impolite","imported","income","incompetent","increase","incredible","indicate","induce","indulge","industry","infect","inherit","initiate","innocent","inspire","insult","insurance","invent","invention","iron","jaded","jail","jam","jealous","jeans","jellyfish","jobless","jumbled","kill","kiss","knot","knowing","lade","ladybug","lamentable","lamp","languid","latch","laugh","lavish","lead","leak","lean","leather","lend","let","letters","lick","lift","lip","list","listen","listen","lively","lock","lock","locket","lonely","longing","look","loose","lose","love","low","lowly","ludicrous","lumpy","lunch","lyrical","maddening","magnificent","mailbox","make","manage","manager","marble","mass","materialistic","meal","measly","measure","meat","meek","meet","mellow","mere","mind","mine","miniature","minister","mint","miscreant","motionless","motivate","mountain","multiply","mundane","mushy","music","nappy","need","nerve","nest","news","next","nifty","nimble","noise","noiseless","noisy","nostalgic","notify","notify","null","nut","oatmeal","oatmeal","observation","oceanic","odd","old-fashioned","onerous","open","operation","opinion","oranges","order","ordinary","organization","originate","outgoing","output","outrageous","outstanding","oven","overflow","overrated","owe","own","pacify","pain","pale","pale","paltry","pan","paper","partake","participate","party","passenger","past","patch","pay","peace","peaceful","penitent","permissible","pet","phone","physical","pink","piquant","place","plain","plan","please","pointless","poison","police","ponder","poor","possessive","praise","precious","premium","prescribe","preserve","preset","prickly","probable","proceed","protect","public","pull","pull","punish","puny","purpose","push","puzzling","quack","qualify","quarrel","quilt","quince","quirky","quit","quiver","quixotic","ragged","rain","rapid","rate","ratty","reach","reaction","read","rebel","recall","receipt","receptive","recondite","redo","refer","reflective","refuse","regret","regular","relate","relation","rend","renew","repair","repeat","reply","resell","resolve","resolve","respect","respect","review","rhythm","rifle","ring","ring","river","roar","roasted","rob","rob","rock","rock","roomy","rose","rotten","route","rush","sable","sag","salt","salve","same","sample","sanctify","sash","sassy","satirise","savor","saw","say","scar","scarf","scarify","scary","school","scientific","scold","scorch","scrawl","scrawny","sea","search","seashore","seat","secretive","sedate","seemly","sense","sentence","sever","sew","shake","sharp","shear","shed","sheet","ship","shivering","shock","shun","shy","side","sight","signify","silky","silly","silver","simple","sing","sink","sit","six","skid","skillful","sleep","sleepy","slide","slim","slink","slip","slippery","slow","smell","smooth","snail","snake","snap","sneeze","soap","sob","society","soda","soggy","solicit","sore","sorrow","sound","soup","sour","spade","spark","spectacular","spill","spiteful","splendid","spotted","spotty","spray","spring","square","squeamish","standing","stare","statuesque","steady","step","sticky","stir","stitch","stomach","store","story","straight","strain","straw","stream","street","strew","strive","strong","stupendous","submit","succeed","suck","suggest","summon","sun","superb","superficial","suppose","surround","survive","swallow","sway","sweet","swim","swing","tail","talented","talk","tall","tan","tart","taste","tasteless","tax","teach","tearful","teeth","tense","terminate","terrible","terrific","terrify","testy","thankful","theory","therapeutic","thing","think","thinkable","third","thought","throne","thumb","ticket","tie","tiger","tiger","tightfisted","time","time","time","tired","tongue","toothbrush","toothsome","toss","town","toys","trample","transfer","tray","tree","tremble","tremendous","tricky","triumph","trouble","truculent","trust","try","tub","turn","twig","twist","two","type","ugliest","ugly","ultra","umbrella","undesirable","undo","unequaled","unkempt","unsightly","unsuitable","upset","used","utopian","utter","vacation","vacation","vanish","vengeful","verify","vessel","vigorous","walk","wander","warn","wasteful","
324watch","water","waylay","weak","weigh","welcome","wheel","whistle","wide-eyed","wing","witty","wool","wrench","write","wry","xenology","yarn","year","yield","yoke","zephyr","zipper","zippy","otter","llama","aardvark","aggravated","luck","luxury","satisfaction","trust","wisdom","worry","pride","sin","sloth","greed","opinion","movement","infancy","envy","evil","failure","success","birth","calm","shallow","insect","fox","panda","penguin","lodge","town","awareness","childhood","chaos"],xt=["vast","frigid","boiling","cold","immense","gaseous","alluring","groovy","scattered","frightening","wacky","lush","green","empty","elastic","calm","fragile","guarded","various","nebulous","electronic","heavenly","cheerful","delicious","silky","ritzy","perfect","pristine","damaged","unruly","unsightly","mysterious","shallow","deep","trite","noxious","spectacular","furtive","jittery","pleasant","craggy","overgrown","wonderful","dynamic","harmonious","deafening"],St=["tundra","desert","oasis","wasteland","garden","ocean","savannah","tropic","shrubland","forest","jungle","biosphere","ecoregion","delta","ruin","abyss","hydrotherm","marsh","benthic","ptuitary","panda","bear","Vitalik","cyrptokitty","bitcoin"],_t={geography:["mountains","hills","rivers","oceans","forests","grasslands","plains","alienscapes","tetraspheres","ruins","tropics","crags","cliffs","icebergs","volcanoes",...Array(7).fill("#geography# and #geography#")],populates:["#stretch# across the #landscape# as far as #eyecansee#"],landscape:["landscape","horizon","view","surface","skyline","sky","sea","scenery","topography","topology"],stretch:["reach","stretch","extend","spread"],noun:["adjustment","straw","person","pipe","coach","distribution","bite","can","snail","plane","flock","dog","grandfather","achiever","act","beds","trains","wall","school","minute","clam","rat","notebook","sister","power","government","tomatoes","week","river","quiet","move","rose","crate","bubble","loss","laugh","camera","mouth","development","flag","appliance","slave","match","trucks","bead","screw","hot","sidewalk","minister","bell","lamp","coat","queen","cherries","temper","lip","suit","partner","voice","cave","plough","wind","harbor","tub","dock","hands","van","calculator","cause","history","effect","hour","experience","back","bucket","chickens","aunt","death","friction","amount","fuel","stem","sisters","yam","event","tooth","discussion","maid","guitar","bit","chance","time","fairies","key","trail","spot","tank","oranges","attraction","range","ants","boot","education","letters","iron","kitty","belief","noise","acoustics","cheese","fire","foot","chicken","rest","bikes","hope","stop","shade","quiver","sand","farm","zoo","cabbage","oil","deer","throne","look","rainstorm","talk","linen","pigs","wound","liquid","badge","vase","button","order","bath","airport","business","cow","visitor","committee","base","book","cemetery","ice","zinc","afterthought","zipper","size","frogs","wren","chess","sneeze","robin","lake","bomb","memory","snakes","decision","head","receipt","toothbrush","humor","war","cats","pull","industry","offer","insurance","test","spy","hat","north","behavior","battle","parcel","grade","dinosaurs","substance","window","gate","side","houses","view","cap","agreement","honey","plate","pest","fish","cannon","yarn","bed","mom","writer","interest","record","scissors","rod","guide","furniture","credit","gold","spoon","activity","club","theory","coal","sponge","knot","mass","house","bone","mailbox","drink","burst","water","cherry","flavor","sky","coast","island","son","smoke","birthday","babies","self","planes","impulse","metal","thought","salt","pollution","table","surprise","scene","health","rifle","shock","picture","plastic","arithmetic","border","army","place","oven","marble","skate","voyage","question","cobweb","mark","shoe","beginner","star","porter","magic","collar","team","sofa","moon","chalk","sink","lettuce","turkey","doll","land","brake","existence","smile","thing","car","loaf","jellyfish","play","swing","sign","cook","horses","laborer","company","office","snake","volleyball","fly","thumb","top","division","celery","pie","measure","oatmeal","name","toes","limit","veil","hill","driving","jam","quilt","horse","secretary","pleasure","squirrel","
324wire","finger","peace","roof","structure","curve","zebra","rings","alarm","cushion","monkey","grip","treatment","balance","flower","mitten","crow","twig","glove","advice","song","weather","bird","governor","science","seashore","pot","sort","berry","zephyr","basket","value","expansion","arm","cub","pump","things","competition","wheel","toy","kick","cloth","step","respect","church","writing","push","milk","jar","low","geese","meat","tree","songs","dress","party","heat","selection","wash","nerve","rain","amusement","mice","error","rock","caption","desire","edge","start","children","wealth","neck","nose","playground","nation","coil","pan","donkey","field","approval","canvas","position","note","ray","cat","library"],verb:["ruin","snow","ban","blot","disappear","scare","relax","tug","sigh","rub","float","entertain","tap","taste","gather","tour","place","treat","program","try","depend","puncture","cheat","whine","tame","check","employ","heap","flower","perform","unite","guarantee","delight","expand","double","fit","ignore","phone","regret","question","jog","attract","learn","twist","drip","remind","slap","knock","train","part","groan","compete","excite","calculate","trouble","shrug","whip","prevent","object","return","scribble","practise","carve","possess","irritate","park","stamp","warm","imagine","fade","admire","hang","unlock","obtain","smash","queue","develop","end","pine","balance","fold","bat","crawl","frighten","dry","approve","rhyme","contain","sip","battle","peel","trick","chop","heat","wreck","please","preach","risk","kiss","test","thaw","wander","bless","walk","cover","form","seal","reduce","wave","support","coach","spoil","sniff","borrow","zoom","obey","worry","shock","suffer","cry","heal","harm","suspect","raise","remove","deliver","ski","blink","clear","tire","protect","tick","shop","pray","correct","receive","brake","bomb","describe","mend","squeeze","open","welcome","whisper","fear","pack","settle","scatter","rob","hand","exist","zip","wish","separate","fix","pedal","tempt","kneel","sail","observe","replace","answer","laugh","play","multiply","repeat","trust","inject","wrestle","argue","guess","decide","deceive","dare","book","wait","grease","glow","step","allow","steer","gaze","rain","cause","clap","peep","wriggle","explode","rush","bolt","announce","match","concern","colour","type","spill","exercise","pick","delay","nail","screw","slow","ask","shiver","add","dream","warn","kick","plan","memorise","bump","arrive","intend","polish","trip","subtract","include","trace","handle","strip","spot","fry","flash","man","visit","squeak","copy","reflect","comb","reign","scream","chew","fetch","rule","label","invite","transport","present","sneeze","provide","look","haunt","fail","push","point","stain","interfere","cheer","afford","blind","flow","shelter","glue","amuse","accept","bruise","post","live","fasten","mark","escape","hum","curve","follow","land","dust","stay","occur","boil","scratch","dislike","pat","dress","turn","promise","offer","challenge","drown","slip","trap","pop","mess up","force","stuff","roll","care","consist","jump","level","hop","bathe","wobble","consider","murder","excuse","avoid","disagree","back","frame","shave","charge","pump","instruct","tickle","travel","moan","peck","nest","drag","fire","explain","scold","attach","carry","suit","paint","applaud","breathe","saw","report","attack","marry","complain","communicate","own","hunt","retire","spray","complete","admit","store","water","request","extend","grate","drum","call","fill","bore","punish","moor","punch","save","fool","dam","bow","love","increase","start","listen","hammer","mourn","want","appear","smile","suppose","march","continue","buzz","wink","apologise","face","clip","close","flap","owe","rely","supply","dance","attempt","blush","wipe","share","burn","bubble","empty","disarm","cross","search","soak","agree","launch","surround","plant","pour","lighten","destroy","detect"],adj:["tedious","therapeutic","acid","crooked","available","tasty","real","kind","fancy","solid","brash","unaccountable","late","necessary","electric","one","zealous","versed","exciting","keen","tasteful","ugliest","adjoining","questionable","tasteless","productive","worthless","evasive","square","separate","upset","typical","mighty","plant","hushed","helpless","smooth","colossal","infamous","scandalous","pointless","lethal","melodic","terrific","inexpensive","salty","puzzling","seemly","learned","venomous","vagabond","puny","mere","unkempt","private","breezy","tremendous","exultant","ugly","chunky","teeny-tiny","snobbish","entertaining","friendly","opposite","pumped","fascinated","picayune","wanting","subsequent","abrasive","uttermost","abiding","narrow","holistic","slow","murky","probable","mountainous","bouncy","upbeat","foamy","sophisticated","furry","nonchalant","
324warlike","rightful","extra-large","calculating","aspiring","volatile","vague","icy","frightening","historical","complete","enormous","swift","grumpy","empty","knowing","adventurous","ruthless","hypnotic","remarkable","understood","feeble","pushy","mature","paltry","next","shivering","flagrant","worried","dead","needless","natural","curly","coherent","abusive","tart","tough","chief","concerned","physical","whimsical","useful","exotic","nimble","hallowed","smelly","internal","meek","tested","hurried","marked","jittery","crowded","gaudy","proud","used","last","incompetent","fumbling","nosy","possessive","puffy","workable","fretful","sweet","disastrous","dramatic","capable","courageous","heady","shrill","vulgar","kindhearted","cagey","parsimonious","abaft","ethereal","talented","noxious","raspy","frantic","doubtful","fantastic","tan","screeching","abnormal","rustic","recondite","cut","annoyed","chemical","ossified","cluttered","stupid","clumsy","clean","exuberant","cumbersome","enchanted","plain","malicious","romantic","itchy","light","scintillating","grouchy","gainful","four","pricey","three","ambitious","brown","healthy","willing","new","jazzy","soggy","oval","madly","nutritious","unused","kaput","straight","defective","ripe","wide","whole","insidious","foregoing","poised","unusual","smoggy","optimal","voiceless","curved","statuesque","slim","hard","numberless","successful","brawny","ratty","ultra","accurate","rigid","impossible","ajar","elegant","heavy","ablaze","lackadaisical","moldy","lopsided","black","reflective","mushy","wholesale","quarrelsome","closed","equal","awake","wide-eyed","unwieldy","mellow","squealing","shallow","foolish","measly","poor","cloistered","calm","shy","clammy","damaged","jaded","unable","painstaking","overjoyed","faint","steadfast","brave","receptive","filthy","amuck","tacit","living","normal","useless","beneficial","protective","adaptable","diligent","uncovered","meaty","political","rude","stale","nasty","demonic","perpetual","fragile","right","striped","rare","guarded","decorous","wrathful","strange","daffy","wealthy","humdrum","familiar","animated","aware","silly","oafish","selfish","royal","skillful","excellent","wry","flippant","obeisant","mammoth","milky","substantial","modern","huge","bustling","unequaled","adamant","green","confused","hapless","ceaseless","spotty","dangerous","defeated","dull","silky","wet","hurt","efficacious","best","humorous","magnificent","faulty","ruddy","accessible","second","languid","uptight","small","odd","detailed","didactic","cute","steep","mixed","squeamish","truculent","aboard","deadpan","sweltering","stupendous","overwrought","precious","pink","afraid","bitter","husky","wacky","gruesome","plucky","scrawny","famous","old-fashioned","fabulous","obscene","repulsive","boundless","handy","greasy","irritating","roomy","somber","stormy","two","nippy","half","imperfect","shaky","nifty","succinct","hollow","lonely","sturdy","giant","fierce","lazy","bright","maddening","lamentable","subdued","tawdry","crabby"],eyecansee:["the eye can see","a cow can run","a bear can walk","a network request can reach",...Array(2).fill("#adj.a# #noun# can #verb#")],air:["atmosphere","air","weather","gaseous composition"],fruit:["magno","blueberry","raspberry","pomelo","pineapple","apple","orange","watermelon"],colors:["in many colors","pervasively","sparingly","in full abundance","in small amounts","like #noun.a# might #verb# #noun.a#","across the horizon","over the land"],habitat:["rainforest","jungles","ocean","icy landscape","deserts","sky","magma pools","acid puddles"],populate:["populate","pervade","fill","inhabit","reside in","occupy","hunt in","hunt #species# in","gather #flora# in"],species:["fish","mammal","bird","amphibian","quadruped","biped"],many:["many","a few","a single","two common","an uncannily human-like","a seemingly robotic","a silicon-based"],bloom:["pervade","bloom","grow","spread","peek out","pepper the landscape","#stretch# out","flourish","meekly survive","dot the barren land"],flora:["flowers","trees","tall grasses","#fruit#-like fruit","marsh mallows","deciduous forestry","massive fungi","fields of mold","wheat-like crops","mysterious fruits"],descair:["hot","cold","heavy","warm","dense","viscous","nitrogen-dense","toxic","nauseating","frigid","icy","humid","saturated","dry",...Array(10).fill("#descair# and #descair#")],gravity:["heavy","light","strong","unusual, somehow"],funfact:["the gravity seems #gravity#","it smells like #noun.s#","there are fruits on the trees. They look like #noun.s#","the soil is #adj#. Perhaps that's why the plants look like #noun.s#"]},At=new Date("August 8, 2020 00:00:00"),Ct={learned:["discovered ways","researched methods","trained in the mountains in order","found ancient texts describing how"],live:["live","farm","grow","thrive","develop e
324conomies","raise bears","trade ETH","buy cryptokitties"],sun:["sun","mothers","bears","core","oceans","fauna","tectonic plates","volcanos","toxic gases"],flock:["flock","army","fleet","ensemble","barrage","array","aggregation","mixture"],bads:["solar flares","polar bears","foxes","in-browser miners","toxic gas","evil ducks","man-eating plants","radioactive minerals","neutrino rays","eigenstates","sidechains","51% attacks"],sends:["sends","generates","publicises","causes","births","spawns","produces","provokes","kindles","fosters","sparks","throws","delivers"],sometimes:["every day","every minute","periodically","whenever @VitalikButerin tweets","when Jim feels like it","every second","every four seconds","every Planck length","every quantum nanostate","every decade",`every ${Math.floor(50+100*Math.random())} galactic time-units`],years:["years","seconds","days",Date.now()-At+"ms since the Dark Forest universe began"],removed:["defended against","removed","bribed","nullified","eliminated","exiled","dark realm-ed","destroyed"],throwing:["throwing","tossing","firing","launching"],warbears:["warbears","drones","guided missiles","ICBMs","spiral energy","smaller galaxies","storybooks","laser beams"],lesson:["#friends#","#chocolates#","#willway#"],friends:["the real #treasure# was the #friend.s# we #made# #alongtheway#"],alongtheway:["along the way","on the way to school","in our childhood"],treasure:["treasure","gift","joy","lesson","battle","money","decentralized platform","bear","planet","space war","flux capacitor","layer 2 scaling solution","metaverse"],friend:["friend","bear","books","bird","toy","restaurant","computer","spaceship","asteroid","metaverse"],made:["made","ate","gained","lost","identified","organized","found","destroyed","educated","confirmed"],chocolates:["#life# is like a #box# of #chocolate.s# - you never #know# what you're gonna #get#"],life:["ethereum","blockchain","life","dating","college","space warfare","colonizing mars","loving bears","liking yourself"],box:["box","container","flock","group","squabble","flamboyance","classroom"],chocolate:["teacher","chocolate","candy","meat log"],know:["know","realize","anticipate","enjoy","find"],get:["find","eat","enjoy","delete from your browser history"],willway:["#when# #theres# #will.a#, #theres# #way.a#"],when:["when","if","sometimes when","if Jim says","when","if","when","when","when","if","if","if","where"],theres:["there's","there is never","there isn't"],will:["will","way","$50 ETH gas price","decentralized hair salon","strong desire to minimize self-actualization","bear","bad chance","desire","yearning","determination","sufficiently strong love","wish"],way:["way","will","bear","good chance","bad chance",'book that says "#willway#"',"way to make it come true","nothing impossible","someone who will take it away from you","way to lose it","way to gain it",'life lesson: "#lesson#"']};var Tt=n(74),Pt=n.n(Tt);function Ot(e){var t=e.toLowerCase();return"a"===t||"e"===t||"i"===t||"o"===t||"u"===t}var Mt={replace:function(e,t){return e.replace(new RegExp(t[0].replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),"g"),t[1])},capitalizeAll:function(e){for(var t,n="",r=!0,i=0;i<e.length;i++)(t=e.charAt(i))>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"?r?(n+=e.charAt(i).toUpperCase(),r=!1):n+=e.charAt(i):(r=!0,n+=e.charAt(i));return n},capitalize:function(e){return e.charAt(0).toUpperCase()+e.substring(1)},a:function(e){if(e.length>0){if("u"===e.charAt(0).toLowerCase()&&e.length>2&&"i"===e.charAt(2).toLowerCase())return"a "+e;if(Ot(e.charAt(0)))return"an "+e}return"a "+e},firstS:function(e){console.log(e);var t=e.split(" "),n=Mt.s(t[0])+" "+t.slice(1).join(" ");return console.log(n),n},s:function(e){switch(e.charAt(e.length-1)){case"s":case"h":case"x":return e+"es";case"y":return Ot(e.charAt(e.length-2))?e+"s":e.substring(0,e.length-1)+"ies";default:return e+"s"}},ed:function(e){switch(e.charAt(e.length-1)){case"s":return e+"ed";case"e":return e+"d";case"h":case"x":return e+"ed";case"y":return Ot(e.charAt(e.length-2))?e+"d":e.substring(0,e.length-1)+"ied";default:return e+"ed"}}};class It{static getBiomeRgbStr(e){if(e===de.Biome.WASTELAND)return"#888";const t=this.strByBiome.get(e);if(t)return t;const n=this.rgbStr(this.hslToRgb(this.baseByBiome[e]));return this.strByBiome.set(e,n),n}static ellipsisStr(e,t){return e.length<=t?e:e.substr(0,t-6)+"..."+e.substr(e.length-3,e.length)}static ellipsStrEnd(e,t){return e.length<=t?e:e.substr(0,t-3)+"..."}static hslStr(e,t,n){return`hsl(${e%360},${t}%,${n}%)`}static rgbStr(e){const[t,n,r]=e;return`rgb(${t}, ${n}, ${r})`}static hslToRgb([e,t,n]){t=Math.max(Math.min(t,100),0),n=Math.max(Math.min(n,100),0),t/=100,n/=100;const r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e/60%2-1)),o=n-r/2;let a=0,s=0,l=0;return 0<=e&&e<60?(a=r,s=i,l=0):60<=e&&e<120?(a=i,s=r,l=0):120<=e&&e<180?(a=0,s=r,l=i):180<=e&&e<240?(a=0,s=i,l=r):240<=e&&e<300?(a=i,s=0,l=r):300<=e&&e<360&&(a=r,s=0,l=i),a=Math.round(255*(a+o)),s=Math.round(255*(s+o)),l=Math.round(255*(l+o)),[a,s,l]}static hashToInt(e){const t=it(e,16).and(0xffffffffff).toString(16);return parseInt("0x"+t)}static hashToHue(e){if(It.huesByHash.has(e))return It.huesByHash.get(e)||0;const t=this.hashToInt(e)%360;return It.huesByHash.set(e,t),t}static getPlayerColor(e){return It.hslStr(It.hashToHue(e.slice(2)),100,70)}
324static getPlayerColorVec(e){if(!this.rgbsByHash.has(e)){const t=[...It.hslToRgb([It.hashToHue(e.slice(2)),100,70]),1];this.rgbsByHash.set(e,t)}return this.rgbsByHash.get(e)}static getOwnerColorVec(e){return e.owner===fe.EMPTY_ADDRESS?[153,153,102,255]:It.getPlayerColorVec(e.owner)}static getOwnerColor(e){return e.owner===fe.EMPTY_ADDRESS?"#996666":It.getPlayerColor(e.owner)}static getPlanetClass(e){const t=e.upgradeState;let n=0,r=-1;for(let e=0;e<t.length;e++)t[e]>r&&(n=e,r=t[e]);return n}static planetPerlin(e){const t=e.substring(4,e.length),n=Et.getInstance(),r=parseInt("0x"+t.substring(0,10)),i=e=>e/100+r;return e=>n.simplex2(i(e.x),i(e.y))}static planetRandom(e){const t=e.substring(4,e.length);let n=0;const r=parseInt("0x"+t.substring(0,10));return()=>{n++;return Object(rt.seededRandom)(n+r)}}static planetRandomInt(e){const t=It.planetRandom(e);return()=>Math.floor(t()*2**24)}static artifactRandom(e){const t=e.substring(4,e.length);let n=0;const r=parseInt("0x"+t.substring(0,10));return()=>{n++;return Object(rt.seededRandom)(n+r)}}static artifactRandomInt(e){const t=It.artifactRandom(e);return()=>Math.floor(t()*2**24)}static getRuinsInfo(e){const t={},n=this.planetRandom(e),r=this.planetRandomInt(e);for(let e=fe.MIN_PLANET_LEVEL;e<=fe.MAX_PLANET_LEVEL;e++){const i=r()%4+1,o=r()%2,a=2*n()-1,s=n(),l=n(),c=n(),u=n(),f=s+l+c+u;t[e]={weights:[s/f,l/f,c/f,u/f],props:[i,o,a,0]}}return t}static getPlanetCosmetic(e){if(!e)return It.grayColors;if(It.cosmeticByLocId.has(e.locationId))return It.cosmeticByLocId.get(e.locationId)||It.grayColors;const t=ct(e)?It.baseByBiome[e.biome]:[0,0,50],n=ct(e)?It.oceanByBiome[e.biome]:[0,0,20],r=It.hashToHue(e.locationId),i=parseInt("0x"+e.locationId.substring(0,9)),o=Math.min(t[2]+20,92),a=[t[0],t[1],o-10],s=[t[0],t[1],o],l=Math.max(0,t[2]-30),c=t[1]-10,u=[t[0],c,l],f=[t[0],c,l+10],d=[t[0],c,l+20],h=[t[0]+10,t[1]-30,Math.min(t[2]+23,100)],p=ct(e)&&e.biome===de.Biome.WASTELAND?[0,0,40]:t,m=[r,75,70],g=[r+15,70,55],v=[r-15,65,60],y={baseStr:It.hslStr(...t),bgStr:It.hslStr(n[0],Math.min(n[1]+30,100),80),baseHue:r,baseColor:It.hslToRgb(t),baseColor2:It.hslToRgb(a),baseColor3:It.hslToRgb(s),mtnColor:It.hslToRgb(u),mtnColor2:It.hslToRgb(f),mtnColor3:It.hslToRgb(d),backgroundColor:It.hslToRgb(n),previewColor:It.hslToRgb(t),landRgb:It.hslToRgb(t),oceanRgb:It.hslToRgb(n),beachRgb:It.hslToRgb(h),spacetime1:It.hslToRgb(m),spacetime2:It.hslToRgb(g),spacetime3:It.hslToRgb(v),asteroidHsl:p,seed:i,hatType:lt(e.locationId),ruins:this.getRuinsInfo(e.locationId)};return It.cosmeticByLocId.set(e.locationId,y),y}static getPlanetTitle(e){if(!e)return"Unknown";const t=mt(e);let n="Planet";return 1===t?n="Settlement":2===t?n="Colony":3===t?n="Spaceport":4===t?n="Stronghold":5===t&&(n="Galactic Stronghold"),n}static getPlanetName(e){return e?It.getPlanetNameHash(e.locationId):"Unknown"}static getPlanetNameHash(e){const t=It.namesById.get(e);if(t)return t;let n="";const r=It.planetRandomInt(e);if(r()%1024==0)n="Clown Town";else{const e=kt[r()%kt.length],t=kt[r()%kt.length];n=`${e} ${t}`.split(/ /g).map((e,t)=>0!==t&&["of","the"].includes(e)?e:`${e.substring(0,1).toUpperCase()}${e.substring(1)}`).join(" ")}return It.namesById.set(e,n),n}static getPlanetTagline(e){if(!e)return"The empty unknown";const t=It.taglinesById.get(e.locationId);if(t)return t;let n="";if("Clown Town"===It.getPlanetName(e))n="A town of clowns";else{const t=It.planetRandomInt(e.locationId);n=`A ${xt[t()%xt.length]}, ${xt[t()%xt.length]} ${St[t()%St.length]}`}return It.taglinesById.set(e.locationId,n),n}static getPlanetBlurb(e){if(!e)return"The vast, empty unknown of space contains worlds of infinite possibilities. Select a planet to learn more...";const t=It.blurbsById.get(e.locationId);if(t)return t;let n="";"Clown Town"===It.getPlanetName(e)&&(n="Founded in 1998 by Brian Gu, who remains the CEO of Clown Town to this day. "),Pt.a.setRng(It.planetRandom(e.locationId));const r={story:["#geography.capitalize# #populates#. The #air# is #descair#. #myflora.capitalize# #bloom# #colors#. #many.capitalize# species of #species# #populate# the #habitat#. #funfact.capitalize#."],origin:["#[myflora:#flora#]story#"]},i=Pt.a.createGrammar({..._t,...r});i.addModifiers(Mt);const o=n+i.flatten("#origin#");return It.blurbsById.set(e.locationId,o),o}static getPlanetBlurb2(e){if(!e)return"";const t=It.blurbs2ById.get(e.locationId);if(t)return t;const n=It.getPlanetName(e),r={story:[`The people of ${n} have #learned# to #live# in a ${It.getPlanetTagline(e)}. ${n}'s #mysun# #sends# an #flock# of #bads# #sometimes#. Over the #years#, they've #removed# the #mysun# by #throwing# #warbears#. In doing so, they've learned that #lesson#.`],origin:["#[mysun:#sun#]story#"]};Pt.a.setRng(It.planetRandom(e.locationId));const i=Pt.a.createGrammar({...Ct,...r});i.addModifiers(Mt);const o=i.flatten("#origin#");return It.blurbs2ById.set(e.locationId,o),o}static getHatSizeName(e){const t=at.length,n=e.hatLevel;return n<t?at[n]:"H"+"A".repeat(4*2**(n-t+1))+"T"}}It.blurbsById=new Map,It.blurbs2ById=new Map,It.cosmeticByLocId=new Map,It.baseByBiome={[de.Biome.UNKNOWN]:[0,0,0],[de.Biome.OCEAN]:[215,100,34],[de.Biome.FOREST]:[102,78,83],[de.Biome.GRASSLAND]:[155,94,70],[de.Biome.TUNDRA]:[326,100,78],[de.Biome.SWAMP]:[46,78,34],[de.Biome.DESERT]:[53,75,58],[de.Biome.ICE
324]:[202,88,75],[de.Biome.WASTELAND]:[0,0,18],[de.Biome.LAVA]:[356,64,52],[de.Biome.CORRUPTED]:[100,80,54]},It.oceanByBiome={[de.Biome.UNKNOWN]:[0,0,0],[de.Biome.OCEAN]:[209,52,63],[de.Biome.FOREST]:[216,96,43],[de.Biome.GRASSLAND]:[195,100,46],[de.Biome.TUNDRA]:[212,95,70],[de.Biome.SWAMP]:[265,47,73],[de.Biome.DESERT]:[31,100,50],[de.Biome.ICE]:[202,100,83],[de.Biome.WASTELAND]:[210,53,64],[de.Biome.LAVA]:[12,92,39],[de.Biome.CORRUPTED]:[128,90,63]},It.strByBiome=new Map,It.grayColors={baseHue:0,baseStr:"#888",bgStr:"#888",baseColor:[120,120,120],baseColor2:[120,120,120],baseColor3:[120,120,120],mtnColor:[120,120,120],mtnColor2:[120,120,120],mtnColor3:[120,120,120],backgroundColor:[120,120,120],previewColor:[120,120,120],landRgb:[0,0,0],oceanRgb:[0,0,0],beachRgb:[0,0,0],asteroidHsl:[0,0,0],seed:0,spacetime1:[0,0,0],spacetime2:[0,0,0],spacetime3:[0,0,0],ruins:void 0,hatType:"GraduationCap"},It.namesById=new Map,It.taglinesById=new Map,It.huesByHash=new Map,It.rgbsByHash=new Map;de.ArtifactType.Wormhole,de.ArtifactType.PlanetaryShield,de.ArtifactType.PhotoidCannon,de.ArtifactType.BloomFilter,de.ArtifactType.BlackDomain;function Rt(e){return de.ArtifactType.Wormhole<=e&&e<=de.ArtifactType.BlackDomain}function Lt(e){return de.ArtifactType.Monolith<=e&&e<=de.ArtifactType.Pyramid}const Nt=new Map;let jt=void 0;function Bt(e){if(void 0!==jt)return jt;const{id:t,planetBiome:n}=e;if(Nt.has(t))return Nt.get(t)||!1;let r=!1;const i=function(e){return It.hashToInt(e)%256}(t);return r=n===de.Biome.CORRUPTED?i%2==0:i%16==0,Nt.set(t,r),r}const Ft={[de.ArtifactType.Unknown]:24,[de.ArtifactType.Monolith]:24,[de.ArtifactType.Colossus]:24,[de.ArtifactType.Spaceship]:24,[de.ArtifactType.Pyramid]:24,[de.ArtifactType.Wormhole]:48,[de.ArtifactType.PlanetaryShield]:24,[de.ArtifactType.PhotoidCannon]:24,[de.ArtifactType.BloomFilter]:24,[de.ArtifactType.BlackDomain]:24};function Dt(e){return void 0!==e&&e.lastActivated>e.lastDeactivated}const zt=e=>de.BiomeNames[e];const Ut=new Map;function $t(e,t,n,r,i){const{artifactType:o,rarity:a,planetBiome:s,id:l}=n,c=t?"16":"64",u=e?"webm":"png";let f="";if(!(null==i?void 0:i.skipCaching)&&Ut.has(l))f=Ut.get(l)||"";else{const e=de.ArtifactTypeNames[o],t=de.ArtifactRarityNames[a];let r="";r=i?i.forceAncient?"ancient":s+de.BiomeNames[s]:Bt(n)?"ancient":s+de.BiomeNames[s],f=`${e}-${t}-${r}`}(null==i?void 0:i.skipCaching)||Ut.set(l,f);let d="";return 1===r&&(d="-bg"),`${c}-${f}${d}.${u}`}var Ht=n(20),Jt=n(9),Gt=n(7),Vt=n(17),Xt=n(38),Wt=n(28),qt=n.n(Wt),Kt=n(24);
325/**
326 * @license
327 * Copyright 2018 Google LLC
328 * SPDX-License-Identifier: BSD-3-Clause
329 */
330const Zt=new Set(["children","localName","ref","style","className"]),Yt=new WeakMap,Qt=(e,t,n,r,i)=>{const o=null==i?void 0:i[t];void 0!==o?n!==r&&((e,t,n)=>{let r=Yt.get(e);void 0===r&&Yt.set(e,r=new Map);let i=r.get(t);void 0!==n?void 0===i?(r.set(t,i={handleEvent:n}),e.addEventListener(t,i)):i.handleEvent=n:void 0!==i&&(r.delete(t),e.removeEventListener(t,i))})(e,o,n):e[t]=n};customElements.define(Kt.DarkForestIcon.tagName,Kt.DarkForestIcon);const en=((e,t,n,r)=>{const i=e.Component,o=e.createElement,a=new Set(Object.keys(null!=r?r:{}));for(const e in n.prototype)e in HTMLElement.prototype||(Zt.has(e)?console.warn(`${t} contains property ${e} which is a React reserved property. It will be used by React and not set on the element.`):a.add(e));class s extends i{constructor(){super(...arguments),this.t=null}o(e){if(null!==this.t)for(const t in this.i)Qt(this.t,t,this.props[t],e?e[t]:void 0,r)}componentDidMount(){this.o()}componentDidUpdate(e){this.o(e)}render(){const e=this.props.l;void 0!==this.h&&this.u===e||(this.h=t=>{null===this.t&&(this.t=t),null!==e&&((e,t)=>{"function"==typeof e?e(t):e.current=t})(e,t),this.u=e});const n={ref:this.h};this.i={};for(const[e,t]of Object.entries(this.props))a.has(e)?this.i[e]=t:n["className"===e?"class":e]=t;return o(t,n)}}return e.forwardRef((e,t)=>o(s,{...e,l:t},null==e?void 0:e.children))})(o.a,Kt.DarkForestIcon.tagName,Kt.DarkForestIcon,{}),tn=({planet:e})=>{const t=mt(e);return gt(e)?o.a.createElement(en,{type:Kt.IconType.RankMax}):1===t?o.a.createElement(en,{type:Kt.IconType.RankOne}):2===t?o.a.createElement(en,{type:Kt.IconType.RankTwo}):3===t?o.a.createElement(en,{type:Kt.IconType.RankThree}):o.a.createElement(en,{type:Kt.IconType.RankFour})},nn=({stat:e})=>4===e?o.a.createElement(en,{type:Kt.IconType.Defense}):1===e?o.a.createElement(en,{type:Kt.IconType.EnergyGrowth}):0===e?o.a.createElement(en,{type:Kt.IconType.Energy}):2===e?o.a.createElement(en,{type:Kt.IconType.Range}):3===e?o.a.createElement(en,{type:Kt.IconType.Speed}):o.a.createElement(en,{type:Kt.IconType.Defense}),rn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/planettypes/quasar.svg"}),on=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/planettypes/ruins.svg"}),an=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/planettypes/asteroid.svg"}),sn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/planettypes/tradingpost.svg"}),ln=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/spacetypes/space.svg"}),cn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/spacetypes/deepspace.svg"}),un=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/spacetypes/deadspace.svg"}),fn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/combat/pirates.svg"}),dn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/generic/generic.svg"}),hn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/artifacts/find.svg"}),pn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/artifacts/prospect.svg"}),mn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/biomes/ocean.svg"}),gn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/biomes/forest.svg"}),vn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/biomes/grassland.svg"}),yn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/biomes/tundra.svg"}),bn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/biomes/swamp.svg"}),wn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/biomes/desert.svg"}),En=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/biomes/ice.svg"}),kn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/biomes/wasteland.svg"}),xn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/biomes/lava.svg"}),Sn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/biomes/corrupted.svg"}),_n=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/combat/planetattacked.svg"}),An=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/combat/planetlost.svg"}),Cn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/combat/planetwon.svg"}),Tn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/transactions/accepted.svg"}),Pn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/transactions/confirmed.svg"}),On=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/transactions/initialized.svg"}),Mn=({height:e,width:t})=>o.a.createElement("img",{height:e,width:t,src:"public/icons/alerts/transactions/declined.svg"}),In={[de.Biome.UNKNOWN]:"#000000",[de.Biome.OCEAN]:"#0088ff",[de.Biome.FOREST]:"#46FB73",[de.Biome.GRASSLAND]:"#CFF391",[de.Biome.TUNDRA]:"#FB6A9D",[de.Biome.SWAMP]:"#b48812",[de.Biome.DESERT]:"#ffe554",[de.Biome.ICE
330]:"hsl(198, 78%, 77%)",[de.Biome.WASTELAND]:"#000000",[de.Biome.LAVA]:"#FF5100",[de.Biome.CORRUPTED]:"#8DF15B"},Rn=(de.Biome.UNKNOWN,de.Biome.OCEAN,de.Biome.FOREST,de.Biome.GRASSLAND,de.Biome.TUNDRA,de.Biome.SWAMP,de.Biome.DESERT,de.Biome.ICE,de.Biome.WASTELAND,de.Biome.LAVA,de.Biome.CORRUPTED,{[de.ArtifactRarity.Unknown]:"#000000",[de.ArtifactRarity.Common]:Pe.colors.subtext,[de.ArtifactRarity.Rare]:"#6b68ff",[de.ArtifactRarity.Epic]:"#c13cff",[de.ArtifactRarity.Legendary]:"#f8b73e",[de.ArtifactRarity.Mythic]:"#ff44b7"}),Ln=le.d`
331  0% {
332    color: ${Rn[de.ArtifactRarity.Legendary]};
333  }
334  70% {
335    color: ${Rn[de.ArtifactRarity.Legendary]};
336  }
337  100% {
338    color: #ffffff;
339  }
340`,Nn=le.c.span.withConfig({displayName:"AnimDelay",componentId:"sc-nmi432"})`
341  animation: ${Ln} 1s linear infinite alternate;
342  ${({i:e})=>`animation-delay: ${.04*-e}s;`}
343`,jn=le.c.span.withConfig({displayName:"Anim",componentId:"sc-27fu4z"})`
344  color: ${Rn[de.ArtifactRarity.Legendary]};
345`;const Bn=o.a.memo((function(){return o.a.createElement(jn,null,de.ArtifactRarityNames[de.ArtifactRarity.Legendary].split("").map((e,t)=>o.a.createElement(Nn,{i:t,key:t}," "===e?o.a.createElement(o.a.Fragment,null," "):e)))})),Fn=le.d`
346  0% {
347    filter: hue-rotate(0);
348  }
349  30% {
350    filter: hue-rotate(0);
351  }
352  100% {
353    filter: hue-rotate(360deg);
354  }
355`,Dn=le.c.span.withConfig({displayName:"AnimDelay",componentId:"sc-9waiz4"})`
356  animation: ${Fn} 1s ease-in-out infinite alternate;
357  ${({i:e})=>`animation-delay: ${.04*-e}s;`}
358`,zn=le.c.span.withConfig({displayName:"Anim",componentId:"sc-6zpcz8"})`
359  color: ${Rn[de.ArtifactRarity.Mythic]};
360`;function Un({text:e}){return o.a.createElement(zn,null,e.split("").map((e,t)=>o.a.createElement(Dn,{i:t,key:t}," "===e?o.a.createElement(o.a.Fragment,null," "):e)))}const $n=o.a.memo((function(){return o.a.createElement(Un,{text:de.ArtifactRarityNames[de.ArtifactRarity.Mythic]})})),Hn=({rarity:e})=>o.a.createElement(o.a.Fragment,null,de.ArtifactRarityNames[e]),Jn=({artifact:e})=>o.a.createElement(o.a.Fragment,null,Bt(e)?"Ancient":de.BiomeNames[e.planetBiome]),Gn=({artifact:e})=>o.a.createElement(o.a.Fragment,null,de.ArtifactTypeNames[e.artifactType]),Vn=le.c.span.withConfig({displayName:"StyledArtifactRarityLabel",componentId:"sc-dgovbv"})`
361  color: ${({rarity:e})=>Rn[e]};
362`,Xn=({rarity:e})=>o.a.createElement(Vn,{rarity:e},o.a.createElement(Hn,{rarity:e})),Wn=({rarity:e})=>e===de.ArtifactRarity.Mythic?o.a.createElement($n,null):e===de.ArtifactRarity.Legendary?o.a.createElement(Bn,null):o.a.createElement(Xn,{rarity:e}),qn=new Map,Kn=e=>{if(!e)return"Unknown";const t=qn.get(e.id);if(t)return t;const n=Object(de.artifactNameFromArtifact)(e);return qn.set(e.id,n),n},Zn=e=>{let t="";const n="abcdef0123456789".split("");for(;t.length<e;)t+=n[Math.floor(Math.random()*n.length)];return t},Yn=(e,t=de.ArtifactType.Spaceship,n=de.Biome.WASTELAND)=>((e,t=de.ArtifactType.Spaceship,n=de.Biome.WASTELAND)=>({id:Zn(64),planetDiscoveredOn:fe.EMPTY_LOCATION_ID,planetBiome:n,mintedAtTimestamp:Date.now(),discoverer:fe.EMPTY_ADDRESS,currentOwner:fe.EMPTY_ADDRESS,isInititalized:!0,lastActivated:0,lastDeactivated:0,rarity:e,artifactType:t,upgrade:{energyCapMultiplier:120,energyGroMultiplier:100,rangeMultiplier:100,speedMultiplier:85,defMultiplier:100},onPlanetId:void 0}))(e,t,n),Qn=Yn(de.ArtifactRarity.Common,de.ArtifactType.Spaceship,de.Biome.WASTELAND),er=(Yn(de.ArtifactRarity.Rare,de.ArtifactType.Spaceship,de.Biome.WASTELAND),Yn(de.ArtifactRarity.Epic,de.ArtifactType.Spaceship,de.Biome.WASTELAND),Yn(de.ArtifactRarity.Legendary,de.ArtifactType.Spaceship,de.Biome.WASTELAND),e=>Math.sqrt(e.x**2+e.y**2));class tr extends Wt.EventEmitter{constructor(){super()}static getInstance(){return tr.instance||(tr.instance=new tr),tr.instance}static initialize(){return new tr}}var nr=tr;const rr=()=>navigator.userAgent.indexOf("Firefox")>0?1.005:1.0006;class ir{constructor(e,t,n,r,i,o){this.isPanning=!1,this.mousedownCoords=void 0,this.velocity=void 0,this.momentum=!1,this.isSending=!1,this.gameUIManager=e,this.centerWorldCoords=t,this.widthInWorldUnits=n,this.heightInWorldUnits=n*i/r,this.viewportWidth=r,this.viewportHe
362ight=i,this.mouseLastCoords=t,this.canvas=o;const a=localStorage.getItem("scrollSpeed");this.mouseSensitivity=a?parseFloat(a):rr(),this.isPanning=!1,ue()(this),this.setWorldWidth(this.widthInWorldUnits),this.onScroll(0)}setDiagnosticUpdater(e){this.diagnosticUpdater=e}onSendInit(){this.isSending=!0}onSendComplete(){this.isSending=!1}get minWorldWidth(){return 2}get maxWorldWidth(){return 4*this.gameUIManager.getWorldRadius()}getViewportPosition(){return{...this.centerWorldCoords}}getBottomBound(){return this.centerWorldCoords.y-this.heightInWorldUnits/2}getLeftBound(){return this.centerWorldCoords.x-this.widthInWorldUnits/2}getTopBound(){return this.centerWorldCoords.y+this.heightInWorldUnits/2}getRightBound(){return this.centerWorldCoords.x+this.widthInWorldUnits/2}getViewportWorldWidth(){return this.widthInWorldUnits}getViewportWorldHeight(){return this.heightInWorldUnits}setMouseSensitivty(e){this.mouseSensitivity=1+e,localStorage.setItem("scrollSpeed",this.mouseSensitivity.toString())}static getInstance(){if(!ir.instance)throw new Error("Attempted to get Viewport object before initialized");return ir.instance}static destroyInstance(){const e=nr.getInstance(),t=ir.instance;t&&(e.removeListener("CanvasMouseDown",t.onMouseDown).removeListener("CanvasMouseMove",t.onMouseMove).removeListener("CanvasMouseUp",t.onMouseUp).removeListener("CanvasMouseOut",t.onMouseOut).removeListener("CanvasScroll",t.onScroll).removeListener("WindowResize",t.onWindowResize).removeListener("CenterPlanet",t.centerPlanet).removeListener("ZoomIn",t.zoomIn).removeListener("ZoomOut",t.zoomOut).removeAllListeners("SendInitiated").removeAllListeners("SendCancelled").removeAllListeners("SendCompleted").removeAllListeners("WindowResize"),clearInterval(t.intervalId),window.cancelAnimationFrame(t.frameRequestId)),ir.instance=void 0}static initialize(e,t,n){const r=nr.getInstance(),i=e.getHomeCoords(),o=new ir(e,i,t,n.width,n.height,n);o.setDiagnosticUpdater(e);const a=o.getStorage();return a?o.setData(a):o.zoomPlanet(e.getHomePlanet()),r.on("CanvasMouseDown",o.onMouseDown).on("CanvasMouseMove",o.onMouseMove).on("CanvasMouseUp",o.onMouseUp).on("CanvasMouseOut",o.onMouseOut).on("CanvasScroll",o.onScroll).on("WindowResize",o.onWindowResize).on("CenterPlanet",o.centerPlanet).on("ZoomIn",o.zoomIn).on("ZoomOut",o.zoomOut).on("SendInitiated",o.onSendInit).on("SendCancelled",o.onSendComplete).on("SendCompleted",o.onSendComplete).on("WindowResize",o.onResize),o.intervalId=setInterval(o.setStorage,5e3),ir.instance=o,o}onResize(){this.onScroll(0)}getStorageKey(){return`${this.gameUIManager.getAccount()}-${this.gameUIManager.getContractAddress()}-viewport`}getStorage(){const e=this.getStorageKey(),t=localStorage.getItem(e);if(t)return JSON.parse(t)||void 0}setStorage(){const e=this.getStorageKey(),t={widthInWorldUnits:this.widthInWorldUnits,centerWorldCoords:this.centerWorldCoords};localStorage.setItem(e,JSON.stringify(t))}setData(e){"number"==typeof e.widthInWorldUnits&&this.setWorldWidth(e.widthInWorldUnits),"number"==typeof e.widthInWorldUnits&&this.centerCoords(e.centerWorldCoords)}centerPlanet(e){e&&ct(e)&&this.centerCoords(e.location.coords)}zoomPlanet(e,t){if(!e||!ct(e))return;this.centerPlanet(e);const n=this.gameUIManager.getRadiusOfPlanetLevel(e.planetLevel);void 0!==t&&this.setWorldHeight(t*n)}centerCoords(e){if("number"!=typeof e.x||"number"!=typeof e.y)throw new Error("please pass in an object that looks like {x: 0, y: 0}");this.centerWorldCoords={...e}}centerChunk(e){const{bottomLeft:t,sideLength:n}=e.chunkFootprint;this.centerWorldCoords={x:t.x+n/2,y:t.y+n/2}}zoomIn(){this.onScroll(-600,!0)}zoomOut(){this.onScroll(600,!0)}onMouseDown(e){if(this.isSending)return;this.mousedownCoords=e;const t=this.gameUIManager,n=nr.getInstance(),r=this.canvasToWorldCoords(e);t.isOverOwnPlanet(r)||(this.isPanning=!0),n.emit("WorldMouseDown",r),this.mouseLastCoords=e,this.momentum=!1,this.velocity=void 0}onMouseMove(e){const t=nr.getInstance();if(this.isPanning&&this.mouseLastCoords){const t=this.scale*(this.mouseLastCoords.x-e.x),n=-this.scale*(this.mouseLastCoords.y-e.y);this.velocity={x:1*t,y:1*n},this.centerWorldCoords.x+=t,this.centerWorldCoords.y+=n}else{const n=this.canvasToWorldCoords(e);t.emit("WorldMouseMove",n)}this.mouseLastCoords=e}onMouseUp(e){const t=nr.getInstance(),n=this.canvasToWorldCoords(e);var r,i;this.mousedownCoords&&(r=e,i=this.mousedownCoords,(r.x-i.x)**2+(r.y-i.y)**2<3)&&t.emit("WorldMouseClick",n),this.mousedownCoords=void 0,t.emit("WorldMouseUp",n),this.isPanning=!1,this.momentum=!0,this.mouseLastCoords=e,this.velocity&&er(this.velocity)<.05&&(this.velocity=void 0,this.momentum=!1)}onMouseOut(){nr.getInstance().emit("WorldMouseOut"),this.isPanning=!1,this.mouseLastCoords=void 0}onScroll(e,t=!1){if(void 0!==this.mouseLastCoords||t){const t=this.mouseSensitivity,n=this.widthInWorldUnits*t**e;if(!this.isValidWorldWidth(n))return;let r=this.centerWorldCoords;this.mouseLastCoords&&(r=this.canvasToWorldCoords(this.mouseLastCoords));const i={x:this.centerWorldCoords.x-r.x,y:this.centerWorldCoords.y-r.y},o={x:i.x*t**e,y:i.y*t**e},a={x:r.x+o.x,y:r.y+o.y};this.centerWorldCoords.x=a.x,this.centerWorldCoords.y=a.y,this.setWorldWidth(n)}}
362onWindowResize(){this.viewportHeight=this.canvas.height,this.viewportWidth=this.canvas.width,this.scale=this.widthInWorldUnits/this.viewportWidth}canvasToWorldCoords(e){return{x:this.canvasToWorldX(e.x),y:this.canvasToWorldY(e.y)}}worldToCanvasCoords(e){return{x:this.worldToCanvasX(e.x),y:this.worldToCanvasY(e.y)}}worldToCanvasDist(e){return e/this.scale}canvasToWorldDist(e){return e*this.scale}worldToCanvasX(e){return(e-this.centerWorldCoords.x)/this.scale+this.viewportWidth/2}canvasToWorldX(e){return(e-this.viewportWidth/2)*this.scale+this.centerWorldCoords.x}worldToCanvasY(e){return-1*(e-this.centerWorldCoords.y)/this.scale+this.viewportHeight/2}canvasToWorldY(e){return-1*(e-this.viewportHeight/2)*this.scale+this.centerWorldCoords.y}isInOrAroundViewport(e){return!(Math.abs(e.x-this.centerWorldCoords.x)>.6*this.widthInWorldUnits)&&!(Math.abs(e.y-this.centerWorldCoords.y)>.6*this.heightInWorldUnits)}isInViewport(e){return e.x>=this.centerWorldCoords.x-this.widthInWorldUnits/2&&e.x<=this.centerWorldCoords.x+this.widthInWorldUnits/2&&e.y>=this.centerWorldCoords.y-this.heightInWorldUnits/2&&e.y<=this.centerWorldCoords.y+this.heightInWorldUnits/2}intersectsViewport(e){const t=e.chunkFootprint.bottomLeft.x,n=t+e.chunkFootprint.sideLength,r=e.chunkFootprint.bottomLeft.y,i=r+e.chunkFootprint.sideLength,o=this.centerWorldCoords.x-this.widthInWorldUnits/2,a=this.centerWorldCoords.x+this.widthInWorldUnits/2,s=this.centerWorldCoords.y-this.heightInWorldUnits/2,l=this.centerWorldCoords.y+this.heightInWorldUnits/2;return!(t>a||n<o||r>l||i<s)}isValidWorldWidth(e){return e>=this.minWorldWidth&&e<=this.maxWorldWidth}setWorldWidth(e){this.isValidWorldWidth(e)&&(this.widthInWorldUnits=e,this.heightInWorldUnits=e*this.viewportHeight/this.viewportWidth,this.scale=this.widthInWorldUnits/this.viewportWidth,this.updateDiagnostics())}setWorldHeight(e){this.heightInWorldUnits=e,this.widthInWorldUnits=e*this.viewportWidth/this.viewportHeight,this.updateDiagnostics()}updateDiagnostics(){var e,t;null===(e=this.diagnosticUpdater)||void 0===e||e.updateDiagnostics(e=>e.width=Math.floor(this.widthInWorldUnits)),null===(t=this.diagnosticUpdater)||void 0===t||t.updateDiagnostics(e=>e.height=Math.floor(this.heightInWorldUnits))}}var or=ir;function ar(){const[e,t]=Object(i.useState)(!1);return Object(i.useEffect)(()=>{const e=setInterval(()=>{t(e=>!e)},500);return()=>clearInterval(e)},[]),o.a.createElement("span",null,e?"|":""," ")}const sr=le.c.span.withConfig({displayName:"Green",componentId:"sc-1ozpkke"})`
363  color: ${Pe.colors.dfgreen};
364`,lr=le.c.span.withConfig({displayName:"Sub",componentId:"sc-1mzw2ob"})`
365  color: ${Pe.colors.subtext};
366`,cr=le.c.span.withConfig({displayName:"Subber",componentId:"sc-wlu5b8"})`
367  color: ${Pe.colors.subbertext};
368`,ur=le.c.span.withConfig({displayName:"Text",componentId:"sc-11r06n6"})`
369  color: ${Pe.colors.text};
370`,fr=le.c.span.withConfig({displayName:"White",componentId:"sc-15obj2c"})`
371  color: ${Pe.colors.dfwhite};
372`,dr=le.c.span.withConfig({displayName:"Red",componentId:"sc-1v4142i"})`
373  color: ${Pe.colors.dfred};
374`,hr=le.c.span.withConfig({displayName:"Gold",componentId:"sc-1aozf91"})`
375  color: ${Pe.colors.dfyellow};
376`,pr=(le.c.span.withConfig({displayName:"Colored",componentId:"sc-hywbw0"})`
377  color: ${({color:e})=>e};
378`,le.c.span.withConfig({displayName:"Blue",componentId:"sc-19ttlwq"})`
379  color: ${Pe.colors.dfblue};
380`),mr=le.c.span.withConfig({displayName:"Invisible",componentId:"sc-h3xtxs"})`
381  color: rgba(0, 0, 0, 0);
382`,gr=le.c.span.withConfig({displayName:"Smaller",componentId:"sc-1ay0jnf"})`
383  font-size: 80%;
384`,vr=le.c.span.withConfig({displayName:"HideSmall",componentId:"sc-1s6f8e9"})`
385  @media (max-width: ${Pe.screenSizeS}) {
386    display: none;
387  }
388`;function yr({tx:e}){return o.a.createElement(o.a.Fragment,null,o.a.createElement("u",null,o.a.createElement("a",{onClick:()=>window.open(`${fe.BLOCK_EXPLORER_URL}/${e.txHash}`)},"View ",e.txHash.substring(0,7)," on block explorer")),".")}function br({planet:e,children:t}){const n=xi();return o.a.createElement("a",null,o.a.createElement("u",{onClick:()=>{ct(e)&&n.centerPlanet(e)}},t))}function wr({id:e}){const t=xi(),n=t&&t.getArtifactWithId(e);return o.a.createElement(oo,{onClick:()=>{nr.getInstance().emit("ShowArtifact",n)}},Kn(n))}function Er({planet:e}){return o.a.createElement(br,{planet:e},It.getPlanetName(e))}function kr({chunk:e,children:t}){return o.a.createElement(oo,{onClick:()=>or.getInstance().centerChunk(e)},t)}function xr({children:e}){return o.a.createElement(oo,{to:"https://blog.zkga.me/df-04-faq"},e," ")}const Sr=()=>o.a.createElement("span",{style:{transform:"scale(1.5, 1)",display:"inline-block"}},"-"),_r=({coords:{x:e,y:t}})=>o.a.createElement(lr,null,"(",o.a.createElement(ur,null,e),", ",o.a.createElement(ur,null,t),")"),Ar={[de.Biome.OCEAN]:14,[de.Biome.FOREST]:15,[de.Biome.GRASSLAND]:16,[de.Biome.TUNDRA]:17,[de.Biome.SWAMP]:18,[de.Biome.DESERT]:19,[de.Biome.ICE
388]:20,[de.Biome.WASTELAND]:21,[de.Biome.LAVA]:22,[de.Biome.CORRUPTED]:23};const Cr=(e,t)=>{if(0===e){if(0===t)return Pe.colors.dfblue;if(1===t)return Pe.colors.dfgreen;if(2===t)return;if(3===t)return Pe.colors.dfred}};class Tr extends qt.a{constructor(){super()}static getInstance(){return Tr.instance||(Tr.instance=new Tr),Tr.instance}getIcon(e,t){switch(e){case 0:if(0===t)return o.a.createElement(On,{height:"48px",width:"48px"});if(1===t)return o.a.createElement(Tn,{height:"px",width:"48px"});if(2===t)return o.a.createElement(Pn,{height:"48px",width:"48px"});if(3===t)return o.a.createElement(Mn,{height:"48px",width:"48px"});break;case 9:return o.a.createElement(rn,{height:"48px",width:"48px"});case 4:return o.a.createElement(ln,{height:"64px",width:"64px"});case 5:return o.a.createElement(cn,{height:"64px",width:"64px"});case 6:return o.a.createElement(un,{height:"64px",width:"64px"});case 7:return o.a.createElement(fn,{height:"48px",width:"48px"});case 8:return o.a.createElement(an,{height:"48px",width:"48px"});case 10:return o.a.createElement(sn,{height:"48px",width:"48px"});case 12:return o.a.createElement(on,{height:"64px",width:"64px"});case 14:return o.a.createElement(mn,{height:"64px",width:"64px"});case 15:return o.a.createElement(gn,{height:"64px",width:"64px"});case 16:return o.a.createElement(vn,{height:"64px",width:"64px"});case 17:return o.a.createElement(yn,{height:"64px",width:"64px"});case 18:return o.a.createElement(bn,{height:"64px",width:"64px"});case 19:return o.a.createElement(wn,{height:"64px",width:"64px"});case 20:return o.a.createElement(En,{height:"64px",width:"64px"});case 21:return o.a.createElement(kn,{height:"64px",width:"64px"});case 22:return o.a.createElement(xn,{height:"64px",width:"64px"});case 23:return o.a.createElement(Sn,{height:"64px",width:"64px"});case 26:return o.a.createElement(_n,{height:"48px",width:"48px"});case 24:return o.a.createElement(An,{height:"48px",width:"48px"});case 25:return o.a.createElement(Cn,{height:"48px",width:"48px"});case 27:return o.a.createElement(pn,{height:"48px",width:"48px"});case 28:return o.a.createElement(hn,{height:"48px",width:"48px"});default:return o.a.createElement(dn,{height:"48px",width:"48px"})}}reallyLongNotification(){let e="";for(let t=0;t<100;t++)e+="lol ";this.emit("Notify",{type:30,message:e,id:pt(),icon:this.getIcon(30),color:Cr(30)})}clearNotification(e){this.emit("ClearNotification",e)}notify(e,t){this.emit("Notify",{type:e,message:t,id:pt(),icon:this.getIcon(e),color:Cr(e)})}notifyTx(e,t,n){this.emit("Notify",{type:0,message:t,id:e.actionId,icon:this.getIcon(0,n),txData:e,txStatus:n})}txInit(e){this.notifyTx(e,o.a.createElement("span",null,"Transaction ",e.actionId," initialized."),0)}txSubmit(e){this.notifyTx(e,o.a.createElement("span",null,"Transaction ",e.actionId," accepted by Ethereum.",o.a.createElement("br",null),o.a.createElement(yr,{tx:e})),1)}txConfirm(e){this.notifyTx(e,o.a.createElement("span",null,"Transaction ",e.actionId," confirmed.",o.a.createElement("br",null),"Hash: ",o.a.createElement(yr,{tx:e})),2)}unsubmittedTxFail(e,t){this.notifyTx(e,o.a.createElement("span",null,"Transaction ",e.actionId," failed.",o.a.createElement("br",null),"Check the console for more info."),3)}txRevert(e){this.notifyTx(e,o.a.createElement("span",null,"Transaction ",e.txHash.slice(0,8)," reverted.",o.a.createElement("br",null),o.a.createElement(yr,{tx:e})),3)}welcomePlayer(){this.notify(3,o.a.createElement("span",null,"Welcome to the world to Dark Forest! These are your notifications.",o.a.createElement("br",null),"Click a notification to dismiss it."))}foundSpace(e){this.notify(4,o.a.createElement("span",null,"Congrats! You found space! Space has more valuable resources than ",o.a.createElement("br",null),"the nebula where your home planet is located."," ",o.a.createElement(kr,{chunk:e},"Click to view"),"."))}foundDeepSpace(e){this.notify(5,o.a.createElement("span",null,"Congrats! You found deep space! Deep space has more rare ",o.a.createElement("br",null),"planets, but all planets in deep space have lowered defense!"," ",o.a.createElement(kr,{chunk:e},"Click to view"),"."))}foundDeadSpace(e){this.notify(6,o.a.createElement("span",null,"Congrats! You found dead space! Dead space is the most valuable ",o.a.createElement("br",null),"and most dangerous part of the universe, where corrupted planets lie..."," ",o.a.createElement(kr,{chunk:e},"Click to view"),"."))}foundSilver(e){this.notify(8,o.a.createElement("span",null,"You found a silver mine! Silver can be used to upgrade planets. ",o.a.createElement("br",null),"Click to view ",o.a.createElement(Er,{planet:e}),"."))}foundSilverBank(e){this.notify(9,o.a.createElement("span",null,"You found a quasar! Quasars are weak, but can hold a lot of silver. ",o.a.createElement("br",null),"Click to view ",o.a.createElement(Er,{planet:e}),"."))}foundTradingPost(e){this.notify(10,o.a.createElement("span",null,"You found a spacetime rip! Now you can move artifacts in and out of the universe. Click to view ",o.a.createElement(Er,{planet:e}),"."))}foundPirates(e){this.notify(7,o.a.createElement("span",null,"You found space pirates! Unconquered planets must be defeated first.",o.a.createElement("br",null),"Click to view ",o.a.createElement(Er,{planet:e}),"."))}foundComet(e){this.notify(11,o.a.createElement("span",null,"You found a comet! Planets with comets have a stat doubled! ",o.a.createElement("br",null),"Click to view ",o.a.createElement(Er,{planet:e})))}foundBiome(e){this.notify(function(e){if(!e)throw new Error("Biome is a required to get a NotificationType");return Ar[e]}(e.biome),o.a.createElement("span",null,"You have discovered the ",zt(e.biome)," biome! ",o.a.createElement("br",null),"Click to view ",o.a.createElement(Er,{planet:e})))}foundFoundry(e){this.notify(12,o.a.createElement("span",null,"You have found a planet that can produce an artifact! Artifacts can be used to power up your planets and moves! ",o.a.createElement("br",null),"Click to view ",o.a.createElement(Er,{planet:e})))}artifactProspected(e){this.notify(27,o.a.createElement("span",null,"You prospected a Foundry! ",o.a.createElement("br",null),"What artifacts are waiting to be found on it? Click to view"," ",o.a.createElement(Er,{planet:e})))}artifactFound(e,t){this.notify(28,o.a.createElement("span",null,"You have found ",o.a.createElement(wr,{id:t.id}),", a"," ",o.a.createElement(Wn,{rarity:t.rarity})," ",o.a.createElement(Jn,{artifact:t})," ",o.a.createElement(Gn,{artifact:t}),"!".repeat(t.rarity)," ",o.a.createElement("br",null),"Click to view ",o.a.createElement(Er,{planet:e})))}planetConquered(e){this.notify(25,o.a.createElement("span",null,"You conquered ",o.a.createElement(Er,{planet:e}),", you're unstoppable!"))}planetLost(e){this.notify(24,o.a.createElement("span",null,"You lost ",o.a.createElement(Er,{planet:e}),", oh no!"))}planetAttacked(e){this.notify(26,o.a.createElement("span",null,"Your Planet ",o.a.createElement(Er,{planet:e})," has been attacked!"))}planetCanUpgrade(e){this.notify(1,o.a.createElement("span",null,"Your planet ",o.a.createElement(Er,{planet:e})," can upgrade! ",o.a.createElement("br",null)))}balanceEmpty(){this.notify(2,o.a.createElement("span",null,"Your ONE account is out of balance!",o.a.createElement("br",null),"Click ",o.a.createElement(xr,null,"here")," to learn how to get more."))}receivedPlanet(e){this.notify(29,o.a.createElement("span",null,"Someone just sent you their planet: ",o.a.createElement(Er,{planet:e}),"."," ",!ct(e)&&"You'll need to ask the person who sent it for its location."))}}var Pr=Tr,Or=n(19);const Mr=Object(i.forwardRef)((function(e,t){return o.a.createElement(Ir,{...e,ref:t,disabled:!1,onChange:e.disabled?()=>{}:e.onChange,onKeyUp:t=>{e.onKeyUp&&e.onKeyUp(t)}})}));const Ir=le.c.input.withConfig({displayName:"DFInput",componentId:"sc-anifan"})`
389  ${({wide:e})=>le.b`
390    outline: none;
391    background: ${Pe.colors.background};
392    color: ${Pe.colors.subtext};
393    border-radius: 4px;
394    border: 1px solid ${Pe.colors.borderDark};
395    ${e?"width: 100%;":"width: 21em;"}
396    padding: 2px 12px;
397
398    &:hover,
399    &:focus {
400      border: 1px solid ${Pe.colors.border};
401      background: ${Pe.colors.backgroundlight};
402      color: ${Pe.colors.text};
403    }
404  `}
405`;class Rr{constructor(e){this.value=e}or(e){return new Rr(this.value||e.value)}}function Lr(e,t){Object(i.useEffect)(()=>e.subscribe(t).unsubscribe,[e,t])}function Nr(e,t){const[n,r]=Object(i.useState)(t);return Object(i.useEffect)(()=>e.subscribe(e=>r(e)).unsubscribe,[e]),n}function jr(e,t){const[n,r]=Object(i.useState)(new Rr(t));return Object(i.useEffect)(()=>e.subscribe(e=>{r(new Rr(e))}).unsubscribe,[e]),n}const Br=Object(Or.monomitter)();de.AutoGasSetting.Slow,de.AutoGasSetting.Average,de.AutoGasSetting.Fast;const Fr={OptOutMetrics:"false",AutoApproveNonPurchaseTransactions:"false",DrawChunkBorders:"false",HighPerformanceRendering:"false",MoveNotifications:"true",HasAcceptedPluginRisk:"false",GasFeeGwei:de.AutoGasSetting.Average,TerminalVisible:"true",TutorialOpen:"true",FoundPirates:"false",TutorialCompleted:"false",FoundSilver:"false",FoundSilverBank:"false",FoundTradingPost:"false",FoundComet:"false",FoundArtifact:"false",FoundDeepSpace:"false",FoundSpace:"false",NewPlayer:"true",MiningCores:"1",IsMining:"true",DisableDefaultShortcuts:"false",ExperimentalFeatures:"false",DisableEmojiRendering:"false",DisableHatRen
405dering:"false",AutoClearConfirmedTransactionsAfterSeconds:"-1",AutoClearRejectedTransactionsAfterSeconds:"-1"};function Dr(e,t){return void 0===e?Ht.CORE_CONTRACT_ADDRESS+":anonymous:"+t:Ht.CORE_CONTRACT_ADDRESS+":"+e+":"+t}function zr(e,t){const n=Dr(e,t);let r=localStorage.getItem(n);return null===r&&(r=Fr[t]),r}function Ur(e,t,n){const r=e&&Dr(e,t);void 0!==r&&void 0!==e&&(localStorage.setItem(r,n),Br.publish(t))}function $r(e,t){return"true"===zr(e,t)}function Hr(e,t,n){Ur(e,t,n+"")}function Jr(e,t){const n=zr(e,t),r=parseFloat(n);return isNaN(r)?parseFloat(Fr[t]):r}function Gr(e,t){const n=null==e?void 0:e.getAccount(),[r,o]=Object(i.useState)(()=>zr(n,t));return Lr(Br,e=>{e===t&&o(zr(n,e))}),[r,e=>{Ur(n,t,e)}]}function Vr(e,t){const[n,r]=Gr(e,t);return["true"===n,e=>{r(e+"")}]}function Xr({uiManager:e,setting:t,settingDescription:n}){const[r,i]=Vr(e,t);return o.a.createElement(o.a.Fragment,null,o.a.createElement("input",{type:"checkbox",checked:r,onChange:e=>i(e.target.checked)}),void 0!==n&&o.a.createElement(Kr,{onClick:()=>i(!r)}," "+n))}function Wr({uiManager:e,setting:t}){const[n,r]=function(e,t){const[n,r]=Gr(e,t);let i=parseInt(n,10);return isNaN(i)&&(i=0),[i,e=>{r(e+"")}]}(e,t);
405return o.a.createElement(Mr,{wide:!0,value:n+"",onChange:e=>{const t=parseFloat(e.target.value);isNaN(t)||r(t)}})}function qr({uiManager:e,setting:t,values:n,labels:r,style:i,wide:a}){const[s,l]=Gr(e,t);return o.a.createElement(mo,{wide:a,style:i,values:n,labels:r,value:s,setValue:l})}const Kr=le.c.span.withConfig({displayName:"BooleanLabel",componentId:"sc-11o1zlk"})`
406  cursor: pointer;
407  user-select: none;
408`;var Zr=n.p+"DarkForestCore.json",Yr=n.p+"DarkForestGetters.json",Qr=n.p+"DarkForestGPTCredit.json",ei=(n.p,n.p+"DarkForestTokens.json"),ti=n.p+"Whitelist.json",ni=n.p+"Betting.json";async function ri(e,t,n){const r=await fetch(Zr).then(e=>e.json());return Object(Jt.createContract)(e,r,t,n)}async function ii(e,t,n){const r=await fetch(Yr).then(e=>e.json());return Object(Jt.createContract)(e,r,t,n)}async function oi(e,t,n){const r=await fetch(ei).then(e=>e.json());return Object(Jt.createContract)(e,r,t,n)}async function ai(e,t,n){const r=await fetch(ti).then(e=>e.json());return Object(Jt.createContract)(e,r,t,n)}async function si(e,t,n){const r=await fetch(ni).then(e=>e.json());return Object(Jt.createContract)(e,r,t,n)}async function li(e,t,n){const r=await fetch(Qr).then(e=>e.json());return Object(Jt.createContract)(e,r,t,n)}function ci(){let e;return e=localStorage.getItem("XDAI_RPC_ENDPOINT_v5")||"https://api.s0.ps.hmny.io/",Object(Jt.createEthConnection)(e)}var ui=n(83),fi=n(143),di=n.n(fi);const hi=async e=>{if(!ui.validate(e))return 1;const{success:t}=await fetch("/email/interested",{method:"POST",body:JSON.stringify({email:e}),headers:{"Content-Type":"application/json"}}).then(e=>e.json());return t?0:2};async function pi(e){return new Promise(t=>{setTimeout(()=>t(),e)})}const mi=async(e,t)=>{try{return await fetch("/whitelist/register",{method:"POST",body:JSON.stringify({key:e,address:t}),headers:{"Content-Type":"application/json"}}).then(e=>e.json())}catch(e){return console.error("error when registering for whitelist: "+e),null}},gi=async()=>{try{return await fetch("/twitter/all-twitters").then(e=>e.json())}catch(e){return{}}};class vi{static augmentEvent(e,t){return Object.assign(e,{df_event_type:t})}logEvent(e,t){fetch("/event",{method:"POST",body:JSON.stringify(vi.augmentEvent(t,e)),headers:{"Content-Type":"application/json"}}).catch(e=>console.log(e))}}const yi=new vi;class bi extends Wt.EventEmitter{constructor(e){super(),this.contractCaller=new Jt.ContractCaller,this.ethConnection=e,this.txExecutor=new Jt.TxExecutor(e,this.getGasFeeForTransaction.bind(this),this.beforeTransaction.bind(this),this.afterTransaction.bind(this)),this.setupEventListeners()}get coreContract(){return this.ethConnection.getContract(Ht.CORE_CONTRACT_ADDRESS)}get tokensContract(){return this.ethConnection.getContract(Ht.TOKENS_CONTRACT_ADDRESS)}get scoreContract(){throw new Error("attempting to get scoring contract when none is used for this game mode")}get gettersContract(){return this.ethConnection.getContract(Ht.GETTERS_CONTRACT_ADDRESS)}get whitelistContract(){return this.ethConnection.getContract(Ht.WHITELIST_CONTRACT_ADDRESS)}get bettingContract(){return this.ethConnection.getContract(Ht.BETTING_CONTRACT_ADDRESS)}get gptCreditContract(){return this.ethConnection.getContract(Ht.GPT_CREDIT_CONTRACT_ADDRESS)}getGasFeeForTransaction(e){return"initializePlayer"===e.methodName&&e.contract.address===this.coreContract.address?(console.log("MATCH ADDRESS"),"31"):(console.log("ELSE MATCH ADDRESS"),"31")}async beforeTransaction(e){const t=this.ethConnection.getAddress();if(!t)throw new Error("can't send a transaction, no signer");if((await this.ethConnection.loadBalance(t)).lt(bi.MIN_BALANCE)){throw Pr.getInstance().balanceEmpty(),new Error("ONE balance too low!")}const n=Vt.a.from(e.overrides.gasPrice||"1000000000");await async function(e,t,n,r){if(!$r(e.getAddress(),"AutoApproveNonPurchaseTransactions")||Object(Jt.isPurchase)(t.overrides)){localStorage.setItem(n+"-gasFeeGwei",r.toString());const i=e.getAddress();if(!i)throw new Error("no account");const o=Object(Jt.weiToEth)(await e.loadBalance(i)),a=t.methodName,s=window.open(`/wallet/${n}/${t.actionId}/${o}/${a}`,"confirmationwindow","width=600,height=440");if(!s)throw new Error("Please enable popups to confirm this transaction. After you've done so, try again.");{const e=Date.now();await new Promise((r,i)=>{const o=setInterval(()=>{if(s.closed){"true"===localStorage.getItem(`tx-approved-${n}-${t.actionId}`)?r():i(new Error("User rejected transaction.")),localStorage.removeItem(`tx-approved-${n}-${t.actionId}`),clearInterval(o)}else Date.now()>e+2e4&&(i(new Error("Approval window popup timed out; check your popups!")),localStorage.removeItem(`tx-approved-${n}-${t.actionId}`),clearInterval(o),s.close())},100)})}}}(this.ethConnection,e,t,n)}async afterTransaction(e,t){yi.logEvent("transaction",t)}destroy(){this.removeEventListeners()}makeCall(e,t=[]){return this.contractCaller.makeCall(e,t)}async setupEventListeners(){const{coreContract:e}=this,t={address:e.address,topics:[[e.filters.ArrivalQueued(null,null,null,null,null).topics,e.filters.ArtifactActivated(null,null,null).topics,e.filters.ArtifactDeactivated(null,null,null).topics,e.filters.ArtifactDeposited(null,null,null).topics,e.filters.ArtifactFound(null,null,null).topics,e.filters.ArtifactWithdrawn(null,null,null).topics,e.filters.LocationRevealed(null,null,null,null).topics,e.filters.PlanetHatBought(null,null,null).topics,e.filters.PlanetProspected(null,null).topics,e.filters.PlanetSilverWithdrawn(null,null,null).topics,e.filters.PlanetTransferred(null,null,null).topics,e.filters.PlanetUpgraded(null,null,null,null).topics,e.filters.PlayerInitialized(null,null).topics].map(e=>(e||[])[0])]},n={ArtifactFound:(e,t,n)=>{const r=Object(Gt.artifactIdFromEthersBN)(t);
408this.emit("ArtifactUpdate",r),this.emit("PlanetUpdate",Object(Gt.locationIdFromEthersBN)(n))},ArtifactDeposited:(e,t,n)=>{const r=Object(Gt.artifactIdFromEthersBN)(t);this.emit("ArtifactUpdate",r),this.emit("PlanetUpdate",Object(Gt.locationIdFromEthersBN)(n))},ArtifactWithdrawn:(e,t,n)=>{const r=Object(Gt.artifactIdFromEthersBN)(t);this.emit("ArtifactUpdate",r),this.emit("PlanetUpdate",Object(Gt.locationIdFromEthersBN)(n))},ArtifactActivated:(e,t,n)=>{const r=Object(Gt.artifactIdFromEthersBN)(t);this.emit("ArtifactUpdate",r),this.emit("PlanetUpdate",Object(Gt.locationIdFromEthersBN)(n))},ArtifactDeactivated:(e,t,n)=>{const r=Object(Gt.artifactIdFromEthersBN)(t);this.emit("ArtifactUpdate",r),this.emit("PlanetUpdate",Object(Gt.locationIdFromEthersBN)(n))},PlayerInitialized:async(e,t,n)=>{this.emit("PlayerUpdate",Object(Gt.address)(e)),this.emit("PlanetUpdate",Object(Gt.locationIdFromEthersBN)(t)),this.emit("RadiusUpdated")},PlanetTransferred:async(e,t,n,r)=>{this.emit("PlanetTransferred",Object(Gt.locationIdFromEthersBN)(t),n.toLowerCase())},ArrivalQueued:async(e,t,n,r,i,o)=>{this.emit("ArrivalQueued",t.toString(),Object(Gt.locationIdFromEthersBN)(n),Object(Gt.locationIdFromEthersBN)(r)),this.emit("RadiusUpdated")},PlanetUpgraded:async(e,t,n,r,i)=>{this.emit("PlanetUpdate",Object(Gt.locationIdFromEthersBN)(t))},PlanetHatBought:async(e,t,n)=>
408this.emit("PlanetUpdate",Object(Gt.locationIdFromEthersBN)(t)),LocationRevealed:async(e,t,n)=>{this.emit("PlanetUpdate",Object(Gt.locationIdFromEthersBN)(t)),this.emit("LocationRevealed",Object(Gt.locationIdFromEthersBN)(t),Object(Gt.address)(e.toLowerCase())),this.emit("PlayerUpdate",Object(Gt.address)(e))},PlanetSilverWithdrawn:async(e,t,n,r)=>{this.emit("PlanetUpdate",Object(Gt.locationIdFromEthersBN)(t)),this.emit("PlayerUpdate",Object(Gt.address)(e))}};this.ethConnection.subscribeToContractEvents(e,n,t)}removeEventListeners(){const{coreContract:e}=this;e.removeAllListeners("PlayerInitialized"),e.removeAllListeners("ArrivalQueued"),e.removeAllListeners("PlanetUpgraded"),e.removeAllListeners("PlanetHatBought"),e.removeAllListeners("PlanetTransferred"),e.removeAllListeners("ArtifactFound"),e.removeAllListeners("ArtifactDeposited"),e.removeAllListeners("ArtifactWithdrawn"),e.removeAllListeners("ArtifactActivated"),e.removeAllListeners("ArtifactDeactivated"),e.removeAllListeners("LocationRevealed"),e.removeAllListeners("PlanetSilverWithdrawn")}getContractAddress(){return console.log("Address: ",this.coreContract.address),Object(Gt.address)(this.coreContract.address)}waitFor(e,t){return this.emit("TxSubmitted",e),t.then(t=>(this.emit("TxConfirmed",e),t)).catch(t=>{this.emit("TxReverted",e)})}async reveal(e,t){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const n=this.txExecutor.queueTransaction(t.actionId,this.coreContract,"revealLocation",e),r={...t,txHash:(await n.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3)};return this.waitFor(r,n.confirmed)}async claim(e,t){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");throw new Error('attempting to claim outside of the "Race" Game_Mode')}async initializePlayer(e,t){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");console.log("Queueing init player tx");const n=this.txExecutor.queueTransaction(t.actionId,this.coreContract,"initializePlayer",e);console.log("Submitting init player tx",n.submitted,n.confirmed);const r={...t,txHash:(await n.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3)};return this.waitFor(r,n.confirmed)}async transferOwnership(e,t,n){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const r=this.txExecutor.queueTransaction(n,this.coreContract,"transferOwnership",[Object(Gt.locationIdToDecStr)(e),t]),i={actionId:n,methodName:"transferOwnership",txHash:(await r.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3),planetId:e,newOwner:t};return this.waitFor(i,r.confirmed)}async upgradePlanet(e,t){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const n=this.txExecutor.queueTransaction(t,this.coreContract,"upgradePlanet",e),r={actionId:t,methodName:"upgradePlanet",txHash:(await n.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3),locationId:Object(Gt.locationIdFromDecStr)(e[0]),upgradeBranch:parseInt(e[1])};return this.waitFor(r,n.confirmed)}async prospectPlanet(e,t){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const n=[Object(Gt.locationIdToDecStr)(e)],r=this.txExecutor.queueTransaction(t,this.coreContract,"prospectPlanet",n),i={actionId:t,methodName:"prospectPlanet",txHash:(await r.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3),planetId:e};return this.waitFor(i,r.confirmed)}async findArtifact(e,t,n){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const r=this.txExecutor.queueTransaction(n,this.coreContract,"findArtifact",t),i={actionId:n,methodName:"findArtifact",txHash:(await r.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3),planetId:e.hash};return this.waitFor(i,r.confirmed)}async depositArtifact(e){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const t=[Object(Gt.locationIdToDecStr)(e.locationId),Object(Gt.artifactIdToDecStr)(e.artifactId)],n=this.txExecutor.queueTransaction(e.actionId,this.coreContract,"depositArtifact",t),r={...e,txHash:(await n.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3)};return this.waitFor(r,n.confirmed)}async withdrawArtifact(e){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const t=[Object(Gt.locationIdToDecStr)(e.locationId),Object(Gt.artifactIdToDecStr)(e.artifactId)],n=this.txExecutor.queueTransaction(e.actionId,this.coreContract,"withdrawArtifact",t),r={...e,txHash:(await n.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3)};return this.waitFor(r,n.confirmed)}async activateArtifact(e){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const t=[Object(Gt.locationIdToDecStr)(e.locationId),Object(Gt.artifactIdToDecStr)(e.artifactId),e.wormholeTo?Object(Gt.locationIdToDecStr)(e.wormholeTo):"0"],n=this.txExecutor.queueTransaction(e.actionId,this.coreContract,"activateArtifact",t),r={...e,txHash:(await n.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3)};return this.waitFor(r,n.confirmed)}async deactivateArtifact(e){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const t=[Object(Gt.locationIdToDecStr)(e.locationId)],n=this.txExecutor.queueTransaction(e.actionId,this.coreContract,"deactivateArtifact",t),r={...e,txHash:(await n.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3)};return this.waitFor(r,n.confirmed)}async move(e,t,n,r,i){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const o=[t[0],t[1],t[2],[...t[3],(n*fe.CONTRACT_PRECISION).toString(),(r*fe.CONTRACT_PRECISION).toString(),"0"]];i&&(o[3][12]=Object(Gt.artifactIdToDecStr)(i));const a=this.txExecutor.queueTransaction(e,this.coreContract,"move",o),s=parseFloat(o[3][10]),l=parseFloat(o[3][11]),c={actionId:e,methodName:"move",txHash:(await a.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3),from:Object(Gt.locationIdFromDecStr)(o[3][0]),to:Object(Gt.locationIdFromDecStr)(o[3][1]),forces:s/fe.CONTRACT_PRECISION,silver:l/fe.CONTRACT_PRECISION};return i&&(c.artifact=i),this.waitFor(c,a.confirmed)}async buyHat(e,t,n){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const r={gasLimit:5e5,value:ot()(1e18).multiply(2**t).toString()},i=this.txExecutor.queueTransaction(n,this.coreContract,"buyHat",[e],r),o={actionId:n,methodName:"buyHat",txHash:(await i.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3),locationId:Object(Gt.locationIdFromDecStr)(e)};return this.waitFor(o,i.confirmed)}async withdrawSilver(e){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const t=[Object(Gt.locationIdToDecStr)(e.locationId),e.amount*fe.CONTRACT_PRECISION],n=this.txExecutor.queueTransaction(e.actionId,this.coreContract,"withdrawSilver",t),r={...e,txHash:(await n.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3)};return this.waitFor(r,n.confirmed)}async buyGPTCredits(e,t){if(!this.txExecutor)throw new Error("no signer, cannot execute tx");const n=(await this.makeCall(this.gptCreditContract.creditPrice)).toString(),r={value:ot()(n).multiply(e).toString()},i=this.txExecutor.queueTransaction(t,this.gptCreditContract,"buyCredits",[e],r),o={actionId:t,methodName:"buyCredits",txHash:(await i.submitted).hash,sentAtTimestamp:Math.floor(Date.now()/1e3),amount:e};return this.waitFor(o,i.confirmed)}async getGPTCreditPriceEther(){const e=(await this.makeCall(this.gptCreditContract.creditPrice)).toString(),t=Xt.ethers.utils.formatEther(e);return parseFloat(t)}async getGPTCreditBalance(e){if(void 0===e)return 0;return(await this.makeCall(this.gptCreditContract.credits,[e])).toNumber()}async getScoreV3(e){if(void 0===e)return;const t=await this.makeCall(this.scoreContract.getScore,[e]);return t.eq(Vt.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"))?void 0:t.toNumber()}async getConstants(){const{DISABLE_ZK_CHECKS:e,PLANETHASH_KEY:t,SPACETYPE_KEY:n,BIOMEBASE_KEY:r,PERLIN_LENGTH_SCALE:i,PERLIN_MIRROR_X:o,PERLIN_MIRROR_Y:a}=await this.makeCall(this.coreContract.snarkConstants),{MAX_NATURAL_P
408LANET_LEVEL:s,TIME_FACTOR_HUNDREDTHS:l,PERLIN_THRESHOLD_1:c,PERLIN_THRESHOLD_2:u,PERLIN_THRESHOLD_3:f,INIT_PERLIN_MIN:d,INIT_PERLIN_MAX:h,SPAWN_RIM_AREA:p,BIOME_THRESHOLD_1:m,BIOME_THRESHOLD_2:g,PLANET_RARITY:v,PHOTOID_ACTIVATION_DELAY:y,LOCATION_REVEAL_COOLDOWN:b}=await this.makeCall(this.coreContract.gameConstants),w=(await this.makeCall(this.coreContract.TOKEN_MINT_END_TIMESTAMP)).toNumber(),E=Object(Gt.decodeUpgradeBranches)(await this.makeCall(this.coreContract.getUpgrades)),k=await this.makeCall(this.coreContract.getTypeWeights),x=await this.makeCall(this.coreContract.getArtifactPointValues),S=Object(Gt.decodeArtifactPointValues)(x),_=Object(Gt.decodePlanetDefaults)(await this.makeCall(this.coreContract.getDefaultStats)),A=(await this.makeCall(this.coreContract.getPlanetLevelThresholds)).map(e=>e.toNumber()),C=(await this.makeCall(this.coreContract.getCumulativeRarities)).map(e=>e.toNumber());return{DISABLE_ZK_CHECKS:e,PLANETHASH_KEY:t.toNumber(),SPACETYPE_KEY:n.toNumber(),BIOMEBASE_KEY:r.toNumber(),PERLIN_LENGTH_SCALE:i.toNumber(),PERLIN_MIRROR_X:o,PERLIN_MIRROR_Y:a,CLAIM_PLANET_COOLDOWN:0,TOKEN_MINT_END_SECONDS:w,MAX_NATURAL_PLANET_LEVEL:s.toNumber(),TIME_FACTOR_HUNDREDTHS:l.toNumber(),PERLIN_THRESHOLD_1:c.toNumber(),PERLIN_THRESHOLD_2:u.toNumber(),PERLIN_THRESHOLD_3:f.toNumber(),INIT_PERLIN_MIN:d.toNumber(),INIT_PERLIN_MAX:h.toNumber(),BIOME_THRESHOLD_1:m.toNumber(),BIOME_THRESHOLD_2:g.toNumber(),PLANET_RARITY:v.toNumber(),PLANET_TYPE_WEIGHTS:k,ARTIFACT_POINT_VALUES:S,PHOTOID_ACTIVATION_DELAY:y.toNumber(),SPAWN_RIM_AREA:p.toNumber(),LOCATION_REVEAL_COOLDOWN:b.toNumber(),defaultPopulationCap:_.populationCap,defaultPopulationGrowth:_.populationGrowth,defaultRange:_.range,defaultSpeed:_.speed,defaultDefense:_.defense,defaultSilverGrowth:_.silverGrowth,defaultSilverCap:_.silverCap,defaultBarbarianPercentage:_.barbarianPercentage,planetLevelThresholds:A,planetCumulativeRarities:C,upgrades:E}}async getPlayers(e){const t=(await this.makeCall(this.coreContract.getNPlayers)).toNumber(),n=await Object(Jt.aggregateBulkGetter)(t,200,async(e,t)=>(await this.makeCall(this.gettersContract.bulkGetPlayers,[e,t])).map(Gt.decodePlayer),e),r=new Map;for(const e of n)r.set(e.address,e);return r}async getPlayerById(e){const t=await this.makeCall(this.coreContract.players,[e]);if(!t.isInitialized)return;return Object(Gt.decodePlayer)(t)}async getPlanets(e){console.log("getting planets");const t=(await this.makeCall(this.coreContract.getNPlanets)).toNumber(),n=await Object(Jt.aggregateBulkGetter)(t,2e3,async(e,t)=>await this.makeCall(this.gettersContract.bulkGetPlanetIds,[e,t]),e);n.map(Gt.locationIdFromEthersBN);const r=await Object(Jt.aggregateBulkGetter)(t,200,async(e,t)=>await this.makeCall(this.gettersContract.bulkGetPlanetsByIds,[n.slice(e,t)]),e),i=await Object(Jt.aggregateBulkGetter)(t,1e3,async(e,t)=>await this.makeCall(this.gettersContract.bulkGetPlanetsExtendedInfoByIds,[n.slice(e,t)]),e),o=new Map;for(let e=0;e<t;e+=1)if(r[e]&&i[e]){const t=Object(Gt.decodePlanet)(n[e].toString(),r[e],i[e]);o.set(t.locationId,t)}return o}async getWorldRadius(){return(await this.makeCall(this.coreContract.worldRadius)).toNumber()}async getTokenMintEndTimestamp(){return(await this.makeCall(this.coreContract.TOKEN_MINT_END_TIMESTAMP)).toNumber()}async getArrival(e){const t=await this.makeCall(this.coreContract.planetArrivals,[e]);return Object(Gt.decodeArrival)(t)}async getArrivalsForPlanet(e){return(await this.makeCall(this.gettersContract.getPlanetArrivals,[Object(Gt.locationIdToDecStr)(e)])).map(Gt.decodeArrival)}async getAllArrivals(e,t){const n=await Object(Jt.aggregateBulkGetter)(e.length,200,async(t,n)=>(await this.makeCall(this.gettersContract.bulkGetPlanetArrivalsByIds,[e.slice(t,n).map(Gt.locationIdToDecStr)])).map(e=>e.map(Gt.decodeArrival)),t);return Me.a.flatten(n)}async getTouchedPlanetIds(e,t){const n=(await this.makeCall(this.coreContract.getNPlanets)).toNumber();return(await Object(Jt.aggregateBulkGetter)(n-e,1e3,async(t,n)=>await this.makeCall(this.gettersContract.bulkGetPlanetIds,[t+e,n+e]),t)).map(Gt.locationIdFromEthersBN)}async getRevealedCoordsByIdIfExists(e){const t=Object(Gt.locationIdToDecStr)(e),n=await this.makeCall(this.coreContract.revealedCoords,[t]),r=Object(Gt.decodeRevealedCoords)(n);if(r.hash!==fe.EMPTY_LOCATION_ID)return r}async getRevealedPlanetsCoords(e,t,n){const r=(await this.makeCall(this.coreContract.getNRevealedPlanets)).toNumber(),i=await Object(Jt.aggregateBulkGetter)(r-e,500,async(t,n)=>await this.makeCall(this.gettersContract.bulkGetRevealedPlanetIds,[t+e,n+e]),t);return(await Object(Jt.aggregateBulkGetter)(i.length,500,async(e,t)=>await this.makeCall(this.gettersContract.bulkGetRevealedCoordsByIds,[i.slice(e,t)]),n)).map(Gt.decodeRevealedCoords)}async getClaimedCoordsByIdIfExists(e){const t=Object(Gt.locationIdToDecStr)(e),n=await this.makeCall(this.scoreContract.getClaimedCoords,[t]),r=Object(Gt.decodeClaimedCoords)(n);if(r.hash!==fe.EMPTY_LOCATION_ID)return r}async getClaimedPlanetsCoords(e,t,n){const r=(await this.makeCall(this.scoreContract.getNClaimedPlanets)).toNumber(),i=await Object(Jt.aggregateBulkGetter)(r-e,500,async(t,n)=>await this.makeCall(this.scoreContract.bulkGetClaimedPlanetIds,[t+e,n+e]),t);return(await Object(Jt.aggregateBulkGetter)(i.length,500,async(e,t)=>await this.makeCall(this.scoreContract.bulkGetClaimedCoordsByIds,[i.slice(e,t)]),n)).map(Gt.decodeClaimedCoords)}async bulkGetPlanets(e,t,n){const r=await Object(Jt.aggregateBulkGetter)(e.length,200,async(t,n)=>await this.makeCall(this.gettersContract.bulkGetPlanetsByIds,[e.slice(t,n).map(Gt.locationIdToDecStr)]),t),i=await Object(Jt.aggregateBulkGetter)(e.length,200,async(t,n)=>await this.makeCall(this.gettersContract.bulkGetPlanetsExtendedInfoByIds,[e.slice(t,n).map(Gt.locationIdToDecStr)]),n),o=new Map;for(let t=0;t<e.length;t+=1)if(r[t]&&i[t]){const n=Object(Gt.decodePlanet)(Object(Gt.locationIdToDecStr)(e[t]),r[t],i[t]);o.set(n.locationId,n)}return o}async getPlanetById(e){const t=Object(Gt.locationIdToDecStr)(e),n=await this.makeCall(this.coreContract.planetsExtendedInfo,[t]);if(!n[0])return;const r=await this.makeCall(this.coreContract.planets,[t]);return Object(Gt.decodePlanet)(t,r,n)}async getArtifactById(e){if(!await this.makeCall(this.gettersContract.doesArtifactExist,[Object(Gt.artifactIdToDecStr)(e)]))return;const t=await this.makeCall(this.gettersContract.getArtifactById,[Object(Gt.artifactIdToDecStr)(e)]);return Object(Gt.decodeArtifact)(t)}
408async bulkGetArtifactsOnPlanets(e,t){return(await Object(Jt.aggregateBulkGetter)(e.length,200,async(t,n)=>await this.makeCall(this.gettersContract.bulkGetPlanetArtifacts,[e.slice(t,n).map(Gt.locationIdToDecStr)]),t)).map(e=>e.map(Gt.decodeArtifact))}async bulkGetArtifacts(e,t){return(await Object(Jt.aggregateBulkGetter)(e.length,200,async(t,n)=>await this.makeCall(this.gettersContract.bulkGetArtifactsByIds,[e.slice(t,n).map(Gt.artifactIdToDecStr)]),t)).map(Gt.decodeArtifact)}async getPlayerArtifacts(e,t){if(void 0===e)return[];const n=(await this.makeCall(this.gettersContract.getPlayerArtifactIds,[e])).map(Gt.artifactIdFromEthersBN);return this.bulkGetArtifacts(n,t)}hasAccount(){return this.ethConnection.hasSigner()}getAccount(){return this.ethConnection.getAddress()}setDiagnosticUpdater(e){var t;this.contractCaller.setDiagnosticUpdater(e),null===(t=this.txExecutor)||void 0===t||t.setDiagnosticUpdater(e),this.ethConnection.setDiagnosticUpdater(e)}}async function wi(e){return await e.loadContract(Ht.CORE_CONTRACT_ADDRESS,ri),await e.loadContract(Ht.GETTERS_CONTRACT_ADDRESS,ii),await e.loadContract(Ht.WHITELIST_CONTRACT_ADDRESS,ai),await e.loadContract(Ht.BETTING_CONTRACT_ADDRESS,si),await e.loadContract(Ht.GPT_CREDIT_CONTRACT_ADDRESS,li),await e.loadContract(Ht.TOKENS_CONTRACT_ADDRESS,oi),new bi(e)}bi.MIN_BALANCE=Object(Jt.ethToWei)(.002);async function Ei(){const e=await ci(),t=await wi(e),n=await t.getPlayers(),r=await t.getPlanets(),i=Object.values(r),o=Object.values(n);for(var a of n.values())o.push(a);for(var s of r.values())i.push(s);const l=await(null==e?void 0:e.loadContract(Ht.BETTING_CONTRACT_ADDRESS,si)),c=[];for(var a of o){const e=Object(Jt.weiToEth)(await(null==l?void 0:l.getPlayerBet(a.address)))||0;c.push(e)}return{entries:function(e,t,n){const r={};var i=0;for(const t of e)r[t.address]={ethAddress:t.address,score:0,sortedPlanets:[],betamount:n[i]},t.twitter&&(r[t.address].twitter=t.twitter),i++;for(const e of t){const t=e.owner;r[t]&&r[t].sortedPlanets.push(e)}for(const t of e){const e=r[t.address];e.sortedPlanets.sort((e,t)=>t.energyCap-e.energyCap);const n=e.sortedPlanets.length;for(let t=0;t<n;t+=1){const n=e.sortedPlanets[t];e.score+=(n.silverSpent+n.silver)/10,t<10&&(e.score+=n.energyCap)}}const o=Object.values(r);return o.sort((e,t)=>t.score-e.score),o}(o,i,c)}}function ki(){const e=o.a.createContext(void 0);return{useDefinedContext:()=>{const t=o.a.useContext(e);if(void 0===t)throw new Error("useDefinedContext is undefined! Make sure it is used in a provider and passed a defined value.");return t},provider:e.Provider}}const{useDefinedContext:xi,provider:Si}=ki(),{useDefinedContext:_i,provider:Ai}=ki();function Ci(e){return Object(i.useMemo)(()=>e.getAccount(),[e])}function Ti(e,t){const[n,r]=Object(i.useState)(()=>new Rr(e.getPlayer(t))),o=Object(i.useCallback)(()=>{r(new Rr(e.getPlayer(t)))},[e,t]);return Lr(e.getGameManager().playersUpdated$,o),n}function Pi(e){return jr(e.selectedPlanet$,void 0)}function Oi(e,t){const[n,r]=Object(i.useState)(()=>new Rr(e.getPlanetWithId(t))),o=Object(i.useCallback)(n=>{n===t&&r(new Rr(e.getPlanetWithId(t)))},[e,t]);return Lr(e.getGameManager().getGameObjects().planetUpdated$,o),n}function Mi(e){const[t,n]=Object(i.useState)(new Rr(e.getMyArtifacts()));return Object(i.useEffect)(()=>{const t=setInterval(()=>{n(new Rr(e.getMyArtifacts()))},1e3);return()=>clearInterval(t)}),t}function Ii(e,t){return Object(i.useMemo)(()=>e.value?t.getArtifactsWithIds(e.value.heldArtifactIds):[],[e,t]).filter(e=>!!e)}function Ri(e,t){return function(e){return e.find(Dt)}(Ii(e,t))}function Li(e){const[t,n]=Object(i.useState)(),[r,o]=Object(i.useState)();return function(e,t,n){Object(i.useEffect)(()=>{if(n&&e(),!t)return;const r=setInterval(e,t);return()=>clearInterval(r)},[t,e,n])}(Object(i.useCallback)((async function(){try{n(await Ei())}catch(e){console.log("error loading leaderboard",e),o(e)}}),[]),e,!0),{leaderboard:t,error:r}}const Ni={Space:" ",Tab:"Tab",Escape:"Escape",Control:"Control",Shift:"Shift"},ji=Object(Or.monomitter)(),Bi=Object(Or.monomitter)(),Fi=e=>{zi(e)||ji.publish(new Rr(Ui(e)||e.key.toLowerCase()))},Di=e=>{zi(e)||Bi.publish(new Rr(Ui(e)||e.key.toLowerCase()))};function zi(e){var t;const n=e.target;return"INPUT"===n.tagName?"range"!==(null===(t=n.attributes.getNamedItem("type"))||void 0===t?void 0:t.value):"TEXTAREA"===n.tagName}
408function Ui(e){if(Object.values(Ni).includes(e.key))return e.key}function $i(e,t){const[n]=Vr(xi(),"DisableDefaultShortcuts");Object(i.useEffect)(()=>{const r=r=>{r.key.toLowerCase()!==e||zi(r)||!n&&t&&t()};return document.addEventListener("keyup",r),()=>document.removeEventListener("keyup",r)},[e,t,n])}const Hi=le.c.div.withConfig({displayName:"InlineBlock",componentId:"sc-1lin6ex"})`
409  display: inline-block;
410`,Ji=le.c.div.withConfig({displayName:"Separator",componentId:"sc-1upz916"})`
411  width: 100%;
412  box-sizing: border-box;
413  padding-left: 2px;
414  padding-right: 2px;
415  height: 1px;
416  background-color: ${Pe.colors.borderDark};
417`,Gi=(le.c.div.withConfig({displayName:"FloatRight",componentId:"sc-1vvncga"})`
418  float: right;
419`,le.c.span.withConfig({displayName:"TextButton",componentId:"sc-6g5xz3"})`
420  color: ${Pe.colors.subtext};
421  cursor: pointer;
422  user-select: none;
423  text-decoration: underline;
424
425  &:hover {
426    color: white;
427  }
428`),Vi=le.c.div.withConfig({displayName:"Padded",componentId:"sc-1fcoh60"})`
429  ${({left:e,top:t,right:n,bottom:r})=>le.b`
430    padding-left: ${e||"8px"};
431    padding-top: ${t||"8px"};
432    padding-right: ${n||"8px"};
433    padding-bottom: ${r||"8px"};
434  `}
435`,Xi=Object(le.c)(Vi).withConfig({displayName:"PaddedRecommendedModalWidth",componentId:"sc-l0f1qq"})`
436  width: ${fe.RECOMMENDED_MODAL_WIDTH};
437`,Wi=(le.c.div.withConfig({displayName:"RecommendedModalWidth",componentId:"sc-14eenm1"})`
438  width: ${fe.RECOMMENDED_MODAL_WIDTH};
439`,le.c.div.withConfig({displayName:"BorderlessPane",componentId:"sc-zzi9jm"})`
440  transition: '200ms';
441  display: inline-block;
442  z-index: ${4};
443  margin: 8px;
444  padding: 8px;
445  border-radius: ${Pe.borderRadius};
446  background-color: ${Pe.colors.background};
447  border-radius: ${Pe.borderRadius};
448  background-color: ${Pe.colors.background};
449`),qi=le.c.span.withConfig({displayName:"Underline",componentId:"sc-192sw7k"})`
450  text-decoration: underline;
451`,Ki=le.c.div.withConfig({displayName:"Display",componentId:"sc-1aem3bo"})`
452  ${({visible:e})=>le.b`
453    ${!e&&"display: none;"}
454  `}
455`,Zi=(le.c.span.withConfig({displayName:"Emphasized",componentId:"sc-zjnnz6"})`
456  font-weight: bold;
457  color: ${Pe.colors.subtext};
458`,le.c.div.withConfig({displayName:"HeaderText",componentId:"sc-1w4ufqr"})`
459  color: ${Pe.colors.text};
460  text-decoration: underline;
461  font-weight: bold;
462  display: inline;
463`),Yi=Object(le.c)(Zi).withConfig({displayName:"SectionHeader",componentId:"sc-qk2s80"})`
464  margin-bottom: 16px;
465  display: block;
466`,Qi=le.c.div.withConfig({displayName:"Section",componentId:"sc-1l8mnn1"})`
467  padding: 1em 0;
468
469  &:first-child {
470    margin-top: -8px;
471  }
472
473  &:last-child {
474    border-bottom: none;
475  }
476`,eo=(le.c.div.withConfig({displayName:"Bottom",componentId:"sc-lvh06w"})`
477  position: absolute;
478  bottom: 0;
479  left: 0;
480`,function({children:e}){return o.a.createElement(no,null,o.a.createElement(to,null,e[0]),o.a.createElement(to,null,e[1]))}),to=le.c.div.withConfig({displayName:"VerticalSplitChild",componentId:"sc-1kwsqqj"})`
481  width: 50%;
482  flex-grow: 1;
483  display: inline-block;
484`,no=le.c.div.withConfig({displayName:"FullWidth",componentId:"sc-1g1cbto"})`
485  ${({padding:e})=>le.b`
486      ${e&&`padding: ${e};`}
487      width: 100%;
488      display: flex;
489      box-sizing: border-box;
490      flex-direction: row;
491    `}
492`,ro=(le.c.div.withConfig({displayName:"FullHeight",componentId:"sc-t03zw"})`
493  height: 100%;
494`,le.c.div.withConfig({displayName:"AlignCenterHorizontally",componentId:"sc-cbda16"})`
495  display: inline-flex;
496  flex-direction: row;
497  justify-content: center;
498  align-items: center;
499`),io=(le.c.div.withConfig({displayName:"AlignCenterVertically",componentId:"sc-hu2spm"})`
500  height: 100%;
501  display: flex;
502  flex-direction: column;
503  justify-content: center;
504  align-items: center;
505`,le.c.div.withConfig({displayName:"Expand",componentId:"sc-1h5lkej"})`
506  display: inline-box;
507  flex-grow: 1;
508`);le.c.div.withConfig({displayName:"DontShrink",componentId:"sc-1d4q72l"})`
509  display: inline-box;
510  flex-shrink: 0;
511`;function oo(e){const{to:t,color:n,openInThisTab:r,children:i}=e;return o.a.createElement(ao,{...e,href:t,color:n,target:r?void 0:"_blank"},i)}const ao=le.c.a.withConfig({displayName:"LinkImpl",componentId:"sc-3fbgl9"})`
512  cursor: pointer;
513
514  ${({color:e})=>le.b`
515    text-decoration: underline;
516    color: ${e||Pe.colors.dfblue};
517  }
518
519    &:hover {
520      color: ${pe()(e||Pe.colors.dfblue).lighten(.3).hex()};
521    }
522  `}
523`;function so(e){const{to:t,color:n,openInThisTab:r,children:i}=e;return o.a.createElement(lo,{...e,href:t,color:n,target:r?void 0:"_blank"},i)}const lo=le.c.a.withConfig({displayName:"PageLinkImpl",componentId:"sc-1wba503"})`
524  cursor: pointer;
525
526  ${({color:e})=>le.b`
527    text-decoration: underline;
528    color: ${e||Pe.colors.text};
529  }
530
531    &:hover {
532      color: ${pe()(e||Pe.colors.text).lighten(.3).hex()};
533    }
534  `}
535`,co=le.c.div.withConfig({displayName:"EmSpacer",componentId:"sc-1jps6fv"})`
536  ${({width:e,height:t})=>le.b`
537    width: ${void 0===e?"1em":e};
538    height: ${void 0===t?"1em":t};
539    flex-grow: 0;
540    flex-shrink: 0;
541    ${e&&!t?"display: inline-block;":""}
542    ${e?`width: ${e}em;`:""}
543    ${t?`height: ${t}em;min-height:${t}em;`:""}
544  `}
545`,uo=le.c.div.withConfig({displayName:"Spacer",componentId:"sc-10bq7bn"})`
546  ${({width:e,height:t})=>le.b`
547    width: 1px;
548    height: 1px;
549    ${e&&!t?"display: inline-block;":""}
550    ${e?`width: ${e}px;`:""}
551    ${t?`height: ${t}px;min-height:${t}px;`:""}
552  `}
553`,fo=le.c.div.withConfig({displayName:"Truncate",componentId:"sc-1k0kpyb"})`
554  ${({maxWidth:e})=>le.b`
555    vertical-align: bottom;
556    display: inline-block;
557    white-space: nowrap;
558    overflow: hidden;
559    text-overflow: ellipsis;
560    ${void 0!==e&&`max-width: ${e};`};
561  `}
562`,ho=le.c.div.withConfig({displayName:"PluginElements",componentId:"sc-yn9pjb"})`
563  color: ${Pe.colors.text};
564  padding: 8px;
565  width: 400px;
566  min-height: 100px;
567  max-height: 600px;
568  overflow: scroll;
569
570  button {
571    border: 1px solid white;
572    border-radius: 4px;
573    padding: 0 0.3em;
574
575    transition: background-color 0.2s colors 0.2s;
576
577    &:hover {
578      background-color: ${Pe.colors.text};
579      color: black;
580      border: 1px transparent;
581    }
582  }
583`,po=(le.c.div.withConfig({displayName:"MaxWidth",componentId:"sc-1w9j4dk"})`
584  ${({width:e})=>le.b`
585      max-width: ${e};
586    `}
587`,le.c.div.withConfig({displayName:"Hidden",componentId:"sc-1d8o1um"})`
588  display: none;
589`,le.c.select.withConfig({displayName:"Select",componentId:"sc-1j7qnqc"})`
590  ${({wide:e})=>le.b`
591    outline: none;
592    background: ${Pe.colors.background};
593    color: ${Pe.colors.subtext};
594    border-radius: 4px;
595    border: 1px solid ${Pe.colors.border};
596    width: ${e?"100%":"12em"};
597    padding: 2px 6px;
598    cursor: pointer;
599
600    &:hover {
601      border: 1px solid ${Pe.colors.subtext};
602      background: ${Pe.colors.subtext};
603      color: ${Pe.colors.background};
604    }
605  `}
606`);function mo({values:e,value:t,setValue:n,labels:r,style:a,wide:s}){const l=Object(i.useCallback)(e=>{n(e.target.value)},[n]),c=[...e],u=[...r];
606return c.includes(t)||(u.push(t),c.push(t)),o.a.createElement(po,{wide:s,style:a,value:t,onChange:l},c.map((e,t)=>o.a.createElement("option",{key:e,value:e},u[t])))}const go=le.c.div.withConfig({displayName:"CenterRow",componentId:"sc-bor1ew"})`
607  display: flex;
608  justify-content: flex-start;
609  align-items: center;
610  flex-direction: row;
611`,vo=le.c.div.withConfig({displayName:"CenterBackgroundSubtext",componentId:"sc-18x3y6n"})`
612  ${({width:e,height:t})=>le.b`
613    display: flex;
614    justify-content: center;
615    align-items: center;
616    flex-direction: column;
617    color: ${Pe.colors.subtext};
618    width: ${e};
619    height: ${t};
620    user-select: none;
621    text-align: center;
622  `}
623`;function yo(e){const[t]=Vr(xi(),"DisableDefaultShortcuts");return o.a.createElement(io,{style:{display:"flex"}},o.a.createElement(ro,{style:{flexGrow:1}},o.a.createElement(tt,{...e}),e.shortcutKey&&!t&&o.a.createElement(o.a.Fragment,null,o.a.createElement(co,{width:.5}),o.a.createElement(Eo,{shortcutKey:e.shortcutKey,text:e.shortcutText,disabled:e.shortcutDisabled}))))}const bo=le.c.kbd.withConfig({displayName:"KeyboardBtn",componentId:"sc-cufpl"})`
624  ${({active:e})=>le.b`
625    font-size: 0.7rem;
626    line-height: 1.4;
627    padding: 0.1rem 0.45rem;
628    -webkit-backface-visibility: hidden;
629    backface-visibility: hidden;
630    border: 1px solid ${Pe.colors.border};
631    border-radius: 0.25rem;
632    display: inline-block;
633    font-weight: 400;
634    text-align: left;
635    transform: ${e?"translate3d(0, 2px, 0)":"translateZ(5px)"};
636    transform-style: preserve-3d;
637    transition: all 0.25s cubic-bezier(0.2, 1, 0.2, 1);
638    box-shadow: ${e?"0 0 1px 1px #929292":"0 0 #6b6b6b, 0 0 #6b6b6b, 0 1px #6d6d6d, 0 2px #6d6d6d, 2px 1px 4px #adb5bd, 0 -1px 1px #adb5bd"};
639    background-color: ${e?Pe.colors.text:"#343a40"};
640    color: ${e?Pe.colors.background:Pe.colors.text};
641    &:after {
642      border-radius: 0.375rem;
643      border-width: 0.0625rem;
644      bottom: -6px;
645      left: -0.25rem;
646      right: -0.25rem;
647      top: -2px;
648      transform: ${e?"translate3d(0, -2px, 0)":"translateZ(-2px)"};
649      border-style: solid;
650      box-sizing: content-box;
651      content: '';
652      display: block;
653      position: absolute;
654      transform-style: preserve-3d;
655      transition: all 0.25s cubic-bezier(0.2, 1, 0.2, 1);
656      border-color: ${Pe.colors.borderDarker};
657      background: ${e?"transparent":Pe.colors.background};
658    }
659  `}
660`,wo=le.c.span.withConfig({displayName:"CenteredText",componentId:"sc-75u34l"})`
661  margin: auto;
662  text-align: center;
663`;function Eo({shortcutKey:e,text:t,disabled:n}){const r=function(e){const[t,n]=Object(i.useState)(!1);return Lr(Bi,t=>void 0!==e&&t.value===e&&n(!0)),Lr(ji,t=>void 0!==e&&t.value===e&&n(!1)),t}(e)&&!n;return o.a.createElement(bo,{active:r},void 0===t?e:t)}const ko=le.c.div.withConfig({displayName:"SpreadApart",componentId:"sc-1d5essl"})`
664  width: 100%;
665  box-sizing: border-box;
666  flex-grow: 1;
667  display: inline-flex;
668  justify-content: space-between;
669  flex-direction: row;
670  align-items: center;
671
672  &:first-child {
673    border-left: none;
674  }
675`,xo=le.c.div.withConfig({displayName:"Spread",componentId:"sc-14blp6o"})`
676  width: 100%;
677  box-sizing: border-box;
678  flex-grow: 1;
679  display: inline-flex;
680  justify-content: space-around;
681  flex-direction: row;
682  align-items: center;
683
684  &:first-child {
685    border-left: none;
686  }
687`;class So extends Wt.EventEmitter{constructor(){super(),this.lastZIndex=0,this.activeWindowId$=Object(Or.monomitter)(!0)}static getInstance(){return So.instance||(So.instance=new So),So.instance}getIndex(){return this.lastZIndex++,this.lastZIndex+1001}getCursorState(){return this.cursorState}setCursorState(e){this.cursorState=e,this.emit("StateChanged",e)}
687acceptInputForTarget(e){1===this.cursorState&&(this.emit("MiningCoordsUpdate",e),this.setCursorState(0))}}var _o=So;const Ao=Ni.Escape,Co=Ni.Space;class To extends o.a.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("ui rendering error"),console.error(e)}render(){return this.state.hasError?o.a.createElement(Po,null,o.a.createElement(dr,null,"Error!"),o.a.createElement(uo,{height:8}),"There was an error rendering this UI! Sorry!",o.a.createElement(uo,{height:8}),"If you would like to report this error, please send a screenshot of the developer console to the ",o.a.createElement(qi,null,"df-feedback")," channel in our discord."):this.props.children}}const Po=le.c.div.withConfig({displayName:"ErrorBoundaryContent",componentId:"sc-191elci"})`
688  padding: 8px;
689  max-width: 350px;
690`;function Oo({children:e,hide:t,style:n}){return o.a.createElement(Io,{style:n},o.a.createElement(Ro,null,e,o.a.createElement(Mo,null,o.a.createElement(tt,{onClick:t},"close help"))))}const Mo=le.c.div.withConfig({displayName:"BtnContainer",componentId:"sc-94rft2"})`
691  display: flex;
692  justify-content: flex-end;
693  align-items: center;
694  margin-top: 8px;
695`,Io=le.c.div.withConfig({displayName:"InfoSectionContainer",componentId:"sc-2qwfha"})`
696  padding: 8px;
697  width: 400px;
698  text-align: justify;
699`,Ro=le.c.div.withConfig({displayName:"InfoSectionContent",componentId:"sc-x4dqv2"})`
700  width: 100%;
701  max-width: 100%;
702  border-radius: 2px;
703  padding: 8px;
704  color: ${Pe.colors.subtext};
705`,Lo=le.c.div.withConfig({displayName:"ModalButtonsContainer",componentId:"sc-njw1ma"})`
706  ${({minimized:e})=>le.b`
707    ${e?le.b`
708          margin-left: 8px;
709        `:le.b``}
710
711    flex-grow: 0;
712    display: inline-flex;
713    justify-content: center;
714    align-items: center;
715    height: 100%;
716  `}
717`,No=le.c.div.withConfig({displayName:"Modal",componentId:"sc-q1wwf3"})`
718  display: flex;
719  flex-direction: column;
720  position: absolute;
721  z-index: ${1001};
722  width: fit-content;
723  height: fit-content;
724  background: ${Pe.colors.background};
725  border-radius: ${Pe.borderRadius};
726  border: 1px solid ${Pe.colors.borderDark};
727  color: ${Pe.colors.text};
728`,jo=Object(le.c)(fo).withConfig({displayName:"Title",componentId:"sc-uc1ee6"})`
729  flex-grow: 1;
730  text-align: left;
731`,Bo=le.c.div.withConfig({displayName:"TitleBar",componentId:"sc-1a8r5ap"})`
732  ${({minimized:e})=>le.b`
733    user-select: none;
734    line-height: 1.5em;
735    width: 100%;
736    cursor: grab;
737    padding: 8px;
738    border-bottom: 1px solid ${e?"transparent":Pe.colors.borderDark};
739    display: flex;
740    justify-content: center;
741    align-items: flex-end;
742  `}
743`;function Fo(e,t){let n=e;return n+t>window.innerWidth?n=window.innerWidth-t:n<0&&(n=0),n}const Do=(e,t)=>{let n=e;return n+t>window.innerHeight?n=window.innerHeight-t:n<0&&(n=0),n};function zo({children:e,title:t,hook:[n,r],hideClose:a,style:s,helpContent:l,width:c,borderColor:u,initialPosition:f}){const d=_o.getInstance(),h=Nr(d.activeWindowId$,void 0),[p]=Object(i.useState)(()=>et()),m=p===h,[g,v]=Object(i.useState)([]),[y,b]=Object(i.useState)(),[w,E]=Object(i.useState)(),[k,x]=Object(i.useState)(!1),[S,_]=Object(i.useState)(null),[A,C]=Object(i.useState)(null),[T,P]=Object(i.useState)(null),[O,M]=Object(i.useState)(!1),[I,R]=Object(i.useState)(!1),[L,N]=Object(i.useState)(1001),j=Object(i.useRef)(document.createElement("div")),B=Object(i.useRef)(document.createElement("div")),F=Object(i.useCallback)(()=>{d.activeWindowId$.publish(p),N(d.getIndex())},[d,p]),[D,z]=Object(i.useState)(!1),[U,$]=Object(i.useState)(),[H,J]=Object(i.useState)(!1),G=Object(i.useCallback)(e=>{F(),e.stopPropagation()},[F]),V=void 0!==l&&H,X=k||V?"":c,W=Object(i.useMemo)(()=>({pop:()=>{v(e=>(0===e.length||(e=[...e]).pop(),e))},push:e=>{v(t=>((t=[...t]).push(e),t))},popAll:()=>{v([])},id:p,isActive:m}),[p,m]);Object(i.useEffect)(()=>{const e=()=>{$({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),Object(i.useEffect)(()=>
743{if(!S)return;const e=B.current,t=e=>{P({x:e.clientX,y:e.clientY}),_({x:j.current.offsetLeft,y:j.current.offsetTop}),R(!0)};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}},[S,j]),Object(i.useEffect)(()=>{const e=e=>{if(!T)return;if(!n||!I)return;const t=e.clientX-T.x,r=e.clientY-T.y;C({x:t,y:r})};return n&&I&&window.addEventListener("mousemove",e),()=>{window.removeEventListener("mousemove",e)}},[n,I,T]),Object(i.useEffect)(()=>{if(!T||!S)return;const e=e=>{const t=e.clientX-T.x,n=e.clientY-T.y,r={x:Fo(S.x+t,j.current.offsetWidth),y:Do(S.y+n,j.current.offsetHeight)};P(null),C(null),_(r),R(!1)};return n&&I&&(window.addEventListener("mouseleave",e),window.addEventListener("mouseup",e)),()=>{window.removeEventListener("mouseup",e),window.removeEventListener("mouseleave",e)}},[n,I,T,S]),Object(i.useLayoutEffect)(()=>{if(!D){if(z(!0),f)_(f);else{const e=.5*(window.innerWidth-j.current.offsetWidth),t=.5*(window.innerHeight-j.current.offsetHeight);_({x:e,y:t})}F()}},[j,d,F,f,D]),Object(i.useLayoutEffect)(()=>{F()},[n,d,F]),Object(i.useLayoutEffect)(()=>{if(!S)return;const e=A?A.x:0,t=A?A.y:0,n=Fo(S.x+e,j.current.offsetWidth)+"px",r=Do(S.y+t,j.current.offsetHeight)+"px";j.current&&(j.current.style.left=n,j.current.style.top=r)},[S,A,j,U,j.current.offsetWidth,j.current.offsetHeight]),$i("t",()=>{m&&W.pop()}),Object(i.useEffect)(()=>{setTimeout(()=>{const e=g[g.length-1];b(e&&e.element()||void 0),E(e&&e.helpContent||void 0)},0)},[g,W]);const q=o.a.createElement(o.a.Fragment,null,n&&!k&&!V&&y,o.a.createElement("div",{style:{display:y||!n||k||V?"none":void 0}},"function"==typeof e?e(W):e));const K="string"==typeof t?t:t(g.length>0),Z=[];return g.length>0&&Z.push(function(e){if(e)return""+e.title}(g[g.length-1])),o.a.createElement(No,{style:{...s,zIndex:n?L:-1e3,width:X,maxWidth:X,border:void 0!==u?"1px solid "+u:void 0},ref:j,onMouseDown:G},o.a.createElement(Bo,{ref:B,style:{cursor:O?"grabbing":"grab"},minimized:k,onMouseLeave:e=>{M(!1)},onClick:e=>e.preventDefault(),onMouseUp:e=>{e.preventDefault(),M(!1)},onMouseDown:e=>{e.preventDefault(),M(!0)}},o.a.createElement(jo,null,g.length>0&&o.a.createElement(o.a.Fragment,null,o.a.createElement(ro,null,o.a.createElement(tt,{noBorder:!0,small:!0,onClick:()=>{W.pop()}},o.a.createElement(wo,null,"Back")),o.a.createElement(co,{width:.5}),o.a.createElement(Eo,{shortcutKey:"t",disabled:!m})),o.a.createElement(co,{width:1})),o.a.createElement(fo,{maxWidth:0!==Z.length?"50px":void 0},K),0!==Z.length&&o.a.createElement(co,{width:.5}),Z,o.a.createElement(co,{width:1})),o.a.createElement(Lo,{minimized:k},void 0!==l&&!k&&o.a.createElement(o.a.Fragment,null,o.a.createElement(tt,{noBorder:!0,onClick:()=>J(e=>!e),small:!0},"help"),o.a.createElement(uo,{width:4})),o.a.createElement(tt,{noBorder:!0,onClick:()=>x(e=>!e),small:!0},k?"maximize":"minimize"),!a&&o.a.createElement(o.a.Fragment,null,o.a.createElement(uo,{width:4}),o.a.createElement(tt,{noBorder:!0,onClick:()=>r(!1),small:!0},"close")))),o.a.createElement(Oo,{style:{display:k||!V?"none":void 0},hide:()=>J(!1)},w||l&&l()),o.a.createElement("div",{style:{display:k?"none":"initial"}},o.a.createElement(To,null,q)))}function Uo({initialText:e,rate:t}){const n=t||100,r=e||"Loading...",[a,s]=Object(i.useState)(r);return Object(i.useEffect)(()=>{let e=0;const t=setInterval(()=>{e=(e+1)%r.length,s(r.substr(e)+r.substr(0,e))},n);return()=>clearInterval(t)},[r,n]),o.a.createElement("span",null,a)}const $o=o.a.forwardRef((function({prettyEntityName:e},t){const[n,r]=Object(i.useState)(0);Object(i.useImperativeHandle)(t,()=>({setFractionCompleted:r}));let a="";for(let e=0;e<20;e++)e<Math.floor(20*n)?a+="=":a+=" ";const s=Math.floor(100*n).toString().padStart(3," ");return o.a.createElement("span",null,"[",o.a.createElement(lr,null,a),"]"," ",o.a.createElement("span",{style:{fontWeight:"100"===s?"bold":void 0}},s,"%"," "),o.a.createElement(Ho,null,e))}));const Ho=le.c.div.withConfig({displayName:"LoadingTitle",componentId:"sc-e8qmv8"})`
744  display: inline-block;
745  color: ${Pe.colors.text};
746`,Jo=o.a.forwardRef((function({promptCharacter:e},t){const n=Object(i.useRef)(document.createElement("div")),r=Object(i.useRef)(document.createElement("textarea")),a=Object(i.useRef)(document.createElement("textarea")),[s]=Object(i.useState)(new qt.a),[l,c]=Object(i.useState)([]),[u,f]=Object(i.useState)(!1),[d,h]=Object(i.useState)(""),[p,m]=Object(i.useState)(1),[g,v]=Object(i.useState)(""),y=Object(i.useCallback)(e=>{c(t=>[...t.slice(-199),o.a.createElement("span",{key:Go++},e)])},[c]),b=Object(i.useCallback)(e=>{c(t=>[...t.slice(0,t.length-e)])},[c]),w=Object(i.useCallback)(()=>{y(o.a.createElement("br",null))},[y]),E=Object(i.useCallback)((e,t=1,n)=>{let r,i=o.a.createElement("span",null,e);switch(void 0!==n&&(i=o.a.createElement(oo,{onClick:n}
746,i)),t){case 9:r=o.a.createElement(Un,{text:e});break;case 0:r=o.a.createElement(sr,null,i);break;case 6:r=o.a.createElement(pr,null,i);break;case 1:r=o.a.createElement(lr,null,i);break;case 2:r=o.a.createElement(cr,null,i);break;case 3:r=o.a.createElement(ur,null,i);break;case 4:r=o.a.createElement(fr,null,i);break;case 5:r=o.a.createElement(dr,null,i);break;case 7:r=o.a.createElement(mr,null,i);break;case 8:r=o.a.createElement(lr,null,o.a.createElement("u",null,i));break;default:r=o.a.createElement(lr,null,i)}y(r)},[y]),k=e=>{13!==e.keyCode||e.shiftKey||e.preventDefault()};Object(i.useEffect)(()=>{u&&r.current.focus()},[u]);return Object(i.useEffect)(()=>{n.current.scrollTo(0,n.current.scrollHeight)},[l]),Object(i.useEffect)(()=>{m(a.current.scrollHeight)},[d]),Object(i.useImperativeHandle)(t,()=>({printElement:e=>{y(e)},printLoadingBar:(e,t)=>{y(o.a.createElement($o,{prettyEntityName:e,ref:t}))},print:(e,t)=>{E(e,t,void 0)},println:(e,t)=>{E(e,t,void 0),w()},printLink:(e,t,n)=>{E(e,n,t)},getInput:async()=>{f(!0);const e=await new Promise(e=>{s.once("ON_INPUT",t=>e(t.trim()))});return f(!1),e},printShellLn:t=>{E(e+" ",0),E(t,3),w()},printLoadingSpinner:()=>{y(o.a.createElement(Uo,null)),w()},setInput:e=>{r.current&&h(e)},focus:()=>{var e;null===(e=r.current)||void 0===e||e.focus()},newline:w,removeLast:b,setUserInputEnabled:f,clear:()=>{c([])}}),[s,e,w,E,y,b,c]),o.a.createElement(qo,{ref:n},l,o.a.createElement(Vo,{userInputEnabled:u,onClick:()=>{u&&r.current.focus()}},o.a.createElement(sr,null,e+" "),o.a.createElement(Xo,null,o.a.createElement(Wo,{height:p,ref:r,onKeyUp:async t=>{13!==t.keyCode||t.shiftKey?38===t.keyCode&&""===d&&""!==g&&(m(1),h(g)):(t.preventDefault(),E(e+" ",0),E(d,3),w(),s.emit("ON_INPUT",d),v(d),m(1),h(""))},onKeyDown:k,onKeyPress:Le()?()=>{}:k,value:d,onChange:e=>{u&&h(e.target.value)}}),o.a.createElement(Wo,{height:0,ref:a,onChange:()=>{},value:d}))))}));let Go=0;const Vo=le.c.span.withConfig({displayName:"Prompt",componentId:"sc-paeoly"})`
747  ${({userInputEnabled:e})=>le.b`
748    display: flex;
749    justify-content: flex-start;
750    flex-direction: row;
751    opacity: ${e?1:0};
752  `}
753`,Xo=le.c.div.withConfig({displayName:"TextAreas",componentId:"sc-1t9addo"})`
754  display: flex;
755  flex-direction: column;
756  justify-content: flex-start;
757  width: 100%;
758`,Wo=le.c.textarea.withConfig({displayName:"InputTextArea",componentId:"sc-1tkb9ir"})`
759  ${({height:e})=>le.b`
760    background: none;
761    outline: none;
762    border: none;
763    color: ${Pe.colors.text};
764    height: ${e}px;
765    resize: none;
766    flex-grow: ${0===e?0:1};
767  `}
768`,qo=le.c.div.withConfig({displayName:"TerminalContainer",componentId:"sc-1sbrsol"})`
769  height: 100%;
770  width: 100%;
771  margin: 0 auto;
772  overflow: scroll;
773  white-space: pre-wrap;
774  overflow-wrap: break-word;
775
776  & span {
777    word-break: break-all;
778  }
779
780  @media (max-width: ${Pe.screenSizeS}) {
781    font-size: ${Pe.fontSizeXS};
782  }
783`;function Ko({exampleQuestions:e,selectQuestion:t,disabled:n}){return o.a.createElement("div",null,e&&e.length>0&&o.a.createElement(Zo,null,"Suggested Questions (if you're feeling lazy):"),null==e?void 0:e.map((e,r)=>o.a.createElement(Yo,{disabled:n,key:r,onClick:()=>!n&&t(e)},e)))}const Zo=Object(le.c)(lr).withConfig({displayName:"Title",componentId:"sc-13oqc5q"})`
784  padding: 4px 4px 2px 4px;
785`,Yo=le.c.div.withConfig({displayName:"SuggestedQuestion",componentId:"sc-19fo1s0"})`
786  ${({disabled:e})=>le.b`
787    box-sizing: border-box;
788    border-radius: 2px;
789    background-color: ${Pe.colors.background};
790    color: ${e?Pe.colors.subtext:Pe.colors.text};
791    padding: 2px 4px;
792    cursor: pointer;
793    border: 1px solid transparent;
794
795    ${!e&&le.b`
796      &:hover {
797        background-color: ${Pe.colors.backgroundlight};
798        border: 1px solid ${Pe.colors.dfblue};
799      }
800    `}
801  `}
802`;function Qo({hook:e,artifact:t}){const n=Object(i.useRef)(),[r,a]=Object(i.useState)(),[s,l]=Object(i.useState)(!0),c=Object(i.useCallback)(e=>{var t,r;null===(t=n.current)||void 0===t||t.setInput(e),null===(r=n.current)||void 0===r||r.focus()},[n]);return Object(i.useEffect)(()=>{var e;if(n.current&&t){const r=new Ge(n,a,l,null==t?void 0:t.artifactType,t.rarity);null===(e=n.current)||void 0===e||e.clear(),r.start(),n.current.focus()}},[n,a,t]),o.a.createElement(zo,{title:"Artifact Conversation",hook:e},o.a.createElement(na,null,o.a.createElement(ta,null,o.a.createElement(Jo,{key:JSON.stringify(null==t?void 0:t.id),ref:n,promptCharacter:">"})),o.a.createElement(ea,null,o.a.createElement(Ko,{disabled:s,selectQuestion:c,exampleQuestions:r&&r.exampleQuestions}))))}const ea=le.c.div.withConfig({displayName:"SuggestionsContainer",componentId:"sc-10afhmd"})`
803  flex-shrink: 0;
804`,ta=le.c.div.withConfig({displayName:"TerminalContainer",componentId:"sc-2i9scn"})`
805  flex-grow: 1;
806  overflow-y: scroll;
807  border: 1px solid ${Pe.colors.backgroundlighter};
808  padding: 4px;
809`,na=le.c.div.withConfig({displayName:"ContentContainer",componentId:"sc-k37a1e"})`
810  width: 600px;
811  height: 600px;
812  max-width: 600px;
813  max-height: 600px;
814  display: flex;
815  flex-direction: column;
816`,ra=le.c.div.withConfig({displayName:"StyledConversationTest",componentId:"sc-xku67o"})`
817  width: 100%;
818  height: 100%;
819`;function ia(){const e=Object(i.useState)(!0),[t,n]=Object(i.useState)(null);return o.a.createElement(ra,null,o.a.createElement("div",{ref:e=>n(e)}),t&&o.a.createElement(Ai,{value:t},o.a.createElement(Qo,{hook:e,artifact:{artifactType:de.ArtifactType.BloomFilter,rarity:de.ArtifactRarity.Rare,id:"00011110de1f42569c82b29e25096cd0246cc50a58e30b5bfba020f55a80eb20"}}),o.a.createElement(De,null)))}var oa=n(60),aa=n(52),sa=n(144),la=n.n(sa),ca=n(40),ua=n.n(ca);function fa(e,t,n){let r;const i=Object(Or.monomitter)(),o=t=>{i.publish(t?e.get(t):void 0)};return t.subscribe(e=>{o(e),r=e}),n.subscribe(e=>{r&&r===e&&o(e)}),i}function da(e,t,n){const r=Object(Or.monomitter)();return n.subscribe(n=>{t===n&&(t=>{r.publish(t?e.get(t):void 0)})(n)}),r}function ha(e,t,n,r,i,o,a,s){e.set(o(s),s);let l=!1;n===a(s)?(t.set(o(s),s),l=!0):t.has(o(s))&&(t.delete(o(s)),l=!0),r.publish(o(s)),l&&i.publish(t)}const pa=e=>e.locationId,ma=e=>e.owner,ga=e=>e.id,va=e=>e.currentOwner;var ya=n(145),ba=n.n(ya);function wa(e){return function(e){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";let n=(Math.floor(e.bottomLeft.x/e.sideLength)+Math.floor(e.bottomLeft.y/e.sideLength))%t.length;return n<0&&(n+=t.length),t[n]}(e)+","+e.sideLength+","+e.bottomLeft.x+","+e.bottomLeft.y}const Ea=e=>{const t=e.l.map(e=>({coords:{x:e.x,y:e.y},hash:e.h,perlin:e.p,biomebase:e.b}));return{chunkFootprint:{bottomLeft:{x:e.x,y:e.y},sideLength:e.s},planetLocations:t,perlin:e.p}},ka=e=>{const t=2*e.sideLength,n=Math.floor(e.bottomLeft.x/t)*t,r=Math.floor(e.bottomLeft.y/t)*t,i=[];for(let t=0;t<2;t+=1)for(let o=0;o<2;o+=1){const a=n+t*e.sideLength,s=r+o*e.sideLength;a===e.bottomLeft.x&&s===e.bottomLeft.y||i.push({bottomLeft:{x:a,y:s},sideLength:e.sideLength})}return[i[0],i[1],i[2]]};function xa(e,t){return{sideLength:t,bottomLeft:{x:Math.floor(e.x/t)*t,y:Math.floor(e.y/t)*t}}}class Sa{constructor(e,t,n){this.initPerlinMin=e,this.initPerlinMax=t,this.minedChunkKeys=new Set,this.perlinOptions={key:n.spaceTypeKey,scale:n.perlinLengthScale,mirrorX:n.perlinMirrorX,mirrorY:n.perlinMirrorY,floor:!1}}addChunk(e){this.minedChunkKeys.add(wa(e.chunkFootprint))}hasMinedChunk(e){if(this.minedChunkKeys.has(wa(e)))return!0;const t={x:e.bottomLeft.x+e.sideLength/2,y:e.bottomLeft.y+e.sideLength/2},n=Object(rt.perlin)(t,this.perlinOptions);return n>=this.initPerlinMax||n<this.initPerlinMin}}class _a extends Wt.EventEmitter{constructor(e,t,n,r,i,o,a){super(),this.isExploring=!1,this.cores=1,this.exploringChunk={},this.exploringChunkStart={},this.minersComplete={},this.currentJobId=0,this.minedChunksStore=e,this.miningPattern=t,this.worldRadius=n,this.planetRarity=r,this.workers=[],this.hashConfig=i,this.perlinOptions={key:i.spaceTypeKey,scale:i.perlinLengthScale,mirrorX:i.perlinMirrorX,mirrorY:i.perlinMirrorY,floor:!1},this.WorkerCtor=a,this.useMockHash=o}setMiningPattern(e){this.miningPattern=e,this.isExploring&&(this.stopExplore(),this.startExplore())}getMiningPattern(){return this.miningPattern}destroy(){this.workers.map(e=>e.terminate())}static create(e,t,n,r,i,o=!1,a=ba.a){const s=new _a(e,t,n,r,i,o,a);return Me.a.range(s.cores).forEach(e=>s.initWorker(e)),s}initWorker(e){this.workers[e]=new this.WorkerCtor,this.workers[e].onmessage=e=>{const[t,n]=JSON.parse(e.data),r=this.chunkLocationToKey(t.chunkFootprint,n);this.exploringChunk[r].planetLocations.push(...t.planetLocations),this.minersComplete[r]+=1,this.minersComplete[r]===this.workers.length&&this.onDiscovered(this.exploringChunk[r],n)}}async onDiscovered(e,t){const n=e.chunkFootprint,r=this.chunkLocationToKey(n,t),i=Date.now()-this.exploringChunkStart[r];this.emit("DiscoveredNewChunk",e,i),delete this.exploringChunk[r],delete this.minersComplete[r],delete this.exploringChunkStart[r],this.isExploring&&this.currentJobId===t&&this.exploreNext(n,t)}exploreNext(e,t){this.nextValidExploreTarget(e,t).then(e=>{if(e){const n=this.chunkLocationToKey(e,t),r={x:e.bottomLeft.x+e.sideLength/2,y:e.bottomLeft.y+e.sideLength/2},i=Object(rt.perlin)(r,this.perlinOptions);this.exploringChunk[n]={chunkFootprint:e,planetLocations:[],perlin:i},this.exploringChunkStart[n]=Date.now(),this.minersComplete[n]=0,this.sendMessageToWorkers(e,t)}})}setCores(e){const t=this.isMining();this.stopExplore(),this.workers.map(e=>e.terminate()),this.workers=[],this.useMockHash?this.cores=1:this.cores=e,Me.a.range(this.cores).forEac
819h(e=>this.initWorker(e)),t&&this.startExplore()}startExplore(){if(!this.isExploring){this.isExploring=!0,this.currentJobId+=1;const e=this.currentJobId;this.exploreNext(this.miningPattern.fromChunk,e)}}stopExplore(){this.isExploring=!1}isMining(){return this.isExploring}getCurrentlyExploringChunk(){if(this.isExploring)for(const e in this.exploringChunk){const t=this.chunkKeyToLocation(e);if(t){const[e,n]=t;if(n===this.currentJobId)return e}}}setRadius(e){this.worldRadius=e}async nextValidExploreTarget(e,t){let n=e,r=1e4;for(;!this.isValidExploreTarget(n)&&r>0;)n=this.miningPattern.nextChunk(n),r-=1;if(this.isExploring||t===this.currentJobId)return this.isValidExploreTarget(n)?n:new Promise(e=>{setTimeout(async()=>{const r=await this.nextValidExploreTarget(n,t);e(r)},0)})}isValidExploreTarget(e){const{bottomLeft:t,sideLength:n}=e,r=t.x+n/2,i=t.y+n/2;return(Math.abs(r)-n/2)**2+(Math.abs(i)-n/2)**2<this.worldRadius**2&&!this.minedChunksStore.hasMinedChunk(e)}sendMessageToWorkers(e,t){for(let n=0;n<this.workers.length;n+=1){const r={chunkFootprint:e,workerIndex:n,totalWorkers:this.workers.length,planetRarity:this.planetRarity,jobId:t,useMockHash:this.useMockHash,...this.hashConfig};this.workers[n].postMessage(JSON.stringify(r))}}chunkLocationToKey(e,t){return`${e.bottomLeft.x},${e.bottomLeft.y},${e.sideLength},${t}`}chunkKeyToLocation(e){try{const[t,n,r,i]=e.split(",").map(e=>parseInt(e));return[{bottomLeft:{x:t,y:n},sideLength:r},i]}catch(e){return void console.error("error while deserializing miner chunk key: "+e)}}}var Aa=_a;class Ca{constructor(e,t){this.type=2;const n={x:Math.floor(e.x/t)*t,y:Math.floor(e.y/t)*t};this.fromChunk={bottomLeft:n,sideLength:t},this.chunkSideLength=t}nextChunk(e){const t=this.fromChunk.bottomLeft.x,n=this.fromChunk.bottomLeft.y,r=e.bottomLeft.x,i=e.bottomLeft.y,o={x:r,y:i};return r===t&&i===n?o.y=n+this.chunkSideLength:i-r>n-t&&i+r>=t+n?i+r===t+n?o.y=i+this.chunkSideLength:o.x=r+this.chunkSideLength:r+i>t+n&&i-r<=n-t?o.y=i-this.chunkSideLength:r+i<=t+n&&i-r<n-t?o.x=r-this.chunkSideLength:o.y=i+this.chunkSideLength,{bottomLeft:o,sideLength:this.chunkSideLength}}}class Ta{constructor(e,t){this.type=6;const n={x:Math.floor(e.x/t)*t,y:Math.floor(e.y/t)*t};this.fromChunk={bottomLeft:n,sideLength:t},this.chunkSideLength=t}nextChunk(e){const t=this.fromChunk.bottomLeft.x,n=this.fromChunk.bottomLeft.y,r=e.bottomLeft.x,i=e.bottomLeft.y,o={x:r,y:i};return r===t&&i===n?o.y=n+2*this.chunkSideLength:i-r>n-t&&i+r>=t+n?i+r===t+n?o.y=i+2*this.chunkSideLength:o.x=r+2*this.chunkSideLength:r+i>t+n&&i-r<=n-t?o.y=i-2*this.chunkSideLength:r+i<=t+n&&i-r<n-t?o.x=r-2*this.chunkSideLength:o.y=i+2*this.chunkSideLength,{bottomLeft:o,sideLength:this.chunkSideLength}}}class Pa{constructor(e,t){this.type=7,this.maxWidth=1600;const n=Math.floor(e.x/t)*t,r=Math.floor(e.y/t)*t,i={x:n,y:r};this.fromChunk={bottomLeft:i,sideLength:t},this.tipX=n<0?n+t:n-t,this.tipY=r<0?r+t:r-t,this.chunkSideLength=t}nextChunk(e){const t=this.fromChunk.bottomLeft.x,n=this.fromChunk.bottomLeft.y,r=e.bottomLeft.x,i=e.bottomLeft.y,o=Math.abs(t),a=Math.abs(n),s=Math.abs(this.tipX),l=Math.abs(this.tipY),c=Math.abs(r),u=Math.abs(i),f=r<=0?Math.max(t,this.tipX-this.maxWidth):Math.min(t,this.tipX+this.maxWidth),d={x:r,y:i};return r===t&&i===n?(d.x=this.tipX,d.y=this.tipY):r===this.tipX&&i===this.tipY||c<o&&i===this.tipY&&c-s<this.maxWidth?d.x=r<0?r-this.chunkSideLength:r>0?r+this.chunkSideLength:t<0?r-this.chunkSideLength:r+this.chunkSideLength:r===f&&i===this.tipY?(d.x=this.tipX,d.y=i<0?i-this.chunkSideLength:i>0?i+this.chunkSideLength:n<0?i-this.chunkSideLength:i+this.chunkSideLength):r===this.tipX&&u<a&&u-l<this.maxWidth?d.y=i<0?i-this.chunkSideLength:i>0?i+this.chunkSideLength:n<0?i-this.chunkSideLength:i+this.chunkSideLength:(this.tipX<0?this.tipX+=this.chunkSideLength:this.tipX>0?this.tipX-=this.chunkSideLength:this.tipX=0,this.tipY<0?this.tipY+=this.chunkSideLength:this.tipY>0?this.tipY-=this.chunkSideLength:this.tipY=0,d.x=this.tipX,d.y=this.tipY),{bottomLeft:d,sideLength:this.chunkSideLength}}}class Oa{constructor(e,t){this.type=8;const n=Math.floor(e.x/t)*t,r=Math.floor(e.y/t)*t,i={x:n,y:r};this.fromChunk={bottomLeft:i,sideLength:t},this.chunkSideLength=t,this.rowRadius=5,this.yDominant=Math.abs(r)>Math.abs(n),this.slopeToCenter=0===n?1:r/n}toChunk(e){return Math.floor(e/this.chunkSideLength)*this.chunkSideLength}nextChunk(e){const t=this.fromChunk.bottomLeft.x,n=this.fromChunk.bottomLeft.y,r=e.bottomLeft.x,i=e.bottomLeft.y;if(this.yDominant){const e=Math.floor(t+(i-n)/this.slopeToCenter);if(r<e+this.chunkSideLength*(this.rowRadius-1))return{bottomLeft:{x:r+this.chunkSideLength,y:i},sideLength:this.chunkSideLength};{const t=Math.floor(e+this.chunkSideLength/this.slopeToCenter);return{bottomLeft:{x:this.toChunk(t-(this.rowRadius-1)*this.chunkSideLength),y:i<0?i+this.chunkSideLength:i-this.chunkSideLength},sideLength:this.chunkSideLength}}}const o=Math.floor(n+(r-t)*this.slopeToCenter);if(i<o+this.chunkSideLength*(this.rowRadius-1))return{bottomLeft:{x:r,y:i+this.chunkSideLength},sideLength:this.chunkSideLength};{const e=Math.floor(o+this.chunkSideLength*this.slopeToCenter);return{bottomLeft:{x:r<0?r+this.chunkSideLength:r-this.chunkSideLength,y:this.toChunk(e-(this.rowRadius-1)*this.chunkSideLength)},sideLength:this.chunkSideLength}}}}let Ma,Ia;const Ra=new WeakMap,La=new WeakMap,Na=new WeakMap,ja=new WeakMap,Ba=new WeakMap;let Fa={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return La.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Na.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Ua(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Da(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Ia||(Ia=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply($a(this),t),Ua(Ra.get(this))}:function(...t){return Ua(e.apply($a(this),t))}:function(t,...n){const r=e.call($a(this),t,...n);return Na.set(r,t.sort?t.sort():[t]),Ua(r)}}function za(e){return"function"==typeof e?Da(e):(e instanceof IDBTransaction&&function(e){if(La.has(e))return;const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});La.set(e,t)}(e),t=e,(Ma||(Ma=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(e=>t instanceof e)?new Proxy(e,Fa):e);var t}function Ua(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(Ua(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(t=>{t instanceof IDBCursor&&Ra.set(t,e)}).catch(()=>{}),Ba.set(t,e),t}(e);if(ja.has(e))return ja.get(e);const t=za(e);return t!==e&&(ja.set(e,t),Ba.set(t,e)),t}const $a=e=>Ba.get(e);const Ha=["get","getKey","getAll","getAllKeys","count"],Ja=["put","add","delete","clear"],Ga=new Map;function Va(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Ga.get(t))return Ga.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=Ja.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Ha.includes(n))return;const o=async function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let a=o.store;r&&(a=a.index(t.shift()));const s=await a[n](...t);return i&&await o.done,s};return Ga.set(t,o),o}Fa=(e=>({...e,get:(t,n,r)=>
819Va(t,n)||e.get(t,n,r),has:(t,n)=>!!Va(t,n)||e.has(t,n)}))(Fa);class Xa{constructor(e,t){this.nUpdatesLastTwoMins=0,this.db=e,this.queuedChunkWrites=[],this.confirmedTxHashes=new Set,this.throttledSaveChunkCacheToDisk=Me.a.throttle(this.persistQueuedChunks,2e3),this.chunkMap=new Map,this.account=t}destroy(){}static async create(e){const t=await function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(e,t),s=Ua(a);return r&&a.addEventListener("upgradeneeded",e=>{r(Ua(a.result),e.oldVersion,e.newVersion,Ua(a.transaction))}),n&&a.addEventListener("blocked",()=>n()),s.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",()=>i())}).catch(()=>{}),s}(`darkforest-${Ht.CORE_CONTRACT_ADDRESS}-${e}`,1,{upgrade(e){e.createObjectStore("default"),e.createObjectStore("knownBoard"),e.createObjectStore("unminedEthTxs"),e.createObjectStore("plugins")}}),n=new Xa(t,e);return await n.loadChunks(),n}setDiagnosticUpdater(e){this.diagnosticUpdater=e}async getKey(e,t="default"){return await this.db.get(t,`${Ht.CORE_CONTRACT_ADDRESS}-${this.account}-${e}`)}async setKey(e,t,n="default"){await this.db.put(n,t,`${Ht.CORE_CONTRACT_ADDRESS}-${this.account}-${e}`)}async removeKey(e,t="default"){await this.db.delete(t,`${Ht.CORE_CONTRACT_ADDRESS}-${this.account}-${e}`)}async bulkSetKeyInCollection(e,t){const n=this.db.transaction(t,"readwrite");e.forEach(e=>{e.forEach(({type:e,dbKey:t,dbValue:r})=>{0===e?n.store.put(function(e){const t=e.planetLocations.map(e=>({x:e.coords.x,y:e.coords.y,h:e.hash,p:e.perlin,b:e.biomebase}));return{x:e.chunkFootprint.bottomLeft.x,y:e.chunkFootprint.bottomLeft.y,s:e.chunkFootprint.sideLength,l:t,p:e.perlin}}(r),t):1===e&&n.store.delete(t)})}),await n.done}async loadChunks(){const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ~";let t=0;for(let n=0;n<e.length-1;n+=1){const r=await this.db.getAll("knownBoard",IDBKeyRange.bound(e[n],e[n+1],!1,!0));r.forEach(e=>{this.addChunk(Ea(e),!1)}),t+=r.length}console.log(`loaded ${t} chunks from local storage`)}async persistQueuedChunks(){const e=[...this.queuedChunkWrites];this.queuedChunkWrites=[],this.diagnosticUpdater&&this.diagnosticUpdater.updateDiagnostics(e=>{e.chunkUpdates=0}),await this.bulkSetKeyInCollection(e,"knownBoard")}async getHomeLocations(){const e=await this.getKey("homeLocations");let t=[];return e&&(t=JSON.parse(e)),t}async addHomeLocation(e){let t=await this.getHomeLocations();t?t.push(e):t=[e],t=Array.from(new Set(t)),await this.setKey("homeLocations",ua()(t))}async confirmHomeLocation(e){await this.setKey("homeLocations",ua()([e]))}async getSavedTouchedPlanetIds(){const e=await this.getKey("touchedPlanetIds");if(e){return JSON.parse(e)}return[]}async getSavedRevealedCoords(){const e=await this.getKey("revealedPlanetIds");if(e){const t=JSON.parse(e);return 0!==t.length&&t[0].revealer?t:[]}return[]}async getSavedClaimedCoords(){const e=await this.getKey("claimedPlanetIds");if(e){const t=JSON.parse(e);return 0!==t.length&&t[0].revealer?t:[]}return[]}async saveTouchedPlanetIds(e){await this.setKey("touchedPlanetIds",ua()(e))}async saveRevealedCoords(e){await this.setKey("revealedPlanetIds",ua()(e))}async saveClaimedCoords(e){await this.setKey("claimedPlanetIds",ua()(e))}getChunkByFootprint(e){let t=e.sideLength;for(;t<=16384;){const n=xa(e.bottomLeft,t),r=this.getChunkById(wa(n));if(r)return r;t*=2}}hasMinedChunk(e){return!!this.getChunkByFootprint(e)}getChunkById(e){return this.chunkMap.get(e)}addChunk(e,t=!0){var n;if(this.hasMinedChunk(e.chunkFootprint))return;const r=[];if(t){const t=this.getMinedSubChunks(e);for(const e of t)r.push({type:1,dbKey:wa(e.chunkFootprint)})}!function(e,t,n,r,i){let o=t.chunkFootprint.sideLength,a={chunkFootprint:{bottomLeft:t.chunkFootprint.bottomLeft,sideLength:o},planetLocations:[...t.planetLocations],perlin:t.perlin};for(;!i||o<i;){const t=ka(a.chunkFootprint);let n=!0;for(const r of t)if(!e.get(wa(r))){n=!1;break}if(!n)break;o*=2;let i=a.planetLocations,s=a.perlin/4;for(const n of t){const t=wa(n),o=e.get(t);void 0!==r&&o?r(o):e.delete(t),o&&(i=i.concat(o.planetLocations),s+=o.perlin/4)}a={chunkFootprint:xa(a.chunkFootprint.bottomLeft,o),planetLocations:i,perlin:Math.floor(1e3*s)/1e3}}void 0!==n?n(a):e.set(wa(a.chunkFootprint),a)}(this.chunkMap,e,e=>{r.push({type:0,dbKey:wa(e.chunkFootprint),dbValue:e})},e=>{r.push({type:1,dbKey:wa(e.chunkFootprint)})},16384);for(const e of r)0===e.type&&e.dbValue?this.chunkMap.set(e.dbKey,e.dbValue):1===e.type&&this.chunkMap.delete(e.dbKey);null===(n=this.diagnosticUpdater)||void 0===n||n.updateDiagnostics(e=>{e.totalChunks=this.chunkMap.size}),t&&(this.queuedChunkWrites.push(r),this.diagnosticUpdater&&this.diagnosticUpdater.updateDiagnostics(e=>
819{e.chunkUpdates=this.queuedChunkWrites.length}),this.recomputeSaveThrottleAfterUpdate(),this.throttledSaveChunkCacheToDisk())}getMinedSubChunks(e){const t=[];for(let n=16;n<e.chunkFootprint.sideLength;n*=2)for(let r=0;r<e.chunkFootprint.sideLength;r+=n)for(let i=0;i<e.chunkFootprint.sideLength;i+=n){const o=wa({bottomLeft:{x:e.chunkFootprint.bottomLeft.x+r,y:e.chunkFootprint.bottomLeft.y+i},sideLength:n}),a=this.getChunkById(o);a&&t.push(a)}return t}recomputeSaveThrottleAfterUpdate(){this.nUpdatesLastTwoMins+=1,50===this.nUpdatesLastTwoMins&&(this.throttledSaveChunkCacheToDisk.cancel(),this.throttledSaveChunkCacheToDisk=Me.a.throttle(this.persistQueuedChunks,3e4)),setTimeout(()=>{this.nUpdatesLastTwoMins-=1,49===this.nUpdatesLastTwoMins&&(this.throttledSaveChunkCacheToDisk.cancel(),this.throttledSaveChunkCacheToDisk=Me.a.throttle(this.persistQueuedChunks,5e3))},12e4)}allChunks(){return this.chunkMap.values()}async onEthTxSubmit(e){if(this.confirmedTxHashes.has(e.txHash))return Promise.resolve();await this.db.put("unminedEthTxs",e,e.txHash)}async onEthTxComplete(e){this.confirmedTxHashes.add(e),await this.db.delete("unminedEthTxs",e)}async getUnconfirmedSubmittedEthTxs(){return await this.db.getAll("unminedEthTxs")}async loadPlugins(){const e=await this.getKey("plugins","plugins");return e?JSON.parse(e):[]}async savePlugins(e){this.setKey("plugins",JSON.stringify(e),"plugins")}}var Wa=Xa,qa={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Ka={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Za=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Ya={CSS:{},springs:{}};function Qa(e,t,n){return Math.min(Math.max(e,t),n)}function es(e,t){return e.indexOf(t)>-1}function ts(e,t){return e.apply(null,t)}var ns={arr:function(e){return Array.isArray(e)},obj:function(e){return es(Object.prototype.toString.call(e),"Object")},pth:function(e){return ns.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||ns.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return ns.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return ns.hex(e)||ns.rgb(e)||ns.hsl(e)},key:function(e){return!qa.hasOwnProperty(e)&&!Ka.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function rs(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function is(e,t){var n=rs(e),r=Qa(ns.und(n[0])?1:n[0],.1,100),i=Qa(ns.und(n[1])?100:n[1],.1,100),o=Qa(ns.und(n[2])?10:n[2],.1,100),a=Qa(ns.und(n[3])?0:n[3],.1,100),s=Math.sqrt(i/r),l=o/(2*Math.sqrt(i*r)),c=l<1?s*Math.sqrt(1-l*l):0,u=l<1?(l*s-a)/c:-a+s;function f(e){var n=t?t*e/1e3:e;return n=l<1?Math.exp(-n*l*s)*(1*Math.cos(c*n)+u*Math.sin(c*n)):(1+u*n)*Math.exp(-n*s),0===e||1===e?e:1-n}return t?f:function(){var t=Ya.springs[e];if(t)return t;for(var n=0,r=0;;)if(1===f(n+=1/6)){if(++r>=16)break}else r=0;var i=n*(1/6)*1e3;return Ya.springs[e]=i,i}}function os(e){return void 0===e&&(e=10),function(t){return Math.ceil(Qa(t,1e-6,1)*e)*(1/e)}}var as,ss,ls=function(){function e(e,t){return 1-3*t+3*e}function t(e,t){return 3*t-6*e}function n(e){return 3*e}function r(r,i,o){return((e(i,o)*r+t(i,o))*r+n(i))*r}function i(r,i,o){return 3*e(i,o)*r*r+2*t(i,o)*r+n(i)}return function(e,t,n,o){if(0<=e&&e<=1&&0<=n&&n<=1){var a=new Float32Array(11);if(e!==t||n!==o)for(var s=0;s<11;++s)a[s]=r(.1*s,e,n);return function(i){return e===t&&n===o||0===i||1===i?i:r(l(i),t,o)}}function l(t){for(var o=0,s=1;10!==s&&a[s]<=t;++s)o+=.1;--s;var l=o+.1*((t-a[s])/(a[s+1]-a[s])),c=i(l,e,n);return c>=.001?function(e,t,n,o){for(var a=0;a<4;++a){var s=i(t,n,o);if(0===s)return t;t-=(r(t,n,o)-e)/s}return t}(t,l,e,n):0===c?l:function(e,t,n,i,o){var a,s,l=0;do{(a=r(s=t+(n-t)/2,i,o)-e)>0?n=s:t=s}while(Math.abs(a)>1e-7&&++l<10);return s}(t,o,o+.1,e,n)}}}(),cs=(as={linear:function(){return function(e){return e}}},ss={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=Qa(e,1,10),r=Qa(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(e,t){ss[e]=function(){return function(e){return Math.pow(e,t+2)}}}
vendor: 4,343 bytes, line 819
819)),Object.keys(ss).forEach((function(e){var t=ss[e];as["easeIn"+e]=t,as["easeOut"+e]=function(e,n){return function(r){return 1-t(e,n)(1-r)}},as["easeInOut"+e]=function(e,n){return function(r){return r<.5?t(e,n)(2*r)/2:1-t(e,n)(-2*r+2)/2}},as["easeOutIn"+e]=function(e,n){return function(r){return r<.5?(1-t(e,n)(1-2*r))/2:(t(e,n)(2*r-1)+1)/2}}})),as);function us(e,t){if(ns.fnc(e))return e;var n=e.split("(")[0],r=cs[n],i=rs(e);switch(n){case"spring":return is(e,t);case"cubicBezier":return ts(ls,i);case"steps":return ts(os,i);default:return ts(r,i)}}function fs(e){try{return document.querySelectorAll(e)}catch(e){return}}function ds(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,i=[],o=0;o<n;o++)if(o in e){var a=e[o];t.call(r,a,o,e)&&i.push(a)}return i}function hs(e){return e.reduce((function(e,t){return e.concat(ns.arr(t)?hs(t):t)}),[])}function ps(e){return ns.arr(e)?e:(ns.str(e)&&(e=fs(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function ms(e,t){return e.some((function(e){return e===t}))}function gs(e){var t={};for(var n in e)t[n]=e[n];return t}function vs(e,t){var n=gs(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function ys(e,t){var n=gs(e);for(var r in t)n[r]=ns.und(e[r])?t[r]:e[r];return n}function bs(e){return ns.rgb(e)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+n[1]+",1)":t:ns.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+",1)"}(e):ns.hsl(e)?function(e){var t,n,r,i=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),o=parseInt(i[1],10)/360,a=parseInt(i[2],10)/100,s=parseInt(i[3],10)/100,l=i[4]||1;function c(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==a)t=n=r=s;else{var u=s<.5?s*(1+a):s+a-s*a,f=2*s-u;t=c(f,u,o+1/3),n=c(f,u,o),r=c(f,u,o-1/3)}return"rgba("+255*t+","+255*n+","+255*r+","+l+")"}(e):void 0;var t,n}function ws(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function Es(e,t){return ns.fnc(e)?e(t.target,t.id,t.total):e}function ks(e,t){return e.getAttribute(t)}function xs(e,t,n){if(ms([n,"deg","rad","turn"],ws(t)))return t;var r=Ya.CSS[t+n];if(!ns.und(r))return r;var i=document.createElement(e.tagName),o=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;o.appendChild(i),i.style.position="absolute",i.style.width=100+n;var a=100/i.offsetWidth;o.removeChild(i);var s=a*parseFloat(t);return Ya.CSS[t+n]=s,s}function Ss(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?xs(e,i,n):i}}function _s(e,t){return ns.dom(e)&&!ns.inp(e)&&(!ns.nil(ks(e,t))||ns.svg(e)&&e[t])?"attribute":ns.dom(e)&&ms(Za,t)?"transform":ns.dom(e)&&"transform"!==t&&Ss(e,t)?"css":null!=e[t]?"object":void 0}function As(e){if(ns.dom(e)){for(var t,n=e.style.transform||"",r=/(\w+)\(([^)]*)\)/g,i=new Map;t=r.exec(n);)i.set(t[1],t[2]);return i}}function Cs(e,t,n,r){var i=es(t,"scale")?1:0+function(e){return es(e,"translate")||"perspective"===e?"px":es(e,"rotate")||es(e,"skew")?"deg":void 0}(t),o=As(e).get(t)||i;return n&&(n.transforms.list.set(t,o),n.transforms.last=t),r?xs(e,o,r):o}function Ts(e,t,n,r){switch(_s(e,t)){case"transform":return Cs(e,t,r,n);case"css":return Ss(e,t,n);case"attribute":return ks(e,t);default:return e[t]||0}}function Ps(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=ws(e)||0,i=parseFloat(t),o=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return i+o+r;case"-":return i-o+r;case"*":return i*o+r}}function Os(e,t){if(ns.col(e))return bs(e);if(/\s/g.test(e))return e;var n=ws(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function Ms(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Is(e){for(var t,n=e.points,r=0,i=0;i<n.numberOfItems;i++){var o=n.getItem(i);i>0&&(r+=Ms(t,o)),t=o}return r}function Rs(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*ks(e,"r")}(e);
vendor: 8,270 bytes, line 819
819case"rect":return function(e){return 2*ks(e,"width")+2*ks(e,"height")}(e);case"line":return function(e){return Ms({x:ks(e,"x1"),y:ks(e,"y1")},{x:ks(e,"x2"),y:ks(e,"y2")})}(e);case"polyline":return Is(e);case"polygon":return function(e){var t=e.points;return Is(e)+Ms(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function Ls(e,t){var n=t||{},r=n.el||function(e){for(var t=e.parentNode;ns.svg(t)&&ns.svg(t.parentNode);)t=t.parentNode;return t}(e),i=r.getBoundingClientRect(),o=ks(r,"viewBox"),a=i.width,s=i.height,l=n.viewBox||(o?o.split(" "):[0,0,a,s]);return{el:r,viewBox:l,x:l[0]/1,y:l[1]/1,w:a,h:s,vW:l[2],vH:l[3]}}function Ns(e,t,n){function r(n){void 0===n&&(n=0);var r=t+n>=1?t+n:0;return e.el.getPointAtLength(r)}var i=Ls(e.el,e.svg),o=r(),a=r(-1),s=r(1),l=n?1:i.w/i.vW,c=n?1:i.h/i.vH;switch(e.property){case"x":return(o.x-i.x)*l;case"y":return(o.y-i.y)*c;case"angle":return 180*Math.atan2(s.y-a.y,s.x-a.x)/Math.PI}}function js(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=Os(ns.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:ns.str(e)||t?r.split(n):[]}}function Bs(e){return ds(e?hs(ns.arr(e)?e.map(ps):ps(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function Fs(e){var t=Bs(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:As(e)}}}))}function Ds(e,t){var n=gs(t);if(/^spring/.test(n.easing)&&(n.duration=is(n.easing)),ns.arr(e)){var r=e.length;2===r&&!ns.obj(e[0])?e={value:e}:ns.fnc(t.duration)||(n.duration=t.duration/r)}var i=ns.arr(e)?e:[e];return i.map((function(e,n){var r=ns.obj(e)&&!ns.pth(e)?e:{value:e};return ns.und(r.delay)&&(r.delay=n?0:t.delay),ns.und(r.endDelay)&&(r.endDelay=n===i.length-1?t.endDelay:0),r})).map((function(e){return ys(e,n)}))}function zs(e,t){var n=[],r=t.keyframes;for(var i in r&&(t=ys(function(e){for(var t=ds(hs(e.map((function(e){return Object.keys(e)}))),(function(e){return ns.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},r=function(r){var i=t[r];n[i]=e.map((function(e){var t={};for(var n in e)ns.key(n)?n==i&&(t.value=e[n]):t[n]=e[n];return t}))},i=0;i<t.length;i++)r(i);return n}(r),t)),t)ns.key(i)&&n.push({name:i,tweens:Ds(t[i],e)});return n}function Us(e,t){var n;return e.tweens.map((function(r){var i=function(e,t){var n={};for(var r in e){var i=Es(e[r],t);ns.arr(i)&&1===(i=i.map((function(e){return Es(e,t)}))).length&&(i=i[0]),n[r]=i}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(r,t),o=i.value,a=ns.arr(o)?o[1]:o,s=ws(a),l=Ts(t.target,e.name,s,t),c=n?n.to.original:l,u=ns.arr(o)?o[0]:c,f=ws(u)||ws(l),d=s||f;return ns.und(a)&&(a=c),i.from=js(u,d),i.to=js(Ps(a,u),d),i.start=n?n.end:0,i.end=i.start+i.delay+i.duration+i.endDelay,i.easing=us(i.easing,i.duration),i.isPath=ns.pth(o),i.isPathTargetInsideSVG=i.isPath&&ns.svg(t.target),i.isColor=ns.col(i.from.original),i.isColor&&(i.round=1),n=i,i}))}var $s={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,i){if(r.list.set(t,n),t===r.last||i){var o="";r.list.forEach((function(e,t){o+=t+"("+e+") "})),e.style.transform=o}}};function Hs(e,t){Fs(e).forEach((function(e){for(var n in t){var r=Es(t[n],e),i=e.target,o=ws(r),a=Ts(i,n,o,e),s=Ps(Os(r,o||ws(a)),a),l=_s(i,n);$s[l](i,n,s,e.transforms,!0)}}))}function Js(e,t){return ds(hs(e.map((function(e){return t.map((function(t){return function(e,t){var n=_s(e.target,t.name);if(n){var r=Us(t,e),i=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:i.end,delay:r[0].delay,endDelay:i.endDelay}}}(e,t)}))}))),(function(e){return!ns.und(e)}))}function Gs(e,t){var n=e.length,r=function(e){return e.timelineOffset?e.timelineOffset:0},i={};return i.duration=n?Math.max.apply(Math,e.map((function(e){return r(e)+e.duration}))):t.duration,i.delay=n?Math.min.apply(Math,e.map((function(e){return r(e)+e.delay}))):t.delay,i.endDelay=n?i.duration-Math.max.apply(Math,e.map((function(e){return r(e)+e.duration-e.endDelay}))):t.endDelay,i}var Vs=0;var Xs=[],Ws=function(){var e;function t(n){for(var r=Xs.length,i=0;i<r;){var o=Xs[i];o.paused?(Xs.splice(i,1),r--):(o.tick(n),i++)}e=i>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){Ks.suspendWhenDocumentHidden&&(qs()?e=cancelAnimationFrame(e):(Xs.forEach((function(e){return e._onDocumentVisibility()})),Ws()))})),function(){e||qs()&&Ks.suspendWhenDocumentHidden||!(Xs.length>0)||(e=requestAnimationFrame(t))}}();function qs(){return!!document&&document.hidden}function Ks(e){void 0===e&&(e={});var t,n=0,r=0,i=0,o=0,a=null;function s(e){var t=window.Promise&&new Promise((function(e){return a=e}));return e.finished=t,t}var l=function(e){var t=vs(qa,e),n=vs(Ka,e),r=zs(n,e),i=Fs(e.targets),o=Js(i,r),a=Gs(o,n),s=Vs;return Vs++,ys(t,{id:s,children:[],animatables:i,animations:o,duration:a.duration,delay:a.delay,endDelay:a.endDelay})}(e);s(l);function c(){var e=l.direction;"alternate"!==e&&(l.direction="normal"!==e?"normal":"reverse"),l.reversed=!l.reversed,t.forEach((function(e){return e.reversed=l.reversed}))}function u(e){return l.reversed?l.duration-e:e}function f(){n=0,r=u(l.currentTime)*(1/Ks.speed)}function d(e,t){t&&t.seek(e-t.timelineOffset)}function h(e){for(var t=0,n=l.animations,r=n.length;t<r;){var i=n[t],o=i.animatable,a=i.tweens,s=a.length-1,c=a[s];s&&(c=ds(a,(function(t){return e<t.end}))[0]||c);for(var u=Qa(e-c.start-c.delay,0,c.duration)/c.duration,f=isNaN(u)?1:c.easing(u),d=c.to.strings,h=c.round,p=[],m=c.to.numbers.length,g=void 0,v=0;v<m;v++){var y=void 0,b=c.to.numbers[v],w=c.from.numbers[v]||0;y=c.isPath?Ns(c.value,f*b,c.isPathTargetInsideSVG):w+f*(b-w),h&&(c.isColor&&v>2||(y=Math.round(y*h)/h)),p.push(y)}var E=d.length;if(E){g=d[0];for(var k=0;k<E;k++){d[k];var x=d[k+1],S=p[k];isNaN(S)||(g+=x?S+x:S+" ")}}else g=p[0];$s[i.type](o.target,i.property,g,o.transforms),i.currentValue=g,t++}}function p(e){l[e]&&!l.passThrough&&l[e](l)}function m(e){var f=l.duration,m=l.delay,g=f-l.endDelay,v=u(e);l.progress=Qa(v/f*100,0,100),l.reversePlayback=v<l.currentTime,t&&function(e){if(l.reversePlayback)for(var n=o;n--;)d(e,t[n]);else for(var r=0;r<o;r++)d(e,t[r])}(v),!l.began&&l.currentTime>0&&(l.began=!0,p("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,p("loopBegin")),v<=m&&0!==l.currentTime&&h(0),(v>=g&&l.currentTime!==f||!f)&&h(f),v>m&&v<g?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,p("changeBegin")),p("change"),h(v)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,p("changeComplete")),l.currentTime=Qa(v,0,f),l.began&&p("update"),e>=f&&(r=0,l.remaining&&!0!==l.remaining&&l.remaining--,l.remaining?(n=i,p("loopComplete"),l.loopBegan=!1,"alternate"===l.direction&&c()):(l.paused=!0,l.completed||(l.completed=!0,p("loopComplete"),p("complete"),!l.passThrough&&"Promise"in window&&(a(),s(l)))))}return l.reset=function(){var e=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed="reverse"===e,l.remaining=l.loop,t=l.children;for(var n=o=t.length;n--;)l.children[n].reset();(l.reversed&&!0!==l.loop||"alternate"===e&&1===l.loop)&&l.remaining++,h(l.reversed?l.duration:0)},l._onDocumentVisibility=f,l.set=function(e,t){return Hs(e,t),l},l.tick=function(e){i=e,n||(n=i),m((i+(r-n))*Ks.speed)},l.seek=function(e){m(u(e))},l.pause=function(){l.paused=!0,f()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,Xs.push(l),f(),Ws())},l.reverse=function(){c(),l.completed=!l.reversed,f()},l.restart=function(){l.reset(),l.play()},l.remove=function(e){Ys(Bs(e),l)},l.reset(),l.autoplay&&l.play(),l}function Zs(e,t){for(var n=t.length;n--;)ms(e,t[n].animatable.target)&&t.splice(n,1)}function Ys(e,t){var n=t.animations,r=t.children;Zs(e,n);for(var i=r.length;i--;){var o=r[i],a=o.animations;Zs(e,a),a.length||o.children.length||r.splice(i,1)}n.length||r.length||t.pause()}Ks.version="3.2.1",Ks.speed=1,Ks.suspendWhenDocumentHidden=!0,Ks.running=Xs,Ks.remove=function(e){for(var t=Bs(e),n=Xs.length;n--;){Ys(t,Xs[n])}},Ks.get=Ts,Ks.set=Hs,Ks.convertPx=xs,Ks.path=function(e,t){var n=ns.str(e)?f
819s(e)[0]:e,r=t||100;return function(e){return{property:e,el:n,svg:Ls(n),totalLength:Rs(n)*(r/100)}}},Ks.setDashoffset=function(e){var t=Rs(e);return e.setAttribute("stroke-dasharray",t),t},Ks.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",r=t.easing?us(t.easing):null,i=t.grid,o=t.axis,a=t.from||0,s="first"===a,l="center"===a,c="last"===a,u=ns.arr(e),f=u?parseFloat(e[0]):parseFloat(e),d=u?parseFloat(e[1]):0,h=ws(u?e[1]:e)||0,p=t.start||0+(u?f:0),m=[],g=0;return function(e,t,v){if(s&&(a=0),l&&(a=(v-1)/2),c&&(a=v-1),!m.length){for(var y=0;y<v;y++){if(i){var b=l?(i[0]-1)/2:a%i[0],w=l?(i[1]-1)/2:Math.floor(a/i[0]),E=b-y%i[0],k=w-Math.floor(y/i[0]),x=Math.sqrt(E*E+k*k);"x"===o&&(x=-E),"y"===o&&(x=-k),m.push(x)}else m.push(Math.abs(a-y));g=Math.max.apply(Math,m)}r&&(m=m.map((function(e){return r(e/g)*g}))),"reverse"===n&&(m=m.map((function(e){return o?e<0?-1*e:-e:Math.abs(g-e)})))}return p+(u?(d-f)/g:f)*(Math.round(100*m[t])/100)+h}},Ks.timeline=function(e){void 0===e&&(e={});var t=Ks(e);return t.duration=0,t.add=function(n,r){var i=Xs.indexOf(t),o=t.children;function a(e){e.passThrough=!0}i>-1&&Xs.splice(i,1);for(var s=0;s<o.length;s++)a(o[s]);var l=ys(n,vs(Ka,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=ns.und(r)?c:Ps(r,c),a(t),t.seek(l.timelineOffset);var u=Ks(l);a(u),o.push(u);var f=Gs(o,e);return t.delay=f.delay,t.endDelay=f.endDelay,t.duration=f.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},Ks.easing=us,Ks.penner=cs,Ks.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};var Qs=Ks;var el=n(51),tl=n(100),nl=n(101),rl=n(96),il=n(97),ol=n(98),al=n(99),sl=n(94),ll=n(95),cl=n(146),ul=n.n(cl),fl=n(103);class dl{constructor(){this.taskQueue=ul()(this.execute.bind(this),1),this.taskCount=0}doProof(e,t,n){const r={input:e,circuit:t,zkey:n,taskId:this.taskCount++};return new Promise((e,t)=>{this.taskQueue.push(r,(n,r)=>{n?t(n):e(r)})})}async execute(e,t){try{console.log("proving "+e.taskId);const n=await window.snarkjs.groth16.fullProve(e.input,e.circuit,e.zkey);console.log("proved "+e.taskId),t(null,n)}catch(e){console.error("error while calculating SNARK proof:"),console.error(e),t(e,null)}}}class hl{constructor(e,t,n){this.useMockHash=n,this.terminal=t,this.snarkProverQueue=new dl,this.hashConfig=e,this.planetHashMimc=n?rt.fakeHash:Object(rt.mimcHash)(e.planetHashKey),this.spaceTypePerlinOpts={key:e.spaceTypeKey,scale:e.perlinLengthScale,mirrorX:e.perlinMirrorX,mirrorY:e.perlinMirrorY,floor:!0},this.biomebasePerlinOpts={key:e.biomebaseKey,scale:e.perlinLengthScale,mirrorX:e.perlinMirrorX,mirrorY:e.perlinMirrorY,floor:!0},this.moveSnarkCache=new fl.LRUMap(hl.DEFAULT_SNARK_CACHE_SIZE)}static create(e,t,n=!1){return new hl(e,t,n)}setSnarkCacheSize(e){if(e<=0)throw new Error("cache size has to be positive");const t=new fl.LRUMap(e),n=Array.from(this.moveSnarkCache.keys());for(let e=0;e<t.capacity&&e<this.moveSnarkCache.size;e++)t.set(n[e],this.moveSnarkCache.get(n[e]));this.moveSnarkCache.clear(),this.moveSnarkCache=t}async getRevealArgs(e,t){var n,r;try{const i=Date.now();null===(n=this.terminal.current)||void 0===n||n.println("REVEAL: calculating witness and proof",1);const o={x:Object(rt.modPBigInt)(e).toString(),y:Object(rt.modPBigInt)(t).toString(),PLANETHASH_KEY:this.hashConfig.planetHashKey.toString(),SPACETYPE_KEY:this.hashConfig.spaceTypeKey.toString(),SCALE:this.hashConfig.perlinLengthScale.toString(),xMirror:this.hashConfig.perlinMirrorX?"1":"0",yMirror:this.hashConfig.perlinMirrorY?"1":"0"},{proof:a,publicSignals:s}=this.useMockHash?this.fakeRevealProof(e,t):await this.snarkProverQueue.doProof(o,sl.default,ll.default),l=Object(el.buildContractCallArgs)(a,s),c=Date.now();return null===(r=this.terminal.current)||void 0===r||r.println(`REVEAL: calculated witness and proof in ${c-i}ms`,1),l}catch(e){throw e}}async getInitArgs(e,t,n){var r,i;try{const o=Date.now();null===(r=this.terminal.current)||void 0===r||r.println("INIT: calculating witness and proof",1);const a={x:Object(rt.modPBigInt)(e).toString(),y:Object(rt.modPBigInt)(t).toString(),r:n.toString(),PLANETHASH_KEY:this.hashConfig.planetHashKey.toString(),SPACETYPE_KEY:this.hashConfig.spaceTypeKey.toString(),SCALE:this.hashConfig.perlinLengthScale.toString(),xMirror:this.hashConfig.perlinMirrorX?"1":"0",yMirror:this.hashConfig.perlinMirrorY?"1":"0"},{proof:s,publicSignals:l}=this.useMockHash?this.fakeInitProof(e,t,n):await this.snarkProverQueue.doProof(a,rl.default,il.default),c=Object(el.buildContractCallArgs)(s,l),u=Date.now();return null===(i=this.terminal.current)||void 0===i||i.println(`INIT: calculated witness and proof in ${u-o}ms`,1),c}catch(e){throw e}}async getMoveArgs(e,t,n,r,i,o){var a,s;const l=`${e}-${t}-${n}-${r}-${i}-${o}`,c=this.moveSnarkCache.get(l);if(c)return console.log("MOVE: retrieved snark args from cache"),Promise.resolve(c);try{const c=Date.now();null===(a=this.terminal.current)||void 0===a||a.println("MOVE: calculating witness and proof",1);const u={x1:Object(rt.modPBigInt)(e).toString(),y1:Object(rt.modPBigInt)(t).toString(),x2:Object(rt.modPBigInt)(n).toString(),y2:Object(rt.modPBigInt)(r).toString(),r:i.toString(),distMax:o.toString(),PLANETHASH_KEY:this.hashConfig.planetHashKey.toString(),SPACETYPE_KEY:this.hashConfig.spaceTypeKey.toString(),SCALE:this.hashConfig.perlinLengthScale.toString(),xMirror:this.hashConfig.perlinMirrorX?"1":"0",yMirror:this.hashConfig.perlinMirrorY?"1":"0"},{proof:f,publicSignals:d}=this.useMockHash?this.fakeMoveProof(e,t,n,r,i,o):await this.snarkProverQueue.doProof(u,ol.default,al.default),h=Object(el.buildContractCallArgs)(f,d),p=Date.now();return null===(s=this.terminal.current)||void 0===s||s.println(`MOVE: calculated witness and proof in ${p-c}ms`,1),this.moveSnarkCache.set(l,h),h}catch(e){throw e}}async getFindArtifactArgs(e,t){var n,r;try{const i=Date.now();null===(n=this.terminal.current)||void 0===n||n.println("ARTIFACT: calculating witness and proof",1);const o={x:Object(rt.modPBigInt)(e).toString(),y:Object(rt.modPBigInt)(t).toString(),PLANETHASH_KEY:this.hashConfig.planetHashKey.toString(),BIOMEBASE_KEY:this.hashConfig.biomebaseKey.toString(),SCALE:this.hashConfig.perlinLengthScale.toString(),xMirror:this.hashConfig.perlinMirrorX?"1":"0",yMirror:this.hashConfig.perlinMirrorY?"1":"0"},{proof:a,publicSignals:s}=this.useMockHash?this.fakeBiomebaseProof(e,t):await this.snarkProverQueue.doProof(o,tl.default,nl.default),l=Object(el.buildContractCallArgs)(a,s),c=Date.now();return null===(r=this.terminal.current)||void 0===r||r.println(`ARTIFACT: calculated witness and proof in ${c-i}ms`,1),l}catch(e){throw e}}fakeRevealProof(e,t){const n=this.planetHashMimc(e,t),r=Object(rt.perlin)({x:e,y:t},this.spaceTypePerlinOpts),i=[n,it(r),it(e),it(t),it(this.hashConfig.planetHashKey),it(this.hashConfig.spaceTypeKey),it(this.hashConfig.perlinLengthScale),it(this.hashConfig.perlinMirrorX?1:0),it(this.hashConfig.perlinMirrorY?1:0)];return Object(el.fakeProof)(i.map(e=>Object(rt.modPBigIntNative)(e).toString(10)))}fakeInitProof(e,t,n){const r=this.planetHashMimc(e,t),i=Object(rt.perlin)({x:e,y:t},this.spaceTypePerlinOpts),o=[r,it(i),it(n),it(this.hashConfig.planetHashKey),it(this.hashConfig.spaceTypeKey),it(this.hashConfig.perlinLengthScale),it(this.hashConfig.perlinMirrorX?1:0),it(this.hashConfig.perlinMirrorY?1:0)];return Object(el.fakeProof)(o.map(e=>Object(rt.modPBigIntNative)(e).toString(10)))}fakeMoveProof(e,t,n,r,i,o){const a=this.useMockHash?Object(rt.fakeHash)(e,t):this.planetHashMimc(e,t),s=this.useMockHash?Object(rt.fakeHash)(n,r):this.planetHashMimc(n,r),l=Object(rt.perlin)({x:n,y:r},this.spaceTypePerlinOpts),c=[a,s,it(l),it(i),it(o),it(this.hashConfig.planetHashKey),it(this.hashConfig.spaceTypeKey),it(this.hashConfig.perlinLengthScale),it(this.hashConfig.perlinMirrorX?1:0),it(this.hashConfig.perlinMirrorY?1:0)];return Object(el.fakeProof)(c.map(e=>Object(rt.modPBigIntNative)(e).toString(10)))}fakeBiomebaseProof(e,t){const n=[this.planetHashMimc(e,t),it(Object(rt.perlin)({x:e,y:t},this.biomebasePerlinOpts)),it(this.hashConfig.planetHashKey),it(this.hashConfig.biomebaseKey),it(this.hashConfig.perlinLengthScale),it(this.hashConfig.perlinMirrorX?1:0),it(this.hashConfig.perlinMirrorY?1:0)];return Object(el.fakeProof)(n.map(e=>Object(rt.modPBigIntNative)(e).toString(10)))}}hl.DEFAULT_SNARK_CACHE_SIZE=20;var pl=hl;function ml(e){return"revealLocation"===e.methodName}function gl(e){return"initializePlayer"===e.methodName}function vl(e){return"move"===e.methodName}function yl(e){return"upgradePlanet"===e.methodName}function bl(e){return"buyHat"===e.methodName}function wl(e){return"transferOwnership"===e.methodName}function El(e){return"findArtifact"===e.methodName}function kl(e){return"depositArtifact"===e.methodName}function xl(e){return"withdrawArtifact"===e.methodName}function Sl(e){return"prospectPlanet"===e.methodName}function _l(e){return"activateArtifact"===e.methodName}function Al(e){return"deactivateArtifact"===e.methodName}function Cl(e){return"withdrawSilver"===e.methodName}function Tl(e){return"buyCredits"===e.methodName}function Pl(e){return"claim"===e.methodName}const Ol=(e,t)=>
819(t||0)+255-e,Ml=(e,t)=>Ol(e,t)<=0,Il=(e,t)=>void 0!==t&&e.planetType===de.PlanetType.RUINS&&void 0!==e.prospectedBlockNumber&&!e.hasTriedFindingArtifact&&!Ml(t,e.prospectedBlockNumber),Rl=e=>e.planetType===de.PlanetType.RUINS&&void 0===e.prospectedBlockNumber,Ll=e=>e.energy/e.energyCap>.955,Nl=(e,t,n,r,i=(()=>{}))=>{if(n<1e3*e.lastUpdated)return;e.silver=((e,t,n)=>{if(!bt(e))return e.silver;if(e.silver>e.silverCap)return e.silverCap;const r=n/1e3-t/1e3;return Math.min(r*e.silverGrowth+e.silver,e.silverCap)})(e,1e3*e.lastUpdated,n),e.energy=((e,t)=>{if(0===e.energy)return 0;if(!bt(e))return e.energy;if(e.planetType===de.PlanetType.SILVER_BANK&&e.energy>e.energyCap)return e.energyCap;const n=t/1e3-e.lastUpdated,r=Math.exp(-4*e.energyGrowth*n/e.energyCap)*(e.energyCap/e.energy-1)+1;return e.energyCap/r})(e,n),e.lastUpdated=n/1e3;const o=1e3*r.PHOTOID_ACTIVATION_DELAY,a=t.find(e=>e.artifactType===de.ArtifactType.PhotoidCannon&&Dt(e)&&n-1e3*e.lastActivated>=o);a&&!e.localPhotoidUpgrade&&(e.localPhotoidUpgrade=a.timeDelayedUpgrade,jl(e,a.timeDelayedUpgrade)),i(e)},jl=(e,t,n=!1)=>{n?(e.speed/=t.energyCapMultiplier/100,e.energyGrowth/=t.energyGroMultiplier/100,e.range/=t.rangeMultiplier/100,e.speed/=t.speedMultiplier/100,e.defense/=t.defMultiplier/100):(e.speed*=t.energyCapMultiplier/100,e.energyGrowth*=t.energyGroMultiplier/100,e.range*=t.rangeMultiplier/100,e.speed*=t.speedMultiplier/100,e.defense*=t.defMultiplier/100)},Bl=(e,t,n,r)=>{if(e.locationId!==n.toPlanet)throw new Error("attempted to apply arrival for wrong toPlanet "+e.locationId);Nl(e,t,1e3*n.arrivalTime,r);const i=Me.a.cloneDeep(e);if(e.destroyed)return{arrival:n,previous:e,current:e};const{energyArriving:o}=n;return n.player!==e.owner?e.energy>Math.floor(o*fe.CONTRACT_PRECISION*100/e.defense)/fe.CONTRACT_PRECISION?e.energy-=Math.floor(o*fe.CONTRACT_PRECISION*100/e.defense)/fe.CONTRACT_PRECISION:(e.owner=n.player,e.energy=o-Math.floor(e.energy*fe.CONTRACT_PRECISION*e.defense/100)/fe.CONTRACT_PRECISION):e.energy+=o,e.planetType===de.PlanetType.SILVER_BANK&&e.energy>e.energyCap&&(e.energy=e.energyCap),e.silver+n.silverMoved>e.silverCap?e.silver=e.silverCap:e.silver+=n.silverMoved,n.artifactId&&e.heldArtifactIds.push(n.artifactId),{arrival:n,current:e,previous:i}};function Fl(e){var t;return null===(t=null==e?void 0:e.messages)||void 0===t?void 0:t.find(ut)}function Dl(e,t=100){return 0===t?0:Math.max(Math.log2(t/5),0)*e.range}var zl=n(45),Ul=n(63);class $l{constructor(e){e+=5e5;const t=new Ul.Box(-e,-e,2*e,2*e);this.perLevelPlanetQuadtrees=new Map,this.insertedLocations=new Set;for(let e=fe.MIN_PLANET_LEVEL;e<=fe.MAX_PLANET_LEVEL;e++){const n={maximumDepth:10,removeEmptyNodes:!0};this.perLevelPlanetQuadtrees.set(e,new Ul.QuadTree(t,n))}}insertPlanet(e,t){if(this.insertedLocations.has(e.hash))return;const n=this.perLevelPlanetQuadtrees.get(t),r={locationId:e.hash};null==n||n.insert(new Ul.Point(e.coords.x,e.coords.y,r)),this.insertedLocations.add(e.hash)}getPlanetsInCircle(e,t){const n=[];for(const r of this.perLevelPlanetQuadtrees.values())n.push(...r.query(new Ul.Circle(e.x,e.y,t)).map(this.getPointLocationId));return n}getPlanets(e,t,n,r,i,o){var a,s;const l=[];for(const c of i){const i=5*(null===(a=o.get(c))||void 0===a?void 0:a.radiusWorld),u=new Ul.Box(e-i,t-i,n+2*i,r+2*i),f=(null===(s=this.perLevelPlanetQuadtrees.get(c))||void 0===s?void 0:s.query(u).map(this.getPointLocationId))||[];l.push(...f)}return l}getPointLocationId(e){return e.data.locationId}}const Hl=e=>`${e.x},${e.y}`;class Jl{constructor(e,t,n,r,i,o,a,s,l,c,u){ue()(this),this.address=e,this.planets=t,this.myPlanets=new Map,this.touchedPlanetIds=n,this.revealedLocations=r,this.claimedLocations=i,this.artifacts=o,this.myArtifacts=new Map,this.contractConstants=c,this.coordsToLocation=new Map,this.planetLocationMap=new Map;const f=new Map,d=new Map;this.unconfirmedWormholeActivations=[],this.wormholes=new Map,this.layeredMap=new $l(u),this.planetUpdated$=Object(Or.monomitter)(),this.artifactUpdated$=Object(Or.monomitter)(),this.myArtifactsUpdated$=Object(Or.monomitter)(),this.myPlanetsUpdated$=Object(Or.monomitter)(),this.isBuyingCredits$=Object(Or.monomitter)(!0);for(const e of a)for(const t of e.planetLocations)this.addPlanetLocation(t);for(const e of r.values())this.markLocationRevealed(e),this.addPlanetLocation(e);this.replaceArtifactsFromContractData(o.values()),t.forEach((e,t)=>{const n=l.get(t);if(e&&n){const i=n.map(e=>s.get(e)).filter(e=>!!e),o=r.get(t);o&&(e.coordsRevealed=!0,e.revealer=o.revealer);const a=this.processArrivalsForPlanet(e.locationId,i);f.set(t,a.map(e=>e.arrivalData.eventId));for(const e of a){const t=e.arrivalData.eventId;d.set(t,e)}const l=this.planetLocationMap.get(t);e&&l&&(e.location=l,e.biome=this.getBiome(l)),this.setPlanet(e),this.updateScore(t)}}),this.arrivals=d,this.planetArrivalIds=f,this.unconfirmedBuyGPTCredits=void 0,this.isBuyingCredits$.publish(!1),this.unconfirmedReveal=void 0,this.unconfirmedMoves={},this.unconfirmedUpgrades={},this.unconfirmedBuyHats={},this.unconfirmedPlanetTransfers={};for(const[e,t]of i)this.updatePlanet(t.hash,e=>{e.claimer=t.revealer});setInterval(()=>
819{this.planets.forEach(e=>{e&&bt(e)&&Nl(e,this.getPlanetArtifacts(e.locationId),Date.now(),this.contractConstants)})},12e4)}getIsBuyingCreditsEmitter(){return this.isBuyingCredits$}getArtifactById(e){return this.artifacts.get(e)}getArtifactsOwnedBy(e){const t=[];return this.artifacts.forEach(n=>{n.currentOwner===e&&t.push(n)}),t}getPlanetArtifacts(e){var t;return((null===(t=this.planets.get(e))||void 0===t?void 0:t.heldArtifactIds)||[]).map(e=>this.artifacts.get(e)).filter(e=>!!e)}getArtifactsOnPlanetsOwnedBy(e){const t=[];return this.artifacts.forEach(n=>{if(n.onPlanetId){const r=this.getPlanetWithId(n.onPlanetId,!1);r&&r.owner===e&&t.push(n)}}),t}getPlanetWithId(e,t=!0){const n=this.planets.get(e);if(n)return t&&this.updatePlanetIfStale(n),n;const r=this.getLocationOfPlanet(e);return r?this.getPlanetWithLocation(r):void 0}getPlanetLevel(e){const t=this.planets.get(e);if(t)return t.planetLevel}getPlanetDetailLevel(e){const t=this.planets.get(e);if(t){let e=t.planetLevel;return bt(t)&&(e+=1),e}}replaceArtifactFromContractData(e){const t=this.artifacts.get(e.id);if(t){const{unconfirmedDepositArtifact:n,unconfirmedWithdrawArtifact:r,unconfirmedActivateArtifact:i,unconfirmedDeactivateArtifact:o,unconfirmedMove:a}=t;e.unconfirmedDepositArtifact=n,e.unconfirmedWithdrawArtifact=r,e.unconfirmedActivateArtifact=i,e.unconfirmedDeactivateArtifact=o,e.unconfirmedMove=a}this.setArtifact(e)}replaceArtifactsFromContractData(e){for(const t of e)this.replaceArtifactFromContractData(t)}updatePlanet(e,t){const n=this.getPlanetWithId(e);void 0!==n&&(t(n),this.setPlanet(n))}replacePlanetFromContractData(e,t,n,r,i){this.touchedPlanetIds.add(e.locationId);const o=this.planets.get(e.locationId);if(o){const{unconfirmedReveal:t,unconfirmedDepartures:n,unconfirmedUpgrades:r,unconfirmedBuyHats:i,unconfirmedPlanetTransfers:a,unconfirmedFindArtifact:s,unconfirmedDepositArtifact:l,unconfirmedWithdrawArtifact:c,unconfirmedActivateArtifact:u,unconfirmedDeactivateArtifact:f,unconfirmedWithdrawSilver:d,unconfirmedProspectPlanet:h,loadingServerState:p,needsServerRefresh:m,lastLoadedServerState:g,emojiBobAnimation:v,emojiZoopAnimation:y,emojiZoopOutAnimation:b,messages:w}=o;e.unconfirmedReveal=t,e.unconfirmedDepartures=n,e.unconfirmedUpgrades=r,e.unconfirmedBuyHats=i,e.unconfirmedPlanetTransfers=a,e.unconfirmedFindArtifact=s,e.unconfirmedDepositArtifact=l,e.unconfirmedWithdrawArtifact=c,e.unconfirmedActivateArtifact=u,e.unconfirmedDeactivateArtifact=f,e.unconfirmedWithdrawSilver=d,e.unconfirmedProspectPlanet=h,e.loadingServerState=p,e.needsServerRefresh=m,e.lastLoadedServerState=g,e.emojiBobAnimation=v,e.emojiZoopAnimation=y,e.emojiZoopOutAnimation=b,e.messages=w,e.heldArtifactIds=o.heldArtifactIds}n&&(e.heldArtifactIds=n);const a=this.planetLocationMap.get(e.locationId)||r;if(a&&(e.location=a,e.biome=this.getBiome(a)),r&&(this.markLocationRevealed(r),this.addPlanetLocation(r),e.coordsRevealed=!0,e.revealer=r.revealer),i&&(e.claimer=i),this.setPlanet(e),t){this.clearOldArrivals(e);const n=this.processArrivalsForPlanet(e.locationId,t);for(const t of n){const n=t.arrivalData.eventId;this.arrivals.set(n,t);const r=this.planetArrivalIds.get(e.locationId);r&&(r.push(n),this.planetArrivalIds.set(e.locationId,r))}}this.updateScore(e.locationId)}getPlanetWithCoords(e){const t=Hl(e),n=this.coordsToLocation.get(t);if(n)return this.getPlanetWithLocation(n)}getPlanetWithLocation(e){const t=this.planets.get(e.hash);if(t)return this.updatePlanetIfStale(t),t;const n=this.defaultPlanetFromLocation(e);return this.setPlanet(n),n}isPlanetInContract(e){return this.touchedPlanetIds.has(e)}addPlanetLocation(e){var t;this.layeredMap.insertPlanet(e,(null===(t=this.getPlanetWithId(e.hash,!1))||void 0===t?void 0:t.planetLevel)||this.planetLevelFromHexPerlin(e.hash,e.perlin)),this.planetLocationMap.set(e.hash,e);const n=Hl(e.coords);this.coordsToLocation.has(n)||this.coordsToLocation.set(n,e),this.planets.get(e.hash)||this.setPlanet(this.defaultPlanetFromLocation(e));const r=this.planets.get(e.hash);r&&(r.location=e,r.biome=this.getBiome(e))}markLocationRevealed(e){this.revealedLocations.set(e.hash,e)}getLocationOfPlanet(e){return this.planetLocationMap.get(e)||void 0}getAllPlanets(){return this.planets.values()}getAllPlanetsMap(){return this.planets}getAllOwnedPlanets(){return Array.from(this.planets.values()).filter(bt)}getAllVoyages(){return Array.from(this.arrivals.values()).map(e=>e.arrivalData)}onTxIntent(e){if(Pr.getInstance().txInit(e),Pl(e)){this.unconfirmedClaim=e;const t=this.getPlanetWithId(e.locationId);t&&(t.unconfirmedClaim=e,this.setPlanet(t))}else if(ml(e)){const t=this.getPlanetWithId(e.locationId);t&&(t.unconfirmedReveal=e,this.setPlanet(t)),this.unconfirmedReveal=e}else if(vl(e)){this.unconfirmedMoves[e.actionId]=e;const t=this.getPlanetWithId(e.from);if(t&&(t.unconfirmedDepartures.push(e),this.setPlanet(t)),e.artifact){const t=this.getArtifactById(e.artifact);t&&(t.unconfirmedMove=e,this.setArtifact(t))}}else if(yl(e)){this.unconfirmedUpgrades[e.actionId]=e;const t=this.getPlanetWithId(e.locationId);t&&(t.unconfirmedUpgrades.push(e),this.setPlanet(t))}else if(bl(e)){this.unconfirmedBuyHats[e.actionId]=e;const t=this.getPlanetWithId(e.locationId);t&&(t.unconfirmedBuyHats.push(e),this.setPlanet(t))}else if(wl(e)){this.unconfirmedPlanetTransfers[e.actionId]=e;const t=this.getPlanetWithId(e.planetId);t&&(t.unconfirmedPlanetTransfers.push(e),this.setPlanet(t))}else if(Sl(e)){const t=this.getPlanetWithId(e.planetId);t&&(t.unconfirmedProspectPlanet=e,this.setPlanet(t))}else if(El(e)){const t=this.getPlanetWithId(e.planetId);t&&(t.unconfirmedFindArtifact=e,this.setPlanet(t))}else if(kl(e)){const t=this.getPlanetWithId(e.locationId),n=this.getArtifactById(e.artifactId);t&&(t.unconfirmedDepositArtifact=e,this.setPlanet(t)),n&&(n.unconfirmedDepositArtifact=e,this.setArtifact(n))}else if(xl(e)){const t=this.getPlanetWithId(e.locationId),n=this.getArtifactById(e.artifactId);t&&(t.unconfirmedWithdrawArtifact=e,this.setPlanet(t)),n&&(n.unconfirmedWithdrawArtifact=e,this.setArtifact(n))}else if(_l(e)){const t=this.getPlanetWithId(e.locationId),n=this.getArtifactById(e.artifactId);t&&(t.unconfirmedActivateArtifact=e,this.setPlanet(t)),n&&(n.unconfirmedActivateArtifact=e,this.setArtifact(n)),e.wormholeTo&&this.unconfirmedWormholeActivations.push(e)}else if(Al(e)){const t=this.getPlanetWithId(e.locationId),n=this.getArtifactById(e.artifactId);t&&(t.unconfirmedDeactivateArtifact=e,this.setPlanet(t)),n&&(n.unconfirmedDeactivateArtifact=e,this.setArtifact(n))}else if(Cl(e)){const t=this.getPlanetWithId(e.locationId);t&&(t.unconfirmedWithdrawSilver=e,this.setPlanet(t))}else Tl(e)&&(this.isBuyingCredits$.publish(!0),this.unconfirmedBuyGPTCredits=e)}clearUnconfirmedTxIntent(e){var t,n;if(Pl(e)){this.unconfirmedClaim=void 0;const t=this.getPlanetWithId(e.locationId);t&&(t.unconfirmedClaim=void 0,this.setPlanet(t))}else if(ml(e)){const n=this.getPlanetWithId(e.locationId);n&&(n.unconfirmedReveal=void 0,this.setPlanet(n)),e.actionId===(null===(t=this.unconfirmedReveal)||void 0===t?void 0:t.actionId)?this.unconfirmedReveal=void 0:console.error("unexpected error occurred: tried to clear an unconfirmed reveal that doesn't exist")}else if(vl(e)){const t=this.getPlanetWithId(e.from);if(t){let n=-1;for(let r=0;r<t.unconfirmedDepartures.length;r+=1)if(t.unconfirmedDepartures[r].actionId===e.actionId){n=r;break}n>-1&&t.unconfirmedDepartures.splice(n,1),this.setPlanet(t)}if(e.artifact){const t=this.getArtifactById(e.artifact);t&&(delete t.unconfirmedMove,this.setArtifact(t))}delete this.unconfirmedMoves[e.actionId]}else if(yl(e)){const t=this.getPlanetWithId(e.locationId);if(t){let n=-1;for(let r=0;r<t.unconfirmedUpgrades.length;r+=1)if(t.unconfirmedUpgrades[r].actionId===e.actionId){n=r;break}n>-1&&t.unconfirmedUpgrades.splice(n,1),this.setPlanet(t)}delete this.unconfirmedUpgrades[e.actionId]}else if(bl(e)){const t=this.getPlanetWithId(e.locationId);if(t){let n=-1;for(let r=0;r<t.unconfirmedBuyHats.length;r+=1)if(t.unconfirmedBuyHats[r].actionId===e.actionId){n=r;break}n>-1&&t.unconfirmedBuyHats.splice(n,1),this.setPlanet(t)}delete this.unconfirmedBuyHats[e.actionId]}else if(El(e)){const t=this.getPlanetWithId(e.planetId);t&&(t.unconfirmedFindArtifact=void 0,this.setPlanet(t))}else if(kl(e)){const t=this.getPlanetWithId(e.locationId),n=this.getArtifactById(e.artifactId);t&&(t.unconfirmedDepositArtifact=void 0,this.setPlanet(t)),n&&(n.unconfirmedDepositArtifact=void 0,this.setArtifact(n))}else if(xl(e)){const t=this.getPlanetWithId(e.locationId),n=this.getArtifactById(e.artifactId);t&&(t.unconfirmedWithdrawArtifact=void 0,this.setPlanet(t)),n&&(n.unconfirmedWithdrawArtifact=void 0,this.setArtifact(n))}else if(wl(e)){const t=this.getPlanetWithId(e.planetId);if(t){let n=-1;for(let r=0;r<t.unconfirmedPlanetTransfers.length;r+=1)if(t.unconfirmedPlanetTransfers[r].actionId===e.actionId){n=r;break}n>-1&&t.unconfirmedPlanetTransfers.splice(n,1),this.setPlanet(t)}delete this.unconfirmedPlanetTransfers[e.actionId]}else if(Sl(e)){const t=this.getPlanetWithId(e.planetId);t&&(delete t.unconfirmedProspectPlanet,this.setPlanet(t))}else if(_l(e)){const t=this.getPlanetWithId(e.locationId),n=this.getArtifactById(e.artifactId);t&&(delete t.unconfirmedActivateArtifact,this.setPlanet(t)),n&&(delete n.unconfirmedActivateArtifact,this.setArtifact(n));let r=-1;for(let t=0;t<this.unconfirmedWormholeActivations.length;t+=1)if(this.unconfirmedWormholeActivations[t].actionId===e.actionId){r=t;break}r>-1&&this.unconfirmedWormholeActivations.splice(r,1)}else if(Al(e)){const t=this.getPlanetWithId(e.locationId),n=this.getArtifactById(e.artifactId);t&&(delete t.unconfirmedDeactivateArtifact,this.setPlanet(t)),n&&(delete n.unconfirmedDeactivateArtifact,this.setArtifact(n))}else if(Cl(e)){const t=this.getPlanetWithId(e.locationId);t&&(delete t.unconfirmedWithdrawSilver,this.setPlanet(t))}else Tl(e)&&(e.actionId===(null===(n=this.unconfirmedBuyGPTCredits)||void 0===n?void 0:n.actionId)?(this.isBuyingCredits$.publish(!1),this.unconfirmedBuyGPTCredits=void 0):console.error("unexpected error occurred: tried to clear an unconfirmed GPT credit purchase that doesn't exist"))}getUnconfirmedMoves(){return Object.values(this.unconfirmedMoves)}getUnconfirmedWormholeActivations(){return this.unconfirmedWormholeActivations}getWormholes(){return this.wormholes.values()}getUnconfirmedUpgrades(){return Object.values(this.unconfirmedUpgrades)}getUnconfirmedReveal(){return this.unconfirmedReveal}
819getUnconfirmedClaim(){return this.unconfirmedClaim}getUnconfirmedBuyGPTCredits(){return this.unconfirmedBuyGPTCredits}getPlanetMap(){return this.planets}getArtifactMap(){return this.artifacts}getMyPlanetMap(){return this.myPlanets}getMyArtifactMap(){return this.myArtifacts}getRevealedLocations(){return this.revealedLocations}getClaimedLocations(){return this.claimedLocations}setClaimedLocation(e){this.claimedLocations.set(e.hash,e)}getPlanetsWithIds(e,t=!0){return e.map(e=>this.getPlanetWithId(e,t)).filter(e=>void 0!==e)}getPlanetsInWorldCircle(e,t){const n=this.layeredMap.getPlanetsInCircle(e,t);return this.getPlanetsWithIds(n)}getPlanetsInWorldRectangle(e,t,n,r,i,o,a=!0){const s=this.layeredMap.getPlanets(e,t,n,r,i,o);return this.getPlanetsWithIds(s,a)}setPlanet(e){ct(e)&&this.layeredMap.insertPlanet(e.location,e.planetLevel),ha(this.planets,this.myPlanets,this.address,this.planetUpdated$,this.myPlanetsUpdated$,pa,ma,e)}setArtifact(e){e.artifactType===de.ArtifactType.Wormhole&&e.onPlanetId&&(e.wormholeTo&&Dt(e)?this.wormholes.set(e.id,{from:e.onPlanetId,to:e.wormholeTo}):this.wormholes.delete(e.id)),ha(this.artifacts,this.myArtifacts,this.address,this.artifactUpdated$,this.myArtifactsUpdated$,ga,va,e)}emitArrivalNotifications({previous:e,current:t,arrival:n}){const r=Pr.getInstance();!Jl.planetCanUpgrade(e)&&Jl.planetCanUpgrade(t)&&t.owner===this.address&&r.planetCanUpgrade(t),e.owner!==this.address&&e.owner!==Xt.ethers.constants.AddressZero&&t.owner===this.address&&r.planetConquered(t),e.owner===this.address&&t.owner!==this.address&&r.planetLost(t),n.player!==this.address&&t.owner===this.address&&r.planetAttacked(t)}processArrivalsForPlanet(e,t){const n=this.planets.get(e);if(!n)return console.error("attempted to process arrivals for planet not in memory: "+e),[];const r=[];t.sort((e,t)=>e.arrivalTime-t.arrivalTime);const i=Date.now()/1e3;for(const o of t)try{if(i-o.arrivalTime>0)this.emitArrivalNotifications(Bl(n,this.getPlanetArtifacts(n.locationId),o,this.contractConstants));else{const e=setTimeout(()=>{this.emitArrivalNotifications(Bl(n,this.getPlanetArtifacts(n.locationId),o,this.contractConstants))},1e3*o.arrivalTime-Date.now()),t={arrivalData:o,timer:e};r.push(t)}}catch(t){console.error(`error occurred processing arrival for updated planet ${e}: ${t}`)}return this.updateScore(e),r}clearOldArrivals(e){const t=e.locationId,n=this.planetArrivalIds.get(t);if(n)for(const e of n){const t=this.arrivals.get(e);t?clearTimeout(t.timer):console.error(`arrival with id ${e} wasn't found`),this.arrivals.delete(e)}this.planetArrivalIds.set(t,[])}planetLevelFromHexPerlin(e,t){const n=this.spaceTypeFromPerlin(t),r=Object(zl.getBytesFromHex)(e,4,7);let i=fe.MIN_PLANET_LEVEL;for(let e=fe.MAX_PLANET_LEVEL;e>=fe.MIN_PLANET_LEVEL;e--)if(r<ot()(this.contractConstants.planetLevelThresholds[e])){i=e;break}return n===de.SpaceType.NEBULA&&i>de.PlanetLevel.FOUR&&(i=de.PlanetLevel.FOUR),n===de.SpaceType.SPACE&&i>de.PlanetLevel.FIVE&&(i=de.PlanetLevel.FIVE),i>this.contractConstants.MAX_NATURAL_PLANET_LEVEL&&(i=this.contractConstants.MAX_NATURAL_PLANET_LEVEL),i}spaceTypeFromPerlin(e){return e<this.contractConstants.PERLIN_THRESHOLD_1?de.SpaceType.NEBULA:e<this.contractConstants.PERLIN_THRESHOLD_2?de.SpaceType.SPACE:e<this.contractConstants.PERLIN_THRESHOLD_3?de.SpaceType.DEEP_SPACE:de.SpaceType.DEAD_SPACE}static getSilverNeeded(e){return.2*(e.upgradeState.reduce((e,t)=>e+t)+1)*e.silverCap}static planetCanUpgrade(e){const t=e.upgradeState.reduce((e,t)=>e+t);return!(e.spaceType===de.SpaceType.NEBULA&&t>=3)&&(!(e.spaceType===de.SpaceType.SPACE&&t>=4)&&(!(e.spaceType===de.SpaceType.DEEP_SPACE&&t>=5)&&(!(e.spaceType===de.SpaceType.DEAD_SPACE&&t>=5)&&(0!==e.planetLevel&&e.planetType===de.PlanetType.PLANET&&e.silver>=this.getSilverNeeded(e)))))}planetTypeFromHexPerlin(e,t){const n=this.planetLevelFromHexPerlin(e,t),r=this.spaceTypeFromPerlin(t),i=this.contractConstants.PLANET_TYPE_WEIGHTS[r][n],o=i.reduce((e,t)=>e+t);let a=[o-i[0]];for(let e=1;e<i.length;e++)a.push(a[e-1]-i[e]);a=a.map(e=>Math.floor(256*e/o));const s=Number(Object(zl.getBytesFromHex)(e,8,9));for(let e=0;e<a.length;e++)if(s>=a[e])return e;return de.PlanetType.PLANET}getBiome(e){const{perlin:t,biomebase:n}=e,r=this.spaceTypeFromPerlin(t);if(r===de.SpaceType.DEAD_SPACE)return de.Biome.CORRUPTED;let i=3*r;return n<this.contractConstants.BIOME_THRESHOLD_1?i+=1:n<this.contractConstants.BIOME_THRESHOLD_2?i+=2:i+=3,i}defaultPlanetFromLocation(e){const{perlin:t}
819=e,n=e.hash,r=this.planetLevelFromHexPerlin(n,t),i=this.planetTypeFromHexPerlin(n,t),o=this.spaceTypeFromPerlin(t),[a,s,l,c,u]=Object(zl.bonusFromHex)(n);let f=this.contractConstants.defaultPopulationCap[r],d=this.contractConstants.defaultPopulationGrowth[r],h=this.contractConstants.defaultRange[r],p=this.contractConstants.defaultSpeed[r],m=this.contractConstants.defaultDefense[r],g=this.contractConstants.defaultSilverCap[r],v=0;i===de.PlanetType.SILVER_MINE&&(v=this.contractConstants.defaultSilverGrowth[r]),f*=a?2:1,d*=s?2:1,h*=l?2:1,p*=c?2:1,m*=u?2:1,o===de.SpaceType.DEAD_SPACE?(h*=2,p*=2,f*=2,d*=2,g*=2,v*=2,m=Math.floor(3*m/20)):o===de.SpaceType.DEEP_SPACE?(h*=1.5,p*=1.5,f*=1.5,d*=1.5,g*=1.5,v*=1.5,m*=.25):o===de.SpaceType.SPACE&&(h*=1.25,p*=1.25,f*=1.25,d*=1.25,g*=1.25,v*=1.25,m*=.5),i===de.PlanetType.SILVER_MINE?(g*=2,m*=.5):i===de.PlanetType.SILVER_BANK?(p/=2,g*=10,d=0,f*=5):i===de.PlanetType.TRADING_POST&&(m*=.5,g*=2);let y=f*this.contractConstants.defaultBarbarianPercentage[r]/100;o===de.SpaceType.DEAD_SPACE?y*=20:o===de.SpaceType.DEEP_SPACE?y*=10:o===de.SpaceType.SPACE&&(y*=4);const b=i===de.PlanetType.SILVER_MINE?g/2:0;p*=this.contractConstants.TIME_FACTOR_HUNDREDTHS/100,d*=this.contractConstants.TIME_FACTOR_HUNDREDTHS/100,v*=this.contractConstants.TIME_FACTOR_HUNDREDTHS/100;const w=this.getBiome(e);return{locationId:n,perlin:t,spaceType:o,owner:fe.EMPTY_ADDRESS,hatLevel:0,bonus:Object(zl.bonusFromHex)(n),planetLevel:r,planetType:i,isHomePlanet:!1,energyCap:f,energyGrowth:d,silverCap:g,silverGrowth:v,range:h,speed:p,defense:m,energy:y,silver:b,lastUpdated:Math.floor(Date.now()/1e3),upgradeState:[0,0,0],unconfirmedDepartures:[],unconfirmedUpgrades:[],unconfirmedBuyHats:[],unconfirmedPlanetTransfers:[],unconfirmedClearEmoji:!1,unconfirmedAddEmoji:!1,loadingServerState:!1,silverSpent:0,prospectedBlockNumber:void 0,heldArtifactIds:[],destroyed:!1,isInContract:this.touchedPlanetIds.has(n),syncedWithContract:!1,needsServerRefresh:!1,coordsRevealed:!1,location:e,biome:w,hasTriedFindingArtifact:!1,messages:void 0}}updatePlanetIfStale(e){const t=Date.now();t/1e3-e.lastUpdated>1&&Nl(e,this.getPlanetArtifacts(e.locationId),t,this.contractConstants,this.setPlanet)}getEnergyCurveAtPercent(e,t){const n=t/100*e.energyCap,r=e.energyCap,i=e.energy,o=e.energyGrowth,a=e.lastUpdated;return r/(4*o)*Math.log(n*(r-i)/(i*(r-n)))+a}getSilverCurveAtPercent(e,t){if(e.silverGrowth<=0)return;const n=t/100*e.silverCap-e.silver;if(n<=0)return;let r=0;return r+=n/e.silverGrowth,e.lastUpdated+r}getArtifactController(e){const t=this.getArtifactById(e);if(t){if(t.onPlanetId){const e=this.getPlanetWithId(t.onPlanetId);if(!e)return;return e.owner===fe.EMPTY_ADDRESS?void 0:e.owner}if(t.onVoyageId){const e=this.arrivals.get(t.onVoyageId);return(null==e?void 0:e.arrivalData.player)||void 0}return t.currentOwner===fe.EMPTY_ADDRESS?void 0:t.currentOwner}}calculateSilverSpent(e){const t=[20,40,60,80,100];let n=0;for(let t=0;t<e.upgradeState.length;t++)n+=e.upgradeState[t];let r=0;for(let e=0;e<n;e++)r+=t[e];return r/100*e.silverCap}updateScore(e){const t=this.planets.get(e);t&&(t.silverSpent=this.calculateSilverSpent(t))}}const Gl=le.c.div.withConfig({displayName:"TipText",componentId:"sc-bs175n"})`
820  max-width: 500px;
821  word-break: keep-all;
822  text-align: justify;
823`;function Vl(){const[e,t]=Object(i.useState)(0),[n,r]=Object(i.useState)(),a=Object(i.useCallback)((e,n=!1)=>{n&&r(e=>{e&&clearInterval(e)}),t(t=>(t+e+Kl.length)%Kl.length)},[]);return Object(i.useEffect)(()=>{const e=setInterval(()=>a(1),1e4);return r(e),()=>clearInterval(e)},[a]),o.a.createElement(Wl,null,o.a.createElement(Zi,{style:{textDecoration:"none"}},"Blue Forest Tips")," ",o.a.createElement(Xl,null,o.a.createElement(Gi,{onClick:()=>a(-1,!0)},"previous"),o.a.createElement(uo,{width:16}),o.a.createElement(Gi,{onClick:()=>a(1,!0)},"next")),o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement(Gl,null,Kl[e]))}const Xl=le.c.div.withConfig({displayName:"PrevNextContainer",componentId:"sc-nwhd2v"})`
824  float: right;
825`,Wl=le.c.div.withConfig({displayName:"TipsContainer",componentId:"sc-1c5qsj0"})`
826  margin-bottom: 8px;
827  background-color: ${Pe.colors.backgrounddark};
828  width: 400px;
829  height: 250px;
830  padding: 16px;
831  border-radius: 3px;
832  overflow: hidden;
833  border: 1px solid ${Pe.colors.border};
834`,ql=["Beware of pirates! To capture a planet with pirates, simply send an attack large enough to overcome its current energy.",o.a.createElement(o.a.Fragment,null,"Navigate the Dark Forest with allies (and enemies) - join the"," ",o.a.createElement(oo,{to:"https://discord.gg/C23An5qNGv"},"Dark Forest Discord"),"!"),"There are many different artifact types, each with unique properties... try activating one on a planet!","The top 63 players get NFT rewards at the end of each v0.6 round!","There are many different ways to enjoy Dark Forest - as long as you're having fun, you're doing it right.","Be careful when capturing planets - if you attack a player-owned planet, it may look like an act of war!","A planet can have at most one active artifact.","Withdrawing an artifact (via a Spacetime Rip) gives you full control of that artifact as an ERC 721 token. You can deposit artifacts you have withdrawn back into the universe via Spacetime Rips.","You can use plugins to enhance your capabilities by automating repetitive tasks. The top players are probably using plugins (:","Quasars can store lots of energy and silver, at the expense of being able to generate neither.","Never share your private key with anyone else!","Broadcasting a planet reveals its location to ALL other players!","Claiming a planet reveals its location to ALL other players!","You can spend silver to upgrade your planets.","Planets in Nebula are more difficult to capture than planets in Deep Space.","Some of the universe is corrupted, and contains special versions of the artifacts.","You can import and export maps! Be careful importing maps from others, they may contain fabricated map data.",o.a.createElement(o.a.Fragment,null,"If mining the universe is slow on your computer, you can try the Remote Miner plugin. Find that and other plugins on ",o.a.createElement(oo,{to:"https://plugins.zkga.me"},"plugins.zkga.me"),"."),"A planet can only have 6 artifacts on it at any given time. Sometimes more if you get lucky. It's the blockchain, after all.",'A foundry must be prospected before you can attempt to find an artifact, but make sure to click "Find" before 256 blocks or it will be lost forever.',"Defense upgrades make your planets less vulnerable to attack, Range upgrades make your voyages go further and decay less, and Speed upgrades make your voyages go much faster.","Wormhole artifacts reduce the effective distance between 2 planets. Try using them to link 2 planets very far apart!","Upon deactivation, most artifacts must cooldown for 24-hours before they can be activated again. However, wormholes go on a 48-hour cooldown!","Photoid Cannon artifacts will debuff your planet on activation, but get a massive stat boost for the first voyage from the planet after that a charging period. Photoid Cannon artifacts are destroyed upon use.","Planetary Shield artifacts will massively boost a planet's defense, but at the cost of energy and energy growth stats. Planetary Shield artifacts are destroyed upon deactivation.","Bloom Filter artifacts instantly set a planet's energy and silver to full, but are destroyed upon activation. Try using them on a Quasar!","Dark Forest exists on the blockchain, so you can play with an entirely different client if you want.",o.a.createElement(o.a.Fragment,null,"Writing plugins? Check out some documentation"," ",o.a.createElement(oo,{to:"https://github.com/darkforest-eth/client/blob/master/docs/classes/B
834ackend_GameLogic_GameManager.default.md"},"here")," ","and"," ",o.a.createElement(oo,{to:"https://github.com/darkforest-eth/client/blob/master/docs/classes/Backend_GameLogic_GameUIManager.default.md"},"here"),".")],Kl=Me.a.shuffle(ql);class Zl{constructor(e){this.terminal=e}makeProgressListener(e){const t=o.a.createRef();return this.terminal.printLoadingBar(e,t),this.terminal.newline(),e=>{var n;null===(n=t.current)||void 0===n||n.setFractionCompleted(e)}}async download(e,t){const n=await t.getSavedTouchedPlanetIds(),r=await t.getSavedRevealedCoords();this.terminal.printElement(o.a.createElement(Vl,null)),this.terminal.newline();const i=this.makeProgressListener("Planet IDs"),a=this.makeProgressListener("Players"),s=this.makeProgressListener("Revealed Planet IDs"),l=this.makeProgressListener("Revealed Planet Coordinates"),c=this.makeProgressListener("Pending Moves"),u=this.makeProgressListener("Planets"),f=this.makeProgressListener("Planet Metadatas"),d=this.makeProgressListener("Artifacts On Planets"),h=this.makeProgressListener("Artifacts On Moves"),p=this.makeProgressListener("Your Artifacts"),m=e.getConstants(),g=e.getWorldRadius(),v=e.getGPTCreditPriceEther(),y=e.getGPTCreditBalance(e.getAccount()),b=e.getPlayers(a),w=new Map,E=new Map,k=Array.from(await t.allChunks()),x=new Set(Me.a.flatMap(k,e=>e.planetLocations).map(e=>e.hash)),S=e.getTouchedPlanetIds(n.length,i),_=e.getRevealedPlanetsCoords(r.length,s,l),A=new Map,C=n.concat(await S),T=r.concat(await _),P=new Map;for(const e of T)P.set(e.hash,e);let O=C.filter(e=>x.has(e)||P.has(e)||A.has(e));const M=await e.getAllArrivals(O,c);for(const e of M)O.push(e.fromPlanet);O=[...new Set(O)];const I=await e.bulkGetPlanets(O,u,f);I.forEach((e,t)=>{I.has(t)&&E.set(t,[])});for(const e of M){const t=E.get(e.toPlanet);t&&(t.push(e.eventId),E.set(e.toPlanet,t)),w.set(e.eventId,e)}const R=[];for(const e of M)e.artifactId&&R.push(e.artifactId);const L=await e.bulkGetArtifacts(R,h),N=e.bulkGetArtifactsOnPlanets(O,d),j=e.getPlayerArtifacts(e.getAccount(),p),B=await(async()=>{try{return await di()(gi(),5e3,"couldn't get twitter map")}catch(e){}return{}})();return{contractConstants:await m,players:await b,worldRadius:await g,gptCreditPriceEther:await v,myGPTCredits:await y,allTouchedPlanetIds:C,allRevealedCoords:T,pendingMoves:M,touchedAndLocatedPlanets:I,artifactsOnVoyages:L,myArtifacts:await j,heldArtifacts:await N,loadedPlanets:O,revealedCoordsMap:P,claimedCoordsMap:A,planetVoyageIdMap:E,arrivals:w,twitters:B}}}var Yl;!function(e){e.PlanetUpdate="PlanetUpdate",e.DiscoveredNewChunk="DiscoveredNewChunk",e.InitializedPlayer="InitializedPlayer",e.InitializedPlayerError="InitializedPlayerError",e.ArtifactUpdate="ArtifactUpdate",e.Moved="Moved"}(Yl||(Yl={}));class Ql extends Wt.EventEmitter{constructor(e,t,n,r,i,o,a,s,l,c,u,f,d,h,p,m,g,v,y,b){super(),this.endTimeSeconds=1948939200,this.diagnostics={rpcUrl:"unknown",totalPlanets:0,visiblePlanets:0,visibleChunks:0,fps:0,chunkUpdates:0,callsInQueue:0,totalCalls:0,totalTransactions:0,transactionsInQueue:0,totalChunks:0,width:0,height:0},this.terminal=e,this.account=t,this.players=n,this.worldRadius=s,this.gptCreditPriceEther=y,this.myGPTCredits$=Object(Or.monomitter)(!0),this.gptCreditPriceEtherEmitter$=Object(Or.monomitter)(!0),this.networkHealth$=Object(Or.monomitter)(!0),this.myGPTCredits=b,this.myGPTCredits$.publish(b),this.playersUpdated$=Object(Or.monomitter)(),this.gptCreditPriceEtherEmitter$.publish(y),this.hashConfig={planetHashKey:f.PLANETHASH_KEY,spaceTypeKey:f.SPACETYPE_KEY,biomebaseKey:f.BIOMEBASE_KEY,perlinLengthScale:f.PERLIN_LENGTH_SCALE,perlinMirrorX:f.PERLIN_MIRROR_X,perlinMirrorY:f.PERLIN_MIRROR_Y},this.planetHashMimc=m?rt.fakeHash:Object(rt.mimcHash)(this.hashConfig.planetHashKey),this.contractConstants=f,this.homeLocation=p;const w=new Map;for(const[e,t]of o){const n=r.get(e);if(n){const r={hash:e,coords:t,perlin:n.perlin,biomebase:this.biomebasePerlin(t,!0)};w.set(e,{...r,revealer:t.revealer})}}const E=new Map;for(const[e,t]of a){const n=r.get(e);if(n){const r={...{hash:e,coords:t,perlin:n.perlin,biomebase:this.biomebasePerlin(t,!0)},revealer:t.revealer};w.set(e,r),E.set(e,r)}}this.entityStore=new Jl(t,r,i,w,E,g,d.allChunks(),l,c,f,s),this.contractsAPI=u,this.persistentChunkStore=d,this.snarkHelper=h,this.useMockHash=m,this.ethConnection=v,this.diagnosticsInterval=setInterval(this.uploadDiagnostics.bind(this),1e4),this.scoreboardInterval=setInterval(this.refreshScoreboard.bind(this),1e4),this.networkHealthInterval=setInterval(this.refreshNetworkHealth.bind(this),1e4),this.playerInterval=setInterval(()=>{this.account&&this.hardRefreshPlayer(this.account)}
834,5e3),this.hashRate=0,this.settingsSubscription=Br.subscribe(e=>{if("MiningCores"===e&&this.minerManager){const e=Jr(this.account,"MiningCores");this.minerManager.setCores(e)}}),this.refreshScoreboard(),this.refreshNetworkHealth()}get planetRarity(){return this.contractConstants.PLANET_RARITY}async uploadDiagnostics(){yi.logEvent("diagnostics",this.diagnostics)}async refreshNetworkHealth(){try{this.networkHealth$.publish(await async function(){return await fetch("/network-health",{method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>e.json())}())}catch(e){}}async getPlayerScores(){return await this.contractsAPI.getPlayers()}async refreshScoreboard(){const e=await this.contractsAPI.getPlayers();console.log("PLAYERS"),console.log(e);try{const e=await Ei();for(const t of e.entries){const e=this.players.get(t.ethAddress);e&&e.address!==this.account&&void 0!==t.score&&(e.score=t.score)}this.playersUpdated$.publish()}catch(e){}}getEthConnection(){return this.ethConnection}destroy(){var e;this.minerManager&&(this.minerManager.removeAllListeners("DiscoveredNewChunk"),this.minerManager.destroy()),this.contractsAPI.destroy(),this.persistentChunkStore.destroy(),clearInterval(this.playerInterval),clearInterval(this.diagnosticsInterval),clearInterval(this.scoreboardInterval),clearInterval(this.networkHealthInterval),null===(e=this.settingsSubscription)||void 0===e||e.unsubscribe()}static async create(e,t){var n,r,i,o,a,s;if(!t.current)throw new Error("you must pass in a handle to a terminal");const l=e.getAddress();if(!l)throw new Error("no account on eth connection");const c=new Zl(t.current),u=await wi(e);null===(n=t.current)||void 0===n||n.println("Loading game data from disk...");const f=await Wa.create(l);null===(r=t.current)||void 0===r||r.println("Downloading data from Ethereum blockchain..."),null===(i=t.current)||void 0===i||i.println("(the contract is very big. this may take a while)"),null===(o=t.current)||void 0===o||o.newline();const d=await c.download(u,f),h=await f.getHomeLocations();null===(a=t.current)||void 0===a||a.println(""),null===(s=t.current)||void 0===s||s.println("Building Index..."),await f.saveTouchedPlanetIds(d.allTouchedPlanetIds),await f.saveRevealedCoords(d.allRevealedCoords);const p=new Map;for(let e=0;e<d.loadedPlanets.length;e++){const t=d.touchedAndLocatedPlanets.get(d.loadedPlanets[e]);if(t){t.heldArtifactIds=d.heldArtifacts[e].map(e=>e.id);for(const t of d.heldArtifacts[e])p.set(t.id,t)}}for(const e of d.myArtifacts)p.set(e.id,e);for(const e of d.artifactsOnVoyages)p.set(e.id,e);let m=void 0;for(const e of h)if(d.allTouchedPlanetIds.includes(e.hash)){m=e,await f.confirmHomeLocation(e);break}const g={planetHashKey:d.contractConstants.PLANETHASH_KEY,spaceTypeKey:d.contractConstants.SPACETYPE_KEY,biomebaseKey:d.contractConstants.BIOMEBASE_KEY,perlinLengthScale:d.contractConstants.PERLIN_LENGTH_SCALE,perlinMirrorX:d.contractConstants.PERLIN_MIRROR_X,perlinMirrorY:d.contractConstants.PERLIN_MIRROR_Y},v=d.contractConstants.DISABLE_ZK_CHECKS,y=pl.create(g,t,v),b=new Ql(t,l,d.players,d.touchedAndLocatedPlanets,new Set(Array.from(d.allTouchedPlanetIds)),d.revealedCoordsMap,d.claimedCoordsMap?d.claimedCoordsMap:new Map,d.worldRadius,d.arrivals,d.planetVoyageIdMap,u,d.contractConstants,f,y,m,v,p,e,d.gptCreditPriceEther,d.myGPTCredits);b.setPlayerTwitters(d.twitters),function(e,t){const n=zr(e,t);setInterval(()=>{const r=zr(e,t);n!==r&&Br.publish(t)},1e3)}(b.getAccount(),"AutoApproveNonPurchaseTransactions"),f.setDiagnosticUpdater(b),u.setDiagnosticUpdater(b),u.setupEventListeners(),b.refreshTwitters(),b.contractsAPI.on("ArtifactUpdate",async e=>{await b.hardRefreshArtifact(e),b.emit(Yl.ArtifactUpdate,e)}).on("PlanetTransferred",async(e,t)=>{await b.hardRefreshPlanet(e);const n=b.getPlanetWithId(e);n&&t===b.account&&Pr.getInstance().receivedPlanet(n)}).on("PlayerUpdate",async e=>{await b.hardRefreshPlayer(e)}).on("PlanetUpdate",async e=>{const t=b.entityStore.getPlanetWithId(e);t&&ct(t)&&(await b.hardRefreshPlanet(e),b.emit(Yl.PlanetUpdate))}).on("ArrivalQueued",async(e,t,n)=>{const r=b.entityStore.getPlanetWithId(n);r&&ct(r)&&(await b.bulkHardRefreshPlanets([t,n]),b.emit(Yl.PlanetUpdate))}).on("LocationRevealed",async(e,t)=>{await b.hardRefreshPlanet(e),b.emit(Yl.PlanetUpdate)}).on("ChangedCreditPrice",async e=>{b.gptCreditPriceEther=e,b.gptCreditPriceEtherEmitter$.publish(e)}).on("TxSubmitted",e=>{b.persistentChunkStore.onEthTxSubmit(e),b.onTxSubmit(e)}).on("TxConfirmed",async e=>{var n;if(b.persistentChunkStore.onEthTxComplete(e.txHash),ml(e))await b.hardRefreshPlanet(e.locationId);else if(gl(e)){null===(n=t.current)||void 0===n||n.println("Loading Home Planet from Blockchain...");const r=5;for(let t=0;t<r;t++){if(await b.contractsAPI.getPlanetById(e.locationId))break;t===r-1?console.error("couldn't load player's home planet"):await la()(2e3)}await b.hardRefreshPlanet(e.locationId),b.emit(Yl.InitializedPlayer),b.initMiningManager(e.location.coords,4)}else if(vl(e)){const t=[b.bulkHardRefreshPlanets([e.from,e.to])];e.artifact&&t.push(b.hardRefreshArtifact(e.artifact)),await Promise.all(t)}else yl(e)||bl(e)||gl(e)?await b.hardRefreshPlanet(e.locationId):El(e)?await b.hardRefreshPlanet(e.planetId):kl(e)?await Promise.all([b.hardRefreshPlanet(e.locationId),b.hardRefreshArtifact(e.artifactId)]):xl(e)?await Promise.all([await b.hardRefreshPlanet(e.locationId),await b.hardRefreshArtifact(e.artifactId)]):Sl(e)?await b.softRefreshPlanet(e.planetId):_l(e)||Al(e)?await Promise.all([b.hardRefreshPlanet(e.locationId),b.hardRefreshArtifact(e.artifactId)]):Cl(e)?await b.softRefreshPlanet(e.locationId):Tl(e)?await b.refreshMyGPTCredits():Pl(e)&&b.entityStore.updatePlanet(e.locationId,e=>e.claimer=b.getAccount());b.entityStore.clearUnconfirmedTxIntent(e),b.onTxConfirmed(e)}).on("TxReverted",async e=>{b.entityStore.clearUnconfirmedTxIntent(e),b.persistentChunkStore.onEthTxComplete(e.txHash),b.onTxReverted(e)}).on("RadiusUpdated",async()=>{const e=await b.contractsAPI.getWorldRadius();b.setRadius(e)});const w=await f.getUnconfirmedSubmittedEthTxs(),E=new Jt.ThrottledConcurrentQueue({invocationIntervalMs:1e3,maxInvocationsPerIntervalMs:10,maxConcurrency:1});for(const t of w)b.contractsAPI.waitFor(t,E.add(()=>e.waitForTransaction(t.txHash)));return m&&d.players.has(l)&&b.initMiningManager(m.coords),b}async hardRefreshPlayer(e){const t=await this.contractsAPI.getPlayerById(e);if(!t)return;const n=this.getPlayer(e);(null==n?void 0:n.twitter)&&(t.twitter=n.twitter),this.players.set(e,t),this.playersUpdated$.publish()}async softRefreshPlanet(e){const t=await this.contractsAPI.getPlanetById(e);t&&this.entityStore.replacePlanetFromContractData(t)}async hardRefreshPlanet(e){const t=await this.contractsAPI.getPlanetById(e);if(!t)return;const n=await this.contractsAPI.getArrivalsForPlanet(e),r=(await this.contractsAPI.bulkGetArt
834ifactsOnPlanets([e]))[0],i=await this.contractsAPI.getRevealedCoordsByIdIfExists(e);let o;i&&(o={...this.locationFromCoords(i),revealer:i.revealer}),this.entityStore.replacePlanetFromContractData(t,n,r.map(e=>e.id),o,void 0),r.forEach(e=>this.entityStore.replaceArtifactFromContractData(e))}async bulkHardRefreshPlanets(e){const t=new Map,n=await this.contractsAPI.getAllArrivals(e),r=await this.contractsAPI.bulkGetPlanets(e),i=await this.contractsAPI.bulkGetArtifactsOnPlanets(e);r.forEach((e,n)=>{r.has(n)&&t.set(n,[])});for(const e of n){const n=t.get(e.toPlanet);n&&(n.push(e),t.set(e.toPlanet,n))}for(let n=0;n<e.length;n++){const o=e[n],a=r.get(o);if(!a)continue;const s=t.get(a.locationId);s&&this.entityStore.replacePlanetFromContractData(a,s,i[n].map(e=>e.id))}for(const e of i)this.entityStore.replaceArtifactsFromContractData(e)}async hardRefreshArtifact(e){const t=await this.contractsAPI.getArtifactById(e);t&&this.entityStore.replaceArtifactFromContractData(t)}async refreshMyGPTCredits(){this.account&&(this.myGPTCredits=await this.contractsAPI.getGPTCreditBalance(this.account),this.myGPTCredits$.publish(this.myGPTCredits))}onTxSubmit(e){var t,n,r;null===(t=this.terminal.current)||void 0===t||t.print(e.methodName+" transaction (",6),null===(n=this.terminal.current)||void 0===n||n.printLink(""+e.txHash.slice(0,6),()=>{window.open(`${fe.BLOCK_EXPLORER_URL}/${e.txHash}`)},4),null===(r=this.terminal.current)||void 0===r||r.println(") submitted",6),Pr.getInstance().txSubmit(e)}onTxConfirmed(e){var t,n,r;const i=Pr.getInstance();null===(t=this.terminal.current)||void 0===t||t.print(e.methodName+" transaction (",0),null===(n=this.terminal.current)||void 0===n||n.printLink(""+e.txHash.slice(0,6),()=>{window.open(`${fe.BLOCK_EXPLORER_URL}/${e.txHash}`)},4),null===(r=this.terminal.current)||void 0===r||r.println(") confirmed",0),Pr.getInstance().txConfirm(e);const o=Jr(this.account,"AutoClearConfirmedTransactionsAfterSeconds");o>=0&&setTimeout(()=>{i.clearNotification(e.actionId)},1e3*o)}onTxReverted(e){var t,n,r;const i=Pr.getInstance();null===(t=this.terminal.current)||void 0===t||t.print(e.methodName+" transaction (",5),null===(n=this.terminal.current)||void 0===n||n.printLink(""+e.txHash.slice(0,6),()=>{window.open(`${fe.BLOCK_EXPLORER_URL}/${e.txHash}`)},4),null===(r=this.terminal.current)||void 0===r||r.println(") reverted",5),i.txRevert(e)}onTxIntentFail(e,t){var n;const r=Pr.getInstance();r.unsubmittedTxFail(e,t),null===(n=this.terminal.current)||void 0===n||n.println("[TX ERROR]: "+t.message.slice(0,1e4),5),this.entityStore.clearUnconfirmedTxIntent(e);const i=Jr(this.account,"AutoClearRejectedTransactionsAfterSeconds");i>=0&&setTimeout(()=>{r.clearNotification(e.actionId)},1e3*i)}getGptCreditPriceEmitter(){return this.gptCreditPriceEtherEmitter$}getGptCreditBalanceEmitter(){return this.myGPTCredits$}getAccount(){return this.account}getContractAddress(){return this.contractsAPI.getContractAddress()}getTwitter(e){var t;let n;if(n=e||this.getAccount(),!n)return;return null===(t=this.players.get(n))||void 0===t?void 0:t.twitter}getEndTimeSeconds(){return this.endTimeSeconds}getTokenMintEndTimeSeconds(){return this.contractConstants.TOKEN_MINT_END_SECONDS}getPlanetRarity(){return this.contractConstants.PLANET_RARITY}getEnergyCurveAtPercent(e,t){return this.entityStore.getEnergyCurveAtPercent(e,t)}getSilverCurveAtPercent(e,t){return this.entityStore.getSilverCurveAtPercent(e,t)}getUpgrade(e,t){return this.contractConstants.upgrades[e][t]}getAllPlayers(){return Array.from(this.players.values())}getPlayer(e){if(e=e||this.account)return this.players.get(e)}getExploredChunks(){return this.persistentChunkStore.allChunks()}getPlanetsInWorldRectangle(e,t,n,r,i,o,a=!0){return this.entityStore.getPlanetsInWorldRectangle(e,t,n,r,i,o,a)}isRoundOver(){return Date.now()/1e3>this.getTokenMintEndTimeSeconds()}getWorldRadius(){return this.worldRadius}getWorldSilver(){return this.getAllOwnedPlanets().reduce((e,t)=>e+t.silver,0)}getUniverseTotalEnergy(){return this.getAllOwnedPlanets().reduce((e,t)=>e+t.energy,0)}getSilverOfPlayer(e){return this.getAllOwnedPlanets().filter(t=>t.owner===e).reduce((e,t)=>
834e+t.silver,0)}getEnergyOfPlayer(e){return this.getAllOwnedPlanets().filter(t=>t.owner===e).reduce((e,t)=>e+t.energy,0)}getPlayerScore(e){const t=this.players.get(e);return null==t?void 0:t.score}initMiningManager(e,t){if(this.minerManager)return;const n=new Ca(e,16);this.minerManager=Aa.create(this.persistentChunkStore,n,this.worldRadius,this.planetRarity,this.hashConfig,this.useMockHash),this.minerManager.setCores(t||Jr(this.account,"MiningCores")),this.minerManager.on("DiscoveredNewChunk",(e,t)=>{this.addNewChunk(e),this.hashRate=e.chunkFootprint.sideLength**2/(t/1e3),this.emit(Yl.DiscoveredNewChunk,e)});$r(this.account,"IsMining")&&this.minerManager.startExplore()}setMiningPattern(e){this.minerManager&&this.minerManager.setMiningPattern(e)}getMiningPattern(){return this.minerManager?this.minerManager.getMiningPattern():void 0}setMinerCores(e){Ur(this.account,"MiningCores",e+"")}isMining(){var e;return(null===(e=this.minerManager)||void 0===e?void 0:e.isMining())||!1}setSnarkCacheSize(e){this.snarkHelper.setSnarkCacheSize(e)}getCurrentlyExploringChunk(){if(this.minerManager)return this.minerManager.getCurrentlyExploringChunk()}hasJoinedGame(){return this.players.has(this.account)}getNextRevealCountdownInfo(){var e;if(!this.account)throw new Error("no account set");return{myLastRevealTimestamp:(null===(e=this.players.get(this.account))||void 0===e?void 0:e.lastRevealTimestamp)||void 0,currentlyRevealing:!!this.entityStore.getUnconfirmedReveal(),revealCooldownTime:this.contractConstants.LOCATION_REVEAL_COOLDOWN}}getNextClaimCountdownInfo(){var e,t;if(!this.account)throw new Error("no account set");return{myLastClaimTimestamp:(null===(e=this.players.get(this.account))||void 0===e?void 0:e.lastClaimTimestamp)||void 0,currentlyClaiming:!!this.entityStore.getUnconfirmedClaim(),claimCooldownTime:(null===(t=this.contractConstants)||void 0===t?void 0:t.CLAIM_PLANET_COOLDOWN)||0}}getMyArtifacts(){if(!this.account)return[];return[...this.entityStore.getArtifactsOwnedBy(this.account),...this.entityStore.getArtifactsOnPlanetsOwnedBy(this.account)]}getPlanetWithCoords(e){return this.entityStore.getPlanetWithCoords(e)}getPlanetWithId(e){return e&&this.entityStore.getPlanetWithId(e)}getPlanetsWithIds(e){return e.map(e=>this.getPlanetWithId(e)).filter(e=>!!e)}getStalePlanetWithId(e){return this.entityStore.getPlanetWithId(e,!1)}getMyScore(){if(!this.account)return;const e=this.players.get(this.account);return null==e?void 0:e.score}getArtifactWithId(e){return this.entityStore.getArtifactById(e)}getArtifactsWithIds(e){return e.map(e=>this.getArtifactWithId(e))}getPlanetLevel(e){return this.entityStore.getPlanetLevel(e)}getLocationOfPlanet(e){return this.entityStore.getLocationOfPlanet(e)}getAllVoyages(){return this.entityStore.getAllVoyages()}getAllPlanets(){return this.entityStore.getAllPlanets()}getAllOwnedPlanets(){return this.entityStore.getAllOwnedPlanets()}getMyPlanets(){return this.getAllOwnedPlanets().filter(e=>e.owner===this.account)}getRevealedLocations(){return this.entityStore.getRevealedLocations()}getClaimedLocations(){return this.entityStore.getClaimedLocations()}spaceTypeFromPerlin(e){return this.entityStore.spaceTypeFromPerlin(e)}getHashesPerSec(){return this.hashRate}async getSignedTwitter(e){return this.ethConnection.signMessage(e)}getPrivateKey(){return this.ethConnection.getPrivateKey()}getMyBalanceEth(){return this.account?Object(Jt.weiToEth)(this.ethConnection.getMyBalance()||Vt.a.from("0")):0}getMyBalance$(){return this.ethConnection.myBalance$}getUnconfirmedMoves(){return this.entityStore.getUnconfirmedMoves()}getUnconfirmedUpgrades(){return this.entityStore.getUnconfirmedUpgrades()}getUnconfirmedWormholeActivations(){return this.entityStore.getUnconfirmedWormholeActivations()}getWormholes(){return this.entityStore.getWormholes()}getHomeCoords(){if(this.homeLocation)return{x:this.homeLocation.coords.x,y:this.homeLocation.coords.y}}getHomeHash(){var e;return null===(e=this.homeLocation)||void 0===e?void 0:e.hash}getHashConfig(){return{...this.hashConfig}}hasMinedChunk(e){return this.persistentChunkStore.hasMinedChunk(e)}getChunk(e){return this.persistentChunkStore.getChunkByFootprint(e)}getChunkStore(){return this.persistentChunkStore}getPerlinThresholds(){return[this.contractConstants.PERLIN_THRESHOLD_1,this.contractConstants.PERLIN_THRESHOLD_2,this.contractConstants.PERLIN_THRESHOLD_3]}startExplore(){this.minerManager&&(Hr(this.account,"IsMining",!0),this.minerManager.startExplore())}stopExplore(){this.minerManager&&(Hr(this.account,"IsMining",!1),this.hashRate=0,this.minerManager.stopExplore())}setRadius(e){this.worldRadius=e,this.minerManager&&this.minerManager.setRadius(this.worldRadius)}async refreshTwitters(){const e=await gi();this.setPlayerTwitters(e)}setPlayerTwitters(e){for(const[t,n]of this.players.entries()){const r=e[t];n.twitter=r}this.playersUpdated$.publish()}async submitVerifyTwitter(e){if(!this.account)return Promise.resolve(!1);const t=await(async e=>
834{try{return(await fetch("/twitter/verify-twitter",{method:"POST",body:JSON.stringify({verifyMessage:e}),headers:{"Content-Type":"application/json"}}).then(e=>e.json())).success}catch(e){return console.error("error when verifying twitter handle: "+e),!1}})(await this.ethConnection.signMessageObject({twitter:e}));return await this.refreshTwitters(),t}checkGameHasEnded(){var e;return Date.now()/1e3>this.endTimeSeconds&&(null===(e=this.terminal.current)||void 0===e||e.println("[ERROR] Game has ended."),!0)}getNextBroadcastAvailableTimestamp(){var e;if(!this.account)throw new Error("no account set");const t=null===(e=this.players.get(this.account))||void 0===e?void 0:e.lastRevealTimestamp;return t?1e3*(t+this.contractConstants.LOCATION_REVEAL_COOLDOWN):Date.now()}getNextClaimAvailableTimestamp(){var e;if(!this.account)throw new Error("no account set");const t=null===(e=this.players.get(this.account))||void 0===e?void 0:e.lastClaimTimestamp;return t?this.contractConstants.CLAIM_PLANET_COOLDOWN?1e3*(t+this.contractConstants.CLAIM_PLANET_COOLDOWN):0:Date.now()}claimLocation(e){var t,n;if(this.checkGameHasEnded())return this;if(!this.account)throw new Error("no account set");const r=this.entityStore.getPlanetWithId(e);if(!r)throw new Error("you can't reveal a planet you haven't discovered");if(r.owner!==this.account)throw new Error("you can't claim a planet you down't own");if(r.claimer===this.account)throw new Error("you've already claimed this planet");if(!ct(r))throw new Error("you can't reveal a planet whose coordinates you don't know");if(r.unconfirmedClaim)throw new Error("you're already claiming this planet's location");if(r.planetLevel<fe.PLANET_CLAIM_MIN_LEVEL)throw new Error("you can't claim a planet whose level is less than "+fe.PLANET_CLAIM_MIN_LEVEL);if(this.entityStore.getUnconfirmedClaim())throw new Error("you're already broadcasting coordinates");if((null===(t=this.players.get(this.account))||void 0===t?void 0:t.lastClaimTimestamp)&&Date.now()<this.getNextClaimAvailableTimestamp())throw new Error("still on cooldown for claiming");localStorage.setItem((null===(n=this.getAccount())||void 0===n?void 0:n.toLowerCase())+"-claimLocationId",e);const i={actionId:pt(),methodName:"claim",locationId:e,location:r.location};return this.handleTxIntent(i),this.snarkHelper.getRevealArgs(r.location.coords.x,r.location.coords.y).then(e=>{var t,n,r;return null===(t=this.terminal.current)||void 0===t||t.println("CLAIM: calculated SNARK with args:",1),null===(n=this.terminal.current)||void 0===n||n.println(JSON.stringify(ft(e.slice(0,3))),1),null===(r=this.terminal.current)||void 0===r||r.newline(),this.contractsAPI.claim(e,i)}).catch(e=>{this.onTxIntentFail(i,e)}),this}revealLocation(e){var t,n;if(this.checkGameHasEnded())return this;if(!this.account)throw new Error("no account set");const r=this.entityStore.getPlanetWithId(e);if(!r)throw new Error("you can't reveal a planet you haven't discovered");if(!ct(r))throw new Error("you can't reveal a planet whose coordinates you don't know");if(r.coordsRevealed)throw new Error("this planet's location is already revealed");if(r.unconfirmedReveal)throw new Error("you're already revealing this planet's location");if(this.entityStore.getUnconfirmedReveal())throw new Error("you're already broadcasting coordinates");if((null===(t=this.players.get(this.account))||void 0===t?void 0:t.lastRevealTimestamp)&&Date.now()<this.getNextBroadcastAvailableTimestamp())throw new Error("still on cooldown for broadcasting");localStorage.setItem((null===(n=this.getAccount())||void 0===n?void 0:n.toLowerCase())+"-revealLocationId",e);const i={actionId:pt(),methodName:"revealLocation",locationId:e,location:r.location};return this.handleTxIntent(i),this.snarkHelper.getRevealArgs(r.location.coords.x,r.location.coords.y).then(e=>{var t,n,r;return null===(t=this.terminal.current)||void 0===t||t.println("REVEAL: calculated SNARK with args:",1),null===(n=this.terminal.current)||void 0===n||n.println(JSON.stringify(ft(e.slice(0,3))),1),null===(r=this.terminal.current)||void 0===r||r.newline(),this.contractsAPI.reveal(e,i)}).catch(e=>{this.onTxIntentFail(i,e)}),this}joinGame(e){if(this.checkGameHasEnded())return this;let t,n;return this.findRandomHomePlanet().then(async r=>{var i,o,a,s,l,c,u,f;this.homeLocation=r.location,null===(i=this.terminal.current)||void 0===i||i.println(""),null===(o=this.terminal.current)||void 0===o||o.println(`Found Suitable Home Planet: ${It.getPlanetName(r)} `),null===(a=this.terminal.current)||void 0===a||a.println(`Its coordinates are: (${r.location.coords.x}, ${r.location.coords.y})`),null===(s=this.terminal.current)||void 0===s||s.println(""),await this.persistentChunkStore.addHomeLocation(r.location),t=pt(),n={actionId:t,methodName:"initializePlayer",locationId:r.location.hash,location:r.location},this.handleTxIntent(n),null===(l=this.terminal.current)||void 0===l||l.println("INIT: proving that planet exists",1);
834const d=await this.snarkHelper.getInitArgs(r.location.coords.x,r.location.coords.y,Math.floor(Math.sqrt(r.location.coords.x**2+r.location.coords.y**2))+1);for(this.initMiningManager(r.location.coords);;)try{null===(c=this.terminal.current)||void 0===c||c.println("INIT: calculated SNARK with args:",1),null===(u=this.terminal.current)||void 0===u||u.println(JSON.stringify(ft(d.slice(0,3))),1),null===(f=this.terminal.current)||void 0===f||f.newline(),await this.contractsAPI.initializePlayer(d,n);break}catch(t){if(!e)throw t;if(await e(t))continue}}).catch(e=>{this.onTxIntentFail(n,e),this.emit(Yl.InitializedPlayerError,e)}),this}locationFromCoords(e){return{coords:e,hash:Object(Gt.locationIdFromBigInt)(this.planetHashMimc(e.x,e.y)),perlin:this.spaceTypePerlin(e,!0),biomebase:this.biomebasePerlin(e,!0)}}async addAccount(e){const t=this.locationFromCoords(e);return await this.persistentChunkStore.addHomeLocation(t),this.initMiningManager(e),this.homeLocation=t,!0}async findRandomHomePlanet(){return new Promise((e,t)=>{var n,r,i,o,a,s,l,c,u,f,d;const h=this.contractConstants.INIT_PERLIN_MIN,p=this.contractConstants.INIT_PERLIN_MAX;let m,g,v,y,b=0,w=Math.sqrt(Math.max(Math.PI*this.worldRadius**2-this.contractConstants.SPAWN_RIM_AREA,0)/Math.PI);0===this.contractConstants.SPAWN_RIM_AREA&&(w=0);do{m=Math.random()*this.worldRadius*2-this.worldRadius,g=Math.random()*this.worldRadius*2-this.worldRadius,v=Math.sqrt(m**2+g**2),y=this.spaceTypePerlin({x:m,y:g},!1)}while(y>=p||y<h||v>=this.worldRadius||v<=w);const E=new URLSearchParams(window.location.search);if(E.has("searchCenter")){const e=null===(n=E.get("searchCenter"))||void 0===n?void 0:n.split(",");e&&(m=parseInt(e[0],10),g=parseInt(e[1],10))}const k=new Ca({x:m,y:g},16),x=new Sa(h,p,this.hashConfig),S=Aa.create(x,k,this.worldRadius,this.planetRarity,this.hashConfig,this.useMockHash);null===(r=this.terminal.current)||void 0===r||r.println(""),null===(i=this.terminal.current)||void 0===i||i.println("Initializing Home Planet Search..."),null===(o=this.terminal.current)||void 0===o||o.println(""),null===(a=this.terminal.current)||void 0===a||a.println("Chunked explorer: start!"),null===(s=this.terminal.current)||void 0===s||s.println("Each chunk contains 16x16 coordinates.");const _=1/this.contractConstants.PLANET_RARITY*100;null===(l=this.terminal.current)||void 0===l||l.print("Each coordinate has a"),null===(c=this.terminal.current)||void 0===c||c.print(` ${_}%`,3),null===(u=this.terminal.current)||void 0===u||u.print(" chance of spawning a planet."),null===(f=this.terminal.current)||void 0===f||f.println(""),null===(d=this.terminal.current)||void 0===d||d.println("Hashing first 2048 potential home planets..."),S.on("DiscoveredNewChunk",n=>{var r;x.addChunk(n),b++,b%8==0&&(null===(r=this.terminal.current)||void 0===r||r.println(`Hashed ${256*b} potential home planets...`));for(const r of n.planetLocations){const n=r.perlin,i=r.coords.x,o=r.coords.y,a=this.entityStore.planetLevelFromHexPerlin(r.hash,r.perlin),s=this.entityStore.planetTypeFromHexPerlin(r.hash,r.perlin),l=this.getPlanetWithId(r.hash),c=Math.sqrt(i**2+o**2);if(n<p&&n>=h&&c<this.worldRadius&&c>w&&a===fe.MIN_PLANET_LEVEL&&s===de.PlanetType.PLANET&&(!l||!l.isInContract)){S.stopExplore(),S.destroy();const n=this.getGameObjects().getPlanetWithLocation(r);n?e(n):t(new Error("Unable to create default planet for your home planet's location."));break}}}),S.startExplore()})}async prospectPlanet(e,t=!1){var n;const r=this.entityStore.getPlanetWithId(e);if(!r||!ct(r))throw new Error("you can't prospect a planet you haven't discovered");if(!t){if(this.checkGameHasEnded())return this;if(!r)throw new Error("you can't prospect a planet you haven't discovered");if(r.owner!==this.getAccount())throw new Error("you can't prospect a planet you don't own");if(!ct(r))throw new Error("you don't know this planet's location");if(void 0!==r.prospectedBlockNumber)throw new Error("someone already prospected this planet");if(r.unconfirmedFindArtifact)throw new Error("you're already looking bro...");if(r.planetType!==de.PlanetType.RUINS)throw new Error("this planet doesn't have an artifact on it.");if(r.energy<.95*r.energyCap)throw new Error("you can only prospect planets that are 95% to the energy cap")}localStorage.setItem((null===(n=this.getAccount())||void 0===n?void 0:n.toLowerCase())+"-prospectPlanet",e);const i=pt(),o={actionId:i,methodName:"prospectPlanet",planetId:e};this.handleTxIntent(o),await this.contractsAPI.prospectPlanet(e,i
834).then(()=>{Pr.getInstance().artifactProspected(r)}).catch(e=>{this.onTxIntentFail(o,e)})}findArtifact(e,t=!1){var n;const r=this.entityStore.getPlanetWithId(e);if(!r)throw new Error("you can't find artifacts on a planet you haven't discovered");if(!ct(r))throw new Error("you don't know the biome of this planet");if(!t){if(this.checkGameHasEnded())throw new Error("game has ended");if(r.owner!==this.getAccount())throw new Error("you can't find artifacts on planets you don't own");if(r.hasTriedFindingArtifact)throw new Error("someone already tried finding an artifact on this planet");if(r.unconfirmedFindArtifact)throw new Error("you're already looking bro...");if(r.planetType!==de.PlanetType.RUINS)throw new Error("this planet doesn't have an artifact on it.")}localStorage.setItem((null===(n=this.getAccount())||void 0===n?void 0:n.toLowerCase())+"-findArtifactOnPlanet",e);const i=pt(),o={actionId:i,methodName:"findArtifact",planetId:e};return this.handleTxIntent(o),this.snarkHelper.getFindArtifactArgs(r.location.coords.x,r.location.coords.y).then(e=>{var t,n,o;return null===(t=this.terminal.current)||void 0===t||t.println("ARTIFACT: calculated SNARK with args:",1),null===(n=this.terminal.current)||void 0===n||n.println(JSON.stringify(ft(e.slice(0,3))),1),null===(o=this.terminal.current)||void 0===o||o.newline(),this.contractsAPI.findArtifact(r.location,e,i)}).then(()=>this.waitForPlanet(r.locationId,({current:e})=>e.heldArtifactIds.map(this.getArtifactWithId.bind(this)).find(e=>(null==e?void 0:e.planetDiscoveredOn)===r.locationId)).then(e=>{if(!e)throw new Error("Artifact not found?");Pr.getInstance().artifactFound(r,e)})).catch(e=>{this.onTxIntentFail(o,e)}),this}getContractConstants(){return this.contractConstants}depositArtifact(e,t,n=!0){var r,i,o,a;if(!n&&this.checkGameHasEnded())return this;localStorage.setItem((null===(r=this.getAccount())||void 0===r?void 0:r.toLowerCase())+"-depositPlanet",e),localStorage.setItem((null===(i=this.getAccount())||void 0===i?void 0:i.toLowerCase())+"-depositArtifact",t);const s={actionId:pt(),methodName:"depositArtifact",locationId:e,artifactId:t};return this.handleTxIntent(s),null===(o=this.terminal.current)||void 0===o||o.println("DEPOSIT_ARTIFACT: sending deposit to blockchain",1),null===(a=this.terminal.current)||void 0===a||a.newline(),this.contractsAPI.depositArtifact(s).catch(e=>this.onTxIntentFail(s,e)),this}withdrawArtifact(e,t,n=!0){var r,i,o,a,s;
834if(!n){if(this.checkGameHasEnded())return this;if(!this.entityStore.getPlanetWithId(e))return console.error("tried to withdraw from unknown planet"),this;if(!t)return console.error("must supply an artifact id"),this}if(localStorage.setItem((null===(r=this.getAccount())||void 0===r?void 0:r.toLowerCase())+"-withdrawPlanet",e),localStorage.setItem((null===(i=this.getAccount())||void 0===i?void 0:i.toLowerCase())+"-withdrawArtifact",t),Date.now()/1e3>this.endTimeSeconds)return null===(o=this.terminal.current)||void 0===o||o.println("[ERROR] Game has ended."),this;const l={actionId:pt(),methodName:"withdrawArtifact",locationId:e,artifactId:t};return this.handleTxIntent(l),null===(a=this.terminal.current)||void 0===a||a.println("WITHDRAW_ARTIFACT: sending withdrawal to blockchain",1),null===(s=this.terminal.current)||void 0===s||s.newline(),this.contractsAPI.withdrawArtifact(l).catch(e=>this.onTxIntentFail(l,e)),this}activateArtifact(e,t,n,r=!1){var i,o;if(!r){if(this.checkGameHasEnded())return this;if(!this.entityStore.getPlanetWithId(e))throw new Error("tried to activate on an unknown planet");if(!t)throw new Error("must supply an artifact id")}localStorage.setItem((null===(i=this.getAccount())||void 0===i?void 0:i.toLowerCase())+"-activatePlanet",e),localStorage.setItem((null===(o=this.getAccount())||void 0===o?void 0:o.toLowerCase())+"-activateArtifact",t);const a={actionId:pt(),methodName:"activateArtifact",locationId:e,artifactId:t,wormholeTo:n};return this.handleTxIntent(a),this.contractsAPI.activateArtifact(a).catch(e=>this.onTxIntentFail(a,e)),this}deactivateArtifact(e,t,n=!1){var r,i;if(!n){if(this.checkGameHasEnded())return this;if(!this.entityStore.getPlanetWithId(e))throw new Error("tried to deactivate on an unknown planet")}localStorage.setItem((null===(r=this.getAccount())||void 0===r?void 0:r.toLowerCase())+"-deactivatePlanet",e),localStorage.setItem((null===(i=this.getAccount())||void 0===i?void 0:i.toLowerCase())+"-deactivateArtifact",t);const o={actionId:pt(),methodName:"deactivateArtifact",locationId:e,artifactId:t};this.handleTxIntent(o),this.contractsAPI.deactivateArtifact(o).catch(e=>this.onTxIntentFail(o,e))}withdrawSilver(e,t,n=!1){var r;if(!n){if(this.checkGameHasEnded())return this;if(!this.account)return this;const n=this.entityStore.getPlanetWithId(e);if(!n)throw new Error("tried to withdraw silver from an unknown planet");if(n.planetType!==de.PlanetType.TRADING_POST)throw new Error("can only withdraw silver from spacetime rips");if(n.owner!==this.account)throw new Error("can only withdraw silver from a planet you own");if(n.unconfirmedWithdrawSilver)throw new Error("a withdraw silver action is already in progress for this planet");if(t>n.silver)throw new Error("not enough silver to withdraw!");if(0===t)throw new Error("must withdraw more than 0 silver!");if(n.destroyed)throw new Error("can't withdraw silver from a destroyed planet")}localStorage.setItem((null===(r=this.getAccount())||void 0===r?void 0:r.toLowerCase())+"-withdrawSilverPlanet",e);const i={actionId:pt(),methodName:"withdrawSilver",locationId:e,amount:t};this.handleTxIntent(i),this.contractsAPI.withdrawSilver(i).catch(e=>this.onTxIntentFail(i,e))}async refreshServerPlanetStates(e){const t=this.getPlanetsWithIds(e);e.forEach(e=>this.getGameObjects().updatePlanet(e,e=>{e.loadingServerState=!0}));const n=await async function(e){if(0===e.planets.length)return{};try{const t=await fetch("/messages",{headers:{"Content-Type":"application/json"},body:JSON.stringify(e),method:"POST"}),n=await t.json();if(500===t.status)throw new Error("failed to load messages");return n}catch(e){throw e}}({planets:e});t.forEach(e=>{const t=Fl(e);e.messages=n[e.locationId];const r=Fl(e);void 0===t&&void 0!==r?e.emojiZoopAnimation=function(e,t){const n={percent:0};return setTimeout(()=>{Qs({targets:n,percent:1,duration:e,easing:"easeInOutCubic",update:()=>{}})},void 0===t?0:t),new de.DFAnimation(()=>n.percent)}
834(2e3):void 0===r&&void 0!==t&&(e.emojiZoopAnimation=void 0,e.emojiZoopOutAnimation=function(e,t){const n={percent:0};return Qs({targets:n,percent:1,duration:e,easing:"easeInOutCubic",update:()=>{}}),new de.DFStatefulAnimation(t,()=>n.percent)}(3e3,t.body.emoji))}),e.forEach(e=>this.getGameObjects().updatePlanet(e,e=>{e.loadingServerState=!1,e.needsServerRefresh=!1}))}setPlanetEmoji(e,t){return this.submitPlanetMessage(e,de.PlanetMessageType.EmojiFlag,{emoji:t})}async clearEmoji(e){var t,n,r;if(void 0===this.account)throw new Error("can't clear emoji: not logged in");if(null===(t=this.getPlanetWithId(e))||void 0===t?void 0:t.unconfirmedClearEmoji)throw new Error("can't clear emoji: alreading clearing emoji from "+e);this.getGameObjects().updatePlanet(e,e=>{e.unconfirmedClearEmoji=!0});const i=await this.ethConnection.signMessageObject({locationId:e,ids:(null===(r=null===(n=this.getPlanetWithId(e))||void 0===n?void 0:n.messages)||void 0===r?void 0:r.map(e=>e.id))||[]});try{await async function(e){try{if(500===(await fetch("/delete-messages",{headers:{"Content-Type":"application/json"},body:JSON.stringify(e),method:"POST"})).status)throw new Error("server error")}catch(t){console.log("failed delete messages",e),console.log(t)}}(i)}catch(e){throw e}finally{this.getGameObjects().updatePlanet(e,e=>{e.needsServerRefresh=!0,e.unconfirmedClearEmoji=!1})}await this.refreshServerPlanetStates([e])}async submitDisconnectTwitter(e){await(async e=>{try{return(await fetch("/twitter/disconnect",{method:"POST",body:JSON.stringify({disconnectMessage:e}),headers:{"Content-Type":"application/json"}}).then(e=>e.json())).success}catch(e){return console.error("error when disconnecting twitter handle: "+e),!1}})(await this.ethConnection.signMessageObject({twitter:e})),await this.refreshTwitters()}async submitPlanetMessage(e,t,n){var r;if(void 0===this.account)throw new Error("can't submit planet message not logged in");if(null===(r=this.getPlanetWithId(e))||void 0===r?void 0:r.unconfirmedAddEmoji)throw new Error("can't submit planet message: already submitting for planet "+e);this.getGameObjects().updatePlanet(e,e=>{e.unconfirmedAddEmoji=!0});const i=await this.ethConnection.signMessageObject({locationId:e,sender:this.account,type:t,body:n});try{await async function(e){try{if(500===(await fetch("/add-message",{headers:{"Content-Type":"application/json"},body:JSON.stringify(e),method:"POST"})).status)throw new Error("server error")}catch(t){console.log("failed to add message",e),console.log(t)}}(i)}catch(e){throw e}finally{this.getGameObjects().updatePlanet(e,e=>{e.unconfirmedAddEmoji=!1,e.needsServerRefresh=!0})}await this.refreshServerPlanetStates([e])}async verifyMessage(e){const t=JSON.stringify(e.message);return Object(Jt.verifySignature)(t,e.signature,e.sender)}move(e,t,n,r,i,o=!1){var a,s,l;if(this.checkGameHasEnded())return this;if(localStorage.setItem((null===(a=this.getAccount())||void 0===a?void 0:a.toLowerCase())+"-fromPlanet",e),localStorage.setItem((null===(s=this.getAccount())||void 0===s?void 0:s.toLowerCase())+"-toPlanet",t),!o&&Date.now()/1e3>this.endTimeSeconds)return null===(l=this.terminal.current)||void 0===l||l.println("[ERROR] Game has ended."),this;const c=this.entityStore.getLocationOfPlanet(e),u=this.entityStore.getLocationOfPlanet(t);if(!c)return console.error("tried to move from planet that does not exist"),this;if(!u)return console.error("tried to move from planet that does not exist"),this;const f=c.coords.x,d=c.coords.y,h=u.coords.x,p=u.coords.y,m=h-f,g=p-d,v=Math.ceil(Math.sqrt(m**2+g**2)),y=n,b=r;if(h**2+p**2>=this.worldRadius**2)throw new Error("attempted to move out of bounds");const w=this.entityStore.getPlanetWithLocation(c);if(!o&&!this.account||!w||w.owner!==this.account)throw new Error("attempted to move from a planet not owned by player");const E=pt(),k={actionId:E,methodName:"move",from:c.hash,to:u.hash,forces:y,silver:b};if(i){const e=this.entityStore.getArtifactById(i);if(!o){if(!e)throw new Error("couldn't find this artifact");if(Dt(e))throw new Error("can't move an activated artifact");if(!w.heldArtifactIds.includes(i))throw new Error("that artifact isn't on this planet!")}k.artifact=i}return this.handleTxIntent(k),this.snarkHelper.getMoveArgs(f,d,h,p,this.worldRadius,v).then(e=>{var t,n,r;return null===(t=this.terminal.current)||void 0===t||t.println("MOVE: calculated SNARK with args:",1),null===(n=this.terminal.current)||void 0===n||n.println(JSON.stringify(ft(e)),1),null===(r=this.terminal.current)||void 0===r||r.newline(),this.contractsAPI.move(E,e,y,b,i)}).catch(e=>{this.onTxIntentFail(k,e)}),this}upgrade(e,t,n=!1){var r,i,o,a;if(this.checkGameHasEnded())return this;localStorage.setItem((null===(r=this.getAccount())||void 0===r?void 0:r.toLowerCase())+"-upPlanet",e),localStorage.setItem((null===(i=this.getAccount())||void 0===i?void 0:i.toLowerCase())+"-branch",t.toString());const s=[Object(Gt.locationIdToDecStr)(e),t.toString()],l=pt(),c={actionId:l,methodName:"upgradePlanet",locationId:e,upgradeBranch:t};return this.handleTxIntent(c),null===(o=this.terminal.current)||void 0===o||o.println("UPGRADE: sending upgrade to blockchain",1),null===(a=this.terminal.current)||void 0===a||a.newline(),this.contractsAPI.upgradePlanet(s,l).cat
834ch(e=>this.onTxIntentFail(c,e)),this}buyHat(e,t=!1){var n,r,i,o,a,s;if(this.checkGameHasEnded())return this;const l=this.entityStore.getLocationOfPlanet(e);if(!l)return console.error("planet not found"),null===(n=this.terminal.current)||void 0===n||n.println("[TX ERROR] Planet not found"),this;const c=this.entityStore.getPlanetWithLocation(l);if(!c)return console.error("planet not found"),null===(r=this.terminal.current)||void 0===r||r.println("[TX ERROR] Planet not found"),this;localStorage.setItem((null===(i=this.getAccount())||void 0===i?void 0:i.toLowerCase())+"-hatPlanet",e),localStorage.setItem((null===(o=this.getAccount())||void 0===o?void 0:o.toLowerCase())+"-hatLevel",c.hatLevel.toString());const u=pt(),f={actionId:u,methodName:"buyHat",locationId:e};return this.handleTxIntent(f),null===(a=this.terminal.current)||void 0===a||a.println("BUY HAT: sending request to blockchain",1),null===(s=this.terminal.current)||void 0===s||s.newline(),this.contractsAPI.buyHat(Object(Gt.locationIdToDecStr)(e),c.hatLevel,u).catch(e=>{this.onTxIntentFail(f,e)}),this}transferOwnership(e,t,n=!1){var r,i,o,a;if(!n){if(this.checkGameHasEnded())return this;const t=this.entityStore.getLocationOfPlanet(e);if(!t)return console.error("planet not found"),null===(r=this.terminal.current)||void 0===r||r.println("[TX ERROR] Planet not found"),this;if(!this.entityStore.getPlanetWithLocation(t))return console.error("planet not found"),null===(i=this.terminal.current)||void 0===i||i.println("[TX ERROR] Planet not found"),this}localStorage.setItem((null===(o=this.getAccount())||void 0===o?void 0:o.toLowerCase())+"-transferPlanet",e),localStorage.setItem((null===(a=this.getAccount())||void 0===a?void 0:a.toLowerCase())+"-transferOwner",t);const s=pt(),l={actionId:s,methodName:"transferOwnership",planetId:e,newOwner:t};return this.handleTxIntent(l),this.contractsAPI.transferOwnership(e,t,s).catch(e=>this.onTxIntentFail(l,e)),this}buyGPTCredits(e){var t,n;if(this.checkGameHasEnded())return this;const r=this.gptCreditPriceEther*e;if(r>this.getMyBalanceEth())throw new Error("not enough balance to buy credits!");if(this.entityStore.getUnconfirmedBuyGPTCredits())throw new Error("already processing GPT credit purchase");localStorage.setItem((null===(t=this.getAccount())||void 0===t?void 0:t.toLowerCase())+"-buyGPTCreditAmount",e.toString()),localStorage.setItem((null===(n=this.getAccount())||void 0===n?void 0:n.toLowerCase())+"-buyGPTCreditCost",r.toString());const i=pt(),o={actionId:i,methodName:"buyCredits",amount:e};return this.handleTxIntent(o),this.contractsAPI.buyGPTCredits(e,i).catch(e=>this.onTxIntentFail(o,e)),this}handleTxIntent(e){this.entityStore.onTxIntent(e)}getIsBuyingCreditsEmitter(){return this.entityStore.getIsBuyingCreditsEmitter()}async getConversation(e){return async function(e){const t=await fetch("/conversation/get_conversation/"+e,{headers:{"Content-Type":"application/json"}});if(404===t.status)return;const n=await t.json();if(n.error)throw new Error(n.error);return n.conversation}(e)}async startConversation(e){if(!this.entityStore.getArtifactById(e))throw new Error("artifact with this ID does not exist");if(this.entityStore.getArtifactController(e)!==this.account)throw new Error("can't talk with artifact you don't own");if(!this.account)throw new Error("must be logged in");if(0===this.myGPTCredits)throw new Error("You don't have any GPT credits! You can purchase some below.");const t=Date.now(),n=ua()({timestamp:t,artifactId:e}),r=await this.ethConnection.signMessage(n),i=await async function(e,t,n,r){const i=await fetch("/conversation/start_conversation_v2",{headers:{"Content-Type":"application/json"},body:JSON.stringify({timestamp:e,player:t,signature:n,artifactIdStr:r}),method:"POST"}),o=await i.json();if(o.error)throw new Error(o.error);return o.conversation}(t,this.account,r,e);return await this.refreshMyGPTCredits(),i}async stepConversation(e,t){if(!this.entityStore.getArtifactById(e))throw new Error("artifact with this ID does not exist");if(this.entityStore.getArtifactController(e)!==this.account)throw new Error("can't talk with artifact you don't own");if(!this.account)throw new Error("must be logged in");if(0===this.myGPTCredits)throw new Error("You don't have any GPT credits! You can purchase some below.");const n=Date.now(),r=ua()({timestamp:n,artifactId:e,message:t}),i=await this.ethConnection.signMessage(r),o=await async function(e,t,n,r,i){if($e(Ue))throw console.log("too fast"),new Error("Too many requests. Please a few seconds before trying again.");Ue.push(Date.now()),Ue.shift();const o=await fetch("/conversation/step_conversation_v2",{headers:{"Content-Type":"application/json"},body:JSON.stringify({timestamp:e,player:t,signature:n,message:i,artifactIdStr:r}),method:"POST"}),a=await o.json();if(a.error)throw new Error(a.error);return a.conversation}(n,this.account,i,e,t);if(!o)throw new Error("you're probably being rate limited!");return await this.refreshMyGPTCredits(),o}
834addNewChunk(e){this.persistentChunkStore.addChunk(e,!0);for(const t of e.planetLocations)this.entityStore.addPlanetLocation(t),this.entityStore.isPlanetInContract(t.hash)&&this.hardRefreshPlanet(t.hash);return this}async bulkAddNewChunks(e){var t,n;null===(t=this.terminal.current)||void 0===t||t.println("IMPORTING MAP: if you are importing a large map, this may take a while...");const r=[];for(const t of e){this.persistentChunkStore.addChunk(t,!0);for(const e of t.planetLocations)this.entityStore.addPlanetLocation(e),this.entityStore.isPlanetInContract(e.hash)&&r.push(e.hash)}null===(n=this.terminal.current)||void 0===n||n.println(`downloading data for ${r.length} planets...`,1),this.bulkHardRefreshPlanets(r)}getMaxMoveDist(e,t){const n=this.getPlanetWithId(e);if(!n)throw new Error("origin planet unknown");return Dl(n,t)}getDist(e,t){const n=this.entityStore.getPlanetWithId(e),r=this.entityStore.getPlanetWithId(t);if(!n)throw new Error("origin planet unknown");if(!r)throw new Error("destination planet unknown");if(!ct(n))throw new Error("origin location unknown");if(!ct(r))throw new Error("destination location unknown");const i=this.getWormholeFactors(n,r);let o=this.getDistCoords(n.location.coords,r.location.coords);return i&&(o/=i.distanceFactor),o}getDistCoords(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}getPlanetsInRange(e,t){const n=this.entityStore.getPlanetWithId(e);if(!n)throw new Error("planet unknown");if(!ct(n))throw new Error("planet location unknown");const r=[],i=Dl(n,t);for(const e of this.getPlanetMap().values())ct(e)&&this.getDistCoords(n.location.coords,e.location.coords)<i&&r.push(e);return r}getEnergyNeededForMove(e,t,n){const r=this.getPlanetWithId(e);if(!r)throw new Error("origin planet unknown");const i=this.getDist(e,t)/r.range;return(n/r.energyCap+.05)*Math.pow(2,i)*r.energyCap}getEnergyArrivingForMove(e,t,n,r){const i=this.getPlanetWithId(e),o=this.getPlanetWithId(t);if(!i)throw new Error("unknown planet");if(void 0===n&&void 0===t)throw new Error("you must provide either a target planet or a distance");const a=t&&this.getDist(e,t)||n;if(o&&t){if(void 0!==this.getWormholeFactors(i,o)&&o.owner!==i.owner)return 0}let s=.5**(a/i.range)*r-.05*i.energyCap;return s<0&&(s=0),s}getActiveArtifact(e){return this.getArtifactsWithIds(e.heldArtifactIds).find(e=>e&&Dt(e))}getWormholeFactors(e,t){const n=this.getActiveArtifact(e),r=this.getActiveArtifact(t);let i;(null==n?void 0:n.artifactType)===de.ArtifactType.Wormhole&&n.wormholeTo===t.locationId&&(i=n.rarity),(null==r?void 0:r.artifactType)===de.ArtifactType.Wormhole&&r.wormholeTo===e.locationId&&(i=void 0===i?r.rarity:Math.max(i,r.rarity));if(i&&!(i<=de.ArtifactRarity.Unknown))return{distanceFactor:[0,2,4,6,8,10][i],speedFactor:[0,10,20,30,40,50][i]}}getTimeForMove(e,t){const n=this.getPlanetWithId(e);if(!n)throw new Error("origin planet unknown");return this.getDist(e,t)/(n.speed/100)}getTemperature(e){return 16*(16-this.spaceTypePerlin(e,!1))}async loadPlugins(){return this.persistentChunkStore.loadPlugins()}async savePlugins(e){await this.persistentChunkStore.savePlugins(e)}isPlanetMineable(e){return e.planetType===de.PlanetType.RUINS}getConstructors(){return{MinerManager:Aa,SpiralPattern:Ca,SwissCheesePattern:Ta,TowardsCenterPattern:Pa,TowardsCenterPatternV2:Oa}}spaceTypePerlin(e,t){return Object(rt.perlin)(e,{key:this.hashConfig.spaceTypeKey,scale:this.hashConfig.perlinLengthScale,mirrorX:this.hashConfig.perlinMirrorX,mirrorY:this.hashConfig.perlinMirrorY,floor:t})}biomebasePerlin(e,t){return Object(rt.perlin)(e,{key:this.hashConfig.biomebaseKey,scale:this.hashConfig.perlinLengthScale,mirrorX:this.hashConfig.perlinMirrorX,mirrorY:this.hashConfig.perlinMirrorY,floor:t})}getProcgenUtils(){return It}getUIEventEmitter(){return nr.getInstance()}getNotificationsManager(){return Pr.getInstance()}getPlanetMap(){return this.entityStore.getPlanetMap()}getArtifactMap(){return this.entityStore.getArtifactMap()}getMyPlanetMap(){return this.entityStore.getMyPlanetMap()}getMyArtifactMap(){return this.entityStore.getMyArtifactMap()}getPlanetUpdated$(){return this.entityStore.planetUpdated$}getArtifactUpdated$(){return this.entityStore.artifactUpdated$}getMyPlanetsUpdated$(){return this.entityStore.myPlanetsUpdated$}getMyArtifactsUpdated$(){return this.entityStore.myArtifactsUpdated$}loadContract(e,t){return this.ethConnection.loadContract(e,async(e,n,r)=>Object(Jt.createContract)(e,t,n,r))}testNotification(){Pr.getInstance().reallyLongNotification()}getGameObjects(){return this.entityStore}getDiagnostics(){return{...this.diagnostics}}updateDiagnostics(e){e(this.diagnostics)}waitForPlanet(e,t){const n=da(this.getPlanetMap(),e,this.getPlanetUpdated$()),r=function(e){let t;const n=Object(Or.monomitter)();return e.subscribe(e=>
834{n.publish({current:Me.a.cloneDeep(e),previous:t?Me.a.cloneDeep(t):Me.a.cloneDeep(e)}),t=Me.a.cloneDeep(e)}),n}(n);return new Promise((e,i)=>{r.subscribe(({current:o,previous:a})=>{try{const i=t({current:o,previous:a});i&&(n.clear(),r.clear(),e(i))}catch(e){n.clear(),r.clear(),i(e)}})})}}var ec=Ql,tc=n(76),nc=n.n(tc);const rc=n(270);function ic(e){return e.replace(/^\.\//,"").replace(/[_-]/g," ").replace(/\.[jt]sx?$/,"")}class oc{constructor(){this.rendered=!1,this.hasError=!1}}class ac{constructor(e){this.gameManager=e,this.pluginLibrary=[],this.pluginProcesses={},this.pluginProcessInfos={},this.plugins$=Object(Or.monomitter)()}destroy(e){if(this.pluginProcesses[e])try{const t=this.pluginProcesses[e];t&&"function"==typeof t.destroy&&t.destroy()}catch(t){this.pluginProcessInfos[e].hasError=!0,console.error("error when destroying plugin",t)}finally{delete this.pluginProcesses[e],delete this.pluginProcessInfos[e]}}async load(){this.pluginLibrary=await this.gameManager.loadPlugins(),this.onNewEmbeddedPlugins(rc.keys().map(e=>({id:e,name:ic(e),code:rc(e).default}))),this.notifyPluginLibraryUpdated()}async deletePlugin(e){this.pluginLibrary=this.pluginLibrary.filter(t=>t.id!==e),this.destroy(e),await this.gameManager.savePlugins(this.pluginLibrary),this.notifyPluginLibraryUpdated()}getPluginFromLibrary(e){return this.pluginLibrary.find(t=>t.id===e)}overwritePlugin(e,t,n){this.destroy(n);const r=this.getPluginFromLibrary(n);r&&(r.code=t,r.name=e,r.lastEdited=(new Date).getTime(),this.gameManager.savePlugins(this.pluginLibrary)),this.notifyPluginLibraryUpdated()}reorderPlugins(e){const t=e.map(e=>this.pluginLibrary.find(t=>t.id===e)).filter(e=>!!e);if(t.length!==this.pluginLibrary.length)throw new Error("to reorder the plugins, you must pass in precisely one id for each plugin");this.pluginLibrary=t,this.gameManager.savePlugins(this.pluginLibrary),this.notifyPluginLibraryUpdated()}addPluginToLibrary(e,t,n){const r={id:e,lastEdited:(new Date).getTime(),name:t,code:n};return this.pluginLibrary.push(r),this.gameManager.savePlugins(this.pluginLibrary),this.notifyPluginLibraryUpdated(),ac.copy(r)}async spawn(e){if(this.pluginProcesses[e])return this.pluginProcesses[e];const t=this.getPluginFromLibrary(e);if(!t)return;this.pluginProcessInfos[t.id]=new oc;const n=new File([t.code],t.name,{type:"text/javascript",lastModified:t.lastEdited}),r=URL.createObjectURL(n);try{const{default:t}=await import(r);void 0===this.pluginProcesses[e]&&(this.pluginProcesses[e]=new t)}catch(n){console.error(`Failed to start plugin: ${t.name} - Please review stack trace\n`,n),this.pluginProcessInfos[e].hasError=!0}return this.pluginProcesses[t.id]}async render(e,t){const n=await this.spawn(e),r=this.pluginProcessInfos[e];if(n&&"function"==typeof n.render&&r&&!r.rendered)try{await n.render(t),r.rendered=!0}catch(e){r.hasError=!0,console.log("failed to render plugin",e)}}getLibrary(){return this.pluginLibrary.map(ac.copy)}getProcessInfo(e){return ac.copy(this.pluginProcessInfos[e])}getAllProcessInfos(){const e=new Map;for(const t of Object.getOwnPropertyNames(this.pluginProcessInfos))e.set(t,ac.copy(this.pluginProcessInfos[t]));return e}drawAllRunningPlugins(e){for(const t of this.pluginLibrary){const n=this.pluginProcessInfos[t.id],r=this.pluginProcesses[t.id];if(r&&"function"==typeof r.draw&&!n.hasError)try{r.draw(e)}catch(e){console.log("failed to draw plugin",e),n.hasError=!0}}}hasPlugin(e){return this.pluginLibrary.some(t=>t.id===e.id)}onNewEmbeddedPlugins(e){for(const t of e)this.hasPlugin(t)||this.addPluginToLibrary(t.id,t.name,t.code)}notifyPluginLibraryUpdated(){this.plugins$.publish(this.getLibrary())}static copy(e){return JSON.parse(JSON.stringify(e))}}class sc extends Wt.EventEmitter{constructor(){super(),this.tutorialState=0}static getInstance(){return sc.instance||(sc.instance=new sc),sc.instance}setTutorialState(e){if(this.tutorialState=e,this.emit("StateChanged",e),12===e){Pr.getInstance().welcomePlayer()}}advance(){this.setTutorialState(Math.min(this.tutorialState+1,12))}reset(e){Hr(e,"TutorialOpen",!0),this.setTutorialState(0)}complete(e){this.setTutorialState(12),Hr(e.getAccount(),"TutorialCompleted",!0)}acceptInput(e){e===this.tutorialState&&this.advance()}}var lc=sc;class cc{constructor(e,t){this.cachedExploredChunks=new Set,this.cachedPlanets=new Map,this.gameManager=e,this.uiManager=t,this.startRefreshing()}startRefreshing(){setInterval(()=>{this.loadPlanetMessages()},1e4)}getPlanetsAndChunks(){var e,t;this.updateLocationsAndChunks();for(const n of this.cachedPlanets.values())null===(e=n.planet.emojiBobAnimation)||void 0===e||e.update(
834),null===(t=n.planet.emojiZoopAnimation)||void 0===t||t.update();return{chunks:this.cachedExploredChunks,cachedPlanets:this.cachedPlanets}}updateLocationsAndChunks(){const e=or.getInstance();this.recalculateViewportPlanets(e),this.recalculateViewportChunks(e),this.uiManager.updateDiagnostics(e=>{e.visibleChunks=this.cachedExploredChunks.size,e.visiblePlanets=this.cachedPlanets.size,e.totalPlanets=this.gameManager.getGameObjects().getAllPlanetsMap().size})}recalculateViewportChunks(e){if(this.uiManager.getIsHighPerfMode())return;const t=new Set;for(const n of this.uiManager.getExploredChunks())e.intersectsViewport(n)&&e.worldToCanvasDist(n.chunkFootprint.sideLength)>=3&&t.add(n);this.cachedExploredChunks=t}async loadPlanetMessages(){const e=[];for(const t of this.cachedPlanets.values())t.planet.isInContract&&e.push(t.planet.locationId);this.gameManager.refreshServerPlanetStates(e)}recalculateViewportPlanets(e){const t=this.getPlanetRadii(or.getInstance()),n=this.gameManager.getPlanetsInWorldRectangle(e.getViewportPosition().x-e.widthInWorldUnits/2,e.getViewportPosition().y-e.heightInWorldUnits/2,e.widthInWorldUnits,e.heightInWorldUnits,this.getVisiblePlanetLevels(e),t,!0),r=this.uiManager.getSelectedPlanet();r&&ct(r)&&n.push(r),this.replacePlanets(n)}replacePlanets(e){const t=this.getPlanetRadii(or.getInstance()),n=new Set(Array.from(this.cachedPlanets.keys()));e.forEach(e=>{n.delete(e.locationId);const r={planet:e,radii:t.get(e.planetLevel)};e.emojiBobAnimation||(e.emojiBobAnimation=function(e){const t=Date.now()+1e3*Math.random();return new de.DFAnimation(()=>{const n=Date.now()-t;return Math.sin(n/1e3*e*Math.PI*2)})}(1/(1+e.planetLevel))),this.cachedPlanets.set(e.locationId,r)});for(const e of n){this.cachedPlanets.delete(e);const t=this.cachedPlanets.get(e);t&&(t.planet.emojiBobAnimation=void 0)}}getNearestVisiblePlanet(e){var t;const n=this.getPlanetRadii(or.getInstance());let r;for(const i of this.cachedPlanets.values()){const o=i.planet,a=null===(t=n.get(o.planetLevel))||void 0===t?void 0:t.radiusWorld;Math.abs(e.x-o.location.coords.x)<=a&&Math.abs(e.y-o.location.coords.y)<=a&&(!r||r.planetLevel>o.planetLevel)&&(r=o)}return r}getPlanetRadii(e){const t=new Map;for(let n=fe.MIN_PLANET_LEVEL;n<=fe.MAX_PLANET_LEVEL;n++){const r=this.uiManager.getRadiusOfPlanetLevel(n),i=e.worldToCanvasDist(r);t.set(n,{radiusWorld:r,radiusPixels:i})}return t}getVisiblePlanetLevels(e){const t=[],n=e.worldToCanvasDist(e.getViewportWorldWidth())>4e4?3:1;for(let r=0;r<=fe.MAX_PLANET_LEVEL;r++){const i=this.uiManager.getRadiusOfPlanetLevel(r);e.worldToCanvasDist(i)>=n&&t.push(r)}return t}}class uc extends qt.a{constructor(e,t){super(),this.isSending=!1,this.isChoosingTargetPlanet=!1,this.extraMinerLocations=[],this.forcesSending={},this.silverSending={},this.artifactSending={},this.gameManager=e,this.terminal=t;const n=Math.sqrt(this.gameManager.getPlanetRarity()/16384);this.radiusMap={[de.PlanetLevel.ZERO]:1*n,[de.PlanetLevel.ONE]:3*n,[de.PlanetLevel.TWO]:9*n,[de.PlanetLevel.THREE]:27*n,[de.PlanetLevel.FOUR]:81*n,[de.PlanetLevel.FIVE]:243*n,[de.PlanetLevel.SIX]:486*n,[de.PlanetLevel.SEVEN]:729*n,[de.PlanetLevel.EIGHT]:972*n,[de.PlanetLevel.NINE]:1215*n},this.plugins=new ac(e),this.selectedPlanetId$=Object(Or.monomitter)(!0),this.selectedPlanet$=fa(this.getPlanetMap(),this.selectedPlanetId$,this.gameManager.getPlanetUpdated$()),this.hoverPlanetId$=Object(Or.monomitter)(),this.hoverPlanet$=fa(this.getPlanetMap(),this.hoverPlanetId$,this.gameManager.getPlanetUpdated$()),this.selectedArtifactId$=Object(Or.monomitter)(),this.selectedArtifact$=fa(this.getArtifactMap(),this.selectedArtifactId$,this.gameManager.getArtifactUpdated$()),this.myArtifacts$=this.gameManager.getMyArtifactsUpdated$(),this.viewportEntities=new cc(this.gameManager,this),ue()(this)}setOverlayContainer(e){this.overlayContainer=e}getOverlayContainer(){return this.overlayContainer}static async create(e,t){document.addEventListener("keydown",Di),document.addEventListener("keyup",Fi);const n=nr.getInstance(),r=new uc(e,t);return n.on("WorldMouseDown",r.onMouseDown),n.on("WorldMouseClick",r.onMouseClick),n.on("WorldMouseMove",r.onMouseMove),n.on("WorldMouseUp",r.onMouseUp),n.on("WorldMouseOut",r.onMouseOut),n.on("SendInitiated",r.onSendInit),n.on("SendCancelled",r.onSendCancel),e.on(Yl.PlanetUpdate,r.updatePlanets),e.on(Yl.DiscoveredNewChunk,r.onDiscoveredChunk),r}destroy(){document.removeEventListener("keydown",Di),document.removeEventListener("keyup",Fi);const e=nr.getInstance();e.removeListener("WorldMouseDown",this.onMouseDown),e.removeListener("WorldMouseClick",this.onMouseClick),e.removeListener("WorldMouseMove",this.onMouseMove),e.removeListener("WorldMouseUp",this.onMouseUp),e.removeListener("WorldMouseOut",this.onMouseOut),e.on("SendInitiated",this.onSendInit),e.on("SendCancelled",this.onSendCancel),this.gameManager.removeListener(Yl.PlanetUpdate,this.updatePlanets),this.gameManager.removeListener(Yl.InitializedPlayer,this.onEmitInitializedPlayer),this.gameManager.removeListener(Yl.InitializedPlayerError,this.onEmitInitializedPlayerError),this.gameManager.removeListener(Yl.DiscoveredNewChunk,this.onDiscoveredChunk),this.gameManager.destroy(),this.selectedPlanetId$.clear(),this.selectedArtifactId$.clear()}getStringSetting(e){const t=this.getAccount();return t&&zr(t,e)}getBooleanSetting(e){const t=this.getAccount();return!!t&&$r(t,e)}getDiagnostics(){return this.gameManager.getDiagnostics()}updateDiagnostics(e){this.gameManager.updateDiagnostics(e)}getEthConnection(){return this.gameManager.getEthConnection()}getContractAddress(){return this.gameManager.getContractAddress()}centerPlanet(e){e&&(or.getInstance().centerPlanet(e),this.setSelectedPlanet(e))}centerCoords(e){const t=this.gameManager.getPlanetWithCoords(e);t&&ct(t)?this.centerPlanet(t):or.getInstance().centerCoords(e)}centerLocationId(e){const t=this.getPlanetWithId(e);t&&ct(t)&&this.centerPlanet(t)}joinGame(e){return this.gameManager.joinGame(e).once(Yl.InitializedPlayer,this.onEmitInitializedPlayer).once(Yl.InitializedPlayerError,this.onEmitInitializedPlayerError),this}addAccount(e){return this.gameManager.addAccount(e)}verifyTwitter(e){return this.gameManager.submitVerifyTwitter(e)}disconnectTwitter(e){return this.gameManager.submitDisconnectTwitter(e)}getPluginManager(){return this.plugins}getPrivateKey(){return this.gameManager.getPrivateKey()}getMyBalance(){return this.gameManager.getMyBalanceEth()}getMyBalance$(){return this.gameManager.getMyBalance$()}findArtifact(e){this.gameManager.isRoundOver()?alert("This round has ended, and you can no longer find artifacts!"):this.gameManager.findArtifact(e)}prospectPlanet(e){this.gameManager.isRoundOver()?alert("This round has ended, and you can no longer find artifacts!"):this.gameManager.prospectPlanet(e)}withdrawArtifact(e,t){this.gameManager.withdrawArtifact(e,t)}depositArtifact(e,t){this.gameManager.depositArtifact(e,t)}activateArtifact(e,t,n){confirm("Are you sure you want to activate this artifact? You can only have one artifact active at time. After deactivation, you must wait for a long cooldown before you can activate it again. Some artifacts (bloom filter, black domain, photoid cannon) are consumed on usage.")&&this.gameManager.activateArtifact(e,t,n)}deactivateArtifact(e,t){confirm("Are you sure you want to deactivate this artifact? After deactivation, you must wait for a long cooldown before you can activate it again. Some artifacts (planetary shields) are consumed on deactivation.")&&this.gameManager.deactivateArtifact(e,t)}withdrawSilver(e,t){var n;const r=(null===(n=this.getAccount())||void 0===n?void 0:n.toLowerCase())+"-withdrawnWarningAcked";if("true"!==localStorage.getItem(r)){localStorage.setItem(r,"true");if(!confirm("Are you sure you want withdraw this silver? Once you withdraw it, you cannot deposit it again. Your withdrawn silver amount will be added to your score. You'll only see this warning once!"))return}this.gameManager.withdrawSilver(e,t)}startWormholeFrom(e){this.isChoosingTargetPlanet=!0,this.mouseDownOverCoords=e.location.coords,this.mouseDownOverPlanet=e;const{resolve:t,promise:n}=nc()();return this.onChooseTargetPlanet=t,n}revealLocation(e){this.gameManager.revealLocation(e)}claimLocation(e){this.gameManager.claimLocation(e)}getNextBroadcastAvailableTimestamp(){return this.gameManager.getNextBroadcastAvailableTimestamp()}getConversation(e){return this.gameManager.getConversation(e)}startConversation(e){return this.gameManager.startConversation(e)}stepConversation(e,t){return this.gameManager.stepConversation(e,t)}getEnergyArrivingForMove(e,t,n,r){return this.gameManager.getEnergyArrivingForMove(e,t,n,r)}getIsChoosingTargetPlanet(){return this.isChoosingTargetPlanet}onMouseDown(e){if(this.sendingPlanet)return;const t=this.updateMouseHoveringOverCoords(e),n=this.gameManager.getPlanetWithCoords(t);this.getIsChoosingTargetPlanet()?(this.isChoosingTargetPlanet=!1,this.onChooseTargetPlanet&&(this.onChooseTargetPlanet(n),this.mouseDownOverPlanet=void 0,this.mouseDownOverCoords=void 0)):(this.mouseDownOverPlanet=n,this.mouseDownOverCoords=this.mouseHoveringOverCoords)}onMouseClick(e){this.mouseDownOverPlanet||this.mouseHoveringOverPlanet||(this.setSelectedPlanet(void 0),this.selectedCoords=void 0)}onMouseMove(e){this.updateMouseHoveringOverCoords(e)}onMouseUp(e){var t,n,r;const i=this.updateMouseHoveringOverCoords(e),o=this.gameManager.getPlanetWithCoords(i),a=this.getMouseDownPlanet();if(o){if(this.mouseDownOverPlanet&&o.locationId===this.mouseDownOverPlanet.locationId)this.setSelectedPlanet(o),this.selectedCoords=i,null===(t=this.terminal.current)||void 0===t||t.println("Selected: "+o.locationId),null===(n=this.terminal.current)||void 0===n||n.println("");else if(a&&a.owner===this.gameManager.getAccount()){const e=a,t=o;let n=e.energy;for(const t of e.unconfirmedDepartures)n-=t.forces;const i=Math.min(this.getForcesSending(e.locationId),98);let s=Math.floor(n*i/100);if(s>=e.energy&&(s=e.energy-1,s<1))return;const l=this.gameManager.getDist(e.locationId,t.locationId),c=this.gameManager.getEnergyArrivingForMove(e.locationId,t.locationId,l,s);let u=this.getSilverSending(e.locationId);if(u>98&&e.planetType===de.PlanetType.SILVER_MINE&&e.silver<e.silverCap&&(u=98),c>0){const n=Math.floor(e.silver*u/100);null===(r=this.terminal.current)||void 0===r||r.printShellLn(`df.move('${e.locationId}', '${t.locationId}', ${s}, ${n})`);const i=this.getArtifactSending(e.locationId);this.gameManager.move(e.locationId,t.locationId,s,n,null==i?void 0:i.id);lc.getInstance().acceptInput(2)}}this.isChoosingTargetPlanet=!1}this.mouseDownOverPlanet=void 0,this.mouseDownOverCoords=void 0;nr.getInstance().emit("SendCompleted"),this.sendingPlanet=void 0,this.isSending=!1}onMouseOut(){this.mouseDownOverPlanet=void 0,this.mouseDownOverCoords=void 0,this.setHoveringOverPlanet(void 0),this.mouseHoveringOverCoords=void 0}startExplore(){this.gameManager.startExplore()}stopExplore(){this.gameManager.stopExplore(),this.minerLocation=void 0}toggleExplore(){this.isMining()?(null==this||this.stopExplore(),lc.getInstance().acceptInput(6)):null==this||this.startExplore()}toggleTargettingExplorer(){const e=_o.getInstance();1===e.getCursorState()?e.setCursorState(0):e.setCursorState(1)}setForcesSending(e,t){this.forcesSending[e]=t}setSilverSending(e,t){this.silverSending[e]=t}setArtifactSending(e,t){this.artifactSending[e]=t}isOwnedByMe(e){return e.owner===this.gameManager.getAccount()}addNewChunk(e){this.gameManager.addNewChunk(e)}bulkAddNewChunks(e){return this.gameManager.bulkAddNewChunks(e)}setMiningPattern(e){this.gameManager.setMiningPattern(e)}getMiningPattern(){return this.gameManager.getMiningPattern()}isMining(){return this.gameManager.isMining()}getAccount(){return this.gameManager.getAccount()}getTwitter(e){return this.gameManager.getTwitter(e)}getEndTimeSeconds(){return this.gameManager.getEndTimeSeconds()}isRoundOver(){return this.gameManager.isRoundOver()}getUpgrade(e,t){return this.gameManager.getUpgrade(e,t)}getBiomeKey(e){return`${this.getAccount()}-${this.gameManager.getContractAddress()}-biome-${e}`}getDiscoverBiomeName(e){return"true"===localStorage.getItem(this.getBiomeKey(e))?zt(e):"Undiscovered"}getDistCoords(e,t){return this.gameManager.getDistCoords(e,t)}discoverBiome(e){const t=this.getBiomeKey(e.biome);if("true"!==localStorage.getItem(t)){const n=Pr.getInstance();localStorage.setItem(t,"true"),n.foundBiome(e)}}getAllPlayers(){return this.gameManager.getAllPlayers()}getSelectedPlanet(){return this.selectedPlanet}getPreviousSelectedPlanet(){return this.previousSelectedPlanet}setSelectedId(e){const t=this.getPlanetWithId(e);t&&ct(t)&&this.setSelectedPlanet(t)}setSelectedPlanet(e){if(this.previousSelectedPlanet=this.selectedPlanet,!e){lc.getInstance().acceptInput(3)}const t=nr.getInstance();if(this.selectedPlanet=e,e){const t=this.getLocationOfPlanet(e.locationId);if(t){if(this.selectedCoords=t.coords,n=t.coords,r=this.getHomeCoords(),n.x===r.x&&n.y===r.y){lc.getInstance().acceptInput(1)}}else this.selectedCoords=void 0}else this.selectedCoords=void 0;var n,r;t.emit("GamePlanetSelected"),this.selectedPlanetId$.publish(null==e?void 0:e.locationId)}getSelectedCoords(){return this.selectedCoords}getMouseDownPlanet(){return this.isSending&&this.sendingPlanet?this.sendingPlanet:this.mouseDownOverPlanet}onSendInit(e){this.isSending=!0,this.sendingPlanet=e;const t=e&&this.getLocationOfPlanet(e.locationId);this.sendingCoords=t?t.coords:{x:0,y:0}}onSendCancel(){this.isSending=!1,this.sendingPlanet=void 0,this.sendingCoords=void 0}hasMinedChunk(e){return this.gameManager.hasMinedChunk(e)}getChunk(e){return this.gameManager.getChunk(e)}spaceTypeFromPerlin(e){return this.gameManager.spaceTypeFromPerlin(e)}getSpaceTypePerlin(e,t){return this.gameManager.spaceTypePerlin(e,t)}getBiomePerlin(e,t){return this.gameManager.biomebasePerlin(e,t)}onDiscoveredChunk(e){const t=this.gameManager.getCurrentlyExploring
834Chunk(),n=this.getAccount();if(t){const{bottomLeft:e,sideLength:n}=t;this.minerLocation={x:e.x+n/2,y:e.y+n/2}}else this.minerLocation=void 0;const r=Pr.getInstance();for(const t of e.planetLocations){const e=this.getPlanetWithId(t.hash);if(!e||!n)break;e.owner===fe.EMPTY_ADDRESS&&e.energy>0&&!this.getBooleanSetting("FoundPirates")&&this.getBooleanSetting("TutorialCompleted")&&(r.foundPirates(e),Hr(n,"FoundPirates",!0)),e.planetType===de.PlanetType.SILVER_MINE&&!this.getBooleanSetting("FoundSilver")&&this.getBooleanSetting("TutorialCompleted")&&(r.foundSilver(e),Hr(n,"FoundSilver",!0)),e.planetType===de.PlanetType.SILVER_BANK&&!this.getBooleanSetting("FoundSilverBank")&&this.getBooleanSetting("TutorialCompleted")&&(r.foundSilverBank(e),Hr(n,"FoundSilverBank",!0)),e.planetType===de.PlanetType.TRADING_POST&&!this.getBooleanSetting("FoundTradingPost")&&this.getBooleanSetting("TutorialCompleted")&&(r.foundTradingPost(e),Hr(n,"FoundTradingPost",!0)),Object(zl.planetHasBonus)(e)&&!this.getBooleanSetting("FoundComet")&&this.getBooleanSetting("TutorialCompleted")&&(r.foundComet(e),Hr(n,"FoundComet",!0)),ct(e)&&e.planetType===de.PlanetType.PLANET&&this.discoverBiome(e),ct(e)&&e.planetType===de.PlanetType.RUINS&&!this.getBooleanSetting("FoundArtifact")&&this.getBooleanSetting("TutorialCompleted")&&(r.foundFoundry(e),Hr(n,"FoundArtifact",!0))}void 0!==n&&(this.spaceTypeFromPerlin(e.perlin)===de.SpaceType.DEEP_SPACE?!this.getBooleanSetting("FoundDeepSpace")&&this.getBooleanSetting("TutorialCompleted")&&(r.foundDeepSpace(e),Hr(n,"FoundDeepSpace",!0)):this.spaceTypeFromPerlin(e.perlin)===de.SpaceType.SPACE?!this.getBooleanSetting("FoundSpace")&&this.getBooleanSetting("TutorialCompleted")&&(r.foundSpace(e),Hr(n,"FoundSpace",!0)):this.spaceTypeFromPerlin(e.perlin)===de.SpaceType.DEAD_SPACE&&!this.getBooleanSetting("FoundDeepSpace")&&this.getBooleanSetting("TutorialCompleted")&&(r.foundDeadSpace(e),Hr(n,"FoundDeepSpace",!0)))}getMinerLocation(){return this.minerLocation}setExtraMinerLocation(e,t){this.extraMinerLocations[e]=t}removeExtraMinerLocation(e){this.extraMinerLocations.splice(e,1)}getAllMinerLocations(){return this.minerLocation?[this.minerLocation,...this.extraMinerLocations]:this.extraMinerLocations}getMouseDownCoords(){return this.isSending&&this.sendingPlanet?this.sendingCoords:this.mouseDownOverCoords}setHoveringOverPlanet(e){const t=this.mouseHoveringOverPlanet;this.mouseHoveringOverPlanet=e,(null==t?void 0:t.locationId)!==(null==e?void 0:e.locationId)&&this.hoverPlanetId$.publish(null==e?void 0:e.locationId)}getHoveringOverPlanet(){return this.mouseHoveringOverPlanet}getHoveringOverCoords(){return this.mouseHoveringOverCoords}getForcesSending(e){const t=this.forcesSending[e];return null!=t?t:50}getSilverSending(e){return this.silverSending[e]||0}getArtifactSending(e){return this.artifactSending[e]}isOverOwnPlanet(e){const t=this.viewportEntities.getNearestVisiblePlanet(e);if(t)return t.owner===this.gameManager.getAccount()?t:void 0}getMyArtifacts(){return this.gameManager.getMyArtifacts()}getMyArtifactsNotOnPlanet(){return this.getMyArtifacts().filter(e=>!e.onPlanetId)}getPlanetWithId(e){return this.gameManager.getPlanetWithId(e)}getMyScore(){return this.gameManager.getMyScore()}getPlayer(e){return this.gameManager.getPlayer(e)}getArtifactWithId(e){return this.gameManager.getArtifactWithId(e)}getPlanetWithCoords(e){return e&&this.gameManager.getPlanetWithCoords(e)}getArtifactsWithIds(e){return this.gameManager.getArtifactsWithIds(e)}getArtifactPlanet(e){if(e.onPlanetId)return this.getPlanetWithId(e.onPlanetId)}getPlanetLevel(e){return this.gameManager.getPlanetLevel(e)}getAllOwnedPlanets(){return this.gameManager.getAllOwnedPlanets()}getAllVoyages(){return this.gameManager.getAllVoyages()}getUnconfirmedMoves(){return this.gameManager.getUnconfirmedMoves()}getUnconfirmedUpgrades(){return this.gameManager.getUnconfirmedUpgrades()}isCurrentlyRevealing(){return this.gameManager.getNextRevealCountdownInfo().currentlyRevealing}isCurrentlyClaiming(){return this.gameManager.getNextClaimCountdownInfo().currentlyClaiming}getUnconfirmedWormholeActivations(){return this.gameManager.getUnconfirmedWormholeActivations()}getWormholes(){return this.gameManager.getWormholes()}getLocationOfPlanet(e){return this.gameManager.getLocationOfPlanet(e)}getExploredChunks(){return this.gameManager.getExploredChunks()}getLocationsAndChunks(){return this.viewportEntities.getPlanetsAndChunks()}getIsHighPerfMode(){return void 0!==this.getAccount()&&this.getBooleanSetting("HighPerformanceRendering")}getPlanetsInViewport(){return Array.from(this.viewportEntities.getPlanetsAndChunks().cachedPlanets.values()).map(e=>e.planet)}getWorldRadius(){return this.gameManager.getWorldRadius()}getWorldSilver(){return this.gameManager.getWorldSilver()}getUniverseTotalEnergy(){return this.gameManager.getUniverseTotalEnergy()}getSilverOfPlayer(e){return this.gameManager.getSilverOfPlayer(e)}getEnergyOfPlayer(e){return this.gameManager.getEnergyOfPlayer(e)}getPlayerScore(e){return this.gameManager.getPlayerScore(e)}upgrade(e,t){var n;null===(n=this.terminal.current)||void 0===n||n.printShellLn(`df.upgrade('${e.locationId}', ${t})`),this.gameManager.upgrade(e.locationId,t)}buyHat(e){var t;null===(t=this.terminal.current)||void 0===t||t.printShellLn(`df.buyHat('${e.locationId}')`),this.gameManager.buyHat(e.locationId)}buyGPTCredits(e){this.gameManager.buyGPTCredits(e)}getGptCreditPriceEmitter(){return this.gameManager.getGptCreditPriceEmitter()}getGptCreditBalanceEmitter(){return this.gameManager.getGptCreditBalanceEmitter()}getIsBuyingCreditsEmitter(){return this.gameManager.getIsBuyingCreditsEmitter()}getHomeCoords(){return this.gameManager.getHomeCoords()||{x:0,y:0}}getHomeHash(){return this.gameManager.getHomeHash()}getHomePlanet(){const e=this.getHomeHash();if(e)return this.getPlanetWithId(e)}getRadiusOfPlanetLevel(e){return this.radiusMap[e]}getEnergyCurveAtPercent(e,t){return this.gameManager.getEnergyCurveAtPercent(e,t)}getSilverCurveAtPercent(e,t){return this.gameManager.getSilverCurveAtPercent(e,t)}getHashesPerSec(){return this.gameManager.getHashesPerSec()}generateVerificationTweet(e){return this.gameManager.getSignedTwitter(e)}getPerlinThresholds(){return this.gameManager.getPerlinThresholds()}getHashConfig(){return this.gameManager.getHashConfig()}getViewport(){return or.getInstance()}getPlanetMap(){return this.gameManager.getPlanetMap()}
834getArtifactMap(){return this.gameManager.getArtifactMap()}getMyPlanetMap(){return this.gameManager.getMyPlanetMap()}getMyArtifactMap(){return this.gameManager.getMyArtifactMap()}getTerminal(){return this.terminal.current}getContractConstants(){return this.gameManager.getContractConstants()}getPerlinConfig(e=!1){const t=this.gameManager.getHashConfig();return{key:e?t.biomebaseKey:t.spaceTypeKey,scale:t.perlinLengthScale,mirrorX:t.perlinMirrorX,mirrorY:t.perlinMirrorY,floor:!1}}getGameObjects(){return this.gameManager.getGameObjects()}updatePlanets(){this.selectedPlanet&&(this.selectedPlanet=this.gameManager.getPlanetWithId(this.selectedPlanet.locationId)),this.mouseDownOverPlanet&&(this.mouseDownOverPlanet=this.gameManager.getPlanetWithId(this.mouseDownOverPlanet.locationId)),this.mouseHoveringOverPlanet&&this.setHoveringOverPlanet(this.gameManager.getPlanetWithId(this.mouseHoveringOverPlanet.locationId))}updateMouseHoveringOverCoords(e){this.mouseHoveringOverCoords=e;let t=void 0;const n=this.viewportEntities.getNearestVisiblePlanet(e);return n&&(t=n,this.mouseHoveringOverCoords=n.location.coords),this.setHoveringOverPlanet(t),this.mouseHoveringOverCoords={x:Math.round(this.mouseHoveringOverCoords.x),y:Math.round(this.mouseHoveringOverCoords.y)},this.mouseHoveringOverCoords}onEmitInitializedPlayer(){this.emit("InitializedPlayer")}onEmitInitializedPlayerError(e){this.emit("InitializedPlayerError",e)}getGameManager(){return this.gameManager}}var fc=uc;const dc=function(){const e=[],t=[],n=localStorage.getItem("KNOWN_ADDRESSES");if(null!==n){const t=JSON.parse(n);for(const n of t)e.push(Object(Gt.address)(n))}for(const n of e){const e=localStorage.getItem("skey-"+n);null!==e&&t.push({address:n,privateKey:e})}return t}();function hc(){return[...dc]}function pc(e){dc.push({address:Object(Gt.address)(aa.utils.computeAddress(e)),privateKey:e}),function(){localStorage.setItem("KNOWN_ADDRESSES",ua()(dc.map(e=>e.address)));for(const e of dc)localStorage.setItem("skey-"+e.address,e.privateKey)}()}const mc=le.c.div.withConfig({displayName:"StyledWrapper",componentId:"sc-ge3wot"})`
835  width: 100%;
836  height: 100%;
837  margin: 0;
838  padding: 0;
839  display: flex;
840  flex-direction: row;
841
842  justify-content: ${e=>0!==e.initRender?"space-between":"space-around"};
843`;function gc({children:e,initRender:t,terminalEnabled:n}){return o.a.createElement(mc,{initRender:t,terminalEnabled:n},e)}const vc=le.b`
844  position: absolute;
845  width: ${Pe.game.terminalWidth};
846  right: 0;
847  top: 0;
848  padding: 1em;
849  font-size: ${Pe.game.terminalFontSize};
850`,yc=le.b`
851  max-width: 60em;
852  width: 60%;
853  padding: 2em 0;
854  font-size: ${Pe.fontSizeS};
855`,bc=le.c.div.withConfig({displayName:"StyledTerminalWrapper",componentId:"sc-3nnuv6"})`
856  display: ${({initRender:e,terminalEnabled:t})=>0===e||t?"block":"none"};
857  border-left: ${({terminalEnabled:e,initRender:t})=>e&&0!==t?"1px solid "+Pe.colors.border:"none"};
858  height: 100%;
859  // overflow: hidden;
860  background: ${Pe.colors.background};
861  position: relative;
862
863  ${e=>0!==e.initRender?vc:yc};
864
865  @media (max-width: 660px) {
866    width: 100%;
867    padding: 1.5em 2em;
868  }
869`;function wc({children:e,initRender:t,terminalEnabled:n}){return o.a.createElement(o.a.Fragment,null,o.a.createElement(Ec,null),o.a.createElement(bc,{initRender:t,terminalEnabled:n},e))}const Ec=le.c.div.withConfig({displayName:"PrettyOverlayGradient",componentId:"sc-1ctztja"})`
870  width: 100vw;
871  height: 100vh;
872  background: linear-gradient(to right top, rgba(73, 10, 219, 0.1), rgba(1, 255, 1, 0.1)) fixed;
873  background-position: 50%, 50%;
874  display: inline-block;
875  position: fixed;
876  top: 0;
877  left: 0;
878  z-index: 1001;
879  pointer-events: none;
880`,kc=le.c.div.withConfig({displayName:"StyledTerminalToggler",componentId:"sc-105narn"})`
881  position: absolute;
882  right: 0;
883  top: 0;
884  height: 100%;
885  width: 1em;
886
887  background: ${Pe.colors.text};
888  z-index: 1000;
889
890  color: ${Pe.colors.background};
891
892  display: flex;
893  flex-direction: column;
894  justify-content: space-around;
895  align-items: center;
896
897  opacity: 0;
898
899  &:hover {
900    opacity: 1;
901    cursor: pointer;
902  }
903
904  & span {
905    font-size: 1.25em;
906    transform: scaleY(2);
907  }
908`;function xc({terminalEnabled:e,setTerminalEnabled:t}){const n=nr.getInstance();return Object(i.useLayoutEffect)(()=>{n.emit("UIChange")},[e,n]),o.a.createElement(kc,{terminalEnabled:e,onClick:()=>t(e=>!e)},o.a.createElement("span",null,e?">":"<"))}const Sc=le.c.div.withConfig({displayName:"StyledGameWindowWrapper",componentId:"sc-gvnu4u"})`
909  background: ${Pe.colors.background};
910  position: absolute;
911  left: 0;
912  top: 0;
913
914  width: ${e=>e.terminalEnabled?`calc(100% - ${Pe.game.terminalWidth})`:"100%"};
915  height: 100%;
916
917  display: ${e=>0!==e.initRender?"block":"none"};
918`;function _c({children:e,initRender:t,terminalEnabled:n}){return o.a.createElement(Sc,{initRender:t,terminalEnabled:n},t&&o.a.createElement(o.a.Fragment,null,e))}le.c.div.withConfig({displayName:"Hidden",componentId:"sc-x73v3s"})`
919  display: none;
920  position: absolute;
921  top: -10000;
922  left: -10000;
923`;function Ac({text:e,unFocusedWidth:t,focusedWidth:n,style:r}){const[a,s]=Object(i.useState)(!1),[l,c]=Object(i.useState)(null),u=Object(i.useCallback)(e=>{e.stopPropagation(),s(!0)},[]),f=Object(i.useCallback)(()=>{s(!1),c(null)},[]);return Object(i.useEffect)(()=>{l&&(l.focus(),l.select())},[l]),a?o.a.createElement(Tc,{style:r,width:n||"150px"},o.a.createElement(Pc,{value:e||"",onChange:()=>{},onBlur:f,ref:e=>c(e)})):o.a.createElement(Cc,{style:r,width:t||"50px",onClick:u},e||"")}const Cc=le.c.span.withConfig({displayName:"ShortenedText",componentId:"sc-1rgm4nq"})`
924  ${({width:e})=>le.b`
925    cursor: zoom-in;
926    display: inline-block;
927    width: ${e};
928    overflow: hidden;
929    text-overflow: ellipsis;
930    white-space: nowrap;
931    vertical-align: bottom;
932  `}
933`,Tc=le.c.div.withConfig({displayName:"InputContainer",componentId:"sc-14fua8x"})`
934  ${({width:e})=>le.b`
935    display: inline-block;
936    width: ${e};
937  `}
938`,Pc=Object(le.c)(Mr).withConfig({displayName:"PreviewTextInput",componentId:"sc-vi4brx"})`
939  padding: 2px 4px;
940  box-sizing: border-box;
941  display: inline-block;
942  width: 100%;
943`,Oc=le.c.div.withConfig({displayName:"WindowWrapper",componentId:"sc-1rjyhwh"})`
944  overflow: hidden;
945  display: flex;
946  flex-direction: column;
947  background: ${Pe.colors.background};
948  height: 100%;
949  width: 100%;
950
951  font-size: ${Pe.game.fontSize};
952`,Mc=(le.c.div.withConfig({displayName:"StyledPane",componentId:"sc-g7yyg"})`
953  display: flex;
954  flex-direction: column;
955
956  .pane-header {
957    padding: 16pt 8pt;
958    display: flex;
959    flex-direction: row;
960    justify-content: space-between;
961    align-items: center;
962    height: 1.5em;
963
964    & > p {
965      text-decoration: underline;
966      line-height: 1em;
967    }
968
969    & > div {
970      display: flex;
971      flex-direction: row;
972      justify-content: flex-end;
973      & > p,
974      & > span,
975      & > div {
976        margin-left: 0.2em;
977      }
978    }
979  }
980  .pane-content {
981    padding: 4pt 8pt 8pt 8pt;
982    position: relative;
983  }
984`,le.c.div.withConfig({displayName:"MainWindow",componentId:"sc-r741wd"})`
985  // position and sizing
986  height: 100%;
987  width: 100%;
988  position: absolute;
989  top: 0;
990  flex-grow: 1;
991
992  // styling
993  background: ${Pe.colors.background};
994
995  // display inner things
996  display: flex;
997  flex-direction: row;
998  justify-content: space-between;
999`),Ic=le.c.div.withConfig({displayName:"CanvasContainer",componentId:"sc-1cdo7t2"})`
1000  flex-grow: 1;
1001  position: relative;
1002  z-index: 1002;
1003`,Rc=le.c.div.withConfig({displayName:"CanvasWrapper",componentId:"sc-1rh98ev"})`
1004  position: absolute;
1005  width: 100%;
1006  height: 100%;
1007`,Lc=le.c.div.withConfig({displayName:"UpperLeft",componentId:"sc-12rfvjl"})`
1008  position: absolute;
1009  left: 0;
1010
1011  display: flex;
1012  flex-direction: row;
1013  justify-content: flex-start;
1014`;var Nc,jc;!function(e){e[e.Float=window.WebGL2RenderingContext&&WebGL2RenderingContext.FLOAT]="Float",e[e.UByte=window.WebGL2RenderingContext&&WebGL2RenderingContext.UNSIGNED_BYTE]="UByte"}(Nc||(Nc={})),function(e){e[e.Triangles=window.WebGL2RenderingContext&&WebGL2RenderingContext.TRIANGLES]="Triangles",e[e.Lines=window.WebGL2RenderingContext&&WebGL2RenderingContext.LINES]="Lines",e[e.Points=window.WebGL2RenderingContext&&WebGL2RenderingContext.POINTS]="Points"}(jc||(jc={}));const Bc=e=>e?e.toString():"",Fc=(e,...t)=>"#version 300 es\n"+e.reduce((e,n,r)=>Bc(e)+Bc(t[r-1])+Bc(n));class Dc{static fillTexture(e){e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([0,0,255,255]))}static rgbVecToHex(e){const[t,n,r]=e,i=e=>e.toString(16).padStart(2,"0");return`#${i(t)}${i(n)}${i(r)}`}static rotateIndices(e,t,n,r){const[i,o]=[e[t],e[n]],a=Math.cos(r),s=Math.sin(r);e[t]=a*i-s*o,e[n]=s*i+a*o}static rotateQuad(e,t){Dc.rotateIndices(e,0,1,t),Dc.rotateIndices(e,3,4,t),Dc.rotateIndices(e,6,7,t),Dc.rotateIndices(e,9,10,t),Dc.rotateIndices(e,12,13,t),Dc.rotateIndices(e,15,16,t)}static rotateQuadVec2(e,t){Dc.rotateIndices(e,0,1,t),Dc.rotateIndices(e,2,3,t),Dc.rotateIndices(e,4,5,t),Dc.rotateIndices(e,6,7,t),Dc.rotateIndices(e,8,9,t),Dc.rotateIndices(e,10,11,t)}static translateIndices(e,t,n,[r,i]){e[t]+=r,e[n]+=i}static translateQuad(e,t){Dc.translateIndices(e,0,1,t),Dc.translateIndices(e,3,4,t),Dc.translateIndices(e,6,7,t),Dc.translateIndices(e,9,10,t),Dc.translateIndices(e,12,13,t),Dc.translateIndices(e,15,16,t)}static translateQuadVec2(e,t){Dc.translateIndices(e,0,1,t),Dc.translateIndices(e,2,3,t),Dc.translateIndices(e,4,5,t),Dc.translateIndices(e,6,7,t),Dc.translateIndices(e,8,9,t),Dc.translateIndices(e,10,11,t)}static makeEmptyQuad(){return Array(18).fill(0)}static makeEmptyQuadVec2(){return Array(12).fill(0)}static makeEmptyDoubleQuad(){return Array(24).fill(0)}static makeQuad(e,t,n,r,i){return[e,t,i,e,r,i,n,t,i,n,t,i,e,r,i,n,r,i]}static makeQuadBuffered(e,t,n,r,i,o){e[0]=t,e[1]=n,e[2]=o,e[3]=t,e[4]=i,e[5]=o,e[6]=r,e[7]=n,e[8]=o,e[9]=r,e[10]=n,e[11]=o,e[12]=t,e[13]=i,e[14]=o,e[15]=r,e[16]=i,e[17]=o}static makeQuadVec2(e,t,n,r){return[e,t,e,r,n,t,n,t,e,r,n,r]}static makeQuadVec2Buffered(e,t,n,r,i){e[0]=t,e[1]=n,e[2]=t,e[3]=i,e[4]=r,e[5]=n,e[6]=r,e[7]=n,e[8]=t,e[9]=i,e[10]=r,e[11]=i}static makeDoubleQuadBuffered(e,t,n,r,i,o,a,s,l){e[0]=t,e[1]=n,e[2]=o,e[3]=a,e[4]=t,e[5]=i,e[6]=o,e[7]=l,e[8]=r,e[9]=n,e[10]=s,e[11]=a,e[12]=r,e[13]=n,e[14]=s,e[15]=a,e[16]=t,e[17]=i,e[18]=o,e[19]=l,e[20]=r,e[21]=i,e[22]=s,e[23]=l}}Dc.getNow=()=>Date.now()/1e3%(2*Math.PI*12e3),Dc.getPlanetZIndex=e=>-10+e.planetLevel;class zc{}zc.PI="\n    #define PI 3.1415926535\n  ",zc.desaturate="\n    vec4 desaturate(vec4 color, float factor) {\n      vec3 lum = vec3(0.299, 0.587, 0.114);\n      vec3 gray = vec3(dot(lum, color.rgb));\n      return vec4(mix(color.rgb, gray, factor), color.a);\n    }\n  ",zc.blend="\n    vec4 blend(vec4 fg, vec4 bg) {\n      vec3 cOut = fg.rgb * fg.a + bg.rgb * bg.a * (1. - fg.a);\n      float aOut = fg.a + bg.a * (1. - fg.a);\n      \n      return vec4(cOut, aOut);\n    }\n  ",zc.noiseVec3="\n    float mod289(float x){return x - floor(x * (1.0 / 289.0)) * 289.0;}\n    vec4 mod289(vec4 x){return x - floor(x * (1.0 / 289.0)) * 289.0;}\n    vec4 perm(vec4 x){return mod289(((x * 34.0) + 1.0) * x);}\n\n    float noise(vec3 p){\n      vec3 a = floor(p);\n      vec3 d = p - a;\n      d = d * d * (3.0 - 2.0 * d);\n\n      vec4 b = a.xxyy + vec4(0.0, 1.0, 0.0, 1.0);\n      vec4 k1 = perm(b.xyxy);\n      vec4 k2 = perm(k1.xyxy + b.zzww);\n\n      vec4 c = k2 + a.zzzz;\n      vec4 k3 = perm(c);\n      vec4 k4 = perm(c + 1.0);\n\n      vec4 o1 = fract(k3 * (1.0 / 41.0));\n      vec4 o2 = fract(k4 * (1.0 / 41.0));\n\n      vec4 o3 = o2 * d.z + o1 * (1.0 - d.z);\n      vec2 o4 = o3.yw * d.x + o3.xz * (1.0 - d.x);\n\n      return o4.y * d.y + o4.x * (1.0 - d.y);\n    }\n  ",zc.radAtAngle="\n    float radAtAngle(float angle, float offset) {\n      vec2 ptOnCircle = vec2(cos(angle), sin(angle));\n      float noiseAtAngle = 0.5 * noise(vec3(0.8 * ptOnCircle, offset));\n      return 1.0 - noiseAtAngle;\n    }\n  ",zc.mod2pi="\n    float mod2pi(float theta) {\n      float twoPi = 6.283185307;\n      return theta - twoPi * floor(theta / twoPi);\n    }\n  ",zc.modFloat="\n    float modF(float a1, float a2) {\n      return a1 - a2 * floor(a1 / a2);\n    }\n  ",zc.arcTan="\n    float arcTan(float y, float x) {\n      float arcT = atan(y, x); // [-Pi, Pi]\n      float vertical = y > 0. ? PI / 2. : PI / -2.; // deal with discontinuity at x = 0\n      float thetaOffset = x == 0. ? vertical : arcT;\n      float theta = thetaOffset + PI; // [0, 2 * Pi]\n\n      return theta;\n    }\n  ",zc.fade="\n    float fade(float value, float tail) {\n      float tailFactor = 1. / tail;\n\n      float alpha = 1.;\n      if (value > 1. - tail) alpha -= tailFactor * (value - (1. - tail));\n\n      return alpha;\n    }\n  ",zc.simplex4="\n    vec4 permute(vec4 x){return mod(((x*34.0)+1.0)*x, 289.0);}\n    float permute(float x){return floor(mod(((x*34.0)+1.0)*x, 289.0));}\n    vec4 taylorInvSqrt(vec4 r){return 1.79284291400159 - 0.85373472095314 * r;}\n    float taylorInvSqrt(float r){return 1.79284291400159 - 0.85373472095314 * r;}\n\n    vec4 grad4(float j, vec4 ip){\n      const vec4 ones = vec4(1.0, 1.0, 1.0, -1.0);\n      vec4 p,s;\n\n      p.xyz = floor( fract (vec3(j) * ip.xyz) * 7.0) * ip.z - 1.0;
1014\n      p.w = 1.5 - dot(abs(p.xyz), ones.xyz);\n      s = vec4(lessThan(p, vec4(0.0)));\n      p.xyz = p.xyz + (s.xyz*2.0 - 1.0) * s.www; \n\n      return p;\n    }\n\n    float snoise(vec4 v){\n      const vec2  C = vec2( 0.138196601125010504,  // (5 - sqrt(5))/20  G4\n                            0.309016994374947451); // (sqrt(5) - 1)/4   F4\n      // First corner\n      vec4 i  = floor(v + dot(v, C.yyyy) );\n      vec4 x0 = v -   i + dot(i, C.xxxx);\n\n      // Other corners\n\n      // Rank sorting originally contributed by Bill Licea-Kane, AMD (formerly ATI)\n      vec4 i0;\n\n      vec3 isX = step( x0.yzw, x0.xxx );\n      vec3 isYZ = step( x0.zww, x0.yyz );\n      i0.x = isX.x + isX.y + isX.z;\n      i0.yzw = 1.0 - isX;\n\n      i0.y += isYZ.x + isYZ.y;\n      i0.zw += 1.0 - isYZ.xy;\n\n      i0.z += isYZ.z;\n      i0.w += 1.0 - isYZ.z;\n\n      // i0 now contains the unique values 0,1,2,3 in each channel\n      vec4 i3 = clamp( i0, 0.0, 1.0 );\n      vec4 i2 = clamp( i0-1.0, 0.0, 1.0 );\n      vec4 i1 = clamp( i0-2.0, 0.0, 1.0 );\n\n      //  x0 = x0 - 0.0 + 0.0 * C \n      vec4 x1 = x0 - i1 + 1.0 * C.xxxx;\n      vec4 x2 = x0 - i2 + 2.0 * C.xxxx;\n      vec4 x3 = x0 - i3 + 3.0 * C.xxxx;\n      vec4 x4 = x0 - 1.0 + 4.0 * C.xxxx;\n\n      // Permutations\n      i = mod(i, 289.0); \n      float j0 = permute( permute( permute( permute(i.w) + i.z) + i.y) + i.x);\n      vec4 j1 = permute( permute( permute( permute (\n                i.w + vec4(i1.w, i2.w, i3.w, 1.0 ))\n              + i.z + vec4(i1.z, i2.z, i3.z, 1.0 ))\n              + i.y + vec4(i1.y, i2.y, i3.y, 1.0 ))\n              + i.x + vec4(i1.x, i2.x, i3.x, 1.0 ));\n              \n      // Gradients\n      // ( 7*7*6 points uniformly over a cube, mapped onto a 4-octahedron.)\n      // 7*7*6 = 294, which is close to the ring size 17*17 = 289.\n\n      vec4 ip = vec4(1.0/294.0, 1.0/49.0, 1.0/7.0, 0.0) ;\n\n      vec4 p0 = grad4(j0,   ip);\n      vec4 p1 = grad4(j1.x, ip);\n      vec4 p2 = grad4(j1.y, ip);\n      vec4 p3 = grad4(j1.z, ip);\n      vec4 p4 = grad4(j1.w, ip);\n\n      // Normalise gradients\n      vec4 norm = taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3)));\n      p0 *= norm.x;\n      p1 *= norm.y;\n      p2 *= norm.z;\n      p3 *= norm.w;\n      p4 *= taylorInvSqrt(dot(p4,p4));\n\n      // Mix contributions from the five corners\n      vec3 m0 = max(0.6 - vec3(dot(x0,x0), dot(x1,x1), dot(x2,x2)), 0.0);\n      vec2 m1 = max(0.6 - vec2(dot(x3,x3), dot(x4,x4)            ), 0.0);\n      m0 = m0 * m0;\n      m1 = m1 * m1;\n      return 49.0 * ( dot(m0*m0, vec3( dot( p0, x0 ), dot( p1, x1 ), dot( p2, x2 )))\n                  + dot(m1*m1, vec2( dot( p3, x3 ), dot( p4, x4 ) ) ) ) ;\n    }\n  ",zc.seededRandom="\n    float seededRandom(float s) {\n      return fract(sin(s) * 7626.1234);\n    }\n  ",zc.seededRandomVec2="\n    float seededRandomVec2(vec2 co){\n      return fract(sin(dot(co.xy, vec2(12.9898,78.233))) * 43758.5453);\n    }\n  ",zc.invertColors="\n    vec4 invert(vec4 cin) {\n      return vec4(1. - cin.r, 1. - cin.g, 1. - cin.b, cin.a);\n    }\n  ",zc.hueShift="\n    vec3 hueShift(vec3 color, float hueAdjust) {\n      const vec3 kRGBToYPrime = vec3 (0.299, 0.587, 0.114);\n      const vec3 kRGBToI      = vec3 (0.596, -0.275, -0.321);\n      const vec3 kRGBToQ      = vec3 (0.212, -0.523, 0.311);\n\n      const vec3 kYIQToR      = vec3 (1.0, 0.956, 0.621);\n      const vec3 kYIQToG      = vec3 (1.0, -0.272, -0.647);\n      const vec3 kYIQToB      = vec3 (1.0, -1.107, 1.704);\n  \n      float YPrime  = dot (color, kRGBToYPrime);\n      float I       = dot (color, kRGBToI);\n      float Q       = dot (color, kRGBToQ);\n      float hue     = atan (Q, I);\n      float chroma  = sqrt (I * I + Q * Q);\n  \n      hue += hueAdjust;\n  \n      Q = chroma * sin (hue);\n      I = chroma * cos (hue);\n  \n      vec3    yIQ   = vec3 (YPrime, I, Q);\n  \n      return vec3( dot (yIQ, kYIQToR), dot (yIQ, kYIQToG), dot (yIQ, kYIQToB) );\n    }\n  ",zc.invertBrightness="\n    vec4 invertBrightness(vec4 cin) {\n      vec4 shifted = vec4(hueShift(cin.rgb, 3.141593), 1.);\n      return invert(shifted);\n    }\n  ";const Uc="a_position",$c="a_color",Hc="a_radius",Jc="a_theta",Gc="a_seed",Vc="u_matrix",Xc="u_now",Wc="v_color",qc="v_darken",Kc="v_seed",Zc={uniforms:{matrix:{name:Vc,type:0},now:{name:Xc,type:3}},attribs:{position:{dim:3,type:Nc.Float,normalize:!1,name:Uc},color:{dim:3,type:Nc.UByte,normalize:!0,name:$c},radius:{dim:1,type:Nc.Float,normalize:!1,name:Hc},theta:{dim:1,type:Nc.Float,normalize:!1,name:Jc},seed:{dim:1,name:Gc,type:Nc.Float,normalize:!1}},vertexShader:Fc`
1015    in vec4 ${Uc};
1016    in vec4 ${$c};
1017    in float ${Hc};
1018    in float ${Jc};
1019    in float ${Gc};
1020
1021    uniform mat4 ${Vc};
1022    uniform float ${Xc};
1023
1024    out vec4 ${Wc};
1025    out float ${qc}; // between 0 and 1
1026    out float ${Kc};
1027
1028    ${zc.mod2pi}
1029
1030    void main() {
1031      float radius = ${Hc} * 0.3;
1032      float mod = ${Jc} - floor(${Jc} / 87.) * 87.;
1033      float timeFactor = 0.7 + 0.6 * (mod / 87.);
1034
1035      float theta = mod2pi(${Jc} + ${Xc} * timeFactor);
1036
1037      // these are all in screen coords
1038      float dX = 2.0 * ${Hc} * cos(theta);
1039      float dY = 0.3 * ${Hc} * sin(theta);
1040      float dZ = -0.015 * sin(theta);
1041
1042      float rot = mod2pi(0.7 * ${Xc} * timeFactor + 5.4 * ${Jc});
1043      float cosR = cos(rot);
1044      float sinR = sin(rot);
1045
1046      // transform x and y by rot
1047      float delX = cosR * dX - sinR * dY;
1048      float delY = sinR * dX + sinR * dY;
1049
1050      vec4 dVec = vec4(delX, delY, dZ, 0.0);
1051      vec4 realPos = ${Uc} + dVec;
1052
1053      gl_Position = ${Vc} * realPos;
1054      ${Wc} = ${$c};
1055
1056      float delRad = 1.0 + 0.3 * sin(theta);
1057      ${qc} = 0.8 + 0.2 * sin(theta);
1058      gl_PointSize = 2.0 * radius * delRad;
1059
1060      ${Kc} = ${Gc};
1061    }
1062  `,fragmentShader:Fc`
1063    precision highp float;
1064    out vec4 outColor;
1065
1066    uniform float ${Xc};
1067
1068    in vec4 ${Wc};
1069    in float ${qc};
1070    in float ${Kc};
1071
1072    ${zc.noiseVec3}
1073    ${zc.radAtAngle}
1074    ${zc.mod2pi}
1075    ${zc.seededRandom}
1076
1077    void main() {
1078      vec2 rectPos = 2.0 * gl_PointCoord - vec2(1.0);
1079
1080
1081      float angle = atan(rectPos.y, rectPos.x) + ${Xc};
1082      angle = mod2pi(angle);
1083      float radAtAngle = radAtAngle(angle, 10. * seededRandom(${Kc} + length(${Wc})));
1084
1085      if (length(rectPos) > pow(radAtAngle, 2.0)) discard;
1086
1087      outColor = vec4(${qc} * ${Wc}.xyz, 1.0);
1088    }
1089  `};class Yc{constructor(e,t=4){this.type=e,this.size=t,this.createArray(),ue()(this)}createArray(){const e=(t=this.type)===Nc.Float?4:t===Nc.UByte?1:(console.error("unrecognized attrib type"),0);var t;const n=new ArrayBuffer(e*this.size);this.array=new((e=>e===Nc.Float?Float32Array:e===Nc.UByte?Uint8Array:(console.error("unrecognized attrib type"),Float32Array))(this.type))(n)}doubleLen(){this.size*=2;const e=this.array;this.createArray(),this.array.set(e,0)}set(e,t){for(;t+e.length>this.size;)this.doubleLen();this.array.set(e,t)}}class Qc{constructor(e,t,n,r=!0){this.gl=e,this.props=n,e.useProgram(t);const i=e.getAttribLocation(t,n.name),o=e.createBuffer();if(!o)throw"Error creating buffer for attrib: "+n.name;r&&e.enableVertexAttribArray(i),this.loc=i,this.buffer=o,this.attribArray=new Yc(n.type)}setVertex(e,t){this.attribArray.set(e,t*this.props.dim)}bufferData(e){const{gl:t,loc:n}=this,{dim:r,type:i,normalize:o}=this.props;
1089t.bindBuffer(t.ARRAY_BUFFER,this.buffer),t.vertexAttribPointer(n,r,i,o,0,0),t.bufferData(t.ARRAY_BUFFER,this.attribArray.array,t.DYNAMIC_DRAW,0,e*r)}}const eu=e=>e.split("\n").reduce((e,t,n)=>e+`[${n}] `+t+"\n","");class tu{static createShader(e,t,n){const r=e.createShader(t);if(!r)return console.error("error creating shader"),null;e.shaderSource(r,n),e.compileShader(r);return e.getShaderParameter(r,e.COMPILE_STATUS)?r:(console.error("error compiling shader"),console.log(e.getShaderInfoLog(r)),e.deleteShader(r),null)}static createProgram(e,t,n){const r=e.createProgram();if(!r)return console.error("error creating program"),null;e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r);return e.getProgramParameter(r,e.LINK_STATUS)?r:(console.error("error creating program!"),console.log(e.getProgramInfoLog(r)),e.deleteProgram(r),null)}static programFromSources(e,t,n){const{createShader:r,createProgram:i}=tu,o=r(e,e.VERTEX_SHADER,t),a=r(e,e.FRAGMENT_SHADER,n);if(!o||!a)return console.error("shader compile error: ",!!o,!!a),console.log("vertex",eu(t)),console.log("fragment",eu(n)),null;const s=i(e,o,a);return s||console.error("error creating program"),s}}function nu(e,t,n){const{name:r,type:i}=n;if(0===i)return n=>{e.uniformMatrix4fv(t,!1,n)};if(1===i)return n=>{e.uniformMatrix3fv(t,!1,n)};if(3===i)return n=>{e.uniform1f(t,n)};if(2===i)return n=>{e.uniform1i(t,n)};if(4===i)return n=>{e.uniform1i(t,n)};if(5===i)return n=>{e.uniform3fv(t,n)};throw`uniform type for ${r} not recognized`}class ru{constructor(e,t){this.verts=0,this.manager=e;const{gl:n}=e,{vertexShader:r,fragmentShader:i,uniforms:o,attribs:a}=t,s=tu.programFromSources(n,r,i);if(null===s)throw"error compiling program";this.program=s,this.uniformData=o,this.attribData=a,n.useProgram(s);const l={},c={};for(const[e,t]of Object.entries(o)){const{name:r}=t,i=e,o=n.getUniformLocation(s,r);if(!o)throw`uniform ${r} doesn't exist!`;l[i]=o,c[i]=nu(n,o,t)}this.uniformLocs=l,this.uniformSetters=c;const u={};for(const[e,t]of Object.entries(a)){u[e]=new Qc(n,s,t)}this.attribManagers=u}setUniforms(){0!==Object.keys(this.uniformData).length&&console.error("did not override setUniforms!")}flush(e=jc.Triangles){if(0===this.verts)return;const{gl:t}=this.manager;t.useProgram(this.program),this.setUniforms();for(const e in this.attribManagers)this.attribManagers[e].bufferData(this.verts);t.drawArrays(e,0,this.verts),this.verts=0}}class iu extends ru{constructor(e){super(e,Zc),this.viewport=or.getInstance()}queueAsteroid(e,t,n,r){const{position:i,color:o,radius:a,theta:s,seed:l}=this.attribManagers,c=this.viewport.worldToCanvasCoords(t),u=this.viewport.worldToCanvasDist(n),f=It.getPlanetCosmetic(e),{x:d,y:h}=c,p=Dc.getPlanetZIndex(e),m=(65025*r[0]+255*r[1]+r[2])%1e4;i.setVertex([d,h,p],this.verts),o.setVertex(r,this.verts),a.setVertex([u],this.verts),s.setVertex([m],this.verts),l.setVertex([f.seed],this.verts),this.verts+=1}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix),this.uniformSetters.now(Dc.getNow())}flush(){super.flush(jc.Points)}}const ou="a_position",au="a_p0topGrad",su="a_p0botGrad",lu="a_p1topGrad",cu="a_p1botGrad",uu="a_p2topGrad",fu="a_p2botGrad",du="a_worldCoords",hu="u_matrix",pu="u_thresholds",mu="u_lengthScale",gu="v_p0topLeftGrad",vu="v_p0topRightGrad",yu="v_p0botLeftGrad",bu="v_p0botRightGrad",wu="v_p1topLeftGrad",Eu="v_p1topRightGrad",ku="v_p1botLeftGrad",xu="v_p1botRightGrad",Su="v_p2topLeftGrad",_u="v_p2topRightGrad",Au="v_p2botLeftGrad",Cu="v_p2botRightGrad",Tu="v_worldCoords",Pu={dim:4,type:Nc.Float,normalize:!1},Ou={uniforms:{matrix:{name:hu,type:0},thresholds:{name:pu,type:5},lengthScale:{name:mu,type:3}},attribs:{position:{dim:2,type:Nc.Float,normalize:!1,name:ou},worldCoords:{dim:2,type:Nc.Float,normalize:!1,name:du},p0topGrad:{...Pu,name:au},p0botGrad:{...Pu,name:su},p1topGrad:{...Pu,name:lu},p1botGrad:{...Pu,name:cu},p2topGrad:{...Pu,name:uu},p2botGrad:{...Pu,name:fu}},vertexShader:Fc`
1090    in vec4 ${ou};
1091
1092    in vec4 ${au};
1093    in vec4 ${su};
1094    in vec4 ${lu};
1095    in vec4 ${cu};
1096    in vec4 ${uu};
1097    in vec4 ${fu};
1098
1099    in vec2 ${du};
1100
1101    uniform mat4 ${hu};
1102
1103    out vec2 ${gu};
1104    out vec2 ${vu};
1105    out vec2 ${yu};
1106    out vec2 ${bu};
1107
1108    out vec2 ${wu};
1109    out vec2 ${Eu};
1110    out vec2 ${ku};
1111    out vec2 ${xu};
1112
1113    out vec2 ${Su};
1114    out vec2 ${_u};
1115    out vec2 ${Au};
1116    out vec2 ${Cu};
1117
1118    out vec2 ${Tu};
1119
1120    void main() {
1121      gl_Position = ${hu} * ${ou};
1122
1123      ${Tu} = ${du};
1124
1125      ${gu} = ${au}.xy;
1126      ${vu} = ${au}.zw;
1127      ${yu} = ${su}.xy;
1128      ${bu} = ${su}.zw;
1129
1130      ${wu} = ${lu}.xy;
1131      ${Eu} = ${lu}.zw;
1132      ${ku} = ${cu}.xy;
1133      ${xu} = ${cu}.zw;
1134
1135      ${Su} = ${uu}.xy;
1136      ${_u} = ${uu}.zw;
1137      ${Au} = ${fu}.xy;
1138      ${Cu} = ${fu}.zw;
1139    }
1140  `,fragmentShader:Fc`
1141    precision highp float;
1142    out vec4 outColor;
1143
1144    in vec2 ${gu};
1145    in vec2 ${vu};
1146    in vec2 ${yu};
1147    in vec2 ${bu};
1148
1149    in vec2 ${wu};
1150    in vec2 ${Eu};
1151    in vec2 ${ku};
1152    in vec2 ${xu};
1153
1154    in vec2 ${Su};
1155    in vec2 ${_u};
1156    in vec2 ${Au};
1157    in vec2 ${Cu};
1158
1159    in vec2 ${Tu};
1160
1161    uniform vec3 ${pu};
1162    uniform float ${mu};
1163
1164    ${zc.modFloat}
1165
1166    float perlin(float scale, float x, float y, vec2 blGrad, vec2 brGrad, vec2 tlGrad, vec2 trGrad) {
1167      float gridX = floor(x / scale) * scale;
1168      float gridY = floor(y / scale) * scale;
1169
1170      float px = (x - gridX) / scale;
1171      float py = (y - gridY) / scale;
1172
1173      // 0 to 1 within each chunk
1174      vec2 pos = vec2(px, py); 
1175
1176      vec2 botLeftDiff = pos - vec2(0., 0.);
1177      vec2 botRightDiff = pos - vec2(1., 0.);
1178      vec2 topLeftDiff = pos - vec2(0., 1.);
1179      vec2 topRightDiff = pos - vec2(1., 1.);
1180
1181      float botLeft = dot(botLeftDiff, blGrad);
1182      float botRight = dot(botRightDiff, brGrad);
1183      float topLeft = dot(topLeftDiff, tlGrad);
1184      float topRight = dot(topRightDiff, trGrad);
1185
1186      float botLeftW = pos.x * pos.y;
1187      float botRightW = (1. - pos.x) * pos.y;
1188      float topLeftW = pos.x * (1. - pos.y);
1189      float topRightW = (1. - pos.x) * (1. - pos.y);
1190
1191      float res = botLeft * topRightW + 
1192                  botRight * topLeftW + 
1193                  topLeft * botRightW + 
1194                  topRight * botLeftW;
1195
1196      return res;
1197    }
1198
1199    void main() {
1200      float scale = ${mu};
1201      float x = ${Tu}.x;
1202      float y = ${Tu}.y;
1203
1204      float p0 = perlin(scale * 1., x, y, ${yu}, ${bu}, ${gu}, ${vu});
1205      float p1 = perlin(scale * 2., x, y, ${ku}, ${xu}, ${wu}, ${Eu});
1206      float p2 = perlin(scale * 4., x, y, ${Au}, ${Cu}, ${Su}, ${_u});
1207
1208      float res = (p0 + p0 + p1 + p2) / 4.;
1209
1210      float m = ${rt.MAX_PERLIN_VALUE}.;
1211      float p = res * (m / 2.) + (m / 2.);
1212
1213      vec4 c0 = vec4(0.000, 0.080, 0.320, 1.0);
1214      vec4 c1 = vec4(0.000, 0.021, 0.170, 1.0);
1215      vec4 c2 = vec4(0.008, 0.000, 0.024, 1.0);
1216      vec4 c3 = vec4(0.000, 0.141, 0.000, 1.0);
1217
1218
1219      float t1 = ${pu}.x;
1220      float t2 = ${pu}.y;
1221      float t3 = ${pu}.z;
1222
1223      outColor = p < t1 ? c0 : p < t2 ? c1 : p < t3 ? c2 : c3;
1224    }
1225  `},Mu=e=>[e.x.valueOf(),e.y.valueOf()];function Iu(e,t){return{x:e.x+t,y:e.y}}function Ru(e,t){return{x:e.x,y:e.y+t}}const Lu=new Map,Nu={};function ju(e,t,n){const{scale:r,key:i}=t,o=function(e,t,n){return`${t.key}-${t.scale}-${n}-${e.x}-${e.y}`}(e,t,n);let a=Nu[i];a||(a=Object(rt.rand)(i),Nu[i]=a);const s=Lu.get(o);if(s)return s;const l=Object(rt.getRandomGradientAt)({x:new rt.Fraction(e.x),y:new rt.Fraction(e.y)},new rt.Fraction(r*2**n),a),c={x:l.x.valueOf(),y:l.y.valueOf()};return Lu.set(o,c),c}class Bu extends ru{constructor(e,t,n,r){super(e,Ou),this.config=t,this.rectRenderer=r,this.posBuffer=Dc.makeEmptyQuadVec2(),this.coordsBuffer=Dc.makeEmptyQuadVec2(),this.thresholds=n}bufferGradients(e,t,n,r){const{scale:i}=this.config,{bottomLeft:o}=e,a=i*2**t,s=function(e,t){const{x:n,y:r}=e;return{x:Math.floor(n/t)*t,y:Math.floor(r/t)*t}}(o,a),l=Iu(s,a),c=Ru(s,a),u=Iu(Ru(s,a),a),f=ju(s,this.config,t),d=ju(l,this.config,t),h=ju(c,this.config,t),p=ju(u,this.config,t),m=[...Mu(h),...Mu(p)],g=[...Mu(f),...Mu(d)];for(let e=0;e<6;e++)n.setVertex(m,this.verts+e),r.setVertex(g,this.verts+e)}queueRect(e){const{bottomLeft:t}=e,{sideLength:n}=e,{x:r,y:i}=t,o=or.getInstance(),{x:a,y:s}=o.worldToCanvasCoords(t),l=o.worldToCanvasDist(n),{x1:c,y1:u}={x1:a,y1:s-l},{x2:f,y2:d}={x2:a+l,y2:s},{position:h,p0topGrad:p,p0botGrad:m,p1topGrad:g,p1botGrad:v,p2topGrad:y,p2botGrad:b,worldCoords:w}=this.attribManagers;Dc.makeQuadVec2Buffered(this.posBuffer,c,u,f,d),h.setVertex(this.posBuffer,this.verts),Dc.makeQuadVec2Buffered(this.coordsBuffer,r,i+n,r+n,i),w.setVertex(this.coordsBuffer,this.verts),this.bufferGradients(e,0,p,m),this.bufferGradients(e,1,g,v),this.bufferGradients(e,2,y,b),this.verts+=6}queueChunk(e){if(e.chunkFootprint.sideLength>this.config.scale){const t=function(e,t){const{bottomLeft:n,sideLength:r}=e;if(r<=t)throw"getPerlinChunks called on a small chunk";const i=new Set;i.add(e);for(let e=n.x;e<n.x+r;e+=t)for(let o=n.y;o<n.y+r;o+=t)i.add({bottomLeft:{x:e,y:o},sideLength:t});return i}(e.chunkFootprint,this.config.scale);for(const e of t)this.queueRect(e)}else this.queueRect(e.chunkFootprint)}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix),this.uniformSetters.lengthScale(this.config.scale),this.uniformSetters.thresholds(this.thresholds)}}const Fu="a_position",Du="a_color",zu="a_rectPos",Uu="a_strokeX",$u="a_strokeY",Hu="u_matrix",Ju="v_color",Gu="v_rectPos",Vu="v_strokeX",Xu="v_strokeY",Wu={uniforms:{matrix:{name:Hu,type:0}},attribs:{position:{dim:3,type:Nc.Float,normalize:!1,name:Fu},color:{dim:3,type:Nc.UByte,normalize:!0,name:Du},rectPos:{dim:2,type:Nc.Float,normalize:!1,name:zu},strokeX:{dim:1,type:Nc.Float,normalize:!1,name:Uu},strokeY:{dim:1,type:Nc.Float,normalize:!1,name:$u}},vertexShader:Fc`
1226    in vec4 ${Fu};
1227    in vec4 ${Du};
1228    in vec2 ${zu};
1229    in float ${Uu};
1230    in float ${$u};
1231
1232    uniform mat4 ${Hu};
1233
1234    out vec4 ${Ju};
1235    out vec2 ${Gu};
1236    out float ${Vu};
1237    out float ${Xu};
1238
1239    void main() {
1240      gl_Position = ${Hu} * ${Fu};
1241
1242      ${Ju} = ${Du};
1243      ${Gu} = ${zu};
1244      ${Vu} = ${Uu};
1245      ${Xu} = ${$u};
1246    }
1247  `,fragmentShader:Fc`
1248    precision highp float;
1249    out vec4 outColor;
1250
1251    in vec4 ${Ju};
1252    in vec2 ${Gu};
1253    in float ${Vu}; // pct of width that should be stroke
1254    in float ${Xu}; // pct of height that should be stroke
1255
1256    void main() {
1257      bool hasStroke = ${Vu} > 0.0;
1258      float rx = ${Gu}.x;
1259      float ry = ${Gu}.y;
1260
1261      bool xTest = rx > ${Vu} && rx < 1.0 - ${Vu};
1262      bool yTest = ry > ${Xu} && ry < 1.0 - ${Xu};
1263
1264      if (hasStroke && xTest && yTest) discard;
1265
1266      outColor = ${Ju};
1267    }
1268  `};class qu extends ru{constructor(e){super(e,Wu),this.quad3Buffer=Dc.makeEmptyQuad(),this.quad2Buffer=Dc.makeQuadVec2(0,0,1,1)}
1268queueRect({x:e,y:t},n,r,i=[255,0,0],o=-1,a=-98){const{position:s,rectPos:l,color:c,strokeX:u,strokeY:f}=this.attribManagers,{x1:d,y1:h}={x1:e,y1:t},{x2:p,y2:m}={x2:e+n,y2:t+r};Dc.makeQuadBuffered(this.quad3Buffer,d,h,p,m,a),s.setVertex(this.quad3Buffer,this.verts),l.setVertex(this.quad2Buffer,this.verts);for(let e=0;e<6;e++)c.setVertex(i,this.verts+e),u.setVertex([o/n],this.verts+e),f.setVertex([o/r],this.verts+e);this.verts+=6}queueRectWorld(e,t,n,r=[255,0,0],i=-1,o=-98){const a=or.getInstance(),s=a.worldToCanvasCoords(e),l=a.worldToCanvasDist(t),c=a.worldToCanvasDist(n);this.queueRect(s,l,c,r,i,o)}queueRectCenterWorld(e,t,n,r=[255,0,0],i=-1,o=-98){const a={x:e.x-t/2,y:e.y+n/2};this.queueRectWorld(a,t,n,r,i,o)}queueChunkBorder(e){const{chunkFootprint:{bottomLeft:t,sideLength:n}}=e;this.queueRectWorld({x:t.x,y:t.y+n},n,n,[255,0,0],1)}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix)}}class Ku{constructor(e,t,n){this.manager=e,this.renderer=e.renderer;const r=new qu(e);this.borderRenderer=r,this.perlinRenderer=new Bu(e,t,n,r)}drawChunks(e,t,n){if(t)return;const r=or.getInstance();for(const t of e)r.intersectsViewport(t)&&(this.perlinRenderer.queueChunk(t),n&&this.borderRenderer.queueChunkBorder(t));this.flush()}fillPerlin(){const{canvas:{width:e,height:t},ctx:n}=this.renderer.overlay2dRenderer,{gameUIManager:r}=this.renderer,i=or.getInstance();n.globalAlpha=.5;for(let n=0;n<e;n+=100)for(let e=0;e<t;e+=100){const t=i.canvasToWorldCoords({x:n,y:e}),o=r.spaceTypeFromPerlin(r.getSpaceTypePerlin(t,!1));let a=[255,0,0];o===de.SpaceType.SPACE&&(a=[0,255,0]),o===de.SpaceType.DEEP_SPACE&&(a=[0,0,255]),o===de.SpaceType.DEAD_SPACE&&(a=[0,255,0]),this.borderRenderer.queueRect({x:n,y:e},20,20,a)}n.globalAlpha=1}flush(){this.perlinRenderer.flush(),this.borderRenderer.flush()}}const Zu="a_position",Yu="a_color",Qu="a_rectPos",ef="a_props",tf="u_matrix",nf="u_now",rf="v_color",of="v_rectPos",af="v_astRad",sf="v_num",lf="v_xRad",cf="v_yRad",uf="v_perturb",ff={uniforms:{matrix:{name:tf,type:0},now:{name:nf,type:3}},attribs:{position:{dim:3,type:Nc.Float,normalize:!1,name:Zu},rectPos:{dim:2,type:Nc.Float,normalize:!1,name:Qu},color:{dim:3,type:Nc.UByte,normalize:!0,name:Yu},props:{dim:4,type:Nc.Float,normalize:!1,name:ef}},vertexShader:Fc`
1269    in vec4 ${Zu};
1270    in vec4 ${Yu};
1271    in vec2 ${Qu};
1272    in vec4 ${ef};
1273
1274    uniform mat4 ${tf};
1275
1276    out vec4 ${rf};
1277    out vec2 ${of};
1278
1279    out float ${sf};
1280    out float ${lf};
1281    out float ${cf};
1282    out float ${af};
1283    out float ${uf};
1284
1285    void main() {
1286      gl_Position = ${tf} * ${Zu};
1287      ${rf} = ${Yu};
1288      ${of} = ${Qu};
1289
1290      ${sf} = ${ef}.x;
1291      ${lf} = ${ef}.y;
1292      ${cf} = ${ef}.z;
1293      ${af} = ${ef}.w;
1294      ${uf} = ${ef}.x > 10. ? 1. : 0.;
1295    }
1296  `,fragmentShader:Fc`
1297    ${zc.PI}
1298
1299    precision highp float;
1300    out vec4 outColor;
1301
1302    uniform float ${nf};
1303
1304    in vec4 ${rf};
1305    in vec2 ${of};
1306
1307    in float ${sf};
1308    in float ${lf};
1309    in float ${cf};
1310    in float ${uf};
1311    in float ${af};
1312
1313    ${zc.arcTan}
1314    ${zc.mod2pi}
1315
1316    void main() {
1317      float r = ${af};
1318
1319      float num = ${sf};
1320      float xRad = ${lf};
1321      float yRad = ${cf};
1322      // do all calculations in rectPos
1323
1324      float interval = (2.0 * PI) / num;
1325
1326      bool disc = true;
1327
1328      float trueZ = -99.0;
1329      float trueTheta = 0.0;
1330
1331      float rX = ${of}.x;
1332      float rY = ${of}.y;
1333
1334      // calculate x, y position
1335      float theta = ${nf};
1336      float x = xRad * cos(theta);
1337      float y = yRad * sin(theta);
1338
1339      bool isIn = false;
1340      vec4 myColor = vec4(1.);
1341
1342      float distFromCenter = length(${of} - vec2(x, y));
1343      if (distFromCenter < r) {
1344        myColor = ${rf};
1345        isIn = true;
1346      }
1347
1348
1349      float eps = r * 0.3;
1350
1351      if (
1352        !isIn &&
1353        pow(rX / (xRad - eps), 2.0) + 
1354        pow(rY / (yRad - eps), 2.0) > 1. &&
1355        pow(rX / (xRad + eps), 2.0) + 
1356        pow(rY / (yRad + eps), 2.0) < 1.
1357      ) {
1358        /* this code /should/ let you add a gradient, it's broken because theta1 - theta2
1359         doesn't take into account that there are two differences (since we're mod 2pi) - fix by adding a min */
1360
1361        // float posOnArc = arcTan(rY / yRad, rX / xRad);
1362        // float gradient = (posOnArc - mod2pi(theta)) / (2. * PI); // 0 to 1
1363        // myColor.rgb = ${rf}.rgb * (1. - vec3(gradient));
1364        myColor.rgb = ${rf}.rgb * 0.8;
1365        isIn = true;
1366      }
1367
1368      float posOnArc = arcTan(rY / yRad, rX / xRad);
1369      float darken = 0.7 + 0.3 * sin(posOnArc);
1370
1371
1372      if (!isIn) discard;
1373
1374      myColor.rgb *= darken;
1375
1376      outColor = myColor;
1377    }
1378  `};class df extends ru{constructor(e){super(e,ff),this.topRectPosBuffer=Dc.makeEmptyQuadVec2(),this.botRectPosBuffer=Dc.makeEmptyQuadVec2(),this.posBuffer=Dc.makeEmptyQuad(),ue()(this)}queueBeltWorld(e,t,n,r=1,i=0,o=0,a=[10,1,1,.05],s=0){const l=or.getInstance(),c=l.worldToCanvasCoords(e),u=l.worldToCanvasDist(t);this.queueBelt(c,u,n,r,i,o,a,s)}queueBelt(e,t,n,r=1,i=0,o=0,a=[10,1,1,.05],s=0){const{position:l,rectPos:c,color:u,props:f}=this.attribManagers;Dc.makeQuadVec2Buffered(this.topRectPosBuffer,-r,r,r,0),Dc.makeQuadVec2Buffered(this.botRectPosBuffer,-r,0,r,-r);const d=r*t,h=[-d,-d],p=[+d,+d],m=h[0],g=h[1],v=p[0],y=p[1];Dc.makeQuadBuffered(this.posBuffer,m,g,v,0,i+o),Dc.rotateQuad(this.posBuffer,s),Dc.translateQuad(this.posBuffer,[e.x,e.y]),l.setVertex(this.posBuffer,this.verts),c.setVertex(this.topRectPosBuffer,this.verts);for(let e=0;e<6;e++)u.setVertex(n,this.verts+e),f.setVertex(a,this.verts+e);this.verts+=6,Dc.makeQuadBuffered(this.posBuffer,m,0,v,y,i-o),Dc.rotateQuad(this.posBuffer,s),Dc.translateQuad(this.posBuffer,[e.x,e.y]),l.setVertex(this.posBuffer,this.verts),c.setVertex(this.botRectPosBuffer,this.verts);for(let e=0;e<6;e++)u.setVertex(n,this.verts+e),f.setVertex(a,this.verts+e);this.verts+=6}queueBeltAtIdx(e,t,n,r,i,o=0,a=!1){const s=.01*(i+1),l=[50+10*(c=i),1.7+.7*c,.3+.25*c,.05];var c;const u=Dc.getPlanetZIndex(e),f=3+1.5*i;(a?this.queueBelt:this.queueBeltWorld)(t,n,r,f,u,s,l,o)}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix),this.uniformSetters.now(Dc.getNow()/2)}}const hf="a_position",pf="a_rectPos",mf="u_matrix",gf="u_now",vf="v_rectPos",yf={uniforms:{matrix:{name:mf,type:0},now:{name:gf,type:3}},attribs:{position:{dim:3,type:Nc.Float,normalize:!1,name:hf},rectPos:{dim:2,type:Nc.Float,normalize:!1,name:pf}},vertexShader:Fc`
1379    in vec4 ${hf};
1380    in vec2 ${pf};
1381
1382    uniform mat4 ${mf};
1383
1384    out vec2 ${vf};
1385
1386    void main() {
1387      gl_Position = ${mf} * ${hf};
1388      ${vf} = ${pf};
1389    }
1390  `,fragmentShader:Fc`
1391    precision highp float;
1392    out vec4 outColor;
1393
1394    in vec2 ${vf};
1395
1396    uniform float ${gf};
1397
1398    ${zc.simplex4}
1399
1400    void main() {
1401      float rx = ${vf}.x;
1402      float ry = ${vf}.y;
1403
1404      float z = sqrt(1. - pow(rx, 2.) - pow(ry, 2.));
1405
1406      if (length(${vf}) > 1.) discard;
1407
1408      float n = snoise(vec4(rx, ry, z, ${gf}));
1409
1410      outColor = vec4(vec3(n), 0.8);
1411    }
1412  `};class bf extends ru{constructor(e){super(e,yf),this.quad3Buffer=Dc.makeEmptyQuad(),this.quad2Buffer=Dc.makeQuadVec2(-1,1,1,-1)}queueBlackDomainScreen(e,t,n,r){const{position:i,rectPos:o}=this.attribManagers,a=1.2*n,s=t.x-a,l=t.y-a,c=t.x+a,u=t.y+a;Dc.makeQuadBuffered(this.quad3Buffer,s,l,c,u,r),i.setVertex(this.quad3Buffer,this.verts),o.setVertex(this.quad2Buffer,this.verts),this.verts+=6}queueBlackDomain(e,t,n){const r=or.getInstance().worldToCanvasCoords(t),i=or.getInstance().worldToCanvasDist(n),o=Dc.getPlanetZIndex(e);this.queueBlackDomainScreen(e,r,i,o)}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix);const e=Dc.getNow();this.uniformSetters.now(e/6)}}const wf={fontStyle:"64px monospace",dashLength:10,planet:{maxRadius:4},glyphs:{glyphW:40,glyphH:64,rowL:13,canvasDim:1024,scale:4},colors:{artifacts:{shine:[255,251,207],trim:[240,227,86]},gold:[255,221,48],barbs:[153,102,102],barbsA:[153,102,102,255],white:[255,255,255],whiteA:[255,255,255,255],purpleA:[255,0,255,255],purple:[255,0,255],red:[255,0,0],redA:[255,0,0,255],range:{dash:[150,145,191],energy:[245,180,130]},voyage:{enemy:[255,0,0],enemyA:[255,0,0,255],mine:[0,0,255],mineA:[255,255,255,255]},bonus:{energyCap:It.hslToRgb([360,73,70]),energyGro:It.hslToRgb([136,73,70]),speed:It.hslToRgb([290,73,70]),range:It.hslToRgb([50,73,70]),defense:It.hslToRgb([231,73,70])},belt:{silver:[240,180,50],speed:It.hslToRgb([290,85,80]),range:It.hslToRgb([50,85,80]),defense:It.hslToRgb([231,85,80])}}},Ef="a_position",kf="a_color",xf="a_props",Sf="a_eps",_f="u_matrix",Af="v_color",Cf="v_stroke",Tf="v_angle",Pf="v_dash",Of="v_rectPos",Mf="v_eps",If={uniforms:{matrix:{name:_f,type:0}},attribs:{position:{dim:4,type:Nc.Float,normalize:!1,name:Ef},eps:{dim:1,type:Nc.Float,normalize:!1,name:Sf},color:{dim:4,type:Nc.UByte,normalize:!0,name:kf},props:{dim:3,type:Nc.Float,normalize:!1,name:xf}},vertexShader:Fc`
1413    in vec4 ${Ef};
1414    in vec4 ${kf};
1415    in vec3 ${xf};
1416    in float ${Sf};
1417
1418    uniform mat4 ${_f};
1419
1420    out vec4 ${Af};
1421    out vec2 ${Of};
1422    out float ${Cf};
1423    out float ${Tf};
1424    out float ${Pf};
1425    out float ${Mf};
1426
1427
1428    void main() {
1429      gl_Position = ${_f} * vec4(${Ef}.xy, 0.0, 1.0);
1430
1431      ${Of} = ${Ef}.zw;
1432      ${Af} = ${kf};
1433      ${Cf} = ${xf}.x;
1434      ${Tf} = ${xf}.y;
1435      ${Pf} = ${xf}.z;
1436      ${Mf} = ${Sf};
1437    }
1438  `,fragmentShader:Fc`
1439    #define PI 3.1415926535
1440
1441    precision highp float;
1442    out vec4 outColor;
1443
1444    in vec4 ${Af};
1445    in vec2 ${Of};
1446    in float ${Cf};
1447    in float ${Tf};
1448    in float ${Pf};
1449    in float ${Mf};
1450
1451    void main() {
1452      vec4 color = ${Af};
1453      float dist = length(${Of});
1454
1455      if (dist > 1.0) discard; // if it's outside the circle
1456
1457      // anti-aliasing if barely in the circle
1458      float ratio = (1.0 - dist) / ${Mf};
1459      if (ratio < 1.) {
1460        color.a *= ratio;
1461      }
1462
1463      /* do stroke check - discard inner circle if stroke */
1464      float rad = 1.0 - ${Mf};
1465
1466      // keep a band of stroke +- epsilon
1467      bool hasStroke = ${Cf} > 0.0;
1468      bool outer = dist > rad - ${Cf} - ${Mf};
1469      
1470      if (hasStroke) {
1471        if (!outer) discard;
1472        // anti-aliasing
1473        float inRatio = (dist - (rad - ${Cf} - ${Mf})) / ${Mf};
1474        if (inRatio < 1.) color.a *= inRatio; // flip direction 
1475      }
1476
1477      /* get angle for both angle + dash checks */
1478      float angle = atan(${Of}.y, ${Of}.x);
1479
1480      // add 5pi/2 to translate it to [-PI/2, 3PI / 2]
1481      float check = angle + (5.0 * PI / 2.0);
1482      check -= (check > 2.0 * PI ? 2.0 * PI : 0.0);
1483      float pct = check / (2.0 * PI);
1484
1485      /* do angle check */
1486
1487      if (${Tf} != 1.0 && pct > ${Tf}) discard;
1488
1489      /* do dash check */
1490      bool isDash = ${Pf} > 0.0;
1491      float interval = angle / ${Pf};
1492      float modulo = interval - 2.0 * floor(interval / 2.0);
1493      bool isGap = modulo > 1.0;
1494      if (isDash && isGap) discard;
1495
1496      /* now draw it */
1497      outColor = color;
1498    }
1499  `};class Rf extends ru{constructor(e){super(e,If),this.viewport=or.getInstance(),this.quadBuffer=Dc.makeEmptyDoubleQuad()}queueCircle(e,t,n=[255,0,0,255],r=-1,i=1,o=!1){const{position:a,color:s,props:l,eps:c}=this.attribManagers,{x:u,y:f}=e,d=t+(r>0?2:1),{x1:h,y1:p}={x1:u-d,y1:f-d},{x2:m,y2:g}={x2:u+d,y2:f+d};Dc.makeDoubleQuadBuffered(this.quadBuffer,h,p,m,g,-1,-1,1,1),a.setVertex(this.quadBuffer,this.verts);const v=r/t,y=wf.dashLength,b=o?y/t:-1,w=1/t;for(let e=0;e<6;e++)s.setVertex(n,this.verts+e),l.setVertex([v,i,b],this.verts+e),c.setVertex([w],this.verts+e);this.verts+=6}queueCircleWorld(e,t,n=[255,0,0,255],r=-1,i=1,o=!1){const a=this.viewport.worldToCanvasCoords(e),s=this.viewport.worldToCanvasDist(t);this.queueCircle(a,s,n,r,i,o)}queueCircleWorldCenterOnly(e,t,n=[255,0,0,255]){const r=this.viewport.worldToCanvasCoords(e);this.queueCircle(r,t,n)}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix)}}const Lf="a_position",Nf="a_color",jf="a_dist",Bf="u_matrix",Ff="v_color",Df="v_dist",zf={uniforms:{matrix:{name:Bf,type:0}},attribs:{position:{dim:3,type:Nc.Float,normalize:!1,name:Lf},color:{dim:3,type:Nc.UByte,normalize:!0,name:Nf},dist:{dim:1,type:Nc.Float,normalize:!1,name:jf}},vertexShader:Fc`
1500    in vec4 ${Lf};
1501    in vec4 ${Nf};
1502    in float ${jf};
1503
1504    uniform mat4 ${Bf};
1505
1506    out vec4 ${Ff};
1507    out float ${Df};
1508
1509    void main() {
1510      gl_Position = ${Bf} * ${Lf};
1511
1512      ${Ff} = ${Nf};
1513      ${Df} = ${jf};
1514    }
1515  `,fragmentShader:Fc`
1516    precision highp float;
1517    out vec4 outColor;
1518
1519    in vec4 ${Ff};
1520    in float ${Df};
1521
1522    void main() {
1523      // solid in the 0 regions
1524      float interval = ${Df} / ${wf.dashLength.toFixed(1)};
1525      float modulo = interval - 2.0 * floor(interval / 2.0);
1526      bool isGap = modulo > 1.0;
1527
1528      outColor = isGap ? vec4(0.0, 0.0, 0.0, 0.0) : ${Ff};
1529    }
1530  `};class Uf extends ru{constructor(e){super(e,zf)}getOffset(e,t){const n=t.x-e.x,r=t.y-e.y,i=-n,o=Math.sqrt(r**2+i**2);return{x:r/o,y:i/o}}queueLine(e,t,n=[255,0,0,255],r=1,i=-98,o=!1){const{position:a,color:s,dist:l}=this.attribManagers,{x:c,y:u}=e,{x:f,y:d}=t;let h=0;o&&(h=Math.sqrt((c-f)**2+(u-d)**2));const{x:p,y:m}=this.getOffset(e,t);for(let e=-r;e<=r;e++)a.setVertex([c+p,u+m,i,f+p,d+m,i],this.verts),s.setVertex([n[0],n[1],n[2],n[0],n[1],n[2]],this.verts),l.setVertex([0,h],this.verts),this.verts+=2}queueLineWorld(e,t,n=[255,0,0,255],r=1,i=-98,o=!1){const a=or.getInstance(),s=a.worldToCanvasCoords(e),l=a.worldToCanvasCoords(t);this.queueLine(s,l,n,r,i,o)}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix)}flush(){super.flush(jc.Lines)}}const $f="a_position",Hf="a_color",Jf="a_radius",Gf="a_seed",Vf="a_offset",Xf="u_matrix",Wf="u_now",qf="v_color",Kf="v_darken",Zf="v_seed",Yf={uniforms:{matrix:{name:Xf,type:0},now:{name:Wf,type:3}},attribs:{position:{dim:3,type:Nc.Float,normalize:!1,name:$f},color:{dim:3,type:Nc.UByte,normalize:!0,name:Hf},radius:{dim:1,type:Nc.Float,normalize:!1,name:Jf},seed:{dim:1,type:Nc.Float,normalize:!1,name:Gf},offset:{dim:1,type:Nc.Float,normalize:!1,name:Vf}},vertexShader:Fc`
1531    in vec4 ${$f};
1532    in vec4 ${Hf};
1533    in float ${Jf};
1534    in float ${Gf};
1535    in float ${Vf};
1536  
1537    uniform mat4 ${Xf};
1538    uniform float ${Wf};
1539  
1540    out vec4 ${qf};
1541    out float ${Kf}; // between 0 and 1
1542    out float ${Zf};
1543  
1544    ${zc.mod2pi}
1545  
1546    void main() {
1547      float radius = ${Jf} * 0.5;
1548  
1549      float theta = mod2pi(${Wf} + ${Vf});
1550  
1551      // these are all in screen coords
1552      float dX = 0.7 * ${Jf} * cos(theta);
1553      float dY = 0.35 * ${Jf} * sin(theta);
1554      float dZ = -0.00001 * sin(theta); // essentially flat
1555  
1556      vec4 dVec = vec4(dX, dY, dZ, 0.0);
1557      vec4 realPos = ${$f} + dVec;
1558  
1559      gl_Position = ${Xf} * realPos;
1560      ${qf} = ${Hf};
1561  
1562      float delRad = 1.0 + 0.3 * sin(theta);
1563      ${Kf} = 0.7 + 0.3 * sin(theta);
1564      gl_PointSize = 2.0 * radius * delRad;
1565  
1566      ${Zf} = ${Gf};
1567    }
1568  `,fragmentShader:Fc`
1569    precision highp float;
1570    out vec4 outColor;
1571  
1572    uniform float ${Wf};
1573  
1574    in vec4 ${qf};
1575    in float ${Kf};
1576    in float ${Zf};
1577  
1578    ${zc.noiseVec3}
1579    ${zc.radAtAngle}
1580    ${zc.mod2pi}
1581    ${zc.seededRandom}
1582  
1583    void main() {
1584      vec2 rectPos = 2.0 * gl_PointCoord - vec2(1.0);
1585  
1586  
1587      float angle = atan(rectPos.y, rectPos.x) + ${Wf};
1588      angle = mod2pi(angle);
1589      float radAtAngle = radAtAngle(angle, 10. * seededRandom(${Zf} + length(${qf})));
1590  
1591      if (length(rectPos) > pow(radAtAngle, 2.0)) discard;
1592  
1593      outColor = vec4(${Kf} * ${qf}.xyz, 1.0);
1594    }
1595  `};class Qf extends ru{constructor(e){super(e,Yf)}queuePoint({x:e,y:t},n,r,i,o,a){const{position:s,radius:l,color:c,seed:u,offset:f}=this.attribManagers;s.setVertex([e,t,n],this.verts),l.setVertex([r],this.verts),c.setVertex(i,this.verts),u.setVertex([o],this.verts),f.setVertex([a],this.verts),this.verts+=1}queueMineScreen(e,t,n,r){const i=It.getPlanetCosmetic(e),{seed:o}=i,a=e.planetLevel+1,s=2*Math.PI/a,[l,c,u]=i.asteroidHsl;for(let e=0;e<a;e++){const i=e*s,a=40*((o+1741*e)%5/5)-20,f=40*((o+1741*(e+10))%5/5)-20,d=It.hslToRgb([l,c+a,u+f]);this.queuePoint(t,r,n,d,o+e,i)}}queueMine(e,t,n){const r=or.getInstance().worldToCanvasCoords(t),i=or.getInstance().worldToCanvasDist(n),o=Dc.getPlanetZIndex(e);this.queueMineScreen(e,r,i,o)}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix),this.uniformSetters.now(Dc.getNow())}flush(){super.flush(jc.Points)}}class ed{constructor(e){this.mineBodyRenderer=new Qf(e),this.beltRenderer=new df(e)}queueMineScreen(e,t,n,r){const{white:i,belt:{silver:o}}=wf.colors;this.mineBodyRenderer.queueMineScreen(e,t,n,r);const a=e.planetLevel,s=.3*Dc.getNow();a>=1&&this.beltRenderer.queueBeltAtIdx(e,t,n,i,0,.5*s,!0),a>=3&&this.beltRenderer.queueBeltAtIdx(e,t,n,i,0,.5*-s,!0),a>=5&&this.beltRenderer.queueBeltAtIdx(e,t,n,i,0,.3*-s,!0),a>=7&&this.beltRenderer.queueBeltAtIdx(e,t,n,i,0,.3*s,!0),a===fe.MAX_PLANET_LEVEL&&this.beltRenderer.queueBeltAtIdx(e,t,n,o,2,0,!0)}queueMine(e,t,n){const r=or.getInstance().worldToCanvasCoords(t),i=or.getInstance().worldToCanvasDist(n),o=Dc.getPlanetZIndex(e);this.queueMineScreen(e,r,i,o)}flush(){this.beltRenderer.flush(),this.mineBodyRenderer.flush()}setUniforms(){this.mineBodyRenderer.setUniforms(),this.beltRenderer.setUniforms()}}var td=1e-6,nd="undefined"!=typeof Float32Array?Float32Array:Array;Math.random;Math.PI;function rd(){var e=new nd(16);return nd!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function id(e){var t=new nd(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function od(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function ad(e,t,n,r,i,o,a,s,l,c,u,f,d,h,p,m){var g=new nd(16);return g[0]=e,g[1]=t,g[2]=n,g[3]=r,g[4]=i,g[5]=o,g[6]=a,g[7]=s,g[8]=l,g[9]=c,g[10]=u,g[11]=f,g[12]=d,g[13]=h,g[14]=p,g[15]=m,g}function sd(e,t,n,r,i,o,a,s,l,c,u,f,d,h,p,m,g){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=a,e[6]=s,e[7]=l,e[8]=c,e[9]=u,e[10]=f,e[11
vendor: 4,192 bytes, line 1595
1595]=d,e[12]=h,e[13]=p,e[14]=m,e[15]=g,e}function ld(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function cd(e,t){if(e===t){var n=t[1],r=t[2],i=t[3],o=t[6],a=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=o,e[11]=t[14],e[12]=i,e[13]=a,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function ud(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],f=t[9],d=t[10],h=t[11],p=t[12],m=t[13],g=t[14],v=t[15],y=n*s-r*a,b=n*l-i*a,w=n*c-o*a,E=r*l-i*s,k=r*c-o*s,x=i*c-o*l,S=u*m-f*p,_=u*g-d*p,A=u*v-h*p,C=f*g-d*m,T=f*v-h*m,P=d*v-h*g,O=y*P-b*T+w*C+E*A-k*_+x*S;return O?(O=1/O,e[0]=(s*P-l*T+c*C)*O,e[1]=(i*T-r*P-o*C)*O,e[2]=(m*x-g*k+v*E)*O,e[3]=(d*k-f*x-h*E)*O,e[4]=(l*A-a*P-c*_)*O,e[5]=(n*P-i*A+o*_)*O,e[6]=(g*w-p*x-v*b)*O,e[7]=(u*x-d*w+h*b)*O,e[8]=(a*T-s*A+c*S)*O,e[9]=(r*A-n*T-o*S)*O,e[10]=(p*k-m*w+v*y)*O,e[11]=(f*w-u*k-h*y)*O,e[12]=(s*_-a*C-l*S)*O,e[13]=(n*C-r*_+i*S)*O,e[14]=(m*b-p*E-g*y)*O,e[15]=(u*E-f*b+d*y)*O,e):null}function fd(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],f=t[9],d=t[10],h=t[11],p=t[12],m=t[13],g=t[14],v=t[15];return e[0]=s*(d*v-h*g)-f*(l*v-c*g)+m*(l*h-c*d),e[1]=-(r*(d*v-h*g)-f*(i*v-o*g)+m*(i*h-o*d)),e[2]=r*(l*v-c*g)-s*(i*v-o*g)+m*(i*c-o*l),e[3]=-(r*(l*h-c*d)-s*(i*h-o*d)+f*(i*c-o*l)),e[4]=-(a*(d*v-h*g)-u*(l*v-c*g)+p*(l*h-c*d)),e[5]=n*(d*v-h*g)-u*(i*v-o*g)+p*(i*h-o*d),e[6]=-(n*(l*v-c*g)-a*(i*v-o*g)+p*(i*c-o*l)),e[7]=n*(l*h-c*d)-a*(i*h-o*d)+u*(i*c-o*l),e[8]=a*(f*v-h*m)-u*(s*v-c*m)+p*(s*h-c*f),e[9]=-(n*(f*v-h*m)-u*(r*v-o*m)+p*(r*h-o*f)),e[10]=n*(s*v-c*m)-a*(r*v-o*m)+p*(r*c-o*s),e[11]=-(n*(s*h-c*f)-a*(r*h-o*f)+u*(r*c-o*s)),e[12]=-(a*(f*g-d*m)-u*(s*g-l*m)+p*(s*d-l*f)),e[13]=n*(f*g-d*m)-u*(r*g-i*m)+p*(r*d-i*f),e[14]=-(n*(s*g-l*m)-a*(r*g-i*m)+p*(r*l-i*s)),e[15]=n*(s*d-l*f)-a*(r*d-i*f)+u*(r*l-i*s),e}function dd(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],d=e[11],h=e[12],p=e[13],m=e[14],g=e[15];return(t*a-n*o)*(f*g-d*m)-(t*s-r*o)*(u*g-d*p)+(t*l-i*o)*(u*m-f*p)+(n*s-r*a)*(c*g-d*h)-(n*l-i*a)*(c*m-f*h)+(r*l-i*s)*(c*p-u*h)}function hd(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],f=t[8],d=t[9],h=t[10],p=t[11],m=t[12],g=t[13],v=t[14],y=t[15],b=n[0],w=n[1],E=n[2],k=n[3];return e[0]=b*r+w*s+E*f+k*m,e[1]=b*i+w*l+E*d+k*g,e[2]=b*o+w*c+E*h+k*v,e[3]=b*a+w*u+E*p+k*y,b=n[4],w=n[5],E=n[6],k=n[7],e[4]=b*r+w*s+E*f+k*m,e[5]=b*i+w*l+E*d+k*g,e[6]=b*o+w*c+E*h+k*v,e[7]=b*a+w*u+E*p+k*y,b=n[8],w=n[9],E=n[10],k=n[11],e[8]=b*r+w*s+E*f+k*m,e[9]=b*i+w*l+E*d+k*g,e[10]=b*o+w*c+E*h+k*v,e[11]=b*a+w*u+E*p+k*y,b=n[12],w=n[13],E=n[14],k=n[15],e[12]=b*r+w*s+E*f+k*m,e[13]=b*i+w*l+E*d+k*g,e[14]=b*o+w*c+E*h+k*v,e[15]=b*a+w*u+E*p+k*y,e}function pd(e,t,n){var r,i,o,a,s,l,c,u,f,d,h,p,m=n[0],g=n[1],v=n[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*v+t[12],e[13]=t[1]*m+t[5]*g+t[9]*v+t[13],e[14]=t[2]*m+t[6]*g+t[10]*v+t[14],e[15]=t[3]*m+t[7]*g+t[11]*v+t[15]):(r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],f=t[8],d=t[9],h=t[10],p=t[11],e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=f,e[9]=d,e[10]=h,e[11]=p,e[12]=r*m+s*g+f*v+t[12],e[13]=i*m+l*g+d*v+t[13],e[14]=o*m+c*g+h*v+t[14],e[15]=a*m+u*g+p*v+t[15]),e}function md(e,t,n){var r=n[0],i=n[1],o=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function gd(e,t,n,r){var i,o,a,s,l,c,u,f,d,h,p,m,g,v,y,b,w,E,k,x,S,_,A,C,T=r[0],P=r[1],O=r[2],M=Math.hypot(T,P,O);return M<td?null:(T*=M=1/M,P*=M,O*=M,i=Math.sin(n),a=1-(o=Math.cos(n)),s=t[0],l=t[1],c=t[2],u=t[3],f=t[4],d=t[5],h=t[6],p=t[7],m=t[8],g=t[9],v=t[10],y=t[11],b=T*T*a+o,w=P*T*a+O*i,E=O*T*a-P*i,k=T*P*a-O*i,x=P*P*a+o,S=O*P*a+T*i,_=T*O*a+P*i,A=P*O*a-T*i,C=O*O*a+o,e[0]=s*b+f*w+m*E,e[1]=l*b+d*w+g*E,e[2]=c*b+h*w+v*E,e[3]=u*b+p*w+y*E,e[4]=s*k+f*x+m*S,e[5]=l*k+d*x+g*S,e[6]=c*k+h*x+v*S,e[7]=u*k+p*x+y*S,e[8]=s*_+f*A+m*C,e[9]=l*_+d*A+g*C,e[10
vendor: 11,417 bytes, lines 1595-1629
1595]=c*_+h*A+v*C,e[11]=u*_+p*A+y*C,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function vd(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*i+c*r,e[5]=a*i+u*r,e[6]=s*i+f*r,e[7]=l*i+d*r,e[8]=c*i-o*r,e[9]=u*i-a*r,e[10]=f*i-s*r,e[11]=d*i-l*r,e}function yd(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[0],a=t[1],s=t[2],l=t[3],c=t[8],u=t[9],f=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*i-c*r,e[1]=a*i-u*r,e[2]=s*i-f*r,e[3]=l*i-d*r,e[8]=o*r+c*i,e[9]=a*r+u*i,e[10]=s*r+f*i,e[11]=l*r+d*i,e}function bd(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[0],a=t[1],s=t[2],l=t[3],c=t[4],u=t[5],f=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*i+c*r,e[1]=a*i+u*r,e[2]=s*i+f*r,e[3]=l*i+d*r,e[4]=c*i-o*r,e[5]=u*i-a*r,e[6]=f*i-s*r,e[7]=d*i-l*r,e}function wd(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function Ed(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function kd(e,t,n){var r,i,o,a=n[0],s=n[1],l=n[2],c=Math.hypot(a,s,l);return c<td?null:(a*=c=1/c,s*=c,l*=c,r=Math.sin(t),o=1-(i=Math.cos(t)),e[0]=a*a*o+i,e[1]=s*a*o+l*r,e[2]=l*a*o-s*r,e[3]=0,e[4]=a*s*o-l*r,e[5]=s*s*o+i,e[6]=l*s*o+a*r,e[7]=0,e[8]=a*l*o+s*r,e[9]=s*l*o-a*r,e[10]=l*l*o+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function xd(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Sd(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function _d(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Ad(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=r+r,l=i+i,c=o+o,u=r*s,f=r*l,d=r*c,h=i*l,p=i*c,m=o*c,g=a*s,v=a*l,y=a*c;return e[0]=1-(h+m),e[1]=f+y,e[2]=d-v,e[3]=0,e[4]=f-y,e[5]=1-(u+m),e[6]=p+g,e[7]=0,e[8]=d+v,e[9]=p-g,e[10]=1-(u+h),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function Cd(e,t){var n=new nd(3),r=-t[0],i=-t[1],o=-t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],f=r*r+i*i+o*o+a*a;return f>0?(n[0]=2*(s*a+u*r+l*o-c*i)/f,n[1]=2*(l*a+u*i+c*r-s*o)/f,n[2]=2*(c*a+u*o+s*i-l*r)/f):(n[0]=2*(s*a+u*r+l*o-c*i),n[1]=2*(l*a+u*i+c*r-s*o),n[2]=2*(c*a+u*o+s*i-l*r)),Ad(e,t,n),e}function Td(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function Pd(e,t){var n=t[0],r=t[1],i=t[2],o=t[4],a=t[5],s=t[6],l=t[8],c=t[9],u=t[10];return e[0]=Math.hypot(n,r,i),e[1]=Math.hypot(o,a,s),e[2]=Math.hypot(l,c,u),e}function Od(e,t){var n=new nd(3);Pd(n,t);var r=1/n[0],i=1/n[1],o=1/n[2],a=t[0]*r,s=t[1]*i,l=t[2]*o,c=t[4]*r,u=t[5]*i,f=t[6]*o,d=t[8]*r,h=t[9]*i,p=t[10]*o,m=a+u+p,g=0;return m>0?(g=2*Math.sqrt(m+1),e[3]=.25*g,e[0]=(f-h)/g,e[1]=(d-l)/g,e[2]=(s-c)/g):a>u&&a>p?(g=2*Math.sqrt(1+a-u-p),e[3]=(f-h)/g,e[0]=.25*g,e[1]=(s+c)/g,e[2]=(d+l)/g):u>p?(g=2*Math.sqrt(1+u-a-p),e[3]=(d-l)/g,e[0]=(s+c)/g,e[1]=.25*g,e[2]=(f+h)/g):(g=2*Math.sqrt(1+p-a-u),e[3]=(s-c)/g,e[0]=(d+l)/g,e[1]=(f+h)/g,e[2]=.25*g),e}function Md(e,t,n,r){var i=t[0],o=t[1],a=t[2],s=t[3],l=i+i,c=o+o,u=a+a,f=i*l,d=i*c,h=i*u,p=o*c,m=o*u,g=a*u,v=s*l,y=s*c,b=s*u,w=r[0],E=r[1],k=r[2];return e[0]=(1-(p+g))*w,e[1]=(d+b)*w,e[2]=(h-y)*w,e[3]=0,e[4]=(d-b)*E,e[5]=(1-(f+g))*E,e[6]=(m+v)*E,e[7]=0,e[8]=(h+y)*k,e[9]=(m-v)*k,e[10]=(1-(f+p))*k,e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function Id(e,t,n,r,i){var o=t[0],a=t[1],s=t[2],l=t[3],c=o+o,u=a+a,f=s+s,d=o*c,h=o*u,p=o*f,m=a*u,g=a*f,v=s*f,y=l*c,b=l*u,w=l*f,E=r[0],k=r[1],x=r[2],S=i[0],_=i[1],A=i[2],C=(1-(m+v))*E,T=(h+w)*E,P=(p-b)*E,O=(h-w)*k,M=(1-(d+v))*k,I=(g+y)*k,R=(p+b)*x,L=(g-y)*x,N=(1-(d+m))*x;return e[0]=C,e[1]=T,e[2]=P,e[3]=0,e[4]=O,e[5]=M,e[6]=I,e[7]=0,e[8]=R,e[9]=L,e[10]=N,e[11]=0,e[12]=n[0]+S-(C*S+O*_+R*A),e[13]=n[1]+_-(T*S+M*_+L*A),e[14]=n[2]+A-(P*S+I*_+N*A),e[15]=1,e}function Rd(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n+n,s=r+r,l=i+i,c=n*a,u=r*a,f=r*s,d=i*a,h=i*s,p=i*l,m=o*a,g=o*s,v=o*l;return e[0]=1-f-p,e[1]=u+v,e[2]=d-g,e[3]=0,e[4]=u-v,e[5]=1-c-p,e[6]=h+m,e[7]=0,e[8]=d+g,e[9]=h-m,e[10]=1-c-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Ld(e,t,n,r,i,o,a){var s=1/(n-t),l=1/(i-r),c=1/(o-a);return e[0]=2*o*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*o*l,e[6]=0,e[7]=0,e[8]=(n+t)*s,e[9]=(i+r)*l,e[10]=(a+o)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=a*o*2*c,e[15]=0,e}function Nd(e,t,n,r,i){var o,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(o=1/(r-i),e[10]=(i+r)*o,e[14]=2*i*r*o):(e[10]=-1,e[14]=-2*r),e}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var jd=Nd;function Bd(e,t,n,r,i){var o,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(o=1/(r-i),e[10]=i*o,e[14]=i*r*o):(e[10]=-1,e[14]=-r),e}function Fd(e,t,n,r){var i=Math.tan(t.upDegrees*Math.PI/180),o=Math.tan(t.downDegrees*Math.PI/180),a=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(a+s),c=2/(i+o);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(a-s)*l*.5,e[9]=(i-o)*c*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e}function Dd(e,t,n,r,i,o,a){var s=1/(t-n),l=1/(r-i),c=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*l,e[14]=(a+o)*c,e[15]=1,e}var zd=Dd;function Ud(e,t,n,r,i,o,a){var s=1/(t-n),l=1/(r-i),c=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*l,e[14]=o*c,e[15]=1,e}function $d(e,t,n,r){var i,o,a,s,l,c,u,f,d,h,p=t[0],m=t[1],g=t[2],v=r[0],y=r[1],b=r[2],w=n[0],E=n[1],k=n[2];return Math.abs(p-w)<td&&Math.abs(m-E)<td&&Math.abs(g-k)<td?ld(e):(u=p-w,f=m-E,d=g-k,i=y*(d*=h=1/Math.hypot(u,f,d))-b*(f*=h),o=b*(u*=h)-v*d,a=v*f-y*u,(h=Math.hypot(i,o,a))?(i*=h=1/h,o*=h,a*=h):(i=0,o=0,a=0),s=f*a-d*o,l=d*i-u*a,c=u*o-f*i,(h=Math.hypot(s,l,c))?(s*=h=1/h,l*=h,c*=h):(s=0,l=0,c=0),e[0]=i,e[1]=s,e[2]=u,e[3]=0,e[4]=o,e[5]=l,e[6]=f,e[7]=0,e[8]=a,e[9]=c,e[10]=d,e[11]=0,e[12]=-(i*p+o*m+a*g),e[13]=-(s*p+l*m+c*g),e[14]=-(u*p+f*m+d*g),e[15]=1,e)}function Hd(e,t,n,r){var i=t[0],o=t[1],a=t[2],s=r[0],l=r[1],c=r[2],u=i-n[0],f=o-n[1],d=a-n[2],h=u*u+f*f+d*d;h>0&&(u*=h=1/Math.sqrt(h),f*=h,d*=h);var p=l*d-c*f,m=c*u-s*d,g=s*f-l*u;return(h=p*p+m*m+g*g)>0&&(p*=h=1/Math.sqrt(h),m*=h,g*=h),e[0]=p,e[1]=m,e[2]=g,e[3]=0,e[4]=f*g-d*m,e[5]=d*p-u*g,e[6]=u*m-f*p,e[7]=0,e[8]=u,e[9]=f,e[10]=d,e[11]=0,e[12]=i,e[13]=o,e[14]=a,e[15]=1,e}function Jd(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function Gd(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function Vd(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e}function Xd(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}function Wd(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n,e}function qd(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e[9]=t[9]+n[9]*r,e[10]=t[10]+n[10]*r,e[11]=t[11]+n[11]*r,e[12]=t[12]+n[12]*r,e[13]=t[13]+n[13]*r,e[14]=t[14]+n[14]*r,e[15]=t[15]+n[15]*r,e}function Kd(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function Zd(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],m=e[13],g=e[14],v=e[15],y=t[0],b=t[1],w=t[2],E=t[3],k=t[4],x=t[5],S=t[6],_=t[7],A=t[8],C=t[9],T=t[10],P=t[11],O=t[12],M=t[13],I=t[14],R=t[15];return Math.abs(n-y)<=td*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-b)<=td*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-w)<=td*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(o-E)<=td*Math.max(1,Math.abs(o),Math.abs(E))&&Math.abs(a-k)<=td*Math.max(1,Math.abs(a),Math.abs(k))&&Math.abs(s-x)<=td*Math.max(1,Math.abs(s),Math.abs(x))&&Math.abs(l-S)<=td*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(c-_)<=td*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(u-A)<=td*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(f-C)<=td*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(d-T)<=td*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(h-P)<=td*Math.max(1,Math.abs(h),Math.abs(P))&&Math.abs(p-O)<=td*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(m-M)<=td*Math.max(1,Math.abs(m),Math.abs(M))&&Math.abs(g-I)<=td*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(v-R)<=td*Math.max(1,Math.abs(v),Math.abs(R))}var Yd=hd,Qd=Xd;const eh="a_position",th="a_color",nh="a_color2",rh="a_color3",ih="a_rectPos",oh="a_props2",ah="a_props",sh="u_matrix",lh="u_timeMatrix",ch="u_time",uh="v_position",fh="v_color",dh="v_color2",hh="v_color3",ph="v_rectPos",mh="v_seed",gh="v_eps",vh="v_alpha",yh="v_distort",bh="v_morphSpeed",wh="v_numClouds",Eh="v_octaves",kh="v_showBeach",xh={uniforms:{matrix:{name:sh,type:0},timeMatrix:{name:lh,type:0},time:{name:ch,type:3}},attribs:{position:{dim:3,name:eh,type:Nc.Float,normalize:!1},rectPos:{dim:2,name:ih,type:Nc.Float,normalize:!1},color:{dim:3,name:th,type:Nc.UByte,normalize:!0},color2:{dim:3,name:nh,type:Nc.UByte,normalize:!0},color3:{dim:3,name:rh,type:Nc.UByte,normalize:!0},props:{dim:4,name:ah,type:Nc.Float,normalize:!1},props2:{dim:4,name:oh,type:Nc.Float,normalize:!1}},vertexShader:Fc`
1596    in vec4 ${eh};
1597    in vec4 ${th};
1598    in vec4 ${nh};
1599    in vec4 ${rh};
1600    in vec2 ${ih};
1601    in vec4 ${oh};
1602    in vec4 ${ah};
1603
1604    uniform mat4 ${sh};
1605
1606    out vec4 ${uh};
1607    out vec4 ${fh};
1608    out vec4 ${dh};
1609    out vec4 ${hh};
1610    out vec2 ${ph};
1611    out float ${mh};
1612    out float ${gh};
1613    out float ${vh};
1614    out float ${yh};
1615
1616    out float ${Eh};
1617    out float ${wh};
1618    out float ${bh};
1619    out float ${kh};
1620
1621    void main() {
1622      vec4 realPos = ${sh} * ${eh};
1623      gl_Position = realPos;
1624
1625      // pass down attrs into varyings
1626      ${uh} = ${eh};
1627      ${fh} = ${th};
1628      ${dh} = ${nh};
1629      ${hh} = ${rh}
1629;
1630      ${ph} = ${ih};
1631
1632      // unwrap props2
1633      ${mh} = ${oh}.x;
1634      ${gh} = ${oh}.y;
1635      ${vh} = ${oh}.z;
1636      ${yh} = ${oh}.w;
1637
1638      // unwrap props
1639      ${Eh} = ${ah}.x;
1640      ${wh} = ${ah}.y;
1641      ${bh} = ${ah}.z;
1642      ${kh} = ${ah}.w;
1643    }
1644  `,fragmentShader:Fc`
1645    ${zc.PI}
1646
1647    precision highp float;
1648    in vec4 ${uh};
1649    in vec4 ${fh};
1650    in vec4 ${dh};
1651    in vec4 ${hh};
1652    in vec2 ${ph};
1653    in float ${mh};
1654    in float ${gh};
1655    in float ${vh};
1656    in float ${yh};
1657
1658    in float ${Eh};
1659    in float ${wh};
1660    in float ${bh};
1661    in float ${kh};
1662
1663    uniform mat4 ${lh};
1664    uniform float ${ch};
1665
1666    out vec4 outColor;
1667
1668    ${zc.simplex4}
1669    ${zc.seededRandom}
1670    ${zc.blend}
1671    ${zc.arcTan}
1672
1673    float r = 1.0;
1674    float inR = 0.9;
1675
1676    // returns [rho, theta, phi]
1677    vec3 getSpherical(vec3 coords) {
1678      float x = coords.x; float y = coords.y; float z = coords.z;
1679      float rho = length(coords);
1680
1681      float theta = arcTan(y, x);
1682      float phi = acos(z / rho);
1683
1684      return vec3(rho, theta, phi);
1685    }
1686
1687
1688    // f([x, y, z]) -> [0, 1]
1689    float blobFn(vec3 coords) {
1690      float distort = ${yh};
1691      vec4 rot = ${lh} * vec4(coords, 1.);
1692      float n = snoise(vec4(rot.xyz * 1.5, ${ch} * (1.2 - 8. * distort)));
1693      return (1. - distort) + distort * n;
1694    }
1695
1696    float blobAtSpherical(float rho, float theta, float phi) {
1697      float x = rho * sin(phi) * cos(theta);
1698      float y = rho * sin(phi) * sin(theta);
1699      float z = rho * cos(phi);
1700
1701      return blobFn(vec3(x, y, z));
1702    }
1703
1704    // add shadow to a bg color
1705    vec4 getShadow(vec4 bg) {
1706      float shadowDist = length(${ph} - vec2(-0.35, -0.25));
1707      bool isShadow = shadowDist > pow(1.05, 2.0);
1708      vec4 shadowColor = isShadow ? vec4(vec3(0.0), 0.3) : vec4(0.0);
1709      return blend(shadowColor, bg);
1710    }
1711
1712    // give an x, y, z in noise space and it returns a color
1713    vec4 getTerrainColor(vec3 tCoords, float offW) {
1714      float offX = seededRandom(${mh}) * 8376.0;
1715      float offY = seededRandom(${mh} * 2.0) * 8376.0;
1716      float offZ = seededRandom(${mh} * 3.0) * 8376.0;
1717
1718      vec3 nIn3 = tCoords * 1.43 + vec3(offX, offY, offZ);
1719      vec4 nIn = vec4(nIn3, offW);
1720
1721      float n = 0.;
1722      for (float i = 0.; i < ${Eh}; i += 1.) {
1723        float fac = pow(2.0, i);
1724        n += snoise(nIn * fac) * (1. / fac);
1725      }
1726
1727      vec4 withBeach = n > 0.16 ? ${fh} : ${hh};
1728      vec4 landColor = (${kh} > 0.) ? withBeach : ${fh};
1729
1730      vec4 beachColor2 = vec4(vec3(${hh}.rgb + ${dh}.rgb) * 0.8, 1.);
1731      vec4 withBeach2 = n < -0.16 ? ${dh} : beachColor2;
1732      vec4 waterColor = (${kh} > 1.) ? withBeach2 : ${dh};
1733
1734      vec4 colorAt = n > 0. ? landColor : waterColor;
1735
1736      return colorAt;
1737    }
1738
1739    bool isPlanet(float r, float theta) {
1740      float limit = blobAtSpherical(1., theta, PI / 2.);
1741      return r < limit;
1742      // return pow(x, 2.) + pow(y, 2.) < 1.;
1743    }
1744
1745    vec4 getPlanetColor(float xPre, float yPre, float offW) {
1746      /* do transformations */
1747      float xNorm = xPre * (1. / inR);
1748      float yNorm = yPre * (1. / inR);
1749      float zNorm = sqrt(1. - pow(xNorm, 2.0) - pow(yNorm, 2.0));
1750      vec3 normalized = vec3(xNorm, yNorm, zNorm);
1751
1752      /* from now on we are always in normalized [0, 1] land */
1753
1754      // vec4 preImage = vec4(xPre, yPre, pZ, 1.0);
1755      // vec4 image = ${lh} * preImage;
1756      vec4 rot = ${lh} * vec4(normalized, 1.);
1757      vec3 image = rot.xyz;
1758
1759      /* recover spherical coords + polar */
1760      vec3 spherical = getSpherical(normalized);
1761      float rho = spherical.x; // should always be 1
1762      float theta = spherical.y;
1763      float phi = spherical.z;
1764      float r = length(vec2(xNorm, yNorm));
1765
1766      float morph = blobAtSpherical(rho, theta, phi);
1767
1768      // get terrain color
1769      vec4 terrainColor = getTerrainColor(image.xyz * morph, offW);
1770
1771      // check if it should be inside or not
1772      bool isPlanet = isPlanet(r, theta);
1773
1774      // filter out the stuff that's not inside
1775      vec4 planetColor = isPlanet ? terrainColor : vec4(0.0);
1776
1777      // finally, apply shadow
1778      return getShadow(planetColor);
1779    }
1780
1781    vec4 getCloudColor(float xPre, float yPre, float cloudIdx) {
1782      float noiseW = cloudIdx * 0.2;
1783
1784      float cZ = sqrt(r - pow(xPre, 2.0) - pow(yPre, 2.0));
1785      vec4 cPre = vec4(xPre, yPre, cZ, 1.0);
1786
1787      mat4 myMatrix = ${lh};
1788
1789      for (float i = 0.; i < cloudIdx * 0.5; i++) {
1790        myMatrix = myMatrix * ${lh};
1791      }
1792
1793      vec4 cImage = myMatrix * cPre;
1794      vec3 cIn3 = cImage.xyz / 1.2;
1795      cIn3.y = cIn3.y * 5.0;
1796
1797      float w = ${mh} + noiseW /*+ ${ch}*/;
1798      float cn1 = snoise(vec4(cIn3, w));
1799      float cn2 = snoise(vec4(cIn3 * 2.0, w)) * 0.5;
1800
1801      float cn = cn1 + cn2;
1802
1803      vec4 cloudColor = cn > 0.5 ? vec4(vec3(1.0), 0.7) : vec4(0.0);
1804
1805      bool isIn = length(${ph}) <= r;
1806
1807      return isIn ? cloudColor : vec4(0.0);
1808    }
1809
1810    void main() {
1811      float xPre = ${ph}.x;
1812      float yPre = ${ph}.y;
1813
1814      // planet stuff
1815      vec4 planetColor = getPlanetColor(xPre, yPre, ${ch} * ${bh});
1816
1817      // do antialiasing
1818      float ratio = (inR - length(${ph})) / ${gh};
1819
1820      if (ratio < 1.) {
1821        planetColor.a *= ratio;
1822      }
1823
1824      // calculate cloud stuff
1825      vec4 myColor = planetColor;
1826      for (float i = 0.; i < ${wh}; i += 1.) {
1827        vec4 cloudColor = getCloudColor(xPre, yPre, i);
1828        myColor = blend(cloudColor, myColor);
1829      }
1830
1831      // discard fragments for depth buffer sorting
1832      if (myColor.a < 0.5) discard; // clouds look slightly funky but whatever
1833
1834      myColor.a *= ${vh};
1835      outColor = myColor;
1836    }
1837  `},Sh=e=>[1,1,2,2,2,3,3,3,3,4][e.planetLevel],_h=e=>[0,0,1,1,1,2,2,3,3,4][e.planetLevel],Ah=e=>!ct(e)||e.biome!==de.Biome.LAVA&&e.biome!==de.Biome.CORRUPTED?0:[.8,1,1,.8,.6,.6,.4,.4,.3,.25][e.planetLevel];const Ch=e=>[0,0,0,0,1,1,1,1,2,2][e.planetLevel],{maxRadius:Th}=wf.planet;class Ph extends ru{constructor(e){super(e,xh),this.timeMatrix=r.create(),this.quad3Buffer=Dc.makeEmptyQuad(),this.quad2Buffer=Dc.makeQuadVec2(-1,-1,1,1)}setUniforms(){const e=Dc.getNow();this.uniformSetters.matrix(this.manager.projectionMatrix),r.fromYRotation(this.timeMatrix,e/5),this.uniformSetters.timeMatrix(this.timeMatrix),this.uniformSetters.time(e/6)}queuePlanetBodyScreen(e,t,n,r,i,o){const{position:a,rectPos:s,color:l,color2:c,color3:u,props:f,props2:d}=this.attribManagers,h=It.getPlanetCosmetic(e),p=Dc.getPlanetZIndex(e);Dc.makeQuadBuffered(this.quad3Buffer,n,r,i,o,p),a.setVertex(this.quad3Buffer,this.verts),s.setVertex(this.quad2Buffer,this.verts);const m=1/t,g=[Sh(v=e),_h(v),Ah(v),Ch(v)];var v;const y=function(e){return ct(e)&&e.biome===de.Biome.CORRUPTED?[.04,.06,.06,.08,.08,.1,.1,.12,.13,.14][e.planetLevel]:0}(e);let b=1;t<Th&&(b=t/Th);for(let e=0;e<6;e++)l.setVertex(h.landRgb,this.verts+e),c.setVertex(h.oceanRgb,this.verts+e),u.setVertex(h.beachRgb,this.verts+e),f.setVertex(g,this.verts+e),d.setVertex([h.seed,m,b,y],this.verts+e);this.verts+=6}queuePlanetBody(e,t,n){const r=or.getInstance().worldToCanvasCoords(t),i=or.getInstance().worldToCanvasDist(n),o=r.x-i,a=r.y-i,s=r.x+i,l=r.y+i;this.queuePlanetBodyScreen(e,i,o,a,s,l)}}const{whiteA:Oh,barbsA:Mh,gold:Ih}=wf.colors,{maxRadius:Rh}=wf.planet;class Lh{constructor(e){this.renderer=e}queueLocation(e,t,n,r,i){var o,a;const{gameUIManager:s,circleRenderer:l}=this.renderer,c=e.planet,u=e.radii.radiusPixels<=5&&n,f=(null===(o=s.getHoveringOverPlanet())||void 0===o?void 0:o.locationId)===c.locationId,d=(null===(a=s.getSelectedPlanet())||void 0===a?void 0:a.locationId)===c.locationId;let h=255;e.radii.radiusPixels<2*Rh&&(h*=e.radii.radiusPixels/(2*Rh));const p=s.getArtifactsWithIds(c.heldArtifactIds).filter(e=>!!e),m=s.isOwnedByMe(c)?Oh:It.getOwnerColorVec(c);if(this.queuePlanetBody(c,c.location.coords,e.radii.radiusWorld),this.queueAsteroids(c,c.location.coords,e.radii.radiusWorld),this.queueArtifactsAroundPlanet(c,p,c.location.coords,e.radii.radiusWorld,t,h),this.queueRings(c,c.location.coords,e.radii.radiusWorld),c.destroyed)return void this.queueBlackDomain(c,c.location.coords,e.radii.radiusWorld);let g=1;if(e.radii.radiusPixels<2*Rh&&(g*=e.radii.radiusPixels/(2*Rh)),bt(c)){m[3]=120*g,l.queueCircleWorld(c.location.coords,1.1*e.radii.radiusWorld,m,.5);const t=c.energy/c.energyCap;m[3]=255*g,l.queueCircleWorld(c.location.coords,1.1*e.radii.radiusWorld,m,2,t)}i||this.queueHat(c,c.location.coords,e.radii.radiusWorld),u||(this.queuePlanetEnergyText(c,c.location.coords,e.radii.radiusWorld,h),this.queuePlanetSilverText(c,c.location.coords,e.radii.radiusWorld,h),this.queueArtifactIcon(c,c.location.coords,e.radii.radiusWorld),r||this.drawPlanetMessages(e,c.location.coords,e.radii.radiusWorld,f?.2:h)),f&&!d&&this.queueRangeRings(c)}queueArtifactsAroundPlanet(e,t,n,r,i,o){const a=t.length,s=1e4*(e.planetLevel+1),l=2*Math.PI/a,c=0-Math.PI/2,u=2*Math.PI*(i%s)/s,f=.67*r,d=1.5*r+f;for(let e=0;e<t.length;e++){const r=Math.cos(l*e+c+u)*d+n.x,i=Math.sin(l*e+c+u)*d+n.y;this.renderer.spriteRenderer.queueArtifactWorld(t[e],{x:r,y:i},f,o)}}drawPlanetMessages(e,t,n,r){if(!e.planet.messages)return;const{overlay2dRenderer:i}=this.renderer;
1837i.drawPlanetMessages(t,n,e,r)}queueArtifactIcon(e,{x:t,y:n},r){const{overlay2dRenderer:i}=this.renderer;if(!ct(e))return;const o={x:t-r,y:n+r};if(e.planetType===de.PlanetType.RUINS&&!e.hasTriedFindingArtifact){const e=or.getInstance().worldToCanvasDist(r),t=Math.min(1,e/20);e>4&&i.drawArtifactIcon(o,t)}}queuePlanetSilverText(e,t,n,r){const{textRenderer:i}=this.renderer,o=e?Math.ceil(e.silver):0;(e.silverGrowth>0||e.silver>0)&&i.queueTextWorld(ht(o),{x:t.x,y:t.y+1.1*n+.75},[...Ih,r],0,.5,1)}getLockedEnergy(e){let t=0;for(const n of e.unconfirmedDepartures)t+=n.forces;return t}getMouseAtk(){const{gameUIManager:e}=this.renderer,t=e.getMouseDownPlanet(),n=e.getHoveringOverPlanet();if(!t||!n)return;let r=t.energy;for(const e of t.unconfirmedDepartures)r-=e.forces;const i=e.getForcesSending(t.locationId)/100*r;return e.getEnergyArrivingForMove(t.locationId,n.locationId,void 0,i)}queueRings(e,t,n){const{ringRenderer:r}=this.renderer;let i=0;const{defense:o,range:a,speed:s}=wf.colors.belt;for(let a=0;a<e.upgradeState[0];a++)r.queueBeltAtIdx(e,t,n,o,i++);for(let o=0;o<e.upgradeState[1];o++)r.queueBeltAtIdx(e,t,n,a,i++);for(let o=0;o<e.upgradeState[2];o++)r.queueBeltAtIdx(e,t,n,s,i++)}queuePlanetBody(e,t,n){const{quasarRenderer:r,planetRenderer:i,spacetimeRipRenderer:o,ruinsRenderer:a,mineRenderer:s}=this.renderer,{planetType:l}=e;l===de.PlanetType.SILVER_MINE?s.queueMine(e,t,n):l===de.PlanetType.TRADING_POST?o.queueRip(e,t,n):l===de.PlanetType.SILVER_BANK?r.queueQuasar(e,t,n):l===de.PlanetType.RUINS?a.queueRuins(e,t,n):i.queuePlanetBody(e,t,n)}queueBlackDomain(e,t,n){const{blackDomainRenderer:r}=this.renderer;r.queueBlackDomain(e,t,n)}queueAsteroids(e,t,n){const{asteroidRenderer:r}=this.renderer,{bonus:i}=wf.colors;e.bonus[0]&&r.queueAsteroid(e,t,n,i.energyCap),e.bonus[1]&&r.queueAsteroid(e,t,n,i.energyGro),e.bonus[2]&&r.queueAsteroid(e,t,n,i.range),e.bonus[3]&&r.queueAsteroid(e,t,n,i.speed),e.bonus[4]&&r.queueAsteroid(e,t,n,i.defense)}queueHat(e,t,n){const{gameUIManager:r}=this.renderer,i=void 0!==r.getHoveringOverPlanet(),o=e.hatLevel,a=It.getPlanetCosmetic(e);if(o>0){const e=r.getHoveringOverCoords();let s=a.bgStr,l=a.baseStr;"SantaHat"===a.hatType&&(s="red",l="white");const c=1.65**(o-1);this.renderer.overlay2dRenderer.drawHat(a.hatType,512,512,t,1.2*n*c,1.2*n*c,n,0,i,s,l,e)}}queuePlanetEnergyText(e,t,n,r){const{gameUIManager:i,textRenderer:o}=this.renderer,a=e?Math.ceil(e.energy):0,s=this.getLockedEnergy(e);let l=a<=0?"":ht(a);s>0&&(l+=` (-${ht(s)})`);const c=bt(e)?It.getOwnerColorVec(e):Mh,u=i.isOwnedByMe(e)?Oh:c;u[3]=r;const f={x:t.x,y:t.y-1.1*n-.75};o.queueTextWorld(l,f,u);const d=i.getMouseDownPlanet(),h=i.getHoveringOverPlanet(),p=this.getMouseAtk();if(p&&(null==d?void 0:d.locationId)!==(null==h?void 0:h.locationId)&&(null==h?void 0:h.locationId)===e.locationId&&!i.getIsChoosingTargetPlanet()&&p&&h){let t="";i.isOwnedByMe(e)||0===e.energy?t+=` (+${ht(p)})`:t+=` (-${ht(100*p/h.defense)})`,o.queueTextWorld(t,f,u,1)}}drawRangeAtPercent(e,t){const{circleRenderer:n,textRenderer:r}=this.renderer,i=Dl(e,t),{range:{dash:o}}=wf.colors;n.queueCircleWorld(e.location.coords,i,[...o,255],1,1,!0),r.queueTextWorld(t+"%",{x:e.location.coords.x,y:e.location.coords.y+i},[...o,255])}queueRangeRings(e){const{circleRenderer:t,gameUIManager:n,textRenderer:r}=this.renderer,{range:{energy:i}}=wf.colors,{x:o,y:a}=e.location.coords;if(this.drawRangeAtPercent(e,100),this.drawRangeAtPercent(e,50),this.drawRangeAtPercent(e,25),e.owner===fe.EMPTY_ADDRESS)return;const s=n.getForcesSending(e.locationId),l=s/100*e.energy,c=Dl(e,s*e.energy/e.energyCap);c>1&&(t.queueCircleWorld({x:o,y:a},c,[...i,255],1,1,!0),r.queueTextWorld(""+ht(l),{x:o,y:a+c},[...i,255],0,.5,1)),t.flush()}queuePlanets(e,t,n,r,i){for(const o of e.entries())this.queueLocation(o[1],t,n,r,i)}flush(){const{planetRenderer:e,asteroidRenderer:t,beltRenderer:n,mineRenderer:r,quasarRenderer:i,spacetimeRipRenderer:o,ruinsRenderer:a,ringRenderer:s,blackDomainRenderer:l,glManager:{gl:c}}=this.renderer;c.enable(c.DEPTH_TEST),e.flush(),t.flush(),n.flush(),r.flush(),o.flush(),a.flush(),s.flush(),c.disable(c.DEPTH_TEST),i.flush(),l.flush()}}const Nh="a_position",jh="a_rectPos",Bh="a_color",Fh="u_matrix",Dh="u_time",zh="v_color",Uh="v_rectPos",$h={uniforms:{matrix:{name:Fh,type:0},time:{name:Dh,type:3}},attribs:{position:{dim:3,type:Nc.Float,normalize:!1,name:Nh},rectPos:{dim:2,type:Nc.Float,normalize:!1,name:jh},color:{dim:3,type:Nc.UByte,normalize:!0,name:Bh}},vertexShader:Fc`
1838    in vec4 ${Nh};
1839    in vec4 ${Bh};
1840    in vec2 ${jh};
1841
1842    uniform mat4 ${Fh};
1843
1844    out vec4 ${zh};
1845    out vec2 ${Uh};
1846
1847    void main() {
1848      gl_Position = ${Fh} * ${Nh};
1849      ${zh} = ${Bh};
1850
1851      ${Uh} = ${jh};
1852    }
1853  `,fragmentShader:Fc`
1854    ${zc.PI}
1855
1856    precision highp float;
1857
1858    in vec4 ${zh};
1859    in vec2 ${Uh};
1860
1861    uniform float ${Dh};
1862
1863    out vec4 outColor;
1864
1865    ${zc.simplex4}
1866    ${zc.modFloat}
1867    ${zc.mod2pi}
1868    ${zc.arcTan}
1869    ${zc.fade}
1870
1871    void main() {
1872      /* calculate [x, y] from [x, y]' (rectPos) */
1873
1874      vec2 pos = vec2(${Uh}.x, ${Uh}.y * 3.0);
1875
1876      /* calculate [r, theta] from [x, y] */
1877      float r = length(pos);
1878      float theta = arcTan(pos.y, pos.x);
1879
1880      /* offset theta in proportion to r */
1881      float timeOffset = mod2pi(${Dh}) * 2.;
1882      float tPrime = theta - 3. * pow(r, 1.4) + timeOffset;
1883
1884      /* map back onto x, y space */
1885      float nX = cos(tPrime) * r;
1886      float nY = sin(tPrime) * r;
1887      float nZ = ${Dh};
1888      vec4 nIn = vec4(nX, nY, nZ, 0.);
1889
1890      float n = snoise(3. * nIn) * 0.5 + 0.7;
1891
1892      // outColor = ${zh};
1893      float alpha = n;
1894      if (r > 1.) alpha = 0.;
1895
1896      /* calculate edge alpha */
1897      float edgeAlpha = r > 1. ? 0. : 1.;
1898      edgeAlpha *= fade(r, 0.1);
1899
1900      /* select color based on noise value */
1901      vec4 c1 = vec4(${zh}.rgb * 1.2, 0.95);
1902      vec4 c2 = ${zh} * 0.7;
1903      vec4 c3 = ${zh} * 0.2;
1904      vec4 c4 = vec4(0.);
1905
1906      vec4 nColor = n > 0.85 ? c1 : n > 0.50 ? c2 : n > 0.25 ? c3 : c4;
1907
1908      /* calculate final color */
1909      vec4 myColor = nColor;
1910      myColor.a *= edgeAlpha;
1911
1912      outColor = myColor;
1913    }
1914  `};class Hh extends ru{constructor(e){super(e,$h),this.quad3Buffer=Dc.makeEmptyQuad(),this.quad2Buffer=Dc.makeQuadVec2(-1,1,1,-1)}queueQuasarBodyScreen(e,t,n,r,i=0){const{position:o,color:a,rectPos:s}=this.attribManagers,l=n*(.65+.35*Math.cos(i)),c=-n,u=-l,f=+n,d=+l,h=Math.sin(i)*(Math.PI/6);Dc.makeQuadBuffered(this.quad3Buffer,c,u,f,d,r),Dc.rotateQuad(this.quad3Buffer,h),Dc.translateQuad(this.quad3Buffer,[t.x,t.y]),o.setVertex(this.quad3Buffer,this.verts),s.setVertex(this.quad2Buffer,this.verts);const p=It.getPlanetCosmetic(e);for(let e=0;e<6;e++)a.setVertex(p.oceanRgb,this.verts+e);this.verts+=6}queueQuasarBody(e,t,n,r,i=0){const o=or.getInstance().worldToCanvasCoords(t),a=or.getInstance().worldToCanvasDist(n);this.queueQuasarBodyScreen(e,o,a,r,i)}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix);const e=Dc.getNow();this.uniformSetters.time(e/6)}}const Jh="a_position",Gh="a_rectPos",Vh="a_color",Xh="u_matrix",Wh="u_time",qh="v_color",Kh="v_rectPos",Zh={uniforms:{matrix:{name:Xh,type:0},time:{name:Wh,type:3}},attribs:{position:{dim:3,type:Nc.Float,normalize:!1,name:Jh},rectPos:{dim:2,type:Nc.Float,normalize:!1,name:Gh},color:{dim:3,type:Nc.UByte,normalize:!0,name:Vh}},vertexShader:Fc`
1915    in vec4 ${Jh};
1916    in vec4 ${Vh};
1917    in vec2 ${Gh};
1918
1919    uniform mat4 ${Xh};
1920
1921    out vec4 ${qh};
1922    out vec2 ${Kh};
1923
1924    void main() {
1925      gl_Position = ${Xh} * ${Jh};
1926
1927      ${qh} = ${Vh};
1928      ${Kh} = ${Gh};
1929    }
1930  `,fragmentShader:Fc`
1931    ${zc.PI}
1932
1933    precision highp float;
1934
1935    in vec4 ${qh};
1936    in vec2 ${Kh};
1937
1938    uniform float ${Wh};
1939
1940    out vec4 outColor;
1941
1942    ${zc.simplex4}
1943    ${zc.modFloat}
1944    ${zc.mod2pi}
1945    ${zc.arcTan}
1946    ${zc.fade}
1947
1948    void main() {
1949      float yP = ${Kh}.y;
1950      float xP = ${Kh}.x;
1951
1952      /* calculate positions on noise map, assuming rectPos is [x', y'] */
1953      float nX = xP / (0.5 * yP);
1954
1955      float offsetDir = ${Kh}.y > 0. ? -1. : 1.;
1956      float timeOffset = ${Wh} * 1.5 * offsetDir;
1957      float nY = yP + timeOffset;
1958
1959      float nZ = ${Wh};
1960      vec4 nIn = vec4(nX, nY, nZ, 0.);
1961
1962      /* calculate noise value */
1963      float n = snoise(3. * nIn) * 0.5 + 0.7;
1964
1965      /* calculate alpha from midline using theta */
1966      float theta = arcTan(yP, xP);
1967      float dist1 = abs(theta - PI / 2.);
1968      float dist2 = abs(theta - 3. * PI / 2.);
1969      float distFromMid = min(dist1, dist2);
1970
1971      const float interval = PI / 14.;
1972
1973      float baseAlpha = (distFromMid > interval) ? 0. : 1.;
1974      float midAlpha = baseAlpha * fade(distFromMid / interval, 0.15);
1975
1976      /* calculate alpha from height */
1977      float heightAlpha = fade(abs(yP), 0.8) * fade(abs(yP), 0.3);
1978
1979      /* calculate total alpha */
1980      float alpha = midAlpha * heightAlpha;
1981
1982      /* select color based on noise value */
1983      vec4 c1 = ${qh} * 0.95;
1984      vec4 c2 = ${qh} * 0.7;
1985      vec4 c3 = ${qh} * 0.2;
1986
1987      vec4 nColor = n > 0.9 ? c1 : n > 0.33 ? c2 : c3;
1988
1989      /* calculate final color */
1990      vec4 myColor = nColor;
1991      myColor.a *= alpha;
1992
1993      outColor = myColor;
1994    }
1995  `};class Yh extends ru{constructor(e){super(e,Zh);const{gl:t}=this.manager;this.quad3Buffer=Dc.makeEmptyQuad(),this.quad2BufferTop=Dc.makeQuadVec2(-1,1,1,0),this.quad2BufferBot=Dc.makeQuadVec2(-1,0,1,-1),t.enable(t.BLEND),t.blendFunc(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA)}queueQuasarRayScreen(e=!0,t,n,r,i,o=0){const{position:a,color:s,rectPos:l}=this.attribManagers,c=.93+.07*Math.cos(o+Math.PI),u=.93+.07*Math.cos(o),f=-r*(e?u:c),d=e?-2*r*u:0,h=+r*(e?u:c),p=e?0:2*r*c,m=It.getPlanetCosmetic(t),g=e?-.01:.01,v=Math.sin(o)*(Math.PI/6);Dc.makeQuadBuffered(this.quad3Buffer,f,d,h,p,i+g),Dc.rotateQuad(this.quad3Buffer,v),Dc.translateQuad(this.quad3Buffer,[n.x,n.y]),a.setVertex(this.quad3Buffer,this.verts);const y=e?this.quad2BufferTop:this.quad2BufferBot;l.setVertex(y,this.verts);for(let e=0;e<6;e++)s.setVertex(m.landRgb,this.verts+e);this.verts+=6}queueQuasarRay(e=!0,t,n,r,i,o=0){const a=or.getInstance().worldToCanvasCoords(n),s=or.getInstance().worldToCanvasDist(r);this.queueQuasarRayScreen(e,t,a,s,i,o)}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix);const e=Dc.getNow();this.uniformSetters.time(e/6)}}class Qh{constructor(e){this.manager=e,this.quasarBodyRenderer=new Hh(e),this.quasarRayRendererTop=new Yh(e),this.quasarRayRendererBot=new Yh(e)}getAngle(){return.5*Dc.getNow()}queueQuasarScreen(e,t,n,r){const i=this.getAngle();this.quasarRayRendererBot.queueQuasarRayScreen(!1,e,t,n,r,i),this.quasarRayRendererTop.queueQuasarRayScreen(!0,e,t,n,r,i),this.quasarBodyRenderer.queueQuasarBodyScreen(e,t,n,r,i)}queueQuasar(e,t,n){const r=this.getAngle(),i=Dc.getPlanetZIndex(e);this.quasarRayRendererBot.queueQuasarRay(!1,e,t,n,i,r),this.quasarRayRendererTop.queueQuasarRay(!0,e,t,n,i,r),this.quasarBodyRenderer.queueQuasarBody(e,t,n,i,r)}flush(){this.quasarRayRendererBot.flush(),this.quasarBodyRenderer.flush(),this.quasarRayRendererTop.flush()}setUniforms(){this.quasarRayRendererBot.setUniforms(),this.quasarRayRendererTop.setUniforms(),this.quasarBodyRenderer.setUniforms()}}const ep="a_position",tp="a_color",np="a_rectPos",rp="a_props",ip="u_matrix",op="u_now",ap="v_color",sp="v_rectPos",lp="v_xRad",cp="v_yRad",up="v_delTheta",fp={uniforms:{matrix:{name:ip,type:0},now:{name:op,type:3}},attribs:{position:{dim:3,type:Nc.Float,normalize:!1,name:ep},rectPos:{dim:2,type:Nc.Float,normalize:!1,name:np},color:{dim:3,type:Nc.UByte,normalize:!0,name:tp},props:{dim:3,type:Nc.Float,normalize:!1,name:rp}},vertexShader:Fc`
1996    in vec4 ${ep};
1997    in vec4 ${tp};
1998    in vec2 ${np};
1999    in vec4 ${rp};
2000
2001    uniform mat4 ${ip};
2002
2003    out vec4 ${ap};
2004    out vec2 ${sp};
2005
2006    out float ${lp};
2007    out float ${cp};
2008    out float ${up};
2009
2010    void main() {
2011      gl_Position = ${ip} * ${ep};
2012      ${ap} = ${tp};
2013      ${sp} = ${np};
2014
2015      ${lp} = ${rp}.x;
2016      ${cp} = ${rp}.y;
2017      ${up} = ${rp}.z;
2018    }
2019  `,fragmentShader:Fc`
2020    ${zc.PI}
2021
2022    precision highp float;
2023    out vec4 outColor;
2024
2025    uniform float ${op};
2026
2027    in vec4 ${ap};
2028    in vec2 ${sp};
2029
2030    in float ${lp};
2031    in float ${cp};
2032    in float ${up};
2033
2034    ${zc.arcTan}
2035    ${zc.mod2pi}
2036    ${zc.simplex4}
2037
2038    void main() {
2039      /* unwrap values */
2040      float xRad = ${lp};
2041      float yRad = ${cp};
2042
2043      float x = ${sp}.x;
2044      float y = ${sp}.y;
2045
2046      /* define bounds */
2047      float xIn = xRad - 0.23;
2048      float xOut = xRad + 0.23;
2049
2050      float yIn = yRad - 0.07;
2051      float yOut = yRad + 0.07;
2052
2053      // discard inner values
2054      if (pow(x / xIn, 2.) + pow(y / yIn, 2.) < 1.) discard;
2055      // discard outer values
2056      if (pow(x / xOut, 2.) + pow(y / yOut, 2.) > 1.) discard;
2057
2058      /* calculate perlin value */
2059      float nX = x / xRad; float nY = y / yRad;
2060      float r = length(vec2(nX, nY));
2061
2062      float theta = ${op} * ${up} - 2. * pow(r, 2.5);
2063      float cosT = cos(theta); float sinT = sin(theta);
2064
2065
2066      // transform via rotation
2067      float xP = cosT * nX - sinT * nY;
2068      float yP = sinT * nX + cosT * nY;
2069
2070      float n = snoise(2. * vec4(xP, yP, ${op} * 0.2 * ${up}, 0.));
2071
2072      // outColor = vec4(vec3(n), 1.);
2073      if (n > 0.17) discard;
2074      outColor = ${ap};
2075      if (n > -0.1) outColor.rgb *= 0.6;
2076    }
2077  `};class dp extends ru{constructor(e){super(e,fp),this.viewport=or.getInstance(),this.topRectPosBuffer=Dc.makeEmptyQuadVec2(),this.botRectPosBuffer=Dc.makeEmptyQuadVec2(),this.posBuffer=Dc.makeEmptyQuad()}queueBeltWorld(e,t,n,r=1,i=0,o=0,a=[1,1,1],s=0){const l=this.viewport.worldToCanvasCoords(e),c=this.viewport.worldToCanvasDist(t);this.queueBelt(l,c,n,r,i,o,a,s)}queueBelt(e,t,n,r=1,i=0,o=0,a=[1,1,1],s=0){const{position:l,rectPos:c,color:u,props:f}=this.attribManagers;Dc.makeQuadVec2Buffered(this.topRectPosBuffer,-r,r,r,0),Dc.makeQuadVec2Buffered(this.botRectPosBuffer,-r,0,r,-r);const d=r*t,h=[-d,-d],p=[+d,+d],m=h[0],g=h[1],v=p[0],y=p[1];Dc.makeQuadBuffered(this.posBuffer,m,g,v,0,i+o),Dc.rotateQuad(this.posBuffer,s),Dc.translateQuad(this.posBuffer,[e.x,e.y]),l.setVertex(this.posBuffer,this.verts),c.setVertex(this.topRectPosBuffer,this.verts);for(let e=0;e<6;e++)u.setVertex(n,this.verts+e),f.setVertex(a,this.verts+e);this.verts+=6,Dc.makeQuadBuffered(this.posBuffer,m,0,v,y,i-o),Dc.rotateQuad(this.posBuffer,s),Dc.translateQuad(this.posBuffer,[e.x,e.y]),l.setVertex(this.posBuffer,this.verts),c.setVertex(this.botRectPosBuffer,this.verts);for(let e=0;e<6;e++)u.setVertex(n,this.verts+e),f.setVertex(a,this.verts+e);this.verts+=6}queueBeltAtIdx(e,t,n,r,i,o=0){const a=.01*(i+1),s=[1.7+.7*(l=i),.3+.25*l,1.2*.45**l];var l;const c=Dc.getPlanetZIndex(e),u=3+1.5*i;this.queueBeltWorld(t,n,r,u,c,a,s,o)}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix),this.uniformSetters.now(Dc.getNow()/2)}}const hp="a_position",pp="a_rectPos",mp="a_color",gp="a_weights",vp="a_props",yp="u_matrix",bp="u_time",wp="v_color",Ep="v_rectPos",kp="v_weights",xp="v_props",Sp={uniforms:{matrix:{name:yp,type:0},time:{name:bp,type:3}},attribs:{position:{dim:3,type:Nc.Float,normalize:!1,name:hp},rectPos:{dim:2,type:Nc.Float,normalize:!1,name:pp},color:{dim:3,type:Nc.UByte,normalize:!0,name:mp},weights:{dim:4,type:Nc.Float,normalize:!1,name:gp},props:{dim:4,type:Nc.Float,normalize:!1,name:vp}},vertexShader:Fc`
2078    in vec4 ${hp};
2079    in vec4 ${mp};
2080    in vec2 ${pp};
2081    in vec4 ${gp};
2082    in vec4 ${vp};
2083
2084    uniform mat4 ${yp};
2085
2086    out vec4 ${wp};
2087    out vec2 ${Ep};
2088    out vec4 ${kp};
2089    out vec4 ${xp};
2090
2091    void main() {
2092      gl_Position = ${yp} * ${hp};
2093  
2094      ${wp} = ${mp};
2095      ${Ep} = ${pp};
2096      ${kp} = ${gp};
2097      ${xp} = ${vp};
2098    }
2099  `,fragmentShader:Fc`
2100    ${zc.PI}
2101
2102    precision highp float;
2103
2104    in vec4 ${wp};
2105    in vec2 ${Ep};
2106    in vec4 ${kp};
2107    in vec4 ${xp};
2108
2109    uniform float ${bp};
2110
2111    out vec4 outColor;
2112
2113    ${zc.arcTan}
2114    ${zc.modFloat}
2115
2116    float rotSymmetric(float theta, float segments, bool shouldReflect) {
2117      float interval = (2. * PI) / segments;
2118      float midpoint = interval / 2.;
2119      float modT = modF(theta, interval);
2120
2121      float tPrime = modT;
2122
2123      if (shouldReflect) {
2124        bool isSecond = modT > midpoint;
2125        if (isSecond) tPrime = midpoint - (modT - midpoint);
2126      }
2127
2128      return tPrime;
2129    }
2130
2131    // r(t) contour function
2132    float contour(float tPrime) {
2133      float w1 = ${kp}.x * sin(tPrime + 0.2 * sin(1.1 * ${bp} + 1.0 * PI));
2134      float w2 = ${kp}.y * cos(tPrime + 0.3 * sin(1.2 * ${bp} + 1.5 * PI));
2135      float w3 = 0.8 * ${kp}.z * 1. / sin(0.7 * tPrime + sin(0.9 * ${bp} + 0.5 * PI));
2136      float w4 = 0.8 * ${kp}.w * 1. / cos(0.7 * tPrime + cos(1.3 * ${bp}));
2137
2138      return w1 + w2 + w3 + w4;
2139    }
2140
2141
2142    void main() {
2143      // unwrap props - leaves, reflect, mvt velocity
2144      float numSegments = ${xp}.x;
2145      bool shouldReflect = ${xp}.y > 0.;
2146      float vel = ${xp}.z;
2147
2148      // do calculations
2149      float r = length(${Ep});
2150      if (r > 1.) discard;
2151
2152      float theta = arcTan(${Ep}.y, ${Ep}.x);
2153      float tPrime = rotSymmetric(theta + ${bp} * vel, numSegments, shouldReflect);
2154
2155      /*
2156      float wiggle1 = 0.3 + 0.2 * cos(2.8 * ${bp});
2157      float wiggle2 = 0.7 + 0.3 * sin(1.7 * ${bp});
2158      */
2159
2160      vec4 myColor = vec4(${wp}.rgb, 0.);
2161      if (r < contour(tPrime)) myColor.a = 1.;
2162      if (r < 0.15 * cos(tPrime)) myColor.a = 1.;
2163
2164      if (myColor.a < 0.5) discard;
2165      outColor = myColor;
2166    }
2167  `};class _p extends ru{constructor(e){super(e,Sp),this.quad3Buffer=Dc.makeEmptyQuad(),this.quad2Buffer=Dc.makeQuadVec2(-1,1,1,-1)}queueRuinsScreen(e,t,n,r){const i=It.getPlanetCosmetic(e),o=1/(e.planetLevel+1),a=i.baseColor,s=i.baseColor2,l=i.baseColor3;for(let c=0;c<e.planetLevel+1&&i.ruins;c++){const e=c,u=i.ruins[e].weights,f=i.ruins[e].props,d=[a,s,l][c%3];f[0]=c+2;const h=(c+1)*o,p=r+1e-4*(c+1);this.queueBloom(t,h*n,p,d,u,f)}}queueBloom(e,t,n,r,i,o){const{position:a,color:s,rectPos:l,weights:c,props:u}=this.attribManagers,f=1*t,d=e.x-f,h=e.y-f,p=e.x+f,m=e.y+f;Dc.makeQuadBuffered(this.quad3Buffer,d,h,p,m,n),a.setVertex(this.quad3Buffer,this.verts),l.setVertex(this.quad2Buffer,this.verts);for(let e=0;e<6;e++)s.setVertex(r,this.verts+e),c.setVertex(i,this.verts+e),u.setVertex(o,this.verts+e);this.verts+=6}queueRuins(e,t,n){const r=or.getInstance().worldToCanvasCoords(t),i=or.getInstance().worldToCanvasDist(n),o=Dc.getPlanetZIndex(e);this.queueRuinsScreen(e,r,i,o)}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix);const e=Dc.getNow();this.uniformSetters.time(e)}}const Ap="a_position",Cp="a_rectPos",Tp="a_color",Pp="a_inColor1",Op="a_inColor2",Mp="a_inColor3",Ip="u_matrix",Rp="u_time",Lp="v_color",Np="v_rectPos",jp="v_inColor1",Bp="v_inColor2",Fp="v_inColor3",Dp={uniforms:{matrix:{name:Ip,type:0},time:{name:Rp,type:3}},attribs:{position:{dim:3,type:Nc.Float,normalize:!1,name:Ap},rectPos:{dim:2,type:Nc.Float,normalize:!1,name:Cp},color:{dim:3,type:Nc.UByte,normalize:!0,name:Tp},inColor1:{dim:3,type:Nc.UByte,normalize:!0,name:Pp},inColor2:{dim:3,type:Nc.UByte,normalize:!0,name:Op},inColor3:{dim:3,type:Nc.UByte,normalize:!0,name:Mp}},vertexShader:Fc`
2168    in vec4 ${Ap};
2169    in vec4 ${Tp};
2170    in vec2 ${Cp};
2171
2172    in vec4 ${Pp};
2173    in vec4 ${Op};
2174    in vec4 ${Mp};  
2175
2176    uniform mat4 ${Ip};
2177
2178    out vec4 ${Lp};
2179    out vec2 ${Np};
2180
2181    out vec4 ${jp};
2182    out vec4 ${Bp};
2183    out vec4 ${Fp};  
2184
2185    void main() {
2186      gl_Position = ${Ip} * ${Ap};
2187
2188      
2189      ${Lp} = ${Tp};
2190      ${jp} = ${Pp};
2191      ${Bp} = ${Op};
2192      ${Fp} = ${Mp};
2193
2194      ${Np} = ${Cp};
2195    }
2196  `,fragmentShader:Fc`
2197    ${zc.PI}
2198
2199    precision highp float;
2200
2201    in vec4 ${Lp};
2202    in vec2 ${Np};
2203
2204    in vec4 ${jp};
2205    in vec4 ${Bp};
2206    in vec4 ${Fp};  
2207
2208    uniform float ${Rp};
2209
2210    out vec4 outColor;
2211
2212    ${zc.simplex4}
2213    ${zc.modFloat}
2214    ${zc.mod2pi}
2215    ${zc.arcTan}
2216    ${zc.fade}
2217    ${zc.blend}
2218
2219    void main() {
2220      /* calculate [x, y] from [x, y]' (rectPos) */
2221      vec2 pos = vec2(${Np}.x, ${Np}.y);
2222
2223      /* calculate [r, theta] from [x, y] */
2224      float r = length(pos);
2225      float theta = arcTan(pos.y, pos.x);
2226
2227      /* offset theta in proportion to r */
2228      float timeOffset = mod2pi(${Rp}) * 3.;
2229      float tPrime = theta - 3. * pow(r, 1.4) + timeOffset;
2230
2231      /* map back onto x, y space */
2232      float nX = cos(tPrime) * r;
2233      float nY = sin(tPrime) * r;
2234      float nZ = ${Rp};
2235      vec4 nIn = vec4(nX, nY, nZ, 0.);
2236
2237      float n = snoise(3. * nIn) * 0.5 + 0.7;
2238
2239      float alpha = n;
2240      if (r > 1.) alpha = 0.;
2241
2242      /* calculate edge alpha */
2243      float edgeAlpha = r > 0.9 ? 0. : 1.;
2244
2245      /* select color based on noise value */
2246      vec4 c2 = vec4(${Lp}.rgb + vec3(0.1, 0.1, 0.1), 1.);
2247      vec4 c1 = vec4(c2.rgb * 1.5, 1.);
2248      vec4 c3 = vec4(0.);
2249      vec4 c4 = vec4(0.);
2250
2251      vec4 nColor = n > 0.9 ? c1 : n > 0.75 ? c2 : n > 0.25 ? c3 : c4;
2252
2253      /* calculate final color of wormhole bit */
2254      vec4 warpColor = nColor;
2255      warpColor.a *= edgeAlpha;
2256
2257      /* calculate center hole stuff */
2258      const float holeR = 0.4;
2259
2260      vec2 nOffset = ${Rp} * vec2(0.5);
2261      vec4 nInR = 2.0 * vec4(pos + 1.0 * nOffset, 0.5 * ${Rp}, 0.);
2262      float nR = snoise(nInR) + 0.5 * snoise(2. * nInR);
2263
2264      vec4 nInG = 2.3 * vec4(pos + 1.2 * nOffset, 0.5 * ${Rp}, 0.) + vec4(17.);
2265      float nG = snoise(nInG) + 0.5 * snoise(2. * nInG);
2266
2267      vec4 nInB = 2.6 * vec4(pos + 1.3 * nOffset, 0.5 * ${Rp}, 0.) + vec4(34.); 
2268      float nB = snoise(nInB) + 0.5 * snoise(2. * nInB);
2269
2270      vec4 blended = vec4(${jp} * nR + ${Bp} * nG + ${Fp} * nB);
2271      vec3 holeRgb = blended.rgb;
2272      vec3 holeSquash = pow(holeRgb - vec3(0.5), vec3(1.5)) - vec3(0.1);
2273
2274      vec4 holeColor = vec4(holeSquash, 1.);
2275
2276      /* apply a color ramp (glow effect) to the wormhole color */
2277      const float inR = 0.3; const float rFac = 1. / inR;
2278      float ramp = pow(1. - rFac * (r - holeR), 2.); // 0 to 1
2279
2280      if (r < holeR + inR) warpColor.rgb *= 1. + (ramp * 2.);
2281
2282      /* calculate the blended color between holeR and holeR + eps */
2283      const float eps = 0.05;
2284      float blendA = (r - holeR) / eps;
2285      vec4 blendFg = vec4(warpColor.rgb, blendA);
2286      vec4 blendBg = holeColor;
2287      
2288      vec4 blendColor = blend(blendFg, blendBg);
2289
2290      /* calculate final color */
2291      vec4 finalColor = r < holeR ? holeColor : r < holeR + eps ? blendColor : warpColor;
2292
2293      if (finalColor.a < 0.5) discard;
2294      outColor = finalColor;
2295    }
2296  `};class zp extends ru{constructor(e){super(e,Dp),this.quad3Buffer=Dc.makeEmptyQuad(),this.quad2Buffer=Dc.makeQuadVec2(-1,1,1,-1)}queueRipScreen(e,t,n,r){const{position:i,color:o,rectPos:a,inColor1:s,inColor2:l,inColor3:c}=this.attribManagers,u=1.7*n,f=t.x-u,d=t.y-u,h=t.x+u,p=t.y+u;Dc.makeQuadBuffered(this.quad3Buffer,f,d,h,p,r),i.setVertex(this.quad3Buffer,this.verts),a.setVertex(this.quad2Buffer,this.verts);let m=[0,24,122];e.spaceType===de.SpaceType.SPACE?m=[0,5,43]:e.spaceType===de.SpaceType.DEEP_SPACE?m=[2,0,6]:e.spaceType===de.SpaceType.DEAD_SPACE&&(m=[0,36,0]);const g=It.getPlanetCosmetic(e);for(let e=0;e<6;e++)o.setVertex(m,this.verts+e),s.setVertex(g.spacetime1,this.verts+e),l.setVertex(g.spacetime2,this.verts+e),c.setVertex(g.spacetime3,this.verts+e);this.verts+=6}queueRip(e,t,n){const r=or.getInstance().worldToCanvasCoords(t),i=or.getInstance().worldToCanvasDist(n),o=Dc.getPlanetZIndex(e);this.queueRipScreen(e,r,i,o)}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix);const e=Dc.getNow();this.uniformSetters.time(e/6)}}const Up="a_position",$p="a_texcoord",Hp="a_rectPos",Jp="a_color",Gp="a_shine",Vp="a_invert",Xp="a_mythic",Wp="u_matrix",qp="u_texture",Kp="v_texcoord",Zp="v_color",Yp="v_shine",Qp="v_invert",em="v_mythic",tm="v_rectPos",nm={uniforms:{matrix:{name:Wp,type:0},texture:{name:qp,type:4}},attribs:{position:{dim:2,type:Nc.Float,normalize:!1,name:Up},texcoord:{dim:2,type:Nc.Float,normalize:!1,name:$p},rectPos:{dim:2,type:Nc.Float,normalize:!1,name:Hp},color:{dim:4,type:Nc.UByte,normalize:!0,name:Jp},shine:{dim:1,type:Nc.Float,normalize:!1,name:Gp},invert:{dim:1,type:Nc.Float,normalize:!1,name:Vp},mythic:{dim:1,type:Nc.Float,normalize:!1,name:Xp}},vertexShader:Fc`
2297    in vec4 ${Up};
2298    in vec2 ${$p};
2299    in vec4 ${Jp};
2300    in float ${Gp};
2301    in float ${Vp};
2302    in float ${Xp};
2303    in vec2 ${Hp};
2304
2305    uniform mat4 ${Wp};
2306
2307    out vec2 ${Kp};
2308    out vec4 ${Zp};
2309    out float ${Yp};
2310    out float ${Qp};
2311    out float ${em};
2312    out vec2 ${tm};
2313
2314    void main() {
2315      gl_Position = ${Wp} * ${Up};
2316      ${Kp} = ${$p};
2317      ${Zp} = ${Jp};
2318      ${Yp} = ${Gp};
2319      ${Qp} = ${Vp};
2320      ${tm} = ${Hp};
2321      ${em} = ${Xp};
2322    }
2323  `,fragmentShader:Fc`
2324    ${zc.PI}
2325
2326    precision highp float;
2327    out vec4 outColor;
2328
2329    in vec2 ${Kp};
2330    in vec2 ${tm};
2331    in vec4 ${Zp};
2332    in float ${Yp};
2333    in float ${Qp};
2334    in float ${em};
2335
2336    uniform sampler2D ${qp};
2337
2338    ${zc.invertColors}
2339    ${zc.desaturate}
2340    ${zc.simplex4}
2341
2342    void main() {
2343      vec4 texel = texture(${qp}, ${Kp});
2344
2345      // initial checks
2346      if (texel.a < 0.5) discard;
2347      if (${Qp} > 0.) texel = invert(texel);
2348      if (${em} > 0.) {
2349        float theta = ${Yp} * 2. * PI;
2350
2351        float x = 8. * (${tm}.x);
2352        float y = 2. * (${tm}.y - 0.5);
2353        float z = sqrt(1. - y * y);
2354
2355        float yP = cos(theta) * y + sin(theta) * z;
2356        float zP = sin(theta) * y - cos(theta) * z;
2357
2358        vec4 nIn = vec4(x, yP, zP, 0.);
2359
2360        float rand = snoise(nIn);
2361
2362        bool isBlack = texel.r < 0.05 && texel.g < 0.05 && texel.b < 0.05;
2363        bool isWhite = texel.r > 0.95 && texel.g > 0.95 && texel.b > 0.95;
2364
2365        if (isBlack) { } 
2366        else if (isWhite) { } 
2367        else {
2368          texel.rgb = ((texel.rgb - 0.35) * max(3., 0.)) + 0.35;
2369          texel.rgb *= 0.5 * rand + 0.6;
2370        }
2371      }
2372
2373      // see if we should recolor it
2374      bool shouldColor = ${Zp}.x != 0. || ${Zp}.y != 0. || ${Zp}.z != 0.;
2375      if (shouldColor && texel.a > 0.5) texel.rgb = ${Zp}.rgb;
2376
2377      // shine
2378      float shine = -0.5 + 12. * ${Yp};
2379      float x = ${tm}.x;
2380      float y = ${tm}.y;
2381      if (abs((x - shine) - 0.25 * (y - 0.5)) < 0.05) {
2382        texel = vec4(1., 1., 1., 1.);
2383      }
2384
2385      // apply alpha
2386      if (texel.a > 0.5) {
2387        texel.a *= ${Zp}.a;
2388      }
2389
2390      outColor = texel;
2391    }
2392  `},rm=new Map;async function im(e){const t=rm.get(e);if(t)return t;const n=new Image;return new Promise(t=>{n.onload=()=>{rm.set(e,n),t(n)},n.src=e})}async function om(){return im("public/sprites/artifacts.png")}async function am(){return im("public/sprites/artifactthumbs.png")}const sm={x1:-1,y1:-1,x2:-1,y2:-1},lm={shiny:sm,normal:sm};function cm(e,t){const n=e*(1/16),r=t*(1/16);return{x1:n,y1:r,x2:n+1/16,y2:r+1/16}}const um=(()=>{const e={};for(let t=fe.MIN_ARTIFACT_TYPE;t<=fe.MAX_ARTIFACT_TYPE;t++){const n={};if(Lt(t)){let e=2*(t-1),r=0;for(let t=de.Biome.UNKNOWN;t<=fe.MAX_BIOME;t++)t!==de.Biome.UNKNOWN?(n[t]={shiny:cm(r,e),normal:cm(r+1,e)},r+=2,r>=16&&(r=0,e++)):n[t]=lm}else if(Rt(t)){const e=8,r=2*(t-de.ArtifactType.Wormhole);for(let t=de.Biome.UNKNOWN;t<=fe.MAX_BIOME;t++)n[t]={shiny:cm(r,e),normal:cm(r+1,e)}}e[t]=n}return e})();const fm=function(){const e={};for(let t=fe.MIN_ARTIFACT_TYPE;t<=fe.MAX_ARTIFACT_TYPE;t++){const n=t-1;e[t]={normal:cm(n,9),shiny:cm(n,10)}}return e}(),dm=new Map;function hm(e){return e>=de.ArtifactRarity.Epic}class pm extends ru{constructor(e,t=!1,n=!1){super(e,nm),this.thumb=t,this.flip=n,this.loaded=!1,this.texBuffer=Dc.makeEmptyQuadVec2(),this.posBuffer=Dc.makeEmptyQuad(),this.rectposBuffer=Dc.makeQuadVec2(0,0,1,1),this.loadAtlas(t)}async loadAtlas(e){const t=e?am:om,n=await t(),r=this.manager.getTexIdx();await this.loadTexture(n,r),this.loaded=!0}async loadTexture(e,t){this.texIdx=t;const{gl:n}=this.manager;n.activeTexture(n.TEXTURE0+t);const r=n.createTexture();n.bindTexture(n.TEXTURE_2D,r),Dc.fillTexture(n),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,e),n.generateMipmap(n.TEXTURE_2D),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!0),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0)}queueArtifact(e,t,n=128,r=255,i,o,a){e.rarity>
2392=de.ArtifactRarity.Rare&&this.queueOutline(e,t,n,r,a),e.unconfirmedMove&&(r=127),this.queueSprite(e,t,n,r,o,i,a)}queueArtifactWorld(e,t,n,r=255,i,o,a){const s=or.getInstance(),l=s.worldToCanvasCoords(t),c=s.worldToCanvasDist(n),u=Math.max(c,4);this.queueArtifact(e,{x:l.x-c/2,y:l.y-c/2},u,r,i,o,a)}queueSprite(e,t,n,r,i,o,a){if(!this.loaded)return;const{rarity:s}=e,l=s>=de.ArtifactRarity.Rare,c=s===de.ArtifactRarity.Legendary,u=s===de.ArtifactRarity.Mythic,{position:f,texcoord:d,rectPos:h,color:p,shine:m,invert:g,mythic:v}=this.attribManagers,{x:y,y:b}={x:Math.floor(t.x),y:Math.floor(t.y)},w=Math.floor(Dc.getNow()%3*60),E=l?(void 0===o?w:o)/180:-1e3,k=function(e){const{id:t,artifactType:n,planetBiome:r,rarity:i}=e;if(dm.has(t))return dm.get(t)||sm;if(Bt(e)){const e=fm[n];return hm(i)?e.shiny:e.normal}{const e=um[n],t=e?e[r]:lm;return hm(i)?t.shiny:t.normal}}(e),{x1:x,x2:S,y1:_,y2:A}=k,C=n;Dc.makeQuadVec2Buffered(this.posBuffer,0,0,C,C),void 0!==a&&(Dc.translateQuadVec2(this.posBuffer,[-C/2,-C/2]),Dc.rotateQuadVec2(this.posBuffer,a),Dc.translateQuadVec2(this.posBuffer,[C/2,C/2])),Dc.translateQuadVec2(this.posBuffer,[y,b]),this.flip?Dc.makeQuadVec2Buffered(this.texBuffer,x,1-_,S,1-A):Dc.makeQuadVec2Buffered(this.texBuffer,x,_,S,A);const T=[...i||[0,0,0],r];f.setVertex(this.posBuffer,this.verts),d.setVertex(this.texBuffer,this.verts),h.setVertex(this.rectposBuffer,this.verts);for(let e=0;e<6;e++)p.setVertex(T,this.verts+e),m.setVertex([E],this.verts+e),g.setVertex([c?1:0],this.verts+e),v.setVertex([u?1:0],this.verts+e);this.verts+=6}queueOutline(e,{x:t,y:n},r,i,o,a=wf.colors.artifacts.trim){const s=this.thumb?r/16:r/64,l=this.thumb?1:2;for(let c=s;c<=l*s;c+=s)this.queueSprite(e,{x:t,y:n-c},r,i,a,void 0,o),this.queueSprite(e,{x:t,y:n+c},r,i,a,void 0,o),this.queueSprite(e,{x:t+c,y:n},r,i,a,void 0,o),this.queueSprite(e,{x:t-c,y:n},r,i,a,void 0,o);2===l&&(this.queueSprite(e,{x:t-1,y:n-1},r,i,a,void 0,o),this.queueSprite(e,{x:t-1,y:n+1},r,i,a,void 0,o),this.queueSprite(e,{x:t+1,y:n-1},r,i,a,void 0,o),this.queueSprite(e,{x:t+1,y:n+1},r,i,a,void 0,o))}queueIconWorld(e,t,n,r=32){const i=or.getInstance(),o=i.worldToCanvasDist(n),a=i.worldToCanvasCoords(t),s=Math.min(r,o),l={x:a.x-s,y:a.y-s};this.queueArtifact(e,l,s)}setUniforms(){this.uniformSetters.texture(this.texIdx),this.uniformSetters.matrix(this.manager.projectionMatrix)}flush(){if(!this.loaded||0===this.verts)return;const{gl:e}=this.manager;e.activeTexture(e.TEXTURE0+this.texIdx),super.flush(),this.verts=0}}const mm="a_position",gm="a_color",vm="a_texcoord",ym="u_matrix",bm="u_texture",wm="v_color",Em="v_texcoord",km={uniforms:{matrix:{name:ym,type:0},texture:{name:bm,type:4}},attribs:{position:{dim:3,type:Nc.Float,normalize:!1,name:mm},color:{dim:4,type:Nc.UByte,normalize:!0,name:gm},texcoord:{dim:2,type:Nc.Float,normalize:!1,name:vm}},vertexShader:Fc`
2393    in vec4 ${mm};
2394    in vec4 ${gm};
2395    in vec2 ${vm};
2396
2397    uniform mat4 ${ym};
2398
2399    out vec4 ${wm};
2400    out vec2 ${Em};
2401
2402    void main() {
2403      gl_Position = ${ym} * ${mm};
2404
2405      ${wm} = ${gm};
2406      ${Em} = ${vm};
2407    }
2408  `,fragmentShader:Fc`
2409    precision highp float;
2410    out vec4 outColor;
2411
2412    uniform sampler2D ${bm};
2413
2414    in vec4 ${wm};
2415    in vec2 ${Em};
2416
2417    void main() {
2418      vec4 texel = texture(${bm}, ${Em});
2419      outColor = texel * ${wm};
2420    }
2421  `},{glyphW:xm,glyphH:Sm,canvasDim:_m,rowL:Am,scale:Cm}=wf.glyphs,Tm=xm/Cm,Pm=Sm/Cm;class Om extends ru{constructor(e,t){super(e,km),this.bufferCanvas=t,this.glyphData=new Map,this.createGlyphs(),this.texIdx=this.manager.getTexIdx(),this.setTexture(this.texIdx),this.quad3Buffer=Dc.makeEmptyQuad(),this.quad2Buffer=Dc.makeEmptyQuadVec2()}setTexture(e){const{gl:t}=this.manager,n=t.createTexture();t.activeTexture(t.TEXTURE0+e),t.bindTexture(t.TEXTURE_2D,n);const r=this.bufferCanvas;t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r),t.generateMipmap(t.TEXTURE_2D),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,!0),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),this.uniformSetters.texture(this.texIdx)}createGlyphs(e=!1){const t=this.bufferCanvas.getContext("2d");if(!t)return void console.error("error creating buffer canvas context");const n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789.()%,?!:+-";t.canvas.width=_m,t.canvas.height=_m,t.clearRect(0,0,t.canvas.width,t.canvas.height),n.split("").forEach((n,r)=>{const i=Math.floor(r/Am),o=r-i*Am;
2421(o+i)%2==0&&e&&(t.fillStyle="gray",t.fillRect(o*xm,i*Sm,xm,Sm));const a=o*xm,s=i*Sm;t.fillStyle="white",t.font=wf.fontStyle,t.textAlign="center",t.textBaseline="middle",t.fillText(n,a+.5*xm,s+.5*Sm),this.glyphData.set(n,{x:a,y:s})})}queueTextWorld(e,t,n=[255,255,255,255],r=0,i=.5,o=0,a=-11){const s=or.getInstance().worldToCanvasCoords(t),l=Pm+2,c={x:s.x,y:s.y+r*l};this.queueText(e,c,n,i,o,a)}queueText(e,{x:t,y:n},r,i=.5,o=0,a=-98){const s=e.length*Tm*i,l=-Pm*o;e.split("").forEach((e,i)=>this.queueGlyph(e,t-s+i*Tm,n+l,r,a))}queueGlyph(e,t,n,r,i){const{position:o,texcoord:a,color:s}=this.attribManagers,l=this.glyphData.get(e);if(!l)return void console.error("could not find glyph: "+e);const{x1:c,y1:u}={x1:t,y1:n},{x2:f,y2:d}={x2:t+Tm,y2:n+Pm};Dc.makeQuadBuffered(this.quad3Buffer,c,u,f,d,i),o.setVertex(this.quad3Buffer,this.verts);const{x:h,y:p}=l,m=h/_m,g=p/_m,v=(h+xm)/_m,y=(p+Sm)/_m;Dc.makeQuadVec2Buffered(this.quad2Buffer,m,g,v,y),a.setVertex(this.quad2Buffer,this.verts);for(let e=0;e<6;e++)s.setVertex(r,this.verts+e);this.verts+=6}setUniforms(){this.uniformSetters.matrix(this.manager.projectionMatrix)}flush(){const{gl:e}=this.manager;e.depthMask(!1),super.flush(),e.depthMask(!0)}}const{white:Mm,gold:Im}=wf.colors,{enemyA:Rm,mineA:Lm}=wf.colors.voyage;function Nm(e,t,n){if(n)return Lm;return bt(t)&&e.owner!==t.owner?Rm:It.getOwnerColorVec(e)}class jm{constructor(e){this.renderer=e}drawFleet(e,t){const{now:n,gameUIManager:r,circleRenderer:i,textRenderer:o,spriteRenderer:a}=this.renderer,s=r.getLocationOfPlanet(e.fromPlanet),l=r.getPlanetWithId(e.fromPlanet),c=r.getLocationOfPlanet(e.toPlanet),u=r.getPlanetWithId(e.toPlanet);if(l&&c)if(!s&&l&&c&&u){const t=e.player===r.getAccount(),a=n/1e3,s=e.arrivalTime-a,f=s*l.speed/100,d=Nm(l,u,t);i.queueCircleWorld(c.coords,f,d,.7,1,!0),o.queueTextWorld(`${Math.floor(e.energyArriving)} in ${Math.floor(s)}s`,{x:c.coords.x,y:c.coords.y+f},d,void 0,.5,1)}else if(s&&l&&c&&u){const t=e.player===r.getAccount(),f=n/1e3;let d=(f-e.departureTime)/(e.arrivalTime-e.departureTime);d=Math.max(d,.01),d=Math.min(d,.99);const h=(1-d)*s.coords.x+d*c.coords.x,p=(1-d)*s.coords.y+d*c.coords.y,m={x:h,y:p},g=Math.floor(e.arrivalTime-f),v=Nm(l,u,t),y=or.getInstance(),b=s.coords.x-c.coords.x,w=s.coords.y-c.coords.y,E=Math.sqrt(b**2+w**2),k=y.worldToCanvasDist(E);let x=255;k<300&&(x=k/300*255),v[3]=x;const S=4,_=20;if(i.queueCircleWorldCenterOnly(m,S,v),e.artifactId){const t=r.getArtifactWithId(e.artifactId);if(t){const e=or.getInstance().worldToCanvasCoords(m),n=1.5*S+_+e.x,r=e.y;a.queueArtifact(t,{x:n,y:r},_)}}o.queueTextWorld(g.toString()+"s",{x:h,y:p-.5},[...Mm,x],0,.5,0),o.queueTextWorld(""+ht(e.energyArriving),{x:h,y:p+.5},[...Mm,x],-0,.5,1),e.silverMoved>0&&o.queueTextWorld(""+ht(e.silverMoved),{x:h,y:p+.5},[...Im,x],-1,.5,1)}}queueVoyages(){const{gameUIManager:e,now:t}=this.renderer,n=e.getAllVoyages();for(const r of n){if(t/1e3<r.arrivalTime){const t=r.player===e.getAccount(),n=e.getPlayer(r.player);this.drawVoyagePath(r.fromPlanet,r.toPlanet,!0,t),this.drawFleet(r,n)}}const r=e.getUnconfirmedMoves();for(const e of r)this.drawVoyagePath(e.from,e.to,!1,!0)}drawVoyagePath(e,t,n,r){const{gameUIManager:i}=this.renderer,o=i.getLocationOfPlanet(e),a=i.getPlanetWithId(e),s=i.getLocationOfPlanet(t),l=i.getPlanetWithId(t);if(!(a&&o&&s&&l))return;const c=Nm(a,l,r);this.renderer.lineRenderer.queueLineWorld(o.coords,s.coords,c,n?2:1,-1,!n)}}const{purpleA:Bm}=wf.colors;class Fm{constructor(e){this.renderer=e}queueWormholes(){const{gameUIManager:e}=this.renderer;for(const t of e.getUnconfirmedWormholeActivations())t.wormholeTo&&this.drawVoyagePath(t.locationId,t.wormholeTo,!1);for(const t of e.getWormholes())this.drawVoyagePath(t.from,t.to,!0)}drawVoyagePath(e,t,n){const{gameUIManager:r}=this.renderer,i=r.getLocationOfPlanet(e),o=r.getPlanetWithId(e),a=r.getLocationOfPlanet(t),s=r.getPlanetWithId(t);o&&i&&a&&s&&this.renderer.lineRenderer.queueLineWorld(i.coords,a.coords,Bm,n?2:1,-1,!n)}}class Dm{constructor(e,t){this.renderer=e,this.canvas=t;const n=this.canvas.getContext("2d");n?this.ctx=n:console.error("error getting draw context")}clear(){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}drawChunk(e){const{bottomLeft:t,sideLength:n}=e.chunkFootprint,{x:r,y:i}=t;this.drawRectStrokeAtCenterWorld({x:r+n/2,y:i+n/2},n,n,2,"red")}drawRectStrokeAtCenterWorld(e,t,n,r,i="white"){const o=or.getInstance(),a=o.worldToCanvasCoords(e),s=o.worldToCanvasDist(t),l=o.worldToCanvasDist(n);this.ctx.fillStyle="rgba(0, 0, 0, 0)",this.ctx.strokeStyle=i,this.ctx.lineWidth=r,this.ctx.strokeRect(a.x-s/2,a.y-l/2,s,l)}
2421drawArtifactAroundPlanet(e,t,n){this.ctx.fillRect(t.x-n/2,t.y-n/2,n,n)}drawHat(e,t,n,r,i,o,a,s,l,c="white",u="red",f=null){const{ctx:d}=this,h=or.getInstance(),p=st[e];const m=a+o/4,g=h.worldToCanvasCoords(r),v=h.worldToCanvasDist(i),y=h.worldToCanvasDist(o),b=-1*h.worldToCanvasDist(m),w=r.x-i/2,E=r.y+m-o/2,k=f&&f.x>w&&f.x<w+i&&f.y>E&&f.y<E+o||l;d.save(),d.translate(g.x,g.y),d.rotate(s),d.translate(0,b),d.scale(v/n,y/t),d.translate(-n/2,-t/2),d.globalAlpha=k?.3:1,d.fillStyle=c;for(const e of p.bottomLayer)d.fill(new Path2D(e));d.fillStyle=u;for(const e of p.topLayer)d.fill(new Path2D(e));d.globalAlpha=1,d.restore()}drawLoopWorld(e,t,n,r="white",i=!1){this.drawArcWorld(e,t,n,100,r,i)}drawArcWorld(e,t,n,r,i="white",o=!1){const a=or.getInstance(),s=a.worldToCanvasCoords(e),l=a.worldToCanvasDist(t);this.ctx.fillStyle="rgba(0, 0, 0, 0)",this.ctx.strokeStyle=i,this.ctx.lineWidth=n,this.ctx.beginPath(),this.ctx.arc(s.x,s.y,l,1.5*Math.PI,1.5*Math.PI+2*Math.PI*r/100,!1),o?this.ctx.setLineDash([15,15]):this.ctx.setLineDash([]),this.ctx.stroke(),this.ctx.setLineDash([])}drawLine(e,t,n,r="white",i=!1){const o=or.getInstance();this.ctx.beginPath(),this.ctx.lineWidth=n,this.ctx.strokeStyle=r;const a=o.worldToCanvasCoords(e);this.ctx.moveTo(a.x,a.y);const s=o.worldToCanvasCoords(t);this.ctx.lineTo(s.x,s.y),i?this.ctx.setLineDash([15,15]):this.ctx.setLineDash([]),this.ctx.stroke(),this.ctx.setLineDash([])}drawPlanetMessages(e,t,n,r){var i;let o=!1;null===(i=n.planet.messages)||void 0===i||i.forEach(i=>{ut(i)&&!o&&(this.drawEmojiMessage(e,t,n,i,r),o=!0)})}drawEmojiMessage(e,t,n,r,i){const o=or.getInstance(),a=o.worldToCanvasCoords(e),s=o.worldToCanvasDist(t),l=r.body.emoji;let c=s,u=-2;if(void 0!==n.planet.emojiZoopAnimation&&(c*=n.planet.emojiZoopAnimation.value()),c<2)return;void 0!==n.planet.emojiBobAnimation&&(u+=n.planet.emojiBobAnimation.value()*(.1*s)),0!==n.planet.silver&&(u-=15),this.ctx.font=c+"px Arial",this.ctx.fillStyle=`rgba(0, 0, 0, ${i})`;const f=this.ctx.measureText(l);this.ctx.fillText(l,a.x-f.width/2,a.y-1.3*s+u)}drawText(e,t,n,r="white",i=.5){this.ctx.font=wf.fontStyle,this.ctx.textAlign="center",this.ctx.fillStyle=r,this.ctx.fillText(e,t,n)}drawArtifactIcon(e,t,n="white"){const{ctx:r}=this,i=or.getInstance().worldToCanvasCoords(e);r.save(),r.translate(i.x,i.y),r.scale(1/32*t,1/32*t);const o=new Path2D("M385.758 160c9.063-6.44 17.756-13.608 25.722-21.574 16.701-16.701 27.873-37.25 31.456-57.861 3.929-22.593-1.836-43.57-15.815-57.55-11.15-11.149-26.255-17.043-43.682-17.043-24.816 0-50.961 11.912-71.73 32.681-33.238 33.238-52.613 79.119-63.038 111.861-7.72-32.901-23.103-77.322-53.009-107.229-16.047-16.046-36.557-24.285-55.923-24.285-15.827 0-30.89 5.502-42.13 16.743-24.993 24.994-21.616 68.893 7.543 98.052 10.396 10.396 22.549 19.031 35.36 26.206h-108.512v128h32v224h384v-224.001h32v-128h-94.242zM337.163 64.109c13.862-13.862 31.161-22.137 46.275-22.137 5.35 0 12.854 1.127 18.225 6.499 13.015 13.014 5.706 43.154-15.64 64.499-21.973 21.973-51.53 37.084-77.216 47.030h-25.336c9.284-28.774 26.029-68.228 53.692-95.891zM130.607 108.338c-7.914-7.914-12.885-18.080-13.64-27.893-0.351-4.56-0.025-13.124 6.098-19.247 5.122-5.122 11.894-6.198 16.674-6.198v0c10.629 0 21.734 5.008 30.466 13.74 16.936 16.936 30.883 43.886 40.334 77.938 0.255 0.92 0.504 1.835 0.748 2.743-0.908-0.243-1.823-0.492-2.743-0.748-34.052-9.451-61.002-23.399-77.937-40.335zM448 272h-160v208h-64v-208h-160v-16h160v-64h64v64h160v16z");r.translate(-256,-256),r.fillStyle=n,r.fill(o),r.restore()}drawMiner(){const{gameUIManager:e}=this.renderer,{ctx:t}=this,n=e.getAllMinerLocations();if(0===n.length)return;const r=or.getInstance();for(const e of n){if(!e)continue;const n=r.worldToCanvasCoords(e);t.save(),t.translate(n.x,n.y),t.scale(1/16,1/16);const i=new Path2D("M512 224h-50.462c-13.82-89.12-84.418-159.718-173.538-173.538v-50.462h-64v50.462c-89.12 13.82-159.718 84.418-173.538 173.538h-50.462v64h50.462c13.82 89.12 84.418 159.718 173.538 173.538v50.462h64v-50.462c89.12-13.82 159.718-84.418 173.538-173.538h50.462v-64zM396.411 224h-49.881c-9.642-27.275-31.255-48.889-58.53-58.53v-49.881c53.757 12.245 96.166 54.655 108.411 108.411zM256 288c-17.673 0-32-14.327-32-32
2421s14.327-32 32-32c17.673 0 32 14.327 32 32s-14.327 32-32 32zM224 115.589v49.881c-27.275 9.641-48.889 31.255-58.53 58.53h-49.881c12.245-53.756 54.655-96.166 108.411-108.411zM115.589 288h49.881c9.641 27.275 31.255 48.889 58.53 58.53v49.881c-53.756-12.245-96.166-54.654-108.411-108.411zM288 396.411v-49.881c27.275-9.642 48.889-31.255 58.53-58.53h49.881c-12.245 53.757-54.654 96.166-108.411 108.411z");t.translate(-256,-256),t.fillStyle="white",t.fill(i),t.restore()}}}const{red:zm,white:Um,redA:$m,whiteA:Hm,purpleA:Jm}=wf.colors;class Gm{constructor(e){this.renderer=e}queueBorders(){const{circleRenderer:e,gameUIManager:t}=this.renderer,n=t.getWorldRadius();Hm[3]=255,e.queueCircleWorld({x:0,y:0},n,Hm,2)}queueMousePath(){const{gameUIManager:e,lineRenderer:t,textRenderer:n}=this.renderer,r=e.getMouseDownPlanet(),i=r?e.getLocationOfPlanet(r.locationId):void 0,o=e.getHoveringOverCoords(),a=null==i?void 0:i.coords,s=e.getPlanetWithCoords(o);if(r&&a&&o)if(e.getIsChoosingTargetPlanet())t.queueLineWorld(a,o,Jm,2,-1),n.queueTextWorld("Wormhole Target",{x:o.x,y:o.y},Jm);else{const r=e.isOverOwnPlanet(a);if(r&&o!==a){t.queueLineWorld(a,o,Hm,2,-1);let i=r.energy;for(const e of r.unconfirmedDepartures)i-=e.forces;const l=e.getForcesSending(r.locationId)/100*i,c=e.getDistCoords(a,o),u=e.getEnergyArrivingForMove(r.locationId,null==s?void 0:s.locationId,c,l);if(!e.getHoveringOverPlanet()){const e=u>0?Hm:$m;e[3]=255,n.queueTextWorld("Energy: "+Math.round(u),{x:o.x,y:o.y},e)}}}}queueRectAtPlanet(e,t,n){const{gameUIManager:r,rectRenderer:i}=this.renderer,o=2.3*r.getRadiusOfPlanetLevel(e.planetLevel);i.queueRectCenterWorld(t,o,o,n,2)}queueSelectedRect(){const{gameUIManager:e}=this.renderer,t=e.getSelectedCoords(),n=e.getSelectedPlanet();n&&t&&($m[3]=255,this.queueRectAtPlanet(n,t,zm))}queueHoveringRect(){const{gameUIManager:e,rectRenderer:t}=this.renderer,n=e.getHoveringOverCoords(),r=e.getHoveringOverPlanet();n&&(r?this.queueRectAtPlanet(r,n,Um):t.queueRectCenterWorld(n,1,1,Um,2))}drawMiner(){const{overlay2dRenderer:e}=this.renderer;e.drawMiner()}queueSelectedRangeRing(){const e=this.renderer.gameUIManager.getSelectedPlanet(),t=this.renderer.gameUIManager.getHoveringOverPlanet();e&&(!t||(null==t?void 0:t.locationId)===e.locationId)&&this.renderer.planetRenderManager.queueRangeRings(e)}}class Vm{constructor(e,t){this.texIdx=0,ue()(this),this.canvas=e;const n=this.canvas.getContext("webgl2",t);n?(this.gl=n,this.projectionMatrix=r.create(),this.setProjectionMatrix()):console.error("error getting webgl2 context")}setProjectionMatrix(){const e=this.canvas.height,t=this.canvas.width;r.set(this.projectionMatrix,2/t,0,0,0,0,-2/e,0,0,0,0,.01,0,-1,1,0,1)}clear(e,t){const{gl:n,canvas:r}=this;n.viewport(0,0,r.width,r.height),t?n.clearColor(...t):n.clearColor(0,0,0,0),n.clear(e||n.COLOR_BUFFER_BIT)}getTexIdx(){return this.texIdx++}}class Xm extends Vm{constructor(e,t){super(t,{stencil:!0});const{gl:n}=this;this.renderer=e,n.enable(n.BLEND),n.blendFunc(n.SRC_ALPHA,n.ONE_MINUS_SRC_ALPHA)}clear(){const e=this.isHighPerf?[12/255,11/255,30/255,1]:[.3,.3,.35,1],{gl:t}=this;super.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT,e)}}class Wm{constructor(e,t,n,r){this.canvas=e,this.glCanvas=t,this.bufferCanvas=n,this.glManager=new Xm(this,this.glCanvas),this.overlay2dRenderer=new Dm(this,this.canvas),this.previousRenderTimestamp=Date.now(),this.gameUIManager=r,this.frameCount=0,this.now=Date.now(),ue()(this),this.setup()}setup(){this.bgRenderer=new Ku(this.glManager,this.gameUIManager.getPerlinConfig(),this.gameUIManager.getPerlinThresholds()),this.planetRenderer=new Ph(this.glManager),this.asteroidRenderer=new iu(this.glManager),this.beltRenderer=new df(this.glManager),this.mineRenderer=new ed(this.glManager),this.spriteRenderer=new pm(this.glManager,!0,!0),this.quasarRenderer=new Qh(this.glManager),this.spacetimeRipRenderer=new zp(this.glManager),this.ruinsRenderer=new _p(this.glManager),this.ringRenderer=new dp(this.glManager),this.blackDomainRenderer=new bf(this.glManager),this.lineRenderer=new Uf(this.glManager),this.circleRenderer=new Rf(this.glManager),this.rectRenderer=new qu(this.glManager),this.textRenderer=new Om(this.glManager,this.bufferCanvas),this.voyageRenderManager=new jm(this),this.wormholeRenderManager=new Fm(this),this.planetRenderManager=new Lh(this),this.uiRenderManager=new Gm(this),this.loop()}static destroy(){Wm.instance&&window.cancelAnimationFrame(Wm.instance.frameRequestId),Wm.instance=null}static initialize(e,t,n,r){const i=new Wm(e,t,n,r);return Wm.instance=i,i}recordRender(e){this.gameUIManager.updateDiagnostics(t=>{t.fps=1e3/(e-this.previousRenderTimestamp)}),this.previousRenderTimestamp=e}loop(){this.frameCount++,this.now=Date.now(),this.draw(),this.recordRender(Date.now()),this.frameRequestId=window.requestAnimationFrame(()=>this.loop())}draw(){var e;this.glManager.setProjectionMatrix(),this.overlay2dRenderer.clear(),this.glManager.isHighPerf
2421=this.gameUIManager.getIsHighPerfMode(),this.glManager.clear();const{cachedPlanets:t,chunks:n}=this.gameUIManager.getLocationsAndChunks(),r=this.gameUIManager.getBooleanSetting("HighPerformanceRendering"),i=this.gameUIManager.getBooleanSetting("DisableEmojiRendering"),o=this.gameUIManager.getBooleanSetting("DisableHatRendering"),a=this.gameUIManager.getBooleanSetting("DrawChunkBorders");this.bgRenderer.drawChunks(n,r,a),this.uiRenderManager.queueBorders(),this.uiRenderManager.queueSelectedRangeRing(),this.uiRenderManager.queueSelectedRect(),this.uiRenderManager.queueHoveringRect(),this.uiRenderManager.queueMousePath(),this.uiRenderManager.drawMiner(),this.voyageRenderManager.queueVoyages(),this.wormholeRenderManager.queueWormholes(),this.planetRenderManager.queuePlanets(t,this.now,r,i,o),this.lineRenderer.flush(),this.planetRenderManager.flush(),this.circleRenderer.flush(),this.rectRenderer.flush(),this.textRenderer.flush(),this.spriteRenderer.flush(),null===(e=this.gameUIManager.getPluginManager())||void 0===e||e.drawAllRunningPlugins(this.overlay2dRenderer.ctx)}}var qm=Wm;const Km=le.c.div.withConfig({displayName:"CanvasWrapper",componentId:"sc-nd8mfx"})`
2422  width: 100%;
2423  height: 100%;
2424
2425  position: relative;
2426
2427  canvas {
2428    width: 100%;
2429    height: 100%;
2430
2431    position: absolute;
2432
2433    &#buffer {
2434      width: auto;
2435      height: auto;
2436      display: none;
2437    }
2438  }
2439  // TODO put this into a global style
2440  canvas,
2441  img {
2442    image-rendering: -moz-crisp-edges;
2443    image-rendering: -webkit-crisp-edges;
2444    image-rendering: pixelated;
2445    image-rendering: crisp-edges;
2446  }
2447`;function Zm(){var e,t;const[n,r]=Object(i.useState)(window.innerWidth),[a,s]=Object(i.useState)(window.innerHeight),l=Object(i.useRef)(null),c=Object(i.useRef)(null),u=Object(i.useRef)(null),f=l,d=xi(),h=_o.getInstance(),[p,m]=Object(i.useState)(!1);Object(i.useEffect)(()=>{const e=e=>{m(1===e)};return h.on("StateChanged",e),()=>{h.removeListener("StateChanged",e)}},[h]);const g=Object(i.useCallback)(()=>{const e=nr.getInstance();l.current&&(r(l.current.clientWidth),s(l.current.clientHeight),e.emit("WindowResize"))},[l]);return Object(i.useLayoutEffect)(()=>{l.current&&g()},[l,g,null===(e=l.current)||void 0===e?void 0:e.offsetWidth,null===(t=l.current)||void 0===t?void 0:t.offsetHeight]),Object(i.useEffect)(()=>{if(!d)return;const e=nr.getInstance();function t(){g(),e.emit("WindowResize")}const n=t=>{t.preventDefault();const{deltaY:n}=t;e.emit("CanvasScroll",n)},r=f.current;if(!(r&&l.current&&c.current&&u.current))return;return or.initialize(d,4,r),qm.initialize(l.current,c.current,u.current,d),r.addEventListener("wheel",n),window.addEventListener("resize",t),e.on("UIChange",g),()=>{or.destroyInstance(),qm.destroy(),r.removeEventListener("wheel",n),window.removeEventListener("resize",t),e.removeListener("UIChange",g)}},[d,g,l,c,u,f]),Object(i.useEffect)(()=>{if(!f.current)return;const e=f.current,t=nr.getInstance();function n(n,r){const i=e.getBoundingClientRect(),o=r.clientX-i.left,a=r.clientY-i.top;t.emit(n,{x:o,y:a})}const r=e=>{n("CanvasMouseDown",e)},i=e=>{n("CanvasMouseMove",e)},o=e=>{n("CanvasMouseUp",e)},a=()=>{t.emit("CanvasMouseOut")};return e.addEventListener("mousedown",r),e.addEventListener("mousemove",i),e.addEventListener("mouseup",o),e.addEventListener("mouseout",a),()=>{e.removeEventListener("mousedown",r),e.removeEventListener("mousemove",i),e.removeEventListener("mouseup",o),e.removeEventListener("mouseout",a)}},[f]),o.a.createElement(Km,{style:{cursor:p?"crosshair":void 0}},o.a.createElement("canvas",{ref:c,width:n,height:a}),o.a.createElement("canvas",{ref:l,width:n,height:a}),o.a.createElement("canvas",{ref:u,id:"buffer"}))}class Ym extends o.a.Component{constructor(){super(...arguments),this.coordsRef=o.a.createRef(),this.spacetypeRef=o.a.createRef(),this.uiEmitter=nr.getInstance(),this.update=e=>{this.setCoords(e),this.setSpacetype(e)}}componentDidMount(){this.uiEmitter.on("WorldMouseMove",this.update)}componentWillUnmount(){this.uiEmitter.removeListener("WorldMouseMove",this.update)}setCoords(e){this.coordsRef.current&&(this.coordsRef.current.innerText=e?`(${Math.round(e.x)}, ${Math.round(e.y)})`:"(x, y)")}setSpacetype(e){let t="???";if(this.props.uiManager){const n=this.props.uiManager.getSpaceTypePerlin(e,!1),r=this.props.uiManager.spaceTypeFromPerlin(n);let i="";r===de.SpaceType.NEBULA?i="° (NEBULA)":r===de.SpaceType.SPACE?i="° (SPACE)":r===de.SpaceType.DEEP_SPACE?i="° (DEEP SPACE)":r===de.SpaceType.DEAD_SPACE&&(i="° (DEAD SPACE)"),t=`${Math.floor(16*(16-n))}${i}`}this.spacetypeRef.current&&(this.spacetypeRef.current.innerText="TEMP: "+t)}render(){return o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{ref:this.coordsRef}),o.a.createElement("span",{ref:this.spacetypeRef}))}}const Qm=le.c.div.withConfig({displayName:"StyledCoordsPane",componentId:"sc-1tscf2n"})`
2448  position: absolute;
2449  bottom: 0;
2450  right: 0;
2451  padding: 0.5em;
2452
2453  text-align: right;
2454  display: flex;
2455  flex-direction: column;
2456  justify-content: flex-end;
2457
2458  width: 16em;
2459  height: 4em;
2460`;function eg(){const[e,t]=Object(i.useState)(!1),[n,r]=Object(i.useState)(!1),a=xi();return o.a.createElement(Qm,{onClick:()=>r(e=>!e),onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1)},n?o.a.createElement("span",null,e?"Click to show":""):e?o.a.createElement("span",null,"Click to hide"):o.a.createElement(Ym,{uiManager:a}))}function tg({gasPrices:e}){return o.a.createElement("div",null,e?o.a.createElement(o.a.Fragment,null,"slo: ",e.slow+" ","avg: ",e.average+" ","fst: ",e.fast+" "):"unknown")}function ng({tabTitles:e,tabContents:t}){const[n,r]=Object(i.useState)(0);return o.a.createElement("div",null,o.a.createElement(ig,null,e.map((e,t)=>o.a.createElement(rg,{key:t,active:t===n,onClick:()=>{r(t)}},e))),o.a.createElement(uo,{height:8}),t(n))}const rg=le.c.div.withConfig({displayName:"TabButton",componentId:"sc-ocjxsb"})`
2461  ${({active:e})=>le.b`
2462    color: ${Pe.colors.subtext};
2463    text-decoration: underline;
2464    border-radius: 3px;
2465    padding: 4px 8px;
2466    margin-right: 4px;
2467    margin-left: 4px;
2468    flex-grow: 1;
2469    text-align: center;
2470    cursor: pointer;
2471    user-select: none;
2472
2473    &:first-child {
2474      margin-left: 0;
2475    }
2476
2477    &:last-child {
2478      margin-right: 0;
2479    }
2480
2481    &:hover {
2482      color: ${Pe.colors.text};
2483      background-color: ${Pe.colors.backgroundlighter};
2484
2485      ${e&&le.b`
2486        color: ${Pe.colors.text};
2487        background-color: ${Pe.colors.dfgreendark};
2488      `}
2489    }
2490
2491    ${e&&le.b`
2492      cursor: default;
2493      color: ${Pe.colors.text};
2494      background-color: ${Pe.colors.dfgreendark};
2495    `}
2496  `}
2497`,ig=le.c.div.withConfig({displayName:"TabButtonContainer",componentId:"sc-ezfd59"})`
2498  display: flex;
2499  justify-content: center;
2500  align-items: center;
2501  flex-direction: row;
2502`;function og({hook:e}){const t=xi(),[n,r]=Object(i.useState)(new Rr(t.getDiagnostics()));return Object(i.useEffect)(()=>{const e=setInterval(()=>{r(new Rr(t.getDiagnostics()))},250);return()=>clearInterval(e)},[t]),o.a.createElement(zo,{hook:e,title:"Diagnostics"},o.a.createElement(Xi,null,o.a.createElement(ag,{diagnostics:n})))}function ag({diagnostics:e}){return o.a.createElement(ng,{tabTitles:["rendering","networking"],tabContents:t=>{switch(t){case 0:return o.a.createElement(sg,{diagnostics:e});case 1:return o.a.createElement(lg,{diagnostics:e})}}})}function sg({diagnostics:e}){const t=xi();return o.a.createElement(o.a.Fragment,null,o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"fps"),o.a.createElement("span",null,Math.floor(e.value.fps))),o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"visible chunks"),o.a.createElement("span",null,e.value.visibleChunks.toLocaleStr
2502ing())),o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"total chunks"),o.a.createElement("span",null,e.value.totalChunks.toLocaleString())),o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"visible planets"),o.a.createElement("span",null,e.value.visiblePlanets.toLocaleString())),o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"total planets"),o.a.createElement("span",null,e.value.totalPlanets.toLocaleString())),o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"queued chunk writes"),o.a.createElement("span",null,e.value.chunkUpdates.toLocaleString())),o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"viewport"),o.a.createElement("span",null,o.a.createElement("span",null,e.value.width.toLocaleString()),o.a.createElement("span",null," x "),o.a.createElement("span",null,e.value.height.toLocaleString()))),o.a.createElement(Ji,null),o.a.createElement(co,{height:.5}),o.a.createElement(Xr,{uiManager:t,setting:"DrawChunkBorders",settingDescription:"draw chunk borders"}))}function lg({diagnostics:e}){return o.a.createElement(o.a.Fragment,null,o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"rpc url"),o.a.createElement("span",null,o.a.createElement(Ac,{text:e.value.rpcUrl,unFocusedWidth:"100px",focusedWidth:"100px"}))),o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"completed calls"),o.a.createElement("span",null,e.value.totalCalls.toLocaleString())),o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"queued calls"),o.a.createElement("span",null,e.value.callsInQueue.toLocaleString())),o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"completed transactions"),o.a.createElement("span",null,e.value.totalTransactions.toLocaleString())),o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"queued transactions"),o.a.createElement("span",null,e.value.transactionsInQueue.toLocaleString())),o.a.createElement(Ji,null),o.a.createElement(ko,null,o.a.createElement("span",null,"oracle gas prices"),o.a.createElement("span",null,o.a.createElement(tg,{gasPrices:e.value.gasPrices}))))}const cg=le.c.span.withConfig({displayName:"StyledSilverLabel",componentId:"sc-1fp4s1e"})`
2503  color: ${Pe.colors.text};
2504`,ug=()=>o.a.createElement(cg,null,"Silver"),fg=le.c.span.withConfig({displayName:"StyledScoreLabel",componentId:"sc-vp5rfn"})`
2505  color: ${Pe.colors.dfyellow};
2506  -webkit-text-stroke: 1px;
2507`,dg=()=>o.a.createElement(fg,null,"Score");function hg(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(fr,null,"xDAI Tx Speed: "),"For each auto gas setting (which you can choose in the"," ",o.a.createElement(fr,null,"Settings")," Pane), the average amount of time it takes a transaction with that setting to confirm. The Dark Forest client uploads diagnostic info (you can turn this off via settings), which is aggregated into this network health indicator. I hope you find it helpful in cases the network is being slow.")}function pg(){return o.a.createElement(o.a.Fragment,null,"This is a ",o.a.createElement(ur,null,"Spacetime Rip")," where you can withdraw ",o.a.createElement(ug,null)," for ",o.a.createElement(dg,null),"!")}function mg(){return o.a.createElement(o.a.Fragment,null,"Defense multiplier")}function gg(){return o.a.createElement(o.a.Fragment,null,"EnergyCap multiplier")}function vg(){return o.a.createElement(o.a.Fragment,null,"EnergyGrowth multiplier")}function yg(){return o.a.createElement(o.a.Fragment,null,"Range multiplier")}function bg(){return o.a.createElement(o.a.Fragment,null,"Speed multiplier")}function wg(){return o.a.createElement(o.a.Fragment,null,"Deposit this artifact")}function Eg(){return o.a.createElement(o.a.Fragment,null,"Deactivate this artifact")}function kg(){return o.a.createElement(o.a.Fragment,null,"Withdraw this artifact")}function xg(){return o.a.createElement(o.a.Fragment,null,"Activate this artifact")}function Sg(){return o.a.createElement(o.a.Fragment,null,"You must wait this amount of time before you can activate this artifact")}function _g(){return o.a.createElement(o.a.Fragment,null,"You may connect your account to ",o.a.createElement(fr,null,"Twitter"),o.a.createElement("br",null),"to identify yourself on the ",o.a.createElement(fr,null,"Leaderboard"),".")}function Ag(){return o.a.createElement(o.a.Fragment,null,"Your current rank, based on ",o.a.createElement(dg,null),".")}function Cg(){return o.a.createElement(o.a.Fragment,null,"You earn ",o.a.createElement(dg,null)," by finding artifacts and withdrawing silver. Check out the"," ",o.a.createElement(fr,null,"Help Pane")," for more info on scoring.")}function Tg(){return o.a.createElement(o.a.Fragment,null,"Start / Stop your ",o.a.createElement(fr,null,"explorer"),". Your explorer looks for planets in chunks of"," ",o.a.createElement(fr,null,"16")," x ",o.a.createElement(fr,null,"16"),".")}function Pg(){return o.a.createElement(o.a.Fragment,null,"Change the location of your ",o.a.createElement(fr,null,"explorer"),". Click anyw
2507here on the"," ",o.a.createElement(fr,null,"Game Screen"),", and your ",o.a.createElement(fr,null,"miner")," will start hashing around that chunk.")}function Og(){return o.a.createElement(o.a.Fragment,null,"The current coordinates of your ",o.a.createElement(fr,null,"explorer"),".")}function Mg(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(sr,null,"This stat has been randomly doubled!"))}function Ig(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(fr,null,"Silver:")," the universe's monetary resource. It allows you to buy upgrades. Only",o.a.createElement(fr,null," Asteroid Fields")," produce silver or so we've been told...")}function Rg(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(fr,null,"Energy:")," allows you to make moves. Energy grows following an"," ",o.a.createElement(fr,null,"s-curve"),", and grows fastest at ",o.a.createElement(fr,null,"50% capacity"),".")}function Lg(){const e=Pi(xi()),t=mt(e.value);return o.a.createElement(o.a.Fragment,null,"This planet is ",o.a.createElement(fr,null,gt(e.value)?"fully upgraded":"rank "+t),"!")}function Ng(){return o.a.createElement(o.a.Fragment,null,"This planet is ",o.a.createElement(fr,null,"Level 9"),", making it one of the ",o.a.createElement("br",null),"most powerful planets in the galaxy!")}function jg(){return o.a.createElement(o.a.Fragment,null,"This planet produces ",o.a.createElement(fr,null,"Silver"),"! Use it to buy upgrades!")}function Bg(){const e=Pi(xi());return o.a.createElement(o.a.Fragment,null,e.value?o.a.createElement(o.a.Fragment,null,o.a.createElement(o.a.Fragment,null,"Silver:",o.a.createElement("span",null,e.value.silver)),o.a.createElement(o.a.Fragment,null,"Cap:",o.a.createElement("span",null,e.value.silverCap)),e.value.planetType===de.PlanetType.SILVER_MINE?o.a.createElement(o.a.Fragment,null,"Growth:",o.a.createElement("span",null,60*e.value.silverGrowth)):o.a.createElement(o.a.Fragment,null,o.a.createElement(dr,null,"This planet does not produce silver."))):o.a.createElement(o.a.Fragment,null,"Select a planet to view more about its stats. "))}function Fg(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(fr,null,"Range:")," how far you can send your forces. ",o.a.createElement(fr,null,"Forces decay")," the farther out you send them. ",o.a.createElement("br",null),"Higher range means that you can send forces the same distance with less decay.")}function Dg(){return o.a.createElement(o.a.Fragment,null,"The minimum energy you need to send a move from this planet. ",o.a.createElement("br",null),"Moves incur a base cost of 5% of the planet's ",o.a.createElement(fr,null,"Energy Cap"),".")}function zg(){return o.a.createElement(o.a.Fragment,null,"Time to ",o.a.createElement(fr,null,"50%")," of full energy.")}function Ug(){return o.a.createElement(o.a.Fragment,null,"Time to ",o.a.createElement(fr,null,"90%")," of full energy. Since energy grows on an s-curve, energy growth slows drastically by this point.")}function $g(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(fr,null,"Energy Growth:")," the maximum growth rate of this planet's energy representing the rate at the middle of the ",o.a.createElement(fr,null,"s-curve"),".")}function Hg(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(fr,null,"Silver Growth"),": the per-minute linear growth rate of this planet's silver.")}function Jg(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(fr,null,"Silver Cap"),": the maximum silver that this planet can hold.")}function Gg(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(dr,null,"This planet has space pirates!")," Move energy to unoccupied planets to conquer them!")}function Vg(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(fr,null,"Planet Rank"),": the number of times you've upgraded your planet.")}function Xg(){return o.a.createElement(o.a.Fragment,null,"View patch notes and instructions")}function Wg(){return o.a.createElement(o.a.Fragment,null,"View detailed information about the selected planet")}
2507function qg(){return o.a.createElement(o.a.Fragment,null,"View the top players, and their top planets")}function Kg(){return o.a.createElement(o.a.Fragment,null,"View a list of your planets")}function Zg(){return o.a.createElement(o.a.Fragment,null,"Upgrade the selected planet")}function Yg(){return o.a.createElement(o.a.Fragment,null,"Connect your address to Twitter")}function Qg(){return o.a.createElement(o.a.Fragment,null,"Broadcast the selected planet's coordinates to the world")}function ev(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(sr,null,"This planet's ",o.a.createElement(fr,null,"Energy Cap")," has been randomly doubled!"))}function tv(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(sr,null,"This planet's ",o.a.createElement(fr,null,"Energy Growth")," has been randomly doubled!"))}function nv(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(sr,null,"This planet's ",o.a.createElement(fr,null,"Range")," has been randomly doubled!"))}function rv(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(sr,null,"This planet's ",o.a.createElement(fr,null,"Speed")," has been randomly doubled!"))}function iv(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(sr,null,"This planet's ",o.a.createElement(fr,null,"Defense")," has been randomly doubled!"))}function ov(){var e;const t=xi(),n=Pi(t),r=Ci(t);return o.a.createElement(o.a.Fragment,null,o.a.createElement("span",null,(null===(e=n.value)||void 0===e?void 0:e.owner)===r?"You are the proud mayor of Clown Town!":"It's a town of clowns..."))}function av(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(fr,null,"Defense:")," Planets with higher defense will negate incoming damage. Planets with lower than 100 defense are vulnerable and will take more damage!")}function sv(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(fr,null,"Speed:")," The rate at which energy travels across the universe, the faster the better!")}function lv(){return o.a.createElement(o.a.Fragment,null,"A powerful artifact on this planet is influencing this stat!")}function cv(){return o.a.createElement(o.a.Fragment,null,"Manage plugins, which allow you to add functionality to the client.")}function uv(){return o.a.createElement(o.a.Fragment,null,"Manage settings - export SKEY, manage maps, and more.")}function fv(){return o.a.createElement(o.a.Fragment,null,"View your artifacts.")}const dv=()=>o.a.createElement(o.a.Fragment,null,"Withdraw silver to earn score."),hv=()=>o.a.createElement(o.a.Fragment,null,"Buy hats for the selected planet."),pv=()=>o.a.createElement(o.a.Fragment,null,o.a.createElement(sr,null,"This planet has a powerful artifact hidden somewhere!")," Maybe you could find it..."),mv=()=>o.a.createElement(o.a.Fragment,null,"This planet has a powerful artifact on it!"),gv=()=>o.a.createElement(o.a.Fragment,null,"hashes / sec");function vv({name:e}){return 0===e?o.a.createElement(Hg,null):1===e?o.a.createElement(Jg,null):2===e?o.a.createElement(Ig,null):38===e?o.a.createElement(Rg,null):39===e?o.a.createElement($g,null):40===e?o.a.createElement(Fg,null):3===e?o.a.createElement(_g,null):4===e?o.a.createElement(Mg,null):5===e?o.a.createElement(Dg,null):6===e?o.a.createElement(zg,null):7===e?o.a.createElement(Ug,null):8===e?o.a.createElement(Gg,null):9===e?o.a.createElement(Vg,null):10===e?o.a.createElement(Lg,null):11===e?o.a.createElement(Ng,null):14===e?o.a.createElement(Bg,null):15===e?o.a.createElement(Ag,null):16===e?o.a.createElement(Cg,null):17===e?o.a.createElement(Tg,null):18===e?o.a.createElement(Pg,null):20===e?o.a.createElement(Og,null):22===e?o.a.createElement(jg,null):33===e?o.a.createElement(ev,null):34===e?o.a.createElement(tv,null):35===e?o.a.createElement(nv,null):36===e?o.a.createElement(rv,null):37===e?o.a.createElement(iv,null):43===e?o.a.createElement(ov,null):45===e?o.a.createElement(Xg,null):46===e?o.a.createElement(Wg,null):47===e?o.a.createElement(qg,null):48===e?o.a.createElement(Kg,null):49===e?o.a.createElement(Zg,null):50===e?o.a.createElement(Yg,null):51===e?o.a.createElement(Qg,null):42===e?o.a.createElement(av,null):41===e?o.a.createElement(sv,null):44===e?o.a.createElement(lv,null):56===e?o.a.createElement(cv,null):53===e?o.a.createElement(uv,null):54===e?o.a.createElement(fv,null):52===e?o.a.createElement(hv,null):12===e?o.a.createElement(pv,null):13===e?o.a.createElement(mv,null):19===e?o.a.createElement(gv,null):57===e?o.a.createElement(dv,null):23===e?o.a.createElement(Sg,null):24===e?o.a.createElement(wg,null):25===e?o.a.createElement(Eg,null):26===e?o.a.createElement(kg,null):27===e?o.a.createElement(xg,null):28===e?o.a.createElement(mg,null):29===e?o.a.createElement(gg,null):30===e?o.a.createElement(vg,null):31===e?o.a.createElement(yg,null):32===e?o.a.createElement(bg,null):58===e?o.a.createElement(hg,null):59===e?o.a.createElement(pg,null):o.a.createElement(o.a.Fragment,null)}function yv(e){const t=null!==(a=null===(r=null===(n=xi())||void 0===n?void 0:n.getOverlayContainer())||void 0===r?void 0:r.current)&&void 0!==a?a:null;var n,r,a;const[l,c]=Object(i.useState)(!1),[u,f]=Object(i.useState)({x:0,y:0});return Object(i.useEffect)(()=>{const e=e=>{f({x:e.clientX,y:e.clientY})};return window.addEventListener("mousemove",e),()=>{window.removeEventListener("mousemove",e)}}),o.a.createElement(o.a.Fragment,null,o.a.createElement(wv,{style:{...e.style},onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1)},e.children),t&&l&&s.a.createPortal(o.a.createElement(bv,{...e,to
2507p:u.y,left:u.x}),t))}function bv(e){const t=Object(i.useRef)(document.createElement("div")),[n,r]=Object(i.useState)(20),[a,s]=Object(i.useState)(20),[l,c]=Object(i.useState)(10),[u,f]=Object(i.useState)(10);return Object(i.useLayoutEffect)(()=>{r(t.current.offsetHeight),s(t.current.offsetWidth)},[t.current.offsetHeight,t]),Object(i.useLayoutEffect)(()=>{e.left<window.innerWidth/2?c(10):c(-10-a),e.top<window.innerHeight/2?f(10):f(-10-n)},[a,n,e.left,e.top]),void 0!==e.name?o.a.createElement(Ev,{ref:t,onMouseEnter:e=>e.preventDefault(),onMouseLeave:e=>e.preventDefault(),style:{top:e.top+u+"px",left:e.left+l+"px"}},o.a.createElement(vv,{name:e.name}),e.extraContent):null}const wv=le.c.span.withConfig({displayName:"StyledTooltipTrigger",componentId:"sc-14fbu9v"})`
2508  border-radius: 2px;
2509  display: ${e=>{var t;return(null===(t=null==e?void 0:e.style)||void 0===t?void 0:t.display)||"inline"}};
2510`,Ev=le.c.div.withConfig({displayName:"StyledTooltip",componentId:"sc-2y67qw"})`
2511  max-width: ${fe.RECOMMENDED_MODAL_WIDTH};
2512  position: absolute;
2513  border: 1px solid ${Pe.colors.border};
2514  background: ${Pe.colors.background};
2515  padding: 0.5em 1em;
2516  border-radius: 3px;
2517  line-height: 1.5em;
2518  z-index: ${16e6};
2519`,kv=le.c.div.withConfig({displayName:"StyledExplorePane",componentId:"sc-zhgx3y"})`
2520  background: ${Pe.colors.background};
2521  position: absolute;
2522  bottom: 0;
2523  left: 0;
2524
2525  padding: 0.5em;
2526  margin: 0.5em;
2527
2528  /* border: 1px solid ${Pe.colors.subtext}; */
2529  border-radius: ${Pe.borderRadius};
2530`;function xv(){const e=xi(),t=["1","2","4","8","16","32"],n=t.map(e=>e+" core"+("1"===e?"":"s"));return o.a.createElement(qr,{style:{width:"7em"},uiManager:e,setting:"MiningCores",values:t,labels:n})}const Sv={[2..toString()]:Ca,[6..toString()]:Ta,[7..toString()]:Pa,[8..toString()]:Oa},_v=[2..toString(),6..toString(),7..toString(),8..toString()],Av=["Spiral","SwissCheese","TowardsCenter","TowardsCenterV2"];function Cv(){const e=xi(),[t,n]=Object(i.useState)(0);Object(i.useEffect)(()=>{if(!e)return;const t=()=>{n(e.getHashesPerSec())},r=setInterval(t,1e3);return t(),()=>{clearInterval(r)}},[e]);return o.a.createElement(o.a.Fragment,null,o.a.createElement(yv,{name:19},Math.floor(t).toLocaleString(),o.a.createElement(co,{width:.5}),o.a.createElement(lr,null,"#/s")))}function Tv(){const e=xi(),t=_o.getInstance(),n=nr.getInstance(),[r,a]=Object(i.useState)(2..toString()),[s]=Vr(e,"IsMining"),[l,c]=Object(i.useState)(!1),[u,f]=Object(i.useState)(e.getHomeCoords());Object(i.useEffect)(()=>{const i=e=>{1===t.getCursorState()&&t.acceptInputForTarget({x:Math.floor(e.x),y:Math.floor(e.y)})},o=t=>{const n=new(0,Sv[r])(t,16);null==e||e.setMiningPattern(n),f(t);lc.getInstance().acceptInput(5)},a=e=>{c(1===e)};return n.on("WorldMouseDown",i),t.on("MiningCoordsUpdate",o),n.on("StateChanged",a),()=>{n.removeListener("WorldMouseDown",i),t.removeListener("MiningCoordsUpdate",o),n.removeListener("StateChanged",a)}},[n,t,e,r]);return o.a.createElement(kv,null,o.a.createElement(yv,{style:{display:"inline-block"},name:18},o.a.createElement(yo,{onClick:t=>{e.toggleTargettingExplorer()},shortcutKey:"`"},l?"Moving...":"Move",o.a.createElement(co,{width:1}),o.a.createElement(en,{type:Kt.IconType.Target}))),o.a.createElement(co,{width:.5}),o.a.createElement(yv,{style:{display:"inline-block"},name:17},o.a.createElement(yo,{style:{width:"110px"},onClick:e.toggleExplore.bind(e),shortcutKey:Co,shortcutText:"space"},s?"Pause":"Explore!"," ",o.a.createElement(co,{width:1})," ",s?o.a.createElement(en,{type:Kt.IconType.Pause}):o.a.createElement(en,{type:Kt.IconType.Play}))),s&&o.a.createElement(o.a.Fragment,null,o.a.createElement(co,{width:.5}),o.a.createElement(xv,null),o.a.createElement(co,{width:.5}),o.a.createElement(mo,{style:{width:"10em"},values:_v,labels:Av,value:r,setValue:t=>{a(t);const n=new(0,Sv[t])(u,16);e.setMiningPattern(n)}}),o.a.createElement(co,{width:1}),o.a.createElement(lr,null,o.a.createElement(_r,{coords:u})),o.a.createElement(co,{width:.5}),o.a.createElement(Cv,null)))}const Pv=Object(le.c)(Vi).withConfig({displayName:"HelpContent",componentId:"sc-fysil8"})`
2531  width: 500px;
2532  height: 500px;
2533  max-height: 500px;
2534  max-width: 500px;
2535  overflow-y: scroll;
2536  text-align: justify;
2537  color: ${Pe.colors.text};
2538`;function Ov({hook:e}){return o.a.createElement(zo,{hook:e,title:"Help",name:0},o.a.createElement(Pv,null,xi().isRoundOver()&&o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Alpha round Complete"),"Blue forest alpha round is now complete. Please standby for the beta round soon. Also, Artifacts will no longer be mintable. Thanks for playing!"),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Blue Forest"),"Blue Forest is a vast universe, obfuscated by zero-knowledge cryptography. Your"," ",o.a.createElement(fr,null,"explorer")," (bottom left) explores the universe, searching for"," ",o.a.createElement(fr,null,"Planets")," and other players.",o.a.createElement(co,{height:1}),"All planets produce ",o.a.createElement(fr,null,"Energy"),". You can click-drag to move energy from planets you own to new planets to conquer them.",o.a.createElement(co,{height:1}),"Also scattered through the universe are ",o.a.createElement(fr,null,"Asteroid Fields"),", which produce"," ",o.a.createElement(fr,null,"Silver"),". Silver can be sent to planets and can be spent on"," ",o.a.createElement(fr,null,"Upgrades"),".",o.a.createElement(co,{height:1})," Some planets contain ",o.a.createElement(fr,null,"Artifacts")," - ERC721 tokens that can be traded with other players. Artifacts can be harvested and deposited onto planets, buffing their stats."),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Prizes and Scoring"),o.a.createElement(co,{height:1}),"Scoring this round is made up of two parts: finding artifacts and withdrawing silver. Each time you find an artifact, your score increases by an amount that depends on the rarity of that artifact. Rarer artifacts are found on larger foundries, and increase your score more. You can also increase your score by withdrawing silver from the game. Each single silver you withdraw increases your score by one. You can only withdraw silver using space time rips.")))}function Mv({includeAddressIfHasTwitter:e,ethAddress:t,style:n}){const r=xi(),i=Ti(r,t);if(void 0!==i.value&&void 0!==i.value.twitter){const a=pe()(It.getPlayerColor(i.value.address)).darken(.5).hex();return o.a.createElement("span",{style:n},o.a.createElement(Iv,{twitter:i.value.twitter,color:a}),e&&o.a.createElement(lr,null," ",o.a.createElement(Ac,{text:t||r.getAccount()||"<no account>",unFocusedWidth:"50px",focusedWidth:"50px"})))}return t===fe.EMPTY_ADDRESS?o.a.createElement(o.a.Fragment,null,"nobody"):o.a.createElement(Ac,{text:t||r.getAccount()||"<no account>",unFocusedWidth:"150px",focusedWidth:"150px"})}function Iv({twitter:e,color:t}){return o.a.createElement(oo,{color:t,to:"https://twitter.com/"+e},"@",e)}const Rv=le.d`
25390%   { 
2540  transform: skewX(-30deg); 
2541  color: ${"#b2fffc"}; 
2542}
25435%   { 
2544  transform: skewX( 30deg); 
2545  color: ${"#b2fffc"}; 
2546  text-shadow: -1px -1px 0 ${"#b2fffc"};
2547}
254810%  { 
2549  transform: skewX(-30deg); 
2550  color: ${"#d23191"}; 
2551}
255215%  { 
2553  transform: skewX( 30deg); 
2554  color: ${"#d23191"}; 
2555  text-shadow: -1px -1px 0 ${"#b2fffc"};
2556}
255720%  { 
2558  transform: skewX(  0deg); 
2559  color: ${"#d23191"}; 
2560}
2561100% { 
2562  transform: skewX(  0deg); 
2563  color: ${"#d23191"}; 
2564} 
2565`,Lv=le.b`
2566  display: inline-block;
2567  animation: 1.2s ${Rv} linear infinite alternate;
2568`,Nv=le.c.span.withConfig({displayName:"StyledAncientLabelAnim",componentId:"sc-15bk19n"})`
2569  ${Lv}
2570  color: ${"#d23191"};
2571`,jv=()=>o.a.createElement(Nv,null,"Ancient"),Bv=(le.c.span.withConfig({displayName:"StyledAncientLabel",componentId:"sc-vect5w"})`
2572  color: ${"#d23191"};
2573`,le.d`
2574  0% { transform: skewX(-30deg); }
2575  5% { transform: skewX(30deg); }
2576  10% { transform: skewX(-30deg); }
2577  15% { transform: skewX(30deg); }
2578  20% { transform: skewX(0deg); }
2579  100% { transform: skewX(0deg); }  
2580`),Fv=le.b`
2581  display: inline-block;
2582  animation: 1.2s ${Bv} linear infinite alternate;
2583`,Dv="\n    1px 1px 0px #f95e5e,\n",zv=le.d`
2584  0% {
2585    text-shadow:
2586    ${Dv}
2587    1px -1px 2px ${"#fed91f"},
2588    0 0px 7px ${"#f95e5e"},
2589    5px -7px 7px ${"#ff9500"};
2590  }
2591  33% {
2592    text-shadow:
2593    ${Dv}
2594    1px -1px 2px ${"#fed91f"},
2595    5px -2px 7px ${"#f95e5e"},
2596    3px 0 10px ${"#ff9500"};
2597  }
2598  66% {
2599    text-shadow:
2600    ${Dv}
2601    1px -1px 2px ${"#fed91f"},
2602    2px -3px 7px ${"#f95e5e"},
2603    0 -3px 10px ${"#ff9500"};
2604  }
2605  100% {
2606    text-shadow:
2607    ${Dv}
2608    1px -1px 2px ${"#fed91f"},
2609    2px -5px 7px ${"#f95e5e"},
2610    5px 0 10px ${"#ff9500"};
2611  }
2612`,Uv=le.b`
2613  animation: 5s ${zv} infinite alternate;
2614`,$v=le.d`
26150%   { transform: rotate(-15deg); }
261648%  { transform: rotate(-15deg); }
261750%  { transform: rotate(15deg); }
261898%  { transform: rotate(15deg); }
2619100% { transform: rotate(-15deg); }
2620`,Hv=le.b`
2621  text-shadow: 0 -3px 0 ${"hsla(198, 78%, 77%, 0.60)"}, 0 -6px 0 ${"hsla(198, 78%, 77%, 0.30)"}, 0 -9px 0 ${"hsla(198, 78%, 77%, 0.15)"};
2622  display: inline-block;
2623  animation: 4s ${$v} linear infinite;
2624`,Jv=le.c.span.withConfig({displayName:"Wrap",componentId:"sc-153wxhz"})`
2625  position: relative;
2626  top: -3px;
2627`,Gv=le.c.span.withConfig({displayName:"Static",componentId:"sc-15tr2ut"})`
2628  opacity: 0;
2629`,Vv=le.d`
2630  0% { top: 0px; filter: none; }
2631  20% { top: -3px; filter: brightness(1.75); }
2632  40% { top: -3px; filter: brightness(1.75); }
2633  60% { top: 0px; filter: none; }
2634  100% { top: 0px; filter: none;}
2635`,Xv=le.c.span.withConfig({displayName:"AnimDelay",componentId:"sc-ufji9q"})`
2636  position: relative;
2637  animation: ${Vv} 1s ease-in-out infinite alternate;
2638  ${({i:e})=>`animation-delay: ${.1*-e}s;`}
2639`,Wv=le.c.span.withConfig({displayName:"Anim",componentId:"sc-ilo935"})`
2640  position: absolute;
2641  color: ${In[de.Biome.LAVA]};
2642  transition: color 0.2s;
2643  display: inline-flex;
2644  flex-direction: row;
2645  top: 0;
2646  left: 0;
2647`;const qv=o.a.memo((function(){return o.a.createElement(Jv,null,o.a.createElement(Gv,
2647null,de.BiomeNames[de.Biome.LAVA]),o.a.createElement(Wv,null,de.BiomeNames[de.Biome.LAVA].split("").map((e,t)=>o.a.createElement(Xv,{i:t,key:t}," "===e?o.a.createElement(o.a.Fragment,null," "):e))))})),Kv=le.c.span.withConfig({displayName:"Wrap",componentId:"sc-1xxkny7"})`
2648  position: relative;
2649  top: -3px;
2650`,Zv=le.c.span.withConfig({displayName:"Static",componentId:"sc-1qvrna4"})`
2651  opacity: 0;
2652`,Yv=le.c.span.withConfig({displayName:"AnimDelay",componentId:"sc-16cwtn1"})`
2653  position: relative;
2654  animation: ${$v} ${({i:e})=>9.4+.7*e%1}s linear infinite;
2655  ${({i:e})=>`animation-delay: ${5.9*-e}s;`}
2656  color: ${In[de.Biome.WASTELAND]};
2657`,Qv=le.c.span.withConfig({displayName:"Anim",componentId:"sc-z0ju7q"})`
2658  position: absolute;
2659  ${Uv};
2660  transition: color 0.2s;
2661  display: inline-flex;
2662  flex-direction: row;
2663  top: 0;
2664  left: 0;
2665`;const ey=o.a.memo((function(){return o.a.createElement(Kv,null,o.a.createElement(Zv,null,de.BiomeNames[de.Biome.WASTELAND]),o.a.createElement(Qv,null,de.BiomeNames[de.Biome.WASTELAND].split("").map((e,t)=>o.a.createElement(Yv,{i:t,key:t}," "===e?o.a.createElement(o.a.Fragment,null," "):e))))})),ty=le.c.span.withConfig({displayName:"BiomeLabel",componentId:"sc-ea3zex"})`
2666  color: ${({biome:e})=>In[e]};
2667`,ny=Object(le.c)(ty).withConfig({displayName:"StyledBiomeLabelAnim",componentId:"sc-1yccx0w"})`
2668  ${({biome:e})=>e===de.Biome.CORRUPTED&&Fv};
2669  ${({biome:e})=>e===de.Biome.ICE&&Hv};
2670`,ry=({biome:e})=>e===de.Biome.LAVA?o.a.createElement(qv,null):e===de.Biome.WASTELAND?o.a.createElement(ey,null):o.a.createElement(ny,{biome:e},de.BiomeNames[e]),iy=({planet:e})=>o.a.createElement(ry,{biome:e.biome}),oy=({planet:e})=>o.a.createElement(o.a.Fragment,null,e&&ct(e)&&o.a.createElement(iy,{planet:e})),ay=({artifact:e})=>Bt(e)?o.a.createElement(jv,null):o.a.createElement(ry,{biome:e.planetBiome}),sy=le.c.span.withConfig({displayName:"Wrap",componentId:"sc-1mfvgm5"})`
2671  position: relative;
2672  top: -5px;
2673`,ly=le.c.span.withConfig({displayName:"Static",componentId:"sc-d8u3mh"})`
2674  opacity: 0;
2675`,cy=le.d`
2676  from {
2677    top: 3px;
2678    filter: hue-rotate(0);
2679  }
2680  to {
2681    top: -3px;
2682    filter: hue-rotate(360deg);
2683  }
2684`,uy=le.c.span.withConfig({displayName:"AnimDelay",componentId:"sc-1w8npv8"})`
2685  position: relative;
2686  animation: ${cy} 0.5s ease-in-out infinite alternate;
2687  ${({i:e})=>`animation-delay: ${.04*-e}s;`}
2688`,fy=le.c.span.withConfig({displayName:"Anim",componentId:"sc-1lfy3pz"})`
2689  position: absolute;
2690  color: hsl(0, 100%, 75%);
2691  transition: color 0.2s;
2692  display: inline-flex;
2693  flex-direction: row;
2694  top: 0;
2695  left: 0;
2696`;const dy=o.a.memo((function(){return o.a.createElement(sy,null,o.a.createElement(ly,null,de.PlanetTypeNames[de.PlanetType.TRADING_POST]),o.a.createElement(fy,null,de.PlanetTypeNames[de.PlanetType.TRADING_POST].split("").map((e,t)=>o.a.createElement(uy,{i:t,key:t}," "===e?o.a.createElement(o.a.Fragment,null," "):e))))}));function hy({planet:e,getStat:t,style:n}){return o.a.createElement("span",{style:n},e?ht(t(e),2):"n/a")}const py=e=>e.silver,my=({planet:e})=>o.a.createElement(hy,{planet:e,getStat:py}),gy=e=>e.silverCap,vy=({planet:e})=>o.a.createElement(hy,{planet:e,getStat:gy}),yy=e=>e.energy,by=({planet:e})=>o.a.createElement(hy,{planet:e,getStat:yy}),wy=e=>e.energyCap,Ey=({planet:e})=>o.a.createElement(hy,{planet:e,getStat:wy});function ky({planet:e}){return o.a.createElement("span",null,o.a.createElement(by,{planet:e})," ",o.a.createElement(cr,null,"/")," ",o.a.createElement(Ey,{planet:e}))}function xy({planet:e}){return o.a.createElement("span",null,o.a.createElement(my,{planet:e})," ",o.a.createElement(cr,null,"/")," ",o.a.createElement(vy,{planet:e}))}const Sy=e=>e.defense,_y=({planet:e})=>o.a.createElement(hy,{planet:e,getStat:Sy}),Ay=e=>e.range,Cy=({planet:e})=>o.a.createElement(hy,{planet:e,getStat:Ay}),Ty=e=>e.speed,Py=({planet:e})=>o.a.createElement(hy,{planet:e,getStat:Ty}),Oy=e=>e.energyGrowth,My=({planet:e})=>o.a.createElement(hy,{planet:e,getStat:Oy}),Iy=e=>e.silverGrowth,Ry=({planet:e})=>o.a.createElement(hy,{planet:e,getStat:Iy}),Ly=({planet:e})=>o.a.createElement(o.a.Fragment,null,e&&(e.planetType===de.PlanetType.TRADING_POST?o.a.createElement(dy,null):de.PlanetTypeNames[e.planetType])),Ny=({planet:e})=>o.a.createElement(o.a.Fragment,null,(null==e?void 0:e.planetType)!==de.PlanetType.TRADING_POST&&o.a.createElement(o.a.Fragment,null,o.a.createElement(oy,{planet:e}),o.a.createElement(co,{width:.5})),o.a.createElement(Ly,{planet:e})),jy=({planet:e})=>e?o.a.createElement(o.a.Fragment,null,o.a.createElement(lr,null,"Level "),e.planetLevel):o.a.createElement(o.a.Fragment,null),By=({planet:e})=>e?o.a.createElement(o.a.Fragment,null,o.a.createElement(lr,null,"Rank "),mt(e)):o.a.createElement(o.a.Fragment,null);const Fy=le.c.div.withConfig({displayName:"PlanetPreviewWrapper",componentId:"sc-3wa4ae"})`
2697  ${({size:e,color:t})=>`\n  position: relative;\n\n  width: ${e};\n\n  background: ${t};\n\n  canvas {\n    display: none;\n    &:last-child {\n      display: block;\n      width: ${e};\n      height: ${e};\n    }\n  }\n`}
2698`;class Dy extends Vm{constructor(e){super(e),this.planetRenderer=new Ph(this),this.mineRenderer=new ed(this),this.quasarRenderer=new Qh(this),this.spacetimeRipRenderer=new zp(this),this.ruinsRenderer=new _p(this),this.gl.enable(this.gl.DEPTH_TEST),this.flushOnce(),this.loop(),ue()(this)}destroy(){console.error("canceled PlanetPreview!"),window.cancelAnimationFrame(this.frameRequestId)}setPlanet(e){this.planet=e}flushOnce(){this.planetRenderer.queuePlanetBodyScreen({locationId:fe.EMPTY_LOCATION_ID},10,0,0,0,0),this.planetRenderer.flush()}loop(){this.clear(),this.draw(),this.frameRequestId=window.requestAnimationFrame(this.loop)}clear(){const e=this.gl;super.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}draw(){if(!this.planet)return;const{planetRenderer:e,mineRenderer:t,quasarRenderer:n,spacetimeRipRenderer:r,ruinsRenderer:i}=this,o=this.canvas.width,a=o-8,s=o-8;this.planet.planetType===de.PlanetType.SILVER_MINE?(t.queueMineScreen(this.planet,{x:o/2,y:o/2},.35*(o-8),-1),t.flush()):this.planet.planetType===de.PlanetType.SILVER_BANK?(n.queueQuasarScreen(this.planet,{x:o/2,y:o/2},.4*(o-8),-1),n.flush()):this.planet.planetType===de.PlanetType.TRADING_POST?(r.queueRipScreen(this.planet,{x:o/2,y:o/2},.35*(o-8),-1),r.flush()):this.planet.planetType===de.PlanetType.RUINS?(i.queueRuinsScreen(this.planet,{x:o/2,y:o/2},.45*(o-8),-1),i.flush()):(e.queuePlanetBodyScreen(this.planet,o/2,8,8,a,s),e.flush())}}const zy=[];function Uy({planet:e}){const[t,n]=Object(i.useState)(),[r,a]=Object(i.useState)();return Object(i.useEffect)(()=>
2698{if(t)if(r){if(!t.contains(r.canvas))return t.appendChild(r.canvas),()=>{t.contains(r.canvas)&&(t.removeChild(r.canvas),zy.push(r),a(void 0))}}else a(function(){if(0!==zy.length)return zy.pop();const e=document.createElement("canvas");return e.height=100,e.width=100,{canvas:e,renderer:new Dy(e)}}())},[r,t]),Object(i.useEffect)(()=>{var t;null===(t=null==r?void 0:r.renderer)||void 0===t||t.setPlanet(e)},[e,r]),o.a.createElement("div",{ref:n})}function $y({planet:e,size:t}){return o.a.createElement(Fy,{size:t,color:"rgba(0,0,0,0)"},o.a.createElement(Uy,{planet:e}))}function Hy({children:e,height:t,text:n,toggleButtonMargin:r}){const[a,s]=Object(i.useState)(!0),l=Object(i.useCallback)(()=>{s(e=>!e)},[]);return o.a.createElement(o.a.Fragment,null,o.a.createElement(Jy,{style:{height:a?t:"unset"}},e),!a&&o.a.createElement(co,{height:.1}),o.a.createElement(Gi,{style:{fontSize:"80%",display:"block",textAlign:"right",marginTop:a?null!=r?r:"-0.6em":void 0},onClick:l},null!=n?n:a?"more":"less"," info"))}const Jy=le.c.div.withConfig({displayName:"ContentContainer",componentId:"sc-181nhen"})`
2699  margin-top: 4px;
2700  overflow: hidden;
2701  text-align: justify;
2702  line-height: 1.2em;
2703`,Gy=le.c.div.withConfig({displayName:"StyledPlanetIcons",componentId:"sc-1wgzk5a"})`
2704  display: inline-flex;
2705  flex-direction: row;
2706  flex-wrap: wrap-reverse;
2707  align-items: center;
2708  justify-content: center;
2709
2710  & > span {
2711    font-size: 0.9em;
2712    width: 1.5em;
2713    height: 1.5em;
2714    background: ${Pe.colors.backgroundlighter};
2715    border-radius: 2px;
2716    margin: 0.1em;
2717    margin-right: 0.25em;
2718    cursor: help;
2719
2720    &,
2721    & > span {
2722      display: inline-flex !important;
2723      flex-direction: row;
2724      justify-content: space-around;
2725      align-items: center;
2726    }
2727  }
2728`,Vy=le.c.span.withConfig({displayName:"ClownIcon",componentId:"sc-1sx42eu"})`
2729  background: red;
2730  width: 8px;
2731  height: 8px;
2732  border-radius: 4px;
2733`;function Xy({planet:e}){if(!e)return o.a.createElement(Gy,null);const t=Object(zl.bonusFromHex)(e.locationId),n=mt(e);return o.a.createElement(Gy,null,e.owner===fe.EMPTY_ADDRESS&&e.energy>0&&o.a.createElement(yv,{name:8},o.a.createElement(en,{type:Kt.IconType.Pirates})),e.planetLevel===fe.MAX_PLANET_LEVEL&&o.a.createElement(yv,{name:11},o.a.createElement(en,{type:Kt.IconType.MaxLevel})),e.planetType===de.PlanetType.SILVER_MINE&&o.a.createElement(yv,{name:22},o.a.createElement(en,{type:Kt.IconType.SilverProd})),t[0]&&o.a.createElement(yv,{name:33},o.a.createElement(en,{type:Kt.IconType.Energy})),t[1]&&o.a.createElement(yv,{name:34},o.a.createElement(en,{type:Kt.IconType.EnergyGrowth})),t[2]&&o.a.createElement(yv,{name:35},o.a.createElement(en,{type:Kt.IconType.Range})),t[3]&&o.a.createElement(yv,{name:36},o.a.createElement(en,{type:Kt.IconType.Speed})),t[4]&&o.a.createElement(yv,{name:37},o.a.createElement(en,{type:Kt.IconType.Defense})),n>0&&o.a.createElement(yv,{name:10},o.a.createElement(tn,{planet:e})),"Clown Town"===It.getPlanetName(e)&&o.a.createElement(yv,{name:43},o.a.createElement(Vy,null)),ct(e)&&e.planetType===de.PlanetType.RUINS&&!e.hasTriedFindingArtifact&&o.a.createElement(yv,{name:12},o.a.createElement(en,{type:Kt.IconType.Artifact})))}const Wy=le.c.div.withConfig({displayName:"DestroyedMarker",componentId:"sc-acsw83"})`
2734  position: absolute;
2735  bottom: 0;
2736  right: 0;
2737  height: 100%;
2738  width: 100%;
2739
2740  background-image: url('/public/img/destroyedbg.png');
2741  background-size: 100px 100px;
2742  background-position: right bottom;
2743  background-repeat: no-repeat;
2744`,qy=le.c.span.withConfig({displayName:"StyledTimesTwo",componentId:"sc-x3255q"})`
2745  color: ${Pe.colors.dfgreen};
2746  font-size: 0.8em;
2747  vertical-align: center;
2748  line-height: 1.5em;
2749  margin-left: 8px;
2750`,Ky=()=>o.a.createElement(qy,null,"x2"),Zy=({name:e,children:t})=>o.a.createElement(yv,{name:e,style:{lineHeight:"100%",position:"relative",top:"0.2em",cursor:"help"}},t),Yy=le.c.div.withConfig({displayName:"TitleBar",componentId:"sc-1vuo3x3"})`
2751  height: 2em;
2752  padding: 0.25em 0.5em;
2753  display: flex;
2754  flex-direction: row;
2755  justify-content: space-between;
2756  color: ${Pe.colors.subtext};
2757  border-bottom: 1px solid ${Pe.colors.border};
2758`,Qy=le.c.div.withConfig({displayName:"StyledPlanetActiveArtifact",componentId:"sc-1nuvdrg"})`
2759  display: flex;
2760  flex-direction: row;
2761  justify-content: flex-start;
2762  align-items: center;
2763  color: ${Pe.colors.text};
2764`;function eb({artifact:e,planet:t}){return o.a.createElement(Qy,{planet:t},o.a.createElement(lr,null,"Active Artifact:"," ",o.a.createElement(fr,null," ",o.a.createElement(Wn,{rarity:e.rarity})," ",o.a.createElement(Jn,{artifact:e})," ",o.a.createElement(Gn,{artifact:e}))))}function tb({planet:e,small:t}){return e.value?t?o.a.createElement(o.a.Fragment,null,It.getPlanetName(e.value)):o.a.createElement(ro,{style:{width:"initial",dis
2764play:"inline-flex"}},e.value.destroyed&&o.a.createElement(o.a.Fragment,null,o.a.createElement(Wy,null),o.a.createElement(co,{width:.5})),It.getPlanetName(e.value),o.a.createElement(co,{width:.5}),o.a.createElement(Xy,{planet:e.value})):o.a.createElement(o.a.Fragment,null)}const nb=le.c.div.withConfig({displayName:"ElevatedContainer",componentId:"sc-ybdicn"})`
2765  ${Ce}
2766  border-color: ${Pe.colors.borderDarker};
2767  background-color: ${Pe.colors.backgroundlight};
2768  margin-top: 8px;
2769  margin-bottom: 8px;
2770  font-size: 85%;
2771`;function rb({planetWrapper:e,standalone:t}){const n=xi(),r=Ri(e,n),i=e.value,[a]=Vr(n,"ExperimentalFeatures");return i&&ct(i)?o.a.createElement(o.a.Fragment,null,t&&o.a.createElement(Yy,null,o.a.createElement(tb,{planet:e})),o.a.createElement("div",{style:{padding:t?"8px":void 0}},o.a.createElement(ro,{style:{justifyContent:"space-between"}},o.a.createElement(Hi,null,o.a.createElement(jy,{planet:i}),o.a.createElement(co,{width:.5}),o.a.createElement(By,{planet:i}),o.a.createElement(co,{width:.5}),o.a.createElement(Ny,{planet:i}),o.a.createElement(co,{width:.5}))),r&&o.a.createElement(o.a.Fragment,null,o.a.createElement(co,{height:.5}),o.a.createElement(eb,{artifact:r,planet:i})),o.a.createElement(no,null,a&&o.a.createElement(nb,{style:{padding:"2px",marginRight:"8px",backgroundColor:"rgba(0, 20, 80, 1.0)",display:"inline-flex",justifyContent:"center",alignItems:"center",width:"110px"}},o.a.createElement($y,{planet:i,size:"50px"})),o.a.createElement(nb,null,o.a.createElement(ib,null,o.a.createElement(ko,null,o.a.createElement("div",{style:{border:"1px solid "+Pe.colors.borderDarker,borderTop:"none",borderLeft:"none",width:"50%"}},o.a.createElement(Zy,{name:38},o.a.createElement(ko,null,o.a.createElement(ro,null,o.a.createElement(co,{width:.5}),o.a.createElement(en,{type:Kt.IconType.Energy})),o.a.createElement(ro,null,o.a.createElement(ky,{planet:i}),(null==i?void 0:i.bonus)&&i.bonus[0]&&o.a.createElement(Ky,null),o.a.createElement(co,{width:.5}))))),o.a.createElement("div",{style:{border:"1px solid "+Pe.colors.borderDarker,borderTop:"none",borderRight:"none",borderLeft:"none",width:"50%"}},o.a.createElement(Zy,{name:2},o.a.createElement(ko,null,o.a.createElement(ro,null,o.a.createElement(co,{width:.5}),o.a.createElement(en,{type:Kt.IconType.Silver})),o.a.createElement(ro,null,o.a.createElement(xy,{planet:i}),o.a.createElement(co,{width:.5}))))))),o.a.createElement(ib,null,o.a.createElement(ko,null,o.a.createElement("div",{style:{border:"1px solid "+Pe.colors.borderDarker,borderTop:"none",borderLeft:"none",borderBottom:"none",width:"50%"}},o.a.createElement(Zy,{name:39},o.a.createElement(ko,null,o.a.createElement(ro,null,o.a.createElement(co,{width:.5}),o.a.createElement(en,{type:Kt.IconType.EnergyGrowth})),o.a.createElement(ro,null,o.a.createElement(My,{planet:i}),(null==i?void 0:i.bonus)&&i.bonus[1]&&o.a.createElement(Ky,null),o.a.createElement(co,{width:.5}))))),o.a.createElement("div",{style:{borderBottom:"none",borderTop:"none",borderRight:"none",width:"50%"}},o.a.createElement(Zy,{name:0},o.a.createElement(ko,null,o.a.createElement(ro,null,o.a.createElement(co,{width:.5}),o.a.createElement(en,{type:Kt.IconType.SilverGrowth})),o.a.createElement(ro,null,o.a.createElement(Ry,{planet:e.value}),o.a.createElement(co,{width:.5}))))))),o.a.createElement(ib,null,o.a.createElement(ko,null,o.a.createElement("div",{style:{border:"1px solid "+Pe.colors.borderDarker,borderBottom:"none",borderLeft:"none",width:"34%"}},o.a.createElement(Zy,{name:42},o.a.createElement(ko,null,o.a.createElement(ro,null,o.a.createElement(co,{width:.5}),o.a.createElement(en,{type:Kt.IconType.Defense})),o.a.createElement(ro,null,o.a.createElement(_y,{planet:i}),(null==i?void 0:i.bonus)&&i.bonus[4]&&o.a.createElement(Ky,null),o.a.createElement(co,{width:.5}))))),o.a.createElement("div",{style:{border:"1px solid "+Pe.colors.borderDarker,borderLeft:"none",borderBottom:"none",width:"33%"}},o.a.createElement(Zy,{name:41},o.a.createElement(ko,null,o.a.createElement(ro,null,o.a.createElement(co,{width:.5}),o.a.createElement(en,{type:Kt.IconType.Speed})),o.a.createElement(ro,null,o.a.createElement(Py,{planet:i}),(null==i?void 0:i.bonus)&&i.bonus[3]&&o.a.createElement(Ky,null),o.a.createElement(co,{width:.5}))))),o.a.createElement("div",{style:{border:"1px solid "+Pe.colors.borderDarker,borderLeft:"none",borderRight:"none",borderBottom:"none",width:"33%"}},o.a.createElement(Zy,{name:40},o.a.createElement(ko,null,o.a.createElement(ro,null,o.a.createElement(co,{width:.5}),o.a.createElement(en,{type:Kt.IconType.Range})),o.a.createElement(ro,null,o.a.createElement(Cy,{planet:i}),(null==i?void 0:i.bonus)&&i.bonus[2]&&o.a.createElement(Ky,null),o.a.createElement(co,{width:.5}))))))))),!t&&o.a.createElement(Hy,{height:"0"},o.a.createElement("div",{style:{textAlign:"right"}},o.a.createElement(yv,{name:60,extraContent:o.a.createElement(o.a.Fragment,null,"id")},o.a.createElement(Ac,{style:{color:Pe.colors.subtext},text:null==i?void 0:i.locationId,focusedWidth:"150px",unFocusedWidth:"150px"})),o.a.createElement("br",null),o.a.createElement(yv,{name:60,extraContent:o.a.createElement(o.a.Fragment,null,"coords")},o.a.createElement(Ac,{style:{color:Pe.colors.subtext},text:`(${i.location.coords.x}, ${i.location.coords.y})`,focusedWidth:"150px",unFocusedWidth:"150px"})),o.a.createElement("br",null),o.a.createElement(yv,{name:60,extraContent:o.a.createElement(o.a.Fragment,null,"owner")},o.a.createElement(Mv,{style:{color:Pe.colors.subtext},ethAddress:i.owner,includeAddressIfHasTwitter:!0})))),t&&o.a.createElement(ko,null,o.a.createElement(lr,null,"owner"),o.a.createElement(lr,null,o.a.createElement(Mv,{ethAddress:i.owner,includeAddressIfHasTwitter:!0}))))):o.a.createElement(o.a.Fragment,null)}const ib=Object(le.c)(ro).withConfig({displayName:"StatRow",componentId:"sc-13hbprn"})`
2772  ${Ae}
2773  display: inline-block;
2774  box-sizing: border-box;
2775  width: 100%;
2776
2777  /* Set the Icon color to something a little dimmer */
2778  --df-icon-color: ${Pe.colors.subtext};
2779`,ob=le.c.div.withConfig({displayName:"StyledHoverPlanetPane",componentId:"sc-1m6dvw4"})`
2780  ${Te}
2781  ${_e}
2782  ${Ce}
2783  width: 350px;
2784`;function ab(){const e=xi(),t=function(e){return jr(e.hoverPlanet$,void 0)}(e),n=t.value,r=Pi(e).value,[a,s]=Object(i.useState)(!1);Object(i.useEffect)(()=>{const e=nr.getInstance(),t=()=>s(!0),n=()=>s(!1);return e.addListener("SendCancelled",n),e.addListener("SendInitiated",t),e.addListener("SendCompleted",n),()=>{e.removeListener("SendCancelled",n),e.removeListener("SendInitiated",t),e.removeListener("SendCompleted",n)}},[]);const l=Object(i.useRef)(null);Object(i.useLayoutEffect)(()=>{if(!l.current)return;let e,t;const n=n=>{if(!l.current)return;const r=l.current.offsetWidth,i=l.current.offsetHeight;e=n.clientX<window.innerWidth/2?10:-10-r,t=n.clientY<window.innerHeight/2?10:-10-i,l.current.style.top=n.clientY+t+"px",l.current.style.left=n.clientX+e+"px"};return window.addEventListener("mousemove",n),()=>window.removeEventListener("mousemove",n)},[l]);const c=Object(i.useMemo)(()=>!!n&&(null==n?void 0:n.locationId)!==(null==r?void 0:r.locationId)&&!a&&!e.getMouseDownCoords(),[n,r,a,e]);return o.a.createElement(ob,{ref:l,style:{display:c?void 0:"none",zIndex:16e6}},c&&o.a.createElement(rb,{standalone:!0,planetWrapper:t}))}const sb=le.c.div.withConfig({displayName:"StyledOnboardingContent",componentId:"sc-169sq4z"})`
2785  width: 36em;
2786  height: 32em;
2787  position: relative;
2788  padding: 8px;
2789  color: ${Pe.colors.text};
2790
2791  .btn {
2792    position: absolute;
2793    right: 0.5em;
2794    bottom: 0.5em;
2795  }
2796
2797  .indent {
2798    margin-left: 1em;
2799  }
2800
2801  & > p,
2802  & > div {
2803    margin: 1em 0;
2804  }
2805
2806  & > div {
2807    display: flex;
2808    flex-direction: row;
2809    justify-content: space-between;
2810  }
2811`;function lb({advance:e}){const t=Ci(xi()),n="https://explorer.ps.hmny.io/address/"+t;return o.a.createElement(sb,null,o.a.createElement("p",null,"Welcome to ",o.a.createElement(sr,null,"Blue Forest"),"!"),o.a.createElement("p",null,o.a.createElement(dr,null,"There is real money being transacted in-game!")," We have initialized a"," ",o.a.createElement("a",{onClick:()=>window.open("https://github.com/austintgriffith/burner-wallet")},"burner wallet")," ","for you and dripped 15c to it, courtesy of Blue Forest Team and harmony."),o.a.createElement("p",{className:"indent"},"Your burner wallet address is: ",o.a.createElement("br",null),o.a.createElement(fr,null,o.a.createElement("a",{onClick:()=>window.open(n)},t))),o.a.createElement("p",null,"This means that when you make moves on Blue Forest,"," ",o.a.createElement(fr,null," you are authorizing the client to pay gas fees on your behalf"),"."),o.a.createElement("p",null,"To ensure the safety of your balance, ",o.a.createElement(fr,null,"we require you to enable popups")," so that all transactions may be confirmed by you. Note that you can disable popups for small transactions in settings. ",o.a.createElement(en,{type:Kt.IconType.Settings})),o.a.createElement("p",null,o.a.createElement(fr,null,"Make sure you understand all of the above before proceeding.")),o.a.createElement("div",null,o.a.createElement("span",null),o.a.createElement(tt,{className:"btn",onClick:e},"I understand, please proceed.")))}function cb({advance:e}){return o.a.createElement(sb,null,o.a.createElement("p",null,"The game stores important information like your ",o.a.createElement(fr,null,"private key"),","," ",o.a.createElement(fr,null,"home coordinates"),", and ",o.a.createElement(fr,null,"map data")," in your browser's local storage / cache. ",o.a.createElement(dr,null,"If you clear your browser history, you risk losing your data!")),o.a.createElement("p",null,"Your ",o.a.createElement(fr,null,"private key and home coordinates")," act as your password. You can use them to access your Blue Forest account on other browsers, or to continue playing if you accidentally clear local storage. But this also means"," ",o.a.createElement(dr,null,"they should never be viewed by anyone else!")),o.a.createElement("p",null,o.a.createElement(fr,null,"Make sure you back them up")," and keep them somewhere safe."),o.a.createElement("p",null,"On the next page, you will be able to view and copy your private key and home coordinates."," ",o.a.createElement(fr,null,"When you are ready to back them up, please proceed.")),o.a.createElement("div",null,o.a.createElement("span",null),o.a.createElement(tt,{className:"btn",onClick:e},"Proceed")))}function ub({advance:e}){const t=xi(),[n,r]=Object(i.useState)(void 0);Object(i.useEffect)(()=>{t&&r(t.getPrivateKey())},[t]);const[a,s]=Object(i.useState)(void 0);return Object(i.useEffect)(()=>
2811{if(!t)return;const e=t.getHomeCoords();s(e?`(${e.x}, ${e.y})`:"")},[t]),o.a.createElement(sb,null,o.a.createElement("p",null,"Your private key is: ",o.a.createElement("br",null),o.a.createElement(fr,null,n)),o.a.createElement("p",null,"Your home coordinates are: ",o.a.createElement("br",null),o.a.createElement(fr,null,a)),o.a.createElement("p",null,"When you have backed up your key and coordinates, please proceed."),o.a.createElement("div",null,o.a.createElement("span",null),o.a.createElement(tt,{onClick:e,className:"btn"},"Proceed")))}function fb({advance:e}){return o.a.createElement(sb,null,o.a.createElement("p",null,"For an overview of how to play, rules, and scoring, click the question mark icon on the left to open the ",o.a.createElement(fr,null,"Help Pane"),"."),o.a.createElement("div",null,o.a.createElement("span",null),o.a.createElement(tt,{onClick:e,className:"btn"},"Proceed")))}function db({advance:e}){return o.a.createElement(sb,null,o.a.createElement("p",null,"That's all! You're now ready to play the game!"),o.a.createElement("p",null,"We invite you to log into the universe. Click ",o.a.createElement(fr,null,"Proceed")," to join the world of"," ",o.a.createElement(fr,null,"BLUE FOREST...")),o.a.createElement("div",null,o.a.createElement("span",null),o.a.createElement(tt,{onClick:e,className:"btn"},"Proceed")))}function hb({newPlayerHook:e}){const[,t]=e,[n,r]=Object(i.useState)(0),a=()=>r(e=>e+1);return Object(i.useEffect)(()=>{5===n&&t(!1)},[n,t]),o.a.createElement(zo,{title:"Welcome to Blue Forest",hideClose:!0,hook:e,name:17},0===n&&o.a.createElement(lb,{advance:a}),1===n&&o.a.createElement(cb,{advance:a}),2===n&&o.a.createElement(ub,{advance:a}),3===n&&o.a.createElement(fb,{advance:a}),4===n&&o.a.createElement(db,{advance:a}))}function pb({timestamp:e,ifPassed:t}){const[n,r]=Object(i.useState)("");return Object(i.useEffect)(()=>{const n=()=>{const n=e-Date.now();if(n<=0)r(t);else{const e=Math.floor(n/1e3/60/60),t=Math.floor((n-60*e*60*1e3)/1e3/60),i=Math.floor((n-60*e*60*1e3-60*t*1e3)/1e3),o=e+":"+(t+"").padStart(2,"0")+":"+(i+"").padStart(2,"0");r(o)}},i=setInterval(()=>{n()},1e3);return n(),()=>clearInterval(i)},[e,t]),o.a.createElement("span",null,n)}const mb=le.c.div.withConfig({displayName:"BroadcastWrapper",componentId:"sc-a9cav4"})`
2812  & .row {
2813    display: flex;
2814    flex-direction: row;
2815    justify-content: space-between;
2816    & > span {
2817      &:first-child {
2818        color: ${Pe.colors.subtext};
2819        padding-right: 1em;
2820      }
2821    }
2822  }
2823  & .message {
2824    margin: 1em 0;
2825
2826    & p {
2827      margin: 0.5em 0;
2828
2829      &:last-child {
2830        margin-bottom: 1em;
2831      }
2832    }
2833  }
2834`;function gb({initialPlanetId:e,modal:t}){const n=xi(),r=Nr(n.selectedPlanetId$,e),a=Oi(n,r).value,s=()=>{if(!a||!n)return{x:0,y:0};const e=n.getLocationOfPlanet(a.locationId);return e?e.coords:{x:0,y:0}},l=()=>{if(!a||!n)return;const e=n.getLocationOfPlanet(a.locationId);e&&n.revealLocation(e.hash)},[c,u]=Object(i.useState)(void 0),f=null==a?void 0:a.coordsRevealed,d=n.getNextBroadcastAvailableTimestamp()<=Date.now(),h=n.isCurrentlyRevealing();Object(i.useEffect)(()=>{n&&u(n.getAccount())},[n]);let p=void 0;p=f?o.a.createElement(tt,{disabled:!0},"Broadcast Coordinates"):(null==a?void 0:a.unconfirmedReveal)?o.a.createElement(tt,{disabled:!0},a.unconfirmedReveal&&o.a.createElement(Uo,{initialText:"Broadcasting..."}),!a.unconfirmedReveal&&"Broadcast Coordinates"):d?o.a.createElement(tt,{disabled:h,onClick:l},"Broadcast Coordinates"):o.a.createElement(tt,{disabled:!0},"Broadcast Coordinates");const m=o.a.createElement("div",null,h&&o.a.createElement("p",null,o.a.createElement(pr,null,"INFO:")," Revealing..."),(null==a?void 0:a.owner)===c&&o.a.createElement("p",null,o.a.createElement(pr,null,"INFO:")," You own this planet! Revealing its location is a dangerous flex."),f&&o.a.createElement("p",null,o.a.createElement(pr,null,"INFO:")," This planet's location is already, and can't be revealed again!"),!d&&o.a.createElement("p",null,o.a.createElement(pr,null,"INFO:")," You must wait"," ",o.a.createElement(pb,{timestamp:n.getNextBroadcastAvailableTimestamp(),ifPassed:"now!"})," ","to reveal another planet."));return o.a.createElement(Vi,null,a?o.a.createElement(mb,null,o.a.createElement("div",null,"You can broadcast a planet to publically reveal its location on the map. You can only broadcast a planet's location once every"," ",o.a.createElement(fr,null,Math.floor(n.getContractConstants().LOCATION_REVEAL_COOLDOWN/60/60))," ","hours."),o.a.createElement("div",{className:"message"},m),o.a.createElement("div",{className:"row"},o.a.createElement("span",null,"Coordinates"),o.a.createElement("span",null,`(${s().x}, ${s().y})`)),o.a.createElement(uo,{height:8}),o.a.createElement("p",{style:{textAlign:"right"}},p)):o.a.createElement(vo,{width:"100%",height:"75px"},"Select a Planet"))}const vb=le.c.div.withConfig({displayName:"StyledHatPane",componentId:"sc-8p8oi7"})`
2835  & > div {
2836    display: flex;
2837    flex-direction: row;
2838    justify-content: space-between;
2839
2840    &:last-child > span {
2841      margin-top: 1em;
2842      text-align: center;
2843      flex-grow: 1;
2844    }
2845
2846    &.margin-top {
2847      margin-top: 0.5em;
2848    }
2849  }
2850`,yb=e=>2**e.hatLevel;function bb({initialPlanetId:e,modal:t}){const n=xi(),r=Ci(n),i=Nr(n.selectedPlanetId$,e),a=Oi(n,i).value,s=Object(Jt.weiToEth)(Nr(n.getEthConnection().myBalance$,Vt.a.from("0"))),l=e=>!(e=>!e||!!e.unconfirmedBuyHats&&e.unconfirmedBuyHats.length>0)(e)&&(null==e?void 0:e.owner)===r&&s>yb(e);let c;return c=a&&a.owner===r?o.a.createElement(vb,null,o.a.createElement("div",null,o.a.createElement(lr,null,"HAT"),o.a.createElement("span",null,It.getPlanetCosmetic(a).hatType)),o.a.createElement("div",null,o.a.createElement(lr,null,"HAT Level"),o.a.createElement("span",null,It.getHatSizeName(a))),o.a.createElement("div",{className:"margin-top"},o.a.createElement(lr,null,"Next Level Cost"),o.a.createElement("span",null,yb(a)," USD ",o.a.createElement(lr,null,"/")," ",yb(a)," DAI")),o.a.createElement("div",null,o.a.createElement(lr,null,"Current Balance"),o.a.createElement("span",null,s," ONE")),o.a.createElement(co,{height:1}),o.a.createElement(oo,{to:"http://dev.faucet.easynode.one/"},"Get More ONE"),o.a.createElement(co,{height:.5}),o.a.createElement(tt,{onClick:()=>{l(a)&&n&&a&&n.buyHat(a)},disabled:!l(a)},a&&a.hatLevel>0?"Upgrade":"Buy"," HAT")):o.a.createElement(vo,{width:"100%",height:"75px"},"Select a Planet ",o.a.createElement("br",null)," You Own"),o.a.createElement(Xi,null,c)}function wb({artifact:e,viewingDepositList:t,anyArtifactActive:n,planetOwnedByPlayer:r,planetIsTradingPost:i,planetLevel:a,activate:s,deactivate:l,deposit:c,withdraw:u}){const f=[];if(e.unconfirmedWithdrawArtifact)return o.a.createElement(kb,null,o.a.createElement(Uo,{initialText:"Withdrawing..."}));if(e.unconfirmedDepositArtifact)return o.a.createElement(kb,null,o.a.createElement(Uo,{initialText:"Depositing..."}));if(e.unconfirmedActivateArtifact)return o.a.createElement(kb,null,o.a.createElement(Uo,{initialText:"Activating..."}));if(e.unconfirmedDeactivateArtifact)return o.a.createElement(kb,null,o.a.createElement(Uo,{initialText:"Deactivating..."}));if(e.unconfirmedMove)return o.a.createElement(kb,null,o.a.createElement(Uo,{initialText:"Moving..."}));const d=Date.now(),h=function(e){return 0===e.lastDeactivated?Date.now():1e3*e.lastDeactivated+60*Ft[e.artifactType]*60*1e3}(e),p=h-d<=-0,m=a>e.rarity;return r&&(t?i&&f.unshift({name:24,extraContent:!m&&o.a.createElement(o.a.Fragment,null,". ",o.a.createElement(Wn,{rarity:e.rarity}),` artifacts can only be deposited on level ${e.rarity+1}+ spacetime rips`),children:o.a.createElement(Eb,{onClick:t=>{t.stopPropagation(),m&&c(e)},iconColor:m?void 0:"grey"},o.a.createElement(en,{type:Kt.IconType.Deposit}))}):Dt(e)&&e.artifactType!==de.ArtifactType.BlackDomain?f.unshift({name:25,children:o.a.createElement(Eb,{onClick:t=>{t.stopPropagation(),l(e)}},o.a.createElement(en,{type:Kt.IconType.Deactivate}))}):(i&&f.unshift({name:26,extraContent:!m&&o.a.createElement(o.a.Fragment,null,". ",o.a.createElement(Wn,{rarity:e.rarity}),` artifacts can only be withdrawn from level ${e.rarity+1}+ spacetime rips`),children:o.a.createElement(Eb,{onClick:t=>{t.stopPropagation(),m&&u(e)},iconColor:m?void 0:"grey"},o.a.createElement(en,{type:Kt.IconType.Withdraw}))}),!n&&p&&f.unshift({name:27,children:o.a.createElement(Eb,{onClick:t=>{t.stopPropagation(),s(e)}},o.a.createElement(en,{type:Kt.IconType.Activate}))}))),o.a.createElement(xb,null,!p&&o.a.createElement(yv,{name:23},o.a.createElement(gr,null,o.a.createElement(lr,null,o.a.createElement(pb,{timestamp:h,ifPassed:""})))),f.map((e,t)=>o.a.createElement(yv,{key:t,...e})))}const Eb=le.c.div.withConfig({displayName:"ArtifactActionIconContainer",componentId:"sc-1nt2965"})`
2851  line-height: 0;
2852  padding-left: 8px;
2853
2854  /* Set the Icon color if specified on the outer component */
2855  --df-icon-color: ${({iconColor:e})=>e};
2856`,kb=le.c.div.withConfig({displayName:"ArtifactSpinnerContainer",componentId:"sc-1hufg1l"})`
2857  position: absolute;
2858  bottom: 0;
2859  right: 4px;
2860  font-size: 80%;
2861`,xb=le.c.div.withConfig({displayName:"ActionsContainer",componentId:"sc-pqpl6a"})`
2862  position: absolute;
2863  bottom: 8px;
2864  right: 8px;
2865  display: inline-flex;
2866  justify-content: center;
2867  align-items: center;
2868  flex-direction: row;
2869`,Sb="https://d2wspbczt15cqu.cloudfront.net/v0.6.0-artifacts/";function _b(e,t,n){const r=$t(!0,e,t,n);return Sb+r}function Ab({artifact:e,size:t,thumb:n,bgColor:r}){return o.a.createElement(Cb,{width:t,height:t},o.a.createElement("video",{width:t,height:t,loop:!0,autoPlay:!0,key:e.id},o.a.createElement("source",{src:_b(n||!1,e,r||0),type:"video/webm"})))}const Cb=le.c.div.withConfig({displayName:"Container",componentId:"sc-1xcu1ea"})`
2870  image-rendering: crisp-edges;
2871
2872  ${({width:e,height:t})=>le.b`
2873    width: ${e}px;
2874    height: ${t}px;
2875    min-width: ${e}px;
2876    min-height: ${t}px;
2877    background-color: ${Pe.colors.artifactBackground};
2878    display: inline-block;
2879  `}
2880`,Tb=le.c.div.withConfig({displayName:"StatsContainer",componentId:"sc-ps6bfe"})`
2881  flex-grow: 1;
2882`,Pb=le.c.div.withConfig({displayName:"ArtifactDetailsHeader",componentId:"sc-12zxce9"})`
2883  min-height: 128px;
2884  display: flex;
2885  flex-direction: row;
2886
2887  & > div::last-child {
2888    flex-grow: 1;
2889  }
2890
2891  .statrow {
2892    display: flex;
2893    flex-direction: row;
2894    justify-content: space-between;
2895    align-items: center;
2896
2897    & > span:first-child {
2898      margin-right: 1.5em;
2899    }
2900
2901    & > span:last-child {
2902      text-align: right;
2903      width: 6em;
2904      flex-grow: 1;
2905    }
2906  }
2907`;function Ob({upgrades:e,stat:t}){let n=100;for(const r of e)r&&(n*=dt(r,t)/100);return o.a.createElement("div",{className:"statrow"},o.a.createElement(yv,{name:38+t},o.a.createElement(nn,{stat:t})),o.a.createElement("span",null,n>100&&o.a.createElement(sr,null,"+",Math.round(n-100),"%"),100===n&&o.a.createElement(lr,null,"no effect"),n<100&&o.a.createElement(dr,null,"-",Math.round(100-n),"%")))}const Mb=le.c.div.withConfig({displayName:"StyledArtifactDetailsBody",componentId:"sc-vc8g22"})`
2908  & > div:first-child p {
2909    text-decoration: underline;
2910  }
2911
2912  & .row {
2913    display: flex;
2914    flex-direction: row;
2915    justify-content: space-between;
2916
2917    & > span:first-child {
2918      color: ${Pe.colors.subtext};
2919    }
2920
2921    & > span:last-child {
2922      text-align: right;
2923    }
2924  }
2925
2926  & .link {
2927    &:hover {
2928      cursor: pointer;
2929      text-decoration: underline;
2930    }
2931  }
2932`,Ib=le.c.div.withConfig({displayName:"ArtifactName",componentId:"sc-pgq6tu"})`
2933  color: ${Pe.colors.text};
2934  font-weight: bold;
2935`,Rb=le.c.div.withConfig({displayName:"ArtifactNameSubtitle",componentId:"sc-19c8st4"})`
2936  color: ${Pe.colors.subtext};
2937  margin-bottom: 8px;
2938`;function Lb({artifactId:e,contractConstants:t}){const n=xi(),r=function(e,t){const[n,r]=Object(i.useState)(new Rr(e.getArtifactWithId(t)));return Object(i.useEffect)(()=>{const n=setInterval(()=>{r(new Rr(e.getArtifactWithId(t)))},1e3);return()=>clearInterval(n)}),n}(n,e).value;if(!r)return null;const a=e=>{const t=null==n?void 0:n.getTwitter(e);return t?"@"+t:o.a.createElement(Ac,{text:e})},s=e=>{const t=null==n?void 0:n.getArtifactPlanet(e);if(t)return It.getPlanetName(t)};let l=void 0;return r.artifactType===de.ArtifactType.PhotoidCannon&&Dt(r)&&(l=o.a.createElement(pb,{timestamp:1e3*r.lastActivated+1e3*t.PHOTOID_ACTIVATION_DELAY,ifPassed:"now!"})),o.a.createElement(Vi,null,o.a.createElement(Ib,null,Kn(r)),o.a.createElement(Rb,null,o.a.createElement(Wn,{rarity:r.rarity})," ",o.a.createElement(ay,{artifact:r})," ",o.a.createElement(Gn,{artifact:r})),o.a.createElement(Pb,null,o.a.createElement(Ab,{artifact:r,size:128}),o.a.createElement(uo,{width:8}),o.a.createElement(Tb,null,Me.a.range(0,5).map(e=>o.a.createElement(Ob,{upgrades:[r.upgrade,r.timeDelayedUpgrade],stat:e,key:e})))),o.a.createElement(Mb,null,o.a.createElement(jb,{artifact:r}),o.a.createElement(uo,{height:8}),o.a.createElement("div",{className:"row"},o.a.createElement("span",null,"Located On"),s(r)?o.a.createElement("span",{className:"link",onClick:()=>{r.onPlanetId&&(null==n||n.setSelectedId(r.onPlanetId))}},s(r)):o.a.createElement("span",null,"n / a")),o.a.createElement("div",{className:"row"},o.a.createElement("span",null,"Minted At"),o.a.createElement("span",null,(e=>e?new Date(1e3*e.mintedAtTimestamp).toDateString():"00/00/0000")(r))),o.a.createElement("div",{className:"row"},o.a.createElement("span",null,"Discovered On"),o.a.createElement("span",null,It.getPlanetNameHash(r.planetDiscoveredOn))),o.a.createElement("div",{className:"row"},o.a.createElement("span",null,"Owner"),o.a.createElement("span",null,r?a(r.currentOwner):"")),o.a.createElement("div",{className:"row"},o.a.createElement("span",null,"Discovered By"),o.a.createElement("span",null,r?a(r.discoverer):"")),o.a.createElement("div",{className:"row"},o.a.createElement("span",null,"Artifact ID"),o.a.createElement(Ac,{text:r.id})),l&&o.a.createElement("div",{className:"row"},o.a.createElement("span",null,"Ready In"),o.a.createElement("span",null,l))))}function Nb({modal:e,artifactId:t}){const n=xi().getContractConstants();return o.a.createElement(Lb,{modal:e,artifactId:t,contractConstants:n})}function jb({artifact:e}){let t;const n=[0,2,4,6,8,9][e.rarity],r=[0,2,4,6,8,9][e.rarity],i=[0,2,4,8,16,32],a=de.ArtifactRarityNames[e.rarity],s=[0,2,2,2,2,2],l=[0,5,10,15,20,25];switch(e.artifactType){case de.ArtifactType.BlackDomain:t=o.a.createElement(ur,null,"When activated, permanently disables your planet. It'll still be yours, but you won't be able to do anything with it. It turns completely black too. Just ... gone. Because this one is ",o.a.createElement(fr,null,a),", it works on planets up to level"," ",o.a.createElement(fr,null,n),". This artifact is consumed on activation.");break;case de.ArtifactType.BloomFilter:t=o.a.createElement(ur,null,"When activated refills your planet's energy and silver to their respective maximum values. How it does this, we do not know. Because this one is ",o.a.createElement(fr,null,a),", it works on planets up to level ",o.a.createElement(fr,null,r),". This artifact is consumed on activation.");break;case de.ArtifactType.Wormhole:t=o.a.createElement(ur,null,"When activated, shortens the distance between this planet and another one. All moves between those two planets decay less energy, and complete faster. Because this one is"," ",o.a.createElement(fr,null,a),", it shrinks the distance by a factor of"," ",o.a.createElement(fr,null,i[e.rarity]),"x.");break;case de.ArtifactType.PhotoidCannon:t=o.a.createElement(ur,null,"Ahh, the Photoid Canon. Activate it, wait four hours. Because this one is"," ",o.a.createElement(fr,null,a),", the next move you send will be able to go"," ",o.a.createElement(fr,null,s[e.rarity]),"x further and"," ",o.a.createElement(fr,null,l[e.rarity]),"x faster. During the 4 hour waiting period, your planet's defense is temporarily decreased. This artifact is consumed once the canon is fired.");break;case de.ArtifactType.PlanetaryShield:t=o.a.createElement(ur,null,"Activate the planetary shield to gain a defense bonus on your planet, at the expense of range and speed. When this artifact is deactivated, it is destroyed and your planet's stats are reverted--so use it wisely!")}return t?o.a.createElement("div",{style:{maxWidth:"100%"}},o.a.createElement(Hy,{height:"1.2em",toggleButtonMargin:"0em"},t)):null}const{dfgreen:Bb,dfred:Fb,subtext:Db}=Pe.colors;function zb({upgrade:e,active:t,icon:n,getMultiplier:r}){const i=r(e),a=t?i>100?Bb:i<100?Fb:Db:Db;return o.a.createElement(Xb,{color:a,iconColor:a},o.a.createElement(en,{type:n}),o.a.createElement(uo,{width:2}),function(e){const t=Math.floor(e-100);return t>=-0?"+"+t+"%":t+"%"}(r(e)))}const Ub=e=>e.defMultiplier,$b=e=>e.energyCapMultiplier,Hb=e=>e.energyGroMultiplier,Jb=e=>e.rangeMultiplier,Gb=e=>e.speedMultiplier;function Vb({upgrade:e,isActive:t,artifactType:n}){let r;switch(n){case de.ArtifactType.BlackDomain:r="locks planet";break;case de.ArtifactType.Wormhole:r="decreases travel time";break;case de.ArtifactType.BloomFilter:r="refills planet's energy and silver";break;case de.ArtifactType.PhotoidCannon:r="single use sniper"}if(r)return o.a.createElement(Wb,null,r,o.a.createElement(co,{height:1}));const i={active:t,upgrade:e};return o.a.createElement(Wb,null,o.a.createElement(zb,{...i,icon:Kt.IconType.Defense,getMultiplier:Ub}),o.a.createElement(zb,{...i,icon:Kt.IconType.Energy,getMultiplier:$b}),o.a.createElement(uo,{height:2}),o.a.createElement(zb,{...i,icon:Kt.IconType.EnergyGrowth,getMultiplier:Hb}),o.a.createElement(zb,{...i,icon:Kt.IconType.Range,getMultiplier:Jb}),o.a.createElement(zb,{...i,icon:Kt.IconType.Speed,getMultiplier:Gb}))}const Xb=le.c.div.withConfig({displayName:"StyledSingleUpgrade",componentId:"sc-mmfqyq"})`
2939  display: inline-flex;
2940  justify-content: flex-start;
2941  align-items: center;
2942  width: 45px;
2943  color: ${({color:e})=>e};
2944
2945  /* Set the Icon color if specified on the outer component */
2946  --df-icon-color: ${({iconColor:e})=>e};
2947`,Wb=le.c.div.withConfig({displayName:"UpgradeSummaryContainer",componentId:"sc-74lg76"})`
2948  color: ${Pe.colors.subtext};
2949  display: inline-block;
2950  font-size: 12px;
2951  justify-content: space-between;
2952  align-items: center;
2953`;function qb({artifact:e,actions:t,modal:n}){return void 0===e?o.a.createElement(Qb,null,o.a.createElement(ew,null,o.a.createElement(gr,null,o.a.createElement(Uo,{initialText:"Loading Artifact..."})))):o.a.createElement(Qb,{key:e.id,onClick:()=>n.push({title:"Artifact Details",element:function(){return o.a.createElement(Nb,{modal:n,artifactId:e.id})},helpContent:o.a.createElement("div",null,o.a.createElement("p",null,"In this pane, you can see specific information about a particular artifact. You can also initiate a conversation with the artifact! Try talking to your artifacts. Make some new friends (^:"))})},o.a.createElement(Yb,null,o.a.createElement(Ab,{artifact:e,size:35,thumb:!0})),o.a.createElement(uo,{width:16}),o.a.createElement(Zb,null,Dt(e)&&o.a.createElement(sr,null,"active")," ",Kn(e)," ",o.a.createElement(gr,null,o.a.createElement(lr,null,o.a.createElement(Wn,{rarity:e.rarity})," ",o.a.createElement(Jn,{artifact:e})," ",o.a.createElement(Gn,{artifact:e}))),t(e),o.a.createElement("br",null),o.a.createElement(Kb,null,o.a.createElement(Vb,{artifactType:e.artifactType,upgrade:e.upgrade,isActive:Dt(e)}))))}const Kb=le.c.div.withConfig({displayName:"SecondRow",componentId:"sc-sdb3ix"})`
2954  line-height: 0;
2955  margin-top: 4px;
2956  margin-bottom: 4px;
2957`,Zb=le.c.div.withConfig({displayName:"ArtifactContent",componentId:"sc-15aev13"})`
2958  height: 100%;
2959  display: inline-block;
2960  vertical-align: top;
2961  overflow: hidden;
2962  white-space: nowrap;
2963  flex-grow: 1;
2964  padding: 2px 4px;
2965`,Yb=le.c.div.withConfig({displayName:"ArtifactImageContainer",componentId:"sc-llgoa4"})`
2966  display: inline-flex;
2967  background-color: ${Pe.colors.artifactBackground};
2968  justify-content: center;
2969  align-items: center;
2970  width: 45px;
2971  box-sizing: border-box;
2972  cursor: pointer;
2973  border-right: 1px solid ${Pe.colors.borderDark};
2974
2975  &:hover {
2976    background-color: ${Pe.colors.artifactBackground};
2977  }
2978`,Qb=le.c.div.withConfig({displayName:"ArtifactContainer",componentId:"sc-1r1wloy"})`
2979  position: relative;
2980  display: flex;
2981  flex-direction: row;
2982  width: 100%;
2983  margin-bottom: 2px;
2984  border-radius: 3px;
2985  border: 1px solid ${Pe.colors.borderDark};
2986  background-color: ${Pe.colors.backgroundlight};
2987  cursor: pointer;
2988
2989  &:hover {
2990    border: 1px solid ${Pe.colors.border};
2991    background-color: ${Pe.colors.backgroundlighter};
2992  }
2993`,ew=le.c.div.withConfig({displayName:"Center",componentId:"sc-l393sq"})`
2994  display: flex;
2995  justify-content: center;
2996  align-items: center;
2997  width: 100%;
2998  height: 100%;
2999`;function tw({artifacts:e,sortBy:t,modal:n,actions:r}){const[a,s]=Object(i.useState)([...e]);return Object(i.useEffect)(()=>{s(Me.a.orderBy(e,[e=>Dt(e)?1:0,e=>e&&void 0!==t?e.upgrade[t]:0],["desc","desc"]))},[e,t]),o.a.createElement(nw,null,0===a.length&&o.a.createElement(vo,{width:"100%",height:"100%"},"No Artifacts ",o.a.createElement("br",null),"On This Planet"),a.map((e,t)=>o.a.createElement(qb,{key:(null==e?void 0:e.id)||t,artifact:e,actions:r,modal:n})))}const nw=le.c.div.withConfig({displayName:"ArtifactsListContainer",componentId:"sc-1o7io8h"})`
3000  height: 250px;
3001  width: 100%;
3002  overflow-y: scroll;
3003`;function rw({find:e,isFinding:t,currentBlockNumber:n,planet:r,roundOver:i}){let a;return a=t?o.a.createElement(tt,{wide:!0,disabled:!0},o.a.createElement(Uo,{initialText:"Finding..."})):o.a.createElement(tt,{wide:!0,onClick:e,disabled:i},"Find"),void 0===n||void 0===r.prospectedBlockNumber?o.a.createElement(Uo,null):Ml(n,r.prospectedBlockNumber)?o.a.createElement(lr,null,"This planet's prospecting expired after 256 blocks"):o.a.createElement(o.a.Fragment,null,a,o.a.createElement(uo,{height:8}),i&&o.a.createElement(dr,null,"Round 3 is over, and you can no longer mint artifacts!"),o.a.createElement(lr,null,"Once the artifact is found, it will be placed directly onto this planet. You have"," ",o.a.createElement(fr,null,Ol(n,r.prospectedBlockNumber)," blocks")," ","to find an artifact on this planet, otherwise the prospect will expire."))}function iw({prospect:e,isProspecting:t,planet:n,roundOver:r}){let i;const a=n.energy/n.energyCap,s=Ll(n);return i=t?o.a.createElement(tt,{wide:!0,disabled:!0},o.a.createElement(Uo,{initialText:"Prospecting..."})):o.a.createElement(tt,{wide:!0,onClick:e,disabled:!s||r},"Prospect"),o.a.createElement(o.a.Fragment,null,i,o.a.createElement(uo,{height:8}),r&&o.a.createElement(o.a.Fragment,null,o.a.createElement(uo,{height:8}
3003)," ",o.a.createElement(dr,null,"This Dark Forest round is over! you can no longer mint artifacts!"),o.a.createElement(uo,{height:8})," "),o.a.createElement(lr,null,"Before you can find an artifact on a planet, you must prospect it. Prospecting determines what artifact you will find!"," ",!s&&o.a.createElement(o.a.Fragment,null,"This planet must have over 95% energy to prospect for an artifact. (Currently"," ",a.toFixed(0),"%)")))}const ow=[{iconType:Kt.IconType.Defense,key:"defMultiplier",tooltip:28},{iconType:Kt.IconType.Energy,key:"energyCapMultiplier",tooltip:29},{iconType:Kt.IconType.EnergyGrowth,key:"energyGroMultiplier",tooltip:30},{iconType:Kt.IconType.Range,key:"rangeMultiplier",tooltip:31},{iconType:Kt.IconType.Speed,key:"speedMultiplier",tooltip:32}];function aw({sortBy:e,setSortBy:t}){return o.a.createElement(go,null,"Sort By:",o.a.createElement(uo,{width:8}),ow.map(({key:n,tooltip:r,iconType:i})=>o.a.createElement(yv,{key:n,name:r},o.a.createElement(sw,{onClick:()=>{t(n===e?void 0:n)},iconColor:n===e?Pe.colors.dfgreen:Pe.colors.subtext},o.a.createElement(en,{type:i})))))}const sw=le.c.div.withConfig({displayName:"SortByIconContainer",componentId:"sc-uuoc5b"})`
3004  line-height: 0;
3005  padding-right: 8px;
3006
3007  /* Set the Icon color if specified on the outer component */
3008  --df-icon-color: ${({iconColor:e})=>e};
3009`;function lw({planet:e,artifactsInInventory:t,artifactsOnPlanet:n,currentBlockNumber:r,playerAddress:a,roundOver:s,prospect:l,find:c,activate:u,deactivate:f,deposit:d,withdraw:h,modal:p}){const m=e.owner===a&&e.planetType===de.PlanetType.TRADING_POST,[g,v]=Object(i.useState)(!1),[y,b]=Object(i.useState)(),w=!!n.find(e=>void 0!==e&&e.unconfirmedActivateArtifact||Dt(e));let E;e.planetType===de.PlanetType.RUINS&&e.owner===a&&(void 0===e.prospectedBlockNumber?E=o.a.createElement(iw,{roundOver:s,isProspecting:!!e.unconfirmedProspectPlanet,prospect:l,planet:e}):e.hasTriedFindingArtifact||(E=o.a.createElement(rw,{roundOver:s,isFinding:!!e.unconfirmedFindArtifact,find:c,currentBlockNumber:r,planet:e})));const k=Object(i.useCallback)(t=>o.a.createElement(wb,{artifact:t,viewingDepositList:g,planetOwnedByPlayer:e.owner===a,planetIsTradingPost:e.planetType===de.PlanetType.TRADING_POST,planetLevel:e.planetLevel,anyArtifactActive:w,activate:u,deactivate:f,deposit:d,withdraw:h}),[g,w,e.planetLevel,u,f,d,h,e.owner,e.planetType,a]);return Object(i.useEffect)(()=>{v(!1)},[e.locationId,a]),o.a.createElement(o.a.Fragment,null,E&&o.a.createElement(o.a.Fragment,null,o.a.createElement(uo,{height:8}),E,o.a.createElement(uo,{height:8})),o.a.createElement(aw,{sortBy:y,setSortBy:b}),o.a.createElement(uo,{height:4}),o.a.createElement(tw,{artifacts:g?t:n,sortBy:y,modal:p,actions:k}),o.a.createElement(uo,{height:4}),o.a.createElement(cw,null,o.a.createElement(uw,{selected:!g,onClick:()=>{v(!1),b(void 0)}},"On This Planet"),m&&o.a.createElement(uw,{selected:g,onClick:()=>{v(!0),b(void 0)}},"Deposit Artifact")))}const cw=le.c.div.withConfig({displayName:"SelectArtifactsContainer",componentId:"sc-1rfz0ii"})`
3010  display: flex;
3011  justify-content: space-between;
3012  align-items: center;
3013  flex-direction: row;
3014`,uw=le.c.span.withConfig({displayName:"SelectArtifactList",componentId:"sc-1myg2f1"})`
3015  ${({selected:e})=>le.b`
3016    ${e&&"text-decoration: underline;"}
3017    cursor: pointer;
3018  `}
3019`;function fw({initialPlanetId:e,modal:t}){const n=xi(),r=Ci(n),a=Nr(n.selectedPlanetId$,e),s=Oi(n,a).value,l=Nr(n.getEthConnection().blockNumber$,void 0),c=Mi(n),u=n.getArtifactsWithIds((null==s?void 0:s.heldArtifactIds)||[]),f=n.isRoundOver(),d=Object(i.useCallback)(()=>{s&&n.findArtifact(s.locationId)},[s,n]),h=Object(i.useCallback)(()=>{s&&n.prospectPlanet(s.locationId)},[s,n]),p=Object(i.useCallback)(e=>{s&&n.withdrawArtifact(s.locationId,null==e?void 0:e.id)},[s,n]),m=Object(i.useCallback)(e=>{e&&s&&n.depositArtifact(s.locationId,null==e?void 0:e.id)},[s,n]),g=Object(i.useCallback)(async e=>{if(s&&ct(s)){let t=void 0;if(e.artifactType===de.ArtifactType.Wormhole){const e=await n.startWormholeFrom(s);t=null==e?void 0:e.locationId}n.activateArtifact(s.locationId,e.id,t)}},[s,n]),v=Object(i.useCallback)(e=>{s&&n.deactivateArtifact(s.locationId,e.id)},[s,n]);let y;const b=[];for(const e of c.value.values())e.onPlanetId||b.push(e);return y=s&&c.value&&ct(s)&&r?o.a.createElement(lw,{artifactsInInventory:b,artifactsOnPlanet:u,planet:s,currentBlockNumber:l,playerAddress:r,roundOver:f,activate:g,deactivate:v,deposit:m,withdraw:p,find:d,prospect:h,modal:t}):o.a.createElement(vo,{width:"100%",height:"75px"},"Select a Planet"),o.a.createElement(Vi,null,y)}const dw=le.c.div.withConfig({displayName:"StyledUpgradePreview",componentId:"sc-1rxo82k"})`
3020  min-width: 15em;
3021  width: 100%;
3022  border-radius: 3px;
3023  border: 1px solid ${Pe.colors.borderDark};
3024  font-size: ${Pe.fontSizeXS};
3025`,hw=le.c.div.withConfig({displayName:"StatRow",componentId:"sc-1l4k49l"})`
3026  display: flex;
3027  flex-direction: row;
3028  justify-content: center;
3029  align-items: center;
3030  padding-left: 4px;
3031  padding-right: 4px;
3032
3033  & > span {
3034    margin-left: 0.2em;
3035
3036    &:nth-child(1) {
3037      color: ${Pe.colors.subtext};
3038      margin-left: 0;
3039      width: 9em;
3040    }
3041    &:nth-child(2),
3042    &:nth-child(4) {
3043      text-align: center;
3044      width: 6em;
3045      flex-grow: 1;
3046    }
3047    &:nth-child(3) {
3048      // arrow
3049      text-align: center;
3050      width: 1.5em;
3051
3052      /* Set the Icon color to something a little dimmer */
3053      --df-icon-color: ${Pe.colors.subtext};
3054    }
3055    &:nth-child(5) {
3056      width: 5em;
3057      text-align: right;
3058    }
3059  }
3060
3061  &.upgrade-willupdate {
3062    background: ${Pe.colors.backgroundlighter};
3063  }
3064`,pw=({planet:e,upgrade:t,title:n,stat:r,className:i})=>{const a=t=>{if(!e)return 0;const n=e;return"silverGrowth"===t?60*n[t]:n[t]},s=n=>{if(!e)return 0;if(!t)return e[n];let r=1;return"energyCap"===n?r=t.energyCapMultiplier/100:"energyGrowth"===n?r=t.energyGroMultiplier/100:"range"===n?r=t.rangeMultiplier/100:"speed"===n?r=t.speedMultiplier/100:"defense"===n&&(r=t.defMultiplier/100),a(n)*r};return o.a.createElement(hw,{className:[i,(e=>a(e)!==s(e)?"upgrade-willupdate":"")(r)].join(" ")},o.a.createElement("span",null,n),o.a.createElement("span",null,(e=>{const t=a(e);return t%1==0?t.toFixed(0):t.toFixed(2)})(r)),o.a.createElement("span",null,o.a.createElement(en,{type:Kt.IconType.RightArrow})),o.a.createElement("span",null,(e=>{const t=s(e);return t%1==0?t.toFixed(0):t.toFixed(2)})(r)),o.a.createElement("span",null,(e=>{const t=(e=>s(e)-a(e))(e);return t<0?o.a.createElement(dr,null,t.toFixed(2)):t>0?o.a.createElement(sr,null,"+",t.toFixed(2)):o.a.createElement(lr,null,"0")})(r)))};function mw({planet:e,upgrade:t,branchName:n,cantUpgrade:r}){const i=void 0!==n&&vt(n),a=yt(e),s=Math.min(4,a),l=n&&e&&e.upgradeState[n]||0;r&&(t={defMultiplier:100,energyCapMultiplier:100,energyGroMultiplier:100,rangeMultiplier:100,speedMultiplier:100});const c=r?0:1;return o.a.createElement(dw,null,o.a.createElement(pw,{planet:e,upgrade:t,stat:"energyCap",title:"Energy Cap"}),o.a.createElement(pw,{planet:e,upgrade:t,stat:"energyGrowth",title:"Energy Growth"}),o.a.createElement(pw,{planet:e,upgrade:t,title:"Range",stat:"range"}),o.a.createElement(pw,{planet:e,upgrade:t,title:"Speed",stat:"speed"}),o.a.createElement(pw,{planet:e,upgrade:t,title:"Defense",stat:"defense"}),o.a.createElement(hw,{className:r?"":"upgrade-willupdate"},o.a.createElement("span",null,i," Rank"),o.a.createElement("span",null,l),o.a.createElement("span",null,o.a.createElement(en,{type:Kt.IconType.RightArrow})),o.a.createElement("span",null,l+c," of ",s," ",o.a.createElement(lr,null,"max")),o.a.createElement("span",null,r?o.a.createElement(lr,null,"0"):o.a.createElement(sr,null,"+1"))),o.a.createElement(hw,{className:r?"":"upgrade-willupdate"},o.a.createElement("span",null,"Planet Rank"),o.a.createElement("span",null,mt(e)),o.a.createElement("span",null,o.a.createElement(en,{type:Kt.IconType.RightArrow})),o.a.createElement("span",null,mt(e)+c," of ",a," ",o.a.createElement(lr,null,"max")),o.a.createElement("span",null,r?o.a.createElement(lr,null,"0"):o.a.createElement(sr,null,"+1"))))}const gw=le.c.div.withConfig({displayName:"UpgradeDetailsWrapper",componentId:"sc-9uq3l3"})`
3065  width: 100%;
3066`,vw=le.c.div.withConfig({displayName:"SectionPreview",componentId:"sc-1yuzizu"})`
3067  margin-top: ${"0.75em"};
3068`,yw=le.c.div.withConfig({displayName:"SectionBuy",componentId:"sc-1ciofwg"})`
3069  margin-top: ${"0.75em"};
3070`;function bw({planet:e}){const t=yt(e),n=[];for(let r=0;r<t;r++)n[r]=Math.floor(.2*(r+1)*e.silverCap);return o.a.createElement(o.a.Fragment,null,n.map((t,n)=>o.a.createElement("span",{key:n},n===mt(e)?o.a.createElement(hr,null,t):o.a.createElement(cr,null,t),o.a.createElement(uo,{width:8}))))}function ww({initialPlanetId:e,modal:t}){const n=xi(),r=Nr(n.selectedPlanetId$,e),i=Oi(n,r).value,a=Ci(n),s=gt(i);let l=o.a.createElement(vo,{width:"100%",height:"100px"},"Select a Planet ",o.a.createElement("br",null)," You Own");return i&&a&&(i.owner!==a||(l=i.planetType!==de.PlanetType.PLANET||0===i.silverCap?o.a.createElement(vo,{width:"100%",height:"100px"},"This Planet ",o.a.createElement("br",null)," is not Upgradeable"):o.a.createElement(o.a.Fragment,null,o.a.createElement(ng,{tabTitles:["Defense","Range","Speed"],tabContents:e=>{const t=i.upgradeState[e],r=!i||i.upgradeState[e]>=4,a=r?void 0:n.getUpgrade(e,t),l=i.upgradeState.reduce((e,t)=>
3070e+t),c=Math.floor(.2*(l+1)*i.silverCap),u=i.silver>=c,f=i.unconfirmedUpgrades.length>0,d=u&&!s&&!r&&!f;return o.a.createElement(o.a.Fragment,null,o.a.createElement(vw,null,o.a.createElement(mw,{upgrade:a,planet:i,branchName:e,cantUpgrade:s||r})),o.a.createElement(yw,null,o.a.createElement("div",null,o.a.createElement(lr,null,"Silver Available"),": ",o.a.createElement("span",null,i.silver)),o.a.createElement("div",null,o.a.createElement(lr,null,"Silver Cost:")," ",o.a.createElement(bw,{planet:i})),o.a.createElement("div",null,o.a.createElement(uo,{height:8}),f?o.a.createElement(tt,{disabled:!0},o.a.createElement(Uo,{initialText:"Upgrading..."})):o.a.createElement(o.a.Fragment,null,o.a.createElement(tt,{onClick:()=>(e=>{d&&n.upgrade(i,e)})(e),disabled:!d},"Upgrade")," ",s?o.a.createElement(dr,null,"Planet at Max Rank"):r?o.a.createElement(dr,null,vt(e)," at Max Rank"):u?void 0:o.a.createElement(dr,null,"Not Enough Silver")))))}}),o.a.createElement(gw,null)))),o.a.createElement(Vi,null,l)}function Ew({modal:e,title:t,element:n,helpContent:r,shortcutKey:a,shortcutDisabled:s}){const l=Object(i.useCallback)(()=>{s||e.push({title:t,element:n,helpContent:r})},[t,n,r,e,s]);return $i(a,l),o.a.createElement(ro,{style:{width:"100%"},key:a},o.a.createElement(yo,{style:{flexGrow:1},wide:!0,onClick:l,shortcutKey:a,shortcutDisabled:s},o.a.createElement(wo,null,t)))}function kw({modal:e,planetId:t,shortcutDisabled:n}){return o.a.createElement(Ew,{modal:e,title:"Hat",shortcutKey:"x",element:()=>o.a.createElement(bb,{modal:e,initialPlanetId:t}),shortcutDisabled:n})}function xw({modal:e,planetId:t,shortcutDisabled:n}){return o.a.createElement(Ew,{modal:e,title:"Broadcast",shortcutKey:"z",element:()=>o.a.createElement(gb,{modal:e,initialPlanetId:t}),helpContent:o.a.createElement("div",null,"Reveal this planet's location to all other players on-chain!",o.a.createElement(uo,{height:8}),"Broadcasting can be a potent offensive tactic! Reveal a powerful enemy's location, and maybe someone else will take care of them for you?"),shortcutDisabled:n})}function Sw({modal:e,planetId:t,shortcutDisabled:n}){return o.a.createElement(Ew,{modal:e,title:"Upgrade",shortcutKey:"a",element:()=>o.a.createElement(ww,{modal:e,initialPlanetId:t}),helpContent:o.a.createElement("div",null,o.a.createElement("p",null,"Upgrades cost Silver, and allow you to boost the stats of your planet. You need to move the required silver to this planet to be able to spend it on upgrades."),o.a.createElement(uo,{height:8}),o.a.createElement("p",null,"All planets have a certain max rank, and each branch can only be upgraded so many times. Choose wisely!")),shortcutDisabled:n})}function _w({modal:e,planetId:t,shortcutDisabled:n}){return o.a.createElement(Ew,{modal:e,title:"Artifacts",shortcutKey:"s",element:()=>o.a.createElement(fw,{modal:e,initialPlanetId:t}),helpContent:o.a.createElement("div",null,o.a.createElement("p",null,"Using this pane, you can manage the artifacts that are on this planet specifically. You can activate a single artifact at a time. Most artifacts have a cooldown period after deactivating during which they can not be activated."),o.a.createElement("br",null),o.a.createElement("p",null,"If your planet is a ",o.a.createElement(qi,null,"Spacetime Rip"),", you can also withdraw and deposit artifacts. When you withdraw an artifact, it is transferred to your address as an ERC 721 token.")),shortcutDisabled:n})}const Aw=le.c.div.withConfig({displayName:"FlexRow",componentId:"sc-1ypzo5c"})`
3071  display: flex;
3072  flex-direction: row;
3073`,Cw=Object(le.c)(Aw).withConfig({displayName:"SpacedFlexRow",componentId:"sc-7k51v"})`
3074  justify-content: space-between;
3075  align-items: center;
3076  width: 100%;
3077`;var Tw=n(147),Pw=n.n(Tw);function Ow({emoji:e,setEmoji:t}){const[n,r]=Object(i.useState)(!1);return o.a.createElement(Iw,null,o.a.createElement(Mw,{onClick:()=>r(e=>!e)},e||" "),n&&o.a.createElement(Rw,null,o.a.createElement(Pw.a,{disableSearchBar:!0,onEmojiClick:(e,n)=>{t(n.emoji),r(!1)}})))}const Mw=le.c.div.withConfig({displayName:"SelectedEmoji",componentId:"sc-1scgtaa"})`
3078  display: inline-flex;
3079  justify-content: center;
3080  align-items: center;
3081  border: 1px solid ${Pe.colors.borderDark};
3082  border-radius: 3px;
3083  cursor: pointer;
3084  font-size: 1.5em;
3085  width: 30px;
3086  height: 30px;
3087  margin-right: 8px;
3088
3089  &:hover,
3090  &:active,
3091  &:focus {
3092    border: 1px solid ${Pe.colors.border};
3093  }
3094`,Iw=le.c.div.withConfig({displayName:"EmojiPickerContainer",componentId:"sc-1axeswh"})`
3095  display: inline-block;
3096  position: relative;
3097`,Rw=le.c.div.withConfig({displayName:"EmojiPickerElementContainer",componentId:"sc-kw477a"})`
3098  position: absolute;
3099  bottom: 100%;
3100  right: 100%;
3101
3102  .emoji-picker-react {
3103    background-color: ${Pe.colors.backgroundlight};
3104    box-shadow: none;
3105  }
3106
3107  .emoji-group::before {
3108    background-color: ${Pe.colors.backgroundlight};
3109  }
3110
3111  .emoji-categories {
3112    display: none;
3113  }
3114
3115  .active-category-indicator-wrapper {
3116    display: none;
3117  }
3118
3119  .emoji-search {
3120    display: none;
3121  }
3122
3123  .content-wrapper::before {
3124    display: none;
3125  }
3126`;function Lw({wrapper:e}){var t,n,r,a,s,l,c,u;const f=xi().getGameManager(),d=Fl(e.value),h=null===(t=null==d?void 0:d.body)||void 0===t?void 0:t.emoji,[p,m]=Object(i.useState)(h);let g;if(Object(i.useEffect)(()=>{m(void 0)},[null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.locationId]),null===(r=e.value)||void 0===r?void 0:r.needsServerRefresh)g=o.a.createElement(lr,{style:{width:"100%"}},o.a.createElement(Uo,{initialText:"Loading..."}));else if(void 0!==d&&void 0!==h)g=o.a.createElement(o.a.Fragment,null,o.a.createElement(lr,{style:{width:"100%"}},o.a.createElement(ko,null,o.a.createElement("span",null,"current emoji: ",null===(a=null==d?void 0:d.body)||void 0===a?void 0:a.emoji),o.a.createElement(tt,{style:{width:"180px"},disabled:(null===(s=e.value)||void 0===s?void 0:s.unconfirmedClearEmoji)||(null===(l=e.value)||void 0===l?void 0:l.needsServerRefresh),onClick:()=>{var t;(null===(t=e.value)||void 0===t?void 0:t.locationId)&&f.clearEmoji(e.value.locationId)}},"Clear Emoji"))));else{const t=(null===(c=e.value)||void 0===c?void 0:c.unconfirmedAddEmoji)||(null===(u=e.value)||void 0===u?void 0:u.needsServerRefresh)||!p;g=o.a.createElement(o.a.Fragment,null,o.a.createElement(Cw,null,o.a.createElement(ko,null,o.a.createElement(Ow,{emoji:p,setEmoji:m}),o.a.createElement(yv,{name:t?60:void 0,extraContent:o.a.createElement(o.a.Fragment,null,"choose an emoji!")},o.a.createElement(tt,{style:{width:"180px"},disabled:t,onClick:()=>{var t,n;(null===(t=e.value)||void 0===t?void 0:t.locationId)&&p&&f.setPlanetEmoji(null===(n=e.value)||void 0===n?void 0:n.locationId,p)}},"Set Emoji")))))}return o.a.createElement(Nw,null,g)}const Nw=le.c.div.withConfig({displayName:"RowContainer",componentId:"sc-40kbjm"})`
3127  display: flex;
3128  justify-content: center;
3129  align-items: center;
3130  flex-direction: column;
3131`,jw=le.c.div.withConfig({displayName:"StyledPlanetNotifications",componentId:"sc-1qsp18m"})`
3132  font-size: ${Pe.fontSizeXS};
3133
3134  > div {
3135    margin-bottom: 4px;
3136
3137    &:last {
3138      margin-bottom: 0;
3139    }
3140  }
3141`;function Bw({wrapper:e}){return o.a.createElement(Lw,{wrapper:e})}const Fw=()=>o.a.createElement(Cw,null,o.a.createElement(lr,null,"This planet can upgrade!")),Dw=({planet:e})=>e.value&&ct(e.value)?o.a.createElement(Cw,null,o.a.createElement(lr,null,"Distance From Center:"," ",Math.floor(Math.sqrt(e.value.location.coords.x**2+e.value.location.coords.y**2+.001)).toLocaleStr
3141ing())):o.a.createElement(lr,null,"Unclaimed"),zw=({planet:e})=>{var t,n;return(null===(t=e.value)||void 0===t?void 0:t.claimer)?o.a.createElement(Cw,null,o.a.createElement(lr,null,"Claimed by"," ",o.a.createElement(Mv,{ethAddress:null===(n=e.value)||void 0===n?void 0:n.claimer,includeAddressIfHasTwitter:!0}))):o.a.createElement(lr,null,"Unclaimed")};function Uw({planet:e}){var t,n;const r=xi(),a=null===(t=e.value)||void 0===t?void 0:t.locationId,s=Object(i.useCallback)(()=>a&&(null==r?void 0:r.findArtifact(a)),[a,r]);return o.a.createElement(Cw,null,o.a.createElement(lr,null,"Find an artifact on this Foundry for points!"),(null===(n=e.value)||void 0===n?void 0:n.unconfirmedFindArtifact)?o.a.createElement(lr,null,o.a.createElement(Uo,{initialText:"find..."})):o.a.createElement(tt,{onClick:s},"Find"))}function $w({planet:e}){var t;const n=xi(),r=Object(i.useCallback)(()=>e.value&&(null==n?void 0:n.prospectPlanet(e.value.locationId)),[e,n]);return o.a.createElement(Cw,null,o.a.createElement(lr,null,"You can prospect this Foundry!"),(null===(t=e.value)||void 0===t?void 0:t.unconfirmedProspectPlanet)?o.a.createElement(lr,null,o.a.createElement(Uo,{initialText:"prospect..."})):o.a.createElement(tt,{onClick:r},"Prospect"))}function Hw({notifs:e,planet:t}){return o.a.createElement(jw,null,e.map((e,n)=>{var r,i,a,s;return o.a.createElement("div",{key:n},o.a.createElement(Ki,{visible:0===e},o.a.createElement(Fw,null)),o.a.createElement(Ki,{visible:2===e},o.a.createElement(Uw,{planet:t,key:e+((null===(r=t.value)||void 0===r?void 0:r.locationId)+"")})),o.a.createElement(Ki,{visible:1===e},o.a.createElement($w,{planet:t,key:e+((null===(i=t.value)||void 0===i?void 0:i.locationId)+"")})),o.a.createElement(Ki,{visible:5===e},o.a.createElement(Bw,{wrapper:t,key:e+((null===(a=t.value)||void 0===a?void 0:a.locationId)+"")})),o.a.createElement(Ki,{visible:3===e},o.a.createElement(zw,{key:e+((null===(s=t.value)||void 0===s?void 0:s.locationId)+""),planet:t})),o.a.createElement(Ki,{visible:4===e},o.a.createElement(Dw,{planet:t})))}))}const Jw=le.c.div.withConfig({displayName:"StyledSendResources",componentId:"sc-1tst5vx"})``,Gw=le.c.div.withConfig({displayName:"StyledRowIcon",componentId:"sc-r5im0d"})`
3142  margin-right: 0.75em;
3143`;function Vw({rowType:e}){return o.a.createElement(Gw,null,0===e&&o.a.createElement(en,{type:Kt.IconType.Energy}),1===e&&o.a.createElement(en,{type:Kt.IconType.Silver}))}const Xw=le.c.div.withConfig({displayName:"StyledResourceBar",componentId:"sc-1xvcsdm"})`
3144  margin: 0.5em;
3145
3146  input[type='range'] {
3147    width: 100%;
3148  }
3149
3150  & div {
3151    display: flex;
3152    flex-direction: row;
3153    justify-content: space-between;
3154    align-items: center;
3155  }
3156`,Ww=le.c.div.withConfig({displayName:"StyledShowPercent",componentId:"sc-l32lrn"})`
3157  display: inline-block;
3158
3159  & > span:first-child {
3160    width: 3em;
3161    text-align: right;
3162    margin-right: 1em;
3163  }
3164
3165  & > span:last-child {
3166    color: ${Pe.colors.subtext};
3167    & > span {
3168      ${Pe.prefabs.noselect};
3169      &:hover {
3170        color: ${Pe.colors.text};
3171        cursor: pointer;
3172      }
3173      &:first-child {
3174        margin-right: 0.5em;
3175      }
3176    }
3177  }
3178`;function qw({value:e,setValue:t}){return o.a.createElement(Ww,null,o.a.createElement("span",null,e,"%"),o.a.createElement("span",null,o.a.createElement("span",{onClick:()=>t(e=>e-1)},o.a.createElement(Sr,null)),o.a.createElement("span",{onClick:()=>t(e=>e+1)},"+")))}function Kw({isSilver:e,selected:t,value:n,setValue:r}){const a=Object(i.useCallback)(n=>{if(!t)return"";const r=e?t.silver:t.energy;return ht(n/100*r)},[t,e]);return o.a.createElement(Xw,null,o.a.createElement("div",null,o.a.createElement("div",null,o.a.createElement(Vw,{rowType:e?1:0}),a(n),o.a.createElement(co,{width:1}),o.a.createElement(cr,null,e?"silver":"energy")),o.a.createElement(qw,{value:n,setValue:r})),o.a.createElement(uo,{height:2}),o.a.createElement("input",{type:"range",min:0,max:100,value:n,step:1,onChange:e=>r(parseInt(e.target.value))}))}const Zw=le.c.div.withConfig({displayName:"RowWrapper",componentId:"sc-11eos4q"})`
3179  width: 100%;
3180  display: flex;
3181  flex-direction: row;
3182  justify-content: 'space-around';
3183  align-items: center;
3184  overflow-x: scroll;
3185`,Yw=le.b`
3186  border: 1px solid ${Pe.colors.border};
3187  background-color: ${Pe.colors.border};
3188`,Qw=le.c.div.withConfig({displayName:"StyledArtifactThumb",componentId:"sc-10zefco"})`
3189  min-width: ${2.5}em;
3190  min-height: ${2.5}em;
3191  width: ${2.5}em;
3192  height: ${2.5}em;
3193
3194  border: 1px solid ${Pe.colors.borderDark};
3195  border-radius: 1px;
3196
3197  &:last-child {
3198    margin-right: none;
3199  }
3200
3201  display: inline-flex;
3202  flex-direction: row;
3203  justify-content: space-around;
3204  align-items: center;
3205
3206  background: ${Pe.colors.artifactBackground};
3207
3208  &:hover {
3209    ${Yw}
3210    cursor: pointer;
3211
3212    & > div {
3213      filter: brightness(1.2);
3214    }
3215  }
3216
3217  ${({active:e})=>e&&Yw}
3218`;function eE({artifact:e,sendArtifact:t,setSendArtifact:n}){const r=Object(i.useCallback)(()=>{n&&(e.id===(null==t?void 0:t.id)?n(void 0):n(e))},[n,e,t]);return o.a.createElement(yv,{name:60,extraContent:o.a.createElement(o.a.Fragment,null,Kn(e))},o.a.createElement(Qw,{active:(null==t?void 0:t.id)===e.id,onClick:r},o.a.createElement(Ab,{artifact:e,thumb:!0,size:32})))}function tE({sendArtifact:e,setSendArtifact:t,inactiveArtifacts:n}){return o.a.createElement(Zw,{artifacts:n},n.length>0&&n.map(n=>o.a.createElement(o.a.Fragment,null,o.a.createElement(eE,{artifact:n,key:n.id,sendArtifact:e,setSendArtifact:t}),o.a.createElement(co,{width:.5}))),0===n.length&&o.a.createElement(lr,null,"No movable artifacts!"))}function nE({doSend:e,artifact:t,sending:n}){return o.a.createElement(o.a.Fragment,null,o.a.createElement(no,null,o.a.createElement(yo,{wide:!0,onClick:e,forceActive:n,style:{width:"100%"},shortcutKey:"q"},o.a.createElement(wo,null,"Send ",t&&o.a.createElement(o.a.Fragment,null,"+",Object(de.artifactNameFromArtifact)(t))))))}function rE({planetWrapper:e}){var t,n;const r=xi(),a=Object(i.useState)(e.value&&r.getForcesSending(e.value.locationId)?r.getForcesSending(e.value.locationId):50),[s,l]=a,c=Object(i.useState)(e.value&&r.getSilverSending(e.value.locationId)?r.getSilverSending(e.value.locationId):0),[u,f]=c,[d,h]=Object(i.useState)(!1),p=_o.getInstance();Object(i.useEffect)(()=>{e.value&&r&&(r.setForcesSending(e.value.locationId,s),r.setSilverSending(e.value.locationId,u))},[s,u,e,r]),Object(i.useEffect)(()=>{const e=nr.getInstance();h(!1),p.setCursorState(0),e.emit("SendCancelled")},[null===(t=e.value)||void 0===t?void 0:t.locationId,p]),Object(i.useEffect)(()=>
3218{l(50),f(0)},[null===(n=e.value)||void 0===n?void 0:n.locationId,l,f]);const m=Object(i.useCallback)(()=>{if(!r||!p)return;const t=nr.getInstance();2===p.getCursorState()?(h(!1),p.setCursorState(0),t.emit("SendCancelled")):(h(!0),p.setCursorState(2),t.emit("SendInitiated",e.value))},[e,p,r]);$i("q",m),$i(Ao,()=>{d?(nr.getInstance().emit("SendCancelled"),h(!1)):r.selectedPlanetId$.publish(void 0)});const g="1234567890".split(""),v="!@#$%^&*()".split("");for(let e=0;e<g.length;e++)$i(g[e],()=>l(10*(e+1))),$i(v[e],()=>f(10*(e+1)));var y;$i("-",()=>l(e=>Me.a.clamp(e-10,0,100))),$i("=",()=>l(e=>Me.a.clamp(e+10,0,100))),$i("_",()=>f(e=>Me.a.clamp(e-10,0,100))),$i("+",()=>f(e=>Me.a.clamp(e+10,0,100))),y=()=>{h(!1),p.setCursorState(0)},Object(i.useEffect)(()=>{const e=nr.getInstance();return e.on("SendCompleted",y),()=>{e.removeListener("SendCompleted",y)}},[y]);const[b,w]=Object(i.useState)(void 0),E={sendArtifact:b,setSendArtifact:w};Object(i.useEffect)(()=>{if(e.value&&b){e.value.heldArtifactIds.includes(b.id)||w(void 0);for(const t of e.value.unconfirmedDepartures)if(t.artifact===b.id)return void w(void 0)}},[e,b]),Object(i.useEffect)(()=>{e.value&&r.setArtifactSending(e.value.locationId,b)},[b,r,e]);const k=function(e,t){const n=Ii(e,t);return Object(i.useMemo)(()=>n.filter(e=>!Dt(e)),[n])}(e,r);return o.a.createElement(Jw,null,o.a.createElement(Kw,{selected:e.value,value:s,setValue:l}),e.value&&e.value.silver>0&&o.a.createElement(Kw,{selected:e.value,value:u,setValue:f,isSilver:!0}),e.value&&k.length>0&&o.a.createElement(o.a.Fragment,null,o.a.createElement(tE,{inactiveArtifacts:k,...E}),o.a.createElement(uo,{height:4})),o.a.createElement(nE,{artifact:b,doSend:m,sending:d}))}const iE=Object(le.c)(Cw).withConfig({displayName:"Row",componentId:"sc-jgjih0"})`
3219  margin-top: 0.5em;
3220`,oE=le.c.div.withConfig({displayName:"StyledSilverInput",componentId:"sc-6ezoj8"})`
3221  width: fit-content;
3222  display: inline-flex;
3223  flex-direction: row;
3224  align-items: center;
3225`,aE=le.c.div.withConfig({displayName:"AllBtn",componentId:"sc-1wtxwoy"})`
3226  color: ${Pe.colors.subtext};
3227  font-size: ${Pe.fontSizeS};
3228  &:hover {
3229    cursor: pointer;
3230    text-decoration: underline;
3231  }
3232`,sE=le.c.div.withConfig({displayName:"InputWrapper",componentId:"sc-1sua0th"})`
3233  width: 5em;
3234  margin-right: 0.5em;
3235`;function lE({amt:e,setAmt:t,wrapper:n}){const r=Object(i.useCallback)(()=>{n.value&&t(n.value.silver.toString())},[n,t]);return o.a.createElement(oE,null,o.a.createElement(sE,null,o.a.createElement(Mr,{wide:!0,type:"text",onInput:e=>t(e.target.value),value:e})),o.a.createElement(aE,{onClick:r},"all"))}function cE({wrapper:e}){var t;const n=xi(),[r,a]=Object(i.useState)(!1),[s,l]=Object(i.useState)("0"),c=Object(i.useCallback)(t=>{if(!e.value)return;const r=parseInt(t);r||a(!0),n.withdrawSilver(e.value.locationId,r),l("0")},[e,n]),u=Object(i.useMemo)(()=>{var t;return!!(null===(t=e.value)||void 0===t?void 0:t.unconfirmedWithdrawSilver)},[e]),f=Object(i.useMemo)(()=>!!(e.value&&e.value.silver<1),[e]);let d;return d=(null===(t=e.value)||void 0===t?void 0:t.planetType)===de.PlanetType.TRADING_POST?o.a.createElement(o.a.Fragment,null,r&&o.a.createElement(iE,null,o.a.createElement(dr,null,"Error with amount entered.")),o.a.createElement(iE,null,o.a.createElement(lE,{amt:s,setAmt:l,wrapper:e}),o.a.createElement(yv,{name:59},o.a.createElement(tt,{style:{fontSize:"10pt",width:"180px"},onClick:()=>c(s),disabled:u||f},u?o.a.createElement(Uo,{initialText:"Withdrawing..."}):"Withdraw Silver"))),o.a.createElement(uo,{height:4})):o.a.createElement(vo,{width:"100%",height:"75px"},"Select a Spacetime Rip"),o.a.createElement("div",{style:{fontSize:Pe.fontSizeS,color:Pe.colors.subtext}},d)}function uE({modal:e,planet:t,uiManager:n}){var r,a,s,l,c,u;const f=Ci(n),d=Nr(n.getEthConnection().blockNumber$,void 0),h=Object(i.useMemo)(()=>function(e,t,n){const r=[];return e?((null==e?void 0:e.owner)===t&&void 0!==t&&(Jl.planetCanUpgrade(e)&&r.push(0),Rl(e)&&Ll(e)&&r.push(1),Il(e,n)&&r.push(2),r.push(5)),r):r}(t.value,f,d),[t,f,d]),p=(null===(r=t.value)||void 0===r?void 0:r.owner)===f;return Object(i.useEffect)(()=>{t.value||e.popAll()},[t.value,e]),o.a.createElement(Vi,null,o.a.createElement(rb,{planetWrapper:t}),p&&o.a.createElement(rE,{planetWrapper:t}
3235),o.a.createElement(eo,null,[o.a.createElement(Vi,{right:"4px",left:"0",key:"left"},p&&o.a.createElement(o.a.Fragment,null,o.a.createElement(Sw,{modal:e,planetId:null===(a=t.value)||void 0===a?void 0:a.locationId,shortcutDisabled:!e.isActive}),o.a.createElement(uo,{height:8})),o.a.createElement(xw,{modal:e,planetId:null===(s=t.value)||void 0===s?void 0:s.locationId,shortcutDisabled:!e.isActive})),o.a.createElement(Vi,{right:"0",left:"4px",key:"right"},o.a.createElement(_w,{modal:e,planetId:null===(l=t.value)||void 0===l?void 0:l.locationId,shortcutDisabled:!e.isActive}),p&&o.a.createElement(o.a.Fragment,null,o.a.createElement(uo,{height:8}),o.a.createElement(kw,{modal:e,planetId:null===(c=t.value)||void 0===c?void 0:c.locationId,shortcutDisabled:!e.isActive})))]),p&&(null===(u=t.value)||void 0===u?void 0:u.planetType)===de.PlanetType.TRADING_POST&&o.a.createElement(cE,{wrapper:t}),h.length>0&&o.a.createElement(Hw,{planet:t,notifs:h}))}function fE(){return o.a.createElement("div",null,o.a.createElement("p",null,"This pane allows you to interact with the currently selected planet. Pressing the ESCAPE key allows you to deselect the current planet."))}function dE({hook:e}){const t=xi(),n=Pi(t),r=Object(i.useCallback)(e=>o.a.createElement(uE,{modal:e,planet:n,uiManager:t}),[t,n]);return o.a.createElement(zo,{hook:e,title:e=>o.a.createElement(tb,{small:e,planet:n}),hideClose:!0,noPadding:!0,helpContent:fE,width:"350px"},r)}function hE({planet:e,children:t}){const n=xi(),r=nr.getInstance();return o.a.createElement(oo,{color:Pe.colors.text,onClick:()=>{ct(e)&&(null==n||n.setSelectedPlanet(e),r.emit("CenterPlanet",e))}},t)}const pE=le.c.table.withConfig({displayName:"TableElement",componentId:"sc-sletjn"})`
3236  overflow-y: scroll;
3237  scrollbar-width: initial;
3238  border-radius: ${Pe.borderRadius};
3239`,mE=le.c.tbody.withConfig({displayName:"ScrollableBody",componentId:"sc-m7k3rs"})`
3240  width: 100%;
3241  max-height: 400px;
3242`,gE={r:"right",l:"left",c:"center"};function vE({rows:e,headers:t,columns:n,alignments:r,headerStyle:i}){return o.a.createElement(pE,null,o.a.createElement("thead",{style:i},o.a.createElement("tr",null,t.map((e,t)=>o.a.createElement("th",{key:t,style:r&&{textAlign:gE[r[t]]}||{}},e)))),o.a.createElement(mE,null,e.map((e,t)=>o.a.createElement("tr",{key:t},n.map((n,i)=>o.a.createElement("td",{key:i,style:r&&{textAlign:gE[r[i]]}||{}},n(e,t)))))))}const yE=le.c.div.withConfig({displayName:"TableCell",componentId:"sc-zf5kb0"})`
3243  padding: 2px 4px;
3244`,bE=Object(le.c)(yE).withConfig({displayName:"Header",componentId:"sc-3qpn4m"})`
3245  ${({isActive:e,isReverse:t})=>le.b`
3246    padding: 2px 4px;
3247    font-weight: normal;
3248    color: ${Pe.colors.text};
3249    user-select: none;
3250    cursor: pointer;
3251    ${e&&"text-decoration: underline;"}
3252    ${e&&"font-weight: bold;"}
3253    ${t&&"transform: scaleY(-1);"}
3254
3255    &:hover {
3256      text-decoration: underline;
3257    }
3258  `}
3259`;function wE({rows:e,headers:t,columns:n,sortFunctions:r,alignments:a}){const[s,l]=Object(i.useState)(void 0),[c,u]=Object(i.useState)(!1),f=void 0!==s?r[s]:void 0,d=[...e];void 0!==f&&d.sort((e,t)=>c?f(t,e):f(e,t));const h=Object(i.useCallback)(e=>{s===e?c?(u(!1),l(void 0)):u(!0):(l(e),u(!1))},[s,c]);return o.a.createElement(vE,{headerStyle:{backgroundColor:Pe.colors.background,position:"sticky",top:0},rows:d,headers:t.map((e,t)=>o.a.createElement(bE,{key:t,onClick:()=>h(t),isActive:s===t,isReverse:c&&s===t},e)),columns:n.map(e=>function(t,n){return o.a.createElement(yE,null,e(t,n))}),alignments:a})}const EE=le.c.div.withConfig({displayName:"StyledPlanetThumb",componentId:"sc-10hd0fq"})`
3260  width: 20px;
3261  height: 20px;
3262  position: relative;
3263  line-height: 0;
3264  z-index: -1;
3265
3266  /* Set the Icon color if specified on the outer component */
3267  --df-icon-color: ${({iconColor:e})=>e};
3268`,kE=le.c.div.withConfig({displayName:"PlanetElement",componentId:"sc-qy867o"})`
3269  position: absolute;
3270  width: 100%;
3271  height: 100%;
3272  top: 0;
3273  left: 0;
3274  display: flex;
3275  justify-content: center;
3276  align-items: center;
3277`,xE=le.c.span.withConfig({displayName:"PlanetName",componentId:"sc-chfpah"})`
3278  display: block;
3279  white-space: nowrap;
3280  overflow: hidden;
3281  text-overflow: ellipsis;
3282  max-width: 100px;
3283`,SE=le.c.div.withConfig({displayName:"TableContainer",componentId:"sc-13yy664"})`
3284  max-height: 300px;
3285  height: 300px;
3286  overflow-y: scroll;
3287`;function _E({planet:e}){const t=5+2*e.planetLevel,{speed:n,range:r,defense:i}=wf.colors.belt,{baseStr:a}=It.getPlanetCosmetic(e),s=1.5*t,l=Math.max(2,s/7);return e.planetType===de.PlanetType.SILVER_MINE?o.a.createElement(EE,{iconColor:a},o.a.createElement(en,{type:Kt.IconType.Silver})):e.planetType===de.PlanetType.SILVER_BANK?o.a.createElement(EE,{iconColor:a},o.a.createElement(en,{type:Kt.IconType.SilverGrowth})):e.planetType===de.PlanetType.RUINS?o.a.createElement(EE,{iconColor:a},o.a.createElement(en,{type:Kt.IconType.Artifact})):e.planetType===de.PlanetType.TRADING_POST?o.a.createElement(EE,{iconColor:a},o.a.createElement(en,{type:Kt.IconType.Withdraw})):o.a.createElement(EE,null,o.a.createElement(kE,null,o.a.createElement("div",{style:{width:t+"px",height:t+"px",borderRadius:t/2+"px",background:a}})),o.a.createElement(kE,null,o.a.createElement("div",{style:{width:s+"px",height:l+"px",borderRadius:2*s+"px",background:mt(e)>0?(()=>{const t=It.getPlanetClass(e),o=[i,r,n][t];return It.rgbStr(o)})():"none"}})))}function AE({planet:e}){return o.a.createElement("span",null,Rl(e)?o.a.createElement(sr,null,"yes"):o.a.createElement(lr,null,"no"))}function CE({planet:e}){const t=Nr(xi().getEthConnection().blockNumber$,void 0);return void 0!==e.prospectedBlockNumber&&void 0!==t&&Il(e,t)?o.a.createElement("span",null,Ol(t,e.prospectedBlockNumber)):o.a.createElement(lr,null,"n/a")}function TE(e){return e?1:0}function PE(){return o.a.createElement("div",null,o.a.createElement("p",null,"These are all the planets you currently own."),o.a.createElement(uo,{height:8}),o.a.createElement("p",null,"The table is interactive, and allows you to sort the planets by clicking each column's header. You can also navigate to a planet that you own by clicking on its name. The planet you click will be centered at the spot on the screen where the current planet you have selected is located."))}function OE({hook:e}){const t=xi(),n=Nr(t.getEthConnection().blockNumber$,void 0),[r,a]=e,[s,l]=Object(i.useState)([]);Object(i.useEffect)(()=>{if(!t)return;const e=t.getAccount();if(!e)return;const n=t.getAllOwnedPlanets().filter(t=>t.owner===e);l(n)},[r,t]),Object(i.useEffect)(()=>{if(!t)return;if(!r)return;const e=setInterval(()=>{if(!t)return;const e=t.getAccount();if(!e)return;const n=t.getAllOwnedPlanets().filter(t=>t.owner===e);l(n)},1e4);return()=>{clearInterval(e)}},[r,t]);const c=["","Planet Name","Level","Energy","Silver","Artifacts","Prospect","Find"],u=["r","l","r","r","r","r","r","r"],f=[e=>o.a.createElement(_E,{planet:e}),e=>o.a.createElement(hE,{planet:e},o.a.createElement(xE,null,It.getPlanetName(e))),e=>o.a.createElement(lr,null,e.planetLevel),e=>o.a.createElement(lr,null,ht(e.energy)),e=>o.a.createElement(lr,null,ht(e.silver)),e=>o.a.createElement(lr,null,ht(e.heldArtifactIds.length)),e=>o.a.createElement(AE,{planet:e}),e=>o.a.createElement(CE,{planet:e})],d=[(e,t)=>0,(e,t)=>{const[n,r]=[It.getPlanetName(e),It.getPlanetName(t)];return n.localeCompare(r)},(e,t)=>t.planetLevel-e.planetLevel,(e,t)=>t.energy-e.energy,(e,t)=>t.silver-e.silver,(e,t)=>{const[n,r]=[e.heldArtifactIds.length,t.heldArtifactIds.length];return r-n},(e,t)=>TE(Rl(t))-TE(Rl(e)),(e,t)=>void 0===n?0:Ol(n,t.prospectedBlockNumber)-Ol(n,e.prospectedBlockNumber)];let h;return h=0===s.length?o.a.createElement(vo,{width:fe.RECOMMENDED_MODAL_WIDTH,height:"100px"},"Loading Your Home Planet..."):o.a.createElement(SE,null,o.a.createElement(wE,{rows:s,headers:c,columns:f,sortFunctions:d,alignments:u})),o.a.createElement(zo,{hook:e,title:"Planet Dex",name:3,width:"unset",helpContent:PE},o.a.createElement(Vi,null,h))}function ME({modal:e,children:t,artifact:n}){const r=Object(i.useCallback)(()=>{e.push({element:()=>o.a.createElement(Nb,{artifactId:null==n?void 0:n.id,modal:e}),title:Kn(n)})},[n,e]);return o.a.createElement(oo,{color:Pe.colors.text,onClick:r},t)}const IE=le.c.div.withConfig({displayName:"ArtifactsBody",componentId:"sc-g383mj"})`
3288  max-height: 400px;
3289  overflow-y: scroll;
3290`,RE=le.c.span.withConfig({displayName:"PlanetName",componentId:"sc-d2k5wd"})`
3291  display: block;
3292  white-space: nowrap;
3293  overflow: hidden;
3294  text-overflow: ellipsis;
3295  max-width: 100px;
3296`,LE=(e,t)=>{const n=null==t?void 0:t.getArtifactPlanet(e);if(n)return It.getPlanetName(n)};function NE(){return o.a.createElement("div",null,o.a.createElement("p",null,"These are all the artifacts you currently own."),o.a.createElement(uo,{height:8}),o.a.createElement("p",null,"The table is interactive, and allows you to sort the artifacts by clicking each column's header. You can also view more information about a particular artifact by clicking on its name."))}function jE({modal:e}){const t=xi(),n=function(e){var t;const n=Mi(e);return Array.from((null===(t=n.value)||void 0===t?void 0:t.values())||[])}(t),r=[t=>o.a.createElement(ME,{modal:e,artifact:t},Kn(t)),e=>{const n=t.getArtifactPlanet(e),r=LE(e,t);return o.a.createElement("span",null,r&&n?o.a.createElement(hE,{planet:n},o.a.createElement(RE,null,r)):o.a.createElement(lr,null,"inventory"))},e=>o.a.createElement(lr,null,de.ArtifactTypeNames[e.artifactType]),e=>o.a.createElement(Wn,{rarity:e.rarity})],i=[(e,t)=>Kn(e).localeCompare(Kn(t)),(e,n)=>{var r;return(null===(r=LE(e,t))||void 0===r?void 0:r.localeCompare(LE(n,t)||""))||0},(e,t)=>{var n;return(null===(n=de.ArtifactTypeNames[e.artifactType])||void 0===n?void 0:n.localeCompare(de.ArtifactTypeNames[t.artifactType]||""))||0},(e,t)=>e.rarity-t.rarity];return 0===n.length?o.a.createElement(vo,{width:fe.RECOMMENDED_MODAL_WIDTH,height:"100px"},"You Don't Have ",o.a.createElement("br",null)," Any Artifacts"):o.a.createElement(IE,null,o.a.createElement(wE,{rows:n,headers:["Name","Location","Type","Rarity"],columns:r,sortFunctions:i,alignments:["l","r","r","r"]}))}function BE({hook:e}){const t=Object(i.useCallback)(e=>o.a.createElement(jE,{modal:e}),[]);return o.a.createElement(zo,{title:"Your Artifacts",hook:e,name:9,helpContent:NE},t)}var FE=n(148);function DE({title:e,container:t,children:n,hook:r}){return s.a.createPortal(i.createElement(zo,{title:e,hook:r},n),t)}const zE=le.c.span.withConfig({displayName:"Error",componentId:"sc-uf94ld"})`
3297  color: red;
3298`,UE=le.c.div.withConfig({displayName:"Actions",componentId:"sc-ve32rf"})`
3299  float: right;
3300`;class $E extends o.a.Component{constructor(){super(...arguments),this.closeEditor=void 0,this.state={error:void 0,modalOpen:!1,rendered:!1},this.saveRef=e=>{this.renderedPluginRef=e},this.runClicked=()=>{this.setModalIsOpen(!0)},this.editClicked=()=>{this.closeEditor=this.props.openEditorForPlugin(this.props.plugin.id)},this.deletePluginClicked=()=>{this.props.deletePlugin(this.props.plugin.id),this.closeEditor&&this.closeEditor()},this.setModalIsOpen=e=>{var t;e||null===(t=this.props.pluginManager)||void 0===t||t.destroy(this.props.plugin.id),this.setState({modalOpen:e},()=>{var e;this.state.modalOpen&&this.renderedPluginRef&&(null===(e=this.props.pluginManager)||void 0===e||e.render(this.props.plugin.id,this.renderedPluginRef))})}}render(){return o.a.createElement(o.a.Fragment,null,this.state.modalOpen?o.a.createElement(DE,{hook:[this.state.modalOpen,this.setModalIsOpen],title:this.props.plugin.name,container:this.props.modalsContainer},o.a.createElement(ho,{ref:this.saveRef})):null,o.a.createElement("div",null,o.a.createElement(fo,{maxWidth:"150px",style:{verticalAlign:"unset"}},o.a.createElement(lr,null,this.props.plugin.name,this.state.error&&o.a.createElement(zE,null," "+this.state.error))),o.a.createElement(uo,{width:8}),o.a.createElement(UE,null,o.a.createElement(tt,{textColor:"#aaa",color:Pe.colors.dfblue,noBorder:!0,onClick:this.editClicked},"edit"),o.a.createElement(uo,{width:4}),o.a.createElement(tt,{textColor:"#aaa",color:Pe.colors.dfred,noBorder:!0,onClick:this.deletePluginClicked},"del"),o.a.createElement(uo,{width:4}),o.a.createElement(tt,{textColor:"#aaa",color:Pe.colors.dfgreen,noBorder:!0,onClick:this.runClicked},"run"))))}}var HE=n(104),JE=n(149),GE=n.n(JE);const VE=(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from("string"==typeof e?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce((function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map((function(e){var t,n;return null!==(n=null===(t=e.match(/[\t ]/g))||void 0===t?void 0:t.length)&&void 0!==n?n:0}))):e}),[]);if(i.length){var o=new RegExp("\n[\t ]{"+Math.min.apply(Math,i)+"}","g");r=r.map((function(e){return e.replace(o,"\n")}))}r[0]=r[0].replace(/^\r?\n/,"");var a=r[0];return t.forEach((function(e,t){var n=a.match(/(?:^|\n)( *)$/),i=n?n[1]:"",o=e;"string"==typeof e&&e.includes("\n")&&(o=String(e).split("\n").map((function(e,t){return 0===t?e:""+i+e})).join("\n")),a+=o+r[t+1]})),a})`
3301  /**
3302   * Remember, you have access these globals:
3303   * 1. df - Just like the df object in your console.
3304   * 2. ui - For interacting with the game's user interface.
3305   *
3306   * Let's log these to the console when you run your plugin!
3307   */
3308  console.log(df, ui);
3309
3310  class Plugin {
3311    constructor() {}
3312
3313    /**
3314     * Called when plugin is launched with the "run" button.
3315     */
3316    async render(container) {}
3317
3318    /**
3319     * Called when plugin modal is closed.
3320     */
3321    destroy() {}
3322  }
3323
3324  /**
3325   * And don't forget to export it!
3326   */
3327  export default Plugin;
3328`;n(277);const XE=le.c.div.withConfig({displayName:"EditorContainer",componentId:"sc-18b52q"})`
3329  overflow-y: scroll;
3330  border: 1px solid ${Pe.colors.borderDark};
3331  border-radius: ${Pe.borderRadius};
3332  width: 500px;
3333  height: 500px;
3334
3335  .df-editor {
3336    width: 100%;
3337    min-height: 100%;
3338  }
3339`;function WE({pluginHost:e,pluginId:t,setIsOpen:n,overwrite:r}){const o=t?null==e?void 0:e.getPluginFromLibrary(t):void 0,[a,s]=Object(i.useState)(null==o?void 0:o.name),[l,c]=Object(i.useState)((null==o?void 0:o.code)||VE);return i.createElement(Vi,null,i.createElement(Mr,{wide:!0,placeholder:"no name",value:a,onChange:function(e){s(e.target.value)}}),i.createElement(uo,{height:8}),i.createElement(XE,null,i.createElement(GE.a,{className:"df-editor",value:l||"",onValueChange:c,highlight:e=>HE.highlight(e,HE.languages.javascript,"javascript"),padding:10,style:{fontFamily:'"Fira code", "Fira Mono", monospace',fontSize:12}})),i.createElement(uo,{height:8}),i.createElement(tt,{wide:!0,onClick:function(){r(a||"no name",l||"",t),n(!1)},style:{height:"3em"}},"Save"))}function qE(){return i.createElement("div",null,i.createElement("p",null,"Plugins are bits of code that can be written by anyone, and allows the writer to program the game. Plugins range from cosmetic (try the rage cage plugin) to functional (imagine a plugin that fights your wars for you)."),i.createElement(uo,{height:8}),i.createElement("p",null,"Dark Forest maintains a repository to which community members can submit their own plugins. You can find it ",i.createElement(oo,{to:"https://plugins.zkga.me/"},"here"),"."),i.createElement(uo,{height:8}),i.createElement("p",null,"Try editing one of the default plugins to see how it works!"))}
3339function KE({gameUIManager:e,hook:t,modalsContainer:n}){const r=e.getPluginManager(),o=Nr(r.plugins$,r.getLibrary()),a=e.getAccount(),[s,l]=Object(i.useState)(!1),[c,u]=Object(i.useState)(!1),[f,d]=Object(i.useState)(8),[h,p]=Object(i.useState)(),[m,g]=Object(i.useState)(0);function v(e){return a&&$r(a,"HasAcceptedPluginRisk")?(u(!1),l(!0),g(m+1),h!==e&&p(e),()=>{l(!1)}):(u(!0),()=>{})}function y(e){confirm("are you sure you want to delete this plugin?")&&(null==r||r.deletePlugin(e))}function b(e){null==r||r.reorderPlugins(e.map(e=>e.id))}return Object(i.useEffect)(()=>{null==r||r.load()},[r]),r?i.createElement(i.Fragment,null,i.createElement(DE,{container:n,title:"WARNING",hook:[c,u]},i.createElement(Xi,null,i.createElement("p",null,"Dark Forest supports plugins, which allow you to write JavaScript code that can interact with the game. Plugins are powerful and can enhance your gameplay experience, but they can also be dangerous!"),i.createElement("br",null),i.createElement("p",null,"Be careful using plugins that were authored by somebody other than yourself! Plugins can impersonate your account, and steal all your money. A malicious plugin could transfer all your planets and artifacts to somebody else!"),i.createElement("br",null),i.createElement(tt,{borderColor:Pe.colors.dfred,textColor:Pe.colors.dfred,onClick:()=>{1===f&&(a&&Ur(a,"HasAcceptedPluginRisk",!0+""),u(!1)),d(f-1)}},"Click ",f," times for Plugins"))),i.createElement(DE,{container:n,title:"Plugin Editor",hook:[s,l]},i.createElement(WE,{key:h+""+m,pluginId:h,setIsOpen:l,pluginHost:r,overwrite:(e,t,n)=>{if(n&&t)null==r||r.overwritePlugin(e||"no name",t,n);else{const n=et();null==r||r.addPluginToLibrary(n,e||"no name",t||"")}}})),i.createElement(zo,{hook:t,title:"Plugin Library",name:11,helpContent:qE},i.createElement(Xi,null,0===o.length?"you have no plugins!":i.createElement(i.Fragment,null,i.createElement(FE.ReactSortable,{list:o,setList:b},o.map(e=>i.createElement($E,{key:e.id+e.lastEdited,pluginManager:r,plugin:e,openEditorForPlugin:v,deletePlugin:y,modalsContainer:n})))),i.createElement(uo,{height:8}),i.createElement(tt,{onClick:function(){v(void 0)}},"Add Plugin")))):null}const ZE=le.c.div.withConfig({displayName:"StyledPrivatePane",componentId:"sc-t5sn1n"})`
3340  width: 36em;
3341  height: 10em;
3342  & > div {
3343    display: flex;
3344    flex-direction: row;
3345    justify-content: space-between;
3346  }
3347`;function YE({hook:e}){const t=xi(),[n,r]=Object(i.useState)(void 0),[a,s]=Object(i.useState)(void 0);return Object(i.useEffect)(()=>{if(!t)return;r(t.getPrivateKey());const e=t.getHomeCoords();s(e?`(${e.x}, ${e.y})`:"")},[t]),o.a.createElement(zo,{hook:e,title:"View Secret Key and Home Coords",name:18},o.a.createElement(ZE,null,o.a.createElement("p",null,o.a.createElement(lr,null,o.a.createElement("u",null,"secret key"))),o.a.createElement("p",null,n),o.a.createElement("br",null),o.a.createElement("p",null,o.a.createElement(lr,null,o.a.createElement("u",null,"Home Coords"))),o.a.createElement("p",null,a)))}const QE=Math.round(1e4*(rr()-1)),ek=le.c.input.withConfig({displayName:"Range",componentId:"sc-1i0njqc"})``,tk=Object(le.c)(Vi).withConfig({displayName:"SettingsContent",componentId:"sc-12cuuyo"})`
3348  width: 500px;
3349  height: 500px;
3350  overflow-y: scroll;
3351  display: flex;
3352  flex-direction: column;
3353  text-align: justify;
3354`,nk=le.c.div.withConfig({displayName:"Row",componentId:"sc-1goimxr"})`
3355  display: flex;
3356  flex-direction: row;
3357
3358  justify-content: space-between;
3359  align-items: center;
3360
3361  & > span:first-child {
3362    flex-grow: 1;
3363  }
3364`,rk=Object(le.c)(Mr).withConfig({displayName:"ScrollSpeedInput",componentId:"sc-1megi8r"})`
3365  padding: 2px 2px;
3366  width: 8em;
3367  height: min-content;
3368`;function ik({ethConnection:e,hook:t,privateHook:n}){const r=xi(),a=Ci(r),s=Nr(e.gasPrices$,e.getAutoGasPrices()),[l,c]=Object(i.useState)(e.getRpcEndpoint()),[u,f]=Object(i.useState)(0);Object(i.useEffect)(()=>{if(!r)return;const e=()=>{f(r.getMyBalance())};e();const t=setInterval(e,1e3);return()=>{clearInterval(t)}},[r]);const[d,h]=Object(i.useState)(""),[p,m]=Object(i.useState)(""),[g,v]=Object(i.useState)("");Object(i.useEffect)(()=>{d&&m("")},[d]),Object(i.useEffect)(()=>{p&&h("")},[p]);const[y,b]=Object(i.useState)(8),[,w]=n,[E,k]=Object(i.useState)(QE),x=e=>{const t=parseFloat(e.target.value);isNaN(t)||k(t)};return Object(i.useEffect)(()=>{const e=localStorage.getItem("scrollSpeed");e&&k(1e4*(parseFloat(e)-1))},[k]),Object(i.useEffect)(()=>{or.instance&&or.instance.setMouseSensitivty(E/1e4)},[E]),o.a.createElement(zo,{hook:t,title:"Settings",name:7},o.a.createElement(tk,null,o.a.createElement(Qi,null,o.a.createElement(Y
3368i,null,"Burner Wallet Info"),o.a.createElement(nk,null,o.a.createElement("span",null,"Public Key"),o.a.createElement("span",null,a)),o.a.createElement(nk,null,o.a.createElement("span",null,"Balance"),o.a.createElement("span",null,u))),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Gas Price"),"Your gas price setting determines the price you pay for each transaction. A higher gas price means your transactions will be prioritized by the blockchain, making them confirm faster. We recommend using the auto average setting. All auto settings prices are pulled from an oracle and are capped at 15 gwei.",o.a.createElement(uo,{height:16}),o.a.createElement(qr,{wide:!0,uiManager:r,setting:"GasFeeGwei",values:["1","2","5","10","20","40",de.AutoGasSetting.Slow,de.AutoGasSetting.Average,de.AutoGasSetting.Fast],labels:["1 gwei (default)","2 gwei (faster)","5 gwei (turbo)","10 gwei (mega turbo)","20 gwei (need4speed)","40 gwei (gigafast)",`slow auto (~${s.slow} gwei)`,`average auto (~${s.average} gwei)`,`fast auto (~${s.fast} gwei)`]})),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Burner Wallet Info (Private)"),"Your secret key, together with your home planet's coordinates, grant you access to your Blue Forest account on different browsers. You should save this info somewhere on your computer.",o.a.createElement(uo,{height:16}),o.a.createElement(dr,null,"WARNING:")," Never ever send this to anyone!",o.a.createElement(uo,{height:8}),o.a.createElement(tt,{wide:!0,onClick:e=>{b(e=>e-1),1===y&&(w(!0),b(5))}},"Click ",y," times to view info")),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Auto Confirm Transactions"),"Whether or not to auto-confirm all transactions, except purchases. This will allow you to make moves, spend silver on upgrades, etc. without requiring you to confirm each transaction. However, the client WILL ask for confirmation before sending transactions that spend wallet funds.",o.a.createElement(uo,{height:16}),o.a.createElement(Xr,{uiManager:r,setting:"AutoApproveNonPurchaseTransactions",settingDescription:"auto confirm non-purchase transactions"})),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Import and Export Map Data"),o.a.createElement(dr,null,"WARNING:")," Maps from others could be altered and are not guaranteed to be correct!",o.a.createElement(uo,{height:16}),o.a.createElement(Mr,{wide:!0,value:g,placeholder:"Paste map contents here",onChange:e=>v(e.target.value)}),o.a.createElement(uo,{height:8}),o.a.createElement(tt,{wide:!0,onClick:async()=>{try{const e=JSON.parse(g);await r.bulkAddNewChunks(e),v("")}catch(e){h("Invalid map data. Check the data in your clipboard.")}},disabled:0===g.length},"Import Map From Above"),o.a.createElement(uo,{height:8}),o.a.createElement(tt,{wide:!0,onClick:async()=>{if(r){const e=r.getExploredChunks(),t=Array.from(e);try{const e=JSON.stringify(t);await window.navigator.clipboard.writeText(e),m("Copied map!")}catch(e){console.error(e),h("Failed to export")}}else h("Unable to export map right now.")}},"Copy Map to Clipboard"),o.a.createElement(uo,{height:8}),o.a.createElement(tt,{wide:!0,onClick:async()=>{if(r){let e,t;try{e=await window.navigator.clipboard.readText()}catch(e){return console.error(e),void h("Unable to import map. Did you allow clipboard access?")}try{t=JSON.parse(e)}catch(e){return console.error(e),void h("Invalid map data. Check the data in your clipboard.")}await r.bulkAddNewChunks(t),m("Successfully imported a map!")}else h("Unable to import map right now.")}},"Import Map from Clipboard"),o.a.createElement(uo,{height:8}),o.a.createElement(sr,null,p),o.a.createElement(dr,null,d)),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Change RPC Endpoint"),o.a.createElement(uo,{height:8}),"Current RPC Endpoint: ",l,o.a.createElement(uo,{height:8}),o.a.createElement(Mr,{wide:!0,value:l,onChange:e=>c(e.target.value)}),o.a.createElement(uo,{height:8}),o.a.createElement(tt,{wide:!0,onClick:()=>{e.setRpcUrl(l).then(()=>{localStorage.setItem("XDAI_RPC_ENDPOINT_v5",l),console.log("rpcURL",l)}).catch(()=>{c(e.getRpcEndpoint())})}},"Change RPC URL")),o.a.createElement(Qi,null,o.a.createElement(Y
3368i,null,"Metrics Opt Out"),"We collect a minimal set of data and statistics such as SNARK proving times, average transaction times across browsers, and xDAI transaction errors, to help us optimize performance and fix bugs. This does not include personal data like email or IP address.",o.a.createElement(uo,{height:8}),o.a.createElement(Xr,{uiManager:r,setting:"OptOutMetrics",settingDescription:"metrics opt out"})),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Performance"),"High performance mode turns off background rendering, and reduces the detail at which smaller planets are rendered.",o.a.createElement(uo,{height:8}),o.a.createElement(Xr,{uiManager:r,setting:"HighPerformanceRendering",settingDescription:"high performance mode"}),o.a.createElement(uo,{height:8}),o.a.createElement(Xr,{uiManager:r,setting:"DisableEmojiRendering",settingDescription:"disable emoji rendering"}),o.a.createElement(uo,{height:8}),o.a.createElement(Xr,{uiManager:r,setting:"DisableHatRendering",settingDescription:"disable hat rendering"})),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Notifications"),o.a.createElement(uo,{height:8}),o.a.createElement(Xr,{uiManager:r,setting:"MoveNotifications",settingDescription:"show notifications for move transactions"}),o.a.createElement(uo,{height:8}),"Auto clear transaction confirmation notifications after this many seconds. Set to a negative number to not auto-clear.",o.a.createElement(uo,{height:8}),o.a.createElement(Wr,{uiManager:r,setting:"AutoClearConfirmedTransactionsAfterSeconds"}),o.a.createElement(uo,{height:8}),"Auto clear transaction rejection notifications after this many seconds. Set to a negative number to not auto-clear.",o.a.createElement(Wr,{uiManager:r,setting:"AutoClearRejectedTransactionsAfterSeconds"})),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Scroll speed"),o.a.createElement(uo,{height:8}),o.a.createElement(ok,null,o.a.createElement(ek,{type:"range",value:(S=E,Math.max(Math.min(Math.round(S),100),1)),min:1,max:100,step:.1,onChange:x}),o.a.createElement(uo,{width:16}),o.a.createElement(rk,{value:E,onChange:x}))),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Reset Tutorial"),o.a.createElement(uo,{height:8}),o.a.createElement(tt,{wide:!0,onClick:()=>lc.getInstance().reset(r.getAccount())},"Reset Tutorial")),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Disable Default Shortcuts"),"If you'd like to use custom shortcuts via a plugin, you can disable the default shortcuts here.",o.a.createElement(uo,{height:8}),o.a.createElement(Xr,{uiManager:r,setting:"DisableDefaultShortcuts",settingDescription:"toggle disable default shortcuts"})),o.a.createElement(Qi,null,o.a.createElement(Yi,null,"Enable Experimental Features"),"Features that aren't quite ready for production but we think are cool.",o.a.createElement(uo,{height:8}),o.a.createElement(Xr,{uiManager:r,setting:"ExperimentalFeatures",settingDescription:"toggle expeirmental features"}))));var S}const ok=le.c.div.withConfig({displayName:"ScrollContainer",componentId:"sc-1xrzn4p"})`
3369  display: flex;
3370  justify-content: center;
3371  align-items: center;
3372  flex-direction: row;
3373`;function ak({tutorialState:e}){const t=xi(),n=lc.getInstance();return 0===e?o.a.createElement("div",{className:"tutintro"},"Welcome to the universe of ",o.a.createElement(fr,null,"BLUE FOREST"),". Would you like to play the tutorial?",o.a.createElement("div",null,o.a.createElement(tt,{className:"btn",onClick:()=>n.acceptInput(0)},"Yes"),o.a.createElement(tt,{className:"btn",onClick:()=>n.complete(t)},"No"))):1===e?o.a.createElement("div",null,"Welcome to the universe. You've initialized with 50 energy on your home planet, in a NEBULA.",o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement(fr,null,"Click your home planet to learn more.")):2===e?o.a.createElement("div",null,"Well done! In the Selected Planet pane, you'll see more information about your planet. This pane displays quick information about your planet and the ability to send resources.",o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement(fr,null,"Try sending energy to another planet.")," You can click and drag to look for other planets."):3===e?o.a.createElement("div",null,"Congrats, you've submitted a move to xDAI! Moves that are in the mempool are shown as dotted lines. Accepted moves are shown as solid lines.",o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement(fr,null,"Try deselecting a planet now. Click in empty space to deselect.")):4===e?o.a.createElement("div",{className:"tutzoom"},"Great! You'll notice that most of the universe appears grayed out. You need to explore those areas before you can view them.",o.a.createElement("br",null),o.a.createElement("br",null),"You'll notice a target ",o.a.createElement(en,{type:Kt.IconType.Target})," indicating where you are currently exploring. ",o.a.createElement(fr,null,"Press next when you can see it.")," You can also zoom using the mouse wheel.",o.a.createElement("div",null,o.a.createElement(tt,{className:"btn",onClick:()=>n.acceptInput(4)},"Next"))):5===e?o.a.createElement("div",null,"You can move your explorer by using the bottom-left context menu when nothing is selected.",o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement(fr,null,"Try moving your explorer by clicking on the Move ",o.a.createElement(en,{type:Kt.IconType.Target})," button"),", then clicking somewhere in space."):6===e?o.a.createElement("div",null,"Great! You can also pause your explorer by clicking the pause ",o.a.createElement(en,{type:Kt.IconType.Pause})," ","button.",o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement(fr,null,"Try pausing your explorer now.")):7===e?o.a.createElement("div",null,"You can hide the terminal on the right by clicking on its left edge.",o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement(fr,null,"Try hiding the terminal now.")):8===e?o.a.createElement("div",{className:"tutzoom"},o.a.createElement(fr,null,"It's a Lightning Round!")," ",o.a.createElement("br",null),o.a.createElement("br",null),"Have the highest score at the end of the round to win!",o.a.createElement("br",null),o.a.createElement("div",null,o.a.createElement(tt,{className:"btn",onClick:()=>n.acceptInput(8)},"Next"))):9===e?o.a.createElement("div",{className:"tutzoom"},"You can increase your score by withdrawing silver via space time rips, and by finding artifacts. The rarer the artifact, the more points it gives you!",o.a.createElement("div",null,o.a.createElement(tt,{className:"btn",onClick:()=>n.acceptInput(9)},"Next"))):10===e?o.a.createElement("div",{className:"tutalmost"},"Winners of each round of Dark Forest v0.6.x will receive a prize, and be added to the"," ",o.a.createElement(qi,null,"Valhalla")," universe.",o.a.createElement("br",null),o.a.createElement("br",null),"To win, have the highest score (^:",o.a.createElement("div",null,o.a.createElement(tt,{className:"btn",onClick:()=>n.acceptInput(10)},"Next"))):11===e?o.a.createElement("div",{className:"tutalmost"},"This is the end of the tutorial. Go out and explore the universe! More information will pop up in the ",o.a.createElement(fr,null,"upper-right")," as you discover more about the game.",o.a.createElement("br",null),"We hope you enjoy Blue Forest!",o.a.createElement("div",null,o.a.createElement(tt,{className:"btn",onClick:()=>n.complete(t)}
3373,"Finish"))):o.a.createElement(o.a.Fragment,null," ")}const sk=le.c.div.withConfig({displayName:"StyledTutorialPane",componentId:"sc-m2bj4x"})`
3374  display: ${({visible:e})=>e?"block":"none"};
3375  position: absolute;
3376  top: 0;
3377  left: 0;
3378
3379  background: ${Pe.colors.backgroundlighter};
3380  color: ${Pe.colors.text};
3381  padding: 8px;
3382  border-bottom: 1px solid ${Pe.colors.border};
3383  border-right: 1px solid ${Pe.colors.border};
3384
3385  width: 24em;
3386  height: fit-content;
3387
3388  z-index: 10;
3389
3390  & .tutintro {
3391    & > div:last-child {
3392      display: flex;
3393      flex-direction: row;
3394      justify-content: space-around;
3395      margin-top: 1em;
3396    }
3397  }
3398
3399  & .tutzoom,
3400  & .tutalmost {
3401    & > div:last-child {
3402      display: flex;
3403      flex-direction: row;
3404      justify-content: flex-end;
3405      margin-top: 1em;
3406    }
3407  }
3408`;function lk({tutorialHook:e}){const t=xi(),n=lc.getInstance(),[r,a]=Object(i.useState)(0),[s]=e,[l,c]=Vr(t,"TutorialCompleted");return Object(i.useEffect)(()=>{const e=e=>{a(e),c(12===e)};return n.on("StateChanged",e),()=>{n.removeListener("StateChanged",e)}},[n,c]),o.a.createElement(sk,{visible:!l&&s},o.a.createElement(ak,{tutorialState:r}))}function ck({hook:e}){const t=xi(),n=Ti(t),[r,a]=Object(i.useState)(""),[s,l]=Object(i.useState)(!1),[c,u]=Object(i.useState)(!1),[f,d]=Object(i.useState)(!1),h=e=>{a(e.replace("@",""))},p=async()=>{if(t){const e="Verifying my @darkforest_eth v0.6 account (https://zkga.me): "+await t.generateVerificationTweet(r);window.open("https://twitter.com/intent/tweet?hashtags=darkforest&text="+encodeURI(e))}},m=async()=>{try{l(!0),await(null==t?void 0:t.verifyTwitter(r))}catch(e){d(!0)}finally{l(!1)}};return o.a.createElement(zo,{name:5,title:"Connect/Disconnect Twitter",hook:e,initialPosition:{y:100,x:window.innerWidth/2-300}},o.a.createElement(Xi,null,void 0!==n.value&&void 0===n.value.twitter&&o.a.createElement(ng,{tabTitles:["Tweet Proof","Verify Tweet"],tabContents:e=>0===e?o.a.createElement(o.a.Fragment,null,"Tweet a signed message, proving account ownership!",o.a.createElement(uo,{height:8}),o.a.createElement(Mr,{wide:!0,value:r,onChange:e=>h(e.target.value),placeholder:"your twitter handle"}),o.a.createElement(uo,{height:8}),o.a.createElement(io,null),o.a.createElement(tt,{wide:!0,onClick:p},"Tweet")):1===e?o.a.createElement(o.a.Fragment,null,"After tweeting, click the button below to verify ownership!",o.a.createElement(uo,{height:8}),o.a.createElement(Mr,{wide:!0,value:r,onChange:e=>h(e.target.value),placeholder:"your twitter handle"}),o.a.createElement(uo,{height:8}),o.a.createElement(io,null),f&&o.a.createElement(o.a.Fragment,null,o.a.createElement(uo,{height:8}),o.a.createElement(dr,null,"error verifying ownership")),o.a.createElement(tt,{wide:!0,disabled:s,onClick:m},s?o.a.createElement(Uo,{initialText:"Verifying..."}):"Verify")):void 0}),void 0!==n.value&&n.value.twitter&&o.a.createElement(o.a.Fragment,null,"You are connected, ",o.a.createElement(Iv,{twitter:n.value.twitter}),". You can disconnect from twitter anytime by clicking the button below.",o.a.createElement(uo,{height:16}),o.a.createElement(tt,{wide:!0,disabled:c,onClick:async()=>{if(confirm("are you sure you want to disconnect your twitter?"))try{u(!0),await(null==t?void 0:t.disconnectTwitter(r))}catch(e){d(!0)}finally{u(!1)}}},s?o.a.createElement(Uo,{initialText:"Disconnecting Twitter..."}):"Disconnect Twitter"))))}const uk=le.c.div.withConfig({displayName:"StyledZoomPane",componentId:"sc-18j07ez"})`
3409  z-index: ${4};
3410  padding-left: 0.75em;
3411  padding-top: 0.1em;
3412  margin-top: 0;
3413  display: flex;
3414  font-size: 1.5em;
3415  flex-direction: row;
3416  justify-content: flex-end;
3417  height: fit-content;
3418  & > a:first-child {
3419    margin-right: 0.75em;
3420  }
3421  color: ${Pe.colors.subtext};
3422  & > a {
3423    &:hover {
3424      color: ${Pe.colors.text};
3425      cursor: pointer;
3426    }
3427    &:active {
3428      color: ${Pe.colors.subbertext};
3429    }
3430  }
3431`;function fk(){const e=nr.getInstance();return o.a.createElement(uk,null,o.a.createElement("a",{onClick:()=>e.emit("ZoomOut")},o.a.createElement(Sr,null)),o.a.createElement("a",{onClick:()=>e.emit("ZoomIn")},"+"))}function dk({notif:e,onClick:t,style:n}){const{message:r,icon:a}
3431=e,[s,l]=Object(i.useState)(!1);return o.a.createElement(pk,{onMouseLeave:()=>l(!1)},o.a.createElement(mk,{onMouseEnter:()=>l(!0),onClick:t,style:{...n,background:e.color}},a),s&&o.a.createElement(gk,null,r))}function hk(){const[e,t]=Object(i.useState)([]),n=xi();Object(i.useEffect)(()=>{const e=Pr.getInstance(),r=e=>{var r;(n.getBooleanSetting("MoveNotifications")||0!==e.type||"move"!==(null===(r=e.txData)||void 0===r?void 0:r.methodName))&&t(t=>{const n=Me.a.clone(t);for(let r=0;r<t.length;r++)if(t[r].id===e.id)return n[r]=e,n;return n.concat([e])})},i=e=>{t(t=>t.filter(t=>t.id!==e))};return e.on("ClearNotification",i),e.on("Notify",r),()=>{e.removeListener("ClearNotification",i),e.removeListener("Notify",r)}},[n]);return o.a.createElement(vk,null,e.slice(0,Math.min(10,e.length)).map((n,r)=>{return o.a.createElement(dk,{notif:n,key:n.id,onClick:(i=n,()=>{const n=Me.a.clone(e);for(let e=0;e<n.length;e++)n[e].id===i.id&&n.splice(e,1);t(n)}),style:{opacity:1-.13*(r-2)}});var i}))}const pk=le.c.div.withConfig({displayName:"StyledNotification",componentId:"sc-q2byr9"})`
3432  margin: ${"8px"};
3433  display: flex;
3434  flex-direction: row-reverse;
3435  justify-content: flex-start;
3436  &:hover {
3437    z-index: ${16e6};
3438  }
3439`,mk=le.c.div.withConfig({displayName:"NotificationIconContainer",componentId:"sc-10zigrt"})`
3440  width: ${"4em"};
3441  height: ${"4em"};
3442  border-radius: 8px;
3443  border: 1px solid ${Pe.colors.text};
3444  background: ${({color:e})=>e||Pe.colors.backgroundlighter};
3445  overflow: hidden;
3446  display: flex;
3447  flex-grow: 0;
3448  flex-shrink: 0;
3449  flex-direction: row;
3450  justify-content: space-around;
3451  align-items: center;
3452`,gk=le.c.div.withConfig({displayName:"NotificationContent",componentId:"sc-qpehy3"})`
3453  border-radius: ${Ce};
3454  min-height: ${"4em"};
3455  height: ${"4em"};
3456  min-width: 3em;
3457  max-width: 50em;
3458  overflow: scroll;
3459  margin-right: ${"8px"};
3460  background: ${Pe.colors.background};
3461  padding: 0.5em 1em;
3462  border-radius: 2px;
3463  display: flex;
3464  flex-direction: row;
3465  justify-content: flex-start;
3466  align-items: center;
3467  z-index: ${16e6};
3468`,vk=le.c.div.withConfig({displayName:"NotificationsContainer",componentId:"sc-1u59jtz"})`
3469  position: absolute;
3470  top: 0;
3471  right: 0;
3472  z-index: ${1e3};
3473`,yk=le.c.span.withConfig({displayName:"ModalIconText",componentId:"sc-1pegpug"})`
3474  flex-grow: 1;
3475  display: flex;
3476  justify-content: center;
3477  align-items: center;
3478  flex-direction: row;
3479`;function bk(e){const{modal:t,hook:[n,r],text:i}=e;return o.a.createElement(yo,{...e,onClick:e=>{r(e=>!e),e.stopPropagation()}},o.a.createElement(yk,null,(e=>0===e?o.a.createElement(en,{type:Kt.IconType.Help}):1===e?o.a.createElement(en,{type:Kt.IconType.Planet}):2===e?o.a.createElement(en,{type:Kt.IconType.Leaderboard}):3===e?o.a.createElement(en,{type:Kt.IconType.PlanetDex}):4===e?o.a.createElement(en,{type:Kt.IconType.Upgrade}):5===e?o.a.createElement(en,{type:Kt.IconType.Twitter}):6===e?o.a.createElement(en,{type:Kt.IconType.Broadcast}):15===e?o.a.createElement(en,{type:Kt.IconType.Share}):16===e?o.a.createElement(en,{type:Kt.IconType.Lock}):7===e?o.a.createElement(en,{type:Kt.IconType.Hat}):8===e?o.a.createElement(en,{type:Kt.IconType.Settings}):11===e?o.a.createElement(en,{type:Kt.IconType.Plugin}):9===e?o.a.createElement(en,{type:Kt.IconType.Artifact}):12===e?o.a.createElement(en,{type:Kt.IconType.Withdraw}):o.a.createElement("span",null,"T"))(t),void 0!==i&&o.a.createElement(o.a.Fragment,null,o.a.createElement(uo,{width:8}),i)))}function wk({hook:e,text:t,style:n,shortcutKey:r}){return o.a.createElement(bk,{hook:e,modal:0,text:t,style:n,shortcutKey:r})}function Ek({hook:e,text:t,style:n,shortcutKey:r}){return o.a.createElement(bk,{hook:e,modal:3,text:t,style:n,shortcutKey:r})}function kk(e){const{hook:t,text:n,style:r,shortcutKey:i}=e;return o.a.createElement(bk,{...e,hook:t,modal:5,text:n,style:r,shortcutKey:i})}function xk({hook:e,text:t,style:n,shortcutKey:r}){return o.a.createElement(bk,{hook:e,modal:9,text:t,style:n,shortcutKey:r})}function Sk({hook:e,text:t,style:n,shortcutKey:r}){return o.a.createElement(bk,{hook:e,modal:8,text:t,style:n,shortcutKey:r})}function _k({hook:e,text:t,style:n,shortcutKey:r}){return o.a.createElement(bk,{hook:e,modal:11,text:t,style:n,shortcutKey:r})}function Ak({settingsHook:e,helpHook:t,pluginsHook:n,yourArtifactsHook:r,planetdexHook:a}){const[s,l]=Object(i.useState)(!1);return o.a.createElement(Ck,{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)},o.a.createElement(Wi,{style:{zIndex:s?16e6:void 0}},o.a.createElement(Sk,{hook:e,style:{width:"100%",height:"2em",padding:"4px 8px"},text:s?"Settings":void 0,shortcutKey:s?"h":void 0}),o.a.createElement(co,{height:.5}),o.a.createElement(wk,{hook:t,style:{width:"100%",height:"2em",padding:"4px 8px"},text:s?"Help":void 0,shortcutKey:s?"j":void 0}),o.a.createElement(co,{height:.5}),o.a.createElement(_k,{hook:n,style:{width:"100%",height:"2em",padding:"4px 8px"},text:s?"Plugins":void 0,shortcutKey:s?"k":void 0}),o.a.createElement(co,{height:.5}),o.a.createElement(xk,{hook:r,style:{width:"100%",height:"2em",padding:"4px 8px"},text:s?"Your Artifacts":void 0,shortcutKey:s?"l":void 0}),o.a.createElement(co,{height:.5}),o.a.createElement(Ek,{hook:a,style:{width:"100%",height:"2em",padding:"4px 8px"},text:s?"Your Planets":void 0,shortcutKey:s?";":void 0})))}const Ck=le.c.div.withConfig({displayName:"WindowTogglesPaneContainer",componentId:"sc-37ov76"})`
3480  display: flex;
3481  justify-content: center;
3482  align-items: center;
3483  height: 100vh;
3484  position: absolute;
3485  top: 0;
3486  left: 0;
3487`;function Tk(){const e=Nr(xi().getGameManager().networkHealth$,void 0);return e&&0!==e.length?o.a.createElement(o.a.Fragment,null,o.a.createElement("br",null),o.a.createElement(yv,{name:58},o.a.createElement(xo,{style:{width:"100%"}},e&&Object.values(de.AutoGasSetting).map(t=>e.find(e=>e[0]===t)).map(e=>e&&o.a.createElement(Ok,{key:e[0],setting:e[0],confirmationWaitTime:e[1]}))))):o.a.createElement(o.a.Fragment,null)}const Pk={[de.AutoGasSetting.Average]:"avg",[de.AutoGasSetting.Slow]:"slo",[de.AutoGasSetting.Fast]:"fst"};function Ok({setting:e,confirmationWaitTime:t}){return o.a.createElement(lr,null,Pk[e],": ",o.a.createElement(ur,null,(t/1e3).toFixed(2),"s"))}const Mk=le.c.div.withConfig({displayName:"TopBarContainer",componentId:"sc-16rzr4s"})`
3488  z-index: ${4};
3489  padding: 0 2px;
3490`;function Ik({account:e}){const t=Ti(xi(),e);let n;if(t.value){let e="n/a";void 0!==t.value.score&&null!==t.value.score&&(e=t.value.score.toLocaleStr
3490ing()),n=o.a.createElement(lr,null,o.a.createElement(yv,{name:16},"score: ",o.a.createElement(ur,null,e)))}else n=o.a.createElement(lr,null,"n/a");return o.a.createElement(Rk,null,n)}const Rk=le.c.div.withConfig({displayName:"Points",componentId:"sc-15rxsrb"})`
3491  display: inline-block;
3492`;function Lk({twitterVerifyHook:e}){var t,n;const r=Ti(xi()),i=null===(t=r.value)||void 0===t?void 0:t.address,a=null===(n=r.value)||void 0===n?void 0:n.twitter;return o.a.createElement(Mk,null,o.a.createElement(ro,{style:{width:"100%",justifyContent:"space-between"}},o.a.createElement(co,{width:1}),o.a.createElement(Mv,{includeAddressIfHasTwitter:!0}),o.a.createElement(co,{width:1}),o.a.createElement(kk,{small:!0,hook:e,style:{width:a?"1.5em":"100px",height:a?"1.5em":"2em",border:a?"none":void 0},text:a?void 0:"Connect"}),o.a.createElement(co,{width:1}),o.a.createElement(Ik,{account:i}),o.a.createElement(co,{width:1})),o.a.createElement(Tk,null))}function Nk({terminalVisible:e,setTerminalVisible:t}){const n=Object(i.useState)(!1),r=Object(i.useState)(!1),a=Object(i.useState)(!1),s=Object(i.useState)(!1),l=Object(i.useState)(!1),c=Object(i.useState)(!1),u=Object(i.useState)(!1),f=Object(i.useRef)(null),d=xi(),h=Vr(d,"NewPlayer"),p=Vr(d,"TutorialOpen"),m=Pi(d).value,g=Object(i.useState)(!!m),v=Object(i.useState)(!1),[,y]=g,[b,w]=Vr(d,"TerminalVisible");Object(i.useEffect)(()=>{d.setOverlayContainer(f)},[d,f]);const E=d.getAccount();Object(i.useEffect)(()=>{d.getAccount()&&t(d.getBooleanSetting("TerminalVisible"))},[E,d,t]),Object(i.useEffect)(()=>{b!==e&&w(e)},[b,w,e]),Object(i.useEffect)(()=>y(!!m),[m,y]);const k=l[1];$i("h",Object(i.useCallback)(()=>{k(e=>!e)},[k]));const x=n[1];$i("j",Object(i.useCallback)(()=>{x(e=>!e)},[x]));const S=u[1];$i("k",Object(i.useCallback)(()=>{S(e=>!e)},[S]));const _=r[1];$i(";",Object(i.useCallback)(()=>{_(e=>!e)},[_]));const A=a[1];$i("l",Object(i.useCallback)(()=>{A(e=>!e)},[A]));const C=v[1];return $i("i",Object(i.useCallback)(()=>{C(e=>!e)},[C])),$i(Co,d.toggleExplore.bind(d)),$i("`",d.toggleTargettingExplorer.bind(d)),o.a.createElement(Oc,null,o.a.createElement(jk,null,o.a.createElement(Wi,null,o.a.createElement(Lk,{twitterVerifyHook:s}))),o.a.createElement("div",{ref:f},o.a.createElement(Ov,{hook:n}),o.a.createElement(OE,{hook:r}),o.a.createElement(ck,{hook:s}),o.a.createElement(ik,{ethConnection:d.getEthConnection(),hook:l,privateHook:c}),o.a.createElement(YE,{hook:c}),o.a.createElement(BE,{hook:a}),o.a.createElement(dE,{hook:g}),o.a.createElement(og,{hook:v}),f.current&&o.a.createElement(KE,{modalsContainer:f.current,gameUIManager:d,hook:u})),o.a.createElement(hb,{newPlayerHook:h}),o.a.createElement(Mc,null,o.a.createElement(Ic,null,o.a.createElement(Lc,null,o.a.createElement(fk,null)),o.a.createElement(Ak,{settingsHook:l,helpHook:n,pluginsHook:u,yourArtifactsHook:a,planetdexHook:r}),o.a.createElement(Rc,null,o.a.createElement(Zm,null)),o.a.createElement(hk,null),o.a.createElement(eg,null),o.a.createElement(Tv,null),o.a.createElement(ab,null),o.a.createElement(lk,{tutorialHook:p}))))}const jk=le.c.div.withConfig({displayName:"TopBarPaneContainer",componentId:"sc-3ipahk"})`
3493  display: flex;
3494  justify-content: center;
3495  align-items: center;
3496  width: 100vw;
3497  position: absolute;
3498  top: 0;
3499  left: 0;
3500  z-index:1003;
3501`;function Bk(){const e=Y(),t=Object(i.useRef)(),n=Object(i.useRef)(),r=Object(i.useRef)(null),[a,s]=Object(i.useState)(),[l,c]=Object(i.useState)(!0),[u,f]=Object(i.useState)(0),[d,h]=Object(i.useState)(),[p,m]=Object(i.useState)(0);Object(i.useEffect)(()=>{ci().then(e=>h(e)).catch(e=>{alert("error connecting to blockchain"),console.log(e)})},[]);const g=Object(i.useCallback)(async e=>{var t,n,r,i,o;const a=await(async()=>{const e=await Re();return Me.a.keys(e).filter(t=>e[t])})();a.includes("mobile_or_tablet")&&(null===(t=e.current)||void 0===t||t.println("ERROR: Mobile or tablet device detected. Please use desktop.",5)),a.includes("no_idb")&&(null===(n=e.current)||void 0===n||n.println("ERROR: IndexedDB not found. Try using a different browser.",5)),a.includes("unsupported_browser")&&(null===(r=e.current)||void 0===r||r.println("ERROR: Browser unsupported. Try Brave, Firefox, or Chrome.",5)),a.length>0?(null===(i=e.current)||void 0===i||i.print(a.length.toString()+" errors found. ",5),null===(o=e.current)||void 0===o||o.println("Please resolve them and refresh the page."),m(7)):m(1)},[]),v=Object(i.useCallback)(async e=>{var t,n,r,i,a,s,l,c,u,f,d,h,p,g,y,b,w,E;null===(t=e.current)||void 0===t||t.newline(),null===(n=e.current)||void 0===n||n.newline(),null===(r=e.current)||void 0===r||r.printElement(o.a.createElement(Un,{text:"                 Blue Forest"})),null===(i=e.current)||void 0===i||i.newline(),null===(a=e.current)||void 0===a||a.newline(),null===(s=e.current)||void 0===s||s.newline();const k=hc();null===(l=e.current)||void 0===l||l.println(`Found ${k.length} accounts on this device.`),null===(c=e.current)||void 0===c||c.println(""),k.length>0&&(null===(u=e.current)||void 0===u||u.print("(a) ",1),null===(f=e.current)||void 0===f||f.println("Login with existing account.")),null===(d=e.current)||void 0===d||d.print("(n) ",1),null===(h=e.current)||void 0===h||h.println("Generate new burner wallet account."),null===(p=e.current)||void 0===p||p.print("(i) ",1),null===(g=e.current)||void 0===g||g.println("Import private key."),null===(y=e.current)||void 0===y||y.println(""),null===(b=e.current)||void 0===b||b.println("Select an option:",3);const x=await(null===(w=e.current)||void 0===w?void 0:w.getInput());"a"===x&&k.length>0?m(2):"n"===x?m(3):"i"===x?m(4):(null===(E=e.current)||void 0===E||E.println("Unrecognized input. Please try again."),await v(e))},[]),y=Object(i.useCallback)(async e=>{var t,n,r,i,o,a,s,l;null===(t=e.current)||void 0===t||t.println("");const c=hc();for(let t=0;t<c.length;t+=1)null===(n=e.current)||void 0===n||n.print(`(${t+1}): `,1),null===(r=e.current)||void 0===r||r.println(""+c[t].address);null===(i=e.current)||void 0===i||i.println(""),null===(o=e.current)||void 0===o||o.println("Select an account:",3);const u=+(await(null===(a=e.current)||void 0===a?void 0:a.getInput())||"");if(isNaN(u)||u>c.length)null===(s=e.current)||void 0===s||s.println("Unrecognized input. Please try again."),await y(e);else{const t=c[u-1];try{await(null==d?void 0:d.setAccount(t.privateKey)),m(5)}catch(t){null===(l=e.current)||void 0===l||l.println("An unknown error occurred. please try again.",5)}}},[d]),b=Object(i.useCallback)(async e=>{var t,n,r,i,a,s,l,c,u,f,h,p,g,v,y;const b=oa.a.createRandom(),w=b.privateKey,E=Object(Gt.address)(b.address);try{pc(w),null==d||d.setAccount(w),null===(t=e.current)||void 0===t||t.println(""),null===(n=e.current)||void 0===n||n.print("Created new burner wallet with address "),null===(r=e.current)||void 0===r||r.printElement(o.a.createElement(Ac,{text:E,unFocusedWidth:"100px"})),null===(i=e.current)||void 0===i||i.println(""),null===(a=e.current)||void 0===a||a.println(""),null===(s=e.current)||void 0===s||s.println("Note: Burner wallets are stored in local storage.",3),null===(l=e.current)||void 0===l||l.println("They are relatively insecure and 
3501you should avoid "),null===(c=e.current)||void 0===c||c.println("storing substantial funds in them."),null===(u=e.current)||void 0===u||u.println(""),null===(f=e.current)||void 0===f||f.println("Also, clearing browser local storage/cache will render your"),null===(h=e.current)||void 0===h||h.println("burner wallets inaccessible, unless you export your private keys."),null===(p=e.current)||void 0===p||p.println(""),null===(g=e.current)||void 0===g||g.println("Press any key to continue:",3),await(null===(v=e.current)||void 0===v?void 0:v.getInput()),m(5)}catch(t){null===(y=e.current)||void 0===y||y.println("An unknown error occurred. please try again.",5)}},[d]),w=Object(i.useCallback)(async e=>{var t,n,r,i,o,a;null===(t=e.current)||void 0===t||t.println("Enter the 0x-prefixed private key of the account you wish to import",3),null===(n=e.current)||void 0===n||n.println("NOTE: THIS WILL STORE THE PRIVATE KEY IN YOUR BROWSER'S LOCAL STORAGE",3),null===(r=e.current)||void 0===r||r.println("Local storage is relatively insecure. We recommend only importing accounts with zero-to-no funds.");const s=await(null===(i=e.current)||void 0===i?void 0:i.getInput())||"";try{const t=Object(Gt.address)(aa.utils.computeAddress(s));pc(s),null==d||d.setAccount(s),null===(o=e.current)||void 0===o||o.println(`Imported account with address ${t}.`),m(5)}catch(t){null===(a=e.current)||void 0===a||a.println("An unknown error occurred. please try again.",5)}},[d]),E=Object(i.useCallback)(async e=>{var t,n,r,i,o,a;try{const a=null==d?void 0:d.getAddress();if(!a||!d)throw new Error("not logged in");const s=await d.loadContract(Ht.WHITELIST_CONTRACT_ADDRESS,ai),l=await s.isWhitelisted(a);null===(t=e.current)||void 0===t||t.println(""),null===(n=e.current)||void 0===n||n.print("Checking if whitelisted... "),l?(null===(r=e.current)||void 0===r||r.println("Player whitelisted."),null===(i=e.current)||void 0===i||i.println(""),null===(o=e.current)||void 0===o||o.println(`Welcome, player ${a}.`),m(10)):m(6)}catch(t){console.error("error connecting to whitelist: "+t),null===(a=e.current)||void 0===a||a.println("ERROR: Could not connect to whitelist contract. Please refresh and try again in a few minutes.",5),m(17)}},[d,!0]),k=Object(i.useCallback)(async e=>{var t,n,r,i;null===(t=e.current)||void 0===t||t.print("Do you have a whitelist key?",3),null===(n=e.current)||void 0===n||n.println(" (y/n)");const o=await(null===(r=e.current)||void 0===r?void 0:r.getInput());"y"===o?m(8):"n"===o?m(7):(null===(i=e.current)||void 0===i||i.println("Unrecognized input. Please try again."),await k(e))},[]),x=Object(i.useCallback)(async e=>{var t,n,r,i,o,a,s,l,c,u,f;const h=null==d?void 0:d.getAddress();if(!h)throw new Error("not logged in");null===(t=e.current)||void 0===t||t.println("Please enter your invite key. (XXXXX-XXXXX-XXXXX-XXXXX-XXXXX)",1);const p=await(null===(n=e.current)||void 0===n?void 0:n.getInput())||"";null===(r=e.current)||void 0===r||r.print("Processing key... (this may take up to 30s)");const g=await async function(e,t,n){for(var r,i;;){const o=await mi(e,t);if(null==o?void 0:o.error)return;if(null!==o&&o.success)return null!==(r=o.txHash)&&void 0!==r?r:"unknown";null===(i=n.current)||void 0===i||i.print("."),await pi(3e3)}}(p,h,e);null===(i=e.current)||void 0===i||i.newline(),g?(null===(a=e.current)||void 0===a||a.print("Successfully joined game. ",0),null===(s=e.current)||void 0===s||s.print("Welcome, player "),null===(l=e.current)||void 0===l||l.println(h,3),null===(c=e.current)||void 0===c||c.print("Sent player $0.15 :) ",6),null===(u=e.current)||void 0===u||u.printLink("(View Transaction)",()=>{window.open(`${fe.BLOCK_EXPLORER_URL}/${g}`)},6),null===(f=e.current)||void 0===f||f.newline(),m(9)):(null===(o=e.current)||void 0===o||o.println("ERROR: Not a valid key.",5),m(7))},[d]),S=Object(i.useCallback)(async t=>{var n,r,i,o,a,s,l,c,u,f;null===(n=t.current)||void 0===n||n.println("Enter your email address to sign up for the whitelist.",3);const d=await(null===(r=t.current)||void 0===r?void 0:r.getInput())||"";null===(i=t.current)||void 0===i||i.print("Response pending... ");const h=await hi(d);0===h?(null===(o=t.current)||void 0===o||o.println("Email successfully recorded. ",0),null===(a=t.current)||void 0===a||a.println("Keep an eye out for updates and invite keys in the next few weeks. Press ENTER to return to the homepage.",1),m(17),await(await(null===(s=t.current)||void 0===s?void 0:s.getInput())),e.push("/")):1===h?null===(l=t.current)||void 0===l||l.println("Email invalid. Please try again.",5):(null===(c=t.current)||void 0===c||c.print("ERROR: Server error. ",5),null===(u=t.current)||void 0===u||u.print("Press ENTER to return to homepage.",1),await(await(null===(f=t.current)||void 0===f?void 0:f.getInput())),m(17),e.push("/"))},[e]),_=Object(i.useCallback)(async e=>{var t,n,r,i,o,a;if(!(null==d?void 0:d.getAddress()))throw new Error("not logged in");null===(t=e.current)||void 0===t||t.print("Enter your email address. ",3),null===(n=e.current)||void 0===n||n.println("We'll use this email address to notify you if you win a prize.");
3501const s=await(null===(r=e.current)||void 0===r?void 0:r.getInput())||"",l=await(async e=>{if(!e||!ui.validate(e.message.email))return 1;const{success:t}=await fetch("/email/playing",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}).then(e=>e.json());return t?0:2})(await(null==d?void 0:d.signMessageObject({email:s})));0===l?(null===(i=e.current)||void 0===i||i.println("Email successfully recorded."),m(10)):1===l?(null===(o=e.current)||void 0===o||o.println("Email invalid.",5),_(e)):(null===(a=e.current)||void 0===a||a.println("Error recording email.",5),m(10))},[d]),A=Object(i.useCallback)(async e=>{var t,r,i,o,a,l,c;let u;try{if(!d)throw new Error("no eth connection");u=await ec.create(d,e)}catch(n){return console.error(n),m(18),null===(t=e.current)||void 0===t||t.print("Network under heavy load. Please refresh the page, and check ",5),null===(r=e.current)||void 0===r||r.printLink("https://explorer.ps.hmny.io/",()=>{window.open("https://explorer.ps.hmny.io/")},5),void(null===(i=e.current)||void 0===i||i.println(""))}s(u),window.df=u;const f=await fc.create(u,e);if(window.ui=f,null===(o=e.current)||void 0===o||o.newline(),null===(a=e.current)||void 0===a||a.println("Connected to Blue Forest Contract"),n.current=f,u.hasJoinedGame()){if(!!!u.getHomeCoords())return null===(l=e.current)||void 0===l||l.println("ERROR: Home coords not found on this browser.",5),void m(11);null===(c=e.current)||void 0===c||c.println("Validated Local Data..."),m(15)}else m(13)},[d]),C=Object(i.useCallback)(async e=>{var t,n,r,i,o;null===(t=e.current)||void 0===t||t.println("Import account home coordinates? (y/n)",3),null===(n=e.current)||void 0===n||n.println("If you're importing an account, make sure you know what you're doing.");const a=await(null===(r=e.current)||void 0===r?void 0:r.getInput());"y"===a?m(12):"n"===a?(null===(i=e.current)||void 0===i||i.println("Try using a different account and reload."),m(17)):(null===(o=e.current)||void 0===o||o.println("Unrecognized input. Please try again."),await C(e))},[]),T=Object(i.useCallback)(async e=>{var t,r,i,o,a,s,l,c,u;const f=n.current;if(f)try{null===(t=e.current)||void 0===t||t.println("x: ",6);const n=parseInt(await(null===(r=e.current)||void 0===r?void 0:r.getInput())||"");null===(i=e.current)||void 0===i||i.println("y: ",6);const l=parseInt(await(null===(o=e.current)||void 0===o?void 0:o.getInput())||"");if(Number.isNaN(n)||Number.isNaN(l)||Math.abs(n)>2**32||Math.abs(l)>2**32)throw"Invalid home coordinates.";if(!await f.addAccount({x:n,y:l}))throw"Invalid home coordinates.";null===(a=e.current)||void 0===a||a.println("Successfully added account."),null===(s=e.current)||void 0===s||s.println("Initializing game..."),m(15)}catch(t){null===(l=e.current)||void 0===l||l.println("ERROR: "+t,5),null===(c=e.current)||void 0===c||c.println("Please try again.")}else null===(u=e.current)||void 0===u||u.println("ERROR: Game UI Manager not found. Terminating session."),m(17)},[]),P=Object(i.useCallback)(async e=>{var t,r,i,o,a,s,l,c,u,f,d,h,p,g;null===(t=e.current)||void 0===t||t.println("Welcome to BLUE FOREST.");const v=n.current;if(!v)return null===(r=e.current)||void 0===r||r.println("ERROR: Game UI Manager not found. Terminating session."),void m(17);if(Date.now()/1e3>v.getEndTimeSeconds())return null===(i=e.current)||void 0===i||i.println("ERROR: This game has ended. Terminating session."),void m(17);null===(o=e.current)||void 0===o||o.newline(),null===(a=e.current)||void 0===a||a.println("We collect a minimal set of statistics such as SNARK proving"),null===(s=e.current)||void 0===s||s.println("times and average transaction times across browsers, to help "),null===(l=e.current)||void 0===l||l.println("us optimize performance and fix bugs. You can opt out of this"),null===(c=e.current)||void 0===c||c.println("in the Settings pane."),null===(u=e.current)||void 0===u||u.println(""),null===(f=e.current)||void 0===f||f.newline(),null===(d=e.current)||void 0===d||d.println("Press ENTER to find a home planet. This may take up to 120s."),null===(h=e.current)||void 0===h||h.println("This will consume a lot of CPU."),await(null===(p=e.current)||void 0===p?void 0:p.getInput());await new Promise(async t=>{v.joinGame(async t=>{var n,r,i,o,a,s;return console.error(t),null===(n=e.current)||void 0===n||n.println("Error Joining Game:"),null===(r=e.current)||void 0===r||r.println(""),null===(i=e.current)||void 0===i||i.println(t.message,5),null===(o=e.current)||void 0===o||o.println(""),null===(a=e.current)||void 0===a||a.println("Press Enter to Try Again:"),await(null===(s=e.current)||void 0===s?void 0:s.getInput()),!0}).once("InitializedPlayer",()=>{t(!0)}).once("InitializedPlayerError",t=>{var n;null===(n=e.current)||void 0===n||n.println("[ERROR] An error occurred: "+t.toString().slice(0,1e4),5)})})&&(null===(g=e.current)||void 0===g||g.println("Initializing game..."),m(15))},[]),O=Object(i.useCallback)(async e=>{var t,n,r,i,o,a,s,l,c,u,h,p,g,v,y,b,w,E,k,x,S,_,A,C,T,P;try{const f=null==d?void 0:d.getAddress();if(!f||!d)throw new Error("not logged in");null===(t=e.current)||void 0===t||t.println("Checking for bets...");const g=await(null==d?void 0:d.loadContract(Ht.BETTING_CONTRACT_ADDRESS,si));if(g){const t=Object(Jt.weiToEth)(await g.getBet());null===(r=e.current)||void 0===r||r.println(`You have an existing bet of ${t} ONE`),null===(i=e.current)||void 0===i||i.println("Do you wish to add to this bet? (y/n)");if("y"===await(null===(o=e.current)||void 0===o?void 0:o.getInput())){const t=Object(Jt.weiToEth)(await(null==d?void 0:d.loadBalance(f)));null===(a=e.current)||void 0===a||a.println(`Your wallet balance: ${t}
3501 ONE`),null===(s=e.current)||void 0===s||s.println("Enter additional bet amount:");const n=await(null===(l=e.current)||void 0===l?void 0:l.getInput())||"0";try{await g.bet({value:Xt.ethers.utils.parseUnits(n,"ether")})}catch(t){null===(c=e.current)||void 0===c||c.println("ERROR: "+t,5),null===(u=e.current)||void 0===u||u.println("Minimum bet is 2 ONE, please ensure you have sufficient funds.")}null===(h=e.current)||void 0===h||h.println(`Bet placed of ${n} ONE`);const r=Object(Jt.weiToEth)(await g.getBet())+Object(Jt.weiToEth)(Xt.ethers.utils.parseUnits(n,"ether"));null===(p=e.current)||void 0===p||p.println(`Final bet amount: ${r} ONE`)}}else null===(n=e.current)||void 0===n||n.println("ERROR: Betting contract not found. Terminating session.",5),m(17)}catch(t){null===(g=e.current)||void 0===g||g.println("An unknown error occurred. please try again.",5),null===(v=e.current)||void 0===v||v.println(t.message,5)}null===(y=e.current)||void 0===y||y.println(""),null===(b=e.current)||void 0===b||b.println("Press ENTER to begin:"),await(null===(w=e.current)||void 0===w?void 0:w.getInput()),m(16),f(2),null===(E=e.current)||void 0===E||E.clear(),null===(k=e.current)||void 0===k||k.println("Welcome to the Blue Forest.",0),null===(x=e.current)||void 0===x||x.println(""),null===(S=e.current)||void 0===S||S.println("A port of dark forest to the Harmony ecosystem"),null===(_=e.current)||void 0===_||_.println(""),null===(A=e.current)||void 0===A||A.println("This is the Blue Forest interactive JavaScript terminal. Only use this if you know exactly what you're doing."),null===(C=e.current)||void 0===C||C.println(""),null===(T=e.current)||void 0===T||T.println("Try running: df.getAccount()"),null===(P=e.current)||void 0===P||P.println("")},[d]),M=Object(i.useCallback)(async e=>{var t,n,r;const i=await(null===(t=e.current)||void 0===t?void 0:t.getInput())||"";let o="";try{o=(0,eval)(i),void 0!==o&&(null===(n=e.current)||void 0===n||n.println(o.toString(),3))}catch(t){o=t.message,null===(r=e.current)||void 0===r||r.println("ERROR: "+o,5)}M(e)},[]),I=Object(i.useCallback)(async()=>{await Object(Jt.neverResolves)()},[]),R=Object(i.useCallback)(async e=>{0===p&&d?await g(e):1===p?await v(e):2===p?await y(e):3===p?await b(e):4===p?await w(e):5===p?await E(e):6===p?await k(e):8===p?await x(e):7===p?await S(e):9===p?await _(e):10===p?await A(e):11===p?await C(e):12===p?await T(e):13===p?await P(e):15===p?await O(e):16===p?await M(e):18===p&&await I()},[p,E,T,O,C,k,_,S,x,v,M,y,I,A,b,w,P,g,d]);return Object(i.useEffect)(()=>{nr.getInstance().emit("UIChange")},[u]),Object(i.useEffect)(()=>{if(!l){lc.getInstance().acceptInput(7)}},[l]),Object(i.useEffect)(()=>{t.current&&r.current&&R(t)},[t,r,R]),o.a.createElement(gc,{initRender:u,terminalEnabled:l},o.a.createElement(_c,{initRender:u,terminalEnabled:l},n.current&&r.current&&a&&o.a.createElement(Ai,{value:r.current},o.a.createElement(Si,{value:n.current},o.a.createElement(Nk,{terminalVisible:l,setTerminalVisible:c}))),o.a.createElement(xc,{terminalEnabled:l,setTerminalEnabled:c})),o.a.createElement(wc,{initRender:u,terminalEnabled:l},o.a.createElement(Jo,{ref:t,promptCharacter:"$"})),o.a.createElement("div",{ref:r}))}n(151);n(286);le.c.div.withConfig({displayName:"StyledGifMaker",componentId:"sc-87gtmn"})`
3502  overflow-x: scroll;
3503  width: max-content;
3504
3505  input {
3506    color: black;
3507  }
3508
3509  img {
3510    margin-right: 4px;
3511  }
3512`;function Fk(e){return e.toString().padStart(2,"0")}class Dk extends o.a.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("ui rendering error"),console.error(e)}render(){return this.state.hasError?o.a.createElement(zk,null,o.a.createElement(dr,null,this.props.errorMessage)):this.props.children}}const zk=le.c.div.withConfig({displayName:"ErrorBoundaryContent",componentId:"sc-qwgnfd"})`
3513  padding: 8px;
3514  max-width: 350px;
3515`;function Uk(){const{leaderboard:e,error:t}=Li();return o.a.createElement(Dk,{errorMessage:"Error Loading Leaderboard"},!e&&!t&&o.a.createElement(Uo,{initialText:"Loading Leaderboard..."}),e&&o.a.createElement(Vk,{leaderboard:e}),t&&o.a.createElement(dr,null,"Error Loading Leaderboard"))}function $k([e,t]){return null==t?Pe.colors.subtext:0===e?Rn[de.ArtifactRarity.Mythic]:1===e||2===e?Rn[de.ArtifactRarity.Legendary]:e>=3&&e<=6?Rn[de.ArtifactRarity.Epic]:e>=7&&e<=14?Rn[de.ArtifactRarity.Rare]:e>
3515=15&&e<=30?Pe.colors.dfgreen:e>=31&&e<=62?"white":Pe.colors.subtext}function Hk({rows:e}){return o.a.createElement(Wk,null,o.a.createElement(vE,{alignments:["r","l","l","r"],headers:[o.a.createElement(Xk,{key:"place"},"place"),o.a.createElement(Xk,{key:"player"},"player"),o.a.createElement(Xk,{key:"score"},"score"),o.a.createElement(Xk,{key:"bet"},"Bet size(ONE)")],rows:e,columns:[(e,t)=>o.a.createElement(Xk,{style:{color:$k([t,e[1]])}},void 0===e[1]||null===e[1]?"unranked":t+1+"."),(e,t)=>{const n=$k([t,e[1]]);return o.a.createElement(Xk,{style:{color:n}},function(e,t){return e.startsWith("0x")&&42===e.length?o.a.createElement(Ac,{text:e,focusedWidth:"150px",unFocusedWidth:"150px"}):o.a.createElement(Iv,{twitter:e,color:t})}(e[0],n))},(e,t)=>{return o.a.createElement(Xk,{style:{color:$k([t,e[1]])}},null==(n=e[1])?"n/a":(n=Math.floor(n))<1e4?n+"":n.toLocaleString());var n},(e,t)=>o.a.createElement(Xk,{style:{color:$k([t,e[2]])}},e[2])]}))}const Jk=new Date("2021-10-05T04:00:00.000Z").getTime();function Gk(){const[e,t]=Object(i.useState)(""),n=()=>{const e=Jk-(new Date).getTime();t(e<=0?"yes":function(e){if(e<0)return"";const t=Math.floor(e/1e3/60/60),n=Math.floor((e-60*t*60*1e3)/1e3/60),r=Math.floor((e-60*t*60*1e3-60*n*1e3)/1e3);return Fk(t)+":"+Fk(n)+":"+Fk(r)}(e))};return Object(i.useEffect)(()=>{const e=setInterval(()=>{n()},499);return n(),()=>clearInterval(e)},[]),o.a.createElement(o.a.Fragment,null,e)}function Vk({leaderboard:e}){const t=e.entries.filter(e=>void 0!==e.score&&e.score>0);e.entries.sort((e,t)=>"number"!=typeof e.score&&"number"!=typeof t.score?0:"number"!=typeof e.score?1:"number"!=typeof t.score?-1:t.score-e.score);const n=e.entries.map(e=>"string"==typeof e.twitter?[e.twitter,e.score,e.betamount]:[e.ethAddress,e.score,e.betamount]);return o.a.createElement("div",null,o.a.createElement(qk,null,o.a.createElement(Kk,null,o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("td",null,"round alpha complete"),o.a.createElement("td",null,o.a.createElement(Gk,null))),o.a.createElement("tr",null,o.a.createElement("td",null,"players"),o.a.createElement("td",null,e.entries.length)),o.a.createElement("tr",null,o.a.createElement("td",null,"ranked players"),o.a.createElement("td",null,t.length))))),o.a.createElement(uo,{height:8}),o.a.createElement(Hk,{rows:n}))}const Xk=le.c.div.withConfig({displayName:"Cell",componentId:"sc-1adfg9h"})`
3516  padding: 4px 8px;
3517  color: ${Pe.colors.text};
3518`,Wk=le.c.div.withConfig({displayName:"TableContainer",componentId:"sc-17u6a4m"})`
3519  display: inline-block;
3520  border-radius: 2px 2px 0 0px;
3521  border-bottom: none;
3522  padding: 16px;
3523`,qk=le.c.div.withConfig({displayName:"StatsTableContainer",componentId:"sc-awptu"})`
3524  display: flex;
3525  justify-content: center;
3526  align-items: center;
3527  color: ${Pe.colors.text};
3528`,Kk=le.c.table.withConfig({displayName:"StatsTable",componentId:"sc-1cxml7i"})`
3529  td {
3530    padding: 4px 8px;
3531
3532    &:first-child {
3533      text-align: right;
3534      color: ${Pe.colors.subtext};
3535    }
3536
3537    &:last-child {
3538      text-align: left;
3539    }
3540  }
3541`;function Zk(){const e=Y();return o.a.createElement(o.a.Fragment,null,o.a.createElement(De,null),o.a.createElement(Yk,null),o.a.createElement(tx,null,o.a.createElement(uo,{height:150}),o.a.createElement(ex,null,o.a.createElement(Qk,null,o.a.createElement("p",null,o.a.createElement(fr,null,"Blue Forest"),o.a.createElement("br",null),o.a.createElement(nx,null,"zkSNARK space warfare"),o.a.createElement("br",null),o.a.createElement(nx,null,"A port of ",o.a.createElement(so,{to:"https://zkga.me/"},"darkforest")," on Harmony"),o.a.createElement("br",null),o.a.createElement(nx,null,"~ By zkDAO "),o.a.createElement("br",null)),o.a.createElement(uo,{height:16}),o.a.createElement(tt,{style:{borderRadius:"8px",padding:"4px 8px"},color:Pe.colors.dfgreen,onClick:()=>{e.push("/play")}},"Enter")),o.a.createElement(co,{height:3})),o.a.createElement(uo,{height:128}),o.a.createElement(Uk,null),o.a.createElement(uo,{height:256})))}le.c.div.withConfig({displayName:"VariousLinksContainer",componentId:"sc-1mvrg80"})`
3542  position: absolute;
3543  top: 32px;
3544  right: 32px;
3545  display: flex;
3546  justify-content: center;
3547  align-items: center;
3548`;const Yk=le.c.div.withConfig({displayName:"PrettyOverlayGradient",componentId:"sc-1hh8eyw"})`
3549  width: 100vw;
3550  height: 100vh;
3551  background: linear-gradient(to right top, rgba(73, 10, 219, 0.2), rgba(1, 255, 1, 0.2)) fixed;
3552  background-position: 50%, 50%;
3553  display: inline-block;
3554  position: fixed;
3555  top: 0;
3556  left: 0;
3557  z-index: -1;
3558`,Qk=le.c.div.withConfig({displayName:"Header",componentId:"sc-1izu9v8"})`
3559  text-align: center;
3560`,ex=(le.c.div.withConfig({displayName:"EmailWrapper",componentId:"sc-15h89ye"})`
3561  display: flex;
3562  flex-direction: row;
3563`,le.c.tr.withConfig({displayName:"TRow",componentId:"sc-1xqrm59"})`
3564  & td:first-child {
3565    color: ${Pe.colors.subtext};
3566  }
3567  & td:nth-child(2) {
3568    padding-left: 12pt;
3569  }
3570  & td:nth-child(3) {
3571    text-align: right;
3572    padding-left: 16pt;
3573  }
3574`,le.c.div.withConfig({displayName:"MainContentContainer",componentId:"sc-18fn2is"})`
3575  display: flex;
3576  flex-direction: column;
3577  align-items: center;
3578  justify-content: space-between;
3579`),tx=(le.c.span.withConfig({displayName:"TextLinks",componentId:"sc-vovqmw"})`
3580  vertical-align: center;
3581  & a {
3582    transition: color 0.2s;
3583
3584    &:hover {
3585      color: ${Pe.colors.dfblue};
3586    }
3587  }
3588`,le.c.span.withConfig({displayName:"IconLinks",componentId:"sc-1spqgkm"})`
3589  font-size: 18pt;
3590
3591  & a {
3592    margin: 0 6pt;
3593    transition: color 0.2s;
3594    &:hover {
3595      cursor: pointer;
3596      &.link-twitter {
3597        color: ${Pe.colors.icons.twitter};
3598      }
3599      &.link-github {
3600        color: ${Pe.colors.icons.github};
3601      }
3602      &.link-discord {
3603        color: ${Pe.colors.icons.discord};
3604      }
3605      &.link-blog {
3606        color: ${Pe.colors.icons.blog};
3607      }
3608      &.link-email {
3609        color: ${Pe.colors.icons.email};
3610      }
3611    }
3612  }
3613`,le.c.div.withConfig({displayName:"Page",componentId:"sc-l2k2mm"})`
3614  position: absolute;
3615  width: 100%;
3616  height: 100%;
3617  color: white;
3618  font-size: ${Pe.fontSize};
3619  display: flex;
3620  flex-direction: column;
3621  align-items: center;
3622  z-index: ${2};
3623`),nx=le.c.span.withConfig({displayName:"PageText",componentId:"sc-1q6rn25"})`
3624  color: ${Pe.colors.dfblue};
3625`,rx=(le.c.div.withConfig({displayName:"HallOfFameTitle",componentId:"sc-1g3g158"})`
3626  color: ${Pe.colors.subtext};
3627  display: inline-block;
3628  border-bottom: 1px solid ${Pe.colors.subtext};
3629  line-height: 1em;
3630`,le.c.div.withConfig({displayName:"StyledPreview",componentId:"sc-crmots"})`
3631  display: inline-block;
3632  canvas {
3633    border: 1px solid black;
3634    background: black;
3635  }
3636`,de.PlanetType.PLANET),ix=de.Biome.FOREST;de.SpaceType.DEEP_SPACE;le.c.div.withConfig({displayName:"StyledPreviewPage",componentId:"sc-11earpo"})`
3637  div.row {
3638    display: flex;
3639    flex-direction: row;
3640    width: fit-content;
3641
3642    overflow-x: scroll;
3643    width: max-content;
3644  }
3645`;class ox{constructor(e,t,n,r,i){this.viewer=e,this.addressTwitterMap=t,this.contractConstants=n,this.contractsAPI=r,this.persistentChunkStore=i}destroy(){var e;this.contractsAPI.destroy(),null===(e=this.persistentChunkStore)||void 0===e||e.destroy()}static async create(e,t,n){const r=await wi(t),i=await gi(),o=await r.getConstants(),a=n&&await Wa.create(n);return new ox(n,i,o,r,a)}getViewer(){return this.viewer}getTwitter(e){if(e)return this.addressTwitterMap[e]}setPlanetLocationIfKnown(e){let t=void 0;if(e&&ct(e)){const{location:t,biome:n,...r}=e;e=r}if(this.persistentChunkStore)for(const n of this.persistentChunkStore.allChunks()){for(const r of n.planetLocations)if(r.hash===e.locationId){t=r;break}if(t)break}t&&e&&(e.location=t,e.biome=this.getBiome(t))}async loadPlanetFromContract(e){const t=await this.contractsAPI.getPlanetById(e),n=await this.contractsAPI.getConstants();
3645if(!t)throw new Error("unable to load planet with id "+e);const r=await this.contractsAPI.getArrivalsForPlanet(e);r.sort((e,t)=>e.arrivalTime-t.arrivalTime);const i=Date.now()/1e3;for(const e of r){if(i<e.arrivalTime)break;Bl(t,[],e,n)}return Nl(t,[],Date.now(),n),this.setPlanetLocationIfKnown(t),t}async loadArtifactFromContract(e){const t=await this.contractsAPI.getArtifactById(e);if(!t)throw new Error("unable to load artifact with id "+e);return t}spaceTypeFromPerlin(e){return e<this.contractConstants.PERLIN_THRESHOLD_1?de.SpaceType.NEBULA:e<this.contractConstants.PERLIN_THRESHOLD_2?de.SpaceType.SPACE:e<this.contractConstants.PERLIN_THRESHOLD_3?de.SpaceType.DEEP_SPACE:de.SpaceType.DEAD_SPACE}getBiome(e){const{perlin:t,biomebase:n}=e,r=this.spaceTypeFromPerlin(t);if(r===de.SpaceType.DEAD_SPACE)return de.Biome.CORRUPTED;let i=3*r;return n<this.contractConstants.BIOME_THRESHOLD_1?i+=1:n<this.contractConstants.BIOME_THRESHOLD_2?i+=2:i+=3,i}}var ax=ox;const sx=le.c.div.withConfig({displayName:"ShareWrapper",componentId:"sc-sj9fki"})`
3646  width: 100%;
3647  height: 100%;
3648
3649  & p {
3650    margin: 0.5em 0;
3651    & a {
3652      color: ${Pe.colors.dfblue};
3653      &:hover {
3654        text-decoration: underline;
3655      }
3656    }
3657  }
3658`,lx=le.c.div.withConfig({displayName:"OnTop",componentId:"sc-171ph9n"})`
3659  width: 100%;
3660  height: 100%;
3661  position: absolute;
3662  z-index: 2;
3663`,cx=le.c.div.withConfig({displayName:"AddressChooserContainer",componentId:"sc-51jfqh"})`
3664  width: 500px;
3665  background-color: ${Pe.colors.text};
3666  color: black;
3667  padding: 8px;
3668  margin: 4px;
3669`,ux=le.c.div.withConfig({displayName:"AddressOption",componentId:"sc-1xhcdjh"})`
3670  ${({selected:e})=>le.b`
3671    background-color: ${Pe.colors.text};
3672    cursor: pointer;
3673    display: block;
3674    margin: 3px;
3675    font-weight: ${e?"bold":"unset"};
3676
3677    &:hover {
3678      text-decoration: underline;
3679    }
3680  `}
3681`;function fx(e){const t=Object(i.useRef)(),[n,r]=Object(i.useState)(),a=[void 0,...hc()],[s,l]=Object(i.useState)(a[0]),[c,u]=Object(i.useState)(),[f,d]=Object(i.useState)(),[h,p]=Object(i.useState)(),[m,g]=Object(i.useState)(!1);return Object(i.useEffect)(()=>{ci().then(e=>{r(e)}).catch(console.error)},[]),Object(i.useEffect)(()=>{!t.current||m||c&&(null==c?void 0:c.getViewer())===s||!n||(null==c||c.destroy(),u(void 0),g(!0),ax.create({current:void 0},n,null==s?void 0:s.address).then(async t=>{u(t);try{d(await e.load(t))}catch(e){p(e)}g(!1)}))},[c,s,m,n,e]),o.a.createElement(sx,null,o.a.createElement(De,null),o.a.createElement(lx,null,o.a.createElement(cx,null,o.a.createElement("p",null,"view as..."),a.map((e,t)=>{return o.a.createElement(ux,{onClick:(n=t,()=>{l(a[n])}),key:t,selected:e===s},e||"anonymous");var n})),e.children(f,m,h)))}function dx({match:e}){return o.a.createElement(fx,{load:function(t){return t.loadArtifactFromContract(e.params.artifactId)}},(e,t,n)=>n?"error":t?"loading":JSON.stringify(e))}const hx="a_position",px="a_color",mx="u_matrix",gx="v_color",vx={dim:2,type:Nc.Float,normalize:!1,name:hx},yx={dim:3,type:Nc.UByte,normalize:!0,name:px},bx=Fc`
3682  in vec4 ${hx};
3683  in vec4 ${px};
3684
3685  uniform mat4 ${mx};
3686
3687  out vec4 ${gx};
3688
3689  void main() {
3690    gl_Position = ${mx} * ${hx};
3691    ${gx} = ${px};
3692  }
3693`,wx=Fc`
3694  precision highp float;
3695  out vec4 outColor;
3696
3697  in vec4 ${gx};
3698
3699  void main() {
3700    outColor = ${gx};
3701  }
3702`;class Ex{constructor(e){this.manager=e;const{gl:t}=this.manager,{program:n,uniforms:r}=(e=>{const t=tu.programFromSources(e,bx,wx);if(null===t)throw"error compiling planet program";e.useProgram(t);return{program:t,uniforms:{matrix:e.getUniformLocation(t,mx)}}})(t);this.program=n,this.matrixULoc=r.matrix,this.posA=new Qc(t,n,vx),this.colorA=new Qc(t,n,yx)}drawPath(e,t){let n=0;const{gl:r,projectionMatrix:i}=this.manager;r.useProgram(this.program),r.uniformMatrix4fv(this.matrixULoc,!1,i);for(const{x:r,y:i}of e)this.posA.setVertex([r,i],n),this.colorA.setVertex(t,n),n++;this.posA.bufferData(n),this.colorA.bufferData(n),r.drawArrays(r.TRIANGLE_STRIP,0,n)}}class kx extends Vm{constructor(e,t,n){super(e),this.TICK_SIZE=3,this.uiManager=n,this.artifacts=[],this.planet=void 0,this.moonCanvas=t;const r=t.getContext("2d");if(!r)return void console.error("error getting 2d context");this.moonCtx=r;const{gl:i}=this;i.enable(i.BLEND),i.blendFunc(i.SRC_ALPHA,i.ONE_MINUS_SRC_ALPHA),this.pathRenderer=new Ex(this),this.spriteRenderer=new pm(this,!1,
3702!0),this.isPaused=!1,this.loop(),ue()(this)}setPaused(e){this.isPaused=!!e}destroy(){console.error("canceled PlanetScape!"),window.cancelAnimationFrame(this.frameRequestId)}loop(){this.isPaused||(this.clear(),this.setProjectionMatrix(),this.draw()),this.frameRequestId=window.requestAnimationFrame(this.loop)}setPlanet(e){this.planet=e,this.artifacts=e?this.uiManager.getArtifactsWithIds(e.heldArtifactIds).filter(e=>!!e):[]}drawHill(e,t){const{TICK_SIZE:n,canvas:{height:r,width:i}}=this,o=[],a=Math.floor(i/n);o.push({x:0,y:r});for(let t=0;t<=a;t++){const i=t*n;o.push({x:i,y:e(i)}),o.push({x:i,y:r})}this.pathRenderer.drawPath(o,t)}drawScape(){const e=this.planet;if(!e)return;if(e.planetType!==de.PlanetType.PLANET)return;const{height:t}=this.canvas,n=It.getPlanetCosmetic(e),r=It.planetPerlin(e.locationId),i=e=>r(e)+(e=>.5*r({x:2*e.x,y:2*e.y}))(e)+(e=>.25*r({x:4*e.x,y:4*e.y}))(e),{mtnColor:o,mtnColor2:a,mtnColor3:s}=n,l=.7*t;this.drawHill(e=>0+l+60*i({x:2*e,y:30}),o),this.drawHill(e=>7+l+60*i({x:2*e,y:37}),a),this.drawHill(e=>14+l+60*i({x:2*e,y:44}),s);const{baseColor:c,baseColor2:u,baseColor3:f}=n,d=.74*t;this.drawHill(e=>0+d+10*r({x:e,y:0}),c),this.drawHill(e=>5+d+10*r({x:e,y:5}),u),this.drawHill(e=>15+d+10*r({x:e,y:10}),f)}flushArtifactOnce(){this.drawHill(e=>e,[255,0,0]),this.spriteRenderer.queueArtifact(Qn,{x:0,y:0}),this.spriteRenderer.flush(),this.clear()}queueArtifacts(){if(!this.planet)return;const{width:e}=this.canvas,t=Math.max(2*e,138*this.artifacts.length),n=t/this.artifacts.length,r=Date.now()/30;for(let e=0;e<this.artifacts.length;e++){const i=this.artifacts[e];this.spriteRenderer.queueArtifact(i,{x:-.5*t+(e*n+r)%t,y:10})}}draw(){this.flushArtifactOnce(),this.queueArtifacts(),this.spriteRenderer.flush(),this.drawMoon(),this.drawScape()}drawMoon(){const e=this.planet;if(!e)return;const t=It.getPlanetCosmetic(e),n=Object(zl.bonusFromHex)(e.locationId),r=It.planetRandom(e.locationId),i=this.moonCtx,o=this.canvas;i.clearRect(0,0,o.width,o.height),i.fillStyle=t.bgStr,i.fillRect(0,0,o.width,o.height),i.globalCompositeOperation="color-burn";const a=Math.max(0,.35+.4*Math.sin(Date.now()/8500+1e4*r()));i.globalAlpha=a,i.fillStyle="#020208",i.fillRect(0,0,o.width,o.height),i.globalCompositeOperation="source-over",i.fillStyle="white";for(let e=0;e<20;e++){const e={x:1e4*r()%500,y:1e4*r()%200};if(r()<.5){const t=1+3*r();i.fillRect(e.x-t,e.y,2*t+1,1),i.fillRect(e.x,e.y-t,1,2*t+1)}else i.fillRect(e.x,e.y,1,1)}const s=r()<.5?-1:1;for(let e=0;e<n.length;e++){const t=1e4,a=.1*(.5+2*r());let l=(Date.now()*a+r()*t)%t/t;-1===s&&(l=1-l);const c=15+20*r(),u=(2*l-.5)*o.width,f=(.1+.2*r())*o.height;if(n[e]){let t;const{energyCap:n,energyGro:r,range:o,speed:a,def:s}=Pe.game.bonuscolors;t=0===e?n:1===e?r:2===e?o:3===e?a:s,i.globalAlpha=.7,i.beginPath(),i.arc(u,f,c+5,0,2*Math.PI),i.fillStyle="white",i.fill(),i.beginPath(),i.arc(u,f,c,0,2*Math.PI),i.globalAlpha=.3,i.fill(),i.fillStyle=t,i.fill()}}}}const xx=le.c.div.withConfig({displayName:"PlanetScapeContainer",componentId:"sc-106j8fg"})`
3703  position: relative;
3704
3705  canvas {
3706    image-rendering: -moz-crisp-edges;
3707    image-rendering: -webkit-crisp-edges;
3708    image-rendering: pixelated;
3709    image-rendering: crisp-edges;
3710
3711    &:last-of-type {
3712      position: absolute;
3713      top: 0;
3714      left: 0;
3715    }
3716  }
3717`,Sx=le.c.div.withConfig({displayName:"ArtifactLabel",componentId:"sc-1un60dr"})`
3718  border: 1px solid ${Pe.colors.subtext};
3719  color: ${Pe.colors.subtext};
3720  display: flex;
3721  flex-direction: column;
3722  justify-content: center;
3723  align-items: center;
3724
3725  text-align: center;
3726
3727  position: absolute;
3728  top: 0;
3729  left: 0;
3730
3731  width: 100%;
3732  height: 100%;
3733
3734  & > p {
3735    width: 12em;
3736    display: inline-block;
3737    margin: 0 auto;
3738  }
3739
3740  background: none;
3741`;function _x({wrapper:e}){const t=Object(i.useRef)(null),n=Object(i.useRef)(null),[r,a]=Object(i.useState)(void 0),s=Object(i.useRef)(null),l=xi();Object(i.useEffect)(()=>{if(!t.current||!l||!n.current)return;const e=new kx(t.current,n.current,l);return a(e),t.current.width=t.current.getBoundingClientRect().width,t.current.height=t.current.getBoundingClientRect().height,n.current.width=n.current.getBoundingClientRect().width,n.current.width=n.current.getBoundingClientRect().width,()=>{e.destroy(),a(void 0)}},[t,n,l]),Object(i.useEffect)(()=>{null==r||r.setPlanet(e.value)},[e,r]);return o.a.createElement(xx,{ref:s},e&&e.value&&0===e.value.heldArtifactIds.length&&e.value.planetType!==de.PlanetType.PLANET&&o.a.createElement(Sx,null,o.a.createElement("p",null,"Artifacts on this planet will appear here")),o.a.createElement("canvas",{style:{width:"100%",height:"150px"},ref:n}),o.a.createElement("canvas",{style:{width:"100%",height:"150px"},ref:t}))}const Ax=le.c.div.withConfig({displayName:"PlanetCard",componentId:"sc-1uqojfe"})`
3742  width: 36em;
3743  margin: 2em auto;
3744  font-size: 14pt;
3745  z-index: 1000;
3746  background: ${Pe.colors.background};
3747  border-radius: 3px;
3748  border: 1px solid ${Pe.colors.text};
3749
3750  & > div {
3751    width: 100%;
3752    padding: 0.5em;
3753    &:nth-child(1) {
3754      // header
3755      border-bottom: 1px solid ${Pe.colors.subtext};
3756    }
3757    &:nth-child(2) {
3758      // scape
3759      height: 350px;
3760    }
3761  }
3762`;function Cx({match:e}){return o.a.createElement(fx,{load:async function(t){const n=await t.loadPlanetFromContract(e.params.locationId);return{planet:n,biome:ct(n)?n.biome:null,ownerTwitter:t.getTwitter(null==n?void 0:n.owner)||null}}},(e,t,n)=>{return t?"loading":n||!e?"error":o.a.createElement(Ax,null,o.a.createElement("div",null,(r=e.planet)?r.locationId.substring(4,9):"00000"," ",It.getPlanetName(e.planet)),o.a.createElement("div",null,o.a.createElement(_x,{wrapper:new Rr(e.planet)})),o.a.createElement("div",null,o.a.createElement("p",null,o.a.createElement("em",null,It.getPlanetTagline(e.planet),"..."),o.a.createElement("span",null,o.a.createElement(lr,null,It.getPlanetBlurb(e.planet)))),o.a.createElement("p",null,"Owner: "+(e.ownerTwitter||e.planet.owner)),o.a.createElement("p",null,"Energy: "+e.planet.energy),o.a.createElement("p",null,"Biome: "+(e.biome||"unknown")),o.a.createElement("p",null,"Find this planet in-game at ",o.a.createElement("a",{href:"/"},"http://zkga.me")," to read more!")));var r})}le.c.div.withConfig({displayName:"Container",componentId:"sc-1njvf8r"})`
3763  width: fit-content;
3764  overflow-x: scroll;
3765`,le.c.div.withConfig({displayName:"Row",componentId:"sc-6ap4iz"})`
3766  display: flex;
3767  flex-direction: row;
3768  justify-content: flex-start;
3769  width: fit-content;
3770`,Object.values(de.ArtifactType).filter(e=>e>
3770=de.ArtifactType.Monolith&&e<=de.ArtifactType.Pyramid),Object.values(de.ArtifactType).filter(e=>e>=de.ArtifactType.Wormhole&&e<=de.ArtifactType.BlackDomain),Object.values(de.ArtifactType).filter(e=>e!==de.ArtifactType.Unknown),Object.values(de.Biome).filter(e=>e!==de.Biome.UNKNOWN),Object.values(de.ArtifactRarity).filter(e=>e!==de.ArtifactRarity.Unknown);function Tx({children:e,onClick:t=(()=>{}),style:n={},hoverStyle:r={},...a}){const[s,l]=Object(i.useState)(!1),[c,u]=Object(i.useState)(!1);return o.a.createElement("button",{disabled:s,onClick:async e=>{l(!0),await t(e),l(!1)},style:{cursor:s?"not-allowed":"",width:"fit-content",...n,...c?r:{}},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),...a},e)}const Px=le.c.div.withConfig({displayName:"StyledTxConfirmPopup",componentId:"sc-1tr3l3p"})`
3771  width: 100%;
3772  height: 100%;
3773  position: absolute;
3774  z-index: 2;
3775
3776  display: flex;
3777  flex-direction: column;
3778  justify-content: space-between;
3779
3780  background: white;
3781  color: black;
3782
3783  font-family: 'Helvetica', 'Arial', sans-serif;
3784  font-size: 12pt;
3785
3786  font-weight: 400;
3787
3788  .mono {
3789    font-family: 'Inconsolata', 'Monaco', monospace;
3790    font-size: 11pt;
3791  }
3792
3793  b {
3794    font-weight: 700;
3795  }
3796
3797  & > div {
3798    border-bottom: 1px solid gray;
3799    padding: 0.5em;
3800
3801    & > h2 {
3802      font-size: 1.5em;
3803      font-weight: 300;
3804    }
3805
3806    & > div {
3807      display: flex;
3808      flex-direction: row;
3809      justify-content: space-between;
3810
3811      &.mtop {
3812        margin-top: 1em;
3813      }
3814
3815      & > button {
3816        flex-grow: 1;
3817        padding: 1em;
3818        border-radius: 8px;
3819
3820        transition: filter 0.1s;
3821        &:hover {
3822          filter: brightness(1.1);
3823        }
3824        &:active {
3825          filter: brightness(0.9);
3826        }
3827
3828        &:first-child {
3829          margin-right: 0.5em;
3830          background: #e3e3e3;
3831          border: 2px solid #444;
3832        }
3833        &:last-child {
3834          color: white;
3835          background: #00aed9;
3836          border: 2px solid #00708b;
3837        }
3838      }
3839    }
3840    &:last-of-type {
3841      border-bottom: none;
3842      color: #888;
3843
3844      & > span:first-child {
3845        display: flex;
3846        flex-direction: row;
3847        justify-content: flex-start;
3848        align-items: center;
3849      }
3850    }
3851  }
3852`,Ox=le.d`
3853  from {
3854    filter: brightness(1.3);
3855  }
3856  to {
3857    filter: brightness(0.6);
3858  }
3859`,Mx=le.b`
3860  animation: ${Ox} 1s ${Pe.game.styles.animProps};
3861`,Ix=le.c.span.withConfig({displayName:"ConfirmIcon",componentId:"sc-1fop486"})`
3862  display: inline-block;
3863  width: 12px;
3864  height: 12px;
3865  border-radius: 6px;
3866  background: ${Pe.colors.dfgreen};
3867
3868  ${Mx};
3869`;function Rx({match:e}){const{addr:t,actionId:n,balance:r,method:a}=e.params,[s,l]=Object(i.useState)(!1),c=Vt.a.from(localStorage.getItem(t+"-gasFeeGwei")||""),u=localStorage.getItem(t.toLowerCase()+"-fromPlanet"),f=localStorage.getItem(t.toLowerCase()+"-toPlanet"),d=localStorage.getItem(t.toLowerCase()+"-hatPlanet"),h=localStorage.getItem(t.toLowerCase()+"-hatLevel"),p="buyHat"===a&&h?2**parseInt(h):0,m=p+("buyCredits"===a?.5:0)+.002*Object(Jt.weiToGwei)(c),g=localStorage.getItem(t.toLowerCase()+"-upPlanet"),v=localStorage.getItem(t.toLowerCase()+"-branch"),y=localStorage.getItem(t.toLowerCase()+"-transferPlanet"),b=localStorage.getItem(t.toLowerCase()+"-transferOwner"),w=localStorage.getItem(t.toLowerCase()+"-findArtifactOnPlanet"),E=localStorage.getItem(t.toLowerCase()+"-depositPlanet"),k=localStorage.getItem(t.toLowerCase()+"-depositArtifact"),x=localStorage.getItem(t.toLowerCase()+"-withdrawPlanet"),S=localStorage.getItem(t.toLowerCase()+"-withdrawArtifact"),_=localStorage.getItem(t.toLowerCase()+"-activatePlanet"),A=localStorage.getItem(t.toLowerCase()+"-activateArtifact"),C=localStorage.getItem(t.toLowerCase()+"-deactivatePlanet"),T=localStorage.getItem(t.toLowerCase()+"-deactivateArtifact"),P=localStorage.getItem(t.toLowerCase()+"-withdrawSilverPlanet"),O=localStorage.getItem(t.toLowerCase()+"-revealLocationId"),M=localStorage.getItem(t.toLowerCase()+"-buyGPTCreditAmount"),I=localStorage.getItem(t.toLowerCase()+"-buyGPTCreditCost");return o.a.createElement(Px,null,o.a.createElement("div",null,o.a.createElement("h2",null,"Confirm Transaction")),o.a.createElement("div",null,o.a.createElement("div",null,o.a.createElement("b",null,"Contract Action"),o.a.createElement("span",null,a.toUpperCase())),"revealLocation"===a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("b",null,"Planet ID"),o.a.createElement("span",{className:"mono"},O))),"buyHat"===a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("b",null,"On"),o.a.createElement("span",{className:"mono"},d)),o.a.createElement("div",null,o.a.createElement("b",null,"HAT Level"),o.a.createElement("span",null,h," (",p," ONE)"))),"move"===a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("b",null,"From"),o.a.createElement("span",{className:"mono"},u)),o.a.createElement("div",null,o.a.createElement("b",null,"To"),o.a.createElement("span",{className:"mono"},f))),"upgradePlanet"===a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("b",null,"On"),o.a.createElement("span",{className:"mono"},g)),o.a.createElement("div",null,o.a.createElement("b",null,"Branch"),o.a.createElement("span",null,v))),"transferOwnership"===a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("b",null,"Planet ID"),o.a.createElement("span",{className:"mono"},y)),o.a.createElement("div",null,o.a.createElement("b",null,"Transfer to"),o.a.createElement("span",null,b))),"findArtifact"===a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("b",null,"Planet ID"),o.a.createElement("span",{className:"mono"},w))),"depositArtifact"===a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("b",null,"Planet ID"),o.a.createElement("span",{className:"mono"},E)),o.a.createElement("div",null,o.a.createElement("b",null,"Artifact ID"),o.a.createElement("span",{className:"mono"},k))),"withdrawArtifact"===a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("b",null,"Planet ID"),o.a.createElement("span",{className:"mono"},x)),o.a.createElement("div",null,o.a.createElement("b",null,"Artifact ID"),o.a.createElement("span",{className:"mono"},S))),"activateArtifact"===a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("b",null,"Planet ID"),o.a.createElement("span",{className:"mono"},_)),o.a.createElement("div",null,o.a.createElement("b",null,"Artifact ID"),o.a.createElement("span",{className:"mono"},A))),"deactivateArtifact"===a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("b",null,"Planet ID"),o.a.createElement("span",{className:"mono"},C)),o.a.createElement("div",null,o.a.createElement("b",null,"Artifact ID"),o.a.createElement("span",{className:"mono"},T))),"withdrawSilver"===a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("b",null,"Planet ID"),o.a.createElement("span",{className:"mono"},P))),"buyCredits"===a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("b",null,"Amount"),o.a.createElement("span",{className:"mono"},M)),o.a.createElement("div",null,o.a.createElement("b",null,"Cost"),o.a.createElement("span",null,I," ONE")))),o.a.createElement("div",null,o.a.createElement("div",null,o.a.createElement("b",null,"Gas Fee"),o.a.createElement("span",null,Object(Jt.weiToGwei)(c)," gwei")),o.a.createElement("div",null,o.a.createElement("b",null,"Gas Limit"),o.a.createElement("span",null,"2000000")),o.a.createElement("div",null,o.a.createElement("b",null,"Total Transaction Cost"),o.a.createElement("span",null,m.toFixed(8)," ONE")),"buyHat"===a&&h&&+h>6&&o.a.createElement("div",null,o.a.createElement("b",{style:{color:"red"}},"WARNING: You are buying a very expensive HAT! Check the price and make sure you intend to do this!")),o.a.createElement("div",{className:"mtop"},o.a.createElement("b",null,"Account Balance"),o.a.createElement("span",null,parseFloat(r).toFixed(8)," ONE")),o.a.createElement("div",{className:"mtop"},o.a.createElement(Tx,{onClick:()=>{localStorage.setItem(`tx-approved-${t}-${n}`,"false"),window.close()}},o.a.createElement("span",null,"Reject")),o.a.createElement(Tx,{onClick:()=>{s?(localStorage.setItem(`tx-approved-${t}-${n}`,"true"),localStorage.setItem("wallet-enabled-"+t,(Date.now()+864e5).toString()),Hr(t,"AutoApproveNonPurchaseTransactions",!0),window.close()):(localStorage.setItem(`tx-approved-${t}-${n}`,"true"),window.close())}},o.a.createElement("span",null,"Approve")))),o.a.createElement("div",null,o.a.createElement("div",null,o.a.createElement("span",null,o.a.createElement(Ix,null)," DF connected to harmony"),o.a.createElement("span",null,"Auto-confirm all transactions except purchases. Currently, you can only purchase GPT Credits, and Hats, as well as anything 3rd party plugins offer. ",o.a.createElement(uo,{width:8}),o.a.createElement("input",{type:"checkbox",checked:s,onChange:e=>l(e.target.checked)})))))}const Lx={wrapper:{display:"flex",flexDirection:"column",alignItems:"center"},hwrapper:{display:"flex",flexDirection:"row",alignItems:"center"},btn:{background:"rgba(0, 0, 0, 0)",color:Pe.colors.text,marginLeft:"8pt",width:"24pt",height:"24pt",borderRadius:"12pt",lineHeight:"24pt",transition:"background 0.2s, color 0.2s"},btnHov:{color:Pe.colors.background,background:Pe.colors.text},input:{padding:"4px 8px",borderRadius:"5px",border:"1px solid "+Pe.colors.text,transition:"color 0.2s, background 0.2s, width 0.2s"}},Nx=({mode:e})=>{const[t,n]=Object(i.useState)(""),[r,a]=Object(i.useState)(null),[s,l]=Object(i.useState)(!1),c=async()=>{const r=0===e?await hi(t):await(async e=>{if(!ui.validate(e))return 1;const{success:t}=await fetch("/email/unsubscribe",{method:"POST",body:JSON.stringify({email:e}),headers:{"Content-Type":"application/json"}}).then(e=>e.json());return t?0:2})(t);a(r),0===r&&n("")};return o.a.createElement("div",{style:Lx.wrapper},o.a.createElement("div",{style:Lx.hwrapper},o.a.createElement("p",{style:{marginRight:"14pt",color:Pe.colors.text}},0===e?"info":"unsubscribe",":"),o.a.createElement("input",{style:{...Lx.input,color:s?Pe.colors.text:Pe.colors.subtext,background:s?Pe.colors.backgroundlighter:"rgba(0, 0, 0, 0)",width:s?"9em":"7em"},type:"text",name:t,value:t,onChange:e=>n(e.target.value),placeholder:"[email protected]",onKeyDown:e=>{13===e.keyCode&&e.preventDefault()},onKeyUp:e=>{e.preventDefault(),13===e.keyCode&&c()},onFocus:()=>l(!0),onBlur:()=>l(!1)}),o.a.createElement(Tx,{onClick:c,style:Lx.btn,hoverStyle:Lx.btnHov},o.a.createElement("span",null,">"))),null!==r&&o.a.createElement("p",{style:{marginTop:"8px"}},0===(u=r)?0===e?o.a.createElement(lr,null,o.a.createElement(sr,null,"email successfully recorded")):o.a.createElement(lr,null,o.a.createElement(sr,null,"successfully unsubscribed")):1===u?"invalid address":2===u?"server error":(console.error("invalid email outcome"),o.a.createElement(lr,null,o.a.createElement(dr,null,"Error")))));var u},jx={wrapper:{width:"100%",height:"100%"},background:{position:"absolute",width:"100%",height:"100%",background:Pe.colors.background,zIndex:0},basePage:{position:"absolute",width:"100%",height:"100%",color:Pe.colors.text,fontSize:Pe.fontSize,display:"flex",flexDirection:"column",justifyContent:"space-around",alignItems:"center",zIndex:2},hofTitle:{color:Pe.colors.subtext,display:"inline-block",borderBottom:"1px solid "+Pe.colors.subtext,lineHeight:"1em"}},Bx="http://twitter.com/darkforest_eth",Fx="mailto:[email protected]",Dx="https://blog.zkga.me/",zx="https://t.me/zk_forest",Ux="https://github.com/darkforest-eth",$x=le.c.div.withConfig({displayName:"Header",componentId:"sc-17hgea6"})`
3870  text-align: center;
3871`,Hx=le.c.div.withConfig({displayName:"EmailWrapper",componentId:"sc-7f2ciq"})`
3872  display: flex;
3873  flex-direction: row;
3874`,Jx=le.c.div.withConfig({displayName:"Footer",componentId:"sc-1gt1xs7"})`
3875  display: flex;
3876  flex-direction: column;
3877  align-items: center;
3878
3879  & > div {
3880    margin-top: 16pt;
3881  }
3882`,Gx=le.c.div.withConfig({displayName:"TextLinks",componentId:"sc-nel01j"})`
3883  & a {
3884    &:first-child {
3885      margin-left 0;
3886    }
3887    margin-left: 7pt;
3888    &:after {
3889      margin-left: 7pt;
3890      content: '-';
3891      color: ${Pe.colors.subtext};
3892    }
3893    &:last-child:after {
3894      display: none;
3895    }
3896
3897    transition: color 0.2s;
3898    &:hover {
3899      color: ${Pe.colors.dfblue};
3900    }
3901  }
3902`,Vx=le.c.div.withConfig({displayName:"IconLinks",componentId:"sc-1ypg591"})`
3903  font-size: 18pt;
3904
3905  & a {
3906    margin: 0 6pt;
3907    transition: color 0.2s;
3908    &: hover {
3909      cursor: pointer;
3910      &.link-twitter {
3911        color: ${Pe.colors.icons.twitter};
3912      }
3913      &.link-github {
3914        color: ${Pe.colors.icons.github};
3915      }
3916      &.link-discord {
3917        color: ${Pe.colors.icons.discord};
3918      }
3919      &.link-blog {
3920        color: ${Pe.colors.icons.blog};
3921      }
3922      &.link-email {
3923        color: ${Pe.colors.icons.email};
3924      }
3925    }
3926  }
3927`,Xx=le.c.div.withConfig({displayName:"Title",componentId:"sc-xk62hj"})`
3928  font-size: ${Pe.fontH1};
3929  font-family: ${Pe.titleFont};
3930  @media (max-width: ${Pe.screenSizeS}) {
3931    font-size: ${Pe.fontH1S};
3932  }
3933  position: relative;
3934
3935  & h1 {
3936    white-space: nowrap;
3937  }
3938
3939  & h1:first-child {
3940    position: absolute;
3941  }
3942  & h1:last-child {
3943    &: before {
3944      content: '>';
3945      position: absolute;
3946      top: 0;
3947      left: -1em;
3948      color: #00ff00;
3949    }
3950  }
3951`,Wx=le.c.span.withConfig({displayName:"Fat",componentId:"sc-x732uw"})`
3952  display: inline-block;
3953  transform: scale(1, 1.2);
3954`;function qx(){return o.a.createElement("div",{style:jx.wrapper},o.a.createElement("div",{style:jx.background}),o.a.createElement(De,null),o.a.createElement("div",{style:jx.basePage},o.a.createElement("div",null),o.a.createElement($x,null,o.a.createElement(Xx,null,o.a.createElement("h1",null,"dark forest",o.a.createElement(Wx,null,o.a.createElement(lr,null,o.a.createElement(ar,null)))),o.a.createElement("h1",null,o.a.createElement(mr,null,"dark forest"))),o.a.createElement("p",null,o.a.createElement(lr,null,"zkSNARK space warfare ",o.a.createElement(vr,null,"(v0.6)")))),o.a.createElement(Hx,null,o.a.createElement(Nx,{mode:1})),o.a.createElement(Jx,null,o.a.createElement(Gx,null,o.a.createElement("a",{href:Fx},"email"),o.a.createElement("a",{href:Dx},"blog")),o.a.createElement(Vx,null,o.a.createElement("a",{className:"link-twitter",href:Bx},o.a.createElement("span",{className:"icon-twitter"})),o.a.createElement("a",{className:"link-discord",href:zx},o.a.createElement("span",{className:"icon-discord"})),o.a.createElement("a",{className:"link-github",href:Ux},o.a.createElement("span",{className:"icon-github"}))))))}const Kx=le.c.div.withConfig({displayName:"Container",componentId:"sc-fti763"})`
3955  width: 100vw;
3956  height: 100vh;
3957  display: flex;
3958  justify-content: center;
3959  align-items: center;
3960  flex-direction: column;
3961  text-align: center;
3962`;function Zx(){return window.location.href="https://valhalla.zkga.me",o.a.createElement(Kx,null)}const Yx=le.a`
3963@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@300&display=swap');
3964
3965body {
3966  color: ${Pe.colors.text};
3967  width: 100vw;
3968  min-height: 100vh;
3969  background-color: ${Pe.colors.background};
3970  font-family: 'Inconsolata', monospace;
3971  font-weight: 300;
3972}
3973`;var Qx=Object(l.hot)((function(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(Yx,null),o.a.createElement(Q,null,o.a.createElement(K,null,o.a.createElement(J,{path:"/play",component:Bk}),o.a.createElement(J,{path:"/",exact:!0,component:Zk}),o.a.createElement(J,{path:"/planet/:locationId",component:Cx}),o.a.createElement(J,{path:"/artifact/:artifactId",component:dx}),o.a.createElement(J,{path:"/wallet/:addr/:actionId/:balance/:method",component:Rx}),o.a.createElement(J,{path:"/unsubscribe",component:qx}),o.a.createElement(J,{path:"/conversation",component:ia}),o.a.createElement(J,{path:"/valhalla",component:Zx}
3973),!1,!1,!1,!1)))}));n(287),n(291),n(297),n(299);a.render(i.createElement(Qx,null),document.getElementById("root"))},function(e,t,n){"use strict";n.d(t,"a",(function(){return q}));var r=n(15);let i=null;function o(e){if(null==i&&(i="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenocho
3973dLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTah
3973ounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZprava
3973ZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"!==r.a.check(e)))throw i=null,new Error("BIP39 Wordlist for en (English) FAILED")}class a extends r.a{constructor(){super("cz")}getWord(e){return o(this),i[e]}getWordIndex(e){return o(this),i.indexOf(e)}}const s=new a;r.a.register(s);let l=null;function c(e){if(null==l&&(l="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductC
3973onfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMu
3973seumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThe
3973nTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==r.a.check(e)))throw l=null,new Error("BIP39 Wordlist for en (English) FAILED")}class u extends r.a{constructor(){super("en")}getWord(e){return c(this),l[e]}getWordIndex(e){return c(this),l.indexOf(e)}}const f=new u;r.a.register(f);var d=n(33);const h={};let p=null;function m(e){return r.b.checkNormalize(),Object(d.h)(Array.prototype.filter.call(Object(d.f)(e.normalize("NFD").toLowerCase()),e=>e>=65&&e<=90||e>=97&&e<=123))}function g(e){if(null==p&&(p="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplir
3973CunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalN
3973ativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(e=>function(e){const t=[];return Array.prototype.forEach.call(Object(d.f)(e),e=>{47===e?(t.push(204),t.push(129)):126===e?(t.push(110),t.push(204),t.push(131)
3973):t.push(e)}),Object(d.h)(t)}(e)),p.forEach((e,t)=>{h[m(e)]=t}),"0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"!==r.a.check(e)))throw p=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}class v extends r.a{constructor(){super("es")}getWord(e){return g(this),p[e]}getWordIndex(e){return g(this),h[m(e)]}}const y=new v;r.a.register(y);let b=null;const w={};function E(e){return r.b.checkNormalize(),Object(d.h)(Array.prototype.filter.call(Object(d.f)(e.normalize("NFD").toLowerCase()),e=>e>=65&&e<=90||e>=97&&e<=123))}function k(e){if(null==b&&(b="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnv
3973iableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNiche
3973NickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(e=>function(e){const t=[];return Array.prototype.forEach.call(Object(d.f)(e),e=>{47===e?(t.push(204),t.push(129)):45===e?(t.push(204),t.push(128)):t.push(e)}),Object(d.h)(t)}(e)),b.forEach((e,t)=>{w[E(e)]=t}),"0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"!==r.a.check(e)))throw b=null,new Error("BIP39 Wordlist for fr (French) FAILED")}class x extends r.a{constructor(){super("fr")}getWord(e){return k(this),b[e]}getWordIndex(e){return k(this),w[E(e)]}}const S=new x;r.a.register(S);var _=n(3);
3973const A=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXH
3973IaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"];let C=null;function T(e){return Object(_.i)(Object(d.f)(e))}function P(e){if(null!==C)return;C=[];const t={};function n(e){let n="";for(let r=0;r<e.length;r++){let i=e[r];const o=t[i];!1!==o&&(o&&(i=o),n+=i)}return n}t[Object(d.h)([227,130,154])]=!1,t[Object(d.h)([227,130,153])]=!1,t[Object(d.h)([227,130,133])]=Object(d.h)([227,130,134]),t[Object(d.h)([227,129,163])]=Object(d.h)([227,129,164]),t[Object(d.h)([227,130,131])]=Object(d.h)([227,130,132]),t[Object(d.h)([227,130,135])]=Object(d.h)([227,130,136]);for(let e=3;e<=9;e++){const t=A[e-3];for(let n=0;n<t.length;n+=e){const r=[];for(let i=0;i<e;i++){const e="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt".indexOf(t[n+i]);r.push(227),r.push(64&e?130:129),r.push(128+(63&e))}C.push(Object(d.h)(r))}}if(C.sort((function(e,t){return(e=n(e))<(t=n(t))?-1:e>t?1:0})),"0xe3818de38284e3818f"===T(C[442])&&"0xe3818de38283e3818f"===T(C[443])){const e=C[442];C[442]=C[443],C[443]=e}if("0xcb36b09e6baa935787fd762ce65e80b0c6a8dabdfbc3a7f86ac0e2c4fd111600"!==r.a.check(e))throw C=null,new Error("BIP39 Wordlist for ja (Japanese) FAILED")}class O extends r.a{constructor(){super("ja")}getWord(e){return P(this),C[e]}getWordIndex(e){return P(this),C.indexOf(e)}split(e){return r.b.checkNormalize(),e.split(/(?:\u3000| )+/g)}join(e){return e.join(" ")}}const M=new O;r.a.register(M);const I=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkL
3973ZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"];let R=null;function L(e){if(null==R&&(R=[],I.forEach((e,t)=>{t+=4;for(let r=0;r<e.length;r+=t){let i="";for(let o=0;o<t;o++)i+=((n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*".indexOf(e[r+o]))>=40?n=n+168-40:n>=19&&(n=n+97-19),Object(d.h)([225,132+(n>>6),128+(63&n)]));R.push(i)}var n}),R.sort(),"0xf9eddeace9c5d3da9c93cf7d3cd38f6a13ed3affb933259ae865714e8a3ae71a"!==r.a.check(e)))throw R=null,new Error("BIP39 Wordlist for ko (Korean) FAILED")}class N extends r.a{constructor(){super("ko")}getWord(e){return L(this),R[e]}getWordIndex(e){return L(this),R.indexOf(e)}}const j=new N;r.a.register(j);let B=null;function F(e){if(null==B&&(B="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAn
3973atraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCe
3973spoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaF
3973orzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitoneP
3973izzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZupp
3973a".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"!==r.a.check(e)))throw B=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}class D extends r.a{constructor(){super("it")}getWord(e){return F(this),B[e]}getWordIndex(e){return F(this),B.indexOf(e)}}const z=new D;r.a.register(z);const U=
vendor: 6,146 bytes, line 3973
3973"}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN<di,AM=W5%QO&ka&ua,hM^tm=zV=JA=wR&+X]7P&NB#4J#5L|/b[dA}tJ<Do&6m&u2[U1&Kb.HM&mC=w0&MW<rY,Hq#6M}QG,13&wP}Jp]Ow%ue&Kg<HP<D9~4k~9T&I2_c6$9T#9/[C5~7O~4a=cs&O7=KK=An&l9$6U$8A&uD&QI|/Y&bg}Ux&F2#6b}E2&JN&kW&kp=U/&bb=Xl<Cj}k+~5J#6L&5z&9i}b4&Fo,ho(X0_g3~4O$Fz&QE<HN=Ww]6/%GF-Vw=tj&/D&PN#9g=YO}cL&Of&PI~5I&Ip=vU=IW#9G;0o-wU}ss&QR<BT&R9=tk$PY_dh&Pq-yh]7T,nj.Xu=EP&76=cI&Fs*Xg}z7$Gb&+I=DF,AF=cA}rL#7j=Dz&3y<Aa$52=PQ}b0(iY$Fa}oL&xV#6U=ec=WZ,xh%RY<dp#9N&Fl&44=WH*A7=sh&TB&8P=07;u+&PK}uh}J5#72)V/=xC,AB$k0&f6;1E|+5=1B,3v]6n&wR%b+&xx]7f=Ol}fl;+D^wG]7E;nB;uh^Ir&l5=JL,nS=cf=g5;u6|/Q$Gc=MH%Hg#5d%M6^86=U+$Gz,l/,ir^5y&Ba&/F-IY&FI&be%IZ#77&PW_Nu$kE(Yf&NX]7Z,Jy&FJ(Xo&Nz#/d=y7&MX<Ag}Z+;nE]Dt(iG#4D=13&Pj~4c%v8&Zo%OL&/X#4W<HR&ie~6J_1O(Y2=y5=Ad*cv_eB#6k&PX:BU#7A;uk&Ft&Fx_dD=U2;vB=U5=4F}+O&GN.HH:9s=b0%NV(jO&IH=JT}Z9=VZ<Af,Kx^4m&uJ%c6,6r;9m#+L}cf%Kh&F3~4H=vP}bu,Hz|++,1w]nv}k6;uu$jw*Kl*WX&uM[x7&Fr[m7$NO&QN]hu=JN}nR^8g#/h(ps|KC;vd}xz=V0}p6&FD$G1#7K<bG_4p~8g&cf;u4=tl}+k%5/}fz;uw<cA=u1}gU}VM=LJ=eX&+L&Pr#4U}p2:nC,2K]7H:jF&9x}uX#9O=MB<fz~8X~5m&4D&kN&u5%E/(h7(ZF&VG<de(qM|/e-Wt=3x(a+,/R]f/&ND$Ro&nU}0g=KA%kH&NK$Ke<dS}cB&IX~5g$TN]6m=Uv,Is&Py=Ef%Kz#+/%bi&+A<F4$OG&4C&FL#9V<Zk=2I_eE&6c]nw&kq$HG}y+&A8$P3}OH=XP]70%IS(AJ_gH%GZ&tY&AZ=vb~6y&/r=VI=Wv<Zi=fl=xf&eL}c8}OL=MJ=g8$F7=YT}9u=0+^xC}JH&nL^N0~4T]K2,Cy%OC#6s;vG(AC^xe^cG&MF}Br#9P;wD-7h$O/&xA}Fn^PC]6i]7G&8V$Qs;vl(TB~73~4l<mW&6V=2y&uY&+3)aP}XF;LP&kx$wU=t7;uy<FN&lz)7E=Oo*Y+;wI}9q}le;J6&Ri&4t&Qr#8B=cb&vG=J5|Ql(h5<Yy~4+}QD,Lx=wn%K/&RK=dO&Pw,Q9=co%4u;9u}g0@6a^4I%b0=zo|/c&tX=dQ=OS#+b=yz_AB&wB&Pm=W9$HP_gR=62=AO=ti=hI,oA&jr&dH=tm&b6$P2(x8=zi;nG~7F;05]0n[Ix&3m}rg=Xp=cd&uz]7t;97=cN;vV<jf&FF&F1=6Q&Ik*Kk&P4,2z=fQ]7D&3u,H0=d/}Uw<ZN<7R}Kv;0f$H7,MD]7n$F0#88~9Z%da=by;+T#/u=VF&fO&kr^kf<AB]sU,I5$Ng&Pz;0i&QD&vM=Yl:BM;nJ_xJ]U7&Kf&30,3f|Z9*dC)je_jA&Q4&Kp$NH(Yz#6S&Id%Ib=KX,AD=KV%dP}tW&Pk^+E_Ni=cq,3R}VZ(Si=b+}rv;0j}rZ]uA,/w(Sx&Jv$w9&4d&wE,NJ$Gy=J/]Ls#7k<ZQ<Y/&uj]Ov$PM;v3,2F&+u:up=On&3e,Jv;90=J+&Qm]6q}bK#+d~8Y(h2]hA;99&AS=I/}qB&dQ}yJ-VM}Vl&ui,iB&G3|Dc]7d=eQ%dX%JC_1L~4d^NP;vJ&/1)ZI#7N]9X[bQ&PL=0L(UZ,Lm&kc&IR}n7(iR<AQ<dg=33=vN}ft}au]7I,Ba=x9=dR~6R&Tq=Xi,3d$Nr&Bc}DI&ku&vf]Dn,/F&iD,Ll&Nw=0y&I7=Ls=/A&tU=Qe}Ua&uk&+F=g4=gh=Vj#+1&Qn}Uy*44#5F,Pc&Rz*Xn=oh=5W;0n_Nf(iE<Y7=vr=Zu]oz#5Z%mI=kN=Bv_Jp(T2;vt_Ml<FS&uI=L/&6P]64$M7}86<bo%QX(SI%IY&VK=Al&Ux;vv;ut*E/%uh<ZE|O3,M2(yc]yu=Wk&tp:Ex}hr,Cl&WE)+Z=8U}I2_4Q,hA_si=iw=OM=tM=yZ%Ia=U7;wT}b+;uo=Za}yS!5x}HD}fb#5O_dA;Nv%uB(yB;01(Sf}Fk;v7}Pt#8v<mZ#7L,/r&Pl~4w&f5=Ph$Fw_LF&8m,bL=yJ&BH}p/*Jn}tU~5Q;wB(h6]Df]8p^+B;E4&Wc=d+;Ea&bw$8C&FN,DM=Yf}mP~5w=fT#6V=mC=Fi=AV}jB&AN}lW}aH#/D)dZ;hl;vE}/7,CJ;31&w8,hj%u9_Js=jJ&4M~8k=TN&eC}nL&uc-wi&lX}dj=Mv=e2#6u=cr$uq$6G]8W}Jb:nm=Yg<b3(UA;vX&6n&xF=KT,jC,De&R8&oY=Zv&oB]7/=Z2&Oa}bf,hh(4h^tZ&72&Nx;D2&xL~5h~40)ZG)h+=OJ&RA]Bv$yB=Oq=df,AQ%Jn}OJ;11,3z&Tl&tj;v+^Hv,Dh(id=s+]7N&N3)9Q~8f,S4=uW=w4&uX,LX&3d]CJ&yp&8x<b2_do&lP=y/<cy_dG=Oi=7R(VH(lt_1T,Iq_AA;12^6T%k6#8K[B1{oO<AU[Bt;1b$9S&Ps<8T=St{bY,jB(Zp&63&Uv$9V,PM]6v&Af}zW[bW_oq}sm}nB&Kq&gC&ff_eq_2m&5F&TI}rf}Gf;Zr_z9;ER&jk}iz_sn<BN~+n&vo=Vi%97|ZR=Wc,WE&6t]6z%85(ly#84=KY)6m_5/=aX,N3}Tm&he&6K]tR_B2-I3;u/&hU&lH<AP=iB&IA=XL;/5&Nh=wv<BH#79=vS=zl<AA=0X_RG}Bw&9p$NW,AX&kP_Lp&/Z(Tc]Mu}hs#6I}5B&cI<bq&H9#6m=K9}vH(Y1(Y0#4B&w6,/9&gG<bE,/O=zb}I4_l8<B/;wL%Qo<HO[Mq=XX}0v&BP&F4(mG}0i}nm,EC=9u{I3,xG&/9=JY*DK&hR)BX=EI=cx=b/{6k}yX%A+&wa}Xb=la;wi^lL;0t}jo&Qb=xg=XB}iO<qo{bR=NV&8f=a0&Jy;0v=uK)HK;vN#6h&jB(h/%ud&NI%wY.X7=Pt}Cu-uL&Gs_hl%mH,tm]78=Lb^Q0#7Y=1u<Bt&+Q=Co_RH,w3;1e}ux<aU;ui}U3&Q5%bt]63&UQ|0l&uL}O7&3o,AV&dm|Nj(Xt*5+(Uu&Hh(p7(UF=VR=Bp^Jl&Hd[ix)9/=Iq]C8<67]66}mB%6f}bb}JI]8T$HA}db=YM&pa=2J}tS&Y0=PS&y4=cX$6E,hX,XP&nR;04,FQ&l0&Vm_Dv#5Y~8Z=Bi%MA]6x=JO:+p,Az&9q,Hj~6/}SD=K1:EJ}nA;Qo#/E]9R,Ie&6X%W3]61&v4=xX_MC=0q;06(Xq=fs}IG}Dv=0l}o7$iZ;9v&LH&DP-7a&OY,SZ,Kz,Cv&dh=fx|Nh,F/~7q=XF&w+;9n&Gw;0h}Z7<7O&JK(S7&LS<AD<ac=wo<Dt&zw%4B=4v#8P;9o~6p*vV=Tm,Or&I6=1q}nY=P0=gq&Bl&Uu,Ch%yb}UY=zh}dh}rl(T4_xk(YA#8R*xH,IN}Jn]7V}C4&Ty}j3]7p=cL=3h&wW%Qv<Z3=f0&RI&+S(ic_zq}oN&/Y=z1;Td=LW=0e=OI(Vc,+b^ju(UL;0r:Za%8v=Rp=zw&58&73&wK}qX]6y&8E)a2}WR=wP^ur&nQ<cH}Re=Aq&wk}Q0&+q=PP,Gc|/d^k5,Fw]8Y}Pg]p3=ju=ed}r5_yf&Cs]7z$/G<Cm&Jp&54_1G_gP_Ll}JZ;0u]k8_7k(Sg]65{9i=LN&Sx&WK,iW&fD&Lk{9a}Em-9c#8N&io=sy]8d&nT&IK(lx#7/$lW(Td<s8~49,3o<7Y=MW(T+_Jr&Wd,iL}Ct=xh&5V;v4&8n%Kx=iF&l2_0B{B+,If(J0,Lv;u8=Kx-vB=HC&vS=Z6&fU&vE^xK;3D=4h=MR#45:Jw;0d}iw=LU}I5=I0]gB*im,K9}GU,1k_4U&Tt=Vs(iX&lU(TF#7y,ZO}oA&m5#5P}PN}Uz=hM<B1&FB<aG,e6~7T<tP(UQ_ZT=wu&F8)aQ]iN,1r_Lo&/g:CD}84{J1_Ki&Na&3n$jz&FE=dc;uv;va}in}ll=fv(h1&3h}fp=Cy}BM(+E~8m}lo%v7=hC(T6$cj=BQ=Bw(DR,2j=Ks,NS|F+;00=fU=70}Mb(YU;+G&m7&hr=Sk%Co]t+(X5_Jw}0r}gC(AS-IP&QK<Z2#8Q$WC]WX}T2&pG_Ka,HC=R4&/N;Z+;ch(C7,D4$3p_Mk&B2$8D=n9%Ky#5z(CT&QJ#7B]DC]gW}nf~5M;Iw#80}Tc_1F#4Z-aC}Hl=ph=fz,/3=aW}JM}nn;DG;vm}wn,4P}T3;wx&RG$u+}zK=0b;+J_Ek{re<aZ=AS}yY#5D]7q,Cp}xN=VP*2C}GZ}aG~+m_Cs=OY#6r]6g<GS}LC(UB=3A=Bo}Jy<c4}Is;1P<AG}Op<Z1}ld}nS=1Z,yM&95&98=CJ(4t:2L$Hk=Zo}Vc;+I}np&N1}9y=iv}CO*7p=jL)px]tb^zh&GS&Vl%v/;vR=14=zJ&49|/f]hF}WG;03=8P}o/&Gg&rp;DB,Kv}Ji&Pb;aA^ll(4j%yt}+K$Ht#4y&hY]7Y<F1,eN}bG(Uh%6Z]t5%G7;+F_RE;it}tL=LS&Da=Xx(S+(4f=8G=yI}cJ}WP=37=jS}pX}hd)fp<A8=Jt~+o$HJ=M6}iX=g9}CS=dv=Cj(mP%Kd,xq|+9&LD(4/=Xm&QP=Lc}LX&fL;+K=Op(lu=Qs.qC:+e&L+=Jj#8w;SL]7S(b+#4I=c1&nG_Lf&uH;+R)ZV<bV%B/,TE&0H&Jq&Ah%OF&Ss(p2,Wv&I3=Wl}Vq;1L&lJ#9b_1H=8r=b8=JH(SZ=hD=J2#7U,/U#/X~6P,FU<eL=jx,mG=hG=CE&PU=Se(qX&LY=X6=y4&tk&QQ&tf=4g&xI}W+&mZ=Dc#7w}Lg;DA;wQ_Kb(cJ=hR%yX&Yb,hw{bX_4X;EP;1W_2M}Uc=b5(YF,CM&Tp^OJ{DD]6s=vF=Yo~8q}XH}Fu%P5(SJ=Qt;MO]s8<F3&B3&8T(Ul-BS*dw&dR<87}/8]62$PZ]Lx<Au}9Q]7c=ja=KR,Go,Us&v6(qk}pG&G2=ev^GM%w4&H4]7F&dv]J6}Ew:9w=sj-ZL}Ym$+h(Ut(Um~4n=Xs(U7%eE=Qc_JR<CA#6t<Fv|/I,IS,EG<F2(Xy$/n<Fa(h9}+9_2o&N4#7X<Zq|+f_Dp=dt&na,Ca=NJ)jY=8C=YG=s6&Q+<DO}D3=xB&R1(lw;Qn<bF(Cu|/B}HV=SS&n7,10&u0]Dm%A6^4Q=WR(TD=Xo<GH,Rj(l8)bP&n/=LM&CF,F5&ml=PJ;0k=LG=tq,Rh,D6@4i=1p&+9=YC%er_Mh;nI;0q=Fw]80=xq=FM$Gv;v6&nc;wK%H2&Kj;vs,AA=YP,66}bI(qR~5U=6q~4b$Ni=K5.X3$So&Iu(p+]8G=Cf=RY(TS_O3(iH&57=fE=Dg_Do#9z#7H;FK{qd_2k%JR}en&gh_z8;Rx}9p<cN_Ne,DO;LN_7o~/p=NF=5Y}gN<ce<C1,QE]Wv=3u<BC}GK]yq}DY&u/_hj=II(pz&rC,jV&+Z}ut=NQ;Cg-SR_ZS,+o=u/;Oy_RK_QF(Fx&xP}Wr&TA,Uh&g1=yr{ax[VF$Pg(YB;Ox=Vy;+W(Sp}XV%dd&33(l/]l4#4Y}OE=6c=bw(A7&9t%wd&N/&mo,JH&Qe)fm=Ao}fu=tH"
3973,$={zh_cn:null,zh_tw:null},H={zh_cn:"0x17bcc4d8547e5a7135e365d1ab443aaae95e76d8230c2782c67305d4f21497a1",zh_tw:"0x51e720e90c7b87bec1d70eb6e74a21a449bd3ec9c020b01d3a40ed991b60ce5d"},J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function G(e){if(null!==$[e.locale])return;$[e.locale]=[];let t=0;for(let n=0;n<2048;n++){const r="~!@#$%^&*_-=[]{}|;:,.()<>?".indexOf(U[3*n]),i=[228+(r>>2),128+J.indexOf(U[3*n+1]),128+J.indexOf(U[3*n+2])];if("zh_tw"===e.locale){for(let e=r%4;e<3;e++)i[e]=J.indexOf("FAZDC6BALcLZCA+GBARCW8wNCcDDZ8LVFBOqqDUiou+M42TFAyERXFb7EjhP+vmBFpFrUpfDV2F7eB+eCltCHJFWLFCED+pWTojEIHFXc3aFn4F68zqjEuKidS1QBVPDEhE7NA4mhMF7oThD49ot3FgtzHFCK0acW1x8DH1EmLoIlrWFBLE+y5+NA3Cx65wJHTaEZVaK1mWAmPGxgYCdxwOjTDIt/faOEhTl1vqNsKtJCOhJWuio2g07KLZEQsFBUpNtwEByBgxFslFheFbiEPvi61msDvApxCzB6rBCzox7joYA5UdDc+Cb4FSgIabpXFAj3bjkmFAxCZE+mD/SFf/0ELecYCt3nLoxC6WEZf2tKDB4oZvrEmqFkKk7BwILA7gtYBpsTq//D4jD0F0wEB9pyQ1BD5Ba0oYHDI+sbDFhvrHXdDHfgFEIJLi5r8qercNFBgFLC4bo5ERJtamWBDFy73KCEb6M8VpmEt330ygCTK58EIIFkYgF84gtGA9Uyh3m68iVrFbWFbcbqiCYHZ9J1jeRPbL8yswhMiDbhEhdNoSwFbZrLT740ABEqgCkO8J1BLd1VhKKR4sD1yUo0z+FF59Mvg71CFbyEhbHSFBKEIKyoQNgQppq9T0KAqePu0ZFGrXOHdKJqkoTFhYvpDNyuuznrN84thJbsCoO6Cu6Xlvntvy0QYuAExQEYtTUBf3CoCqwgGFZ4u1HJFzDVwEy3cjcpV4QvsPaBC3rCGyCF23o4K3pp2gberGgFEJEHo4nHICtyKH2ZqyxhN05KBBJIQlKh/Oujv/DH32VrlqFdIFC7Fz9Ct4kaqFME0UETLprnN9kfy+kFmtQBB0+5CFu0N9Ij8l/VvJDh2oq3hT6EzjTHKFN7ZjZwoTsAZ4Exsko6Fpa6WC+sduz8jyrLpegTv2h1EBeYpLpm2czQW0KoCcS0bCVXCmuWJDBjN1nQNLdF58SFJ0h7i3pC3oEOKy/FjBklL70XvBEEIWp2yZ04xObzAWDDJG7f+DbqBEA7LyiR95j7MDVdDViz2RE5vWlBMv5e4+VfhP3aXNPhvLSynb9O2x4uFBV+3jqu6d5pCG28/sETByvmu/+IJ0L3wb4rj9DNOLBF6XPIODr4L19U9RRofAG6Nxydi8Bki8BhGJbBAJKzbJxkZSlF9Q2Cu8oKqggB9hBArwLLqEBWEtFowy8XK8bEyw9snT+BeyFk1ZCSrdmgfEwFePTgCjELBEnIbjaDDPJm36rG9pztcEzT8dGk23SBhXBB1H4z+OWze0ooFzz8pDBYFvp9j9tvFByf9y4EFdVnz026CGR5qMr7fxMHN8UUdlyJAzlTBDRC28k+L4FB8078ljyD91tUj1ocnTs8vdEf7znbzm+GIjEZnoZE5rnLL700Xc7yHfz05nWxy03vBB9YGHYOWxgMQGBCR24CVYNE1hpfKxN0zKnfJDmmMgMmBWqNbjfSyFCBWSCGCgR8yFXiHyEj+VtD1FB3FpC1zI0kFbzifiKTLm9yq5zFmur+q8FHqjoOBWsBPiDbnCC2ErunV6cJ6TygXFYHYp7MKN9RUlSIS8/xBAGYLzeqUnBF4QbsTuUkUqGs6CaiDWKWjQK9EJkjpkTmNCPYXL"[t++])+(0==e?228:128)}$[e.locale].push(Object(d.h)(i))}if(r.a.check(e)!==H[e.locale])throw $[e.locale]=null,new Error("BIP39 Wordlist for "+e.locale+" (Chinese) FAILED")}class V extends r.a{constructor(e){super("zh_"+e)}getWord(e){return G(this),$[this.locale][e]}getWordIndex(e){return G(this),$[this.locale].indexOf(e)}split(e){return(e=e.replace(/(?:\u3000| )+/g,"")).split("")}}const X=new V("cn");r.a.register(X),r.a.register(X,"zh");const W=new V("tw");r.a.register(W);
vendor: 4,521 bytes, lines 3973-3984
3973const q={cz:s,en:f,es:y,fr:S,it:z,ja:M,ko:j,zh:X,zh_cn:X,zh_tw:W}},function(e,t,n){"use strict";n.r(t),n.d(t,"CSSResult",(function(){return a})),n.d(t,"adoptStyles",(function(){return c})),n.d(t,"css",(function(){return l})),n.d(t,"getCompatibleStyle",(function(){return u})),n.d(t,"supportsAdoptingStyleSheets",(function(){return r})),n.d(t,"unsafeCSS",(function(){return s})),n.d(t,"ReactiveElement",(function(){return g})),n.d(t,"defaultConverter",(function(){return h})),n.d(t,"notEqual",(function(){return p})),n.d(t,"_$LH",(function(){return ee})),n.d(t,"html",(function(){return B})),n.d(t,"noChange",(function(){return D})),n.d(t,"nothing",(function(){return z})),n.d(t,"render",(function(){return $})),n.d(t,"svg",(function(){return F})),n.d(t,"LitElement",(function(){return oe})),n.d(t,"UpdatingElement",(function(){return ie})),n.d(t,"_$LE",(function(){return ae}));
3974/**
3975 * @license
3976 * Copyright 2019 Google LLC
3977 * SPDX-License-Identifier: BSD-3-Clause
3978 */
3979const r=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),o=new Map;class a{constructor(e,t){if(this._$cssResult$=!0,t!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=o.get(this.cssText);return r&&void 0===e&&(o.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const s=e=>new a("string"==typeof e?e:e+"",i),l=(e,...t)=>{const n=1===e.length?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1],e[0]);return new a(n,i)},c=(e,t)=>{r?e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(t=>{const n=document.createElement("style"),r=window.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)})},u=r?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return s(t)})(e):e
3980/**
3981 * @license
3982 * Copyright 2017 Google LLC
3983 * SPDX-License-Identifier: BSD-3-Clause
3984 */;var f,d;const h={toAttribute(e,t){switch(t){case Boolean:e=e?"":null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},p=(e,t)=>t!==e&&(t==t||e==e),m={attribute:!0,type:String,converter:h,reflect:!1,hasChanged:p};class g extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var t;null!==(t=this.l)&&void 0!==t||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const r=this._$Eh(n,t);void 0!==r&&(this._$Eu.set(r,n),e.push(r))}),e}static createProperty(e,t=m){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const i=this[e];this[t]=r,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||m}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(u(e))}else void 0!==e&&t.push(u(e));return t}static _$Eh(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}o(){var e;this._$Ev=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Ep(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach(e
vendor: 9,093 bytes, lines 3984-3990
3984=>e(this))}addController(e){var t,n;(null!==(t=this._$Em)&&void 0!==t?t:this._$Em=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$Em)||void 0===t||t.splice(this._$Em.indexOf(e)>>>0,1)}_$Ep(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Et.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return c(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$Em)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$Em)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$Eg(e,t,n=m){var r,i;const o=this.constructor._$Eh(e,n);if(void 0!==o&&!0===n.reflect){const a=(null!==(i=null===(r=n.converter)||void 0===r?void 0:r.toAttribute)&&void 0!==i?i:h.toAttribute)(t,n.type);this._$Ei=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Ei=null}}_$AK(e,t){var n,r,i;const o=this.constructor,a=o._$Eu.get(e);if(void 0!==a&&this._$Ei!==a){const e=o.getPropertyOptions(a),s=e.converter,l=null!==(i=null!==(r=null===(n=s)||void 0===n?void 0:n.fromAttribute)&&void 0!==r?r:"function"==typeof s?s:null)&&void 0!==i?i:h.fromAttribute;this._$Ei=a,this[a]=l(t,e.type),this._$Ei=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||p)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Ei!==e&&(void 0===this._$ES&&(this._$ES=new Map),this._$ES.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$Ev=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ev}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach((e,t)=>this[t]=e),this._$Et=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$Em)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(n)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$Em)||void 0===t||t.forEach(e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ev}shouldUpdate(e){return!0}update(e){void 0!==this._$ES&&(this._$ES.forEach((e,t)=>this._$Eg(t,this[t],e)),this._$ES=void 0),this._$ET()}updated(e){}firstUpdated(e){}}
3985/**
3986 * @license
3987 * Copyright 2017 Google LLC
3988 * SPDX-License-Identifier: BSD-3-Clause
3989 */
3990var v,y;g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null===(f=globalThis.reactiveElementPolyfillSupport)||void 0===f||f.call(globalThis,{ReactiveElement:g}),(null!==(d=globalThis.reactiveElementVersions)&&void 0!==d?d:globalThis.reactiveElementVersions=[]).push("1.0.0");const b=globalThis.trustedTypes,w=b?b.createPolicy("lit-html",{createHTML:e=>e}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,k="?"+E,x=`<${k}>`,S=document,_=(e="")=>S.createComment(e),A=e=>null===e||"object"!=typeof e&&"function"!=typeof e,C=Array.isArray,T=e=>{var t;return C(e)||"function"==typeof(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,M=/>/g,I=/>|[ 	\n�\r](?:([^\s"'>=/]+)([ 	\n�\r]*=[ 	\n�\r]*(?:[^ 	\n�\r"'`<>=]|("|')|))|$)/g,R=/'/g,L=/"/g,N=/^(?:script|style|textarea)$/i,j=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),B=j(1),F=j(2),D=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),U=new WeakMap,$=(e,t,n)=>{var r,i;const o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let a=o._$litPart$;if(void 0===a){const e=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=a=new W(t.insertBefore(_(),e),e,void 0,null!=n?n:{})}return a._$AI(e),a},H=S.createTreeWalker(S,129,null,!1),J=(e,t)=>{const n=e.length-1,r=[];let i,o=2===t?"<svg>":"",a=P;for(let t=0;t<n;t++){const n=e[t];let s,l,c=-1,u=0;for(;u<n.length&&(a.lastIndex=u,l=a.exec(n),null!==l);)u=a.lastIndex,a===P?"!--"===l[1]?a=O:void 0!==l[1]?a=M:void 0!==l[2]?(N.test(l[2])&&(i=RegExp("</"+l[2],"g")),a=I):void 0!==l[3]&&(a=I):a===I?">"===l[0]?(a=null!=i?i:P,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?I:'"'===l[3]?L:R):a===L||a===R?a=I:a===O||a===M?a=P:(a=I,i=void 0);const f=a===I&&e[t+1].startsWith("/>")?" ":"";o+=a===P?n+x:c>=0?(r.push(s),n.slice(0,c)+"$lit$"+n.slice(c)+E+f):n+E+(-2===c?(r.push(void 0),t):f)}const s=o+(e[n]||"<?>")+(2===t?"</svg>":"");return[void 0!==w?w.createHTML(s):s,r]};class G{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let i=0,o=0;const a=e.length-1,s=this.parts,[l,c]=J(e,t);if(this.el=G.createElement(l,n),H.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(r=H.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const e=[];for(const t of r.getAttributeNames())if(t.endsWith("$lit$")||t.startsWith(E)){const n=c[o++];if(e.push(t),void 0!==n){const e=r.getAttribute(n.toLowerCase()+"$lit$").split(E),t=/([.?@])?(.*)/.exec(n);s.push({type:1,index:i,name:t[2],strings:e,ctor:"."===t[1]?K:"?"===t[1]?Z:"@"===t[1]?Y:q})}else s.push({type:6,index:i})}for(const t of e)r.removeAttribute(t)}if(N.test(r.tagName)){const e=r.textContent.split(E),t=e.length-1;if(t>0){r.textContent=b?b.emptyScript:"";for(let n=0;n<t;n++)r.append(e[n],_()),H.nextNode(),s.push({type:2,index:++i});r.append(e[t],_())}}}else if(8===r.nodeType)if(r.data===k)s.push({type:2,index:i});else{let e=-1;for(;-1!==(e=r.data.indexOf(E,e+1));)s.push({type:7,index:i}),e+=E.length-1}i++}}static createElement(e,t){const n=S.createElement("template");return n.innerHTML=e,n}}function V(e,t,n=e,r){var i,o,a,s;if(t===D)return t;let l=void 0!==r?null===(i=n._$Cl)||void 0===i?void 0:i[r]:n._$Cu;const c=A(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===c?l=void 0:(l=new c(e),l._$AT(e,n,r)),void 0!==r?(null!==(a=(s=n)._$Cl)&&void 0!==a?a:s._$Cl=[])[r]=l:n._$Cu=l),void 0!==l&&(t=V(e,l._$AS(e,t.values),l,r)),t}class X{constructor(e,t){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var t;const{el:{content:n},parts:r}=this._$AD,i=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:S).importNode(n,!0);H.currentNode=i;let o=H.nextNode(),a=0,s=0,l=r[0];for(;void 0!==l;){if(a===l.index){let t;2===l.type?t=new W(o,o.nextSibling,this,e):1===l.type?t=new l.ctor(o,l.name,l.strings,this,e):6===l.type&&(t=new Q(o,this,e)),this.v.push(t),l=r[++s]}a!==(null==l?void 0:l.index)&&(o=H.nextNode(),a++)}return i}m(e){let t=0;for(const n of this.v)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class W{constructor(e,t,n,r){var i;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cg=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cg}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=V(this,e,t),A(e)?e===z||null==e||""===e?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==D&&this.$(e):void 0!==e._$litType$?this.T(e):void 0!==e.nodeType?this.S(e):T(e)?this.M(e):this.$(e)}A(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}S(e){this._$AH!==e&&(this._$AR(),this._$AH=this.A(e))}$(e){this._$AH!==z&&A(this._$AH)?this._$AA.nextSibling.data=e:this.S(S.createTextNode(e)),this._$AH=e}T(e){var t;const{values:n,_$litType$:r}=e,i="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=G.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===i)this._$AH.m(n);else{const e=new X(i,this),t=e.p(this.options);e.m(n),this.S(t),this._$AH=e}}_$AC(e){let t=U.get(e.strings);return void 0===t&&U.set(e.strings,t=new G(e)),t}M(e){C(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const i of e)r===t.length?t.push(n=new W(this.A(_()),this.A(_()),this,this.options)):n=t[r],n._$AI(i),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;
3990for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cg=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class q{constructor(e,t,n,r,i){this.type=1,this._$AH=z,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,r){const i=this.strings;let o=!1;if(void 0===i)e=V(this,e,t,0),o=!A(e)||e!==this._$AH&&e!==D,o&&(this._$AH=e);else{const r=e;let a,s;for(e=i[0],a=0;a<i.length-1;a++)s=V(this,r[n+a],t,a),s===D&&(s=this._$AH[a]),o||(o=!A(s)||s!==this._$AH[a]),s===z?e=z:e!==z&&(e+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}o&&!r&&this.k(e)}k(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class K extends q{constructor(){super(...arguments),this.type=3}k(e){this.element[this.name]=e===z?void 0:e}}class Z extends q{constructor(){super(...arguments),this.type=4}k(e){e&&e!==z?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}class Y extends q{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){var n;if((e=null!==(n=V(this,e,t,0))&&void 0!==n?n:z)===D)return;const r=this._$AH,i=e===z&&r!==z||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==z&&(r===z||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}class Q{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){V(this,e)}}const ee={P:"$lit$",V:E,L:k,I:1,N:J,R:X,D:T,j:V,H:W,O:q,F:Z,B:Y,W:K,Z:Q};
3991/**
3992 * @license
3993 * Copyright 2017 Google LLC
3994 * SPDX-License-Identifier: BSD-3-Clause
3995 */
3996var te,ne,re;null===(v=globalThis.litHtmlPolyfillSupport)||void 0===v||v.call(globalThis,G,W),(null!==(y=globalThis.litHtmlVersions)&&void 0!==y?y:globalThis.litHtmlVersions=[]).push("2.0.0");const ie=g;class oe extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=$(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Dt)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Dt)||void 0===e||e.setConnected(!1)}render(){return D}}oe.finalized=!0,oe._$litElement$=!0,null===(te=globalThis.litElementHydrateSupport)||void 0===te||te.call(globalThis,{LitElement:oe}),null===(ne=globalThis.litElementPolyfillSupport)||void 0===ne||ne.call(globalThis,{LitElement:oe});const ae={_$AK:(e,t,n)=>{e._$AK(t,n)},_$AL:e=>e._$AL};(null!==(re=globalThis.litElementVersions)&&void 0!==re?re:globalThis.litElementVersions=[]).push("3.0.0")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),i=n(155);function o(e,t,n,o,a){let s;e=Object(r.a)(e),t=Object(r.a)(t);let l=1;const c=new Uint8Array(o),u=new Uint8Array(t.length+4);let f,d;u.set(t);for(let h=1;h<=l;h++){u[t.length]=h>>24&255,u[t.length+1]=h>>16&255,u[t.length+2]=h>>8&255,u[t.length+3]=255&h;let p=Object(r.a)(Object(i.a)(a,e,u));s||(s=p.length,d=new Uint8Array(s),l=Math.ceil(o/s),f=o-(l-1)*s),d.set(p);for(let t=1;t<n;t++){p=Object(r.a)(Object(i.a)(a,e,p));for(let e=0;e<s;e++)d[e]^=p[e]}const m=(h-1)*s,g=h===l?f:s;c.set(Object(r.a)(d).slice(0,g),m)}return Object(r.i)(c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),i=n(13),o=n(33);
3996function a(e){return"string"==typeof e&&(e=Object(o.f)(e)),Object(i.a)(Object(r.b)([Object(o.f)("�Ethereum Signed Message:\n"),Object(o.f)(String(e.length)),e]))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n(12),i=n(17),o=n(3),a=n(13),s=n(4),l=n(5),c=n(79),u=n(59),f=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const d=new l.b(c.a),h=new Uint8Array(32);h.fill(0);const p=i.a.from(-1),m=i.a.from(0),g=i.a.from(1),v=i.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const y=Object(o.h)(g.toHexString(),32),b=Object(o.h)(m.toHexString(),32),w={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},E=["name","version","chainId","verifyingContract","salt"];function k(e){return function(t){return"string"!=typeof t&&d.throwArgumentError("invalid domain value for "+JSON.stringify(e),"domain."+e,t),t}}const x={name:k("name"),version:k("version"),chainId:function(e){try{return i.a.from(e).toString()}catch(e){}return d.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return Object(r.a)(e).toLowerCase()}catch(e){}return d.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=Object(o.a)(e);if(32!==t.length)throw new Error("bad length");return Object(o.i)(t)}catch(e){}return d.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function S(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const n=""===t[1],r=parseInt(t[2]||"256");(r%8!=0||r>256||t[2]&&t[2]!==String(r))&&d.throwArgumentError("invalid numeric width","type",e);const a=v.mask(n?r-1:r),s=n?a.add(g).mul(p):m;return function(t){const n=i.a.from(t);return(n.lt(s)||n.gt(a))&&d.throwArgumentError("value out-of-bounds for "+e,"value",t),Object(o.h)(n.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const n=parseInt(t[1]);return(0===n||n>32||t[1]!==String(n))&&d.throwArgumentError("invalid bytes width","type",e),function(t){return Object(o.a)(t).length!==n&&d.throwArgumentError("invalid length for "+e,"value",t),function(e){const t=Object(o.a)(e),n=t.length%32;return n?Object(o.c)([t,h.slice(n)]):Object(o.i)(t)}(t)}}}switch(e){case"address":return function(e){return Object(o.h)(Object(r.a)(e),32)};case"bool":return function(e){return e?y:b};case"bytes":return function(e){return Object(a.a)(e)};case"string":return function(e){return Object(u.a)(e)}}return null}function _(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}class A{constructor(e){Object(s.d)(this,"types",Object.freeze(Object(s.c)(e))),Object(s.d)(this,"_encoderCache",{}),Object(s.d)(this,"_types",{});const t={},n={},r={};Object.keys(e).forEach(e=>{t[e]={},n[e]=[],r[e]={}});for(const r in e){const i={};e[r].forEach(o=>{i[o.name]&&d.throwArgumentError(`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(r)}`,"types",e),i[o.name]=!0;const a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===r&&d.throwArgumentError("circular type reference to "+JSON.stringify(a),"types",e);S(a)||(n[a]||d.throwArgumentError("unknown type "+JSON.stringify(a),"types",e),n[a].push(r),t[r][a]=!0)})}const i=Object.keys(n).filter(e=>0===n[e].length);0===i.length?d.throwArgumentError("missing primary type","types",e):i.length>1&&d.throwArgumentError("ambiguous primary types or unused types: "+i.map(e=>JSON.stringify(e)).join(", "),"types",e),Object(s.d)(this,"primaryType",i[0]),function i(o,a){a[o]&&d.throwArgumentError("circular type reference to "+JSON.stringify(o),"types",e),a[o]=!0,Object.keys(t[o]).forEach(e=>{n[e]&&(i(e,a),Object.keys(a).forEach(t=>{r[t][e]=!0}))}),delete a[o]}(this.primaryType,{});for(const t in r){const n=Object.keys(r[t]);n.sort(),this._types[t]=_(t,e[t])+n.map(t=>_(t,e[t])).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const t=S(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],n=this.getEncoder(e),r=parseInt(t[3]);return t=>{r>=0&&t.length!==r&&d.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(n);return this._types[e]&&(i=i.map(a.a)),Object(a.a)(Object(o.c)(i))}}const n=this.types[e];if(n){const t=Object(u.a)(this._types[e]);return e=>{const r=n.map(({name:t,type:n})=>{const r=this.getEncoder(n)(e[t]);return this._types[n]?Object(a.a)(r):r});return r.unshift(t),Object(o.c)(r)}}return d.throwArgumentError("unknown type: "+e,"type",e)}encodeType(e){const t=this._types[e];return t||d.throwArgumentError("unknown type: "+JSON.stringify(e),"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return Object(a.a)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(S(e))return n(e,t);const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const e=r[1],i=parseInt(r[3]);return i>=0&&t.length!==i&&d.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(t=>this._visit(e,t,n))}const i=this.types[e];return i?i.reduce((e,{name:r,type:i})=>(e[r]=this._visit(i,t[r],n),e),{}):d.throwArgumentError("unknown type: "+e,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new A(e)}static getPrimaryType(e){return A.from(e).primaryType}static hashStruct(e,t,n){return A.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){const r=w[n];r||d.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",e),t.push({name:n,type:r})}return t.sort((e,t)=>
3996E.indexOf(e.name)-E.indexOf(t.name)),A.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return Object(o.c)(["0x1901",A.hashDomain(e),A.from(t).hash(n)])}static hash(e,t,n){return Object(a.a)(A.encode(e,t,n))}static resolveNames(e,t,n,r){return f(this,void 0,void 0,(function*(){e=Object(s.g)(e);const i={};e.verifyingContract&&!Object(o.l)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const a=A.from(t);a.visit(n,(e,t)=>("address"!==e||Object(o.l)(t,20)||(i[t]="0x"),t));for(const e in i)i[e]=yield r(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=a.visit(n,(e,t)=>"address"===e&&i[t]?i[t]:t),{domain:e,value:n}}))}static getPayload(e,t,n){A.hashDomain(e);const r={},a=[];E.forEach(t=>{const n=e[t];null!=n&&(r[t]=x[t](n),a.push({name:t,type:w[t]}))});const l=A.from(t),c=Object(s.g)(t);return c.EIP712Domain?d.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):c.EIP712Domain=a,l.encode(n),{types:c,domain:r,primaryType:l.primaryType,message:l.visit(n,(e,t)=>{if(e.match(/^bytes(\d*)/))return Object(o.i)(Object(o.a)(t));if(e.match(/^u?int/))return i.a.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&d.throwArgumentError("invalid string","value",t),t}return d.throwArgumentError("unsupported type","type",e)})}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var r=n(3),i=n(154),o=n(33),a=n(13),s=n(5),l=n(79);const c=new s.b(l.a),u=new Uint8Array(32);u.fill(0);const f=new RegExp("^((.*)\\.)?([^.]+)$");function d(e){try{const t=e.split(".");for(let e=0;e<t.length;e++)if(0===Object(i.a)(t[e]).length)throw new Error("empty");return!0}catch(e){}return!1}function h(e){"string"!=typeof e&&c.throwArgumentError("invalid ENS name; not a string","name",e);let t=e,n=u;for(;t.length;){const s=t.match(f);null!=s&&""!==s[2]||c.throwArgumentError("invalid ENS address; missing component","name",e);const l=Object(o.f)(Object(i.a)(s[3]));n=Object(a.a)(Object(r.b)([n,Object(a.a)(l)])),t=s[2]||""}return Object(r.i)(n)}},function(e,t,n){"use strict";function r(e){for(let t=(e=e.slice()).length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return w}));var r=n(12),i=n(17),o=n(3),a=n(59),s=n(13),l=n(4),c=n(153),u=n(36),f=n(5),d=n(49);const h=new f.b(d.a);class p extends l.a{}class m extends l.a{}class g extends l.a{}class v extends l.a{static isIndexed(e){return!(!e||!e._isIndexed)}}const y={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function b(e,t){const n=new Error("deferred error during ABI decoding triggered accessing "+e);return n.error=t,n}class w{constructor(e){h.checkNew(new.target,w);let t=[];t="string"==typeof e?JSON.parse(e):e,Object(l.d)(this,"fragments",t.map(e=>u.e.from(e)).filter(e=>null!=e)),Object(l.d)(this,"_abiCoder",Object(l.e)(new.target,"getAbiCoder")()),Object(l.d)(this,"functions",{}),Object(l.d)(this,"errors",{}),Object(l.d)(this,"events",{}),Object(l.d)(this,"structs",{}),this.fragments.forEach(e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void h.warn("duplicate definition - constructor"):void Object(l.d)(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let n=e.format();t[n]?h.warn("duplicate definition - "+n):t[n]=e}),this.deploy||Object(l.d)(this,"deploy",u.a.from({payable:!1,type:"constructor"})),Object(l.d)(this,"_isInterface",!0)}format(e){e||(e=u.d.full),e===u.d.sighash&&h.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map(t=>t.format(e));return e===u.d.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return c.b}static getAddress(e){return Object(r.a)(e)}static getSighash(e){return Object(o.e)(Object(a.a)(e.format()),0,4)}static getEventTopic(e){return Object(a.a)(e.format())}getFunction(e){if(Object(o.l)(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];h.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.functions).filter(e=>e.split("(")[0]===t);return 0===n.length?h.throwArgumentError("no matching function","name",t):n.length>1&&h.throwArgumentError("multiple matching functions","name",t),this.functions[n[0]]}const t=this.functions[u.f.fromString(e).format()];return t||h.throwArgumentError("no matching function","signature",e),t}getEvent(e){if(Object(o.l)(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];h.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.events).filter(e=>e.split("(")[0]===t);return 0===n.length?h.throwArgumentError("no matching event","name",t):n.length>1&&h.throwArgumentError("multiple matching events","name",t),this.events[n[0]]}const t=this.events[u.c.fromString(e).format()];return t||h.throwArgumentError("no matching event","signature",e),t}getError(e){if(Object(o.l)(e)){const t=Object(l.e)(this.constructor,"getSighash");for(const n in this.errors){if(e===t(this.errors[n]))return this.errors[n]}h.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.errors).filter(e=>e.split("(")[0]===t);return 0===n.length?h.throwArgumentError("no matching error","name",t):n.length>1&&h.throwArgumentError("multiple matching errors","name",t),this.errors[n[0]]}const t=this.errors[u.f.fromString(e).format()];return t||h.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return Object(l.e)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),Object(l.e)(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));const n=Object(o.a)(t);return Object(o.i)(n.slice(0,4))!==this.getSighash(e)&&h.throwArgumentError(`data signature does not match error ${e.name}.`,"data",Object(o.i)(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),Object(o.i)(Object(o.b)([this.get
3996Sighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));const n=Object(o.a)(t);return Object(o.i)(n.slice(0,4))!==this.getSighash(e)&&h.throwArgumentError(`data signature does not match function ${e.name}.`,"data",Object(o.i)(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(o.i)(Object(o.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let n=Object(o.a)(t),r=null,i=null,a=null,s=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(e){}break;case 4:{const e=Object(o.i)(n.slice(0,4)),t=y[e];if(t)i=this._abiCoder.decode(t.inputs,n.slice(4)),a=t.name,s=t.signature,t.reason&&(r=i[0]);else try{const t=this.getError(e);i=this._abiCoder.decode(t.inputs,n.slice(4)),a=t.name,s=t.format()}catch(e){console.log(e)}break}}return h.throwError("call revert exception",f.b.errors.CALL_EXCEPTION,{method:e.format(),errorArgs:i,errorName:a,errorSignature:s,reason:r})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(o.i)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&h.throwError("too many arguments for "+e.format(),f.b.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let n=[];e.anonymous||n.push(this.getEventTopic(e));const r=(e,t)=>"string"===e.type?Object(a.a)(t):"bytes"===e.type?Object(s.a)(Object(o.i)(t)):("address"===e.type&&this._abiCoder.encode(["address"],[t]),Object(o.h)(Object(o.i)(t),32));for(t.forEach((t,i)=>{let o=e.inputs[i];o.indexed?null==t?n.push(null):"array"===o.baseType||"tuple"===o.baseType?h.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?n.push(t.map(e=>r(o,e))):n.push(r(o,t)):null!=t&&h.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)});n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));const n=[],r=[],i=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&h.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((e,o)=>{const l=t[o];if(e.indexed)if("string"===e.type)n.push(Object(a.a)(l));else if("bytes"===e.type)n.push(Object(s.a)(l));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(this._abiCoder.encode([e.type],[l]))}else r.push(e),i.push(l)}),{data:this._abiCoder.encode(r,i),topics:n}}decodeEventLog(e,t,n){if("string"==typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){let t=this.getEventTopic(e);Object(o.l)(n[0],32)&&n[0].toLowerCase()===t||h.throwError("fragment/topic mismatch",f.b.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:n[0]}),n=n.slice(1)}let r=[],i=[],a=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(u.g.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(r.push(e),a.push(!1)):(i.push(e),a.push(!1))});let s=null!=n?this._abiCoder.decode(r,Object(o.b)(n)):null,l=this._abiCoder.decode(i,t,!0),c=[],d=0,p=0;e.inputs.forEach((e,t)=>{if(e.indexed)if(null==s)c[t]=new v({_isIndexed:!0,hash:null});else if(a[t])c[t]=new v({_isIndexed:!0,hash:s[p++]});else try{c[t]=s[p++]}catch(e){c[t]=e}else try{c[t]=l[d++]}catch(e){c[t]=e}if(e.name&&null==c[e.name]){const n=c[t];n instanceof Error?Object.defineProperty(c,e.name,{enumerable:!0,get:()=>{throw b("property "+JSON.stringify(e.name),n)}}):c[e.name]=n}});for(let e=0;e<c.length;e++){const t=c[e];t instanceof Error&&Object.defineProperty(c,e,{enumerable:!0,get:()=>{throw b("index "+e,t)}})}return Object.freeze(c)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new m({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:i.a.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new p({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){const t=Object(o.i)(e);let n=this.getError(t.substring(0,10).toLowerCase());return n?new g({args:this._abiCoder.decode(n.inputs,"0x"+t.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(e){return!(!e||!e._isInterface)}}}]);
3997//# sourceMappingURL=bundle-68f950.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.