@umijs/deps
Version:
[](https://packagephobia.now.sh/result?p=@umijs/deps)
1 lines • 310 kB
JavaScript
module.exports=(()=>{var __webpack_modules__={8390:function(e,t){(function(e,n){true?n(t):0})(this,function(e){"use strict";function simple(e,t,n,r,s){if(!n){n=i}(function c(e,i,r){var s=r||e.type,a=t[s];n[s](e,i,c);if(a){a(e,i)}})(e,r,s)}function ancestor(e,t,n,r,s){var a=[];if(!n){n=i}(function c(e,i,r){var s=r||e.type,o=t[s];var u=e!==a[a.length-1];if(u){a.push(e)}n[s](e,i,c);if(o){o(e,i||a,a)}if(u){a.pop()}})(e,r,s)}function recursive(e,t,n,i,r){var s=n?make(n,i||undefined):i;(function c(e,t,n){s[n||e.type](e,t,c)})(e,t,r)}function makeTest(e){if(typeof e==="string"){return function(t){return t===e}}else if(!e){return function(){return true}}else{return e}}var t=function Found(e,t){this.node=e;this.state=t};function full(e,t,n,r,s){if(!n){n=i}(function c(e,i,r){var s=r||e.type;n[s](e,i,c);if(!r){t(e,i,s)}})(e,r,s)}function fullAncestor(e,t,n,r){if(!n){n=i}var s=[];(function c(e,i,r){var a=r||e.type;var o=e!==s[s.length-1];if(o){s.push(e)}n[a](e,i,c);if(!r){t(e,i||s,s,a)}if(o){s.pop()}})(e,r)}function findNodeAt(e,n,r,s,a,o){if(!a){a=i}s=makeTest(s);try{(function c(e,i,o){var u=o||e.type;if((n==null||e.start<=n)&&(r==null||e.end>=r)){a[u](e,i,c)}if((n==null||e.start===n)&&(r==null||e.end===r)&&s(u,e)){throw new t(e,i)}})(e,o)}catch(e){if(e instanceof t){return e}throw e}}function findNodeAround(e,n,r,s,a){r=makeTest(r);if(!s){s=i}try{(function c(e,i,a){var o=a||e.type;if(e.start>n||e.end<n){return}s[o](e,i,c);if(r(o,e)){throw new t(e,i)}})(e,a)}catch(e){if(e instanceof t){return e}throw e}}function findNodeAfter(e,n,r,s,a){r=makeTest(r);if(!s){s=i}try{(function c(e,i,a){if(e.end<n){return}var o=a||e.type;if(e.start>=n&&r(o,e)){throw new t(e,i)}s[o](e,i,c)})(e,a)}catch(e){if(e instanceof t){return e}throw e}}function findNodeBefore(e,n,r,s,a){r=makeTest(r);if(!s){s=i}var o;(function c(e,i,a){if(e.start>n){return}var u=a||e.type;if(e.end<=n&&(!o||o.node.end<e.end)&&r(u,e)){o=new t(e,i)}s[u](e,i,c)})(e,a);return o}var n=Object.create||function(e){function Ctor(){}Ctor.prototype=e;return new Ctor};function make(e,t){var r=n(t||i);for(var s in e){r[s]=e[s]}return r}function skipThrough(e,t,n){n(e,t)}function ignore(e,t,n){}var i={};i.Program=i.BlockStatement=function(e,t,n){for(var i=0,r=e.body;i<r.length;i+=1){var s=r[i];n(s,t,"Statement")}};i.Statement=skipThrough;i.EmptyStatement=ignore;i.ExpressionStatement=i.ParenthesizedExpression=i.ChainExpression=function(e,t,n){return n(e.expression,t,"Expression")};i.IfStatement=function(e,t,n){n(e.test,t,"Expression");n(e.consequent,t,"Statement");if(e.alternate){n(e.alternate,t,"Statement")}};i.LabeledStatement=function(e,t,n){return n(e.body,t,"Statement")};i.BreakStatement=i.ContinueStatement=ignore;i.WithStatement=function(e,t,n){n(e.object,t,"Expression");n(e.body,t,"Statement")};i.SwitchStatement=function(e,t,n){n(e.discriminant,t,"Expression");for(var i=0,r=e.cases;i<r.length;i+=1){var s=r[i];if(s.test){n(s.test,t,"Expression")}for(var a=0,o=s.consequent;a<o.length;a+=1){var c=o[a];n(c,t,"Statement")}}};i.SwitchCase=function(e,t,n){if(e.test){n(e.test,t,"Expression")}for(var i=0,r=e.consequent;i<r.length;i+=1){var s=r[i];n(s,t,"Statement")}};i.ReturnStatement=i.YieldExpression=i.AwaitExpression=function(e,t,n){if(e.argument){n(e.argument,t,"Expression")}};i.ThrowStatement=i.SpreadElement=function(e,t,n){return n(e.argument,t,"Expression")};i.TryStatement=function(e,t,n){n(e.block,t,"Statement");if(e.handler){n(e.handler,t)}if(e.finalizer){n(e.finalizer,t,"Statement")}};i.CatchClause=function(e,t,n){if(e.param){n(e.param,t,"Pattern")}n(e.body,t,"Statement")};i.WhileStatement=i.DoWhileStatement=function(e,t,n){n(e.test,t,"Expression");n(e.body,t,"Statement")};i.ForStatement=function(e,t,n){if(e.init){n(e.init,t,"ForInit")}if(e.test){n(e.test,t,"Expression")}if(e.update){n(e.update,t,"Expression")}n(e.body,t,"Statement")};i.ForInStatement=i.ForOfStatement=function(e,t,n){n(e.left,t,"ForInit");n(e.right,t,"Expression");n(e.body,t,"Statement")};i.ForInit=function(e,t,n){if(e.type==="VariableDeclaration"){n(e,t)}else{n(e,t,"Expression")}};i.DebuggerStatement=ignore;i.FunctionDeclaration=function(e,t,n){return n(e,t,"Function")};i.VariableDeclaration=function(e,t,n){for(var i=0,r=e.declarations;i<r.length;i+=1){var s=r[i];n(s,t)}};i.VariableDeclarator=function(e,t,n){n(e.id,t,"Pattern");if(e.init){n(e.init,t,"Expression")}};i.Function=function(e,t,n){if(e.id){n(e.id,t,"Pattern")}for(var i=0,r=e.params;i<r.length;i+=1){var s=r[i];n(s,t,"Pattern")}n(e.body,t,e.expression?"Expression":"Statement")};i.Pattern=function(e,t,n){if(e.type==="Identifier"){n(e,t,"VariablePattern")}else if(e.type==="MemberExpression"){n(e,t,"MemberPattern")}else{n(e,t)}};i.VariablePattern=ignore;i.MemberPattern=skipThrough;i.RestElement=function(e,t,n){return n(e.argument,t,"Pattern")};i.ArrayPattern=function(e,t,n){for(var i=0,r=e.elements;i<r.length;i+=1){var s=r[i];if(s){n(s,t,"Pattern")}}};i.ObjectPattern=function(e,t,n){for(var i=0,r=e.properties;i<r.length;i+=1){var s=r[i];if(s.type==="Property"){if(s.computed){n(s.key,t,"Expression")}n(s.value,t,"Pattern")}else if(s.type==="RestElement"){n(s.argument,t,"Pattern")}}};i.Expression=skipThrough;i.ThisExpression=i.Super=i.MetaProperty=ignore;i.ArrayExpression=function(e,t,n){for(var i=0,r=e.elements;i<r.length;i+=1){var s=r[i];if(s){n(s,t,"Expression")}}};i.ObjectExpression=function(e,t,n){for(var i=0,r=e.properties;i<r.length;i+=1){var s=r[i];n(s,t)}};i.FunctionExpression=i.ArrowFunctionExpression=i.FunctionDeclaration;i.SequenceExpression=function(e,t,n){for(var i=0,r=e.expressions;i<r.length;i+=1){var s=r[i];n(s,t,"Expression")}};i.TemplateLiteral=function(e,t,n){for(var i=0,r=e.quasis;i<r.length;i+=1){var s=r[i];n(s,t)}for(var a=0,o=e.expressions;a<o.length;a+=1){var c=o[a];n(c,t,"Expression")}};i.TemplateElement=ignore;i.UnaryExpression=i.UpdateExpression=function(e,t,n){n(e.argument,t,"Expression")};i.BinaryExpression=i.LogicalExpression=function(e,t,n){n(e.left,t,"Expression");n(e.right,t,"Expression")};i.AssignmentExpression=i.AssignmentPattern=function(e,t,n){n(e.left,t,"Pattern");n(e.right,t,"Expression")};i.ConditionalExpression=function(e,t,n){n(e.test,t,"Expression");n(e.consequent,t,"Expression");n(e.alternate,t,"Expression")};i.NewExpression=i.CallExpression=function(e,t,n){n(e.callee,t,"Expression");if(e.arguments){for(var i=0,r=e.arguments;i<r.length;i+=1){var s=r[i];n(s,t,"Expression")}}};i.MemberExpression=function(e,t,n){n(e.object,t,"Expression");if(e.computed){n(e.property,t,"Expression")}};i.ExportNamedDeclaration=i.ExportDefaultDeclaration=function(e,t,n){if(e.declaration){n(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression")}if(e.source){n(e.source,t,"Expression")}};i.ExportAllDeclaration=function(e,t,n){if(e.exported){n(e.exported,t)}n(e.source,t,"Expression")};i.ImportDeclaration=function(e,t,n){for(var i=0,r=e.specifiers;i<r.length;i+=1){var s=r[i];n(s,t)}n(e.source,t,"Expression")};i.ImportExpression=function(e,t,n){n(e.source,t,"Expression")};i.ImportSpecifier=i.ImportDefaultSpecifier=i.ImportNamespaceSpecifier=i.Identifier=i.Literal=ignore;i.TaggedTemplateExpression=function(e,t,n){n(e.tag,t,"Expression");n(e.quasi,t,"Expression")};i.ClassDeclaration=i.ClassExpression=function(e,t,n){return n(e,t,"Class")};i.Class=function(e,t,n){if(e.id){n(e.id,t,"Pattern")}if(e.superClass){n(e.superClass,t,"Expression")}n(e.body,t)};i.ClassBody=function(e,t,n){for(var i=0,r=e.body;i<r.length;i+=1){var s=r[i];n(s,t)}};i.MethodDefinition=i.Property=function(e,t,n){if(e.computed){n(e.key,t,"Expression")}n(e.value,t,"Expression")};e.ancestor=ancestor;e.base=i;e.findNodeAfter=findNodeAfter;e.findNodeAround=findNodeAround;e.findNodeAt=findNodeAt;e.findNodeBefore=findNodeBefore;e.full=full;e.fullAncestor=fullAncestor;e.make=make;e.recursive=recursive;e.simple=simple;Object.defineProperty(e,"__esModule",{value:true})})},6964:e=>{"use strict";function Queue(e){if(!(this instanceof Queue)){return new Queue(e)}e=e||{};this.concurrency=e.concurrency||Infinity;this.pending=0;this.jobs=[];this.cbs=[];this._done=done.bind(this)}var t=["push","unshift","splice"];t.forEach(function(e){Queue.prototype[e]=function(){var t=Array.prototype[e].apply(this.jobs,arguments);this._run();return t}});Object.defineProperty(Queue.prototype,"length",{get:function(){return this.pending+this.jobs.length}});Queue.prototype._run=function(){if(this.pending===this.concurrency){return}if(this.jobs.length){var e=this.jobs.shift();this.pending++;e(this._done);this._run()}if(this.pending===0){while(this.cbs.length!==0){var t=this.cbs.pop();process.nextTick(t)}}};Queue.prototype.onDone=function(e){if(typeof e==="function"){this.cbs.push(e);this._run()}};function done(){this.pending--;this._run()}e.exports=Queue},1919:(e,t,n)=>{"use strict";const i=n(1940);const r=n(4731);const s=n(1669);s.inherits(DataStream,r);e.exports=DataStream;function DataStream(e,t){if(i.not.instanceStrict(this,DataStream)){return new DataStream(e,t)}return r.call(this,e,Object.assign({objectMode:true},t))}},9751:e=>{"use strict";e.exports={create:create};function create(e,t,n,i){const r=new Error("JSON error: encountered `"+e+"` at line "+n+", column "+i+" where `"+t+"` was expected.");r.actual=e;r.expected=t;r.lineNumber=n;r.columnNumber=i;return r}},1554:(e,t,n)=>{"use strict";const i=n(1940);const r=n(8614).EventEmitter;const s=n(9790);const a=n(1645);const o={undefined:true,function:true,symbol:true};e.exports=eventify;function eventify(e,t={}){const n={};const c=new r;const u=a(t);const l=new Map;let h=0;let f=false;let p;let d;let _;let g;c.pause=(()=>{let e;_=new u(t=>e=t);return()=>{_=null;h=0;e()}});parseOptions();setImmediate(begin);return c;function parseOptions(){parseCoercionOption("promises");parseCoercionOption("buffers");parseCoercionOption("maps");parseCoercionOption("iterables");if(Object.keys(n).length===0){f=true}if(t.circular==="ignore"){p=true}i.assert.maybe.positive(t.yieldRate);g=t.yieldRate||16384}function parseCoercionOption(e){if(t[e]!=="ignore"){n[e]=true}}function begin(){return proceed(e).catch(e=>emit(s.error,e)).then(()=>emit(s.end))}function proceed(e){if(++h%g!==0){return coerce(e).then(after)}return new u((t,n)=>{setImmediate(()=>{coerce(e).then(after).then(t).catch(n)})});function after(e){if(isInvalid(e)){return}if(e===false||e===true||e===null){return literal(e)}if(Array.isArray(e)){return array(e)}const t=typeof e;switch(t){case"number":return value(e,t);case"string":return value(escapeString(e),t);default:return object(e)}}}function coerce(e){if(f||i.primitive(e)){return u.resolve(e)}if(i.instanceStrict(e,u)){return coerceThing(e,"promises",coercePromise).then(coerce)}if(i.instanceStrict(e,Buffer)){return coerceThing(e,"buffers",coerceBuffer)}if(i.instanceStrict(e,Map)){return coerceThing(e,"maps",coerceMap)}if(i.iterable(e)&&i.not.string(e)&&i.not.array(e)){return coerceThing(e,"iterables",coerceIterable)}if(i.function(e.toJSON)){return u.resolve(e.toJSON())}return u.resolve(e)}function coerceThing(e,t,i){if(n[t]){return i(e)}return u.resolve()}function coercePromise(e){return e}function coerceBuffer(e){return u.resolve(e.toString())}function coerceMap(e){const t={};return coerceCollection(e,t,(e,n)=>{t[n]=e})}function coerceCollection(e,t,n){e.forEach(n);return u.resolve(t)}function coerceIterable(e){const t=[];return coerceCollection(e,t,e=>{t.push(e)})}function isInvalid(e){const t=typeof e;return!!o[t]||t==="number"&&!isValidNumber(e)}function isValidNumber(e){return e>Number.NEGATIVE_INFINITY&&e<Number.POSITIVE_INFINITY}function literal(e){return value(e,"literal")}function value(e,t){return emit(s[t],e)}function emit(e,t){return(_||u.resolve()).then(()=>c.emit(e,t)).catch(e=>{try{c.emit(s.error,e)}catch(e){}})}function array(e){return collection(e,e,"array",e=>{if(isInvalid(e)){return proceed(null)}return proceed(e)})}function collection(e,t,n,i){let r;return u.resolve().then(()=>{if(l.has(e)){r=d=true;if(!p){return emit(s.dataError,new Error("Circular reference."))}}else{l.set(e,true)}}).then(()=>emit(s[n])).then(()=>item(0));function item(a){if(a>=t.length){if(r){d=false}if(d){return u.resolve()}return emit(s.endPrefix+s[n]).then(()=>l.delete(e))}if(d){return item(a+1)}return i(t[a]).then(()=>item(a+1))}}function object(e){return collection(e,Object.keys(e),"object",t=>{const n=e[t];if(isInvalid(n)){return u.resolve()}return emit(s.property,escapeString(t)).then(()=>proceed(n))})}function escapeString(e){e=JSON.stringify(e);return e.substring(1,e.length-1)}}},9790:e=>{"use strict";e.exports={array:"arr",object:"obj",property:"pro",string:"str",number:"num",literal:"lit",endPrefix:"end-",end:"end",error:"err"};e.exports.endArray=e.exports.endPrefix+e.exports.array;e.exports.endObject=e.exports.endPrefix+e.exports.object;e.exports.endLine=`${e.exports.endPrefix}line`;e.exports.dataError=`${e.exports.error}-data`},9895:(e,t,n)=>{"use strict";e.exports={walk:n(3320),match:n(5753),parse:n(8423),unpipe:n(7613),read:n(6794),eventify:n(1554),streamify:n(3061),stringify:n(8469),write:n(7066),events:n(9790)}},9057:(e,t,n)=>{"use strict";const i=n(1940);const r=n(4731);const s=n(1669);s.inherits(JsonStream,r);e.exports=JsonStream;function JsonStream(e,t){if(i.not.instanceStrict(this,JsonStream)){return new JsonStream(e,t)}return r.call(this,e,Object.assign({encoding:"utf8"},t))}},5753:(e,t,n)=>{"use strict";const i=n(1940);const r=n(1919);const s=n(9790);const a=n(3854);const o=n(3320);const c=1024;e.exports=match;function match(e,t,n={}){const u=[];const l=[];const h=o(e,n);const f=new a(n.bufferLength||c);let p;const{highWaterMark:d}=n;if(d){p={highWaterMark:d}}const _=new r(read,p);let g,v,y;let m=false;let b=true;let x=false;let w=0;let S=0;if(i.function(t)){g=t;t=null}else{m=!!n.numbers;if(i.string(t)){i.assert.nonEmptyString(t);v=t;t=null}else{i.assert.instanceStrict(t,RegExp)}}h.on(s.array,array);h.on(s.object,object);h.on(s.property,property);h.on(s.endArray,endScope);h.on(s.endObject,endScope);h.on(s.string,value);h.on(s.number,value);h.on(s.literal,value);h.on(s.end,end);h.on(s.error,error);h.on(s.dataError,dataError);return _;function read(){if(b){b=false;if(x){if(w>0){after()}return endResults()}}if(y){const e=y;y=null;e();after()}}function after(){if(b||y){return}let e;for(e=0;e<w&&!y;++e){if(!_.push(f[e+S])){pause()}}if(e===w){S=w=0}else{w-=e;S+=e}}function pause(){y=h.pause()}function endResults(){if(!b){_.push(null)}}function array(){u.push([])}function object(){u.push({})}function property(e){l.push(e)}function endScope(){value(u.pop())}function value(e){let n;if(u.length>0){const t=u[u.length-1];if(Array.isArray(t)){n=t.length}else{n=l.pop()}t[n]=e}if(e===null){return}if(g){if(g(n,e,u.length)){push(e)}}else{if(m&&typeof n==="number"){n=n.toString()}if(v&&v===n||t&&t.test(n)){push(e)}}}function push(e){if(w+1===f.length){pause()}f[S+w++]=e;after()}function end(){x=true;endResults()}function error(e){_.emit("error",e)}function dataError(e){_.emit("dataError",e)}}},8423:(e,t,n)=>{"use strict";const i=n(1940);const r=n(9790);const s=n(1645);const a=n(3320);e.exports=parse;const o=new Map;function parse(e,t={}){const n=s(t);try{i.assert.maybe.function(t.reviver,"Invalid reviver option")}catch(e){return n.reject(e)}const c=[];const u=[];const l=t.reviver;const h=!!t.ndjson;let f,p,d,_;if(h&&o.has(e)){const t=o.get(e);o.delete(e);f=t.emitter;setImmediate(t.resume)}else{f=a(e,t)}f.on(r.array,array);f.on(r.object,object);f.on(r.property,property);f.on(r.string,value);f.on(r.number,value);f.on(r.literal,value);f.on(r.endArray,endScope);f.on(r.endObject,endScope);f.on(r.end,end);f.on(r.error,error);f.on(r.dataError,error);if(h){f.on(r.endLine,endLine)}return new n((e,t)=>{p=e;d=t});function array(){if(c.length>0){return}beginScope([])}function beginScope(e){if(c.length>0){return}if(u.length>0){value(e)}u.push(e)}function value(e){if(c.length>0){return}if(u.length===0){return u.push(e)}const t=u[u.length-1];if(_){t[_]=e;_=null}else{t.push(e)}}function object(){if(c.length>0){return}beginScope({})}function property(e){if(c.length>0){return}_=e}function endScope(){if(c.length>0){return}if(u.length>1){u.pop()}}function end(){if(h){const t=f.pause();f.removeAllListeners();o.set(e,{emitter:f,resume:t})}if(c.length>0){return d(c[0])}if(l){u[0]=transform(u[0],"")}p(u[0])}function transform(e,t){if(e&&typeof e==="object"){Object.keys(e).forEach(t=>{e[t]=transform(e[t],t)})}return l(t,e)}function error(e){c.push(e)}function endLine(){if(u.length>0){end()}}}},1645:(e,t,n)=>{"use strict";e.exports=((e={})=>e.Promise||n(8710))},6794:(e,t,n)=>{"use strict";const i=n(5747);const r=n(8423);e.exports=read;function read(e,t){return r(i.createReadStream(e,t),Object.assign({},t,{ndjson:false}))}},4731:(e,t,n)=>{"use strict";const i=n(1669);const r=n(2413).Readable;const s=n(1940);i.inherits(BfjStream,r);e.exports=BfjStream;function BfjStream(e,t){if(s.not.instanceStrict(this,BfjStream)){return new BfjStream(e)}s.assert.function(e,"Invalid read implementation");this._read=function(){e()};return r.call(this,t)}},3061:(e,t,n)=>{"use strict";const i=n(1940);const r=n(1554);const s=n(9790);const a=n(9057);const o=n(3854);const c=n(1645);const u=n(8683);const l=1024;e.exports=streamify;function streamify(e,t={}){const n=r(e,t);const i=new o(t.bufferLength||l);const h=c(t);const f=normaliseSpace(t);let p;const{highWaterMark:d}=t;if(d){p={highWaterMark:d}}const _=new a(read,p);let g=true;let v=0;let y="";let m;let b=false;let x;let w=0;let S=h.resolve();let k;n.on(s.array,noRacing(array));n.on(s.object,noRacing(object));n.on(s.property,noRacing(property));n.on(s.string,noRacing(string));n.on(s.number,noRacing(value));n.on(s.literal,noRacing(value));n.on(s.endArray,noRacing(endArray));n.on(s.endObject,noRacing(endObject));n.on(s.end,noRacing(end));n.on(s.error,noRacing(error));n.on(s.dataError,noRacing(dataError));return _;function read(){if(g){g=false;if(m){if(w>0){after()}return endStream()}}if(b){after()}}function after(){if(g){return}let e;for(e=0;e<w&&!g;++e){if(!_.push(i[e+v],"utf8")){g=true}}if(e===w){v=w=0}else{w-=e;v+=e}}function endStream(){if(!g){_.push(null)}}function noRacing(e){return t=>S=S.then(()=>e(t))}function array(){return beforeScope().then(()=>addJson("[")).then(()=>afterScope())}function beforeScope(){return before(true)}function before(e){if(x){x=false;if(f){return addJson(" ")}return h.resolve()}return h.resolve().then(()=>{if(k){if(e){k=false}return addJson(",")}if(!e){k=true}}).then(()=>{if(f&&y){return indent()}})}function addJson(e){if(w+1<=i.length){i[v+w++]=e;after();return h.resolve()}b=true;return new h(t=>{const r=n.pause();u({interval:-10,until(){return w+1<=i.length},pass(){b=false;i[v+w++]=e;t();setImmediate(r)}})})}function indent(){return addJson(`\n${y}`)}function afterScope(){k=false;if(f){y+=f}}function object(){return beforeScope().then(()=>addJson("{")).then(()=>afterScope())}function property(e){return before().then(()=>addJson(`"${e}":`)).then(()=>{x=true})}function string(e){return value(`"${e}"`)}function value(e){return before().then(()=>addJson(`${e}`))}function endArray(){return beforeScopeEnd().then(()=>addJson("]")).then(()=>afterScopeEnd())}function beforeScopeEnd(){if(f){y=y.substr(f.length);return indent()}return h.resolve()}function afterScopeEnd(){k=true}function endObject(){return beforeScopeEnd().then(()=>addJson("}")).then(()=>afterScopeEnd())}function end(){after();m=true;endStream()}function error(e){_.emit("error",e)}function dataError(e){_.emit("dataError",e)}}function normaliseSpace(e){if(i.positive(e.space)){return new Array(e.space+1).join(" ")}if(i.nonEmptyString(e.space)){return e.space}}},8469:(e,t,n)=>{"use strict";const i=n(1645);const r=n(3061);e.exports=stringify;function stringify(e,t){const n=[];const s=i(t);const a=r(e,t);let o,c;a.on("data",read);a.on("end",end);a.on("error",error);a.on("dataError",error);return new s((e,t)=>{o=e;c=t});function read(e){n.push(e)}function end(){o(n.join(""))}function error(e){c(e)}}},7613:(e,t,n)=>{"use strict";const i=n(2413);const r=n(1940);const s=n(8423);e.exports=unpipe;function unpipe(e,t){r.assert.function(e,"Invalid callback argument");const n=new i.PassThrough;s(n,Object.assign({},t,{ndjson:false})).then(t=>e(null,t)).catch(t=>e(t));return n}},3320:(e,t,n)=>{"use strict";const i=n(1940);const r=n(9751);const s=n(8614).EventEmitter;const a=n(9790);const o=n(1645);const c={obj:"}",arr:"]"};const u={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};e.exports=initialise;function initialise(e,t={}){i.assert.instanceStrict(e,n(2413).Readable,"Invalid stream argument");const l={line:1,column:1};const h=new s;const f={arr:value,obj:property};const p=[];const d=[];const _={};const g=o(t);const v=[];const y=t.yieldRate||16384;const m=!!t.ndjson;let b=0;let x=false;let w=false;let S=false;let k=false;let C=true;let E=0;let P;let A;let O;e.setEncoding("utf8");e.on("data",readStream);e.on("end",endStream);e.on("error",e=>{h.emit(a.error,e);endStream()});h.pause=(()=>{let e;A=new g(t=>e=t);return()=>{A=null;E=0;if(m&&x&&S){emit(a.end)}else{e()}}});return h;function readStream(e){addChunk(e);if(w){return resume()}w=true;value()}function addChunk(e){p.push(e);const t=e.length;d.push({item:t,aggregate:length()+t})}function length(){const e=d.length;if(e===0){return 0}return d[e-1].aggregate}function value(){if(++E%y!==0){return _do()}return new g(e=>{setImmediate(()=>_do().then(e))});function _do(){return awaitNonWhitespace().then(next).then(handleValue).catch(()=>{})}}function awaitNonWhitespace(){return wait();function wait(){return awaitCharacter().then(step)}function step(){if(isWhitespace(character())){return next().then(wait)}}}function awaitCharacter(){let e,t;if(b<length()){return g.resolve()}if(x){setImmediate(endWalk);return g.reject()}P=after;return new g((n,i)=>{e=n;t=i});function after(){if(b<length()){return e()}t();if(x){setImmediate(endWalk)}}}function character(){if(O){return O}if(d[0].item>b){return O=p[0][b]}const e=d.length;for(let t=1;t<e;++t){const{aggregate:e,item:n}=d[t];if(e>b){return O=p[t][b+n-e]}}}function isWhitespace(e){switch(e){case"\n":if(m&&v.length===0){return false}case" ":case"\t":case"\r":return true}return false}function next(){return awaitCharacter().then(after);function after(){const e=character();O=null;b+=1;_.line=l.line;_.column=l.column;if(e==="\n"){l.line+=1;l.column=1}else{l.column+=1}if(b>d[0].aggregate){p.shift();const e=d.shift().item;b-=e;d.forEach(t=>t.aggregate-=e)}return e}}function handleValue(e){if(m&&v.length===0){if(e==="\n"){C=true;return emit(a.endLine).then(value)}if(!C){return fail(e,"\n",_).then(value)}C=false}switch(e){case"[":return array();case"{":return object();case'"':return string();case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"-":case".":return number(e);case"f":return literalFalse();case"n":return literalNull();case"t":return literalTrue();default:return fail(e,"value",_).then(value)}}function array(){return scope(a.array,value)}function scope(e,t){return emit(e).then(()=>{v.push(e);return endScope(e)}).then(t)}function emit(...e){return(A||g.resolve()).then(()=>{try{h.emit(...e)}catch(e){try{h.emit(a.error,e)}catch(e){}}})}function endScope(e){return awaitNonWhitespace().then(()=>{if(character()===c[e]){return emit(a.endPrefix+e).then(()=>{v.pop();return next()}).then(endValue)}}).catch(endWalk)}function endValue(){return awaitNonWhitespace().then(after).catch(endWalk);function after(){if(v.length===0){if(m){return value()}return fail(character(),"EOF",l).then(value)}return checkScope()}function checkScope(){const e=v[v.length-1];const t=f[e];return endScope(e).then(()=>{if(v.length>0){return checkCharacter(character(),",",l)}}).then(e=>{if(e){return next()}}).then(t)}}function fail(e,t,n){return emit(a.dataError,r.create(e,t,n.line,n.column))}function checkCharacter(e,t,n){if(e===t){return g.resolve(true)}return fail(e,t,n).then(false)}function object(){return scope(a.object,property)}function property(){return awaitNonWhitespace().then(next).then(propertyName)}function propertyName(e){return checkCharacter(e,'"',_).then(()=>walkString(a.property)).then(awaitNonWhitespace).then(next).then(propertyValue)}function propertyValue(e){return checkCharacter(e,":",_).then(value)}function walkString(e){let t=false;const n=[];k=true;return next().then(step);function step(i){if(t){t=false;return escape(i).then(e=>{n.push(e);return next().then(step)})}if(i==="\\"){t=true;return next().then(step)}if(i!=='"'){n.push(i);return next().then(step)}k=false;return emit(e,n.join(""))}}function escape(e){if(u[e]){return g.resolve(u[e])}if(e==="u"){return escapeHex()}return fail(e,"escape character",_).then(()=>`\\${e}`)}function escapeHex(){let e=[];return next().then(step.bind(null,0));function step(t,n){if(isHexit(n)){e.push(n)}if(t<3){return next().then(step.bind(null,t+1))}e=e.join("");if(e.length===4){return String.fromCharCode(parseInt(e,16))}return fail(n,"hex digit",_).then(()=>`\\u${e}${n}`)}}function string(){return walkString(a.string).then(endValue)}function number(e){let t=[e];return walkDigits().then(addDigits.bind(null,checkDecimalPlace));function addDigits(e,n){t=t.concat(n.digits);if(n.atEnd){return endNumber()}return e()}function checkDecimalPlace(){if(character()==="."){return next().then(e=>{t.push(e);return walkDigits()}).then(addDigits.bind(null,checkExponent))}return checkExponent()}function checkExponent(){if(character()==="e"||character()==="E"){return next().then(e=>{t.push(e);return awaitCharacter()}).then(checkSign).catch(fail.bind(null,"EOF","exponent",l))}return endNumber()}function checkSign(){if(character()==="+"||character()==="-"){return next().then(e=>{t.push(e);return readExponent()})}return readExponent()}function readExponent(){return walkDigits().then(addDigits.bind(null,endNumber))}function endNumber(){return emit(a.number,parseFloat(t.join(""))).then(endValue)}}function walkDigits(){const e=[];return wait();function wait(){return awaitCharacter().then(step).catch(atEnd)}function step(){if(isDigit(character())){return next().then(t=>{e.push(t);return wait()})}return{digits:e,atEnd:false}}function atEnd(){return{digits:e,atEnd:true}}}function literalFalse(){return literal(["a","l","s","e"],false)}function literal(e,t){let n,i,r;return wait();function wait(){return awaitCharacter().then(step).catch(atEnd)}function step(){if(r||e.length===0){return atEnd()}return next().then(afterNext)}function atEnd(){return g.resolve().then(()=>{if(r){return fail(n,i,_)}if(e.length>0){return fail("EOF",e.shift(),l)}return done()}).then(endValue)}function afterNext(t){n=t;i=e.shift();if(n!==i){r=true}return wait()}function done(){return emit(a.literal,t)}}function literalNull(){return literal(["u","l","l"],null)}function literalTrue(){return literal(["r","u","e"],true)}function endStream(){x=true;if(w){return resume()}endWalk()}function resume(){if(P){P();P=null}}function endWalk(){if(S){return g.resolve()}S=true;return g.resolve().then(()=>{if(k){return fail("EOF",'"',l)}}).then(popScopes).then(()=>emit(a.end))}function popScopes(){if(v.length===0){return g.resolve()}return fail("EOF",c[v.pop()],l).then(popScopes)}}function isHexit(e){return isDigit(e)||isInRange(e,"A","F")||isInRange(e,"a","f")}function isDigit(e){return isInRange(e,"0","9")}function isInRange(e,t,n){const i=e.charCodeAt(0);return i>=t.charCodeAt(0)&&i<=n.charCodeAt(0)}},7066:(e,t,n)=>{"use strict";const i=n(5747);const r=n(1645);const s=n(3061);e.exports=write;function write(e,t,n){const a=r(n);return new a((r,a)=>{s(t,n).pipe(i.createWriteStream(e,n)).on("finish",()=>{r()}).on("error",a).on("dataError",a)})}},5490:e=>{"use strict";e.exports=function(e){var t=e._SomePromiseArray;function any(e){var n=new t(e);var i=n.promise();n.setHowMany(1);n.setUnwrap();n.init();return i}e.any=function(e){return any(e)};e.prototype.any=function(){return any(this)}}},8061:(e,t,n)=>{"use strict";var i;try{throw new Error}catch(e){i=e}var r=n(6203);var s=n(878);function Async(){this._customScheduler=false;this._isTickUsed=false;this._lateQueue=new s(16);this._normalQueue=new s(16);this._haveDrainedQueues=false;var e=this;this.drainQueues=function(){e._drainQueues()};this._schedule=r}Async.prototype.setScheduler=function(e){var t=this._schedule;this._schedule=e;this._customScheduler=true;return t};Async.prototype.hasCustomScheduler=function(){return this._customScheduler};Async.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};Async.prototype.fatalError=function(e,t){if(t){process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n");process.exit(2)}else{this.throwLater(e)}};Async.prototype.throwLater=function(e,t){if(arguments.length===1){t=e;e=function(){throw t}}if(typeof setTimeout!=="undefined"){setTimeout(function(){e(t)},0)}else try{this._schedule(function(){e(t)})}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}};function AsyncInvokeLater(e,t,n){this._lateQueue.push(e,t,n);this._queueTick()}function AsyncInvoke(e,t,n){this._normalQueue.push(e,t,n);this._queueTick()}function AsyncSettlePromises(e){this._normalQueue._pushOne(e);this._queueTick()}Async.prototype.invokeLater=AsyncInvokeLater;Async.prototype.invoke=AsyncInvoke;Async.prototype.settlePromises=AsyncSettlePromises;function _drainQueue(e){while(e.length()>0){_drainQueueStep(e)}}function _drainQueueStep(e){var t=e.shift();if(typeof t!=="function"){t._settlePromises()}else{var n=e.shift();var i=e.shift();t.call(n,i)}}Async.prototype._drainQueues=function(){_drainQueue(this._normalQueue);this._reset();this._haveDrainedQueues=true;_drainQueue(this._lateQueue)};Async.prototype._queueTick=function(){if(!this._isTickUsed){this._isTickUsed=true;this._schedule(this.drainQueues)}};Async.prototype._reset=function(){this._isTickUsed=false};e.exports=Async;e.exports.firstLineError=i},3767:e=>{"use strict";e.exports=function(e,t,n,i){var r=false;var s=function(e,t){this._reject(t)};var a=function(e,t){t.promiseRejectionQueued=true;t.bindingPromise._then(s,s,null,this,e)};var o=function(e,t){if((this._bitField&50397184)===0){this._resolveCallback(t.target)}};var c=function(e,t){if(!t.promiseRejectionQueued)this._reject(e)};e.prototype.bind=function(s){if(!r){r=true;e.prototype._propagateFrom=i.propagateFromFunction();e.prototype._boundValue=i.boundValueFunction()}var u=n(s);var l=new e(t);l._propagateFrom(this,1);var h=this._target();l._setBoundTo(u);if(u instanceof e){var f={promiseRejectionQueued:false,promise:l,target:h,bindingPromise:u};h._then(t,a,undefined,l,f);u._then(o,c,undefined,l,f);l._setOnCancel(u)}else{l._resolveCallback(h)}return l};e.prototype._setBoundTo=function(e){if(e!==undefined){this._bitField=this._bitField|2097152;this._boundTo=e}else{this._bitField=this._bitField&~2097152}};e.prototype._isBound=function(){return(this._bitField&2097152)===2097152};e.bind=function(t,n){return e.resolve(n).bind(t)}}},8710:(e,t,n)=>{"use strict";var i;if(typeof Promise!=="undefined")i=Promise;function noConflict(){try{if(Promise===r)Promise=i}catch(e){}return r}var r=n(3694)();r.noConflict=noConflict;e.exports=r},924:(e,t,n)=>{"use strict";var i=Object.create;if(i){var r=i(null);var s=i(null);r[" size"]=s[" size"]=0}e.exports=function(e){var t=n(7448);var i=t.canEvaluate;var a=t.isIdentifier;var o;var c;if(true){var u=function(e){return new Function("ensureMethod"," \n return function(obj) { \n 'use strict' \n var len = this.length; \n ensureMethod(obj, 'methodName'); \n switch(len) { \n case 1: return obj.methodName(this[0]); \n case 2: return obj.methodName(this[0], this[1]); \n case 3: return obj.methodName(this[0], this[1], this[2]); \n case 0: return obj.methodName(); \n default: \n return obj.methodName.apply(obj, this); \n } \n }; \n ".replace(/methodName/g,e))(ensureMethod)};var l=function(e){return new Function("obj"," \n 'use strict'; \n return obj.propertyName; \n ".replace("propertyName",e))};var h=function(e,t,n){var i=n[e];if(typeof i!=="function"){if(!a(e)){return null}i=t(e);n[e]=i;n[" size"]++;if(n[" size"]>512){var r=Object.keys(n);for(var s=0;s<256;++s)delete n[r[s]];n[" size"]=r.length-256}}return i};o=function(e){return h(e,u,r)};c=function(e){return h(e,l,s)}}function ensureMethod(n,i){var r;if(n!=null)r=n[i];if(typeof r!=="function"){var s="Object "+t.classString(n)+" has no method '"+t.toString(i)+"'";throw new e.TypeError(s)}return r}function caller(e){var t=this.pop();var n=ensureMethod(e,t);return n.apply(e,this)}e.prototype.call=function(e){var t=arguments.length;var n=new Array(Math.max(t-1,0));for(var r=1;r<t;++r){n[r-1]=arguments[r]}if(true){if(i){var s=o(e);if(s!==null){return this._then(s,undefined,undefined,n,undefined)}}}n.push(e);return this._then(caller,undefined,undefined,n,undefined)};function namedGetter(e){return e[this]}function indexedGetter(e){var t=+this;if(t<0)t=Math.max(0,t+e.length);return e[t]}e.prototype.get=function(e){var t=typeof e==="number";var n;if(!t){if(i){var r=c(e);n=r!==null?r:namedGetter}else{n=namedGetter}}else{n=indexedGetter}return this._then(n,undefined,undefined,e,undefined)}}},6616:(e,t,n)=>{"use strict";e.exports=function(e,t,i,r){var s=n(7448);var a=s.tryCatch;var o=s.errorObj;var c=e._async;e.prototype["break"]=e.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");var e=this;var t=e;while(e._isCancellable()){if(!e._cancelBy(t)){if(t._isFollowing()){t._followee().cancel()}else{t._cancelBranched()}break}var n=e._cancellationParent;if(n==null||!n._isCancellable()){if(e._isFollowing()){e._followee().cancel()}else{e._cancelBranched()}break}else{if(e._isFollowing())e._followee().cancel();e._setWillBeCancelled();t=e;e=n}}};e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--};e.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===undefined||this._branchesRemainingToCancel<=0};e.prototype._cancelBy=function(e){if(e===this){this._branchesRemainingToCancel=0;this._invokeOnCancel();return true}else{this._branchHasCancelled();if(this._enoughBranchesHaveCancelled()){this._invokeOnCancel();return true}}return false};e.prototype._cancelBranched=function(){if(this._enoughBranchesHaveCancelled()){this._cancel()}};e.prototype._cancel=function(){if(!this._isCancellable())return;this._setCancelled();c.invoke(this._cancelPromises,this,undefined)};e.prototype._cancelPromises=function(){if(this._length()>0)this._settlePromises()};e.prototype._unsetOnCancel=function(){this._onCancelField=undefined};e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()};e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()};e.prototype._doInvokeOnCancel=function(e,t){if(s.isArray(e)){for(var n=0;n<e.length;++n){this._doInvokeOnCancel(e[n],t)}}else if(e!==undefined){if(typeof e==="function"){if(!t){var i=a(e).call(this._boundValue());if(i===o){this._attachExtraTrace(i.e);c.throwLater(i.e)}}}else{e._resultCancelled(this)}}};e.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel();c.invoke(this._doInvokeOnCancel,this,e)};e.prototype._invokeInternalOnCancel=function(){if(this._isCancellable()){this._doInvokeOnCancel(this._onCancel(),true);this._unsetOnCancel()}};e.prototype._resultCancelled=function(){this.cancel()}}},8985:(e,t,n)=>{"use strict";e.exports=function(e){var t=n(7448);var i=n(3062).keys;var r=t.tryCatch;var s=t.errorObj;function catchFilter(n,a,o){return function(c){var u=o._boundValue();e:for(var l=0;l<n.length;++l){var h=n[l];if(h===Error||h!=null&&h.prototype instanceof Error){if(c instanceof h){return r(a).call(u,c)}}else if(typeof h==="function"){var f=r(h).call(u,c);if(f===s){return f}else if(f){return r(a).call(u,c)}}else if(t.isObject(c)){var p=i(h);for(var d=0;d<p.length;++d){var _=p[d];if(h[_]!=c[_]){continue e}}return r(a).call(u,c)}}return e}}return catchFilter}},5422:e=>{"use strict";e.exports=function(e){var t=false;var n=[];e.prototype._promiseCreated=function(){};e.prototype._pushContext=function(){};e.prototype._popContext=function(){return null};e._peekContext=e.prototype._peekContext=function(){};function Context(){this._trace=new Context.CapturedTrace(peekContext())}Context.prototype._pushContext=function(){if(this._trace!==undefined){this._trace._promiseCreated=null;n.push(this._trace)}};Context.prototype._popContext=function(){if(this._trace!==undefined){var e=n.pop();var t=e._promiseCreated;e._promiseCreated=null;return t}return null};function createContext(){if(t)return new Context}function peekContext(){var e=n.length-1;if(e>=0){return n[e]}return undefined}Context.CapturedTrace=null;Context.create=createContext;Context.deactivateLongStackTraces=function(){};Context.activateLongStackTraces=function(){var n=e.prototype._pushContext;var i=e.prototype._popContext;var r=e._peekContext;var s=e.prototype._peekContext;var a=e.prototype._promiseCreated;Context.deactivateLongStackTraces=function(){e.prototype._pushContext=n;e.prototype._popContext=i;e._peekContext=r;e.prototype._peekContext=s;e.prototype._promiseCreated=a;t=false};t=true;e.prototype._pushContext=Context.prototype._pushContext;e.prototype._popContext=Context.prototype._popContext;e._peekContext=e.prototype._peekContext=peekContext;e.prototype._promiseCreated=function(){var e=this._peekContext();if(e&&e._promiseCreated==null)e._promiseCreated=this}};return Context}},6004:(e,t,n)=>{"use strict";e.exports=function(e,t,i,r){var s=e._async;var a=n(5816).Warning;var o=n(7448);var c=n(3062);var u=o.canAttachTrace;var l;var h;var f=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/;var p=/\((?:timers\.js):\d+:\d+\)/;var d=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/;var _=null;var g=null;var v=false;var y;var m=!!(o.env("BLUEBIRD_DEBUG")!=0&&(false||o.env("BLUEBIRD_DEBUG")||o.env("NODE_ENV")==="development"));var b=!!(o.env("BLUEBIRD_WARNINGS")!=0&&(m||o.env("BLUEBIRD_WARNINGS")));var x=!!(o.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(m||o.env("BLUEBIRD_LONG_STACK_TRACES")));var w=o.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(b||!!o.env("BLUEBIRD_W_FORGOTTEN_RETURN"));var S;(function(){var t=[];function unhandledRejectionCheck(){for(var e=0;e<t.length;++e){t[e]._notifyUnhandledRejection()}unhandledRejectionClear()}function unhandledRejectionClear(){t.length=0}S=function(e){t.push(e);setTimeout(unhandledRejectionCheck,1)};c.defineProperty(e,"_unhandledRejectionCheck",{value:unhandledRejectionCheck});c.defineProperty(e,"_unhandledRejectionClear",{value:unhandledRejectionClear})})();e.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=e._bitField&~1048576|524288};e.prototype._ensurePossibleRejectionHandled=function(){if((this._bitField&524288)!==0)return;this._setRejectionIsUnhandled();S(this)};e.prototype._notifyUnhandledRejectionIsHandled=function(){fireRejectionEvent("rejectionHandled",l,undefined,this)};e.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456};e.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0};e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified();fireRejectionEvent("unhandledRejection",h,e,this)}};e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144};e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&~262144};e.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0};e.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576};e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&~1048576;if(this._isUnhandledRejectionNotified()){this._unsetUnhandledRejectionIsNotified();this._notifyUnhandledRejectionIsHandled()}};e.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0};e.prototype._warn=function(e,t,n){return warn(e,t,n||this)};e.onPossiblyUnhandledRejection=function(t){var n=e._getContext();h=o.contextBind(n,t)};e.onUnhandledRejectionHandled=function(t){var n=e._getContext();l=o.contextBind(n,t)};var k=function(){};e.longStackTraces=function(){if(s.haveItemsQueued()&&!j.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}if(!j.longStackTraces&&longStackTracesIsSupported()){var n=e.prototype._captureStackTrace;var i=e.prototype._attachExtraTrace;var r=e.prototype._dereferenceTrace;j.longStackTraces=true;k=function(){if(s.haveItemsQueued()&&!j.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}e.prototype._captureStackTrace=n;e.prototype._attachExtraTrace=i;e.prototype._dereferenceTrace=r;t.deactivateLongStackTraces();j.longStackTraces=false};e.prototype._captureStackTrace=longStackTracesCaptureStackTrace;e.prototype._attachExtraTrace=longStackTracesAttachExtraTrace;e.prototype._dereferenceTrace=longStackTracesDereferenceTrace;t.activateLongStackTraces()}};e.hasLongStackTraces=function(){return j.longStackTraces&&longStackTracesIsSupported()};var C={unhandledrejection:{before:function(){var e=o.global.onunhandledrejection;o.global.onunhandledrejection=null;return e},after:function(e){o.global.onunhandledrejection=e}},rejectionhandled:{before:function(){var e=o.global.onrejectionhandled;o.global.onrejectionhandled=null;return e},after:function(e){o.global.onrejectionhandled=e}}};var E=function(){var e=function(e,t){if(e){var n;try{n=e.before();return!o.global.dispatchEvent(t)}finally{e.after(n)}}else{return!o.global.dispatchEvent(t)}};try{if(typeof CustomEvent==="function"){var t=new CustomEvent("CustomEvent");o.global.dispatchEvent(t);return function(t,n){t=t.toLowerCase();var i={detail:n,cancelable:true};var r=new CustomEvent(t,i);c.defineProperty(r,"promise",{value:n.promise});c.defineProperty(r,"reason",{value:n.reason});return e(C[t],r)}}else if(typeof Event==="function"){var t=new Event("CustomEvent");o.global.dispatchEvent(t);return function(t,n){t=t.toLowerCase();var i=new Event(t,{cancelable:true});i.detail=n;c.defineProperty(i,"promise",{value:n.promise});c.defineProperty(i,"reason",{value:n.reason});return e(C[t],i)}}else{var t=document.createEvent("CustomEvent");t.initCustomEvent("testingtheevent",false,true,{});o.global.dispatchEvent(t);return function(t,n){t=t.toLowerCase();var i=document.createEvent("CustomEvent");i.initCustomEvent(t,false,true,n);return e(C[t],i)}}}catch(e){}return function(){return false}}();var P=function(){if(o.isNode){return function(){return process.emit.apply(process,arguments)}}else{if(!o.global){return function(){return false}}return function(e){var t="on"+e.toLowerCase();var n=o.global[t];if(!n)return false;n.apply(o.global,[].slice.call(arguments,1));return true}}}();function generatePromiseLifecycleEventObject(e,t){return{promise:t}}var A={promiseCreated:generatePromiseLifecycleEventObject,promiseFulfilled:generatePromiseLifecycleEventObject,promiseRejected:generatePromiseLifecycleEventObject,promiseResolved:generatePromiseLifecycleEventObject,promiseCancelled:generatePromiseLifecycleEventObject,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:generatePromiseLifecycleEventObject};var O=function(e){var t=false;try{t=P.apply(null,arguments)}catch(e){s.throwLater(e);t=true}var n=false;try{n=E(e,A[e].apply(null,arguments))}catch(e){s.throwLater(e);n=true}return n||t};e.config=function(t){t=Object(t);if("longStackTraces"in t){if(t.longStackTraces){e.longStackTraces()}else if(!t.longStackTraces&&e.hasLongStackTraces()){k()}}if("warnings"in t){var n=t.warnings;j.warnings=!!n;w=j.warnings;if(o.isObject(n)){if("wForgottenReturn"in n){w=!!n.wForgottenReturn}}}if("cancellation"in t&&t.cancellation&&!j.cancellation){if(s.haveItemsQueued()){throw new Error("cannot enable cancellation after promises are in use")}e.prototype._clearCancellationData=cancellationClearCancellationData;e.prototype._propagateFrom=cancellationPropagateFrom;e.prototype._onCancel=cancellationOnCancel;e.prototype._setOnCancel=cancellationSetOnCancel;e.prototype._attachCancellationCallback=cancellationAttachCancellationCallback;e.prototype._execute=cancellationExecute;T=cancellationPropagateFrom;j.cancellation=true}if("monitoring"in t){if(t.monitoring&&!j.monitoring){j.monitoring=true;e.prototype._fireEvent=O}else if(!t.monitoring&&j.monitoring){j.monitoring=false;e.prototype._fireEvent=defaultFireEvent}}if("asyncHooks"in t&&o.nodeSupportsAsyncResource){var a=j.asyncHooks;var c=!!t.asyncHooks;if(a!==c){j.asyncHooks=c;if(c){i()}else{r()}}}return e};function defaultFireEvent(){return false}e.prototype._fireEvent=defaultFireEvent;e.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}};e.prototype._onCancel=function(){};e.prototype._setOnCancel=function(e){};e.prototype._attachCancellationCallback=function(e){};e.prototype._captureStackTrace=function(){};e.prototype._attachExtraTrace=function(){};e.prototype._dereferenceTrace=function(){};e.prototype._clearCancellationData=function(){};e.prototype._propagateFrom=function(e,t){};function cancellationExecute(e,t,n){var i=this;try{e(t,n,function(e){if(typeof e!=="function"){throw new TypeError("onCancel must be a function, got: "+o.toString(e))}i._attachCancellationCallback(e)})}catch(e){return e}}function cancellationAttachCancellationCallback(e){if(!this._isCancellable())return this;var t=this._onCancel();if(t!==undefined){if(o.isArray(t)){t.push(e)}else{this._setOnCancel([t,e])}}else{this._setOnCancel(e)}}function cancellationOnCancel(){return this._onCancelField}function cancellationSetOnCancel(e){this._onCancelField=e}function cancellationClearCancellationData(){this._cancellationParent=undefined;this._onCancelField=undefined}function cancellationPropagateFrom(e,t){if((t&1)!==0){this._cancellationParent=e;var n=e._branchesRemainingToCancel;if(n===undefined){n=0}e._branchesRemainingToCancel=n+1}if((t&2)!==0&&e._isBound()){this._setBoundTo(e._boundTo)}}function bindingPropagateFrom(e,t){if((t&2)!==0&&e._isBound()){this._setBoundTo(e._boundTo)}}var T=bindingPropagateFrom;function boundValueFunction(){var t=this._boundTo;if(t!==undefined){if(t instanceof e){if(t.isFulfilled()){return t.value()}else{return undefined}}}return t}function longStackTracesCaptureStackTrace(){this._trace=new CapturedTrace(this._peekContext())}function longStackTracesAttachExtraTrace(e,t){if(u(e)){var n=this._trace;if(n!==undefined){if(t)n=n._parent}if(n!==undefined){n.attachExtraTrace(e)}else if(!e.__stackCleaned__){var i=parseStackAndMessage(e);o.notEnumerableProp(e,"stack",i.message+"\n"+i.stack.join("\n"));o.notEnumerableProp(e,"__stackCleaned__",true)}}}function longStackTracesDereferenceTrace(){this._trace=undefined}function checkForgottenReturns(e,t,n,i,r){if(e===undefined&&t!==null&&w){if(r!==undefined&&r._returnedNonUndefined())return;if((i._bitField&65535)===0)return;if(n)n=n+" ";var s="";var a="";if(t._trace){var o=t._trace.stack.split("\n");var c=cleanStack(o);for(var u=c.length-1;u>=0;--u){var l=c[u];if(!p.test(l)){var h=l.match(d);if(h){s="at "+h[1]+":"+h[2]+":"+h[3]+" "}break}}if(c.length>0){var f=c[0];for(var u=0;u<o.length;++u){if(o[u]===f){if(u>0){a="\n"+o[u-1]}break}}}}var _="a promise was created in a "+n+"handler "+s+"but was not returned from it, "+"see http://goo.gl/rRqMUw"+a;i._warn(_,true,t)}}function deprecated(e,t){var n=e+" is deprecated and will be removed in a future version.";if(t)n+=" Use "+t+" instead.";return warn(n)}function warn(t,n,i){if(!j.warnings)return;var r=new a(t);var s;if(n){i._attachExtraTrace(r)}else if(j.longStackTraces&&(s=e._peekContext())){s.attachExtraTrace(r)}else{var o=parseStackAndMessage(r);r.stack=o.message+"\n"+o.stack.join("\n")}if(!O("warning",r)){formatAndLogError(r,"",true)}}function reconstructStack(e,t){for(var n=0;n<t.length-1;++n){t[n].push("From previous event:");t[n]=t[n].join("\n")}if(n<t.length){t[n]=t[n].join("\n")}return e+"\n"+t.join("\n")}function removeDuplicateOrEmptyJumps(e){for(var t=0;t<e.length;++t){if(e[t].length===0||t+1<e.length&&e[t][0]===e[t+1][0]){e.splice(t,1);t--}}}function removeCommonRoots(e){var t=e[0];for(var n=1;n<e.length;++n){var i=e[n];var r=t.length-1;var s=t[r];var a=-1;for(var o=i.length-1;o>=0;--o){if(i[o]===s){a=o;break}}for(var o=a;o>=0;--o){var c=i[o];if(t[r]===c){t.pop();r--}else{break}}t=i}}function cleanStack(e){var t=[];for(var n=0;n<e.length;++n){var i=e[n];var r=" (No stack trace)"===i||_.test(i);var s=r&&R(i);if(r&&!s){if(v&&i.charAt(0)!==" "){i=" "+i}t.push(i)}}return t}function stackFramesAsArray(e){var t=e.stack.replace(/\s+$/g,"").split("\n");for(var n=0;n<t.length;++n){var i=t[n];if(" (No stack trace)"===i||_.test(i)){break}}if(n>0&&e.name!="SyntaxError"){t=t.slice(n)}return t}function parseStackAndMessage(e){var t=e.stack;var n=e.toString();t=typeof t==="string"&&t.length>0?stackFramesAsArray(e):[" (No stack trace)"];return{message:n,stack:e.name=="SyntaxError"?t:cleanStack(t)}}function forma