UNPKG

promisu

Version:

functional promise with map filter reduce scan all race every some few try waitfor finally queue debounce throttle

1 lines 57.1 kB
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=91)}([function(t,e){var n=t.exports={version:"2.5.2"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(2),o=n(0),i=n(9),u=n(12),c=function(t,e,n){var f,a,s,l=t&c.F,p=t&c.G,h=t&c.S,v=t&c.P,d=t&c.B,y=t&c.W,_=p?o:o[e]||(o[e]={}),m=_.prototype,g=p?r:h?r[e]:(r[e]||{}).prototype;for(f in p&&(n=e),n)(a=!l&&g&&void 0!==g[f])&&f in _||(s=a?g[f]:n[f],_[f]=p&&"function"!=typeof g[f]?n[f]:d&&a?i(s,r):y&&g[f]==s?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(s):v&&"function"==typeof s?i(Function.call,s):s,v&&((_.virtual||(_.virtual={}))[f]=s,t&c.R&&m&&!m[f]&&u(m,f,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(45)("wks"),o=n(30),i=n(2).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){t.exports={default:n(104),__esModule:!0}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(6),o=n(59),i=n(41),u=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(14);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){t.exports={default:n(93),__esModule:!0}},function(t,e,n){var r=n(7),o=n(21);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(37),o=n(38);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(9),o=n(64),i=n(65),u=n(6),c=n(29),f=n(47),a={},s={};(e=t.exports=function(t,e,n,l,p){var h,v,d,y,_=p?function(){return t}:f(t),m=r(n,l,e?2:1),g=0;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(i(_)){for(h=c(t.length);h>g;g++)if((y=e?m(u(v=t[g])[0],v[1]):m(t[g]))===a||y===s)return y}else for(d=_.call(t);!(v=d.next()).done;)if((y=o(d,m,v.value,e))===a||y===s)return y}).BREAK=a,e.RETURN=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=r(n(11)),i=r(n(49)),u=r(n(5));t.exports=function(t,e,n){return new u.default(function(r,c){var f=(0,i.default)({concurrency:1/0},n);if("function"!=typeof e)throw new TypeError("mapFn function is required");var a=f.concurrency;if(!("number"==typeof a&&a>=1))throw new TypeError("Expected concurrency to be a number >= 1");for(var s=[],l=(0,o.default)(t),p=!1,h=!1,v=0,d=0,y=0;y<a&&(function t(){if(!p){var n=l.next(),o=d;if(d++,n.done)return h=!0,void(0===v&&r(s));v++,u.default.resolve(n.value).then(function(t){return e(t,o)}).then(function(e){s[o]=e,v--,t()}).catch(function(t){p=!0,c(t)})}}(),!h);y++);})}},function(t,e,n){n(94);for(var r=n(2),o=n(12),i=n(19),u=n(4)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var a=c[f],s=r[a],l=s&&s.prototype;l&&!l[u]&&o(l,u,a),i[a]=i.Array}},function(t,e){t.exports={}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(6),o=n(97),i=n(46),u=n(44)("IE_PROTO"),c=function(){},f=function(){var t,e=n(40)("iframe"),r=i.length;for(e.style.display="none",n(61).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;r--;)delete f.prototype[i[r]];return f()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=f(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(7).f,o=n(13),i=n(4)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(38);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";var r=n(100)(!0);n(39)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(30)("meta"),o=n(3),i=n(13),u=n(7).f,c=0,f=Object.isExtensible||function(){return!0},a=!n(10)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!f(t))return"F";if(!e)return"E";s(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!f(t))return!0;if(!e)return!1;s(t)}return t[r].w},onFreeze:function(t){return a&&l.NEED&&f(t)&&!i(t,r)&&s(t),t}}},function(t,e){t.exports=!0},function(t,e,n){var r=n(60),o=n(46);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(43),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(12);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(27),o=n(1),i=n(42),u=n(12),c=n(13),f=n(19),a=n(96),s=n(23),l=n(62),p=n(4)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,d,y,_,m){a(n,e,d);var g,w,x,b=function(t){if(!h&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",O="values"==y,S=!1,j=t.prototype,P=j[p]||j["@@iterator"]||y&&j[y],M=P||b(y),k=y?O?b("entries"):M:void 0,T="Array"==e&&j.entries||P;if(T&&(x=l(T.call(new t)))!==Object.prototype&&x.next&&(s(x,E,!0),r||c(x,p)||u(x,p,v)),O&&P&&"values"!==P.name&&(S=!0,M=function(){return P.call(this)}),r&&!m||!h&&!S&&j[p]||u(j,p,M),f[e]=M,f[E]=v,y)if(g={values:O?M:b("values"),keys:_?M:b("keys"),entries:k},m)for(w in g)w in j||i(j,w,g[w]);else o(o.P+o.F*(h||S),e,g);return g}},function(t,e,n){var r=n(3),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){t.exports=n(12)},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(45)("keys"),o=n(30);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(2),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(48),o=n(4)("iterator"),i=n(19);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(20),o=n(4)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){t.exports={default:n(102),__esModule:!0}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(14);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},function(t,e,n){t.exports={default:n(110),__esModule:!0}},function(t,e,n){t.exports={default:n(112),__esModule:!0}},function(t,e,n){e.f=n(4)},function(t,e,n){var r=n(2),o=n(0),i=n(27),u=n(54),c=n(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:u.f(t)})}},function(t,e,n){t.exports={default:n(132),__esModule:!0}},function(t,e,n){var r=n(9),o=n(37),i=n(24),u=n(29),c=n(148);t.exports=function(t,e){var n=1==t,f=2==t,a=3==t,s=4==t,l=6==t,p=5==t||l,h=e||c;return function(e,c,v){for(var d,y,_=i(e),m=o(_),g=r(c,v,3),w=u(m.length),x=0,b=n?h(e,w):f?h(e,0):void 0;w>x;x++)if((p||x in m)&&(y=g(d=m[x],x,_),t))if(n)b[x]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return x;case 2:b.push(d)}else if(s)return!1;return l?-1:a||s?s:b}}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports=!n(8)&&!n(10)(function(){return 7!=Object.defineProperty(n(40)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(13),o=n(15),i=n(98)(!1),u=n(44)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,a=[];for(n in c)n!=u&&r(c,n)&&a.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~i(a,n)||a.push(n));return a}},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(13),o=n(24),i=n(44)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){"use strict";var r=n(28),o=n(50),i=n(31),u=n(24),c=n(37),f=Object.assign;t.exports=!f||n(10)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||Object.keys(f({},e)).join("")!=r})?function(t,e){for(var n=u(t),f=arguments.length,a=1,s=o.f,l=i.f;f>a;)for(var p,h=c(arguments[a++]),v=s?r(h).concat(s(h)):r(h),d=v.length,y=0;d>y;)l.call(h,p=v[y++])&&(n[p]=h[p]);return n}:f},function(t,e,n){var r=n(6);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(19),o=n(4)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(6),o=n(14),i=n(4)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||void 0==(n=r(u)[i])?e:o(n)}},function(t,e,n){var r,o,i,u=n(9),c=n(68),f=n(61),a=n(40),s=n(2),l=s.process,p=s.setImmediate,h=s.clearImmediate,v=s.MessageChannel,d=s.Dispatch,y=0,_={},m=function(){var t=+this;if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},g=function(t){m.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return _[++y]=function(){c("function"==typeof t?t:Function(t),e)},r(y),y},h=function(t){delete _[t]},"process"==n(20)(l)?r=function(t){l.nextTick(u(m,t,1))}:d&&d.now?r=function(t){d.now(u(m,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=g,r=u(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",g,!1)):r="onreadystatechange"in a("script")?function(t){f.appendChild(a("script")).onreadystatechange=function(){f.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),t.exports={set:p,clear:h}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(6),o=n(3),i=n(51);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(2),o=n(0),i=n(7),u=n(8),c=n(4)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];u&&e&&!e[c]&&i.f(e,c,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(4)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=r(n(52)),i=r(n(53)),u=r(n(75)),c=r(n(76)),f=r(n(77)),a=r(n(35)),s=r(n(78)),l=r(n(84));t.exports=function(t){function e(){return(0,a.default)(this,e),(0,s.default)(this,(e.__proto__||(0,f.default)(e)).apply(this,arguments))}return(0,l.default)(e,t),e}(function(t){function e(){var e=(0,c.default)(t,(0,u.default)(arguments));return(0,i.default)(e,(0,f.default)(this)),e}return e.prototype=(0,o.default)(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i.default?(0,i.default)(e,t):e.__proto__=t,e}(Error))},function(t,e,n){var r=n(31),o=n(21),i=n(15),u=n(41),c=n(13),f=n(59),a=Object.getOwnPropertyDescriptor;e.f=n(8)?a:function(t,e){if(t=i(t),e=u(e,!0),f)try{return a(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){t.exports={default:n(115),__esModule:!0}},function(t,e,n){t.exports={default:n(118),__esModule:!0}},function(t,e,n){t.exports={default:n(121),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(79),i=(r=o)&&r.__esModule?r:{default:r};e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,i.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=r(n(80)),i=r(n(81)),u="function"==typeof i.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};e.default="function"==typeof i.default&&"symbol"===u(o.default)?function(t){return void 0===t?"undefined":u(t)}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":void 0===t?"undefined":u(t)}},function(t,e,n){t.exports={default:n(124),__esModule:!0}},function(t,e,n){t.exports={default:n(125),__esModule:!0}},function(t,e,n){var r=n(20);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(60),o=n(46).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=r(n(53)),i=r(n(52)),u=r(n(79));e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,u.default)(e)));t.prototype=(0,i.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(137),i=(r=o)&&r.__esModule?r:{default:r};e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=n(2),o=n(1),i=n(26),u=n(10),c=n(12),f=n(34),a=n(16),s=n(33),l=n(3),p=n(23),h=n(7).f,v=n(57)(0),d=n(8);t.exports=function(t,e,n,y,_,m){var g=r[t],w=g,x=_?"set":"add",b=w&&w.prototype,E={};return d&&"function"==typeof w&&(m||b.forEach&&!u(function(){(new w).entries().next()}))?(w=e(function(e,n){s(e,w,t,"_c"),e._c=new g,void 0!=n&&a(n,_,e[x],e)}),v("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in b&&(!m||"clear"!=t)&&c(w.prototype,t,function(n,r){if(s(this,w,t),!e&&m&&!l(n))return"get"==t&&void 0;var o=this._c[t](0===n?0:n,r);return e?this:o})}),m||h(w.prototype,"size",{get:function(){return this._c.size}})):(w=y.getConstructor(e,t,_,x),f(w.prototype,n),i.NEED=!0),p(w,t),E[t]=w,o(o.G+o.W+o.F,E),m||y.setStrong(w,t,_),w}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var r=n(1),o=n(14),i=n(9),u=n(16);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,c,f=arguments[1];return o(this),(e=void 0!==f)&&o(f),void 0==t?new this:(n=[],e?(r=0,c=i(f,arguments[2],2),u(t,!1,function(t){n.push(c(t,r++))})):u(t,!1,n.push,n),new this(n))}})}},function(t,e,n){t.exports={default:n(155),__esModule:!0}},function(t,e,n){"use strict";var r=n(92),o=n(17),i=n(109),u=n(131),c=n(134),f=n(135),a=n(136),s=n(158),l=n(159),p=n(160),h=n(161),v=n(162),d=n(163),y=n(164),_=n(165);t.exports={PromisuAll:r,PromisuMap:o,PromisuEvery:i,PromisuFew:u,PromisuFilter:c,PromisuFinally:f,PromisuQueue:a,PromisuRace:s,PromisuReduce:l,PromisuSome:p,PromisuTry:h,PromisuWaitFor:v,PromisuScan:d,PromisuDebounce:y,PromisuThrottle:_}},function(t,e,n){"use strict";var r=n(17);t.exports=function(t,e){return r(t,function(t){return t()},e)}},function(t,e,n){n(18),n(25),t.exports=n(101)},function(t,e,n){"use strict";var r=n(95),o=n(58),i=n(19),u=n(15);t.exports=n(39)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e,n){"use strict";var r=n(22),o=n(21),i=n(23),u={};n(12)(u,n(4)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(7),o=n(6),i=n(28);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,f=0;c>f;)r.f(t,n=u[f++],e[n]);return t}},function(t,e,n){var r=n(15),o=n(29),i=n(99);t.exports=function(t){return function(e,n,u){var c,f=r(e),a=o(f.length),s=i(u,a);if(t&&n!=n){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(43),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(43),o=n(38);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),f=r(n),a=c.length;return f<0||f>=a?t?"":void 0:(i=c.charCodeAt(f))<55296||i>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):u-56320+(i-55296<<10)+65536}}},function(t,e,n){var r=n(6),o=n(47);t.exports=n(0).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){n(103),t.exports=n(0).Object.assign},function(t,e,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(63)})},function(t,e,n){n(32),n(25),n(18),n(105),n(107),n(108),t.exports=n(0).Promise},function(t,e,n){"use strict";var r,o,i,u,c=n(27),f=n(2),a=n(9),s=n(48),l=n(1),p=n(3),h=n(14),v=n(33),d=n(16),y=n(66),_=n(67).set,m=n(106)(),g=n(51),w=n(69),x=n(70),b=f.TypeError,E=f.process,O=f.Promise,S="process"==s(E),j=function(){},P=o=g.f,M=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[n(4)("species")]=function(t){t(j,j)};return(S||"function"==typeof PromiseRejectionEvent)&&t.then(j)instanceof e}catch(t){}}(),k=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},T=function(t,e){if(!t._n){t._n=!0;var n=t._c;m(function(){for(var r=t._v,o=1==t._s,i=0;n.length>i;)!function(e){var n,i,u=o?e.ok:e.fail,c=e.resolve,f=e.reject,a=e.domain;try{u?(o||(2==t._h&&N(t),t._h=1),!0===u?n=r:(a&&a.enter(),n=u(r),a&&a.exit()),n===e.promise?f(b("Promise-chain cycle")):(i=k(n))?i.call(n,c,f):c(n)):f(r)}catch(t){f(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&L(t)})}},L=function(t){_.call(f,function(){var e,n,r,o=t._v,i=F(t);if(i&&(e=w(function(){S?E.emit("unhandledRejection",o,t):(n=f.onunhandledrejection)?n({promise:t,reason:o}):(r=f.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=S||F(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},F=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if((e=n[r++]).fail||!F(e.promise))return!1;return!0},N=function(t){_.call(f,function(){var e;S?E.emit("rejectionHandled",t):(e=f.onrejectionhandled)&&e({promise:t,reason:t._v})})},A=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),T(e,!0))},C=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw b("Promise can't be resolved itself");(e=k(t))?m(function(){var r={_w:n,_d:!1};try{e.call(t,a(C,r,1),a(A,r,1))}catch(t){A.call(r,t)}}):(n._v=t,n._s=1,T(n,!1))}catch(t){A.call({_w:n,_d:!1},t)}}};M||(O=function(t){v(this,O,"Promise","_h"),h(t),r.call(this);try{t(a(C,this,1),a(A,this,1))}catch(t){A.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(34)(O.prototype,{then:function(t,e){var n=P(y(this,O));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=S?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&T(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=a(C,t,1),this.reject=a(A,t,1)},g.f=P=function(t){return t===O||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!M,{Promise:O}),n(23)(O,"Promise"),n(71)("Promise"),u=n(0).Promise,l(l.S+l.F*!M,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(c||!M),"Promise",{resolve:function(t){return x(c&&this===u?O:this,t)}}),l(l.S+l.F*!(M&&n(72)(function(t){O.all(t).catch(j)})),"Promise",{all:function(t){var e=this,n=P(e),r=n.resolve,o=n.reject,i=w(function(){var n=[],i=0,u=1;d(t,!1,function(t){var c=i++,f=!1;n.push(void 0),u++,e.resolve(t).then(function(t){f||(f=!0,n[c]=t,--u||r(n))},o)}),--u||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,o=w(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){var r=n(2),o=n(67).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,c=r.Promise,f="process"==n(20)(u);t.exports=function(){var t,e,n,a=function(){var r,o;for(f&&(r=u.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(f)n=function(){u.nextTick(a)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var s=c.resolve();n=function(){s.then(a)}}else n=function(){o.call(r,a)};else{var l=!0,p=document.createTextNode("");new i(a).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(2),u=n(66),c=n(70);r(r.P+r.R,"Promise",{finally:function(t){var e=u(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then(function(){return n})}:t,n?function(n){return c(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(1),o=n(51),i=n(69);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";var r,o=n(5),i=(r=o)&&r.__esModule?r:{default:r},u=n(17),c=n(73);t.exports=function(t,e,n){return u(t,function(t){return function(e,n){return i.default.resolve(t(e,n)).then(function(t){if(!t)throw new c;return t})}}(e),n).then(function(){return!0}).catch(function(t){if(t instanceof c)return!1;throw t})}},function(t,e,n){n(111);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(1);r(r.S,"Object",{create:n(22)})},function(t,e,n){n(113),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){var r=n(1);r(r.S,"Object",{setPrototypeOf:n(114).set})},function(t,e,n){var r=n(3),o=n(6),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(9)(Function.call,n(74).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){n(25),n(116),t.exports=n(0).Array.from},function(t,e,n){"use strict";var r=n(9),o=n(1),i=n(24),u=n(64),c=n(65),f=n(29),a=n(117),s=n(47);o(o.S+o.F*!n(72)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=i(t),h="function"==typeof this?this:Array,v=arguments.length,d=v>1?arguments[1]:void 0,y=void 0!==d,_=0,m=s(p);if(y&&(d=r(d,v>2?arguments[2]:void 0,2)),void 0==m||h==Array&&c(m))for(n=new h(e=f(p.length));e>_;_++)a(n,_,y?d(p[_],_):p[_]);else for(l=m.call(p),n=new h;!(o=l.next()).done;_++)a(n,_,y?u(l,d,[o.value,_],!0):o.value);return n.length=_,n}})},function(t,e,n){"use strict";var r=n(7),o=n(21);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){n(119),t.exports=n(0).Reflect.construct},function(t,e,n){var r=n(1),o=n(22),i=n(14),u=n(6),c=n(3),f=n(10),a=n(120),s=(n(2).Reflect||{}).construct,l=f(function(){function t(){}return!(s(function(){},[],t)instanceof t)}),p=!f(function(){s(function(){})});r(r.S+r.F*(l||p),"Reflect",{construct:function(t,e){i(t),u(e);var n=arguments.length<3?t:i(arguments[2]);if(p&&!l)return s(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(a.apply(t,r))}var f=n.prototype,h=o(c(f)?f:Object.prototype),v=Function.apply.call(t,h,e);return c(v)?v:h}})},function(t,e,n){"use strict";var r=n(14),o=n(3),i=n(68),u=[].slice,c={};t.exports=Function.bind||function(t){var e=r(this),n=u.call(arguments,1),f=function(){var r=n.concat(u.call(arguments));return this instanceof f?function(t,e,n){if(!(e in c)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";c[e]=Function("F,a","return new F("+r.join(",")+")")}return c[e](t,n)}(e,r.length,r):i(e,r,t)};return o(e.prototype)&&(f.prototype=e.prototype),f}},function(t,e,n){n(122),t.exports=n(0).Object.getPrototypeOf},function(t,e,n){var r=n(24),o=n(62);n(123)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(1),o=n(0),i=n(10);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){n(25),n(18),t.exports=n(54).f("iterator")},function(t,e,n){n(126),n(32),n(129),n(130),t.exports=n(0).Symbol},function(t,e,n){"use strict";var r=n(2),o=n(13),i=n(8),u=n(1),c=n(42),f=n(26).KEY,a=n(10),s=n(45),l=n(23),p=n(30),h=n(4),v=n(54),d=n(55),y=n(127),_=n(82),m=n(6),g=n(3),w=n(15),x=n(41),b=n(21),E=n(22),O=n(128),S=n(74),j=n(7),P=n(28),M=S.f,k=j.f,T=O.f,L=r.Symbol,F=r.JSON,N=F&&F.stringify,A=h("_hidden"),C=h("toPrimitive"),R={}.propertyIsEnumerable,q=s("symbol-registry"),I=s("symbols"),G=s("op-symbols"),W=Object.prototype,D="function"==typeof L,z=r.QObject,J=!z||!z.prototype||!z.prototype.findChild,V=i&&a(function(){return 7!=E(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=M(W,e);r&&delete W[e],k(t,e,n),r&&t!==W&&k(W,e,r)}:k,B=function(t){var e=I[t]=E(L.prototype);return e._k=t,e},K=D&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},H=function(t,e,n){return t===W&&H(G,e,n),m(t),e=x(e,!0),m(n),o(I,e)?(n.enumerable?(o(t,A)&&t[A][e]&&(t[A][e]=!1),n=E(n,{enumerable:b(0,!1)})):(o(t,A)||k(t,A,b(1,{})),t[A][e]=!0),V(t,e,n)):k(t,e,n)},U=function(t,e){m(t);for(var n,r=y(e=w(e)),o=0,i=r.length;i>o;)H(t,n=r[o++],e[n]);return t},Y=function(t){var e=R.call(this,t=x(t,!0));return!(this===W&&o(I,t)&&!o(G,t))&&(!(e||!o(this,t)||!o(I,t)||o(this,A)&&this[A][t])||e)},Q=function(t,e){if(t=w(t),e=x(e,!0),t!==W||!o(I,e)||o(G,e)){var n=M(t,e);return!n||!o(I,e)||o(t,A)&&t[A][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=T(w(t)),r=[],i=0;n.length>i;)o(I,e=n[i++])||e==A||e==f||r.push(e);return r},Z=function(t){for(var e,n=t===W,r=T(n?G:w(t)),i=[],u=0;r.length>u;)!o(I,e=r[u++])||n&&!o(W,e)||i.push(I[e]);return i};D||(c((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(G,n),o(this,A)&&o(this[A],t)&&(this[A][t]=!1),V(this,t,b(1,n))};return i&&J&&V(W,t,{configurable:!0,set:e}),B(t)}).prototype,"toString",function(){return this._k}),S.f=Q,j.f=H,n(83).f=O.f=X,n(31).f=Y,n(50).f=Z,i&&!n(27)&&c(W,"propertyIsEnumerable",Y,!0),v.f=function(t){return B(h(t))}),u(u.G+u.W+u.F*!D,{Symbol:L});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)h($[tt++]);for(var et=P(h.store),nt=0;et.length>nt;)d(et[nt++]);u(u.S+u.F*!D,"Symbol",{for:function(t){return o(q,t+="")?q[t]:q[t]=L(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in q)if(q[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),u(u.S+u.F*!D,"Object",{create:function(t,e){return void 0===e?E(t):U(E(t),e)},defineProperty:H,defineProperties:U,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),F&&u(u.S+u.F*(!D||a(function(){var t=L();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(g(e)||void 0!==t)&&!K(t))return _(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,N.apply(F,r)}}),L.prototype[C]||n(12)(L.prototype,C,L.prototype.valueOf),l(L,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(28),o=n(50),i=n(31);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,c=n(t),f=i.f,a=0;c.length>a;)f.call(t,u=c[a++])&&e.push(u);return e}},function(t,e,n){var r=n(15),o=n(83).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){n(55)("asyncIterator")},function(t,e,n){n(55)("observable")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=r(n(11)),i=r(n(56)),u=r(n(49)),c=r(n(5));t.exports=function(t,e){return new c.default(function(n,r){var f=(0,u.default)({count:1},e);if(!(0,i.default)(f.count))throw new TypeError("Expect a finite number for options.count");var a=[],s=[],l=0,p=1-f.count,h=1-f.count,v=!1,d=function(t){v||("function"!=typeof f.filter||f.filter(t)?(a.push(t),0==--f.count&&(v=!0,n(a))):0==--h&&(v=!0,r(new Error("Not enough values passed filter option"))))},y=function(t){if(!v&&(s.push(t),0==--p)){v=!0;var e=s.map(function(t){return t.message||t.name}).join(";");r(new Error(e))}},_=!0,m=!1,g=void 0;try{for(var w,x=(0,o.default)(t);!(_=(w=x.next()).done);_=!0){var b=w.value;p++,h++,l++,c.default.resolve(b).then(d,y)}}catch(t){m=!0,g=t}finally{try{!_&&x.return&&x.return()}finally{if(m)throw g}}if(f.count>l)throw new Error("Expect input to contain >= "+f.count+" items, but only "+l+" items")})}},function(t,e,n){n(133),t.exports=n(0).Number.isFinite},function(t,e,n){var r=n(1),o=n(2).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){"use strict";var r,o=n(5),i=(r=o)&&r.__esModule?r:{default:r},u=n(17);t.exports=function(t,e,n){return u(t,function(t,n){return i.default.all([e(t,n),t])},n).then(function(t){return t.filter(function(t){return Boolean(t[0])}).map(function(t){return t[1]})})}},function(t,e,n){"use strict";var r,o=n(5),i=(r=o)&&r.__esModule?r:{default:r},u=function(){};t.exports=function(t,e){var n=e||u;return t.then(function(t){return i.default.resolve(n()).then(function(){return t})}).catch(function(t){return i.default.resolve(n()).then(function(){throw t})})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=r(n(5)),i=r(n(49)),u=r(n(35)),c=r(n(85)),f=n(140),a=function(){var t=function(){function t(e){(0,u.default)(this,t);var n=(0,i.default)({concurrency:1/0,queueClass:f},e);if(!("number"==typeof n.concurrency&&n.concurrency>=1))throw new TypeError("Expected concurrency to be a number >= 1");this.queue=new n.queueClass,this._queueClass=n.queueClass,this._pendingCount=0,this._concurrency=n.concurrency,this._resolveEmpty=function(){},this._resolveIdle=function(){}}return(0,c.default)(t,[{key:"_next",value:function(){this._pendingCount--,this.queue.size>0?this.queue.dequeue().element():(this._resolveEmpty(),0===this._pendingCount&&this._resolveIdle())}},{key:"add",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new o.default(function(r,o){var i=function(){e._pendingCount++,t().then(function(t){r(t),e._next()}).catch(function(t){o(t),e._next()})};e._pendingCount<e._concurrency?i():e.queue.enqueue(i,n.priority)})}},{key:"addAll",value:function(t,e){var n=this;return o.default.all(t.map(function(t){return n.add(t,e)}))}},{key:"clear",value:function(){this.queue=new this._queueClass}},{key:"onEmpty",value:function(){var t=this;return 0===this.queue.size?o.default.resolve():new o.default(function(e){var n=t._resolveEmpty;t._resolveEmpty=function(){n(),e()}})}},{key:"onIdle",value:function(){var t=this;return 0===this._pendingCount?o.default.resolve():new o.default(function(e){var n=t._resolveIdle;t._resolveIdle=function(){n(),e()}})}},{key:"size",get:function(){return this.queue.size}},{key:"pendingCount",get:function(){return this._pendingCount}}]),t}();return Object.defineProperty(t,"of",{value:function(e){return new t(e)},writable:!1,enumerable:!0,configurable:!1}),t}();t.exports=a},function(t,e,n){t.exports={default:n(138),__esModule:!0}},function(t,e,n){n(139);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(1);r(r.S+r.F*!n(8),"Object",{defineProperty:n(7).f})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o,i,u,c,f,a=r(n(141)),s=r(n(80)),l=r(n(11)),p=r(n(81)),h=r(n(145)),v=r(n(153)),d=r(n(90)),y=r(n(35)),_=r(n(85)),m=(o=function(t){return t!==Object(t)},i=function(){function t(e,n){(0,y.default)(this,t),this.element=e,this.priority=(0,d.default)(n)?n:(0,d.default)(e)?e:0}return(0,_.default)(t,[{key:"equals",value:function(t){return o(this.element)&&o(t.element)?this.element===t.element&&this.priority==t.priority:(0,v.default)(this.element)===(0,v.default)(t.element)&&this.priority==t.priority}}]),t}(),u=new h.default,c=(0,p.default)("compareFunction"),f=function(t,e){return t.priority<e.priority?1:t.priority>e.priority?-1:0},function(){function t(){(0,y.default)(this,t),u.set(this,[]);for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0],a=n[1];if(n.length>=2&&"function"!=typeof i)throw new TypeError("no compareFunction defined, PriorityQueue(compareFunction, iterable)");if(1==n.length&&"function"!=typeof n[0]&&(a=n[0],i=f),0==n.length&&(i=f),this[c]=i,a){var s=!0,p=!1,h=void 0;try{for(var v,d=(0,l.default)(a);!(s=(v=d.next()).done);s=!0){var _=v.value;o(_)?this.enqueue(_):this.enqueue(_.element,_.priority)}}catch(t){p=!0,h=t}finally{try{!s&&d.return&&d.return()}finally{if(p)throw h}}}}return(0,_.default)(t,[{key:"enqueue",value:function(t,e){if(null==t)throw new Error("element is required, enqueue(element, priority)");var n=new i(t,e),r=u.get(this);if(r.length&&r[r.length-1].priority>=n.priority)r.push(n);else{var o=function(t,e,n){for(var r=0,o=t.length;o>0;){var i=o/2|0,u=r+i;n(t[u],e)<=0?(r=++u,o-=i+1):o=i}return r}(r,n,this[c]);r.splice(o,0,n),u.set(this,r)}}},{key:"dequeue",value:function(){var t=u.get(this),e=t.shift();return u.set(this,t),e}},{key:"front",value:function(){return u.get(this)[0]}},{key:"has",value:function(t){if(null==t)return!1;var e=void 0;if(o(t))e=new i(t);else{if(null==t.element)return!1;e=new i(t.element,t.priority)}var n=u.get(this),r=!0,c=!1,f=void 0;try{for(var a,s=(0,l.default)(n);!(r=(a=s.next()).done);r=!0)if(a.value.equals(e))return!0}catch(t){c=!0,f=t}finally{try{!r&&s.return&&s.return()}finally{if(c)throw f}}return!1}},{key:"isEmpty",value:function(){return 0==u.get(this).length}},{key:"forEach",value:function(t,e){var n=!0,r=!1,o=void 0;try{for(var i,u=(0,l.default)(this);!(n=(i=u.next()).done);n=!0){var c=i.value;t.call(e,c,this)}}catch(t){r=!0,o=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw o}}}},{key:s.default,value:a.default.mark(function t(){var e,n;return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=u.get(this),n=0;case 2:if(!(n<e.length)){t.next=8;break}return t.next=5,e[n];case 5:n++,t.next=2;break;case 8:case"end":return t.stop()}},t,this)})},{key:"clear",value:function(){u.set(this,[])}},{key:"print",value:function(){for(var t=u.get(this),e=0;e<t.length;e++)console.log((0,v.default)(t[e].element)+" - "+t[e].priority)}},{key:"toString",value:function(){var t="";return u.get(this).forEach(function(e){return t+=(0,v.default)(e)+","}),t}},{key:"size",get:function(){return u.get(this).length}}]),t}());t.exports=m},function(t,e,n){t.exports=n(142)},function(t,e,n){(function(e){var r="object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this,o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(143),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}}).call(e,n(86))},function(t,e,n){(function(e,n){!function(e){"use strict";function r(t,e,n,r){var u=e&&e.prototype instanceof i?e:i,c=Object.create(u.prototype),f=new h(r||[]);return c._invoke=function(t,e,n){var r=E;return function(i,u){if(r===S)throw new Error("Generator is already running");if(r===j){if("throw"===i)throw u;return d()}for(;;){var c=n.delegate;if(c){if("return"===i||"throw"===i&&c.iterator[i]===y){n.delegate=null;var f=c.iterator.return;if(f){var a=o(f,c.iterator,u);if("throw"===a.type){i="throw",u=a.arg;continue}}if("return"===i)continue}var a=o(c.iterator[i],c.iterator,u);if("throw"===a.type){n.delegate=null,i="throw",u=a.arg;continue}i="next",u=y;var s=a.arg;if(!s.done)return r=O,s;n[c.resultName]=s.value,n.next=c.nextLoc,n.delegate=null}if("next"===i)n.sent=n._sent=u;else if("throw"===i){if(r===E)throw r=j,u;n.dispatchException(u)&&(i="next",u=y)}else"return"===i&&n.abrupt("return",u);r=S;var a=o(t,e,n);if("normal"===a.type){r=n.done?j:O;var s={value:a.arg,done:n.done};if(a.arg!==P)return s;n.delegate&&"next"===i&&(u=y)}else"throw"===a.type&&(r=j,i="throw",u=a.arg)}}}(t,n,f),c}function o(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function i(){}function u(){}function c(){}function f(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function a(t){this.arg=t}function s(t){function e(n,r,i,u){var c=o(t[n],t,r);if("throw"!==c.type){var f=c.arg,s=f.value;return s instanceof a?Promise.resolve(s.arg).then(function(t){e("next",t,i,u)},function(t){e("throw",t,i,u)}):Promise.resolve(s).then(function(t){f.value=t,i(f)},u)}u(c.arg)}var r;"object"==typeof n&&n.domain&&(e=n.domain.bind(e)),this._invoke=function(t,n){function o(){return new Promise(function(r,o){e(t,n,r,o)})}return r=r?r.then(o,o):o()}}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function v(t){if(t){var e=t[g];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(_.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=y,e.done=!0,e};return r.next=r}}return{next:d}}function d(){return{value:y,done:!0}}var y,_=Object.prototype.hasOwnProperty,m="function"==typeof Symbol?Symbol:{},g=m.iterator||"@@iterator",w=m.toStringTag||"@@toStringTag",x="object"==typeof t,b=e.regeneratorRuntime;if(b)x&&(t.exports=b);else{(b=e.regeneratorRuntime=x?t.exports:{}).wrap=r;var E="suspendedStart",O="suspendedYield",S="executing",j="completed",P={},M=c.prototype=i.prototype;u.prototype=M.constructor=c,c.constructor=u,c[w]=u.displayName="GeneratorFunction",b.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===u||"GeneratorFunction"===(e.displayName||e.name))},b.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,w in t||(t[w]="GeneratorFunction")),t.prototype=Object.create(M),t},b.awrap=function(t){return new a(t)},f(s.prototype),b.async=function(t,e,n,o){var i=new s(r(t,e,n,o));return b.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},f(M),M[g]=function(){return this},M[w]="Generator",M.toString=function(){return"[object Generator]"},b.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},b.values=v,h.prototype={constructor:h,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&_.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=y)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var u=_.call(o,"catchLoc"),c=_.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&_.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?this.next=o.finallyLoc:this.complete(i),P},complete:function(t,e){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e)},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),P}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:v(t),resultName:e,nextLoc:n},P}}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,n(86),n(144))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(a===setTimeout)return setTimeout(t,0);if((a===n||!a)&&setTimeout)return a=setTimeout,setTimeout(t,0);try{return a(t,0)}catch(e){try{return a.call(null,t,0)}catch(e){return a.call(this,t,0)}}}function i(){v&&p&&(v=!1,p.length?h=p.concat(h):d=-1,h.length&&u())}function u(){if(!v){var t=o(i);v=!0;for(var e=h.length;e;){for(p=h,h=[];++d<e;)p&&p[d].run();d=-1,e=h.length}p=null,v=!1,function(t){if(s===clearTimeout)return clearTimeout(t);if((s===r||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(t);try{s(t)}catch(e){try{return s.call(null,t)}catch(e){return s.call(this,t)}}}(t)}}function c(t,e){this.fun=t,this.array=e}function f(){}var a,s,l=t.exports={};!function(){try{a="function"==typeof setTimeout?setTimeout:n}catch(t){a=n}try{s="function"==typeof clearTimeout?clearTimeout:r}catch(t){s=r}}();var p,h=[],v=!1,d=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new c(t,e)),1!==h.length||v||o(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=f,l.addListener=f,l.once=f,l.off=f,l.removeListener=f,l.removeAllListeners=f,l.emit=f,l.prependListener=f,l.prependOnceListener=f,l.listeners=function(t){return[]},l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,n){t.exports={default:n(146),__esModule:!0}},function(t,e,n){n(32),n(18),n(147),n(151),n(152),t.exports=n(0).WeakMap},function(t,e,n){"use strict";var r,o=n(57)(0),i=n(42),u=n(26),c=n(63),f=n(150),a=n(3),s=n(10),l=n(36),p=u.getWeak,h=Object.isExtensible,v=f.ufstore,d={},y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(t){if(a(t)){var e=p(t);return!0===e?v(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return f.def(l(this,"WeakMap"),t,e)}},m=t.exports=n(87)("WeakMap",y,_,f,!0,!0);s(function(){return 7!=(new m).set((Object.freeze||Object)(d),7).get(d)})&&(c((r=f.getConstructor(y,"WeakMap")).prototype,_),u.NEED=!0,o(["delete","has","get","set"],function(t){var e=m.prototype,n=e[t];i(e,t,function(e,o){if(a(e)&&!h(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)})}))},function(t,e,n){var r=n(149);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(3),o=n(82),i=n(4)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(34),o=n(26).getWeak,i=n(6),u=n(3),c=n(33),f=n(16),a=n(57),s=n(13),l=n(36),p=a(5),h=a(6),v=0,d=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},_=function(t,e){return p(t.a,function(t){return t[0]===e})};y.prototype={get:function(t){var e=_(this,t);if(e)return e[1]},has:function(t){return!!_(this,t)},set:function(t,e){var n=_(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var a=t(function(t,r){c(t,a,e,"_i"),t._t=e,t._i=v++,t._l=void 0,void 0!=r&&f(r,n,t[i],t)});return r(a.prototype,{delete:function(t){if(!u(t))return!1;var n=o(t);return!0===n?d(l(this,e)).delete