parallel-es
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -1,3 +0,3 @@ | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["parallel-es"]=n():t["parallel-es"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,n,e){Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=171)}(function(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))switch(typeof t[n]){case"function":break;case"object":t[n]=function(n){var e=n.slice(1),r=t[n[0]];return function(t,n,i){r.apply(this,[t,n,i].concat(e))}}(t[n]);break;default:t[n]=t[t[n]]}return t}([function(t,n){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(72),o=r(i);n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(47)("wks"),i=e(31),o=e(3).Symbol,u="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))};a.store=r},function(t,n,e){t.exports=!e(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(7),i=e(41),o=e(30),u=Object.defineProperty;n.f=e(5)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(3),i=e(2),o=e(14),u=e(10),a="prototype",s=function(t,n,e){var c,f,l,h=t&s.F,d=t&s.G,v=t&s.S,p=t&s.P,y=t&s.B,m=t&s.W,k=d?i:i[n]||(i[n]={}),g=k[a],_=d?r:v?r[n]:(r[n]||{})[a];d&&(e=n);for(c in e)f=!h&&_&&void 0!==_[c],f&&c in k||(l=f?_[c]:e[c],k[c]=d&&"function"!=typeof _[c]?e[c]:y&&f?o(l,r):m&&_[c]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[a]=t[a],n}(l):p&&"function"==typeof l?o(Function.call,l):l,p&&((k.virtual||(k.virtual={}))[c]=l,t&s.R&&g&&!g[c]&&u(g,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n,e){i()(this,t),this.func=n,this.params=e}return u()(t,null,[{key:"create",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}},{key:"createUnchecked",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}}]),t}()},function(t,n,e){var r=e(6),i=e(18);t.exports=e(5)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(81),i=e(39);t.exports=function(t){return r(i(t))}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(24);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";function r(t,n){return{_______isFunctionId:!0,identifier:t+"-"+n}}function i(t){return!!t&&t._______isFunctionId===!0}n.a=r,n.b=i},function(t,n,e){t.exports={default:e(124),__esModule:!0}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){"use strict";var r=e(16);e.d(n,"a",function(){return i});var i={FILTER:e.i(r.a)("parallel",0),IDENTITY:e.i(r.a)("parallel",1),MAP:e.i(r.a)("parallel",2),PARALLEL_JOB_EXECUTOR:e.i(r.a)("parallel",3),RANGE:e.i(r.a)("parallel",4),REDUCE:e.i(r.a)("parallel",5),TIMES:e.i(r.a)("parallel",6),TO_ITERATOR:e.i(r.a)("parallel",7)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports={}},function(t,n,e){var r=e(89),i=e(40);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(38),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(111),h=e(110);e.d(n,"a",function(){return d});var d=function(){function t(n){var e=this;s()(this,t),this.nextHandlers=[];var r=function(t,n,r){return e._next(t,n,r)},i=function(t){return e.reject(t)},o=function(t){return e.resolve(t)};n(r,o,i),this.promise=new u.a(function(t,n){e.resolve=t,e.reject=n})}return f()(t,[{key:"subscribe",value:function(t,n,e){return this.nextHandlers.push(t),(n||e)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"_next",value:function(t,n,e){var r=!0,o=!1,u=void 0;try{for(var a,s=i()(this.nextHandlers);!(r=(a=s.next()).done);r=!0){var c=a.value;c.apply(void 0,arguments)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}}}],[{key:"transform",value:function(n,e){var r=void 0,i=void 0,o=void 0,u=new t(function(t,n,e){r=t,i=n,o=e});return n.subscribe(r,o,function(t){return i(e(t))}),u}},{key:"fromTasks",value:function(t,n,e){return 0===t.length?new h.a(n):new l.a(t,n,e)}}]),t}()},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(11),i=e(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n){t.exports=!0},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(6).f,i=e(15),o=e(4)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){var r=e(39);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(11);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){"use strict";var r=e(154)(!0);e(84)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(63),i=(e.n(r),e(56)),o=(e.n(i),e(59)),u=(e.n(o),e(60)),a=(e.n(u),e(62)),s=(e.n(a),e(64)),c=(e.n(s),e(61)),f=(e.n(c),e(65));e.n(f);e.o(r,"IParallel")&&e.d(n,"a",function(){return r.IParallel}),e.o(i,"IParallelChain")&&e.d(n,"b",function(){return i.IParallelChain}),e.o(o,"IParallelTaskEnvironment")&&e.d(n,"c",function(){return o.IParallelTaskEnvironment}),e.o(o,"IParallelEnvironment")&&e.d(n,"d",function(){return o.IParallelEnvironment}),e.o(u,"IParallelJob")&&e.d(n,"e",function(){return u.IParallelJob}),e.o(a,"IParallelOptions")&&e.d(n,"f",function(){return a.IParallelOptions}),e.o(a,"IDefaultInitializedParallelOptions")&&e.d(n,"g",function(){return a.IDefaultInitializedParallelOptions}),e.o(s,"IParallelJobScheduler")&&e.d(n,"h",function(){return s.IParallelJobScheduler}),e.o(c,"IParallelOperation")&&e.d(n,"i",function(){return c.IParallelOperation}),e.o(c,"ISerializedParallelOperation")&&e.d(n,"j",function(){return c.ISerializedParallelOperation}),e.o(f,"IParallelStream")&&e.d(n,"k",function(){return f.IParallelStream})},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n){i()(this,t),this.functionRegistry=n}return u()(t,[{key:"serializeFunctionCall",value:function(t){var n=this.functionRegistry.getOrSetId(t.func);return{______serializedFunctionCall:!0,functionId:n,parameters:t.params}}}]),t}()},function(t,n,e){"use strict";function r(t){return!!t&&t.______serializedFunctionCall===!0}n.a=r},function(t,n,e){"use strict";function r(t){if(0===t.length)return[];var n=u()(t),e=n[0],r=n.slice(1);return Array.prototype.concat.apply(e,r)}function i(t,n){var e=t.length;t.length+=n.length;for(var r=0;r<n.length;++r)t[e+r]=n[r];return t}var o=e(75),u=e.n(o),a=e(17);e.n(a);n.b=r,n.a=i},function(t,n,e){t.exports={default:e(130),__esModule:!0}},function(t,n,e){t.exports={default:e(132),__esModule:!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){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){t.exports=!e(5)&&!e(13)(function(){return 7!=Object.defineProperty(e(25)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(7),i=e(149),o=e(40),u=e(46)("IE_PROTO"),a=function(){},s="prototype",c=function(){var t,n=e(25)("iframe"),r=o.length,i="<",u=">";for(n.style.display="none",e(80).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),c=t.F;r--;)delete c[s][o[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[s]=r(t),e=new a,a[s]=null,e[u]=t):e=c(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(27),i=e(18),o=e(12),u=e(30),a=e(15),s=e(41),c=Object.getOwnPropertyDescriptor;n.f=e(5)?c:function(t,n){if(t=o(t),n=u(n,!0),s)try{return c(t,n)}catch(t){}if(a(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(8),i=e(2),o=e(13);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){var r=e(47)("keys"),i=e(31);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n,e){var r=e(3),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(48),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){var r=e(3),i=e(2),o=e(26),u=e(51),a=e(6).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(4)},function(t,n,e){var r=e(79),i=e(4)("iterator"),o=e(21);t.exports=e(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){e(158);for(var r=e(3),i=e(10),o=e(21),u=e(4)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=a[s],f=r[c],l=f&&f.prototype;l&&!l[u]&&i(l,u,c),o[c]=o.Array}},function(t,n,e){"use strict";var r=e(33),i=e(66),o=(e.n(i),e(67)),u=(e.n(o),e(55)),a=(e.n(u),e(16)),s=e(9),c=e(35),f=e(34),l=e(68),h=(e.n(l),e(33));e.d(n,"a",function(){return r.a}),e.o(i,"ITaskDefinition")&&e.d(n,"b",function(){return i.ITaskDefinition}),e.o(o,"ITask")&&e.d(n,"c",function(){return o.ITask}),e.o(u,"IFunctionDefinition")&&e.d(n,"d",function(){return u.IFunctionDefinition}),e.d(n,"e",function(){return a.IFunctionId}),e.d(n,"f",function(){return a.b}),e.d(n,"g",function(){return s.a}),e.d(n,"h",function(){return c.ISerializedFunctionCall}),e.d(n,"i",function(){return c.a}),e.d(n,"j",function(){return f.a}),e.o(l,"IThreadPool")&&e.d(n,"k",function(){return l.IThreadPool}),e.d(n,"l",function(){return h.b}),e.d(n,"m",function(){return h.c}),e.d(n,"n",function(){return h.d}),e.d(n,"o",function(){return h.e}),e.d(n,"p",function(){return h.f}),e.d(n,"q",function(){return h.g}),e.d(n,"r",function(){return h.h}),e.d(n,"s",function(){return h.i}),e.d(n,"t",function(){return h.j}),e.d(n,"u",function(){return h.k})},function(t,n){},function(t,n){},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(102);e.d(n,"a",function(){return s});var s=function(){function t(n,e,r){i()(this,t),this.options=e,this.environment=r,this.stream=n}return u()(t,[{key:"resolve",value:function(){return this}},{key:"chainOperation",value:function(t){return new a.a(this.stream,this.options,this.environment,[t])}},{key:"addEnvironment",value:function(t){return new a.a(this.stream,this.options,this.environment.add(t))}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(19),s=e(9);e.d(n,"a",function(){return c});var c=function(){function t(n){i()(this,t),this.collection=n}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*t,i=r+n;return e.serializeFunctionCall(s.a.createUnchecked(a.a.TO_ITERATOR,this.collection.slice(r,i)))}},{key:"length",get:function(){return this.collection.length}}]),t}()},56,56,function(t,n){},56,56,56,56,55,55,56,function(t,n,e){"use strict";function r(t){return{type:d.InitializeWorker,workerId:t}}function i(t){return{task:t,type:d.ScheduleTask}}function o(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return{functions:t,missingFunctions:e,type:d.FunctionResponse}}function u(){return{type:d.Stop}}function a(t){return t.type===d.FunctionRequest}function s(t){return t.type===d.WorkerResult}function c(t){return t.type===d.FunctionExecutionError}var f=e(115),l=(e.n(f),e(118)),h=(e.n(l),e(17));e.n(h);n.e=r,n.f=i,n.d=o,n.g=u,n.a=a,n.b=s,n.c=c;var d;!function(t){t[t.InitializeWorker=0]="InitializeWorker",t[t.ScheduleTask=1]="ScheduleTask",t[t.FunctionRequest=2]="FunctionRequest",t[t.FunctionResponse=3]="FunctionResponse",t[t.WorkerResult=4]="WorkerResult",t[t.FunctionExecutionError=5]="FunctionExecutionError",t[t.Stop=6]="Stop"}(d||(d={}))},function(t,n,e){t.exports={default:e(123),__esModule:!0}},function(t,n,e){t.exports={default:e(126),__esModule:!0}},function(t,n,e){t.exports={default:e(78),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(119),o=r(i),u=e(116),a=r(u),s=e(77),c=r(s);n.default=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof n?"undefined":(0,c.default)(n)));t.prototype=(0,a.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(o.default?(0,o.default)(t,n):t.__proto__=n)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(77),o=r(i);n.default=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==("undefined"==typeof n?"undefined":(0,o.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(70),o=r(i);n.default=function(t){return Array.isArray(t)?t:(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(70),o=r(i);n.default=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(121),o=r(i),u=e(120),a=r(u),s="function"==typeof a.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};n.default="function"==typeof a.default&&"symbol"===s(o.default)?function(t){return"undefined"==typeof t?"undefined":s(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"==typeof t?"undefined":s(t)}},function(t,n,e){e(92);var r=e(2).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){var r=e(20),i=e(4)("toStringTag"),o="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),i))?e:o?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){t.exports=e(3).document&&document.documentElement},function(t,n,e){var r=e(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(21),i=e(4)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){var r=e(7);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){"use strict";var r=e(26),i=e(8),o=e(90),u=e(10),a=e(15),s=e(21),c=e(143),f=e(28),l=e(88),h=e(4)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",p="keys",y="values",m=function(){return this};t.exports=function(t,n,e,k,g,_,b){c(e,n,k);var w,x,O,P=function(t){if(!d&&t in T)return T[t];switch(t){case p:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",I=g==y,E=!1,T=t.prototype,j=T[h]||T[v]||g&&T[g],M=j||P(g),F=g?I?P("entries"):M:void 0,C="Array"==n?T.entries||j:j;if(C&&(O=l(C.call(new t)),O!==Object.prototype&&(f(O,S,!0),r||a(O,h)||u(O,h,m))),I&&j&&j.name!==y&&(E=!0,M=function(){return j.call(this)}),r&&!b||!d&&!E&&T[h]||u(T,h,M),s[n]=M,s[S]=m,g)if(w={values:I?M:P(y),keys:_?M:P(p),entries:F},b)for(x in w)x in T||o(T,x,w[x]);else i(i.P+i.F*(d||E),n,w);return w}},function(t,n,e){var r=e(4)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n,e){var r=e(12),i=e(87).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,n,e){var r=e(89),i=e(40).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(15),i=e(29),o=e(46)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(15),i=e(12),o=e(137)(!1),u=e(46)("IE_PROTO");t.exports=function(t,n){var e,a=i(t),s=0,c=[];for(e in a)e!=u&&r(a,e)&&c.push(e);for(;n.length>s;)r(a,e=n[s++])&&(~o(c,e)||c.push(e));return c}},function(t,n,e){t.exports=e(10)},function(t,n,e){var r,i,o,u=e(14),a=e(141),s=e(80),c=e(25),f=e(3),l=f.process,h=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,p=0,y={},m="onreadystatechange",k=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},g=function(t){k.call(t.data)};h&&d||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return y[++p]=function(){a("function"==typeof t?t:Function(t),n)},r(p),p},d=function(t){delete y[t]},"process"==e(20)(l)?r=function(t){l.nextTick(u(k,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=g,r=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",g,!1)):r=m in c("script")?function(t){s.appendChild(c("script"))[m]=function(){s.removeChild(this),k.call(t)}}:function(t){setTimeout(u(k,t,1),0)}),t.exports={set:h,clear:d}},function(t,n,e){var r=e(8);r(r.S+r.F*!e(5),"Object",{defineProperty:e(6).f})},61,function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(101);e.d(n,"a",function(){return c});var s=e(169),c=function(){function t(n){i()(this,t),this.functionLookupTable=n}return u()(t,[{key:"spawn",value:function(){if(!window.Worker)throw new Error("Missing Web Worker support");var t=new s,n=new a.a(t,this.functionLookupTable);return n.initialize(),n}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(114),s=e(16),c=e(113);e.d(n,"a",function(){return f});var f=function(){function t(){i()(this,t),this.ids=new a.a,this.definitions=new a.a,this.lastId=0}return u()(t,[{key:"getOrSetId",value:function(t){if(e.i(s.b)(t))return t;var n=t.toString(),r=this.ids.get(n);return"undefined"==typeof r&&(r=e.i(s.a)("dynamic",++this.lastId),this.initDefinition(t,r)),r}},{key:"getDefinition",value:function(t){return this.definitions.get(t.identifier)}},{key:"initDefinition",value:function(t,n){var r=t.toString(),i=e.i(c.a)(t),o=r.substring(r.indexOf("(")+1,r.indexOf(")")).split(","),u=r.substring(r.indexOf("{")+1,r.lastIndexOf("}")).trim(),a={argumentNames:o.map(function(t){return t.trim()}),body:u,id:n,name:i?i:void 0};this.ids.set(r,n),this.definitions.set(n.identifier,a)}}]),t}()},function(t,n,e){"use strict";function r(t){function n(n){if(n){if(n.hasOwnProperty("threadPool")&&"undefined"==typeof n.threadPool)throw new Error("The thread pool is mandatory and cannot be unset");if(n.hasOwnProperty("functionCallSerializer")&&"undefined"==typeof n.functionCallSerializer)throw new Error("The function call serializer is mandatory and cannot be unset");if(n.hasOwnProperty("maxConcurrencyLevel")&&"number"!=typeof n.maxConcurrencyLevel)throw new Error("The maxConcurrencyLevel is mandatory and has to be a number")}return o()({},t,n)}return{defaultOptions:function(e){return e?void(t=n(e)):o()({},t)},from:function(t,r){return e.i(c.a)(new u.a(t),n(r))},range:function(t,r,i,o){var u=a.a.create(t,r,i);return e.i(c.a)(u,n(o))},times:function(t,r,i,o){return i?e.i(c.a)(s.a.create(t,r),n(o),i):e.i(c.a)(s.a.create(t,r),n(o))},run:function(n){for(var r=void 0,i=arguments.length,o=Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];r=e.i(f.b)(n)?l.a.create(n,o):l.a.create(n,o);var a=t.functionCallSerializer.serializeFunctionCall(r),s={main:a,usedFunctionIds:[a.functionId]};return t.threadPool.run(s)}}}var i=e(71),o=e.n(i),u=e(58),a=e(106),s=e(107),c=e(103),f=e(16),l=e(9);e.d(n,"a",function(){return r})},function(t,n,e){"use strict";var r=e(37),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(74),f=e.n(c),l=e(73),h=e.n(l),d=e(109);e.d(n,"a",function(){return v});var v=function(t){function n(){return u()(this,n),f()(this,(n.__proto__||i()(n)).apply(this,arguments))}return h()(n,t),s()(n,[{key:"getScheduling",value:function(t,n){var e=t/(4*n.maxConcurrencyLevel);return n.minValuesPerTask&&(e=Math.min(Math.max(e,n.minValuesPerTask),t)),n.maxValuesPerTask&&(e=Math.min(e,n.maxValuesPerTask)),{numberOfTasks:0===e?0:Math.round(t/e),valuesPerTask:Math.ceil(e)}}}]),n}(d.a)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(112);e.d(n,"a",function(){return s});var s=function(){function t(n,e){i()(this,t),this.workerThreadFactory=n,this.workers=[],this.idleWorkers=[],this.queue=[],this.concurrencyLimit=e.maxConcurrencyLevel}return u()(t,[{key:"run",value:function(t){var n=new a.a(t);return this.queue.unshift(n),this.schedulePendingTasks(),n}},{key:"schedulePendingTasks",value:function(){for(;this.queue.length;){var t=void 0;if(0===this.idleWorkers.length&&this.workers.length<this.concurrencyLimit?(t=this.workerThreadFactory.spawn(),this.workers.push(t)):this.idleWorkers.length>0&&(t=this.idleWorkers.pop()),!t)return;var n=this.queue.pop();this.runTaskOnWorker(n,t)}}},{key:"runTaskOnWorker",value:function(t,n){var e=this;t.isCancellationRequested?(t.resolveCancelled(),this.releaseWorker(n)):n.run(t.definition,function(r,i){r?t.reject(r):t.resolve(i),e.releaseWorker(n)})}},{key:"releaseWorker",value:function(t){this.idleWorkers.push(t),this.schedulePendingTasks()}}]),t}()},function(t,n,e){"use strict";var r=e(96),i=e(98),o=e(97),u=e(95),a=e(34),s=e(94),c=e(54);e.d(n,"IParallel",function(){return c.a}),e.d(n,"ITaskDefinition",function(){return c.b}),e.d(n,"ITask",function(){return c.c}),e.d(n,"IFunctionDefinition",function(){return c.d}),e.d(n,"IFunctionId",function(){return c.e}),e.d(n,"isFunctionId",function(){return c.f}),e.d(n,"FunctionCall",function(){return c.g}),e.d(n,"ISerializedFunctionCall",function(){return c.h}),e.d(n,"isSerializedFunctionCall",function(){return c.i}),e.d(n,"FunctionCallSerializer",function(){return c.j}),e.d(n,"IThreadPool",function(){return c.k}),e.d(n,"IParallelChain",function(){return c.l}),e.d(n,"IParallelTaskEnvironment",function(){return c.m}),e.d(n,"IParallelEnvironment",function(){return c.n}),e.d(n,"IParallelJob",function(){return c.o}),e.d(n,"IParallelOptions",function(){return c.p}),e.d(n,"IDefaultInitializedParallelOptions",function(){return c.q}),e.d(n,"IParallelJobScheduler",function(){return c.r}),e.d(n,"IParallelOperation",function(){return c.s}),e.d(n,"ISerializedParallelOperation",function(){return c.t}),e.d(n,"IParallelStream",function(){return c.u});var f=new u.a,l=window.navigator.hardwareConcurrency||4,h=new a.a(f),d=new i.a(new s.a(f),{maxConcurrencyLevel:l}),v=e.i(r.a)({functionCallSerializer:h,maxConcurrencyLevel:l,scheduler:new o.a,threadPool:d});n.default=v},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(37),u=e.n(o),a=e(74),s=e.n(a),c=e(122),f=e.n(c),l=e(73),h=e.n(l),d=e(0),v=e.n(d),p=e(1),y=e.n(p),m=e(69);e.d(n,"a",function(){return k}),e.d(n,"b",function(){return g});var k=function(){function t(n){v()(this,t),this.name=n}return y()(t,[{key:"onMessage",value:function(t){throw new Error("Browser worker thread in state '"+this.name+"' cannot handle the received message ("+t.data.type+").")}},{key:"onError",value:function(t){console.error("Processing error on worker slave",t.error)}}]),t}(),g=function(t){function n(t,e,r){v()(this,n);var i=s()(this,(n.__proto__||u()(n)).call(this,"executing"));return i.callback=t,i.functionRegistry=e,i.worker=r,i}return h()(n,t),y()(n,[{key:"onMessage",value:function(t){var r=t.data;e.i(m.a)(r)?this.handleFunctionRequest(r):e.i(m.b)(r)?this.callback(void 0,r.result):e.i(m.c)(r)?this.callback(r.error,void 0):f()(n.prototype.__proto__||u()(n.prototype),"onMessage",this).call(this,t)}},{key:"onError",value:function(t){this.callback(t.error,void 0)}},{key:"handleFunctionRequest",value:function(t){var n=[],e=[],r=!0,o=!1,u=void 0;try{for(var a,s=i()(t.functionIds);!(r=(a=s.next()).done);r=!0){var c=a.value,f=this.functionRegistry.getDefinition(c);f?e.push(f):n.push(c)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}this.worker.postMessage(m.d.apply(void 0,[e].concat(n)))}}]),n}(k)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(69),s=e(100);e.d(n,"a",function(){return f});var c=0,f=function(){function t(n,e){i()(this,t),this.worker=n,this.functionLookupTable=e,this.id=++c,this.state=new s.a("default"),this.stopped=!1;var r=this;this.worker.addEventListener("message",function(){r.onWorkerMessage.apply(r,arguments)}),this.worker.addEventListener("error",function(){r.onError.apply(r,arguments)})}return u()(t,[{key:"initialize",value:function(){if("default"!==this.state.name)throw new Error("The browser worker thread can only be initialized if in state default but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.e)(this.id)),this.state=new s.a("idle")}},{key:"run",value:function(t,n){var r=this;if("idle"!==this.state.name)throw new Error("The browser worker thread can only execute a new task if in state idle but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.f)(t));var i=function(t,e){r.stopped?r.state=new s.a("stopped"):r.state=new s.a("idle"),n(t,e)};this.state=new s.b(i,this.functionLookupTable,this.worker)}},{key:"stop",value:function(){this.stopped||(this.sendMessage(e.i(a.g)()),this.stopped=!0,"executing"!==this.state.name&&(this.state=new s.a("stopped")))}},{key:"toString",value:function(){return"BrowserWorkerThread { id: "+this.id+", state: "+this.state.name}},{key:"onWorkerMessage",value:function(t){this.state.onMessage(t)}},{key:"onError",value:function(t){this.state.onError(t),this.state=new s.a("errored")}},{key:"sendMessage",value:function(t){this.worker.postMessage(t)}}]),t}()},function(t,n,e){"use strict";var r=e(76),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(57),f=e(58),l=e(36),h=e(23);e.d(n,"a",function(){return d});var d=function(){function t(n,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];u()(this,t),this.previousStream=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function t(){var n=this,e=void 0,t=void 0,r=void 0,i=new h.a(function(n,i,o){e=n,t=i,r=o});return this.previousStream.then(function(i){var o=n.options.scheduler.schedule({environment:n.environment,generator:new f.a(i),operations:n.operations,options:n.options}),u=h.a.fromTasks(o,[],l.a);u.subscribe(e,r,t)},r),new c.a(i,this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.previousStream,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.previousStream,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";function r(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=void 0;e instanceof Array?(a=void 0,r=e):a=e;var s=new o.a(new i.a(t,n,u.a.of(),r));return a?s.inEnvironment(a):s}var i=e(105),o=e(104),u=e(108);n.a=r},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(75),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(19),h=e(9),d=e(23);e.d(n,"a",function(){return v});var v=function(){function t(n){s()(this,t),this.state=n}return f()(t,[{key:"inEnvironment",value:function(n){var e=void 0;if("function"==typeof n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e=h.a.createUnchecked.apply(h.a,[n].concat(i))}else e=n;return new t(this.state.addEnvironment(e))}},{key:"map",value:function(t){return this._chain(h.a.createUnchecked(l.a.MAP),h.a.createUnchecked(t))}},{key:"reduce",value:function(t,n,e){var r=e||n,o=this._chain(h.a.createUnchecked(l.a.REDUCE,t),h.a.createUnchecked(n)).resolveChain();return d.a.transform(o,function(n){if(0===n.length)return t;var e=u()(n),o=e[0],a=e.slice(1),s=o,c=!0,f=!1,l=void 0;try{for(var h,d=i()(a);!(c=(h=d.next()).done);c=!0){var v=h.value;s=r(s,v)}}catch(t){f=!0,l=t}finally{try{!c&&d.return&&d.return()}finally{if(f)throw l}}return s})}},{key:"filter",value:function(t){return this._chain(h.a.createUnchecked(l.a.FILTER),h.a.createUnchecked(t))}},{key:"subscribe",value:function(t,n,e){return this.resolveChain().subscribe(t,n,e)}},{key:"then",value:function(t,n){return this.resolveChain().then(t,n)}},{key:"catch",value:function(t){return this.resolveChain().catch(t)}},{key:"resolveChain",value:function(){var t=this.state=this.state.resolve();return t.stream}},{key:"_chain",value:function(n,e){var r={iterator:n,iteratee:e};return new t(this.state.chainOperation(r))}}]),t}()},function(t,n,e){"use strict";var r=e(76),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(57),f=e(23),l=e(36); | ||
e.d(n,"a",function(){return h});var h=function(){function t(n,e,r,i){u()(this,t),this.generator=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function(){var t=this.options.scheduler.schedule({environment:this.environment,generator:this.generator,operations:this.operations,options:this.options});return new c.a(f.a.fromTasks(t,[],l.a),this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.generator,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.generator,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(19),s=e(9);e.d(n,"a",function(){return c});var c=function(){function t(n,e,r){i()(this,t),this.start=n,this.end=e,this.step=r}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*this.step,i=this.start+t*r,o=Math.min(i+r,this.end);return e.serializeFunctionCall(s.a.createUnchecked(a.a.RANGE,i,o,this.step))}},{key:"length",get:function(){return Math.ceil((this.end-this.start)/this.step)}}],[{key:"create",value:function(n,e,r){if("undefined"==typeof e&&(e=n,n=0),"undefined"==typeof r&&(r=e<n?-1:1),0===r)throw new Error("Step size of zero is not allowed");return new t(n,e,r)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(19),s=e(9),c=e(16);e.d(n,"a",function(){return f});var f=function(){function t(n,e){i()(this,t),this.times=n,this.iteratee=e}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=t*n,i=Math.min(r+n,this.times),o=e.serializeFunctionCall(this.iteratee);return e.serializeFunctionCall(s.a.create(a.a.TIMES,r,i,o))}},{key:"length",get:function(){return this.times}}],[{key:"create",value:function(n,r){var i=void 0;return i=e.i(c.b)(r)||"function"==typeof r?s.a.createUnchecked(r):s.a.create(a.a.IDENTITY,r),new t(n,i)}}]),t}()},function(t,n,e){"use strict";var r=e(71),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(9);e.d(n,"a",function(){return f});var f=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u()(this,t),this.environments=n}return s()(t,[{key:"add",value:function(n){var e=this.environments.slice();return n instanceof c.a||!(this.environments.length>0)||this.environments[this.environments.length-1]instanceof c.a?e.push(n):e[e.length-1]=i()({},e[e.length-1],n),new t(e)}},{key:"toJSON",value:function(t){return this.environments.map(function(n){return n instanceof c.a?t.serializeFunctionCall(n):n})}}],[{key:"of",value:function(n){var e=t.EMPTY;return n?e.add(n):e}}]),t}();f.EMPTY=new f},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(9),s=e(19),c=e(36),f=e(35);e.d(n,"a",function(){return l});var l=function(){function t(){i()(this,t)}return u()(t,[{key:"schedule",value:function(t){var n=this.getTaskDefinitions(t);return n.map(function(n){return t.options.threadPool.run(n)})}},{key:"getTaskDefinitions",value:function(t){var n=this.getScheduling(t.generator.length,t.options),r=t.options.functionCallSerializer,i=t.environment.toJSON(r),o=this.serializeOperations(t.operations,r),u=[s.a.PARALLEL_JOB_EXECUTOR].concat(e.i(c.b)(o.map(function(t){return[t.iteratee.functionId,t.iterator.functionId]})));i.forEach(function(t){e.i(f.a)(t)&&u.push(t.functionId)});for(var l=[],h=0;h<n.numberOfTasks;++h){var d=t.generator.serializeSlice(h,n.valuesPerTask,r),v={environments:i,generator:d,operations:o,taskIndex:h,valuesPerTask:n.valuesPerTask},p={main:r.serializeFunctionCall(a.a.createUnchecked(s.a.PARALLEL_JOB_EXECUTOR,v)),taskIndex:h,usedFunctionIds:[d.functionId].concat(u),valuesPerTask:n.valuesPerTask};l.push(p)}return l}},{key:"serializeOperations",value:function(t,n){return t.map(function(t){return{iteratee:n.serializeFunctionCall(t.iteratee),iterator:n.serializeFunctionCall(t.iterator)}})}}]),t}()},function(t,n,e){"use strict";var r=e(38),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){u()(this,t),this.promise=i.a.resolve(n)}return s()(t,[{key:"subscribe",value:function(t,n,e){return(e||n)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}}]),t}()},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(23);e.d(n,"a",function(){return f});var f=function(){function t(n,e,r){var o=this;u()(this,t),this.failed=!1,this.nextSubResultIndex=0,this.tasks=n,this.joiner=r,this.endResult=e,this.pending=n.length,this.subResults=new Array(this.tasks.length),this.innerStream=new c.a(function(t,n,e){o.next=t,o.resolve=n,o.reject=e});var a=!0,s=!1,f=void 0;try{for(var l,h=i()(n);!(a=(l=h.next()).done);a=!0){var d=l.value;this.registerTaskHandler(d)}}catch(t){s=!0,f=t}finally{try{!a&&h.return&&h.return()}finally{if(s)throw f}}}return s()(t,[{key:"subscribe",value:function(t,n,e){return this.innerStream.subscribe(t,n,e),this}},{key:"then",value:function(t,n){return this.innerStream.then(t,n)}},{key:"catch",value:function(t){return this.innerStream.catch(t)}},{key:"registerTaskHandler",value:function(t){var n=this;t.then(function(e){return n._taskCompleted(e,t.definition)},function(t){return n._taskFailed(t)})}},{key:"_taskCompleted",value:function(t,n){if(0===this.pending)throw new Error("Stream already resolved but taskCompleted called one more time");--this.pending,this.tasks[n.taskIndex]=void 0,this.subResults[n.taskIndex]=t,this.failed||(this.next(t,n.taskIndex,n.valuesPerTask),this.nextSubResultIndex===n.taskIndex&&this.joinSubResults(),0===this.pending&&(this.resolve(this.endResult),this.endResult=void 0))}},{key:"joinSubResults",value:function(){for(;this.nextSubResultIndex<this.subResults.length&&"undefined"!=typeof this.subResults[this.nextSubResultIndex];){var t=this.subResults[this.nextSubResultIndex];this.subResults[this.nextSubResultIndex]=void 0,this.endResult=this.joiner.apply(void 0,[this.endResult,t]),++this.nextSubResultIndex}}},{key:"_taskFailed",value:function(t){if(this.failed!==!0){this.failed=!0;for(var n=0;n<this.tasks.length;++n){var e=this.tasks[n];"undefined"!=typeof e&&e.cancel()}this.reject(t)}}}]),t}()},function(t,n,e){"use strict";var r=e(38),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){var e=this;u()(this,t),this.definition=n,this.isCancellationRequested=!1,this.isCanceled=!1,this.promise=new i.a(function(t,n){e.resolvePromise=t,e.rejectPromise=n})}return s()(t,[{key:"resolve",value:function(t){this.isCancellationRequested?this.resolveCancelled():this.resolvePromise(t)}},{key:"resolveCancelled",value:function(){this.isCanceled=!0,this.reject("Task has been canceled")}},{key:"reject",value:function(t){this.rejectPromise(t)}},{key:"then",value:function(t,n){return n?this.promise.then(t,n):this.promise.then(t)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"cancel",value:function(){this.isCancellationRequested=!0}}]),t}()},function(t,n,e){"use strict";function r(t){if(t.hasOwnProperty("name"))return t.name;var n=t.toString();return n.substring(n.indexOf("function")+9,n.indexOf("(")).trim()}n.a=r},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(){i()(this,t),this.data={}}return u()(t,[{key:"get",value:function(t){var n=this.toInternalKey(t);return this.has(t)?this.data[n]:void 0}},{key:"has",value:function(t){return this.hasOwnProperty.call(this.data,this.toInternalKey(t))}},{key:"set",value:function(t,n){this.data[this.toInternalKey(t)]=n}},{key:"clear",value:function(){this.data={}}},{key:"toInternalKey",value:function(t){return"@"+t}}]),t}()},function(t,n,e){t.exports={default:e(125),__esModule:!0}},function(t,n,e){t.exports={default:e(127),__esModule:!0}},function(t,n,e){t.exports={default:e(128),__esModule:!0}},function(t,n,e){t.exports={default:e(129),__esModule:!0}},function(t,n,e){t.exports={default:e(131),__esModule:!0}},function(t,n,e){t.exports={default:e(133),__esModule:!0}},function(t,n,e){t.exports={default:e(134),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(37),o=r(i),u=e(117),a=r(u);n.default=function t(n,e,r){null===n&&(n=Function.prototype);var i=(0,a.default)(n,e);if(void 0===i){var u=(0,o.default)(n);return null===u?void 0:t(u,e,r)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(r)}},function(t,n,e){e(32),e(157),t.exports=e(2).Array.from},function(t,n,e){e(53),e(32),t.exports=e(156)},function(t,n,e){var r=e(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,n,e){e(159),t.exports=e(2).Object.assign},function(t,n,e){e(160);var r=e(2).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(161);var r=e(2).Object;t.exports=function(t,n){return r.getOwnPropertyDescriptor(t,n)}},function(t,n,e){e(162);var r=e(2).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(163),t.exports=e(2).Object.getPrototypeOf},function(t,n,e){e(164),t.exports=e(2).Object.setPrototypeOf},function(t,n,e){e(93),e(32),e(53),e(165),t.exports=e(2).Promise},function(t,n,e){e(166),e(93),e(167),e(168),t.exports=e(2).Symbol},function(t,n,e){e(32),e(53),t.exports=e(51).f("iterator")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(12),i=e(49),o=e(155);t.exports=function(t){return function(n,e,u){var a,s=r(n),c=i(s.length),f=o(u,c);if(t&&e!=e){for(;c>f;)if(a=s[f++],a!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){"use strict";var r=e(6),i=e(18);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(22),i=e(44),o=e(27);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),s=o.f,c=0;a.length>c;)s.call(t,u=a[c++])&&n.push(u);return n}},function(t,n,e){var r=e(14),i=e(83),o=e(82),u=e(7),a=e(49),s=e(52),c={},f={},n=t.exports=function(t,n,e,l,h){var d,v,p,y,m=h?function(){return t}:s(t),k=r(e,l,n?2:1),g=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=a(t.length);d>g;g++)if(y=n?k(u(v=t[g])[0],v[1]):k(t[g]),y===c||y===f)return y}else for(p=m.call(t);!(v=p.next()).done;)if(y=i(p,k,v.value,n),y===c||y===f)return y};n.BREAK=c,n.RETURN=f},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(20);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){"use strict";var r=e(42),i=e(18),o=e(28),u={};e(10)(u,e(4)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(22),i=e(12);t.exports=function(t,n){for(var e,o=i(t),u=r(o),a=u.length,s=0;a>s;)if(o[e=u[s++]]===n)return e}},function(t,n,e){var r=e(31)("meta"),i=e(11),o=e(15),u=e(6).f,a=0,s=Object.isExtensible||function(){return!0},c=!e(13)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!s(t))return"F";if(!n)return"E";f(t)}return t[r].i},h=function(t,n){if(!o(t,r)){if(!s(t))return!0;if(!n)return!1;f(t)}return t[r].w},d=function(t){return c&&v.NEED&&s(t)&&!o(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:d}},function(t,n,e){var r=e(3),i=e(91).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,s="process"==e(20)(u);t.exports=function(){var t,n,e,c=function(){var r,i;for(s&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(s)e=function(){u.nextTick(c)};else if(o){var f=!0,l=document.createTextNode("");new o(c).observe(l,{characterData:!0}),e=function(){l.data=f=!f}}else if(a&&a.resolve){var h=a.resolve();e=function(){h.then(c)}}else e=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};n&&(n.next=i),t||(t=i,e()),n=i}}},function(t,n,e){"use strict";var r=e(22),i=e(44),o=e(27),u=e(29),a=e(81),s=Object.assign;t.exports=!s||e(13)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=u(t),s=arguments.length,c=1,f=i.f,l=o.f;s>c;)for(var h,d=a(arguments[c++]),v=f?r(d).concat(f(d)):r(d),p=v.length,y=0;p>y;)l.call(d,h=v[y++])&&(e[h]=d[h]);return e}:s},function(t,n,e){var r=e(6),i=e(7),o=e(22);t.exports=e(5)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),a=u.length,s=0;a>s;)r.f(t,e=u[s++],n[e]);return t}},function(t,n,e){var r=e(10);t.exports=function(t,n,e){for(var i in n)e&&t[i]?t[i]=n[i]:r(t,i,n[i]);return t}},function(t,n,e){var r=e(11),i=e(7),o=function(t,n){if(i(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(14)(Function.call,e(43).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,n,e){"use strict";var r=e(3),i=e(2),o=e(6),u=e(5),a=e(4)("species");t.exports=function(t){var n="function"==typeof i[t]?i[t]:r[t];u&&n&&!n[a]&&o.f(n,a,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(7),i=e(24),o=e(4)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[o])?n:i(e)}},function(t,n,e){var r=e(48),i=e(39);t.exports=function(t){return function(n,e){var o,u,a=String(i(n)),s=r(e),c=a.length;return s<0||s>=c?t?"":void 0:(o=a.charCodeAt(s),o<55296||o>56319||s+1===c||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):o:t?a.slice(s,s+2):(o-55296<<10)+(u-56320)+65536)}}},function(t,n,e){var r=e(48),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(7),i=e(52);t.exports=e(2).getIterator=function(t){var n=i(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return r(n.call(t))}},function(t,n,e){"use strict";var r=e(14),i=e(8),o=e(29),u=e(83),a=e(82),s=e(49),c=e(138),f=e(52);i(i.S+i.F*!e(85)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,i,l,h=o(t),d="function"==typeof this?this:Array,v=arguments.length,p=v>1?arguments[1]:void 0,y=void 0!==p,m=0,k=f(h);if(y&&(p=r(p,v>2?arguments[2]:void 0,2)),void 0==k||d==Array&&a(k))for(n=s(h.length),e=new d(n);n>m;m++)c(e,m,y?p(h[m],m):h[m]);else for(l=k.call(h),e=new d;!(i=l.next()).done;m++)c(e,m,y?u(l,p,[i.value,m],!0):i.value);return e.length=m,e}})},function(t,n,e){"use strict";var r=e(135),i=e(144),o=e(21),u=e(12);t.exports=e(84)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):"keys"==n?i(0,e):"values"==n?i(0,t[e]):i(0,[e,t[e]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(8);r(r.S+r.F,"Object",{assign:e(148)})},function(t,n,e){var r=e(8);r(r.S,"Object",{create:e(42)})},function(t,n,e){var r=e(12),i=e(43).f;e(45)("getOwnPropertyDescriptor",function(){return function(t,n){return i(r(t),n)}})},function(t,n,e){e(45)("getOwnPropertyNames",function(){return e(86).f})},function(t,n,e){var r=e(29),i=e(88);e(45)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,n,e){var r=e(8);r(r.S,"Object",{setPrototypeOf:e(151).set})},function(t,n,e){"use strict";var r,i,o,u=e(26),a=e(3),s=e(14),c=e(79),f=e(8),l=e(11),h=e(24),d=e(136),v=e(140),p=e(153),y=e(91).set,m=e(147)(),k="Promise",g=a.TypeError,_=a.process,b=a[k],_=a.process,w="process"==c(_),x=function(){},O=!!function(){try{var t=b.resolve(1),n=(t.constructor={})[e(4)("species")]=function(t){t(x,x)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then(x)instanceof n}catch(t){}}(),P=function(t,n){return t===n||t===b&&n===o},S=function(t){var n;return!(!l(t)||"function"!=typeof(n=t.then))&&n},I=function(t){return P(b,t)?new E(t):new i(t)},E=i=function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw g("Bad Promise constructor");n=t,e=r}),this.resolve=h(n),this.reject=h(e)},T=function(t){try{t()}catch(t){return{error:t}}},j=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,i=1==t._s,o=0,u=function(n){var e,o,u=i?n.ok:n.fail,a=n.resolve,s=n.reject,c=n.domain;try{u?(i||(2==t._h&&C(t),t._h=1),u===!0?e=r:(c&&c.enter(),e=u(r),c&&c.exit()),e===n.promise?s(g("Promise-chain cycle")):(o=S(e))?o.call(e,a,s):a(e)):s(r)}catch(t){s(t)}};e.length>o;)u(e[o++]);t._c=[],t._n=!1,n&&!t._h&&M(t)})}},M=function(t){y.call(a,function(){var n,e,r,i=t._v;if(F(t)&&(n=T(function(){w?_.emit("unhandledRejection",i,t):(e=a.onunhandledrejection)?e({promise:t,reason:i}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=w||F(t)?2:1),t._a=void 0,n)throw n.error})},F=function(t){if(1==t._h)return!1;for(var n,e=t._a||t._c,r=0;e.length>r;)if(n=e[r++],n.fail||!F(n.promise))return!1;return!0},C=function(t){y.call(a,function(){var n;w?_.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},R=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),j(n,!0))},A=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw g("Promise can't be resolved itself");(n=S(t))?m(function(){var r={_w:e,_d:!1};try{n.call(t,s(A,r,1),s(R,r,1))}catch(t){R.call(r,t)}}):(e._v=t,e._s=1,j(e,!1))}catch(t){R.call({_w:e,_d:!1},t)}}};O||(b=function(t){d(this,b,k,"_h"),h(t),r.call(this);try{t(s(A,this,1),s(R,this,1))}catch(t){R.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e(150)(b.prototype,{then:function(t,n){var e=I(p(this,b));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=w?_.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&j(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),E=function(){var t=new r;this.promise=t,this.resolve=s(A,t,1),this.reject=s(R,t,1)}),f(f.G+f.W+f.F*!O,{Promise:b}),e(28)(b,k),e(152)(k),o=e(2)[k],f(f.S+f.F*!O,k,{reject:function(t){var n=I(this),e=n.reject;return e(t),n.promise}}),f(f.S+f.F*(u||!O),k,{resolve:function(t){if(t instanceof b&&P(t.constructor,this))return t;var n=I(this),e=n.resolve;return e(t),n.promise}}),f(f.S+f.F*!(O&&e(85)(function(t){b.all(t).catch(x)})),k,{all:function(t){var n=this,e=I(n),r=e.resolve,i=e.reject,o=T(function(){var e=[],o=0,u=1;v(t,!1,function(t){var a=o++,s=!1;e.push(void 0),u++,n.resolve(t).then(function(t){s||(s=!0,e[a]=t,--u||r(e))},i)}),--u||r(e)});return o&&i(o.error),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,i=T(function(){v(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return i&&r(i.error),e.promise}})},function(t,n,e){"use strict";var r=e(3),i=e(15),o=e(5),u=e(8),a=e(90),s=e(146).KEY,c=e(13),f=e(47),l=e(28),h=e(31),d=e(4),v=e(51),p=e(50),y=e(145),m=e(139),k=e(142),g=e(7),_=e(12),b=e(30),w=e(18),x=e(42),O=e(86),P=e(43),S=e(6),I=e(22),E=P.f,T=S.f,j=O.f,M=r.Symbol,F=r.JSON,C=F&&F.stringify,R="prototype",A=d("_hidden"),z=d("toPrimitive"),L={}.propertyIsEnumerable,W=f("symbol-registry"),N=f("symbols"),D=f("op-symbols"),U=Object[R],J="function"==typeof M,q=r.QObject,B=!q||!q[R]||!q[R].findChild,K=o&&c(function(){return 7!=x(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=E(U,n);r&&delete U[n],T(t,n,e),r&&t!==U&&T(U,n,r)}:T,G=function(t){var n=N[t]=x(M[R]);return n._k=t,n},H=J&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},Y=function(t,n,e){return t===U&&Y(D,n,e),g(t),n=b(n,!0),g(e),i(N,n)?(e.enumerable?(i(t,A)&&t[A][n]&&(t[A][n]=!1),e=x(e,{enumerable:w(0,!1)})):(i(t,A)||T(t,A,w(1,{})),t[A][n]=!0),K(t,n,e)):T(t,n,e)},V=function(t,n){g(t);for(var e,r=m(n=_(n)),i=0,o=r.length;o>i;)Y(t,e=r[i++],n[e]);return t},X=function(t,n){return void 0===n?x(t):V(x(t),n)},Q=function(t){var n=L.call(this,t=b(t,!0));return!(this===U&&i(N,t)&&!i(D,t))&&(!(n||!i(this,t)||!i(N,t)||i(this,A)&&this[A][t])||n)},Z=function(t,n){if(t=_(t),n=b(n,!0),t!==U||!i(N,n)||i(D,n)){var e=E(t,n);return!e||!i(N,n)||i(t,A)&&t[A][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=j(_(t)),r=[],o=0;e.length>o;)i(N,n=e[o++])||n==A||n==s||r.push(n);return r},tt=function(t){for(var n,e=t===U,r=j(e?D:_(t)),o=[],u=0;r.length>u;)!i(N,n=r[u++])||e&&!i(U,n)||o.push(N[n]);return o};J||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===U&&n.call(D,e),i(this,A)&&i(this[A],t)&&(this[A][t]=!1),K(this,t,w(1,e))};return o&&B&&K(U,t,{configurable:!0,set:n}),G(t)},a(M[R],"toString",function(){return this._k}),P.f=Z,S.f=Y,e(87).f=O.f=$,e(27).f=Q,e(44).f=tt,o&&!e(26)&&a(U,"propertyIsEnumerable",Q,!0),v.f=function(t){return G(d(t))}),u(u.G+u.W+u.F*!J,{Symbol:M});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var nt=I(d.store),et=0;nt.length>et;)p(nt[et++]);u(u.S+u.F*!J,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=M(t)},keyFor:function(t){if(H(t))return y(W,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),u(u.S+u.F*!J,"Object",{create:X,defineProperty:Y,defineProperties:V,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),F&&u(u.S+u.F*(!J||c(function(){var t=M();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return n=r[1],"function"==typeof n&&(e=n),!e&&k(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!H(n))return n}),r[1]=n,C.apply(F,r)}}}),M[R][z]||e(10)(M[R],z,M[R].valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(50)("asyncIterator")},function(t,n,e){e(50)("observable")},function(t,n,e){t.exports=function(){return new Worker(e.p+"worker-slave.parallel.js")}},,function(t,n,e){var r=e(99).default;t.exports=r}]))}); | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["parallel-es"]=n():t["parallel-es"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,n,e){Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=171)}(function(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))switch(typeof t[n]){case"function":break;case"object":t[n]=function(n){var e=n.slice(1),r=t[n[0]];return function(t,n,i){r.apply(this,[t,n,i].concat(e))}}(t[n]);break;default:t[n]=t[t[n]]}return t}([function(t,n){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(72),o=r(i);n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(47)("wks"),i=e(31),o=e(3).Symbol,u="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))};a.store=r},function(t,n,e){t.exports=!e(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(7),i=e(41),o=e(30),u=Object.defineProperty;n.f=e(5)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(3),i=e(2),o=e(14),u=e(10),a="prototype",s=function(t,n,e){var c,f,l,h=t&s.F,d=t&s.G,v=t&s.S,p=t&s.P,y=t&s.B,m=t&s.W,k=d?i:i[n]||(i[n]={}),g=k[a],b=d?r:v?r[n]:(r[n]||{})[a];d&&(e=n);for(c in e)f=!h&&b&&void 0!==b[c],f&&c in k||(l=f?b[c]:e[c],k[c]=d&&"function"!=typeof b[c]?e[c]:y&&f?o(l,r):m&&b[c]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[a]=t[a],n}(l):p&&"function"==typeof l?o(Function.call,l):l,p&&((k.virtual||(k.virtual={}))[c]=l,t&s.R&&g&&!g[c]&&u(g,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n,e){i()(this,t),this.func=n,this.params=e}return u()(t,null,[{key:"create",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}},{key:"createUnchecked",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}}]),t}()},function(t,n,e){var r=e(6),i=e(18);t.exports=e(5)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(81),i=e(39);t.exports=function(t){return r(i(t))}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(24);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";function r(t,n){return{_______isFunctionId:!0,identifier:t+"-"+n}}function i(t){return!!t&&t._______isFunctionId===!0}n.a=r,n.b=i},function(t,n,e){t.exports={default:e(124),__esModule:!0}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){"use strict";var r=e(16);e.d(n,"a",function(){return i});var i={FILTER:e.i(r.a)("parallel",0),IDENTITY:e.i(r.a)("parallel",1),MAP:e.i(r.a)("parallel",2),PARALLEL_JOB_EXECUTOR:e.i(r.a)("parallel",3),RANGE:e.i(r.a)("parallel",4),REDUCE:e.i(r.a)("parallel",5),TIMES:e.i(r.a)("parallel",6),TO_ITERATOR:e.i(r.a)("parallel",7)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports={}},function(t,n,e){var r=e(89),i=e(40);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(38),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(111),h=e(110);e.d(n,"a",function(){return d});var d=function(){function t(n){var e=this;s()(this,t),this.nextHandlers=[];var r=function(t,n,r){return e._next(t,n,r)},i=function(t){return e.reject(t)},o=function(t){return e.resolve(t)};n(r,o,i),this.promise=new u.a(function(t,n){e.resolve=t,e.reject=n})}return f()(t,[{key:"subscribe",value:function(t,n,e){return this.nextHandlers.push(t),(n||e)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"_next",value:function(t,n,e){var r=!0,o=!1,u=void 0;try{for(var a,s=i()(this.nextHandlers);!(r=(a=s.next()).done);r=!0){var c=a.value;c.apply(void 0,arguments)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}}}],[{key:"transform",value:function(n,e){var r=void 0,i=void 0,o=void 0,u=new t(function(t,n,e){r=t,i=n,o=e});return n.subscribe(r,o,function(t){return i(e(t))}),u}},{key:"fromTasks",value:function(t,n,e){return 0===t.length?new h.a(n):new l.a(t,n,e)}}]),t}()},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(11),i=e(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n){t.exports=!0},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(6).f,i=e(15),o=e(4)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){var r=e(39);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(11);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){"use strict";var r=e(154)(!0);e(84)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(63),i=(e.n(r),e(56)),o=(e.n(i),e(59)),u=(e.n(o),e(60)),a=(e.n(u),e(62)),s=(e.n(a),e(64)),c=(e.n(s),e(61)),f=(e.n(c),e(65));e.n(f);e.o(r,"IParallel")&&e.d(n,"a",function(){return r.IParallel}),e.o(i,"IParallelChain")&&e.d(n,"b",function(){return i.IParallelChain}),e.o(o,"IParallelTaskEnvironment")&&e.d(n,"c",function(){return o.IParallelTaskEnvironment}),e.o(o,"IParallelEnvironment")&&e.d(n,"d",function(){return o.IParallelEnvironment}),e.o(u,"IParallelJob")&&e.d(n,"e",function(){return u.IParallelJob}),e.o(a,"IParallelOptions")&&e.d(n,"f",function(){return a.IParallelOptions}),e.o(a,"IDefaultInitializedParallelOptions")&&e.d(n,"g",function(){return a.IDefaultInitializedParallelOptions}),e.o(s,"IParallelJobScheduler")&&e.d(n,"h",function(){return s.IParallelJobScheduler}),e.o(c,"IParallelOperation")&&e.d(n,"i",function(){return c.IParallelOperation}),e.o(c,"ISerializedParallelOperation")&&e.d(n,"j",function(){return c.ISerializedParallelOperation}),e.o(f,"IParallelStream")&&e.d(n,"k",function(){return f.IParallelStream})},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n){i()(this,t),this.functionRegistry=n}return u()(t,[{key:"serializeFunctionCall",value:function(t){var n=this.functionRegistry.getOrSetId(t.func);return{______serializedFunctionCall:!0,functionId:n,parameters:t.params}}}]),t}()},function(t,n,e){"use strict";function r(t){return!!t&&t.______serializedFunctionCall===!0}n.a=r},function(t,n,e){"use strict";function r(t){if(0===t.length)return[];var n=u()(t),e=n[0],r=n.slice(1);return Array.prototype.concat.apply(e,r)}function i(t,n){var e=t.length;t.length+=n.length;for(var r=0;r<n.length;++r)t[e+r]=n[r];return t}var o=e(75),u=e.n(o),a=e(17);e.n(a);n.b=r,n.a=i},function(t,n,e){t.exports={default:e(130),__esModule:!0}},function(t,n,e){t.exports={default:e(132),__esModule:!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){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){t.exports=!e(5)&&!e(13)(function(){return 7!=Object.defineProperty(e(25)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(7),i=e(149),o=e(40),u=e(46)("IE_PROTO"),a=function(){},s="prototype",c=function(){var t,n=e(25)("iframe"),r=o.length,i="<",u=">";for(n.style.display="none",e(80).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),c=t.F;r--;)delete c[s][o[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[s]=r(t),e=new a,a[s]=null,e[u]=t):e=c(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(27),i=e(18),o=e(12),u=e(30),a=e(15),s=e(41),c=Object.getOwnPropertyDescriptor;n.f=e(5)?c:function(t,n){if(t=o(t),n=u(n,!0),s)try{return c(t,n)}catch(t){}if(a(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(8),i=e(2),o=e(13);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){var r=e(47)("keys"),i=e(31);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n,e){var r=e(3),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(48),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){var r=e(3),i=e(2),o=e(26),u=e(51),a=e(6).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(4)},function(t,n,e){var r=e(79),i=e(4)("iterator"),o=e(21);t.exports=e(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){e(158);for(var r=e(3),i=e(10),o=e(21),u=e(4)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=a[s],f=r[c],l=f&&f.prototype;l&&!l[u]&&i(l,u,c),o[c]=o.Array}},function(t,n,e){"use strict";var r=e(33),i=e(66),o=(e.n(i),e(67)),u=(e.n(o),e(55)),a=(e.n(u),e(16)),s=e(9),c=e(35),f=e(34),l=e(68),h=(e.n(l),e(33));e.d(n,"a",function(){return r.a}),e.o(i,"ITaskDefinition")&&e.d(n,"b",function(){return i.ITaskDefinition}),e.o(o,"ITask")&&e.d(n,"c",function(){return o.ITask}),e.o(u,"IFunctionDefinition")&&e.d(n,"d",function(){return u.IFunctionDefinition}),e.d(n,"e",function(){return a.IFunctionId}),e.d(n,"f",function(){return a.b}),e.d(n,"g",function(){return s.a}),e.d(n,"h",function(){return c.ISerializedFunctionCall}),e.d(n,"i",function(){return c.a}),e.d(n,"j",function(){return f.a}),e.o(l,"IThreadPool")&&e.d(n,"k",function(){return l.IThreadPool}),e.d(n,"l",function(){return h.b}),e.d(n,"m",function(){return h.c}),e.d(n,"n",function(){return h.d}),e.d(n,"o",function(){return h.e}),e.d(n,"p",function(){return h.f}),e.d(n,"q",function(){return h.g}),e.d(n,"r",function(){return h.h}),e.d(n,"s",function(){return h.i}),e.d(n,"t",function(){return h.j}),e.d(n,"u",function(){return h.k})},function(t,n){},function(t,n){},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(102);e.d(n,"a",function(){return s});var s=function(){function t(n,e,r){i()(this,t),this.options=e,this.environment=r,this.stream=n}return u()(t,[{key:"resolve",value:function(){return this}},{key:"chainOperation",value:function(t){return new a.a(this.stream,this.options,this.environment,[t])}},{key:"addEnvironment",value:function(t){return new a.a(this.stream,this.options,this.environment.add(t))}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(19),s=e(9);e.d(n,"a",function(){return c});var c=function(){function t(n){i()(this,t),this.collection=n}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*t,i=r+n;return e.serializeFunctionCall(s.a.createUnchecked(a.a.TO_ITERATOR,this.collection.slice(r,i)))}},{key:"length",get:function(){return this.collection.length}}]),t}()},56,56,function(t,n){},56,56,56,56,55,55,56,function(t,n,e){"use strict";function r(t){return{type:d.InitializeWorker,workerId:t}}function i(t){return{task:t,type:d.ScheduleTask}}function o(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return{functions:t,missingFunctions:e,type:d.FunctionResponse}}function u(){return{type:d.Stop}}function a(t){return t.type===d.FunctionRequest}function s(t){return t.type===d.WorkerResult}function c(t){return t.type===d.FunctionExecutionError}var f=e(115),l=(e.n(f),e(118)),h=(e.n(l),e(17));e.n(h);n.e=r,n.f=i,n.d=o,n.g=u,n.a=a,n.b=s,n.c=c;var d;!function(t){t[t.InitializeWorker=0]="InitializeWorker",t[t.ScheduleTask=1]="ScheduleTask",t[t.FunctionRequest=2]="FunctionRequest",t[t.FunctionResponse=3]="FunctionResponse",t[t.WorkerResult=4]="WorkerResult",t[t.FunctionExecutionError=5]="FunctionExecutionError",t[t.Stop=6]="Stop"}(d||(d={}))},function(t,n,e){t.exports={default:e(123),__esModule:!0}},function(t,n,e){t.exports={default:e(126),__esModule:!0}},function(t,n,e){t.exports={default:e(78),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(119),o=r(i),u=e(116),a=r(u),s=e(77),c=r(s);n.default=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof n?"undefined":(0,c.default)(n)));t.prototype=(0,a.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(o.default?(0,o.default)(t,n):t.__proto__=n)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(77),o=r(i);n.default=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==("undefined"==typeof n?"undefined":(0,o.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(70),o=r(i);n.default=function(t){return Array.isArray(t)?t:(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(70),o=r(i);n.default=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(121),o=r(i),u=e(120),a=r(u),s="function"==typeof a.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};n.default="function"==typeof a.default&&"symbol"===s(o.default)?function(t){return"undefined"==typeof t?"undefined":s(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"==typeof t?"undefined":s(t)}},function(t,n,e){e(92);var r=e(2).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){var r=e(20),i=e(4)("toStringTag"),o="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),i))?e:o?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){t.exports=e(3).document&&document.documentElement},function(t,n,e){var r=e(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(21),i=e(4)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){var r=e(7);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){"use strict";var r=e(26),i=e(8),o=e(90),u=e(10),a=e(15),s=e(21),c=e(143),f=e(28),l=e(88),h=e(4)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",p="keys",y="values",m=function(){return this};t.exports=function(t,n,e,k,g,b,_){c(e,n,k);var w,x,O,P=function(t){if(!d&&t in T)return T[t];switch(t){case p:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",I=g==y,E=!1,T=t.prototype,j=T[h]||T[v]||g&&T[g],M=j||P(g),F=g?I?P("entries"):M:void 0,C="Array"==n?T.entries||j:j;if(C&&(O=l(C.call(new t)),O!==Object.prototype&&(f(O,S,!0),r||a(O,h)||u(O,h,m))),I&&j&&j.name!==y&&(E=!0,M=function(){return j.call(this)}),r&&!_||!d&&!E&&T[h]||u(T,h,M),s[n]=M,s[S]=m,g)if(w={values:I?M:P(y),keys:b?M:P(p),entries:F},_)for(x in w)x in T||o(T,x,w[x]);else i(i.P+i.F*(d||E),n,w);return w}},function(t,n,e){var r=e(4)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n,e){var r=e(12),i=e(87).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,n,e){var r=e(89),i=e(40).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(15),i=e(29),o=e(46)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(15),i=e(12),o=e(137)(!1),u=e(46)("IE_PROTO");t.exports=function(t,n){var e,a=i(t),s=0,c=[];for(e in a)e!=u&&r(a,e)&&c.push(e);for(;n.length>s;)r(a,e=n[s++])&&(~o(c,e)||c.push(e));return c}},function(t,n,e){t.exports=e(10)},function(t,n,e){var r,i,o,u=e(14),a=e(141),s=e(80),c=e(25),f=e(3),l=f.process,h=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,p=0,y={},m="onreadystatechange",k=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},g=function(t){k.call(t.data)};h&&d||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return y[++p]=function(){a("function"==typeof t?t:Function(t),n)},r(p),p},d=function(t){delete y[t]},"process"==e(20)(l)?r=function(t){l.nextTick(u(k,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=g,r=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",g,!1)):r=m in c("script")?function(t){s.appendChild(c("script"))[m]=function(){s.removeChild(this),k.call(t)}}:function(t){setTimeout(u(k,t,1),0)}),t.exports={set:h,clear:d}},function(t,n,e){var r=e(8);r(r.S+r.F*!e(5),"Object",{defineProperty:e(6).f})},61,function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(101);e.d(n,"a",function(){return c});var s=e(169),c=function(){function t(n){i()(this,t),this.functionLookupTable=n}return u()(t,[{key:"spawn",value:function(){if(!window.Worker)throw new Error("Missing Web Worker support");var t=new s,n=new a.a(t,this.functionLookupTable);return n.initialize(),n}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(114),s=e(16),c=e(113);e.d(n,"a",function(){return f});var f=function(){function t(){i()(this,t),this.ids=new a.a,this.definitions=new a.a,this.lastId=0}return u()(t,[{key:"getOrSetId",value:function(t){if(e.i(s.b)(t))return t;var n=t.toString(),r=this.ids.get(n);return"undefined"==typeof r&&(r=e.i(s.a)("dynamic",++this.lastId),this.initDefinition(t,r)),r}},{key:"getDefinition",value:function(t){return this.definitions.get(t.identifier)}},{key:"initDefinition",value:function(t,n){var r=t.toString(),i=e.i(c.a)(t),o=r.substring(r.indexOf("(")+1,r.indexOf(")")).split(","),u=r.substring(r.indexOf("{")+1,r.lastIndexOf("}")).trim(),a={argumentNames:o.map(function(t){return t.trim()}),body:u,id:n,name:i?i:void 0};this.ids.set(r,n),this.definitions.set(n.identifier,a)}}]),t}()},function(t,n,e){"use strict";function r(t){function n(n){if(n){if(n.hasOwnProperty("threadPool")&&"undefined"==typeof n.threadPool)throw new Error("The thread pool is mandatory and cannot be unset");if(n.hasOwnProperty("functionCallSerializer")&&"undefined"==typeof n.functionCallSerializer)throw new Error("The function call serializer is mandatory and cannot be unset");if(n.hasOwnProperty("maxConcurrencyLevel")&&"number"!=typeof n.maxConcurrencyLevel)throw new Error("The maxConcurrencyLevel is mandatory and has to be a number")}return o()({},t,n)}return{defaultOptions:function(e){return e?void(t=n(e)):o()({},t)},from:function(t,r){return e.i(c.a)(new u.a(t),n(r))},range:function(t,r,i,o){var u=a.a.create(t,r,i);return e.i(c.a)(u,n(o))},times:function(t,r,i,o){return i?e.i(c.a)(s.a.create(t,r),n(o),i):e.i(c.a)(s.a.create(t,r),n(o))},run:function(n){for(var r=void 0,i=arguments.length,o=Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];r=e.i(f.b)(n)?l.a.create(n,o):l.a.create(n,o);var a=t.functionCallSerializer.serializeFunctionCall(r),s={main:a,usedFunctionIds:[a.functionId]};return t.threadPool.run(s)}}}var i=e(71),o=e.n(i),u=e(58),a=e(106),s=e(107),c=e(103),f=e(16),l=e(9);e.d(n,"a",function(){return r})},function(t,n,e){"use strict";var r=e(37),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(74),f=e.n(c),l=e(73),h=e.n(l),d=e(109);e.d(n,"a",function(){return v});var v=function(t){function n(){return u()(this,n),f()(this,(n.__proto__||i()(n)).apply(this,arguments))}return h()(n,t),s()(n,[{key:"getScheduling",value:function(t,n){var e=n.oversubscribe===!1?n.maxConcurrencyLevel:4*n.maxConcurrencyLevel,r=t/e;return n.minValuesPerTask&&(r=Math.min(Math.max(r,n.minValuesPerTask),t)),n.maxValuesPerTask&&(r=Math.min(r,n.maxValuesPerTask)),{numberOfTasks:0===r?0:Math.round(t/r),valuesPerTask:Math.ceil(r)}}}]),n}(d.a)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(112);e.d(n,"a",function(){return s});var s=function(){function t(n,e){i()(this,t),this.workerThreadFactory=n,this.workers=[],this.idleWorkers=[],this.queue=[],this.concurrencyLimit=e.maxConcurrencyLevel}return u()(t,[{key:"run",value:function(t){var n=new a.a(t);return this.queue.unshift(n),this.schedulePendingTasks(),n}},{key:"schedulePendingTasks",value:function(){for(;this.queue.length;){var t=void 0;if(0===this.idleWorkers.length&&this.workers.length<this.concurrencyLimit?(t=this.workerThreadFactory.spawn(),this.workers.push(t)):this.idleWorkers.length>0&&(t=this.idleWorkers.pop()),!t)return;var n=this.queue.pop();this.runTaskOnWorker(n,t)}}},{key:"runTaskOnWorker",value:function(t,n){var e=this;t.isCancellationRequested?(t.resolveCancelled(),this.releaseWorker(n)):n.run(t.definition,function(r,i){r?t.reject(r):t.resolve(i),e.releaseWorker(n)})}},{key:"releaseWorker",value:function(t){this.idleWorkers.push(t),this.schedulePendingTasks()}}]),t}()},function(t,n,e){"use strict";var r=e(96),i=e(98),o=e(97),u=e(95),a=e(34),s=e(94),c=e(54);e.d(n,"IParallel",function(){return c.a}),e.d(n,"ITaskDefinition",function(){return c.b}),e.d(n,"ITask",function(){return c.c}),e.d(n,"IFunctionDefinition",function(){return c.d}),e.d(n,"IFunctionId",function(){return c.e}),e.d(n,"isFunctionId",function(){return c.f}),e.d(n,"FunctionCall",function(){return c.g}),e.d(n,"ISerializedFunctionCall",function(){return c.h}),e.d(n,"isSerializedFunctionCall",function(){return c.i}),e.d(n,"FunctionCallSerializer",function(){return c.j}),e.d(n,"IThreadPool",function(){return c.k}),e.d(n,"IParallelChain",function(){return c.l}),e.d(n,"IParallelTaskEnvironment",function(){return c.m}),e.d(n,"IParallelEnvironment",function(){return c.n}),e.d(n,"IParallelJob",function(){return c.o}),e.d(n,"IParallelOptions",function(){return c.p}),e.d(n,"IDefaultInitializedParallelOptions",function(){return c.q}),e.d(n,"IParallelJobScheduler",function(){return c.r}),e.d(n,"IParallelOperation",function(){return c.s}),e.d(n,"ISerializedParallelOperation",function(){return c.t}),e.d(n,"IParallelStream",function(){return c.u});var f=new u.a,l=window.navigator.hardwareConcurrency||4,h=new a.a(f),d=new i.a(new s.a(f),{maxConcurrencyLevel:l}),v=e.i(r.a)({functionCallSerializer:h,maxConcurrencyLevel:l,oversubscribe:!0,scheduler:new o.a,threadPool:d});n.default=v},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(37),u=e.n(o),a=e(74),s=e.n(a),c=e(122),f=e.n(c),l=e(73),h=e.n(l),d=e(0),v=e.n(d),p=e(1),y=e.n(p),m=e(69);e.d(n,"a",function(){return k}),e.d(n,"b",function(){return g});var k=function(){function t(n){v()(this,t),this.name=n}return y()(t,[{key:"onMessage",value:function(t){throw new Error("Browser worker thread in state '"+this.name+"' cannot handle the received message ("+t.data.type+").")}},{key:"onError",value:function(t){console.error("Processing error on worker slave",t.error)}}]),t}(),g=function(t){function n(t,e,r){v()(this,n);var i=s()(this,(n.__proto__||u()(n)).call(this,"executing"));return i.callback=t,i.functionRegistry=e,i.worker=r,i}return h()(n,t),y()(n,[{key:"onMessage",value:function(t){var r=t.data;e.i(m.a)(r)?this.handleFunctionRequest(r):e.i(m.b)(r)?this.callback(void 0,r.result):e.i(m.c)(r)?this.callback(r.error,void 0):f()(n.prototype.__proto__||u()(n.prototype),"onMessage",this).call(this,t)}},{key:"onError",value:function(t){this.callback(t.error,void 0)}},{key:"handleFunctionRequest",value:function(t){var n=[],e=[],r=!0,o=!1,u=void 0;try{for(var a,s=i()(t.functionIds);!(r=(a=s.next()).done);r=!0){var c=a.value,f=this.functionRegistry.getDefinition(c);f?e.push(f):n.push(c)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}this.worker.postMessage(m.d.apply(void 0,[e].concat(n)))}}]),n}(k)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(69),s=e(100);e.d(n,"a",function(){return f});var c=0,f=function(){function t(n,e){i()(this,t),this.worker=n,this.functionLookupTable=e,this.id=++c,this.state=new s.a("default"),this.stopped=!1;var r=this;this.worker.addEventListener("message",function(){r.onWorkerMessage.apply(r,arguments)}),this.worker.addEventListener("error",function(){r.onError.apply(r,arguments)})}return u()(t,[{key:"initialize",value:function(){if("default"!==this.state.name)throw new Error("The browser worker thread can only be initialized if in state default but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.e)(this.id)),this.state=new s.a("idle")}},{key:"run",value:function(t,n){var r=this;if("idle"!==this.state.name)throw new Error("The browser worker thread can only execute a new task if in state idle but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.f)(t));var i=function(t,e){r.stopped?r.state=new s.a("stopped"):r.state=new s.a("idle"),n(t,e)};this.state=new s.b(i,this.functionLookupTable,this.worker)}},{key:"stop",value:function(){this.stopped||(this.sendMessage(e.i(a.g)()),this.stopped=!0,"executing"!==this.state.name&&(this.state=new s.a("stopped")))}},{key:"toString",value:function(){return"BrowserWorkerThread { id: "+this.id+", state: "+this.state.name}},{key:"onWorkerMessage",value:function(t){this.state.onMessage(t)}},{key:"onError",value:function(t){this.state.onError(t),this.state=new s.a("errored")}},{key:"sendMessage",value:function(t){this.worker.postMessage(t)}}]),t}()},function(t,n,e){"use strict";var r=e(76),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(57),f=e(58),l=e(36),h=e(23);e.d(n,"a",function(){return d});var d=function(){function t(n,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];u()(this,t),this.previousStream=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function t(){var n=this,e=void 0,t=void 0,r=void 0,i=new h.a(function(n,i,o){e=n,t=i,r=o});return this.previousStream.then(function(i){var o=n.options.scheduler.schedule({environment:n.environment,generator:new f.a(i),operations:n.operations,options:n.options}),u=h.a.fromTasks(o,[],l.a);u.subscribe(e,r,t)},r),new c.a(i,this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.previousStream,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.previousStream,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";function r(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=void 0;e instanceof Array?(a=void 0,r=e):a=e;var s=new o.a(new i.a(t,n,u.a.of(),r));return a?s.inEnvironment(a):s}var i=e(105),o=e(104),u=e(108);n.a=r},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(75),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(19),h=e(9),d=e(23);e.d(n,"a",function(){return v});var v=function(){function t(n){s()(this,t),this.state=n}return f()(t,[{key:"inEnvironment",value:function(n){var e=void 0;if("function"==typeof n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e=h.a.createUnchecked.apply(h.a,[n].concat(i))}else e=n;return new t(this.state.addEnvironment(e))}},{key:"map",value:function(t){return this._chain(h.a.createUnchecked(l.a.MAP),h.a.createUnchecked(t))}},{key:"reduce",value:function(t,n,e){var r=e||n,o=this._chain(h.a.createUnchecked(l.a.REDUCE,t),h.a.createUnchecked(n)).resolveChain();return d.a.transform(o,function(n){if(0===n.length)return t;var e=u()(n),o=e[0],a=e.slice(1),s=o,c=!0,f=!1,l=void 0;try{for(var h,d=i()(a);!(c=(h=d.next()).done);c=!0){var v=h.value;s=r(s,v)}}catch(t){f=!0,l=t}finally{try{!c&&d.return&&d.return()}finally{if(f)throw l}}return s})}},{key:"filter",value:function(t){return this._chain(h.a.createUnchecked(l.a.FILTER),h.a.createUnchecked(t))}},{key:"subscribe",value:function(t,n,e){return this.resolveChain().subscribe(t,n,e)}},{key:"then",value:function(t,n){return this.resolveChain().then(t,n)}},{key:"catch",value:function(t){return this.resolveChain().catch(t)}},{key:"resolveChain",value:function(){var t=this.state=this.state.resolve();return t.stream}},{key:"_chain",value:function(n,e){var r={iterator:n,iteratee:e};return new t(this.state.chainOperation(r)); | ||
}}]),t}()},function(t,n,e){"use strict";var r=e(76),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(57),f=e(23),l=e(36);e.d(n,"a",function(){return h});var h=function(){function t(n,e,r,i){u()(this,t),this.generator=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function(){var t=this.options.scheduler.schedule({environment:this.environment,generator:this.generator,operations:this.operations,options:this.options});return new c.a(f.a.fromTasks(t,[],l.a),this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.generator,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.generator,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(19),s=e(9);e.d(n,"a",function(){return c});var c=function(){function t(n,e,r){i()(this,t),this.start=n,this.end=e,this.step=r}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*this.step,i=this.start+t*r,o=Math.min(i+r,this.end);return e.serializeFunctionCall(s.a.createUnchecked(a.a.RANGE,i,o,this.step))}},{key:"length",get:function(){return Math.ceil((this.end-this.start)/this.step)}}],[{key:"create",value:function(n,e,r){if("undefined"==typeof e&&(e=n,n=0),"undefined"==typeof r&&(r=e<n?-1:1),0===r)throw new Error("Step size of zero is not allowed");return new t(n,e,r)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(19),s=e(9),c=e(16);e.d(n,"a",function(){return f});var f=function(){function t(n,e){i()(this,t),this.times=n,this.iteratee=e}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=t*n,i=Math.min(r+n,this.times),o=e.serializeFunctionCall(this.iteratee);return e.serializeFunctionCall(s.a.create(a.a.TIMES,r,i,o))}},{key:"length",get:function(){return this.times}}],[{key:"create",value:function(n,r){var i=void 0;return i=e.i(c.b)(r)||"function"==typeof r?s.a.createUnchecked(r):s.a.create(a.a.IDENTITY,r),new t(n,i)}}]),t}()},function(t,n,e){"use strict";var r=e(71),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(9);e.d(n,"a",function(){return f});var f=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u()(this,t),this.environments=n}return s()(t,[{key:"add",value:function(n){var e=this.environments.slice();return n instanceof c.a||!(this.environments.length>0)||this.environments[this.environments.length-1]instanceof c.a?e.push(n):e[e.length-1]=i()({},e[e.length-1],n),new t(e)}},{key:"toJSON",value:function(t){return this.environments.map(function(n){return n instanceof c.a?t.serializeFunctionCall(n):n})}}],[{key:"of",value:function(n){var e=t.EMPTY;return n?e.add(n):e}}]),t}();f.EMPTY=new f},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(9),s=e(19),c=e(36),f=e(35);e.d(n,"a",function(){return l});var l=function(){function t(){i()(this,t)}return u()(t,[{key:"schedule",value:function(t){var n=this.getTaskDefinitions(t);return n.map(function(n){return t.options.threadPool.run(n)})}},{key:"getTaskDefinitions",value:function(t){var n=this.getScheduling(t.generator.length,t.options),r=t.options.functionCallSerializer,i=t.environment.toJSON(r),o=this.serializeOperations(t.operations,r),u=[s.a.PARALLEL_JOB_EXECUTOR].concat(e.i(c.b)(o.map(function(t){return[t.iteratee.functionId,t.iterator.functionId]})));i.forEach(function(t){e.i(f.a)(t)&&u.push(t.functionId)});for(var l=[],h=0;h<n.numberOfTasks;++h){var d=t.generator.serializeSlice(h,n.valuesPerTask,r),v={environments:i,generator:d,operations:o,taskIndex:h,valuesPerTask:n.valuesPerTask},p={main:r.serializeFunctionCall(a.a.createUnchecked(s.a.PARALLEL_JOB_EXECUTOR,v)),taskIndex:h,usedFunctionIds:[d.functionId].concat(u),valuesPerTask:n.valuesPerTask};l.push(p)}return l}},{key:"serializeOperations",value:function(t,n){return t.map(function(t){return{iteratee:n.serializeFunctionCall(t.iteratee),iterator:n.serializeFunctionCall(t.iterator)}})}}]),t}()},function(t,n,e){"use strict";var r=e(38),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){u()(this,t),this.promise=i.a.resolve(n)}return s()(t,[{key:"subscribe",value:function(t,n,e){return(e||n)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}}]),t}()},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(23);e.d(n,"a",function(){return f});var f=function(){function t(n,e,r){var o=this;u()(this,t),this.failed=!1,this.nextSubResultIndex=0,this.tasks=n,this.joiner=r,this.endResult=e,this.pending=n.length,this.subResults=new Array(this.tasks.length),this.innerStream=new c.a(function(t,n,e){o.next=t,o.resolve=n,o.reject=e});var a=!0,s=!1,f=void 0;try{for(var l,h=i()(n);!(a=(l=h.next()).done);a=!0){var d=l.value;this.registerTaskHandler(d)}}catch(t){s=!0,f=t}finally{try{!a&&h.return&&h.return()}finally{if(s)throw f}}}return s()(t,[{key:"subscribe",value:function(t,n,e){return this.innerStream.subscribe(t,n,e),this}},{key:"then",value:function(t,n){return this.innerStream.then(t,n)}},{key:"catch",value:function(t){return this.innerStream.catch(t)}},{key:"registerTaskHandler",value:function(t){var n=this;t.then(function(e){return n._taskCompleted(e,t.definition)},function(t){return n._taskFailed(t)})}},{key:"_taskCompleted",value:function(t,n){if(0===this.pending)throw new Error("Stream already resolved but taskCompleted called one more time");--this.pending,this.tasks[n.taskIndex]=void 0,this.subResults[n.taskIndex]=t,this.failed||(this.next(t,n.taskIndex,n.valuesPerTask),this.nextSubResultIndex===n.taskIndex&&this.joinSubResults(),0===this.pending&&(this.resolve(this.endResult),this.endResult=void 0))}},{key:"joinSubResults",value:function(){for(;this.nextSubResultIndex<this.subResults.length&&"undefined"!=typeof this.subResults[this.nextSubResultIndex];){var t=this.subResults[this.nextSubResultIndex];this.subResults[this.nextSubResultIndex]=void 0,this.endResult=this.joiner.apply(void 0,[this.endResult,t]),++this.nextSubResultIndex}}},{key:"_taskFailed",value:function(t){if(this.failed!==!0){this.failed=!0;for(var n=0;n<this.tasks.length;++n){var e=this.tasks[n];"undefined"!=typeof e&&e.cancel()}this.reject(t)}}}]),t}()},function(t,n,e){"use strict";var r=e(38),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){var e=this;u()(this,t),this.definition=n,this.isCancellationRequested=!1,this.isCanceled=!1,this.promise=new i.a(function(t,n){e.resolvePromise=t,e.rejectPromise=n})}return s()(t,[{key:"resolve",value:function(t){this.isCancellationRequested?this.resolveCancelled():this.resolvePromise(t)}},{key:"resolveCancelled",value:function(){this.isCanceled=!0,this.reject("Task has been canceled")}},{key:"reject",value:function(t){this.rejectPromise(t)}},{key:"then",value:function(t,n){return n?this.promise.then(t,n):this.promise.then(t)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"cancel",value:function(){this.isCancellationRequested=!0}}]),t}()},function(t,n,e){"use strict";function r(t){if(t.hasOwnProperty("name"))return t.name;var n=t.toString();return n.substring(n.indexOf("function")+9,n.indexOf("(")).trim()}n.a=r},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(){i()(this,t),this.data={}}return u()(t,[{key:"get",value:function(t){var n=this.toInternalKey(t);return this.has(t)?this.data[n]:void 0}},{key:"has",value:function(t){return this.hasOwnProperty.call(this.data,this.toInternalKey(t))}},{key:"set",value:function(t,n){this.data[this.toInternalKey(t)]=n}},{key:"clear",value:function(){this.data={}}},{key:"toInternalKey",value:function(t){return"@"+t}}]),t}()},function(t,n,e){t.exports={default:e(125),__esModule:!0}},function(t,n,e){t.exports={default:e(127),__esModule:!0}},function(t,n,e){t.exports={default:e(128),__esModule:!0}},function(t,n,e){t.exports={default:e(129),__esModule:!0}},function(t,n,e){t.exports={default:e(131),__esModule:!0}},function(t,n,e){t.exports={default:e(133),__esModule:!0}},function(t,n,e){t.exports={default:e(134),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(37),o=r(i),u=e(117),a=r(u);n.default=function t(n,e,r){null===n&&(n=Function.prototype);var i=(0,a.default)(n,e);if(void 0===i){var u=(0,o.default)(n);return null===u?void 0:t(u,e,r)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(r)}},function(t,n,e){e(32),e(157),t.exports=e(2).Array.from},function(t,n,e){e(53),e(32),t.exports=e(156)},function(t,n,e){var r=e(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,n,e){e(159),t.exports=e(2).Object.assign},function(t,n,e){e(160);var r=e(2).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(161);var r=e(2).Object;t.exports=function(t,n){return r.getOwnPropertyDescriptor(t,n)}},function(t,n,e){e(162);var r=e(2).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(163),t.exports=e(2).Object.getPrototypeOf},function(t,n,e){e(164),t.exports=e(2).Object.setPrototypeOf},function(t,n,e){e(93),e(32),e(53),e(165),t.exports=e(2).Promise},function(t,n,e){e(166),e(93),e(167),e(168),t.exports=e(2).Symbol},function(t,n,e){e(32),e(53),t.exports=e(51).f("iterator")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(12),i=e(49),o=e(155);t.exports=function(t){return function(n,e,u){var a,s=r(n),c=i(s.length),f=o(u,c);if(t&&e!=e){for(;c>f;)if(a=s[f++],a!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){"use strict";var r=e(6),i=e(18);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(22),i=e(44),o=e(27);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),s=o.f,c=0;a.length>c;)s.call(t,u=a[c++])&&n.push(u);return n}},function(t,n,e){var r=e(14),i=e(83),o=e(82),u=e(7),a=e(49),s=e(52),c={},f={},n=t.exports=function(t,n,e,l,h){var d,v,p,y,m=h?function(){return t}:s(t),k=r(e,l,n?2:1),g=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=a(t.length);d>g;g++)if(y=n?k(u(v=t[g])[0],v[1]):k(t[g]),y===c||y===f)return y}else for(p=m.call(t);!(v=p.next()).done;)if(y=i(p,k,v.value,n),y===c||y===f)return y};n.BREAK=c,n.RETURN=f},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(20);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){"use strict";var r=e(42),i=e(18),o=e(28),u={};e(10)(u,e(4)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(22),i=e(12);t.exports=function(t,n){for(var e,o=i(t),u=r(o),a=u.length,s=0;a>s;)if(o[e=u[s++]]===n)return e}},function(t,n,e){var r=e(31)("meta"),i=e(11),o=e(15),u=e(6).f,a=0,s=Object.isExtensible||function(){return!0},c=!e(13)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!s(t))return"F";if(!n)return"E";f(t)}return t[r].i},h=function(t,n){if(!o(t,r)){if(!s(t))return!0;if(!n)return!1;f(t)}return t[r].w},d=function(t){return c&&v.NEED&&s(t)&&!o(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:d}},function(t,n,e){var r=e(3),i=e(91).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,s="process"==e(20)(u);t.exports=function(){var t,n,e,c=function(){var r,i;for(s&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(s)e=function(){u.nextTick(c)};else if(o){var f=!0,l=document.createTextNode("");new o(c).observe(l,{characterData:!0}),e=function(){l.data=f=!f}}else if(a&&a.resolve){var h=a.resolve();e=function(){h.then(c)}}else e=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};n&&(n.next=i),t||(t=i,e()),n=i}}},function(t,n,e){"use strict";var r=e(22),i=e(44),o=e(27),u=e(29),a=e(81),s=Object.assign;t.exports=!s||e(13)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=u(t),s=arguments.length,c=1,f=i.f,l=o.f;s>c;)for(var h,d=a(arguments[c++]),v=f?r(d).concat(f(d)):r(d),p=v.length,y=0;p>y;)l.call(d,h=v[y++])&&(e[h]=d[h]);return e}:s},function(t,n,e){var r=e(6),i=e(7),o=e(22);t.exports=e(5)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),a=u.length,s=0;a>s;)r.f(t,e=u[s++],n[e]);return t}},function(t,n,e){var r=e(10);t.exports=function(t,n,e){for(var i in n)e&&t[i]?t[i]=n[i]:r(t,i,n[i]);return t}},function(t,n,e){var r=e(11),i=e(7),o=function(t,n){if(i(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(14)(Function.call,e(43).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,n,e){"use strict";var r=e(3),i=e(2),o=e(6),u=e(5),a=e(4)("species");t.exports=function(t){var n="function"==typeof i[t]?i[t]:r[t];u&&n&&!n[a]&&o.f(n,a,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(7),i=e(24),o=e(4)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[o])?n:i(e)}},function(t,n,e){var r=e(48),i=e(39);t.exports=function(t){return function(n,e){var o,u,a=String(i(n)),s=r(e),c=a.length;return s<0||s>=c?t?"":void 0:(o=a.charCodeAt(s),o<55296||o>56319||s+1===c||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):o:t?a.slice(s,s+2):(o-55296<<10)+(u-56320)+65536)}}},function(t,n,e){var r=e(48),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(7),i=e(52);t.exports=e(2).getIterator=function(t){var n=i(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return r(n.call(t))}},function(t,n,e){"use strict";var r=e(14),i=e(8),o=e(29),u=e(83),a=e(82),s=e(49),c=e(138),f=e(52);i(i.S+i.F*!e(85)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,i,l,h=o(t),d="function"==typeof this?this:Array,v=arguments.length,p=v>1?arguments[1]:void 0,y=void 0!==p,m=0,k=f(h);if(y&&(p=r(p,v>2?arguments[2]:void 0,2)),void 0==k||d==Array&&a(k))for(n=s(h.length),e=new d(n);n>m;m++)c(e,m,y?p(h[m],m):h[m]);else for(l=k.call(h),e=new d;!(i=l.next()).done;m++)c(e,m,y?u(l,p,[i.value,m],!0):i.value);return e.length=m,e}})},function(t,n,e){"use strict";var r=e(135),i=e(144),o=e(21),u=e(12);t.exports=e(84)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):"keys"==n?i(0,e):"values"==n?i(0,t[e]):i(0,[e,t[e]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(8);r(r.S+r.F,"Object",{assign:e(148)})},function(t,n,e){var r=e(8);r(r.S,"Object",{create:e(42)})},function(t,n,e){var r=e(12),i=e(43).f;e(45)("getOwnPropertyDescriptor",function(){return function(t,n){return i(r(t),n)}})},function(t,n,e){e(45)("getOwnPropertyNames",function(){return e(86).f})},function(t,n,e){var r=e(29),i=e(88);e(45)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,n,e){var r=e(8);r(r.S,"Object",{setPrototypeOf:e(151).set})},function(t,n,e){"use strict";var r,i,o,u=e(26),a=e(3),s=e(14),c=e(79),f=e(8),l=e(11),h=e(24),d=e(136),v=e(140),p=e(153),y=e(91).set,m=e(147)(),k="Promise",g=a.TypeError,b=a.process,_=a[k],b=a.process,w="process"==c(b),x=function(){},O=!!function(){try{var t=_.resolve(1),n=(t.constructor={})[e(4)("species")]=function(t){t(x,x)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then(x)instanceof n}catch(t){}}(),P=function(t,n){return t===n||t===_&&n===o},S=function(t){var n;return!(!l(t)||"function"!=typeof(n=t.then))&&n},I=function(t){return P(_,t)?new E(t):new i(t)},E=i=function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw g("Bad Promise constructor");n=t,e=r}),this.resolve=h(n),this.reject=h(e)},T=function(t){try{t()}catch(t){return{error:t}}},j=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,i=1==t._s,o=0,u=function(n){var e,o,u=i?n.ok:n.fail,a=n.resolve,s=n.reject,c=n.domain;try{u?(i||(2==t._h&&C(t),t._h=1),u===!0?e=r:(c&&c.enter(),e=u(r),c&&c.exit()),e===n.promise?s(g("Promise-chain cycle")):(o=S(e))?o.call(e,a,s):a(e)):s(r)}catch(t){s(t)}};e.length>o;)u(e[o++]);t._c=[],t._n=!1,n&&!t._h&&M(t)})}},M=function(t){y.call(a,function(){var n,e,r,i=t._v;if(F(t)&&(n=T(function(){w?b.emit("unhandledRejection",i,t):(e=a.onunhandledrejection)?e({promise:t,reason:i}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=w||F(t)?2:1),t._a=void 0,n)throw n.error})},F=function(t){if(1==t._h)return!1;for(var n,e=t._a||t._c,r=0;e.length>r;)if(n=e[r++],n.fail||!F(n.promise))return!1;return!0},C=function(t){y.call(a,function(){var n;w?b.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},R=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),j(n,!0))},A=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw g("Promise can't be resolved itself");(n=S(t))?m(function(){var r={_w:e,_d:!1};try{n.call(t,s(A,r,1),s(R,r,1))}catch(t){R.call(r,t)}}):(e._v=t,e._s=1,j(e,!1))}catch(t){R.call({_w:e,_d:!1},t)}}};O||(_=function(t){d(this,_,k,"_h"),h(t),r.call(this);try{t(s(A,this,1),s(R,this,1))}catch(t){R.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e(150)(_.prototype,{then:function(t,n){var e=I(p(this,_));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=w?b.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&j(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),E=function(){var t=new r;this.promise=t,this.resolve=s(A,t,1),this.reject=s(R,t,1)}),f(f.G+f.W+f.F*!O,{Promise:_}),e(28)(_,k),e(152)(k),o=e(2)[k],f(f.S+f.F*!O,k,{reject:function(t){var n=I(this),e=n.reject;return e(t),n.promise}}),f(f.S+f.F*(u||!O),k,{resolve:function(t){if(t instanceof _&&P(t.constructor,this))return t;var n=I(this),e=n.resolve;return e(t),n.promise}}),f(f.S+f.F*!(O&&e(85)(function(t){_.all(t).catch(x)})),k,{all:function(t){var n=this,e=I(n),r=e.resolve,i=e.reject,o=T(function(){var e=[],o=0,u=1;v(t,!1,function(t){var a=o++,s=!1;e.push(void 0),u++,n.resolve(t).then(function(t){s||(s=!0,e[a]=t,--u||r(e))},i)}),--u||r(e)});return o&&i(o.error),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,i=T(function(){v(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return i&&r(i.error),e.promise}})},function(t,n,e){"use strict";var r=e(3),i=e(15),o=e(5),u=e(8),a=e(90),s=e(146).KEY,c=e(13),f=e(47),l=e(28),h=e(31),d=e(4),v=e(51),p=e(50),y=e(145),m=e(139),k=e(142),g=e(7),b=e(12),_=e(30),w=e(18),x=e(42),O=e(86),P=e(43),S=e(6),I=e(22),E=P.f,T=S.f,j=O.f,M=r.Symbol,F=r.JSON,C=F&&F.stringify,R="prototype",A=d("_hidden"),z=d("toPrimitive"),L={}.propertyIsEnumerable,W=f("symbol-registry"),N=f("symbols"),D=f("op-symbols"),U=Object[R],J="function"==typeof M,q=r.QObject,B=!q||!q[R]||!q[R].findChild,K=o&&c(function(){return 7!=x(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=E(U,n);r&&delete U[n],T(t,n,e),r&&t!==U&&T(U,n,r)}:T,G=function(t){var n=N[t]=x(M[R]);return n._k=t,n},H=J&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},Y=function(t,n,e){return t===U&&Y(D,n,e),g(t),n=_(n,!0),g(e),i(N,n)?(e.enumerable?(i(t,A)&&t[A][n]&&(t[A][n]=!1),e=x(e,{enumerable:w(0,!1)})):(i(t,A)||T(t,A,w(1,{})),t[A][n]=!0),K(t,n,e)):T(t,n,e)},V=function(t,n){g(t);for(var e,r=m(n=b(n)),i=0,o=r.length;o>i;)Y(t,e=r[i++],n[e]);return t},X=function(t,n){return void 0===n?x(t):V(x(t),n)},Q=function(t){var n=L.call(this,t=_(t,!0));return!(this===U&&i(N,t)&&!i(D,t))&&(!(n||!i(this,t)||!i(N,t)||i(this,A)&&this[A][t])||n)},Z=function(t,n){if(t=b(t),n=_(n,!0),t!==U||!i(N,n)||i(D,n)){var e=E(t,n);return!e||!i(N,n)||i(t,A)&&t[A][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=j(b(t)),r=[],o=0;e.length>o;)i(N,n=e[o++])||n==A||n==s||r.push(n);return r},tt=function(t){for(var n,e=t===U,r=j(e?D:b(t)),o=[],u=0;r.length>u;)!i(N,n=r[u++])||e&&!i(U,n)||o.push(N[n]);return o};J||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===U&&n.call(D,e),i(this,A)&&i(this[A],t)&&(this[A][t]=!1),K(this,t,w(1,e))};return o&&B&&K(U,t,{configurable:!0,set:n}),G(t)},a(M[R],"toString",function(){return this._k}),P.f=Z,S.f=Y,e(87).f=O.f=$,e(27).f=Q,e(44).f=tt,o&&!e(26)&&a(U,"propertyIsEnumerable",Q,!0),v.f=function(t){return G(d(t))}),u(u.G+u.W+u.F*!J,{Symbol:M});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var nt=I(d.store),et=0;nt.length>et;)p(nt[et++]);u(u.S+u.F*!J,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=M(t)},keyFor:function(t){if(H(t))return y(W,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),u(u.S+u.F*!J,"Object",{create:X,defineProperty:Y,defineProperties:V,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),F&&u(u.S+u.F*(!J||c(function(){var t=M();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return n=r[1],"function"==typeof n&&(e=n),!e&&k(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!H(n))return n}),r[1]=n,C.apply(F,r)}}}),M[R][z]||e(10)(M[R],z,M[R].valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(50)("asyncIterator")},function(t,n,e){e(50)("observable")},function(t,n,e){t.exports=function(){return new Worker(e.p+"worker-slave.parallel.js")}},,function(t,n,e){var r=e(99).default;t.exports=r}]))}); | ||
//# sourceMappingURL=browser-commonjs.parallel.js.map |
@@ -1,3 +0,3 @@ | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["parallel-es"]=n():t["parallel-es"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,n,e){Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=99)}(function(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))switch(typeof t[n]){case"function":break;case"object":t[n]=function(n){var e=n.slice(1),r=t[n[0]];return function(t,n,i){r.apply(this,[t,n,i].concat(e))}}(t[n]);break;default:t[n]=t[t[n]]}return t}([function(t,n){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(72),o=r(i);n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(47)("wks"),i=e(31),o=e(3).Symbol,u="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))};a.store=r},function(t,n,e){t.exports=!e(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(7),i=e(41),o=e(30),u=Object.defineProperty;n.f=e(5)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(3),i=e(2),o=e(14),u=e(10),a="prototype",s=function(t,n,e){var c,f,l,h=t&s.F,d=t&s.G,v=t&s.S,p=t&s.P,y=t&s.B,m=t&s.W,k=d?i:i[n]||(i[n]={}),g=k[a],_=d?r:v?r[n]:(r[n]||{})[a];d&&(e=n);for(c in e)f=!h&&_&&void 0!==_[c],f&&c in k||(l=f?_[c]:e[c],k[c]=d&&"function"!=typeof _[c]?e[c]:y&&f?o(l,r):m&&_[c]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[a]=t[a],n}(l):p&&"function"==typeof l?o(Function.call,l):l,p&&((k.virtual||(k.virtual={}))[c]=l,t&s.R&&g&&!g[c]&&u(g,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n,e){i()(this,t),this.func=n,this.params=e}return u()(t,null,[{key:"create",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}},{key:"createUnchecked",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}}]),t}()},function(t,n,e){var r=e(6),i=e(18);t.exports=e(5)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(81),i=e(39);t.exports=function(t){return r(i(t))}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(24);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";function r(t,n){return{_______isFunctionId:!0,identifier:t+"-"+n}}function i(t){return!!t&&t._______isFunctionId===!0}n.a=r,n.b=i},function(t,n,e){t.exports={default:e(124),__esModule:!0}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){"use strict";var r=e(16);e.d(n,"a",function(){return i});var i={FILTER:e.i(r.a)("parallel",0),IDENTITY:e.i(r.a)("parallel",1),MAP:e.i(r.a)("parallel",2),PARALLEL_JOB_EXECUTOR:e.i(r.a)("parallel",3),RANGE:e.i(r.a)("parallel",4),REDUCE:e.i(r.a)("parallel",5),TIMES:e.i(r.a)("parallel",6),TO_ITERATOR:e.i(r.a)("parallel",7)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports={}},function(t,n,e){var r=e(89),i=e(40);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(38),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(111),h=e(110);e.d(n,"a",function(){return d});var d=function(){function t(n){var e=this;s()(this,t),this.nextHandlers=[];var r=function(t,n,r){return e._next(t,n,r)},i=function(t){return e.reject(t)},o=function(t){return e.resolve(t)};n(r,o,i),this.promise=new u.a(function(t,n){e.resolve=t,e.reject=n})}return f()(t,[{key:"subscribe",value:function(t,n,e){return this.nextHandlers.push(t),(n||e)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"_next",value:function(t,n,e){var r=!0,o=!1,u=void 0;try{for(var a,s=i()(this.nextHandlers);!(r=(a=s.next()).done);r=!0){var c=a.value;c.apply(void 0,arguments)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}}}],[{key:"transform",value:function(n,e){var r=void 0,i=void 0,o=void 0,u=new t(function(t,n,e){r=t,i=n,o=e});return n.subscribe(r,o,function(t){return i(e(t))}),u}},{key:"fromTasks",value:function(t,n,e){return 0===t.length?new h.a(n):new l.a(t,n,e)}}]),t}()},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(11),i=e(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n){t.exports=!0},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(6).f,i=e(15),o=e(4)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){var r=e(39);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(11);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){"use strict";var r=e(154)(!0);e(84)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(63),i=(e.n(r),e(56)),o=(e.n(i),e(59)),u=(e.n(o),e(60)),a=(e.n(u),e(62)),s=(e.n(a),e(64)),c=(e.n(s),e(61)),f=(e.n(c),e(65));e.n(f);e.o(r,"IParallel")&&e.d(n,"a",function(){return r.IParallel}),e.o(i,"IParallelChain")&&e.d(n,"b",function(){return i.IParallelChain}),e.o(o,"IParallelTaskEnvironment")&&e.d(n,"c",function(){return o.IParallelTaskEnvironment}),e.o(o,"IParallelEnvironment")&&e.d(n,"d",function(){return o.IParallelEnvironment}),e.o(u,"IParallelJob")&&e.d(n,"e",function(){return u.IParallelJob}),e.o(a,"IParallelOptions")&&e.d(n,"f",function(){return a.IParallelOptions}),e.o(a,"IDefaultInitializedParallelOptions")&&e.d(n,"g",function(){return a.IDefaultInitializedParallelOptions}),e.o(s,"IParallelJobScheduler")&&e.d(n,"h",function(){return s.IParallelJobScheduler}),e.o(c,"IParallelOperation")&&e.d(n,"i",function(){return c.IParallelOperation}),e.o(c,"ISerializedParallelOperation")&&e.d(n,"j",function(){return c.ISerializedParallelOperation}),e.o(f,"IParallelStream")&&e.d(n,"k",function(){return f.IParallelStream})},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n){i()(this,t),this.functionRegistry=n}return u()(t,[{key:"serializeFunctionCall",value:function(t){var n=this.functionRegistry.getOrSetId(t.func);return{______serializedFunctionCall:!0,functionId:n,parameters:t.params}}}]),t}()},function(t,n,e){"use strict";function r(t){return!!t&&t.______serializedFunctionCall===!0}n.a=r},function(t,n,e){"use strict";function r(t){if(0===t.length)return[];var n=u()(t),e=n[0],r=n.slice(1);return Array.prototype.concat.apply(e,r)}function i(t,n){var e=t.length;t.length+=n.length;for(var r=0;r<n.length;++r)t[e+r]=n[r];return t}var o=e(75),u=e.n(o),a=e(17);e.n(a);n.b=r,n.a=i},function(t,n,e){t.exports={default:e(130),__esModule:!0}},function(t,n,e){t.exports={default:e(132),__esModule:!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){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){t.exports=!e(5)&&!e(13)(function(){return 7!=Object.defineProperty(e(25)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(7),i=e(149),o=e(40),u=e(46)("IE_PROTO"),a=function(){},s="prototype",c=function(){var t,n=e(25)("iframe"),r=o.length,i="<",u=">";for(n.style.display="none",e(80).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),c=t.F;r--;)delete c[s][o[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[s]=r(t),e=new a,a[s]=null,e[u]=t):e=c(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(27),i=e(18),o=e(12),u=e(30),a=e(15),s=e(41),c=Object.getOwnPropertyDescriptor;n.f=e(5)?c:function(t,n){if(t=o(t),n=u(n,!0),s)try{return c(t,n)}catch(t){}if(a(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(8),i=e(2),o=e(13);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){var r=e(47)("keys"),i=e(31);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n,e){var r=e(3),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(48),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){var r=e(3),i=e(2),o=e(26),u=e(51),a=e(6).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(4)},function(t,n,e){var r=e(79),i=e(4)("iterator"),o=e(21);t.exports=e(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){e(158);for(var r=e(3),i=e(10),o=e(21),u=e(4)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=a[s],f=r[c],l=f&&f.prototype;l&&!l[u]&&i(l,u,c),o[c]=o.Array}},function(t,n,e){"use strict";var r=e(33),i=e(66),o=(e.n(i),e(67)),u=(e.n(o),e(55)),a=(e.n(u),e(16)),s=e(9),c=e(35),f=e(34),l=e(68),h=(e.n(l),e(33));e.d(n,"a",function(){return r.a}),e.o(i,"ITaskDefinition")&&e.d(n,"b",function(){return i.ITaskDefinition}),e.o(o,"ITask")&&e.d(n,"c",function(){return o.ITask}),e.o(u,"IFunctionDefinition")&&e.d(n,"d",function(){return u.IFunctionDefinition}),e.d(n,"e",function(){return a.IFunctionId}),e.d(n,"f",function(){return a.b}),e.d(n,"g",function(){return s.a}),e.d(n,"h",function(){return c.ISerializedFunctionCall}),e.d(n,"i",function(){return c.a}),e.d(n,"j",function(){return f.a}),e.o(l,"IThreadPool")&&e.d(n,"k",function(){return l.IThreadPool}),e.d(n,"l",function(){return h.b}),e.d(n,"m",function(){return h.c}),e.d(n,"n",function(){return h.d}),e.d(n,"o",function(){return h.e}),e.d(n,"p",function(){return h.f}),e.d(n,"q",function(){return h.g}),e.d(n,"r",function(){return h.h}),e.d(n,"s",function(){return h.i}),e.d(n,"t",function(){return h.j}),e.d(n,"u",function(){return h.k})},function(t,n){},function(t,n){},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(102);e.d(n,"a",function(){return s});var s=function(){function t(n,e,r){i()(this,t),this.options=e,this.environment=r,this.stream=n}return u()(t,[{key:"resolve",value:function(){return this}},{key:"chainOperation",value:function(t){return new a.a(this.stream,this.options,this.environment,[t])}},{key:"addEnvironment",value:function(t){return new a.a(this.stream,this.options,this.environment.add(t))}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(19),s=e(9);e.d(n,"a",function(){return c});var c=function(){function t(n){i()(this,t),this.collection=n}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*t,i=r+n;return e.serializeFunctionCall(s.a.createUnchecked(a.a.TO_ITERATOR,this.collection.slice(r,i)))}},{key:"length",get:function(){return this.collection.length}}]),t}()},56,56,function(t,n){},56,56,56,56,55,55,56,function(t,n,e){"use strict";function r(t){return{type:d.InitializeWorker,workerId:t}}function i(t){return{task:t,type:d.ScheduleTask}}function o(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return{functions:t,missingFunctions:e,type:d.FunctionResponse}}function u(){return{type:d.Stop}}function a(t){return t.type===d.FunctionRequest}function s(t){return t.type===d.WorkerResult}function c(t){return t.type===d.FunctionExecutionError}var f=e(115),l=(e.n(f),e(118)),h=(e.n(l),e(17));e.n(h);n.e=r,n.f=i,n.d=o,n.g=u,n.a=a,n.b=s,n.c=c;var d;!function(t){t[t.InitializeWorker=0]="InitializeWorker",t[t.ScheduleTask=1]="ScheduleTask",t[t.FunctionRequest=2]="FunctionRequest",t[t.FunctionResponse=3]="FunctionResponse",t[t.WorkerResult=4]="WorkerResult",t[t.FunctionExecutionError=5]="FunctionExecutionError",t[t.Stop=6]="Stop"}(d||(d={}))},function(t,n,e){t.exports={default:e(123),__esModule:!0}},function(t,n,e){t.exports={default:e(126),__esModule:!0}},function(t,n,e){t.exports={default:e(78),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(119),o=r(i),u=e(116),a=r(u),s=e(77),c=r(s);n.default=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof n?"undefined":(0,c.default)(n)));t.prototype=(0,a.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(o.default?(0,o.default)(t,n):t.__proto__=n)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(77),o=r(i);n.default=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==("undefined"==typeof n?"undefined":(0,o.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(70),o=r(i);n.default=function(t){return Array.isArray(t)?t:(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(70),o=r(i);n.default=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(121),o=r(i),u=e(120),a=r(u),s="function"==typeof a.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};n.default="function"==typeof a.default&&"symbol"===s(o.default)?function(t){return"undefined"==typeof t?"undefined":s(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"==typeof t?"undefined":s(t)}},function(t,n,e){e(92);var r=e(2).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){var r=e(20),i=e(4)("toStringTag"),o="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),i))?e:o?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){t.exports=e(3).document&&document.documentElement},function(t,n,e){var r=e(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(21),i=e(4)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){var r=e(7);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){"use strict";var r=e(26),i=e(8),o=e(90),u=e(10),a=e(15),s=e(21),c=e(143),f=e(28),l=e(88),h=e(4)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",p="keys",y="values",m=function(){return this};t.exports=function(t,n,e,k,g,_,b){c(e,n,k);var w,x,O,P=function(t){if(!d&&t in T)return T[t];switch(t){case p:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",I=g==y,E=!1,T=t.prototype,j=T[h]||T[v]||g&&T[g],M=j||P(g),F=g?I?P("entries"):M:void 0,C="Array"==n?T.entries||j:j;if(C&&(O=l(C.call(new t)),O!==Object.prototype&&(f(O,S,!0),r||a(O,h)||u(O,h,m))),I&&j&&j.name!==y&&(E=!0,M=function(){return j.call(this)}),r&&!b||!d&&!E&&T[h]||u(T,h,M),s[n]=M,s[S]=m,g)if(w={values:I?M:P(y),keys:_?M:P(p),entries:F},b)for(x in w)x in T||o(T,x,w[x]);else i(i.P+i.F*(d||E),n,w);return w}},function(t,n,e){var r=e(4)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n,e){var r=e(12),i=e(87).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,n,e){var r=e(89),i=e(40).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(15),i=e(29),o=e(46)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(15),i=e(12),o=e(137)(!1),u=e(46)("IE_PROTO");t.exports=function(t,n){var e,a=i(t),s=0,c=[];for(e in a)e!=u&&r(a,e)&&c.push(e);for(;n.length>s;)r(a,e=n[s++])&&(~o(c,e)||c.push(e));return c}},function(t,n,e){t.exports=e(10)},function(t,n,e){var r,i,o,u=e(14),a=e(141),s=e(80),c=e(25),f=e(3),l=f.process,h=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,p=0,y={},m="onreadystatechange",k=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},g=function(t){k.call(t.data)};h&&d||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return y[++p]=function(){a("function"==typeof t?t:Function(t),n)},r(p),p},d=function(t){delete y[t]},"process"==e(20)(l)?r=function(t){l.nextTick(u(k,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=g,r=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",g,!1)):r=m in c("script")?function(t){s.appendChild(c("script"))[m]=function(){s.removeChild(this),k.call(t)}}:function(t){setTimeout(u(k,t,1),0)}),t.exports={set:h,clear:d}},function(t,n,e){var r=e(8);r(r.S+r.F*!e(5),"Object",{defineProperty:e(6).f})},61,function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(101);e.d(n,"a",function(){return c});var s=e(169),c=function(){function t(n){i()(this,t),this.functionLookupTable=n}return u()(t,[{key:"spawn",value:function(){if(!window.Worker)throw new Error("Missing Web Worker support");var t=new s,n=new a.a(t,this.functionLookupTable);return n.initialize(),n}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(114),s=e(16),c=e(113);e.d(n,"a",function(){return f});var f=function(){function t(){i()(this,t),this.ids=new a.a,this.definitions=new a.a,this.lastId=0}return u()(t,[{key:"getOrSetId",value:function(t){if(e.i(s.b)(t))return t;var n=t.toString(),r=this.ids.get(n);return"undefined"==typeof r&&(r=e.i(s.a)("dynamic",++this.lastId),this.initDefinition(t,r)),r}},{key:"getDefinition",value:function(t){return this.definitions.get(t.identifier)}},{key:"initDefinition",value:function(t,n){var r=t.toString(),i=e.i(c.a)(t),o=r.substring(r.indexOf("(")+1,r.indexOf(")")).split(","),u=r.substring(r.indexOf("{")+1,r.lastIndexOf("}")).trim(),a={argumentNames:o.map(function(t){return t.trim()}),body:u,id:n,name:i?i:void 0};this.ids.set(r,n),this.definitions.set(n.identifier,a)}}]),t}()},function(t,n,e){"use strict";function r(t){function n(n){if(n){if(n.hasOwnProperty("threadPool")&&"undefined"==typeof n.threadPool)throw new Error("The thread pool is mandatory and cannot be unset");if(n.hasOwnProperty("functionCallSerializer")&&"undefined"==typeof n.functionCallSerializer)throw new Error("The function call serializer is mandatory and cannot be unset");if(n.hasOwnProperty("maxConcurrencyLevel")&&"number"!=typeof n.maxConcurrencyLevel)throw new Error("The maxConcurrencyLevel is mandatory and has to be a number")}return o()({},t,n)}return{defaultOptions:function(e){return e?void(t=n(e)):o()({},t)},from:function(t,r){return e.i(c.a)(new u.a(t),n(r))},range:function(t,r,i,o){var u=a.a.create(t,r,i);return e.i(c.a)(u,n(o))},times:function(t,r,i,o){return i?e.i(c.a)(s.a.create(t,r),n(o),i):e.i(c.a)(s.a.create(t,r),n(o))},run:function(n){for(var r=void 0,i=arguments.length,o=Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];r=e.i(f.b)(n)?l.a.create(n,o):l.a.create(n,o);var a=t.functionCallSerializer.serializeFunctionCall(r),s={main:a,usedFunctionIds:[a.functionId]};return t.threadPool.run(s)}}}var i=e(71),o=e.n(i),u=e(58),a=e(106),s=e(107),c=e(103),f=e(16),l=e(9);e.d(n,"a",function(){return r})},function(t,n,e){"use strict";var r=e(37),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(74),f=e.n(c),l=e(73),h=e.n(l),d=e(109);e.d(n,"a",function(){return v});var v=function(t){function n(){return u()(this,n),f()(this,(n.__proto__||i()(n)).apply(this,arguments))}return h()(n,t),s()(n,[{key:"getScheduling",value:function(t,n){var e=t/(4*n.maxConcurrencyLevel);return n.minValuesPerTask&&(e=Math.min(Math.max(e,n.minValuesPerTask),t)),n.maxValuesPerTask&&(e=Math.min(e,n.maxValuesPerTask)),{numberOfTasks:0===e?0:Math.round(t/e),valuesPerTask:Math.ceil(e)}}}]),n}(d.a)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(112);e.d(n,"a",function(){return s});var s=function(){function t(n,e){i()(this,t),this.workerThreadFactory=n,this.workers=[],this.idleWorkers=[],this.queue=[],this.concurrencyLimit=e.maxConcurrencyLevel}return u()(t,[{key:"run",value:function(t){var n=new a.a(t);return this.queue.unshift(n),this.schedulePendingTasks(),n}},{key:"schedulePendingTasks",value:function(){for(;this.queue.length;){var t=void 0;if(0===this.idleWorkers.length&&this.workers.length<this.concurrencyLimit?(t=this.workerThreadFactory.spawn(),this.workers.push(t)):this.idleWorkers.length>0&&(t=this.idleWorkers.pop()),!t)return;var n=this.queue.pop();this.runTaskOnWorker(n,t)}}},{key:"runTaskOnWorker",value:function(t,n){var e=this;t.isCancellationRequested?(t.resolveCancelled(),this.releaseWorker(n)):n.run(t.definition,function(r,i){r?t.reject(r):t.resolve(i),e.releaseWorker(n)})}},{key:"releaseWorker",value:function(t){this.idleWorkers.push(t),this.schedulePendingTasks()}}]),t}()},function(t,n,e){"use strict";var r=e(96),i=e(98),o=e(97),u=e(95),a=e(34),s=e(94),c=e(54);e.d(n,"IParallel",function(){return c.a}),e.d(n,"ITaskDefinition",function(){return c.b}),e.d(n,"ITask",function(){return c.c}),e.d(n,"IFunctionDefinition",function(){return c.d}),e.d(n,"IFunctionId",function(){return c.e}),e.d(n,"isFunctionId",function(){return c.f}),e.d(n,"FunctionCall",function(){return c.g}),e.d(n,"ISerializedFunctionCall",function(){return c.h}),e.d(n,"isSerializedFunctionCall",function(){return c.i}),e.d(n,"FunctionCallSerializer",function(){return c.j}),e.d(n,"IThreadPool",function(){return c.k}),e.d(n,"IParallelChain",function(){return c.l}),e.d(n,"IParallelTaskEnvironment",function(){return c.m}),e.d(n,"IParallelEnvironment",function(){return c.n}),e.d(n,"IParallelJob",function(){return c.o}),e.d(n,"IParallelOptions",function(){return c.p}),e.d(n,"IDefaultInitializedParallelOptions",function(){return c.q}),e.d(n,"IParallelJobScheduler",function(){return c.r}),e.d(n,"IParallelOperation",function(){return c.s}),e.d(n,"ISerializedParallelOperation",function(){return c.t}),e.d(n,"IParallelStream",function(){return c.u});var f=new u.a,l=window.navigator.hardwareConcurrency||4,h=new a.a(f),d=new i.a(new s.a(f),{maxConcurrencyLevel:l}),v=e.i(r.a)({functionCallSerializer:h,maxConcurrencyLevel:l,scheduler:new o.a,threadPool:d});n.default=v},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(37),u=e.n(o),a=e(74),s=e.n(a),c=e(122),f=e.n(c),l=e(73),h=e.n(l),d=e(0),v=e.n(d),p=e(1),y=e.n(p),m=e(69);e.d(n,"a",function(){return k}),e.d(n,"b",function(){return g});var k=function(){function t(n){v()(this,t),this.name=n}return y()(t,[{key:"onMessage",value:function(t){throw new Error("Browser worker thread in state '"+this.name+"' cannot handle the received message ("+t.data.type+").")}},{key:"onError",value:function(t){console.error("Processing error on worker slave",t.error)}}]),t}(),g=function(t){function n(t,e,r){v()(this,n);var i=s()(this,(n.__proto__||u()(n)).call(this,"executing"));return i.callback=t,i.functionRegistry=e,i.worker=r,i}return h()(n,t),y()(n,[{key:"onMessage",value:function(t){var r=t.data;e.i(m.a)(r)?this.handleFunctionRequest(r):e.i(m.b)(r)?this.callback(void 0,r.result):e.i(m.c)(r)?this.callback(r.error,void 0):f()(n.prototype.__proto__||u()(n.prototype),"onMessage",this).call(this,t)}},{key:"onError",value:function(t){this.callback(t.error,void 0)}},{key:"handleFunctionRequest",value:function(t){var n=[],e=[],r=!0,o=!1,u=void 0;try{for(var a,s=i()(t.functionIds);!(r=(a=s.next()).done);r=!0){var c=a.value,f=this.functionRegistry.getDefinition(c);f?e.push(f):n.push(c)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}this.worker.postMessage(m.d.apply(void 0,[e].concat(n)))}}]),n}(k)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(69),s=e(100);e.d(n,"a",function(){return f});var c=0,f=function(){function t(n,e){i()(this,t),this.worker=n,this.functionLookupTable=e,this.id=++c,this.state=new s.a("default"),this.stopped=!1;var r=this;this.worker.addEventListener("message",function(){r.onWorkerMessage.apply(r,arguments)}),this.worker.addEventListener("error",function(){r.onError.apply(r,arguments)})}return u()(t,[{key:"initialize",value:function(){if("default"!==this.state.name)throw new Error("The browser worker thread can only be initialized if in state default but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.e)(this.id)),this.state=new s.a("idle")}},{key:"run",value:function(t,n){var r=this;if("idle"!==this.state.name)throw new Error("The browser worker thread can only execute a new task if in state idle but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.f)(t));var i=function(t,e){r.stopped?r.state=new s.a("stopped"):r.state=new s.a("idle"),n(t,e)};this.state=new s.b(i,this.functionLookupTable,this.worker)}},{key:"stop",value:function(){this.stopped||(this.sendMessage(e.i(a.g)()),this.stopped=!0,"executing"!==this.state.name&&(this.state=new s.a("stopped")))}},{key:"toString",value:function(){return"BrowserWorkerThread { id: "+this.id+", state: "+this.state.name}},{key:"onWorkerMessage",value:function(t){this.state.onMessage(t)}},{key:"onError",value:function(t){this.state.onError(t),this.state=new s.a("errored")}},{key:"sendMessage",value:function(t){this.worker.postMessage(t)}}]),t}()},function(t,n,e){"use strict";var r=e(76),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(57),f=e(58),l=e(36),h=e(23);e.d(n,"a",function(){return d});var d=function(){function t(n,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];u()(this,t),this.previousStream=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function t(){var n=this,e=void 0,t=void 0,r=void 0,i=new h.a(function(n,i,o){e=n,t=i,r=o});return this.previousStream.then(function(i){var o=n.options.scheduler.schedule({environment:n.environment,generator:new f.a(i),operations:n.operations,options:n.options}),u=h.a.fromTasks(o,[],l.a);u.subscribe(e,r,t)},r),new c.a(i,this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.previousStream,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.previousStream,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";function r(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=void 0;e instanceof Array?(a=void 0,r=e):a=e;var s=new o.a(new i.a(t,n,u.a.of(),r));return a?s.inEnvironment(a):s}var i=e(105),o=e(104),u=e(108);n.a=r},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(75),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(19),h=e(9),d=e(23);e.d(n,"a",function(){return v});var v=function(){function t(n){s()(this,t),this.state=n}return f()(t,[{key:"inEnvironment",value:function(n){var e=void 0;if("function"==typeof n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e=h.a.createUnchecked.apply(h.a,[n].concat(i))}else e=n;return new t(this.state.addEnvironment(e))}},{key:"map",value:function(t){return this._chain(h.a.createUnchecked(l.a.MAP),h.a.createUnchecked(t))}},{key:"reduce",value:function(t,n,e){var r=e||n,o=this._chain(h.a.createUnchecked(l.a.REDUCE,t),h.a.createUnchecked(n)).resolveChain();return d.a.transform(o,function(n){if(0===n.length)return t;var e=u()(n),o=e[0],a=e.slice(1),s=o,c=!0,f=!1,l=void 0;try{for(var h,d=i()(a);!(c=(h=d.next()).done);c=!0){var v=h.value;s=r(s,v)}}catch(t){f=!0,l=t}finally{try{!c&&d.return&&d.return()}finally{if(f)throw l}}return s})}},{key:"filter",value:function(t){return this._chain(h.a.createUnchecked(l.a.FILTER),h.a.createUnchecked(t))}},{key:"subscribe",value:function(t,n,e){return this.resolveChain().subscribe(t,n,e)}},{key:"then",value:function(t,n){return this.resolveChain().then(t,n)}},{key:"catch",value:function(t){return this.resolveChain().catch(t)}},{key:"resolveChain",value:function(){var t=this.state=this.state.resolve();return t.stream}},{key:"_chain",value:function(n,e){var r={iterator:n,iteratee:e};return new t(this.state.chainOperation(r))}}]),t}()},function(t,n,e){"use strict";var r=e(76),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(57),f=e(23),l=e(36); | ||
e.d(n,"a",function(){return h});var h=function(){function t(n,e,r,i){u()(this,t),this.generator=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function(){var t=this.options.scheduler.schedule({environment:this.environment,generator:this.generator,operations:this.operations,options:this.options});return new c.a(f.a.fromTasks(t,[],l.a),this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.generator,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.generator,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(19),s=e(9);e.d(n,"a",function(){return c});var c=function(){function t(n,e,r){i()(this,t),this.start=n,this.end=e,this.step=r}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*this.step,i=this.start+t*r,o=Math.min(i+r,this.end);return e.serializeFunctionCall(s.a.createUnchecked(a.a.RANGE,i,o,this.step))}},{key:"length",get:function(){return Math.ceil((this.end-this.start)/this.step)}}],[{key:"create",value:function(n,e,r){if("undefined"==typeof e&&(e=n,n=0),"undefined"==typeof r&&(r=e<n?-1:1),0===r)throw new Error("Step size of zero is not allowed");return new t(n,e,r)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(19),s=e(9),c=e(16);e.d(n,"a",function(){return f});var f=function(){function t(n,e){i()(this,t),this.times=n,this.iteratee=e}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=t*n,i=Math.min(r+n,this.times),o=e.serializeFunctionCall(this.iteratee);return e.serializeFunctionCall(s.a.create(a.a.TIMES,r,i,o))}},{key:"length",get:function(){return this.times}}],[{key:"create",value:function(n,r){var i=void 0;return i=e.i(c.b)(r)||"function"==typeof r?s.a.createUnchecked(r):s.a.create(a.a.IDENTITY,r),new t(n,i)}}]),t}()},function(t,n,e){"use strict";var r=e(71),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(9);e.d(n,"a",function(){return f});var f=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u()(this,t),this.environments=n}return s()(t,[{key:"add",value:function(n){var e=this.environments.slice();return n instanceof c.a||!(this.environments.length>0)||this.environments[this.environments.length-1]instanceof c.a?e.push(n):e[e.length-1]=i()({},e[e.length-1],n),new t(e)}},{key:"toJSON",value:function(t){return this.environments.map(function(n){return n instanceof c.a?t.serializeFunctionCall(n):n})}}],[{key:"of",value:function(n){var e=t.EMPTY;return n?e.add(n):e}}]),t}();f.EMPTY=new f},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(9),s=e(19),c=e(36),f=e(35);e.d(n,"a",function(){return l});var l=function(){function t(){i()(this,t)}return u()(t,[{key:"schedule",value:function(t){var n=this.getTaskDefinitions(t);return n.map(function(n){return t.options.threadPool.run(n)})}},{key:"getTaskDefinitions",value:function(t){var n=this.getScheduling(t.generator.length,t.options),r=t.options.functionCallSerializer,i=t.environment.toJSON(r),o=this.serializeOperations(t.operations,r),u=[s.a.PARALLEL_JOB_EXECUTOR].concat(e.i(c.b)(o.map(function(t){return[t.iteratee.functionId,t.iterator.functionId]})));i.forEach(function(t){e.i(f.a)(t)&&u.push(t.functionId)});for(var l=[],h=0;h<n.numberOfTasks;++h){var d=t.generator.serializeSlice(h,n.valuesPerTask,r),v={environments:i,generator:d,operations:o,taskIndex:h,valuesPerTask:n.valuesPerTask},p={main:r.serializeFunctionCall(a.a.createUnchecked(s.a.PARALLEL_JOB_EXECUTOR,v)),taskIndex:h,usedFunctionIds:[d.functionId].concat(u),valuesPerTask:n.valuesPerTask};l.push(p)}return l}},{key:"serializeOperations",value:function(t,n){return t.map(function(t){return{iteratee:n.serializeFunctionCall(t.iteratee),iterator:n.serializeFunctionCall(t.iterator)}})}}]),t}()},function(t,n,e){"use strict";var r=e(38),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){u()(this,t),this.promise=i.a.resolve(n)}return s()(t,[{key:"subscribe",value:function(t,n,e){return(e||n)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}}]),t}()},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(23);e.d(n,"a",function(){return f});var f=function(){function t(n,e,r){var o=this;u()(this,t),this.failed=!1,this.nextSubResultIndex=0,this.tasks=n,this.joiner=r,this.endResult=e,this.pending=n.length,this.subResults=new Array(this.tasks.length),this.innerStream=new c.a(function(t,n,e){o.next=t,o.resolve=n,o.reject=e});var a=!0,s=!1,f=void 0;try{for(var l,h=i()(n);!(a=(l=h.next()).done);a=!0){var d=l.value;this.registerTaskHandler(d)}}catch(t){s=!0,f=t}finally{try{!a&&h.return&&h.return()}finally{if(s)throw f}}}return s()(t,[{key:"subscribe",value:function(t,n,e){return this.innerStream.subscribe(t,n,e),this}},{key:"then",value:function(t,n){return this.innerStream.then(t,n)}},{key:"catch",value:function(t){return this.innerStream.catch(t)}},{key:"registerTaskHandler",value:function(t){var n=this;t.then(function(e){return n._taskCompleted(e,t.definition)},function(t){return n._taskFailed(t)})}},{key:"_taskCompleted",value:function(t,n){if(0===this.pending)throw new Error("Stream already resolved but taskCompleted called one more time");--this.pending,this.tasks[n.taskIndex]=void 0,this.subResults[n.taskIndex]=t,this.failed||(this.next(t,n.taskIndex,n.valuesPerTask),this.nextSubResultIndex===n.taskIndex&&this.joinSubResults(),0===this.pending&&(this.resolve(this.endResult),this.endResult=void 0))}},{key:"joinSubResults",value:function(){for(;this.nextSubResultIndex<this.subResults.length&&"undefined"!=typeof this.subResults[this.nextSubResultIndex];){var t=this.subResults[this.nextSubResultIndex];this.subResults[this.nextSubResultIndex]=void 0,this.endResult=this.joiner.apply(void 0,[this.endResult,t]),++this.nextSubResultIndex}}},{key:"_taskFailed",value:function(t){if(this.failed!==!0){this.failed=!0;for(var n=0;n<this.tasks.length;++n){var e=this.tasks[n];"undefined"!=typeof e&&e.cancel()}this.reject(t)}}}]),t}()},function(t,n,e){"use strict";var r=e(38),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){var e=this;u()(this,t),this.definition=n,this.isCancellationRequested=!1,this.isCanceled=!1,this.promise=new i.a(function(t,n){e.resolvePromise=t,e.rejectPromise=n})}return s()(t,[{key:"resolve",value:function(t){this.isCancellationRequested?this.resolveCancelled():this.resolvePromise(t)}},{key:"resolveCancelled",value:function(){this.isCanceled=!0,this.reject("Task has been canceled")}},{key:"reject",value:function(t){this.rejectPromise(t)}},{key:"then",value:function(t,n){return n?this.promise.then(t,n):this.promise.then(t)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"cancel",value:function(){this.isCancellationRequested=!0}}]),t}()},function(t,n,e){"use strict";function r(t){if(t.hasOwnProperty("name"))return t.name;var n=t.toString();return n.substring(n.indexOf("function")+9,n.indexOf("(")).trim()}n.a=r},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(){i()(this,t),this.data={}}return u()(t,[{key:"get",value:function(t){var n=this.toInternalKey(t);return this.has(t)?this.data[n]:void 0}},{key:"has",value:function(t){return this.hasOwnProperty.call(this.data,this.toInternalKey(t))}},{key:"set",value:function(t,n){this.data[this.toInternalKey(t)]=n}},{key:"clear",value:function(){this.data={}}},{key:"toInternalKey",value:function(t){return"@"+t}}]),t}()},function(t,n,e){t.exports={default:e(125),__esModule:!0}},function(t,n,e){t.exports={default:e(127),__esModule:!0}},function(t,n,e){t.exports={default:e(128),__esModule:!0}},function(t,n,e){t.exports={default:e(129),__esModule:!0}},function(t,n,e){t.exports={default:e(131),__esModule:!0}},function(t,n,e){t.exports={default:e(133),__esModule:!0}},function(t,n,e){t.exports={default:e(134),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(37),o=r(i),u=e(117),a=r(u);n.default=function t(n,e,r){null===n&&(n=Function.prototype);var i=(0,a.default)(n,e);if(void 0===i){var u=(0,o.default)(n);return null===u?void 0:t(u,e,r)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(r)}},function(t,n,e){e(32),e(157),t.exports=e(2).Array.from},function(t,n,e){e(53),e(32),t.exports=e(156)},function(t,n,e){var r=e(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,n,e){e(159),t.exports=e(2).Object.assign},function(t,n,e){e(160);var r=e(2).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(161);var r=e(2).Object;t.exports=function(t,n){return r.getOwnPropertyDescriptor(t,n)}},function(t,n,e){e(162);var r=e(2).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(163),t.exports=e(2).Object.getPrototypeOf},function(t,n,e){e(164),t.exports=e(2).Object.setPrototypeOf},function(t,n,e){e(93),e(32),e(53),e(165),t.exports=e(2).Promise},function(t,n,e){e(166),e(93),e(167),e(168),t.exports=e(2).Symbol},function(t,n,e){e(32),e(53),t.exports=e(51).f("iterator")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(12),i=e(49),o=e(155);t.exports=function(t){return function(n,e,u){var a,s=r(n),c=i(s.length),f=o(u,c);if(t&&e!=e){for(;c>f;)if(a=s[f++],a!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){"use strict";var r=e(6),i=e(18);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(22),i=e(44),o=e(27);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),s=o.f,c=0;a.length>c;)s.call(t,u=a[c++])&&n.push(u);return n}},function(t,n,e){var r=e(14),i=e(83),o=e(82),u=e(7),a=e(49),s=e(52),c={},f={},n=t.exports=function(t,n,e,l,h){var d,v,p,y,m=h?function(){return t}:s(t),k=r(e,l,n?2:1),g=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=a(t.length);d>g;g++)if(y=n?k(u(v=t[g])[0],v[1]):k(t[g]),y===c||y===f)return y}else for(p=m.call(t);!(v=p.next()).done;)if(y=i(p,k,v.value,n),y===c||y===f)return y};n.BREAK=c,n.RETURN=f},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(20);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){"use strict";var r=e(42),i=e(18),o=e(28),u={};e(10)(u,e(4)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(22),i=e(12);t.exports=function(t,n){for(var e,o=i(t),u=r(o),a=u.length,s=0;a>s;)if(o[e=u[s++]]===n)return e}},function(t,n,e){var r=e(31)("meta"),i=e(11),o=e(15),u=e(6).f,a=0,s=Object.isExtensible||function(){return!0},c=!e(13)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!s(t))return"F";if(!n)return"E";f(t)}return t[r].i},h=function(t,n){if(!o(t,r)){if(!s(t))return!0;if(!n)return!1;f(t)}return t[r].w},d=function(t){return c&&v.NEED&&s(t)&&!o(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:d}},function(t,n,e){var r=e(3),i=e(91).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,s="process"==e(20)(u);t.exports=function(){var t,n,e,c=function(){var r,i;for(s&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(s)e=function(){u.nextTick(c)};else if(o){var f=!0,l=document.createTextNode("");new o(c).observe(l,{characterData:!0}),e=function(){l.data=f=!f}}else if(a&&a.resolve){var h=a.resolve();e=function(){h.then(c)}}else e=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};n&&(n.next=i),t||(t=i,e()),n=i}}},function(t,n,e){"use strict";var r=e(22),i=e(44),o=e(27),u=e(29),a=e(81),s=Object.assign;t.exports=!s||e(13)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=u(t),s=arguments.length,c=1,f=i.f,l=o.f;s>c;)for(var h,d=a(arguments[c++]),v=f?r(d).concat(f(d)):r(d),p=v.length,y=0;p>y;)l.call(d,h=v[y++])&&(e[h]=d[h]);return e}:s},function(t,n,e){var r=e(6),i=e(7),o=e(22);t.exports=e(5)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),a=u.length,s=0;a>s;)r.f(t,e=u[s++],n[e]);return t}},function(t,n,e){var r=e(10);t.exports=function(t,n,e){for(var i in n)e&&t[i]?t[i]=n[i]:r(t,i,n[i]);return t}},function(t,n,e){var r=e(11),i=e(7),o=function(t,n){if(i(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(14)(Function.call,e(43).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,n,e){"use strict";var r=e(3),i=e(2),o=e(6),u=e(5),a=e(4)("species");t.exports=function(t){var n="function"==typeof i[t]?i[t]:r[t];u&&n&&!n[a]&&o.f(n,a,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(7),i=e(24),o=e(4)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[o])?n:i(e)}},function(t,n,e){var r=e(48),i=e(39);t.exports=function(t){return function(n,e){var o,u,a=String(i(n)),s=r(e),c=a.length;return s<0||s>=c?t?"":void 0:(o=a.charCodeAt(s),o<55296||o>56319||s+1===c||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):o:t?a.slice(s,s+2):(o-55296<<10)+(u-56320)+65536)}}},function(t,n,e){var r=e(48),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(7),i=e(52);t.exports=e(2).getIterator=function(t){var n=i(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return r(n.call(t))}},function(t,n,e){"use strict";var r=e(14),i=e(8),o=e(29),u=e(83),a=e(82),s=e(49),c=e(138),f=e(52);i(i.S+i.F*!e(85)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,i,l,h=o(t),d="function"==typeof this?this:Array,v=arguments.length,p=v>1?arguments[1]:void 0,y=void 0!==p,m=0,k=f(h);if(y&&(p=r(p,v>2?arguments[2]:void 0,2)),void 0==k||d==Array&&a(k))for(n=s(h.length),e=new d(n);n>m;m++)c(e,m,y?p(h[m],m):h[m]);else for(l=k.call(h),e=new d;!(i=l.next()).done;m++)c(e,m,y?u(l,p,[i.value,m],!0):i.value);return e.length=m,e}})},function(t,n,e){"use strict";var r=e(135),i=e(144),o=e(21),u=e(12);t.exports=e(84)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):"keys"==n?i(0,e):"values"==n?i(0,t[e]):i(0,[e,t[e]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(8);r(r.S+r.F,"Object",{assign:e(148)})},function(t,n,e){var r=e(8);r(r.S,"Object",{create:e(42)})},function(t,n,e){var r=e(12),i=e(43).f;e(45)("getOwnPropertyDescriptor",function(){return function(t,n){return i(r(t),n)}})},function(t,n,e){e(45)("getOwnPropertyNames",function(){return e(86).f})},function(t,n,e){var r=e(29),i=e(88);e(45)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,n,e){var r=e(8);r(r.S,"Object",{setPrototypeOf:e(151).set})},function(t,n,e){"use strict";var r,i,o,u=e(26),a=e(3),s=e(14),c=e(79),f=e(8),l=e(11),h=e(24),d=e(136),v=e(140),p=e(153),y=e(91).set,m=e(147)(),k="Promise",g=a.TypeError,_=a.process,b=a[k],_=a.process,w="process"==c(_),x=function(){},O=!!function(){try{var t=b.resolve(1),n=(t.constructor={})[e(4)("species")]=function(t){t(x,x)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then(x)instanceof n}catch(t){}}(),P=function(t,n){return t===n||t===b&&n===o},S=function(t){var n;return!(!l(t)||"function"!=typeof(n=t.then))&&n},I=function(t){return P(b,t)?new E(t):new i(t)},E=i=function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw g("Bad Promise constructor");n=t,e=r}),this.resolve=h(n),this.reject=h(e)},T=function(t){try{t()}catch(t){return{error:t}}},j=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,i=1==t._s,o=0,u=function(n){var e,o,u=i?n.ok:n.fail,a=n.resolve,s=n.reject,c=n.domain;try{u?(i||(2==t._h&&C(t),t._h=1),u===!0?e=r:(c&&c.enter(),e=u(r),c&&c.exit()),e===n.promise?s(g("Promise-chain cycle")):(o=S(e))?o.call(e,a,s):a(e)):s(r)}catch(t){s(t)}};e.length>o;)u(e[o++]);t._c=[],t._n=!1,n&&!t._h&&M(t)})}},M=function(t){y.call(a,function(){var n,e,r,i=t._v;if(F(t)&&(n=T(function(){w?_.emit("unhandledRejection",i,t):(e=a.onunhandledrejection)?e({promise:t,reason:i}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=w||F(t)?2:1),t._a=void 0,n)throw n.error})},F=function(t){if(1==t._h)return!1;for(var n,e=t._a||t._c,r=0;e.length>r;)if(n=e[r++],n.fail||!F(n.promise))return!1;return!0},C=function(t){y.call(a,function(){var n;w?_.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},R=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),j(n,!0))},A=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw g("Promise can't be resolved itself");(n=S(t))?m(function(){var r={_w:e,_d:!1};try{n.call(t,s(A,r,1),s(R,r,1))}catch(t){R.call(r,t)}}):(e._v=t,e._s=1,j(e,!1))}catch(t){R.call({_w:e,_d:!1},t)}}};O||(b=function(t){d(this,b,k,"_h"),h(t),r.call(this);try{t(s(A,this,1),s(R,this,1))}catch(t){R.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e(150)(b.prototype,{then:function(t,n){var e=I(p(this,b));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=w?_.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&j(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),E=function(){var t=new r;this.promise=t,this.resolve=s(A,t,1),this.reject=s(R,t,1)}),f(f.G+f.W+f.F*!O,{Promise:b}),e(28)(b,k),e(152)(k),o=e(2)[k],f(f.S+f.F*!O,k,{reject:function(t){var n=I(this),e=n.reject;return e(t),n.promise}}),f(f.S+f.F*(u||!O),k,{resolve:function(t){if(t instanceof b&&P(t.constructor,this))return t;var n=I(this),e=n.resolve;return e(t),n.promise}}),f(f.S+f.F*!(O&&e(85)(function(t){b.all(t).catch(x)})),k,{all:function(t){var n=this,e=I(n),r=e.resolve,i=e.reject,o=T(function(){var e=[],o=0,u=1;v(t,!1,function(t){var a=o++,s=!1;e.push(void 0),u++,n.resolve(t).then(function(t){s||(s=!0,e[a]=t,--u||r(e))},i)}),--u||r(e)});return o&&i(o.error),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,i=T(function(){v(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return i&&r(i.error),e.promise}})},function(t,n,e){"use strict";var r=e(3),i=e(15),o=e(5),u=e(8),a=e(90),s=e(146).KEY,c=e(13),f=e(47),l=e(28),h=e(31),d=e(4),v=e(51),p=e(50),y=e(145),m=e(139),k=e(142),g=e(7),_=e(12),b=e(30),w=e(18),x=e(42),O=e(86),P=e(43),S=e(6),I=e(22),E=P.f,T=S.f,j=O.f,M=r.Symbol,F=r.JSON,C=F&&F.stringify,R="prototype",A=d("_hidden"),z=d("toPrimitive"),L={}.propertyIsEnumerable,W=f("symbol-registry"),N=f("symbols"),D=f("op-symbols"),U=Object[R],J="function"==typeof M,q=r.QObject,B=!q||!q[R]||!q[R].findChild,K=o&&c(function(){return 7!=x(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=E(U,n);r&&delete U[n],T(t,n,e),r&&t!==U&&T(U,n,r)}:T,G=function(t){var n=N[t]=x(M[R]);return n._k=t,n},H=J&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},Y=function(t,n,e){return t===U&&Y(D,n,e),g(t),n=b(n,!0),g(e),i(N,n)?(e.enumerable?(i(t,A)&&t[A][n]&&(t[A][n]=!1),e=x(e,{enumerable:w(0,!1)})):(i(t,A)||T(t,A,w(1,{})),t[A][n]=!0),K(t,n,e)):T(t,n,e)},V=function(t,n){g(t);for(var e,r=m(n=_(n)),i=0,o=r.length;o>i;)Y(t,e=r[i++],n[e]);return t},X=function(t,n){return void 0===n?x(t):V(x(t),n)},Q=function(t){var n=L.call(this,t=b(t,!0));return!(this===U&&i(N,t)&&!i(D,t))&&(!(n||!i(this,t)||!i(N,t)||i(this,A)&&this[A][t])||n)},Z=function(t,n){if(t=_(t),n=b(n,!0),t!==U||!i(N,n)||i(D,n)){var e=E(t,n);return!e||!i(N,n)||i(t,A)&&t[A][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=j(_(t)),r=[],o=0;e.length>o;)i(N,n=e[o++])||n==A||n==s||r.push(n);return r},tt=function(t){for(var n,e=t===U,r=j(e?D:_(t)),o=[],u=0;r.length>u;)!i(N,n=r[u++])||e&&!i(U,n)||o.push(N[n]);return o};J||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===U&&n.call(D,e),i(this,A)&&i(this[A],t)&&(this[A][t]=!1),K(this,t,w(1,e))};return o&&B&&K(U,t,{configurable:!0,set:n}),G(t)},a(M[R],"toString",function(){return this._k}),P.f=Z,S.f=Y,e(87).f=O.f=$,e(27).f=Q,e(44).f=tt,o&&!e(26)&&a(U,"propertyIsEnumerable",Q,!0),v.f=function(t){return G(d(t))}),u(u.G+u.W+u.F*!J,{Symbol:M});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var nt=I(d.store),et=0;nt.length>et;)p(nt[et++]);u(u.S+u.F*!J,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=M(t)},keyFor:function(t){if(H(t))return y(W,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),u(u.S+u.F*!J,"Object",{create:X,defineProperty:Y,defineProperties:V,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),F&&u(u.S+u.F*(!J||c(function(){var t=M();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return n=r[1],"function"==typeof n&&(e=n),!e&&k(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!H(n))return n}),r[1]=n,C.apply(F,r)}}}),M[R][z]||e(10)(M[R],z,M[R].valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(50)("asyncIterator")},function(t,n,e){e(50)("observable")},function(t,n,e){t.exports=function(){return new Worker(e.p+"worker-slave.parallel.js")}}]))}); | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["parallel-es"]=n():t["parallel-es"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,n,e){Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=99)}(function(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))switch(typeof t[n]){case"function":break;case"object":t[n]=function(n){var e=n.slice(1),r=t[n[0]];return function(t,n,i){r.apply(this,[t,n,i].concat(e))}}(t[n]);break;default:t[n]=t[t[n]]}return t}([function(t,n){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(72),o=r(i);n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(47)("wks"),i=e(31),o=e(3).Symbol,u="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))};a.store=r},function(t,n,e){t.exports=!e(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(7),i=e(41),o=e(30),u=Object.defineProperty;n.f=e(5)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(3),i=e(2),o=e(14),u=e(10),a="prototype",s=function(t,n,e){var c,f,l,h=t&s.F,d=t&s.G,v=t&s.S,p=t&s.P,y=t&s.B,m=t&s.W,k=d?i:i[n]||(i[n]={}),g=k[a],b=d?r:v?r[n]:(r[n]||{})[a];d&&(e=n);for(c in e)f=!h&&b&&void 0!==b[c],f&&c in k||(l=f?b[c]:e[c],k[c]=d&&"function"!=typeof b[c]?e[c]:y&&f?o(l,r):m&&b[c]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[a]=t[a],n}(l):p&&"function"==typeof l?o(Function.call,l):l,p&&((k.virtual||(k.virtual={}))[c]=l,t&s.R&&g&&!g[c]&&u(g,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n,e){i()(this,t),this.func=n,this.params=e}return u()(t,null,[{key:"create",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}},{key:"createUnchecked",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}}]),t}()},function(t,n,e){var r=e(6),i=e(18);t.exports=e(5)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(81),i=e(39);t.exports=function(t){return r(i(t))}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(24);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";function r(t,n){return{_______isFunctionId:!0,identifier:t+"-"+n}}function i(t){return!!t&&t._______isFunctionId===!0}n.a=r,n.b=i},function(t,n,e){t.exports={default:e(124),__esModule:!0}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){"use strict";var r=e(16);e.d(n,"a",function(){return i});var i={FILTER:e.i(r.a)("parallel",0),IDENTITY:e.i(r.a)("parallel",1),MAP:e.i(r.a)("parallel",2),PARALLEL_JOB_EXECUTOR:e.i(r.a)("parallel",3),RANGE:e.i(r.a)("parallel",4),REDUCE:e.i(r.a)("parallel",5),TIMES:e.i(r.a)("parallel",6),TO_ITERATOR:e.i(r.a)("parallel",7)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports={}},function(t,n,e){var r=e(89),i=e(40);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(38),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(111),h=e(110);e.d(n,"a",function(){return d});var d=function(){function t(n){var e=this;s()(this,t),this.nextHandlers=[];var r=function(t,n,r){return e._next(t,n,r)},i=function(t){return e.reject(t)},o=function(t){return e.resolve(t)};n(r,o,i),this.promise=new u.a(function(t,n){e.resolve=t,e.reject=n})}return f()(t,[{key:"subscribe",value:function(t,n,e){return this.nextHandlers.push(t),(n||e)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"_next",value:function(t,n,e){var r=!0,o=!1,u=void 0;try{for(var a,s=i()(this.nextHandlers);!(r=(a=s.next()).done);r=!0){var c=a.value;c.apply(void 0,arguments)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}}}],[{key:"transform",value:function(n,e){var r=void 0,i=void 0,o=void 0,u=new t(function(t,n,e){r=t,i=n,o=e});return n.subscribe(r,o,function(t){return i(e(t))}),u}},{key:"fromTasks",value:function(t,n,e){return 0===t.length?new h.a(n):new l.a(t,n,e)}}]),t}()},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(11),i=e(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n){t.exports=!0},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(6).f,i=e(15),o=e(4)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){var r=e(39);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(11);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){"use strict";var r=e(154)(!0);e(84)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(63),i=(e.n(r),e(56)),o=(e.n(i),e(59)),u=(e.n(o),e(60)),a=(e.n(u),e(62)),s=(e.n(a),e(64)),c=(e.n(s),e(61)),f=(e.n(c),e(65));e.n(f);e.o(r,"IParallel")&&e.d(n,"a",function(){return r.IParallel}),e.o(i,"IParallelChain")&&e.d(n,"b",function(){return i.IParallelChain}),e.o(o,"IParallelTaskEnvironment")&&e.d(n,"c",function(){return o.IParallelTaskEnvironment}),e.o(o,"IParallelEnvironment")&&e.d(n,"d",function(){return o.IParallelEnvironment}),e.o(u,"IParallelJob")&&e.d(n,"e",function(){return u.IParallelJob}),e.o(a,"IParallelOptions")&&e.d(n,"f",function(){return a.IParallelOptions}),e.o(a,"IDefaultInitializedParallelOptions")&&e.d(n,"g",function(){return a.IDefaultInitializedParallelOptions}),e.o(s,"IParallelJobScheduler")&&e.d(n,"h",function(){return s.IParallelJobScheduler}),e.o(c,"IParallelOperation")&&e.d(n,"i",function(){return c.IParallelOperation}),e.o(c,"ISerializedParallelOperation")&&e.d(n,"j",function(){return c.ISerializedParallelOperation}),e.o(f,"IParallelStream")&&e.d(n,"k",function(){return f.IParallelStream})},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n){i()(this,t),this.functionRegistry=n}return u()(t,[{key:"serializeFunctionCall",value:function(t){var n=this.functionRegistry.getOrSetId(t.func);return{______serializedFunctionCall:!0,functionId:n,parameters:t.params}}}]),t}()},function(t,n,e){"use strict";function r(t){return!!t&&t.______serializedFunctionCall===!0}n.a=r},function(t,n,e){"use strict";function r(t){if(0===t.length)return[];var n=u()(t),e=n[0],r=n.slice(1);return Array.prototype.concat.apply(e,r)}function i(t,n){var e=t.length;t.length+=n.length;for(var r=0;r<n.length;++r)t[e+r]=n[r];return t}var o=e(75),u=e.n(o),a=e(17);e.n(a);n.b=r,n.a=i},function(t,n,e){t.exports={default:e(130),__esModule:!0}},function(t,n,e){t.exports={default:e(132),__esModule:!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){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){t.exports=!e(5)&&!e(13)(function(){return 7!=Object.defineProperty(e(25)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(7),i=e(149),o=e(40),u=e(46)("IE_PROTO"),a=function(){},s="prototype",c=function(){var t,n=e(25)("iframe"),r=o.length,i="<",u=">";for(n.style.display="none",e(80).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),c=t.F;r--;)delete c[s][o[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[s]=r(t),e=new a,a[s]=null,e[u]=t):e=c(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(27),i=e(18),o=e(12),u=e(30),a=e(15),s=e(41),c=Object.getOwnPropertyDescriptor;n.f=e(5)?c:function(t,n){if(t=o(t),n=u(n,!0),s)try{return c(t,n)}catch(t){}if(a(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(8),i=e(2),o=e(13);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){var r=e(47)("keys"),i=e(31);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n,e){var r=e(3),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(48),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){var r=e(3),i=e(2),o=e(26),u=e(51),a=e(6).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(4)},function(t,n,e){var r=e(79),i=e(4)("iterator"),o=e(21);t.exports=e(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){e(158);for(var r=e(3),i=e(10),o=e(21),u=e(4)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=a[s],f=r[c],l=f&&f.prototype;l&&!l[u]&&i(l,u,c),o[c]=o.Array}},function(t,n,e){"use strict";var r=e(33),i=e(66),o=(e.n(i),e(67)),u=(e.n(o),e(55)),a=(e.n(u),e(16)),s=e(9),c=e(35),f=e(34),l=e(68),h=(e.n(l),e(33));e.d(n,"a",function(){return r.a}),e.o(i,"ITaskDefinition")&&e.d(n,"b",function(){return i.ITaskDefinition}),e.o(o,"ITask")&&e.d(n,"c",function(){return o.ITask}),e.o(u,"IFunctionDefinition")&&e.d(n,"d",function(){return u.IFunctionDefinition}),e.d(n,"e",function(){return a.IFunctionId}),e.d(n,"f",function(){return a.b}),e.d(n,"g",function(){return s.a}),e.d(n,"h",function(){return c.ISerializedFunctionCall}),e.d(n,"i",function(){return c.a}),e.d(n,"j",function(){return f.a}),e.o(l,"IThreadPool")&&e.d(n,"k",function(){return l.IThreadPool}),e.d(n,"l",function(){return h.b}),e.d(n,"m",function(){return h.c}),e.d(n,"n",function(){return h.d}),e.d(n,"o",function(){return h.e}),e.d(n,"p",function(){return h.f}),e.d(n,"q",function(){return h.g}),e.d(n,"r",function(){return h.h}),e.d(n,"s",function(){return h.i}),e.d(n,"t",function(){return h.j}),e.d(n,"u",function(){return h.k})},function(t,n){},function(t,n){},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(102);e.d(n,"a",function(){return s});var s=function(){function t(n,e,r){i()(this,t),this.options=e,this.environment=r,this.stream=n}return u()(t,[{key:"resolve",value:function(){return this}},{key:"chainOperation",value:function(t){return new a.a(this.stream,this.options,this.environment,[t])}},{key:"addEnvironment",value:function(t){return new a.a(this.stream,this.options,this.environment.add(t))}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(19),s=e(9);e.d(n,"a",function(){return c});var c=function(){function t(n){i()(this,t),this.collection=n}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*t,i=r+n;return e.serializeFunctionCall(s.a.createUnchecked(a.a.TO_ITERATOR,this.collection.slice(r,i)))}},{key:"length",get:function(){return this.collection.length}}]),t}()},56,56,function(t,n){},56,56,56,56,55,55,56,function(t,n,e){"use strict";function r(t){return{type:d.InitializeWorker,workerId:t}}function i(t){return{task:t,type:d.ScheduleTask}}function o(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return{functions:t,missingFunctions:e,type:d.FunctionResponse}}function u(){return{type:d.Stop}}function a(t){return t.type===d.FunctionRequest}function s(t){return t.type===d.WorkerResult}function c(t){return t.type===d.FunctionExecutionError}var f=e(115),l=(e.n(f),e(118)),h=(e.n(l),e(17));e.n(h);n.e=r,n.f=i,n.d=o,n.g=u,n.a=a,n.b=s,n.c=c;var d;!function(t){t[t.InitializeWorker=0]="InitializeWorker",t[t.ScheduleTask=1]="ScheduleTask",t[t.FunctionRequest=2]="FunctionRequest",t[t.FunctionResponse=3]="FunctionResponse",t[t.WorkerResult=4]="WorkerResult",t[t.FunctionExecutionError=5]="FunctionExecutionError",t[t.Stop=6]="Stop"}(d||(d={}))},function(t,n,e){t.exports={default:e(123),__esModule:!0}},function(t,n,e){t.exports={default:e(126),__esModule:!0}},function(t,n,e){t.exports={default:e(78),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(119),o=r(i),u=e(116),a=r(u),s=e(77),c=r(s);n.default=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof n?"undefined":(0,c.default)(n)));t.prototype=(0,a.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(o.default?(0,o.default)(t,n):t.__proto__=n)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(77),o=r(i);n.default=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==("undefined"==typeof n?"undefined":(0,o.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(70),o=r(i);n.default=function(t){return Array.isArray(t)?t:(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(70),o=r(i);n.default=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(121),o=r(i),u=e(120),a=r(u),s="function"==typeof a.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};n.default="function"==typeof a.default&&"symbol"===s(o.default)?function(t){return"undefined"==typeof t?"undefined":s(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"==typeof t?"undefined":s(t)}},function(t,n,e){e(92);var r=e(2).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){var r=e(20),i=e(4)("toStringTag"),o="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),i))?e:o?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){t.exports=e(3).document&&document.documentElement},function(t,n,e){var r=e(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(21),i=e(4)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){var r=e(7);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){"use strict";var r=e(26),i=e(8),o=e(90),u=e(10),a=e(15),s=e(21),c=e(143),f=e(28),l=e(88),h=e(4)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",p="keys",y="values",m=function(){return this};t.exports=function(t,n,e,k,g,b,_){c(e,n,k);var w,x,O,P=function(t){if(!d&&t in T)return T[t];switch(t){case p:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",I=g==y,E=!1,T=t.prototype,j=T[h]||T[v]||g&&T[g],M=j||P(g),F=g?I?P("entries"):M:void 0,C="Array"==n?T.entries||j:j;if(C&&(O=l(C.call(new t)),O!==Object.prototype&&(f(O,S,!0),r||a(O,h)||u(O,h,m))),I&&j&&j.name!==y&&(E=!0,M=function(){return j.call(this)}),r&&!_||!d&&!E&&T[h]||u(T,h,M),s[n]=M,s[S]=m,g)if(w={values:I?M:P(y),keys:b?M:P(p),entries:F},_)for(x in w)x in T||o(T,x,w[x]);else i(i.P+i.F*(d||E),n,w);return w}},function(t,n,e){var r=e(4)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n,e){var r=e(12),i=e(87).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,n,e){var r=e(89),i=e(40).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(15),i=e(29),o=e(46)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(15),i=e(12),o=e(137)(!1),u=e(46)("IE_PROTO");t.exports=function(t,n){var e,a=i(t),s=0,c=[];for(e in a)e!=u&&r(a,e)&&c.push(e);for(;n.length>s;)r(a,e=n[s++])&&(~o(c,e)||c.push(e));return c}},function(t,n,e){t.exports=e(10)},function(t,n,e){var r,i,o,u=e(14),a=e(141),s=e(80),c=e(25),f=e(3),l=f.process,h=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,p=0,y={},m="onreadystatechange",k=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},g=function(t){k.call(t.data)};h&&d||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return y[++p]=function(){a("function"==typeof t?t:Function(t),n)},r(p),p},d=function(t){delete y[t]},"process"==e(20)(l)?r=function(t){l.nextTick(u(k,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=g,r=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",g,!1)):r=m in c("script")?function(t){s.appendChild(c("script"))[m]=function(){s.removeChild(this),k.call(t)}}:function(t){setTimeout(u(k,t,1),0)}),t.exports={set:h,clear:d}},function(t,n,e){var r=e(8);r(r.S+r.F*!e(5),"Object",{defineProperty:e(6).f})},61,function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(101);e.d(n,"a",function(){return c});var s=e(169),c=function(){function t(n){i()(this,t),this.functionLookupTable=n}return u()(t,[{key:"spawn",value:function(){if(!window.Worker)throw new Error("Missing Web Worker support");var t=new s,n=new a.a(t,this.functionLookupTable);return n.initialize(),n}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(114),s=e(16),c=e(113);e.d(n,"a",function(){return f});var f=function(){function t(){i()(this,t),this.ids=new a.a,this.definitions=new a.a,this.lastId=0}return u()(t,[{key:"getOrSetId",value:function(t){if(e.i(s.b)(t))return t;var n=t.toString(),r=this.ids.get(n);return"undefined"==typeof r&&(r=e.i(s.a)("dynamic",++this.lastId),this.initDefinition(t,r)),r}},{key:"getDefinition",value:function(t){return this.definitions.get(t.identifier)}},{key:"initDefinition",value:function(t,n){var r=t.toString(),i=e.i(c.a)(t),o=r.substring(r.indexOf("(")+1,r.indexOf(")")).split(","),u=r.substring(r.indexOf("{")+1,r.lastIndexOf("}")).trim(),a={argumentNames:o.map(function(t){return t.trim()}),body:u,id:n,name:i?i:void 0};this.ids.set(r,n),this.definitions.set(n.identifier,a)}}]),t}()},function(t,n,e){"use strict";function r(t){function n(n){if(n){if(n.hasOwnProperty("threadPool")&&"undefined"==typeof n.threadPool)throw new Error("The thread pool is mandatory and cannot be unset");if(n.hasOwnProperty("functionCallSerializer")&&"undefined"==typeof n.functionCallSerializer)throw new Error("The function call serializer is mandatory and cannot be unset");if(n.hasOwnProperty("maxConcurrencyLevel")&&"number"!=typeof n.maxConcurrencyLevel)throw new Error("The maxConcurrencyLevel is mandatory and has to be a number")}return o()({},t,n)}return{defaultOptions:function(e){return e?void(t=n(e)):o()({},t)},from:function(t,r){return e.i(c.a)(new u.a(t),n(r))},range:function(t,r,i,o){var u=a.a.create(t,r,i);return e.i(c.a)(u,n(o))},times:function(t,r,i,o){return i?e.i(c.a)(s.a.create(t,r),n(o),i):e.i(c.a)(s.a.create(t,r),n(o))},run:function(n){for(var r=void 0,i=arguments.length,o=Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];r=e.i(f.b)(n)?l.a.create(n,o):l.a.create(n,o);var a=t.functionCallSerializer.serializeFunctionCall(r),s={main:a,usedFunctionIds:[a.functionId]};return t.threadPool.run(s)}}}var i=e(71),o=e.n(i),u=e(58),a=e(106),s=e(107),c=e(103),f=e(16),l=e(9);e.d(n,"a",function(){return r})},function(t,n,e){"use strict";var r=e(37),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(74),f=e.n(c),l=e(73),h=e.n(l),d=e(109);e.d(n,"a",function(){return v});var v=function(t){function n(){return u()(this,n),f()(this,(n.__proto__||i()(n)).apply(this,arguments))}return h()(n,t),s()(n,[{key:"getScheduling",value:function(t,n){var e=n.oversubscribe===!1?n.maxConcurrencyLevel:4*n.maxConcurrencyLevel,r=t/e;return n.minValuesPerTask&&(r=Math.min(Math.max(r,n.minValuesPerTask),t)),n.maxValuesPerTask&&(r=Math.min(r,n.maxValuesPerTask)),{numberOfTasks:0===r?0:Math.round(t/r),valuesPerTask:Math.ceil(r)}}}]),n}(d.a)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(112);e.d(n,"a",function(){return s});var s=function(){function t(n,e){i()(this,t),this.workerThreadFactory=n,this.workers=[],this.idleWorkers=[],this.queue=[],this.concurrencyLimit=e.maxConcurrencyLevel}return u()(t,[{key:"run",value:function(t){var n=new a.a(t);return this.queue.unshift(n),this.schedulePendingTasks(),n}},{key:"schedulePendingTasks",value:function(){for(;this.queue.length;){var t=void 0;if(0===this.idleWorkers.length&&this.workers.length<this.concurrencyLimit?(t=this.workerThreadFactory.spawn(),this.workers.push(t)):this.idleWorkers.length>0&&(t=this.idleWorkers.pop()),!t)return;var n=this.queue.pop();this.runTaskOnWorker(n,t)}}},{key:"runTaskOnWorker",value:function(t,n){var e=this;t.isCancellationRequested?(t.resolveCancelled(),this.releaseWorker(n)):n.run(t.definition,function(r,i){r?t.reject(r):t.resolve(i),e.releaseWorker(n)})}},{key:"releaseWorker",value:function(t){this.idleWorkers.push(t),this.schedulePendingTasks()}}]),t}()},function(t,n,e){"use strict";var r=e(96),i=e(98),o=e(97),u=e(95),a=e(34),s=e(94),c=e(54);e.d(n,"IParallel",function(){return c.a}),e.d(n,"ITaskDefinition",function(){return c.b}),e.d(n,"ITask",function(){return c.c}),e.d(n,"IFunctionDefinition",function(){return c.d}),e.d(n,"IFunctionId",function(){return c.e}),e.d(n,"isFunctionId",function(){return c.f}),e.d(n,"FunctionCall",function(){return c.g}),e.d(n,"ISerializedFunctionCall",function(){return c.h}),e.d(n,"isSerializedFunctionCall",function(){return c.i}),e.d(n,"FunctionCallSerializer",function(){return c.j}),e.d(n,"IThreadPool",function(){return c.k}),e.d(n,"IParallelChain",function(){return c.l}),e.d(n,"IParallelTaskEnvironment",function(){return c.m}),e.d(n,"IParallelEnvironment",function(){return c.n}),e.d(n,"IParallelJob",function(){return c.o}),e.d(n,"IParallelOptions",function(){return c.p}),e.d(n,"IDefaultInitializedParallelOptions",function(){return c.q}),e.d(n,"IParallelJobScheduler",function(){return c.r}),e.d(n,"IParallelOperation",function(){return c.s}),e.d(n,"ISerializedParallelOperation",function(){return c.t}),e.d(n,"IParallelStream",function(){return c.u});var f=new u.a,l=window.navigator.hardwareConcurrency||4,h=new a.a(f),d=new i.a(new s.a(f),{maxConcurrencyLevel:l}),v=e.i(r.a)({functionCallSerializer:h,maxConcurrencyLevel:l,oversubscribe:!0,scheduler:new o.a,threadPool:d});n.default=v},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(37),u=e.n(o),a=e(74),s=e.n(a),c=e(122),f=e.n(c),l=e(73),h=e.n(l),d=e(0),v=e.n(d),p=e(1),y=e.n(p),m=e(69);e.d(n,"a",function(){return k}),e.d(n,"b",function(){return g});var k=function(){function t(n){v()(this,t),this.name=n}return y()(t,[{key:"onMessage",value:function(t){throw new Error("Browser worker thread in state '"+this.name+"' cannot handle the received message ("+t.data.type+").")}},{key:"onError",value:function(t){console.error("Processing error on worker slave",t.error)}}]),t}(),g=function(t){function n(t,e,r){v()(this,n);var i=s()(this,(n.__proto__||u()(n)).call(this,"executing"));return i.callback=t,i.functionRegistry=e,i.worker=r,i}return h()(n,t),y()(n,[{key:"onMessage",value:function(t){var r=t.data;e.i(m.a)(r)?this.handleFunctionRequest(r):e.i(m.b)(r)?this.callback(void 0,r.result):e.i(m.c)(r)?this.callback(r.error,void 0):f()(n.prototype.__proto__||u()(n.prototype),"onMessage",this).call(this,t)}},{key:"onError",value:function(t){this.callback(t.error,void 0)}},{key:"handleFunctionRequest",value:function(t){var n=[],e=[],r=!0,o=!1,u=void 0;try{for(var a,s=i()(t.functionIds);!(r=(a=s.next()).done);r=!0){var c=a.value,f=this.functionRegistry.getDefinition(c);f?e.push(f):n.push(c)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}this.worker.postMessage(m.d.apply(void 0,[e].concat(n)))}}]),n}(k)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(69),s=e(100);e.d(n,"a",function(){return f});var c=0,f=function(){function t(n,e){i()(this,t),this.worker=n,this.functionLookupTable=e,this.id=++c,this.state=new s.a("default"),this.stopped=!1;var r=this;this.worker.addEventListener("message",function(){r.onWorkerMessage.apply(r,arguments)}),this.worker.addEventListener("error",function(){r.onError.apply(r,arguments)})}return u()(t,[{key:"initialize",value:function(){if("default"!==this.state.name)throw new Error("The browser worker thread can only be initialized if in state default but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.e)(this.id)),this.state=new s.a("idle")}},{key:"run",value:function(t,n){var r=this;if("idle"!==this.state.name)throw new Error("The browser worker thread can only execute a new task if in state idle but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.f)(t));var i=function(t,e){r.stopped?r.state=new s.a("stopped"):r.state=new s.a("idle"),n(t,e)};this.state=new s.b(i,this.functionLookupTable,this.worker)}},{key:"stop",value:function(){this.stopped||(this.sendMessage(e.i(a.g)()),this.stopped=!0,"executing"!==this.state.name&&(this.state=new s.a("stopped")))}},{key:"toString",value:function(){return"BrowserWorkerThread { id: "+this.id+", state: "+this.state.name}},{key:"onWorkerMessage",value:function(t){this.state.onMessage(t)}},{key:"onError",value:function(t){this.state.onError(t),this.state=new s.a("errored")}},{key:"sendMessage",value:function(t){this.worker.postMessage(t)}}]),t}()},function(t,n,e){"use strict";var r=e(76),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(57),f=e(58),l=e(36),h=e(23);e.d(n,"a",function(){return d});var d=function(){function t(n,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];u()(this,t),this.previousStream=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function t(){var n=this,e=void 0,t=void 0,r=void 0,i=new h.a(function(n,i,o){e=n,t=i,r=o});return this.previousStream.then(function(i){var o=n.options.scheduler.schedule({environment:n.environment,generator:new f.a(i),operations:n.operations,options:n.options}),u=h.a.fromTasks(o,[],l.a);u.subscribe(e,r,t)},r),new c.a(i,this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.previousStream,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.previousStream,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";function r(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=void 0;e instanceof Array?(a=void 0,r=e):a=e;var s=new o.a(new i.a(t,n,u.a.of(),r));return a?s.inEnvironment(a):s}var i=e(105),o=e(104),u=e(108);n.a=r},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(75),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(19),h=e(9),d=e(23);e.d(n,"a",function(){return v});var v=function(){function t(n){s()(this,t),this.state=n}return f()(t,[{key:"inEnvironment",value:function(n){var e=void 0;if("function"==typeof n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e=h.a.createUnchecked.apply(h.a,[n].concat(i))}else e=n;return new t(this.state.addEnvironment(e))}},{key:"map",value:function(t){return this._chain(h.a.createUnchecked(l.a.MAP),h.a.createUnchecked(t))}},{key:"reduce",value:function(t,n,e){var r=e||n,o=this._chain(h.a.createUnchecked(l.a.REDUCE,t),h.a.createUnchecked(n)).resolveChain();return d.a.transform(o,function(n){if(0===n.length)return t;var e=u()(n),o=e[0],a=e.slice(1),s=o,c=!0,f=!1,l=void 0;try{for(var h,d=i()(a);!(c=(h=d.next()).done);c=!0){var v=h.value;s=r(s,v)}}catch(t){f=!0,l=t}finally{try{!c&&d.return&&d.return()}finally{if(f)throw l}}return s})}},{key:"filter",value:function(t){return this._chain(h.a.createUnchecked(l.a.FILTER),h.a.createUnchecked(t))}},{key:"subscribe",value:function(t,n,e){return this.resolveChain().subscribe(t,n,e)}},{key:"then",value:function(t,n){return this.resolveChain().then(t,n)}},{key:"catch",value:function(t){return this.resolveChain().catch(t)}},{key:"resolveChain",value:function(){var t=this.state=this.state.resolve();return t.stream}},{key:"_chain",value:function(n,e){var r={iterator:n,iteratee:e};return new t(this.state.chainOperation(r)); | ||
}}]),t}()},function(t,n,e){"use strict";var r=e(76),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(57),f=e(23),l=e(36);e.d(n,"a",function(){return h});var h=function(){function t(n,e,r,i){u()(this,t),this.generator=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function(){var t=this.options.scheduler.schedule({environment:this.environment,generator:this.generator,operations:this.operations,options:this.options});return new c.a(f.a.fromTasks(t,[],l.a),this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.generator,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.generator,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(19),s=e(9);e.d(n,"a",function(){return c});var c=function(){function t(n,e,r){i()(this,t),this.start=n,this.end=e,this.step=r}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*this.step,i=this.start+t*r,o=Math.min(i+r,this.end);return e.serializeFunctionCall(s.a.createUnchecked(a.a.RANGE,i,o,this.step))}},{key:"length",get:function(){return Math.ceil((this.end-this.start)/this.step)}}],[{key:"create",value:function(n,e,r){if("undefined"==typeof e&&(e=n,n=0),"undefined"==typeof r&&(r=e<n?-1:1),0===r)throw new Error("Step size of zero is not allowed");return new t(n,e,r)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(19),s=e(9),c=e(16);e.d(n,"a",function(){return f});var f=function(){function t(n,e){i()(this,t),this.times=n,this.iteratee=e}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=t*n,i=Math.min(r+n,this.times),o=e.serializeFunctionCall(this.iteratee);return e.serializeFunctionCall(s.a.create(a.a.TIMES,r,i,o))}},{key:"length",get:function(){return this.times}}],[{key:"create",value:function(n,r){var i=void 0;return i=e.i(c.b)(r)||"function"==typeof r?s.a.createUnchecked(r):s.a.create(a.a.IDENTITY,r),new t(n,i)}}]),t}()},function(t,n,e){"use strict";var r=e(71),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(9);e.d(n,"a",function(){return f});var f=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u()(this,t),this.environments=n}return s()(t,[{key:"add",value:function(n){var e=this.environments.slice();return n instanceof c.a||!(this.environments.length>0)||this.environments[this.environments.length-1]instanceof c.a?e.push(n):e[e.length-1]=i()({},e[e.length-1],n),new t(e)}},{key:"toJSON",value:function(t){return this.environments.map(function(n){return n instanceof c.a?t.serializeFunctionCall(n):n})}}],[{key:"of",value:function(n){var e=t.EMPTY;return n?e.add(n):e}}]),t}();f.EMPTY=new f},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(9),s=e(19),c=e(36),f=e(35);e.d(n,"a",function(){return l});var l=function(){function t(){i()(this,t)}return u()(t,[{key:"schedule",value:function(t){var n=this.getTaskDefinitions(t);return n.map(function(n){return t.options.threadPool.run(n)})}},{key:"getTaskDefinitions",value:function(t){var n=this.getScheduling(t.generator.length,t.options),r=t.options.functionCallSerializer,i=t.environment.toJSON(r),o=this.serializeOperations(t.operations,r),u=[s.a.PARALLEL_JOB_EXECUTOR].concat(e.i(c.b)(o.map(function(t){return[t.iteratee.functionId,t.iterator.functionId]})));i.forEach(function(t){e.i(f.a)(t)&&u.push(t.functionId)});for(var l=[],h=0;h<n.numberOfTasks;++h){var d=t.generator.serializeSlice(h,n.valuesPerTask,r),v={environments:i,generator:d,operations:o,taskIndex:h,valuesPerTask:n.valuesPerTask},p={main:r.serializeFunctionCall(a.a.createUnchecked(s.a.PARALLEL_JOB_EXECUTOR,v)),taskIndex:h,usedFunctionIds:[d.functionId].concat(u),valuesPerTask:n.valuesPerTask};l.push(p)}return l}},{key:"serializeOperations",value:function(t,n){return t.map(function(t){return{iteratee:n.serializeFunctionCall(t.iteratee),iterator:n.serializeFunctionCall(t.iterator)}})}}]),t}()},function(t,n,e){"use strict";var r=e(38),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){u()(this,t),this.promise=i.a.resolve(n)}return s()(t,[{key:"subscribe",value:function(t,n,e){return(e||n)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}}]),t}()},function(t,n,e){"use strict";var r=e(17),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(23);e.d(n,"a",function(){return f});var f=function(){function t(n,e,r){var o=this;u()(this,t),this.failed=!1,this.nextSubResultIndex=0,this.tasks=n,this.joiner=r,this.endResult=e,this.pending=n.length,this.subResults=new Array(this.tasks.length),this.innerStream=new c.a(function(t,n,e){o.next=t,o.resolve=n,o.reject=e});var a=!0,s=!1,f=void 0;try{for(var l,h=i()(n);!(a=(l=h.next()).done);a=!0){var d=l.value;this.registerTaskHandler(d)}}catch(t){s=!0,f=t}finally{try{!a&&h.return&&h.return()}finally{if(s)throw f}}}return s()(t,[{key:"subscribe",value:function(t,n,e){return this.innerStream.subscribe(t,n,e),this}},{key:"then",value:function(t,n){return this.innerStream.then(t,n)}},{key:"catch",value:function(t){return this.innerStream.catch(t)}},{key:"registerTaskHandler",value:function(t){var n=this;t.then(function(e){return n._taskCompleted(e,t.definition)},function(t){return n._taskFailed(t)})}},{key:"_taskCompleted",value:function(t,n){if(0===this.pending)throw new Error("Stream already resolved but taskCompleted called one more time");--this.pending,this.tasks[n.taskIndex]=void 0,this.subResults[n.taskIndex]=t,this.failed||(this.next(t,n.taskIndex,n.valuesPerTask),this.nextSubResultIndex===n.taskIndex&&this.joinSubResults(),0===this.pending&&(this.resolve(this.endResult),this.endResult=void 0))}},{key:"joinSubResults",value:function(){for(;this.nextSubResultIndex<this.subResults.length&&"undefined"!=typeof this.subResults[this.nextSubResultIndex];){var t=this.subResults[this.nextSubResultIndex];this.subResults[this.nextSubResultIndex]=void 0,this.endResult=this.joiner.apply(void 0,[this.endResult,t]),++this.nextSubResultIndex}}},{key:"_taskFailed",value:function(t){if(this.failed!==!0){this.failed=!0;for(var n=0;n<this.tasks.length;++n){var e=this.tasks[n];"undefined"!=typeof e&&e.cancel()}this.reject(t)}}}]),t}()},function(t,n,e){"use strict";var r=e(38),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){var e=this;u()(this,t),this.definition=n,this.isCancellationRequested=!1,this.isCanceled=!1,this.promise=new i.a(function(t,n){e.resolvePromise=t,e.rejectPromise=n})}return s()(t,[{key:"resolve",value:function(t){this.isCancellationRequested?this.resolveCancelled():this.resolvePromise(t)}},{key:"resolveCancelled",value:function(){this.isCanceled=!0,this.reject("Task has been canceled")}},{key:"reject",value:function(t){this.rejectPromise(t)}},{key:"then",value:function(t,n){return n?this.promise.then(t,n):this.promise.then(t)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"cancel",value:function(){this.isCancellationRequested=!0}}]),t}()},function(t,n,e){"use strict";function r(t){if(t.hasOwnProperty("name"))return t.name;var n=t.toString();return n.substring(n.indexOf("function")+9,n.indexOf("(")).trim()}n.a=r},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(){i()(this,t),this.data={}}return u()(t,[{key:"get",value:function(t){var n=this.toInternalKey(t);return this.has(t)?this.data[n]:void 0}},{key:"has",value:function(t){return this.hasOwnProperty.call(this.data,this.toInternalKey(t))}},{key:"set",value:function(t,n){this.data[this.toInternalKey(t)]=n}},{key:"clear",value:function(){this.data={}}},{key:"toInternalKey",value:function(t){return"@"+t}}]),t}()},function(t,n,e){t.exports={default:e(125),__esModule:!0}},function(t,n,e){t.exports={default:e(127),__esModule:!0}},function(t,n,e){t.exports={default:e(128),__esModule:!0}},function(t,n,e){t.exports={default:e(129),__esModule:!0}},function(t,n,e){t.exports={default:e(131),__esModule:!0}},function(t,n,e){t.exports={default:e(133),__esModule:!0}},function(t,n,e){t.exports={default:e(134),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(37),o=r(i),u=e(117),a=r(u);n.default=function t(n,e,r){null===n&&(n=Function.prototype);var i=(0,a.default)(n,e);if(void 0===i){var u=(0,o.default)(n);return null===u?void 0:t(u,e,r)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(r)}},function(t,n,e){e(32),e(157),t.exports=e(2).Array.from},function(t,n,e){e(53),e(32),t.exports=e(156)},function(t,n,e){var r=e(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,n,e){e(159),t.exports=e(2).Object.assign},function(t,n,e){e(160);var r=e(2).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(161);var r=e(2).Object;t.exports=function(t,n){return r.getOwnPropertyDescriptor(t,n)}},function(t,n,e){e(162);var r=e(2).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(163),t.exports=e(2).Object.getPrototypeOf},function(t,n,e){e(164),t.exports=e(2).Object.setPrototypeOf},function(t,n,e){e(93),e(32),e(53),e(165),t.exports=e(2).Promise},function(t,n,e){e(166),e(93),e(167),e(168),t.exports=e(2).Symbol},function(t,n,e){e(32),e(53),t.exports=e(51).f("iterator")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(12),i=e(49),o=e(155);t.exports=function(t){return function(n,e,u){var a,s=r(n),c=i(s.length),f=o(u,c);if(t&&e!=e){for(;c>f;)if(a=s[f++],a!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){"use strict";var r=e(6),i=e(18);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(22),i=e(44),o=e(27);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),s=o.f,c=0;a.length>c;)s.call(t,u=a[c++])&&n.push(u);return n}},function(t,n,e){var r=e(14),i=e(83),o=e(82),u=e(7),a=e(49),s=e(52),c={},f={},n=t.exports=function(t,n,e,l,h){var d,v,p,y,m=h?function(){return t}:s(t),k=r(e,l,n?2:1),g=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=a(t.length);d>g;g++)if(y=n?k(u(v=t[g])[0],v[1]):k(t[g]),y===c||y===f)return y}else for(p=m.call(t);!(v=p.next()).done;)if(y=i(p,k,v.value,n),y===c||y===f)return y};n.BREAK=c,n.RETURN=f},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(20);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){"use strict";var r=e(42),i=e(18),o=e(28),u={};e(10)(u,e(4)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(22),i=e(12);t.exports=function(t,n){for(var e,o=i(t),u=r(o),a=u.length,s=0;a>s;)if(o[e=u[s++]]===n)return e}},function(t,n,e){var r=e(31)("meta"),i=e(11),o=e(15),u=e(6).f,a=0,s=Object.isExtensible||function(){return!0},c=!e(13)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!s(t))return"F";if(!n)return"E";f(t)}return t[r].i},h=function(t,n){if(!o(t,r)){if(!s(t))return!0;if(!n)return!1;f(t)}return t[r].w},d=function(t){return c&&v.NEED&&s(t)&&!o(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:d}},function(t,n,e){var r=e(3),i=e(91).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,s="process"==e(20)(u);t.exports=function(){var t,n,e,c=function(){var r,i;for(s&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(s)e=function(){u.nextTick(c)};else if(o){var f=!0,l=document.createTextNode("");new o(c).observe(l,{characterData:!0}),e=function(){l.data=f=!f}}else if(a&&a.resolve){var h=a.resolve();e=function(){h.then(c)}}else e=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};n&&(n.next=i),t||(t=i,e()),n=i}}},function(t,n,e){"use strict";var r=e(22),i=e(44),o=e(27),u=e(29),a=e(81),s=Object.assign;t.exports=!s||e(13)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=u(t),s=arguments.length,c=1,f=i.f,l=o.f;s>c;)for(var h,d=a(arguments[c++]),v=f?r(d).concat(f(d)):r(d),p=v.length,y=0;p>y;)l.call(d,h=v[y++])&&(e[h]=d[h]);return e}:s},function(t,n,e){var r=e(6),i=e(7),o=e(22);t.exports=e(5)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),a=u.length,s=0;a>s;)r.f(t,e=u[s++],n[e]);return t}},function(t,n,e){var r=e(10);t.exports=function(t,n,e){for(var i in n)e&&t[i]?t[i]=n[i]:r(t,i,n[i]);return t}},function(t,n,e){var r=e(11),i=e(7),o=function(t,n){if(i(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(14)(Function.call,e(43).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,n,e){"use strict";var r=e(3),i=e(2),o=e(6),u=e(5),a=e(4)("species");t.exports=function(t){var n="function"==typeof i[t]?i[t]:r[t];u&&n&&!n[a]&&o.f(n,a,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(7),i=e(24),o=e(4)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[o])?n:i(e)}},function(t,n,e){var r=e(48),i=e(39);t.exports=function(t){return function(n,e){var o,u,a=String(i(n)),s=r(e),c=a.length;return s<0||s>=c?t?"":void 0:(o=a.charCodeAt(s),o<55296||o>56319||s+1===c||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):o:t?a.slice(s,s+2):(o-55296<<10)+(u-56320)+65536)}}},function(t,n,e){var r=e(48),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(7),i=e(52);t.exports=e(2).getIterator=function(t){var n=i(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return r(n.call(t))}},function(t,n,e){"use strict";var r=e(14),i=e(8),o=e(29),u=e(83),a=e(82),s=e(49),c=e(138),f=e(52);i(i.S+i.F*!e(85)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,i,l,h=o(t),d="function"==typeof this?this:Array,v=arguments.length,p=v>1?arguments[1]:void 0,y=void 0!==p,m=0,k=f(h);if(y&&(p=r(p,v>2?arguments[2]:void 0,2)),void 0==k||d==Array&&a(k))for(n=s(h.length),e=new d(n);n>m;m++)c(e,m,y?p(h[m],m):h[m]);else for(l=k.call(h),e=new d;!(i=l.next()).done;m++)c(e,m,y?u(l,p,[i.value,m],!0):i.value);return e.length=m,e}})},function(t,n,e){"use strict";var r=e(135),i=e(144),o=e(21),u=e(12);t.exports=e(84)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):"keys"==n?i(0,e):"values"==n?i(0,t[e]):i(0,[e,t[e]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(8);r(r.S+r.F,"Object",{assign:e(148)})},function(t,n,e){var r=e(8);r(r.S,"Object",{create:e(42)})},function(t,n,e){var r=e(12),i=e(43).f;e(45)("getOwnPropertyDescriptor",function(){return function(t,n){return i(r(t),n)}})},function(t,n,e){e(45)("getOwnPropertyNames",function(){return e(86).f})},function(t,n,e){var r=e(29),i=e(88);e(45)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,n,e){var r=e(8);r(r.S,"Object",{setPrototypeOf:e(151).set})},function(t,n,e){"use strict";var r,i,o,u=e(26),a=e(3),s=e(14),c=e(79),f=e(8),l=e(11),h=e(24),d=e(136),v=e(140),p=e(153),y=e(91).set,m=e(147)(),k="Promise",g=a.TypeError,b=a.process,_=a[k],b=a.process,w="process"==c(b),x=function(){},O=!!function(){try{var t=_.resolve(1),n=(t.constructor={})[e(4)("species")]=function(t){t(x,x)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then(x)instanceof n}catch(t){}}(),P=function(t,n){return t===n||t===_&&n===o},S=function(t){var n;return!(!l(t)||"function"!=typeof(n=t.then))&&n},I=function(t){return P(_,t)?new E(t):new i(t)},E=i=function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw g("Bad Promise constructor");n=t,e=r}),this.resolve=h(n),this.reject=h(e)},T=function(t){try{t()}catch(t){return{error:t}}},j=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,i=1==t._s,o=0,u=function(n){var e,o,u=i?n.ok:n.fail,a=n.resolve,s=n.reject,c=n.domain;try{u?(i||(2==t._h&&C(t),t._h=1),u===!0?e=r:(c&&c.enter(),e=u(r),c&&c.exit()),e===n.promise?s(g("Promise-chain cycle")):(o=S(e))?o.call(e,a,s):a(e)):s(r)}catch(t){s(t)}};e.length>o;)u(e[o++]);t._c=[],t._n=!1,n&&!t._h&&M(t)})}},M=function(t){y.call(a,function(){var n,e,r,i=t._v;if(F(t)&&(n=T(function(){w?b.emit("unhandledRejection",i,t):(e=a.onunhandledrejection)?e({promise:t,reason:i}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=w||F(t)?2:1),t._a=void 0,n)throw n.error})},F=function(t){if(1==t._h)return!1;for(var n,e=t._a||t._c,r=0;e.length>r;)if(n=e[r++],n.fail||!F(n.promise))return!1;return!0},C=function(t){y.call(a,function(){var n;w?b.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},R=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),j(n,!0))},A=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw g("Promise can't be resolved itself");(n=S(t))?m(function(){var r={_w:e,_d:!1};try{n.call(t,s(A,r,1),s(R,r,1))}catch(t){R.call(r,t)}}):(e._v=t,e._s=1,j(e,!1))}catch(t){R.call({_w:e,_d:!1},t)}}};O||(_=function(t){d(this,_,k,"_h"),h(t),r.call(this);try{t(s(A,this,1),s(R,this,1))}catch(t){R.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e(150)(_.prototype,{then:function(t,n){var e=I(p(this,_));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=w?b.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&j(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),E=function(){var t=new r;this.promise=t,this.resolve=s(A,t,1),this.reject=s(R,t,1)}),f(f.G+f.W+f.F*!O,{Promise:_}),e(28)(_,k),e(152)(k),o=e(2)[k],f(f.S+f.F*!O,k,{reject:function(t){var n=I(this),e=n.reject;return e(t),n.promise}}),f(f.S+f.F*(u||!O),k,{resolve:function(t){if(t instanceof _&&P(t.constructor,this))return t;var n=I(this),e=n.resolve;return e(t),n.promise}}),f(f.S+f.F*!(O&&e(85)(function(t){_.all(t).catch(x)})),k,{all:function(t){var n=this,e=I(n),r=e.resolve,i=e.reject,o=T(function(){var e=[],o=0,u=1;v(t,!1,function(t){var a=o++,s=!1;e.push(void 0),u++,n.resolve(t).then(function(t){s||(s=!0,e[a]=t,--u||r(e))},i)}),--u||r(e)});return o&&i(o.error),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,i=T(function(){v(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return i&&r(i.error),e.promise}})},function(t,n,e){"use strict";var r=e(3),i=e(15),o=e(5),u=e(8),a=e(90),s=e(146).KEY,c=e(13),f=e(47),l=e(28),h=e(31),d=e(4),v=e(51),p=e(50),y=e(145),m=e(139),k=e(142),g=e(7),b=e(12),_=e(30),w=e(18),x=e(42),O=e(86),P=e(43),S=e(6),I=e(22),E=P.f,T=S.f,j=O.f,M=r.Symbol,F=r.JSON,C=F&&F.stringify,R="prototype",A=d("_hidden"),z=d("toPrimitive"),L={}.propertyIsEnumerable,W=f("symbol-registry"),N=f("symbols"),D=f("op-symbols"),U=Object[R],J="function"==typeof M,q=r.QObject,B=!q||!q[R]||!q[R].findChild,K=o&&c(function(){return 7!=x(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=E(U,n);r&&delete U[n],T(t,n,e),r&&t!==U&&T(U,n,r)}:T,G=function(t){var n=N[t]=x(M[R]);return n._k=t,n},H=J&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},Y=function(t,n,e){return t===U&&Y(D,n,e),g(t),n=_(n,!0),g(e),i(N,n)?(e.enumerable?(i(t,A)&&t[A][n]&&(t[A][n]=!1),e=x(e,{enumerable:w(0,!1)})):(i(t,A)||T(t,A,w(1,{})),t[A][n]=!0),K(t,n,e)):T(t,n,e)},V=function(t,n){g(t);for(var e,r=m(n=b(n)),i=0,o=r.length;o>i;)Y(t,e=r[i++],n[e]);return t},X=function(t,n){return void 0===n?x(t):V(x(t),n)},Q=function(t){var n=L.call(this,t=_(t,!0));return!(this===U&&i(N,t)&&!i(D,t))&&(!(n||!i(this,t)||!i(N,t)||i(this,A)&&this[A][t])||n)},Z=function(t,n){if(t=b(t),n=_(n,!0),t!==U||!i(N,n)||i(D,n)){var e=E(t,n);return!e||!i(N,n)||i(t,A)&&t[A][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=j(b(t)),r=[],o=0;e.length>o;)i(N,n=e[o++])||n==A||n==s||r.push(n);return r},tt=function(t){for(var n,e=t===U,r=j(e?D:b(t)),o=[],u=0;r.length>u;)!i(N,n=r[u++])||e&&!i(U,n)||o.push(N[n]);return o};J||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===U&&n.call(D,e),i(this,A)&&i(this[A],t)&&(this[A][t]=!1),K(this,t,w(1,e))};return o&&B&&K(U,t,{configurable:!0,set:n}),G(t)},a(M[R],"toString",function(){return this._k}),P.f=Z,S.f=Y,e(87).f=O.f=$,e(27).f=Q,e(44).f=tt,o&&!e(26)&&a(U,"propertyIsEnumerable",Q,!0),v.f=function(t){return G(d(t))}),u(u.G+u.W+u.F*!J,{Symbol:M});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var nt=I(d.store),et=0;nt.length>et;)p(nt[et++]);u(u.S+u.F*!J,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=M(t)},keyFor:function(t){if(H(t))return y(W,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),u(u.S+u.F*!J,"Object",{create:X,defineProperty:Y,defineProperties:V,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),F&&u(u.S+u.F*(!J||c(function(){var t=M();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return n=r[1],"function"==typeof n&&(e=n),!e&&k(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!H(n))return n}),r[1]=n,C.apply(F,r)}}}),M[R][z]||e(10)(M[R],z,M[R].valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(50)("asyncIterator")},function(t,n,e){e(50)("observable")},function(t,n,e){t.exports=function(){return new Worker(e.p+"worker-slave.parallel.js")}}]))}); | ||
//# sourceMappingURL=browser.parallel.js.map |
@@ -37,2 +37,10 @@ /** | ||
scheduler?: IParallelJobScheduler; | ||
/** | ||
* Allow the {@link IParallelOptions.scheduler} to create more than {@link IParallelOptions.maxConcurrency} tasks | ||
* for a single job. By default this is desired but might increases computation time if the initialization of the environment | ||
* is very compute intensive (compared to the computation needed to transform the elements). | ||
* This option is only a hint for the scheduler. Actual implementations may ignore the option at all or interpret it less strict. | ||
* @default true | ||
*/ | ||
oversubscribe?: boolean; | ||
} | ||
@@ -47,2 +55,3 @@ /** | ||
scheduler: IParallelJobScheduler; | ||
oversubscribe: boolean; | ||
} |
{ | ||
"name": "parallel-es", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Simple parallelization for EcmaScript", | ||
@@ -5,0 +5,0 @@ "main": "./dist/node.parallel.js", |
@@ -28,2 +28,3 @@ /** | ||
maxConcurrencyLevel, | ||
oversubscribe: true, | ||
scheduler: new DefaultParallelScheduler(), | ||
@@ -30,0 +31,0 @@ threadPool |
@@ -45,2 +45,11 @@ /** | ||
scheduler?: IParallelJobScheduler; | ||
/** | ||
* Allow the {@link IParallelOptions.scheduler} to create more than {@link IParallelOptions.maxConcurrency} tasks | ||
* for a single job. By default this is desired but might increases computation time if the initialization of the environment | ||
* is very compute intensive (compared to the computation needed to transform the elements). | ||
* This option is only a hint for the scheduler. Actual implementations may ignore the option at all or interpret it less strict. | ||
* @default true | ||
*/ | ||
oversubscribe?: boolean; | ||
} | ||
@@ -56,2 +65,3 @@ | ||
scheduler: IParallelJobScheduler; | ||
oversubscribe: boolean; | ||
} |
@@ -14,3 +14,4 @@ import {IDefaultInitializedParallelOptions} from "../parallel-options"; | ||
public getScheduling(totalNumberOfValues: number, options: IDefaultInitializedParallelOptions): IParallelTaskScheduling { | ||
let itemsPerTask = totalNumberOfValues / (options.maxConcurrencyLevel * 4); | ||
const maxNumberOfTasks = options.oversubscribe === false ? options.maxConcurrencyLevel : options.maxConcurrencyLevel * 4; | ||
let itemsPerTask = totalNumberOfValues / maxNumberOfTasks; | ||
@@ -17,0 +18,0 @@ if (options.minValuesPerTask) { |
@@ -24,5 +24,6 @@ import {DependentParallelChainState} from "../../../../src/common/parallel/chain/dependent-parallel-chain-state"; | ||
functionCallSerializer: undefined as any, | ||
maxConcurrencyLevel: 2, | ||
scheduler, | ||
threadPool: undefined as any | ||
maxConcurrencyLevel: 2, | ||
oversubscribe: true, | ||
scheduler, | ||
threadPool: undefined as any | ||
}; | ||
@@ -29,0 +30,0 @@ |
@@ -22,2 +22,3 @@ import {IParallelGenerator} from "../../../../src/common/parallel/generator/parallel-generator"; | ||
maxConcurrencyLevel: 2, | ||
oversubscribe: true, | ||
scheduler: undefined as any, | ||
@@ -24,0 +25,0 @@ threadPool: undefined as any |
@@ -34,2 +34,3 @@ import {IParallelGenerator} from "../../../../src/common/parallel/generator/parallel-generator"; | ||
maxConcurrencyLevel: 2, | ||
oversubscribe: true, | ||
scheduler: undefined as any, | ||
@@ -36,0 +37,0 @@ threadPool: undefined as any |
@@ -25,2 +25,3 @@ import {IDefaultInitializedParallelOptions} from "../../../../src/common/parallel"; | ||
maxConcurrencyLevel: 2, | ||
oversubscribe: true, | ||
scheduler, | ||
@@ -27,0 +28,0 @@ threadPool: undefined as any |
@@ -19,2 +19,3 @@ import {ScheduledParallelChainState} from "../../../../src/common/parallel/chain/scheduled-parallel-chain-state"; | ||
maxConcurrencyLevel: 2, | ||
oversubscribe: true, | ||
scheduler: undefined as any, | ||
@@ -21,0 +22,0 @@ threadPool: undefined as any |
@@ -37,2 +37,3 @@ import {IParallel} from "../../../src/common/parallel/parallel"; | ||
maxConcurrencyLevel, | ||
oversubscribe: true, | ||
threadPool, | ||
@@ -152,2 +153,3 @@ scheduler: undefined as any | ||
maxValuesPerTask: 2, | ||
oversubscribe: true, | ||
threadPool, | ||
@@ -179,2 +181,3 @@ scheduler: undefined | ||
maxValuesPerTask: 2, | ||
oversubscribe: true, | ||
threadPool, | ||
@@ -208,2 +211,3 @@ scheduler: undefined | ||
maxValuesPerTask: 2, | ||
oversubscribe: true, | ||
threadPool, | ||
@@ -210,0 +214,0 @@ scheduler: undefined |
@@ -43,2 +43,3 @@ import {IDefaultInitializedParallelOptions} from "../../../../src/common/parallel/parallel-options"; | ||
maxConcurrencyLevel: 2, | ||
oversubscribe: true, | ||
scheduler, | ||
@@ -45,0 +46,0 @@ threadPool |
@@ -10,3 +10,9 @@ import {IDefaultInitializedParallelOptions} from "../../../../src/common/parallel/parallel-options"; | ||
scheduler = new DefaultParallelScheduler(); | ||
options = { functionCallSerializer: undefined as any, maxConcurrencyLevel: 2, scheduler, threadPool: undefined as any }; | ||
options = { | ||
functionCallSerializer: undefined as any, | ||
maxConcurrencyLevel: 2, | ||
oversubscribe: true, | ||
scheduler, | ||
threadPool: undefined as any | ||
}; | ||
}); | ||
@@ -79,3 +85,15 @@ | ||
}); | ||
it("sets valuesPerTask not larger than options.maxConcurrencyLevel if oversubscribe is false", function () { | ||
// arrange | ||
options.oversubscribe = false; | ||
// act | ||
const scheduling = scheduler.getScheduling(20, options); | ||
// assert | ||
expect(scheduling.numberOfTasks).toBe(2); | ||
expect(scheduling.valuesPerTask).toBe(10); | ||
}); | ||
}); | ||
}); |
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 not supported yet
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
Sorry, the diff of this file is not supported yet
2468327
11921