electron-rpc-async-queue
Version:
Async queue implementation for Electron RPC
1 lines • 37.6 kB
JavaScript
window.ElectronRPC=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=89)}([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(27)("wks"),o=r(16),i=r(0).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},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){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){t.exports=!r(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(2),o=r(33),i=r(23),u=Object.defineProperty;n.f=r(4)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(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(5),o=r(15);t.exports=r(4)?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(0),o=r(6),i=r(7),u=r(16)("src"),c=Function.toString,a=(""+c).split("toString");r(10).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var f="function"==typeof r;f&&(i(r,"name")||o(r,"name",n)),t[n]!==r&&(f&&(i(r,u)||o(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:o(t,n,r):(delete t[n],o(t,n,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n){var r=t.exports={version:"2.6.1"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(0),o=r(10),i=r(6),u=r(9),c=r(12),a=function(t,n,r){var f,s,l,p,h=t&a.F,v=t&a.G,y=t&a.S,d=t&a.P,m=t&a.B,g=v?e:y?e[n]||(e[n]={}):(e[n]||{}).prototype,b=v?o:o[n]||(o[n]={}),w=b.prototype||(b.prototype={});for(f in v&&(r=n),r)l=((s=!h&&g&&void 0!==g[f])?g:r)[f],p=m&&s?c(l,e):d&&"function"==typeof l?c(Function.call,l):l,g&&u(g,f,l,t&a.U),b[f]!=l&&i(b,f,p),d&&w[f]!=l&&(w[f]=l)};e.core=o,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(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){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(60),o=r(36);t.exports=function(t){return e(o(t))}},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){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=!1},function(t,n){t.exports={}},function(t,n,r){var e=r(35),o=r(28);t.exports=Object.keys||function(t){return e(t,o)}},function(t,n,r){var e=r(5).f,o=r(7),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){var e=r(3),o=r(0).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(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){var e=r(2),o=r(59),i=r(28),u=r(26)("IE_PROTO"),c=function(){},a=function(){var t,n=r(22)("iframe"),e=i.length;for(n.style.display="none",r(38).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?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=a(),void 0===n?r:o(r,n)}},function(t,n,r){var e=r(37),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n,r){var e=r(27)("keys"),o=r(16);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n,r){var e=r(10),o=r(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(18)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){n.f={}.propertyIsEnumerable},function(t,n){},function(t,n){},function(t,n,r){"use strict";r(57);var e=r(2),o=r(34),i=r(4),u=/./.toString,c=function(t){r(9)(RegExp.prototype,"toString",t,!0)};r(8)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?c(function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=u.name&&c(function(){return u.call(this)})},function(t,n,r){t.exports=!r(4)&&!r(8)(function(){return 7!=Object.defineProperty(r(22)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){"use strict";var e=r(2);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){var e=r(7),o=r(14),i=r(61)(!1),u=r(26)("IE_PROTO");t.exports=function(t,n){var r,c=o(t),a=0,f=[];for(r in c)r!=u&&e(c,r)&&f.push(r);for(;n.length>a;)e(c,r=n[a++])&&(~i(f,r)||f.push(r));return f}},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(0).document;t.exports=e&&e.documentElement},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(11);e(e.S,"Object",{setPrototypeOf:r(64).set})},function(t,n,r){var e=r(29),o=r(15),i=r(14),u=r(23),c=r(7),a=r(33),f=Object.getOwnPropertyDescriptor;n.f=r(4)?f:function(t,n){if(t=i(t),n=u(n,!0),a)try{return f(t,n)}catch(t){}if(c(t,n))return o(!e.f.call(t,n),t[n])}},function(t,n,r){"use strict";var e,o,i,u,c=r(18),a=r(0),f=r(12),s=r(43),l=r(11),p=r(3),h=r(13),v=r(65),y=r(66),d=r(67),m=r(47).set,g=r(68)(),b=r(48),w=r(69),x=r(70),_=r(71),O=a.TypeError,S=a.process,j=S&&S.versions,E=j&&j.v8||"",P=a.Promise,T="process"==s(S),L=function(){},k=o=b.f,R=!!function(){try{var t=P.resolve(1),n=(t.constructor={})[r(1)("species")]=function(t){t(L,L)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof n&&0!==E.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),A=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},F=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,u=function(n){var r,i,u,c=o?n.ok:n.fail,a=n.resolve,f=n.reject,s=n.domain;try{c?(o||(2==t._h&&C(t),t._h=1),!0===c?r=e:(s&&s.enter(),r=c(e),s&&(s.exit(),u=!0)),r===n.promise?f(O("Promise-chain cycle")):(i=A(r))?i.call(r,a,f):a(r)):f(e)}catch(t){s&&!u&&s.exit(),f(t)}};r.length>i;)u(r[i++]);t._c=[],t._n=!1,n&&!t._h&&N(t)})}},N=function(t){m.call(a,function(){var n,r,e,o=t._v,i=M(t);if(i&&(n=w(function(){T?S.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=T||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},C=function(t){m.call(a,function(){var n;T?S.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()),F(n,!0))},D=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw O("Promise can't be resolved itself");(n=A(t))?g(function(){var e={_w:r,_d:!1};try{n.call(t,f(D,e,1),f(I,e,1))}catch(t){I.call(e,t)}}):(r._v=t,r._s=1,F(r,!1))}catch(t){I.call({_w:r,_d:!1},t)}}};R||(P=function(t){v(this,P,"Promise","_h"),h(t),e.call(this);try{t(f(D,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(72)(P.prototype,{then:function(t,n){var r=k(d(this,P));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=T?S.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&F(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(D,t,1),this.reject=f(I,t,1)},b.f=k=function(t){return t===P||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!R,{Promise:P}),r(21)(P,"Promise"),r(73)("Promise"),u=r(10).Promise,l(l.S+l.F*!R,"Promise",{reject:function(t){var n=k(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!R),"Promise",{resolve:function(t){return _(c&&this===u?P:this,t)}}),l(l.S+l.F*!(R&&r(49)(function(t){P.all(t).catch(L)})),"Promise",{all:function(t){var n=this,r=k(n),e=r.resolve,o=r.reject,i=w(function(){var r=[],i=0,u=1;y(t,!1,function(t){var c=i++,a=!1;r.push(void 0),u++,n.resolve(t).then(function(t){a||(a=!0,r[c]=t,--u||e(r))},o)}),--u||e(r)});return i.e&&o(i.v),r.promise},race:function(t){var n=this,r=k(n),e=r.reject,o=w(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(17),o=r(1)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;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"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,r){var e=r(2);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(19),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(43),o=r(1)("iterator"),i=r(19);t.exports=r(10).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[e(t)]}},function(t,n,r){var e,o,i,u=r(12),c=r(39),a=r(38),f=r(22),s=r(0),l=s.process,p=s.setImmediate,h=s.clearImmediate,v=s.MessageChannel,y=s.Dispatch,d=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var n=m[t];delete m[t],n()}},b=function(t){g.call(t.data)};p&&h||(p=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return m[++d]=function(){c("function"==typeof t?t:Function(t),n)},e(d),d},h=function(t){delete m[t]},"process"==r(17)(l)?e=function(t){l.nextTick(u(g,t,1))}:y&&y.now?e=function(t){y.now(u(g,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=b,e=u(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",b,!1)):e="onreadystatechange"in f("script")?function(t){a.appendChild(f("script")).onreadystatechange=function(){a.removeChild(this),g.call(t)}}:function(t){setTimeout(u(g,t,1),0)}),t.exports={set:p,clear:h}},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){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],u=i[e]();u.next=function(){return{done:r=!0}},i[e]=function(){return u},t(i)}catch(t){}return r}},function(t,n){!function(n){"use strict";var r,e=Object.prototype,o=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag",f="object"==typeof t,s=n.regeneratorRuntime;if(s)f&&(t.exports=s);else{(s=n.regeneratorRuntime=f?t.exports:{}).wrap=w;var l="suspendedStart",p="suspendedYield",h="executing",v="completed",y={},d={};d[u]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(R([])));g&&g!==e&&o.call(g,u)&&(d=g);var b=S.prototype=_.prototype=Object.create(d);O.prototype=b.constructor=S,S.constructor=O,S[a]=O.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===O||"GeneratorFunction"===(n.displayName||n.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(b),t},s.awrap=function(t){return{__await:t}},j(E.prototype),E.prototype[c]=function(){return this},s.AsyncIterator=E,s.async=function(t,n,r,e){var o=new E(w(t,n,r,e));return s.isGeneratorFunction(n)?o:o.next().then(function(t){return t.done?t.value:o.next()})},j(b),b[a]="Generator",b[u]=function(){return this},b.toString=function(){return"[object Generator]"},s.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},s.values=R,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function e(e,o){return c.type="throw",c.arg=t,n.next=e,o&&(n.method="next",n.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return e("end");if(u.tryLoc<=this.prev){var a=o.call(u,"catchLoc"),f=o.call(u,"finallyLoc");if(a&&f){if(this.prev<u.catchLoc)return e(u.catchLoc,!0);if(this.prev<u.finallyLoc)return e(u.finallyLoc)}else if(a){if(this.prev<u.catchLoc)return e(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return e(u.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&o.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var i=e;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=n,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),y},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var o=e.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:R(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=r),y}}}function w(t,n,r,e){var o=n&&n.prototype instanceof _?n:_,i=Object.create(o.prototype),u=new k(e||[]);return i._invoke=function(t,n,r){var e=l;return function(o,i){if(e===h)throw new Error("Generator is already running");if(e===v){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var c=P(u,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(e===l)throw e=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e=h;var a=x(t,n,r);if("normal"===a.type){if(e=r.done?v:p,a.arg===y)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(e=v,r.method="throw",r.arg=a.arg)}}}(t,r,u),i}function x(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}function _(){}function O(){}function S(){}function j(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function E(t){var n;this._invoke=function(r,e){function i(){return new Promise(function(n,i){!function n(r,e,i,u){var c=x(t[r],t,e);if("throw"!==c.type){var a=c.arg,f=a.value;return f&&"object"==typeof f&&o.call(f,"__await")?Promise.resolve(f.__await).then(function(t){n("next",t,i,u)},function(t){n("throw",t,i,u)}):Promise.resolve(f).then(function(t){a.value=t,i(a)},u)}u(c.arg)}(r,e,n,i)})}return n=n?n.then(i,i):i()}}function P(t,n){var e=t.iterator[n.method];if(e===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=r,P(t,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=x(e,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=r),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function L(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,i=function n(){for(;++e<t.length;)if(o.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=r,n.done=!0,n};return i.next=i}}return{next:A}}function A(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},function(t,n,r){var e=r(36);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(0),o=r(10),i=r(18),u=r(53),c=r(5).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){n.f=r(1)},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(35),o=r(28).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n){function r(){this.listeners={}}function e(t){if("string"!=typeof t)throw"eventName is not a string"}function o(t){if("function"!=typeof t)throw"listener is not a function"}r.prototype.maxListeners=10,r.prototype.on=function(t,n){if(e(t),o(n),this.listeners[t]=this.listeners[t]||[],this.listeners[t].length>this.maxListeners)throw"Exceeded maxListeners - You might have a memory leak";return function(t,n){return-1!==t.indexOf(n)}(this.listeners[t],n)||(this.listeners[t].push(n),this.emit("on",{eventName:t,listener:n})),this},r.prototype.emit=function(t,n){e(t);var r=Array.prototype.slice.call(arguments,1);return function(t,n,r){for(var e=0;e<t.length;e++)n.call(r,t[e])}(this.listeners[t]||[],function(t){t.apply(this,r)},this),this},r.prototype.off=function(t,n){return e(t),o(n),function(t,n){var r=t.indexOf(n);-1!==r&&t.splice(r,1)}(this.listeners[t]||[],n),this.emit("off",{eventName:t,listener:n}),this},r.prototype.clearListeners=function(t){return e(t),this.listeners[t]=null,this},t.exports=r},function(t,n,r){r(4)&&"g"!=/./g.flags&&r(5).f(RegExp.prototype,"flags",{configurable:!0,get:r(34)})},function(t,n,r){var e=r(11),o=r(24),i=r(13),u=r(2),c=r(3),a=r(8),f=r(63),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),u(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,h=o(c(a)?a:Object.prototype),v=Function.apply.call(t,h,n);return c(v)?v:h}})},function(t,n,r){var e=r(5),o=r(2),i=r(20);t.exports=r(4)?Object.defineProperties:function(t,n){o(t);for(var r,u=i(n),c=u.length,a=0;c>a;)e.f(t,r=u[a++],n[r]);return t}},function(t,n,r){var e=r(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n,r){var e=r(14),o=r(25),i=r(62);t.exports=function(t){return function(n,r,u){var c,a=e(n),f=o(a.length),s=i(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)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(37),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(13),o=r(3),i=r(39),u=[].slice,c={};t.exports=Function.bind||function(t){var n=e(this),r=u.call(arguments,1),a=function(){var e=r.concat(u.call(arguments));return this instanceof a?function(t,n,r){if(!(n in c)){for(var e=[],o=0;o<n;o++)e[o]="a["+o+"]";c[n]=Function("F,a","return new F("+e.join(",")+")")}return c[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(3),o=r(2),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(41).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){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(12),o=r(44),i=r(45),u=r(2),c=r(25),a=r(46),f={},s={};(n=t.exports=function(t,n,r,l,p){var h,v,y,d,m=p?function(){return t}:a(t),g=e(r,l,n?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=c(t.length);h>b;b++)if((d=n?g(u(v=t[b])[0],v[1]):g(t[b]))===f||d===s)return d}else for(y=m.call(t);!(v=y.next()).done;)if((d=o(y,g,v.value,n))===f||d===s)return d}).BREAK=f,n.RETURN=s},function(t,n,r){var e=r(2),o=r(13),i=r(1)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||void 0==(r=e(u)[i])?n:o(r)}},function(t,n,r){var e=r(0),o=r(47).set,i=e.MutationObserver||e.WebKitMutationObserver,u=e.process,c=e.Promise,a="process"==r(17)(u);t.exports=function(){var t,n,r,f=function(){var e,o;for(a&&(e=u.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(){u.nextTick(f)};else if(!i||e.navigator&&e.navigator.standalone)if(c&&c.resolve){var s=c.resolve(void 0);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){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,r){var e=r(0).navigator;t.exports=e&&e.userAgent||""},function(t,n,r){var e=r(2),o=r(3),i=r(48);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(9);t.exports=function(t,n,r){for(var o in n)e(t,o,n[o],r);return t}},function(t,n,r){"use strict";var e=r(0),o=r(5),i=r(4),u=r(1)("species");t.exports=function(t){var n=e[t];i&&n&&!n[u]&&o.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n,r){"use strict";var e=r(12),o=r(11),i=r(51),u=r(44),c=r(45),a=r(25),f=r(75),s=r(46);o(o.S+o.F*!r(49)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,o,l,p=i(t),h="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,d=void 0!==y,m=0,g=s(p);if(d&&(y=e(y,v>2?arguments[2]:void 0,2)),void 0==g||h==Array&&c(g))for(r=new h(n=a(p.length));n>m;m++)f(r,m,d?y(p[m],m):p[m]);else for(l=g.call(p),r=new h;!(o=l.next()).done;m++)f(r,m,d?u(l,y,[o.value,m],!0):o.value);return r.length=m,r}})},function(t,n,r){"use strict";var e=r(5),o=r(15);t.exports=function(t,n,r){n in t?e.f(t,n,o(0,r)):t[n]=r}},function(t,n,r){r(52)("asyncIterator")},function(t,n,r){"use strict";var e=r(0),o=r(7),i=r(4),u=r(11),c=r(9),a=r(78).KEY,f=r(8),s=r(27),l=r(21),p=r(16),h=r(1),v=r(53),y=r(52),d=r(79),m=r(80),g=r(2),b=r(3),w=r(14),x=r(23),_=r(15),O=r(24),S=r(81),j=r(41),E=r(5),P=r(20),T=j.f,L=E.f,k=S.f,R=e.Symbol,A=e.JSON,F=A&&A.stringify,N=h("_hidden"),M=h("toPrimitive"),C={}.propertyIsEnumerable,I=s("symbol-registry"),D=s("symbols"),G=s("op-symbols"),U=Object.prototype,q="function"==typeof R,B=e.QObject,V=!B||!B.prototype||!B.prototype.findChild,W=i&&f(function(){return 7!=O(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=T(U,n);e&&delete U[n],L(t,n,r),e&&t!==U&&L(U,n,e)}:L,H=function(t){var n=D[t]=O(R.prototype);return n._k=t,n},K=q&&"symbol"==typeof R.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof R},Y=function(t,n,r){return t===U&&Y(G,n,r),g(t),n=x(n,!0),g(r),o(D,n)?(r.enumerable?(o(t,N)&&t[N][n]&&(t[N][n]=!1),r=O(r,{enumerable:_(0,!1)})):(o(t,N)||L(t,N,_(1,{})),t[N][n]=!0),W(t,n,r)):L(t,n,r)},J=function(t,n){g(t);for(var r,e=d(n=w(n)),o=0,i=e.length;i>o;)Y(t,r=e[o++],n[r]);return t},z=function(t){var n=C.call(this,t=x(t,!0));return!(this===U&&o(D,t)&&!o(G,t))&&(!(n||!o(this,t)||!o(D,t)||o(this,N)&&this[N][t])||n)},Q=function(t,n){if(t=w(t),n=x(n,!0),t!==U||!o(D,n)||o(G,n)){var r=T(t,n);return!r||!o(D,n)||o(t,N)&&t[N][n]||(r.enumerable=!0),r}},X=function(t){for(var n,r=k(w(t)),e=[],i=0;r.length>i;)o(D,n=r[i++])||n==N||n==a||e.push(n);return e},Z=function(t){for(var n,r=t===U,e=k(r?G:w(t)),i=[],u=0;e.length>u;)!o(D,n=e[u++])||r&&!o(U,n)||i.push(D[n]);return i};q||(c((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(r){this===U&&n.call(G,r),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),W(this,t,_(1,r))};return i&&V&&W(U,t,{configurable:!0,set:n}),H(t)}).prototype,"toString",function(){return this._k}),j.f=Q,E.f=Y,r(55).f=S.f=X,r(29).f=z,r(54).f=Z,i&&!r(18)&&c(U,"propertyIsEnumerable",z,!0),v.f=function(t){return H(h(t))}),u(u.G+u.W+u.F*!q,{Symbol:R});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)h($[tt++]);for(var nt=P(h.store),rt=0;nt.length>rt;)y(nt[rt++]);u(u.S+u.F*!q,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=R(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var n in I)if(I[n]===t)return n},useSetter:function(){V=!0},useSimple:function(){V=!1}}),u(u.S+u.F*!q,"Object",{create:function(t,n){return void 0===n?O(t):J(O(t),n)},defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),A&&u(u.S+u.F*(!q||f(function(){var t=R();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(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],(b(n)||void 0!==t)&&!K(t))return m(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!K(n))return n}),e[1]=n,F.apply(A,e)}}),R.prototype[M]||r(6)(R.prototype,M,R.prototype.valueOf),l(R,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){var e=r(16)("meta"),o=r(3),i=r(7),u=r(5).f,c=0,a=Object.isExtensible||function(){return!0},f=!r(8)(function(){return a(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,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(20),o=r(54),i=r(29);t.exports=function(t){var n=e(t),r=o.f;if(r)for(var u,c=r(t),a=i.f,f=0;c.length>f;)a.call(t,u=c[f++])&&n.push(u);return n}},function(t,n,r){var e=r(17);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(14),o=r(55).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(e(t))}},function(t,n,r){for(var e=r(83),o=r(20),i=r(9),u=r(0),c=r(6),a=r(19),f=r(1),s=f("iterator"),l=f("toStringTag"),p=a.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=o(h),y=0;y<v.length;y++){var d,m=v[y],g=h[m],b=u[m],w=b&&b.prototype;if(w&&(w[s]||c(w,s,p),w[l]||c(w,l,m),a[m]=p,g))for(d in e)w[d]||i(w,d,e[d],!0)}},function(t,n,r){"use strict";var e=r(84),o=r(85),i=r(19),u=r(14);t.exports=r(86)(Array,"Array",function(t,n){this._t=u(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,r){var e=r(1)("unscopables"),o=Array.prototype;void 0==o[e]&&r(6)(o,e,{}),t.exports=function(t){o[e][t]=!0}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(18),o=r(11),i=r(9),u=r(6),c=r(19),a=r(87),f=r(21),s=r(88),l=r(1)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,n,r,v,y,d,m){a(r,n,v);var g,b,w,x=function(t){if(!p&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},_=n+" Iterator",O="values"==y,S=!1,j=t.prototype,E=j[l]||j["@@iterator"]||y&&j[y],P=E||x(y),T=y?O?x("entries"):P:void 0,L="Array"==n&&j.entries||E;if(L&&(w=s(L.call(new t)))!==Object.prototype&&w.next&&(f(w,_,!0),e||"function"==typeof w[l]||u(w,l,h)),O&&E&&"values"!==E.name&&(S=!0,P=function(){return E.call(this)}),e&&!m||!p&&!S&&j[l]||u(j,l,P),c[n]=P,c[_]=h,y)if(g={values:O?P:x("values"),keys:d?P:x("keys"),entries:T},m)for(b in g)b in j||i(j,b,g[b]);else o(o.P+o.F*(p||S),n,g);return g}},function(t,n,r){"use strict";var e=r(24),o=r(15),i=r(21),u={};r(6)(u,r(1)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:o(1,r)}),i(t,n+" Iterator")}},function(t,n,r){var e=r(7),o=r(51),i=r(26)("IE_PROTO"),u=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?u:null}},function(t,n,r){"use strict";r.r(n);var e,o=r(30),i=r(31),u=(r(32),r(58),r(40),r(42),r(50),r(74),r(76),r(77),r(82),r(56)),c=r.n(u);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t){return function(t){if(Array.isArray(t)){for(var n=0,r=new Array(t.length);n<t.length;n++)r[n]=t[n];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(t,n,r,e,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void r(t)}c.done?n(a):Promise.resolve(a).then(e,o)}function l(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function p(t,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,n){return(v=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}!function(t){t.START="TaskEventType.START",t.SUCCESS="TaskEventType.SUCCESS",t.ERROR="TaskEventType.ERROR",t.END="TaskEventType.END"}(e||(e={}));var y=function(t){function n(t){var r;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(r=p(this,h(n).call(this))).body=void 0,r.args=void 0,r.body=t;for(var e=arguments.length,o=new Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];return r.args=o,r}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&v(t,n)}(n,c.a),function(t,n,r){n&&l(t.prototype,n),r&&l(t,r)}(n,[{key:"run",value:function(){var t=function(t){return function(){var n=this,r=arguments;return new Promise(function(e,o){var i=t.apply(n,r);function u(t){s(i,e,o,u,c,"next",t)}function c(t){s(i,e,o,u,c,"throw",t)}u(void 0)})}}(regeneratorRuntime.mark(function t(){var n,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=null,r=null,this.emit(e.START),t.prev=3,t.next=6,this.body.apply(this,f(this.args));case 6:n=t.sent,this.emit(e.SUCCESS,n),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(3),r=String(t.t0),this.emit(e.ERROR,r);case 14:this.emit(e.END,r,n);case 15:case"end":return t.stop()}},t,this,[[3,10]])}));return function(){return t.apply(this,arguments)}}()}]),n}();function d(t,n,r){return(d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,n,r){var e=[null];e.push.apply(e,n);var o=new(Function.bind.apply(t,e));return r&&m(o,r.prototype),o}).apply(null,arguments)}function m(t,n){return(m=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function g(t,n,r,e,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void r(t)}c.done?n(a):Promise.resolve(a).then(e,o)}function b(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}var w=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.queue=[]}return function(t,n,r){n&&b(t.prototype,n),r&&b(t,r)}(t,[{key:"push",value:function(){var t=function(t){return function(){var n=this,r=arguments;return new Promise(function(e,o){var i=t.apply(n,r);function u(t){g(i,e,o,u,c,"next",t)}function c(t){g(i,e,o,u,c,"throw",t)}u(void 0)})}}(regeneratorRuntime.mark(function t(n){var r,o,i,u,c,a,f,s=this,l=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(r=l.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=l[i];return u=d(y,[n].concat(o)),c=new Promise(function(t){return u.on(e.END,function(n,r){s.queue.shift(),t({error:n,result:r,args:o})})}),this.queue.push(u),this.queue.length>1?(a=this.queue.length-1,f=a-1,this.queue[f].on(e.END,function(){u.run()})):u.run(),t.next=7,c;case 7:return t.abrupt("return",t.sent);case 8:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}()}]),t}();r.d(n,"TaskBody",function(){return o.TaskBody}),r.d(n,"TaskResult",function(){return i.TaskResult}),r.d(n,"AsyncQueue",function(){return w})}]);