require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o=200&&status<300;}};defaults.headers={common:{'Accept':'application/json, text/plain, */*'}};utils.forEach(['delete','get','head'],function forEachMehtodNoData(method){defaults.headers[method]={};});utils.forEach(['post','put','patch'],function forEachMethodWithData(method){defaults.headers[method]=utils.merge(DEFAULT_CONTENT_TYPE);});module.exports=defaults;}).call(this,require('_process'))},{"./adapters/http":2,"./adapters/xhr":2,"./helpers/normalizeHeaderName":22,"./utils":25,"_process":45}],15:[function(require,module,exports){'use strict';module.exports=function bind(fn,thisArg){return function wrap(){var args=new Array(arguments.length);for(var i=0;i>8-idx%1*8)){charCode=str.charCodeAt(idx+=3/4);if(charCode>0xFF){throw new E();} block=block<<8|charCode;} return output;} module.exports=btoa;},{}],17:[function(require,module,exports){'use strict';var utils=require('./../utils');function encode(val){return encodeURIComponent(val).replace(/%40/gi,'@').replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',').replace(/%20/g,'+').replace(/%5B/gi,'[').replace(/%5D/gi,']');} module.exports=function buildURL(url,params,paramsSerializer){if(!params){return url;} var serializedParams;if(paramsSerializer){serializedParams=paramsSerializer(params);}else if(utils.isURLSearchParams(params)){serializedParams=params.toString();}else{var parts=[];utils.forEach(params,function serialize(val,key){if(val===null||typeof val==='undefined'){return;} if(utils.isArray(val)){key=key+'[]';} if(!utils.isArray(val)){val=[val];} utils.forEach(val,function parseValue(v){if(utils.isDate(v)){v=v.toISOString();}else if(utils.isObject(v)){v=JSON.stringify(v);} parts.push(encode(key)+'='+encode(v));});});serializedParams=parts.join('&');} if(serializedParams){url+=(url.indexOf('?')===-1?'?':'&')+serializedParams;} return url;};},{"./../utils":25}],18:[function(require,module,exports){'use strict';module.exports=function combineURLs(baseURL,relativeURL){return baseURL.replace(/\/+$/,'')+'/'+relativeURL.replace(/^\/+/,'');};},{}],19:[function(require,module,exports){'use strict';var utils=require('./../utils');module.exports=(utils.isStandardBrowserEnv()?(function standardBrowserEnv(){return{write:function write(name,value,expires,path,domain,secure){var cookie=[];cookie.push(name+'='+encodeURIComponent(value));if(utils.isNumber(expires)){cookie.push('expires='+new Date(expires).toGMTString());} if(utils.isString(path)){cookie.push('path='+path);} if(utils.isString(domain)){cookie.push('domain='+domain);} if(secure===true){cookie.push('secure');} document.cookie=cookie.join('; ');},read:function read(name){var match=document.cookie.match(new RegExp('(^|;\\s*)('+name+')=([^;]*)'));return(match?decodeURIComponent(match[3]):null);},remove:function remove(name){this.write(name,'',Date.now()-86400000);}};})():(function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null;},remove:function remove(){}};})());},{"./../utils":25}],20:[function(require,module,exports){'use strict';module.exports=function isAbsoluteURL(url){return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);};},{}],21:[function(require,module,exports){'use strict';var utils=require('./../utils');module.exports=(utils.isStandardBrowserEnv()?(function standardBrowserEnv(){var msie=/(msie|trident)/i.test(navigator.userAgent);var urlParsingNode=document.createElement('a');var originURL;function resolveURL(url){var href=url;if(msie){urlParsingNode.setAttribute('href',href);href=urlParsingNode.href;} urlParsingNode.setAttribute('href',href);return{href:urlParsingNode.href,protocol:urlParsingNode.protocol?urlParsingNode.protocol.replace(/:$/,''):'',host:urlParsingNode.host,search:urlParsingNode.search?urlParsingNode.search.replace(/^\?/,''):'',hash:urlParsingNode.hash?urlParsingNode.hash.replace(/^#/,''):'',hostname:urlParsingNode.hostname,port:urlParsingNode.port,pathname:(urlParsingNode.pathname.charAt(0)==='/')?urlParsingNode.pathname:'/'+urlParsingNode.pathname};} originURL=resolveURL(window.location.href);return function isURLSameOrigin(requestURL){var parsed=(utils.isString(requestURL))?resolveURL(requestURL):requestURL;return(parsed.protocol===originURL.protocol&&parsed.host===originURL.host);};})():(function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true;};})());},{"./../utils":25}],22:[function(require,module,exports){'use strict';var utils=require('../utils');module.exports=function normalizeHeaderName(headers,normalizedName){utils.forEach(headers,function processHeader(value,name){if(name!==normalizedName&&name.toUpperCase()===normalizedName.toUpperCase()){headers[normalizedName]=value;delete headers[name];}});};},{"../utils":25}],23:[function(require,module,exports){'use strict';var utils=require('./../utils');module.exports=function parseHeaders(headers){var parsed={};var key;var val;var i;if(!headers){return parsed;} utils.forEach(headers.split('\n'),function parser(line){i=line.indexOf(':');key=utils.trim(line.substr(0,i)).toLowerCase();val=utils.trim(line.substr(i+1));if(key){parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};},{"./../utils":25}],24:[function(require,module,exports){'use strict';module.exports=function spread(callback){return function wrap(arr){return callback.apply(null,arr);};};},{}],25:[function(require,module,exports){'use strict';var bind=require('./helpers/bind');var toString=Object.prototype.toString;function isArray(val){return toString.call(val)==='[object Array]';} function isArrayBuffer(val){return toString.call(val)==='[object ArrayBuffer]';} function isFormData(val){return(typeof FormData!=='undefined')&&(val instanceof FormData);} function isArrayBufferView(val){var result;if((typeof ArrayBuffer!=='undefined')&&(ArrayBuffer.isView)){result=ArrayBuffer.isView(val);}else{result=(val)&&(val.buffer)&&(val.buffer instanceof ArrayBuffer);} return result;} function isString(val){return typeof val==='string';} function isNumber(val){return typeof val==='number';} function isUndefined(val){return typeof val==='undefined';} function isObject(val){return val!==null&&typeof val==='object';} function isDate(val){return toString.call(val)==='[object Date]';} function isFile(val){return toString.call(val)==='[object File]';} function isBlob(val){return toString.call(val)==='[object Blob]';} function isFunction(val){return toString.call(val)==='[object Function]';} function isStream(val){return isObject(val)&&isFunction(val.pipe);} function isURLSearchParams(val){return typeof URLSearchParams!=='undefined'&&val instanceof URLSearchParams;} function trim(str){return str.replace(/^\s*/,'').replace(/\s*$/,'');} function isStandardBrowserEnv(){return(typeof window!=='undefined'&&typeof document!=='undefined'&&typeof document.createElement==='function');} function forEach(obj,fn){if(obj===null||typeof obj==='undefined'){return;} if(typeof obj!=='object'&&!isArray(obj)){obj=[obj];} if(isArray(obj)){for(var i=0,l=obj.length;i=31)||(typeof navigator!=='undefined'&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));} exports.formatters.j=function(v){try{return JSON.stringify(v);}catch(err){return'[UnexpectedJSONParseError]: '+err.message;}};function formatArgs(args){var useColors=this.useColors;args[0]=(useColors?'%c':'') +this.namespace +(useColors?' %c':' ') +args[0] +(useColors?'%c ':' ') +'+'+exports.humanize(this.diff);if(!useColors)return;var c='color: '+this.color;args.splice(1,0,c,'color: inherit') var index=0;var lastC=0;args[0].replace(/%[a-zA-Z%]/g,function(match){if('%%'===match)return;index++;if('%c'===match){lastC=index;}});args.splice(lastC,0,c);} function log(){return'object'===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments);} function save(namespaces){try{if(null==namespaces){exports.storage.removeItem('debug');}else{exports.storage.debug=namespaces;}}catch(e){}} function load(){var r;try{r=exports.storage.debug;}catch(e){} if(!r&&typeof process!=='undefined'&&'env'in process){r=process.env.DEBUG;} return r;} exports.enable(load());function localstorage(){try{return window.localStorage;}catch(e){}}}).call(this,require('_process'))},{"./debug":27,"_process":45}],27:[function(require,module,exports){exports=module.exports=createDebug.debug=createDebug['default']=createDebug;exports.coerce=coerce;exports.disable=disable;exports.enable=enable;exports.enabled=enabled;exports.humanize=require('ms');exports.names=[];exports.skips=[];exports.formatters={};var prevTime;function selectColor(namespace){var hash=0,i;for(i in namespace){hash=((hash<<5)-hash)+namespace.charCodeAt(i);hash|=0;} return exports.colors[Math.abs(hash)%exports.colors.length];} function createDebug(namespace){function debug(){if(!debug.enabled)return;var self=debug;var curr=+new Date();var ms=curr-(prevTime||curr);self.diff=ms;self.prev=prevTime;self.curr=curr;prevTime=curr;var args=new Array(arguments.length);for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:{};if(!(requestOptions.visibility||requestOptions.affiliation)){requestOptions.type=requestOptions.type||'all';} requestOptions.sort=requestOptions.sort||'updated';requestOptions.per_page=requestOptions.per_page||'100';return requestOptions;} },{key:'_dateToISO',value:function _dateToISO(date){if(date&&date instanceof Date){date=date.toISOString();} return date;} },{key:'_request',value:function _request(method,path,data,cb,raw){var url=this.__getURL(path);var AcceptHeader=(data||{}).AcceptHeader;if(AcceptHeader){delete data.AcceptHeader;} var headers=this.__getRequestHeaders(raw,AcceptHeader);var queryParams={};var shouldUseDataAsParams=data&&(typeof data==='undefined'?'undefined':_typeof(data))==='object'&&methodHasNoBody(method);if(shouldUseDataAsParams){queryParams=data;data=undefined;} var config={url:url,method:method,headers:headers,params:queryParams,data:data,responseType:raw?'text':'json'};log(config.method+' to '+config.url);var requestPromise=(0,_axios2.default)(config).catch(callbackErrorOrThrow(cb,path));if(cb){requestPromise.then(function(response){if(response.data&&Object.keys(response.data).length>0){cb(null,response.data,response);}else if(config.method!=='GET'&&Object.keys(response.data).length<1){cb(null,response.status<300,response);}else{cb(null,response.data,response);}});} return requestPromise;} },{key:'_request204or404',value:function _request204or404(path,data,cb){var method=arguments.length>3&&arguments[3]!==undefined?arguments[3]:'GET';return this._request(method,path,data).then(function success(response){if(cb){cb(null,true,response);} return true;},function failure(response){if(response.response.status===404){if(cb){cb(null,false,response);} return false;} if(cb){cb(response);} throw response;});} },{key:'_requestAllPages',value:function _requestAllPages(path,options,cb,results){var _this2=this;results=results||[];return this._request('GET',path,options).then(function(response){var _results;var thisGroup=void 0;if(response.data instanceof Array){thisGroup=response.data;}else if(response.data.items instanceof Array){thisGroup=response.data.items;}else{var message='cannot figure out how to append '+response.data+' to the result set';throw new ResponseError(message,path,response);} (_results=results).push.apply(_results,_toConsumableArray(thisGroup));var nextUrl=getNextPage(response.headers.link);if(nextUrl){log('getting next page: '+nextUrl);return _this2._requestAllPages(nextUrl,options,cb,results);} if(cb){cb(null,results,response);} response.data=results;return response;}).catch(callbackErrorOrThrow(cb,path));}}]);return Requestable;}();module.exports=Requestable;var METHODS_WITH_NO_BODY=['GET','HEAD','DELETE'];function methodHasNoBody(method){return METHODS_WITH_NO_BODY.indexOf(method)!==-1;} function getNextPage(){var linksHeader=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'';var links=linksHeader.split(/\s*,\s*/);return links.reduce(function(nextUrl,link){if(link.search(/rel="next"/)!==-1){return(link.match(/<(.*)>/)||[])[1];} return nextUrl;},undefined);} function callbackErrorOrThrow(cb,path){return function handler(object){var error=void 0;if(object.hasOwnProperty('config')){var _object$response=object.response,status=_object$response.status,statusText=_object$response.statusText,_object$config=object.config,method=_object$config.method,url=_object$config.url;var message=status+' error making request '+method+' '+url+': "'+statusText+'"';error=new ResponseError(message,path,object);log(message+' '+JSON.stringify(object.data));}else{error=object;} if(cb){log('going to error callback');cb(error);}else{log('throwing error');throw error;}};}},{"axios":1,"debug":26,"js-base64":39}],36:[function(require,module,exports){'use strict';var _createClass=function(){function defineProperties(target,props){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:{};var cb=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;var requestOptions={};Object.keys(this.__defaults).forEach(function(prop){requestOptions[prop]=_this2.__defaults[prop];});Object.keys(withOptions).forEach(function(prop){requestOptions[prop]=withOptions[prop];});log('searching '+path+' with options:',requestOptions);return this._requestAllPages('/search/'+path,requestOptions,cb);} },{key:'forRepositories',value:function forRepositories(options,cb){return this._search('repositories',options,cb);} },{key:'forCode',value:function forCode(options,cb){return this._search('code',options,cb);} },{key:'forIssues',value:function forIssues(options,cb){return this._search('issues',options,cb);} },{key:'forUsers',value:function forUsers(options,cb){return this._search('users',options,cb);}}]);return Search;}(_Requestable3.default);module.exports=Search;},{"./Requestable":35,"debug":26}],37:[function(require,module,exports){'use strict';var _createClass=function(){function defineProperties(target,props){for(var i=0;i>>6)) +fromCharCode(0x80|(cc&0x3f))):(fromCharCode(0xe0|((cc>>>12)&0x0f)) +fromCharCode(0x80|((cc>>>6)&0x3f)) +fromCharCode(0x80|(cc&0x3f)));}else{var cc=0x10000 +(c.charCodeAt(0)-0xD800)*0x400 +(c.charCodeAt(1)-0xDC00);return(fromCharCode(0xf0|((cc>>>18)&0x07)) +fromCharCode(0x80|((cc>>>12)&0x3f)) +fromCharCode(0x80|((cc>>>6)&0x3f)) +fromCharCode(0x80|(cc&0x3f)));}};var re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;var utob=function(u){return u.replace(re_utob,cb_utob);};var cb_encode=function(ccc){var padlen=[0,2,1][ccc.length%3],ord=ccc.charCodeAt(0)<<16|((ccc.length>1?ccc.charCodeAt(1):0)<<8)|((ccc.length>2?ccc.charCodeAt(2):0)),chars=[b64chars.charAt(ord>>>18),b64chars.charAt((ord>>>12)&63),padlen>=2?'=':b64chars.charAt((ord>>>6)&63),padlen>=1?'=':b64chars.charAt(ord&63)];return chars.join('');};var btoa=global.btoa?function(b){return global.btoa(b);}:function(b){return b.replace(/[\s\S]{1,3}/g,cb_encode);};var _encode=buffer?function(u){return(u.constructor===buffer.constructor?u:new buffer(u)).toString('base64')}:function(u){return btoa(utob(u))};var encode=function(u,urisafe){return!urisafe?_encode(String(u)):_encode(String(u)).replace(/[+\/]/g,function(m0){return m0=='+'?'-':'_';}).replace(/=/g,'');};var encodeURI=function(u){return encode(u,true)};var re_btou=new RegExp(['[\xC0-\xDF][\x80-\xBF]','[\xE0-\xEF][\x80-\xBF]{2}','[\xF0-\xF7][\x80-\xBF]{3}'].join('|'),'g');var cb_btou=function(cccc){switch(cccc.length){case 4:var cp=((0x07&cccc.charCodeAt(0))<<18)|((0x3f&cccc.charCodeAt(1))<<12)|((0x3f&cccc.charCodeAt(2))<<6)|(0x3f&cccc.charCodeAt(3)),offset=cp-0x10000;return(fromCharCode((offset>>>10)+0xD800) +fromCharCode((offset&0x3FF)+0xDC00));case 3:return fromCharCode(((0x0f&cccc.charCodeAt(0))<<12)|((0x3f&cccc.charCodeAt(1))<<6)|(0x3f&cccc.charCodeAt(2)));default:return fromCharCode(((0x1f&cccc.charCodeAt(0))<<6)|(0x3f&cccc.charCodeAt(1)));}};var btou=function(b){return b.replace(re_btou,cb_btou);};var cb_decode=function(cccc){var len=cccc.length,padlen=len%4,n=(len>0?b64tab[cccc.charAt(0)]<<18:0)|(len>1?b64tab[cccc.charAt(1)]<<12:0)|(len>2?b64tab[cccc.charAt(2)]<<6:0)|(len>3?b64tab[cccc.charAt(3)]:0),chars=[fromCharCode(n>>>16),fromCharCode((n>>>8)&0xff),fromCharCode(n&0xff)];chars.length-=[0,0,2,1][padlen];return chars.join('');};var atob=global.atob?function(a){return global.atob(a);}:function(a){return a.replace(/[\s\S]{1,4}/g,cb_decode);};var _decode=buffer?function(a){return(a.constructor===buffer.constructor?a:new buffer(a,'base64')).toString();}:function(a){return btou(atob(a))};var decode=function(a){return _decode(String(a).replace(/[-_]/g,function(m0){return m0=='-'?'+':'/'}).replace(/[^A-Za-z0-9\+\/]/g,''));};var noConflict=function(){var Base64=global.Base64;global.Base64=_Base64;return Base64;};global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict};if(typeof Object.defineProperty==='function'){var noEnum=function(v){return{value:v,enumerable:false,writable:true,configurable:true};};global.Base64.extendString=function(){Object.defineProperty(String.prototype,'fromBase64',noEnum(function(){return decode(this)}));Object.defineProperty(String.prototype,'toBase64',noEnum(function(urisafe){return encode(this,urisafe)}));Object.defineProperty(String.prototype,'toBase64URI',noEnum(function(){return encode(this,true)}));};} if(global['Meteor']){Base64=global.Base64;}})(this);},{"buffer":43}],40:[function(require,module,exports){var s=1000;var m=s*60;var h=m*60;var d=h*24;var y=d*365.25;module.exports=function(val,options){options=options||{};var type=typeof val;if(type==='string'&&val.length>0){return parse(val);}else if(type==='number'&&isNaN(val)===false){return options.long?fmtLong(val):fmtShort(val);} throw new Error('val is not a non-empty string or a valid number. val='+ JSON.stringify(val));};function parse(str){str=String(str);if(str.length>100){return;} var match=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);if(!match){return;} var n=parseFloat(match[1]);var type=(match[2]||'ms').toLowerCase();switch(type){case'years':case'year':case'yrs':case'yr':case'y':return n*y;case'days':case'day':case'd':return n*d;case'hours':case'hour':case'hrs':case'hr':case'h':return n*h;case'minutes':case'minute':case'mins':case'min':case'm':return n*m;case'seconds':case'second':case'secs':case'sec':case's':return n*s;case'milliseconds':case'millisecond':case'msecs':case'msec':case'ms':return n;default:return undefined;}} function fmtShort(ms){if(ms>=d){return Math.round(ms/d)+'d';} if(ms>=h){return Math.round(ms/h)+'h';} if(ms>=m){return Math.round(ms/m)+'m';} if(ms>=s){return Math.round(ms/s)+'s';} return ms+'ms';} function fmtLong(ms){return plural(ms,d,'day')||plural(ms,h,'hour')||plural(ms,m,'minute')||plural(ms,s,'second')||ms+' ms';} function plural(ms,n,name){if(ms=0xD800&&value<=0xDBFF&&counter0xFFFF){value-=0x10000;output+=stringFromCharCode(value>>>10&0x3FF|0xD800);value=0xDC00|value&0x3FF;} output+=stringFromCharCode(value);} return output;} function checkScalarValue(codePoint){if(codePoint>=0xD800&&codePoint<=0xDFFF){throw Error('Lone surrogate U+'+codePoint.toString(16).toUpperCase()+ ' is not a scalar value');}} function createByte(codePoint,shift){return stringFromCharCode(((codePoint>>shift)&0x3F)|0x80);} function encodeCodePoint(codePoint){if((codePoint&0xFFFFFF80)==0){return stringFromCharCode(codePoint);} var symbol='';if((codePoint&0xFFFFF800)==0){symbol=stringFromCharCode(((codePoint>>6)&0x1F)|0xC0);} else if((codePoint&0xFFFF0000)==0){checkScalarValue(codePoint);symbol=stringFromCharCode(((codePoint>>12)&0x0F)|0xE0);symbol+=createByte(codePoint,6);} else if((codePoint&0xFFE00000)==0){symbol=stringFromCharCode(((codePoint>>18)&0x07)|0xF0);symbol+=createByte(codePoint,12);symbol+=createByte(codePoint,6);} symbol+=stringFromCharCode((codePoint&0x3F)|0x80);return symbol;} function utf8encode(string){var codePoints=ucs2decode(string);var length=codePoints.length;var index=-1;var codePoint;var byteString='';while(++index=byteCount){throw Error('Invalid byte index');} var continuationByte=byteArray[byteIndex]&0xFF;byteIndex++;if((continuationByte&0xC0)==0x80){return continuationByte&0x3F;} throw Error('Invalid continuation byte');} function decodeSymbol(){var byte1;var byte2;var byte3;var byte4;var codePoint;if(byteIndex>byteCount){throw Error('Invalid byte index');} if(byteIndex==byteCount){return false;} byte1=byteArray[byteIndex]&0xFF;byteIndex++;if((byte1&0x80)==0){return byte1;} if((byte1&0xE0)==0xC0){byte2=readContinuationByte();codePoint=((byte1&0x1F)<<6)|byte2;if(codePoint>=0x80){return codePoint;}else{throw Error('Invalid continuation byte');}} if((byte1&0xF0)==0xE0){byte2=readContinuationByte();byte3=readContinuationByte();codePoint=((byte1&0x0F)<<12)|(byte2<<6)|byte3;if(codePoint>=0x0800){checkScalarValue(codePoint);return codePoint;}else{throw Error('Invalid continuation byte');}} if((byte1&0xF8)==0xF0){byte2=readContinuationByte();byte3=readContinuationByte();byte4=readContinuationByte();codePoint=((byte1&0x07)<<0x12)|(byte2<<0x0C)|(byte3<<0x06)|byte4;if(codePoint>=0x010000&&codePoint<=0x10FFFF){return codePoint;}} throw Error('Invalid UTF-8 detected');} var byteArray;var byteCount;var byteIndex;function utf8decode(byteString){byteArray=ucs2decode(byteString);byteCount=byteArray.length;byteIndex=0;var codePoints=[];var tmp;while((tmp=decodeSymbol())!==false){codePoints.push(tmp);} return ucs2encode(codePoints);} var utf8={'version':'2.1.2','encode':utf8encode,'decode':utf8decode};if(typeof define=='function'&&typeof define.amd=='object'&&define.amd){define(function(){return utf8;});}else if(freeExports&&!freeExports.nodeType){if(freeModule){freeModule.exports=utf8;}else{var object={};var hasOwnProperty=object.hasOwnProperty;for(var key in utf8){hasOwnProperty.call(utf8,key)&&(freeExports[key]=utf8[key]);}}}else{root.utf8=utf8;}}(this));}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],42:[function(require,module,exports){'use strict' exports.byteLength=byteLength exports.toByteArray=toByteArray exports.fromByteArray=fromByteArray var lookup=[] var revLookup=[] var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' for(var i=0,len=code.length;i0){throw new Error('Invalid string. Length must be a multiple of 4')} return b64[len-2]==='='?2:b64[len-1]==='='?1:0} function byteLength(b64){return(b64.length*3/4)-placeHoldersCount(b64)} function toByteArray(b64){var i,l,tmp,placeHolders,arr var len=b64.length placeHolders=placeHoldersCount(b64) arr=new Arr((len*3/4)-placeHolders) l=placeHolders>0?len-4:len var L=0 for(i=0;i>16)&0xFF arr[L++]=(tmp>>8)&0xFF arr[L++]=tmp&0xFF} if(placeHolders===2){tmp=(revLookup[b64.charCodeAt(i)]<<2)|(revLookup[b64.charCodeAt(i+1)]>>4) arr[L++]=tmp&0xFF}else if(placeHolders===1){tmp=(revLookup[b64.charCodeAt(i)]<<10)|(revLookup[b64.charCodeAt(i+1)]<<4)|(revLookup[b64.charCodeAt(i+2)]>>2) arr[L++]=(tmp>>8)&0xFF arr[L++]=tmp&0xFF} return arr} function tripletToBase64(num){return lookup[num>>18&0x3F]+lookup[num>>12&0x3F]+lookup[num>>6&0x3F]+lookup[num&0x3F]} function encodeChunk(uint8,start,end){var tmp var output=[] for(var i=start;ilen2?len2:(i+maxChunkLength)))} if(extraBytes===1){tmp=uint8[len-1] output+=lookup[tmp>>2] output+=lookup[(tmp<<4)&0x3F] output+='=='}else if(extraBytes===2){tmp=(uint8[len-2]<<8)+(uint8[len-1]) output+=lookup[tmp>>10] output+=lookup[(tmp>>4)&0x3F] output+=lookup[(tmp<<2)&0x3F] output+='='} parts.push(output) return parts.join('')}},{}],43:[function(require,module,exports){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ 'use strict' var base64=require('base64-js') var ieee754=require('ieee754') exports.Buffer=Buffer exports.SlowBuffer=SlowBuffer exports.INSPECT_MAX_BYTES=50 var K_MAX_LENGTH=0x7fffffff exports.kMaxLength=K_MAX_LENGTH Buffer.TYPED_ARRAY_SUPPORT=typedArraySupport() if(!Buffer.TYPED_ARRAY_SUPPORT&&typeof console!=='undefined'&&typeof console.error==='function'){console.error('This browser lacks typed array (Uint8Array) support which is required by '+ '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.')} function typedArraySupport(){try{var arr=new Uint8Array(1) arr.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}} return arr.foo()===42}catch(e){return false}} function createBuffer(length){if(length>K_MAX_LENGTH){throw new RangeError('Invalid typed array length')} var buf=new Uint8Array(length) buf.__proto__=Buffer.prototype return buf} function Buffer(arg,encodingOrOffset,length){if(typeof arg==='number'){if(typeof encodingOrOffset==='string'){throw new Error('If encoding is specified then the first argument must be a string')} return allocUnsafe(arg)} return from(arg,encodingOrOffset,length)} if(typeof Symbol!=='undefined'&&Symbol.species&&Buffer[Symbol.species]===Buffer){Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:true,enumerable:false,writable:false})} Buffer.poolSize=8192 function from(value,encodingOrOffset,length){if(typeof value==='number'){throw new TypeError('"value" argument must not be a number')} if(value instanceof ArrayBuffer){return fromArrayBuffer(value,encodingOrOffset,length)} if(typeof value==='string'){return fromString(value,encodingOrOffset)} return fromObject(value)} Buffer.from=function(value,encodingOrOffset,length){return from(value,encodingOrOffset,length)} Buffer.prototype.__proto__=Uint8Array.prototype Buffer.__proto__=Uint8Array function assertSize(size){if(typeof size!=='number'){throw new TypeError('"size" argument must be a number')}else if(size<0){throw new RangeError('"size" argument must not be negative')}} function alloc(size,fill,encoding){assertSize(size) if(size<=0){return createBuffer(size)} if(fill!==undefined){return typeof encoding==='string'?createBuffer(size).fill(fill,encoding):createBuffer(size).fill(fill)} return createBuffer(size)} Buffer.alloc=function(size,fill,encoding){return alloc(size,fill,encoding)} function allocUnsafe(size){assertSize(size) return createBuffer(size<0?0:checked(size)|0)} Buffer.allocUnsafe=function(size){return allocUnsafe(size)} Buffer.allocUnsafeSlow=function(size){return allocUnsafe(size)} function fromString(string,encoding){if(typeof encoding!=='string'||encoding===''){encoding='utf8'} if(!Buffer.isEncoding(encoding)){throw new TypeError('"encoding" must be a valid string encoding')} var length=byteLength(string,encoding)|0 var buf=createBuffer(length) var actual=buf.write(string,encoding) if(actual!==length){buf=buf.slice(0,actual)} return buf} function fromArrayLike(array){var length=array.length<0?0:checked(array.length)|0 var buf=createBuffer(length) for(var i=0;i=K_MAX_LENGTH){throw new RangeError('Attempt to allocate Buffer larger than maximum '+ 'size: 0x'+K_MAX_LENGTH.toString(16)+' bytes')} return length|0} function SlowBuffer(length){if(+length!=length){length=0} return Buffer.alloc(+length)} Buffer.isBuffer=function isBuffer(b){return b!=null&&b._isBuffer===true} Buffer.compare=function compare(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b)){throw new TypeError('Arguments must be Buffers')} if(a===b)return 0 var x=a.length var y=b.length for(var i=0,len=Math.min(x,y);i>>1 case'base64':return base64ToBytes(string).length default:if(loweredCase)return utf8ToBytes(string).length encoding=(''+encoding).toLowerCase() loweredCase=true}}} Buffer.byteLength=byteLength function slowToString(encoding,start,end){var loweredCase=false if(start===undefined||start<0){start=0} if(start>this.length){return''} if(end===undefined||end>this.length){end=this.length} if(end<=0){return''} end>>>=0 start>>>=0 if(end<=start){return''} if(!encoding)encoding='utf8' while(true){switch(encoding){case'hex':return hexSlice(this,start,end) case'utf8':case'utf-8':return utf8Slice(this,start,end) case'ascii':return asciiSlice(this,start,end) case'latin1':case'binary':return latin1Slice(this,start,end) case'base64':return base64Slice(this,start,end) case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return utf16leSlice(this,start,end) default:if(loweredCase)throw new TypeError('Unknown encoding: '+encoding) encoding=(encoding+'').toLowerCase() loweredCase=true}}} Buffer.prototype._isBuffer=true function swap(b,n,m){var i=b[n] b[n]=b[m] b[m]=i} Buffer.prototype.swap16=function swap16(){var len=this.length if(len%2!==0){throw new RangeError('Buffer size must be a multiple of 16-bits')} for(var i=0;i0){str=this.toString('hex',0,max).match(/.{2}/g).join(' ') if(this.length>max)str+=' ... '} return''} Buffer.prototype.compare=function compare(target,start,end,thisStart,thisEnd){if(!Buffer.isBuffer(target)){throw new TypeError('Argument must be a Buffer')} if(start===undefined){start=0} if(end===undefined){end=target?target.length:0} if(thisStart===undefined){thisStart=0} if(thisEnd===undefined){thisEnd=this.length} if(start<0||end>target.length||thisStart<0||thisEnd>this.length){throw new RangeError('out of range index')} if(thisStart>=thisEnd&&start>=end){return 0} if(thisStart>=thisEnd){return-1} if(start>=end){return 1} start>>>=0 end>>>=0 thisStart>>>=0 thisEnd>>>=0 if(this===target)return 0 var x=thisEnd-thisStart var y=end-start var len=Math.min(x,y) var thisCopy=this.slice(thisStart,thisEnd) var targetCopy=target.slice(start,end) for(var i=0;i0x7fffffff){byteOffset=0x7fffffff}else if(byteOffset<-0x80000000){byteOffset=-0x80000000} byteOffset=+byteOffset if(numberIsNaN(byteOffset)){byteOffset=dir?0:(buffer.length-1)} if(byteOffset<0)byteOffset=buffer.length+byteOffset if(byteOffset>=buffer.length){if(dir)return-1 else byteOffset=buffer.length-1}else if(byteOffset<0){if(dir)byteOffset=0 else return-1} if(typeof val==='string'){val=Buffer.from(val,encoding)} if(Buffer.isBuffer(val)){if(val.length===0){return-1} return arrayIndexOf(buffer,val,byteOffset,encoding,dir)}else if(typeof val==='number'){val=val&0xFF if(typeof Uint8Array.prototype.indexOf==='function'){if(dir){return Uint8Array.prototype.indexOf.call(buffer,val,byteOffset)}else{return Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset)}} return arrayIndexOf(buffer,[val],byteOffset,encoding,dir)} throw new TypeError('val must be string, number or Buffer')} function arrayIndexOf(arr,val,byteOffset,encoding,dir){var indexSize=1 var arrLength=arr.length var valLength=val.length if(encoding!==undefined){encoding=String(encoding).toLowerCase() if(encoding==='ucs2'||encoding==='ucs-2'||encoding==='utf16le'||encoding==='utf-16le'){if(arr.length<2||val.length<2){return-1} indexSize=2 arrLength/=2 valLength/=2 byteOffset/=2}} function read(buf,i){if(indexSize===1){return buf[i]}else{return buf.readUInt16BE(i*indexSize)}} var i if(dir){var foundIndex=-1 for(i=byteOffset;iarrLength)byteOffset=arrLength-valLength for(i=byteOffset;i>=0;i--){var found=true for(var j=0;jremaining){length=remaining}} var strLen=string.length if(strLen%2!==0)throw new TypeError('Invalid hex string') if(length>strLen/2){length=strLen/2} for(var i=0;i>>0 if(isFinite(length)){length=length>>>0 if(encoding===undefined)encoding='utf8'}else{encoding=length length=undefined}}else{throw new Error('Buffer.write(string, encoding, offset[, length]) is no longer supported')} var remaining=this.length-offset if(length===undefined||length>remaining)length=remaining if((string.length>0&&(length<0||offset<0))||offset>this.length){throw new RangeError('Attempt to write outside buffer bounds')} if(!encoding)encoding='utf8' var loweredCase=false for(;;){switch(encoding){case'hex':return hexWrite(this,string,offset,length) case'utf8':case'utf-8':return utf8Write(this,string,offset,length) case'ascii':return asciiWrite(this,string,offset,length) case'latin1':case'binary':return latin1Write(this,string,offset,length) case'base64':return base64Write(this,string,offset,length) case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return ucs2Write(this,string,offset,length) default:if(loweredCase)throw new TypeError('Unknown encoding: '+encoding) encoding=(''+encoding).toLowerCase() loweredCase=true}}} Buffer.prototype.toJSON=function toJSON(){return{type:'Buffer',data:Array.prototype.slice.call(this._arr||this,0)}} function base64Slice(buf,start,end){if(start===0&&end===buf.length){return base64.fromByteArray(buf)}else{return base64.fromByteArray(buf.slice(start,end))}} function utf8Slice(buf,start,end){end=Math.min(buf.length,end) var res=[] var i=start while(i0xEF)?4:(firstByte>0xDF)?3:(firstByte>0xBF)?2:1 if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint switch(bytesPerSequence){case 1:if(firstByte<0x80){codePoint=firstByte} break case 2:secondByte=buf[i+1] if((secondByte&0xC0)===0x80){tempCodePoint=(firstByte&0x1F)<<0x6|(secondByte&0x3F) if(tempCodePoint>0x7F){codePoint=tempCodePoint}} break case 3:secondByte=buf[i+1] thirdByte=buf[i+2] if((secondByte&0xC0)===0x80&&(thirdByte&0xC0)===0x80){tempCodePoint=(firstByte&0xF)<<0xC|(secondByte&0x3F)<<0x6|(thirdByte&0x3F) if(tempCodePoint>0x7FF&&(tempCodePoint<0xD800||tempCodePoint>0xDFFF)){codePoint=tempCodePoint}} break case 4:secondByte=buf[i+1] thirdByte=buf[i+2] fourthByte=buf[i+3] if((secondByte&0xC0)===0x80&&(thirdByte&0xC0)===0x80&&(fourthByte&0xC0)===0x80){tempCodePoint=(firstByte&0xF)<<0x12|(secondByte&0x3F)<<0xC|(thirdByte&0x3F)<<0x6|(fourthByte&0x3F) if(tempCodePoint>0xFFFF&&tempCodePoint<0x110000){codePoint=tempCodePoint}}}} if(codePoint===null){codePoint=0xFFFD bytesPerSequence=1}else if(codePoint>0xFFFF){codePoint-=0x10000 res.push(codePoint>>>10&0x3FF|0xD800) codePoint=0xDC00|codePoint&0x3FF} res.push(codePoint) i+=bytesPerSequence} return decodeCodePointsArray(res)} var MAX_ARGUMENTS_LENGTH=0x1000 function decodeCodePointsArray(codePoints){var len=codePoints.length if(len<=MAX_ARGUMENTS_LENGTH){return String.fromCharCode.apply(String,codePoints)} var res='' var i=0 while(ilen)end=len var out='' for(var i=start;ilen){start=len} if(end<0){end+=len if(end<0)end=0}else if(end>len){end=len} if(endlength)throw new RangeError('Trying to access beyond buffer length')} Buffer.prototype.readUIntLE=function readUIntLE(offset,byteLength,noAssert){offset=offset>>>0 byteLength=byteLength>>>0 if(!noAssert)checkOffset(offset,byteLength,this.length) var val=this[offset] var mul=1 var i=0 while(++i>>0 byteLength=byteLength>>>0 if(!noAssert){checkOffset(offset,byteLength,this.length)} var val=this[offset+--byteLength] var mul=1 while(byteLength>0&&(mul*=0x100)){val+=this[offset+--byteLength]*mul} return val} Buffer.prototype.readUInt8=function readUInt8(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,1,this.length) return this[offset]} Buffer.prototype.readUInt16LE=function readUInt16LE(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,2,this.length) return this[offset]|(this[offset+1]<<8)} Buffer.prototype.readUInt16BE=function readUInt16BE(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,2,this.length) return(this[offset]<<8)|this[offset+1]} Buffer.prototype.readUInt32LE=function readUInt32LE(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,4,this.length) return((this[offset])|(this[offset+1]<<8)|(this[offset+2]<<16))+ (this[offset+3]*0x1000000)} Buffer.prototype.readUInt32BE=function readUInt32BE(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,4,this.length) return(this[offset]*0x1000000)+ ((this[offset+1]<<16)|(this[offset+2]<<8)|this[offset+3])} Buffer.prototype.readIntLE=function readIntLE(offset,byteLength,noAssert){offset=offset>>>0 byteLength=byteLength>>>0 if(!noAssert)checkOffset(offset,byteLength,this.length) var val=this[offset] var mul=1 var i=0 while(++i=mul)val-=Math.pow(2,8*byteLength) return val} Buffer.prototype.readIntBE=function readIntBE(offset,byteLength,noAssert){offset=offset>>>0 byteLength=byteLength>>>0 if(!noAssert)checkOffset(offset,byteLength,this.length) var i=byteLength var mul=1 var val=this[offset+--i] while(i>0&&(mul*=0x100)){val+=this[offset+--i]*mul} mul*=0x80 if(val>=mul)val-=Math.pow(2,8*byteLength) return val} Buffer.prototype.readInt8=function readInt8(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,1,this.length) if(!(this[offset]&0x80))return(this[offset]) return((0xff-this[offset]+1)*-1)} Buffer.prototype.readInt16LE=function readInt16LE(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,2,this.length) var val=this[offset]|(this[offset+1]<<8) return(val&0x8000)?val|0xFFFF0000:val} Buffer.prototype.readInt16BE=function readInt16BE(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,2,this.length) var val=this[offset+1]|(this[offset]<<8) return(val&0x8000)?val|0xFFFF0000:val} Buffer.prototype.readInt32LE=function readInt32LE(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,4,this.length) return(this[offset])|(this[offset+1]<<8)|(this[offset+2]<<16)|(this[offset+3]<<24)} Buffer.prototype.readInt32BE=function readInt32BE(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,4,this.length) return(this[offset]<<24)|(this[offset+1]<<16)|(this[offset+2]<<8)|(this[offset+3])} Buffer.prototype.readFloatLE=function readFloatLE(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,4,this.length) return ieee754.read(this,offset,true,23,4)} Buffer.prototype.readFloatBE=function readFloatBE(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,4,this.length) return ieee754.read(this,offset,false,23,4)} Buffer.prototype.readDoubleLE=function readDoubleLE(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,8,this.length) return ieee754.read(this,offset,true,52,8)} Buffer.prototype.readDoubleBE=function readDoubleBE(offset,noAssert){offset=offset>>>0 if(!noAssert)checkOffset(offset,8,this.length) return ieee754.read(this,offset,false,52,8)} function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance') if(value>max||valuebuf.length)throw new RangeError('Index out of range')} Buffer.prototype.writeUIntLE=function writeUIntLE(value,offset,byteLength,noAssert){value=+value offset=offset>>>0 byteLength=byteLength>>>0 if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1 checkInt(this,value,offset,byteLength,maxBytes,0)} var mul=1 var i=0 this[offset]=value&0xFF while(++i>>0 byteLength=byteLength>>>0 if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1 checkInt(this,value,offset,byteLength,maxBytes,0)} var i=byteLength-1 var mul=1 this[offset+i]=value&0xFF while(--i>=0&&(mul*=0x100)){this[offset+i]=(value/mul)&0xFF} return offset+byteLength} Buffer.prototype.writeUInt8=function writeUInt8(value,offset,noAssert){value=+value offset=offset>>>0 if(!noAssert)checkInt(this,value,offset,1,0xff,0) this[offset]=(value&0xff) return offset+1} Buffer.prototype.writeUInt16LE=function writeUInt16LE(value,offset,noAssert){value=+value offset=offset>>>0 if(!noAssert)checkInt(this,value,offset,2,0xffff,0) this[offset]=(value&0xff) this[offset+1]=(value>>>8) return offset+2} Buffer.prototype.writeUInt16BE=function writeUInt16BE(value,offset,noAssert){value=+value offset=offset>>>0 if(!noAssert)checkInt(this,value,offset,2,0xffff,0) this[offset]=(value>>>8) this[offset+1]=(value&0xff) return offset+2} Buffer.prototype.writeUInt32LE=function writeUInt32LE(value,offset,noAssert){value=+value offset=offset>>>0 if(!noAssert)checkInt(this,value,offset,4,0xffffffff,0) this[offset+3]=(value>>>24) this[offset+2]=(value>>>16) this[offset+1]=(value>>>8) this[offset]=(value&0xff) return offset+4} Buffer.prototype.writeUInt32BE=function writeUInt32BE(value,offset,noAssert){value=+value offset=offset>>>0 if(!noAssert)checkInt(this,value,offset,4,0xffffffff,0) this[offset]=(value>>>24) this[offset+1]=(value>>>16) this[offset+2]=(value>>>8) this[offset+3]=(value&0xff) return offset+4} Buffer.prototype.writeIntLE=function writeIntLE(value,offset,byteLength,noAssert){value=+value offset=offset>>>0 if(!noAssert){var limit=Math.pow(2,(8*byteLength)-1) checkInt(this,value,offset,byteLength,limit-1,-limit)} var i=0 var mul=1 var sub=0 this[offset]=value&0xFF while(++i>0)-sub&0xFF} return offset+byteLength} Buffer.prototype.writeIntBE=function writeIntBE(value,offset,byteLength,noAssert){value=+value offset=offset>>>0 if(!noAssert){var limit=Math.pow(2,(8*byteLength)-1) checkInt(this,value,offset,byteLength,limit-1,-limit)} var i=byteLength-1 var mul=1 var sub=0 this[offset+i]=value&0xFF while(--i>=0&&(mul*=0x100)){if(value<0&&sub===0&&this[offset+i+1]!==0){sub=1} this[offset+i]=((value/mul)>>0)-sub&0xFF} return offset+byteLength} Buffer.prototype.writeInt8=function writeInt8(value,offset,noAssert){value=+value offset=offset>>>0 if(!noAssert)checkInt(this,value,offset,1,0x7f,-0x80) if(value<0)value=0xff+value+1 this[offset]=(value&0xff) return offset+1} Buffer.prototype.writeInt16LE=function writeInt16LE(value,offset,noAssert){value=+value offset=offset>>>0 if(!noAssert)checkInt(this,value,offset,2,0x7fff,-0x8000) this[offset]=(value&0xff) this[offset+1]=(value>>>8) return offset+2} Buffer.prototype.writeInt16BE=function writeInt16BE(value,offset,noAssert){value=+value offset=offset>>>0 if(!noAssert)checkInt(this,value,offset,2,0x7fff,-0x8000) this[offset]=(value>>>8) this[offset+1]=(value&0xff) return offset+2} Buffer.prototype.writeInt32LE=function writeInt32LE(value,offset,noAssert){value=+value offset=offset>>>0 if(!noAssert)checkInt(this,value,offset,4,0x7fffffff,-0x80000000) this[offset]=(value&0xff) this[offset+1]=(value>>>8) this[offset+2]=(value>>>16) this[offset+3]=(value>>>24) return offset+4} Buffer.prototype.writeInt32BE=function writeInt32BE(value,offset,noAssert){value=+value offset=offset>>>0 if(!noAssert)checkInt(this,value,offset,4,0x7fffffff,-0x80000000) if(value<0)value=0xffffffff+value+1 this[offset]=(value>>>24) this[offset+1]=(value>>>16) this[offset+2]=(value>>>8) this[offset+3]=(value&0xff) return offset+4} function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError('Index out of range') if(offset<0)throw new RangeError('Index out of range')} function writeFloat(buf,value,offset,littleEndian,noAssert){value=+value offset=offset>>>0 if(!noAssert){checkIEEE754(buf,value,offset,4,3.4028234663852886e+38,-3.4028234663852886e+38)} ieee754.write(buf,value,offset,littleEndian,23,4) return offset+4} Buffer.prototype.writeFloatLE=function writeFloatLE(value,offset,noAssert){return writeFloat(this,value,offset,true,noAssert)} Buffer.prototype.writeFloatBE=function writeFloatBE(value,offset,noAssert){return writeFloat(this,value,offset,false,noAssert)} function writeDouble(buf,value,offset,littleEndian,noAssert){value=+value offset=offset>>>0 if(!noAssert){checkIEEE754(buf,value,offset,8,1.7976931348623157E+308,-1.7976931348623157E+308)} ieee754.write(buf,value,offset,littleEndian,52,8) return offset+8} Buffer.prototype.writeDoubleLE=function writeDoubleLE(value,offset,noAssert){return writeDouble(this,value,offset,true,noAssert)} Buffer.prototype.writeDoubleBE=function writeDoubleBE(value,offset,noAssert){return writeDouble(this,value,offset,false,noAssert)} Buffer.prototype.copy=function copy(target,targetStart,start,end){if(!start)start=0 if(!end&&end!==0)end=this.length if(targetStart>=target.length)targetStart=target.length if(!targetStart)targetStart=0 if(end>0&&end=this.length)throw new RangeError('sourceStart out of bounds') if(end<0)throw new RangeError('sourceEnd out of bounds') if(end>this.length)end=this.length if(target.length-targetStart=0;--i){target[i+targetStart]=this[i+start]}}else if(len<1000){for(i=0;i>>0 end=end===undefined?this.length:end>>>0 if(!val)val=0 var i if(typeof val==='number'){for(i=start;i0xD7FF&&codePoint<0xE000){if(!leadSurrogate){if(codePoint>0xDBFF){if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD) continue}else if(i+1===length){if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD) continue} leadSurrogate=codePoint continue} if(codePoint<0xDC00){if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD) leadSurrogate=codePoint continue} codePoint=(leadSurrogate-0xD800<<10|codePoint-0xDC00)+0x10000}else if(leadSurrogate){if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD)} leadSurrogate=null if(codePoint<0x80){if((units-=1)<0)break bytes.push(codePoint)}else if(codePoint<0x800){if((units-=2)<0)break bytes.push(codePoint>>0x6|0xC0,codePoint&0x3F|0x80)}else if(codePoint<0x10000){if((units-=3)<0)break bytes.push(codePoint>>0xC|0xE0,codePoint>>0x6&0x3F|0x80,codePoint&0x3F|0x80)}else if(codePoint<0x110000){if((units-=4)<0)break bytes.push(codePoint>>0x12|0xF0,codePoint>>0xC&0x3F|0x80,codePoint>>0x6&0x3F|0x80,codePoint&0x3F|0x80)}else{throw new Error('Invalid code point')}} return bytes} function asciiToBytes(str){var byteArray=[] for(var i=0;i>8 lo=c%256 byteArray.push(lo) byteArray.push(hi)} return byteArray} function base64ToBytes(str){return base64.toByteArray(base64clean(str))} function blitBuffer(src,dst,offset,length){for(var i=0;i=dst.length)||(i>=src.length))break dst[i+offset]=src[i]} return i} function isArrayBufferView(obj){return(typeof ArrayBuffer.isView==='function')&&ArrayBuffer.isView(obj)} function numberIsNaN(obj){return obj!==obj}},{"base64-js":42,"ieee754":44}],44:[function(require,module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m var eLen=nBytes*8-mLen-1 var eMax=(1<>1 var nBits=-7 var i=isLE?(nBytes-1):0 var d=isLE?-1:1 var s=buffer[offset+i] i+=d e=s&((1<<(-nBits))-1) s>>=(-nBits) nBits+=eLen for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8){} m=e&((1<<(-nBits))-1) e>>=(-nBits) nBits+=mLen for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8){} if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:((s?-1:1)*Infinity)}else{m=m+Math.pow(2,mLen) e=e-eBias} return(s?-1:1)*m*Math.pow(2,e-mLen)} exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c var eLen=nBytes*8-mLen-1 var eMax=(1<>1 var rt=(mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0) var i=isLE?0:(nBytes-1) var d=isLE?1:-1 var s=value<0||(value===0&&1/value<0)?1:0 value=Math.abs(value) if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0 e=eMax}else{e=Math.floor(Math.log(value)/Math.LN2) if(value*(c=Math.pow(2,-e))<1){e-- c*=2} if(e+eBias>=1){value+=rt/c}else{value+=rt*Math.pow(2,1-eBias)} if(value*c>=2){e++ c/=2} if(e+eBias>=eMax){m=0 e=eMax}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen) e=e+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen) e=0}} for(;mLen>=8;buffer[offset+i]=m&0xff,i+=d,m/=256,mLen-=8){} e=(e<0;buffer[offset+i]=e&0xff,i+=d,e/=256,eLen-=8){} buffer[offset+i-d]|=s*128}},{}],45:[function(require,module,exports){var process=module.exports={};var cachedSetTimeout;var cachedClearTimeout;function defaultSetTimout(){throw new Error('setTimeout has not been defined');} function defaultClearTimeout(){throw new Error('clearTimeout has not been defined');} (function(){try{if(typeof setTimeout==='function'){cachedSetTimeout=setTimeout;}else{cachedSetTimeout=defaultSetTimout;}}catch(e){cachedSetTimeout=defaultSetTimout;} try{if(typeof clearTimeout==='function'){cachedClearTimeout=clearTimeout;}else{cachedClearTimeout=defaultClearTimeout;}}catch(e){cachedClearTimeout=defaultClearTimeout;}}()) function runTimeout(fun){if(cachedSetTimeout===setTimeout){return setTimeout(fun,0);} if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0);} try{return cachedSetTimeout(fun,0);}catch(e){try{return cachedSetTimeout.call(null,fun,0);}catch(e){return cachedSetTimeout.call(this,fun,0);}}} function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){return clearTimeout(marker);} if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker);} try{return cachedClearTimeout(marker);}catch(e){try{return cachedClearTimeout.call(null,marker);}catch(e){return cachedClearTimeout.call(this,marker);}}} var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return;} draining=false;if(currentQueue.length){queue=currentQueue.concat(queue);}else{queueIndex=-1;} if(queue.length){drainQueue();}} function drainQueue(){if(draining){return;} var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex1){for(var i=1;i1&&arguments[1]!==undefined?arguments[1]:'https://api.github.com';_classCallCheck(this,GitHub);this.__apiBase=apiBase;this.__auth=auth||{};} _createClass(GitHub,[{key:'getGist',value:function getGist(id){return new _Gist2.default(id,this.__auth,this.__apiBase);} },{key:'getUser',value:function getUser(user){return new _User2.default(user,this.__auth,this.__apiBase);} },{key:'getOrganization',value:function getOrganization(organization){return new _Organization2.default(organization,this.__auth,this.__apiBase);} },{key:'getTeam',value:function getTeam(teamId){return new _Team2.default(teamId,this.__auth,this.__apiBase);} },{key:'getRepo',value:function getRepo(user,repo){return new _Repository2.default(this._getFullName(user,repo),this.__auth,this.__apiBase);} },{key:'getIssues',value:function getIssues(user,repo){return new _Issue2.default(this._getFullName(user,repo),this.__auth,this.__apiBase);} },{key:'search',value:function search(query){return new _Search2.default(query,this.__auth,this.__apiBase);} },{key:'getRateLimit',value:function getRateLimit(){return new _RateLimit2.default(this.__auth,this.__apiBase);} },{key:'getMarkdown',value:function getMarkdown(){return new _Markdown2.default(this.__auth,this.__apiBase);} },{key:'getProject',value:function getProject(id){return new _Project2.default(id,this.__auth,this.__apiBase);} },{key:'_getFullName',value:function _getFullName(user,repo){var fullname=user;if(repo){fullname=user+'/'+repo;} return fullname;}}]);return GitHub;}();module.exports=GitHub;},{"./Gist":28,"./Issue":29,"./Markdown":30,"./Organization":31,"./Project":32,"./RateLimit":33,"./Repository":34,"./Search":36,"./Team":37,"./User":38}]},{},[]);