ethers.js/packages/shims/dist/index.min.js

1 line
144 KiB
JavaScript
Raw Normal View History

2019-05-15 01:25:46 +03:00
!function(){return function t(r,e,n){function o(s,u){if(!e[s]){if(!r[s]){var a="function"==typeof require&&require;if(!u&&a)return a(s,!0);if(i)return i(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var c=e[s]={exports:{}};r[s][0].call(c.exports,function(t){return o(r[s][1][t]||t)},c,c.exports,t,r,e,n)}return e[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}}()({1:[function(t,r,e){var n,o,i=r.exports={};function s(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(r){try{return n.call(null,t,0)}catch(r){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(t){n=s}try{o="function"==typeof clearTimeout?clearTimeout:u}catch(t){o=u}}();var f,c=[],h=!1,l=-1;function p(){h&&f&&(h=!1,f.length?c=f.concat(c):l=-1,c.length&&d())}function d(){if(!h){var t=a(p);h=!0;for(var r=c.length;r;){for(f=c,c=[];++l<r;)f&&f[l].run();l=-1,r=c.length}f=null,h=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(r){try{return o.call(null,t)}catch(r){return o.call(this,t)}}}(t)}}function v(t,r){this.fun=t,this.array=r}function g(){}i.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];c.push(new v(t,r)),1!==c.length||h||a(d)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(t,r,e){var n,o;n=void 0!==e?e:this,o=function(t){if(t.atob)try{t.atob(" ")}catch(n){t.atob=(r=t.atob,(e=function(t){return r(String(t).replace(/[\t\n\f\r ]+/g,""))}).original=r,e)}else{var r,e,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;t.btoa=function(t){for(var r,e,o,i,s="",u=0,a=(t=String(t)).length%3;u<t.length;){if((e=t.charCodeAt(u++))>255||(o=t.charCodeAt(u++))>255||(i=t.charCodeAt(u++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");s+=n.charAt((r=e<<16|o<<8|i)>>18&63)+n.charAt(r>>12&63)+n.charAt(r>>6&63)+n.charAt(63&r)}return a?s.slice(0,a-3)+"===".substring(a):s},t.atob=function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!o.test(t))throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");t+="==".slice(2-(3&t.length));for(var r,e,i,s="",u=0;u<t.length;)r=n.indexOf(t.charAt(u++))<<18|n.indexOf(t.charAt(u++))<<12|(e=n.indexOf(t.charAt(u++)))<<6|(i=n.indexOf(t.charAt(u++))),s+=64===e?String.fromCharCode(r>>16&255):64===i?String.fromCharCode(r>>16&255,r>>8&255):String.fromCharCode(r>>16&255,r>>8&255,255&r);return s}}},"function"==typeof define&&define.amd?define([],function(){o(n)}):o(n)},{}],3:[function(t,r,e){(function(n,o){!function(t,n){"object"==typeof e&&void 0!==r?r.exports=n():"function"==typeof define&&define.amd?define(n):t.ES6Promise=n()}(this,function(){"use strict";function r(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,s=void 0,u=void 0,a=function(t,r){v[i]=t,v[i+1]=r,2===(i+=2)&&(u?u(g):_())};var f="undefined"!=typeof window?window:void 0,c=f||{},h=c.MutationObserver||c.WebKitMutationObserver,l="undefined"==typeof self&&void 0!==n&&"[object process]"==={}