Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

async-array-buffer

Package Overview
Dependencies
Maintainers
1
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-array-buffer - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

2

build/es2019/worker/worker.d.ts

@@ -1,2 +0,2 @@

export declare const worker = "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=39)}([function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return c})),n.d(t,\"b\",(function(){return a})),n.d(t,\"c\",(function(){return s})),n.d(t,\"d\",(function(){return f}));var r=n(1);const o=-32603,i=-32602,u=-32601,c=Object(r.compile)({message:'The requested method called \"${method}\" is not supported.',status:u}),a=Object(r.compile)({message:'The handler of the method called \"${method}\" returned no required result.',status:o}),s=Object(r.compile)({message:'The handler of the method called \"${method}\" returned an unexpected result.',status:o}),f=Object(r.compile)({message:'The specified parameter called \"portId\" with the given value \"${portId}\" does not identify a port connected to this worker.',status:i})},function(e,t,n){!function(e,t,n,r){\"use strict\";t=t&&t.hasOwnProperty(\"default\")?t.default:t,n=n&&n.hasOwnProperty(\"default\")?n.default:n,r=r&&r.hasOwnProperty(\"default\")?r.default:r;var o=function(e,t){return void 0===t?e:t.reduce((function(e,t){if(\"capitalize\"===t){var o=e.charAt(0).toUpperCase(),i=e.slice(1);return\"\".concat(o).concat(i)}return\"dashify\"===t?n(e):\"prependIndefiniteArticle\"===t?\"\".concat(r(e),\" \").concat(e):e}),e)},i=function(e,n){for(var r=/\\${([^.}]+)((\\.[^(]+\\(\\))*)}/g,i=[],u=r.exec(e);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(e)}var f=i.reduce((function(e,r){return e.map((function(e){return\"string\"==typeof e?e.split(function(e){var t=e.name+e.modifiers.map((function(e){return\"\\\\.\".concat(e,\"\\\\(\\\\)\")})).join(\"\");return new RegExp(\"\\\\$\\\\{\".concat(t,\"}\"),\"g\")}(r)).reduce((function(e,i,u){return 0===u?[i]:r.name in n?[].concat(t(e),[o(n[r.name],r.modifiers),i]):[].concat(t(e),[function(e){return o(e[r.name],r.modifiers)},i])}),[]):[e]})).reduce((function(e,n){return[].concat(t(e),t(n))}),[])}),[e]);return function(e){return f.reduce((function(n,r){return[].concat(t(n),\"string\"==typeof r?[r]:[r(e)])}),[]).join(\"\")}};e.compile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0===e.code?void 0:i(e.code,t),r=void 0===e.message?void 0:i(e.message,t);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=void 0===o&&(t instanceof Error||void 0!==t.code&&\"Exception\"===t.code.slice(-9)),u=i?{cause:t,missingParameters:{}}:{cause:o,missingParameters:t},c=u.cause,a=u.missingParameters,s=void 0===r?new Error:new Error(r(a));return null!==c&&(s.cause=c),void 0!==n&&(s.code=n(a)),void 0!==e.status&&(s.status=e.status),s}return o},Object.defineProperty(e,\"__esModule\",{value:!0})}(t,n(40),n(44),n(45))},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return r}));const r=()=>new Promise(e=>{const t=new ArrayBuffer(0),{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:t})=>e(null!==t),r.postMessage(t,[t])})},function(e,t,n){\"use strict\";n(4),n(5),n(6),n(7),n(8),n(9),n(10),n(11),n(12),n(13),n(14),n(15),n(16),n(17)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){\"use strict\";n(19),n(20),n(21),n(22),n(23),n(24),n(25),n(26),n(27),n(28),n(29)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){\"use strict\";n.r(t);var r=n(31);for(var o in r)\"default\"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t){},function(e,t,n){\"use strict\";n.r(t);var r=n(33);for(var o in r)\"default\"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t){},function(e,t,n){\"use strict\";n.d(t,\"createWorker\",(function(){return i}));var r=n(35),o=n(36);n(2),n(3),n(18);const i=(e,t,n=(()=>!0))=>{const u=Object(o.a)(i,t,n),c=Object(r.a)(e,u);return e.addEventListener(\"message\",c),()=>e.removeEventListener(\"message\",c)}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return o}));var r=n(0);const o=(e,t)=>async({data:{id:n,method:o,params:i}})=>{const u=t[o];try{if(void 0===u)throw Object(r.a)({method:o});const t=void 0===i?u():u(i);if(void 0===t)throw Object(r.b)({method:o});const c=t instanceof Promise?await t:t;if(null===n){if(void 0!==c.result)throw Object(r.c)({method:o})}else{if(void 0===c.result)throw Object(r.c)({method:o});const{result:t,transferables:i=[]}=c;e.postMessage({id:n,result:t},i)}}catch(t){const{message:r,status:o=-32603}=t;e.postMessage({error:{code:o,message:r},id:n})}}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return c}));var r=n(37),o=n(0),i=n(2);const u=new Map,c=(e,t,n)=>({...t,connect:({port:n})=>{n.start();const o=e(n,t),i=Object(r.generateUniqueNumber)(u);return u.set(i,()=>{o(),n.close(),u.delete(i)}),{result:i}},disconnect:({portId:e})=>{const t=u.get(e);if(void 0===t)throw Object(o.d)({portId:e.toString()});return t(),{result:null}},isSupported:async()=>{if(await Object(i.a)()){const e=n();return{result:e instanceof Promise?await e:e}}return{result:!1}}})},function(e,t,n){!function(e){\"use strict\";var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=new WeakMap,o=(t=r,function(e,n){return t.set(e,n),n}),i=function(e,t){return function(r){var o=t.get(r),i=void 0===o?r.size:o>2147483646?0:o+1;if(!r.has(i))return e(r,i);if(r.size<1073741824){for(;r.has(i);)i=Math.floor(2147483648*Math.random());return e(r,i)}if(r.size>n)throw new Error(\"Congratulations, you created a collection of unique numbers which uses all available integers!\");for(;r.has(i);)i=Math.floor(Math.random()*n);return e(r,i)}}(o,r),u=function(e){return function(t){var n=e(t);return t.add(n),n}}(i);e.addUniqueNumber=u,e.generateUniqueNumber=i,Object.defineProperty(e,\"__esModule\",{value:!0})}(t)},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return r}));const r=e=>new ArrayBuffer(e)},function(e,t,n){\"use strict\";n.r(t);var r=n(34),o=n(38),i=n(30);for(var u in i)\"default\"!==u&&function(e){n.d(t,e,(function(){return i[e]}))}(u);var c=n(32);for(var u in c)\"default\"!==u&&function(e){n.d(t,e,(function(){return c[e]}))}(u);Object(r.createWorker)(self,{allocate:({length:e})=>{const t=Object(o.a)(e);return{result:t,transferables:[t]}},deallocate:()=>({result:void 0})})},function(e,t,n){var r=n(41),o=n(42),i=n(43);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},function(e,t,n){\"use strict\";e.exports=(e,t)=>{if(\"string\"!=typeof e)throw new TypeError(\"expected a string\");return e.trim().replace(/([a-z])([A-Z])/g,\"$1-$2\").replace(/\\W/g,e=>/[\u00C0-\u017E]/.test(e)?e:\"-\").replace(/^-+|-+$/g,\"\").replace(/-{2,}/g,e=>t&&t.condense?\"-\":e).toLowerCase()}},function(e,t,n){var r=function(e){var t,n,r=/\\w+/.exec(e);if(!r)return\"an\";var o=(n=r[0]).toLowerCase(),i=[\"honest\",\"hour\",\"hono\"];for(t in i)if(0==o.indexOf(i[t]))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(t=0;t<u.length;t++)if(o.match(u[t]))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!==e.exports?e.exports=r:window.indefiniteArticle=r}]);";
export declare const worker = "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=39)}([function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return c})),n.d(t,\"b\",(function(){return a})),n.d(t,\"c\",(function(){return s})),n.d(t,\"d\",(function(){return f}));var r=n(1);const o=-32603,i=-32602,u=-32601,c=Object(r.compile)({message:'The requested method called \"${method}\" is not supported.',status:u}),a=Object(r.compile)({message:'The handler of the method called \"${method}\" returned no required result.',status:o}),s=Object(r.compile)({message:'The handler of the method called \"${method}\" returned an unexpected result.',status:o}),f=Object(r.compile)({message:'The specified parameter called \"portId\" with the given value \"${portId}\" does not identify a port connected to this worker.',status:i})},function(e,t,n){!function(e,t,n,r){\"use strict\";t=t&&t.hasOwnProperty(\"default\")?t.default:t,n=n&&n.hasOwnProperty(\"default\")?n.default:n,r=r&&r.hasOwnProperty(\"default\")?r.default:r;var o=function(e,t){return void 0===t?e:t.reduce((function(e,t){if(\"capitalize\"===t){var o=e.charAt(0).toUpperCase(),i=e.slice(1);return\"\".concat(o).concat(i)}return\"dashify\"===t?n(e):\"prependIndefiniteArticle\"===t?\"\".concat(r(e),\" \").concat(e):e}),e)},i=function(e,n){for(var r=/\\${([^.}]+)((\\.[^(]+\\(\\))*)}/g,i=[],u=r.exec(e);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(e)}var f=i.reduce((function(e,r){return e.map((function(e){return\"string\"==typeof e?e.split(function(e){var t=e.name+e.modifiers.map((function(e){return\"\\\\.\".concat(e,\"\\\\(\\\\)\")})).join(\"\");return new RegExp(\"\\\\$\\\\{\".concat(t,\"}\"),\"g\")}(r)).reduce((function(e,i,u){return 0===u?[i]:r.name in n?[].concat(t(e),[o(n[r.name],r.modifiers),i]):[].concat(t(e),[function(e){return o(e[r.name],r.modifiers)},i])}),[]):[e]})).reduce((function(e,n){return[].concat(t(e),t(n))}),[])}),[e]);return function(e){return f.reduce((function(n,r){return[].concat(t(n),\"string\"==typeof r?[r]:[r(e)])}),[]).join(\"\")}};e.compile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0===e.code?void 0:i(e.code,t),r=void 0===e.message?void 0:i(e.message,t);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=void 0===o&&(t instanceof Error||void 0!==t.code&&\"Exception\"===t.code.slice(-9)),u=i?{cause:t,missingParameters:{}}:{cause:o,missingParameters:t},c=u.cause,a=u.missingParameters,s=void 0===r?new Error:new Error(r(a));return null!==c&&(s.cause=c),void 0!==n&&(s.code=n(a)),void 0!==e.status&&(s.status=e.status),s}return o},Object.defineProperty(e,\"__esModule\",{value:!0})}(t,n(40),n(44),n(45))},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return r}));const r=()=>new Promise(e=>{const t=new ArrayBuffer(0),{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:t})=>e(null!==t),r.postMessage(t,[t])})},function(e,t,n){\"use strict\";n(4),n(5),n(6),n(7),n(8),n(9),n(10),n(11),n(12),n(13),n(14),n(15),n(16),n(17)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){\"use strict\";n(19),n(20),n(21),n(22),n(23),n(24),n(25),n(26),n(27),n(28),n(29)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){\"use strict\";n.r(t);var r=n(31);for(var o in r)\"default\"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t){},function(e,t,n){\"use strict\";n.r(t);var r=n(33);for(var o in r)\"default\"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t){},function(e,t,n){\"use strict\";n.d(t,\"createWorker\",(function(){return i}));var r=n(35),o=n(36);n(2),n(3),n(18);const i=(e,t,n=(()=>!0))=>{const u=Object(o.a)(i,t,n),c=Object(r.a)(e,u);return e.addEventListener(\"message\",c),()=>e.removeEventListener(\"message\",c)}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return o}));var r=n(0);const o=(e,t)=>async({data:{id:n,method:o,params:i}})=>{const u=t[o];try{if(void 0===u)throw Object(r.a)({method:o});const t=void 0===i?u():u(i);if(void 0===t)throw Object(r.b)({method:o});const c=t instanceof Promise?await t:t;if(null===n){if(void 0!==c.result)throw Object(r.c)({method:o})}else{if(void 0===c.result)throw Object(r.c)({method:o});const{result:t,transferables:i=[]}=c;e.postMessage({id:n,result:t},i)}}catch(t){const{message:r,status:o=-32603}=t;e.postMessage({error:{code:o,message:r},id:n})}}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return c}));var r=n(37),o=n(0),i=n(2);const u=new Map,c=(e,t,n)=>({...t,connect:({port:n})=>{n.start();const o=e(n,t),i=Object(r.generateUniqueNumber)(u);return u.set(i,()=>{o(),n.close(),u.delete(i)}),{result:i}},disconnect:({portId:e})=>{const t=u.get(e);if(void 0===t)throw Object(o.d)({portId:e.toString()});return t(),{result:null}},isSupported:async()=>{if(await Object(i.a)()){const e=n();return{result:e instanceof Promise?await e:e}}return{result:!1}}})},function(e,t,n){!function(e){\"use strict\";var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=new WeakMap,o=(t=r,function(e,n){return t.set(e,n),n}),i=function(e,t){return function(r){var o=t.get(r),i=void 0===o?r.size:o>2147483646?0:o+1;if(!r.has(i))return e(r,i);if(r.size<1073741824){for(;r.has(i);)i=Math.floor(2147483648*Math.random());return e(r,i)}if(r.size>n)throw new Error(\"Congratulations, you created a collection of unique numbers which uses all available integers!\");for(;r.has(i);)i=Math.floor(Math.random()*n);return e(r,i)}}(o,r),u=function(e){return function(t){var n=e(t);return t.add(n),n}}(i);e.addUniqueNumber=u,e.generateUniqueNumber=i,Object.defineProperty(e,\"__esModule\",{value:!0})}(t)},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return r}));const r=e=>new ArrayBuffer(e)},function(e,t,n){\"use strict\";n.r(t);var r=n(34),o=n(38),i=n(30);for(var u in i)\"default\"!==u&&function(e){n.d(t,e,(function(){return i[e]}))}(u);var c=n(32);for(var u in c)\"default\"!==u&&function(e){n.d(t,e,(function(){return c[e]}))}(u);Object(r.createWorker)(self,{allocate:({length:e})=>{const t=Object(o.a)(e);return{result:t,transferables:[t]}},deallocate:()=>({result:void 0})})},function(e,t,n){var r=n(41),o=n(42),i=n(43);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},function(e,t,n){\"use strict\";e.exports=(e,t)=>{if(\"string\"!=typeof e)throw new TypeError(\"expected a string\");return e.trim().replace(/([a-z])([A-Z])/g,\"$1-$2\").replace(/\\W/g,e=>/[\u00C0-\u017E]/.test(e)?e:\"-\").replace(/^-+|-+$/g,\"\").replace(/-{2,}/g,e=>t&&t.condense?\"-\":e).toLowerCase()}},function(e,t,n){var r=function(e){var t,n,r=/\\w+/.exec(e);if(!r)return\"an\";var o=(n=r[0]).toLowerCase(),i=[\"honest\",\"hour\",\"hono\"];for(t in i)if(0==o.indexOf(i[t]))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(t=0;t<u.length;t++)if(o.match(u[t]))return\"a\";return n.match(/^U[NK][AIEO]/)?\"a\":n==n.toUpperCase()?\"aedhilmnorsx\".indexOf(o[0])>=0?\"an\":\"a\":\"aeiou\".indexOf(o[0])>=0||o.match(/^y(b[lor]|cl[ea]|fere|gg|p[ios]|rou|tt)/)?\"an\":\"a\"};void 0!==e.exports?e.exports=r:window.indefiniteArticle=r}]);";
//# sourceMappingURL=/build/es2019/worker/worker.d.ts.map
// This is the minified and stringified code of the async-array-buffer-worker package.
export const worker = `!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return f}));var r=n(1);const o=-32603,i=-32602,u=-32601,c=Object(r.compile)({message:'The requested method called "\${method}" is not supported.',status:u}),a=Object(r.compile)({message:'The handler of the method called "\${method}" returned no required result.',status:o}),s=Object(r.compile)({message:'The handler of the method called "\${method}" returned an unexpected result.',status:o}),f=Object(r.compile)({message:'The specified parameter called "portId" with the given value "\${portId}" does not identify a port connected to this worker.',status:i})},function(e,t,n){!function(e,t,n,r){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n,r=r&&r.hasOwnProperty("default")?r.default:r;var o=function(e,t){return void 0===t?e:t.reduce((function(e,t){if("capitalize"===t){var o=e.charAt(0).toUpperCase(),i=e.slice(1);return"".concat(o).concat(i)}return"dashify"===t?n(e):"prependIndefiniteArticle"===t?"".concat(r(e)," ").concat(e):e}),e)},i=function(e,n){for(var r=/\\\${([^.}]+)((\\.[^(]+\\(\\))*)}/g,i=[],u=r.exec(e);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(e)}var f=i.reduce((function(e,r){return e.map((function(e){return"string"==typeof e?e.split(function(e){var t=e.name+e.modifiers.map((function(e){return"\\\\.".concat(e,"\\\\(\\\\)")})).join("");return new RegExp("\\\\$\\\\{".concat(t,"}"),"g")}(r)).reduce((function(e,i,u){return 0===u?[i]:r.name in n?[].concat(t(e),[o(n[r.name],r.modifiers),i]):[].concat(t(e),[function(e){return o(e[r.name],r.modifiers)},i])}),[]):[e]})).reduce((function(e,n){return[].concat(t(e),t(n))}),[])}),[e]);return function(e){return f.reduce((function(n,r){return[].concat(t(n),"string"==typeof r?[r]:[r(e)])}),[]).join("")}};e.compile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0===e.code?void 0:i(e.code,t),r=void 0===e.message?void 0:i(e.message,t);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=void 0===o&&(t instanceof Error||void 0!==t.code&&"Exception"===t.code.slice(-9)),u=i?{cause:t,missingParameters:{}}:{cause:o,missingParameters:t},c=u.cause,a=u.missingParameters,s=void 0===r?new Error:new Error(r(a));return null!==c&&(s.cause=c),void 0!==n&&(s.code=n(a)),void 0!==e.status&&(s.status=e.status),s}return o},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(40),n(44),n(45))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=()=>new Promise(e=>{const t=new ArrayBuffer(0),{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:t})=>e(null!==t),r.postMessage(t,[t])})},function(e,t,n){"use strict";n(4),n(5),n(6),n(7),n(8),n(9),n(10),n(11),n(12),n(13),n(14),n(15),n(16),n(17)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(19),n(20),n(21),n(22),n(23),n(24),n(25),n(26),n(27),n(28),n(29)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(31);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(33);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t){},function(e,t,n){"use strict";n.d(t,"createWorker",(function(){return i}));var r=n(35),o=n(36);n(2),n(3),n(18);const i=(e,t,n=(()=>!0))=>{const u=Object(o.a)(i,t,n),c=Object(r.a)(e,u);return e.addEventListener("message",c),()=>e.removeEventListener("message",c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);const o=(e,t)=>async({data:{id:n,method:o,params:i}})=>{const u=t[o];try{if(void 0===u)throw Object(r.a)({method:o});const t=void 0===i?u():u(i);if(void 0===t)throw Object(r.b)({method:o});const c=t instanceof Promise?await t:t;if(null===n){if(void 0!==c.result)throw Object(r.c)({method:o})}else{if(void 0===c.result)throw Object(r.c)({method:o});const{result:t,transferables:i=[]}=c;e.postMessage({id:n,result:t},i)}}catch(t){const{message:r,status:o=-32603}=t;e.postMessage({error:{code:o,message:r},id:n})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(37),o=n(0),i=n(2);const u=new Map,c=(e,t,n)=>({...t,connect:({port:n})=>{n.start();const o=e(n,t),i=Object(r.generateUniqueNumber)(u);return u.set(i,()=>{o(),n.close(),u.delete(i)}),{result:i}},disconnect:({portId:e})=>{const t=u.get(e);if(void 0===t)throw Object(o.d)({portId:e.toString()});return t(),{result:null}},isSupported:async()=>{if(await Object(i.a)()){const e=n();return{result:e instanceof Promise?await e:e}}return{result:!1}}})},function(e,t,n){!function(e){"use strict";var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=new WeakMap,o=(t=r,function(e,n){return t.set(e,n),n}),i=function(e,t){return function(r){var o=t.get(r),i=void 0===o?r.size:o>2147483646?0:o+1;if(!r.has(i))return e(r,i);if(r.size<1073741824){for(;r.has(i);)i=Math.floor(2147483648*Math.random());return e(r,i)}if(r.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;r.has(i);)i=Math.floor(Math.random()*n);return e(r,i)}}(o,r),u=function(e){return function(t){var n=e(t);return t.add(n),n}}(i);e.addUniqueNumber=u,e.generateUniqueNumber=i,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>new ArrayBuffer(e)},function(e,t,n){"use strict";n.r(t);var r=n(34),o=n(38),i=n(30);for(var u in i)"default"!==u&&function(e){n.d(t,e,(function(){return i[e]}))}(u);var c=n(32);for(var u in c)"default"!==u&&function(e){n.d(t,e,(function(){return c[e]}))}(u);Object(r.createWorker)(self,{allocate:({length:e})=>{const t=Object(o.a)(e);return{result:t,transferables:[t]}},deallocate:()=>({result:void 0})})},function(e,t,n){var r=n(41),o=n(42),i=n(43);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e)throw new TypeError("expected a string");return e.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\\W/g,e=>/[À-ž]/.test(e)?e:"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,e=>t&&t.condense?"-":e).toLowerCase()}},function(e,t,n){var r=function(e){var t,n,r=/\\w+/.exec(e);if(!r)return"an";var o=(n=r[0]).toLowerCase(),i=["honest","hour","hono"];for(t in i)if(0==o.indexOf(i[t]))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(t=0;t<u.length;t++)if(o.match(u[t]))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!==e.exports?e.exports=r:window.indefiniteArticle=r}]);`; // tslint:disable-line:max-line-length
export const worker = `!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return f}));var r=n(1);const o=-32603,i=-32602,u=-32601,c=Object(r.compile)({message:'The requested method called "\${method}" is not supported.',status:u}),a=Object(r.compile)({message:'The handler of the method called "\${method}" returned no required result.',status:o}),s=Object(r.compile)({message:'The handler of the method called "\${method}" returned an unexpected result.',status:o}),f=Object(r.compile)({message:'The specified parameter called "portId" with the given value "\${portId}" does not identify a port connected to this worker.',status:i})},function(e,t,n){!function(e,t,n,r){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n,r=r&&r.hasOwnProperty("default")?r.default:r;var o=function(e,t){return void 0===t?e:t.reduce((function(e,t){if("capitalize"===t){var o=e.charAt(0).toUpperCase(),i=e.slice(1);return"".concat(o).concat(i)}return"dashify"===t?n(e):"prependIndefiniteArticle"===t?"".concat(r(e)," ").concat(e):e}),e)},i=function(e,n){for(var r=/\\\${([^.}]+)((\\.[^(]+\\(\\))*)}/g,i=[],u=r.exec(e);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(e)}var f=i.reduce((function(e,r){return e.map((function(e){return"string"==typeof e?e.split(function(e){var t=e.name+e.modifiers.map((function(e){return"\\\\.".concat(e,"\\\\(\\\\)")})).join("");return new RegExp("\\\\$\\\\{".concat(t,"}"),"g")}(r)).reduce((function(e,i,u){return 0===u?[i]:r.name in n?[].concat(t(e),[o(n[r.name],r.modifiers),i]):[].concat(t(e),[function(e){return o(e[r.name],r.modifiers)},i])}),[]):[e]})).reduce((function(e,n){return[].concat(t(e),t(n))}),[])}),[e]);return function(e){return f.reduce((function(n,r){return[].concat(t(n),"string"==typeof r?[r]:[r(e)])}),[]).join("")}};e.compile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0===e.code?void 0:i(e.code,t),r=void 0===e.message?void 0:i(e.message,t);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=void 0===o&&(t instanceof Error||void 0!==t.code&&"Exception"===t.code.slice(-9)),u=i?{cause:t,missingParameters:{}}:{cause:o,missingParameters:t},c=u.cause,a=u.missingParameters,s=void 0===r?new Error:new Error(r(a));return null!==c&&(s.cause=c),void 0!==n&&(s.code=n(a)),void 0!==e.status&&(s.status=e.status),s}return o},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(40),n(44),n(45))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=()=>new Promise(e=>{const t=new ArrayBuffer(0),{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:t})=>e(null!==t),r.postMessage(t,[t])})},function(e,t,n){"use strict";n(4),n(5),n(6),n(7),n(8),n(9),n(10),n(11),n(12),n(13),n(14),n(15),n(16),n(17)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(19),n(20),n(21),n(22),n(23),n(24),n(25),n(26),n(27),n(28),n(29)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(31);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(33);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t){},function(e,t,n){"use strict";n.d(t,"createWorker",(function(){return i}));var r=n(35),o=n(36);n(2),n(3),n(18);const i=(e,t,n=(()=>!0))=>{const u=Object(o.a)(i,t,n),c=Object(r.a)(e,u);return e.addEventListener("message",c),()=>e.removeEventListener("message",c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);const o=(e,t)=>async({data:{id:n,method:o,params:i}})=>{const u=t[o];try{if(void 0===u)throw Object(r.a)({method:o});const t=void 0===i?u():u(i);if(void 0===t)throw Object(r.b)({method:o});const c=t instanceof Promise?await t:t;if(null===n){if(void 0!==c.result)throw Object(r.c)({method:o})}else{if(void 0===c.result)throw Object(r.c)({method:o});const{result:t,transferables:i=[]}=c;e.postMessage({id:n,result:t},i)}}catch(t){const{message:r,status:o=-32603}=t;e.postMessage({error:{code:o,message:r},id:n})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(37),o=n(0),i=n(2);const u=new Map,c=(e,t,n)=>({...t,connect:({port:n})=>{n.start();const o=e(n,t),i=Object(r.generateUniqueNumber)(u);return u.set(i,()=>{o(),n.close(),u.delete(i)}),{result:i}},disconnect:({portId:e})=>{const t=u.get(e);if(void 0===t)throw Object(o.d)({portId:e.toString()});return t(),{result:null}},isSupported:async()=>{if(await Object(i.a)()){const e=n();return{result:e instanceof Promise?await e:e}}return{result:!1}}})},function(e,t,n){!function(e){"use strict";var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=new WeakMap,o=(t=r,function(e,n){return t.set(e,n),n}),i=function(e,t){return function(r){var o=t.get(r),i=void 0===o?r.size:o>2147483646?0:o+1;if(!r.has(i))return e(r,i);if(r.size<1073741824){for(;r.has(i);)i=Math.floor(2147483648*Math.random());return e(r,i)}if(r.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;r.has(i);)i=Math.floor(Math.random()*n);return e(r,i)}}(o,r),u=function(e){return function(t){var n=e(t);return t.add(n),n}}(i);e.addUniqueNumber=u,e.generateUniqueNumber=i,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>new ArrayBuffer(e)},function(e,t,n){"use strict";n.r(t);var r=n(34),o=n(38),i=n(30);for(var u in i)"default"!==u&&function(e){n.d(t,e,(function(){return i[e]}))}(u);var c=n(32);for(var u in c)"default"!==u&&function(e){n.d(t,e,(function(){return c[e]}))}(u);Object(r.createWorker)(self,{allocate:({length:e})=>{const t=Object(o.a)(e);return{result:t,transferables:[t]}},deallocate:()=>({result:void 0})})},function(e,t,n){var r=n(41),o=n(42),i=n(43);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e)throw new TypeError("expected a string");return e.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\\W/g,e=>/[À-ž]/.test(e)?e:"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,e=>t&&t.condense?"-":e).toLowerCase()}},function(e,t,n){var r=function(e){var t,n,r=/\\w+/.exec(e);if(!r)return"an";var o=(n=r[0]).toLowerCase(),i=["honest","hour","hono"];for(t in i)if(0==o.indexOf(i[t]))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(t=0;t<u.length;t++)if(o.match(u[t]))return"a";return n.match(/^U[NK][AIEO]/)?"a":n==n.toUpperCase()?"aedhilmnorsx".indexOf(o[0])>=0?"an":"a":"aeiou".indexOf(o[0])>=0||o.match(/^y(b[lor]|cl[ea]|fere|gg|p[ios]|rou|tt)/)?"an":"a"};void 0!==e.exports?e.exports=r:window.indefiniteArticle=r}]);`; // tslint:disable-line:max-line-length
//# sourceMappingURL=/build/es2019/worker/worker.js.map

@@ -8,3 +8,3 @@ (function (global, factory) {

// This is the minified and stringified code of the async-array-buffer-worker package.
var worker = "!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,\"a\",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p=\"\",r(r.s=0)}([function(t,e,r){\"use strict\";r.r(e);r(1)},function(t,e,r){!function(t){\"use strict\";t.createWorker(self,{allocate:function(t){var e=function(t){return new ArrayBuffer(t)}(t.length);return{result:e,transferables:[e]}},deallocate:function(){return{result:void 0}}})}(r(2))},function(t,e,r){!function(t,e,r,n,o,i){\"use strict\";e=e&&e.hasOwnProperty(\"default\")?e.default:e,r=r&&r.hasOwnProperty(\"default\")?r.default:r,o=o&&o.hasOwnProperty(\"default\")?o.default:o;var a=-32603,u=-32602,c=-32601,s=n.compile({message:'The requested method called \"${method}\" is not supported.',status:c}),f=n.compile({message:'The handler of the method called \"${method}\" returned no required result.',status:a}),l=n.compile({message:'The handler of the method called \"${method}\" returned an unexpected result.',status:a}),d=n.compile({message:'The specified parameter called \"portId\" with the given value \"${portId}\" does not identify a port connected to this worker.',status:u}),h=function(t,n){return function(){var o=r(e.mark((function r(o){var i,a,u,c,d,h,p,v,m,y,g,w,b;return e.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=o.data,a=i.id,u=i.method,c=i.params,d=n[u],e.prev=2,void 0!==d){e.next=5;break}throw s({method:u});case 5:if(void 0!==(h=void 0===c?d():d(c))){e.next=8;break}throw f({method:u});case 8:if(!(h instanceof Promise)){e.next=14;break}return e.next=11,h;case 11:e.t0=e.sent,e.next=15;break;case 14:e.t0=h;case 15:if(p=e.t0,null!==a){e.next=21;break}if(void 0===p.result){e.next=19;break}throw l({method:u});case 19:e.next=25;break;case 21:if(void 0!==p.result){e.next=23;break}throw l({method:u});case 23:v=p.result,m=p.transferables,y=void 0===m?[]:m,t.postMessage({id:a,result:v},y);case 25:e.next=31;break;case 27:e.prev=27,e.t1=e.catch(2),g=e.t1.message,w=e.t1.status,b=void 0===w?-32603:w,t.postMessage({error:{code:b,message:g},id:a});case 31:case\"end\":return e.stop()}}),r,null,[[2,27]])})));return function(t){return o.apply(this,arguments)}}()},p=function(){return new Promise((function(t){var e=new ArrayBuffer(0),r=new MessageChannel,n=r.port1,o=r.port2;n.onmessage=function(e){var r=e.data;return t(null!==r)},o.postMessage(e,[e])}))};function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var m=new Map,y=function(t,n,a){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},n,{connect:function(e){var r=e.port;r.start();var o=t(r,n),a=i.generateUniqueNumber(m);return m.set(a,(function(){o(),r.close(),m.delete(a)})),{result:a}},disconnect:function(t){var e=t.portId,r=m.get(e);if(void 0===r)throw d({portId:e.toString()});return r(),{result:null}},isSupported:(u=r(e.mark((function t(){var r,n;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!t.sent){t.next=14;break}if(!((r=a())instanceof Promise)){t.next=11;break}return t.next=8,r;case 8:t.t0=t.sent,t.next=12;break;case 11:t.t0=r;case 12:return n=t.t0,t.abrupt(\"return\",{result:n});case 14:return t.abrupt(\"return\",{result:!1});case 15:case\"end\":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})});var u};t.createWorker=function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},o=y(t,r,n),i=h(e,o);return e.addEventListener(\"message\",i),function(){return e.removeEventListener(\"message\",i)}},t.isSupported=p,Object.defineProperty(t,\"__esModule\",{value:!0})}(e,r(3),r(5),r(6),r(13),r(14))},function(t,e,r){t.exports=r(4)},function(t,e,r){var n=function(t){\"use strict\";var e=Object.prototype,r=e.hasOwnProperty,n=\"function\"==typeof Symbol?Symbol:{},o=n.iterator||\"@@iterator\",i=n.asyncIterator||\"@@asyncIterator\",a=n.toStringTag||\"@@toStringTag\";function u(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),a=new O(n||[]);return i._invoke=function(t,e,r){var n=\"suspendedStart\";return function(o,i){if(\"executing\"===n)throw new Error(\"Generator is already running\");if(\"completed\"===n){if(\"throw\"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===s)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(\"suspendedStart\"===n)throw n=\"completed\",r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);n=\"executing\";var f=c(t,e,r);if(\"normal\"===f.type){if(n=r.done?\"completed\":\"suspendedYield\",f.arg===s)continue;return{value:f.arg,done:r.done}}\"throw\"===f.type&&(n=\"completed\",r.method=\"throw\",r.arg=f.arg)}}}(t,r,a),i}function c(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=u;var s={};function f(){}function l(){}function d(){}var h={};h[o]=function(){return this};var p=Object.getPrototypeOf,v=p&&p(p(E([])));v&&v!==e&&r.call(v,o)&&(h=v);var m=d.prototype=f.prototype=Object.create(h);function y(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function g(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var u=c(t[n],t,o);if(\"throw\"!==u.type){var s=u.arg,f=s.value;return f&&\"object\"==typeof f&&r.call(f,\"__await\")?Promise.resolve(f.__await).then((function(t){e(\"next\",t,i,a)}),(function(t){e(\"throw\",t,i,a)})):Promise.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return e(\"throw\",t,i,a)}))}a(u.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,\"throw\"===e.method){if(t.iterator.return&&(e.method=\"return\",e.arg=void 0,w(t,e),\"throw\"===e.method))return s;e.method=\"throw\",e.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return s}var n=c(r,t.iterator,e.arg);if(\"throw\"===n.type)return e.method=\"throw\",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,\"return\"!==e.method&&(e.method=\"next\",e.arg=void 0),e.delegate=null,s):o:(e.method=\"throw\",e.arg=new TypeError(\"iterator result is not an object\"),e.delegate=null,s)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(b,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return l.prototype=m.constructor=d,d.constructor=l,d[a]=l.displayName=\"GeneratorFunction\",t.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===l||\"GeneratorFunction\"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,a in t||(t[a]=\"GeneratorFunction\")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},y(g.prototype),g.prototype[i]=function(){return this},t.AsyncIterator=g,t.async=function(e,r,n,o){var i=new g(u(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},y(m),m[a]=\"Generator\",m[o]=function(){return this},m.toString=function(){return\"[object Generator]\"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)\"t\"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type=\"throw\",a.arg=t,e.next=r,n&&(e.method=\"next\",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if(\"root\"===i.tryLoc)return n(\"end\");if(i.tryLoc<=this.prev){var u=r.call(i,\"catchLoc\"),c=r.call(i,\"finallyLoc\");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error(\"try statement without catch or finally\");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev<o.finallyLoc){var i=o;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;x(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},\"next\"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(n)}},function(t,e){function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,\"next\",t)}function c(t){r(a,o,i,u,c,\"throw\",t)}u(void 0)}))}}},function(t,e,r){!function(t,e,r,n){\"use strict\";e=e&&e.hasOwnProperty(\"default\")?e.default:e,r=r&&r.hasOwnProperty(\"default\")?r.default:r,n=n&&n.hasOwnProperty(\"default\")?n.default:n;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\"\".concat(o).concat(i)}return\"dashify\"===e?r(t):\"prependIndefiniteArticle\"===e?\"\".concat(n(t),\" \").concat(t):t}),t)},i=function(t,r){for(var n=/\\${([^.}]+)((\\.[^(]+\\(\\))*)}/g,i=[],a=n.exec(t);null!==a;){var u={modifiers:[],name:a[1]};if(void 0!==a[3])for(var c=/\\.[^(]+\\(\\)/g,s=c.exec(a[2]);null!==s;)u.modifiers.push(s[0].slice(1,-2)),s=c.exec(a[2]);i.push(u),a=n.exec(t)}var f=i.reduce((function(t,n){return t.map((function(t){return\"string\"==typeof t?t.split(function(t){var e=t.name+t.modifiers.map((function(t){return\"\\\\.\".concat(t,\"\\\\(\\\\)\")})).join(\"\");return new RegExp(\"\\\\$\\\\{\".concat(e,\"}\"),\"g\")}(n)).reduce((function(t,i,a){return 0===a?[i]:n.name in r?[].concat(e(t),[o(r[n.name],n.modifiers),i]):[].concat(e(t),[function(t){return o(t[n.name],n.modifiers)},i])}),[]):[t]})).reduce((function(t,r){return[].concat(e(t),e(r))}),[])}),[t]);return function(t){return f.reduce((function(r,n){return[].concat(e(r),\"string\"==typeof n?[n]:[n(t)])}),[]).join(\"\")}};t.compile=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=void 0===t.code?void 0:i(t.code,e),n=void 0===t.message?void 0:i(t.message,e);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=void 0===o&&(e instanceof Error||void 0!==e.code&&\"Exception\"===e.code.slice(-9)),a=i?{cause:e,missingParameters:{}}:{cause:o,missingParameters:e},u=a.cause,c=a.missingParameters,s=void 0===n?new Error:new Error(n(c));return null!==u&&(s.cause=u),void 0!==r&&(s.code=r(c)),void 0!==t.status&&(s.status=t.status),s}return o},Object.defineProperty(t,\"__esModule\",{value:!0})}(e,r(7),r(11),r(12))},function(t,e,r){var n=r(8),o=r(9),i=r(10);t.exports=function(t){return n(t)||o(t)||i()}},function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}},function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||\"[object Arguments]\"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,e){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},function(t,e,r){\"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,(function(t){return/[\xC0-\u017E]/.test(t)?t:\"-\"})).replace(/^-+|-+$/g,\"\").replace(/-{2,}/g,(function(t){return e&&e.condense?\"-\":t})).toLowerCase()}},function(t,e,r){var n=function(t){var e,r,n=/\\w+/.exec(t);if(!n)return\"an\";var o=(r=n[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(r.match(/(?!FJO|[HLMNS]Y.|RY[EO]|SQU|(F[LR]?|[HL]|MN?|N|RH?|S[CHKLMNPTVW]?|X(YL)?)[AEIOU])[FHLMNRSX][A-Z]/))return\"an\";var a=[/^e[uw]/,/^onc?e\\b/,/^uni([^nmd]|mo)/,/^u[bcfhjkqrst][aeiou]/];for(e=0;e<a.length;e++)if(o.match(a[e]))return\"a\";return r.match(/^U[NK][AIEO]/)?\"a\":r==r.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.exports?t.exports=n:window.indefiniteArticle=n},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){!function(t){\"use strict\";var e,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=new WeakMap,o=(e=n,function(t,r){return e.set(t,r),r}),i=function(t,e){return function(n){var o=e.get(n),i=void 0===o?n.size:o>2147483646?0:o+1;if(!n.has(i))return t(n,i);if(n.size<1073741824){for(;n.has(i);)i=Math.floor(2147483648*Math.random());return t(n,i)}if(n.size>r)throw new Error(\"Congratulations, you created a collection of unique numbers which uses all available integers!\");for(;n.has(i);)i=Math.floor(Math.random()*r);return t(n,i)}}(o,n),a=function(t){return function(e){var r=t(e);return e.add(r),r}}(i);t.addUniqueNumber=a,t.generateUniqueNumber=i,Object.defineProperty(t,\"__esModule\",{value:!0})}(e)}]);"; // tslint:disable-line:max-line-length
var worker = "!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,\"a\",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p=\"\",r(r.s=0)}([function(t,e,r){\"use strict\";r.r(e);r(1)},function(t,e,r){!function(t){\"use strict\";t.createWorker(self,{allocate:function(t){var e=function(t){return new ArrayBuffer(t)}(t.length);return{result:e,transferables:[e]}},deallocate:function(){return{result:void 0}}})}(r(2))},function(t,e,r){!function(t,e,r,n,o,i){\"use strict\";e=e&&e.hasOwnProperty(\"default\")?e.default:e,r=r&&r.hasOwnProperty(\"default\")?r.default:r,o=o&&o.hasOwnProperty(\"default\")?o.default:o;var a=-32603,u=-32602,c=-32601,s=n.compile({message:'The requested method called \"${method}\" is not supported.',status:c}),f=n.compile({message:'The handler of the method called \"${method}\" returned no required result.',status:a}),l=n.compile({message:'The handler of the method called \"${method}\" returned an unexpected result.',status:a}),d=n.compile({message:'The specified parameter called \"portId\" with the given value \"${portId}\" does not identify a port connected to this worker.',status:u}),h=function(t,n){return function(){var o=r(e.mark((function r(o){var i,a,u,c,d,h,p,v,m,y,g,w,b;return e.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=o.data,a=i.id,u=i.method,c=i.params,d=n[u],e.prev=2,void 0!==d){e.next=5;break}throw s({method:u});case 5:if(void 0!==(h=void 0===c?d():d(c))){e.next=8;break}throw f({method:u});case 8:if(!(h instanceof Promise)){e.next=14;break}return e.next=11,h;case 11:e.t0=e.sent,e.next=15;break;case 14:e.t0=h;case 15:if(p=e.t0,null!==a){e.next=21;break}if(void 0===p.result){e.next=19;break}throw l({method:u});case 19:e.next=25;break;case 21:if(void 0!==p.result){e.next=23;break}throw l({method:u});case 23:v=p.result,m=p.transferables,y=void 0===m?[]:m,t.postMessage({id:a,result:v},y);case 25:e.next=31;break;case 27:e.prev=27,e.t1=e.catch(2),g=e.t1.message,w=e.t1.status,b=void 0===w?-32603:w,t.postMessage({error:{code:b,message:g},id:a});case 31:case\"end\":return e.stop()}}),r,null,[[2,27]])})));return function(t){return o.apply(this,arguments)}}()},p=function(){return new Promise((function(t){var e=new ArrayBuffer(0),r=new MessageChannel,n=r.port1,o=r.port2;n.onmessage=function(e){var r=e.data;return t(null!==r)},o.postMessage(e,[e])}))};function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var m=new Map,y=function(t,n,a){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},n,{connect:function(e){var r=e.port;r.start();var o=t(r,n),a=i.generateUniqueNumber(m);return m.set(a,(function(){o(),r.close(),m.delete(a)})),{result:a}},disconnect:function(t){var e=t.portId,r=m.get(e);if(void 0===r)throw d({portId:e.toString()});return r(),{result:null}},isSupported:(u=r(e.mark((function t(){var r,n;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!t.sent){t.next=14;break}if(!((r=a())instanceof Promise)){t.next=11;break}return t.next=8,r;case 8:t.t0=t.sent,t.next=12;break;case 11:t.t0=r;case 12:return n=t.t0,t.abrupt(\"return\",{result:n});case 14:return t.abrupt(\"return\",{result:!1});case 15:case\"end\":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})});var u};t.createWorker=function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},o=y(t,r,n),i=h(e,o);return e.addEventListener(\"message\",i),function(){return e.removeEventListener(\"message\",i)}},t.isSupported=p,Object.defineProperty(t,\"__esModule\",{value:!0})}(e,r(3),r(5),r(6),r(13),r(14))},function(t,e,r){t.exports=r(4)},function(t,e,r){var n=function(t){\"use strict\";var e=Object.prototype,r=e.hasOwnProperty,n=\"function\"==typeof Symbol?Symbol:{},o=n.iterator||\"@@iterator\",i=n.asyncIterator||\"@@asyncIterator\",a=n.toStringTag||\"@@toStringTag\";function u(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),a=new O(n||[]);return i._invoke=function(t,e,r){var n=\"suspendedStart\";return function(o,i){if(\"executing\"===n)throw new Error(\"Generator is already running\");if(\"completed\"===n){if(\"throw\"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===s)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(\"suspendedStart\"===n)throw n=\"completed\",r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);n=\"executing\";var f=c(t,e,r);if(\"normal\"===f.type){if(n=r.done?\"completed\":\"suspendedYield\",f.arg===s)continue;return{value:f.arg,done:r.done}}\"throw\"===f.type&&(n=\"completed\",r.method=\"throw\",r.arg=f.arg)}}}(t,r,a),i}function c(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=u;var s={};function f(){}function l(){}function d(){}var h={};h[o]=function(){return this};var p=Object.getPrototypeOf,v=p&&p(p(E([])));v&&v!==e&&r.call(v,o)&&(h=v);var m=d.prototype=f.prototype=Object.create(h);function y(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function g(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var u=c(t[n],t,o);if(\"throw\"!==u.type){var s=u.arg,f=s.value;return f&&\"object\"==typeof f&&r.call(f,\"__await\")?Promise.resolve(f.__await).then((function(t){e(\"next\",t,i,a)}),(function(t){e(\"throw\",t,i,a)})):Promise.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return e(\"throw\",t,i,a)}))}a(u.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,\"throw\"===e.method){if(t.iterator.return&&(e.method=\"return\",e.arg=void 0,w(t,e),\"throw\"===e.method))return s;e.method=\"throw\",e.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return s}var n=c(r,t.iterator,e.arg);if(\"throw\"===n.type)return e.method=\"throw\",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,\"return\"!==e.method&&(e.method=\"next\",e.arg=void 0),e.delegate=null,s):o:(e.method=\"throw\",e.arg=new TypeError(\"iterator result is not an object\"),e.delegate=null,s)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(b,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return l.prototype=m.constructor=d,d.constructor=l,d[a]=l.displayName=\"GeneratorFunction\",t.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===l||\"GeneratorFunction\"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,a in t||(t[a]=\"GeneratorFunction\")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},y(g.prototype),g.prototype[i]=function(){return this},t.AsyncIterator=g,t.async=function(e,r,n,o){var i=new g(u(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},y(m),m[a]=\"Generator\",m[o]=function(){return this},m.toString=function(){return\"[object Generator]\"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)\"t\"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type=\"throw\",a.arg=t,e.next=r,n&&(e.method=\"next\",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if(\"root\"===i.tryLoc)return n(\"end\");if(i.tryLoc<=this.prev){var u=r.call(i,\"catchLoc\"),c=r.call(i,\"finallyLoc\");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error(\"try statement without catch or finally\");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev<o.finallyLoc){var i=o;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if(\"throw\"===t.type)throw t.arg;return\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=this.arg=t.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;x(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},\"next\"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(n)}},function(t,e){function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,\"next\",t)}function c(t){r(a,o,i,u,c,\"throw\",t)}u(void 0)}))}}},function(t,e,r){!function(t,e,r,n){\"use strict\";e=e&&e.hasOwnProperty(\"default\")?e.default:e,r=r&&r.hasOwnProperty(\"default\")?r.default:r,n=n&&n.hasOwnProperty(\"default\")?n.default:n;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\"\".concat(o).concat(i)}return\"dashify\"===e?r(t):\"prependIndefiniteArticle\"===e?\"\".concat(n(t),\" \").concat(t):t}),t)},i=function(t,r){for(var n=/\\${([^.}]+)((\\.[^(]+\\(\\))*)}/g,i=[],a=n.exec(t);null!==a;){var u={modifiers:[],name:a[1]};if(void 0!==a[3])for(var c=/\\.[^(]+\\(\\)/g,s=c.exec(a[2]);null!==s;)u.modifiers.push(s[0].slice(1,-2)),s=c.exec(a[2]);i.push(u),a=n.exec(t)}var f=i.reduce((function(t,n){return t.map((function(t){return\"string\"==typeof t?t.split(function(t){var e=t.name+t.modifiers.map((function(t){return\"\\\\.\".concat(t,\"\\\\(\\\\)\")})).join(\"\");return new RegExp(\"\\\\$\\\\{\".concat(e,\"}\"),\"g\")}(n)).reduce((function(t,i,a){return 0===a?[i]:n.name in r?[].concat(e(t),[o(r[n.name],n.modifiers),i]):[].concat(e(t),[function(t){return o(t[n.name],n.modifiers)},i])}),[]):[t]})).reduce((function(t,r){return[].concat(e(t),e(r))}),[])}),[t]);return function(t){return f.reduce((function(r,n){return[].concat(e(r),\"string\"==typeof n?[n]:[n(t)])}),[]).join(\"\")}};t.compile=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=void 0===t.code?void 0:i(t.code,e),n=void 0===t.message?void 0:i(t.message,e);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=void 0===o&&(e instanceof Error||void 0!==e.code&&\"Exception\"===e.code.slice(-9)),a=i?{cause:e,missingParameters:{}}:{cause:o,missingParameters:e},u=a.cause,c=a.missingParameters,s=void 0===n?new Error:new Error(n(c));return null!==u&&(s.cause=u),void 0!==r&&(s.code=r(c)),void 0!==t.status&&(s.status=t.status),s}return o},Object.defineProperty(t,\"__esModule\",{value:!0})}(e,r(7),r(11),r(12))},function(t,e,r){var n=r(8),o=r(9),i=r(10);t.exports=function(t){return n(t)||o(t)||i()}},function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}},function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||\"[object Arguments]\"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,e){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},function(t,e,r){\"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,(function(t){return/[\xC0-\u017E]/.test(t)?t:\"-\"})).replace(/^-+|-+$/g,\"\").replace(/-{2,}/g,(function(t){return e&&e.condense?\"-\":t})).toLowerCase()}},function(t,e,r){var n=function(t){var e,r,n=/\\w+/.exec(t);if(!n)return\"an\";var o=(r=n[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(r.match(/(?!FJO|[HLMNS]Y.|RY[EO]|SQU|(F[LR]?|[HL]|MN?|N|RH?|S[CHKLMNPTVW]?|X(YL)?)[AEIOU])[FHLMNRSX][A-Z]/))return\"an\";var a=[/^e[uw]/,/^onc?e\\b/,/^uni([^nmd]|mo)/,/^u[bcfhjkqrst][aeiou]/];for(e=0;e<a.length;e++)if(o.match(a[e]))return\"a\";return r.match(/^U[NK][AIEO]/)?\"a\":r==r.toUpperCase()?\"aedhilmnorsx\".indexOf(o[0])>=0?\"an\":\"a\":\"aeiou\".indexOf(o[0])>=0||o.match(/^y(b[lor]|cl[ea]|fere|gg|p[ios]|rou|tt)/)?\"an\":\"a\"};void 0!==t.exports?t.exports=n:window.indefiniteArticle=n},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){!function(t){\"use strict\";var e,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=new WeakMap,o=(e=n,function(t,r){return e.set(t,r),r}),i=function(t,e){return function(n){var o=e.get(n),i=void 0===o?n.size:o>2147483646?0:o+1;if(!n.has(i))return t(n,i);if(n.size<1073741824){for(;n.has(i);)i=Math.floor(2147483648*Math.random());return t(n,i)}if(n.size>r)throw new Error(\"Congratulations, you created a collection of unique numbers which uses all available integers!\");for(;n.has(i);)i=Math.floor(Math.random()*r);return t(n,i)}}(o,n),a=function(t){return function(e){var r=t(e);return e.add(r),r}}(i);t.addUniqueNumber=a,t.generateUniqueNumber=i,Object.defineProperty(t,\"__esModule\",{value:!0})}(e)}]);"; // tslint:disable-line:max-line-length

@@ -11,0 +11,0 @@ var blob = new Blob([worker], {

@@ -13,12 +13,12 @@ {

"@babel/runtime": "^7.8.4",
"async-array-buffer-broker": "^4.0.1",
"async-array-buffer-worker": "^6.0.1",
"tslib": "^1.11.0"
"async-array-buffer-broker": "^4.0.2",
"async-array-buffer-worker": "^6.0.2",
"tslib": "^1.11.1"
},
"description": "This module allows to allocate and deallocate ArrayBuffers without blocking the main thread.",
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/core": "^7.8.6",
"@babel/plugin-external-helpers": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/preset-env": "^7.8.6",
"@commitlint/cli": "^8.3.5",

@@ -51,3 +51,3 @@ "@commitlint/config-angular": "^8.3.4",

"mocha": "^7.1.0",
"rollup": "^1.31.1",
"rollup": "^1.32.0",
"rollup-plugin-babel": "^4.3.3",

@@ -60,4 +60,4 @@ "sinon": "^9.0.0",

"tslint": "^6.0.0",
"tslint-config-holy-grail": "^48.0.0",
"typescript": "^3.8.2",
"tslint-config-holy-grail": "^48.0.1",
"typescript": "^3.8.3",
"webpack": "^4.41.6"

@@ -90,3 +90,3 @@ },

"types": "build/es2019/module.d.ts",
"version": "4.0.2"
"version": "4.0.3"
}
// This is the minified and stringified code of the async-array-buffer-worker package.
export const worker = `!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return f}));var r=n(1);const o=-32603,i=-32602,u=-32601,c=Object(r.compile)({message:'The requested method called "\${method}" is not supported.',status:u}),a=Object(r.compile)({message:'The handler of the method called "\${method}" returned no required result.',status:o}),s=Object(r.compile)({message:'The handler of the method called "\${method}" returned an unexpected result.',status:o}),f=Object(r.compile)({message:'The specified parameter called "portId" with the given value "\${portId}" does not identify a port connected to this worker.',status:i})},function(e,t,n){!function(e,t,n,r){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n,r=r&&r.hasOwnProperty("default")?r.default:r;var o=function(e,t){return void 0===t?e:t.reduce((function(e,t){if("capitalize"===t){var o=e.charAt(0).toUpperCase(),i=e.slice(1);return"".concat(o).concat(i)}return"dashify"===t?n(e):"prependIndefiniteArticle"===t?"".concat(r(e)," ").concat(e):e}),e)},i=function(e,n){for(var r=/\\\${([^.}]+)((\\.[^(]+\\(\\))*)}/g,i=[],u=r.exec(e);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(e)}var f=i.reduce((function(e,r){return e.map((function(e){return"string"==typeof e?e.split(function(e){var t=e.name+e.modifiers.map((function(e){return"\\\\.".concat(e,"\\\\(\\\\)")})).join("");return new RegExp("\\\\$\\\\{".concat(t,"}"),"g")}(r)).reduce((function(e,i,u){return 0===u?[i]:r.name in n?[].concat(t(e),[o(n[r.name],r.modifiers),i]):[].concat(t(e),[function(e){return o(e[r.name],r.modifiers)},i])}),[]):[e]})).reduce((function(e,n){return[].concat(t(e),t(n))}),[])}),[e]);return function(e){return f.reduce((function(n,r){return[].concat(t(n),"string"==typeof r?[r]:[r(e)])}),[]).join("")}};e.compile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0===e.code?void 0:i(e.code,t),r=void 0===e.message?void 0:i(e.message,t);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=void 0===o&&(t instanceof Error||void 0!==t.code&&"Exception"===t.code.slice(-9)),u=i?{cause:t,missingParameters:{}}:{cause:o,missingParameters:t},c=u.cause,a=u.missingParameters,s=void 0===r?new Error:new Error(r(a));return null!==c&&(s.cause=c),void 0!==n&&(s.code=n(a)),void 0!==e.status&&(s.status=e.status),s}return o},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(40),n(44),n(45))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=()=>new Promise(e=>{const t=new ArrayBuffer(0),{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:t})=>e(null!==t),r.postMessage(t,[t])})},function(e,t,n){"use strict";n(4),n(5),n(6),n(7),n(8),n(9),n(10),n(11),n(12),n(13),n(14),n(15),n(16),n(17)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(19),n(20),n(21),n(22),n(23),n(24),n(25),n(26),n(27),n(28),n(29)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(31);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(33);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t){},function(e,t,n){"use strict";n.d(t,"createWorker",(function(){return i}));var r=n(35),o=n(36);n(2),n(3),n(18);const i=(e,t,n=(()=>!0))=>{const u=Object(o.a)(i,t,n),c=Object(r.a)(e,u);return e.addEventListener("message",c),()=>e.removeEventListener("message",c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);const o=(e,t)=>async({data:{id:n,method:o,params:i}})=>{const u=t[o];try{if(void 0===u)throw Object(r.a)({method:o});const t=void 0===i?u():u(i);if(void 0===t)throw Object(r.b)({method:o});const c=t instanceof Promise?await t:t;if(null===n){if(void 0!==c.result)throw Object(r.c)({method:o})}else{if(void 0===c.result)throw Object(r.c)({method:o});const{result:t,transferables:i=[]}=c;e.postMessage({id:n,result:t},i)}}catch(t){const{message:r,status:o=-32603}=t;e.postMessage({error:{code:o,message:r},id:n})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(37),o=n(0),i=n(2);const u=new Map,c=(e,t,n)=>({...t,connect:({port:n})=>{n.start();const o=e(n,t),i=Object(r.generateUniqueNumber)(u);return u.set(i,()=>{o(),n.close(),u.delete(i)}),{result:i}},disconnect:({portId:e})=>{const t=u.get(e);if(void 0===t)throw Object(o.d)({portId:e.toString()});return t(),{result:null}},isSupported:async()=>{if(await Object(i.a)()){const e=n();return{result:e instanceof Promise?await e:e}}return{result:!1}}})},function(e,t,n){!function(e){"use strict";var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=new WeakMap,o=(t=r,function(e,n){return t.set(e,n),n}),i=function(e,t){return function(r){var o=t.get(r),i=void 0===o?r.size:o>2147483646?0:o+1;if(!r.has(i))return e(r,i);if(r.size<1073741824){for(;r.has(i);)i=Math.floor(2147483648*Math.random());return e(r,i)}if(r.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;r.has(i);)i=Math.floor(Math.random()*n);return e(r,i)}}(o,r),u=function(e){return function(t){var n=e(t);return t.add(n),n}}(i);e.addUniqueNumber=u,e.generateUniqueNumber=i,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>new ArrayBuffer(e)},function(e,t,n){"use strict";n.r(t);var r=n(34),o=n(38),i=n(30);for(var u in i)"default"!==u&&function(e){n.d(t,e,(function(){return i[e]}))}(u);var c=n(32);for(var u in c)"default"!==u&&function(e){n.d(t,e,(function(){return c[e]}))}(u);Object(r.createWorker)(self,{allocate:({length:e})=>{const t=Object(o.a)(e);return{result:t,transferables:[t]}},deallocate:()=>({result:void 0})})},function(e,t,n){var r=n(41),o=n(42),i=n(43);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e)throw new TypeError("expected a string");return e.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\\W/g,e=>/[À-ž]/.test(e)?e:"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,e=>t&&t.condense?"-":e).toLowerCase()}},function(e,t,n){var r=function(e){var t,n,r=/\\w+/.exec(e);if(!r)return"an";var o=(n=r[0]).toLowerCase(),i=["honest","hour","hono"];for(t in i)if(0==o.indexOf(i[t]))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(t=0;t<u.length;t++)if(o.match(u[t]))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!==e.exports?e.exports=r:window.indefiniteArticle=r}]);`; // tslint:disable-line:max-line-length
export const worker = `!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return f}));var r=n(1);const o=-32603,i=-32602,u=-32601,c=Object(r.compile)({message:'The requested method called "\${method}" is not supported.',status:u}),a=Object(r.compile)({message:'The handler of the method called "\${method}" returned no required result.',status:o}),s=Object(r.compile)({message:'The handler of the method called "\${method}" returned an unexpected result.',status:o}),f=Object(r.compile)({message:'The specified parameter called "portId" with the given value "\${portId}" does not identify a port connected to this worker.',status:i})},function(e,t,n){!function(e,t,n,r){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n,r=r&&r.hasOwnProperty("default")?r.default:r;var o=function(e,t){return void 0===t?e:t.reduce((function(e,t){if("capitalize"===t){var o=e.charAt(0).toUpperCase(),i=e.slice(1);return"".concat(o).concat(i)}return"dashify"===t?n(e):"prependIndefiniteArticle"===t?"".concat(r(e)," ").concat(e):e}),e)},i=function(e,n){for(var r=/\\\${([^.}]+)((\\.[^(]+\\(\\))*)}/g,i=[],u=r.exec(e);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(e)}var f=i.reduce((function(e,r){return e.map((function(e){return"string"==typeof e?e.split(function(e){var t=e.name+e.modifiers.map((function(e){return"\\\\.".concat(e,"\\\\(\\\\)")})).join("");return new RegExp("\\\\$\\\\{".concat(t,"}"),"g")}(r)).reduce((function(e,i,u){return 0===u?[i]:r.name in n?[].concat(t(e),[o(n[r.name],r.modifiers),i]):[].concat(t(e),[function(e){return o(e[r.name],r.modifiers)},i])}),[]):[e]})).reduce((function(e,n){return[].concat(t(e),t(n))}),[])}),[e]);return function(e){return f.reduce((function(n,r){return[].concat(t(n),"string"==typeof r?[r]:[r(e)])}),[]).join("")}};e.compile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0===e.code?void 0:i(e.code,t),r=void 0===e.message?void 0:i(e.message,t);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=void 0===o&&(t instanceof Error||void 0!==t.code&&"Exception"===t.code.slice(-9)),u=i?{cause:t,missingParameters:{}}:{cause:o,missingParameters:t},c=u.cause,a=u.missingParameters,s=void 0===r?new Error:new Error(r(a));return null!==c&&(s.cause=c),void 0!==n&&(s.code=n(a)),void 0!==e.status&&(s.status=e.status),s}return o},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(40),n(44),n(45))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=()=>new Promise(e=>{const t=new ArrayBuffer(0),{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:t})=>e(null!==t),r.postMessage(t,[t])})},function(e,t,n){"use strict";n(4),n(5),n(6),n(7),n(8),n(9),n(10),n(11),n(12),n(13),n(14),n(15),n(16),n(17)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(19),n(20),n(21),n(22),n(23),n(24),n(25),n(26),n(27),n(28),n(29)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(31);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(33);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t){},function(e,t,n){"use strict";n.d(t,"createWorker",(function(){return i}));var r=n(35),o=n(36);n(2),n(3),n(18);const i=(e,t,n=(()=>!0))=>{const u=Object(o.a)(i,t,n),c=Object(r.a)(e,u);return e.addEventListener("message",c),()=>e.removeEventListener("message",c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);const o=(e,t)=>async({data:{id:n,method:o,params:i}})=>{const u=t[o];try{if(void 0===u)throw Object(r.a)({method:o});const t=void 0===i?u():u(i);if(void 0===t)throw Object(r.b)({method:o});const c=t instanceof Promise?await t:t;if(null===n){if(void 0!==c.result)throw Object(r.c)({method:o})}else{if(void 0===c.result)throw Object(r.c)({method:o});const{result:t,transferables:i=[]}=c;e.postMessage({id:n,result:t},i)}}catch(t){const{message:r,status:o=-32603}=t;e.postMessage({error:{code:o,message:r},id:n})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(37),o=n(0),i=n(2);const u=new Map,c=(e,t,n)=>({...t,connect:({port:n})=>{n.start();const o=e(n,t),i=Object(r.generateUniqueNumber)(u);return u.set(i,()=>{o(),n.close(),u.delete(i)}),{result:i}},disconnect:({portId:e})=>{const t=u.get(e);if(void 0===t)throw Object(o.d)({portId:e.toString()});return t(),{result:null}},isSupported:async()=>{if(await Object(i.a)()){const e=n();return{result:e instanceof Promise?await e:e}}return{result:!1}}})},function(e,t,n){!function(e){"use strict";var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=new WeakMap,o=(t=r,function(e,n){return t.set(e,n),n}),i=function(e,t){return function(r){var o=t.get(r),i=void 0===o?r.size:o>2147483646?0:o+1;if(!r.has(i))return e(r,i);if(r.size<1073741824){for(;r.has(i);)i=Math.floor(2147483648*Math.random());return e(r,i)}if(r.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;r.has(i);)i=Math.floor(Math.random()*n);return e(r,i)}}(o,r),u=function(e){return function(t){var n=e(t);return t.add(n),n}}(i);e.addUniqueNumber=u,e.generateUniqueNumber=i,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>new ArrayBuffer(e)},function(e,t,n){"use strict";n.r(t);var r=n(34),o=n(38),i=n(30);for(var u in i)"default"!==u&&function(e){n.d(t,e,(function(){return i[e]}))}(u);var c=n(32);for(var u in c)"default"!==u&&function(e){n.d(t,e,(function(){return c[e]}))}(u);Object(r.createWorker)(self,{allocate:({length:e})=>{const t=Object(o.a)(e);return{result:t,transferables:[t]}},deallocate:()=>({result:void 0})})},function(e,t,n){var r=n(41),o=n(42),i=n(43);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e)throw new TypeError("expected a string");return e.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\\W/g,e=>/[À-ž]/.test(e)?e:"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,e=>t&&t.condense?"-":e).toLowerCase()}},function(e,t,n){var r=function(e){var t,n,r=/\\w+/.exec(e);if(!r)return"an";var o=(n=r[0]).toLowerCase(),i=["honest","hour","hono"];for(t in i)if(0==o.indexOf(i[t]))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(t=0;t<u.length;t++)if(o.match(u[t]))return"a";return n.match(/^U[NK][AIEO]/)?"a":n==n.toUpperCase()?"aedhilmnorsx".indexOf(o[0])>=0?"an":"a":"aeiou".indexOf(o[0])>=0||o.match(/^y(b[lor]|cl[ea]|fere|gg|p[ios]|rou|tt)/)?"an":"a"};void 0!==e.exports?e.exports=r:window.indefiniteArticle=r}]);`; // tslint:disable-line:max-line-length

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc