-
Notifications
You must be signed in to change notification settings - Fork 0
/
24.67e2707aca91e05e0164.js
1 lines (1 loc) · 162 KB
/
24.67e2707aca91e05e0164.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"+GYH":function(e,t,n){const r=n("MCLT").inherits,o=n("2WD0");function i(e){this.staticResponses=e=e||{}}e.exports=i,r(i,o),i.prototype.handleRequest=function(e,t,n){var r=this.staticResponses[e.method];"function"==typeof r?r(e,t,n):void 0!==r?setTimeout(()=>n(null,r)):t()}},"+QRC":function(e,t,n){"use strict";var r=n("E9nw"),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,s,a,c,u,l=!1;t||(t={}),n=t.debug||!1;try{if(s=r(),a=document.createRange(),c=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(r){r.stopPropagation(),t.format&&(r.preventDefault(),void 0===r.clipboardData?(n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData(),window.clipboardData.setData(o[t.format]||o.default,e)):(r.clipboardData.clearData(),r.clipboardData.setData(t.format,e))),t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(u),a.selectNodeContents(u),c.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(a):c.removeAllRanges()),u&&document.body.removeChild(u),s()}return l}},"/GNo":function(e,t,n){"use strict";(function(e){function n(){return(null==e?void 0:e.crypto)||(null==e?void 0:e.msCrypto)||{}}function r(){const e=n();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=n,t.getSubtleCrypto=r,t.isBrowserCryptoAvailable=function(){return!!n()&&!!r()}}).call(this,n("yLpj"))},"/KFh":function(e,t,n){"use strict";n("zy0H")},"0FX9":function(e,t,n){var r=n("Z92M"),o=n("qmMu"),i=n("QUaw"),s=n("QAZZ");function a(e,t,n,i,s){var a=[].slice.call(arguments,1),c=a.length,u="function"==typeof a[c-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=i=void 0):2!==c||t.getContext||(i=n,n=t,t=void 0),new Promise(function(r,s){try{var a=o.create(n,i);r(e(a,t,i))}catch(c){s(c)}})}if(c<2)throw new Error("Too few arguments provided");2===c?(s=n,n=t,t=i=void 0):3===c&&(t.getContext&&void 0===s?(s=i,i=void 0):(s=i,i=n,n=t,t=void 0));try{var l=o.create(n,i);s(null,e(l,t,i))}catch(d){s(d)}}t.create=o.create,t.toCanvas=a.bind(null,i.render),t.toDataURL=a.bind(null,i.renderToDataURL),t.toString=a.bind(null,function(e,t,n){return s.render(e,n)})},"1sBl":function(e,t,n){var r=n("e/Dd").getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7],s=1;s<t-1;s++)i[s]=i[s-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){for(var n=[],r=t.getRowColCoords(e),o=r.length,i=0;i<o;i++)for(var s=0;s<o;s++)0===i&&0===s||0===i&&s===o-1||i===o-1&&0===s||n.push([r[i],r[s]]);return n}},"2WD0":function(e,t,n){const r=n("6JD6");function o(){}e.exports=o,o.prototype.setEngine=function(e){const t=this;t.engine||(t.engine=e,e.on("block",function(e){t.currentBlock=e}),e.on("start",function(){t.start()}),e.on("stop",function(){t.stop()}))},o.prototype.handleRequest=function(e,t,n){throw new Error("Subproviders should override `handleRequest`.")},o.prototype.emitPayload=function(e,t){this.engine.sendAsync(r(e),t)},o.prototype.stop=function(){},o.prototype.start=function(){}},"3X7Y":function(e,t,n){var r=n("u/Db");function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){var t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);var o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},"4f1M":function(e,t,n){"use strict";(function(e){function n(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function r(){return void 0!==e&&void 0!==e.versions&&void 0!==e.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=n,t.isNode=r,t.isBrowser=function(){return!n()&&!r()}}).call(this,n("8oxB"))},"5Afs":function(e,t,n){const r=n("Itfy"),o=n("t7TP");e.exports=class extends r{constructor(){super(({blockTracker:e,provider:t,engine:n})=>{const{events:r,middleware:i}=o({blockTracker:e,provider:t});return r.on("notification",e=>n.emit("data",null,e)),i})}}},"6JD6":function(e,t,n){const r=n("ZlHy"),o=n("U6jy");e.exports=function(e){return o({id:r(),jsonrpc:"2.0",params:[]},e)}},"7uVY":function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"80ya":function(e,t,n){const r=n("Itfy"),o=n("2nhq");e.exports=class extends r{constructor(){super(({blockTracker:e,provider:t})=>o({blockTracker:e,provider:t}))}}},"84cS":function(e,t,n){const r=n("+qE3").EventEmitter,o=n("MCLT").inherits;function i(){r.call(this),this.isLocked=!0}e.exports=i,o(i,r),i.prototype.go=function(){this.isLocked=!1,this.emit("unlock")},i.prototype.stop=function(){this.isLocked=!0,this.emit("lock")},i.prototype.await=function(e){this.isLocked?this.once("unlock",e):setTimeout(e)}},"8Z26":function(e,t,n){const r=n("l1gh"),o=n("KWkM"),i=n("MCLT").inherits,s=n("tnHP"),a=n("HtlB"),c=n("U6jy"),u=n("odnP"),l=n("2WD0"),d=n("PEyM"),h=/^[0-9A-Fa-f]+$/g;function f(e){const t=this;t.nonceLock=u(1),e.getAccounts&&(t.getAccounts=e.getAccounts),e.processTransaction&&(t.processTransaction=e.processTransaction),e.processMessage&&(t.processMessage=e.processMessage),e.processPersonalMessage&&(t.processPersonalMessage=e.processPersonalMessage),e.processTypedMessage&&(t.processTypedMessage=e.processTypedMessage),t.approveTransaction=e.approveTransaction||t.autoApprove,t.approveMessage=e.approveMessage||t.autoApprove,t.approvePersonalMessage=e.approvePersonalMessage||t.autoApprove,t.approveDecryptMessage=e.approveDecryptMessage||t.autoApprove,t.approveEncryptionPublicKey=e.approveEncryptionPublicKey||t.autoApprove,t.approveTypedMessage=e.approveTypedMessage||t.autoApprove,e.signTransaction&&(t.signTransaction=e.signTransaction||y("signTransaction")),e.signMessage&&(t.signMessage=e.signMessage||y("signMessage")),e.signPersonalMessage&&(t.signPersonalMessage=e.signPersonalMessage||y("signPersonalMessage")),e.decryptMessage&&(t.decryptMessage=e.decryptMessage||y("decryptMessage")),e.encryptionPublicKey&&(t.encryptionPublicKey=e.encryptionPublicKey||y("encryptionPublicKey")),e.signTypedMessage&&(t.signTypedMessage=e.signTypedMessage||y("signTypedMessage")),e.recoverPersonalSignature&&(t.recoverPersonalSignature=e.recoverPersonalSignature),e.publishTransaction&&(t.publishTransaction=e.publishTransaction),t.estimateGas=e.estimateGas||t.estimateGas,t.getGasPrice=e.getGasPrice||t.getGasPrice}function p(e){return e.toLowerCase()}function _(e){const t=s.addHexPrefix(e);return s.isValidAddress(t)}function g(e){const t=s.addHexPrefix(e);return!s.isValidAddress(t)&&m(e)}function m(e){return"string"==typeof e&&"0x"===e.slice(0,2)&&e.slice(2).match(h)}function y(e){return function(t,n){n(new Error('ProviderEngine - HookedWalletSubprovider - Must provide "'+e+'" fn in constructor options'))}}e.exports=f,i(f,l),f.prototype.handleRequest=function(e,t,n){const o=this;let i,s,a,u,l;switch(o._parityRequests={},o._parityRequestCount=0,e.method){case"eth_coinbase":return void o.getAccounts(function(e,t){if(e)return n(e);n(null,t[0]||null)});case"eth_accounts":return void o.getAccounts(function(e,t){if(e)return n(e);n(null,t)});case"eth_sendTransaction":return i=e.params[0],void r([e=>o.validateTransaction(i,e),e=>o.processTransaction(i,e)],n);case"eth_signTransaction":return i=e.params[0],void r([e=>o.validateTransaction(i,e),e=>o.processSignTransaction(i,e)],n);case"eth_sign":return l=e.params[0],u=e.params[1],a=e.params[2]||{},s=c(a,{from:l,data:u}),void r([e=>o.validateMessage(s,e),e=>o.processMessage(s,e)],n);case"personal_sign":return function(){const t=e.params[0];if(g(e.params[1])&&_(t)){let t="The eth_personalSign method requires params ordered ";t+="[message, address]. This was previously handled incorrectly, ",t+="and has been corrected automatically. ",t+="Please switch this param order for smooth behavior in the future.",console.warn(t),l=e.params[0],u=e.params[1]}else u=e.params[0],l=e.params[1];a=e.params[2]||{},s=c(a,{from:l,data:u}),r([e=>o.validatePersonalMessage(s,e),e=>o.processPersonalMessage(s,e)],n)}();case"eth_decryptMessage":return function(){const t=e.params[0];if(g(e.params[1])&&_(t)){let t="The eth_decryptMessage method requires params ordered ";t+="[message, address]. This was previously handled incorrectly, ",t+="and has been corrected automatically. ",t+="Please switch this param order for smooth behavior in the future.",console.warn(t),l=e.params[0],u=e.params[1]}else u=e.params[0],l=e.params[1];a=e.params[2]||{},s=c(a,{from:l,data:u}),r([e=>o.validateDecryptMessage(s,e),e=>o.processDecryptMessage(s,e)],n)}();case"encryption_public_key":return function(){const t=e.params[0];r([e=>o.validateEncryptionPublicKey(t,e),e=>o.processEncryptionPublicKey(t,e)],n)}();case"personal_ecRecover":return u=e.params[0],a=e.params[2]||{},s=c(a,{sig:e.params[1],data:u}),void o.recoverPersonalSignature(s,n);case"eth_signTypedData":case"eth_signTypedData_v3":case"eth_signTypedData_v4":return function(){const t=e.params[0],i=e.params[1];_(t)?(l=t,u=i):(u=t,l=i),a=e.params[2]||{},s=c(a,{from:l,data:u}),r([e=>o.validateTypedMessage(s,e),e=>o.processTypedMessage(s,e)],n)}();case"parity_postTransaction":return i=e.params[0],void o.parityPostTransaction(i,n);case"parity_postSign":return l=e.params[0],u=e.params[1],void o.parityPostSign(l,u,n);case"parity_checkRequest":return void o.parityCheckRequest(e.params[0],n);case"parity_defaultAccount":return void o.getAccounts(function(e,t){if(e)return n(e);n(null,t[0]||null)});default:return void t()}},f.prototype.getAccounts=function(e){e(null,[])},f.prototype.processTransaction=function(e,t){const n=this;r([t=>n.approveTransaction(e,t),(e,t)=>n.checkApproval("transaction",e,t),t=>n.finalizeAndSubmitTx(e,t)],t)},f.prototype.processSignTransaction=function(e,t){const n=this;r([t=>n.approveTransaction(e,t),(e,t)=>n.checkApproval("transaction",e,t),t=>n.finalizeTx(e,t)],t)},f.prototype.processMessage=function(e,t){const n=this;r([t=>n.approveMessage(e,t),(e,t)=>n.checkApproval("message",e,t),t=>n.signMessage(e,t)],t)},f.prototype.processPersonalMessage=function(e,t){const n=this;r([t=>n.approvePersonalMessage(e,t),(e,t)=>n.checkApproval("message",e,t),t=>n.signPersonalMessage(e,t)],t)},f.prototype.processDecryptMessage=function(e,t){const n=this;r([t=>n.approveDecryptMessage(e,t),(e,t)=>n.checkApproval("decryptMessage",e,t),t=>n.decryptMessage(e,t)],t)},f.prototype.processEncryptionPublicKey=function(e,t){const n=this;r([t=>n.approveEncryptionPublicKey(e,t),(e,t)=>n.checkApproval("encryptionPublicKey",e,t),t=>n.encryptionPublicKey(e,t)],t)},f.prototype.processTypedMessage=function(e,t){const n=this;r([t=>n.approveTypedMessage(e,t),(e,t)=>n.checkApproval("message",e,t),t=>n.signTypedMessage(e,t)],t)},f.prototype.autoApprove=function(e,t){t(null,!0)},f.prototype.checkApproval=function(e,t,n){n(t?null:new Error("User denied "+e+" signature."))},f.prototype.parityPostTransaction=function(e,t){const n=this,r=`0x${n._parityRequestCount.toString(16)}`;n._parityRequestCount++,n.emitPayload({method:"eth_sendTransaction",params:[e]},function(e,t){n._parityRequests[r]=e?{error:e}:t.result}),t(null,r)},f.prototype.parityPostSign=function(e,t,n){const r=this,o=`0x${r._parityRequestCount.toString(16)}`;r._parityRequestCount++,r.emitPayload({method:"eth_sign",params:[e,t]},function(e,t){r._parityRequests[o]=e?{error:e}:t.result}),n(null,o)},f.prototype.parityCheckRequest=function(e,t){const n=this._parityRequests[e]||null;return n?n.error?t(n.error):void t(null,n):t(null,null)},f.prototype.recoverPersonalSignature=function(e,t){let n;try{n=a.recoverPersonalSignature(e)}catch(r){return t(r)}t(null,n)},f.prototype.validateTransaction=function(e,t){if(void 0===e.from)return t(new Error("Undefined address - from address required to sign transaction."));this.validateSender(e.from,function(n,r){return n?t(n):r?void t():t(new Error(`Unknown address - unable to sign transaction for this address: "${e.from}"`))})},f.prototype.validateMessage=function(e,t){if(void 0===e.from)return t(new Error("Undefined address - from address required to sign message."));this.validateSender(e.from,function(n,r){return n?t(n):r?void t():t(new Error(`Unknown address - unable to sign message for this address: "${e.from}"`))})},f.prototype.validatePersonalMessage=function(e,t){return void 0===e.from?t(new Error("Undefined address - from address required to sign personal message.")):void 0===e.data?t(new Error("Undefined message - message required to sign personal message.")):m(e.data)?void this.validateSender(e.from,function(n,r){return n?t(n):r?void t():t(new Error(`Unknown address - unable to sign message for this address: "${e.from}"`))}):t(new Error("HookedWalletSubprovider - validateMessage - message was not encoded as hex."))},f.prototype.validateDecryptMessage=function(e,t){return void 0===e.from?t(new Error("Undefined address - from address required to decrypt message.")):void 0===e.data?t(new Error("Undefined message - message required to decrypt message.")):m(e.data)?void this.validateSender(e.from,function(n,r){return n?t(n):r?void t():t(new Error(`Unknown address - unable to decrypt message for this address: "${e.from}"`))}):t(new Error("HookedWalletSubprovider - validateDecryptMessage - message was not encoded as hex."))},f.prototype.validateEncryptionPublicKey=function(e,t){this.validateSender(e,function(n,r){return n?t(n):r?void t():t(new Error(`Unknown address - unable to obtain encryption public key for this address: "${e}"`))})},f.prototype.validateTypedMessage=function(e,t){return void 0===e.from?t(new Error("Undefined address - from address required to sign typed data.")):void 0===e.data?t(new Error("Undefined data - message required to sign typed data.")):void this.validateSender(e.from,function(n,r){return n?t(n):r?void t():t(new Error(`Unknown address - unable to sign message for this address: "${e.from}"`))})},f.prototype.validateSender=function(e,t){if(!e)return t(null,!1);this.getAccounts(function(n,r){if(n)return t(n);const o=-1!==r.map(p).indexOf(e.toLowerCase());t(null,o)})},f.prototype.finalizeAndSubmitTx=function(e,t){const n=this;n.nonceLock.take(function(){r([n.fillInTxExtras.bind(n,e),n.signTransaction.bind(n),n.publishTransaction.bind(n)],function(e,r){if(n.nonceLock.leave(),e)return t(e);t(null,r)})})},f.prototype.finalizeTx=function(e,t){const n=this;n.nonceLock.take(function(){r([n.fillInTxExtras.bind(n,e),n.signTransaction.bind(n)],function(r,o){if(n.nonceLock.leave(),r)return t(r);t(null,{raw:o,tx:e})})})},f.prototype.publishTransaction=function(e,t){this.emitPayload({method:"eth_sendRawTransaction",params:[e]},function(e,n){if(e)return t(e);t(null,n.result)})},f.prototype.estimateGas=function(e,t){d(this.engine,e,t)},f.prototype.getGasPrice=function(e){this.emitPayload({method:"eth_gasPrice",params:[]},function(t,n){if(t)return e(t);e(null,n.result)})},f.prototype.fillInTxExtras=function(e,t){const n=this,r=e.from,i={};void 0===e.gasPrice&&(i.gasPrice=n.getGasPrice.bind(n)),void 0===e.nonce&&(i.nonce=n.emitPayload.bind(n,{method:"eth_getTransactionCount",params:[r,"pending"]})),void 0===e.gas&&(i.gas=n.estimateGas.bind(n,function(e){return{from:e.from,to:e.to,value:e.value,data:e.data,gas:e.gas,gasPrice:e.gasPrice,nonce:e.nonce}}(e))),o(i,function(n,r){if(n)return t(n);const o={};r.gasPrice&&(o.gasPrice=r.gasPrice),r.nonce&&(o.nonce=r.nonce.result),r.gas&&(o.gas=r.gas),t(null,c(e,o))})}},"8yz6":function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},AZa5:function(e,t,n){var r=n("Wogr"),o=n("u/Db");function i(e){this.mode=o.BYTE,this.data=r.from(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(var t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},BCVQ:function(e,t){var n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",r="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(r,"g"),t.NUMERIC=new RegExp("[0-9]+","g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var o=new RegExp("^"+n+"$"),i=new RegExp("^[0-9]+$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},BFhG:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("RM/z");async function o(e,t){return await Object(r.c)(e,t)}n("xesE")},BJdv:function(e,t,n){(function(t){var r=n("qXd6").strict;e.exports=function(e){if(r(e)){var n=t.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(n=n.slice(e.byteOffset,e.byteOffset+e.byteLength)),n}return t.from(e)}}).call(this,n("tjlA").Buffer)},E9nw:function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},ELBg:function(e,t,n){"use strict";var r={single_source_shortest_paths:function(e,t,n){var o={},i={};i[t]=0;var s,a,c,u,l,d,h=r.PriorityQueue.make();for(h.push(t,0);!h.empty();)for(c in u=(s=h.pop()).cost,l=e[a=s.value]||{})l.hasOwnProperty(c)&&(d=u+l[c],(void 0===i[c]||i[c]>d)&&(i[c]=d,h.push(c,d),o[c]=a));if(void 0!==n&&void 0===i[n]){var f=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),r=e[r];return n.reverse(),n},find_path:function(e,t,n){var o=r.single_source_shortest_paths(e,t,n);return r.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(e){var t,n=r.PriorityQueue,o={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(o[t]=n[t]);return o.queue=[],o.sorter=e.sorter||n.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=r},FdF9:function(e,t,n){"use strict";n.r(t),n.d(t,"useState",function(){return V}),n.d(t,"useReducer",function(){return Q}),n.d(t,"useEffect",function(){return G}),n.d(t,"useLayoutEffect",function(){return Z}),n.d(t,"useRef",function(){return X}),n.d(t,"useImperativeHandle",function(){return ee}),n.d(t,"useMemo",function(){return te}),n.d(t,"useCallback",function(){return ne}),n.d(t,"useContext",function(){return re}),n.d(t,"useDebugValue",function(){return oe}),n.d(t,"useErrorBoundary",function(){return ie}),n.d(t,"createElement",function(){return _}),n.d(t,"createContext",function(){return j}),n.d(t,"createRef",function(){return m}),n.d(t,"Fragment",function(){return y}),n.d(t,"Component",function(){return v}),n.d(t,"version",function(){return qe}),n.d(t,"Children",function(){return ye}),n.d(t,"render",function(){return Re}),n.d(t,"hydrate",function(){return Be}),n.d(t,"unmountComponentAtNode",function(){return He}),n.d(t,"createPortal",function(){return Me}),n.d(t,"createFactory",function(){return je}),n.d(t,"cloneElement",function(){return De}),n.d(t,"isValidElement",function(){return Ue}),n.d(t,"findDOMNode",function(){return Fe}),n.d(t,"PureComponent",function(){return fe}),n.d(t,"memo",function(){return pe}),n.d(t,"forwardRef",function(){return ge}),n.d(t,"unstable_batchedUpdates",function(){return We}),n.d(t,"Suspense",function(){return be}),n.d(t,"SuspenseList",function(){return Ce}),n.d(t,"lazy",function(){return xe});var r,o,i,s,a,c,u,l={},d=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function f(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n){var r,o=arguments,i={};for(r in t)"key"!==r&&"ref"!==r&&(i[r]=t[r]);if(arguments.length>3)for(n=[n],r=3;r<arguments.length;r++)n.push(o[r]);if(null!=n&&(i.children=n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===i[r]&&(i[r]=e.defaultProps[r]);return g(e,i,t&&t.key,t&&t.ref,null)}function g(e,t,n,o,i){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i};return null==i&&(s.__v=s),r.vnode&&r.vnode(s),s}function m(){return{}}function y(e){return e.children}function v(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function b(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return b(e)}}function k(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!i++||a!==r.debounceRendering)&&((a=r.debounceRendering)||s)(x)}function x(){for(var e;i=o.length;)e=o.sort(function(e,t){return e.__v.__b-t.__v.__b}),o=[],e.some(function(e){var t,n,r,o,i,s,a;e.__d&&(s=(i=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=f({},i)).__v=r,o=I(a,i,r,t.__n,void 0!==a.ownerSVGElement,null,n,null==s?w(i):s),A(n,i),o!=s&&b(i)))})}function C(e,t,n,r,o,i,s,a,c){var u,h,f,_,g,m,y,v=n&&n.__k||d,b=v.length;if(a==l&&(a=null!=i?i[0]:b?w(n,0):null),u=0,t.__k=T(t.__k,function(n){if(null!=n){if(n.__=t,n.__b=t.__b+1,null===(f=v[u])||f&&n.key==f.key&&n.type===f.type)v[u]=void 0;else for(h=0;h<b;h++){if((f=v[h])&&n.key==f.key&&n.type===f.type){v[h]=void 0;break}f=null}if(_=I(e,n,f=f||l,r,o,i,s,a,c),(h=n.ref)&&f.ref!=h&&(y||(y=[]),f.ref&&y.push(f.ref,null,n),y.push(h,n.__c||_,n)),null!=_){var d;if(null==m&&(m=_),void 0!==n.__d)d=n.__d,n.__d=void 0;else if(i==f||_!=a||null==_.parentNode){e:if(null==a||a.parentNode!==e)e.appendChild(_),d=null;else{for(g=a,h=0;(g=g.nextSibling)&&h<b;h+=2)if(g==_)break e;e.insertBefore(_,a),d=a}"option"==t.type&&(e.value="")}a=void 0!==d?d:_.nextSibling,"function"==typeof t.type&&(t.__d=a)}else a&&f.__e==a&&a.parentNode!=e&&(a=w(f))}return u++,n}),t.__e=m,null!=i&&"function"!=typeof t.type)for(u=i.length;u--;)null!=i[u]&&p(i[u]);for(u=b;u--;)null!=v[u]&&P(v[u],v[u]);if(y)for(u=0;u<y.length;u++)B(y[u],y[++u],y[++u])}function T(e,t,n){if(null==n&&(n=[]),null==e||"boolean"==typeof e)t&&n.push(t(null));else if(Array.isArray(e))for(var r=0;r<e.length;r++)T(e[r],t,n);else n.push(t?t("string"==typeof e||"number"==typeof e?g(null,e,null,null,e):null!=e.__e||null!=e.__c?g(e.type,e.props,e.key,null,e.__v):e):e);return n}function E(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]="number"==typeof n&&!1===h.test(t)?n+"px":null==n?"":n}function S(e,t,n,r,o){var i,s,a,c,u;if(o?"className"===t&&(t="class"):"class"===t&&(t="className"),"style"===t)if(i=e.style,"string"==typeof n)i.cssText=n;else{if("string"==typeof r&&(i.cssText="",r=null),r)for(c in r)n&&c in n||E(i,c,"");if(n)for(u in n)r&&n[u]===r[u]||E(i,u,n[u])}else"o"===t[0]&&"n"===t[1]?(s=t!==(t=t.replace(/Capture$/,"")),a=t.toLowerCase(),t=(a in e?a:t).slice(2),n?(r||e.addEventListener(t,M,s),(e.l||(e.l={}))[t]=n):e.removeEventListener(t,M,s)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&!o&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/^xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function M(e){this.l[e.type](r.event?r.event(e):e)}function I(e,t,n,o,i,s,a,c,u){var l,d,h,p,_,g,m,w,b,k,x=t.type;if(void 0!==t.constructor)return null;(l=r.__b)&&l(t);try{e:if("function"==typeof x){if(w=t.props,b=(l=x.contextType)&&o[l.__c],k=l?b?b.props.value:l.__:o,n.__c?m=(d=t.__c=n.__c).__=d.__E:("prototype"in x&&x.prototype.render?t.__c=d=new x(w,k):(t.__c=d=new v(w,k),d.constructor=x,d.render=O),b&&b.sub(d),d.props=w,d.state||(d.state={}),d.context=k,d.__n=o,h=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,x.getDerivedStateFromProps(w,d.__s))),p=d.props,_=d.state,h)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==x.getDerivedStateFromProps&&w!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(w,k),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(w,d.__s,k)||t.__v===n.__v&&!d.__){for(d.props=w,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,d.__h.length&&a.push(d),l=0;l<t.__k.length;l++)t.__k[l]&&(t.__k[l].__=t);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(w,d.__s,k),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(p,_,g)})}d.context=k,d.props=w,d.state=d.__s,(l=r.__r)&&l(t),d.__d=!1,d.__v=t,d.__P=e,l=d.render(d.props,d.state,d.context),t.__k=null!=l&&l.type==y&&null==l.key?l.props.children:Array.isArray(l)?l:[l],null!=d.getChildContext&&(o=f(f({},o),d.getChildContext())),h||null==d.getSnapshotBeforeUpdate||(g=d.getSnapshotBeforeUpdate(p,_)),C(e,t,n,o,i,s,a,c,u),d.base=t.__e,d.__h.length&&a.push(d),m&&(d.__E=d.__=null),d.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=R(n.__e,t,n,o,i,s,a,u);(l=r.diffed)&&l(t)}catch(e){t.__v=null,r.__e(e,t,n)}return t.__e}function A(e,t){r.__c&&r.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){r.__e(e,t.__v)}})}function R(e,t,n,r,o,i,s,a){var c,u,h,f,p,_=n.props,g=t.props;if(o="svg"===t.type||o,null!=i)for(c=0;c<i.length;c++)if(null!=(u=i[c])&&((null===t.type?3===u.nodeType:u.localName===t.type)||e==u)){e=u,i[c]=null;break}if(null==e){if(null===t.type)return document.createTextNode(g);e=o?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,g.is&&{is:g.is}),i=null,a=!1}if(null===t.type)_!==g&&e.data!=g&&(e.data=g);else{if(null!=i&&(i=d.slice.call(e.childNodes)),h=(_=n.props||l).dangerouslySetInnerHTML,f=g.dangerouslySetInnerHTML,!a){if(_===l)for(_={},p=0;p<e.attributes.length;p++)_[e.attributes[p].name]=e.attributes[p].value;(f||h)&&(f&&h&&f.__html==h.__html||(e.innerHTML=f&&f.__html||""))}(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||S(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||S(e,i,t[i],n[i],r)})(e,g,_,o,a),f?t.__k=[]:(t.__k=t.props.children,C(e,t,n,r,"foreignObject"!==t.type&&o,i,s,l,a)),a||("value"in g&&void 0!==(c=g.value)&&c!==e.value&&S(e,"value",c,_.value,!1),"checked"in g&&void 0!==(c=g.checked)&&c!==e.checked&&S(e,"checked",c,_.checked,!1))}return e}function B(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function P(e,t,n){var o,i,s;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||B(o,null,t)),n||"function"==typeof e.type||(n=null!=(i=e.__e)),e.__e=e.__d=void 0,null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&P(o[s],t,n);null!=i&&p(i)}function O(e,t,n){return this.constructor(e,n)}function N(e,t,n){var o,i,s;r.__&&r.__(e,t),i=(o=n===c)?null:n&&n.__k||t.__k,e=_(y,null,[e]),s=[],I(t,(o?t:n||t).__k=e,i||l,l,void 0!==t.ownerSVGElement,n&&!o?[n]:i?null:d.slice.call(t.childNodes),s,n||l,o),A(s,e)}function L(e,t){N(e,t,c)}function q(e,t){var n,r;for(r in t=f(f({},e.props),t),arguments.length>2&&(t.children=d.slice.call(arguments,2)),n={},t)"key"!==r&&"ref"!==r&&(n[r]=t[r]);return g(e.type,n,t.key||e.key,t.ref||e.ref,null)}function j(e){var t={},n={__c:"__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,o=this;return this.getChildContext||(r=[],this.getChildContext=function(){return t[n.__c]=o,t},this.shouldComponentUpdate=function(e){o.props.value!==e.value&&r.some(function(t){t.context=e.value,k(t)})},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Consumer.contextType=n,n.Provider.__=n,n}r={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return k(n.__E=n)}catch(t){e=t}throw e}},v.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(n,this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),k(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},v.prototype.render=y,o=[],i=0,s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=l,u=0;var U,D,H,F=0,W=[],z=r.__r,J=r.diffed,$=r.__c,Y=r.unmount;function K(e,t){r.__h&&r.__h(D,e,F||t),F=0;var n=D.__H||(D.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function V(e){return F=1,Q(le,e)}function Q(e,t,n){var r=K(U++,2);return r.__c||(r.__c=D,r.__=[n?n(t):le(void 0,t),function(t){var n=e(r.__[0],t);r.__[0]!==n&&(r.__[0]=n,r.__c.setState({}))}]),r.__}function G(e,t){var n=K(U++,3);!r.__s&&ue(n.__H,t)&&(n.__=e,n.__H=t,D.__H.__h.push(n))}function Z(e,t){var n=K(U++,4);!r.__s&&ue(n.__H,t)&&(n.__=e,n.__H=t,D.__h.push(n))}function X(e){return F=5,te(function(){return{current:e}},[])}function ee(e,t,n){F=6,Z(function(){"function"==typeof e?e(t()):e&&(e.current=t())},null==n?n:n.concat(e))}function te(e,t){var n=K(U++,7);return ue(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function ne(e,t){return F=8,te(function(){return e},t)}function re(e){var t=D.context[e.__c],n=K(U++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(D)),t.props.value):e.__}function oe(e,t){r.useDebugValue&&r.useDebugValue(t?t(e):e)}function ie(e){var t=K(U++,10),n=V();return t.__=e,D.componentDidCatch||(D.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function se(){W.some(function(e){if(e.__P)try{e.__H.__h.forEach(ae),e.__H.__h.forEach(ce),e.__H.__h=[]}catch(t){return e.__H.__h=[],r.__e(t,e.__v),!0}}),W=[]}function ae(e){e.t&&e.t()}function ce(e){var t=e.__();"function"==typeof t&&(e.t=t)}function ue(e,t){return!e||t.some(function(t,n){return t!==e[n]})}function le(e,t){return"function"==typeof t?t(e):t}function de(e,t){for(var n in t)e[n]=t[n];return e}function he(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}r.__r=function(e){z&&z(e),U=0,(D=e.__c).__H&&(D.__H.__h.forEach(ae),D.__H.__h.forEach(ce),D.__H.__h=[])},r.diffed=function(e){J&&J(e);var t=e.__c;if(t){var n=t.__H;n&&n.__h.length&&(1!==W.push(t)&&H===r.requestAnimationFrame||((H=r.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);"undefined"!=typeof window&&(t=requestAnimationFrame(n))})(se))}},r.__c=function(e,t){t.some(function(e){try{e.__h.forEach(ae),e.__h=e.__h.filter(function(e){return!e.__||ce(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],r.__e(n,e.__v)}}),$&&$(e,t)},r.unmount=function(e){Y&&Y(e);var t=e.__c;if(t){var n=t.__H;if(n)try{n.__.forEach(function(e){return e.t&&e.t()})}catch(e){r.__e(e,t.__v)}}};var fe=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).isPureReactComponent=!0,n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.shouldComponentUpdate=function(e,t){return he(this.props,e)||he(this.state,t)},r}(v);function pe(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:he(this.props,e)}function r(t){return this.shouldComponentUpdate=n,_(e,de({},t))}return r.prototype.isReactComponent=!0,r.displayName="Memo("+(e.displayName||e.name)+")",r.t=!0,r}var _e=r.__b;function ge(e){function t(t){var n=de({},t);return delete n.ref,e(n,t.ref)}return t.prototype.isReactComponent=t.t=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}r.__b=function(e){e.type&&e.type.t&&e.ref&&(e.props.ref=e.ref,e.ref=null),_e&&_e(e)};var me=function(e,t){return e?T(e).reduce(function(e,n,r){return e.concat(t(n,r))},[]):null},ye={map:me,forEach:me,count:function(e){return e?T(e).length:0},only:function(e){if(1!==(e=T(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:T},ve=r.__e;function we(e){return e&&((e=de({},e)).__c=null,e.__k=e.__k&&e.__k.map(we)),e}function be(){this.__u=0,this.o=null,this.__b=null}function ke(e){var t=e.__.__c;return t&&t.u&&t.u(e)}function xe(e){var t,n,r;function o(o){if(t||(t=e()).then(function(e){n=e.default||e},function(e){r=e}),r)throw r;if(!n)throw t;return _(n,o)}return o.displayName="Lazy",o.t=!0,o}function Ce(){this.i=null,this.l=null}r.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return r.__c(e,t.__c);ve(e,t,n)},(be.prototype=new v).__c=function(e,t){var n=this;null==n.o&&(n.o=[]),n.o.push(t);var r=ke(n.__v),o=!1,i=function(){o||(o=!0,r?r(s):s())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){i(),t.__c&&t.__c()};var s=function(){var e;if(!--n.__u)for(n.__v.__k[0]=n.state.u,n.setState({u:n.__b=null});e=n.o.pop();)e.forceUpdate()};n.__u++||n.setState({u:n.__b=n.__v.__k[0]}),e.then(i,i)},be.prototype.render=function(e,t){return this.__b&&(this.__v.__k[0]=we(this.__b),this.__b=null),[_(v,null,t.u?null:e.children),t.u&&e.fallback]};var Te=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};(Ce.prototype=new v).u=function(e){var t=this,n=ke(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Te(t,e,r)):o()};n?n(i):i()}},Ce.prototype.render=function(e){this.i=null,this.l=new Map;var t=T(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Ce.prototype.componentDidUpdate=Ce.prototype.componentDidMount=function(){var e=this;e.l.forEach(function(t,n){Te(e,n,t)})};var Ee=function(){function e(){}var t=e.prototype;return t.getChildContext=function(){return this.props.context},t.render=function(e){return e.children},e}();function Se(e){var t=this,n=e.container,r=_(Ee,{context:t.context},e.vnode);return t.s&&t.s!==n&&(t.v.parentNode&&t.s.removeChild(t.v),P(t.h),t.p=!1),e.vnode?t.p?(n.__k=t.__k,N(r,n),t.__k=n.__k):(t.v=document.createTextNode(""),L("",n),n.appendChild(t.v),t.p=!0,t.s=n,N(r,n,t.v),t.__k=t.v.__k):t.p&&(t.v.parentNode&&t.s.removeChild(t.v),P(t.h)),t.h=r,t.componentWillUnmount=function(){t.v.parentNode&&t.s.removeChild(t.v),P(t.h)},null}function Me(e,t){return _(Se,{vnode:e,container:t})}var Ie=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;v.prototype.isReactComponent={};var Ae="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;function Re(e,t,n){if(null==t.__k)for(;t.firstChild;)t.removeChild(t.firstChild);return N(e,t),"function"==typeof n&&n(),e?e.__c:null}function Be(e,t,n){return L(e,t),"function"==typeof n&&n(),e?e.__c:null}var Pe=r.event;function Oe(e,t){e["UNSAFE_"+t]&&!e[t]&&Object.defineProperty(e,t,{configurable:!1,get:function(){return this["UNSAFE_"+t]},set:function(e){this["UNSAFE_"+t]=e}})}r.event=function(e){Pe&&(e=Pe(e)),e.persist=function(){};var t=!1,n=!1,r=e.stopPropagation;e.stopPropagation=function(){r.call(e),t=!0};var o=e.preventDefault;return e.preventDefault=function(){o.call(e),n=!0},e.isPropagationStopped=function(){return t},e.isDefaultPrevented=function(){return n},e.nativeEvent=e};var Ne={configurable:!0,get:function(){return this.class}},Le=r.vnode;r.vnode=function(e){e.$$typeof=Ae;var t=e.type,n=e.props;if(t){if(n.class!=n.className&&(Ne.enumerable="className"in n,null!=n.className&&(n.class=n.className),Object.defineProperty(n,"className",Ne)),"function"!=typeof t){var r,o,i;for(i in n.defaultValue&&void 0!==n.value&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),Array.isArray(n.value)&&n.multiple&&"select"===t&&(T(n.children).forEach(function(e){-1!=n.value.indexOf(e.props.value)&&(e.props.selected=!0)}),delete n.value),n)if(r=Ie.test(i))break;if(r)for(i in o=e.props={},n)o[Ie.test(i)?i.replace(/[A-Z0-9]/,"-$&").toLowerCase():i]=n[i]}!function(t){var n=e.type,r=e.props;if(r&&"string"==typeof n){var o={};for(var i in r)/^on(Ani|Tra|Tou)/.test(i)&&(r[i.toLowerCase()]=r[i],delete r[i]),o[i.toLowerCase()]=i;if(o.ondoubleclick&&(r.ondblclick=r[o.ondoubleclick],delete r[o.ondoubleclick]),o.onbeforeinput&&(r.onbeforeinput=r[o.onbeforeinput],delete r[o.onbeforeinput]),o.onchange&&("textarea"===n||"input"===n.toLowerCase()&&!/^fil|che|ra/i.test(r.type))){var s=o.oninput||"oninput";r[s]||(r[s]=r[o.onchange],delete r[o.onchange])}}}(),"function"==typeof t&&!t.m&&t.prototype&&(Oe(t.prototype,"componentWillMount"),Oe(t.prototype,"componentWillReceiveProps"),Oe(t.prototype,"componentWillUpdate"),t.m=!0)}Le&&Le(e)};var qe="16.8.0";function je(e){return _.bind(null,e)}function Ue(e){return!!e&&e.$$typeof===Ae}function De(e){return Ue(e)?q.apply(null,arguments):e}function He(e){return!!e.__k&&(N(null,e),!0)}function Fe(e){return e&&(e.base||1===e.nodeType&&e)||null}var We=function(e,t){return e(t)};t.default={useState:V,useReducer:Q,useEffect:G,useLayoutEffect:Z,useRef:X,useImperativeHandle:ee,useMemo:te,useCallback:ne,useContext:re,useDebugValue:oe,version:"16.8.0",Children:ye,render:Re,hydrate:Re,unmountComponentAtNode:He,createPortal:Me,createElement:_,createContext:j,createFactory:je,cloneElement:De,createRef:m,Fragment:y,isValidElement:Ue,findDOMNode:Fe,Component:v,PureComponent:fe,memo:pe,forwardRef:ge,unstable_batchedUpdates:We,Suspense:be,SuspenseList:Ce,lazy:xe}},FmZn:function(e,t,n){"use strict";(function(e){var r=n("m4Dm"),o=n("dYBg");const i=void 0!==e.WebSocket?e.WebSocket:n("f3NI");t.a=class{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new o.a,!e.url||"string"!=typeof e.url)throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return 0===this.readyState}set connected(e){}get connected(){return 1===this.readyState}set closing(e){}get closing(){return 2===this.readyState}set closed(e){}get closed(){return 3===this.readyState}open(){this._socketCreate()}close(){this._socketClose()}send(e,t,n){if(!t||"string"!=typeof t)throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,t){this._events.push({event:e,callback:t})}_socketCreate(){if(this._nextSocket)return;const e=function(e,t,n){var o,i;const s=(e.startsWith("https")?e.replace("https","wss"):e.startsWith("http")?e.replace("http","ws"):e).split("?"),a=Object(r.o)()?{protocol:t,version:n,env:"browser",host:(null===(o=Object(r.l)())||void 0===o?void 0:o.host)||""}:{protocol:t,version:n,env:(null===(i=Object(r.g)())||void 0===i?void 0:i.name)||""},c=Object(r.a)(Object(r.m)(s[1]||""),a);return s[0]+"?"+c}(this._url,this._protocol,this._version);if(this._nextSocket=new i(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=e=>this._socketReceive(e),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=e=>this._socketError(e),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){const t=JSON.stringify(e);this._socket&&1===this._socket.readyState?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let t;try{t=JSON.parse(e.data)}catch(n){return}if(this._socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this._socket&&1===this._socket.readyState){const e=this._events.filter(e=>"message"===e.event);e&&e.length&&e.forEach(e=>e.callback(t))}}_socketError(e){const t=this._events.filter(e=>"error"===e.event);t&&t.length&&t.forEach(t=>t.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(e=>this._queue.push({topic:e,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(e=>this._socketSend(e)),this._queue=[]}}}).call(this,n("yLpj"))},GIIu:function(e,t,n){const r=n("rE/H");function o(e){return"never"!==a(e)}function i(e){var t=s(e);return t>=e.params.length?e.params:"eth_getBlockByNumber"===e.method?e.params.slice(1):e.params.slice(0,t)}function s(e){switch(e.method){case"eth_getStorageAt":return 2;case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":return 1;case"eth_getBlockByNumber":return 0;default:return}}function a(e){switch(e.method){case"web3_clientVersion":case"web3_sha3":case"eth_protocolVersion":case"eth_getBlockTransactionCountByHash":case"eth_getUncleCountByBlockHash":case"eth_getCode":case"eth_getBlockByHash":case"eth_getTransactionByHash":case"eth_getTransactionByBlockHashAndIndex":case"eth_getTransactionReceipt":case"eth_getUncleByBlockHashAndIndex":case"eth_getCompilers":case"eth_compileLLL":case"eth_compileSolidity":case"eth_compileSerpent":case"shh_version":return"perma";case"eth_getBlockByNumber":case"eth_getBlockTransactionCountByNumber":case"eth_getUncleCountByBlockNumber":case"eth_getTransactionByBlockNumberAndIndex":case"eth_getUncleByBlockNumberAndIndex":return"fork";case"eth_gasPrice":case"eth_getBalance":case"eth_getStorageAt":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":case"eth_getFilterLogs":case"eth_getLogs":case"eth_blockNumber":return"block";case"net_version":case"net_peerCount":case"net_listening":case"eth_syncing":case"eth_sign":case"eth_coinbase":case"eth_mining":case"eth_hashrate":case"eth_accounts":case"eth_sendTransaction":case"eth_sendRawTransaction":case"eth_newFilter":case"eth_newBlockFilter":case"eth_newPendingTransactionFilter":case"eth_uninstallFilter":case"eth_getFilterChanges":case"eth_getWork":case"eth_submitWork":case"eth_submitHashrate":case"db_putString":case"db_getString":case"db_putHex":case"db_getHex":case"shh_post":case"shh_newIdentity":case"shh_hasIdentity":case"shh_newGroup":case"shh_addToGroup":case"shh_newFilter":case"shh_uninstallFilter":case"shh_getFilterChanges":case"shh_getMessages":return"never"}}e.exports={cacheIdentifierForPayload:function(e,t={}){if(!o(e))return null;const{includeBlockRef:n}=t,s=n?e.params:i(e);return e.method+":"+r(s)},canCache:o,blockTagForPayload:function(e){var t=s(e);return t>=e.params.length?null:e.params[t]},paramsWithoutBlockTag:i,blockTagParamIndex:s,cacheTypeForPayload:a}},GM3Q:function(e,t,n){"use strict";n("rNYn"),n("y9Ti");var r=n("R5de");n.o(r,"payloadId")&&n.d(t,"payloadId",function(){return r.payloadId});var o=n("ya2q");n.d(t,"payloadId",function(){return o.a}),n("qA3A"),n("/KFh"),n("eJYJ"),n("ytBo")},Itfy:function(e,t,n){const r=n("2WD0");e.exports=class extends r{constructor(e){if(super(),!e)throw new Error("JsonRpcEngineMiddlewareSubprovider - no constructorFn specified");this._constructorFn=e}setEngine(e){if(this.middleware)throw new Error("JsonRpcEngineMiddlewareSubprovider - subprovider added to engine twice");const t=this._constructorFn({engine:e,provider:e,blockTracker:e._blockTracker});if(!t)throw new Error("JsonRpcEngineMiddlewareSubprovider - _constructorFn did not return middleware");if("function"!=typeof t)throw new Error("JsonRpcEngineMiddlewareSubprovider - specified middleware is not a function");this.middleware=t}handleRequest(e,t,n){const r={id:e.id};this.middleware(e,r,function(e){t((t,n,o)=>{t?(delete r.result,r.error={message:t.message||t}):r.result=n,e?e(o):o()})},function(e){if(e)return n(e);n(null,r.result)})}}},J6Nv:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},JzKC:function(e,t,n){var r=n("Wogr"),o=n("aZ40");t.mul=function(e,t){for(var n=r.alloc(e.length+t.length-1),i=0;i<e.length;i++)for(var s=0;s<t.length;s++)n[i+s]^=o.mul(e[i],t[s]);return n},t.mod=function(e,t){for(var n=r.from(e);n.length-t.length>=0;){for(var i=n[0],s=0;s<t.length;s++)n[s]^=o.mul(t[s],i);for(var a=0;a<n.length&&0===n[a];)a++;n=n.slice(a)}return n},t.generateECPolynomial=function(e){for(var n=r.from([1]),i=0;i<e;i++)n=t.mul(n,[1,o.exp(i)]);return n}},Kqv8:function(e,t,n){"use strict";n.r(t),n.d(t,"detectEnv",function(){return s}),n.d(t,"detectOS",function(){return a}),n.d(t,"isAndroid",function(){return c}),n.d(t,"isIOS",function(){return u}),n.d(t,"isMobile",function(){return l}),n.d(t,"isNode",function(){return d}),n.d(t,"isBrowser",function(){return h}),n.d(t,"getFromWindow",function(){return f}),n.d(t,"getFromWindowOrThrow",function(){return p}),n.d(t,"getDocumentOrThrow",function(){return _}),n.d(t,"getDocument",function(){return g}),n.d(t,"getNavigatorOrThrow",function(){return m}),n.d(t,"getNavigator",function(){return y}),n.d(t,"getLocationOrThrow",function(){return v}),n.d(t,"getLocation",function(){return w}),n.d(t,"getCryptoOrThrow",function(){return b}),n.d(t,"getCrypto",function(){return k}),n.d(t,"getLocalStorageOrThrow",function(){return x}),n.d(t,"getLocalStorage",function(){return C}),n.d(t,"getClientMeta",function(){return T}),n.d(t,"safeJsonParse",function(){return E}),n.d(t,"safeJsonStringify",function(){return S}),n.d(t,"setLocal",function(){return M}),n.d(t,"getLocal",function(){return I}),n.d(t,"removeLocal",function(){return A}),n.d(t,"mobileLinkChoiceKey",function(){return R}),n.d(t,"formatIOSMobile",function(){return B}),n.d(t,"saveMobileLinkInfo",function(){return P}),n.d(t,"getMobileRegistryEntry",function(){return O}),n.d(t,"getMobileLinkRegistry",function(){return N}),n.d(t,"getWalletRegistryUrl",function(){return q}),n.d(t,"getDappRegistryUrl",function(){return j}),n.d(t,"getAppLogoUrl",function(){return U}),n.d(t,"formatMobileRegistryEntry",function(){return D}),n.d(t,"formatMobileRegistry",function(){return H});var r=n("QOWI"),o=n("quPa"),i=n("e0ae");function s(e){return Object(i.a)(e)}function a(){const e=s();return e&&e.os?e.os:void 0}function c(){const e=a();return!!e&&e.toLowerCase().includes("android")}function u(){const e=a();return!!e&&(e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1)}function l(){return!!a()&&(c()||u())}function d(){const e=s();return!(!e||!e.name)&&"node"===e.name.toLowerCase()}function h(){return!d()&&!!y()}const f=o.getFromWindow,p=o.getFromWindowOrThrow,_=o.getDocumentOrThrow,g=o.getDocument,m=o.getNavigatorOrThrow,y=o.getNavigator,v=o.getLocationOrThrow,w=o.getLocation,b=o.getCryptoOrThrow,k=o.getCrypto,x=o.getLocalStorageOrThrow,C=o.getLocalStorage;function T(){return r.getWindowMetadata()}const E=function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return JSON.parse(e)}catch(t){return e}},S=function(e){return"string"==typeof e?e:JSON.stringify(e)};function M(e,t){const n=S(t),r=C();r&&r.setItem(e,n)}function I(e){let t=null,n=null;const r=C();return r&&(n=r.getItem(e)),t=n?E(n):n,t}function A(e){const t=C();t&&t.removeItem(e)}const R="WALLETCONNECT_DEEPLINK_CHOICE";function B(e,t){const n=encodeURIComponent(e);return t.universalLink?`${t.universalLink}/wc?uri=${n}`:t.deepLink?`${t.deepLink}${t.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function P(e){const t=e.href.split("?")[0];M(R,Object.assign(Object.assign({},e),{href:t}))}function O(e,t){return e.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))[0]}function N(e,t){let n=e;return t&&(n=t.map(t=>O(e,t)).filter(Boolean)),n}const L="https://registry.walletconnect.org";function q(){return L+"/data/wallets.json"}function j(){return L+"/data/dapps.json"}function U(e){return L+"/logo/sm/"+e+".jpeg"}function D(e,t="mobile"){return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:e.id?U(e.id):"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}function H(e,t="mobile"){return Object.values(e).filter(e=>!!e[t].universal||!!e[t].native).map(e=>D(e,t))}},"L1/S":function(e,t,n){const r=n("+qE3").EventEmitter,o=n("MCLT").inherits,i=n("tnHP"),s=n("V5x4"),a=n("LCem"),c=n("YOJA"),u=n("84cS"),l=(n("GIIu"),n("6JD6")),d=function(){};function h(e){const t=this;r.call(t),t.setMaxListeners(30),e=e||{};const n={sendAsync:t._handleAsync.bind(t)};t._blockTracker=e.blockTracker||new s({provider:e.blockTrackerProvider||n,pollingInterval:e.pollingInterval||4e3,setSkipCacheFlag:!0}),t._ready=new u,t.currentBlock=null,t._providers=[]}e.exports=h,o(h,r),h.prototype.start=function(e=d){const t=this;t._ready.go(),t._blockTracker.on("latest",e=>{t._getBlockByNumberWithRetry(e,(e,n)=>{if(e)return void this.emit("error",e);if(!n)return console.log(n),void this.emit("error",new Error("Could not find block"));const r={number:i.toBuffer((o=n).number),hash:i.toBuffer(o.hash),parentHash:i.toBuffer(o.parentHash),nonce:i.toBuffer(o.nonce),mixHash:i.toBuffer(o.mixHash),sha3Uncles:i.toBuffer(o.sha3Uncles),logsBloom:i.toBuffer(o.logsBloom),transactionsRoot:i.toBuffer(o.transactionsRoot),stateRoot:i.toBuffer(o.stateRoot),receiptsRoot:i.toBuffer(o.receiptRoot||o.receiptsRoot),miner:i.toBuffer(o.miner),difficulty:i.toBuffer(o.difficulty),totalDifficulty:i.toBuffer(o.totalDifficulty),size:i.toBuffer(o.size),extraData:i.toBuffer(o.extraData),gasLimit:i.toBuffer(o.gasLimit),gasUsed:i.toBuffer(o.gasUsed),timestamp:i.toBuffer(o.timestamp),transactions:o.transactions};var o;t._setCurrentBlock(r),t.emit("rawBlock",n),t.emit("latest",n)})}),t._blockTracker.on("sync",t.emit.bind(t,"sync")),t._blockTracker.on("error",t.emit.bind(t,"error")),t._running=!0,t.emit("start")},h.prototype.stop=function(){const e=this;e._blockTracker.removeAllListeners(),e._running=!1,e.emit("stop")},h.prototype.isRunning=function(){return this._running},h.prototype.addProvider=function(e,t){"number"==typeof t?this._providers.splice(t,0,e):this._providers.push(e),e.setEngine(this)},h.prototype.removeProvider=function(e){const t=this._providers.indexOf(e);if(t<0)throw new Error("Provider not found.");this._providers.splice(t,1)},h.prototype.send=function(e){throw new Error("Web3ProviderEngine does not support synchronous requests.")},h.prototype.sendAsync=function(e,t){const n=this;n._ready.await(function(){Array.isArray(e)?a(e,n._handleAsync.bind(n),t):n._handleAsync(e,t)})},h.prototype._getBlockByNumberWithRetry=function(e,t){const n=this;let r=5;return void o();function o(){n._getBlockByNumber(e,i)}function i(e,n){return e?t(e):n?void t(null,n):r>0?(r--,void setTimeout(function(){o()},1e3)):void t(null,null)}},h.prototype._getBlockByNumber=function(e,t){const n=l({method:"eth_getBlockByNumber",params:[e,!1],skipCache:!0});this._handleAsync(n,(e,n)=>e?t(e):t(null,n.result))},h.prototype._handleAsync=function(e,t){var n=this,r=-1,o=null,i=null,s=[];function a(n,r){i=n,o=r,c(s,function(e,t){e?e(i,o,t):t()},function(){var n={id:e.id,jsonrpc:e.jsonrpc,result:o};null!=i?(n.error={message:i.stack||i.message||i,code:-32e3},t(i,n)):t(null,n)})}!function t(o){if(r+=1,s.unshift(o),r>=n._providers.length)a(new Error('Request for method "'+e.method+'" not handled by any subprovider. Please check your subprovider configuration to ensure this method is handled.'));else try{n._providers[r].handleRequest(e,t,a)}catch(i){a(i)}}()},h.prototype._setCurrentBlock=function(e){this.currentBlock=e,this.emit("block",e)}},Lq9n:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"generateKey",function(){return f}),n.d(r,"verifyHmac",function(){return p}),n.d(r,"encrypt",function(){return _}),n.d(r,"decrypt",function(){return g});var o=n("m4Dm"),i=n("FmZn");const s="Session currently connected",a="Session currently disconnected",c="JSON RPC response format is invalid",u="User close QRCode Modal",l="abcdefghijklmnopqrstuvwxyz0123456789".split("").map(e=>`https://${e}.bridge.walletconnect.org`);var d=n("hFr/"),h=n("MgLx");async function f(e){const t=d.randomBytes((e||256)/8);return Object(o.d)(h.arrayToBuffer(t))}async function p(e,t){const n=h.hexToArray(e.data),r=h.hexToArray(e.iv),o=h.hexToArray(e.hmac),i=h.arrayToHex(o,!1),s=h.concatArrays(n,r),a=await d.hmacSha256Sign(t,s),c=h.arrayToHex(a,!1);return h.removeHexPrefix(i)===h.removeHexPrefix(c)}async function _(e,t,n){const r=h.bufferToArray(Object(o.b)(t)),i=n||await f(128),s=h.bufferToArray(Object(o.b)(i)),a=h.arrayToHex(s,!1),c=JSON.stringify(e),u=h.utf8ToArray(c),l=await d.aesCbcEncrypt(s,r,u),p=h.arrayToHex(l,!1),_=h.concatArrays(l,s),g=await d.hmacSha256Sign(r,_);return{data:p,hmac:h.arrayToHex(g,!1),iv:a}}async function g(e,t){const n=h.bufferToArray(Object(o.b)(t));if(!n)throw new Error("Missing key: required for decryption");if(!(await p(e,n)))return null;const r=h.hexToArray(e.data),i=h.hexToArray(e.iv),s=await d.aesCbcDecrypt(i,n,r),a=h.arrayToUtf8(s);let c;try{c=JSON.parse(a)}catch(u){return null}return c}var m=n("dFyl"),y=n.n(m),v=n("uhBA"),w=n.n(v),b=n("hgLn");const k=Object(o.j)("XMLHttpRequest")||b.XMLHttpRequest;var x=class extends w.a{constructor(e){super(),this.url=e}formatError(e,t,n=-1){return{error:{message:t,code:n},id:e.id,jsonrpc:e.jsonrpc}}send(e,t){return new Promise(n=>{if("eth_subscribe"===e.method){const t=this.formatError(e,"Subscriptions are not supported by this HTTP endpoint");return this.emit("error",t),n(t)}const r=new k;let o=!1;const i=(i,s)=>{if(!o)if(r.abort(),o=!0,t)t(i,s);else{const{id:t,jsonrpc:r}=e,o=i?{id:t,jsonrpc:r,error:{message:i.message,code:i.code}}:{id:t,jsonrpc:r,result:s};this.emit("payload",o),n(o)}};r.open("POST",this.url,!0),r.setRequestHeader("Content-Type","application/json"),r.timeout=6e4,r.onerror=i,r.ontimeout=i,r.onreadystatechange=()=>{if(4===r.readyState)try{const e=JSON.parse(r.responseText);i(e.error,e.result)}catch(e){i(e)}},r.send(JSON.stringify(e))})}};const C=n("L1/S"),T=n("mJG9"),E=n("+GYH"),S=n("80ya"),M=n("8Z26"),I=n("rEeL"),A=n("5Afs");t.default=class extends C{constructor(e){if(super({pollingInterval:e.pollingInterval||8e3}),this.bridge="https://bridge.walletconnect.org",this.qrcode=!0,this.qrcodeModal=y.a,this.qrcodeModalOptions=void 0,this.rpc=null,this.infuraId="",this.http=null,this.isConnecting=!1,this.connected=!1,this.connectCallbacks=[],this.accounts=[],this.chainId=1,this.rpcUrl="",this.enable=async()=>{const e=await this.getWalletConnector();if(e)return this.start(),this.subscribeWalletConnector(),e.accounts;throw new Error("Failed to connect to WalleConnect")},this.request=async e=>this.send(e),this.send=async(e,t)=>{if("string"==typeof e){const n=e;let r=t;return"personal_sign"===n&&(r=Object(o.y)(r)),this.sendAsyncPromise(n,r)}if("personal_sign"===(e=Object.assign({id:Object(o.B)(),jsonrpc:"2.0"},e)).method&&(e.params=Object(o.y)(e.params)),!t)return this.sendAsyncPromise(e.method,e.params);this.sendAsync(e,t)},this.onConnect=e=>{this.connectCallbacks.push(e)},this.triggerConnect=e=>{this.connectCallbacks&&this.connectCallbacks.length&&this.connectCallbacks.forEach(t=>t(e))},this.bridge=e.connector?e.connector.bridge:e.bridge||"https://bridge.walletconnect.org",this.qrcode=void 0===e.qrcode||!1!==e.qrcode,this.qrcodeModal=e.qrcodeModal||this.qrcodeModal,this.qrcodeModalOptions=e.qrcodeModalOptions,this.wc=e.connector||new class extends class{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(t=>t.event!==e)}trigger(e){let t,n=[];t=Object(o.q)(e)?e.method:Object(o.s)(e)||Object(o.r)(e)?`response:${e.id}`:Object(o.p)(e)?e.event:"",t&&(n=this._eventEmitters.filter(e=>e.event===t)),n&&n.length||Object(o.u)(t)||Object(o.p)(t)||(n=this._eventEmitters.filter(e=>"call_request"===e.event)),n.forEach(t=>{if(Object(o.r)(e)){const n=new Error(e.error.message);t.callback(n,null)}else t.callback(null,e)})}},this._clientMeta=Object(o.i)()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new class{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null;const t=Object(o.k)(this.storageId);return t&&Object(o.w)(t)&&(e=t),e}setSession(e){return Object(o.D)(this.storageId,e),e}removeSession(){Object(o.C)(this.storageId)}}(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...o.E,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error("Missing one of the required parameters: bridge / uri / session");var t;e.connectorOpts.bridge&&(this.bridge=function(e){return"walletconnect.org"===function(e){return function(e){let t=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return t=t.split(":")[0],t=t.split("?")[0],t}(e).split(".").slice(-2).join(".")}(e)}(t=e.connectorOpts.bridge)?l[Math.floor(Math.random()*l.length)]:t),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);const n=e.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new i.a({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;const t=Object(o.e)(e);this._key=t}get key(){return this._key?Object(o.c)(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=Object(o.F)()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=Object(o.i)()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;const{handshakeTopic:t,bridge:n,key:r}=this._parseUri(e);this.handshakeTopic=t,this.bridge=n,this.key=r}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,t){this._eventManager.subscribe({event:e,callback:t})}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();const t=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=t.id,this.handshakeTopic=Object(o.F)(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(u)});const n=()=>{this.killSession()};try{const e=await this._sendCallRequest(t);return e&&n(),e}catch(r){throw n(),r}}async connect(e){if(!this._qrcodeModal)throw new Error("QRCode Modal not provided");return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(e,t)=>{this.on("modal_closed",()=>t(new Error(u))),this.on("connect",(n,r)=>{if(n)return t(n);e(r.params[0])})}))}async createSession(e){if(this._connected)throw new Error(s);if(this.pending)return;this._key=await this._generateKey();const t=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=t.id,this.handshakeTopic=Object(o.F)(),this._sendSessionRequest(t,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(s);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"",this._sendResponse({id:this.handshakeId,jsonrpc:"2.0",result:{approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta}}),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(s);const t=e&&e.message?e.message:"Session Rejected",n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(a);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const t=this._formatRequest({method:"wc_sessionUpdate",params:[{approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl}]});this._sendSessionRequest(t,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){const t=e?e.message:"Session Disconnected",n=this._formatRequest({method:"wc_sessionUpdate",params:[{approved:!1,chainId:null,networkId:null,accounts:null}]});await this._sendRequest(n),this._handleSessionDisconnect(t)}async sendTransaction(e){if(!this._connected)throw new Error(a);const t=Object(o.z)(e),n=this._formatRequest({method:"eth_sendTransaction",params:[t]});return await this._sendCallRequest(n)}async signTransaction(e){if(!this._connected)throw new Error(a);const t=Object(o.z)(e),n=this._formatRequest({method:"eth_signTransaction",params:[t]});return await this._sendCallRequest(n)}async signMessage(e){if(!this._connected)throw new Error(a);const t=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(t)}async signPersonalMessage(e){if(!this._connected)throw new Error(a);e=Object(o.y)(e);const t=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(t)}async signTypedData(e){if(!this._connected)throw new Error(a);const t=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(t)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");const t=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(t)}unsafeSend(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise((t,n)=>{this._subscribeToResponse(e.id,(e,r)=>{if(e)n(e);else{if(!r)throw new Error("Missing JSON RPC response");t(r)}})})}async sendCustomRequest(e,t){if(!this._connected)throw new Error(a);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return Object(o.f)(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params&&(e.params[0]=Object(o.z)(e.params[0]));break;case"personal_sign":e.params&&(e.params=Object(o.y)(e.params))}const n=this._formatRequest(e);return await this._sendCallRequest(n,t)}approveRequest(e){if(!Object(o.s)(e))throw new Error('JSON-RPC success response must include "result" field');{const t=this._formatResponse(e);this._sendResponse(t)}}rejectRequest(e){if(!Object(o.r)(e))throw new Error('JSON-RPC error response must include "error" field');{const t=this._formatResponse(e);this._sendResponse(t)}}transportClose(){this._transport.close()}async _sendRequest(e,t){const n=this._formatRequest(e),r=await this._encrypt(n),i=void 0!==(null==t?void 0:t.topic)?t.topic:this.peerId,s=JSON.stringify(r),a=void 0!==(null==t?void 0:t.forcePushNotification)?!t.forcePushNotification:Object(o.v)(n);this._transport.send(s,i,a)}async _sendResponse(e){const t=await this._encrypt(e),n=this.peerId,r=JSON.stringify(t);this._transport.send(r,n,!0)}async _sendSessionRequest(e,t,n){this._sendRequest(e,n),this._subscribeToSessionResponse(e.id,t)}_sendCallRequest(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(void 0===e.method)throw new Error('JSON RPC request must have valid "method" value');return{id:void 0===e.id?Object(o.B)():e.id,jsonrpc:"2.0",method:e.method,params:void 0===e.params?[]:e.params}}_formatResponse(e){if(void 0===e.id)throw new Error('JSON RPC request must have valid "id" value');const t={id:e.id,jsonrpc:"2.0"};if(Object(o.r)(e)){const n=Object(o.h)(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}if(Object(o.s)(e))return Object.assign(Object.assign({},t),e);throw new Error(c)}_handleSessionDisconnect(e){const t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Object(o.C)(o.x)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,t){t&&t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let t;try{t=JSON.parse(e.payload)}catch(r){return}const n=await this._decrypt(t);n&&this._eventManager.trigger(n)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,t){this.on(`response:${e}`,t)}_subscribeToSessionResponse(e,t){this._subscribeToResponse(e,(e,n)=>{e?this._handleSessionResponse(e.message):n.result?this._handleSessionResponse(t,n.result):this._handleSessionResponse(n.error&&n.error.message?n.error.message:t)})}_subscribeToCallResponse(e){return new Promise((t,n)=>{this._subscribeToResponse(e,(e,r)=>{e?n(e):r.result?t(r.result):n(r.error&&r.error.message?new Error(r.error.message):new Error(c))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,t)=>{const{request:n}=t.params[0];if(Object(o.t)()&&this._signingMethods.includes(n.method)){const e=Object(o.k)(o.x);e&&(window.location.href=e.href)}}),this.on("wc_sessionRequest",(e,t)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=t.id,this.peerId=t.params[0].peerId,this.peerMeta=t.params[0].peerMeta;const n=Object.assign(Object.assign({},t),{method:"session_request"});this._eventManager.trigger(n)}),this.on("wc_sessionUpdate",(e,t)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",t.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){return`${this.protocol}:${this.handshakeTopic}@${this.version}?bridge=${encodeURIComponent(this.bridge)}&key=${this.key}`}_parseUri(e){const t=Object(o.A)(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const e=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");const n=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");return{handshakeTopic:e,bridge:n,key:t.key}}throw new Error("URI format is invalid")}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){const t=this._key;return this._cryptoLib&&t?await this._cryptoLib.encrypt(e,t):null}async _decrypt(e){const t=this._key;return this._cryptoLib&&t?await this._cryptoLib.decrypt(e,t):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||"string"!=typeof e.url)throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||"string"!=typeof e.type)throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||"string"!=typeof e.token)throw Error("Invalid or missing pushServerOpts.token parameter value");const t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(n,r)=>{if(n)throw n;e.peerMeta&&(t.peerName=r.params[0].peerMeta.name);try{const n=await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});if(!(await n.json()).success)throw Error("Failed to register in Push Server")}catch(n){throw Error("Failed to register in Push Server")}})}}{constructor(e,t){super({cryptoLib:r,connectorOpts:e,pushServerOpts:t})}}({bridge:this.bridge,qrcodeModal:this.qrcode?this.qrcodeModal:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:null==e?void 0:e.storageId,signingMethods:null==e?void 0:e.signingMethods,clientMeta:null==e?void 0:e.clientMeta}),this.rpc=e.rpc||null,!(this.rpc||e.infuraId&&"string"==typeof e.infuraId&&e.infuraId.trim()))throw new Error("Missing one of the required parameters: rpc or infuraId");this.infuraId=e.infuraId||"",this.chainId=(null==e?void 0:e.chainId)||this.chainId,this.initialize()}get isWalletConnect(){return!0}get connector(){return this.wc}get walletMeta(){return this.wc.peerMeta}async disconnect(){this.close()}async close(){const e=await this.getWalletConnector({disableSessionCreation:!0});await e.killSession(),await this.onDisconnect()}async handleRequest(e){try{let t,n=null;const r=await this.getWalletConnector();switch(e.method){case"wc_killSession":await this.close(),n=null;break;case"eth_accounts":n=r.accounts;break;case"eth_coinbase":n=r.accounts[0];break;case"eth_chainId":case"net_version":n=r.chainId;break;case"eth_uninstallFilter":this.sendAsync(e,e=>e),n=!0;break;default:t=await this.handleOtherRequests(e)}return t||this.formatResponse(e,n)}catch(t){throw this.emit("error",t),t}}async handleOtherRequests(e){if(!o.E.includes(e.method)&&e.method.startsWith("eth_"))return this.handleReadRequests(e);const t=await this.getWalletConnector(),n=await t.sendCustomRequest(e);return this.formatResponse(e,n)}async handleReadRequests(e){if(!this.http){const e=new Error("HTTP Connection not available");throw this.emit("error",e),e}return this.http.send(e)}formatResponse(e,t){return{id:e.id,jsonrpc:e.jsonrpc,result:t}}getWalletConnector(e={}){const{disableSessionCreation:t=!1}=e;return new Promise((e,n)=>{const r=this.wc;this.isConnecting?this.onConnect(t=>e(t)):r.connected||t?(this.connected||(this.connected=!0,this.updateState(r.session)),e(r)):(this.isConnecting=!0,r.on("modal_closed",()=>{n(new Error("User closed modal"))}),r.createSession({chainId:this.chainId}).then(()=>{r.on("connect",(t,o)=>{if(t)return this.isConnecting=!1,n(t);this.isConnecting=!1,this.connected=!0,o&&this.updateState(o.params[0]),this.emit("connect"),this.triggerConnect(r),e(r)})}).catch(e=>{this.isConnecting=!1,n(e)}))})}async subscribeWalletConnector(){const e=await this.getWalletConnector();e.on("disconnect",e=>{e?this.emit("error",e):this.onDisconnect()}),e.on("session_update",(e,t)=>{e?this.emit("error",e):this.updateState(t.params[0])})}async onDisconnect(){await this.stop(),this.emit("close",1e3,"Connection closed"),this.emit("disconnect",1e3,"Connection disconnected"),this.connected=!1}async updateState(e){const{accounts:t,chainId:n,networkId:r,rpcUrl:o}=e;(!this.accounts||t&&this.accounts!==t)&&(this.accounts=t,this.emit("accountsChanged",t)),(!this.chainId||n&&this.chainId!==n)&&(this.chainId=n,this.emit("chainChanged",n)),(!this.networkId||r&&this.networkId!==r)&&(this.networkId=r,this.emit("networkChanged",r)),this.updateRpcUrl(this.chainId,o||"")}updateRpcUrl(e,t=""){const n={infuraId:this.infuraId,custom:this.rpc||void 0};(t=t||Object(o.n)(e,n))?(this.rpcUrl=t,this.updateHttpConnection()):this.emit("error",new Error(`No RPC Url available for chainId: ${e}`))}updateHttpConnection(){this.rpcUrl&&(this.http=new x(this.rpcUrl),this.http.on("payload",e=>this.emit("payload",e)),this.http.on("error",e=>this.emit("error",e)))}sendAsyncPromise(e,t){return new Promise((n,r)=>{this.sendAsync({id:Object(o.B)(),jsonrpc:"2.0",method:e,params:t||[]},(e,t)=>{e?r(e):n(t.result)})})}initialize(){this.updateRpcUrl(this.chainId),this.addProvider(new E({eth_hashrate:"0x00",eth_mining:!1,eth_syncing:!0,net_listening:!0,web3_clientVersion:"WalletConnect/v1.x.x/javascript"})),this.addProvider(new T),this.addProvider(new A),this.addProvider(new S),this.addProvider(new I),this.addProvider(new M(this.configWallet())),this.addProvider({handleRequest:async(e,t,n)=>{try{const{error:t,result:r}=await this.handleRequest(e);n(t,r)}catch(r){n(r)}},setEngine:e=>e})}configWallet(){return{getAccounts:async e=>{try{const t=(await this.getWalletConnector()).accounts;t&&t.length?e(null,t):e(new Error("Failed to get accounts"))}catch(t){e(t)}},processMessage:async(e,t)=>{try{const n=await this.getWalletConnector();t(null,await n.signMessage([e.from,e.data]))}catch(n){t(n)}},processPersonalMessage:async(e,t)=>{try{const n=await this.getWalletConnector();t(null,await n.signPersonalMessage([e.data,e.from]))}catch(n){t(n)}},processSignTransaction:async(e,t)=>{try{const n=await this.getWalletConnector();t(null,await n.signTransaction(e))}catch(n){t(n)}},processTransaction:async(e,t)=>{try{const n=await this.getWalletConnector();t(null,await n.sendTransaction(e))}catch(n){t(n)}},processTypedMessage:async(e,t)=>{try{const n=await this.getWalletConnector();t(null,await n.signTypedData([e.from,e.data]))}catch(n){t(n)}}}}}},Lzq4:function(e,t,n){var r=n("u/Db"),o=n("e/Dd");function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t;for(t=0;t<this.data.length;t++){var n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}e.put(n=192*(n>>>8&255)+(255&n),13)}},e.exports=i},MgLx:function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.removeHexLeadingZeros=t.sanitizeHex=t.addHexPrefix=t.removeHexPrefix=t.padRight=t.padLeft=t.sanitizeBytes=t.swapHex=t.swapBytes=t.splitBytes=t.calcByteLength=t.trimRight=t.trimLeft=t.concatArrays=t.concatBuffers=t.getEncoding=t.getType=t.isArrayBuffer=t.isTypedArray=t.isBuffer=t.isHexString=t.isBinaryString=t.binaryToNumber=t.binaryToUtf8=t.binaryToHex=t.binaryToArray=t.binaryToBuffer=t.numberToBinary=t.numberToUtf8=t.numberToHex=t.numberToArray=t.numberToBuffer=t.utf8ToBinary=t.utf8ToNumber=t.utf8ToHex=t.utf8ToArray=t.utf8ToBuffer=t.hexToBinary=t.hexToNumber=t.hexToUtf8=t.hexToArray=t.hexToBuffer=t.arrayToBinary=t.arrayToNumber=t.arrayToUtf8=t.arrayToHex=t.arrayToBuffer=t.bufferToBinary=t.bufferToNumber=t.bufferToUtf8=t.bufferToHex=t.bufferToArray=void 0;const o=r(n("qXd6")),i=r(n("BJdv")),s="hex",a="utf8";function c(e){return new Uint8Array(e)}function u(e,t=!1){const n=e.toString(s);return t?q(n):n}function l(e){return e.toString(a)}function d(e){return e.readUIntBE(0,e.length)}function h(e){return i.default(e)}function f(e,t=!1){return u(h(e),t)}function p(e){return l(h(e))}function _(e){return d(h(e))}function g(e){return Array.from(e).map(k).join("")}function m(t){return e.from(L(t),s)}function y(e){return c(m(e))}function v(e){return g(y(e))}function w(t){return e.from(t,a)}function b(e){return c(w(e))}function k(e){return O((e>>>0).toString(2))}function x(e){return h(C(e))}function C(e){return new Uint8Array(B(e).map(e=>parseInt(e,2)))}function T(e,t){return f(C(e),t)}function E(e){return!("string"!=typeof e||!new RegExp(/^[01]+$/).test(e))&&e.length%8==0}function S(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function M(t){return e.isBuffer(t)}function I(e){return o.default.strict(e)&&!M(e)}function A(e){return!I(e)&&!M(e)&&void 0!==e.byteLength}function R(e,t=8){const n=e%t;return n?(e-n)/t*t+t:e}function B(e,t=8){const n=O(e).match(new RegExp(`.{${t}}`,"gi"));return Array.from(n||[])}function P(e){return B(e).map(j).join("")}function O(e,t=8,n="0"){return N(e,R(e.length,t),n)}function N(e,t,n="0"){return U(e,t,!0,n)}function L(e){return e.replace(/^0x/,"")}function q(e){return e.startsWith("0x")?e:`0x${e}`}function j(e){return e.split("").reverse().join("")}function U(e,t,n,r="0"){const o=t-e.length;let i=e;if(o>0){const t=r.repeat(o);i=n?t+e:e+t}return i}t.bufferToArray=c,t.bufferToHex=u,t.bufferToUtf8=l,t.bufferToNumber=d,t.bufferToBinary=function(e){return g(c(e))},t.arrayToBuffer=h,t.arrayToHex=f,t.arrayToUtf8=p,t.arrayToNumber=_,t.arrayToBinary=g,t.hexToBuffer=m,t.hexToArray=y,t.hexToUtf8=function(e){return l(m(e))},t.hexToNumber=function(e){return _(y(e))},t.hexToBinary=v,t.utf8ToBuffer=w,t.utf8ToArray=b,t.utf8ToHex=function(e,t=!1){return u(w(e),t)},t.utf8ToNumber=function(e){const t=parseInt(e,10);return function(e,t){if(!e)throw new Error("Number can only safely store up to 53 bits")}(!(void 0===t)),t},t.utf8ToBinary=function(e){return g(b(e))},t.numberToBuffer=function(e){return x(k(e))},t.numberToArray=function(e){return C(k(e))},t.numberToHex=function(e,t){return T(k(e),t)},t.numberToUtf8=function(e){return`${e}`},t.numberToBinary=k,t.binaryToBuffer=x,t.binaryToArray=C,t.binaryToHex=T,t.binaryToUtf8=function(e){return p(C(e))},t.binaryToNumber=function(e){return _(C(e))},t.isBinaryString=E,t.isHexString=S,t.isBuffer=M,t.isTypedArray=I,t.isArrayBuffer=A,t.getType=function(e){return M(e)?"buffer":I(e)?"typed-array":A(e)?"array-buffer":Array.isArray(e)?"array":typeof e},t.getEncoding=function(e){return E(e)?"binary":S(e)?s:a},t.concatBuffers=function(...t){return e.concat(t)},t.concatArrays=function(...e){let t=[];return e.forEach(e=>t=t.concat(Array.from(e))),new Uint8Array([...t])},t.trimLeft=function(e,t){const n=e.length-t;return n>0&&(e=e.slice(n)),e},t.trimRight=function(e,t){return e.slice(0,t)},t.calcByteLength=R,t.splitBytes=B,t.swapBytes=P,t.swapHex=function(e){return T(P(v(e)))},t.sanitizeBytes=O,t.padLeft=N,t.padRight=function(e,t,n="0"){return U(e,t,!1,n)},t.removeHexPrefix=L,t.addHexPrefix=q,t.sanitizeHex=function(e){return(e=O(e=L(e),2))&&(e=q(e)),e},t.removeHexLeadingZeros=function(e){const t=e.startsWith("0x");return e=(e=L(e)).startsWith("0")?e.substring(1):e,t?q(e):e}}).call(this,n("tjlA").Buffer)},MkrG:function(e,t,n){"use strict";n.d(t,"a",function(){return r});class r{}},NPxG:function(e,t,n){var r=n("ekOh"),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}}},OOOY:function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},PEyM:function(e,t,n){const r=n("6JD6");e.exports=function(e,t,n){e.sendAsync(r({method:"eth_estimateGas",params:[t]}),function(e,t){if(e)return"no contract code at given address"===e.message?n(null,"0xcf08"):n(e);n(null,t.result)})}},QAZZ:function(e,t,n){var r=n("Rb7d");function o(e,t){var n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(e,t,n){var r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){var s=r.getOptions(t),a=e.modules.size,c=e.modules.data,u=a+2*s.margin,l=s.color.light.a?"<path "+o(s.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+o(s.color.dark,"stroke")+' d="'+function(e,t,n){for(var r="",o=0,s=!1,a=0,c=0;c<e.length;c++){var u=Math.floor(c%t),l=Math.floor(c/t);u||s||(s=!0),e[c]?(a++,c>0&&u>0&&e[c-1]||(r+=s?i("M",u+n,.5+l+n):i("m",o,0),o=0,s=!1),u+1<t&&e[c+1]||(r+=i("h",a),a=0)):o++}return r}(c,a,s.margin)+'"/>',h='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+'viewBox="0 0 '+u+" "+u+'" shape-rendering="crispEdges">'+l+d+"</svg>\n";return"function"==typeof n&&n(null,h),h}},QOWI:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWindowMetadata=void 0;const r=n("quPa");t.getWindowMetadata=function(){let e,t;try{e=r.getDocumentOrThrow(),t=r.getLocationOrThrow()}catch(i){return null}function n(...t){const n=e.getElementsByTagName("meta");for(let e=0;e<n.length;e++){const r=n[e],o=["itemprop","property","name"].map(e=>r.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(o.length&&o){const e=r.getAttribute("content");if(e)return e}}return""}const o=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),r=[];for(let e=0;e<n.length;e++){const o=n[e],i=o.getAttribute("rel");if(i&&i.toLowerCase().indexOf("icon")>-1){const e=o.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const r=t.pathname.split("/");r.pop(),n+=r.join("/")+"/"+e}r.push(n)}else 0===e.indexOf("//")?r.push(t.protocol+e):r.push(e)}}return r}(),name:o}}},QUaw:function(e,t,n){var r=n("Rb7d");t.render=function(e,t,n){var o=n,i=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);var s=r.getImageWidth(e.modules.size,o),a=i.getContext("2d"),c=a.createImageData(s,s);return r.qrToImageData(c.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(a,i,s),a.putImageData(c,0,0),i},t.renderToDataURL=function(e,n,r){var o=r;return void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={}),t.render(e,n,o).toDataURL(o.type||"image/png",(o.rendererOpts||{}).quality)}},R5de:function(e,t,n){"use strict";var r=n("veq9");n.o(r,"payloadId")&&n.d(t,"payloadId",function(){return r.payloadId})},"RM/z":function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return l}),n.d(t,"f",function(){return d});var r=n("veq9"),o=n("SoAf");async function i(e,t=o.a){return r.getSubtleCrypto().importKey("raw",e,function(e){return e===o.a?{length:o.b,name:o.a}:{hash:{name:o.f},name:o.e}}(t),!0,function(e){return e===o.a?[o.d,o.c]:[o.k,o.l]}(t))}async function s(e,t,n){const s=r.getSubtleCrypto(),a=await i(t,o.a),c=await s.encrypt({iv:e,name:o.a},a,n);return new Uint8Array(c)}async function a(e,t,n){const s=r.getSubtleCrypto(),a=await i(t,o.a),c=await s.decrypt({iv:e,name:o.a},a,n);return new Uint8Array(c)}async function c(e,t){const n=r.getSubtleCrypto(),s=await i(e,o.e),a=await n.sign({length:o.g,name:o.e},s,t);return new Uint8Array(a)}async function u(e,t){const n=r.getSubtleCrypto(),s=await i(e,o.e),a=await n.sign({length:o.h,name:o.e},s,t);return new Uint8Array(a)}async function l(e){const t=r.getSubtleCrypto(),n=await t.digest({name:o.i},e);return new Uint8Array(n)}async function d(e){const t=r.getSubtleCrypto(),n=await t.digest({name:o.j},e);return new Uint8Array(n)}},Rb7d:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=e.width&&e.width>=21?e.width:void 0;return{width:t,scale:t?4:e.scale||4,margin:null==e.margin||e.margin<0?4:e.margin,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var o=n.modules.size,i=n.modules.data,s=t.getScale(o,r),a=Math.floor((o+2*r.margin)*s),c=r.margin*s,u=[r.color.light,r.color.dark],l=0;l<a;l++)for(var d=0;d<a;d++){var h=4*(l*a+d),f=r.color.light;l>=c&&d>=c&&l<a-c&&d<a-c&&(f=u[i[Math.floor((l-c)/s)*o+Math.floor((d-c)/s)]?1:0]),e[h++]=f.r,e[h++]=f.g,e[h++]=f.b,e[h]=f.a}}},SSU8:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return i});var r=n("RM/z");function o(e,t,n){return Object(r.b)(e,t,n)}function i(e,t,n){return Object(r.a)(e,t,n)}},Skww:function(e,t,n){const r=n("rE/H");function o(e){return"never"!==a(e)}function i(e){const t=s(e);return t>=e.params.length?e.params:"eth_getBlockByNumber"===e.method?e.params.slice(1):e.params.slice(0,t)}function s(e){switch(e.method){case"eth_getStorageAt":return 2;case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":case"eth_call":return 1;case"eth_getBlockByNumber":return 0;default:return}}function a(e){switch(e.method){case"web3_clientVersion":case"web3_sha3":case"eth_protocolVersion":case"eth_getBlockTransactionCountByHash":case"eth_getUncleCountByBlockHash":case"eth_getCode":case"eth_getBlockByHash":case"eth_getTransactionByHash":case"eth_getTransactionByBlockHashAndIndex":case"eth_getTransactionReceipt":case"eth_getUncleByBlockHashAndIndex":case"eth_getCompilers":case"eth_compileLLL":case"eth_compileSolidity":case"eth_compileSerpent":case"shh_version":case"test_permaCache":return"perma";case"eth_getBlockByNumber":case"eth_getBlockTransactionCountByNumber":case"eth_getUncleCountByBlockNumber":case"eth_getTransactionByBlockNumberAndIndex":case"eth_getUncleByBlockNumberAndIndex":case"test_forkCache":return"fork";case"eth_gasPrice":case"eth_blockNumber":case"eth_getBalance":case"eth_getStorageAt":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":case"eth_getFilterLogs":case"eth_getLogs":case"test_blockCache":return"block";case"net_version":case"net_peerCount":case"net_listening":case"eth_syncing":case"eth_sign":case"eth_coinbase":case"eth_mining":case"eth_hashrate":case"eth_accounts":case"eth_sendTransaction":case"eth_sendRawTransaction":case"eth_newFilter":case"eth_newBlockFilter":case"eth_newPendingTransactionFilter":case"eth_uninstallFilter":case"eth_getFilterChanges":case"eth_getWork":case"eth_submitWork":case"eth_submitHashrate":case"db_putString":case"db_getString":case"db_putHex":case"db_getHex":case"shh_post":case"shh_newIdentity":case"shh_hasIdentity":case"shh_newGroup":case"shh_addToGroup":case"shh_newFilter":case"shh_uninstallFilter":case"shh_getFilterChanges":case"shh_getMessages":case"test_neverCache":return"never"}}e.exports={cacheIdentifierForPayload:function(e,t){const n=t?i(e):e.params;return o(e)?e.method+":"+r(n):null},canCache:o,blockTagForPayload:function(e){let t=s(e);return t>=e.params.length?null:e.params[t]},paramsWithoutBlockTag:i,blockTagParamIndex:s,cacheTypeForPayload:a}},SoAf:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"g",function(){return i}),n.d(t,"a",function(){return s}),n.d(t,"f",function(){return a}),n.d(t,"e",function(){return c}),n.d(t,"i",function(){return u}),n.d(t,"j",function(){return l}),n.d(t,"h",function(){return r}),n.d(t,"d",function(){return d}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return f}),n.d(t,"l",function(){return p});const r=512,o=256,i=256,s="AES-CBC",a=`SHA-${o}`,c="HMAC",u="SHA-256",l="SHA-512",d="encrypt",h="decrypt",f="sign",p="verify"},V35J:function(e,t,n){var r=n("Wogr");function o(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=r.alloc(e*e),this.reservedBit=r.alloc(e*e)}o.prototype.set=function(e,t,n,r){var o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},o.prototype.get=function(e,t){return this.data[e*this.size+t]},o.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},o.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=o},Wogr:function(e,t,n){"use strict";var r=n("7uVY"),o=(i.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}())?2147483647:1073741823;function i(e,t,n){return i.TYPED_ARRAY_SUPPORT||this instanceof i?"number"==typeof e?c(this,e):function(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(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");var o;return o=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),i.TYPED_ARRAY_SUPPORT?o.__proto__=i.prototype:o=u(e,o),o}(e,t,n,r):"string"==typeof t?function(e,t){var n=0|d(t),r=a(e,n),o=r.write(t);return o!==n&&(r=r.slice(0,o)),r}(e,t):function(e,t){if(i.isBuffer(t)){var n=0|s(t.length),r=a(e,n);return 0===r.length||t.copy(r,0,0,n),r}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?a(e,0):u(e,t);if("Buffer"===t.type&&Array.isArray(t.data))return u(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}(this,e,t,n):new i(e,t,n)}function s(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function a(e,t){var n;return i.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t)).__proto__=i.prototype:(null===(n=e)&&(n=new i(t)),n.length=t),n}function c(e,t){var n=a(e,t<0?0:0|s(t));if(!i.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)n[r]=0;return n}function u(e,t){for(var n=t.length<0?0:0|s(t.length),r=a(e,n),o=0;o<n;o+=1)r[o]=255&t[o];return r}function l(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function d(e){return i.isBuffer(e)?e.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!=typeof e&&(e=""+e),0===e.length?0:l(e).length)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),i.prototype.write=function(e,t,n){void 0===t||void 0===n&&"string"==typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,n,r){return function(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}(l(t,e.length-n),e,n,r)}(this,e,t,n)},i.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),i.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=i.prototype;else{var o=t-e;n=new i(o,void 0);for(var s=0;s<o;++s)n[s]=this[s+e]}return n},i.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 o,s=r-n;if(this===e&&n<t&&t<r)for(o=s-1;o>=0;--o)e[o+t]=this[o+n];else if(s<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+s),t);return s},i.prototype.fill=function(e,t,n){if("string"==typeof e){if("string"==typeof t?(t=0,n=this.length):"string"==typeof n&&(n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=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 s=i.isBuffer(e)?e:new i(e),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this},i.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a(null,0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=c(null,t),s=0;for(n=0;n<e.length;++n){var u=e[n];if(!i.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(o,s),s+=u.length}return o},i.byteLength=d,i.prototype._isBuffer=!0,i.isBuffer=function(e){return!(null==e||!e._isBuffer)},e.exports.alloc=function(e){var t=new i(e);return t.fill(0),t},e.exports.from=function(e){return new i(e)}},YvnI:function(e,t,n){"use strict";n("RM/z")},Z92M:function(e,t){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},ZlHy:function(e,t){e.exports=function(){return Math.floor(Number.MAX_SAFE_INTEGER*Math.random())}},"aGp+":function(e,t,n){const r=n("Skww"),o=n("w92A"),i=[void 0,null,"<nil>"];e.exports=function(e={}){const{blockTracker:t}=e;if(!t)throw new Error("createBlockCacheMiddleware - No BlockTracker specified");const n=new s,i={perma:n,block:n,fork:n};return o(async(e,o,s)=>{if(e.skipCache)return s();const a=r.cacheTypeForPayload(e),c=i[a];if(!c)return s();if(!c.canCacheRequest(e))return s();let u,l=r.blockTagForPayload(e);if(l||(l="latest"),"earliest"===l)u="0x00";else if("latest"===l){const e=await t.getLatestBlock();n.clearBefore(e),u=e}else u=l;const d=await c.get(e,u);void 0===d?(await s(),await c.set(e,u,o.result)):o.result=d})};class s{constructor(){this.cache={}}getBlockCacheForPayload(e,t){const n=Number.parseInt(t,16);let r=this.cache[n];if(!r){const e={};this.cache[n]=e,r=e}return r}async get(e,t){const n=this.getBlockCacheForPayload(e,t);if(n)return n[r.cacheIdentifierForPayload(e,!0)]}async set(e,t,n){this.canCacheResult(e,n)&&(this.getBlockCacheForPayload(e,t)[r.cacheIdentifierForPayload(e,!0)]=n)}canCacheRequest(e){return!!r.canCache(e)&&"pending"!==r.blockTagForPayload(e)}canCacheResult(e,t){if(!i.includes(t))return!!(!["eth_getTransactionByHash","eth_getTransactionReceipt"].includes(e.method)||t&&t.blockHash&&"0x0000000000000000000000000000000000000000000000000000000000000000"!==t.blockHash)}clearBefore(e){const t=this,n=Number.parseInt(e,16);Object.keys(t.cache).map(Number).filter(e=>e<n).forEach(e=>delete t.cache[e])}}},aZ40:function(e,t,n){var r=n("Wogr"),o=r.alloc(512),i=r.alloc(256);!function(){for(var e=1,t=0;t<255;t++)o[t]=e,i[e]=t,256&(e<<=1)&&(e^=285);for(t=255;t<512;t++)o[t]=o[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return i[e]},t.exp=function(e){return o[e]},t.mul=function(e,t){return 0===e||0===t?0:o[i[e]+i[t]]}},cSa0:function(e,t,n){"use strict";const r=n("OOOY"),o=n("8jRI"),i=n("8yz6");function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function a(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function c(e,t){return t.decode?o(e):e}function u(e){return Array.isArray(e)?e.sort():"object"==typeof e?u(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function d(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function f(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),r[e=e.replace(/\[\]$/,"")]=t?void 0!==r[e]?[].concat(r[e],n):[n]:n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.split("").indexOf(e.arrayFormatSeparator)>-1?n.split(e.arrayFormatSeparator).map(t=>c(t,e)):null===n?n:c(n,e);r[t]=o};default:return(e,t,n)=>{n[e]=void 0!==n[e]?[].concat(n[e],t):t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){let[e,s]=i(t.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator"].includes(t.arrayFormat)?s:c(s,t),n(c(e,t),s,r)}for(const o of Object.keys(r)){const e=r[o];if("object"==typeof e&&null!==e)for(const n of Object.keys(e))e[n]=h(e[n],t);else r[o]=h(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?u(n):n,e},Object.create(null))}t.extract=d,t.parse=f,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[a(t,e),"[",o,"]"].join("")]:[...n,[a(t,e),"[",a(o,e),"]=",a(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[a(t,e),"[]"].join("")]:[...n,[a(t,e),"[]=",a(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[a(t,e),"=",a(r,e)].join("")]:[[n,a(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,a(t,e)]:[...n,[a(t,e),"=",a(r,e)].join("")]}}(t),o={};for(const s of Object.keys(e))n(s)||(o[s]=e[s]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map(n=>{const o=e[n];return void 0===o?"":null===o?a(n,t):Array.isArray(o)?o.reduce(r(n),[]).join("&"):a(n,t)+"="+a(o,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:f(d(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:c(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=l(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),s=Object.assign(i,e.query);let c=t.stringify(s,n);c&&(c=`?${c}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${a(e.fragmentIdentifier,n)}`),`${r}${c}${u}`}},dFyl:function(e,t,n){(function(t){function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n("Kqv8"),i=r(n("0FX9")),s=r(n("+QRC")),a=n("FdF9");"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var c="walletconnect-wrapper",u="walletconnect-style-sheet",l="walletconnect-qrcode-modal",d="walletconnect-qrcode-text";function h(e){return a.createElement("div",{className:"walletconnect-modal__header"},a.createElement("img",{src:"data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='300px' height='185px' viewBox='0 0 300 185' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch --%3E %3Ctitle%3EWalletConnect%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cdefs%3E%3C/defs%3E %3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='walletconnect-logo-alt' fill='%233B99FC' fill-rule='nonzero'%3E %3Cpath d='M61.4385429,36.2562612 C110.349767,-11.6319051 189.65053,-11.6319051 238.561752,36.2562612 L244.448297,42.0196786 C246.893858,44.4140867 246.893858,48.2961898 244.448297,50.690599 L224.311602,70.406102 C223.088821,71.6033071 221.106302,71.6033071 219.883521,70.406102 L211.782937,62.4749541 C177.661245,29.0669724 122.339051,29.0669724 88.2173582,62.4749541 L79.542302,70.9685592 C78.3195204,72.1657633 76.337001,72.1657633 75.1142214,70.9685592 L54.9775265,51.2530561 C52.5319653,48.8586469 52.5319653,44.9765439 54.9775265,42.5821357 L61.4385429,36.2562612 Z M280.206339,77.0300061 L298.128036,94.5769031 C300.573585,96.9713 300.573599,100.85338 298.128067,103.247793 L217.317896,182.368927 C214.872352,184.763353 210.907314,184.76338 208.461736,182.368989 C208.461726,182.368979 208.461714,182.368967 208.461704,182.368957 L151.107561,126.214385 C150.496171,125.615783 149.504911,125.615783 148.893521,126.214385 C148.893517,126.214389 148.893514,126.214393 148.89351,126.214396 L91.5405888,182.368927 C89.095052,184.763359 85.1300133,184.763399 82.6844276,182.369014 C82.6844133,182.369 82.684398,182.368986 82.6843827,182.36897 L1.87196327,103.246785 C-0.573596939,100.852377 -0.573596939,96.9702735 1.87196327,94.5758653 L19.7936929,77.028998 C22.2392531,74.6345898 26.2042918,74.6345898 28.6498531,77.028998 L86.0048306,133.184355 C86.6162214,133.782957 87.6074796,133.782957 88.2188704,133.184355 C88.2188796,133.184346 88.2188878,133.184338 88.2188969,133.184331 L145.571,77.028998 C148.016505,74.6345347 151.981544,74.6344449 154.427161,77.028798 C154.427195,77.0288316 154.427229,77.0288653 154.427262,77.028899 L211.782164,133.184331 C212.393554,133.782932 213.384814,133.782932 213.996204,133.184331 L271.350179,77.0300061 C273.79574,74.6355969 277.760778,74.6355969 280.206339,77.0300061 Z' id='WalletConnect'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E",className:"walletconnect-modal__headerLogo"}),a.createElement("p",null,"WalletConnect"),a.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:e.onClose},a.createElement("div",{id:"walletconnect-qrcode-close",className:"walletconnect-modal__close__icon"},a.createElement("div",{className:"walletconnect-modal__close__line1"}),a.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function f(e){return a.createElement("a",{className:"walletconnect-connect__button",href:e.href,id:"walletconnect-connect-button-"+e.name,onClick:e.onClick,rel:"noopener noreferrer",style:{backgroundColor:e.color},target:"_blank"},e.name)}function p(e){var t=e.color,n=e.logo;return a.createElement("a",{className:"walletconnect-modal__base__row",href:e.href,onClick:e.onClick,rel:"noopener noreferrer",target:"_blank"},a.createElement("h3",{className:"walletconnect-modal__base__row__h3"},e.name),a.createElement("div",{className:"walletconnect-modal__base__row__right"},a.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+n+"') "+t,backgroundSize:"100%"}}),a.createElement("img",{src:"data:image/svg+xml,%3Csvg width='8' height='18' viewBox='0 0 8 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.586301 0.213898C0.150354 0.552968 0.0718197 1.18124 0.41089 1.61719L5.2892 7.88931C5.57007 8.25042 5.57007 8.75608 5.2892 9.11719L0.410889 15.3893C0.071819 15.8253 0.150353 16.4535 0.586301 16.7926C1.02225 17.1317 1.65052 17.0531 1.98959 16.6172L6.86791 10.3451C7.7105 9.26174 7.7105 7.74476 6.86791 6.66143L1.98959 0.38931C1.65052 -0.0466374 1.02225 -0.125172 0.586301 0.213898Z' fill='%233C4252'/%3E %3C/svg%3E",className:"walletconnect-modal__base__row__right__caret"})))}function _(e){var t=e.name,n=window.innerWidth<768?(t.length>8?2.5:2.7)+"vw":"inherit";return a.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:e.href,onClick:e.onClick,rel:"noopener noreferrer",target:"_blank"},a.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+e.logo+"') "+e.color,backgroundSize:"100%"}}),a.createElement("div",{style:{fontSize:n},className:"walletconnect-connect__button__text"},t))}function g(e){var t=o.isAndroid(),n=a.useState(""),r=n[0],i=n[1],s=a.useState(""),c=s[0],u=s[1],l=a.useState(1),h=l[0],g=l[1],m=c?e.links.filter(function(e){return e.name.toLowerCase().includes(c.toLowerCase())}):e.links,y=e.errorMessage,v=c||m.length>5,w=Math.ceil(m.length/12),b=[12*(h-1)+1,12*h],k=m.length?m.filter(function(e,t){return t+1>=b[0]&&t+1<=b[1]}):[],x=!(t||!(w>1)),C=void 0;return a.createElement("div",null,a.createElement("p",{id:d,className:"walletconnect-qrcode__text"},t?e.text.connect_mobile_wallet:e.text.choose_preferred_wallet),!t&&a.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:function(e){i(e.target.value),clearTimeout(C),e.target.value?C=setTimeout(function(){u(e.target.value),g(1)},1e3):(i(""),u(""),g(1))}}),a.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(t?"__android":v&&m.length?"__wrap":"")},t?a.createElement(f,{name:e.text.connect,color:"rgb(64, 153, 255)",href:e.uri,onClick:a.useCallback(function(){o.saveMobileLinkInfo({name:"Unknown",href:e.uri})},[])}):k.length?k.map(function(t){var n=t.color,r=t.name,i=t.shortName,s=t.logo,c=o.formatIOSMobile(e.uri,t),u=a.useCallback(function(){o.saveMobileLinkInfo({name:r,href:c})},[k]);return v?a.createElement(_,{color:n,href:c,name:i,logo:s,onClick:u}):a.createElement(p,{color:n,href:c,name:r,logo:s,onClick:u})}):a.createElement(a.Fragment,null,a.createElement("p",null,y.length?e.errorMessage:e.links.length&&!m.length?e.text.no_wallets_found:e.text.loading))),x&&a.createElement("div",{className:"walletconnect-modal__footer"},Array(w).fill(0).map(function(e,t){var n=t+1;return a.createElement("a",{style:{margin:"auto 10px",fontWeight:h===n?"bold":"normal"},onClick:function(){return g(n)}},n)})))}function m(e){var t=!!e.message.trim();return a.createElement("div",{className:"walletconnect-qrcode__notification"+(t?" notification__show":"")},e.message)}function y(e){var t=a.useState(""),n=t[0],r=t[1],o=a.useState(""),c=o[0],u=o[1];return a.useEffect(function(){try{return Promise.resolve(function(e){try{var t="";return Promise.resolve(i.toString(e,{margin:0,type:"svg"})).then(function(e){return"string"==typeof e&&(t=e.replace("<svg",'<svg class="walletconnect-qrcode__image"')),t})}catch(n){return Promise.reject(n)}}(e.uri)).then(function(e){u(e)})}catch(t){Promise.reject(t)}},[]),a.createElement("div",null,a.createElement("p",{id:d,className:"walletconnect-qrcode__text"},e.text.scan_qrcode_with_wallet),a.createElement("div",{dangerouslySetInnerHTML:{__html:c}}),a.createElement("div",{className:"walletconnect-modal__footer"},a.createElement("a",{onClick:function(){s(e.uri)?(r(e.text.copied_to_clipboard),setInterval(function(){return r("")},1200)):(r("Error"),setInterval(function(){return r("")},1200))}},e.text.copy_to_clipboard)),a.createElement(m,{message:n}))}function v(e){var t=o.isAndroid(),n=o.isMobile(),r=n?e.qrcodeModalOptions&&e.qrcodeModalOptions.mobileLinks?e.qrcodeModalOptions.mobileLinks:void 0:e.qrcodeModalOptions&&e.qrcodeModalOptions.desktopLinks?e.qrcodeModalOptions.desktopLinks:void 0,i=a.useState(!1),s=i[0],c=i[1],u=a.useState(!1),d=u[0],f=u[1],p=a.useState(!n),_=p[0],m=p[1],v={mobile:n,text:e.text,uri:e.uri,qrcodeModalOptions:e.qrcodeModalOptions},w=a.useState(""),b=w[0],k=w[1],x=a.useState(!1),C=x[0],T=x[1],E=a.useState([]),S=E[0],M=E[1],I=a.useState(""),A=I[0],R=I[1],B=function(){d||s||r&&!r.length||S.length>0||a.useEffect(function(){!function(){try{if(t)return Promise.resolve();c(!0);var i=function(t,i){try{var s=(a=e.qrcodeModalOptions&&e.qrcodeModalOptions.registryUrl?e.qrcodeModalOptions.registryUrl:o.getWalletRegistryUrl(),Promise.resolve(fetch(a).then(function(e){return e.json()})).then(function(t){var i=o.getMobileLinkRegistry(o.formatMobileRegistry(t,n?"mobile":"desktop"),r);c(!1),f(!0),R(i.length?"":e.text.no_supported_wallets),M(i);var s=1===i.length;s&&(k(o.formatIOSMobile(e.uri,i[0])),m(!0)),T(s)}))}catch(u){return i(u)}var a;return s&&s.then?s.then(void 0,i):s}(0,function(t){c(!1),f(!0),R(e.text.something_went_wrong),console.error(t)});Promise.resolve(i&&i.then?i.then(function(){}):void 0)}catch(s){return Promise.reject(s)}}()})};B();var P=n?_:!_;return a.createElement("div",{id:l,className:"walletconnect-qrcode__base animated fadeIn"},a.createElement("div",{className:"walletconnect-modal__base"},a.createElement(h,{onClose:e.onClose}),C&&_?a.createElement("div",{className:"walletconnect-modal__single_wallet"},a.createElement("a",{onClick:function(){return o.saveMobileLinkInfo({name:S[0].name,href:b})},href:b,rel:"noopener noreferrer",target:"_blank"},e.text.connect_with+" "+(C?S[0].name:"")+" \u203a")):t||s||!s&&S.length?a.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(P?" right__selected":"")},a.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?a.createElement(a.Fragment,null,a.createElement("a",{onClick:function(){return m(!1),B()}},e.text.mobile),a.createElement("a",{onClick:function(){return m(!0)}},e.text.qrcode)):a.createElement(a.Fragment,null,a.createElement("a",{onClick:function(){return m(!0)}},e.text.qrcode),a.createElement("a",{onClick:function(){return m(!1),B()}},e.text.desktop))):null,a.createElement("div",null,_||!t&&!s&&!S.length?a.createElement(y,Object.assign({},v)):a.createElement(g,Object.assign({},v,{links:S,errorMessage:A})))))}var w={de:{choose_preferred_wallet:"W\xe4hle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterst\xfctzten Wallet",no_wallets_found:"keine Wallet gefunden"},en:{choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},es:{choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera m\xf3vil",scan_qrcode_with_wallet:"Escanea el c\xf3digo QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"C\xf3digo QR",mobile:"M\xf3vil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo sali\xf3 mal",no_supported_wallets:"Todav\xeda no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},fr:{choose_preferred_wallet:"Choisissez votre portefeuille pr\xe9f\xe9r\xe9",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copi\xe9!",connect_with:"Connectez-vous \xe0 l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourn\xe9",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouv\xe9"},ko:{choose_preferred_wallet:"\uc6d0\ud558\ub294 \uc9c0\uac11\uc744 \uc120\ud0dd\ud558\uc138\uc694",connect_mobile_wallet:"\ubaa8\ubc14\uc77c \uc9c0\uac11\uacfc \uc5f0\uacb0",scan_qrcode_with_wallet:"WalletConnect \uc9c0\uc6d0 \uc9c0\uac11\uc5d0\uc11c QR\ucf54\ub4dc\ub97c \uc2a4\uce94\ud558\uc138\uc694",connect:"\uc5f0\uacb0",qrcode:"QR \ucf54\ub4dc",mobile:"\ubaa8\ubc14\uc77c",desktop:"\ub370\uc2a4\ud06c\ud0d1",copy_to_clipboard:"\ud074\ub9bd\ubcf4\ub4dc\uc5d0 \ubcf5\uc0ac",copied_to_clipboard:"\ud074\ub9bd\ubcf4\ub4dc\uc5d0 \ubcf5\uc0ac\ub418\uc5c8\uc2b5\ub2c8\ub2e4!",connect_with:"\uc640 \uc5f0\uacb0\ud558\ub2e4",loading:"\ub85c\ub4dc \uc911...",something_went_wrong:"\ubb38\uc81c\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4.",no_supported_wallets:"\uc544\uc9c1 \uc9c0\uc6d0\ub418\ub294 \uc9c0\uac11\uc774 \uc5c6\uc2b5\ub2c8\ub2e4",no_wallets_found:"\uc9c0\uac11\uc744 \ucc3e\uc744 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4"},pt:{choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se \xe0 carteira m\xf3vel",scan_qrcode_with_wallet:"Ler o c\xf3digo QR com uma carteira compat\xedvel com WalletConnect",connect:"Conectar",qrcode:"C\xf3digo QR",mobile:"M\xf3vel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda n\xe3o h\xe1 carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},zh:{choose_preferred_wallet:"\u9009\u62e9\u4f60\u7684\u94b1\u5305",connect_mobile_wallet:"\u8fde\u63a5\u81f3\u79fb\u52a8\u7aef\u94b1\u5305",scan_qrcode_with_wallet:"\u4f7f\u7528\u517c\u5bb9 WalletConnect \u7684\u94b1\u5305\u626b\u63cf\u4e8c\u7ef4\u7801",connect:"\u8fde\u63a5",qrcode:"\u4e8c\u7ef4\u7801",mobile:"\u79fb\u52a8",desktop:"\u684c\u9762",copy_to_clipboard:"\u590d\u5236\u5230\u526a\u8d34\u677f",copied_to_clipboard:"\u590d\u5236\u5230\u526a\u8d34\u677f\u6210\u529f\uff01",connect_with:"\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u8fde\u63a5",loading:"\u6b63\u5728\u52a0\u8f7d...",something_went_wrong:"\u51fa\u4e86\u95ee\u9898",no_supported_wallets:"\u76ee\u524d\u8fd8\u6ca1\u6709\u652f\u6301\u7684\u94b1\u5305",no_wallets_found:"\u6ca1\u6709\u627e\u5230\u94b1\u5305"},fa:{choose_preferred_wallet:"\u06a9\u06cc\u0641 \u067e\u0648\u0644 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",connect_mobile_wallet:"\u0628\u0647 \u06a9\u06cc\u0641 \u067e\u0648\u0644 \u0645\u0648\u0628\u0627\u06cc\u0644 \u0648\u0635\u0644 \u0634\u0648\u06cc\u062f",scan_qrcode_with_wallet:"\u06a9\u062f QR \u0631\u0627 \u0628\u0627 \u06cc\u06a9 \u06a9\u06cc\u0641 \u067e\u0648\u0644 \u0633\u0627\u0632\u06af\u0627\u0631 \u0628\u0627 WalletConnect \u0627\u0633\u06a9\u0646 \u06a9\u0646\u06cc\u062f",connect:"\u0627\u062a\u0635\u0627\u0644",qrcode:"\u06a9\u062f QR",mobile:"\u0633\u06cc\u0627\u0631",desktop:"\u062f\u0633\u06a9\u062a\u0627\u067e",copy_to_clipboard:"\u06a9\u067e\u06cc \u0628\u0647 \u06a9\u0644\u06cc\u067e \u0628\u0648\u0631\u062f",copied_to_clipboard:"\u062f\u0631 \u06a9\u0644\u06cc\u067e \u0628\u0648\u0631\u062f \u06a9\u067e\u06cc \u0634\u062f!",connect_with:"\u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0627",loading:"...\u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc",something_went_wrong:"\u0645\u0634\u06a9\u0644\u06cc \u067e\u06cc\u0634 \u0622\u0645\u062f",no_supported_wallets:"\u0647\u0646\u0648\u0632 \u0647\u06cc\u0686 \u06a9\u06cc\u0641 \u067e\u0648\u0644 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0634\u062f\u0647 \u0627\u06cc \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f",no_wallets_found:"\u0647\u06cc\u0686 \u06a9\u06cc\u0641 \u067e\u0648\u0644\u06cc \u067e\u06cc\u062f\u0627 \u0646\u0634\u062f"}};function b(){var e=o.getDocumentOrThrow(),t=e.getElementById(l);t&&(t.className=t.className.replace("fadeIn","fadeOut"),setTimeout(function(){var t=e.getElementById(c);t&&e.body.removeChild(t)},300))}function k(e){return function(){b(),e&&e()}}var x=function(){return void 0!==t&&void 0!==t.versions&&void 0!==t.versions.node};e.exports={open:function(e,t,n){console.log(e),x()?function(e){i.toString(e,{type:"terminal"}).then(console.log)}(e):function(e,t,n){!function(){var e=o.getDocumentOrThrow(),t=e.getElementById(u);t&&e.head.removeChild(t);var n=e.createElement("style");n.setAttribute("id",u),n.innerText=':root {\n --animation-duration: 300ms;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.animated {\n animation-duration: var(--animation-duration);\n animation-fill-mode: both;\n}\n\n.fadeIn {\n animation-name: fadeIn;\n}\n\n.fadeOut {\n animation-name: fadeOut;\n}\n\n#walletconnect-wrapper {\n -webkit-user-select: none;\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n pointer-events: none;\n position: fixed;\n top: 0;\n user-select: none;\n width: 100%;\n z-index: 99999999999999;\n}\n\n.walletconnect-modal__headerLogo {\n height: 21px;\n}\n\n.walletconnect-modal__header p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n align-items: flex-start;\n display: flex;\n flex: 1;\n margin-left: 5px;\n}\n\n.walletconnect-modal__close__wrapper {\n position: absolute;\n top: 0px;\n right: 0px;\n z-index: 10000;\n background: white;\n border-radius: 26px;\n padding: 6px;\n box-sizing: border-box;\n width: 26px;\n height: 26px;\n cursor: pointer;\n}\n\n.walletconnect-modal__close__icon {\n position: relative;\n top: 7px;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(45deg);\n}\n\n.walletconnect-modal__close__line1 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n}\n\n.walletconnect-modal__close__line2 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n transform: rotate(90deg);\n}\n\n.walletconnect-qrcode__base {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n background: rgba(37, 41, 46, 0.95);\n height: 100%;\n left: 0;\n pointer-events: auto;\n position: fixed;\n top: 0;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n width: 100%;\n will-change: opacity;\n padding: 40px;\n box-sizing: border-box;\n}\n\n.walletconnect-qrcode__text {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 10px 0 20px 0;\n text-align: center;\n width: 100%;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-qrcode__text {\n font-size: 4vw;\n }\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-qrcode__text {\n font-size: 14px;\n }\n}\n\n.walletconnect-qrcode__image {\n width: calc(100% - 30px);\n box-sizing: border-box;\n cursor: none;\n margin: 0 auto;\n}\n\n.walletconnect-qrcode__notification {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n font-size: 16px;\n padding: 16px 20px;\n border-radius: 16px;\n text-align: center;\n transition: all 0.1s ease-in-out;\n background: white;\n color: black;\n margin-bottom: -60px;\n opacity: 0;\n}\n\n.walletconnect-qrcode__notification.notification__show {\n opacity: 1;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__header {\n height: 130px;\n }\n .walletconnect-modal__base {\n overflow: auto;\n }\n}\n\n@media only screen and (min-device-width: 415px) and (max-width: 768px) {\n #content {\n max-width: 768px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 375px) and (max-width: 415px) {\n #content {\n max-width: 414px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 320px) and (max-width: 375px) {\n #content {\n max-width: 375px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (max-width: 320px) {\n #content {\n max-width: 320px;\n box-sizing: border-box;\n }\n}\n\n.walletconnect-modal__base {\n -webkit-font-smoothing: antialiased;\n background: #ffffff;\n border-radius: 24px;\n box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4);\n font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font,\n -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,\n "Open Sans", "Helvetica Neue", sans-serif;\n margin-top: 41px;\n padding: 24px 24px 22px;\n pointer-events: auto;\n position: relative;\n text-align: center;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n will-change: transform;\n overflow: visible;\n transform: translateY(-50%);\n top: 50%;\n max-width: 500px;\n margin: auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__base {\n padding: 24px 12px;\n }\n}\n\n.walletconnect-modal__base .hidden {\n transform: translateY(150%);\n transition: 0.125s cubic-bezier(0.4, 0, 1, 1);\n}\n\n.walletconnect-modal__header {\n align-items: center;\n display: flex;\n height: 26px;\n left: 0;\n justify-content: space-between;\n position: absolute;\n top: -42px;\n width: 100%;\n}\n\n.walletconnect-modal__base .wc-logo {\n align-items: center;\n display: flex;\n height: 26px;\n margin-top: 15px;\n padding-bottom: 15px;\n pointer-events: auto;\n}\n\n.walletconnect-modal__base .wc-logo div {\n background-color: #3399ff;\n height: 21px;\n margin-right: 5px;\n mask-image: url("images/wc-logo.svg") center no-repeat;\n width: 32px;\n}\n\n.walletconnect-modal__base .wc-logo p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n}\n\n.walletconnect-modal__base h2 {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 0 0 19px 0;\n text-align: center;\n width: 100%;\n}\n\n.walletconnect-modal__base__row {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n align-items: center;\n border-radius: 20px;\n cursor: pointer;\n display: flex;\n height: 56px;\n justify-content: space-between;\n padding: 0 15px;\n position: relative;\n margin: 0px 0px 8px;\n text-align: left;\n transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n will-change: transform;\n text-decoration: none;\n}\n\n.walletconnect-modal__base__row:hover {\n background: rgba(60, 66, 82, 0.06);\n}\n\n.walletconnect-modal__base__row:active {\n background: rgba(60, 66, 82, 0.06);\n transform: scale(0.975);\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.walletconnect-modal__base__row__h3 {\n color: #25292e;\n font-size: 20px;\n font-weight: 700;\n margin: 0;\n padding-bottom: 3px;\n}\n\n.walletconnect-modal__base__row__right {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n\n.walletconnect-modal__base__row__right__app-icon {\n border-radius: 8px;\n height: 34px;\n margin: 0 11px 2px 0;\n width: 34px;\n background-size: 100%;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-modal__base__row__right__caret {\n height: 18px;\n opacity: 0.3;\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n width: 8px;\n will-change: opacity;\n}\n\n.walletconnect-modal__base__row:hover .caret,\n.walletconnect-modal__base__row:active .caret {\n opacity: 0.6;\n}\n\n.walletconnect-modal__mobile__toggle {\n width: 80%;\n display: flex;\n margin: 0 auto;\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n margin-bottom: 18px;\n background: #d4d5d9;\n}\n\n.walletconnect-modal__single_wallet {\n display: flex;\n justify-content: center;\n margin-top: 7px;\n margin-bottom: 18px;\n}\n\n.walletconnect-modal__single_wallet a {\n cursor: pointer;\n color: rgb(64, 153, 255);\n font-size: 21px;\n font-weight: 800;\n text-decoration: none !important;\n margin: 0 auto;\n}\n\n.walletconnect-modal__mobile__toggle_selector {\n width: calc(50% - 8px);\n background: white;\n position: absolute;\n border-radius: 5px;\n height: calc(100% - 8px);\n top: 4px;\n transition: all 0.2s ease-in-out;\n transform: translate3d(4px, 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector {\n transform: translate3d(calc(100% + 12px), 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle a {\n font-size: 12px;\n width: 50%;\n text-align: center;\n padding: 8px;\n margin: 0;\n font-weight: 600;\n z-index: 1;\n}\n\n.walletconnect-modal__footer {\n display: flex;\n justify-content: center;\n margin-top: 20px;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__footer {\n margin-top: 5vw;\n }\n}\n\n.walletconnect-modal__footer a {\n cursor: pointer;\n color: #898d97;\n font-size: 15px;\n margin: 0 auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__footer a {\n font-size: 14px;\n }\n}\n\n.walletconnect-connect__buttons__wrapper {\n max-height: 44vh;\n}\n\n.walletconnect-connect__buttons__wrapper__android {\n margin: 50% 0;\n}\n\n.walletconnect-connect__buttons__wrapper__wrap {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n margin: 10px 0;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__buttons__wrapper__wrap {\n margin-top: 40px;\n }\n}\n\n.walletconnect-connect__button {\n background-color: rgb(64, 153, 255);\n padding: 12px;\n border-radius: 8px;\n text-decoration: none;\n color: rgb(255, 255, 255);\n font-weight: 500;\n}\n\n.walletconnect-connect__button__icon_anchor {\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: 8px;\n width: 42px;\n justify-self: center;\n flex-direction: column;\n text-decoration: none !important;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-connect__button__icon_anchor {\n margin: 4px;\n }\n}\n\n.walletconnect-connect__button__icon {\n border-radius: 10px;\n height: 42px;\n margin: 0;\n width: 42px;\n background-size: cover !important;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-connect__button__text {\n color: #424952;\n font-size: 2.7vw;\n text-decoration: none !important;\n padding: 0;\n margin-top: 1.8vw;\n font-weight: 600;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__button__text {\n font-size: 16px;\n margin-top: 12px;\n }\n}\n\n.walletconnect-search__input {\n border: none;\n background: #d4d5d9;\n border-style: none;\n padding: 8px 16px;\n outline: none;\n font-style: normal;\n font-stretch: normal;\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: normal;\n text-align: left;\n border-radius: 8px;\n width: calc(100% - 16px);\n margin: 0;\n margin-bottom: 8px;\n}\n',e.head.appendChild(n)}();var r,i=function(){var e=o.getDocumentOrThrow(),t=e.createElement("div");return t.setAttribute("id",c),e.body.appendChild(t),t}();a.render(a.createElement(v,{text:(r=o.getNavigatorOrThrow().language.split("-")[0]||"en",w[r]||w.en),uri:e,onClose:k(t),qrcodeModalOptions:n}),i)}(e,t,n)},close:function(){x()||b()}}}).call(this,n("8oxB"))},dYBg:function(e,t,n){"use strict";t.a=class{constructor(){this._eventEmitters=[],"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter(t=>t.event===e)),t.forEach(e=>{e.callback()})}}},"e/Dd":function(e,t){var n,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},e0ae:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return d});var r=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},o=function(t){this.version=t,this.type="node",this.name="node",this.os=e.platform},i=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},s=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},a=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],l=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return t?h(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new a:"undefined"!=typeof navigator?h(navigator.userAgent):void 0!==e&&e.version?new o(e.version.slice(1)):null}function h(e){var t=function(e){return""!==e&&u.reduce(function(t,n){var r=n[0];if(t)return t;var o=n[1].exec(e);return!!o&&[r,o]},!1)}(e);if(!t)return null;var n=t[0],o=t[1];if("searchbot"===n)return new s;var a=o[1]&&o[1].split(/[._]/).slice(0,3);a?a.length<3&&(a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}(a,function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(3-a.length))):a=[];var d=a.join("."),h=function(e){for(var t=0,n=l.length;t<n;t++){var r=l[t],o=r[0];if(r[1].exec(e))return o}return null}(e),f=c.exec(e);return f&&f[1]?new i(n,d,h,f[1]):new r(n,d,h)}}).call(this,n("8oxB"))},e6BP:function(e,t){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},eJYJ:function(e,t,n){},eQOe:function(e,t){function n(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,n=0,r=0,o=0,i=null,s=null,a=0;a<t;a++){r=o=0,i=s=null;for(var c=0;c<t;c++){var u=e.get(a,c);u===i?r++:(r>=5&&(n+=r-5+3),i=u,r=1),(u=e.get(c,a))===s?o++:(o>=5&&(n+=o-5+3),s=u,o=1)}r>=5&&(n+=r-5+3),o>=5&&(n+=o-5+3)}return n},t.getPenaltyN2=function(e){for(var t=e.size,n=0,r=0;r<t-1;r++)for(var o=0;o<t-1;o++){var i=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);4!==i&&0!==i||n++}return 3*n},t.getPenaltyN3=function(e){for(var t=e.size,n=0,r=0,o=0,i=0;i<t;i++){r=o=0;for(var s=0;s<t;s++)r=r<<1&2047|e.get(i,s),s>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(s,i),s>=10&&(1488===o||93===o)&&n++}return 40*n},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,r=0;r<n;r++)t+=e.data[r];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,t){for(var r=t.size,o=0;o<r;o++)for(var i=0;i<r;i++)t.isReserved(i,o)||t.xor(i,o,n(e,i,o))},t.getBestMask=function(e,n){for(var r=Object.keys(t.Patterns).length,o=0,i=1/0,s=0;s<r;s++){n(s),t.applyMask(s,e);var a=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),a<i&&(i=a,o=s)}return o}},ekOh:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return n}}},f3NI:function(e,t,n){"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},"hFr/":function(e,t,n){"use strict";var r=n("q4H8");n.d(t,"randomBytes",function(){return r.a});var o=n("SSU8");n.d(t,"aesCbcDecrypt",function(){return o.a}),n.d(t,"aesCbcEncrypt",function(){return o.b});var i=n("BFhG");n.d(t,"hmacSha256Sign",function(){return i.a}),n("YvnI"),n("xesE"),n("SoAf")},"i75/":function(e,t,n){},jSPq:function(e,t,n){var r=n("Wogr"),o=n("JzKC"),i=n("tjlA").Buffer;function s(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}s.prototype.initialize=function(e){this.degree=e,this.genPoly=o.generateECPolynomial(this.degree)},s.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=r.alloc(this.degree),n=i.concat([e,t],e.length+this.degree),s=o.mod(n,this.genPoly),a=this.degree-s.length;if(a>0){var c=r.alloc(this.degree);return s.copy(c,a),c}return s},e.exports=s},k5kJ:function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n}n.d(t,"a",function(){return r})},"kk9/":function(e,t,n){var r=n("e/Dd").getSymbolSize;t.getPositions=function(e){var t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},lYJp:function(e,t,n){var r=n("e/Dd"),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){for(var n=e.bit<<3|t,i=n<<10;r.getBCHDigit(i)-o>=0;)i^=1335<<r.getBCHDigit(i)-o;return 21522^(n<<10|i)}},m4Dm:function(e,t,n){"use strict";n.d(t,"g",function(){return r.detectEnv}),n.d(t,"t",function(){return r.isMobile}),n.d(t,"o",function(){return r.isBrowser}),n.d(t,"j",function(){return r.getFromWindow}),n.d(t,"l",function(){return r.getLocation}),n.d(t,"i",function(){return r.getClientMeta}),n.d(t,"D",function(){return r.setLocal}),n.d(t,"k",function(){return r.getLocal}),n.d(t,"C",function(){return r.removeLocal}),n.d(t,"x",function(){return r.mobileLinkChoiceKey}),n.d(t,"E",function(){return i}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return d}),n.d(t,"d",function(){return h}),n.d(t,"e",function(){return f}),n.d(t,"f",function(){return p}),n.d(t,"y",function(){return S}),n.d(t,"z",function(){return M}),n.d(t,"B",function(){return m}),n.d(t,"F",function(){return y}),n.d(t,"n",function(){return v}),n.d(t,"h",function(){return I}),n.d(t,"w",function(){return O}),n.d(t,"A",function(){return N}),n.d(t,"m",function(){return R}),n.d(t,"a",function(){return B}),n.d(t,"q",function(){return b}),n.d(t,"s",function(){return k}),n.d(t,"r",function(){return x}),n.d(t,"p",function(){return C}),n.d(t,"u",function(){return T}),n.d(t,"v",function(){return E});var r=n("Kqv8");const o=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],i=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign"],s={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"};var a=n("9gnv"),c=n.n(a),u=n("MgLx");function l(e){return u.arrayToBuffer(new Uint8Array(e))}function d(e,t){return u.arrayToHex(new Uint8Array(e),!t)}function h(e){return u.bufferToArray(e).buffer}function f(e){return u.hexToArray(e).buffer}function p(e,t){const n=u.removeHexPrefix(u.sanitizeHex(new c.a(e).toString(16)));return t?n:u.addHexPrefix(n)}var _=n("HFX+");function g(e){return u.sanitizeHex(e)}const m=n("GM3Q").payloadId;function y(){return((e,t)=>{for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t})()}function v(e,t){let n;const r=function(e,t){let n;const r=s[e];return r&&(n=`https://${r}.infura.io/v3/${t}`),n}(e,t.infuraId);return t.custom&&t.custom[e]?n=t.custom[e]:r&&(n=r),n}function w(e,t){return u.isHexString(e,t)}function b(e){return void 0!==e.method}function k(e){return void 0!==e.result}function x(e){return void 0!==e.error}function C(e){return void 0!==e.event}function T(e){return o.includes(e)||e.startsWith("wc_")}function E(e){return!!e.method.startsWith("wc_")||!i.includes(e.method)}function S(e){var t;return(t=e)&&t.length&&!w(e[0])&&(e[0]=u.utf8ToHex(e[0],!0)),e}function M(e){if(void 0!==e.type&&"0"!==e.type)return e;if(void 0===e.from||!(t=e.from)||"0x"!==t.toLowerCase().substring(0,2)||!/^(0x)?[0-9a-f]{40}$/i.test(t)||!/^(0x)?[0-9a-f]{40}$/.test(t)&&!/^(0x)?[0-9A-F]{40}$/.test(t)&&t!==function(e){e=Object(u.removeHexPrefix)(e.toLowerCase());const t=Object(u.removeHexPrefix)(Object(_.keccak_256)(u.utf8ToBuffer(e)));let n="";for(let r=0;r<e.length;r++)parseInt(t[r],16)>7?n+=e[r].toUpperCase():n+=e[r];return Object(u.addHexPrefix)(n)}(t))throw new Error("Transaction object must include a valid 'from' value.");var t;function n(e){let t=e;return("number"==typeof e||"string"==typeof e&&!function(e){return""===e||"string"==typeof e&&""===e.trim()}(e))&&(w(e)?"string"==typeof e&&(t=g(e)):t=p(e)),"string"==typeof t&&(t=u.removeHexLeadingZeros(u.addHexPrefix(t))),t}const r={from:g(e.from),to:void 0===e.to?"":g(e.to),gasPrice:void 0===e.gasPrice?"":n(e.gasPrice),gas:void 0===e.gas?void 0===e.gasLimit?"":n(e.gasLimit):n(e.gas),value:void 0===e.value?"":n(e.value),nonce:void 0===e.nonce?"":n(e.nonce),data:void 0===e.data?"":g(e.data)||"0x"},o=["gasPrice","gas","value","nonce"];return Object.keys(r).forEach(e=>{!r[e].trim().length&&o.includes(e)&&delete r[e]}),r}function I(e){const t=e.message||"Failed or Rejected Request";let n=-32e3;if(e&&!e.code)switch(t){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3}return{code:n,message:t}}var A=n("cSa0");function R(e){const t=-1!==e.indexOf("?")?e.indexOf("?"):void 0;return void 0!==t?e.substr(t):""}function B(e,t){let n=P(e);return n=Object.assign(Object.assign({},n),t),function(e){return A.stringify(e)}(n)}function P(e){return A.parse(e)}function O(e){return void 0!==e.bridge}function N(e){const t=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),o=function(e){const t=e.split("@");return{handshakeTopic:t[0],version:parseInt(t[1],10)}}(e.substring(t+1,n)),i=function(e){const t=P(e);return{key:t.key||"",bridge:t.bridge||""}}(void 0!==n?e.substr(n):"");return Object.assign(Object.assign({protocol:r},o),i)}},mJG9:function(e,t,n){const r=n("Itfy"),o=n("aGp+");e.exports=class extends r{constructor(e){super(({blockTracker:t})=>o(Object.assign({blockTracker:t},e)))}}},nD3k:function(e,t){},nZSm:function(e,t,n){var r=n("u/Db"),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},o6or:function(e,t){},q4H8:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("veq9");function o(e){return r.getBrowerCrypto().getRandomValues(new Uint8Array(e))}},qA3A:function(e,t,n){},qXd6:function(e,t){e.exports=o,o.strict=i,o.loose=s;var n=Object.prototype.toString,r={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function o(e){return i(e)||s(e)}function i(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function s(e){return r[n.call(e)]}},qmMu:function(e,t,n){var r=n("Wogr"),o=n("e/Dd"),i=n("ekOh"),s=n("e6BP"),a=n("V35J"),c=n("1sBl"),u=n("kk9/"),l=n("eQOe"),d=n("NPxG"),h=n("jSPq"),f=n("yKow"),p=n("lYJp"),_=n("u/Db"),g=n("vvrf"),m=n("7uVY");function y(e,t,n){var r,o,i=e.size,s=p.getEncodedBits(t,n);for(r=0;r<15;r++)e.set(r<6?r:r<8?r+1:i-15+r,8,o=1==(s>>r&1),!0),e.set(8,r<8?i-r-1:r<9?15-r-1+1:15-r-1,o,!0);e.set(i-8,8,1,!0)}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var n,p,v=i.M;return void 0!==t&&(v=i.from(t.errorCorrectionLevel,i.M),n=f.from(t.version),p=l.from(t.maskPattern),t.toSJISFunc&&o.setToSJISFunction(t.toSJISFunc)),function(e,t,n,i){var p;if(m(e))p=g.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");var v=t;if(!v){var w=g.rawSplit(e);v=f.getBestVersionForData(w,n)}p=g.fromString(e,v||40)}var b=f.getBestVersionForData(p,n);if(!b)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<b)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+b+".\n")}else t=b;var k=function(e,t,n){var i=new s;n.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),_.getCharCountIndicator(t.mode,e)),t.write(i)});var a=8*(o.getSymbolTotalCodewords(e)-d.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);for(var c=(a-i.getLengthInBits())/8,u=0;u<c;u++)i.put(u%2?17:236,8);return function(e,t,n){for(var i=o.getSymbolTotalCodewords(t),s=i-d.getTotalCodewordsCount(t,n),a=d.getBlocksCount(t,n),c=a-i%a,u=Math.floor(i/a),l=Math.floor(s/a),f=l+1,p=u-l,_=new h(p),g=0,m=new Array(a),y=new Array(a),v=0,w=r.from(e.buffer),b=0;b<a;b++){var k=b<c?l:f;m[b]=w.slice(g,g+k),y[b]=_.encode(m[b]),g+=k,v=Math.max(v,k)}var x,C,T=r.alloc(i),E=0;for(x=0;x<v;x++)for(C=0;C<a;C++)x<m[C].length&&(T[E++]=m[C][x]);for(x=0;x<p;x++)for(C=0;C<a;C++)T[E++]=y[C][x];return T}(i,e,t)}(t,n,p),x=o.getSymbolSize(t),C=new a(x);return function(e,t){for(var n=e.size,r=u.getPositions(t),o=0;o<r.length;o++)for(var i=r[o][0],s=r[o][1],a=-1;a<=7;a++)if(!(i+a<=-1||n<=i+a))for(var c=-1;c<=7;c++)s+c<=-1||n<=s+c||e.set(i+a,s+c,a>=0&&a<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===a||6===a)||a>=2&&a<=4&&c>=2&&c<=4,!0)}(C,t),function(e){for(var t=e.size,n=8;n<t-8;n++){var r=n%2==0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}(C),function(e,t){for(var n=c.getPositions(t),r=0;r<n.length;r++)for(var o=n[r][0],i=n[r][1],s=-2;s<=2;s++)for(var a=-2;a<=2;a++)e.set(o+s,i+a,-2===s||2===s||-2===a||2===a||0===s&&0===a,!0)}(C,t),y(C,n,0),t>=7&&function(e,t){for(var n,r,o,i=e.size,s=f.getEncodedBits(t),a=0;a<18;a++)n=Math.floor(a/3),e.set(n,r=a%3+i-8-3,o=1==(s>>a&1),!0),e.set(r,n,o,!0)}(C,t),function(e,t){for(var n=e.size,r=-1,o=n-1,i=7,s=0,a=n-1;a>0;a-=2)for(6===a&&a--;;){for(var c=0;c<2;c++)if(!e.isReserved(o,a-c)){var u=!1;s<t.length&&(u=1==(t[s]>>>i&1)),e.set(o,a-c,u),-1==--i&&(s++,i=7)}if((o+=r)<0||n<=o){o-=r,r=-r;break}}}(C,k),isNaN(i)&&(i=l.getBestMask(C,y.bind(null,C,n))),l.applyMask(i,C),y(C,n,i),{modules:C,version:t,errorCorrectionLevel:n,maskPattern:i,segments:p}}(e,n,v,p)}},quPa:function(e,t,n){"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function o(e){const t=r(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=o,t.getDocumentOrThrow=function(){return o("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return o("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return o("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return o("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return o("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},rEeL:function(e,t,n){(function(t){const r=n("MCLT").inherits,o=n("MV7B"),i=n("tnHP"),s=n("2WD0"),a=n("GIIu").blockTagForPayload;function c(e){this.nonceCache={}}e.exports=c,r(c,s),c.prototype.handleRequest=function(e,n,r){const s=this;switch(e.method){case"eth_getTransactionCount":var c=a(e),u=e.params[0].toLowerCase(),l=s.nonceCache[u];return void("pending"===c?l?r(null,l):n(function(e,t,n){if(e)return n();void 0===s.nonceCache[u]&&(s.nonceCache[u]=t),n()}):n());case"eth_sendRawTransaction":return void n(function(n,r,a){if(n)return a();var c=e.params[0],u=(i.stripHexPrefix(c),t.from(i.stripHexPrefix(c),"hex"),new o(t.from(i.stripHexPrefix(c),"hex"))),l="0x"+u.getSenderAddress().toString("hex").toLowerCase(),d=i.bufferToInt(u.nonce),h=(++d).toString(16);h.length%2&&(h="0"+h),s.nonceCache[l]=h="0x"+h,a()});case"evm_revert":return s.nonceCache={},void n();default:return void n()}}}).call(this,n("tjlA").Buffer)},rNYn:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return a});const r="INTERNAL_ERROR",o="SERVER_ERROR",i=[-32700,-32600,-32601,-32602,-32603],s=[-32e3,-32099],a={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[r]:{code:-32603,message:"Internal error"},[o]:{code:-32e3,message:"Server error"}}},rkY4:function(e,t,n){"use strict";n("MkrG")},t3B7:function(e,t,n){"use strict";var r=n("veq9");n.o(r,"isConstantTime")&&n.d(t,"isConstantTime",function(){return r.isConstantTime})},"u/Db":function(e,t,n){var r=n("J6Nv"),o=n("BCVQ");t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}},uhBA:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function i(){}function s(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,n,r,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new s(n,r||e,i),c=o?o+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function u(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=this._events[o?o+e:e];if(!t)return[];if(t.fn)return[t.fn];for(var n=0,r=t.length,i=new Array(r);n<r;n++)i[n]=t[n].fn;return i},u.prototype.listenerCount=function(e){var t=this._events[o?o+e:e];return t?t.fn?1:t.length:0},u.prototype.emit=function(e,t,n,r,i,s){var a=o?o+e:e;if(!this._events[a])return!1;var c,u,l=this._events[a],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,r),!0;case 5:return l.fn.call(l.context,t,n,r,i),!0;case 6:return l.fn.call(l.context,t,n,r,i,s),!0}for(u=1,c=new Array(d-1);u<d;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var h,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,r);break;default:if(!c)for(h=1,c=new Array(d-1);h<d;h++)c[h-1]=arguments[h];l[u].fn.apply(l[u].context,c)}}return!0},u.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,n,r){var i=o?o+e:e;if(!this._events[i])return this;if(!t)return c(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||r&&!s.once||n&&s.context!==n||c(this,i);else{for(var a=0,u=[],l=s.length;a<l;a++)(s[a].fn!==t||r&&!s[a].once||n&&s[a].context!==n)&&u.push(s[a]);u.length?this._events[i]=1===u.length?u[0]:u:c(this,i)}return this},u.prototype.removeAllListeners=function(e){var t;return e?this._events[t=o?o+e:e]&&c(this,t):(this._events=new i,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=o,u.EventEmitter=u,e.exports=u},veq9: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]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n("/GNo"),t),o(n("4f1M"),t)},vvrf:function(e,t,n){var r=n("u/Db"),o=n("3X7Y"),i=n("nZSm"),s=n("AZa5"),a=n("Lzq4"),c=n("BCVQ"),u=n("e/Dd"),l=n("ELBg");function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){for(var r,o=[];null!==(r=e.exec(n));)o.push({data:r[0],index:r.index,mode:t,length:r[0].length});return o}function f(e){var t,n,o=h(c.NUMERIC,r.NUMERIC,e),i=h(c.ALPHANUMERIC,r.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=h(c.BYTE,r.BYTE,e),n=h(c.KANJI,r.KANJI,e)):(t=h(c.BYTE_KANJI,r.BYTE,e),n=[]),o.concat(i,t,n).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return a.getBitsLength(e);case r.BYTE:return s.getBitsLength(e)}}function _(e,t){var n,c=r.getBestModeForData(e);if((n=r.from(t,c))!==r.BYTE&&n.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(c));switch(n!==r.KANJI||u.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new i(e);case r.KANJI:return new a(e);case r.BYTE:return new s(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(_(t,null)):t.data&&e.push(_(t.data,t.mode)),e},[])},t.fromString=function(e,n){for(var o=function(e,t){for(var n={},o={start:{}},i=["start"],s=0;s<e.length;s++){for(var a=e[s],c=[],u=0;u<a.length;u++){var l=a[u],d=""+s+u;c.push(d),n[d]={node:l,lastCount:0},o[d]={};for(var h=0;h<i.length;h++){var f=i[h];n[f]&&n[f].node.mode===l.mode?(o[f][d]=p(n[f].lastCount+l.length,l.mode)-p(n[f].lastCount,l.mode),n[f].lastCount+=l.length):(n[f]&&(n[f].lastCount=l.length),o[f][d]=p(l.length,l.mode)+4+r.getCharCountIndicator(l.mode,t))}}i=c}for(h=0;h<i.length;h++)o[i[h]].end=0;return{map:o,table:n}}(function(e){for(var t=[],n=0;n<e.length;n++){var o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(f(e,u.isKanjiModeEnabled())),n),i=l.find_path(o.map,"start","end"),s=[],a=1;a<i.length-1;a++)s.push(o.table[i[a]].node);return t.fromArray(s.reduce(function(e,t){var n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[]))},t.rawSplit=function(e){return t.fromArray(f(e,u.isKanjiModeEnabled()))}},w92A:function(e,t){e.exports=function(e){return(t,n,r,o)=>{let i;const s=new Promise(e=>{i=e});let a,c;e(t,n,async()=>{c=!0,r(e=>{a=e,i()}),await s}).then(async()=>{c?(await s,a(null)):o(null)}).catch(e=>{a?a(e):o(e)})}}},xesE:function(e,t,n){"use strict";var r=n("t3B7");n.o(r,"isConstantTime")&&n.d(t,"isConstantTime",function(){return r.isConstantTime}),n("i75/");var o=n("nD3k");n.o(o,"isConstantTime")&&n.d(t,"isConstantTime",function(){return o.isConstantTime});var i=n("k5kJ");n.d(t,"isConstantTime",function(){return i.a})},y9Ti:function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});var r=n("rNYn");function o(e){return r.b.includes(e)}function i(e){return Object.keys(r.e).includes(e)?r.e[e]:r.e[r.a]}function s(e){return Object.values(r.e).find(t=>t.code===e)||r.e[r.a]}},yKow:function(e,t,n){var r=n("e/Dd"),o=n("NPxG"),i=n("ekOh"),s=n("u/Db"),a=n("J6Nv"),c=n("7uVY"),u=r.getBCHDigit(7973);function l(e,t){return s.getCharCountIndicator(e,t)+4}function d(e,t){var n=0;return e.forEach(function(e){var r=l(e.mode,t);n+=r+e.getBitsLength()}),n}t.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!a.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=s.BYTE);var i=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===s.MIXED)return i;var c=i-l(n,e);switch(n){case s.NUMERIC:return Math.floor(c/10*3);case s.ALPHANUMERIC:return Math.floor(c/11*2);case s.KANJI:return Math.floor(c/13);case s.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){var r,o=i.from(n,i.M);if(c(e)){if(e.length>1)return function(e,n){for(var r=1;r<=40;r++)if(d(e,r)<=t.getCapacity(r,n,s.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(var o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;r.getBCHDigit(t)-u>=0;)t^=7973<<r.getBCHDigit(t)-u;return e<<12|t}},yMXH:function(e,t){},ya2q:function(e,t,n){"use strict";function r(){return Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3))}n.d(t,"a",function(){return r}),n("y9Ti"),n("rNYn")},ytBo:function(e,t,n){},zy0H:function(e,t,n){"use strict";n("o6or"),n("MkrG"),n("rkY4"),n("yMXH")}}]);