Socket
Socket
Sign inDemoInstall

async-af

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-af - npm Package Compare versions

Comparing version 6.0.0 to 7.0.0

6

esm/min.js
/*!
* async-af/esm/min v6.0.0
* async-af/esm/min v7.0.0
*
* AsyncAF (Async/Await Fun)
* AsyncAF (The asynciest of async libs there ever was or ever will be...AsyncAF!?)
* (https://async-af.js.org/AsyncAF)

@@ -12,3 +12,3 @@ *

*/
function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function t(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function r(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function e(n,t,r){return t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");i(n.prototype,t&&t.prototype),t&&i(n,t)}function a(n){return(a=Object.getPrototypeOf||function(n){return n.__proto__})(n)}function i(n,t){return(i=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function c(n,t,r){return(c="undefined"!=typeof Reflect&&Reflect.construct?Reflect.construct:function(n,t,r){var e=[null];e.push.apply(e,t);var o=new(n.bind.apply(n,e));return r&&i(o,r.prototype),o}).apply(null,arguments)}function l(n,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):t}function u(n,t){return t||(t=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(t)}}))}function f(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=[],e=!0,o=!1,a=void 0;try{for(var i,c=n[Symbol.iterator]();!(e=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);e=!0);}catch(n){o=!0,a=n}finally{try{e||null==c.return||c.return()}finally{if(o)throw a}}return r}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function y(n){return function(n){if(Array.isArray(n)){for(var t=0,r=Array(n.length);t<n.length;t++)r[t]=n[t];return r}}(n)||function(n){if(Symbol.iterator in Object(n)||"[object Arguments]"===Object.prototype.toString.call(n))return Array.from(n)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var p=function(n,t){return Object.defineProperty(n,"name",{value:t,configurable:!0})},s=function(n){var t=n,r=n.name;return(n=function(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];return c(t,r)}).prototype=t.prototype,Object.setPrototypeOf(n,t),n.prototype.constructor=n,p(n,r)},h=new WeakMap,d=function(){function n(r){t(this,n),h.set(this,Promise[Array.isArray(r)?"all":"resolve"](r))}var e,o;return e=n,(o=[{key:"then",value:function(n,t){return new this.constructor(h.get(this).then(n,t))}},{key:"catch",value:function(n){return this.then(null,n)}},{key:"finally",value:function(n){return h.get(this).finally(n)}}])&&r(e.prototype,o),n}();d.use=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==n(t))throw TypeError("prototypeMethods param accepts an Object containing the prototypeMethods you'd like to add to the AsyncAF prototype, or an empty Object");if("object"!==n(r))throw TypeError("staticMethods param accepts an Object containing the staticMethods you'd like to add to AsyncAF");Object.assign(this.prototype,t),Object.assign(this,r)},Object.defineProperty(d.prototype,Symbol.toStringTag,{value:"AsyncAF"}),s(function(n){function r(){return t(this,r),l(this,a(r).apply(this,arguments))}return o(r,d),r}());var b=u([":"]),A=u(["/"]),v=u(["/"]),g=u(["/"]),m=u(["\n"],["\\n"]),w=u(["("]),F=u([")"]),O=u(["/"]),j=u(["/"]),E=function n(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];n.label&&r.unshift(n.setFormat(n.labelFormat));var o=Date.now();return Promise.all(r).then(function(t){if(n.duration){var r=((Date.now()-o)/1e3).toFixed(3);t.push("\nin ".concat(r," secs"))}n.wrappedLog.apply(n,y(t))})};Object.defineProperties(E,{wrappedLog:{value:function(){var n;console&&console.log&&(n=console).log.apply(n,arguments)},writable:!0},wrappedWarn:{value:function(){var n;console&&console.warn&&(n=console).warn.apply(n,arguments)},writable:!0},setFormat:{value:function(n){var t=Error();if(!t.stack)return"";var r=f(t.stack.split(m).filter(function(n,t,r){return/logAF(\s+|\s+\[.+\]\s+)\(/.test(r[t?t-1:t])}),1)[0],e=r.slice(r.indexOf(w)+1,r.indexOf(F)),o=e.lastIndexOf(O),a={file:function(){return"@".concat(e.slice(o+1),":\n")},path:function(){return"@".concat(e,":\n")},parent:function(){var n=e.slice(0,o).lastIndexOf(j)+1;return"@".concat(e.slice(n),":\n")},arrow:function(){return"========================>"}};return a[n]?a[n]():function(n,t,r){if("string"==typeof n)return n;var e=f(t.split(b),3),o=e[0],a=e[1],i=e[2],c=(o=o.split(A)).pop();o=o.join(v);var l="".concat(o.split(g).pop(),"/");return n({path:o+="/",line:a,col:i,file:c,parent:l,arrow:r})}(n,e,a.arrow())},writable:!0},options:{value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.label,r=n.duration,e=n.labelFormat;"boolean"==typeof t&&(T.label=t),"boolean"==typeof r&&(T.duration=r),e&&("string"==typeof e||"function"==typeof e?T.labelFormat=e:T.wrappedWarn("Warning: logAF labelFormat option must be set to 'file' (default), 'path', 'parent', 'arrow', or a custom string or function\n"))},writable:!0}}),(E.options.reset=function(){E.label=!0,E.labelFormat="file",E.duration=!0})();var T=p(E,"logAF"),k=function(n){return Array.isArray(n)||null!=n&&null!=n.length},S=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return this.then(function(t){if(!k(t))throw TypeError("joinAF cannot be called on ".concat(t,", only on an Array or array-like Object"));return Array.prototype.join.call(t,n)})};Object.defineProperty(S,"length",{value:1});var x=function(n){return"@async-af/".concat(n.replace(/AsyncAf|AF/g,"").toLowerCase())},P="".concat("./lib/","classes/"),I=[[{name:"AsyncAF"},"".concat(P,"AsyncAF"),"async-af"],[{name:"AsyncAfWrapper"},"".concat(P,"AsyncAfWrapper"),x("AsyncAfWrapper")]],_=[p(T,"logAF")].map(function(n){return[n,"".concat("./lib/","methods/other/").concat(n.name),x(n.name)]}),W=[p(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!k(r))throw TypeError("mapAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.map.call(r,n,t)})},"mapAF"),p(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!k(r))throw TypeError("forEachAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.forEach.call(r,n,t)})},"forEachAF"),p(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!k(r))throw TypeError("filterAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.filter.call(r,n,t)})},"filterAF"),p(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.then(function(r){if(!k(r))throw TypeError("reduceAF cannot be called on ".concat(r,", only on an Array or array-like Object"));if(!r.length&&null===t)throw TypeError("reduceAF cannot be called on an empty array without an initial value");return Array.prototype.reduce.call(r,n,t)})},"reduceAF"),p(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!k(r))throw TypeError("everyAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.every.call(r,n,t)})},"everyAF"),p(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!k(r))throw TypeError("someAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.some.call(r,n,t)})},"someAF"),p(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.then(function(r){if(!k(r))throw TypeError("includesAF cannot be called on ".concat(r,", only on an Array, String, or array-like Object"));return("string"==typeof r?String:Array).prototype.includes.call(r,n,t)})},"includesAF"),p(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!k(r))throw TypeError("findAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.find.call(r,n,t)})},"findAF"),p(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!k(r))throw TypeError("findIndexAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.findIndex.call(r,n,t)})},"findIndexAF"),p(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.then(function(r){if(!k(r))throw TypeError("indexOfAF cannot be called on ".concat(r,", only on an Array, String, or array-like Object"));return("string"==typeof r?String:Array).prototype.indexOf.call(r,n,t)})},"indexOfAF"),p(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!k(r))throw TypeError("lastIndexOfAF cannot be called on ".concat(r,", only on an Array, String, or array-like Object"));return("string"==typeof r?String:Array).prototype.lastIndexOf.call(r,n,t||r.length-1)})},"lastIndexOfAF"),p(S,"joinAF"),p(function(){for(var n=this,t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];return this.then(function(t){if("string"!=typeof t&&!Array.isArray(t))throw TypeError("concatAF cannot be called on ".concat(t,", only on an Array or String"));return r.reduce(function(t,r){return t instanceof Promise?t.then(function(t){return r instanceof n.constructor||r instanceof Promise?r.then(function(n){return t.concat(n)}):t.concat(r)},t):r instanceof n.constructor||r instanceof Promise?r.then(function(n){return t.concat(n)}):t.concat(r)},t)})},"concatAF")].map(function(n){return[n,"".concat("./lib/","methods/arrays/").concat(n.name),x(n.name)]}),M=[p(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if("string"!=typeof r||Array.isArray(r))throw TypeError("splitAF may be called on a string but was called on ".concat(r));return String.prototype.split.call(r,n,t)})},"splitAF")].map(function(n){return[n,"".concat("./lib/","methods/strings/").concat(n.name),x(n.name)]}),R=y(W).concat(y(M));I.concat(y(_),y(R),[]);var L=function(n){return n.map(function(n){return f(n,1)[0]})},z=L(_),C=L(R),D=u(["AF"]),q=s(function(n){function r(){return t(this,r),l(this,a(r).apply(this,arguments))}return o(r,d),r}()),B=function(n){return n.reduce(function(n,t){var r=f(t.name.split(D)||[t.name],1)[0];return Object.assign(n,e({},t.name,{value:t}),e({},r,{value:t}))},{})};Object.defineProperties(d,B(z)),Object.defineProperties(d.prototype,B(C));export default q;
function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function t(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function r(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function e(n,t,r){return t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");a(n.prototype,t&&t.prototype),t&&a(n,t)}function i(n){return(i=Object.getPrototypeOf||function(n){return n.__proto__})(n)}function a(n,t){return(a=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function c(n,t,r){return(c="undefined"!=typeof Reflect&&Reflect.construct?Reflect.construct:function(n,t,r){var e=[null];e.push.apply(e,t);var o=new(n.bind.apply(n,e));return r&&a(o,r.prototype),o}).apply(null,arguments)}function u(n,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):t}function f(n,t){return t||(t=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(t)}}))}function l(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=[],e=!0,o=!1,i=void 0;try{for(var a,c=n[Symbol.iterator]();!(e=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);e=!0);}catch(n){o=!0,i=n}finally{try{e||null==c.return||c.return()}finally{if(o)throw i}}return r}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(n){return function(n){if(Array.isArray(n)){for(var t=0,r=Array(n.length);t<n.length;t++)r[t]=n[t];return r}}(n)||function(n){if(Symbol.iterator in Object(n)||"[object Arguments]"===Object.prototype.toString.call(n))return Array.from(n)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var h=function(n,t){return Object.defineProperty(n,"name",{value:t,configurable:!0})},y=function(n){var t=n.name,r=function(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];return c(n,r)};return r.prototype=n.prototype,Object.setPrototypeOf(r,n),r.prototype.constructor=r,h(r,t)},p=new WeakMap,v={inSeries:{get:function(){return p.get(this)}},series:{get:function(){return p.set(this,!this.inSeries),this}},io:{get:function(){return this.series}}},d=new WeakMap,b=function(){function n(r){t(this,n),d.set(this,Promise.resolve(r))}var e,o;return e=n,(o=[{key:"then",value:function(n,t){return this.constructor(d.get(this).then(n,t))}},{key:"catch",value:function(n){return this.then(null,n)}},{key:"finally",value:function(n){return d.get(this).finally(n)}}])&&r(e.prototype,o),n}();b.use=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==n(t))throw TypeError("prototypeMethods param accepts an Object containing the prototypeMethods you'd like to add to the AsyncAF prototype, or an empty Object");if("object"!==n(r))throw TypeError("staticMethods param accepts an Object containing the staticMethods you'd like to add to AsyncAF");Object.assign(this.prototype,t),Object.assign(this,r)},Object.defineProperties(b.prototype,function(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),o.forEach(function(t){e(n,t,r[t])})}return n}({},v,e({},Symbol.toStringTag,{value:"AsyncAF"}))),y(function(n){function r(){return t(this,r),u(this,i(r).apply(this,arguments))}return o(r,b),r}());var m=f([":"]),A=f(["/"]),g=f(["/"]),w=f(["/"]),O=f(["\n"],["\\n"]),F=f(["/"]),j=f(["/"]),P=f(["/"]),E=function n(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];n.label&&r.unshift(n.setFormat(n.labelFormat));var o=Date.now();return Promise.all(r).then(function(t){if(n.duration){var r=((Date.now()-o)/1e3).toFixed(3);t.push("\n in ".concat(r," secs"))}n.wrappedLog.apply(n,[""].concat(s(t)))})};Object.defineProperties(E,{wrappedLog:{value:function(){var n;console&&console.log&&(n=console).log.apply(n,arguments)},writable:!0},wrappedWarn:{value:function(){var n;console&&console.warn&&(n=console).warn.apply(n,arguments)},writable:!0},setFormat:{value:function(n){var t=Error();if(!t.stack)return"";var r=l(t.stack.split(O).filter(function(n,t,r){return/logAF(\s+|\s+\[.+\]\s+)\(/.test(r[t?t-1:t])}),1)[0],e=r.slice(r.indexOf(F)).replace(")",""),o=e.lastIndexOf(j),i={file:function(){return"@".concat(e.slice(o+1),":\n")},path:function(){return"@".concat(e,":\n")},parent:function(){var n=e.slice(0,o).lastIndexOf(P)+1;return"@".concat(e.slice(n),":\n")},arrow:function(){return"========================>"}};return i[n]?i[n]():function(n,t,r){if("string"==typeof n)return n;var e=l(t.split(m),3),o=e[0],i=e[1],a=e[2],c=(o=o.split(A)).pop();o=o.join(g);var u="".concat(o.split(w).pop(),"/");return n({path:o+="/",line:i,col:a,file:c,parent:u,arrow:r})}(n,e,i.arrow())},writable:!0},options:{value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.label,r=n.duration,e=n.labelFormat;"boolean"==typeof t&&(S.label=t),"boolean"==typeof r&&(S.duration=r),e&&("string"==typeof e||"function"==typeof e?S.labelFormat=e:S.wrappedWarn("Warning: logAF labelFormat option must be set to 'file' (default), 'path', 'parent', 'arrow', or a custom string or function\n"))},writable:!0}}),(E.options.reset=function(){E.label=!0,E.labelFormat="file",E.duration=!0})();var S=h(E,"logAF"),T=function(n){return Array.isArray(n)||null!=n&&null!=n.length},k=function(n){return new Promise(function(t,r){var e=n.length>>>0,o=Array(e),i=e,a=e;if(!e)return t(o);for(var c=function(e){return Promise.resolve(n[e]).then(function(r){e in n&&(o[e]=r),--i||t(o)},r)};a--;)c(a)})},x=function(n){return function t(r,e){var o=r.length;if(!o)return Promise.resolve(r);var i=!(e in n);return Promise.resolve(n[e]).then(function(n){return i||(r[e]=n),e===o-1?r:t(r,e+1)})}(Array(n.length>>>0),0)},M=function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return k(n).then(t?function(n){return k(Array.prototype.map.call(n,t,r))}:void 0)},I=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return this.then(function(t){if(!T(t))throw TypeError("joinAF cannot be called on ".concat(t,", only on an Array or array-like Object"));return M(t).then(function(t){return t.join(n)})})};Object.defineProperty(I,"length",{value:1});var N=function(n){return Promise[Array.isArray(n)?"all":"resolve"](n)},W=function(n){return"@async-af/".concat(n.replace(/AsyncAf|AF/g,"").toLowerCase())},_="".concat("./lib/","classes/"),R=[[{name:"AsyncAF"},"".concat(_,"AsyncAF"),"async-af"],[{name:"AsyncAfWrapper"},"".concat(_,"AsyncAfWrapper"),W("AsyncAfWrapper")]],D=[h(S,"logAF")].map(function(n){return[n,"".concat("./lib/","methods/other/").concat(n.name),W(n.name)]}),L=[h(function(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!T(e))throw TypeError("mapAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof n)throw TypeError("".concat(n," is not a function"));return t.inSeries?x(e).then(function(t){return t.reduce(function(t,e,o,i){return t.then(function(t){return t[o]=Promise.resolve(n.call(r,e,o,i)),k(t)})},Promise.resolve(Array(t.length>>>0)))}):M(e,n,r)})},"mapAF"),h(function(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!T(e))throw TypeError("forEachAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof n)throw TypeError("".concat(n," is not a function"));return(t.inSeries?x(e).then(function(t){return t.reduce(function(t,e,o,i){return t.then(function(){return Promise.resolve(n.call(r,e,o,i))})},Promise.resolve())}):M(e,n,r)).then(function(){})})},"forEachAF"),h(function(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!T(e))throw TypeError("filterAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof n)throw TypeError("".concat(n," is not a function"));return(t.inSeries?x:M)(e).then(function(e){return(t.inSeries?e.reduce(function(t,e,o,i){return t.then(function(t){return t[o]=n.call(r,e,o,i),Promise.all(t)})},Promise.all([])):M(e,n,r)).then(function(n){return e.filter(function(t,r){return n[r]})})})})},"filterAF"),h(function(n){var t=this,r=arguments;return this.then(function(e){if(!T(e))throw TypeError("reduceAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof n)throw TypeError("".concat(n," is not a function"));var o=e.length>>>0;if(!o&&1===r.length)throw TypeError("reduceAF cannot be called on an empty array without an initial value");if(!o)return r[1];var i,a=function(n){return!(n in e)},c=0;if(2===r.length)i=r[1];else{for(;a(c);)c++;i=e[c++]}return(t.inSeries?x(e):M(e)).then(function(t){return function r(e,i){return Promise.resolve(e).then(function(e){return Promise.resolve(a(i)?e:n(e,t[i],i,t)).then(function(n){return i===o-1?n:r(n,i+1)})})}(i,c)})})},"reduceAF"),h(function(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!T(e))throw TypeError("everyAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof n)throw TypeError("".concat(n," is not a function"));var o=e.length>>>0;return t.inSeries?!o||function t(e,i){var a=!(i in e);return Promise.resolve(e[i]).then(function(c){return e[i]=c,Promise.resolve(!a&&n.call(r,c,i,e)).then(function(n){return!(!n&&!a)&&(i===o-1||t(e,i+1))})})}(Array.prototype.slice.call(e),0):M(e,n,r).then(function(n){return n.every(Boolean)})})},"everyAF"),h(function(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!T(e))throw TypeError("someAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof n)throw TypeError("".concat(n," is not a function"));var o=e.length>>>0;return t.inSeries?!!o&&function t(e,i){var a=!(i in e);return Promise.resolve(e[i]).then(function(c){return e[i]=c,Promise.resolve(!a&&n.call(r,c,i,e)).then(function(n){return!(!n||a)||i!==o-1&&t(e,i+1)})})}(Array.prototype.slice.call(e),0):M(e,n,r).then(function(n){return n.some(Boolean)})})},"someAF"),h(function(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.then(function(e){if(!T(e))throw TypeError("includesAF cannot be called on ".concat(e,", only on an Array, String, or array-like Object"));var o=e.length>>>0,i=0|r;return"string"==typeof e?e.includes(n,i):t.inSeries?!!o&&function t(r){return Promise.resolve(e[r]).then(function(e){return!!((i=e)===(a=n)||Number.isNaN(i)&&Number.isNaN(a))||!(r>=o-1)&&t(r+1);var i,a})}(Math.max(i>=0?i:o-Math.abs(i),0)):M(e).then(function(t){return t.includes(n,i)})})},"includesAF"),h(function(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!T(e))throw TypeError("findAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof n)throw TypeError("".concat(n," is not a function"));var o=Array.from(e),i=o.length>>>0;return t.inSeries?i?function t(e,o){return Promise.resolve(e[o]).then(function(a){return e[o]=a,Promise.resolve(n.call(r,a,o,e)).then(function(n){return n?a:o!==i-1?t(e,o+1):void 0})})}(o,0):void 0:M(o,n,r).then(function(n){return e[n.indexOf(!0)]})})},"findAF"),h(function(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!T(e))throw TypeError("findIndexAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof n)throw TypeError("".concat(n," is not a function"));var o=Array.from(e),i=o.length>>>0;return t.inSeries?i?function t(e,o){return Promise.resolve(e[o]).then(function(a){return e[o]=a,Promise.resolve(n.call(r,a,o,e)).then(function(n){return n?o:o===i-1?-1:t(e,o+1)})})}(o,0):-1:M(o,n,r).then(function(n){return n.indexOf(!0)})})},"findIndexAF"),h(function(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.then(function(e){if(!T(e))throw TypeError("indexOfAF cannot be called on ".concat(e,", only on an Array, String, or array-like Object"));var o=e.length>>>0,i=0|r;return"string"==typeof e?e.indexOf(n,i):t.inSeries?function t(r){return Promise.resolve(e[r]).then(function(i){return r in e&&i===n?r:r>=o-1?-1:t(r+1)})}(Math.max(i>=0?i:o-Math.abs(i),0)):M(e).then(function(t){return t.indexOf(n,i)})})},"indexOfAF"),h(function(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!T(e))throw TypeError("lastIndexOfAF cannot be called on ".concat(e,", only on an Array, String, or array-like Object"));var o=e.length>>>0,i=+r;return Number.isNaN(i)&&(i=o-1),"string"==typeof e?e.lastIndexOf(n,i):t.inSeries?function t(r){return Promise.resolve(e[r]).then(function(o){return r in e&&o===n?r:r<=0?-1:t(r-1)})}(Math.min(i>=0?i:Math.max(o-Math.abs(i),0),o-1)):M(e).then(function(t){return t.lastIndexOf(n,i)})})},"lastIndexOfAF"),h(I,"joinAF"),h(function(){for(var n=this,t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];var o=function(t){return[Promise,n.constructor].some(function(n){return t instanceof n})},i=function(n,t){return o(t)&&t.then(N).then(function(t){return n.concat(t)})||n.concat(t)};return this.then(function(n){if("string"!=typeof n&&!Array.isArray(n))throw TypeError("concatAF cannot be called on ".concat(n,", only on an Array or String"));return N(n).then(function(n){return r.reduce(function(n,t){return o(n)?n.then(function(n){return i(n,t)}):i(n,t)},n)})})},"concatAF")].map(function(n){return[n,"".concat("./lib/","methods/arrays/").concat(n.name),W(n.name)]}),z=[h(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if("string"!=typeof r||Array.isArray(r))throw TypeError("splitAF may be called on a string but was called on ".concat(r));return String.prototype.split.call(r,n,t)})},"splitAF")].map(function(n){return[n,"".concat("./lib/","methods/strings/").concat(n.name),W(n.name)]}),B=s(L).concat(s(z));R.concat(s(D),s(B),[]);var C=function(n){return n.map(function(n){return l(n,1)[0]})},q=C(D),G=C(B),H=f(["AF"]),J=y(function(n){function r(){return t(this,r),u(this,i(r).apply(this,arguments))}return o(r,b),r}()),K=function(n){return n.reduce(function(n,t){var r=l(t.name.split(H)||[t.name],1)[0];return Object.assign(n,e({},t.name,{value:t}),e({},r,{value:t}))},{})};Object.defineProperties(b,K(q)),Object.defineProperties(b.prototype,K(G));export default J;
//# sourceMappingURL=min.js.map
/*!
* async-af/legacy/min v6.0.0
* async-af/legacy/min v7.0.0
*
* AsyncAF (Async/Await Fun)
* AsyncAF (The asynciest of async libs there ever was or ever will be...AsyncAF!?)
* (https://async-af.js.org/AsyncAF)

@@ -12,3 +12,3 @@ *

*/
var t,n;t="undefined"!=typeof self?self:this,n=function(){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=175)}([function(t,n){var r=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(37)("wks"),o=r(22),i=r(2).Symbol,c="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=e},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(2),o=r(0),i=r(12),c=r(9),u=r(10),a=function(t,n,r){var f,s,l,p=t&a.F,v=t&a.G,y=t&a.S,h=t&a.P,d=t&a.B,b=t&a.W,g=v?o:o[n]||(o[n]={}),x=g.prototype,m=v?e:y?e[n]:(e[n]||{}).prototype;for(f in v&&(r=n),r)(s=!p&&m&&void 0!==m[f])&&u(g,f)||(l=s?m[f]:r[f],g[f]=v&&"function"!=typeof m[f]?r[f]:d&&s?i(l,e):b&&m[f]==l?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((g.virtual||(g.virtual={}))[f]=l,t&a.R&&x&&!x[f]&&c(x,f,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n,r){var e=r(3);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n,r){"use strict";n.a=function(t){return Array.isArray(t)||null!=t&&null!=t.length}},function(t,n,r){t.exports=!r(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(5),o=r(65),i=r(53),c=Object.defineProperty;n.f=r(7)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(8),o=r(21);t.exports=r(7)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(14);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports={}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(54),o=r(152);t.exports=function(t,n){return n||(n=t.slice(0)),o(e(t,{raw:{value:o(n)}}))}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e=r(52),o=r(31);t.exports=function(t){return e(o(t))}},function(t,n,r){"use strict";n.a=function(t,n){return Object.defineProperty(t,"name",{value:n,configurable:!0})}},function(t,n,r){var e=r(8).f,o=r(10),i=r(1)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n,r){t.exports=r(76)},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n,r){"use strict";var e=r(14);t.exports.f=function(t){return new function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=e(n),this.reject=e(r)}(t)}},function(t,n,r){"use strict";var e=r(78)(!0);r(51)(String,"String",function(t){this._t=t+"",this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n){t.exports=!0},function(t,n,r){r(82);for(var e=r(2),o=r(9),i=r(13),c=r(1)("toStringTag"),u="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(","),a=0;a<u.length;a++){var f=u[a],s=e[f],l=s&&s.prototype;l&&!l[c]&&o(l,c,f),i[f]=i.Array}},function(t,n,r){var e=r(31);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(37)("keys"),o=r(22);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(29),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){var e=r(3),o=r(2).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){var e=r(12),o=r(58),i=r(57),c=r(5),u=r(30),a=r(47),f={},s={};(n=t.exports=function(t,n,r,l,p){var v,y,h,d,b=p?function(){return t}:a(t),g=e(r,l,n?2:1),x=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(i(b)){for(v=u(t.length);v>x;x++)if((d=n?g(c(y=t[x])[0],y[1]):g(t[x]))===f||d===s)return d}else for(h=b.call(t);!(y=h.next()).done;)if((d=o(h,g,y.value,n))===f||d===s)return d}).BREAK=f,n.RETURN=s},function(t,n){},function(t,n,r){var e=r(16),o=r(1)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?r:i?e(n):"Object"==(c=e(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(2),o=e["__core-js_shared__"]||(e["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,r){var e=r(63),o=r(36);t.exports=Object.keys||function(t){return e(t,o)}},function(t,n,r){var e=r(149),o=r(148),i=r(144);t.exports=function(t,n){return e(t)||o(t,n)||i()}},function(t,n,r){var e=r(22)("meta"),o=r(3),i=r(10),c=r(8).f,u=0,a=Object.isExtensible||function(){return!0},f=!r(11)(function(){return a(Object.preventExtensions({}))}),s=function(t){c(t,e,{value:{i:"O"+ ++u,w:{}}})},l=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!a(t))return"F";if(!n)return"E";s(t)}return t[e].i},getWeak:function(t,n){if(!i(t,e)){if(!a(t))return!0;if(!n)return!1;s(t)}return t[e].w},onFreeze:function(t){return f&&l.NEED&&a(t)&&!i(t,e)&&s(t),t}}},function(t,n,r){var e=r(9);t.exports=function(t,n,r){for(var o in n)r&&t[o]?t[o]=n[o]:e(t,o,n[o]);return t}},function(t,n,r){var e=r(5),o=r(3),i=r(23);t.exports=function(t,n){if(e(t),o(n)&&n.constructor===t)return n;var r=i.f(t);return(0,r.resolve)(n),r.promise}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,r){var e,o,i,c=r(12),u=r(59),a=r(48),f=r(32),s=r(2),l=s.process,p=s.setImmediate,v=s.clearImmediate,y=s.MessageChannel,h=s.Dispatch,d=0,b={},g=function(){var t=+this;if(b.hasOwnProperty(t)){var n=b[t];delete b[t],n()}},x=function(t){g.call(t.data)};p&&v||(p=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return b[++d]=function(){u("function"==typeof t?t:Function(t),n)},e(d),d},v=function(t){delete b[t]},"process"==r(16)(l)?e=function(t){l.nextTick(c(g,t,1))}:h&&h.now?e=function(t){h.now(c(g,t,1))}:y?(i=(o=new y).port2,o.port1.onmessage=x,e=c(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",x,!1)):e="onreadystatechange"in f("script")?function(t){a.appendChild(f("script")).onreadystatechange=function(){a.removeChild(this),g.call(t)}}:function(t){setTimeout(c(g,t,1),0)}),t.exports={set:p,clear:v}},function(t,n,r){var e=r(5),o=r(14),i=r(1)("species");t.exports=function(t,n){var r,c=e(t).constructor;return void 0===c||void 0==(r=e(c)[i])?n:o(r)}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(35),o=r(1)("iterator"),i=r(13);t.exports=r(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[e(t)]}},function(t,n,r){var e=r(2).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(5),o=r(64),i=r(36),c=r(28)("IE_PROTO"),u=function(){},a=function(){var t,n=r(32)("iframe"),e=i.length;for(n.style.display="none",r(48).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;e--;)delete a.prototype[i[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(u.prototype=e(t),r=new u,u.prototype=null,r[c]=t):r=a(),void 0===n?r:o(r,n)}},function(t,n,r){t.exports=r(9)},function(t,n,r){"use strict";var e=r(25),o=r(4),i=r(50),c=r(9),u=r(13),a=r(79),f=r(19),s=r(61),l=r(1)("iterator"),p=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,r,y,h,d,b){a(r,n,y);var g,x,m,O=function(t){if(!p&&t in _)return _[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},w=n+" Iterator",A="values"==h,j=!1,_=t.prototype,S=_[l]||_["@@iterator"]||h&&_[h],F=S||O(h),E=h?A?O("entries"):F:void 0,P="Array"==n&&_.entries||S;if(P&&(m=s(P.call(new t)))!==Object.prototype&&m.next&&(f(m,w,!0),e||"function"==typeof m[l]||c(m,l,v)),A&&S&&"values"!==S.name&&(j=!0,F=function(){return S.call(this)}),e&&!b||!p&&!j&&_[l]||c(_,l,F),u[n]=F,u[w]=v,h)if(g={values:A?F:O("values"),keys:d?F:O("keys"),entries:E},b)for(x in g)x in _||i(_,x,g[x]);else o(o.P+o.F*(p||j),n,g);return g}},function(t,n,r){var e=r(16);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n,r){var e=r(3);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){t.exports=r(158)},function(t,n,r){var e=r(112),o=r(111),i=r(103);t.exports=function(t){return e(t)||o(t)||i()}},function(t,n,r){var e=r(1)("iterator"),o=!1;try{var i=[7][e]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var r=!1;try{var i=[7],c=i[e]();c.next=function(){return{done:r=!0}},i[e]=function(){return c},t(i)}catch(t){}return r}},function(t,n,r){var e=r(13),o=r(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||i[o]===t)}},function(t,n,r){var e=r(5);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(n){var i=t.return;throw void 0!==i&&e(i.call(t)),n}}},function(t,n){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},function(t,n,r){n.f=r(1)},function(t,n,r){var e=r(10),o=r(27),i=r(28)("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),e(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(10),o=r(17),i=r(85)(!1),c=r(28)("IE_PROTO");t.exports=function(t,n){var r,u=o(t),a=0,f=[];for(r in u)r!=c&&e(u,r)&&f.push(r);for(;n.length>a;)e(u,r=n[a++])&&(~i(f,r)||f.push(r));return f}},function(t,n,r){var e=r(8),o=r(5),i=r(38);t.exports=r(7)?Object.defineProperties:function(t,n){o(t);for(var r,c=i(n),u=c.length,a=0;u>a;)e.f(t,r=c[a++],n[r]);return t}},function(t,n,r){t.exports=!r(7)&&!r(11)(function(){return 7!=Object.defineProperty(r(32)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(140),o=r(138);function i(t){return(i="function"==typeof o&&"symbol"==typeof e?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t})(t)}function c(n){return"function"==typeof o&&"symbol"===i(e)?t.exports=c=function(t){return i(t)}:t.exports=c=function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":i(t)},c(n)}t.exports=c},function(t,n){t.exports=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,r){t.exports=r(154)},function(t,n,r){t.exports=r(156)},function(t,n,r){var e=r(12),o=r(52),i=r(27),c=r(30),u=r(120);t.exports=function(t,n){var r=1==t,a=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l,v=n||u;return function(n,u,y){for(var h,d,b=i(n),g=o(b),x=e(u,y,3),m=c(g.length),O=0,w=r?v(n,m):a?v(n,0):void 0;m>O;O++)if((p||O in g)&&(d=x(h=g[O],O,b),t))if(r)w[O]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return O;case 2:w.push(h)}else if(s)return!1;return l?-1:f||s?s:w}}},function(t,n,r){"use strict";var e=r(4),o=r(23),i=r(43);e(e.S,"Promise",{try:function(t){var n=o.f(this),r=i(t);return(r.e?n.reject:n.resolve)(r.v),n.promise}})},function(t,n,r){"use strict";var e=r(4),o=r(0),i=r(2),c=r(45),u=r(42);e(e.P+e.R,"Promise",{finally:function(t){var n=c(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return u(n,t()).then(function(){return r})}:t,r?function(r){return u(n,t()).then(function(){throw r})}:t)}})},function(t,n,r){"use strict";var e=r(2),o=r(0),i=r(8),c=r(7),u=r(1)("species");t.exports=function(t){var n="function"==typeof o[t]?o[t]:e[t];c&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n,r){var e=r(2),o=r(44).set,i=e.MutationObserver||e.WebKitMutationObserver,c=e.process,u=e.Promise,a="process"==r(16)(c);t.exports=function(){var t,n,r,f=function(){var e,o;for(a&&(e=c.domain)&&e.exit();t;){o=t.fn,t=t.next;try{o()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(a)r=function(){c.nextTick(f)};else if(!i||e.navigator&&e.navigator.standalone)if(u&&u.resolve){var s=u.resolve();r=function(){s.then(f)}}else r=function(){o.call(e,f)};else{var l=!0,p=document.createTextNode("");new i(f).observe(p,{characterData:!0}),r=function(){p.data=l=!l}}return function(e){var o={fn:e,next:void 0};n&&(n.next=o),t||(t=o,r()),n=o}}},function(t,n,r){"use strict";var e,o,i,c,u=r(25),a=r(2),f=r(12),s=r(35),l=r(4),p=r(3),v=r(14),y=r(46),h=r(33),d=r(45),b=r(44).set,g=r(74)(),x=r(23),m=r(43),O=r(42),w=a.TypeError,A=a.process,j=a.Promise,_="process"==s(A),S=function(){},F=o=x.f,E=!!function(){try{var t=j.resolve(1),n=(t.constructor={})[r(1)("species")]=function(t){t(S,S)};return(_||"function"==typeof PromiseRejectionEvent)&&t.then(S)instanceof n}catch(t){}}(),P=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},T=function(t,n){if(!t._n){t._n=!0;var r=t._c;g(function(){for(var e=t._v,o=1==t._s,i=0,c=function(n){var r,i,c,u=o?n.ok:n.fail,a=n.resolve,f=n.reject,s=n.domain;try{u?(o||(2==t._h&&L(t),t._h=1),!0===u?r=e:(s&&s.enter(),r=u(e),s&&(s.exit(),c=!0)),r===n.promise?f(w("Promise-chain cycle")):(i=P(r))?i.call(r,a,f):a(r)):f(e)}catch(t){s&&!c&&s.exit(),f(t)}};r.length>i;)c(r[i++]);t._c=[],t._n=!1,n&&!t._h&&k(t)})}},k=function(t){b.call(a,function(){var n,r,e,o=t._v,i=M(t);if(i&&(n=m(function(){_?A.emit("unhandledRejection",o,t):(r=a.onunhandledrejection)?r({promise:t,reason:o}):(e=a.console)&&e.error&&e.error("Unhandled promise rejection",o)}),t._h=_||M(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},M=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){b.call(a,function(){var n;_?A.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},I=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),T(n,!0))},W=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw w("Promise can't be resolved itself");(n=P(t))?g(function(){var e={_w:r,_d:!1};try{n.call(t,f(W,e,1),f(I,e,1))}catch(t){I.call(e,t)}}):(r._v=t,r._s=1,T(r,!1))}catch(t){I.call({_w:r,_d:!1},t)}}};E||(j=function(t){y(this,j,"Promise","_h"),v(t),e.call(this);try{t(f(W,this,1),f(I,this,1))}catch(t){I.call(this,t)}},(e=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=r(41)(j.prototype,{then:function(t,n){var r=F(d(this,j));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=_?A.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&T(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new e;this.promise=t,this.resolve=f(W,t,1),this.reject=f(I,t,1)},x.f=F=function(t){return t===j||t===c?new i(t):o(t)}),l(l.G+l.W+l.F*!E,{Promise:j}),r(19)(j,"Promise"),r(73)("Promise"),c=r(0).Promise,l(l.S+l.F*!E,"Promise",{reject:function(t){var n=F(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(u||!E),"Promise",{resolve:function(t){return O(u&&this===c?j:this,t)}}),l(l.S+l.F*!(E&&r(56)(function(t){j.all(t).catch(S)})),"Promise",{all:function(t){var n=this,r=F(n),e=r.resolve,o=r.reject,i=m(function(){var r=[],i=0,c=1;h(t,!1,function(t){var u=i++,a=!1;r.push(void 0),c++,n.resolve(t).then(function(t){a||(a=!0,r[u]=t,--c||e(r))},o)}),--c||e(r)});return i.e&&o(i.v),r.promise},race:function(t){var n=this,r=F(n),e=r.reject,o=m(function(){h(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return o.e&&e(o.v),r.promise}})},function(t,n,r){r(34),r(24),r(26),r(75),r(72),r(71),t.exports=r(0).Promise},function(t,n,r){var e=r(2),o=r(0),i=r(25),c=r(60),u=r(8).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||u(n,t,{value:c.f(t)})}},function(t,n,r){var e=r(29),o=r(31);t.exports=function(t){return function(n,r){var i,c,u=o(n)+"",a=e(r),f=u.length;return a<0||a>=f?t?"":void 0:(i=u.charCodeAt(a))<55296||i>56319||a+1===f||(c=u.charCodeAt(a+1))<56320||c>57343?t?u.charAt(a):i:t?u.slice(a,a+2):c-56320+(i-55296<<10)+65536}}},function(t,n,r){"use strict";var e=r(49),o=r(21),i=r(19),c={};r(9)(c,r(1)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(c,{next:o(1,r)}),i(t,n+" Iterator")}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n){t.exports=function(){}},function(t,n,r){"use strict";var e=r(81),o=r(80),i=r(13),c=r(17);t.exports=r(51)(Array,"Array",function(t,n){this._t=c(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(29),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=e(t))<0?o(t+n,0):i(t,n)}},function(t,n,r){var e=r(17),o=r(30),i=r(84);t.exports=function(t){return function(n,r,c){var u,a=e(n),f=o(a.length),s=i(c,f);if(t&&r!=r){for(;f>s;)if((u=a[s++])!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}}},function(t,n,r){t.exports=r(143)},function(t,n,r){var e=r(130);function o(n){return t.exports=o=e||function(t){return t.__proto__},o(n)}t.exports=o},function(t,n,r){var e=r(66),o=r(131);t.exports=function(t,n){return!n||"object"!==e(n)&&"function"!=typeof n?o(t):n}},function(t,n,r){var e=r(95);t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e(t.prototype,n&&n.prototype),n&&e(t,n)}},function(t,n,r){var e=r(4),o=r(0),i=r(11);t.exports=function(t,n){var r=(o.Object||{})[t]||Object[t],c={};c[t]=n(r),e(e.S+e.F*i(function(){r(1)}),"Object",c)}},function(t,n,r){var e=r(3);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,r){var e=r(63),o=r(36).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n,r){var e=r(16);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(62),o=r(21),i=r(17),c=r(53),u=r(10),a=r(65),f=Object.getOwnPropertyDescriptor;n.f=r(7)?f:function(t,n){if(t=i(t),n=c(n,!0),a)try{return f(t,n)}catch(t){}if(u(t,n))return o(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(86);function o(n,r){return t.exports=o=e||function(t,n){return t.__proto__=n,t},o(n,r)}t.exports=o},function(t,n,r){"use strict";var e=r(38),o=r(83),i=r(62),c=r(27),u=r(52),a=Object.assign;t.exports=!a||r(11)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=a({},t)[r]||Object.keys(a({},n)).join("")!=e})?function(t,n){for(var r=c(t),a=arguments.length,f=1,s=o.f,l=i.f;a>f;)for(var p,v=u(arguments[f++]),y=s?e(v).concat(s(v)):e(v),h=y.length,d=0;h>d;)l.call(v,p=y[d++])&&(r[p]=v[p]);return r}:a},function(t,n,r){t.exports=r(122)},function(t,n,r){var e=r(69);function o(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),e(t,o.key,o)}}t.exports=function(t,n,r){return n&&o(t.prototype,n),r&&o(t,r),t}},function(t,n,r){t.exports=r(123)},function(t,n,r){var e=r(127),o=r(95);function i(n,r,c){return"undefined"!=typeof Reflect&&e?t.exports=i=e:t.exports=i=function(t,n,r){var e=[null];e.push.apply(e,n);var i=new(t.bind.apply(t,e));return r&&o(i,r.prototype),i},i.apply(null,arguments)}t.exports=i},function(t,n,r){"use strict";r.r(n);var e=r(89),o=r.n(e),i=r(88),c=r.n(i),u=r(87),a=r.n(u),f=r(99),s=r.n(f),l=r(69),p=r.n(l),v=r(20),y=r.n(v),h=r(67),d=r.n(h),b=r(98),g=r.n(b),x=r(97),m=r.n(x),O=r(102),w=r(68),A=r.n(w),j=r(66),_=r.n(j);r.d(n,"AsyncAfWrapperProto",function(){return F});var S=new m.a,F=function(){function t(n){d()(this,t),S.set(this,y.a[Array.isArray(n)?"all":"resolve"](n))}return g()(t,[{key:"then",value:function(t,n){return new this.constructor(S.get(this).then(t,n))}},{key:"catch",value:function(t){return this.then(null,t)}},{key:"finally",value:function(t){return S.get(this).finally(t)}}]),t}();F.use=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==_()(t))throw TypeError("prototypeMethods param accepts an Object containing the prototypeMethods you'd like to add to the AsyncAF prototype, or an empty Object");if("object"!==_()(n))throw TypeError("staticMethods param accepts an Object containing the staticMethods you'd like to add to AsyncAF");A()(this.prototype,t),A()(this,n)},p()(F.prototype,s.a,{value:"AsyncAF"});var E=Object(O.a)(function(t){function n(){return d()(this,n),c()(this,a()(n).apply(this,arguments))}return o()(n,t),n}(F));n.default=E},function(t,n,r){"use strict";var e=r(86),o=r.n(e),i=r(100),c=r.n(i),u=r(18);n.a=function(t){var n=t,r=t.name;return(t=function(){for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];return c()(n,r)}).prototype=n.prototype,o()(t,n),t.prototype.constructor=t,Object(u.a)(t,r)}},function(t,n){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,n,r){var e=r(35),o=r(1)("iterator"),i=r(13);t.exports=r(0).isIterable=function(t){var n=Object(t);return void 0!==n[o]||"@@iterator"in n||i.hasOwnProperty(e(n))}},function(t,n,r){r(26),r(24),t.exports=r(104)},function(t,n,r){t.exports=r(105)},function(t,n,r){"use strict";var e=r(8),o=r(21);t.exports=function(t,n,r){n in t?e.f(t,n,o(0,r)):t[n]=r}},function(t,n,r){"use strict";var e=r(12),o=r(4),i=r(27),c=r(58),u=r(57),a=r(30),f=r(107),s=r(47);o(o.S+o.F*!r(56)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,o,l,p=i(t),v="function"==typeof this?this:Array,y=arguments.length,h=y>1?arguments[1]:void 0,d=void 0!==h,b=0,g=s(p);if(d&&(h=e(h,y>2?arguments[2]:void 0,2)),void 0==g||v==Array&&u(g))for(r=new v(n=a(p.length));n>b;b++)f(r,b,d?h(p[b],b):p[b]);else for(l=g.call(p),r=new v;!(o=l.next()).done;b++)f(r,b,d?c(l,h,[o.value,b],!0):o.value);return r.length=b,r}})},function(t,n,r){r(24),r(108),t.exports=r(0).Array.from},function(t,n,r){t.exports=r(109)},function(t,n,r){var e=r(110),o=r(106);t.exports=function(t){if(o(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return e(t)}},function(t,n){t.exports=function(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n<t.length;n++)r[n]=t[n];return r}}},function(t,n,r){"use strict";var e=r(4),o=r(14),i=r(12),c=r(33);t.exports=function(t){e(e.S,t,{from:function(t){var n,r,e,u,a=arguments[1];return o(this),(n=void 0!==a)&&o(a),void 0==t?new this:(r=[],n?(e=0,u=i(a,arguments[2],2),c(t,!1,function(t){r.push(u(t,e++))})):c(t,!1,r.push,r),new this(r))}})}},function(t,n,r){r(113)("WeakMap")},function(t,n,r){"use strict";var e=r(4);t.exports=function(t){e(e.S,t,{of:function(){for(var t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return new this(n)}})}},function(t,n,r){r(115)("WeakMap")},function(t,n,r){"use strict";var e=r(2),o=r(4),i=r(40),c=r(11),u=r(9),a=r(41),f=r(33),s=r(46),l=r(3),p=r(19),v=r(8).f,y=r(70)(0),h=r(7);t.exports=function(t,n,r,d,b,g){var x=e[t],m=x,O=b?"set":"add",w=m&&m.prototype,A={};return h&&"function"==typeof m&&(g||w.forEach&&!c(function(){(new m).entries().next()}))?(m=n(function(n,r){s(n,m,t,"_c"),n._c=new x,void 0!=r&&f(r,b,n[O],n)}),y("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var n="add"==t||"set"==t;t in w&&(!g||"clear"!=t)&&u(m.prototype,t,function(r,e){if(s(this,m,t),!n&&g&&!l(r))return"get"==t&&void 0;var o=this._c[t](0===r?0:r,e);return n?this:o})}),g||v(m.prototype,"size",{get:function(){return this._c.size}})):(m=d.getConstructor(n,t,b,O),a(m.prototype,r),i.NEED=!0),p(m,t),A[t]=m,o(o.G+o.W+o.F,A),g||d.setStrong(m,t,b),m}},function(t,n,r){"use strict";var e=r(41),o=r(40).getWeak,i=r(5),c=r(3),u=r(46),a=r(33),f=r(70),s=r(10),l=r(91),p=f(5),v=f(6),y=0,h=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},b=function(t,n){return p(t.a,function(t){return t[0]===n})};d.prototype={get:function(t){var n=b(this,t);if(n)return n[1]},has:function(t){return!!b(this,t)},set:function(t,n){var r=b(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=v(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,i){var f=t(function(t,e){u(t,f,n,"_i"),t._t=n,t._i=y++,t._l=void 0,void 0!=e&&a(e,r,t[i],t)});return e(f.prototype,{delete:function(t){if(!c(t))return!1;var r=o(t);return!0===r?h(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function(t){if(!c(t))return!1;var r=o(t);return!0===r?h(l(this,n)).has(t):r&&s(r,this._i)}}),f},def:function(t,n,r){var e=o(i(n),!0);return!0===e?h(t).set(n,r):e[t._i]=r,t},ufstore:h}},function(t,n,r){var e=r(3),o=r(93),i=r(1)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)||(n=void 0),e(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},function(t,n,r){var e=r(119);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){"use strict";var e,o=r(70)(0),i=r(50),c=r(40),u=r(96),a=r(118),f=r(3),s=r(11),l=r(91),p=c.getWeak,v=Object.isExtensible,y=a.ufstore,h={},d=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(t){if(f(t)){var n=p(t);return!0===n?y(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return a.def(l(this,"WeakMap"),t,n)}},g=t.exports=r(117)("WeakMap",d,b,a,!0,!0);s(function(){return 7!=(new g).set((Object.freeze||Object)(h),7).get(h)})&&(u((e=a.getConstructor(d,"WeakMap")).prototype,b),c.NEED=!0,o(["delete","has","get","set"],function(t){var n=g.prototype,r=n[t];i(n,t,function(n,o){if(f(n)&&!v(n)){this._f||(this._f=new e);var i=this._f[t](n,o);return"set"==t?this:i}return r.call(this,n,o)})}))},function(t,n,r){r(34),r(26),r(121),r(116),r(114),t.exports=r(0).WeakMap},function(t,n,r){r(34),t.exports=r(60).f("toStringTag")},function(t,n,r){"use strict";var e=r(14),o=r(3),i=r(59),c=[].slice,u={};t.exports=Function.bind||function(t){var n=e(this),r=c.call(arguments,1),a=function(){var e=r.concat(c.call(arguments));return this instanceof a?function(t,n,r){if(!(n in u)){for(var e=[],o=0;o<n;o++)e[o]="a["+o+"]";u[n]=Function("F,a","return new F("+e.join(",")+")")}return u[n](t,r)}(n,e.length,e):i(n,e,t)};return o(n.prototype)&&(a.prototype=n.prototype),a}},function(t,n,r){var e=r(4),o=r(49),i=r(14),c=r(5),u=r(3),a=r(11),f=r(124),s=(r(2).Reflect||{}).construct,l=a(function(){function t(){}return!(s(function(){},[],t)instanceof t)}),p=!a(function(){s(function(){})});e(e.S+e.F*(l||p),"Reflect",{construct:function(t,n){i(t),c(n);var r=arguments.length<3?t:i(arguments[2]);if(p&&!l)return s(t,n,r);if(t==r){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(f.apply(t,e))}var a=r.prototype,v=o(u(a)?a:Object.prototype),y=Function.apply.call(t,v,n);return u(y)?y:v}})},function(t,n,r){r(125),t.exports=r(0).Reflect.construct},function(t,n,r){t.exports=r(126)},function(t,n,r){var e=r(27),o=r(61);r(90)("getPrototypeOf",function(){return function(t){return o(e(t))}})},function(t,n,r){r(128),t.exports=r(0).Object.getPrototypeOf},function(t,n,r){t.exports=r(129)},function(t,n){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,n,r){r(77)("observable")},function(t,n,r){r(77)("asyncIterator")},function(t,n,r){var e=r(17),o=r(92).f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return c.slice()}}(t):o(e(t))}},function(t,n,r){var e=r(38),o=r(83),i=r(62);t.exports=function(t){var n=e(t),r=o.f;if(r)for(var c,u=r(t),a=i.f,f=0;u.length>f;)a.call(t,c=u[f++])&&n.push(c);return n}},function(t,n,r){"use strict";var e=r(2),o=r(10),i=r(7),c=r(4),u=r(50),a=r(40).KEY,f=r(11),s=r(37),l=r(19),p=r(22),v=r(1),y=r(60),h=r(77),d=r(135),b=r(93),g=r(5),x=r(3),m=r(17),O=r(53),w=r(21),A=r(49),j=r(134),_=r(94),S=r(8),F=r(38),E=_.f,P=S.f,T=j.f,k=e.Symbol,M=e.JSON,L=M&&M.stringify,I=v("_hidden"),W=v("toPrimitive"),C={}.propertyIsEnumerable,N=s("symbol-registry"),R=s("symbols"),D=s("op-symbols"),G=Object.prototype,z="function"==typeof k,V=e.QObject,B=!V||!V.prototype||!V.prototype.findChild,H=i&&f(function(){return 7!=A(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=E(G,n);e&&delete G[n],P(t,n,r),e&&t!==G&&P(G,n,e)}:P,J=function(t){var n=R[t]=A(k.prototype);return n._k=t,n},K=z&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},U=function(t,n,r){return t===G&&U(D,n,r),g(t),n=O(n,!0),g(r),o(R,n)?(r.enumerable?(o(t,I)&&t[I][n]&&(t[I][n]=!1),r=A(r,{enumerable:w(0,!1)})):(o(t,I)||P(t,I,w(1,{})),t[I][n]=!0),H(t,n,r)):P(t,n,r)},q=function(t,n){g(t);for(var r,e=d(n=m(n)),o=0,i=e.length;i>o;)U(t,r=e[o++],n[r]);return t},Y=function(t){var n=C.call(this,t=O(t,!0));return!(this===G&&o(R,t)&&!o(D,t))&&(!(n||!o(this,t)||!o(R,t)||o(this,I)&&this[I][t])||n)},Q=function(t,n){if(t=m(t),n=O(n,!0),t!==G||!o(R,n)||o(D,n)){var r=E(t,n);return!r||!o(R,n)||o(t,I)&&t[I][n]||(r.enumerable=!0),r}},X=function(t){for(var n,r=T(m(t)),e=[],i=0;r.length>i;)o(R,n=r[i++])||n==I||n==a||e.push(n);return e},Z=function(t){for(var n,r=t===G,e=T(r?D:m(t)),i=[],c=0;e.length>c;)!o(R,n=e[c++])||r&&!o(G,n)||i.push(R[n]);return i};z||(u((k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(r){this===G&&n.call(D,r),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),H(this,t,w(1,r))};return i&&B&&H(G,t,{configurable:!0,set:n}),J(t)}).prototype,"toString",function(){return this._k}),_.f=Q,S.f=U,r(92).f=j.f=X,r(62).f=Y,r(83).f=Z,i&&!r(25)&&u(G,"propertyIsEnumerable",Y,!0),y.f=function(t){return J(v(t))}),c(c.G+c.W+c.F*!z,{Symbol:k});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)v($[tt++]);for(var nt=F(v.store),rt=0;nt.length>rt;)h(nt[rt++]);c(c.S+c.F*!z,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=k(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var n in N)if(N[n]===t)return n},useSetter:function(){B=!0},useSimple:function(){B=!1}}),c(c.S+c.F*!z,"Object",{create:function(t,n){return void 0===n?A(t):q(A(t),n)},defineProperty:U,defineProperties:q,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),M&&c(c.S+c.F*(!z||f(function(){var t=k();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);if(r=n=e[1],(x(n)||void 0!==t)&&!K(t))return b(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!K(n))return n}),e[1]=n,L.apply(M,e)}}),k.prototype[W]||r(9)(k.prototype,W,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){r(136),r(34),r(133),r(132),t.exports=r(0).Symbol},function(t,n,r){t.exports=r(137)},function(t,n,r){r(24),r(26),t.exports=r(60).f("iterator")},function(t,n,r){t.exports=r(139)},function(t,n,r){var e=r(3),o=r(5),i=function(t,n){if(o(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{(e=r(12)(Function.call,r(94).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return i(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:i}},function(t,n,r){var e=r(4);e(e.S,"Object",{setPrototypeOf:r(141).set})},function(t,n,r){r(142),t.exports=r(0).Object.setPrototypeOf},function(t,n){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,n,r){var e=r(5),o=r(47);t.exports=r(0).getIterator=function(t){var n=o(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return e(n.call(t))}},function(t,n,r){r(26),r(24),t.exports=r(145)},function(t,n,r){t.exports=r(146)},function(t,n,r){var e=r(147);t.exports=function(t,n){var r=[],o=!0,i=!1,c=void 0;try{for(var u,a=e(t);!(o=(u=a.next()).done)&&(r.push(u.value),!n||r.length!==n);o=!0);}catch(t){i=!0,c=t}finally{try{o||null==a.return||a.return()}finally{if(i)throw c}}return r}},function(t,n){t.exports=function(t){if(Array.isArray(t))return t}},function(t,n,r){var e=r(3),o=r(40).onFreeze;r(90)("freeze",function(t){return function(n){return t&&e(n)?t(o(n)):n}})},function(t,n,r){r(150),t.exports=r(0).Object.freeze},function(t,n,r){t.exports=r(151)},function(t,n,r){var e=r(4);e(e.S+e.F,"Object",{assign:r(96)})},function(t,n,r){r(153),t.exports=r(0).Object.assign},function(t,n,r){var e=r(4);e(e.S+e.F*!r(7),"Object",{defineProperty:r(8).f})},function(t,n,r){r(155);var e=r(0).Object;t.exports=function(t,n,r){return e.defineProperty(t,n,r)}},function(t,n,r){var e=r(4);e(e.S+e.F*!r(7),"Object",{defineProperties:r(64)})},function(t,n,r){r(157);var e=r(0).Object;t.exports=function(t,n){return e.defineProperties(t,n)}},function(t,n,r){"use strict";r.r(n);var e=r(54),o=r.n(e),i=r(55),c=r.n(i),u=r(20),a=r.n(u),f=r(15),s=r.n(f),l=r(39),p=r.n(l),v=s()([":"]),y=s()(["/"]),h=s()(["/"]),d=s()(["/"]),b=s()(["\n"],["\\n"]),g=s()(["("]),x=s()([")"]),m=s()(["/"]),O=s()(["/"]),w=r(18),A=function t(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];t.label&&r.unshift(t.setFormat(t.labelFormat));var o=Date.now();return a.a.all(r).then(function(n){if(t.duration){var r=((Date.now()-o)/1e3).toFixed(3);n.push("\nin ".concat(r," secs"))}t.wrappedLog.apply(t,c()(n))})};o()(A,{wrappedLog:{value:function(){var t;console&&console.log&&(t=console).log.apply(t,arguments)},writable:!0},wrappedWarn:{value:function(){var t;console&&console.warn&&(t=console).warn.apply(t,arguments)},writable:!0},setFormat:{value:function(t){var n=Error();if(!n.stack)return"";var r=n.stack.split(b).filter(function(t,n,r){return/logAF(\s+|\s+\[.+\]\s+)\(/.test(r[n?n-1:n])}),e=p()(r,1)[0],o=e.slice(e.indexOf(g)+1,e.indexOf(x)),i=o.lastIndexOf(m),c={file:function(){return"@".concat(o.slice(i+1),":\n")},path:function(){return"@".concat(o,":\n")},parent:function(){var t=o.slice(0,i).lastIndexOf(O)+1;return"@".concat(o.slice(t),":\n")},arrow:function(){return"========================>"}};return c[t]?c[t]():function(t,n,r){if("string"==typeof t)return t;var e=n.split(v),o=p()(e,3),i=o[0],c=o[1],u=o[2],a=(i=i.split(y)).pop();i=i.join(h);var f="".concat(i.split(d).pop(),"/");return t({path:i+="/",line:c,col:u,file:a,parent:f,arrow:r})}(t,o,c.arrow())},writable:!0},options:{value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.label,r=t.duration,e=t.labelFormat;"boolean"==typeof n&&(j.label=n),"boolean"==typeof r&&(j.duration=r),e&&("string"==typeof e||"function"==typeof e?j.labelFormat=e:j.wrappedWarn("Warning: logAF labelFormat option must be set to 'file' (default), 'path', 'parent', 'arrow', or a custom string or function\n"))},writable:!0}}),(A.options.reset=function(){A.label=!0,A.labelFormat="file",A.duration=!0})();var j=n.default=Object(w.a)(A,"logAF")},function(t,n,r){"use strict";r.r(n),n.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if("string"!=typeof r||Array.isArray(r))throw TypeError("splitAF may be called on a string but was called on ".concat(r));return String.prototype.split.call(r,t,n)})}},function(t,n,r){"use strict";r.r(n);var e=r(20),o=r.n(e);n.default=function(){for(var t=this,n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];return this.then(function(n){if("string"!=typeof n&&!Array.isArray(n))throw TypeError("concatAF cannot be called on ".concat(n,", only on an Array or String"));return r.reduce(function(n,r){return n instanceof o.a?n.then(function(n){return r instanceof t.constructor||r instanceof o.a?r.then(function(t){return n.concat(t)}):n.concat(r)},n):r instanceof t.constructor||r instanceof o.a?r.then(function(t){return n.concat(t)}):n.concat(r)},n)})}},function(t,n,r){"use strict";r.r(n);var e=r(6),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return this.then(function(n){if(!Object(e.a)(n))throw TypeError("joinAF cannot be called on ".concat(n,", only on an Array or array-like Object"));return Array.prototype.join.call(n,t)})};Object.defineProperty(o,"length",{value:1}),n.default=o},function(t,n,r){"use strict";r.r(n);var e=r(6);n.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(e.a)(r))throw TypeError("lastIndexOfAF cannot be called on ".concat(r,", only on an Array, String, or array-like Object"));return("string"==typeof r?String:Array).prototype.lastIndexOf.call(r,t,n||r.length-1)})}},function(t,n,r){"use strict";r.r(n);var e=r(6);n.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.then(function(r){if(!Object(e.a)(r))throw TypeError("indexOfAF cannot be called on ".concat(r,", only on an Array, String, or array-like Object"));return("string"==typeof r?String:Array).prototype.indexOf.call(r,t,n)})}},function(t,n,r){"use strict";r.r(n);var e=r(6);n.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(e.a)(r))throw TypeError("findIndexAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.findIndex.call(r,t,n)})}},function(t,n,r){"use strict";r.r(n);var e=r(6);n.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(e.a)(r))throw TypeError("findAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.find.call(r,t,n)})}},function(t,n,r){"use strict";r.r(n);var e=r(6);n.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.then(function(r){if(!Object(e.a)(r))throw TypeError("includesAF cannot be called on ".concat(r,", only on an Array, String, or array-like Object"));return("string"==typeof r?String:Array).prototype.includes.call(r,t,n)})}},function(t,n,r){"use strict";r.r(n);var e=r(6);n.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(e.a)(r))throw TypeError("someAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.some.call(r,t,n)})}},function(t,n,r){"use strict";r.r(n);var e=r(6);n.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(e.a)(r))throw TypeError("everyAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.every.call(r,t,n)})}},function(t,n,r){"use strict";r.r(n);var e=r(6);n.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.then(function(r){if(!Object(e.a)(r))throw TypeError("reduceAF cannot be called on ".concat(r,", only on an Array or array-like Object"));if(!r.length&&null===n)throw TypeError("reduceAF cannot be called on an empty array without an initial value");return Array.prototype.reduce.call(r,t,n)})}},function(t,n,r){"use strict";r.r(n);var e=r(6);n.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(e.a)(r))throw TypeError("filterAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.filter.call(r,t,n)})}},function(t,n,r){"use strict";r.r(n);var e=r(6);n.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(e.a)(r))throw TypeError("forEachAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.forEach.call(r,t,n)})}},function(t,n,r){"use strict";r.r(n);var e=r(6);n.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if(!Object(e.a)(r))throw TypeError("mapAF cannot be called on ".concat(r,", only on an Array or array-like Object"));return Array.prototype.map.call(r,t,n)})}},function(t,n,r){var e=r(69);t.exports=function(t,n,r){return n in t?e(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}},function(t,n,r){"use strict";r.r(n);var e=r(54),o=r.n(e),i=r(174),c=r.n(i),u=r(68),a=r.n(u),f=r(15),s=r.n(f),l=r(39),p=r.n(l),v=r(67),y=r.n(v),h=r(89),d=r.n(h),b=r(88),g=r.n(b),x=r(87),m=r.n(x),O=r(102),w=r(101),A=r(55),j=r.n(A),_=r(18),S=r(159),F=r(173),E=r(172),P=r(171),T=r(170),k=r(169),M=r(168),L=r(167),I=r(166),W=r(165),C=r(164),N=r(163),R=r(162),D=r(161),G=r(160),z=function(t){return"@async-af/".concat(t.replace(/AsyncAf|AF/g,"").toLowerCase())},V="".concat("./lib/","classes/"),B=[[{name:"AsyncAF"},"".concat(V,"AsyncAF"),"async-af"],[{name:"AsyncAfWrapper"},"".concat(V,"AsyncAfWrapper"),z("AsyncAfWrapper")]],H=[Object(_.a)(S.default,"logAF")].map(function(t){return[t,"".concat("./lib/","methods/other/").concat(t.name),z(t.name)]}),J=[Object(_.a)(F.default,"mapAF"),Object(_.a)(E.default,"forEachAF"),Object(_.a)(P.default,"filterAF"),Object(_.a)(T.default,"reduceAF"),Object(_.a)(k.default,"everyAF"),Object(_.a)(M.default,"someAF"),Object(_.a)(L.default,"includesAF"),Object(_.a)(I.default,"findAF"),Object(_.a)(W.default,"findIndexAF"),Object(_.a)(C.default,"indexOfAF"),Object(_.a)(N.default,"lastIndexOfAF"),Object(_.a)(R.default,"joinAF"),Object(_.a)(D.default,"concatAF")].map(function(t){return[t,"".concat("./lib/","methods/arrays/").concat(t.name),z(t.name)]}),K=[Object(_.a)(G.default,"splitAF")].map(function(t){return[t,"".concat("./lib/","methods/strings/").concat(t.name),z(t.name)]}),U=j()(J).concat(j()(K)),q=(B.concat(j()(H),j()(U),[]),function(t){return t.map(function(t){return p()(t,1)[0]})}),Y=q(H),Q=q(U),X=s()(["AF"]),Z=Object(O.a)(function(t){function n(){return y()(this,n),g()(this,m()(n).apply(this,arguments))}return d()(n,t),n}(w.AsyncAfWrapperProto)),$=function(t){return t.reduce(function(t,n){var r=n.name.split(X)||[n.name],e=p()(r,1)[0];return a()(t,c()({},n.name,{value:n}),c()({},e,{value:n}))},{})};o()(w.AsyncAfWrapperProto,$(Y)),o()(w.AsyncAfWrapperProto.prototype,$(Q)),n.default=Z}]).default},"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("AsyncAF",[],n):"object"==typeof exports?exports.AsyncAF=n():t.AsyncAF=n();
var t,n;t="undefined"!=typeof self?self:this,n=function(){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=191)}([function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n,r){var e=r(30)("wks"),o=r(28),i=r(0).Symbol,c="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=e},function(t,n,r){t.exports=r(67)},function(t,n){var r=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(5);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(10),o=r(25);t.exports=r(8)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(0),o=r(3),i=r(11),c=r(6),u=r(12),a=function(t,n,r){var f,s,l,p=t&a.F,v=t&a.G,h=t&a.S,y=t&a.P,d=t&a.B,b=t&a.W,g=v?o:o[n]||(o[n]={}),x=g.prototype,m=v?e:h?e[n]:(e[n]||{}).prototype;for(f in v&&(r=n),r)(s=!p&&m&&void 0!==m[f])&&u(g,f)||(l=s?m[f]:r[f],g[f]=v&&"function"!=typeof m[f]?r[f]:d&&s?i(l,e):b&&m[f]==l?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):y&&"function"==typeof l?i(Function.call,l):l,y&&((g.virtual||(g.virtual={}))[f]=l,t&a.R&&x&&!x[f]&&c(x,f,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n,r){t.exports=!r(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports={}},function(t,n,r){var e=r(4),o=r(56),i=r(46),c=Object.defineProperty;n.f=r(8)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(13);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e=r(47),o=r(20);t.exports=function(t){return e(o(t))}},function(t,n,r){"use strict";r.d(n,"b",function(){return c}),r.d(n,"a",function(){return u});var e=r(2),o=r.n(e),i=r(26),c=function(t){return function n(r,e){var i=r.length;if(!i)return o.a.resolve(r);var c=!(e in t);return o.a.resolve(t[e]).then(function(t){return c||(r[e]=t),e===i-1?r:n(r,e+1)})}(Array(t.length>>>0),0)},u=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return Object(i.a)(t,function(t){return t}).then(n?function(t){return Object(i.a)(Array.prototype.map.call(t,n,r))}:void 0)}},function(t,n,r){var e=r(10).f,o=r(12),i=r(1)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(5),o=r(0).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(30)("keys"),o=r(28);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n,r){"use strict";var e=r(13);t.exports.f=function(t){return new function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=e(n),this.reject=e(r)}(t)}},function(t,n,r){"use strict";n.a=function(t){return Array.isArray(t)||null!=t&&null!=t.length}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,r){"use strict";var e=r(2),o=r.n(e);n.a=function(t){return new o.a(function(n,r){var e=t.length>>>0,i=Array(e),c=e,u=e;if(!e)return n(i);for(var a=function(e){return o.a.resolve(t[e]).then(function(r){e in t&&(i[e]=r),--c||n(i)},r)};u--;)a(u)})}},function(t,n,r){var e=r(21),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n){t.exports=!0},function(t,n,r){var e=r(0),o=e["__core-js_shared__"]||(e["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(14),o=r(1)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?r:i?e(n):"Object"==(c=e(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n,r){"use strict";var e=r(29),o=r(7),i=r(48),c=r(6),u=r(9),a=r(65),f=r(17),s=r(58),l=r(1)("iterator"),p=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,r,h,y,d,b){a(r,n,h);var g,x,m,O=function(t){if(!p&&t in _)return _[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},j=n+" Iterator",w="values"==y,A=!1,_=t.prototype,S=_[l]||_["@@iterator"]||y&&_[y],F=S||O(y),E=y?w?O("entries"):F:void 0,P="Array"==n&&_.entries||S;if(P&&(m=s(P.call(new t)))!==Object.prototype&&m.next&&(f(m,j,!0),e||"function"==typeof m[l]||c(m,l,v)),w&&S&&"values"!==S.name&&(A=!0,F=function(){return S.call(this)}),e&&!b||!p&&!A&&_[l]||c(_,l,F),u[n]=F,u[j]=v,y)if(g={values:w?F:O("values"),keys:d?F:O("keys"),entries:E},b)for(x in g)x in _||i(_,x,g[x]);else o(o.P+o.F*(p||A),n,g);return g}},function(t,n,r){var e=r(0).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(4),o=r(13),i=r(1)("species");t.exports=function(t,n){var r,c=e(t).constructor;return void 0===c||void 0==(r=e(c)[i])?n:o(r)}},function(t,n,r){var e,o,i,c=r(11),u=r(59),a=r(34),f=r(19),s=r(0),l=s.process,p=s.setImmediate,v=s.clearImmediate,h=s.MessageChannel,y=s.Dispatch,d=0,b={},g=function(){var t=+this;if(b.hasOwnProperty(t)){var n=b[t];delete b[t],n()}},x=function(t){g.call(t.data)};p&&v||(p=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return b[++d]=function(){u("function"==typeof t?t:Function(t),n)},e(d),d},v=function(t){delete b[t]},"process"==r(14)(l)?e=function(t){l.nextTick(c(g,t,1))}:y&&y.now?e=function(t){y.now(c(g,t,1))}:h?(i=(o=new h).port2,o.port1.onmessage=x,e=c(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",x,!1)):e="onreadystatechange"in f("script")?function(t){a.appendChild(f("script")).onreadystatechange=function(){a.removeChild(this),g.call(t)}}:function(t){setTimeout(c(g,t,1),0)}),t.exports={set:p,clear:v}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,r){var e=r(4),o=r(5),i=r(23);t.exports=function(t,n){if(e(t),o(n)&&n.constructor===t)return n;var r=i.f(t);return(0,r.resolve)(n),r.promise}},function(t,n,r){var e=r(20);t.exports=function(t){return Object(e(t))}},function(t,n,r){"use strict";var e=r(66)(!0);r(33)(String,"String",function(t){this._t=t+"",this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){var e=r(57),o=r(31);t.exports=Object.keys||function(t){return e(t,o)}},function(t,n,r){r(62);for(var e=r(0),o=r(6),i=r(9),c=r(1)("toStringTag"),u="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(","),a=0;a<u.length;a++){var f=u[a],s=e[f],l=s&&s.prototype;l&&!l[c]&&o(l,c,f),i[f]=i.Array}},function(t,n,r){var e=r(32),o=r(1)("iterator"),i=r(9);t.exports=r(3).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[e(t)]}},function(t,n){},function(t,n,r){var e=r(11),o=r(51),i=r(52),c=r(4),u=r(27),a=r(43),f={},s={};(n=t.exports=function(t,n,r,l,p){var v,h,y,d,b=p?function(){return t}:a(t),g=e(r,l,n?2:1),x=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(i(b)){for(v=u(t.length);v>x;x++)if((d=n?g(c(h=t[x])[0],h[1]):g(t[x]))===f||d===s)return d}else for(y=b.call(t);!(h=y.next()).done;)if((d=o(y,g,h.value,n))===f||d===s)return d}).BREAK=f,n.RETURN=s},function(t,n,r){var e=r(5);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n,r){t.exports=r(6)},function(t,n,r){var e=r(4),o=r(55),i=r(31),c=r(22)("IE_PROTO"),u=function(){},a=function(){var t,n=r(19)("iframe"),e=i.length;for(n.style.display="none",r(34).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;e--;)delete a.prototype[i[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(u.prototype=e(t),r=new u,u.prototype=null,r[c]=t):r=a(),void 0===n?r:o(r,n)}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(4);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(n){var i=t.return;throw void 0!==i&&e(i.call(t)),n}}},function(t,n,r){var e=r(9),o=r(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||i[o]===t)}},function(t,n,r){var e=r(6);t.exports=function(t,n,r){for(var o in n)r&&t[o]?t[o]=n[o]:e(t,o,n[o]);return t}},function(t,n,r){var e=r(1)("iterator"),o=!1;try{var i=[7][e]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var r=!1;try{var i=[7],c=i[e]();c.next=function(){return{done:r=!0}},i[e]=function(){return c},t(i)}catch(t){}return r}},function(t,n,r){var e=r(10),o=r(4),i=r(41);t.exports=r(8)?Object.defineProperties:function(t,n){o(t);for(var r,c=i(n),u=c.length,a=0;u>a;)e.f(t,r=c[a++],n[r]);return t}},function(t,n,r){t.exports=!r(8)&&!r(18)(function(){return 7!=Object.defineProperty(r(19)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(12),o=r(15),i=r(60)(!1),c=r(22)("IE_PROTO");t.exports=function(t,n){var r,u=o(t),a=0,f=[];for(r in u)r!=c&&e(u,r)&&f.push(r);for(;n.length>a;)e(u,r=n[a++])&&(~i(f,r)||f.push(r));return f}},function(t,n,r){var e=r(12),o=r(39),i=r(22)("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),e(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,n){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},function(t,n,r){var e=r(15),o=r(27),i=r(61);t.exports=function(t){return function(n,r,c){var u,a=e(n),f=o(a.length),s=i(c,f);if(t&&r!=r){for(;f>s;)if((u=a[s++])!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}}},function(t,n,r){var e=r(21),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=e(t))<0?o(t+n,0):i(t,n)}},function(t,n,r){"use strict";var e=r(63),o=r(64),i=r(9),c=r(15);t.exports=r(33)(Array,"Array",function(t,n){this._t=c(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(49),o=r(25),i=r(17),c={};r(6)(c,r(1)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(c,{next:o(1,r)}),i(t,n+" Iterator")}},function(t,n,r){var e=r(21),o=r(20);t.exports=function(t){return function(n,r){var i,c,u=o(n)+"",a=e(r),f=u.length;return a<0||a>=f?t?"":void 0:(i=u.charCodeAt(a))<55296||i>56319||a+1===f||(c=u.charCodeAt(a+1))<56320||c>57343?t?u.charAt(a):i:t?u.slice(a,a+2):c-56320+(i-55296<<10)+65536}}},function(t,n,r){r(44),r(40),r(42),r(68),r(71),r(72),t.exports=r(3).Promise},function(t,n,r){"use strict";var e,o,i,c,u=r(29),a=r(0),f=r(11),s=r(32),l=r(7),p=r(5),v=r(13),h=r(50),y=r(45),d=r(35),b=r(36).set,g=r(69)(),x=r(23),m=r(37),O=r(38),j=a.TypeError,w=a.process,A=a.Promise,_="process"==s(w),S=function(){},F=o=x.f,E=!!function(){try{var t=A.resolve(1),n=(t.constructor={})[r(1)("species")]=function(t){t(S,S)};return(_||"function"==typeof PromiseRejectionEvent)&&t.then(S)instanceof n}catch(t){}}(),P=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},T=function(t,n){if(!t._n){t._n=!0;var r=t._c;g(function(){for(var e=t._v,o=1==t._s,i=0,c=function(n){var r,i,c,u=o?n.ok:n.fail,a=n.resolve,f=n.reject,s=n.domain;try{u?(o||(2==t._h&&L(t),t._h=1),!0===u?r=e:(s&&s.enter(),r=u(e),s&&(s.exit(),c=!0)),r===n.promise?f(j("Promise-chain cycle")):(i=P(r))?i.call(r,a,f):a(r)):f(e)}catch(t){s&&!c&&s.exit(),f(t)}};r.length>i;)c(r[i++]);t._c=[],t._n=!1,n&&!t._h&&k(t)})}},k=function(t){b.call(a,function(){var n,r,e,o=t._v,i=M(t);if(i&&(n=m(function(){_?w.emit("unhandledRejection",o,t):(r=a.onunhandledrejection)?r({promise:t,reason:o}):(e=a.console)&&e.error&&e.error("Unhandled promise rejection",o)}),t._h=_||M(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},M=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){b.call(a,function(){var n;_?w.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},I=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),T(n,!0))},N=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw j("Promise can't be resolved itself");(n=P(t))?g(function(){var e={_w:r,_d:!1};try{n.call(t,f(N,e,1),f(I,e,1))}catch(t){I.call(e,t)}}):(r._v=t,r._s=1,T(r,!1))}catch(t){I.call({_w:r,_d:!1},t)}}};E||(A=function(t){h(this,A,"Promise","_h"),v(t),e.call(this);try{t(f(N,this,1),f(I,this,1))}catch(t){I.call(this,t)}},(e=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=r(53)(A.prototype,{then:function(t,n){var r=F(d(this,A));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=_?w.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&T(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new e;this.promise=t,this.resolve=f(N,t,1),this.reject=f(I,t,1)},x.f=F=function(t){return t===A||t===c?new i(t):o(t)}),l(l.G+l.W+l.F*!E,{Promise:A}),r(17)(A,"Promise"),r(70)("Promise"),c=r(3).Promise,l(l.S+l.F*!E,"Promise",{reject:function(t){var n=F(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(u||!E),"Promise",{resolve:function(t){return O(u&&this===c?A:this,t)}}),l(l.S+l.F*!(E&&r(54)(function(t){A.all(t).catch(S)})),"Promise",{all:function(t){var n=this,r=F(n),e=r.resolve,o=r.reject,i=m(function(){var r=[],i=0,c=1;y(t,!1,function(t){var u=i++,a=!1;r.push(void 0),c++,n.resolve(t).then(function(t){a||(a=!0,r[u]=t,--c||e(r))},o)}),--c||e(r)});return i.e&&o(i.v),r.promise},race:function(t){var n=this,r=F(n),e=r.reject,o=m(function(){y(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return o.e&&e(o.v),r.promise}})},function(t,n,r){var e=r(0),o=r(36).set,i=e.MutationObserver||e.WebKitMutationObserver,c=e.process,u=e.Promise,a="process"==r(14)(c);t.exports=function(){var t,n,r,f=function(){var e,o;for(a&&(e=c.domain)&&e.exit();t;){o=t.fn,t=t.next;try{o()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(a)r=function(){c.nextTick(f)};else if(!i||e.navigator&&e.navigator.standalone)if(u&&u.resolve){var s=u.resolve();r=function(){s.then(f)}}else r=function(){o.call(e,f)};else{var l=!0,p=document.createTextNode("");new i(f).observe(p,{characterData:!0}),r=function(){p.data=l=!l}}return function(e){var o={fn:e,next:void 0};n&&(n.next=o),t||(t=o,r()),n=o}}},function(t,n,r){"use strict";var e=r(0),o=r(3),i=r(10),c=r(8),u=r(1)("species");t.exports=function(t){var n="function"==typeof o[t]?o[t]:e[t];c&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n,r){"use strict";var e=r(7),o=r(3),i=r(0),c=r(35),u=r(38);e(e.P+e.R,"Promise",{finally:function(t){var n=c(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return u(n,t()).then(function(){return r})}:t,r?function(r){return u(n,t()).then(function(){throw r})}:t)}})},function(t,n,r){"use strict";var e=r(7),o=r(23),i=r(37);e(e.S,"Promise",{try:function(t){var n=o.f(this),r=i(t);return(r.e?n.reject:n.resolve)(r.v),n.promise}})},function(t,n,r){"use strict";n.a=function(t,n){return Object.defineProperty(t,"name",{value:n,configurable:!0})}},function(t,n,r){var e=r(75),o=r(137);t.exports=function(t,n){return n||(n=t.slice(0)),o(e(t,{raw:{value:o(n)}}))}},function(t,n,r){t.exports=r(103)},,function(t,n,r){t.exports=r(94)},function(t,n,r){var e=r(140),o=r(141),i=r(145);t.exports=function(t,n){return e(t)||o(t,n)||i()}},function(t,n,r){var e=r(28)("meta"),o=r(5),i=r(12),c=r(10).f,u=0,a=Object.isExtensible||function(){return!0},f=!r(18)(function(){return a(Object.preventExtensions({}))}),s=function(t){c(t,e,{value:{i:"O"+ ++u,w:{}}})},l=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!a(t))return"F";if(!n)return"E";s(t)}return t[e].i},getWeak:function(t,n){if(!i(t,e)){if(!a(t))return!0;if(!n)return!1;s(t)}return t[e].w},onFreeze:function(t){return f&&l.NEED&&a(t)&&!i(t,e)&&s(t),t}}},function(t,n,r){t.exports=r(112)},function(t,n,r){var e=r(7),o=r(3),i=r(18);t.exports=function(t,n){var r=(o.Object||{})[t]||Object[t],c={};c[t]=n(r),e(e.S+e.F*i(function(){r(1)}),"Object",c)}},function(t,n,r){var e=r(105);t.exports=function(t,n,r){return n in t?e(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}},function(t,n,r){var e=r(184),o=r(185),i=r(189);t.exports=function(t){return e(t)||o(t)||i()}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){n.f=r(1)},function(t,n,r){var e=r(149),o=r(151);function i(t){return(i="function"==typeof o&&"symbol"==typeof e?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t})(t)}function c(n){return"function"==typeof o&&"symbol"===i(e)?t.exports=c=function(t){return i(t)}:t.exports=c=function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":i(t)},c(n)}t.exports=c},function(t,n,r){t.exports=r(174)},function(t,n,r){t.exports=r(135)},function(t,n){t.exports=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(84),o=r(25),i=r(15),c=r(46),u=r(12),a=r(56),f=Object.getOwnPropertyDescriptor;n.f=r(8)?f:function(t,n){if(t=i(t),n=c(n,!0),a)try{return f(t,n)}catch(t){}if(u(t,n))return o(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(0),o=r(3),i=r(29),c=r(85),u=r(10).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||u(n,t,{value:c.f(t)})}},function(t,n,r){var e=r(11),o=r(47),i=r(39),c=r(27),u=r(176);t.exports=function(t,n){var r=1==t,a=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l,v=n||u;return function(n,u,h){for(var y,d,b=i(n),g=o(b),x=e(u,h,3),m=c(g.length),O=0,j=r?v(n,m):a?v(n,0):void 0;m>O;O++)if((p||O in g)&&(d=x(y=g[O],O,b),t))if(r)j[O]=d;else if(d)switch(t){case 3:return!0;case 5:return y;case 6:return O;case 2:j.push(y)}else if(s)return!1;return l?-1:f||s?s:j}}},function(t,n,r){r(40),r(95),t.exports=r(3).Array.from},function(t,n,r){"use strict";var e=r(11),o=r(7),i=r(39),c=r(51),u=r(52),a=r(27),f=r(96),s=r(43);o(o.S+o.F*!r(54)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,o,l,p=i(t),v="function"==typeof this?this:Array,h=arguments.length,y=h>1?arguments[1]:void 0,d=void 0!==y,b=0,g=s(p);if(d&&(y=e(y,h>2?arguments[2]:void 0,2)),void 0==g||v==Array&&u(g))for(r=new v(n=a(p.length));n>b;b++)f(r,b,d?y(p[b],b):p[b]);else for(l=g.call(p),r=new v;!(o=l.next()).done;b++)f(r,b,d?c(l,y,[o.value,b],!0):o.value);return r.length=b,r}})},function(t,n,r){"use strict";var e=r(10),o=r(25);t.exports=function(t,n,r){n in t?e.f(t,n,o(0,r)):t[n]=r}},function(t,n,r){t.exports=r(146)},function(t,n,r){var e=r(107);t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e(t.prototype,n&&n.prototype),n&&e(t,n)}},function(t,n,r){var e=r(86),o=r(157);t.exports=function(t,n){return!n||"object"!==e(n)&&"function"!=typeof n?o(t):n}},function(t,n,r){var e=r(158);function o(n){return t.exports=o=e||function(t){return t.__proto__},o(n)}t.exports=o},function(t,n,r){"use strict";var e=r(97),o=r.n(e),i=r(114),c=r.n(i),u=r(73);n.a=function(t){var n=t.name,r=function(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];return c()(t,r)};return r.prototype=t.prototype,o()(r,t),r.prototype.constructor=r,Object(u.a)(r,n)}},function(t,n,r){"use strict";r.r(n);var e=r(98),o=r.n(e),i=r(99),c=r.n(i),u=r(100),a=r.n(u),f=r(82),s=r.n(f),l=r(115),p=r.n(l),v=r(116),h=r.n(v),y=r(75),d=r.n(y),b=r(2),g=r.n(b),x=r(89),m=r.n(x),O=r(117),j=r.n(O),w=r(87),A=r.n(w),_=r(101),S=r(88),F=r.n(S),E=r(86),P=r.n(E),T=new A.a,k={inSeries:{get:function(){return T.get(this)}},series:{get:function(){return T.set(this,!this.inSeries),this}},io:{get:function(){return this.series}}};r.d(n,"AsyncAfWrapperProto",function(){return L});var M=new A.a,L=function(){function t(n){m()(this,t),M.set(this,g.a.resolve(n))}return j()(t,[{key:"then",value:function(t,n){return this.constructor(M.get(this).then(t,n))}},{key:"catch",value:function(t){return this.then(null,t)}},{key:"finally",value:function(t){return M.get(this).finally(t)}}]),t}();L.use=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==P()(t))throw TypeError("prototypeMethods param accepts an Object containing the prototypeMethods you'd like to add to the AsyncAF prototype, or an empty Object");if("object"!==P()(n))throw TypeError("staticMethods param accepts an Object containing the staticMethods you'd like to add to AsyncAF");F()(this.prototype,t),F()(this,n)},d()(L.prototype,h()({},k,s()({},p.a,{value:"AsyncAF"})));var I=Object(_.a)(function(t){function n(){return m()(this,n),c()(this,a()(n).apply(this,arguments))}return o()(n,t),n}(L));n.default=I},function(t,n,r){r(104);var e=r(3).Object;t.exports=function(t,n){return e.defineProperties(t,n)}},function(t,n,r){var e=r(7);e(e.S+e.F*!r(8),"Object",{defineProperties:r(55)})},function(t,n,r){t.exports=r(133)},function(t,n,r){"use strict";var e=r(41),o=r(90),i=r(84),c=r(39),u=r(47),a=Object.assign;t.exports=!a||r(18)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=a({},t)[r]||Object.keys(a({},n)).join("")!=e})?function(t,n){for(var r=c(t),a=arguments.length,f=1,s=o.f,l=i.f;a>f;)for(var p,v=u(arguments[f++]),h=s?e(v).concat(s(v)):e(v),y=h.length,d=0;y>d;)l.call(v,p=h[d++])&&(r[p]=v[p]);return r}:a},function(t,n,r){var e=r(97);function o(n,r){return t.exports=o=e||function(t,n){return t.__proto__=n,t},o(n,r)}t.exports=o},function(t,n,r){"use strict";var e=r(0),o=r(12),i=r(8),c=r(7),u=r(48),a=r(79).KEY,f=r(18),s=r(30),l=r(17),p=r(28),v=r(1),h=r(85),y=r(92),d=r(153),b=r(109),g=r(4),x=r(5),m=r(15),O=r(46),j=r(25),w=r(49),A=r(154),_=r(91),S=r(10),F=r(41),E=_.f,P=S.f,T=A.f,k=e.Symbol,M=e.JSON,L=M&&M.stringify,I=v("_hidden"),N=v("toPrimitive"),W={}.propertyIsEnumerable,C=s("symbol-registry"),R=s("symbols"),D=s("op-symbols"),G=Object.prototype,z="function"==typeof k,B=e.QObject,V=!B||!B.prototype||!B.prototype.findChild,H=i&&f(function(){return 7!=w(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=E(G,n);e&&delete G[n],P(t,n,r),e&&t!==G&&P(G,n,e)}:P,J=function(t){var n=R[t]=w(k.prototype);return n._k=t,n},K=z&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},U=function(t,n,r){return t===G&&U(D,n,r),g(t),n=O(n,!0),g(r),o(R,n)?(r.enumerable?(o(t,I)&&t[I][n]&&(t[I][n]=!1),r=w(r,{enumerable:j(0,!1)})):(o(t,I)||P(t,I,j(1,{})),t[I][n]=!0),H(t,n,r)):P(t,n,r)},q=function(t,n){g(t);for(var r,e=d(n=m(n)),o=0,i=e.length;i>o;)U(t,r=e[o++],n[r]);return t},Y=function(t){var n=W.call(this,t=O(t,!0));return!(this===G&&o(R,t)&&!o(D,t))&&(!(n||!o(this,t)||!o(R,t)||o(this,I)&&this[I][t])||n)},Q=function(t,n){if(t=m(t),n=O(n,!0),t!==G||!o(R,n)||o(D,n)){var r=E(t,n);return!r||!o(R,n)||o(t,I)&&t[I][n]||(r.enumerable=!0),r}},X=function(t){for(var n,r=T(m(t)),e=[],i=0;r.length>i;)o(R,n=r[i++])||n==I||n==a||e.push(n);return e},Z=function(t){for(var n,r=t===G,e=T(r?D:m(t)),i=[],c=0;e.length>c;)!o(R,n=e[c++])||r&&!o(G,n)||i.push(R[n]);return i};z||(u((k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(r){this===G&&n.call(D,r),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),H(this,t,j(1,r))};return i&&V&&H(G,t,{configurable:!0,set:n}),J(t)}).prototype,"toString",function(){return this._k}),_.f=Q,S.f=U,r(110).f=A.f=X,r(84).f=Y,r(90).f=Z,i&&!r(29)&&u(G,"propertyIsEnumerable",Y,!0),h.f=function(t){return J(v(t))}),c(c.G+c.W+c.F*!z,{Symbol:k});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)v($[tt++]);for(var nt=F(v.store),rt=0;nt.length>rt;)y(nt[rt++]);c(c.S+c.F*!z,"Symbol",{for:function(t){return o(C,t+="")?C[t]:C[t]=k(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var n in C)if(C[n]===t)return n},useSetter:function(){V=!0},useSimple:function(){V=!1}}),c(c.S+c.F*!z,"Object",{create:function(t,n){return void 0===n?w(t):q(w(t),n)},defineProperty:U,defineProperties:q,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),M&&c(c.S+c.F*(!z||f(function(){var t=k();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);if(r=n=e[1],(x(n)||void 0!==t)&&!K(t))return b(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!K(n))return n}),e[1]=n,L.apply(M,e)}}),k.prototype[N]||r(6)(k.prototype,N,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){var e=r(14);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(57),o=r(31).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n,r){var e=r(5);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,r){r(113),t.exports=r(3).Number.isNaN},function(t,n,r){var e=r(7);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(161),o=r(107);function i(n,r,c){return"undefined"!=typeof Reflect&&e?t.exports=i=e:t.exports=i=function(t,n,r){var e=[null];e.push.apply(e,n);var i=new(t.bind.apply(t,e));return r&&o(i,r.prototype),i},i.apply(null,arguments)}t.exports=i},function(t,n,r){t.exports=r(165)},function(t,n,r){var e=r(166),o=r(169),i=r(171),c=r(82);t.exports=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},u=i(r);"function"==typeof o&&(u=u.concat(o(r).filter(function(t){return e(r,t).enumerable}))),u.forEach(function(n){c(t,n,r[n])})}return t}},function(t,n,r){var e=r(105);function o(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),e(t,o.key,o)}}t.exports=function(t,n,r){return n&&o(t.prototype,n),r&&o(t,r),t}},function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=r(24),c=r(26),u=r(16);n.default=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!Object(i.a)(e))throw TypeError("mapAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof t)throw TypeError("".concat(t," is not a function"));return n.inSeries?Object(u.b)(e).then(function(n){return n.reduce(function(n,e,i,u){return n.then(function(n){return n[i]=o.a.resolve(t.call(r,e,i,u)),Object(c.a)(n)})},o.a.resolve(Array(n.length>>>0)))}):Object(u.a)(e,t,r)})}},function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=r(24),c=r(16);n.default=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!Object(i.a)(e))throw TypeError("forEachAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof t)throw TypeError("".concat(t," is not a function"));return(n.inSeries?Object(c.b)(e).then(function(n){return n.reduce(function(n,e,i,c){return n.then(function(){return o.a.resolve(t.call(r,e,i,c))})},o.a.resolve())}):Object(c.a)(e,t,r)).then(function(){})})}},function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=r(24),c=r(16);n.default=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!Object(i.a)(e))throw TypeError("filterAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof t)throw TypeError("".concat(t," is not a function"));return(n.inSeries?c.b:c.a)(e).then(function(e){return(n.inSeries?e.reduce(function(n,e,i,c){return n.then(function(n){return n[i]=t.call(r,e,i,c),o.a.all(n)})},o.a.all([])):Object(c.a)(e,t,r)).then(function(t){return e.filter(function(n,r){return t[r]})})})})}},function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=r(24),c=r(16);n.default=function(t){var n=this,r=arguments;return this.then(function(e){if(!Object(i.a)(e))throw TypeError("reduceAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof t)throw TypeError("".concat(t," is not a function"));var u=e.length>>>0;if(!u&&1===r.length)throw TypeError("reduceAF cannot be called on an empty array without an initial value");if(!u)return r[1];var a,f=function(t){return!(t in e)},s=0;if(2===r.length)a=r[1];else{for(;f(s);)s++;a=e[s++]}return(n.inSeries?Object(c.b)(e):Object(c.a)(e)).then(function(n){return function r(e,i){return o.a.resolve(e).then(function(e){return o.a.resolve(f(i)?e:t(e,n[i],i,n)).then(function(t){return i===u-1?t:r(t,i+1)})})}(a,s)})})}},function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=r(24),c=r(16);n.default=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!Object(i.a)(e))throw TypeError("everyAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof t)throw TypeError("".concat(t," is not a function"));var u=e.length>>>0;return n.inSeries?!u||function n(e,i){var c=!(i in e);return o.a.resolve(e[i]).then(function(a){return e[i]=a,o.a.resolve(!c&&t.call(r,a,i,e)).then(function(t){return!(!t&&!c)&&(i===u-1||n(e,i+1))})})}(Array.prototype.slice.call(e),0):Object(c.a)(e,t,r).then(function(t){return t.every(Boolean)})})}},function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=r(24),c=r(16);n.default=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!Object(i.a)(e))throw TypeError("someAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof t)throw TypeError("".concat(t," is not a function"));var u=e.length>>>0;return n.inSeries?!!u&&function n(e,i){var c=!(i in e);return o.a.resolve(e[i]).then(function(a){return e[i]=a,o.a.resolve(!c&&t.call(r,a,i,e)).then(function(t){return!(!t||c)||i!==u-1&&n(e,i+1)})})}(Array.prototype.slice.call(e),0):Object(c.a)(e,t,r).then(function(t){return t.some(Boolean)})})}},function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=r(80),c=r.n(i),u=r(24),a=r(16);n.default=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.then(function(e){if(!Object(u.a)(e))throw TypeError("includesAF cannot be called on ".concat(e,", only on an Array, String, or array-like Object"));var i=e.length>>>0,f=0|r;return"string"==typeof e?e.includes(t,f):n.inSeries?!!i&&function n(r){return o.a.resolve(e[r]).then(function(e){return!!((o=e)===(u=t)||c()(o)&&c()(u))||!(r>=i-1)&&n(r+1);var o,u})}(Math.max(f>=0?f:i-Math.abs(f),0)):Object(a.a)(e).then(function(n){return n.includes(t,f)})})}},function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=r(77),c=r.n(i),u=r(24),a=r(16);n.default=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!Object(u.a)(e))throw TypeError("findAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof t)throw TypeError("".concat(t," is not a function"));var i=c()(e),f=i.length>>>0;return n.inSeries?f?function n(e,i){return o.a.resolve(e[i]).then(function(c){return e[i]=c,o.a.resolve(t.call(r,c,i,e)).then(function(t){return t?c:i!==f-1?n(e,i+1):void 0})})}(i,0):void 0:Object(a.a)(i,t,r).then(function(t){return e[t.indexOf(!0)]})})}},function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=r(77),c=r.n(i),u=r(24),a=r(16);n.default=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!Object(u.a)(e))throw TypeError("findIndexAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof t)throw TypeError("".concat(t," is not a function"));var i=c()(e),f=i.length>>>0;return n.inSeries?f?function n(e,i){return o.a.resolve(e[i]).then(function(c){return e[i]=c,o.a.resolve(t.call(r,c,i,e)).then(function(t){return t?i:i===f-1?-1:n(e,i+1)})})}(i,0):-1:Object(a.a)(i,t,r).then(function(t){return t.indexOf(!0)})})}},function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=r(24),c=r(16);n.default=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.then(function(e){if(!Object(i.a)(e))throw TypeError("indexOfAF cannot be called on ".concat(e,", only on an Array, String, or array-like Object"));var u=e.length>>>0,a=0|r;return"string"==typeof e?e.indexOf(t,a):n.inSeries?function n(r){return o.a.resolve(e[r]).then(function(o){return r in e&&o===t?r:r>=u-1?-1:n(r+1)})}(Math.max(a>=0?a:u-Math.abs(a),0)):Object(c.a)(e).then(function(n){return n.indexOf(t,a)})})}},function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=r(80),c=r.n(i),u=r(24),a=r(16);n.default=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!Object(u.a)(e))throw TypeError("lastIndexOfAF cannot be called on ".concat(e,", only on an Array, String, or array-like Object"));var i=e.length>>>0,f=+r;return c()(f)&&(f=i-1),"string"==typeof e?e.lastIndexOf(t,f):n.inSeries?function n(r){return o.a.resolve(e[r]).then(function(o){return r in e&&o===t?r:r<=0?-1:n(r-1)})}(Math.min(f>=0?f:Math.max(i-Math.abs(f),0),i-1)):Object(a.a)(e).then(function(n){return n.lastIndexOf(t,f)})})}},function(t,n,r){"use strict";r.r(n);var e=r(24),o=r(16),i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return this.then(function(n){if(!Object(e.a)(n))throw TypeError("joinAF cannot be called on ".concat(n,", only on an Array or array-like Object"));return Object(o.a)(n).then(function(n){return n.join(t)})})};Object.defineProperty(i,"length",{value:1}),n.default=i},function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=function(t){return o.a[Array.isArray(t)?"all":"resolve"](t)};n.default=function(){for(var t=this,n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];var c=function(n){return[o.a,t.constructor].some(function(t){return n instanceof t})},u=function(t,n){return c(n)&&n.then(i).then(function(n){return t.concat(n)})||t.concat(n)};return this.then(function(t){if("string"!=typeof t&&!Array.isArray(t))throw TypeError("concatAF cannot be called on ".concat(t,", only on an Array or String"));return i(t).then(function(t){return r.reduce(function(t,n){return c(t)?t.then(function(t){return u(t,n)}):u(t,n)},t)})})}},function(t,n,r){"use strict";r.r(n),n.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(r){if("string"!=typeof r||Array.isArray(r))throw TypeError("splitAF may be called on a string but was called on ".concat(r));return String.prototype.split.call(r,t,n)})}},function(t,n,r){"use strict";r.r(n);var e=r(75),o=r.n(e),i=r(83),c=r.n(i),u=r(2),a=r.n(u),f=r(74),s=r.n(f),l=r(78),p=r.n(l),v=s()([":"]),h=s()(["/"]),y=s()(["/"]),d=s()(["/"]),b=s()(["\n"],["\\n"]),g=s()(["/"]),x=s()(["/"]),m=s()(["/"]),O=r(73),j=function t(){for(var n=arguments.length,r=Array(n),e=0;e<n;e++)r[e]=arguments[e];t.label&&r.unshift(t.setFormat(t.labelFormat));var o=Date.now();return a.a.all(r).then(function(n){if(t.duration){var r=((Date.now()-o)/1e3).toFixed(3);n.push("\n in ".concat(r," secs"))}t.wrappedLog.apply(t,[""].concat(c()(n)))})};o()(j,{wrappedLog:{value:function(){var t;console&&console.log&&(t=console).log.apply(t,arguments)},writable:!0},wrappedWarn:{value:function(){var t;console&&console.warn&&(t=console).warn.apply(t,arguments)},writable:!0},setFormat:{value:function(t){var n=Error();if(!n.stack)return"";var r=n.stack.split(b).filter(function(t,n,r){return/logAF(\s+|\s+\[.+\]\s+)\(/.test(r[n?n-1:n])}),e=p()(r,1)[0],o=e.slice(e.indexOf(g)).replace(")",""),i=o.lastIndexOf(x),c={file:function(){return"@".concat(o.slice(i+1),":\n")},path:function(){return"@".concat(o,":\n")},parent:function(){var t=o.slice(0,i).lastIndexOf(m)+1;return"@".concat(o.slice(t),":\n")},arrow:function(){return"========================>"}};return c[t]?c[t]():function(t,n,r){if("string"==typeof t)return t;var e=n.split(v),o=p()(e,3),i=o[0],c=o[1],u=o[2],a=(i=i.split(h)).pop();i=i.join(y);var f="".concat(i.split(d).pop(),"/");return t({path:i+="/",line:c,col:u,file:a,parent:f,arrow:r})}(t,o,c.arrow())},writable:!0},options:{value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.label,r=t.duration,e=t.labelFormat;"boolean"==typeof n&&(w.label=n),"boolean"==typeof r&&(w.duration=r),e&&("string"==typeof e||"function"==typeof e?w.labelFormat=e:w.wrappedWarn("Warning: logAF labelFormat option must be set to 'file' (default), 'path', 'parent', 'arrow', or a custom string or function\n"))},writable:!0}}),(j.options.reset=function(){j.label=!0,j.labelFormat="file",j.duration=!0})();var w=n.default=Object(O.a)(j,"logAF")},function(t,n,r){r(134);var e=r(3).Object;t.exports=function(t,n,r){return e.defineProperty(t,n,r)}},function(t,n,r){var e=r(7);e(e.S+e.F*!r(8),"Object",{defineProperty:r(10).f})},function(t,n,r){r(136),t.exports=r(3).Object.assign},function(t,n,r){var e=r(7);e(e.S+e.F,"Object",{assign:r(106)})},function(t,n,r){t.exports=r(138)},function(t,n,r){r(139),t.exports=r(3).Object.freeze},function(t,n,r){var e=r(5),o=r(79).onFreeze;r(81)("freeze",function(t){return function(n){return t&&e(n)?t(o(n)):n}})},function(t,n){t.exports=function(t){if(Array.isArray(t))return t}},function(t,n,r){var e=r(142);t.exports=function(t,n){var r=[],o=!0,i=!1,c=void 0;try{for(var u,a=e(t);!(o=(u=a.next()).done)&&(r.push(u.value),!n||r.length!==n);o=!0);}catch(t){i=!0,c=t}finally{try{o||null==a.return||a.return()}finally{if(i)throw c}}return r}},function(t,n,r){t.exports=r(143)},function(t,n,r){r(42),r(40),t.exports=r(144)},function(t,n,r){var e=r(4),o=r(43);t.exports=r(3).getIterator=function(t){var n=o(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return e(n.call(t))}},function(t,n){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,n,r){r(147),t.exports=r(3).Object.setPrototypeOf},function(t,n,r){var e=r(7);e(e.S,"Object",{setPrototypeOf:r(148).set})},function(t,n,r){var e=r(5),o=r(4),i=function(t,n){if(o(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{(e=r(11)(Function.call,r(91).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return i(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:i}},function(t,n,r){t.exports=r(150)},function(t,n,r){r(40),r(42),t.exports=r(85).f("iterator")},function(t,n,r){t.exports=r(152)},function(t,n,r){r(108),r(44),r(155),r(156),t.exports=r(3).Symbol},function(t,n,r){var e=r(41),o=r(90),i=r(84);t.exports=function(t){var n=e(t),r=o.f;if(r)for(var c,u=r(t),a=i.f,f=0;u.length>f;)a.call(t,c=u[f++])&&n.push(c);return n}},function(t,n,r){var e=r(15),o=r(110).f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return c.slice()}}(t):o(e(t))}},function(t,n,r){r(92)("asyncIterator")},function(t,n,r){r(92)("observable")},function(t,n){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,n,r){t.exports=r(159)},function(t,n,r){r(160),t.exports=r(3).Object.getPrototypeOf},function(t,n,r){var e=r(39),o=r(58);r(81)("getPrototypeOf",function(){return function(t){return o(e(t))}})},function(t,n,r){t.exports=r(162)},function(t,n,r){r(163),t.exports=r(3).Reflect.construct},function(t,n,r){var e=r(7),o=r(49),i=r(13),c=r(4),u=r(5),a=r(18),f=r(164),s=(r(0).Reflect||{}).construct,l=a(function(){function t(){}return!(s(function(){},[],t)instanceof t)}),p=!a(function(){s(function(){})});e(e.S+e.F*(l||p),"Reflect",{construct:function(t,n){i(t),c(n);var r=arguments.length<3?t:i(arguments[2]);if(p&&!l)return s(t,n,r);if(t==r){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(f.apply(t,e))}var a=r.prototype,v=o(u(a)?a:Object.prototype),h=Function.apply.call(t,v,n);return u(h)?h:v}})},function(t,n,r){"use strict";var e=r(13),o=r(5),i=r(59),c=[].slice,u={};t.exports=Function.bind||function(t){var n=e(this),r=c.call(arguments,1),a=function(){var e=r.concat(c.call(arguments));return this instanceof a?function(t,n,r){if(!(n in u)){for(var e=[],o=0;o<n;o++)e[o]="a["+o+"]";u[n]=Function("F,a","return new F("+e.join(",")+")")}return u[n](t,r)}(n,e.length,e):i(n,e,t)};return o(n.prototype)&&(a.prototype=n.prototype),a}},function(t,n,r){r(44),t.exports=r(85).f("toStringTag")},function(t,n,r){t.exports=r(167)},function(t,n,r){r(168);var e=r(3).Object;t.exports=function(t,n){return e.getOwnPropertyDescriptor(t,n)}},function(t,n,r){var e=r(15),o=r(91).f;r(81)("getOwnPropertyDescriptor",function(){return function(t,n){return o(e(t),n)}})},function(t,n,r){t.exports=r(170)},function(t,n,r){r(108),t.exports=r(3).Object.getOwnPropertySymbols},function(t,n,r){t.exports=r(172)},function(t,n,r){r(173),t.exports=r(3).Object.keys},function(t,n,r){var e=r(39),o=r(41);r(81)("keys",function(){return function(t){return o(e(t))}})},function(t,n,r){r(44),r(42),r(175),r(180),r(182),t.exports=r(3).WeakMap},function(t,n,r){"use strict";var e,o=r(93)(0),i=r(48),c=r(79),u=r(106),a=r(178),f=r(5),s=r(18),l=r(111),p=c.getWeak,v=Object.isExtensible,h=a.ufstore,y={},d=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(t){if(f(t)){var n=p(t);return!0===n?h(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return a.def(l(this,"WeakMap"),t,n)}},g=t.exports=r(179)("WeakMap",d,b,a,!0,!0);s(function(){return 7!=(new g).set((Object.freeze||Object)(y),7).get(y)})&&(u((e=a.getConstructor(d,"WeakMap")).prototype,b),c.NEED=!0,o(["delete","has","get","set"],function(t){var n=g.prototype,r=n[t];i(n,t,function(n,o){if(f(n)&&!v(n)){this._f||(this._f=new e);var i=this._f[t](n,o);return"set"==t?this:i}return r.call(this,n,o)})}))},function(t,n,r){var e=r(177);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(5),o=r(109),i=r(1)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)||(n=void 0),e(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},function(t,n,r){"use strict";var e=r(53),o=r(79).getWeak,i=r(4),c=r(5),u=r(50),a=r(45),f=r(93),s=r(12),l=r(111),p=f(5),v=f(6),h=0,y=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},b=function(t,n){return p(t.a,function(t){return t[0]===n})};d.prototype={get:function(t){var n=b(this,t);if(n)return n[1]},has:function(t){return!!b(this,t)},set:function(t,n){var r=b(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=v(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,i){var f=t(function(t,e){u(t,f,n,"_i"),t._t=n,t._i=h++,t._l=void 0,void 0!=e&&a(e,r,t[i],t)});return e(f.prototype,{delete:function(t){if(!c(t))return!1;var r=o(t);return!0===r?y(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function(t){if(!c(t))return!1;var r=o(t);return!0===r?y(l(this,n)).has(t):r&&s(r,this._i)}}),f},def:function(t,n,r){var e=o(i(n),!0);return!0===e?y(t).set(n,r):e[t._i]=r,t},ufstore:y}},function(t,n,r){"use strict";var e=r(0),o=r(7),i=r(79),c=r(18),u=r(6),a=r(53),f=r(45),s=r(50),l=r(5),p=r(17),v=r(10).f,h=r(93)(0),y=r(8);t.exports=function(t,n,r,d,b,g){var x=e[t],m=x,O=b?"set":"add",j=m&&m.prototype,w={};return y&&"function"==typeof m&&(g||j.forEach&&!c(function(){(new m).entries().next()}))?(m=n(function(n,r){s(n,m,t,"_c"),n._c=new x,void 0!=r&&f(r,b,n[O],n)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var n="add"==t||"set"==t;t in j&&(!g||"clear"!=t)&&u(m.prototype,t,function(r,e){if(s(this,m,t),!n&&g&&!l(r))return"get"==t&&void 0;var o=this._c[t](0===r?0:r,e);return n?this:o})}),g||v(m.prototype,"size",{get:function(){return this._c.size}})):(m=d.getConstructor(n,t,b,O),a(m.prototype,r),i.NEED=!0),p(m,t),w[t]=m,o(o.G+o.W+o.F,w),g||d.setStrong(m,t,b),m}},function(t,n,r){r(181)("WeakMap")},function(t,n,r){"use strict";var e=r(7);t.exports=function(t){e(e.S,t,{of:function(){for(var t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return new this(n)}})}},function(t,n,r){r(183)("WeakMap")},function(t,n,r){"use strict";var e=r(7),o=r(13),i=r(11),c=r(45);t.exports=function(t){e(e.S,t,{from:function(t){var n,r,e,u,a=arguments[1];return o(this),(n=void 0!==a)&&o(a),void 0==t?new this:(r=[],n?(e=0,u=i(a,arguments[2],2),c(t,!1,function(t){r.push(u(t,e++))})):c(t,!1,r.push,r),new this(r))}})}},function(t,n){t.exports=function(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n<t.length;n++)r[n]=t[n];return r}}},function(t,n,r){var e=r(77),o=r(186);t.exports=function(t){if(o(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return e(t)}},function(t,n,r){t.exports=r(187)},function(t,n,r){r(42),r(40),t.exports=r(188)},function(t,n,r){var e=r(32),o=r(1)("iterator"),i=r(9);t.exports=r(3).isIterable=function(t){var n=Object(t);return void 0!==n[o]||"@@iterator"in n||i.hasOwnProperty(e(n))}},function(t,n){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},,function(t,n,r){"use strict";r.r(n);var e=r(75),o=r.n(e),i=r(82),c=r.n(i),u=r(88),a=r.n(u),f=r(74),s=r.n(f),l=r(78),p=r.n(l),v=r(89),h=r.n(v),y=r(98),d=r.n(y),b=r(99),g=r.n(b),x=r(100),m=r.n(x),O=r(101),j=r(102),w=r(83),A=r.n(w),_=r(73),S=r(132),F=r(118),E=r(119),P=r(120),T=r(121),k=r(122),M=r(123),L=r(124),I=r(125),N=r(126),W=r(127),C=r(128),R=r(129),D=r(130),G=r(131),z=function(t){return"@async-af/".concat(t.replace(/AsyncAf|AF/g,"").toLowerCase())},B="".concat("./lib/","classes/"),V=[[{name:"AsyncAF"},"".concat(B,"AsyncAF"),"async-af"],[{name:"AsyncAfWrapper"},"".concat(B,"AsyncAfWrapper"),z("AsyncAfWrapper")]],H=[Object(_.a)(S.default,"logAF")].map(function(t){return[t,"".concat("./lib/","methods/other/").concat(t.name),z(t.name)]}),J=[Object(_.a)(F.default,"mapAF"),Object(_.a)(E.default,"forEachAF"),Object(_.a)(P.default,"filterAF"),Object(_.a)(T.default,"reduceAF"),Object(_.a)(k.default,"everyAF"),Object(_.a)(M.default,"someAF"),Object(_.a)(L.default,"includesAF"),Object(_.a)(I.default,"findAF"),Object(_.a)(N.default,"findIndexAF"),Object(_.a)(W.default,"indexOfAF"),Object(_.a)(C.default,"lastIndexOfAF"),Object(_.a)(R.default,"joinAF"),Object(_.a)(D.default,"concatAF")].map(function(t){return[t,"".concat("./lib/","methods/arrays/").concat(t.name),z(t.name)]}),K=[Object(_.a)(G.default,"splitAF")].map(function(t){return[t,"".concat("./lib/","methods/strings/").concat(t.name),z(t.name)]}),U=A()(J).concat(A()(K)),q=(V.concat(A()(H),A()(U),[]),function(t){return t.map(function(t){return p()(t,1)[0]})}),Y=q(H),Q=q(U),X=s()(["AF"]),Z=Object(O.a)(function(t){function n(){return h()(this,n),g()(this,m()(n).apply(this,arguments))}return d()(n,t),n}(j.AsyncAfWrapperProto)),$=function(t){return t.reduce(function(t,n){var r=n.name.split(X)||[n.name],e=p()(r,1)[0];return a()(t,c()({},n.name,{value:n}),c()({},e,{value:n}))},{})};o()(j.AsyncAfWrapperProto,$(Y)),o()(j.AsyncAfWrapperProto.prototype,$(Q)),n.default=Z}]).default},"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("AsyncAF",[],n):"object"==typeof exports?exports.AsyncAF=n():t.AsyncAF=n();
//# sourceMappingURL=min.js.map
/*!
* async-af/min v6.0.0
* async-af/min v7.0.0
*
* AsyncAF (Async/Await Fun)
* AsyncAF (The asynciest of async libs there ever was or ever will be...AsyncAF!?)
* (https://async-af.js.org/AsyncAF)

@@ -12,3 +12,3 @@ *

*/
var t,r;t="undefined"!=typeof self?self:this,r=function(){return function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=19)}([function(t,r,e){"use strict";r.a=function(t){return Array.isArray(t)||null!=t&&null!=t.length}},function(t,r,e){"use strict";r.a=function(t,r){return Object.defineProperty(t,"name",{value:r,configurable:!0})}},function(t,r,e){"use strict";e.r(r);var n=e(3);e.d(r,"AsyncAfWrapperProto",function(){return a});const o=new WeakMap;class a{constructor(t){o.set(this,Promise[Array.isArray(t)?"all":"resolve"](t))}then(t,r){return new this.constructor(o.get(this).then(t,r))}catch(t){return this.then(null,t)}finally(t){return o.get(this).finally(t)}}a.use=function(t,r={}){if("object"!=typeof t)throw TypeError("prototypeMethods param accepts an Object containing the prototypeMethods you'd like to add to the AsyncAF prototype, or an empty Object");if("object"!=typeof r)throw TypeError("staticMethods param accepts an Object containing the staticMethods you'd like to add to AsyncAF");Object.assign(this.prototype,t),Object.assign(this,r)},Object.defineProperty(a.prototype,Symbol.toStringTag,{value:"AsyncAF"});const c=Object(n.a)(class extends a{});r.default=c},function(t,r,e){"use strict";var n=e(1);r.a=(t=>{const r=t,e=t.name;return(t=function(...t){return new r(...t)}).prototype=r.prototype,Object.setPrototypeOf(t,r),t.prototype.constructor=t,Object(n.a)(t,e)})},function(t,r,e){"use strict";e.r(r);var n,o,a=(t,r,e)=>{if("string"==typeof t)return t;let a=(n=r.split`:`,o=3,function(t){if(Array.isArray(t))return t}(n)||function(t,r){var e=[],n=!0,o=!1,a=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done)&&(e.push(c.value),!r||e.length!==r);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return e}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),c=a[0],i=a[1],l=a[2];const u=(c=c.split`/`).pop();c=c.join`/`;const s=`${c.split`/`.pop()}/`;return t({path:c+="/",line:i,col:l,file:u,parent:s,arrow:e})};var c=e(1);const i=function t(...r){t.label&&r.unshift(t.setFormat(t.labelFormat));const e=Date.now();return Promise.all(r).then(r=>{if(t.duration){const t=((Date.now()-e)/1e3).toFixed(3);r.push(`\nin ${t} secs`)}t.wrappedLog(...r)})};Object.defineProperties(i,{wrappedLog:{value:(...t)=>{console&&console.log&&console.log(...t)},writable:!0},wrappedWarn:{value:(...t)=>{console&&console.warn&&console.warn(...t)},writable:!0},setFormat:{value:t=>{const r=Error();if(!r.stack)return"";const e=function(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=[],n=!0,o=!1,a=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done)&&(e.push(c.value),!r||e.length!==r);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return e}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(r.stack.split`\n`.filter((t,r,e)=>/logAF(\s+|\s+\[.+\]\s+)\(/.test(e[r?r-1:r])),1)[0],n=e.slice(e.indexOf`(`+1,e.indexOf`)`),o=n.lastIndexOf`/`,c={file:()=>`@${n.slice(o+1)}:\n`,path:()=>`@${n}:\n`,parent(){const t=n.slice(0,o).lastIndexOf`/`+1;return`@${n.slice(t)}:\n`},arrow:()=>"========================>"};return c[t]?c[t]():a(t,n,c.arrow())},writable:!0},options:{value:(t={})=>{const r=t.label,e=t.duration,n=t.labelFormat;"boolean"==typeof r&&(l.label=r),"boolean"==typeof e&&(l.duration=e),n&&("string"==typeof n||"function"==typeof n?l.labelFormat=n:l.wrappedWarn("Warning: logAF labelFormat option must be set to 'file' (default), 'path', 'parent', 'arrow', or a custom string or function\n"))},writable:!0}}),(i.options.reset=function(){i.label=!0,i.labelFormat="file",i.duration=!0})();var l=r.default=Object(c.a)(i,"logAF")},function(t,r,e){"use strict";e.r(r),r.default=function(t,r){return this.then(e=>{if("string"!=typeof e||Array.isArray(e))throw TypeError(`splitAF may be called on a string but was called on ${e}`);return String.prototype.split.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r),r.default=function(...t){return this.then(r=>{if("string"!=typeof r&&!Array.isArray(r))throw TypeError(`concatAF cannot be called on ${r}, only on an Array or String`);return t.reduce((t,r)=>t instanceof Promise?t.then(t=>r instanceof this.constructor||r instanceof Promise?r.then(r=>t.concat(r)):t.concat(r),t):r instanceof this.constructor||r instanceof Promise?r.then(r=>t.concat(r)):t.concat(r),r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);const o=function(t=","){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`joinAF cannot be called on ${r}, only on an Array or array-like Object`);return Array.prototype.join.call(r,t)})};Object.defineProperty(o,"length",{value:1}),r.default=o},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`lastIndexOfAF cannot be called on ${e}, only on an Array, String, or array-like Object`);return("string"==typeof e?String:Array).prototype.lastIndexOf.call(e,t,r||e.length-1)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function(t,r=0){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`indexOfAF cannot be called on ${e}, only on an Array, String, or array-like Object`);return("string"==typeof e?String:Array).prototype.indexOf.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`findIndexAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.findIndex.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`findAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.find.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function(t,r=0){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`includesAF cannot be called on ${e}, only on an Array, String, or array-like Object`);return("string"==typeof e?String:Array).prototype.includes.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`someAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.some.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`everyAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.every.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function(t,r=null){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`reduceAF cannot be called on ${e}, only on an Array or array-like Object`);if(!e.length&&null===r)throw TypeError("reduceAF cannot be called on an empty array without an initial value");return Array.prototype.reduce.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`filterAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.filter.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`forEachAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.forEach.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(0);r.default=function(t,r){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`mapAF cannot be called on ${e}, only on an Array or array-like Object`);return Array.prototype.map.call(e,t,r)})}},function(t,r,e){"use strict";e.r(r);var n=e(3),o=e(2),a=e(1),c=e(4),i=e(18),l=e(17),u=e(16),s=e(15),f=e(14),y=e(13),p=e(12),d=e(11),b=e(10),h=e(9),A=e(8),O=e(7),j=e(6),m=e(5);const v=t=>`@async-af/${t.replace(/AsyncAf|AF/g,"").toLowerCase()}`,w=(v("AsyncAfWrapper"),[Object(a.a)(c.default,"logAF")].map(t=>[t,`./lib/methods/other/${t.name}`,v(t.name)])),F=[Object(a.a)(i.default,"mapAF"),Object(a.a)(l.default,"forEachAF"),Object(a.a)(u.default,"filterAF"),Object(a.a)(s.default,"reduceAF"),Object(a.a)(f.default,"everyAF"),Object(a.a)(y.default,"someAF"),Object(a.a)(p.default,"includesAF"),Object(a.a)(d.default,"findAF"),Object(a.a)(b.default,"findIndexAF"),Object(a.a)(h.default,"indexOfAF"),Object(a.a)(A.default,"lastIndexOfAF"),Object(a.a)(O.default,"joinAF"),Object(a.a)(j.default,"concatAF")].map(t=>[t,`./lib/methods/arrays/${t.name}`,v(t.name)]),g=[Object(a.a)(m.default,"splitAF")].map(t=>[t,`./lib/methods/strings/${t.name}`,v(t.name)]),x=[...F,...g],E=t=>t.map(([t])=>t),$=E(w),T=E(x);const P=Object(n.a)(class extends o.AsyncAfWrapperProto{}),k=t=>t.reduce((t,r)=>{const e=(S=r.name.split`AF`||[r.name],I=1,function(t){if(Array.isArray(t))return t}(S)||function(t,r){var e=[],n=!0,o=!1,a=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done)&&(e.push(c.value),!r||e.length!==r);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return e}(S,I)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0];return Object.assign(t,{[r.name]:{value:r}},{[e]:{value:r}})},{});var S,I;Object.defineProperties(o.AsyncAfWrapperProto,k($)),Object.defineProperties(o.AsyncAfWrapperProto.prototype,k(T)),r.default=P}]).default},"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("AsyncAF",[],r):"object"==typeof exports?exports.AsyncAF=r():t.AsyncAF=r();
var t,e;t="undefined"!=typeof self?self:this,e=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=23)}([function(t,e,r){"use strict";r.d(e,"b",function(){return o}),r.d(e,"a",function(){return a});var n=r(2);const o=t=>(function e(r,n){const o=r.length;if(!o)return Promise.resolve(r);const a=!(n in t);return Promise.resolve(t[n]).then(t=>(a||(r[n]=t),n===o-1?r:e(r,n+1)))})(Array(t.length>>>0),0),a=(t,e,r)=>Object(n.a)(t,t=>t).then(e?t=>Object(n.a)(Array.prototype.map.call(t,e,r)):void 0)},function(t,e,r){"use strict";e.a=function(t){return Array.isArray(t)||null!=t&&null!=t.length}},function(t,e,r){"use strict";e.a=(t=>new Promise((e,r)=>{const n=t.length>>>0,o=Array(n);let a=n,i=n;if(!n)return e(o);const c=n=>Promise.resolve(t[n]).then(r=>{n in t&&(o[n]=r),--a||e(o)},r);for(;i--;)c(i)}))},function(t,e,r){"use strict";e.a=function(t,e){return Object.defineProperty(t,"name",{value:e,configurable:!0})}},,function(t,e,r){"use strict";var n=r(3);e.a=(t=>{const e=t.name,r=function(...e){return new t(...e)};return r.prototype=t.prototype,Object.setPrototypeOf(r,t),r.prototype.constructor=r,Object(n.a)(r,e)})},function(t,e,r){"use strict";r.r(e);var n=r(5);const o=new WeakMap;var a={inSeries:{get(){return o.get(this)}},series:{get(){return o.set(this,!this.inSeries),this}},io:{get(){return this.series}}};function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"AsyncAfWrapperProto",function(){return s});const c=new WeakMap;class s{constructor(t){c.set(this,Promise.resolve(t))}then(t,e){return this.constructor(c.get(this).then(t,e))}catch(t){return this.then(null,t)}finally(t){return c.get(this).finally(t)}}s.use=function(t,e={}){if("object"!=typeof t)throw TypeError("prototypeMethods param accepts an Object containing the prototypeMethods you'd like to add to the AsyncAF prototype, or an empty Object");if("object"!=typeof e)throw TypeError("staticMethods param accepts an Object containing the staticMethods you'd like to add to AsyncAF");Object.assign(this.prototype,t),Object.assign(this,e)},Object.defineProperties(s.prototype,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){i(t,e,r[e])})}return t}({},a,{[Symbol.toStringTag]:{value:"AsyncAF"}}));const l=Object(n.a)(class extends s{});e.default=l},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(2),a=r(0);e.default=function(t,e){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`mapAF cannot be called on ${r}, only on an Array or array-like Object`);if("function"!=typeof t)throw TypeError(`${t} is not a function`);return this.inSeries?Object(a.b)(r).then(r=>r.reduce((r,n,a,i)=>r.then(r=>(r[a]=Promise.resolve(t.call(e,n,a,i)),Object(o.a)(r))),Promise.resolve(Array(r.length>>>0)))):Object(a.a)(r,t,e)})}},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(0);e.default=function(t,e){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`forEachAF cannot be called on ${r}, only on an Array or array-like Object`);if("function"!=typeof t)throw TypeError(`${t} is not a function`);return(this.inSeries?Object(o.b)(r).then(r=>r.reduce((r,n,o,a)=>r.then(()=>Promise.resolve(t.call(e,n,o,a))),Promise.resolve())):Object(o.a)(r,t,e)).then(()=>{})})}},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(0);e.default=function(t,e){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`filterAF cannot be called on ${r}, only on an Array or array-like Object`);if("function"!=typeof t)throw TypeError(`${t} is not a function`);return(this.inSeries?o.b:o.a)(r).then(r=>(this.inSeries?r.reduce((r,n,o,a)=>r.then(r=>(r[o]=t.call(e,n,o,a),Promise.all(r))),Promise.all([])):Object(o.a)(r,t,e)).then(t=>r.filter((e,r)=>t[r])))})}},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(0);e.default=function(t){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`reduceAF cannot be called on ${e}, only on an Array or array-like Object`);if("function"!=typeof t)throw TypeError(`${t} is not a function`);const r=e.length>>>0;if(!r&&1===arguments.length)throw TypeError("reduceAF cannot be called on an empty array without an initial value");if(!r)return arguments[1];const a=t=>!(t in e);let i,c=0;if(2===arguments.length)i=arguments[1];else{for(;a(c);)c++;i=e[c++]}return(this.inSeries?Object(o.b)(e):Object(o.a)(e)).then(e=>{const n=(o,i)=>Promise.resolve(o).then(o=>Promise.resolve(a(i)?o:t(o,e[i],i,e)).then(t=>i===r-1?t:n(t,i+1)));return n(i,c)})})}},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(0);e.default=function(t,e){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`everyAF cannot be called on ${r}, only on an Array or array-like Object`);if("function"!=typeof t)throw TypeError(`${t} is not a function`);const a=r.length>>>0;return this.inSeries?!a||function r(n,o){const i=!(o in n);return Promise.resolve(n[o]).then(c=>(n[o]=c,Promise.resolve(!i&&t.call(e,c,o,n)).then(t=>!(!t&&!i)&&(o===a-1||r(n,o+1)))))}(Array.prototype.slice.call(r),0):Object(o.a)(r,t,e).then(t=>t.every(Boolean))})}},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(0);e.default=function(t,e){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`someAF cannot be called on ${r}, only on an Array or array-like Object`);if("function"!=typeof t)throw TypeError(`${t} is not a function`);const a=r.length>>>0;return this.inSeries?!!a&&function r(n,o){const i=!(o in n);return Promise.resolve(n[o]).then(c=>(n[o]=c,Promise.resolve(!i&&t.call(e,c,o,n)).then(t=>!(!t||i)||o!==a-1&&r(n,o+1))))}(Array.prototype.slice.call(r),0):Object(o.a)(r,t,e).then(t=>t.some(Boolean))})}},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(0);e.default=function(t,e=0){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`includesAF cannot be called on ${r}, only on an Array, String, or array-like Object`);const a=r.length>>>0,i=0|e;return"string"==typeof r?r.includes(t,i):this.inSeries?!!a&&function e(n){return Promise.resolve(r[n]).then(r=>!!((t,e)=>t===e||Number.isNaN(t)&&Number.isNaN(e))(r,t)||!(n>=a-1)&&e(n+1))}(Math.max(i>=0?i:a-Math.abs(i),0)):Object(o.a)(r).then(e=>e.includes(t,i))})}},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(0);e.default=function(t,e){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`findAF cannot be called on ${r}, only on an Array or array-like Object`);if("function"!=typeof t)throw TypeError(`${t} is not a function`);const a=Array.from(r),i=a.length>>>0;return this.inSeries?i?function r(n,o){return Promise.resolve(n[o]).then(a=>(n[o]=a,Promise.resolve(t.call(e,a,o,n)).then(t=>t?a:o!==i-1?r(n,o+1):void 0)))}(a,0):void 0:Object(o.a)(a,t,e).then(t=>r[t.indexOf(!0)])})}},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(0);e.default=function(t,e){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`findIndexAF cannot be called on ${r}, only on an Array or array-like Object`);if("function"!=typeof t)throw TypeError(`${t} is not a function`);const a=Array.from(r),i=a.length>>>0;return this.inSeries?i?function r(n,o){return Promise.resolve(n[o]).then(a=>(n[o]=a,Promise.resolve(t.call(e,a,o,n)).then(t=>t?o:o===i-1?-1:r(n,o+1))))}(a,0):-1:Object(o.a)(a,t,e).then(t=>t.indexOf(!0))})}},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(0);e.default=function(t,e=0){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`indexOfAF cannot be called on ${r}, only on an Array, String, or array-like Object`);const a=r.length>>>0,i=0|e;return"string"==typeof r?r.indexOf(t,i):this.inSeries?function e(n){return Promise.resolve(r[n]).then(o=>n in r&&o===t?n:n>=a-1?-1:e(n+1))}(Math.max(i>=0?i:a-Math.abs(i),0)):Object(o.a)(r).then(e=>e.indexOf(t,i))})}},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(0);e.default=function(t,e){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`lastIndexOfAF cannot be called on ${r}, only on an Array, String, or array-like Object`);const a=r.length>>>0;let i=+e;return Number.isNaN(i)&&(i=a-1),"string"==typeof r?r.lastIndexOf(t,i):this.inSeries?function e(n){return Promise.resolve(r[n]).then(o=>n in r&&o===t?n:n<=0?-1:e(n-1))}(Math.min(i>=0?i:Math.max(a-Math.abs(i),0),a-1)):Object(o.a)(r).then(e=>e.lastIndexOf(t,i))})}},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(0);const a=function(t=","){return this.then(e=>{if(!Object(n.a)(e))throw TypeError(`joinAF cannot be called on ${e}, only on an Array or array-like Object`);return Object(o.a)(e).then(e=>e.join(t))})};Object.defineProperty(a,"length",{value:1}),e.default=a},function(t,e,r){"use strict";r.r(e);const n=t=>Promise[Array.isArray(t)?"all":"resolve"](t);e.default=function(...t){const e=t=>[Promise,this.constructor].some(e=>t instanceof e),r=(t,r)=>e(r)&&r.then(n).then(e=>t.concat(e))||t.concat(r);return this.then(o=>{if("string"!=typeof o&&!Array.isArray(o))throw TypeError(`concatAF cannot be called on ${o}, only on an Array or String`);return n(o).then(n=>t.reduce((t,n)=>e(t)?t.then(t=>r(t,n)):r(t,n),n))})}},function(t,e,r){"use strict";r.r(e),e.default=function(t,e){return this.then(r=>{if("string"!=typeof r||Array.isArray(r))throw TypeError(`splitAF may be called on a string but was called on ${r}`);return String.prototype.split.call(r,t,e)})}},function(t,e,r){"use strict";r.r(e);var n,o,a=(t,e,r)=>{if("string"==typeof t)return t;let a=(n=e.split`:`,o=3,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=t[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=a[0],c=a[1],s=a[2];const l=(i=i.split`/`).pop();i=i.join`/`;const u=`${i.split`/`.pop()}/`;return t({path:i+="/",line:c,col:s,file:l,parent:u,arrow:r})};var i=r(3);const c=function t(...e){t.label&&e.unshift(t.setFormat(t.labelFormat));const r=Date.now();return Promise.all(e).then(e=>{if(t.duration){const t=((Date.now()-r)/1e3).toFixed(3);e.push(`\n in ${t} secs`)}t.wrappedLog("",...e)})};Object.defineProperties(c,{wrappedLog:{value:(...t)=>{console&&console.log&&console.log(...t)},writable:!0},wrappedWarn:{value:(...t)=>{console&&console.warn&&console.warn(...t)},writable:!0},setFormat:{value:t=>{const e=Error();if(!e.stack)return"";const r=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=t[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(e.stack.split`\n`.filter((t,e,r)=>/logAF(\s+|\s+\[.+\]\s+)\(/.test(r[e?e-1:e])),1)[0],n=r.slice(r.indexOf`/`).replace(")",""),o=n.lastIndexOf`/`,i={file:()=>`@${n.slice(o+1)}:\n`,path:()=>`@${n}:\n`,parent(){const t=n.slice(0,o).lastIndexOf`/`+1;return`@${n.slice(t)}:\n`},arrow:()=>"========================>"};return i[t]?i[t]():a(t,n,i.arrow())},writable:!0},options:{value:(t={})=>{const e=t.label,r=t.duration,n=t.labelFormat;"boolean"==typeof e&&(s.label=e),"boolean"==typeof r&&(s.duration=r),n&&("string"==typeof n||"function"==typeof n?s.labelFormat=n:s.wrappedWarn("Warning: logAF labelFormat option must be set to 'file' (default), 'path', 'parent', 'arrow', or a custom string or function\n"))},writable:!0}}),(c.options.reset=function(){c.label=!0,c.labelFormat="file",c.duration=!0})();var s=e.default=Object(i.a)(c,"logAF")},,function(t,e,r){"use strict";r.r(e);var n=r(5),o=r(6),a=r(3),i=r(21),c=r(7),s=r(8),l=r(9),u=r(10),f=r(11),y=r(12),h=r(13),p=r(14),b=r(15),d=r(16),O=r(17),j=r(18),m=r(19),A=r(20);const v=t=>`@async-af/${t.replace(/AsyncAf|AF/g,"").toLowerCase()}`,g=(v("AsyncAfWrapper"),[Object(a.a)(i.default,"logAF")].map(t=>[t,`./lib/methods/other/${t.name}`,v(t.name)])),w=[Object(a.a)(c.default,"mapAF"),Object(a.a)(s.default,"forEachAF"),Object(a.a)(l.default,"filterAF"),Object(a.a)(u.default,"reduceAF"),Object(a.a)(f.default,"everyAF"),Object(a.a)(y.default,"someAF"),Object(a.a)(h.default,"includesAF"),Object(a.a)(p.default,"findAF"),Object(a.a)(b.default,"findIndexAF"),Object(a.a)(d.default,"indexOfAF"),Object(a.a)(O.default,"lastIndexOfAF"),Object(a.a)(j.default,"joinAF"),Object(a.a)(m.default,"concatAF")].map(t=>[t,`./lib/methods/arrays/${t.name}`,v(t.name)]),F=[Object(a.a)(A.default,"splitAF")].map(t=>[t,`./lib/methods/strings/${t.name}`,v(t.name)]),P=[...w,...F],x=t=>t.map(([t])=>t),E=x(g),S=x(P);const T=Object(n.a)(class extends o.AsyncAfWrapperProto{}),$=t=>t.reduce((t,e)=>{const r=(k=e.name.split`AF`||[e.name],M=1,function(t){if(Array.isArray(t))return t}(k)||function(t,e){var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=t[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(k,M)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0];return Object.assign(t,{[e.name]:{value:e}},{[r]:{value:e}})},{});var k,M;Object.defineProperties(o.AsyncAfWrapperProto,$(E)),Object.defineProperties(o.AsyncAfWrapperProto.prototype,$(S)),e.default=T}]).default},"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("AsyncAF",[],e):"object"==typeof exports?exports.AsyncAF=e():t.AsyncAF=e();
//# sourceMappingURL=min.js.map
{
"name": "async-af",
"description": "Async/Await Fun",
"description": "The asynciest of async libs there ever was or ever will be...AsyncAF!?",
"author": "Scott Rudiger (https://github.com/ScottRudiger)",
"license": "MIT",
"version": "6.0.0",
"version": "7.0.0",
"homepage": "https://async-af.js.org",

@@ -27,2 +27,5 @@ "bugs": {

"methods",
"parallel",
"series",
"serial",
"map",

@@ -29,0 +32,0 @@ "forEach",

@@ -7,3 +7,2 @@ <a><img src="https://img.shields.io/bundlephobia/minzip/async-af.svg?style=for-the-badge&amp;label=size&amp;colorB=466EF1" alt="npm package size (min + gzip)"></a>

<a href="https://github.com/AsyncAF/AsyncAF/blob/master/README.md#license"><img src="https://img.shields.io/npm/l/async-af.svg?style=for-the-badge&colorB=aaaaaa" alt="MIT License"></a>
<!-- <a href="https://app.fossa.io/projects/git%2Bgithub.com%2FAsyncAF%2FAsyncAF/refs/branch/master/" target=_blank><img src="https://img.shields.io/badge/license%20scan-passing-brightgreen.svg?style=for-the-badge&label=fossa" alt="license scan"></a> -->

@@ -14,17 +13,94 @@ <p align=center><a href="https://async-af.js.org" target=_blank><img src="https://cdn.rawgit.com/AsyncAF/AsyncAF/1ce388a7/docs/custom/assets/async-af-logo.png"></a></p>

README in progress...come back another time to lay eyes on the most beautiful documentation you've ever seen! 😍
Working with promises or async/await?
In the meantime, <a href="https://async-af.js.org/AsyncAF" target="_blank">
check out the docs!
</a> 🚀
Use AsyncAF to transform your code into beautiful asynchronous JavaScript chains, with methods similar to the ones we all know (and love! 😍) such as `map`, `forEach`, `filter`, `reduce`, and more.
Or, [see how to contribute.](https://github.com/AsyncAF/AsyncAF/blob/master/CONTRIBUTING.md) 💙
<a href="https://async-af.js.org/AsyncAF" target=_blank>
Check out the docs
</a> for all available methods. 💙
<br>
## Usage
```js
const AsyncAF = require('async-af');
function getActiveUsers(userIds) {
return AsyncAF(userIds)
// map user ids to user objects with an async function
.mapAF(async userId => {
const response = await fetch(`fake-game-api/users/${userId}`);
return response.json();
})
// filter by active users
.filterAF(user => user.isActive)
}
```
AsyncAF methods are await-able and then-able.
```js
async function sendMsgToActiveUsers(msg) {
const activeUsers = await getActiveUsers([1, 2, 3]);
// send each active user a msg in series
await AsyncAF(activeUsers).series.forEachAF(async ({id}) => {
await sendMsg(id, msg); // hypothetical msg service that's rate-limited
});
console.log('message sent!');
}
function doSomethingElseWithActiveUsers() {
return getActiveUsers([1, 2, 3]).then(activeUsers => {
// ... do something else
});
}
```
If a `Promise` is passed into <a href="https://async-af.js.org/AsyncAF" target=_blank>`AsyncAF`</a>, it will be settled before a method processes it.
```js
const userMsg = Promise.resolve('I\'m [restricted word] AF right now')
const msgContainsBadWord = (msg, word = '[restricted word]') => AsyncAF(msg).includesAF(word);
msgContainsBadWord(userMsg); // resolves to true
```
`Array` methods will settle any promises in an array before processing them.
```js
const findHighScoringUser = () => AsyncAF([
fetch('fake-game-api/users/1').then(user => user.json()), // {id: 1, name: Aiden, score: 9001, ...}
{id: 2, name: 'Bill', score: 3600, /* ... */},
{id: 3, name: 'Cari', score: 5800, /* ... */},
])
.findAF(({score}) => score > 9000);
findHighScoringUser(); // resolves to {id: 1, name: Aiden, score: 9001, ...}
```
**Note**: All `'AF'` methods have an `'AF-less'` alias so you can choose whether or not to make it obvious that they're AsyncAF methods.
For example:
```js
const promises = [1, 2, 3].map(n => Promise.resolve(n));
AsyncAF(promises).map(n => n * 2).filter(n => n !== 4).forEach(n => console.log(n));
// or
AsyncAF(promises).mapAF(n => n * 2).filterAF(n => n !== 4).forEachAF(n => console.log(n));
// both log 2 then 6
```
## Installation 💾
Easy peazy, just `$ npm install --save async-af`, right?
Easy peasy, just
`$ npm install --save async-af`,
right?
⚠️ Not so fast; there's actually several ways to include AsyncAF in your project/production site from easy to more complex:
<details open><summary>Easy 👍</summary><br>
<details><summary>Easy 👍</summary><br>
🔹 <strong>npm:</strong> <code>$ npm install --save async-af</code>

@@ -34,3 +110,3 @@

🔹 <strong>bower:</strong> <code>async-af</code> is no longer published to bower. To continue using it with bower, look into <a href=https://github.com/mjeanroy/bower-npm-resolver target=_blank><code>bower-npm-resolver</code></a>.
🔹 <strong>bower:</strong> <code>async-af</code> is no longer published to bower. To continue using it with bower, look into <a href="https://github.com/mjeanroy/bower-npm-resolver" target=_blank><code>bower-npm-resolver</code></a>.

@@ -47,3 +123,3 @@ 🔸 <strong>cdn:</strong> See the table for which script tag to use:

<br>
<details open><summary>More Complex 🤔</summary><br>
<details><summary>More Complex 🤔</summary><br>

@@ -65,5 +141,4 @@ 🔹 <strong>scoped packages:</strong>

><pre class=prettyprint>
<code><code class=language-html>&lt;script type="module" src="https&#58;//unpkg.com/async-af/esm/index.js">&lt;/script></code>
<code class=language-html>&lt;script nomodule src="https&#58;//unpkg.com/async-af/legacy/index.js">&lt;/script></code></code>
</pre>
><code><code class=language-html>&lt;script type="module" src="https&#58;//unpkg.com/async-af/esm/index.js">&lt;/script></code>
><code class=language-html>&lt;script nomodule src="https&#58;//unpkg.com/async-af/legacy/index.js">&lt;/script></code></code></pre>
>

@@ -73,5 +148,4 @@ >or minimized for production:

><pre class=prettyprint>
<code><code class=language-html>&lt;script type="module" src="https&#58;//unpkg.com/async-af/esm/min.js">&lt;/script></code>
<code class=language-html>&lt;script nomodule src="https&#58;//unpkg.com/async-af/legacy/min.js">&lt;/script></code></code>
</pre>
><code><code class=language-html>&lt;script type="module" src="https&#58;//unpkg.com/async-af/esm/min.js">&lt;/script></code>
><code class=language-html>&lt;script nomodule src="https&#58;//unpkg.com/async-af/legacy/min.js">&lt;/script></code></code></pre>

@@ -84,2 +158,82 @@ >The script with <code class="language-html prettyprint">&lt;script type="module"></code> will load in any browser capable of loading es modules, while the script with <code class="language-html prettyprint">&lt;script nomodule></code> will act as a fallback for legacy browsers.

## A couple notes on performance 🚀
#### Built on Promises
Despite AsyncAF's name (Async/Await Fun), its source code is written entirely without the use of `async/await`. Its chainable asynchronous JavaScript methods _are_, however, highly useful when _your_ code makes use of `async/await` or `Promises`. This is important for performance because transpiling an `async function` with babel currently <a href="https://medium.com/@bluepnume/even-with-async-await-you-probably-still-need-promises-9b259854c161" target=_blank>results in some loooong code</a> due to pulling in things like <a href="https://facebook.github.io/regenerator/" target=_blank>Facebook's regenerator</a> and others to make it work.
Because AsyncAF instead runs your code with Promises behind the scenes, there's no need to transpile `async/await` in its ES6 or ES5-compatible distributions. This boils down to much smaller bundles when compared to an equivalent async library written _with_ `async/await`.
#### Use <a href="https://async-af.js.org/AsyncAF#series" target=_blank>`series`</a> wisely
The majority of AsyncAF's `Array` methods process promises in parallel by default. However, many methods have an option to process promises in series as well. You can tell AsyncAF to process promises in series within the next method invocation by setting a flag with `series` or its alias `io` (in order). See the documentation for <a href="https://async-af.js.org/AsyncAF#series" target=_blank>`series`</a> for a full list of methods this works on.
In some cases, the time it takes to resolve an AsyncAF expression won't differ; for example:
```js
import AsyncAF, {logAF} from 'async-af';
import delay from 'delay';
logAF.options({label: false});
const bools = [
() => delay(3000, {value: true}),
() => delay(2000, {value: false}),
() => delay(1000, {value: false}),
];
logAF('parallel', AsyncAF(bools).someAF(n => n()));
logAF('series', AsyncAF(bools).series.someAF(n => n()));
// series true
// in 3.000 secs
// parallel true
// in 3.000 secs
```
Other times, processing promises in parallel will be faster:
```js
const bools = [
() => delay(3000, {value: false}),
() => delay(2000, {value: true}),
() => delay(1000, {value: false}),
];
logAF('parallel', AsyncAF(bools).someAF(n => n()));
logAF('series', AsyncAF(bools).series.someAF(n => n()));
// parallel true
// in 3.000 secs
// series true
// in 5.000 secs
```
And yet other times, processing promises in series will be faster:
```js
const bools = [
() => delay(3000, {value: true}),
() => delay(4000, {value: false}),
() => delay(5000, {value: false}),
];
logAF('parallel', AsyncAF(bools).someAF(n => n()));
logAF('series', AsyncAF(bools).series.someAF(n => n()));
// series true
// in 3.000 secs
// parallel true
// in 5.000 secs
```
Being cognizant of when to use `series` vs. when to rely on the default parallel behavior can help increase the performance of your asynchronous code.
Another use case for `series` might be if you're sending multiple requests to a rate-limited API. In that case you may not want to throw a ton of parallel requests at the API, but rather wait for each one in series.
<div>Love AsyncAF?&nbsp;&nbsp;<iframe src="https://ghbtns.com/github-btn.html?user=AsyncAF&repo=AsyncAF&type=star&count=false" frameborder="0" scrolling="0" width="160px" height="30px" style="position:absolute"></iframe></div>
See something to improve? [File an issue](https://github.com/AsyncAF/AsyncAF/issues) or
[see how to contribute](https://github.com/AsyncAF/AsyncAF/blob/master/CONTRIBUTING.md).💙
## License

@@ -86,0 +240,0 @@ AsyncAF is licensed under the <a href="https://choosealicense.com/licenses/mit/" target=_blank>MIT License</a>, so you can pretty much use it however you want

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc