async-array-buffer-worker
Advanced tools
Comparing version 3.0.19 to 3.0.20
@@ -1,1 +0,1 @@ | ||
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},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,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=60)}([function(t,e,n){var r=n(19)("wks"),o=n(18),i=n(1).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){!function(t,e,n,r){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n,r=r&&r.hasOwnProperty("default")?r.default:r;var o=function(t,e){return void 0===e?t:e.reduce(function(t,e){if("capitalize"===e){var o=t.charAt(0).toUpperCase(),i=t.slice(1);return""+o+i}return"dashify"===e?n(t):"prependIndefiniteArticle"===e?r(t)+" "+t:t},t)},i=function(t,n){for(var r=/\${([^.}]+)((\.[^(]+\(\))*)}/g,i=[],u=r.exec(t);null!==u;){var c={modifiers:[],name:u[1]};if(void 0!==u[3])for(var a=/\.[^(]+\(\)/g,s=a.exec(u[2]);null!==s;)c.modifiers.push(s[0].slice(1,-2)),s=a.exec(u[2]);i.push(c),u=r.exec(t)}var f=i.reduce(function(t,r){return t.map(function(t){return"string"==typeof t?t.split(function(t){var e=t.name+t.modifiers.map(function(t){return"\\."+t+"\\(\\)"}).join("");return new RegExp("\\$\\{"+e+"}","g")}(r)).reduce(function(t,i,u){return 0===u?[i]:r.name in n?[].concat(e(t),[o(n[r.name],r.modifiers),i]):[].concat(e(t),[function(t){return o(t[r.name],r.modifiers)},i])},[]):[t]}).reduce(function(t,n){return[].concat(e(t),e(n))},[])},[t]);return function(t){return f.reduce(function(n,r){return[].concat(e(n),"string"==typeof r?[r]:[r(t)])},[]).join("")}};t.compile=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0===t.code?void 0:i(t.code,e),r=void 0===t.message?void 0:i(t.message,e);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments[1],i=void 0===o&&(e instanceof Error||void 0!==e.code&&"Exception"===e.code.slice(-9))?{cause:e,missingParameters:{}}:{cause:o,missingParameters:e},u=i.cause,c=i.missingParameters,a=void 0===r?new Error:new Error(r(c));return null!==u&&(a.cause=u),void 0!==n&&(a.code=n(c)),void 0!==t.status&&(a.status=t.status),a}},Object.defineProperty(t,"__esModule",{value:!0})}(e,n(59),n(31),n(30))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=!n(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(5),o=n(51),i=n(50),u=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(6),o=n(10);t.exports=n(4)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(19)("keys"),o=n(18);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports={version:"2.5.0"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(13);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(6).f,o=n(3),i=n(0)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){var r=n(14),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(43),o=n(13);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(11),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(52);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(1),o=n(12),i=n(25),u=n(7),c=function(t,e,n){var a,s,f,l=t&c.F,p=t&c.G,d=t&c.S,v=t&c.P,h=t&c.B,y=t&c.W,m=p?o:o[e]||(o[e]={}),g=m.prototype,x=p?r:d?r[e]:(r[e]||{}).prototype;for(a in p&&(n=e),n)(s=!l&&x&&void 0!==x[a])&&a in m||(f=s?x[a]:n[a],m[a]=p&&"function"!=typeof x[a]?n[a]:h&&s?i(f,r):y&&x[a]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[a]=f,t&c.R&&g&&!g[a]&&u(g,a,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){!function(t){"use strict";var e=new WeakMap,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=function(t){var r=e.get(t),o=void 0===r||r>2147483648?0:r+1;if(t.size<1073741824){for(;t.has(o);)o=Math.floor(2147483648*Math.random());return e.set(t,o),o}if(t.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;t.has(o);)o=Math.floor(Math.random()*n);return e.set(t,o),o};t.addUniqueNumber=function(t){var e=r(t);return t.add(e),e},t.generateUniqueNumber=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){"use strict";n.r(e);Object.setPrototypeOf||Array;Object.assign;function r(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var o=n(2),i=-32603,u=-32602,c=-32601,a=Object(o.compile)({message:'The requested method called "${method}" is not supported.',status:c}),s=Object(o.compile)({message:'The handler of the method called "${method}" returned no required result.',status:i}),f=Object(o.compile)({message:'The handler of the method called "${method}" returned an unexpected result.',status:i}),l=Object(o.compile)({message:'The specified parameter called "portId" with the given value "${portId}" does not identify a port connected to this worker.',status:u}),p=function(t,e,n){return function(o){var i,u,c,l,p=o.data,d=p.id,v=p.method,h=p.params;return i=void 0,u=void 0,l=function(){var o,i,u,c,l,p,y,m,g,x,b,w,O,_,j,M,P,A,E,S;return r(this,function(r){switch(r.label){case 0:o=e[v],r.label=1;case 1:if(r.trys.push([1,8,,9]),void 0===o)throw a({method:v});if(void 0===(i=o(h)))throw s({method:v});if(null!==d)return[3,2];if(void 0!==i.result)throw f({method:v});return[3,7];case 2:return i instanceof Promise?[4,i]:[3,5];case 3:if(void 0===(u=r.sent()).result)throw f({method:v});return x=(c=u).result,l=c.transferables,w=void 0===l?[]:l,y=(p=t).postMessage,m=[{id:d,result:x}],[4,n];case 4:return y.apply(p,m.concat([r.sent()?w:[]])),[3,7];case 5:if(void 0===i.result)throw f({method:v});return x=(g=i).result,b=g.transferables,w=void 0===b?[]:b,_=(O=t).postMessage,j=[{id:d,result:x}],[4,n];case 6:_.apply(O,j.concat([r.sent()?w:[]])),r.label=7;case 7:return[3,9];case 8:return M=r.sent(),A=(P=M).message,E=P.status,S=void 0===E?-32603:E,t.postMessage({error:{code:S,message:A},id:d}),[3,9];case 9:return[2]}})},new((c=void 0)||(c=Promise))(function(t,e){function n(t){try{o(l.next(t))}catch(t){e(t)}}function r(t){try{o(l.throw(t))}catch(t){e(t)}}function o(e){e.done?t(e.value):new c(function(t){t(e.value)}).then(n,r)}o((l=l.apply(i,u||[])).next())})}},d=n(27),v=new Map,h=new Promise(function(t){var e=new ArrayBuffer(0),n=new MessageChannel,r=n.port1,o=n.port2;r.onmessage=function(e){var n=e.data;return t(null!==n)},o.postMessage(e,[e])});n.d(e,"createWorker",function(){return y});var y=function(t,e){var n,r,o=(n=y,r=e,Object.assign({},r,{connect:function(t){var e=t.port;e.start();var o=n(e,r),i=Object(d.generateUniqueNumber)(v);return v.set(i,function(){o(),e.close(),v.delete(i)}),{result:i}},disconnect:function(t){var e=t.portId,n=v.get(e);if(void 0===n)throw l({portId:e.toString()});return n(),{result:null}}})),i=p(t,o,h);return t.addEventListener("message",i),function(){return t.removeEventListener("message",i)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.allocate=(t=>new ArrayBuffer(t))},function(t,e){var n=function(t){var e,n,r=/\w+/.exec(t);if(!r)return"an";var o=(n=r[0]).toLowerCase(),i=["honest","hour","hono"];for(e in i)if(0==o.indexOf(i[e]))return"an";if(1==o.length)return"aedhilmnorsx".indexOf(o)>=0?"an":"a";if(n.match(/(?!FJO|[HLMNS]Y.|RY[EO]|SQU|(F[LR]?|[HL]|MN?|N|RH?|S[CHKLMNPTVW]?|X(YL)?)[AEIOU])[FHLMNRSX][A-Z]/))return"an";var u=[/^e[uw]/,/^onc?e\b/,/^uni([^nmd]|mo)/,/^u[bcfhjkqrst][aeiou]/];for(e=0;e<u.length;e++)if(o.match(u[e]))return"a";return n.match(/^U[NK][AIEO]/)?"a":n==n.toUpperCase()?"aedhilmnorsx".indexOf(o[0])>=0?"an":"a":"aeiou".indexOf(o[0])>=0?"an":o.match(/^y(b[lor]|cl[ea]|fere|gg|p[ios]|rou|tt)/)?"an":"a"};void 0!==t&&void 0!==t.exports?t.exports=n:window.indefiniteArticle=n},function(t,e,n){"use strict";t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("expected a string");return t.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\W/g,t=>/[À-ž]/.test(t)?t:"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,t=>e&&e.condense?"-":t).toLowerCase()}},function(t,e,n){var r=n(0)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e,n){var r=n(21),o=n(0)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var r=n(33),o=n(0)("iterator"),i=n(9);t.exports=n(12).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(6),o=n(10);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(9),o=n(0)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(5);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(25),o=n(26),i=n(15),u=n(37),c=n(36),a=n(20),s=n(35),f=n(34);o(o.S+o.F*!n(32)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=i(t),d="function"==typeof this?this:Array,v=arguments.length,h=v>1?arguments[1]:void 0,y=void 0!==h,m=0,g=f(p);if(y&&(h=r(h,v>2?arguments[2]:void 0,2)),void 0==g||d==Array&&c(g))for(n=new d(e=a(p.length));e>m;m++)s(n,m,y?h(p[m],m):p[m]);else for(l=g.call(p),n=new d;!(o=l.next()).done;m++)s(n,m,y?u(l,h,[o.value,m],!0):o.value);return n.length=m,n}})},function(t,e,n){var r=n(3),o=n(15),i=n(8)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(14),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(22),o=n(20),i=n(41);t.exports=function(t){return function(e,n,u){var c,a=r(e),s=o(a.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(21);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(3),o=n(22),i=n(42)(!1),u=n(8)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,s=[];for(n in c)n!=u&&r(c,n)&&s.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(44),o=n(17);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(6),o=n(5),i=n(45);t.exports=n(4)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,a=0;c>a;)r.f(t,n=u[a++],e[n]);return t}},function(t,e,n){var r=n(5),o=n(46),i=n(17),u=n(8)("IE_PROTO"),c=function(){},a=function(){var t,e=n(23)("iframe"),r=i.length;for(e.style.display="none",n(40).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e,n){"use strict";var r=n(47),o=n(10),i=n(16),u={};n(7)(u,n(0)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){t.exports=n(7)},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){t.exports=!n(4)&&!n(24)(function(){return 7!=Object.defineProperty(n(23)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=!0},function(t,e,n){"use strict";var r=n(53),o=n(26),i=n(49),u=n(7),c=n(3),a=n(9),s=n(48),f=n(16),l=n(39),p=n(0)("iterator"),d=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,h,y,m,g){s(n,e,h);var x,b,w,O=function(t){if(!d&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",j="values"==y,M=!1,P=t.prototype,A=P[p]||P["@@iterator"]||y&&P[y],E=A||O(y),S=y?j?O("entries"):E:void 0,T="Array"==e&&P.entries||A;if(T&&(w=l(T.call(new t)))!==Object.prototype&&w.next&&(f(w,_,!0),r||c(w,p)||u(w,p,v)),j&&A&&"values"!==A.name&&(M=!0,E=function(){return A.call(this)}),r&&!g||!d&&!M&&P[p]||u(P,p,E),a[e]=E,a[_]=v,y)if(x={values:j?E:O("values"),keys:m?E:O("keys"),entries:S},g)for(b in x)b in P||i(P,b,x[b]);else o(o.P+o.F*(d||M),e,x);return x}},function(t,e,n){var r=n(14),o=n(13);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),a=r(n),s=c.length;return a<0||a>=s?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(55)(!0);n(54)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){n(56),n(38),t.exports=n(12).Array.from},function(t,e,n){t.exports={default:n(57),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(58),i=(r=o)&&r.__esModule?r:{default:r};e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,i.default)(t)}},function(t,e,n){"use strict";var r=n(28),o=n(29);(0,r.createWorker)(self,{allocate:({length:t})=>{const e=(0,o.allocate)(t);return{result:e,transferables:[e]}},deallocate:()=>({result:void 0})})}]); | ||
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},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,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=60)}([function(t,e,n){var r=n(19)("wks"),o=n(18),i=n(1).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){!function(t,e,n,r){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n,r=r&&r.hasOwnProperty("default")?r.default:r;var o=function(t,e){return void 0===e?t:e.reduce(function(t,e){if("capitalize"===e){var o=t.charAt(0).toUpperCase(),i=t.slice(1);return""+o+i}return"dashify"===e?n(t):"prependIndefiniteArticle"===e?r(t)+" "+t:t},t)},i=function(t,n){for(var r=/\${([^.}]+)((\.[^(]+\(\))*)}/g,i=[],u=r.exec(t);null!==u;){var c={modifiers:[],name:u[1]};if(void 0!==u[3])for(var a=/\.[^(]+\(\)/g,f=a.exec(u[2]);null!==f;)c.modifiers.push(f[0].slice(1,-2)),f=a.exec(u[2]);i.push(c),u=r.exec(t)}var s=i.reduce(function(t,r){return t.map(function(t){return"string"==typeof t?t.split(function(t){var e=t.name+t.modifiers.map(function(t){return"\\."+t+"\\(\\)"}).join("");return new RegExp("\\$\\{"+e+"}","g")}(r)).reduce(function(t,i,u){return 0===u?[i]:r.name in n?[].concat(e(t),[o(n[r.name],r.modifiers),i]):[].concat(e(t),[function(t){return o(t[r.name],r.modifiers)},i])},[]):[t]}).reduce(function(t,n){return[].concat(e(t),e(n))},[])},[t]);return function(t){return s.reduce(function(n,r){return[].concat(e(n),"string"==typeof r?[r]:[r(t)])},[]).join("")}};t.compile=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0===t.code?void 0:i(t.code,e),r=void 0===t.message?void 0:i(t.message,e);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments[1],i=void 0===o&&(e instanceof Error||void 0!==e.code&&"Exception"===e.code.slice(-9))?{cause:e,missingParameters:{}}:{cause:o,missingParameters:e},u=i.cause,c=i.missingParameters,a=void 0===r?new Error:new Error(r(c));return null!==u&&(a.cause=u),void 0!==n&&(a.code=n(c)),void 0!==t.status&&(a.status=t.status),a}},Object.defineProperty(t,"__esModule",{value:!0})}(e,n(59),n(31),n(30))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=!n(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(5),o=n(51),i=n(50),u=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(6),o=n(10);t.exports=n(4)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(19)("keys"),o=n(18);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports={version:"2.5.0"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(13);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(6).f,o=n(3),i=n(0)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){var r=n(14),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(43),o=n(13);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(11),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(52);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(1),o=n(12),i=n(25),u=n(7),c=function(t,e,n){var a,f,s,l=t&c.F,p=t&c.G,d=t&c.S,v=t&c.P,h=t&c.B,y=t&c.W,m=p?o:o[e]||(o[e]={}),g=m.prototype,x=p?r:d?r[e]:(r[e]||{}).prototype;for(a in p&&(n=e),n)(f=!l&&x&&void 0!==x[a])&&a in m||(s=f?x[a]:n[a],m[a]=p&&"function"!=typeof x[a]?n[a]:h&&f?i(s,r):y&&x[a]==s?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(s):v&&"function"==typeof s?i(Function.call,s):s,v&&((m.virtual||(m.virtual={}))[a]=s,t&c.R&&g&&!g[a]&&u(g,a,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){!function(t){"use strict";var e=new WeakMap,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=function(t){var r=e.get(t),o=void 0===r||r>2147483648?0:r+1;if(t.size<1073741824){for(;t.has(o);)o=Math.floor(2147483648*Math.random());return e.set(t,o),o}if(t.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;t.has(o);)o=Math.floor(Math.random()*n);return e.set(t,o),o};t.addUniqueNumber=function(t){var e=r(t);return t.add(e),e},t.generateUniqueNumber=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){"use strict";n.r(e);Object.setPrototypeOf||Array;Object.assign;function r(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var o=n(2),i=-32603,u=-32602,c=-32601,a=Object(o.compile)({message:'The requested method called "${method}" is not supported.',status:c}),f=Object(o.compile)({message:'The handler of the method called "${method}" returned no required result.',status:i}),s=Object(o.compile)({message:'The handler of the method called "${method}" returned an unexpected result.',status:i}),l=Object(o.compile)({message:'The specified parameter called "portId" with the given value "${portId}" does not identify a port connected to this worker.',status:u}),p=function(t,e,n){return function(o){var i,u,c,l,p=o.data,d=p.id,v=p.method,h=p.params;return i=void 0,u=void 0,l=function(){var o,i,u,c,l,p,y,m,g,x,b,w,O,_,j,M;return r(this,function(r){switch(r.label){case 0:o=e[v],r.label=1;case 1:if(r.trys.push([1,8,,9]),void 0===o)throw a({method:v});if(void 0===(i=o(h)))throw f({method:v});return i instanceof Promise?[4,i]:[3,3];case 2:return c=r.sent(),[3,4];case 3:c=i,r.label=4;case 4:if(u=c,null!==d)return[3,5];if(void 0!==u.result)throw s({method:v});return[3,7];case 5:if(void 0===u.result)throw s({method:v});return p=(l=u).result,y=l.transferables,m=void 0===y?[]:y,x=(g=t).postMessage,b=[{id:d,result:p}],[4,n];case 6:x.apply(g,b.concat([r.sent()?m:[]])),r.label=7;case 7:return[3,9];case 8:return w=r.sent(),_=(O=w).message,j=O.status,M=void 0===j?-32603:j,t.postMessage({error:{code:M,message:_},id:d}),[3,9];case 9:return[2]}})},new((c=void 0)||(c=Promise))(function(t,e){function n(t){try{o(l.next(t))}catch(t){e(t)}}function r(t){try{o(l.throw(t))}catch(t){e(t)}}function o(e){e.done?t(e.value):new c(function(t){t(e.value)}).then(n,r)}o((l=l.apply(i,u||[])).next())})}},d=n(27),v=new Map,h=new Promise(function(t){var e=new ArrayBuffer(0),n=new MessageChannel,r=n.port1,o=n.port2;r.onmessage=function(e){var n=e.data;return t(null!==n)},o.postMessage(e,[e])});n.d(e,"createWorker",function(){return y});var y=function(t,e){var n,r,o=(n=y,r=e,Object.assign({},r,{connect:function(t){var e=t.port;e.start();var o=n(e,r),i=Object(d.generateUniqueNumber)(v);return v.set(i,function(){o(),e.close(),v.delete(i)}),{result:i}},disconnect:function(t){var e=t.portId,n=v.get(e);if(void 0===n)throw l({portId:e.toString()});return n(),{result:null}}})),i=p(t,o,h);return t.addEventListener("message",i),function(){return t.removeEventListener("message",i)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.allocate=(t=>new ArrayBuffer(t))},function(t,e){var n=function(t){var e,n,r=/\w+/.exec(t);if(!r)return"an";var o=(n=r[0]).toLowerCase(),i=["honest","hour","hono"];for(e in i)if(0==o.indexOf(i[e]))return"an";if(1==o.length)return"aedhilmnorsx".indexOf(o)>=0?"an":"a";if(n.match(/(?!FJO|[HLMNS]Y.|RY[EO]|SQU|(F[LR]?|[HL]|MN?|N|RH?|S[CHKLMNPTVW]?|X(YL)?)[AEIOU])[FHLMNRSX][A-Z]/))return"an";var u=[/^e[uw]/,/^onc?e\b/,/^uni([^nmd]|mo)/,/^u[bcfhjkqrst][aeiou]/];for(e=0;e<u.length;e++)if(o.match(u[e]))return"a";return n.match(/^U[NK][AIEO]/)?"a":n==n.toUpperCase()?"aedhilmnorsx".indexOf(o[0])>=0?"an":"a":"aeiou".indexOf(o[0])>=0?"an":o.match(/^y(b[lor]|cl[ea]|fere|gg|p[ios]|rou|tt)/)?"an":"a"};void 0!==t&&void 0!==t.exports?t.exports=n:window.indefiniteArticle=n},function(t,e,n){"use strict";t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("expected a string");return t.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\W/g,t=>/[À-ž]/.test(t)?t:"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,t=>e&&e.condense?"-":t).toLowerCase()}},function(t,e,n){var r=n(0)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e,n){var r=n(21),o=n(0)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var r=n(33),o=n(0)("iterator"),i=n(9);t.exports=n(12).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(6),o=n(10);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(9),o=n(0)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(5);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(25),o=n(26),i=n(15),u=n(37),c=n(36),a=n(20),f=n(35),s=n(34);o(o.S+o.F*!n(32)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=i(t),d="function"==typeof this?this:Array,v=arguments.length,h=v>1?arguments[1]:void 0,y=void 0!==h,m=0,g=s(p);if(y&&(h=r(h,v>2?arguments[2]:void 0,2)),void 0==g||d==Array&&c(g))for(n=new d(e=a(p.length));e>m;m++)f(n,m,y?h(p[m],m):p[m]);else for(l=g.call(p),n=new d;!(o=l.next()).done;m++)f(n,m,y?u(l,h,[o.value,m],!0):o.value);return n.length=m,n}})},function(t,e,n){var r=n(3),o=n(15),i=n(8)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(14),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(22),o=n(20),i=n(41);t.exports=function(t){return function(e,n,u){var c,a=r(e),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(21);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(3),o=n(22),i=n(42)(!1),u=n(8)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)n!=u&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e,n){var r=n(44),o=n(17);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(6),o=n(5),i=n(45);t.exports=n(4)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,a=0;c>a;)r.f(t,n=u[a++],e[n]);return t}},function(t,e,n){var r=n(5),o=n(46),i=n(17),u=n(8)("IE_PROTO"),c=function(){},a=function(){var t,e=n(23)("iframe"),r=i.length;for(e.style.display="none",n(40).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e,n){"use strict";var r=n(47),o=n(10),i=n(16),u={};n(7)(u,n(0)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){t.exports=n(7)},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){t.exports=!n(4)&&!n(24)(function(){return 7!=Object.defineProperty(n(23)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=!0},function(t,e,n){"use strict";var r=n(53),o=n(26),i=n(49),u=n(7),c=n(3),a=n(9),f=n(48),s=n(16),l=n(39),p=n(0)("iterator"),d=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,h,y,m,g){f(n,e,h);var x,b,w,O=function(t){if(!d&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",j="values"==y,M=!1,P=t.prototype,A=P[p]||P["@@iterator"]||y&&P[y],E=A||O(y),S=y?j?O("entries"):E:void 0,T="Array"==e&&P.entries||A;if(T&&(w=l(T.call(new t)))!==Object.prototype&&w.next&&(s(w,_,!0),r||c(w,p)||u(w,p,v)),j&&A&&"values"!==A.name&&(M=!0,E=function(){return A.call(this)}),r&&!g||!d&&!M&&P[p]||u(P,p,E),a[e]=E,a[_]=v,y)if(x={values:j?E:O("values"),keys:m?E:O("keys"),entries:S},g)for(b in x)b in P||i(P,b,x[b]);else o(o.P+o.F*(d||M),e,x);return x}},function(t,e,n){var r=n(14),o=n(13);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),a=r(n),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(55)(!0);n(54)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){n(56),n(38),t.exports=n(12).Array.from},function(t,e,n){t.exports={default:n(57),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(58),i=(r=o)&&r.__esModule?r:{default:r};e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,i.default)(t)}},function(t,e,n){"use strict";var r=n(28),o=n(29);(0,r.createWorker)(self,{allocate:({length:t})=>{const e=(0,o.allocate)(t);return{result:e,transferables:[e]}},deallocate:()=>({result:void 0})})}]); |
@@ -14,3 +14,3 @@ { | ||
"tslib": "^1.9.0", | ||
"worker-factory": "^2.2.8" | ||
"worker-factory": "^2.4.1" | ||
}, | ||
@@ -49,7 +49,7 @@ "description": "The worker which is used by the async-array-buffer package.", | ||
"karma-sauce-launcher": "^1.2.0", | ||
"karma-sinon-chai": "^1.3.3", | ||
"karma-sinon-chai": "^1.3.4", | ||
"karma-webpack": "^3.0.0", | ||
"load-grunt-config": "^0.19.2", | ||
"mocha": "^5.0.5", | ||
"rollup": "^0.57.1", | ||
"mocha": "^5.1.0", | ||
"rollup": "^0.58.0", | ||
"rollup-plugin-babel": "^3.0.3", | ||
@@ -59,8 +59,8 @@ "sinon": "^4.5.0", | ||
"ts-loader": "^4.2.0", | ||
"tsconfig-holy-grail": "^4.0.5", | ||
"tsconfig-holy-grail": "^4.0.7", | ||
"tslint": "^5.9.1", | ||
"tslint-config-holy-grail": "^23.0.13", | ||
"tslint-config-holy-grail": "^24.0.4", | ||
"typescript": "^2.8.1", | ||
"uglifyjs-webpack-plugin": "^1.2.4", | ||
"webpack": "^4.5.0" | ||
"webpack": "^4.6.0" | ||
}, | ||
@@ -89,3 +89,3 @@ "files": [ | ||
"types": "build/es2015/module.d.ts", | ||
"version": "3.0.19" | ||
"version": "3.0.20" | ||
} |
29823
Updatedworker-factory@^2.4.1