-
Notifications
You must be signed in to change notification settings - Fork 1
/
2.e43544a0c90c20813ec2.js
1 lines (1 loc) · 12.3 KB
/
2.e43544a0c90c20813ec2.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"1TIO":function(e){e.exports=JSON.parse('{"4001":{"standard":"EIP 1193","message":"User rejected the request."},"4100":{"standard":"EIP 1193","message":"The requested account and/or method has not been authorized by the user."},"4200":{"standard":"EIP 1193","message":"The requested method is not supported by this Ethereum provider."},"-32700":{"standard":"JSON RPC 2.0","message":"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{"standard":"JSON RPC 2.0","message":"The JSON sent is not a valid Request object."},"-32601":{"standard":"JSON RPC 2.0","message":"The method does not exist / is not available."},"-32602":{"standard":"JSON RPC 2.0","message":"Invalid method parameter(s)."},"-32603":{"standard":"JSON RPC 2.0","message":"Internal JSON-RPC error."},"-32000":{"standard":"EIP 1474","message":"Invalid input."},"-32001":{"standard":"EIP 1474","message":"Resource not found."},"-32002":{"standard":"EIP 1474","message":"Resource unavailable."},"-32003":{"standard":"EIP 1474","message":"Transaction rejected."},"-32004":{"standard":"EIP 1474","message":"Method not supported."}}')},Lf5n:function(e,r,t){const n=t("N1pS");class o extends Error{constructor(e,r,t){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!r||"string"!=typeof r)throw new Error('"message" must be a nonempty string.');super(r),this.code=e,void 0!==t&&(this.data=t)}serialize(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return n(this.serialize(),i,2)}}function i(e,r){if("[Circular]"!==r)return r}e.exports={EthereumRpcError:o,EthereumProviderError:class extends o{constructor(e,r,t){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,r,t)}}}},N1pS:function(e,r){e.exports=o,o.default=o,o.stable=s,o.stableStringify=s;var t=[],n=[];function o(e,r,o){var i;for(function e(r,o,i,s){var a;if("object"==typeof r&&null!==r){for(a=0;a<i.length;a++)if(i[a]===r){var u=Object.getOwnPropertyDescriptor(s,o);return void(void 0!==u.get?u.configurable?(Object.defineProperty(s,o,{value:"[Circular]"}),t.push([s,o,r,u])):n.push([r,o]):(s[o]="[Circular]",t.push([s,o,r])))}if(i.push(r),Array.isArray(r))for(a=0;a<r.length;a++)e(r[a],a,i,r);else{var c=Object.keys(r);for(a=0;a<c.length;a++){var f=c[a];e(r[f],f,i,r)}}i.pop()}}(e,"",[],void 0),i=0===n.length?JSON.stringify(e,r,o):JSON.stringify(e,a(r),o);0!==t.length;){var s=t.pop();4===s.length?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}return i}function i(e,r){return e<r?-1:e>r?1:0}function s(e,r,o){var s,u=function e(r,o,s,a){var u;if("object"==typeof r&&null!==r){for(u=0;u<s.length;u++)if(s[u]===r){var c=Object.getOwnPropertyDescriptor(a,o);return void(void 0!==c.get?c.configurable?(Object.defineProperty(a,o,{value:"[Circular]"}),t.push([a,o,r,c])):n.push([r,o]):(a[o]="[Circular]",t.push([a,o,r])))}if("function"==typeof r.toJSON)return;if(s.push(r),Array.isArray(r))for(u=0;u<r.length;u++)e(r[u],u,s,r);else{var f={},d=Object.keys(r).sort(i);for(u=0;u<d.length;u++){var p=d[u];e(r[p],p,s,r),f[p]=r[p]}if(void 0===a)return f;t.push([a,o,r]),a[o]=f}s.pop()}}(e,"",[],void 0)||e;for(s=0===n.length?JSON.stringify(u,r,o):JSON.stringify(u,a(r),o);0!==t.length;){var c=t.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}return s}function a(e){return e=void 0!==e?e:function(e,r){return r},function(r,t){if(n.length>0)for(var o=0;o<n.length;o++){var i=n[o];if(i[1]===r&&i[0]===t){t="[Circular]",n.splice(o,1);break}}return e.call(this,r,t)}}},RGXH:function(e,r){var t,n,o,i,s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},a=function(e){throw{name:"SyntaxError",message:e,at:t,text:o}},u=function(e){return e&&e!==n&&a("Expected '"+e+"' instead of '"+n+"'"),n=o.charAt(t),t+=1,n},c=function(){var e,r="";for("-"===n&&(r="-",u("-"));n>="0"&&n<="9";)r+=n,u();if("."===n)for(r+=".";u()&&n>="0"&&n<="9";)r+=n;if("e"===n||"E"===n)for(r+=n,u(),"-"!==n&&"+"!==n||(r+=n,u());n>="0"&&n<="9";)r+=n,u();if(e=+r,isFinite(e))return e;a("Bad number")},f=function(){var e,r,t,o="";if('"'===n)for(;u();){if('"'===n)return u(),o;if("\\"===n)if(u(),"u"===n){for(t=0,r=0;r<4&&(e=parseInt(u(),16),isFinite(e));r+=1)t=16*t+e;o+=String.fromCharCode(t)}else{if("string"!=typeof s[n])break;o+=s[n]}else o+=n}a("Bad string")},d=function(){for(;n&&n<=" ";)u()};i=function(){switch(d(),n){case"{":return function(){var e,r={};if("{"===n){if(u("{"),d(),"}"===n)return u("}"),r;for(;n;){if(e=f(),d(),u(":"),Object.hasOwnProperty.call(r,e)&&a('Duplicate key "'+e+'"'),r[e]=i(),d(),"}"===n)return u("}"),r;u(","),d()}}a("Bad object")}();case"[":return function(){var e=[];if("["===n){if(u("["),d(),"]"===n)return u("]"),e;for(;n;){if(e.push(i()),d(),"]"===n)return u("]"),e;u(","),d()}}a("Bad array")}();case'"':return f();case"-":return c();default:return n>="0"&&n<="9"?c():function(){switch(n){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}a("Unexpected '"+n+"'")}()}},e.exports=function(e,r){var s;return o=e,t=0,n=" ",s=i(),d(),n&&a("Syntax error"),"function"==typeof r?function e(t,n){var o,i,s=t[n];if(s&&"object"==typeof s)for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&(void 0!==(i=e(s,o))?s[o]=i:delete s[o]);return r.call(t,n,s)}({"":s},""):s}},drvL:function(e){e.exports=JSON.parse('{"rpc":{"invalidInput":-32000,"resourceNotFound":-32001,"resourceUnavailable":-32002,"transactionRejected":-32003,"methodNotSupported":-32004,"parse":-32700,"invalidRequest":-32600,"methodNotFound":-32601,"invalidParams":-32602,"internal":-32603},"provider":{"userRejectedRequest":4001,"unauthorized":4100,"unsupportedMethod":4200}}')},dsut:function(e,r,t){r.parse=t("RGXH"),r.stringify=t("uPSP")},"rE/H":function(e,r,t){var n="undefined"!=typeof JSON?JSON:t("dsut");e.exports=function(e,r){r||(r={}),"function"==typeof r&&(r={cmp:r});var t=r.space||"";"number"==typeof t&&(t=Array(t+1).join(" "));var s,a="boolean"==typeof r.cycles&&r.cycles,u=r.replacer||function(e,r){return r},c=r.cmp&&(s=r.cmp,function(e){return function(r,t){return s({key:r,value:e[r]},{key:t,value:e[t]})}}),f=[];return function e(r,s,d,p){var l=t?"\n"+new Array(p+1).join(t):"",h=t?": ":":";if(d&&d.toJSON&&"function"==typeof d.toJSON&&(d=d.toJSON()),void 0!==(d=u.call(r,s,d))){if("object"!=typeof d||null===d)return n.stringify(d);if(o(d)){for(var g=[],v=0;v<d.length;v++){var y=e(d,v,d[v],p+1)||n.stringify(null);g.push(l+t+y)}return"["+g.join(",")+l+"]"}if(-1!==f.indexOf(d)){if(a)return n.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}f.push(d);var m=i(d).sort(c&&c(d));for(g=[],v=0;v<m.length;v++){var b=e(d,s=m[v],d[s],p+1);if(b){var E=n.stringify(s)+h+b;g.push(l+t+E)}}return f.splice(f.indexOf(d),1),"{"+g.join(",")+l+"}"}}({"":e},"",e,0)};var o=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},i=Object.keys||function(e){var r=Object.prototype.hasOwnProperty||function(){return!0},t=[];for(var n in e)r.call(e,n)&&t.push(n);return t}},rdiz:function(e,r,t){const n=t("1TIO"),o=t("drvL").rpc.internal,{EthereumRpcError:i}=t("Lf5n"),s="Unspecified server error.",a="Unspecified error message. This is a bug, please report it.",u={code:o,message:c(o)};function c(e,r=a){if(Number.isInteger(e)){const r=e.toString();if(n[r])return n[r].message;if(d(e))return s}return r}function f(e){if(!Number.isInteger(e))return!1;const r=e.toString();return!!n[r]||!!d(e)}function d(e){return e>=-32099&&e<=-32e3}function p(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}e.exports={getMessageFromCode:c,isValidCode:f,serializeError:function(e,r=u){if(!r||!Number.isInteger(r.code)||"string"!=typeof r.message)throw new Error("fallbackError must contain integer number code and string message.");if(e instanceof i)return e.serialize();const t={};return e&&f(e.code)?(t.code=e.code,e.message&&"string"==typeof e.message?(t.message=e.message,e.hasOwnProperty("data")&&(t.data=e.data)):(t.message=c(t.code),t.data={originalError:p(e)})):(t.code=r.code,t.message=e&&e.message?e.message:r.message,t.data={originalError:p(e)}),e&&e.stack&&(t.stack=e.stack),t},JSON_RPC_SERVER_ERROR_MESSAGE:s}},uPSP:function(e,r){var t,n,o,i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(e){return i.lastIndex=0,i.test(e)?'"'+e.replace(i,(function(e){var r=s[e];return"string"==typeof r?r:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}e.exports=function(e,r,i){var s;if(t="",n="","number"==typeof i)for(s=0;s<i;s+=1)n+=" ";else"string"==typeof i&&(n=i);if(o=r,r&&"function"!=typeof r&&("object"!=typeof r||"number"!=typeof r.length))throw new Error("JSON.stringify");return function e(r,i){var s,u,c,f,d,p=t,l=i[r];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(r)),"function"==typeof o&&(l=o.call(i,r,l)),typeof l){case"string":return a(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(t+=n,d=[],"[object Array]"===Object.prototype.toString.apply(l)){for(f=l.length,s=0;s<f;s+=1)d[s]=e(s,l)||"null";return c=0===d.length?"[]":t?"[\n"+t+d.join(",\n"+t)+"\n"+p+"]":"["+d.join(",")+"]",t=p,c}if(o&&"object"==typeof o)for(f=o.length,s=0;s<f;s+=1)"string"==typeof(u=o[s])&&(c=e(u,l))&&d.push(a(u)+(t?": ":":")+c);else for(u in l)Object.prototype.hasOwnProperty.call(l,u)&&(c=e(u,l))&&d.push(a(u)+(t?": ":":")+c);return c=0===d.length?"{}":t?"{\n"+t+d.join(",\n"+t)+"\n"+p+"}":"{"+d.join(",")+"}",t=p,c}}("",{"":e})}},y2lW:function(e,r,t){const n=t("MCLT"),o=t("+qE3");var i="object"==typeof Reflect?Reflect:null,s=i&&"function"==typeof i.apply?i.apply:function(e,r,t){return Function.prototype.apply.call(e,r,t)};function a(){o.call(this)}function u(e,r,t){try{s(e,r,t)}catch(n){setTimeout(()=>{throw n})}}function c(e,r){for(var t=new Array(r),n=0;n<r;++n)t[n]=e[n];return t}e.exports=a,n.inherits(a,o),a.prototype.emit=function(e){for(var r=[],t=1;t<arguments.length;t++)r.push(arguments[t]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var i;if(r.length>0&&(i=r[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var a=o[e];if(void 0===a)return!1;if("function"==typeof a)u(a,this,r);else{var f=a.length,d=c(a,f);for(t=0;t<f;++t)u(d[t],this,r)}return!0}},"z8+S":function(e,r,t){const{EthereumRpcError:n,EthereumProviderError:o}=t("Lf5n"),{serializeError:i,getMessageFromCode:s}=t("rdiz"),a=t("zUc0"),u=t("drvL");e.exports={ethErrors:a,EthereumRpcError:n,EthereumProviderError:o,serializeError:i,getMessageFromCode:s,ERROR_CODES:u}},zUc0:function(e,r,t){const{EthereumRpcError:n,EthereumProviderError:o}=t("Lf5n"),{getMessageFromCode:i}=t("rdiz"),s=t("drvL");function a(e,r){const[t,o]=c(r);return new n(e,t||i(e),o)}function u(e,r){const[t,n]=c(r);return new o(e,t||i(e),n)}function c(e){let r,t;return e&&("string"==typeof e?r=e:"object"!=typeof e||Array.isArray(e)||(r=e.message,t=e.data)),[r,t]}e.exports={rpc:{parse:e=>a(s.rpc.parse,e),invalidRequest:e=>a(s.rpc.invalidRequest,e),invalidParams:e=>a(s.rpc.invalidParams,e),methodNotFound:e=>a(s.rpc.methodNotFound,e),internal:e=>a(s.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:r}=e;if(!Number.isInteger(r)||r>-32005||r<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return a(r,e)},invalidInput:e=>a(s.rpc.invalidInput,e),resourceNotFound:e=>a(s.rpc.resourceNotFound,e),resourceUnavailable:e=>a(s.rpc.resourceUnavailable,e),transactionRejected:e=>a(s.rpc.transactionRejected,e),methodNotSupported:e=>a(s.rpc.methodNotSupported,e)},provider:{userRejectedRequest:e=>u(s.provider.userRejectedRequest,e),unauthorized:e=>u(s.provider.unauthorized,e),unsupportedMethod:e=>u(s.provider.unsupportedMethod,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:r,message:t,data:n}=e;if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string');return new o(r,t,n)}}}}}]);