MCPcopy
hub / github.com/willnewii/qiniuClient / createSocket

Method createSocket

static/dll/cos.js:134–134  ·  view source on GitHub ↗
(e,a,t)

Source from the content-addressed store, hash-verified

132 * Copyright(c) 2014 Jonathan Ong
133 * Copyright(c) 2015 Douglas Christopher Wilson
134 * MIT Licensed
135 */function o(e){if(!e||'string'!=typeof e)return!1;var a=s.exec(e),t=a&&n[a[1].toLowerCase()];return t&&t.charset?t.charset:!!(a&&r.test(a[1]))&&'UTF-8'}var n=t(281),i=t(6).extname,s=/^\s*([^;\s]*)(?:;|\s|$)/,r=/^text\//i;a.charset=o,a.charsets={lookup:o},a.contentType=function(e){if(!e||'string'!=typeof e)return!1;var t=-1===e.indexOf('/')?a.lookup(e):e;if(!t)return!1;if(-1===t.indexOf('charset')){var o=a.charset(t);o&&(t+='; charset='+o.toLowerCase())}return t},a.extension=function(e){if(!e||'string'!=typeof e)return!1;var t=s.exec(e),o=t&&a.extensions[t[1].toLowerCase()];return!!(o&&o.length)&&o[0]},a.extensions=Object.create(null),a.lookup=function(e){if(!e||'string'!=typeof e)return!1;var t=i('x.'+e).toLowerCase().substr(1);return!!t&&(a.types[t]||!1)},a.types=Object.create(null),function(e,a){var t=['nginx','apache',void 0,'iana'];Object.keys(n).forEach(function(o){var s=n[o],r=s.extensions;if(r&&r.length){e[o]=r;for(var p=0,i;p<r.length;p++){if(i=r[p],a[i]){var c=t.indexOf(n[a[i]].source),l=t.indexOf(s.source);if('application/octet-stream'!==a[i]&&(c>l||c===l&&'application/'===a[i].substr(0,12)))continue}a[i]=o}}})}(a.extensions,a.types)},function(e){e.exports=require('tls')},function(e,a,t){function o(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null}var i=t(0),n=t(7).Stream,s=t(285),r=t(286);e.exports=o,i.inherits(o,n),o.create=function(e){var a=new this;for(var t in e=e||{},e)a[t]=e[t];return a},o.isStreamLike=function(e){return'function'!=typeof e&&'string'!=typeof e&&'boolean'!=typeof e&&'number'!=typeof e&&!Buffer.isBuffer(e)},o.prototype.append=function(e){var a=o.isStreamLike(e);if(a){if(!(e instanceof s)){var t=s.create(e,{maxDataSize:Infinity,pauseStream:this.pauseStreams});e.on('data',this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},o.prototype.pipe=function(e,a){return n.prototype.pipe.call(this,e,a),this.resume(),e},o.prototype._getNext=function(){this._currentStream=null;var e=this._streams.shift();if('undefined'==typeof e)return void this.end();if('function'!=typeof e)return void this._pipeNext(e);e(function(e){var a=o.isStreamLike(e);a&&(e.on('data',this._checkDataSize.bind(this)),this._handleErrors(e)),r(this._pipeNext.bind(this,e))}.bind(this))},o.prototype._pipeNext=function(e){this._currentStream=e;var a=o.isStreamLike(e);if(a)return e.on('end',this._getNext.bind(this)),void e.pipe(this,{end:!1});this.write(e),this._getNext()},o.prototype._handleErrors=function(e){var a=this;e.on('error',function(e){a._emitError(e)})},o.prototype.write=function(e){this.emit('data',e)},o.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&'function'==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit('pause'))},o.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&'function'==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit('resume')},o.prototype.end=function(){this._reset(),this.emit('end')},o.prototype.destroy=function(){this._reset(),this.emit('close')},o.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},o.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e='DelayedStream#maxDataSize of '+this.maxDataSize+' bytes exceeded.';this._emitError(new Error(e))}},o.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(a){a.dataSize&&(e.dataSize+=a.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},o.prototype._emitError=function(e){this._reset(),this.emit('error',e)}},function(e,a,t){function o(e,a,t,o){var n;return n=2==e.length?e(t,i(o)):e(t,a,i(o)),n}var i=t(133),n=t(134);e.exports=function(e,a,t,i){var s=t.keyedList?t.keyedList[t.index]:t.index;t.jobs[s]=o(a,s,e[s],function(e,a){s in t.jobs&&(delete t.jobs[s],e?n(t):t.results[s]=a,i(e,t.results))})}},function(e,a,t){var o=t(289);e.exports=function(e){var a=!1;return o(function(){a=!0}),function(t,i){a?e(t,i):o(function(){e(t,i)})}}},function(e){function a(e){'function'==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(a.bind(e)),e.jobs={}}},function(e){e.exports=function(e,t){var a=!Array.isArray(e),o={index:0,keyedList:a||t?Object.keys(e):null,jobs:{},results:a?{}:[],size:a?Object.keys(e).length:e.length};return t&&o.keyedList.sort(a?t:function(o,a){return t(e[o],e[a])}),o}},function(e,a,t){var o=t(134),i=t(133);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,o(this),i(e)(null,this.results))}},function(e,a,t){function o(e,a){return e<a?-1:e>a?1:0}var i=t(132),n=t(135),s=t(136);e.exports=function(e,a,t,o){var r=n(e,t);return i(e,a,r,function t(n,s){return n?void o(n,s):(r.index++,r.index<(r.keyedList||e).length?void i(e,a,r,t):void o(null,r.results))}),s.bind(r,o)},e.exports.ascending=o,e.exports.descending=function(e,a){return-1*o(e,a)}},function(e,a,t){'use strict';var o=t(33);e.exports=function(e){o.copy(e,this)}},function(e){'use strict';e.exports=function(e,a){a||(a={}),'function'==typeof a&&(a={cmp:a});var t=!('boolean'!=typeof a.cycles)&&a.cycles,o=a.cmp&&function(e){return function(t){return function(o,i){var n={key:o,value:t[o]},s={key:i,value:t[i]};return e(n,s)}}}(a.cmp),n=[];return function e(a){if(a&&a.toJSON&&'function'==typeof a.toJSON&&(a=a.toJSON()),void 0!==a){if('number'==typeof a)return isFinite(a)?''+a:'null';if('object'!=typeof a)return JSON.stringify(a);var s,i;if(Array.isArray(a)){for(i='[',s=0;s<a.length;s++)s&&(i+=','),i+=e(a[s])||'null';return i+']'}if(null===a)return'null';if(-1!==n.indexOf(a)){if(t)return JSON.stringify('__cycle__');throw new TypeError('Converting circular structure to JSON')}var r=n.push(a)-1,p=Object.keys(a).sort(o&&o(a));for(i='',s=0;s<p.length;s++){var c=p[s],l=e(a[c]);l&&(i&&(i+=','),i+=JSON.stringify(c)+':'+l)}return n.splice(r,1),'{'+i+'}'}}(e)}},function(e){'use strict';e.exports=function(e,a){function t(e){for(var a=e.rules,t=0;t<a.length;t++)if(o(a[t]))return!0}function o(a){return void 0!==e.schema[a.keyword]||a.implements&&i(a)}function i(a){for(var t=a.implements,o=0;o<t.length;o++)if(void 0!==e.schema[t[o]])return!0}var n='',s=!0===e.schema.$async,r=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,'$ref'),p=e.self._getId(e.schema);if(e.isTop){if(s){e.async=!0;var c='es7'==e.opts.async;e.yieldAwait=c?'await':'yield'}n+=' var validate = ',s?c?n+=' (async function ':('*'!=e.opts.async&&(n+='co.wrap'),n+='(function* '):n+=' (function ',n+=' (data, dataPath, parentData, parentDataProperty, rootData) { \'use strict\'; ',p&&(e.opts.sourceCode||e.opts.processCode)&&(n+=' /*# sourceURL='+p+' */ ')}if('boolean'==typeof e.schema||!(r||e.schema.$ref)){var a='false schema',l=e.level,d=e.dataLevel,u=e.schema[a],m=e.schemaPath+e.util.getProperty(a),h=e.errSchemaPath+'/'+a,f=!e.opts.allErrors,g='data'+(d||''),y='valid'+l,b;if(!1===e.schema){e.isTop?f=!0:n+=' var '+y+' = false; ';var v=v||[];v.push(n),n='',!1===e.createErrors?n+=' {} ':(n+=' { keyword: \''+(b||'false schema')+'\' , dataPath: (dataPath || \'\') + '+e.errorPath+' , schemaPath: '+e.util.toQuotedString(h)+' , params: {} ',!1!==e.opts.messages&&(n+=' , message: \'boolean schema is false\' '),e.opts.verbose&&(n+=' , schema: false , parentSchema: validate.schema'+e.schemaPath+' , data: '+g+' '),n+=' } ');var x=n;n=v.pop(),n+=!e.compositeRule&&f?e.async?' throw new ValidationError(['+x+']); ':' validate.errors = ['+x+']; return false; ':' var err = '+x+'; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '}else n+=e.isTop?s?' return data; ':' validate.errors = null; return true; ':' var '+y+' = true; ';return e.isTop&&(n+=' }); return validate; '),n}if(e.isTop){var k=e.isTop,l=e.level=0,d=e.dataLevel=0,g='data';e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[void 0],n+=' var vErrors = null; ',n+=' var errors = 0; ',n+=' if (rootData === undefined) rootData = data; '}else{var l=e.level,d=e.dataLevel,g='data'+(d||'');if(p&&(e.baseId=e.resolve.url(e.baseId,p)),s&&!e.async)throw new Error('async schema in sync schema');n+=' var errs_'+l+' = errors;'}var y='valid'+l,f=!e.opts.allErrors,w='',j='',S=e.schema.type,_=Array.isArray(S),b;if(_&&1==S.length&&(S=S[0],_=!1),e.schema.$ref&&r)if('fail'==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');else!0!==e.opts.extendRefs&&(r=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'));if(S){if(e.opts.coerceTypes)var E=e.util.coerceToTypes(e.opts.coerceTypes,S);var C=e.RULES.types[S];if(E||_||!0===C||C&&!t(C)){var m=e.schemaPath+'.type',h=e.errSchemaPath+'/type',m=e.schemaPath+'.type',h=e.errSchemaPath+'/type',P=_?'checkDataTypes':'checkDataType';if(n+=' if ('+e.util[P](S,g,!0)+') { ',E){var T='dataType'+l,A='coerced'+l;n+=' var '+T+' = typeof '+g+'; ','array'==e.opts.coerceTypes&&(n+=' if ('+T+' == \'object\' && Array.isArray('+g+')) '+T+' = \'array\'; '),n+=' var '+A+' = undefined; ';var I='',z=E;if(z)for(var F=-1,O=z.length-1,B;F<O;)B=z[F+=1],F&&(n+=' if ('+A+' === undefined) { ',I+='}'),'array'==e.opts.coerceTypes&&'array'!=B&&(n+=' if ('+T+' == \'array\' && '+g+'.length == 1) { '+A+' = '+g+' = '+g+'[0]; '+T+' = typeof '+g+'; } '),'string'==B?n+=' if ('+T+' == \'number\' || '+T+' == \'boolean\') '+A+' = \'\' + '+g+'; else if ('+g+' === null) '+A+' = \'\'; ':'number'==B||'integer'==B?(n+=' if ('+T+' == \'boolean\' || '+g+' === null || ('+T+' == \'string\' && '+g+' && '+g+' == +'+g+' ','integer'==B&&(n+=' && !('+g+' % 1)'),n+=')) '+A+' = +'+g+'; '):'boolean'==B?n+=' if ('+g+' === \'false\' || '+g+' === 0 || '+g+' === null) '+A+' = false; else if ('+g+' === \'true\' || '+g+' === 1) '+A+' = true; ':'null'==B?n+=' if ('+g+' === \'\' || '+g+' === 0 || '+g+' === false) '+A+' = null; ':'array'==e.opts.coerceTypes&&'array'==B&&(n+=' if ('+T+' == \'string\' || '+T+' == \'number\' || '+T+' == \'boolean\' || '+g+' == null) '+A+' = ['+g+']; ');n+=' '+I+' if ('+A+' === undefined) { ';var v=v||[];v.push(n),n='',!1===e.createErrors?n+=' {} ':(n+=' { keyword: \''+(b||'type')+'\' , dataPath: (dataPath || \'\') + '+e.errorPath+' , schemaPath: '+e.util.toQuotedString(h)+' , params: { type: \'',n+=_?''+S.join(','):''+S,n+='\' } ',!1!==e.opts.messages&&(n+=' , message: \'should be ',n+=_?''+S.join(','):''+S,n+='\' '),e.opts.verbose&&(n+=' , schema: validate.schema'+m+' , parentSchema: validate.schema'+e.schemaPath+' , data: '+g+' '),n+=' } ');var x=n;n=v.pop(),n+=!e.compositeRule&&f?e.async?' throw new ValidationError(['+x+']); ':' validate.errors = ['+x+']; return false; ':' var err = '+x+'; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ',n+=' } else { ';var R=d?'data'+(d-1||''):'parentData',D=d?e.dataPathArr[d]:'parentDataProperty';n+=' '+g+' = '+A+'; ',d||(n+='if ('+R+' !== undefined)'),n+=' '+R+'['+D+'] = '+A+'; } '}else{var v=v||[];v.push(n),n='',!1===e.createErrors?n+=' {} ':(n+=' { keyword: \''+(b||'type')+'\' , dataPath: (dataPath || \'\') + '+e.errorPath+' , schemaPath: '+e.util.toQuotedString(h)+' , params: { type: \'',n+=_?''+S.join(','):''+S,n+='\' } ',!1!==e.opts.messages&&(n+=' , message: \'should be ',n+=_?''+S.join(','):''+S,n+='\' '),e.opts.verbose&&(n+=' , schema: validate.schema'+m+' , parentSchema: validate.schema'+e.schemaPath+' , data: '+g+' '),n+=' } ');var x=n;n=v.pop(),n+=!e.compositeRule&&f?e.async?' throw new ValidationError(['+x+']); ':' validate.errors = ['+x+']; return false; ':' var err = '+x+'; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '}n+=' } '}}if(e.schema.$ref&&!r)n+=' '+e.RULES.all.$ref.code(e,'$ref')+' ',f&&(n+=' } if (errors === ',n+=k?'0':'errs_'+l,n+=') { ',j+='}');else{e.opts.v5&&e.schema.patternGroups&&e.logger.warn('keyword "patternGroups" is deprecated and disabled. Use option patternGroups: true to enable.');var L=e.RULES;if(L)for(var N=-1,U=L.length-1,C;N<U;)if(C=L[N+=1],t(C)){if(C.type&&(n+=' if ('+e.util.checkDataType(C.type,g)+') { '),e.opts.useDefaults&&!e.compositeRule)if('object'==C.type&&e.schema.properties){var u=e.schema.properties,M=Object.keys(u),H=M;if(H)for(var K=-1,V=H.length-1,G;K<V;){G=H[K+=1];var $=u[G];if(void 0!==$.default){var W=g+e.util.getProperty(G);n+=' if ('+W+' === undefined) '+W+' = ',n+='shared'==e.opts.useDefaults?' '+e.useDefault($.default)+' ':' '+JSON.stringify($.default)+' ',n+='; '}}}else if('array'==C.type&&Array.isArray(e.schema.items)){var Q=e.schema.items;if(Q)for(var F=-1,Y=Q.length-1,$;F<Y;)if($=Q[F+=1],void 0!==$.default){var W=g+'['+F+']';n+=' if ('+W+' === undefined) '+W+' = ',n+='shared'==e.opts.useDefaults?' '+e.useDefault($.default)+' ':' '+JSON.stringify($.default)+' ',n+='; '}}var X=C.rules;if(X)for(var Z=-1,J=X.length-1,ee;Z<J;)if(ee=X[Z+=1],o(ee)){var ae=ee.code(e,ee.keyword,C.type);ae&&(n+=' '+ae+' ',f&&(w+='}'))}if(f&&(n+=' '+w+' ',w=''),C.type&&(n+=' } ',S&&S===C.type&&!E)){n+=' else { ';var m=e.schemaPath+'.type',h=e.errSchemaPath+'/type',v=v||[];v.push(n),n='',!1===e.createErrors?n+=' {} ':(n+=' { keyword: \''+(b||'type')+'\' , dataPath: (dataPath || \'\') + '+e.errorPath+' , schemaPath: '+e.util.toQuotedString(h)+' , params: { type: \'',n+=_?''+S.join(','):''+S,n+='\' } ',!1!==e.opts.messages&&(n+=' , message: \'should be ',n+=_?''+S.join(','):''+S,n+='\' '),e.opts.verbose&&(n+=' , schema: validate.schema'+m+' , parentSchema: validate.schema'+e.schemaPath+' , data: '+g+' '),n+=' } ');var x=n;n=v.pop(),n+=!e.compositeRule&&f?e.async?' throw new ValidationError(['+x+']); ':' validate.errors = ['+x+']; return false; ':' var err = '+x+'; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ',n+=' } '}f&&(n+=' if (errors === ',n+=k?'0':'errs_'+l,n+=') { ',j+='}')}}return f&&(n+=' '+j+' '),k?(s?(n+=' if (errors === 0) return data; ',n+=' else throw new ValidationError(vErrors); '):(n+=' validate.errors = vErrors; ',n+=' return errors === 0; '),n+=' }); return validate;'):n+=' var '+y+' = errors === errs_'+l+';',n=e.util.cleanUpCode(n),k&&(n=e.util.finalCleanUpCode(n,s)),n}},function(e){function a(e){var a=this,o=l.call(arguments,1);return new Promise(function(i,n){function r(a){var t;try{t=e.next(a)}catch(a){return n(a)}c(t)}function p(a){var t;try{t=e.throw(a)}catch(a){return n(a)}c(t)}function c(e){if(e.done)return i(e.value);var o=t.call(a,e.value);return o&&s(o)?o.then(r,p):p(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+(e.value+'"')))}return'function'==typeof e&&(e=e.apply(a,o)),e&&'function'==typeof e.next?void r():i(e)})}function t(e){return e?s(e)?e:p(e)||r(e)?a.call(this,e):'function'==typeof e?o.call(this,e):Array.isArray(e)?i.call(this,e):c(e)?n.call(this,e):e:e}function o(e){var a=this;return new Promise(function(t,o){e.call(a,function(e,a){return e?o(e):void(2<arguments.length&&(a=l.call(arguments,1)),t(a))})})}function i(e){return Promise.all(e.map(t,this))}function n(e){function a(e,a){o[a]=void 0,r.push(e.then(function(e){o[a]=e}))}for(var o=new e.constructor,n=Object.keys(e),r=[],p=0;p<n.length;p++){var i=n[p],c=t.call(this,e[i]);c&&s(c)?a(c,i):o[i]=e[i]}return Promise.all(r).then(function(){return o})}function s(e){return'function'==typeof e.then}function r(e){return'function'==typeof e.next&&'function'==typeof e.throw}function p(e){var a=e.constructor;return!!a&&(!('GeneratorFunction'!==a.name&&'GeneratorFunction'!==a.displayName)||r(a.prototype))}function c(e){return Object==e.constructor}var l=Array.prototype.slice;e.exports=a['default']=a.co=a,a.wrap=function(e){function t(){return a.call(this,e.apply(this,arguments))}return t.__generatorFunction__=e,t}},function(e){'use strict';e.exports=function(e,a){var t=' ',o=e.level,i=e.dataLevel,n=e.schema[a],s=e.schemaPath+e.util.getProperty(a),r=e.errSchemaPath+'/'+a,p=!e.opts.allErrors,c='data'+(i||''),l=e.opts.$data&&n&&n.$data,d,u;l?(t+=' var schema'+o+' = '+e.util.getData(n.$data,i,e.dataPathArr)+'; ',u='schema'+o):u=n;var m='maximum'==a,h=m?'exclusiveMaximum':'exclusiveMinimum',f=e.schema[h],g=e.opts.$data&&f&&f.$data,y=m?'<':'>',b=m?'>':'<',d=void 0;if(g){var v=e.util.getData(f.$data,i,e.dataPathArr),x='exclusive'+o,k='exclType'+o,w='exclIsNumber'+o,j='op'+o,S='\' + '+j+' + \'';t+=' var schemaExcl'+o+' = '+v+'; ',v='schemaExcl'+o,t+=' var '+x+'; var '+k+' = typeof '+v+'; if ('+k+' != \'boolean\' && '+k+' != \'undefined\' && '+k+' != \'number\') { ';var d=h,_=_||[];_.push(t),t='',!1===e.createErrors?t+=' {} ':(t+=' { keyword: \''+(d||'_exclusiveLimit')+'\' , dataPath: (dataPath || \'\') + '+e.errorPath+' , schemaPath: '+e.util.toQuotedString(r)+' , params: {} ',!1!==e.opts.messages&&(t+=' , message: \''+h+' should be boolean\' '),e.opts.verbose&&(t+=' , schema: validate.schema'+s+' , parentSchema: validate.schema'+e.schemaPath+' , data: '+c+' '),t+=' } ');var E=t;t=_.pop(),t+=!e.compositeRule&&p?e.async?' throw new ValidationError(['+E+']); ':' validate.errors = ['+E+']; return false; ':' var err = '+E+'; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ',t+=' } else if ( ',l&&(t+=' ('+u+' !== undefined && typeof '+u+' != \'number\') || '),t+=' '+k+' == \'number\' ? ( ('+x+' = '+u+' === undefined || '+v+' '+y+'= '+u+') ? '+c+' '+b+'= '+v+' : '+c+' '+b+' '+u+' ) : ( ('+x+' = '+v+' === true) ? '+c+' '+b+'= '+u+' : '+c+' '+b+' '+u+' ) || '+c+' !== '+c+') { var op'+o+' = '+x+' ? \''+y+'\' : \''+y+'=\';'}else{var w='number'==typeof f,S=y;if(w&&l){var j='\''+S+'\'';t+=' if ( ',l&&(t+=' ('+u+' !== undefined && typeof '+u+' != \'number\') || '),t+=' ( '+u+' === undefined || '+f+' '+y+'= '+u+' ? '+c+' '+b+'= '+f+' : '+c+' '+b+' '+u+' ) || '+c+' !== '+c+') { '}else{w&&void 0===n?(x=!0,d=h,r=e.errSchemaPath+'/'+h,u=f,b+='='):(w&&(u=Math[m?'min':'max'](f,n)),f===(!w||u)?(x=!0,d=h,r=e.errSchemaPath+'/'+h,b+='='):(x=!1,S+='='));var j='\''+S+'\'';t+=' if ( ',l&&(t+=' ('+u+' !== undefined && typeof '+u+' != \'number\') || '),t+=' '+c+' '+b+' '+u+' || '+c+' !== '+c+') { '}}d=d||a;var _=_||[];_.push(t),t='',!1===e.createErrors?t+=' {} ':(t+=' { keyword: \''+(d||'_limit')+'\' , dataPath: (dataPath || \'\') + '+e.errorPath+' , schemaPath: '+e.util.toQuotedString(r)+' , params: { comparison: '+j+', limit: '+u+', exclusive: '+x+' } ',!1!==e.opts.messages&&(t+=' , message: \'should be '+S+' ',t+=l?'\' + '+u:''+u+'\''),e.opts.verbose&&(t+=' , schema: ',t+=l?'validate.schema'+s:''+n,t+=' , parentSchema: validate.schema'+e.schemaPath+' , data: '+c+' '),t+=' } ');var E=t;return t=_.pop(),t+=!e.compositeRule&&p?e.async?' throw new ValidationError(['+E+']); ':' validate.errors = ['+E+']; return false; ':' var err = '+E+'; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ',t+=' } ',p&&(t+=' else { '),t}},function(e){'use strict';e.exports=function(e,a){var t=' ',o=e.level,i=e.dataLevel,n=e.schema[a],s=e.schemaPath+e.util.getProperty(a),r=e.errSchemaPath+'/'+a,p=!e.opts.allErrors,c='data'+(i||''),l=e.opts.$data&&n&&n.$data,d,u;l?(t+=' var schema'+o+' = '+e.util.getData(n.$data,i,e.dataPathArr)+'; ',u='schema'+o):u=n;var m='maxItems'==a?'>':'<';t+='if ( ',l&&(t+=' ('+u+' !== undefined && typeof '+u+' != \'number\') || '),t+=' '+c+'.length '+m+' '+u+') { ';var h=h||[];h.push(t),t='',!1===e.createErrors?t+=' {} ':(t+=' { keyword: \''+(a||'_limitItems')+'\' , dataPath: (dataPath || \'\') + '+e.errorPath+' , schemaPath: '+e.util.toQuotedString(r)+' , params: { limit: '+u+' } ',!1!==e.opts.messages&&(t+=' , message: \'should NOT have ',t+='maxItems'==a?'more':'less',t+=' than ',t+=l?'\' + '+u+' + \'':''+n,t+=' items\' '),e.opts.verbose&&(t+=' , schema: ',t+=l?'validate.schema'+s:''+n,t+=' , parentSchema: validate.schema'+e.schemaPath+' , data: '+c+' '),t+=' } ');var f=t;return t=h.pop(),t+=!e.compositeRule&&p?e.async?' throw new ValidationError(['+f+']); ':' validate.errors = ['+f+']; return false; ':' var err = '+f+'; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ',t+='} ',p&&(t+=' else { '),t}},function(e){'use strict';e.exports=function(e,a){var t=' ',o=e.level,i=e.dataLevel,n=e.schema[a],s=e.schemaPath+e.util.getProperty(a),r=e.errSchemaPath+'/'+a,p=!e.opts.allErrors,c='data'+(i||''),l=e.opts.$data&&n&&n.$data,d,u;l?(t+=' var schema'+o+' = '+e.util.getData(n.$data,i,e.dataPathArr)+'; ',u='schema'+o):u=n;var m='maxLength'==a?'>':'<';t+='if ( ',l&&(t+=' ('+u+' !== undefined && typeof '+u+' != \'number\') || '),t+=!1===e.opts.unicode?' '+c+'.length ':' ucs2length('+c+') ',t+=' '+m+' '+u+') { ';var h=h||[];h.push(t),t='',!1===e.createErrors?t+=' {} ':(t+=' { keyword: \''+(a||'_limitLength')+'\' , dataPath: (dataPath || \'\') + '+e.errorPath+' , schemaPath: '+e.util.toQuotedString(r)+' , params: { limit: '+u+' } ',!1!==e.opts.messages&&(t+=' , message: \'should NOT be ',t+='maxLength'==a?'longer':'shorter',t+=' than ',t+=l?'\' + '+u+' + \'':''+n,t+=' characters\' '),e.opts.verbose&&(t+=' , schema: ',t+=l?'validate.schema'+s:''+n,t+=' , parentSchema: validate.schema'+e.schemaPath+' , data: '+c+' '),t+=' } ');var f=t;return t=h.pop(),t+=!e.compositeRule&&p?e.async?' throw new ValidationError(['+f+']); ':' validate.errors = ['+f+']; return false; ':' var err = '+f+'; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ',t+='} ',p&&(t+=' else { '),t}},function(e){'use strict';e.exports=function(e,a){var t=' ',o=e.level,i=e.dataLevel,n=e.schema[a],s=e.schemaPath+e.util.getProperty(a),r=e.errSchemaPath+'/'+a,p=!e.opts.allErrors,c='data'+(i||''),l=e.opts.$data&&n&&n.$data,d,u;l?(t+=' var schema'+o+' = '+e.util.getData(n.$data,i,e.dataPathArr)+'; ',u='schema'+o):u=n;var m='maxProperties'==a?'>':'<';t+='if ( ',l&&(t+=' ('+u+' !== undefined && typeof '+u+' != \'number\') || '),t+=' Object.keys('+c+').length '+m+' '+u+') { ';var h=h||[];h.push(t),t='',!1===e.createErrors?t+=' {} ':(t+=' { keyword: \''+(a||'_limitProperties')+'\' , dataPath: (dataPath || \'\') + '+e.errorPath+' , schemaPath: '+e.util.toQuotedString(r)+' , params: { limit: '+u+' } ',!1!==e.opts.messages&&(t+=' , message: \'should NOT have ',t+='maxProperties'==a?'more':'less',t+=' than ',t+=l?'\' + '+u+' + \'':''+n,t+=' properties\' '),e.opts.verbose&&(t+=' , schema: ',t+=l?'validate.schema'+s:''+n,t+=' , parentSchema: validate.schema'+e.schemaPath+' , data: '+c+' '),t+=' } ');var f=t;return t=h.pop(),t+=!e.compositeRule&&p?e.async?' throw new ValidationError(['+f+']); ':' validate.errors = ['+f+']; return false; ':' var err = '+f+'; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ',t+='} ',p&&(t+=' else { '),t}},function(e,a,t){'use strict';function o(e){const a={};for(const t in e)a[t]=e[t].length;return a}const i=t(367).Agent,n=t(37);class s extends i{constructor(e){e=e||{},e.keepAlive=!1!==e.keepAlive,e.freeSocketKeepAliveTimeout===void 0&&(e.freeSocketKeepAliveTimeout=15e3),e.keepAliveTimeout&&(e.freeSocketKeepAliveTimeout=e.keepAliveTimeout),e.freeSocketKeepAliveTimeout=n(e.freeSocketKeepAliveTimeout),e.timeout===void 0&&(e.timeout=2*e.freeSocketKeepAliveTimeout,3e4>e.timeout&&(e.timeout=3e4)),e.timeout=n(e.timeout),super(e),this.createSocketCount=0,this.createSocketCountLastCheck=0,this.createSocketErrorCount=0,this.createSocketErrorCountLastCheck=0,this.closeSocketCount=0,this.closeSocketCountLastCheck=0,this.errorSocketCount=0,this.errorSocketCountLastCheck=0,this.requestCount=0,this.requestCountLastCheck=0,this.timeoutSocketCount=0,this.timeoutSocketCountLastCheck=0,this.on('free',(e)=>{this.requestCount++,e.lastFreeTime=Date.now()}),this.on('timeout',()=>{this.timeoutSocketCount++}),this.on('close',()=>{this.closeSocketCount++}),this.on('error',()=>{this.errorSocketCount++})}createSocket(e,a,t){super.createSocket(e,a,(e,a)=>e?(this.createSocketErrorCount++,t(e)):void(this.keepAlive&&a.setNoDelay(!0),this.createSocketCount++,t(null,a)))}get statusChanged(){const e=this.createSocketCount!==this.createSocketCountLastCheck||this.createSocketErrorCount!==this.createSocketErrorCountLastCheck||this.closeSocketCount!==this.closeSocketCountLastCheck||this.errorSocketCount!==this.errorSocketCountLastCheck||this.timeoutSocketCount!==this.timeoutSocketCountLastCheck||this.requestCount!==this.requestCountLastCheck;return e&&(this.createSocketCountLastCheck=this.createSocketCount,this.createSocketErrorCountLastCheck=this.createSocketErrorCount,this.closeSocketCountLastCheck=this.closeSocketCount,this.errorSocketCountLastCheck=this.errorSocketCount,this.timeoutSocketCountLastCheck=this.timeoutSocketCount,this.requestCountLastCheck=this.requestCount),e}getCurrentStatus(){return{createSocketCount:this.createSocketCount,createSocketErrorCount:this.createSocketErrorCount,closeSocketCount:this.closeSocketCount,errorSocketCount:this.errorSocketCount,timeoutSocketCount:this.timeoutSocketCount,requestCount:this.requestCount,freeSockets:o(this.freeSockets),sockets:o(this.sockets),requests:o(this.requests)}}}e.exports=s},function(e,a,t){const o=t(1),i=t(46);a.buildCanonicalizedResource=function(e,a){let t=`${e}`,o='?';if(i.string(a)&&''!==a.trim())t+=o+a;else if(i.array(a))a.sort(),t+=o+a.join('&');else if(a){const e=(e)=>{t+=o+e,a[e]&&(t+=`=${a[e]}`),o='&'};Object.keys(a).sort((e,a)=>{if(e[0]>a[0])return 1;return e[0]<a[0]?-1:0}).forEach(e)}return t},a.buildCanonicalString=function(e,a,t,o){t=t||{};const i=t.headers||{},n=[],s={};let r=[e.toUpperCase(),i['Content-Md5']||'',i['Content-Type']||i['Content-Type'.toLowerCase()],o||i['x-oss-date']];return Object.keys(i).forEach((e)=>{const a=e.toLowerCase();0===a.indexOf('x-oss-')&&(s[a]=(i[e]+'').trim())}),Object.keys(s).sort().forEach((e)=>{n.push(`${e}:${s[e]}`)}),r=r.concat(n),r.push(this.buildCanonicalizedResource(a,t.parameters)),r.join('\n')},a.computeSignature=function(e,a){const t=o.createHmac('sha1',e);return t.update(new Buffer(a,'utf8')).digest('base64')},a.authorization=function(e,a,t){return`OSS ${e}:${this.computeSignature(a,t)}`},a._signatureForURL=function(e,a,t,o){const i={},n={};if(a.process){n['x-oss-process']=a.process}if(a.response&&Object.keys(a.response).forEach((e)=>{const t=`response-${e.toLowerCase()}`;n[t]=a.response[e]}),Object.keys(a).forEach((e)=>{const t=e.toLowerCase(),o=a[e];0===t.indexOf('x-oss-')?i[t]=o:0===t.indexOf('content-md5')?i[e]=o:0===t.indexOf('content-type')?i[e]=o:'expires'!==t&&'response'!==t&&'process'!==t&&'method'!==t&&(n[t]=o)}),Object.prototype.hasOwnProperty.call(a,'security-token')&&(n['security-token']=a['security-token']),Object.prototype.hasOwnProperty.call(a,'callback')){const e={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};if(a.callback.host&&(e.callbackHost=a.callback.host),a.callback.contentType&&(e.callbackBodyType=a.callback.contentType),n.callback=new Buffer(JSON.stringify(e)).toString('base64'),a.callback.customValue){const e={};Object.keys(a.callback.customValue).forEach((t)=>{e[`x:${t}`]=a.callback.customValue[t]}),n['callback-var']=new Buffer(JSON.stringify(e)).toString('base64')}}const s=this.buildCanonicalString(a.method,t,{headers:i,parameters:n},o.toString());return{Signature:this.computeSignature(e,s),subResource:n}}},function(e,a){a.encodeCallback=function(e,a){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,'x-oss-callback')&&a.callback){const t={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(t.callbackHost=a.callback.host),a.callback.contentType&&(t.callbackBodyType=a.callback.contentType);const o=new Buffer(JSON.stringify(t)).toString('base64');if(e.headers['x-oss-callback']=o,a.callback.customValue){const t={};Object.keys(a.callback.customValue).forEach((e)=>{t[`x:${e}`]=a.callback.customValue[e]}),e.headers['x-oss-callback-var']=new Buffer(JSON.stringify(t)).toString('base64')}}}},function(e){'use strict';function a(e){return(this._ready=!!this._ready,this._readyCallbacks=this._readyCallbacks||[],0===arguments.length)?new Promise(function(e){return this._ready?e():void this._readyCallbacks.push(e)}.bind(this)):void('function'==typeof e?this._readyCallbacks.push(e):this._ready=!!e,this._ready&&this._readyCallbacks.splice(0,Infinity).forEach(function(e){process.nextTick(e)}))}function t(e){e.ready=a}e.exports=t,e.exports.mixin=t},function(e){'use strict';e.exports=function(e,a){return function(){for(var t=Array(arguments.length),o=0;o<t.length;o++)t[o]=arguments[o];return e.apply(a,t)}}},function(e,a,t){'use strict';var o=t(90);e.exports=function(e,a,t){var i=t.config.validateStatus;t.status&&i&&!i(t.status)?a(o('Request failed with status code '+t.status,t.config,null,t.request,t)):e(t)}},function(e){'use strict';e.exports=function(e,a,t,o,i){return e.config=a,t&&(e.code=t),e.request=o,e.response=i,e}},function(e,a,t){'use strict';function o(e){return encodeURIComponent(e).replace(/%40/gi,'@').replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',').replace(/%20/g,'+').replace(/%5B/gi,'[').replace(/%5D/gi,']')}var i=t(14);e.exports=function(e,a,t){if(!a)return e;var n;if(t)n=t(a);else if(i.isURLSearchParams(a))n=a.toString();else{var s=[];i.forEach(a,function(e,a){null===e||'undefined'==typeof e||(i.isArray(e)&&(a+='[]'),!i.isArray(e)&&(e=[e]),i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(o(a)+'='+o(e))}))}),n=s.join('&')}return n&&(e+=(-1===e.indexOf('?')?'?':'&')+n),e}},function(e,a,t){'use strict';var o=t(14),i=t(151),n=t(153),s=t(15),r=t(18),p=t(155).http,c=t(155).https,l=t(5),d=t(47),u=t(424),m=t(90),h=t(152);e.exports=function(e){return new Promise(function(a,t){var f=e.data,g=e.headers,y=!1,b;if(g['User-Agent']||g['user-agent']||(g['User-Agent']='axios/'+u.version),f&&!o.isStream(f)){if(Buffer.isBuffer(f));else if(o.isArrayBuffer(f))f=new Buffer(new Uint8Array(f));else if(o.isString(f))f=new Buffer(f,'utf-8');else return t(m('Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',e));g['Content-Length']=f.length}var v;if(e.auth){var x=e.auth.username||'',k=e.auth.password||'';v=x+':'+k}var w=l.parse(e.url),j=w.protocol||'http:';if(!v&&w.auth){var S=w.auth.split(':'),_=S[0]||'',E=S[1]||'';v=_+':'+E}v&&delete g.Authorization;var C='https:'===j,P=C?e.httpsAgent:e.httpAgent,T={hostname:w.hostname,port:w.port,path:n(w.path,e.params,e.paramsSerializer).replace(/^\?/,''),method:e.method,headers:g,agent:P,auth:v},A=e.proxy;if(!A){var I=j.slice(0,-1)+'_proxy',z=process.env[I]||process.env[I.toUpperCase()];if(z){var F=l.parse(z);if(A={host:F.hostname,port:F.port},F.auth){var O=F.auth.split(':');A.auth={username:O[0],password:O[1]}}}}if(A&&(T.hostname=A.host,T.host=A.host,T.headers.host=w.hostname+(w.port?':'+w.port:''),T.port=A.port,T.path=j+'//'+w.hostname+(w.port?':'+w.port:'')+T.path,A.auth)){var B=new Buffer(A.auth.username+':'+A.auth.password,'utf8').toString('base64');T.headers['Proxy-Authorization']='Basic '+B}var R;0===e.maxRedirects?R=C?r:s:(e.maxRedirects&&(T.maxRedirects=e.maxRedirects),R=C?c:p);var D=R.request(T,function(o){if(!y){clearTimeout(b),b=null;var n=o;switch(o.headers['content-encoding']){case'gzip':case'compress':case'deflate':n=n.pipe(d.createUnzip()),delete o.headers['content-encoding'];}var s=o.req||D,r={status:o.statusCode,statusText:o.statusMessage,headers:o.headers,config:e,request:s};if('stream'===e.responseType)r.data=n,i(a,t,r);else{var p=[];n.on('data',function(a){p.push(a),-1<e.maxContentLength&&Buffer.concat(p).length>e.maxContentLength&&t(m('maxContentLength size of '+e.maxContentLength+' exceeded',e,null,s))}),n.on('error',function(a){y||t(h(a,e,null,s))}),n.on('end',function(){var o=Buffer.concat(p);'arraybuffer'!==e.responseType&&(o=o.toString('utf8')),r.data=o,i(a,t,r)})}}});D.on('error',function(a){y||t(h(a,e,null,D))}),e.timeout&&!b&&(b=setTimeout(function(){D.abort(),t(m('timeout of '+e.timeout+'ms exceeded',e,'ECONNABORTED',D)),y=!0},e.timeout)),e.cancelToken&&e.cancelToken.promise.then(function(e){y||(D.abort(),t(e),y=!0)}),o.isStream(f)?f.pipe(D):D.end(f)})}},function(e,a,t){function o(e,a){c.call(this),e.headers=e.headers||{},this._options=e,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],a&&this.on('response',a);var t=this;if(this._onNativeResponse=function(e){t._processResponse(e)},!e.pathname&&e.path){var o=e.path.indexOf('?');0>o?e.pathname=e.path:(e.pathname=e.path.substring(0,o),e.search=e.path.substring(o))}this._performRequest()}function i(e){var a={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(e).forEach(function(i){var s=i+':',r=t[s]=e[i],c=a[i]=Object.create(r);c.request=function(e,i){return'string'==typeof e?(e=n.parse(e),e.maxRedirects=a.maxRedirects):e=Object.assign({protocol:s,maxRedirects:a.maxRedirects,maxBodyLength:a.maxBodyLength},e),e.nativeProtocols=t,p.equal(e.protocol,s,'protocol mismatch'),l('options',e),new o(e,i)},c.get=function(e,a){var t=c.request(e,a);return t.end(),t}}),a}var n=t(5),s=t(15),r=t(18),p=t(16),c=t(7).Writable,l=t(420)('follow-redirects'),d={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},u=Object.create(null);['abort','aborted','error','socket','timeout'].forEach(function(e){u[e]=function(a){this._redirectable.emit(e,a)}}),o.prototype=Object.create(c.prototype),o.prototype.write=function(e,a,t){if(!('string'==typeof e||'object'==typeof e&&'length'in e))throw new Error('data should be a string, Buffer or Uint8Array');return 0===e.length?void t():void(this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:a}),this._currentRequest.write(e,a,t)):(this.emit('error',new Error('Request body larger than maxBodyLength limit')),this.abort()))},o.prototype.end=function(e,a,t){var o=this._currentRequest;e?this.write(e,a,function(){o.end(null,null,t)}):o.end(null,null,t)},o.prototype.setHeader=function(e,a){this._options.headers[e]=a,this._currentRequest.setHeader(e,a)},o.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},['abort','flushHeaders','getHeader','setNoDelay','setSocketKeepAlive','setTimeout'].forEach(function(e){o.prototype[e]=function(t,a){return this._currentRequest[e](t,a)}}),['aborted','connection','socket'].forEach(function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._currentRequest[e]}})}),o.prototype._performRequest=function(){var e=this._options.protocol,a=this._options.nativeProtocols[e];if(this._options.agents){var t=e.substr(0,e.length-1);this._options.agent=this._options.agents[t]}var o=this._currentRequest=a.request(this._options,this._onNativeResponse);for(var i in this._currentUrl=n.format(this._options),o._redirectable=this,u)i&&o.on(i,u[i]);if(this._isRedirect){var s=this._requestBodyBuffers;(function e(){if(0!==s.length){var a=s.pop();o.write(a.data,a.encoding,e)}else o.end()})()}},o.prototype._processResponse=function(e){this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:e.statusCode});var a=e.headers.location;if(a&&!1!==this._options.followRedirects&&300<=e.statusCode&&400>e.statusCode){if(++this._redirectCount>this._options.maxRedirects)return void this.emit('error',new Error('Max redirects exceeded.'));var t=this._options.headers,o;if(307!==e.statusCode&&!(this._options.method in d))for(o in this._options.method='GET',this._requestBodyBuffers=[],t)/^content-/i.test(o)&&delete t[o];if(!this._isRedirect)for(o in t)/^host$/i.test(o)&&delete t[o];var i=n.resolve(this._currentUrl,a);l('redirecting to',i),Object.assign(this._options,n.parse(i)),this._isRedirect=!0,this._performRequest(),e.destroy()}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit('response',e),this._requestBodyBuffers=[]},e.exports=i({http:s,https:r}),e.exports.wrap=i},function(e,a,t){function o(e){var t=0,o;for(o in e)t=(t<<5)-t+e.charCodeAt(o),t|=0;return a.colors[Math.abs(t)%a.colors.length]}function i(e){function t(){if(t.enabled){var e=t,o=+new Date,n=o-(s||o);e.diff=n,e.prev=s,e.curr=o,s=o;for(var r=Array(arguments.length),p=0;p<r.length;p++)r[p]=arguments[p];r[0]=a.coerce(r[0]),'string'!=typeof r[0]&&r.unshift('%O');var i=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,function(t,o){if('%%'===t)return t;i++;var n=a.formatters[o];if('function'==typeof n){var s=r[i];t=n.call(e,s),r.splice(i,1),i--}return t}),a.formatArgs.call(e,r);var c=t.log||a.log||console.log.bind(console);c.apply(e,r)}}var s;return t.namespace=e,t.enabled=a.enabled(e),t.useColors=a.useColors(),t.color=o(e),t.destroy=n,'function'==typeof a.init&&a.init(t),a.instances.push(t),t}function n(){var e=a.instances.indexOf(this);return-1!==e&&(a.instances.splice(e,1),!0)}function s(e){a.save(e),a.names=[],a.skips=[];var t=('string'==typeof e?e:'').split(/[\s,]+/),o=t.length,n;for(n=0;n<o;n++)t[n]&&(e=t[n].replace(/\*/g,'.*?'),'-'===e[0]?a.skips.push(new RegExp('^'+e.substr(1)+'$')):a.names.push(new RegExp('^'+e+'$')));for(n=0;n<a.instances.length;n++){var i=a.instances[n];i.enabled=a.enabled(i.namespace)}}function r(){a.enable('')}function p(e){if('*'===e[e.length-1])return!0;var t,o;for(t=0,o=a.skips.length;t<o;t++)if(a.skips[t].test(e))return!1;for(t=0,o=a.names.length;t<o;t++)if(a.names[t].test(e))return!0;return!1}a=e.exports=i.debug=i['default']=i,a.coerce=function(e){return e instanceof Error?e.stack||e.message:e},a.disable=r,a.enable=s,a.enabled=p,a.humanize=t(65),a.instances=[],a.names=[],a.skips=[],a.formatters={}},function(e){'use strict';e.exports=function(e){return!!(e&&e.__CANCEL__)}},function(e){'use strict';function a(e){this.message=e}a.prototype.toString=function(){return'Cancel'+(this.message?': '+this.message:'')},a.prototype.__CANCEL__=!0,e.exports=a},function(e,a,t){e.exports=t},function(e,a,t){var o=process.env.QINIU_COV?'./lib-cov':'./qiniu';e.exports={auth:{digest:t(161)(o+'/auth/digest.js')},cdn:t(163)(o+'/cdn.js'),form_up:t(204)(o+'/storage/form.js'),resume_up:t(214)(o+'/storage/resume.js'),rs:t(216)(o+'/storage/rs.js'),fop:t(218)(o+'/fop.js'),conf:t(220)(o+'/conf.js'),rpc:t(221)(o+'/rpc.js'),util:t(222)(o+'/util.js'),zone:t(223)(o+'/zone.js'),app:t(224)(o+'/rtc/app.js'),room:t(226)(o+'/rtc/room.js'),Credentials:t(228)(o+'/rtc/credentials.js')}},function(e,a,t){function o(e){return t(i(e))}function i(e){var a=n[e];if(!(a+1))throw new Error('Cannot find module \''+e+'\'.');return a}var n={"./qiniu/auth/digest.js":34};o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=161},function(e){e.exports={_from:'qiniu@^7.2.1',_id:'qiniu@7.2.1',_inBundle:!1,_integrity:'sha1-UIDrxM6EzRyv+2Rdkaq9z5ovOcY=',_location:'/qiniu',_phantomChildren:{},_requested:{type:'range',registry:!0,raw:'qiniu@^7.2.1',name:'qiniu',escapedName:'qiniu',rawSpec:'^7.2.1',saveSpec:null,fetchSpec:'^7.2.1'},_requiredBy:['#DEV:/'],_resolved:'https://registry.npmjs.org/qiniu/-/qiniu-7.2.1.tgz',_shasum:'5080ebc4ce84cd1caffb645d91aabdcf9a2f39c6',_spec:'qiniu@^7.2.1',_where:'/Users/zhangweiwei/Downloads/Web/Vue/my-project2',author:{name:'sdk@qiniu.com'},bugs:{url:'https://github.com/qiniu/nodejs-sdk/issues'},bundleDependencies:!1,contributors:[{name:'Xu Shiwei',email:'xushiweizh@gmail.com'},{name:'why404',email:'awhy.xu@gmail.com'},{name:'guhao',email:'guhao@qiniu.com'},{name:'jinxinxin',email:'jinxinxin@qiniu.com'}],dependencies:{agentkeepalive:'3.3.0',crc32:'0.2.2',encodeurl:'^1.0.1',formstream:'1.1.0',mime:'2.3.1',"tunnel-agent":'0.6.0',urllib:'2.22.0'},deprecated:!1,description:'Node wrapper for Qiniu Resource (Cloud) Storage API',devDependencies:{"@types/node":'^8.0.3',blanket:'*',eslint:'^5.0.0-alpha.2',"eslint-config-standard":'^12.0.0-alpha.0',"eslint-plugin-import":'^2.11.0',"eslint-plugin-node":'^6.0.1',"eslint-plugin-promise":'^3.7.0',"eslint-plugin-standard":'^3.1.0',mocha:'*',pedding:'*',should:'1.2.2',"travis-cov":'*'},directories:{test:'test'},engines:['node >= 4'],homepage:'https://github.com/qiniu/nodejs-sdk#readme',keywords:['cloud','storage','s3','qiniu','web-service'],license:'MIT',main:'index.js',name:'qiniu',repository:{type:'git',url:'git://github.com/qiniu/nodejs-sdk.git'},scripts:{test:'make test'},version:'7.2.1'}},function(e,a,t){function o(e){return t(i(e))}function i(e){var a=n[e];if(!(a+1))throw new Error('Cannot find module \''+e+'\'.');return a}var n={"./qiniu/cdn.js":164};o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=163},function(e,a,t){function o(e){this.mac=e||new c.Mac}function i(e,a,t,o){r.request('http://fusion.qiniuapi.com'+e,{method:'POST',headers:a,data:t},o)}const n=t(5),s=t(1),r=t(35),p=t(23),c=t(34),l=t(102);a.CdnManager=o,o.prototype.getCdnLogList=function(e,a,t){var o=p.generateAccessToken(this.mac,'/v2/tune/log/list\n','');postBody={day:a,domains:e.join(';')},i('/v2/tune/log/list',{"Content-Type":'application/json',Authorization:o},postBody,t)},o.prototype.getFluxData=function(e,a,t,o,n){var s=p.generateAccessToken(this.mac,'/v2/tune/flux\n','');data={startDate:e,endDate:a,granularity:t,domains:o.join(';')},i('/v2/tune/flux',{"Content-Type":'application/json',Authorization:s},data,n)},o.prototype.getBandwidthData=function(e,a,t,o,n){var s=p.generateAccessToken(this.mac,'/v2/tune/bandwidth\n','');data={startDate:e,endDate:a,granularity:t,domains:o.join(';')},i('/v2/tune/bandwidth',{"Content-Type":'application/json',Authorization:s},data,n)},o.prototype.prefetchUrls=function(e,a){var t=p.generateAccessToken(this.mac,'/v2/tune/prefetch\n','');i('/v2/tune/prefetch',{"Content-Type":'application/json',Authorization:t},{urls:e},a)},o.prototype.refreshUrls=function(e,a){this.refreshUrlsAndDirs(e,null,a)},o.prototype.refreshDirs=function(e,a){this.refreshUrlsAndDirs(null,e,a)},o.prototype.refreshUrlsAndDirs=function(e,a,t){var o=p.generateAccessToken(this.mac,'/v2/tune/refresh\n','');i('/v2/tune/refresh',{"Content-Type":'application/json',Authorization:o},{urls:e,dirs:a},t)},o.prototype.createTimestampAntiLeechUrl=function(e,a,t,o,i){urlToSign=null==t?e+'/'+l(a):e+'/'+l(a)+'?'+t;var r=n.parse(urlToSign);pathname=r.pathname;var p=i.toString(16),c=o+pathname+p,d=s.createHash('md5'),u=d.update(c).digest('hex');return null==t?urlToSign+'?sign='+u+'&t='+p:urlToSign+'&sign='+u+'&t='+p}},function(e,a,t){function o(e){var t=this.useColors;if(e[0]=(t?'%c':'')+this.namespace+(t?' %c':' ')+e[0]+(t?'%c ':' ')+'+'+a.humanize(this.diff),!!t){var o='color: '+this.color;e.splice(1,0,o,'color: inherit');var i=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(e){'%%'===e||(i++,'%c'===e&&(n=i))}),e.splice(n,0,o)}}function i(e){try{null==e?a.storage.removeItem('debug'):a.storage.debug=e}catch(a){}}function n(){var e;try{e=a.storage.debug}catch(a){}return!e&&'undefined'!=typeof process&&'env'in process&&(e=process.env.DEBUG),e}a=e.exports=t(92),a.log=function(){return'object'==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=o,a.save=i,a.load=n,a.useColors=function(){return!!('undefined'!=typeof window&&window.process&&'renderer'===window.process.type)||'undefined'!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||'undefined'!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||'undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||'undefined'!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage='undefined'!=typeof chrome&&'undefined'!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(a){}}(),a.colors=['lightseagreen','forestgreen','goldenrod','dodgerblue','darkorchid','crimson'],a.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return'[UnexpectedJSONParseError]: '+e.message}},a.enable(n())},function(e,a,t){function o(){return'colors'in a.inspectOpts?!!a.inspectOpts.colors:r.isatty(c)}function i(e){var t=this.namespace,o=this.useColors;if(o){var i=this.color,n=' \x1B[3'+i+';1m'+t+' \x1B[0m';e[0]=n+e[0].split('\n').join('\n'+n),e.push('\x1B[3'+i+'m+'+a.humanize(this.diff)+'\x1B[0m')}else e[0]=new Date().toUTCString()+' '+t+' '+e[0]}function n(){return process.env.DEBUG}function s(e){e.inspectOpts={};for(var t=Object.keys(a.inspectOpts),o=0;o<t.length;o++)e.inspectOpts[t[o]]=a.inspectOpts[t[o]]}var r=t(93),p=t(0);a=e.exports=t(92),a.init=s,a.log=function(){return l.write(p.format.apply(p,arguments)+'\n')},a.formatArgs=i,a.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},a.load=n,a.useColors=o,a.colors=[6,2,3,4,5,1],a.inspectOpts=Object.keys(process.env).filter(function(e){return /^debug_/i.test(e)}).reduce(function(e,a){var t=a.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,a){return a.toUpperCase()}),o=process.env[a];return o=!!/^(yes|on|true|enabled)$/i.test(o)||!/^(no|off|false|disabled)$/i.test(o)&&('null'===o?null:+o),e[t]=o,e},{});var c=parseInt(process.env.DEBUG_FD,10)||2;1!==c&&2!==c&&p.deprecate(function(){},'except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)')();var l=1===c?process.stdout:2===c?process.stderr:function(e){var a=process.binding('tty_wrap'),o;switch(a.guessHandleType(e)){case'TTY':o=new r.WriteStream(e),o._type='tty',o._handle&&o._handle.unref&&o._handle.unref();break;case'FILE':var i=t(4);o=new i.SyncWriteStream(e,{autoClose:!1}),o._type='fs';break;case'PIPE':case'TCP':var n=t(36);o=new n.Socket({fd:e,readable:!1,writable:!0}),o.readable=!1,o.read=null,o._type='pipe',o._handle&&o._handle.unref&&o._handle.unref();break;default:throw new Error('Implement me. Unknown stream file type!');}return o.fd=e,o._isStdio=!0,o}(c);a.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,p.inspect(e,this.inspectOpts).split('\n').map(function(e){return e.trim()}).join(' ')},a.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,p.inspect(e,this.inspectOpts)},a.enable(n())},function(e,a,t){'use strict';var o=t(94),n=t(95),s={brackets:function(e){return e+'[]'},indices:function(e,a){return e+'['+a+']'},repeat:function(e){return e}},i=Date.prototype.toISOString,r={delimiter:'&',encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){return i.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(a,t,n,s,p,c,l,d,u,m,h,f){var g=a;if('function'==typeof l)g=l(t,g);else if(g instanceof Date)g=m(g);else if(null===g){if(s)return c&&!f?c(t,r.encoder):t;g=''}if('string'==typeof g||'number'==typeof g||'boolean'==typeof g||o.isBuffer(g)){if(c){var y=f?t:c(t,r.encoder);return[h(y)+'='+h(c(g,r.encoder))]}return[h(t)+'='+h(g+'')]}var b=[];if('undefined'==typeof g)return b;var v;if(Array.isArray(l))v=l;else{var x=Object.keys(g);v=d?x.sort(d):x}for(var k=0,i;k<v.length;++k)(i=v[k],!(p&&null===g[i]))&&(b=Array.isArray(g)?b.concat(e(g[i],n(t,i),n,s,p,c,l,d,u,m,h,f)):b.concat(e(g[i],t+(u?'.'+i:'['+i+']'),n,s,p,c,l,d,u,m,h,f)));return b};e.exports=function(e,a){var t=e,c=a?o.assign({},a):{};if(null!==c.encoder&&c.encoder!==void 0&&'function'!=typeof c.encoder)throw new TypeError('Encoder has to be a function.');var l='undefined'==typeof c.delimiter?r.delimiter:c.delimiter,d='boolean'==typeof c.strictNullHandling?c.strictNullHandling:r.strictNullHandling,u='boolean'==typeof c.skipNulls?c.skipNulls:r.skipNulls,m='boolean'==typeof c.encode?c.encode:r.encode,h='function'==typeof c.encoder?c.encoder:r.encoder,f='function'==typeof c.sort?c.sort:null,g='undefined'!=typeof c.allowDots&&c.allowDots,y='function'==typeof c.serializeDate?c.serializeDate:r.serializeDate,b='boolean'==typeof c.encodeValuesOnly?c.encodeValuesOnly:r.encodeValuesOnly;if('undefined'==typeof c.format)c.format=n['default'];else if(!Object.prototype.hasOwnProperty.call(n.formatters,c.format))throw new TypeError('Unknown format option provided.');var v=n.formatters[c.format],x,k;'function'==typeof c.filter?(k=c.filter,t=k('',t)):Array.isArray(c.filter)&&(k=c.filter,x=k);var w=[];if('object'!=typeof t||null===t)return'';var j=c.arrayFormat in s?c.arrayFormat:'indices'in c?c.indices?'indices':'repeat':'indices';var S=s[j];x||(x=Object.keys(t)),f&&x.sort(f);for(var _=0,i;_<x.length;++_)(i=x[_],!(u&&null===t[i]))&&(w=w.concat(p(t[i],i,S,d,u,m?h:null,k,f,g,y,v,b)));var E=w.join(l),C=!0===c.addQueryPrefix?'?':'';return 0<E.length?C+E:''}},function(e,a,t){'use strict';var o=t(94),n=Object.prototype.hasOwnProperty,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:'&',depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},r=function(e,a){for(var t={},o=a.ignoreQueryPrefix?e.replace(/^\?/,''):e,r=a.parameterLimit===Infinity?void 0:a.parameterLimit,p=o.split(a.delimiter,r),c=0;c<p.length;++c){var i=p[c],l=i.indexOf(']='),d=-1===l?i.indexOf('='):l+1,u,m;-1===d?(u=a.decoder(i,s.decoder),m=a.strictNullHandling?null:''):(u=a.decoder(i.slice(0,d),s.decoder),m=a.decoder(i.slice(d+1),s.decoder)),t[u]=n.call(t,u)?[].concat(t[u]).concat(m):m}return t},p=function(e,a,t){for(var o=a,n=e.length-1;0<=n;--n){var i=e[n],s;if('[]'===i)s=[],s=s.concat(o);else{s=t.plainObjects?Object.create(null):{};var r='['===i.charAt(0)&&']'===i.charAt(i.length-1)?i.slice(1,-1):i,p=parseInt(r,10);!isNaN(p)&&i!==r&&p+''===r&&0<=p&&t.parseArrays&&p<=t.arrayLimit?(s=[],s[p]=o):s[r]=o}o=s}return o},c=function(e,a,t){if(e){var o=t.allowDots?e.replace(/\.([^.[]+)/g,'[$1]'):e,s=/(\[[^[\]]*])/,r=/(\[[^[\]]*])/g,c=s.exec(o),l=c?o.slice(0,c.index):o,d=[];if(l){if(!t.plainObjects&&n.call(Object.prototype,l)&&!t.allowPrototypes)return;d.push(l)}for(var u=0;null!==(c=r.exec(o))&&u<t.depth;){if(u+=1,!t.plainObjects&&n.call(Object.prototype,c[1].slice(1,-1))&&!t.allowPrototypes)return;d.push(c[1])}return c&&d.push('['+o.slice(c.index)+']'),p(d,a,t)}};e.exports=function(e,a){var t=a?o.assign({},a):{};if(null!==t.decoder&&void 0!==t.decoder&&'function'!=typeof t.decoder)throw new TypeError('Decoder has to be a function.');if(t.ignoreQueryPrefix=!0===t.ignoreQueryPrefix,t.delimiter='string'==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:s.delimiter,t.depth='number'==typeof t.depth?t.depth:s.depth,t.arrayLimit='number'==typeof t.arrayLimit?t.arrayLimit:s.arrayLimit,t.parseArrays=!1!==t.parseArrays,t.decoder='function'==typeof t.decoder?t.decoder:s.decoder,t.allowDots='boolean'==typeof t.allowDots?t.allowDots:s.allowDots,t.plainObjects='boolean'==typeof t.plainObjects?t.plainObjects:s.plainObjects,t.allowPrototypes='boolean'==typeof t.allowPrototypes?t.allowPrototypes:s.allowPrototypes,t.parameterLimit='number'==typeof t.parameterLimit?t.parameterLimit:s.parameterLimit,t.strictNullHandling='boolean'==typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling,''===e||null===e||'undefined'==typeof e)return t.plainObjects?Object.create(null):{};for(var n='string'==typeof e?r(e,t):e,p=t.plainObjects?Object.create(null):{},l=Object.keys(n),d=0;d<l.length;++d){var i=l[d],u=c(i,n[i],t);p=o.merge(p,u,t)}return o.compact(p)}},function(e,a,t){'use strict';/**!
136 * default-user-agent - index.js
137 *

Callers 1

cos.jsFile · 0.80

Calls 1

tFunction · 0.70

Tested by

no test coverage detected