-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2-es5.2f693bc72edce37f66ca.js
More file actions
1 lines (1 loc) · 16.6 KB
/
2-es5.2f693bc72edce37f66ca.js
File metadata and controls
1 lines (1 loc) · 16.6 KB
1
function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,e){if(r){if("string"==typeof r)return _arrayLikeToArray(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0}}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function _iterableToArrayLimit(r,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(r)){var t=[],n=!0,o=!1,i=void 0;try{for(var a,u=r[Symbol.iterator]();!(n=(a=u.next()).done)&&(t.push(a.value),!e||t.length!==e);n=!0);}catch(s){o=!0,i=s}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return t}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function _classCallCheck(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function _createClass(r,e,t){return e&&_defineProperties(r.prototype,e),t&&_defineProperties(r,t),r}function _createSuper(r){return function(){var e,t=_getPrototypeOf(r);if(_isNativeReflectConstruct()){var n=_getPrototypeOf(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _possibleConstructorReturn(this,e)}}function _possibleConstructorReturn(r,e){return!e||"object"!=typeof e&&"function"!=typeof e?_assertThisInitialized(r):e}function _assertThisInitialized(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function _inherits(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&_setPrototypeOf(r,e)}function _wrapNativeSuper(r){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(r){if(null===r||!_isNativeFunction(r))return r;if("function"!=typeof r)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(r))return e.get(r);e.set(r,t)}function t(){return _construct(r,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,r)})(r)}function _construct(r,e,t){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(r,e,t){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(r,n));return t&&_setPrototypeOf(o,t.prototype),o}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(r){return!1}}function _isNativeFunction(r){return-1!==Function.toString.call(r).indexOf("[native code]")}function _setPrototypeOf(r,e){return(_setPrototypeOf=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r})(r,e)}function _getPrototypeOf(r){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"1TIO":function(r){r.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(r,e,t){var n=t("N1pS"),o=function(r){_inherits(t,_wrapNativeSuper(Error));var e=_createSuper(t);function t(r,n,o){var i;if(_classCallCheck(this,t),!Number.isInteger(r))throw new Error('"code" must be an integer.');if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string.');return(i=e.call(this,n)).code=r,void 0!==o&&(i.data=o),i}return _createClass(t,[{key:"serialize",value:function(){var r={code:this.code,message:this.message};return void 0!==this.data&&(r.data=this.data),this.stack&&(r.stack=this.stack),r}},{key:"toString",value:function(){return n(this.serialize(),i,2)}}]),t}();function i(r,e){if("[Circular]"!==e)return e}r.exports={EthereumRpcError:o,EthereumProviderError:function(r){_inherits(t,r);var e=_createSuper(t);function t(r,n,o){if(_classCallCheck(this,t),!function(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}(r))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');return e.call(this,r,n,o)}return t}(o)}},N1pS:function(r,e){r.exports=o,o.default=o,o.stable=a,o.stableStringify=a;var t=[],n=[];function o(r,e,o){var i;for(function r(e,o,i,a){var u;if("object"==typeof e&&null!==e){for(u=0;u<i.length;u++)if(i[u]===e){var s=Object.getOwnPropertyDescriptor(a,o);return void(void 0!==s.get?s.configurable?(Object.defineProperty(a,o,{value:"[Circular]"}),t.push([a,o,e,s])):n.push([e,o]):(a[o]="[Circular]",t.push([a,o,e])))}if(i.push(e),Array.isArray(e))for(u=0;u<e.length;u++)r(e[u],u,i,e);else{var c=Object.keys(e);for(u=0;u<c.length;u++){var f=c[u];r(e[f],f,i,e)}}i.pop()}}(r,"",[],void 0),i=0===n.length?JSON.stringify(r,e,o):JSON.stringify(r,u(e),o);0!==t.length;){var a=t.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return i}function i(r,e){return r<e?-1:r>e?1:0}function a(r,e,o){var a,s=function r(e,o,a,u){var s;if("object"==typeof e&&null!==e){for(s=0;s<a.length;s++)if(a[s]===e){var c=Object.getOwnPropertyDescriptor(u,o);return void(void 0!==c.get?c.configurable?(Object.defineProperty(u,o,{value:"[Circular]"}),t.push([u,o,e,c])):n.push([e,o]):(u[o]="[Circular]",t.push([u,o,e])))}if("function"==typeof e.toJSON)return;if(a.push(e),Array.isArray(e))for(s=0;s<e.length;s++)r(e[s],s,a,e);else{var f={},p=Object.keys(e).sort(i);for(s=0;s<p.length;s++){var l=p[s];r(e[l],l,a,e),f[l]=e[l]}if(void 0===u)return f;t.push([u,o,e]),u[o]=f}a.pop()}}(r,"",[],void 0)||r;for(a=0===n.length?JSON.stringify(s,e,o):JSON.stringify(s,u(e),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 a}function u(r){return r=void 0!==r?r:function(r,e){return e},function(e,t){if(n.length>0)for(var o=0;o<n.length;o++){var i=n[o];if(i[1]===e&&i[0]===t){t="[Circular]",n.splice(o,1);break}}return r.call(this,e,t)}}},RGXH:function(r,e){var t,n,o,i,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},u=function(r){throw{name:"SyntaxError",message:r,at:t,text:o}},s=function(r){return r&&r!==n&&u("Expected '"+r+"' instead of '"+n+"'"),n=o.charAt(t),t+=1,n},c=function(){var r,e="";for("-"===n&&(e="-",s("-"));n>="0"&&n<="9";)e+=n,s();if("."===n)for(e+=".";s()&&n>="0"&&n<="9";)e+=n;if("e"===n||"E"===n)for(e+=n,s(),"-"!==n&&"+"!==n||(e+=n,s());n>="0"&&n<="9";)e+=n,s();if(r=+e,isFinite(r))return r;u("Bad number")},f=function(){var r,e,t,o="";if('"'===n)for(;s();){if('"'===n)return s(),o;if("\\"===n)if(s(),"u"===n){for(t=0,e=0;e<4&&(r=parseInt(s(),16),isFinite(r));e+=1)t=16*t+r;o+=String.fromCharCode(t)}else{if("string"!=typeof a[n])break;o+=a[n]}else o+=n}u("Bad string")},p=function(){for(;n&&n<=" ";)s()};i=function(){switch(p(),n){case"{":return function(){var r,e={};if("{"===n){if(s("{"),p(),"}"===n)return s("}"),e;for(;n;){if(r=f(),p(),s(":"),Object.hasOwnProperty.call(e,r)&&u('Duplicate key "'+r+'"'),e[r]=i(),p(),"}"===n)return s("}"),e;s(","),p()}}u("Bad object")}();case"[":return function(){var r=[];if("["===n){if(s("["),p(),"]"===n)return s("]"),r;for(;n;){if(r.push(i()),p(),"]"===n)return s("]"),r;s(","),p()}}u("Bad array")}();case'"':return f();case"-":return c();default:return n>="0"&&n<="9"?c():function(){switch(n){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}u("Unexpected '"+n+"'")}()}},r.exports=function(r,e){var a;return o=r,t=0,n=" ",a=i(),p(),n&&u("Syntax error"),"function"==typeof e?function r(t,n){var o,i,a=t[n];if(a&&"object"==typeof a)for(o in a)Object.prototype.hasOwnProperty.call(a,o)&&(void 0!==(i=r(a,o))?a[o]=i:delete a[o]);return e.call(t,n,a)}({"":a},""):a}},drvL:function(r){r.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(r,e,t){e.parse=t("RGXH"),e.stringify=t("uPSP")},"rE/H":function(r,e,t){var n="undefined"!=typeof JSON?JSON:t("dsut");r.exports=function(r,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var t=e.space||"";"number"==typeof t&&(t=Array(t+1).join(" "));var a,u="boolean"==typeof e.cycles&&e.cycles,s=e.replacer||function(r,e){return e},c=e.cmp&&(a=e.cmp,function(r){return function(e,t){return a({key:e,value:r[e]},{key:t,value:r[t]})}}),f=[];return function r(e,a,p,l){var d=t?"\n"+new Array(l+1).join(t):"",y=t?": ":":";if(p&&p.toJSON&&"function"==typeof p.toJSON&&(p=p.toJSON()),void 0!==(p=s.call(e,a,p))){if("object"!=typeof p||null===p)return n.stringify(p);if(o(p)){for(var h=[],v=0;v<p.length;v++){var g=r(p,v,p[v],l+1)||n.stringify(null);h.push(d+t+g)}return"["+h.join(",")+d+"]"}if(-1!==f.indexOf(p)){if(u)return n.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}f.push(p);var b=i(p).sort(c&&c(p));for(h=[],v=0;v<b.length;v++){var m=r(p,a=b[v],p[a],l+1);if(m){var O=n.stringify(a)+y+m;h.push(d+t+O)}}return f.splice(f.indexOf(p),1),"{"+h.join(",")+d+"}"}}({"":r},"",r,0)};var o=Array.isArray||function(r){return"[object Array]"==={}.toString.call(r)},i=Object.keys||function(r){var e=Object.prototype.hasOwnProperty||function(){return!0},t=[];for(var n in r)e.call(r,n)&&t.push(n);return t}},rdiz:function(r,e,t){var n=t("1TIO"),o=t("drvL").rpc.internal,i=t("Lf5n").EthereumRpcError,a={code:o,message:u(o)};function u(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unspecified error message. This is a bug, please report it.";if(Number.isInteger(r)){var t=r.toString();if(n[t])return n[t].message;if(c(r))return"Unspecified server error."}return e}function s(r){if(!Number.isInteger(r))return!1;var e=r.toString();return!!n[e]||!!c(r)}function c(r){return r>=-32099&&r<=-32e3}function f(r){return r&&"object"==typeof r&&!Array.isArray(r)?Object.assign({},r):r}r.exports={getMessageFromCode:u,isValidCode:s,serializeError:function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if(!e||!Number.isInteger(e.code)||"string"!=typeof e.message)throw new Error("fallbackError must contain integer number code and string message.");if(r instanceof i)return r.serialize();var t={};return r&&s(r.code)?(t.code=r.code,r.message&&"string"==typeof r.message?(t.message=r.message,r.hasOwnProperty("data")&&(t.data=r.data)):(t.message=u(t.code),t.data={originalError:f(r)})):(t.code=e.code,t.message=r&&r.message?r.message:e.message,t.data={originalError:f(r)}),r&&r.stack&&(t.stack=r.stack),t},JSON_RPC_SERVER_ERROR_MESSAGE:"Unspecified server error."}},uPSP:function(r,e){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,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function u(r){return i.lastIndex=0,i.test(r)?'"'+r.replace(i,(function(r){var e=a[r];return"string"==typeof e?e:"\\u"+("0000"+r.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+r+'"'}r.exports=function(r,e,i){var a;if(t="",n="","number"==typeof i)for(a=0;a<i;a+=1)n+=" ";else"string"==typeof i&&(n=i);if(o=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return function r(e,i){var a,s,c,f,p,l=t,d=i[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),"function"==typeof o&&(d=o.call(i,e,d)),typeof d){case"string":return u(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(t+=n,p=[],"[object Array]"===Object.prototype.toString.apply(d)){for(f=d.length,a=0;a<f;a+=1)p[a]=r(a,d)||"null";return c=0===p.length?"[]":t?"[\n"+t+p.join(",\n"+t)+"\n"+l+"]":"["+p.join(",")+"]",t=l,c}if(o&&"object"==typeof o)for(f=o.length,a=0;a<f;a+=1)"string"==typeof(s=o[a])&&(c=r(s,d))&&p.push(u(s)+(t?": ":":")+c);else for(s in d)Object.prototype.hasOwnProperty.call(d,s)&&(c=r(s,d))&&p.push(u(s)+(t?": ":":")+c);return c=0===p.length?"{}":t?"{\n"+t+p.join(",\n"+t)+"\n"+l+"}":"{"+p.join(",")+"}",t=l,c}}("",{"":r})}},y2lW:function(r,e,t){var n=t("MCLT"),o=t("+qE3"),i="object"==typeof Reflect?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(r,e,t){return Function.prototype.apply.call(r,e,t)};function u(){o.call(this)}function s(r,e,t){try{a(r,e,t)}catch(n){setTimeout((function(){throw n}))}}function c(r,e){for(var t=new Array(e),n=0;n<e;++n)t[n]=r[n];return t}r.exports=u,n.inherits(u,o),u.prototype.emit=function(r){for(var e=[],t=1;t<arguments.length;t++)e.push(arguments[t]);var n="error"===r,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var i;if(e.length>0&&(i=e[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var u=o[r];if(void 0===u)return!1;if("function"==typeof u)s(u,this,e);else{var f=u.length,p=c(u,f);for(t=0;t<f;++t)s(p[t],this,e)}return!0}},"z8+S":function(r,e,t){var n=t("Lf5n"),o=n.EthereumRpcError,i=n.EthereumProviderError,a=t("rdiz"),u=a.serializeError,s=a.getMessageFromCode,c=t("zUc0"),f=t("drvL");r.exports={ethErrors:c,EthereumRpcError:o,EthereumProviderError:i,serializeError:u,getMessageFromCode:s,ERROR_CODES:f}},zUc0:function(r,e,t){var n=t("Lf5n"),o=n.EthereumRpcError,i=n.EthereumProviderError,a=t("rdiz").getMessageFromCode,u=t("drvL");function s(r,e){var t=_slicedToArray(f(e),2),n=t[0],i=t[1];return new o(r,n||a(r),i)}function c(r,e){var t=_slicedToArray(f(e),2),n=t[0],o=t[1];return new i(r,n||a(r),o)}function f(r){var e,t;return r&&("string"==typeof r?e=r:"object"!=typeof r||Array.isArray(r)||(e=r.message,t=r.data)),[e,t]}r.exports={rpc:{parse:function(r){return s(u.rpc.parse,r)},invalidRequest:function(r){return s(u.rpc.invalidRequest,r)},invalidParams:function(r){return s(u.rpc.invalidParams,r)},methodNotFound:function(r){return s(u.rpc.methodNotFound,r)},internal:function(r){return s(u.rpc.internal,r)},server:function(r){if(!r||"object"!=typeof r||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");var e=r.code;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return s(e,r)},invalidInput:function(r){return s(u.rpc.invalidInput,r)},resourceNotFound:function(r){return s(u.rpc.resourceNotFound,r)},resourceUnavailable:function(r){return s(u.rpc.resourceUnavailable,r)},transactionRejected:function(r){return s(u.rpc.transactionRejected,r)},methodNotSupported:function(r){return s(u.rpc.methodNotSupported,r)}},provider:{userRejectedRequest:function(r){return c(u.provider.userRejectedRequest,r)},unauthorized:function(r){return c(u.provider.unauthorized,r)},unsupportedMethod:function(r){return c(u.provider.unsupportedMethod,r)},custom:function(r){if(!r||"object"!=typeof r||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");var e=r.code,t=r.message,n=r.data;if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string');return new i(e,t,n)}}}}}]);