text: var Ipld=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}return 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 t(){return e.default}:function t(){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=0)}({"./node_modules/abstract-leveldown/abstract-chained-batch.js":function(e,t,n){(function(t){function n(e){this._db=e,this._operations=[],this._written=!1}n.prototype._serializeKey=function(e){return this._db._serializeKey(e)},n.prototype._serializeValue=function(e){return this._db._serializeValue(e)},n.prototype._checkWritten=function(){if(this._written)throw new Error("write() already called on this batch")},n.prototype.put=function(e,t){this._checkWritten();var n=this._db._checkKey(e,"key");if(n)throw n;return e=this._serializeKey(e),t=this._serializeValue(t),this._put(e,t),this},n.prototype._put=function(e,t){this._operations.push({type:"put",key:e,value:t})},n.prototype.del=function(e){this._checkWritten();var t=this._db._checkKey(e,"key");if(t)throw t;return e=this._serializeKey(e),this._del(e),this},n.prototype._del=function(e){this._operations.push({type:"del",key:e})},n.prototype.clear=function(){return this._checkWritten(),this._operations=[],this._clear(),this},n.prototype._clear=function e(){},n.prototype.write=function(e,n){if(this._checkWritten(),"function"==typeof e&&(n=e),"function"!=typeof n)throw new Error("write() requires a callback argument");return"object"!=typeof e&&(e={}),this._written=!0,"function"==typeof this._write?this._write(n):"function"==typeof this._db._batch?this._db._batch(this._operations,e,n):void t.nextTick(n)},e.exports=n}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/abstract-leveldown/abstract-iterator.js":function(e,t,n){(function(t){function n(e){this.db=e,this._ended=!1,this._nexting=!1}n.prototype.next=function(e){var n=this;if("function"!=typeof e)throw new Error("next() requires a callback argument");return n._ended?(t.nextTick(e,new Error("cannot call next() after end()")),n):n._nexting?(t.nextTick(e,new Error("cannot call next() before previous next() has completed")),n):(n._nexting=!0,n._next(function(){n._nexting=!1,e.apply(null,arguments)}),n)},n.prototype._next=function(e){t.nextTick(e)},n.prototype.end=function(e){if("function"!=typeof e)throw new Error("end() requires a callback argument");if(this._ended)return t.nextTick(e,new Error("end() already called on iterator"));this._ended=!0,this._end(e)},n.prototype._end=function(e){t.nextTick(e)},e.exports=n}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/abstract-leveldown/abstract-leveldown.js":function(e,t,n){(function(t,r){var o=n("./node_modules/xtend/immutable.js"),s=n("./node_modules/abstract-leveldown/abstract-iterator.js"),i=n("./node_modules/abstract-leveldown/abstract-chained-batch.js"),a=Object.prototype.hasOwnProperty,u="start end gt gte lt lte".split(" ");function c(e){if(!arguments.length||void 0===e)throw new Error("constructor requires at least a location argument");if("string"!=typeof e)throw new Error("constructor requires a location string argument");this.location=e,this.status="new"}function l(e){var t={};for(var n in e)a.call(e,n)&&(f(n)&&d(e[n])||(t[n]=e[n]));return t}function f(e){return-1!==u.indexOf(e)}function d(e){return""===e||null==e||h(e)}function h(e){return r.isBuffer(e)&&0===e.length}c.prototype.open=function(e,t){var n=this,r=this.status;if("function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("open() requires a callback argument");"object"!=typeof e&&(e={}),e.createIfMissing=!1!==e.createIfMissing,e.errorIfExists=!!e.errorIfExists,this.status="opening",this._open(e,function(e){if(e)return n.status=r,t(e);n.status="open",t()})},c.prototype._open=function(e,n){t.nextTick(n)},c.prototype.close=function(e){var t=this,n=this.status;if("function"!=typeof e)throw new Error("close() requires a callback argument");this.status="closing",this._close(function(r){if(r)return t.status=n,e(r);t.status="closed",e()})},c.prototype._close=function(e){t.nextTick(e)},c.prototype.get=function(e,n,r){if("function"==typeof n&&(r=n),"function"!=typeof r)throw new Error("get() requires a callback argument");var o=this._checkKey(e,"key");if(o)return t.nextTick(r,o);e=this._serializeKey(e),"object"!=typeof n&&(n={}),n.asBuffer=!1!==n.asBuffer,this._get(e,n,r)},c.prototype._get=function(e,n,r){t.nextTick(function(){r(new Error("NotFound"))})},c.prototype.put=function(e,n,r,o){if("function"==typeof r&&(o=r),"function"!=typeof o)throw new Error("put() requires a callback argument");var s=this._checkKey(e,"key");if(s)return t.nextTick(o,s);e=this._serializeKey(e),n=this._serializeValue(n),"object"!=typeof r&&(r={}),this._put(e,n,r,o)},c.prototype._put=function(e,n,r,o){t.nextTick(o)},c.prototype.del=function(e,n,r){if("function"==typeof n&&(r=n),"function"!=typeof r)throw new Error("del() requires a callback argument");var o=this._checkKey(e,"key");if(o)return t.nextTick(r,o);e=this._serializeKey(e),"object"!=typeof n&&(n={}),this._del(e,n,r)},c.prototype._del=function(e,n,r){t.nextTick(r)},c.prototype.batch=function(e,n,r){if(!arguments.length)return this._chainedBatch();if("function"==typeof n&&(r=n),"function"==typeof e&&(r=e),"function"!=typeof r)throw new Error("batch(array) requires a callback argument");if(!Array.isArray(e))return t.nextTick(r,new Error("batch(array) requires an array argument"));n&&"object"==typeof n||(n={});for(var s=new Array(e.length),i=0;i<e.length;i++){if("object"!=typeof e[i]||null===e[i])return t.nextTick(r,new Error("batch(array) element must be an object and not `null`"));var a=o(e[i]);if("put"!==a.type&&"del"!==a.type)return t.nextTick(r,new Error("`type` must be 'put' or 'del'"));var u=this._checkKey(a.key,"key");if(u)return t.nextTick(r,u);a.key=this._serializeKey(a.key),"put"===a.type&&(a.value=this._serializeValue(a.value)),s[i]=a}this._batch(s,n,r)},c.prototype._batch=function(e,n,r){t.nextTick(r)},c.prototype._setupIteratorOptions=function(e){return(e=l(e)).reverse=!!e.reverse,e.keys=!1!==e.keys,e.values=!1!==e.values,e.limit="limit"in e?e.limit:-1,e.keyAsBuffer=!1!==e.keyAsBuffer,e.valueAsBuffer=!1!==e.valueAsBuffer,e},c.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),e=this._setupIteratorOptions(e),this._iterator(e)},c.prototype._iterator=function(e){return new s(this)},c.prototype._chainedBatch=function(){return new i(this)},c.prototype._serializeKey=function(e){return r.isBuffer(e)?e:String(e)},c.prototype._serializeValue=function(e){return null==e?"":r.isBuffer(e)||t.browser?e:String(e)},c.prototype._checkKey=function(e,t){return null===e||void 0===e?new Error(t+" cannot be `null` or `undefined`"):r.isBuffer(e)&&0===e.length?new Error(t+" cannot be an empty Buffer"):""===String(e)?new Error(t+" cannot be an empty String"):void 0},e.exports=c}).call(this,n("./node_modules/process/browser.js"),n("./node_modules/buffer/index.js").Buffer)},"./node_modules/abstract-leveldown/index.js":function(e,t,n){t.AbstractLevelDOWN=n("./node_modules/abstract-leveldown/abstract-leveldown.js"),t.AbstractIterator=n("./node_modules/abstract-leveldown/abstract-iterator.js"),t.AbstractChainedBatch=n("./node_modules/abstract-leveldown/abstract-chained-batch.js")},"./node_modules/assert/assert.js":function(e,t,n){"use strict";(function(t){function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,s=Math.min(n,r);o<s;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0}function o(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var s=n("./node_modules/util/util.js"),i=Object.prototype.hasOwnProperty,a=Array.prototype.slice,u="foo"===function e(){}.name;function c(e){return Object.prototype.toString.call(e)}function l(e){return!o(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var f=e.exports=g,d=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(s.isFunction(e)){if(u)return e.name;var t,n=e.toString().match(d);return n&&n[1]}}function p(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function m(e){if(u||!s.isFunction(e))return s.inspect(e);var t=h(e),n;return"[Function"+(t?": "+t:"")+"]"}function b(e){return p(m(e.actual),128)+" "+e.operator+" "+p(m(e.expected),128)}function y(e,t,n,r,o){throw new f.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:o})}function g(e,t){e||y(e,!0,t,"==",f.ok)}function _(e,t,n,i){if(e===t)return!0;if(o(e)&&o(t))return 0===r(e,t);if(s.isDate(e)&&s.isDate(t))return e.getTime()===t.getTime();if(s.isRegExp(e)&&s.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(l(e)&&l(t)&&c(e)===c(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;var a=(i=i||{actual:[],expected:[]}).actual.indexOf(e);return-1!==a&&a===i.expected.indexOf(t)||(i.actual.push(e),i.expected.push(t),k(e,t,n,i))}return n?e===t:e==t}function v(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function k(e,t,n,r){if(null===e||void 0===e||null===t||void 0===t)return!1;if(s.isPrimitive(e)||s.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var o=v(e),i=v(t);if(o&&!i||!o&&i)return!1;if(o)return _(e=a.call(e),t=a.call(t),n);var u=E(e),c=E(t),l,f;if(u.length!==c.length)return!1;for(u.sort(),c.sort(),f=u.length-1;f>=0;f--)if(u[f]!==c[f])return!1;for(f=u.length-1;f>=0;f--)if(!_(e[l=u[f]],t[l],n,r))return!1;return!0}function w(e,t,n){_(e,t,!0)&&y(e,t,n,"notDeepStrictEqual",w)}function x(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function j(e){var t;try{e()}catch(e){t=e}return t}function S(e,t,n,r){var o;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=j(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!o&&y(o,n,"Missing expected exception"+r);var i="string"==typeof r,a=!e&&s.isError(o),u=!e&&o&&!n;if((a&&i&&x(o,n)||u)&&y(o,n,"Got unwanted exception"+r),e&&o&&n&&!x(o,n)||!e&&o)throw o}f.AssertionError=function e(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=b(this),this.generatedMessage=!0);var n=t.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var o=r.stack,s=h(n),i=o.indexOf("\n"+s);if(i>=0){var a=o.indexOf("\n",i+1);o=o.substring(a+1)}this.stack=o}}},s.inherits(f.AssertionError,Error),f.fail=y,f.ok=g,f.equal=function e(t,n,r){t!=n&&y(t,n,r,"==",f.equal)},f.notEqual=function e(t,n,r){t==n&&y(t,n,r,"!=",f.notEqual)},f.deepEqual=function e(t,n,r){_(t,n,!1)||y(t,n,r,"deepEqual",f.deepEqual)},f.deepStrictEqual=function e(t,n,r){_(t,n,!0)||y(t,n,r,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function e(t,n,r){_(t,n,!1)&&y(t,n,r,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=w,f.strictEqual=function e(t,n,r){t!==n&&y(t,n,r,"===",f.strictEqual)},f.notStrictEqual=function e(t,n,r){t===n&&y(t,n,r,"!==",f.notStrictEqual)},f.throws=function(e,t,n){S(!0,e,t,n)},f.doesNotThrow=function(e,t,n){S(!1,e,t,n)},f.ifError=function(e){if(e)throw e};var E=Object.keys||function(e){var t=[];for(var n in e)i.call(e,n)&&t.push(n);return t}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/async/asyncify.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r,o=c(n("./node_modules/lodash/isObject.js")),s,i=c(n("./node_modules/async/internal/initialParams.js")),a,u=c(n("./node_modules/async/internal/setImmediate.js"));function c(e){return e&&e.__esModule?e:{default:e}}function l(e){return(0,i.default)(function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}(0,o.default)(r)&&"function"==typeof r.then?r.then(function(e){f(n,null,e)},function(e){f(n,e.message?e:new Error(e))}):n(null,r)})}function f(e,t,n){try{e(t,n)}catch(e){(0,u.default)(d,e)}}function d(e){throw e}e.exports=t.default},"./node_modules/async/doUntil.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r,o=s(n("./node_modules/async/doWhilst.js"));function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){(0,o.default)(e,function(){return!t.apply(this,arguments)},n)}e.exports=t.default},"./node_modules/async/doWhilst.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var r,o=f(n("./node_modules/lodash/noop.js")),s,i=f(n("./node_modules/async/internal/slice.js")),a,u=f(n("./node_modules/async/internal/onlyOnce.js")),c,l=f(n("./node_modules/async/internal/wrapAsync.js"));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){n=(0,u.default)(n||o.default);var r=(0,l.default)(e),s=function(e){if(e)return n(e);var o=(0,i.default)(arguments,1);if(t.apply(this,o))return r(s);n.apply(null,[null].concat(o))};r(s)}e.exports=t.default},"./node_modules/async/each.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r,o=c(n("./node_modules/async/eachOf.js")),s,i=c(n("./node_modules/async/internal/withoutIndex.js")),a,u=c(n("./node_modules/async/internal/wrapAsync.js"));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){(0,o.default)(e,(0,i.default)((0,u.default)(t)),n)}e.exports=t.default},"./node_modules/async/eachOf.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r;((0,o.default)(e)?v:k)(e,(0,g.default)(t),n)};var r,o=_(n("./node_modules/lodash/isArrayLike.js")),s,i=_(n("./node_modules/async/internal/breakLoop.js")),a,u=_(n("./node_modules/async/eachOfLimit.js")),c,l=_(n("./node_modules/async/internal/doLimit.js")),f,d=_(n("./node_modules/lodash/noop.js")),h,p=_(n("./node_modules/async/internal/once.js")),m,b=_(n("./node_modules/async/internal/onlyOnce.js")),y,g=_(n("./node_modules/async/internal/wrapAsync.js"));function _(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){n=(0,p.default)(n||d.default);var r=0,o=0,s=e.length;function a(e,t){e?n(e):++o!==s&&t!==i.default||n(null)}for(0===s&&n(null);r<s;r++)t(e[r],r,(0,b.default)(a))}var k=(0,l.default)(u.default,1/0);e.exports=t.default},"./node_modules/async/eachOfLimit.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r,o=a(n("./node_modules/async/internal/eachOfLimit.js")),s,i=a(n("./node_modules/async/internal/wrapAsync.js"));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n,r){(0,o.default)(t)(e,(0,i.default)(n),r)}e.exports=t.default},"./node_modules/async/eachOfSeries.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=a(n("./node_modules/async/eachOfLimit.js")),s,i=a(n("./node_modules/async/internal/doLimit.js"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(o.default,1),e.exports=t.default},"./node_modules/async/internal/DoublyLinkedList.js":function(e,t,n){"use strict";function r(){this.head=this.tail=null,this.length=0}function o(e,t){e.length=1,e.head=e.tail=t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype.removeLink=function(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e},r.prototype.empty=function(){for(;this.head;)this.shift();return this},r.prototype.insertAfter=function(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1},r.prototype.insertBefore=function(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1},r.prototype.unshift=function(e){this.head?this.insertBefore(this.head,e):o(this,e)},r.prototype.push=function(e){this.tail?this.insertAfter(this.tail,e):o(this,e)},r.prototype.shift=function(){return this.head&&this.removeLink(this.head)},r.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},r.prototype.toArray=function(){for(var e=Array(this.length),t=this.head,n=0;n<this.length;n++)e[n]=t.data,t=t.next;return e},r.prototype.remove=function(e){for(var t=this.head;t;){var n=t.next;e(t)&&this.removeLink(t),t=n}return this},e.exports=t.default},"./node_modules/async/internal/breakLoop.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={},e.exports=t.default},"./node_modules/async/internal/doLimit.js":function(e,t,n){"use strict";function r(e,t){return function(n,r,o){return e(n,t,r,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},"./node_modules/async/internal/doParallel.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r,o=a(n("./node_modules/async/eachOf.js")),s,i=a(n("./node_modules/async/internal/wrapAsync.js"));function a(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(t,n,r){return e(o.default,t,(0,i.default)(n),r)}}e.exports=t.default},"./node_modules/async/internal/eachOfLimit.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r,o=h(n("./node_modules/lodash/noop.js")),s,i=h(n("./node_modules/async/internal/once.js")),a,u=h(n("./node_modules/async/internal/iterator.js")),c,l=h(n("./node_modules/async/internal/onlyOnce.js")),f,d=h(n("./node_modules/async/internal/breakLoop.js"));function h(e){return e&&e.__esModule?e:{default:e}}function p(e){return function(t,n,r){if(r=(0,i.default)(r||o.default),e<=0||!t)return r(null);var s=(0,u.default)(t),a=!1,c=0,f=!1;function h(e,t){if(c-=1,e)a=!0,r(e);else{if(t===d.default||a&&c<=0)return a=!0,r(null);f||p()}}function p(){for(f=!0;c<e&&!a;){var t=s();if(null===t)return a=!0,void(c<=0&&r(null));c+=1,n(t.value,t.key,(0,l.default)(h))}f=!1}p()}}e.exports=t.default},"./node_modules/async/internal/filter.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r,o=h(n("./node_modules/lodash/_arrayMap.js")),s,i=h(n("./node_modules/lodash/isArrayLike.js")),a,u=h(n("./node_modules/lodash/_baseProperty.js")),c,l=h(n("./node_modules/lodash/noop.js")),f,d=h(n("./node_modules/async/internal/wrapAsync.js"));function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n,r){var o=new Array(t.length);e(t,function(e,t,r){n(e,function(e,n){o[t]=!!n,r(e)})},function(e){if(e)return r(e);for(var n=[],s=0;s<t.length;s++)o[s]&&n.push(t[s]);r(null,n)})}function m(e,t,n,r){var s=[];e(t,function(e,t,r){n(e,function(n,o){n?r(n):(o&&s.push({index:t,value:e}),r())})},function(e){e?r(e):r(null,(0,o.default)(s.sort(function(e,t){return e.index-t.index}),(0,u.default)("value")))})}function b(e,t,n,r){var o;((0,i.default)(t)?p:m)(e,t,(0,d.default)(n),r||l.default)}e.exports=t.default},"./node_modules/async/internal/getIterator.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r&&e[r]&&e[r]()};var r="function"==typeof Symbol&&Symbol.iterator;e.exports=t.default},"./node_modules/async/internal/initialParams.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=(0,o.default)(arguments),n=t.pop();e.call(this,t,n)}};var r,o=s(n("./node_modules/async/internal/slice.js"));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},"./node_modules/async/internal/iterator.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var r,o=c(n("./node_modules/lodash/isArrayLike.js")),s,i=c(n("./node_modules/async/internal/getIterator.js")),a,u=c(n("./node_modules/lodash/keys.js"));function c(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=-1,n=e.length;return function r(){return++t<n?{value:e[t],key:t}:null}}function f(e){var t=-1;return function n(){var r=e.next();return r.done?null:(t++,{value:r.value,key:t})}}function d(e){var t=(0,u.default)(e),n=-1,r=t.length;return function o(){var s=t[++n];return n<r?{value:e[s],key:s}:null}}function h(e){if((0,o.default)(e))return l(e);var t=(0,i.default)(e);return t?f(t):d(e)}e.exports=t.default},"./node_modules/async/internal/map.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r,o=a(n("./node_modules/lodash/noop.js")),s,i=a(n("./node_modules/async/internal/wrapAsync.js"));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n,r){r=r||o.default,t=t||[];var s=[],a=0,u=(0,i.default)(n);e(t,function(e,t,n){var r=a++;u(e,function(e,t){s[r]=t,n(e)})},function(e){r(e,s)})}e.exports=t.default},"./node_modules/async/internal/once.js":function(e,t,n){"use strict";function r(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},"./node_modules/async/internal/onlyOnce.js":function(e,t,n){"use strict";function r(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},"./node_modules/async/internal/parallel.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var r,o=f(n("./node_modules/lodash/noop.js")),s,i=f(n("./node_modules/lodash/isArrayLike.js")),a,u=f(n("./node_modules/async/internal/slice.js")),c,l=f(n("./node_modules/async/internal/wrapAsync.js"));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){n=n||o.default;var r=(0,i.default)(t)?[]:{};e(t,function(e,t,n){(0,l.default)(e)(function(e,o){arguments.length>2&&(o=(0,u.default)(arguments,1)),r[t]=o,n(e)})},function(e){n(e,r)})}e.exports=t.default},"./node_modules/async/internal/queue.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var r,o=y(n("./node_modules/lodash/_baseIndexOf.js")),s,i=y(n("./node_modules/lodash/isArray.js")),a,u=y(n("./node_modules/lodash/noop.js")),c,l=y(n("./node_modules/async/internal/onlyOnce.js")),f,d=y(n("./node_modules/async/internal/setImmediate.js")),h,p=y(n("./node_modules/async/internal/DoublyLinkedList.js")),m,b=y(n("./node_modules/async/internal/wrapAsync.js"));function y(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var r=(0,b.default)(e),s=0,a=[],c=!1;function f(e,t,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(y.started=!0,(0,i.default)(e)||(e=[e]),0===e.length&&y.idle())return(0,d.default)(function(){y.drain()});for(var r=0,o=e.length;r<o;r++){var s={data:e[r],callback:n||u.default};t?y._tasks.unshift(s):y._tasks.push(s)}c||(c=!0,(0,d.default)(function(){c=!1,y.process()}))}function h(e){return function(t){s-=1;for(var n=0,r=e.length;n<r;n++){var i=e[n],u=(0,o.default)(a,i,0);0===u?a.shift():u>0&&a.splice(u,1),i.callback.apply(i,arguments),null!=t&&y.error(t,i.data)}s<=y.concurrency-y.buffer&&y.unsaturated(),y.idle()&&y.drain(),y.process()}}var m=!1,y={_tasks:new p.default,concurrency:t,payload:n,saturated:u.default,unsaturated:u.default,buffer:t/4,empty:u.default,drain:u.default,error:u.default,started:!1,paused:!1,push:function(e,t){f(e,!1,t)},kill:function(){y.drain=u.default,y._tasks.empty()},unshift:function(e,t){f(e,!0,t)},remove:function(e){y._tasks.remove(e)},process:function(){if(!m){for(m=!0;!y.paused&&s<y.concurrency&&y._tasks.length;){var e=[],t=[],n=y._tasks.length;y.payload&&(n=Math.min(n,y.payload));for(var o=0;o<n;o++){var i=y._tasks.shift();e.push(i),a.push(i),t.push(i.data)}s+=1,0===y._tasks.length&&y.empty(),s===y.concurrency&&y.saturated();var u=(0,l.default)(h(e));r(t,u)}m=!1}},length:function(){return y._tasks.length},running:function(){return s},workersList:function(){return a},idle:function(){return y._tasks.length+s===0},pause:function(){y.paused=!0},resume:function(){!1!==y.paused&&(y.paused=!1,(0,d.default)(y.process))}};return y}e.exports=t.default},"./node_modules/async/internal/reject.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r,o=s(n("./node_modules/async/internal/filter.js"));function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,r){(0,o.default)(e,t,function(e,t){n(e,function(e,n){t(e,!n)})},r)}e.exports=t.default},"./node_modules/async/internal/setImmediate.js":function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0}),t.hasNextTick=t.hasSetImmediate=void 0,t.fallback=l,t.wrap=f;var o,s=i(n("./node_modules/async/internal/slice.js"));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.hasSetImmediate="function"==typeof e&&e,u=t.hasNextTick="object"==typeof r&&"function"==typeof r.nextTick,c;function l(e){setTimeout(e,0)}function f(e){return function(t){var n=(0,s.default)(arguments,1);e(function(){t.apply(null,n)})}}c=a?e:u?r.nextTick:l,t.default=f(c)}).call(this,n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.js"))},"./node_modules/async/internal/slice.js":function(e,t,n){"use strict";function r(e,t){t|=0;for(var n=Math.max(e.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=e[t+o];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},"./node_modules/async/internal/withoutIndex.js":function(e,t,n){"use strict";function r(e){return function(t,n,r){return e(t,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},"./node_modules/async/internal/wrapAsync.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=void 0;var r,o=s(n("./node_modules/async/asyncify.js"));function s(e){return e&&e.__esModule?e:{default:e}}var i="function"==typeof Symbol;function a(e){return i&&"AsyncFunction"===e[Symbol.toStringTag]}function u(e){return a(e)?(0,o.default)(e):e}t.default=u,t.isAsync=a},"./node_modules/async/map.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=a(n("./node_modules/async/internal/doParallel.js")),s,i=a(n("./node_modules/async/internal/map.js"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)(i.default),e.exports=t.default},"./node_modules/async/parallel.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r,o=a(n("./node_modules/async/eachOf.js")),s,i=a(n("./node_modules/async/internal/parallel.js"));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(0,i.default)(o.default,e,t)}e.exports=t.default},"./node_modules/async/queue.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);return(0,o.default)(function(e,t){n(e[0],t)},t,1)};var r,o=a(n("./node_modules/async/internal/queue.js")),s,i=a(n("./node_modules/async/internal/wrapAsync.js"));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},"./node_modules/async/reject.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=a(n("./node_modules/async/internal/reject.js")),s,i=a(n("./node_modules/async/internal/doParallel.js"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(o.default),e.exports=t.default},"./node_modules/async/series.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r,o=a(n("./node_modules/async/internal/parallel.js")),s,i=a(n("./node_modules/async/eachOfSeries.js"));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(0,o.default)(i.default,e,t)}e.exports=t.default},"./node_modules/async/setImmediate.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=s(n("./node_modules/async/internal/setImmediate.js"));function s(e){return e&&e.__esModule?e:{default:e}}t.default=o.default,e.exports=t.default},"./node_modules/async/waterfall.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t=(0,u.default)(t||i.default),!(0,o.default)(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function r(t){var r=(0,p.default)(e[n++]);t.push((0,d.default)(s)),r.apply(null,t)}function s(o){if(o||n===e.length)return t.apply(null,arguments);r((0,l.default)(arguments,1))}r([])};var r,o=m(n("./node_modules/lodash/isArray.js")),s,i=m(n("./node_modules/lodash/noop.js")),a,u=m(n("./node_modules/async/internal/once.js")),c,l=m(n("./node_modules/async/internal/slice.js")),f,d=m(n("./node_modules/async/internal/onlyOnce.js")),h,p=m(n("./node_modules/async/internal/wrapAsync.js"));function m(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},"./node_modules/async/whilst.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var r,o=f(n("./node_modules/lodash/noop.js")),s,i=f(n("./node_modules/async/internal/slice.js")),a,u=f(n("./node_modules/async/internal/onlyOnce.js")),c,l=f(n("./node_modules/async/internal/wrapAsync.js"));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){n=(0,u.default)(n||o.default);var r=(0,l.default)(t);if(!e())return n(null);var s=function(t){if(t)return n(t);if(e())return r(s);var o=(0,i.default)(arguments,1);n.apply(null,[null].concat(o))};r(s)}e.exports=t.default},"./node_modules/base-x/index.js":function(e,t,n){var r=n("./node_modules/safe-buffer/index.js").Buffer;e.exports=function e(t){for(var n={},o=t.length,s=t.charAt(0),i=0;i<t.length;i++){var a=t.charAt(i);if(void 0!==n[a])throw new TypeError(a+" is ambiguous");n[a]=i}function u(e){if(0===e.length)return"";for(var n=[0],r=0;r<e.length;++r){for(var i=0,a=e[r];i<n.length;++i)a+=n[i]<<8,n[i]=a%o,a=a/o|0;for(;a>0;)n.push(a%o),a=a/o|0}for(var u="",c=0;0===e[c]&&c<e.length-1;++c)u+=s;for(var l=n.length-1;l>=0;--l)u+=t[n[l]];return u}function c(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return r.allocUnsafe(0);for(var t=[0],i=0;i<e.length;i++){var a=n[e[i]];if(void 0===a)return;for(var u=0,c=a;u<t.length;++u)c+=t[u]*o,t[u]=255&c,c>>=8;for(;c>0;)t.push(255&c),c>>=8}for(var l=0;e[l]===s&&l<e.length-1;++l)t.push(0);return r.from(t.reverse())}function l(e){var t=c(e);if(t)return t;throw new Error("Non-base"+o+" character")}return{encode:u,decodeUnsafe:c,decode:l}}},"./node_modules/base32.js/base32.js":function(e,t,n){"use strict";var r=function(e,t){return t||(t={}),e.split("").forEach(function(e,n){e in t||(t[e]=n)}),t},o={alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",charmap:{0:14,1:8}};o.charmap=r(o.alphabet,o.charmap);var s={alphabet:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",charmap:{O:0,I:1,L:1}};s.charmap=r(s.alphabet,s.charmap);var i={alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",charmap:{}};function a(e){if(this.buf=[],this.shift=8,this.carry=0,e){switch(e.type){case"rfc4648":this.charmap=t.rfc4648.charmap;break;case"crockford":this.charmap=t.crockford.charmap;break;case"base32hex":this.charmap=t.base32hex.charmap;break;default:throw new Error("invalid type")}e.charmap&&(this.charmap=e.charmap)}}function u(e){if(this.buf="",this.shift=3,this.carry=0,e){switch(e.type){case"rfc4648":this.alphabet=t.rfc4648.alphabet;break;case"crockford":this.alphabet=t.crockford.alphabet;break;case"base32hex":this.alphabet=t.base32hex.alphabet;break;default:throw new Error("invalid type")}e.alphabet?this.alphabet=e.alphabet:e.lc&&(this.alphabet=this.alphabet.toLowerCase())}}i.charmap=r(i.alphabet,i.charmap),a.prototype.charmap=o.charmap,a.prototype.write=function(e){var t=this.charmap,n=this.buf,r=this.shift,o=this.carry;return e.toUpperCase().split("").forEach(function(e){if("="!=e){var s=255&t[e];(r-=5)>0?o|=s<<r:r<0?(n.push(o|s>>-r),o=s<<(r+=8)&255):(n.push(o|s),r=8,o=0)}}),this.shift=r,this.carry=o,this},a.prototype.finalize=function(e){return e&&this.write(e),8!==this.shift&&0!==this.carry&&(this.buf.push(this.carry),this.shift=8,this.carry=0),this.buf},u.prototype.alphabet=o.alphabet,u.prototype.write=function(e){var t=this.shift,n=this.carry,r,o,s;for(s=0;s<e.length;s++)r=n|(o=e[s])>>t,this.buf+=this.alphabet[31&r],t>5&&(r=o>>(t-=5),this.buf+=this.alphabet[31&r]),n=o<<(t=5-t),t=8-t;return this.shift=t,this.carry=n,this},u.prototype.finalize=function(e){return e&&this.write(e),3!==this.shift&&(this.buf+=this.alphabet[31&this.carry],this.shift=3,this.carry=0),this.buf},t.encode=function(e,t){return new u(t).finalize(e)},t.decode=function(e,t){return new a(t).finalize(e)},t.Decoder=a,t.Encoder=u,t.charmap=r,t.crockford=s,t.rfc4648=o,t.base32hex=i},"./node_modules/base64-js/index.js":function(e,t,n){"use strict";t.byteLength=l,t.toByteArray=d,t.fromByteArray=m;for(var r=[],o=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=i.length;a<u;++a)r[a]=i[a],o[i.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("="),r;return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){for(var t,n=c(e),r=n[0],i=n[1],a=new s(f(e,r,i)),u=0,l=i>0?r-4:r,d=0;d<l;d+=4)t=o[e.charCodeAt(d)]<<18|o[e.charCodeAt(d+1)]<<12|o[e.charCodeAt(d+2)]<<6|o[e.charCodeAt(d+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=255&t;return 2===i&&(t=o[e.charCodeAt(d)]<<2|o[e.charCodeAt(d+1)]>>4,a[u++]=255&t),1===i&&(t=o[e.charCodeAt(d)]<<10|o[e.charCodeAt(d+1)]<<4|o[e.charCodeAt(d+2)]>>2,a[u++]=t>>8&255,a[u++]=255&t),a}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,o=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(h(r));return o.join("")}function m(e){for(var t,n=e.length,o=n%3,s=[],i=16383,a=0,u=n-o;a<u;a+=16383)s.push(p(e,a,a+16383>u?u:a+16383));return 1===o?(t=e[n-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"./node_modules/big.js/big.js":function(e,t,n){var r;!function(o){"use strict";var s,i=20,a=1,u=1e6,c=1e6,l=-7,f=21,d="[big.js] ",h=d+"Invalid ",p=h+"decimal places",m=h+"rounding mode",b=d+"Division by zero",y={},g=void 0,_=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function v(){function e(t){var n=this;if(!(n instanceof e))return t===g?v():new e(t);t instanceof e?(n.s=t.s,n.e=t.e,n.c=t.c.slice()):k(n,t),n.constructor=e}return e.prototype=y,e.DP=i,e.RM=a,e.NE=l,e.PE=f,e.version="5.2.2",e}function k(e,t){var n,r,o;if(0===t&&1/t<0)t="-0";else if(!_.test(t+=""))throw Error(h+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<o&&"0"==t.charAt(r);)++r;if(r==o)e.c=[e.e=0];else{for(;o>0&&"0"==t.charAt(--o););for(e.e=n-r-1,e.c=[],n=0;r<=o;)e.c[n++]=+t.charAt(r++)}return e}function w(e,t,n,r){var o=e.c,s=e.e+t+1;if(s<o.length){if(1===n)r=o[s]>=5;else if(2===n)r=o[s]>5||5==o[s]&&(r||s<0||o[s+1]!==g||1&o[s-1]);else if(3===n)r=r||!!o[0];else if(r=!1,0!==n)throw Error(m);if(s<1)o.length=1,r?(e.e=-t,o[0]=1):o[0]=e.e=0;else{if(o.length=s--,r)for(;++o[s]>9;)o[s]=0,s--||(++e.e,o.unshift(1));for(s=o.length;!o[--s];)o.pop()}}else if(n<0||n>3||n!==~~n)throw Error(m);return e}function x(e,t,n,r){var o,s,i=e.constructor,a=!e.c[0];if(n!==g){if(n!==~~n||n<(3==t)||n>u)throw Error(3==t?h+"precision":p);for(n=r-(e=new i(e)).e,e.c.length>++r&&w(e,n,i.RM),2==t&&(r=e.e+n+1);e.c.length<r;)e.c.push(0)}if(o=e.e,n=(s=e.c.join("")).length,2!=t&&(1==t||3==t&&r<=o||o<=i.NE||o>=i.PE))s=s.charAt(0)+(n>1?"."+s.slice(1):"")+(o<0?"e":"e+")+o;else if(o<0){for(;++o;)s="0"+s;s="0."+s}else if(o>0)if(++o>n)for(o-=n;o--;)s+="0";else o<n&&(s=s.slice(0,o)+"."+s.slice(o));else n>1&&(s=s.charAt(0)+"."+s.slice(1));return e.s<0&&(!a||4==t)?"-"+s:s}y.abs=function(){var e=new this.constructor(this);return e.s=1,e},y.cmp=function(e){var t,n=this,r=n.c,o=(e=new n.constructor(e)).c,s=n.s,i=e.s,a=n.e,u=e.e;if(!r[0]||!o[0])return r[0]?s:o[0]?-i:0;if(s!=i)return s;if(t=s<0,a!=u)return a>u^t?1:-1;for(i=(a=r.length)<(u=o.length)?a:u,s=-1;++s<i;)if(r[s]!=o[s])return r[s]>o[s]^t?1:-1;return a==u?0:a>u^t?1:-1},y.div=function(e){var t=this,n=t.constructor,r=t.c,o=(e=new n(e)).c,s=t.s==e.s?1:-1,i=n.DP;if(i!==~~i||i<0||i>u)throw Error(p);if(!o[0])throw Error(b);if(!r[0])return new n(0*s);var a,c,l,f,d,h=o.slice(),m=a=o.length,y=r.length,_=r.slice(0,a),v=_.length,k=e,x=k.c=[],j=0,S=i+(k.e=t.e-e.e)+1;for(k.s=s,s=S<0?0:S,h.unshift(0);v++<a;)_.push(0);do{for(l=0;l<10;l++){if(a!=(v=_.length))f=a>v?1:-1;else for(d=-1,f=0;++d<a;)if(o[d]!=_[d]){f=o[d]>_[d]?1:-1;break}if(!(f<0))break;for(c=v==a?o:h;v;){if(_[--v]<c[v]){for(d=v;d&&!_[--d];)_[d]=9;--_[d],_[v]+=10}_[v]-=c[v]}for(;!_[0];)_.shift()}x[j++]=f?l:++l,_[0]&&f?_[v]=r[m]||0:_=[r[m]]}while((m++<y||_[0]!==g)&&s--);return x[0]||1==j||(x.shift(),k.e--),j>S&&w(k,i,n.RM,_[0]!==g),k},y.eq=function(e){return!this.cmp(e)},y.gt=function(e){return this.cmp(e)>0},y.gte=function(e){return this.cmp(e)>-1},y.lt=function(e){return this.cmp(e)<0},y.lte=function(e){return this.cmp(e)<1},y.minus=y.sub=function(e){var t,n,r,o,s=this,i=s.constructor,a=s.s,u=(e=new i(e)).s;if(a!=u)return e.s=-u,s.plus(e);var c=s.c.slice(),l=s.e,f=e.c,d=e.e;if(!c[0]||!f[0])return f[0]?(e.s=-u,e):new i(c[0]?s:0);if(a=l-d){for((o=a<0)?(a=-a,r=c):(d=l,r=f),r.reverse(),u=a;u--;)r.push(0);r.reverse()}else for(n=((o=c.length<f.length)?c:f).length,a=u=0;u<n;u++)if(c[u]!=f[u]){o=c[u]<f[u];break}if(o&&(r=c,c=f,f=r,e.s=-e.s),(u=(n=f.length)-(t=c.length))>0)for(;u--;)c[t++]=0;for(u=t;n>a;){if(c[--n]<f[n]){for(t=n;t&&!c[--t];)c[t]=9;--c[t],c[n]+=10}c[n]-=f[n]}for(;0===c[--u];)c.pop();for(;0===c[0];)c.shift(),--d;return c[0]||(e.s=1,c=[d=0]),e.c=c,e.e=d,e},y.mod=function(e){var t,n=this,r=n.constructor,o=n.s,s=(e=new r(e)).s;if(!e.c[0])throw Error(b);return n.s=e.s=1,t=1==e.cmp(n),n.s=o,e.s=s,t?new r(n):(o=r.DP,s=r.RM,r.DP=r.RM=0,n=n.div(e),r.DP=o,r.RM=s,this.minus(n.times(e)))},y.plus=y.add=function(e){var t,n=this,r=n.constructor,o=n.s,s=(e=new r(e)).s;if(o!=s)return e.s=-s,n.minus(e);var i=n.e,a=n.c,u=e.e,c=e.c;if(!a[0]||!c[0])return c[0]?e:new r(a[0]?n:0*o);if(a=a.slice(),o=i-u){for(o>0?(u=i,t=c):(o=-o,t=a),t.reverse();o--;)t.push(0);t.reverse()}for(a.length-c.length<0&&(t=c,c=a,a=t),o=c.length,s=0;o;a[o]%=10)s=(a[--o]=a[o]+c[o]+s)/10|0;for(s&&(a.unshift(s),++u),o=a.length;0===a[--o];)a.pop();return e.c=a,e.e=u,e},y.pow=function(e){var t=this,n=new t.constructor(1),r=n,o=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(h+"exponent");for(o&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return o?n.div(r):r},y.round=function(e,t){var n=this.constructor;if(e===g)e=0;else if(e!==~~e||e<-u||e>u)throw Error(p);return w(new n(this),e,t===g?n.RM:t)},y.sqrt=function(){var e,t,n,r=this,o=r.constructor,s=r.s,i=r.e,a=new o(.5);if(!r.c[0])return new o(r);if(s<0)throw Error(d+"No square root");0===(s=Math.sqrt(r+""))||s===1/0?((t=r.c.join("")).length+i&1||(t+="0"),s=Math.sqrt(t),i=((i+1)/2|0)-(i<0||1&i),e=new o((s==1/0?"1e":(s=s.toExponential()).slice(0,s.indexOf("e")+1))+i)):e=new o(s),i=e.e+(o.DP+=4);do{n=e,e=a.times(n.plus(r.div(n)))}while(n.c.slice(0,i).join("")!==e.c.slice(0,i).join(""));return w(e,o.DP-=4,o.RM)},y.times=y.mul=function(e){var t,n=this,r=n.constructor,o=n.c,s=(e=new r(e)).c,i=o.length,a=s.length,u=n.e,c=e.e;if(e.s=n.s==e.s?1:-1,!o[0]||!s[0])return new r(0*e.s);for(e.e=u+c,i<a&&(t=o,o=s,s=t,c=i,i=a,a=c),t=new Array(c=i+a);c--;)t[c]=0;for(u=a;u--;){for(a=0,c=i+u;c>u;)a=t[c]+s[u]*o[c-u-1]+a,t[c--]=a%10,a=a/10|0;t[c]=(t[c]+a)%10}for(a?++e.e:t.shift(),u=t.length;!t[--u];)t.pop();return e.c=t,e},y.toExponential=function(e){return x(this,1,e,e)},y.toFixed=function(e){return x(this,2,e,this.e+e)},y.toPrecision=function(e){return x(this,3,e,e-1)},y.toString=function(){return x(this)},y.valueOf=y.toJSON=function(){return x(this,4)},(s=v()).default=s.Big=s,void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}(this)},"./node_modules/bignumber.js/bignumber.js":function(e,t,n){var r;!function(o){"use strict";var s,i=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,u=Math.floor,c="[BigNumber Error] ",l=c+"Number primitive has more than 15 significant digits: ",f=1e14,d=14,h=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,b=1e9;function y(e){var t,n,r,o=$.prototype={constructor:$,toString:null,valueOf:null},s=new $(1),E=20,A=4,O=-7,T=21,I=-1e7,N=1e7,B=!1,C=1,R=0,F={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0},P="0123456789abcdefghijklmnopqrstuvwxyz",M,L,U,D,z,q,K;function $(e,t){var o,s,a,c,f,p,m,b,y=this;if(!(y instanceof $))return new $(e,t);if(null==t){if(e instanceof $)return y.s=e.s,y.e=e.e,void(y.c=(e=e.c)?e.slice():e);if((p="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,f=e;f>=10;f/=10,c++);return y.e=c,void(y.c=[e])}b=e+""}else{if(!i.test(b=e+""))return r(y,b,p);y.s=45==b.charCodeAt(0)?(b=b.slice(1),-1):1}(c=b.indexOf("."))>-1&&(b=b.replace(".","")),(f=b.search(/e/i))>0?(c<0&&(c=f),c+=+b.slice(f+1),b=b.substring(0,f)):c<0&&(c=b.length)}else{if(k(t,2,P.length,"Base"),b=e+"",10==t)return Y(y=new $(e instanceof $?e:b),E+y.e+1,A);if(p="number"==typeof e){if(0*e!=0)return r(y,b,p,t);if(y.s=1/e<0?(b=b.slice(1),-1):1,$.DEBUG&&b.replace(/^0\.0*|\./,"").length>15)throw Error(l+e);p=!1}else y.s=45===b.charCodeAt(0)?(b=b.slice(1),-1):1;for(o=P.slice(0,t),c=f=0,m=b.length;f<m;f++)if(o.indexOf(s=b.charAt(f))<0){if("."==s){if(f>c){c=m;continue}}else if(!a&&(b==b.toUpperCase()&&(b=b.toLowerCase())||b==b.toLowerCase()&&(b=b.toUpperCase()))){a=!0,f=-1,c=0;continue}return r(y,e+"",p,t)}(c=(b=n(b,t,10,y.s)).indexOf("."))>-1?b=b.replace(".",""):c=b.length}for(f=0;48===b.charCodeAt(f);f++);for(m=b.length;48===b.charCodeAt(--m););if(b=b.slice(f,++m)){if(m-=f,p&&$.DEBUG&&m>15&&(e>h||e!==u(e)))throw Error(l+y.s*e);if((c=c-f-1)>N)y.c=y.e=null;else if(c<I)y.c=[y.e=0];else{if(y.e=c,y.c=[],f=(c+1)%d,c<0&&(f+=d),f<m){for(f&&y.c.push(+b.slice(0,f)),m-=d;f<m;)y.c.push(+b.slice(f,f+=d));b=b.slice(f),f=d-b.length}else f-=m;for(;f--;b+="0");y.c.push(+b)}}else y.c=[y.e=0]}function H(e,t,n,r){var o,s,i,a,u;if(null==n?n=A:k(n,0,8),!e.c)return e.toString();if(o=e.c[0],i=e.e,null==t)u=_(e.c),u=1==r||2==r&&i<=O?j(u,i):S(u,i,"0");else if(s=(e=Y(new $(e),t,n)).e,a=(u=_(e.c)).length,1==r||2==r&&(t<=s||s<=O)){for(;a<t;u+="0",a++);u=j(u,s)}else if(t-=i,u=S(u,s,"0"),s+1>a){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=s-a)>0)for(s+1==a&&(u+=".");t--;u+="0");return e.s<0&&o?"-"+u:u}function W(e,t){var n,r,o=0;for(w(e[0])&&(e=e[0]),n=new $(e[0]);++o<e.length;){if(!(r=new $(e[o])).s){n=r;break}t.call(n,r)&&(n=r)}return n}function G(e,t,n){for(var r=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,r++);return(n=r+n*d-1)>N?e.c=e.e=null:n<I?e.c=[e.e=0]:(e.e=n,e.c=t),e}function Y(e,t,n,r){var o,s,i,c,l,h,m,b=e.c,y=p;if(b){e:{for(o=1,c=b[0];c>=10;c/=10,o++);if((s=t-o)<0)s+=d,i=t,m=(l=b[h=0])/y[o-i-1]%10|0;else if((h=a((s+1)/d))>=b.length){if(!r)break e;for(;b.length<=h;b.push(0));l=m=0,o=1,i=(s%=d)-d+1}else{for(l=c=b[h],o=1;c>=10;c/=10,o++);m=(i=(s%=d)-d+o)<0?0:l/y[o-i-1]%10|0}if(r=r||t<0||null!=b[h+1]||(i<0?l:l%y[o-i-1]),r=n<4?(m||r)&&(0==n||n==(e.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(s>0?i>0?l/y[o-i]:0:b[h-1])%10&1||n==(e.s<0?8:7)),t<1||!b[0])return b.length=0,r?(t-=e.e+1,b[0]=y[(d-t%d)%d],e.e=-t||0):b[0]=e.e=0,e;if(0==s?(b.length=h,c=1,h--):(b.length=h+1,c=y[d-s],b[h]=i>0?u(l/y[o-i]%y[i])*c:0),r)for(;;){if(0==h){for(s=1,i=b[0];i>=10;i/=10,s++);for(i=b[0]+=c,c=1;i>=10;i/=10,c++);s!=c&&(e.e++,b[0]==f&&(b[0]=1));break}if(b[h]+=c,b[h]!=f)break;b[h--]=0,c=1}for(s=b.length;0===b[--s];b.pop());}e.e>N?e.c=e.e=null:e.e<I&&(e.c=[e.e=0])}return e}return $.clone=y,$.ROUND_UP=0,$.ROUND_DOWN=1,$.ROUND_CEIL=2,$.ROUND_FLOOR=3,$.ROUND_HALF_UP=4,$.ROUND_HALF_DOWN=5,$.ROUND_HALF_EVEN=6,$.ROUND_HALF_CEIL=7,$.ROUND_HALF_FLOOR=8,$.EUCLID=9,$.config=$.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(c+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(k(n=e[t],0,b,t),E=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(k(n=e[t],0,8,t),A=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&(w(n=e[t])?(k(n[0],-b,0,t),k(n[1],0,b,t),O=n[0],T=n[1]):(k(n,-b,b,t),O=-(T=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if(w(n=e[t]))k(n[0],-b,-1,t),k(n[1],1,b,t),I=n[0],N=n[1];else{if(k(n,-b,b,t),!n)throw Error(c+t+" cannot be zero: "+n);I=-(N=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(c+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw B=!n,Error(c+"crypto unavailable");B=n}else B=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(k(n=e[t],0,9,t),C=n),e.hasOwnProperty(t="POW_PRECISION")&&(k(n=e[t],0,b,t),R=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(c+t+" not an object: "+n);F=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.$|\.|(.).*\1/.test(n))throw Error(c+t+" invalid: "+n);P=n}}return{DECIMAL_PLACES:E,ROUNDING_MODE:A,EXPONENTIAL_AT:[O,T],RANGE:[I,N],CRYPTO:B,MODULO_MODE:C,POW_PRECISION:R,FORMAT:F,ALPHABET:P}},$.isBigNumber=function(e){return e instanceof $||e&&!0===e._isBigNumber||!1},$.maximum=$.max=function(){return W(arguments,o.lt)},$.minimum=$.min=function(){return W(arguments,o.gt)},$.random=(M=9007199254740992,L=Math.random()*M&2097151?function(){return u(Math.random()*M)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,o,i,l=0,f=[],h=new $(s);if(null==e?e=E:k(e,0,b),o=a(e/d),B)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));l<o;)(i=131072*t[l]+(t[l+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[l]=n[0],t[l+1]=n[1]):(f.push(i%1e14),l+=2);l=o/2}else{if(!crypto.randomBytes)throw B=!1,Error(c+"crypto unavailable");for(t=crypto.randomBytes(o*=7);l<o;)(i=281474976710656*(31&t[l])+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6])>=9e15?crypto.randomBytes(7).copy(t,l):(f.push(i%1e14),l+=7);l=o/7}if(!B)for(;l<o;)(i=L())<9e15&&(f[l++]=i%1e14);for(o=f[--l],e%=d,o&&e&&(i=p[d-e],f[l]=u(o/i)*i);0===f[l];f.pop(),l--);if(l<0)f=[r=0];else{for(r=-1;0===f[0];f.splice(0,1),r-=d);for(l=1,i=f[0];i>=10;i/=10,l++);l<d&&(r-=d-l)}return h.e=r,h.c=f,h}),n=function(){var e="0123456789";function n(e,t,n,r){for(var o,s=[0],i,a=0,u=e.length;a<u;){for(i=s.length;i--;s[i]*=t);for(s[0]+=r.indexOf(e.charAt(a++)),o=0;o<s.length;o++)s[o]>n-1&&(null==s[o+1]&&(s[o+1]=0),s[o+1]+=s[o]/n|0,s[o]%=n)}return s.reverse()}return function(r,o,s,i,a){var u,c,l,f,d,h,p,m,b=r.indexOf("."),y=E,g=A;for(b>=0&&(f=R,R=0,r=r.replace(".",""),h=(m=new $(o)).pow(r.length-b),R=f,m.c=n(S(_(h.c),h.e,"0"),10,s,e),m.e=m.c.length),l=f=(p=n(r,o,s,a?(u=P,e):(u=e,P))).length;0==p[--f];p.pop());if(!p[0])return u.charAt(0);if(b<0?--l:(h.c=p,h.e=l,h.s=i,p=(h=t(h,m,y,g,s)).c,d=h.r,l=h.e),b=p[c=l+y+1],f=s/2,d=d||c<0||null!=p[c+1],d=g<4?(null!=b||d)&&(0==g||g==(h.s<0?3:2)):b>f||b==f&&(4==g||d||6==g&&1&p[c-1]||g==(h.s<0?8:7)),c<1||!p[0])r=d?S(u.charAt(1),-y,u.charAt(0)):u.charAt(0);else{if(p.length=c,d)for(--s;++p[--c]>s;)p[c]=0,c||(++l,p=[1].concat(p));for(f=p.length;!p[--f];);for(b=0,r="";b<=f;r+=u.charAt(p[b++]));r=S(r,l,u.charAt(0))}return r}}(),t=function(){function e(e,t,n){var r,o,s,i,a=0,u=e.length,c=t%m,l=t/m|0;for(e=e.slice();u--;)a=((o=c*(s=e[u]%m)+(r=l*s+(i=e[u]/m|0)*c)%m*m+a)/n|0)+(r/m|0)+l*i,e[u]=o%n;return a&&(e=[a].concat(e)),e}function t(e,t,n,r){var o,s;if(n!=r)s=n>r?1:-1;else for(o=s=0;o<n;o++)if(e[o]!=t[o]){s=e[o]>t[o]?1:-1;break}return s}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]<t[n]?1:0,e[n]=o*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,o,s,i,a){var c,l,h,p,m,b,y,_,v,k,w,x,j,S,E,A,O,T=r.s==o.s?1:-1,I=r.c,N=o.c;if(!(I&&I[0]&&N&&N[0]))return new $(r.s&&o.s&&(I?!N||I[0]!=N[0]:N)?I&&0==I[0]||!N?0*T:T/0:NaN);for(v=(_=new $(T)).c=[],T=s+(l=r.e-o.e)+1,a||(a=f,l=g(r.e/d)-g(o.e/d),T=T/d|0),h=0;N[h]==(I[h]||0);h++);if(N[h]>(I[h]||0)&&l--,T<0)v.push(1),p=!0;else{for(S=I.length,A=N.length,h=0,T+=2,(m=u(a/(N[0]+1)))>1&&(N=e(N,m,a),I=e(I,m,a),A=N.length,S=I.length),j=A,w=(k=I.slice(0,A)).length;w<A;k[w++]=0);O=N.slice(),O=[0].concat(O),E=N[0],N[1]>=a/2&&E++;do{if(m=0,(c=t(N,k,A,w))<0){if(x=k[0],A!=w&&(x=x*a+(k[1]||0)),(m=u(x/E))>1)for(m>=a&&(m=a-1),y=(b=e(N,m,a)).length,w=k.length;1==t(b,k,y,w);)m--,n(b,A<y?O:N,y,a),y=b.length,c=1;else 0==m&&(c=m=1),y=(b=N.slice()).length;if(y<w&&(b=[0].concat(b)),n(k,b,w,a),w=k.length,-1==c)for(;t(N,k,A,w)<1;)m++,n(k,A<w?O:N,w,a),w=k.length}else 0===c&&(m++,k=[0]);v[h++]=m,k[0]?k[w++]=I[j]||0:(k=[I[j]],w=1)}while((j++<S||null!=k[0])&&T--);p=null!=k[0],v[0]||v.splice(0,1)}if(a==f){for(h=1,T=v[0];T>=10;T/=10,h++);Y(_,s+(_.e=h+l*d-1)+1,i,p)}else _.e=l,_.r=+p;return _}}(),U=/^(-?)0([xbo])(?=\w[\w.]*$)/i,D=/^([^.]+)\.$/,z=/^\.([^.]+)$/,q=/^-?(Infinity|NaN)$/,K=/^\s*\+(?=[\w.])|^\s+|\s+$/g,r=function(e,t,n,r){var o,s=n?t:t.replace(K,"");if(q.test(s))e.s=isNaN(s)?null:s<0?-1:1,e.c=e.e=null;else{if(!n&&(s=s.replace(U,function(e,t,n){return o="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=o?e:t}),r&&(o=r,s=s.replace(D,"$1").replace(z,"0.$1")),t!=s))return new $(s,o);if($.DEBUG)throw Error(c+"Not a"+(r?" base "+r:"")+" number: "+t);e.c=e.e=e.s=null}},o.absoluteValue=o.abs=function(){var e=new $(this);return e.s<0&&(e.s=1),e},o.comparedTo=function(e,t){return v(this,new $(e,t))},o.decimalPlaces=o.dp=function(e,t){var n,r,o,s=this;if(null!=e)return k(e,0,b),null==t?t=A:k(t,0,8),Y(new $(s),e+s.e+1,t);if(!(n=s.c))return null;if(r=((o=n.length-1)-g(this.e/d))*d,o=n[o])for(;o%10==0;o/=10,r--);return r<0&&(r=0),r},o.dividedBy=o.div=function(e,n){return t(this,new $(e,n),E,A)},o.dividedToIntegerBy=o.idiv=function(e,n){return t(this,new $(e,n),0,1)},o.exponentiatedBy=o.pow=function(e,t){var n,r,o,i,l,f,h,p,m=this;if((e=new $(e)).c&&!e.isInteger())throw Error(c+"Exponent not an integer: "+e);if(null!=t&&(t=new $(t)),l=e.e>14,!m.c||!m.c[0]||1==m.c[0]&&!m.e&&1==m.c.length||!e.c||!e.c[0])return p=new $(Math.pow(+m.valueOf(),l?2-x(e):+e)),t?p.mod(t):p;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new $(NaN);(r=!f&&m.isInteger()&&t.isInteger())&&(m=m.mod(t))}else{if(e.e>9&&(m.e>0||m.e<-1||(0==m.e?m.c[0]>1||l&&m.c[1]>=24e7:m.c[0]<8e13||l&&m.c[0]<=9999975e7)))return o=m.s<0&&x(e)?-0:0,m.e>-1&&(o=1/o),new $(f?1/o:o);R&&(o=a(R/d+2))}for(l?(n=new $(.5),h=x(e)):h=e%2,f&&(e.s=1),p=new $(s);;){if(h){if(!(p=p.times(m)).c)break;o?p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}if(l){if(Y(e=e.times(n),e.e+1,1),!e.c[0])break;l=e.e>14,h=x(e)}else{if(!(e=u(e/2)))break;h=e%2}m=m.times(m),o?m.c&&m.c.length>o&&(m.c.length=o):r&&(m=m.mod(t))}return r?p:(f&&(p=s.div(p)),t?p.mod(t):o?Y(p,R,A,i):p)},o.integerValue=function(e){var t=new $(this);return null==e?e=A:k(e,0,8),Y(t,t.e+1,e)},o.isEqualTo=o.eq=function(e,t){return 0===v(this,new $(e,t))},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(e,t){return v(this,new $(e,t))>0},o.isGreaterThanOrEqualTo=o.gte=function(e,t){return 1===(t=v(this,new $(e,t)))||0===t},o.isInteger=function(){return!!this.c&&g(this.e/d)>this.c.length-2},o.isLessThan=o.lt=function(e,t){return v(this,new $(e,t))<0},o.isLessThanOrEqualTo=o.lte=function(e,t){return-1===(t=v(this,new $(e,t)))||0===t},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&0==this.c[0]},o.minus=function(e,t){var n,r,o,s,i=this,a=i.s;if(t=(e=new $(e,t)).s,!a||!t)return new $(NaN);if(a!=t)return e.s=-t,i.plus(e);var u=i.e/d,c=e.e/d,l=i.c,h=e.c;if(!u||!c){if(!l||!h)return l?(e.s=-t,e):new $(h?i:NaN);if(!l[0]||!h[0])return h[0]?(e.s=-t,e):new $(l[0]?i:3==A?-0:0)}if(u=g(u),c=g(c),l=l.slice(),a=u-c){for((s=a<0)?(a=-a,o=l):(c=u,o=h),o.reverse(),t=a;t--;o.push(0));o.reverse()}else for(r=(s=(a=l.length)<(t=h.length))?a:t,a=t=0;t<r;t++)if(l[t]!=h[t]){s=l[t]<h[t];break}if(s&&(o=l,l=h,h=o,e.s=-e.s),(t=(r=h.length)-(n=l.length))>0)for(;t--;l[n++]=0);for(t=f-1;r>a;){if(l[--r]<h[r]){for(n=r;n&&!l[--n];l[n]=t);--l[n],l[r]+=f}l[r]-=h[r]}for(;0==l[0];l.splice(0,1),--c);return l[0]?G(e,l,c):(e.s=3==A?-1:1,e.c=[e.e=0],e)},o.modulo=o.mod=function(e,n){var r,o,s=this;return e=new $(e,n),!s.c||!e.s||e.c&&!e.c[0]?new $(NaN):!e.c||s.c&&!s.c[0]?new $(s):(9==C?(o=e.s,e.s=1,r=t(s,e,0,3),e.s=o,r.s*=o):r=t(s,e,0,C),(e=s.minus(r.times(e))).c[0]||1!=C||(e.s=s.s),e)},o.multipliedBy=o.times=function(e,t){var n,r,o,s,i,a,u,c,l,h,p,b,y,_,v,k=this,w=k.c,x=(e=new $(e,t)).c;if(!(w&&x&&w[0]&&x[0]))return!k.s||!e.s||w&&!w[0]&&!x||x&&!x[0]&&!w?e.c=e.e=e.s=null:(e.s*=k.s,w&&x?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=g(k.e/d)+g(e.e/d),e.s*=k.s,(u=w.length)<(h=x.length)&&(y=w,w=x,x=y,o=u,u=h,h=o),o=u+h,y=[];o--;y.push(0));for(_=f,v=m,o=h;--o>=0;){for(n=0,p=x[o]%v,b=x[o]/v|0,s=o+(i=u);s>o;)n=((c=p*(c=w[--i]%v)+(a=b*c+(l=w[i]/v|0)*p)%v*v+y[s]+n)/_|0)+(a/v|0)+b*l,y[s--]=c%_;y[s]=n}return n?++r:y.splice(0,1),G(e,y,r)},o.negated=function(){var e=new $(this);return e.s=-e.s||null,e},o.plus=function(e,t){var n,r=this,o=r.s;if(t=(e=new $(e,t)).s,!o||!t)return new $(NaN);if(o!=t)return e.s=-t,r.minus(e);var s=r.e/d,i=e.e/d,a=r.c,u=e.c;if(!s||!i){if(!a||!u)return new $(o/0);if(!a[0]||!u[0])return u[0]?e:new $(a[0]?r:0*o)}if(s=g(s),i=g(i),a=a.slice(),o=s-i){for(o>0?(i=s,n=u):(o=-o,n=a),n.reverse();o--;n.push(0));n.reverse()}for((o=a.length)-(t=u.length)<0&&(n=u,u=a,a=n,t=o),o=0;t;)o=(a[--t]=a[t]+u[t]+o)/f|0,a[t]=f===a[t]?0:a[t]%f;return o&&(a=[o].concat(a),++i),G(e,a,i)},o.precision=o.sd=function(e,t){var n,r,o,s=this;if(null!=e&&e!==!!e)return k(e,1,b),null==t?t=A:k(t,0,8),Y(new $(s),e,t);if(!(n=s.c))return null;if(r=(o=n.length-1)*d+1,o=n[o]){for(;o%10==0;o/=10,r--);for(o=n[0];o>=10;o/=10,r++);}return e&&s.e+1>r&&(r=s.e+1),r},o.shiftedBy=function(e){return k(e,-h,h),this.times("1e"+e)},o.squareRoot=o.sqrt=function(){var e,n,r,o,s,i=this,a=i.c,u=i.s,c=i.e,l=E+4,f=new $("0.5");if(1!==u||!a||!a[0])return new $(!u||u<0&&(!a||a[0])?NaN:a?i:1/0);if(0==(u=Math.sqrt(+i))||u==1/0?(((n=_(a)).length+c)%2==0&&(n+="0"),u=Math.sqrt(n),c=g((c+1)/2)-(c<0||c%2),r=new $(n=u==1/0?"1e"+c:(n=u.toExponential()).slice(0,n.indexOf("e")+1)+c)):r=new $(u+""),r.c[0])for((u=(c=r.e)+l)<3&&(u=0);;)if(s=r,r=f.times(s.plus(t(i,s,l,1))),_(s.c).slice(0,u)===(n=_(r.c)).slice(0,u)){if(r.e<c&&--u,"9999"!=(n=n.slice(u-3,u+1))&&(o||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(Y(r,r.e+E+2,1),e=!r.times(r).eq(i));break}if(!o&&(Y(s,s.e+E+2,0),s.times(s).eq(i))){r=s;break}l+=4,u+=4,o=1}return Y(r,r.e+E+1,A,e)},o.toExponential=function(e,t){return null!=e&&(k(e,0,b),e++),H(this,e,t,1)},o.toFixed=function(e,t){return null!=e&&(k(e,0,b),e=e+this.e+1),H(this,e,t)},o.toFormat=function(e,t){var n=this.toFixed(e,t);if(this.c){var r,o=n.split("."),s=+F.groupSize,i=+F.secondaryGroupSize,a=F.groupSeparator,u=o[0],c=o[1],l=this.s<0,f=l?u.slice(1):u,d=f.length;if(i&&(r=s,s=i,i=r,d-=r),s>0&&d>0){for(r=d%s||s,u=f.substr(0,r);r<d;r+=s)u+=a+f.substr(r,s);i>0&&(u+=a+f.slice(r)),l&&(u="-"+u)}n=c?u+F.decimalSeparator+((i=+F.fractionGroupSize)?c.replace(new RegExp("\\d{"+i+"}\\B","g"),"$&"+F.fractionGroupSeparator):c):u}return n},o.toFraction=function(e){var n,r,o,i,a,u,l,f,h,m,b,y,g=this,v=g.c;if(null!=e&&(!(f=new $(e)).isInteger()&&(f.c||1!==f.s)||f.lt(s)))throw Error(c+"Argument "+(f.isInteger()?"out of range: ":"not an integer: ")+e);if(!v)return g.toString();for(r=new $(s),m=o=new $(s),i=h=new $(s),y=_(v),u=r.e=y.length-g.e-1,r.c[0]=p[(l=u%d)<0?d+l:l],e=!e||f.comparedTo(r)>0?u>0?r:m:f,l=N,N=1/0,f=new $(y),h.c[0]=0;b=t(f,r,0,1),1!=(a=o.plus(b.times(i))).comparedTo(e);)o=i,i=a,m=h.plus(b.times(a=m)),h=a,r=f.minus(b.times(a=r)),f=a;return a=t(e.minus(o),i,0,1),h=h.plus(a.times(m)),o=o.plus(a.times(i)),h.s=m.s=g.s,n=t(m,i,u*=2,A).minus(g).abs().comparedTo(t(h,o,u,A).minus(g).abs())<1?[m.toString(),i.toString()]:[h.toString(),o.toString()],N=l,n},o.toNumber=function(){return+this},o.toPrecision=function(e,t){return null!=e&&k(e,1,b),H(this,e,t,2)},o.toString=function(e){var t,r=this,o=r.s,s=r.e;return null===s?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(t=_(r.c),null==e?t=s<=O||s>=T?j(t,s):S(t,s,"0"):(k(e,2,P.length,"Base"),t=n(S(t,s,"0"),10,e,o,!0)),o<0&&r.c[0]&&(t="-"+t)),t},o.valueOf=o.toJSON=function(){var e,t=this,n=t.e;return null===n?t.toString():(e=_(t.c),e=n<=O||n>=T?j(e,n):S(e,n,"0"),t.s<0?"-"+e:e)},o._isBigNumber=!0,null!=e&&$.set(e),$}function g(e){var t=0|e;return e>0||e===t?t:t-1}function _(e){for(var t,n,r=1,o=e.length,s=e[0]+"";r<o;){for(t=e[r++]+"",n=d-t.length;n--;t="0"+t);s+=t}for(o=s.length;48===s.charCodeAt(--o););return s.slice(0,o+1||1)}function v(e,t){var n,r,o=e.c,s=t.c,i=e.s,a=t.s,u=e.e,c=t.e;if(!i||!a)return null;if(n=o&&!o[0],r=s&&!s[0],n||r)return n?r?0:-a:i;if(i!=a)return i;if(n=i<0,r=u==c,!o||!s)return r?0:!o^n?1:-1;if(!r)return u>c^n?1:-1;for(a=(u=o.length)<(c=s.length)?u:c,i=0;i<a;i++)if(o[i]!=s[i])return o[i]>s[i]^n?1:-1;return u==c?0:u>c^n?1:-1}function k(e,t,n,r){if(e<t||e>n||e!==(e<0?a(e):u(e)))throw Error(c+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+e)}function w(e){return"[object Array]"==Object.prototype.toString.call(e)}function x(e){var t=e.c.length-1;return g(e.e/d)==t&&e.c[t]%2!=0}function j(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function S(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(++t>(r=e.length)){for(o=n,t-=r;--t;o+=n);e+=o}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}(s=y()).default=s.BigNumber=s,void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}(this)},"./node_modules/blakejs/blake2b.js":function(e,t,n){var r=n("./node_modules/blakejs/util.js");function o(e,t,n){var r=e[t]+e[n],o=e[t+1]+e[n+1];r>=4294967296&&o++,e[t]=r,e[t+1]=o}function s(e,t,n,r){var o=e[t]+n;n<0&&(o+=4294967296);var s=e[t+1]+r;o>=4294967296&&s++,e[t]=o,e[t+1]=s}function i(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function a(e,t,n,r,i,a){var u=d[i],c=d[i+1],l=d[a],h=d[a+1];o(f,e,t),s(f,e,u,c);var p=f[r]^f[e],m=f[r+1]^f[e+1];f[r]=m,f[r+1]=p,o(f,n,r),p=f[t]^f[n],m=f[t+1]^f[n+1],f[t]=p>>>24^m<<8,f[t+1]=m>>>24^p<<8,o(f,e,t),s(f,e,l,h),p=f[r]^f[e],m=f[r+1]^f[e+1],f[r]=p>>>16^m<<16,f[r+1]=m>>>16^p<<16,o(f,n,r),p=f[t]^f[n],m=f[t+1]^f[n+1],f[t]=m>>>31^p<<1,f[t+1]=p>>>31^m<<1}var u=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),c,l=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),f=new Uint32Array(32),d=new Uint32Array(32);function h(e,t){var n=0;for(n=0;n<16;n++)f[n]=e.h[n],f[n+16]=u[n];for(f[24]=f[24]^e.t,f[25]=f[25]^e.t/4294967296,t&&(f[28]=~f[28],f[29]=~f[29]),n=0;n<32;n++)d[n]=i(e.b,4*n);for(n=0;n<12;n++)a(0,8,16,24,l[16*n+0],l[16*n+1]),a(2,10,18,26,l[16*n+2],l[16*n+3]),a(4,12,20,28,l[16*n+4],l[16*n+5]),a(6,14,22,30,l[16*n+6],l[16*n+7]),a(0,10,20,30,l[16*n+8],l[16*n+9]),a(2,12,22,24,l[16*n+10],l[16*n+11]),a(4,14,16,26,l[16*n+12],l[16*n+13]),a(6,8,18,28,l[16*n+14],l[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^f[n]^f[n+16]}function p(e,t){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");for(var n={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e},r=0;r<16;r++)n.h[r]=u[r];var o=t?t.length:0;return n.h[0]^=16842752^o<<8^e,t&&(m(n,t),n.c=128),n}function m(e,t){for(var n=0;n<t.length;n++)128===e.c&&(e.t+=e.c,h(e,!1),e.c=0),e.b[e.c++]=t[n]}function b(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;h(e,!0);for(var t=new Uint8Array(e.outlen),n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(3&n);return t}function y(e,t,n){n=n||64,e=r.normalizeInput(e);var o=p(n,t);return m(o,e),b(o)}function g(e,t,n){var o=y(e,t,n);return r.toHex(o)}e.exports={blake2b:y,blake2bHex:g,blake2bInit:p,blake2bUpdate:m,blake2bFinal:b}},"./node_modules/blakejs/blake2s.js":function(e,t,n){var r=n("./node_modules/blakejs/util.js");function o(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,o,s){c[e]=c[e]+c[t]+o,c[r]=i(c[r]^c[e],16),c[n]=c[n]+c[r],c[t]=i(c[t]^c[n],12),c[e]=c[e]+c[t]+s,c[r]=i(c[r]^c[e],8),c[n]=c[n]+c[r],c[t]=i(c[t]^c[n],7)}function i(e,t){return e>>>t^e<<32-t}var a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),c=new Uint32Array(16),l=new Uint32Array(16);function f(e,t){var n=0;for(n=0;n<8;n++)c[n]=e.h[n],c[n+8]=a[n];for(c[12]^=e.t,c[13]^=e.t/4294967296,t&&(c[14]=~c[14]),n=0;n<16;n++)l[n]=o(e.b,4*n);for(n=0;n<10;n++)s(0,4,8,12,l[u[16*n+0]],l[u[16*n+1]]),s(1,5,9,13,l[u[16*n+2]],l[u[16*n+3]]),s(2,6,10,14,l[u[16*n+4]],l[u[16*n+5]]),s(3,7,11,15,l[u[16*n+6]],l[u[16*n+7]]),s(0,5,10,15,l[u[16*n+8]],l[u[16*n+9]]),s(1,6,11,12,l[u[16*n+10]],l[u[16*n+11]]),s(2,7,8,13,l[u[16*n+12]],l[u[16*n+13]]),s(3,4,9,14,l[u[16*n+14]],l[u[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=c[n]^c[n+8]}function d(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");var n=t?t.length:0;if(t&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");var r={h:new Uint32Array(a),b:new Uint32Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(h(r,t),r.c=64),r}function h(e,t){for(var n=0;n<t.length;n++)64===e.c&&(e.t+=e.c,f(e,!1),e.c=0),e.b[e.c++]=t[n]}function p(e){for(e.t+=e.c;e.c<64;)e.b[e.c++]=0;f(e,!0);for(var t=new Uint8Array(e.outlen),n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(3&n)&255;return t}function m(e,t,n){n=n||32,e=r.normalizeInput(e);var o=d(n,t);return h(o,e),p(o)}function b(e,t,n){var o=m(e,t,n);return r.toHex(o)}e.exports={blake2s:m,blake2sHex:b,blake2sInit:d,blake2sUpdate:h,blake2sFinal:p}},"./node_modules/blakejs/index.js":function(e,t,n){var r=n("./node_modules/blakejs/blake2b.js"),o=n("./node_modules/blakejs/blake2s.js");e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:o.blake2s,blake2sHex:o.blake2sHex,blake2sInit:o.blake2sInit,blake2sUpdate:o.blake2sUpdate,blake2sFinal:o.blake2sFinal}},"./node_modules/blakejs/util.js":function(e,t,n){(function(t){var n="Input must be an string, Buffer or Uint8Array";function r(e){var r;if(e instanceof Uint8Array)r=e;else if(e instanceof t)r=new Uint8Array(e);else{if("string"!=typeof e)throw new Error(n);r=new Uint8Array(t.from(e,"utf8"))}return r}function o(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")}function s(e){return(4294967296+e).toString(16).substring(1)}function i(e,t,n){for(var r="\n"+e+" = ",o=0;o<t.length;o+=2){if(32===n)r+=s(t[o]).toUpperCase(),r+=" ",r+=s(t[o+1]).toUpperCase();else{if(64!==n)throw new Error("Invalid size "+n);r+=s(t[o+1]).toUpperCase(),r+=s(t[o]).toUpperCase()}o%6==4?r+="\n"+new Array(e.length+4).join(" "):o<t.length-2&&(r+=" ")}console.log(r)}function a(e,t,n){for(var r=(new Date).getTime(),o=new Uint8Array(t),s=0;s<t;s++)o[s]=s%256;var i=(new Date).getTime();for(console.log("Generated random input in "+(i-r)+"ms"),r=i,s=0;s<n;s++){var a=e(o),u=(new Date).getTime(),c=u-r;r=u,console.log("Hashed in "+c+"ms: "+a.substring(0,20)+"..."),console.log(Math.round(t/(1<<20)/(c/1e3)*100)/100+" MB PER SECOND")}}e.exports={normalizeInput:r,toHex:o,debugPrint:i,testSpeed:a}}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/borc/src/constants.js":function(e,t,n){"use strict";const r=n("./node_modules/bignumber.js/bignumber.js");t.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7},t.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36},t.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31},t.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23},t.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")},t.SHIFT32=Math.pow(2,32),t.SHIFT16=Math.pow(2,16),t.MAX_SAFE_HIGH=2097151,t.NEG_ONE=new r(-1),t.TEN=new r(10),t.TWO=new r(2),t.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5}},"./node_modules/borc/src/decoder.asm.js":function(e,t){e.exports=function e(t,n,r){"use asm";var o=new t.Uint8Array(r);var s=n.pushInt;var i=n.pushInt32;var a=n.pushInt32Neg;var u=n.pushInt64;var c=n.pushInt64Neg;var l=n.pushFloat;var f=n.pushFloatSingle;var d=n.pushFloatDouble;var h=n.pushTrue;var p=n.pushFalse;var m=n.pushUndefined;var b=n.pushNull;var y=n.pushInfinity;var g=n.pushInfinityNeg;var _=n.pushNaN;var v=n.pushNaNNeg;var k=n.pushArrayStart;var w=n.pushArrayStartFixed;var x=n.pushArrayStartFixed32;var j=n.pushArrayStartFixed64;var S=n.pushObjectStart;var E=n.pushObjectStartFixed;var A=n.pushObjectStartFixed32;var O=n.pushObjectStartFixed64;var T=n.pushByteString;var I=n.pushByteStringStart;var N=n.pushUtf8String;var B=n.pushUtf8StringStart;var C=n.pushSimpleUnassigned;var R=n.pushTagStart;var F=n.pushTagStart4;var P=n.pushTagStart8;var M=n.pushTagUnassigned;var L=n.pushBreak;var U=t.Math.pow;var D=0;var z=0;var q=0;function K(e){e=e|0;D=0;z=e;while((D|0)<(z|0)){q=Ze[o[D]&255](o[D]|0)|0;if((q|0)>0){break}}return q|0}function $(e){e=e|0;if(((D|0)+(e|0)|0)<(z|0)){return 0}return 1}function H(e){e=e|0;return o[e|0]<<8|o[e+1|0]|0}function W(e){e=e|0;return o[e|0]<<24|o[e+1|0]<<16|o[e+2|0]<<8|o[e+3|0]|0}function G(e){e=e|0;s(e|0);D=D+1|0;return 0}function Y(e){e=e|0;if($(1)|0){return 1}s(o[D+1|0]|0);D=D+2|0;return 0}function V(e){e=e|0;if($(2)|0){return 1}s(H(D+1|0)|0);D=D+3|0;return 0}function J(e){e=e|0;if($(4)|0){return 1}i(H(D+1|0)|0,H(D+3|0)|0);D=D+5|0;return 0}function Z(e){e=e|0;if($(8)|0){return 1}u(H(D+1|0)|0,H(D+3|0)|0,H(D+5|0)|0,H(D+7|0)|0);D=D+9|0;return 0}function X(e){e=e|0;s(-1-(e-32|0)|0);D=D+1|0;return 0}function Q(e){e=e|0;if($(1)|0){return 1}s(-1-(o[D+1|0]|0)|0);D=D+2|0;return 0}function ee(e){e=e|0;var t=0;if($(2)|0){return 1}t=H(D+1|0)|0;s(-1-(t|0)|0);D=D+3|0;return 0}function te(e){e=e|0;if($(4)|0){return 1}a(H(D+1|0)|0,H(D+3|0)|0);D=D+5|0;return 0}function ne(e){e=e|0;if($(8)|0){return 1}c(H(D+1|0)|0,H(D+3|0)|0,H(D+5|0)|0,H(D+7|0)|0);D=D+9|0;return 0}function re(e){e=e|0;var t=0;var n=0;var r=0;r=e-64|0;if($(r|0)|0){return 1}t=D+1|0;n=(D+1|0)+(r|0)|0;T(t|0,n|0);D=n|0;return 0}function oe(e){e=e|0;var t=0;var n=0;var r=0;if($(1)|0){return 1}r=o[D+1|0]|0;t=D+2|0;n=(D+2|0)+(r|0)|0;if($(r+1|0)|0){return 1}T(t|0,n|0);D=n|0;return 0}function se(e){e=e|0;var t=0;var n=0;var r=0;if($(2)|0){return 1}r=H(D+1|0)|0;t=D+3|0;n=(D+3|0)+(r|0)|0;if($(r+2|0)|0){return 1}T(t|0,n|0);D=n|0;return 0}function ie(e){e=e|0;var t=0;var n=0;var r=0;if($(4)|0){return 1}r=W(D+1|0)|0;t=D+5|0;n=(D+5|0)+(r|0)|0;if($(r+4|0)|0){return 1}T(t|0,n|0);D=n|0;return 0}function ae(e){e=e|0;return 1}function ue(e){e=e|0;I();D=D+1|0;return 0}function ce(e){e=e|0;var t=0;var n=0;var r=0;r=e-96|0;if($(r|0)|0){return 1}t=D+1|0;n=(D+1|0)+(r|0)|0;N(t|0,n|0);D=n|0;return 0}function le(e){e=e|0;var t=0;var n=0;var r=0;if($(1)|0){return 1}r=o[D+1|0]|0;t=D+2|0;n=(D+2|0)+(r|0)|0;if($(r+1|0)|0){return 1}N(t|0,n|0);D=n|0;return 0}function fe(e){e=e|0;var t=0;var n=0;var r=0;if($(2)|0){return 1}r=H(D+1|0)|0;t=D+3|0;n=(D+3|0)+(r|0)|0;if($(r+2|0)|0){return 1}N(t|0,n|0);D=n|0;return 0}function de(e){e=e|0;var t=0;var n=0;var r=0;if($(4)|0){return 1}r=W(D+1|0)|0;t=D+5|0;n=(D+5|0)+(r|0)|0;if($(r+4|0)|0){return 1}N(t|0,n|0);D=n|0;return 0}function he(e){e=e|0;return 1}function pe(e){e=e|0;B();D=D+1|0;return 0}function me(e){e=e|0;w(e-128|0);D=D+1|0;return 0}function be(e){e=e|0;if($(1)|0){return 1}w(o[D+1|0]|0);D=D+2|0;return 0}function ye(e){e=e|0;if($(2)|0){return 1}w(H(D+1|0)|0);D=D+3|0;return 0}function ge(e){e=e|0;if($(4)|0){return 1}x(H(D+1|0)|0,H(D+3|0)|0);D=D+5|0;return 0}function _e(e){e=e|0;if($(8)|0){return 1}j(H(D+1|0)|0,H(D+3|0)|0,H(D+5|0)|0,H(D+7|0)|0);D=D+9|0;return 0}function ve(e){e=e|0;k();D=D+1|0;return 0}function ke(e){e=e|0;var t=0;t=e-160|0;if($(t|0)|0){return 1}E(t|0);D=D+1|0;return 0}function we(e){e=e|0;if($(1)|0){return 1}E(o[D+1|0]|0);D=D+2|0;return 0}function xe(e){e=e|0;if($(2)|0){return 1}E(H(D+1|0)|0);D=D+3|0;return 0}function je(e){e=e|0;if($(4)|0){return 1}A(H(D+1|0)|0,H(D+3|0)|0);D=D+5|0;return 0}function Se(e){e=e|0;if($(8)|0){return 1}O(H(D+1|0)|0,H(D+3|0)|0,H(D+5|0)|0,H(D+7|0)|0);D=D+9|0;return 0}function Ee(e){e=e|0;S();D=D+1|0;return 0}function Ae(e){e=e|0;R(e-192|0|0);D=D+1|0;return 0}function Oe(e){e=e|0;R(e|0);D=D+1|0;return 0}function Te(e){e=e|0;R(e|0);D=D+1|0;return 0}function Ie(e){e=e|0;R(e|0);D=D+1|0;return 0}function Ne(e){e=e|0;R(e|0);D=D+1|0;return 0}function Be(e){e=e|0;R(e-192|0|0);D=D+1|0;return 0}function Ce(e){e=e|0;R(e|0);D=D+1|0;return 0}function Re(e){e=e|0;R(e|0);D=D+1|0;return 0}function Fe(e){e=e|0;R(e|0);D=D+1|0;return 0}function Pe(e){e=e|0;if($(1)|0){return 1}R(o[D+1|0]|0);D=D+2|0;return 0}function Me(e){e=e|0;if($(2)|0){return 1}R(H(D+1|0)|0);D=D+3|0;return 0}function Le(e){e=e|0;if($(4)|0){return 1}F(H(D+1|0)|0,H(D+3|0)|0);D=D+5|0;return 0}function Ue(e){e=e|0;if($(8)|0){return 1}P(H(D+1|0)|0,H(D+3|0)|0,H(D+5|0)|0,H(D+7|0)|0);D=D+9|0;return 0}function De(e){e=e|0;C((e|0)-224|0);D=D+1|0;return 0}function ze(e){e=e|0;p();D=D+1|0;return 0}function qe(e){e=e|0;h();D=D+1|0;return 0}function Ke(e){e=e|0;b();D=D+1|0;return 0}function $e(e){e=e|0;m();D=D+1|0;return 0}function He(e){e=e|0;if($(1)|0){return 1}C(o[D+1|0]|0);D=D+2|0;return 0}function We(e){e=e|0;var t=0;var n=0;var r=1.0;var s=0.0;var i=0.0;var a=0.0;if($(2)|0){return 1}t=o[D+1|0]|0;n=o[D+2|0]|0;if((t|0)&0x80){r=-1.0}s=+(((t|0)&0x7C)>>2);i=+(((t|0)&0x03)<<8|n);if(+s==0.0){l(+(+r*+5.9604644775390625e-8*+i))}else if(+s==31.0){if(+r==1.0){if(+i>0.0){_()}else{y()}}else{if(+i>0.0){v()}else{g()}}}else{l(+(+r*U(+2,+(+s-25.0))*+(1024.0+i)))}D=D+3|0;return 0}function Ge(e){e=e|0;if($(4)|0){return 1}f(o[D+1|0]|0,o[D+2|0]|0,o[D+3|0]|0,o[D+4|0]|0);D=D+5|0;return 0}function Ye(e){e=e|0;if($(8)|0){return 1}d(o[D+1|0]|0,o[D+2|0]|0,o[D+3|0]|0,o[D+4|0]|0,o[D+5|0]|0,o[D+6|0]|0,o[D+7|0]|0,o[D+8|0]|0);D=D+9|0;return 0}function Ve(e){e=e|0;return 1}function Je(e){e=e|0;L();D=D+1|0;return 0}var Ze=[G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,Y,V,J,Z,Ve,Ve,Ve,Ve,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,Q,ee,te,ne,Ve,Ve,Ve,Ve,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,oe,se,ie,ae,Ve,Ve,Ve,ue,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,le,fe,de,he,Ve,Ve,Ve,pe,me,me,me,me,me,me,me,me,me,me,me,me,me,me,me,me,me,me,me,me,me,me,me,me,be,ye,ge,_e,Ve,Ve,Ve,ve,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,ke,we,xe,je,Se,Ve,Ve,Ve,Ee,Ae,Ae,Ae,Ae,Ae,Ae,Be,Be,Be,Be,Be,Be,Be,Be,Be,Be,Be,Be,Be,Be,Be,Be,Be,Be,Pe,Me,Le,Ue,Ve,Ve,Ve,Ve,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,ze,qe,Ke,$e,He,We,Ge,Ye,Ve,Ve,Ve,Je];return{parse:K}}},"./node_modules/borc/src/decoder.js":function(e,t,n){"use strict";(function(t,r){const o=n("./node_modules/ieee754/index.js"),s=n("./node_modules/bignumber.js/bignumber.js"),i=n("./node_modules/borc/src/decoder.asm.js"),a=n("./node_modules/borc/src/utils.js"),u=n("./node_modules/borc/src/constants.js"),c=n("./node_modules/borc/src/simple.js"),l=n("./node_modules/borc/src/tagged.js"),f=n("./node_modules/url/url.js");class d{constructor(e){!(e=e||{}).size||e.size<65536?e.size=65536:e.size=a.nextPowerOf2(e.size),this._heap=new ArrayBuffer(e.size),this._heap8=new Uint8Array(this._heap),this._buffer=t.from(this._heap),this._reset(),this._knownTags=Object.assign({0:e=>new Date(e),1:e=>new Date(1e3*e),2:e=>a.arrayBufferToBignumber(e),3:e=>u.NEG_ONE.minus(a.arrayBufferToBignumber(e)),4:e=>u.TEN.pow(e[0]).times(e[1]),5:e=>u.TWO.pow(e[0]).times(e[1]),32:e=>f.parse(e),35:e=>new RegExp(e)},e.tags),this.parser=i(r,{log:console.log.bind(console),pushInt:this.pushInt.bind(this),pushInt32:this.pushInt32.bind(this),pushInt32Neg:this.pushInt32Neg.bind(this),pushInt64:this.pushInt64.bind(this),pushInt64Neg:this.pushInt64Neg.bind(this),pushFloat:this.pushFloat.bind(this),pushFloatSingle:this.pushFloatSingle.bind(this),pushFloatDouble:this.pushFloatDouble.bind(this),pushTrue:this.pushTrue.bind(this),pushFalse:this.pushFalse.bind(this),pushUndefined:this.pushUndefined.bind(this),pushNull:this.pushNull.bind(this),pushInfinity:this.pushInfinity.bind(this),pushInfinityNeg:this.pushInfinityNeg.bind(this),pushNaN:this.pushNaN.bind(this),pushNaNNeg:this.pushNaNNeg.bind(this),pushArrayStart:this.pushArrayStart.bind(this),pushArrayStartFixed:this.pushArrayStartFixed.bind(this),pushArrayStartFixed32:this.pushArrayStartFixed32.bind(this),pushArrayStartFixed64:this.pushArrayStartFixed64.bind(this),pushObjectStart:this.pushObjectStart.bind(this),pushObjectStartFixed:this.pushObjectStartFixed.bind(this),pushObjectStartFixed32:this.pushObjectStartFixed32.bind(this),pushObjectStartFixed64:this.pushObjectStartFixed64.bind(this),pushByteString:this.pushByteString.bind(this),pushByteStringStart:this.pushByteStringStart.bind(this),pushUtf8String:this.pushUtf8String.bind(this),pushUtf8StringStart:this.pushUtf8StringStart.bind(this),pushSimpleUnassigned:this.pushSimpleUnassigned.bind(this),pushTagUnassigned:this.pushTagUnassigned.bind(this),pushTagStart:this.pushTagStart.bind(this),pushTagStart4:this.pushTagStart4.bind(this),pushTagStart8:this.pushTagStart8.bind(this),pushBreak:this.pushBreak.bind(this)},this._heap)}get _depth(){return this._parents.length}get _currentParent(){return this._parents[this._depth-1]}get _ref(){return this._currentParent.ref}_closeParent(){var e=this._parents.pop();if(e.length>0)throw new Error(`Missing ${e.length} elements`);switch(e.type){case u.PARENT.TAG:this._push(this.createTag(e.ref[0],e.ref[1]));break;case u.PARENT.BYTE_STRING:this._push(this.createByteString(e.ref,e.length));break;case u.PARENT.UTF8_STRING:this._push(this.createUtf8String(e.ref,e.length));break;case u.PARENT.MAP:if(e.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createMap(e.ref,e.length));break;case u.PARENT.OBJECT:if(e.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createObject(e.ref,e.length));break;case u.PARENT.ARRAY:this._push(this.createArray(e.ref,e.length))}this._currentParent&&this._currentParent.type===u.PARENT.TAG&&this._dec()}_dec(){const e=this._currentParent;e.length<0||(e.length--,0===e.length&&this._closeParent())}_push(e,t){const n=this._currentParent;switch(n.values++,n.type){case u.PARENT.ARRAY:case u.PARENT.BYTE_STRING:case u.PARENT.UTF8_STRING:n.length>-1?this._ref[this._ref.length-n.length]=e:this._ref.push(e),this._dec();break;case u.PARENT.OBJECT:null!=n.tmpKey?(this._ref[n.tmpKey]=e,n.tmpKey=null,this._dec()):(n.tmpKey=e,"string"!=typeof n.tmpKey&&(n.type=u.PARENT.MAP,n.ref=a.buildMap(n.ref)));break;case u.PARENT.MAP:null!=n.tmpKey?(this._ref.set(n.tmpKey,e),n.tmpKey=null,this._dec()):n.tmpKey=e;break;case u.PARENT.TAG:this._ref.push(e),t||this._dec();break;default:throw new Error("Unknown parent type")}}_createParent(e,t,n){this._parents[this._depth]={type:t,length:n,ref:e,values:0,tmpKey:null}}_reset(){this._res=[],this._parents=[{type:u.PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}createTag(e,t){const n=this._knownTags[e];return n?n(t):new l(e,t)}createMap(e,t){return e}createObject(e,t){return e}createArray(e,t){return e}createByteString(e,n){return t.concat(e)}createByteStringFromHeap(e,n){return e===n?t.alloc(0):t.from(this._heap.slice(e,n))}createInt(e){return e}createInt32(e,t){return a.buildInt32(e,t)}createInt64(e,t,n,r){return a.buildInt64(e,t,n,r)}createFloat(e){return e}createFloatSingle(e,t,n,r){return o.read([e,t,n,r],0,!1,23,4)}createFloatDouble(e,t,n,r,s,i,a,u){return o.read([e,t,n,r,s,i,a,u],0,!1,52,8)}createInt32Neg(e,t){return-1-a.buildInt32(e,t)}createInt64Neg(e,t,n,r){const o=a.buildInt32(e,t),i=a.buildInt32(n,r);return o>u.MAX_SAFE_HIGH?u.NEG_ONE.minus(new s(o).times(u.SHIFT32).plus(i)):-1-(o*u.SHIFT32+i)}createTrue(){return!0}createFalse(){return!1}createNull(){return null}createUndefined(){}createInfinity(){return 1/0}createInfinityNeg(){return-1/0}createNaN(){return NaN}createNaNNeg(){return NaN}createUtf8String(e,t){return e.join("")}createUtf8StringFromHeap(e,t){return e===t?"":this._buffer.toString("utf8",e,t)}createSimpleUnassigned(e){return new c(e)}pushInt(e){this._push(this.createInt(e))}pushInt32(e,t){this._push(this.createInt32(e,t))}pushInt64(e,t,n,r){this._push(this.createInt64(e,t,n,r))}pushFloat(e){this._push(this.createFloat(e))}pushFloatSingle(e,t,n,r){this._push(this.createFloatSingle(e,t,n,r))}pushFloatDouble(e,t,n,r,o,s,i,a){this._push(this.createFloatDouble(e,t,n,r,o,s,i,a))}pushInt32Neg(e,t){this._push(this.createInt32Neg(e,t))}pushInt64Neg(e,t,n,r){this._push(this.createInt64Neg(e,t,n,r))}pushTrue(){this._push(this.createTrue())}pushFalse(){this._push(this.createFalse())}pushNull(){this._push(this.createNull())}pushUndefined(){this._push(this.createUndefined())}pushInfinity(){this._push(this.createInfinity())}pushInfinityNeg(){this._push(this.createInfinityNeg())}pushNaN(){this._push(this.createNaN())}pushNaNNeg(){this._push(this.createNaNNeg())}pushArrayStart(){this._createParent([],u.PARENT.ARRAY,-1)}pushArrayStartFixed(e){this._createArrayStartFixed(e)}pushArrayStartFixed32(e,t){const n=a.buildInt32(e,t);this._createArrayStartFixed(n)}pushArrayStartFixed64(e,t,n,r){const o=a.buildInt64(e,t,n,r);this._createArrayStartFixed(o)}pushObjectStart(){this._createObjectStartFixed(-1)}pushObjectStartFixed(e){this._createObjectStartFixed(e)}pushObjectStartFixed32(e,t){const n=a.buildInt32(e,t);this._createObjectStartFixed(n)}pushObjectStartFixed64(e,t,n,r){const o=a.buildInt64(e,t,n,r);this._createObjectStartFixed(o)}pushByteStringStart(){this._parents[this._depth]={type:u.PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushByteString(e,t){this._push(this.createByteStringFromHeap(e,t))}pushUtf8StringStart(){this._parents[this._depth]={type:u.PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushUtf8String(e,t){this._push(this.createUtf8StringFromHeap(e,t))}pushSimpleUnassigned(e){this._push(this.createSimpleUnassigned(e))}pushTagStart(e){this._parents[this._depth]={type:u.PARENT.TAG,length:1,ref:[e]}}pushTagStart4(e,t){this.pushTagStart(a.buildInt32(e,t))}pushTagStart8(e,t,n,r){this.pushTagStart(a.buildInt64(e,t,n,r))}pushTagUnassigned(e){this._push(this.createTag(e))}pushBreak(){if(this._currentParent.length>-1)throw new Error("Unexpected break");this._closeParent()}_createObjectStartFixed(e){0!==e?this._createParent({},u.PARENT.OBJECT,e):this._push(this.createObject({}))}_createArrayStartFixed(e){0!==e?this._createParent(new Array(e),u.PARENT.ARRAY,e):this._push(this.createArray([]))}_decode(e){if(0===e.byteLength)throw new Error("Input too short");this._reset(),this._heap8.set(e);const t=this.parser.parse(e.byteLength);if(this._depth>1){for(;0===this._currentParent.length;)this._closeParent();if(this._depth>1)throw new Error("Undeterminated nesting")}if(t>0)throw new Error("Failed to parse");if(0===this._res.length)throw new Error("No valid result")}decodeFirst(e){return this._decode(e),this._res[0]}decodeAll(e){return this._decode(e),this._res}static decode(e,n){"string"==typeof e&&(e=t.from(e,n||"hex"));const r=new d({size:e.length});return r.decodeFirst(e)}static decodeAll(e,n){"string"==typeof e&&(e=t.from(e,n||"hex"));const r=new d({size:e.length});return r.decodeAll(e)}}d.decodeFirst=d.decode,e.exports=d}).call(this,n("./node_modules/buffer/index.js").Buffer,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/borc/src/diagnose.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/borc/src/decoder.js"),o=n("./node_modules/borc/src/utils.js");class s extends r{createTag(e,t){return`${e}(${t})`}createInt(e){return super.createInt(e).toString()}createInt32(e,t){return super.createInt32(e,t).toString()}createInt64(e,t,n,r){return super.createInt64(e,t,n,r).toString()}createInt32Neg(e,t){return super.createInt32Neg(e,t).toString()}createInt64Neg(e,t,n,r){return super.createInt64Neg(e,t,n,r).toString()}createTrue(){return"true"}createFalse(){return"false"}createFloat(e){const t=super.createFloat(e);return o.isNegativeZero(e)?"-0_1":`${t}_1`}createFloatSingle(e,t,n,r){const o=super.createFloatSingle(e,t,n,r);return`${o}_2`}createFloatDouble(e,t,n,r,o,s,i,a){const u=super.createFloatDouble(e,t,n,r,o,s,i,a);return`${u}_3`}createByteString(e,t){const n=e.join(", ");return-1===t?`(_ ${n})`:`h'${n}`}createByteStringFromHeap(e,n){const r=t.from(super.createByteStringFromHeap(e,n)).toString("hex");return`h'${r}'`}createInfinity(){return"Infinity_1"}createInfinityNeg(){return"-Infinity_1"}createNaN(){return"NaN_1"}createNaNNeg(){return"-NaN_1"}createNull(){return"null"}createUndefined(){return"undefined"}createSimpleUnassigned(e){return`simple(${e})`}createArray(e,t){const n=super.createArray(e,t);return-1===t?`[_ ${n.join(", ")}]`:`[${n.join(", ")}]`}createMap(e,t){const n=super.createMap(e),r=Array.from(n.keys()).reduce(i(n),"");return-1===t?`{_ ${r}}`:`{${r}}`}createObject(e,t){const n=super.createObject(e),r=Object.keys(n).reduce(i(n),"");return-1===t?`{_ ${r}}`:`{${r}}`}createUtf8String(e,t){const n=e.join(", ");return-1===t?`(_ ${n})`:`"${n}"`}createUtf8StringFromHeap(e,n){const r=t.from(super.createUtf8StringFromHeap(e,n)).toString("utf8");return`"${r}"`}static diagnose(e,n){"string"==typeof e&&(e=t.from(e,n||"hex"));const r=new s;return r.decodeFirst(e)}}function i(e){return(t,n)=>t?`${t}, ${n}: ${e[n]}`:`${n}: ${e[n]}`}e.exports=s}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/borc/src/encoder.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/url/url.js"),o=n("./node_modules/bignumber.js/bignumber.js"),s=n("./node_modules/borc/src/utils.js"),i=n("./node_modules/borc/src/constants.js"),a=i.MT,u=i.NUMBYTES,c=i.SHIFT32,l=i.SYMS,f=i.TAG,d=i.MT.SIMPLE_FLOAT<<5|i.NUMBYTES.TWO,h=i.MT.SIMPLE_FLOAT<<5|i.NUMBYTES.FOUR,p=i.MT.SIMPLE_FLOAT<<5|i.NUMBYTES.EIGHT,m=i.MT.SIMPLE_FLOAT<<5|i.SIMPLE.TRUE,b=i.MT.SIMPLE_FLOAT<<5|i.SIMPLE.FALSE,y=i.MT.SIMPLE_FLOAT<<5|i.SIMPLE.UNDEFINED,g=i.MT.SIMPLE_FLOAT<<5|i.SIMPLE.NULL,_=new o("0x20000000000000"),v=t.from("f97e00","hex"),k=t.from("f9fc00","hex"),w=t.from("f97c00","hex");function x(e){return{}.toString.call(e).slice(8,-1)}class j{constructor(e){e=e||{},this.streaming="function"==typeof e.stream,this.onData=e.stream,this.semanticTypes=[[r.Url,this._pushUrl],[o,this._pushBigNumber]];const t=e.genTypes||[],n=t.length;for(let e=0;e<n;e++)this.addSemanticType(t[e][0],t[e][1]);this._reset()}addSemanticType(e,t){const n=this.semanticTypes.length;for(let r=0;r<n;r++){const n=this.semanticTypes[r][0];if(n===e){const e=this.semanticTypes[r][1];return this.semanticTypes[r][1]=t,e}}return this.semanticTypes.push([e,t]),null}push(e){return!e||(this.result[this.offset]=e,this.resultMethod[this.offset]=0,this.resultLength[this.offset]=e.length,this.offset++,this.streaming&&this.onData(this.finalize()),!0)}pushWrite(e,t,n){return this.result[this.offset]=e,this.resultMethod[this.offset]=t,this.resultLength[this.offset]=n,this.offset++,this.streaming&&this.onData(this.finalize()),!0}_pushUInt8(e){return this.pushWrite(e,1,1)}_pushUInt16BE(e){return this.pushWrite(e,2,2)}_pushUInt32BE(e){return this.pushWrite(e,3,4)}_pushDoubleBE(e){return this.pushWrite(e,4,8)}_pushNaN(){return this.push(v)}_pushInfinity(e){const t=e<0?k:w;return this.push(t)}_pushFloat(e){const n=t.allocUnsafe(2);if(s.writeHalf(n,e)&&s.parseHalf(n)===e)return this._pushUInt8(d)&&this.push(n);const r=t.allocUnsafe(4);return r.writeFloatBE(e,0),r.readFloatBE(0)===e?this._pushUInt8(h)&&this.push(r):this._pushUInt8(p)&&this._pushDoubleBE(e)}_pushInt(e,t,n){const r=t<<5;return e<24?this._pushUInt8(r|e):e<=255?this._pushUInt8(r|u.ONE)&&this._pushUInt8(e):e<=65535?this._pushUInt8(r|u.TWO)&&this._pushUInt16BE(e):e<=4294967295?this._pushUInt8(r|u.FOUR)&&this._pushUInt32BE(e):e<=Number.MAX_SAFE_INTEGER?this._pushUInt8(r|u.EIGHT)&&this._pushUInt32BE(Math.floor(e/c))&&this._pushUInt32BE(e%c):t===a.NEG_INT?this._pushFloat(n):this._pushFloat(e)}_pushIntNum(e){return e<0?this._pushInt(-e-1,a.NEG_INT,e):this._pushInt(e,a.POS_INT)}_pushNumber(e){switch(!1){case e==e:return this._pushNaN(e);case isFinite(e):return this._pushInfinity(e);case e%1!=0:return this._pushIntNum(e);default:return this._pushFloat(e)}}_pushString(e){const n=t.byteLength(e,"utf8");return this._pushInt(n,a.UTF8_STRING)&&this.pushWrite(e,5,n)}_pushBoolean(e){return this._pushUInt8(e?m:b)}_pushUndefined(e){return this._pushUInt8(y)}_pushArray(e,t){const n=t.length;if(!e._pushInt(n,a.ARRAY))return!1;for(let r=0;r<n;r++)if(!e.pushAny(t[r]))return!1;return!0}_pushTag(e){return this._pushInt(e,a.TAG)}_pushDate(e,t){return e._pushTag(f.DATE_EPOCH)&&e.pushAny(Math.round(t/1e3))}_pushBuffer(e,t){return e._pushInt(t.length,a.BYTE_STRING)&&e.push(t)}_pushNoFilter(e,t){return e._pushBuffer(e,t.slice())}_pushRegexp(e,t){return e._pushTag(f.REGEXP)&&e.pushAny(t.source)}_pushSet(e,t){if(!e._pushInt(t.size,a.ARRAY))return!1;for(let n of t)if(!e.pushAny(n))return!1;return!0}_pushUrl(e,t){return e._pushTag(f.URI)&&e.pushAny(t.format())}_pushBigint(e){let n=f.POS_BIGINT;e.isNegative()&&(e=e.negated().minus(1),n=f.NEG_BIGINT);let r=e.toString(16);r.length%2&&(r="0"+r);const o=t.from(r,"hex");return this._pushTag(n)&&this._pushBuffer(this,o)}_pushBigNumber(e,t){if(t.isNaN())return e._pushNaN();if(!t.isFinite())return e._pushInfinity(t.isNegative()?-1/0:1/0);if(t.isInteger())return e._pushBigint(t);if(!e._pushTag(f.DECIMAL_FRAC)||!e._pushInt(2,a.ARRAY))return!1;const n=t.decimalPlaces(),r=t.multipliedBy(new o(10).pow(n));return!!e._pushIntNum(-n)&&(r.abs().isLessThan(_)?e._pushIntNum(r.toNumber()):e._pushBigint(r))}_pushMap(e,t){return!!e._pushInt(t.size,a.MAP)&&this._pushRawMap(t.size,Array.from(t))}_pushObject(e){if(!e)return this._pushUInt8(g);for(var t=this.semanticTypes.length,n=0;n<t;n++)if(e instanceof this.semanticTypes[n][0])return this.semanticTypes[n][1].call(e,this,e);var r=e.encodeCBOR;if("function"==typeof r)return r.call(e,this);var o=Object.keys(e),s=o.length;return!!this._pushInt(s,a.MAP)&&this._pushRawMap(s,o.map(t=>[t,e[t]]))}_pushRawMap(e,t){t=t.map(function(e){return e[0]=j.encode(e[0]),e}).sort(s.keySorter);for(var n=0;n<e;n++){if(!this.push(t[n][0]))return!1;if(!this.pushAny(t[n][1]))return!1}return!0}write(e){return this.pushAny(e)}pushAny(e){var n;switch(x(e)){case"Number":return this._pushNumber(e);case"String":return this._pushString(e);case"Boolean":return this._pushBoolean(e);case"Object":return this._pushObject(e);case"Array":return this._pushArray(this,e);case"Uint8Array":return this._pushBuffer(this,t.isBuffer(e)?e:t.from(e));case"Null":return this._pushUInt8(g);case"Undefined":return this._pushUndefined(e);case"Map":return this._pushMap(this,e);case"Set":return this._pushSet(this,e);case"Date":return this._pushDate(this,e);case"RegExp":return this._pushRegexp(this,e);case"Symbol":switch(e){case l.NULL:return this._pushObject(null);case l.UNDEFINED:return this._pushUndefined(void 0);default:throw new Error("Unknown symbol: "+e.toString())}default:throw new Error("Unknown type: "+typeof e+", "+(e?e.toString():""))}}finalize(){if(0===this.offset)return null;for(var e=this.result,n=this.resultLength,r=this.resultMethod,o=this.offset,s=0,i=0;i<o;i++)s+=n[i];var a=t.allocUnsafe(s),u=0,c=0;for(i=0;i<o;i++){switch(c=n[i],r[i]){case 0:e[i].copy(a,u);break;case 1:a.writeUInt8(e[i],u,!0);break;case 2:a.writeUInt16BE(e[i],u,!0);break;case 3:a.writeUInt32BE(e[i],u,!0);break;case 4:a.writeDoubleBE(e[i],u,!0);break;case 5:a.write(e[i],u,c,"utf8");break;default:throw new Error("unkown method")}u+=c}var l=a;return this._reset(),l}_reset(){this.result=[],this.resultMethod=[],this.resultLength=[],this.offset=0}static encode(e){const t=new j,n=t.pushAny(e);if(!n)throw new Error("Failed to encode input");return t.finalize()}}e.exports=j}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/borc/src/index.js":function(e,t,n){"use strict";t.Diagnose=n("./node_modules/borc/src/diagnose.js"),t.Decoder=n("./node_modules/borc/src/decoder.js"),t.Encoder=n("./node_modules/borc/src/encoder.js"),t.Simple=n("./node_modules/borc/src/simple.js"),t.Tagged=n("./node_modules/borc/src/tagged.js"),t.decodeAll=t.Decoder.decodeAll,t.decodeFirst=t.Decoder.decodeFirst,t.diagnose=t.Diagnose.diagnose,t.encode=t.Encoder.encode,t.decode=t.Decoder.decode,t.leveldb={decode:t.Decoder.decodeAll,encode:t.Encoder.encode,buffer:!0,name:"cbor"}},"./node_modules/borc/src/simple.js":function(e,t,n){"use strict";const r=n("./node_modules/borc/src/constants.js"),o=r.MT,s=r.SIMPLE,i=r.SYMS;class a{constructor(e){if("number"!=typeof e)throw new Error("Invalid Simple type: "+typeof e);if(e<0||e>255||(0|e)!==e)throw new Error("value must be a small positive integer: "+e);this.value=e}toString(){return"simple("+this.value+")"}inspect(){return"simple("+this.value+")"}encodeCBOR(e){return e._pushInt(this.value,o.SIMPLE_FLOAT)}static isSimple(e){return e instanceof a}static decode(e,t){switch(null==t&&(t=!0),e){case s.FALSE:return!1;case s.TRUE:return!0;case s.NULL:return t?null:i.NULL;case s.UNDEFINED:return t?void 0:i.UNDEFINED;case-1:if(!t)throw new Error("Invalid BREAK");return i.BREAK;default:return new a(e)}}}e.exports=a},"./node_modules/borc/src/tagged.js":function(e,t,n){"use strict";class r{constructor(e,t,n){if(this.tag=e,this.value=t,this.err=n,"number"!=typeof this.tag)throw new Error("Invalid tag type ("+typeof this.tag+")");if(this.tag<0||(0|this.tag)!==this.tag)throw new Error("Tag must be a positive integer: "+this.tag)}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(e){return e._pushTag(this.tag),e.pushAny(this.value)}convert(e){var t,n;if("function"!=typeof(n=null!=e?e[this.tag]:void 0)&&"function"!=typeof(n=r["_tag"+this.tag]))return this;try{return n.call(r,this.value)}catch(e){return t=e,this.err=t,this}}}e.exports=r},"./node_modules/borc/src/utils.js":function(e,t,n){"use strict";(function(e){const r=n("./node_modules/bignumber.js/bignumber.js"),o=n("./node_modules/borc/src/constants.js"),s=o.SHIFT32,i=o.SHIFT16,a=2097151;function u(e){return e<16?"0"+e.toString(16):e.toString(16)}t.parseHalf=function e(t){var n,r,o;return o=128&t[0]?-1:1,n=(124&t[0])>>2,r=(3&t[0])<<8|t[1],n?31===n?o*(r?NaN:Infinity):o*Math.pow(2,n-25)*(1024+r):5.960464477539063e-8*o*r},t.arrayBufferToBignumber=function(e){const t=e.byteLength;let n="";for(let r=0;r<t;r++)n+=u(e[r]);return new r(n,16)},t.buildMap=(e=>{const t=new Map,n=Object.keys(e),r=n.length;for(let o=0;o<r;o++)t.set(n[o],e[n[o]]);return t}),t.buildInt32=((e,t)=>e*i+t),t.buildInt64=((e,n,o,i)=>{const a=t.buildInt32(e,n),u=t.buildInt32(o,i);return a>2097151?new r(a).times(s).plus(u):a*s+u}),t.writeHalf=function t(n,r){const o=e.allocUnsafe(4);o.writeFloatBE(r,0);const s=o.readUInt32BE(0);if(0!=(8191&s))return!1;var i=s>>16&32768;const a=s>>23&255,u=8388607&s;if(a>=113&&a<=142)i+=(a-112<<10)+(u>>13);else{if(!(a>=103&&a<113))return!1;if(u&(1<<126-a)-1)return!1;i+=u+8388608>>126-a}return n.writeUInt16BE(i,0),!0},t.keySorter=function(e,t){var n=e[0].byteLength,r=t[0].byteLength;return n>r?1:r>n?-1:e[0].compare(t[0])},t.isNegativeZero=(e=>0===e&&1/e<0),t.nextPowerOf2=(e=>{let t=0;if(e&&!(e&e-1))return e;for(;0!==e;)e>>=1,t+=1;return 1<<t})}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/bs58/index.js":function(e,t,n){var r=n("./node_modules/base-x/index.js"),o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";e.exports=r(o)},"./node_modules/buffer/index.js":function(e,t,n){"use strict";(function(e){var r=n("./node_modules/base64-js/index.js"),o=n("./node_modules/ieee754/index.js"),s=n("./node_modules/isarray/index.js");function i(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?b(e,t,n,r):"string"==typeof t?p(e,t,n):y(e,t)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t,n,r){return f(t),t<=0?u(e,t):void 0!==n?"string"==typeof r?u(e,t).fill(n,r):u(e,t).fill(n):u(e,t)}function h(e,t){if(f(t),e=u(e,t<0?0:0|g(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(t,n),o=(e=u(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}function m(e,t){var n=t.length<0?0:0|g(t.length);e=u(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function b(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=m(e,t),e}function y(e,t){if(c.isBuffer(t)){var n=0|g(t.length);return 0===(e=u(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||te(t.length)?u(e,0):m(e,t);if("Buffer"===t.type&&s(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function _(e){return+e!=e&&(e=0),c.alloc(+e)}function v(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(r)return J(e).length;t=(""+t).toLowerCase(),r=!0}}function k(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return B(this,t,n);case"ascii":return F(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return N(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:j(e,t,n,r,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):j(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function j(e,t,n,r,o){var s=1,i=e.length,a=t.length,u;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,i/=2,a/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(u=n;u<i;u++)if(c(e,u)===c(t,-1===l?0:u-l)){if(-1===l&&(l=u),u-l+1===a)return l*s}else-1!==l&&(u-=u-l),l=-1}else for(n+a>i&&(n=i-a),u=n;u>=0;u--){for(var f=!0,d=0;d<a;d++)if(c(e,u+d)!==c(t,d)){f=!1;break}if(f)return u}return-1}function S(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var i=0;i<r;++i){var a=parseInt(t.substr(2*i,2),16);if(isNaN(a))return i;e[n+i]=a}return i}function E(e,t,n,r){return ee(J(t,e.length-n),e,n,r)}function A(e,t,n,r){return ee(Z(t),e,n,r)}function O(e,t,n,r){return A(e,t,n,r)}function T(e,t,n,r){return ee(Q(t),e,n,r)}function I(e,t,n,r){return ee(X(t,e.length-n),e,n,r)}function N(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function B(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var s=e[o],i=null,a=s>239?4:s>223?3:s>191?2:1,u,c,l,f;if(o+a<=n)switch(a){case 1:s<128&&(i=s);break;case 2:128==(192&(u=e[o+1]))&&(f=(31&s)<<6|63&u)>127&&(i=f);break;case 3:u=e[o+1],c=e[o+2],128==(192&u)&&128==(192&c)&&(f=(15&s)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(i=f);break;case 4:u=e[o+1],c=e[o+2],l=e[o+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&s)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(i=f)}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return R(r)}t.Buffer=c,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:i(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return d(null,e,t,n)},c.allocUnsafe=function(e){return h(null,e)},c.allocUnsafeSlow=function(e){return h(null,e)},c.isBuffer=function e(t){return!(null==t||!t._isBuffer)},c.compare=function e(t,n){if(!c.isBuffer(t)||!c.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var r=t.length,o=n.length,s=0,i=Math.min(r,o);s<i;++s)if(t[s]!==n[s]){r=t[s],o=n[s];break}return r<o?-1:o<r?1:0},c.isEncoding=function e(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function e(t,n){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var r;if(void 0===n)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var o=c.allocUnsafe(n),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,i),i+=a.length}return o},c.byteLength=v,c.prototype._isBuffer=!0,c.prototype.swap16=function e(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)w(this,n,n+1);return this},c.prototype.swap32=function e(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)w(this,n,n+3),w(this,n+1,n+2);return this},c.prototype.swap64=function e(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)w(this,n,n+7),w(this,n+1,n+6),w(this,n+2,n+5),w(this,n+3,n+4);return this},c.prototype.toString=function e(){var t=0|this.length;return 0===t?"":0===arguments.length?B(this,0,t):k.apply(this,arguments)},c.prototype.equals=function e(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function e(){var n="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(n+=" ... ")),"<Buffer "+n+">"},c.prototype.compare=function e(t,n,r,o,s){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===r&&(r=t?t.length:0),void 0===o&&(o=0),void 0===s&&(s=this.length),n<0||r>t.length||o<0||s>this.length)throw new RangeError("out of range index");if(o>=s&&n>=r)return 0;if(o>=s)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,o>>>=0,s>>>=0,this===t)return 0;for(var i=s-o,a=r-n,u=Math.min(i,a),l=this.slice(o,s),f=t.slice(n,r),d=0;d<u;++d)if(l[d]!==f[d]){i=l[d],a=f[d];break}return i<a?-1:a<i?1:0},c.prototype.includes=function e(t,n,r){return-1!==this.indexOf(t,n,r)},c.prototype.indexOf=function e(t,n,r){return x(this,t,n,r,!0)},c.prototype.lastIndexOf=function e(t,n,r){return x(this,t,n,r,!1)},c.prototype.write=function e(t,n,r,o){if(void 0===n)o="utf8",r=this.length,n=0;else if(void 0===r&&"string"==typeof n)o=n,r=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(r)?(r|=0,void 0===o&&(o="utf8")):(o=r,r=void 0)}var s=this.length-n;if((void 0===r||r>s)&&(r=s),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return S(this,t,n,r);case"utf8":case"utf-8":return E(this,t,n,r);case"ascii":return A(this,t,n,r);case"latin1":case"binary":return O(this,t,n,r);case"base64":return T(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n,r);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},c.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function R(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}function F(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",s=t;s<n;++s)o+=V(e[s]);return o}function L(e,t,n){for(var r=e.slice(t,n),o="",s=0;s<r.length;s+=2)o+=String.fromCharCode(r[s]+256*r[s+1]);return o}function U(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,o,s){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function z(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,s=Math.min(e.length-n,2);o<s;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function q(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,s=Math.min(e.length-n,4);o<s;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function K(e,t,n,r,o,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(e,t,n,r,s){return s||K(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),o.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,s){return s||K(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function e(t,n){var r=this.length,o;if(t=~~t,n=void 0===n?r:~~n,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),n<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<t&&(n=t),c.TYPED_ARRAY_SUPPORT)(o=this.subarray(t,n)).__proto__=c.prototype;else{var s=n-t;o=new c(s,void 0);for(var i=0;i<s;++i)o[i]=this[i+t]}return o},c.prototype.readUIntLE=function e(t,n,r){t|=0,n|=0,r||U(t,n,this.length);for(var o=this[t],s=1,i=0;++i<n&&(s*=256);)o+=this[t+i]*s;return o},c.prototype.readUIntBE=function e(t,n,r){t|=0,n|=0,r||U(t,n,this.length);for(var o=this[t+--n],s=1;n>0&&(s*=256);)o+=this[t+--n]*s;return o},c.prototype.readUInt8=function e(t,n){return n||U(t,1,this.length),this[t]},c.prototype.readUInt16LE=function e(t,n){return n||U(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function e(t,n){return n||U(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function e(t,n){return n||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function e(t,n){return n||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function e(t,n,r){t|=0,n|=0,r||U(t,n,this.length);for(var o=this[t],s=1,i=0;++i<n&&(s*=256);)o+=this[t+i]*s;return o>=(s*=128)&&(o-=Math.pow(2,8*n)),o},c.prototype.readIntBE=function e(t,n,r){t|=0,n|=0,r||U(t,n,this.length);for(var o=n,s=1,i=this[t+--o];o>0&&(s*=256);)i+=this[t+--o]*s;return i>=(s*=128)&&(i-=Math.pow(2,8*n)),i},c.prototype.readInt8=function e(t,n){return n||U(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function e(t,n){n||U(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function e(t,n){n||U(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function e(t,n){return n||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function e(t,n){return n||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function e(t,n){return n||U(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function e(t,n){return n||U(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function e(t,n){return n||U(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function e(t,n){return n||U(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function e(t,n,r,o){var s;(t=+t,n|=0,r|=0,o)||D(this,t,n,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[n]=255&t;++a<r&&(i*=256);)this[n+a]=t/i&255;return n+r},c.prototype.writeUIntBE=function e(t,n,r,o){var s;(t=+t,n|=0,r|=0,o)||D(this,t,n,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[n+i]=255&t;--i>=0&&(a*=256);)this[n+i]=t/a&255;return n+r},c.prototype.writeUInt8=function e(t,n,r){return t=+t,n|=0,r||D(this,t,n,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},c.prototype.writeUInt16LE=function e(t,n,r){return t=+t,n|=0,r||D(this,t,n,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):z(this,t,n,!0),n+2},c.prototype.writeUInt16BE=function e(t,n,r){return t=+t,n|=0,r||D(this,t,n,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):z(this,t,n,!1),n+2},c.prototype.writeUInt32LE=function e(t,n,r){return t=+t,n|=0,r||D(this,t,n,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):q(this,t,n,!0),n+4},c.prototype.writeUInt32BE=function e(t,n,r){return t=+t,n|=0,r||D(this,t,n,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):q(this,t,n,!1),n+4},c.prototype.writeIntLE=function e(t,n,r,o){if(t=+t,n|=0,!o){var s=Math.pow(2,8*r-1);D(this,t,n,r,s-1,-s)}var i=0,a=1,u=0;for(this[n]=255&t;++i<r&&(a*=256);)t<0&&0===u&&0!==this[n+i-1]&&(u=1),this[n+i]=(t/a>>0)-u&255;return n+r},c.prototype.writeIntBE=function e(t,n,r,o){if(t=+t,n|=0,!o){var s=Math.pow(2,8*r-1);D(this,t,n,r,s-1,-s)}var i=r-1,a=1,u=0;for(this[n+i]=255&t;--i>=0&&(a*=256);)t<0&&0===u&&0!==this[n+i+1]&&(u=1),this[n+i]=(t/a>>0)-u&255;return n+r},c.prototype.writeInt8=function e(t,n,r){return t=+t,n|=0,r||D(this,t,n,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},c.prototype.writeInt16LE=function e(t,n,r){return t=+t,n|=0,r||D(this,t,n,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):z(this,t,n,!0),n+2},c.prototype.writeInt16BE=function e(t,n,r){return t=+t,n|=0,r||D(this,t,n,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):z(this,t,n,!1),n+2},c.prototype.writeInt32LE=function e(t,n,r){return t=+t,n|=0,r||D(this,t,n,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):q(this,t,n,!0),n+4},c.prototype.writeInt32BE=function e(t,n,r){return t=+t,n|=0,r||D(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):q(this,t,n,!1),n+4},c.prototype.writeFloatLE=function e(t,n,r){return $(this,t,n,!0,r)},c.prototype.writeFloatBE=function e(t,n,r){return $(this,t,n,!1,r)},c.prototype.writeDoubleLE=function e(t,n,r){return H(this,t,n,!0,r)},c.prototype.writeDoubleBE=function e(t,n,r){return H(this,t,n,!1,r)},c.prototype.copy=function e(t,n,r,o){if(r||(r=0),o||0===o||(o=this.length),n>=t.length&&(n=t.length),n||(n=0),o>0&&o<r&&(o=r),o===r)return 0;if(0===t.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-n<o-r&&(o=t.length-n+r);var s=o-r,i;if(this===t&&r<n&&n<o)for(i=s-1;i>=0;--i)t[i+n]=this[i+r];else if(s<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)t[i+n]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+s),n);return s},c.prototype.fill=function e(t,n,r,o){if("string"==typeof t){if("string"==typeof n?(o=n,n=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),1===t.length){var s=t.charCodeAt(0);s<256&&(t=s)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof t&&(t&=255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;var i;if(n>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=n;i<r;++i)this[i]=t;else{var a=c.isBuffer(t)?t:J(new c(t,o).toString()),u=a.length;for(i=0;i<r-n;++i)this[i+n]=a[i%u]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function G(e){if((e=Y(e).replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function Y(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function V(e){return e<16?"0"+e.toString(16):e.toString(16)}function J(e,t){var n;t=t||1/0;for(var r=e.length,o=null,s=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&s.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&s.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function Z(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function X(e,t){for(var n,r,o,s=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,o=n%256,s.push(o),s.push(r);return s}function Q(e){return r.toByteArray(G(e))}function ee(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function te(e){return e!=e}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/cids/src/cid-util.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/multihashes/src/index.js");var o={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!=typeof e.codec)return"codec must be string";if(!t.isBuffer(e.multihash))return"multihash must be a Buffer";try{r.validate(e.multihash)}catch(e){let t=e.message;return t||(t="Multihash validation failed"),t}}};e.exports=o}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/cids/src/index.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/multihashes/src/index.js"),o=n("./node_modules/multibase/src/index.js"),s=n("./node_modules/multicodec/src/index.js"),i=n("./node_modules/multicodec/src/base-table.js"),a=n("./node_modules/cids/src/cid-util.js"),u=n("./node_modules/class-is/index.js");class c{constructor(n,i,a){if(e.exports.isCID(n)){let e=n;return this.version=e.version,this.codec=e.codec,void(this.multihash=t.from(e.multihash))}if("string"==typeof n)if(o.isEncoded(n)){const e=o.decode(n);n=parseInt(e.slice(0,1).toString("hex"),16),i=s.getCodec(e.slice(1)),a=s.rmPrefix(e.slice(1))}else i="dag-pb",a=r.fromB58String(n),n=0;else if(t.isBuffer(n)){const e=n.slice(0,1),t=parseInt(e.toString("hex"),16);if(0===t||1===t){const e=n;n=t,i=s.getCodec(e.slice(1)),a=s.rmPrefix(e.slice(1))}else i="dag-pb",a=n,n=0}this.codec=i,this.version=n,this.multihash=a,c.validateCID(this)}get buffer(){switch(this.version){case 0:return this.multihash;case 1:return t.concat([t.from("01","hex"),s.getCodeVarint(this.codec),this.multihash]);default:throw new Error("unsupported version")}}get prefix(){return t.concat([t.from(`0${this.version}`,"hex"),s.getCodeVarint(this.codec),r.prefix(this.multihash)])}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:e,length:t}=r.decode(this.multihash);if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==t)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new l(0,this.codec,this.multihash)}toV1(){return new l(1,this.codec,this.multihash)}toBaseEncodedString(e){switch(e=e||"base58btc",this.version){case 0:if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");return r.toB58String(this.multihash);case 1:return o.encode(e,this.buffer).toString();default:throw new Error("Unsupported version")}}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&this.multihash.equals(e.multihash)}static validateCID(e){let t=a.checkCIDComponents(e);if(t)throw new Error(t)}}const l=u(c,{className:"CID",symbolName:"@ipld/js-cid/CID"});l.codecs=i,e.exports=l}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/class-is/index.js":function(e,t,n){"use strict";function r(e,{className:t,symbolName:n}){const r=Symbol.for(n),o={[t]:class extends e{constructor(...e){super(...e),Object.defineProperty(this,r,{value:!0})}get[Symbol.toStringTag](){return t}}}[t];return o[`is${t}`]=(e=>!(!e||!e[r])),o}function o(e,{className:t,symbolName:n,withoutNew:r}){const o=Symbol.for(n),s={[t]:function(...t){if(r&&!(this instanceof s))return new s(...t);const n=e.call(this,...t)||this;return n&&!n[o]&&Object.defineProperty(n,o,{value:!0}),n}}[t];return s.prototype=Object.create(e.prototype),s.prototype.constructor=s,Object.defineProperty(s.prototype,Symbol.toStringTag,{get:()=>t}),s[`is${t}`]=(e=>!(!e||!e[o])),s}e.exports=r,e.exports.proto=o},"./node_modules/core-util-is/lib/util.js":function(e,t,n){(function(e){function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===b(e)}function r(e){return"boolean"==typeof e}function o(e){return null===e}function s(e){return null==e}function i(e){return"number"==typeof e}function a(e){return"string"==typeof e}function u(e){return"symbol"==typeof e}function c(e){return void 0===e}function l(e){return"[object RegExp]"===b(e)}function f(e){return"object"==typeof e&&null!==e}function d(e){return"[object Date]"===b(e)}function h(e){return"[object Error]"===b(e)||e instanceof Error}function p(e){return"function"==typeof e}function m(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function b(e){return Object.prototype.toString.call(e)}t.isArray=n,t.isBoolean=r,t.isNull=o,t.isNullOrUndefined=s,t.isNumber=i,t.isString=a,t.isSymbol=u,t.isUndefined=c,t.isRegExp=l,t.isObject=f,t.isDate=d,t.isError=h,t.isFunction=p,t.isPrimitive=m,t.isBuffer=e.isBuffer}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/datastore-core/src/index.js":function(e,t,n){"use strict";const r=n("./node_modules/datastore-core/src/keytransform.js"),o=n("./node_modules/datastore-core/src/sharding.js"),s=n("./node_modules/datastore-core/src/mount.js"),i=n("./node_modules/datastore-core/src/tiered.js"),a=n("./node_modules/datastore-core/src/namespace.js"),u=n("./node_modules/datastore-core/src/shard.js");t.KeytransformDatastore=r,t.ShardingDatastore=o,t.MountDatastore=s,t.TieredDatastore=i,t.NamespaceDatastore=a,t.shard=u},"./node_modules/datastore-core/src/keytransform.js":function(e,t,n){"use strict";const r=n("./node_modules/pull-stream/index.js");class o{constructor(e,t){this.child=e,this.transform=t}open(e){this.child.open(e)}put(e,t,n){this.child.put(this.transform.convert(e),t,n)}get(e,t){this.child.get(this.transform.convert(e),t)}has(e,t){this.child.has(this.transform.convert(e),t)}delete(e,t){this.child.delete(this.transform.convert(e),t)}batch(){const e=this.child.batch();return{put:(t,n)=>{e.put(this.transform.convert(t),n)},delete:t=>{e.delete(this.transform.convert(t))},commit:t=>{e.commit(t)}}}query(e){return r(this.child.query(e),r.map(e=>(e.key=this.transform.invert(e.key),e)))}close(e){this.child.close(e)}}e.exports=o},"./node_modules/datastore-core/src/mount.js":function(e,t,n){"use strict";const r=n("./node_modules/async/each.js"),o=n("./node_modules/pull-many/index.js"),s=n("./node_modules/pull-stream/index.js"),i=n("./node_modules/interface-datastore/src/index.js").Key,a=n("./node_modules/interface-datastore/src/index.js").Errors,u=n("./node_modules/interface-datastore/src/index.js").utils,c=u.asyncFilter,l=u.asyncSort,f=u.replaceStartWith,d=n("./node_modules/datastore-core/src/keytransform.js");class h{constructor(e){this.mounts=e.slice()}open(e){r(this.mounts,(e,t)=>{e.datastore.open(t)},e)}_lookup(e){for(let t of this.mounts)if(t.prefix.toString()===e.toString()||t.prefix.isAncestorOf(e)){const n=f(e.toString(),t.prefix.toString());return{datastore:t.datastore,mountpoint:t.prefix,rest:new i(n)}}}put(e,t,n){const r=this._lookup(e);if(null==r)return n(a.dbWriteFailedError(new Error("No datastore mounted for this key")));r.datastore.put(r.rest,t,n)}get(e,t){const n=this._lookup(e);if(null==n)return t(a.notFoundError(new Error("No datastore mounted for this key")));n.datastore.get(n.rest,t)}has(e,t){const n=this._lookup(e);null!=n?n.datastore.has(n.rest,t):t(null,!1)}delete(e,t){const n=this._lookup(e);if(null==n)return t(a.dbDeleteFailedError(new Error("No datastore mounted for this key")));n.datastore.delete(n.rest,t)}close(e){r(this.mounts,(e,t)=>{e.datastore.close(t)},e)}batch(){const e={},t=t=>{const n=this._lookup(t);if(null==n)throw new Error("No datastore mounted for this key");const r=n.mountpoint.toString();return null==e[r]&&(e[r]=n.datastore.batch()),{batch:e[r],rest:n.rest}};return{put:(e,n)=>{const r=t(e);r.batch.put(r.rest,n)},delete:e=>{const n=t(e);n.batch.delete(n.rest)},commit:t=>{r(Object.keys(e),(t,n)=>{e[t].commit(n)},t)}}}query(e){const t=this.mounts.map(t=>{const n=new d(t.datastore,{convert:e=>{throw new Error("should never be called")},invert:e=>t.prefix.child(e)});let r;return null!=e.prefix&&(r=f(e.prefix,t.prefix.toString())),n.query({prefix:r,filters:e.filters,keysOnly:e.keysOnly})});let n=[o(t)];if(null!=e.filters&&(n=n.concat(e.filters.map(e=>c(e)))),null!=e.orders&&(n=n.concat(e.orders.map(e=>l(e)))),null!=e.offset){let t=0;n.push(s.filter(()=>t++>=e.offset))}return null!=e.limit&&n.push(s.take(e.limit)),s.apply(null,n)}}e.exports=h},"./node_modules/datastore-core/src/namespace.js":function(e,t,n){"use strict";const r=n("./node_modules/interface-datastore/src/index.js").Key,o=n("./node_modules/datastore-core/src/keytransform.js");class s extends o{constructor(e,t){super(e,{convert:e=>t.child(e),invert(e){if("/"===t.toString())return e;if(!t.isAncestorOf(e))throw new Error(`Expected prefix: (${t.toString()}) in key: ${e.toString()}`);return new r(e.toString().slice(t.toString().length),!1)}}),this.prefix=t}query(e){return e.prefix&&"/"!==this.prefix.toString()?super.query(Object.assign({},e,{prefix:this.prefix.child(new r(e.prefix)).toString()})):super.query(e)}}e.exports=s},"./node_modules/datastore-core/src/shard-readme.js":function(e,t,n){"use strict";e.exports="This is a repository of IPLD objects. Each IPLD object is in a single file,\nnamed <base32 encoding of cid>.data. Where <base32 encoding of cid> is the\n\"base32\" encoding of the CID (as specified in\nhttps://github.com/multiformats/multibase) without the 'B' prefix.\nAll the object files are placed in a tree of directories, based on a\nfunction of the CID. This is a form of sharding similar to\nthe objects directory in git repositories. Previously, we used\nprefixes, we now use the next-to-last two charters.\n    func NextToLast(base32cid string) {\n      nextToLastLen := 2\n      offset := len(base32cid) - nextToLastLen - 1\n      return str[offset : offset+nextToLastLen]\n    }\nFor example, an object with a base58 CIDv1 of\n    zb2rhYSxw4ZjuzgCnWSt19Q94ERaeFhu9uSqRgjSdx9bsgM6f\nhas a base32 CIDv1 of\n    BAFKREIA22FLID5AJ2KU7URG47MDLROZIH6YF2KALU2PWEFPVI37YLKRSCA\nand will be placed at\n    SC/AFKREIA22FLID5AJ2KU7URG47MDLROZIH6YF2KALU2PWEFPVI37YLKRSCA.data\nwith 'SC' being the last-to-next two characters and the 'B' at the\nbeginning of the CIDv1 string is the multibase prefix that is not\nstored in the filename.\n"},"./node_modules/datastore-core/src/shard.js":function(e,t,n){"use strict";const r=n("./node_modules/left-pad/index.js"),o=n("./node_modules/interface-datastore/src/index.js").Key,s=n("./node_modules/datastore-core/src/shard-readme.js"),i=t.PREFIX="/repo/flatfs/shard/",a=t.SHARDING_FN="SHARDING";t.README_FN="_README";class u{constructor(e){this.param=e}fun(e){throw new Error("implement me")}toString(){return`${i}v1/${this.name}/${this.param}`}}class c extends u{constructor(e){super(e),this._padding=r("",e,"_"),this.name="prefix"}fun(e){return(e+this._padding).slice(0,this.param)}}class l extends u{constructor(e){super(e),this._padding=r("",e,"_"),this.name="suffix"}fun(e){const t=this._padding+e;return t.slice(t.length-this.param)}}class f extends u{constructor(e){super(e),this._padding=r("",e+1,"_"),this.name="next-to-last"}fun(e){const t=this._padding+e,n=t.length-this.param-1;return t.slice(n,n+this.param)}}function d(e){if(0===(e=e.trim()).length)throw new Error("empty shard string");if(!e.startsWith(i))throw new Error(`invalid or no path prefix: ${e}`);const t=e.slice(i.length).split("/"),n=t[0];if("v1"!==n)throw new Error(`expect 'v1' version, got '${n}'`);const r=t[1];if(!t[2])throw new Error("missing param");const o=parseInt(t[2],10);switch(r){case"prefix":return new c(o);case"suffix":return new l(o);case"next-to-last":return new f(o);default:throw new Error(`unkown sharding function: ${r}`)}}t.readShardFun=((e,t,n)=>{const r=new o(e).child(new o(a)),s="function"==typeof t.getRaw?t.getRaw.bind(t):t.get.bind(t);s(r,(e,t)=>{if(e)return n(e);let r;try{r=d((t||"").toString().trim())}catch(e){return n(e)}n(null,r)})}),t.readme=s,t.parseShardFun=d,t.Prefix=c,t.Suffix=l,t.NextToLast=f},"./node_modules/datastore-core/src/sharding.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/async/waterfall.js"),o=n("./node_modules/async/parallel.js"),s=n("./node_modules/interface-datastore/src/index.js").Key,i=n("./node_modules/datastore-core/src/shard.js"),a=n("./node_modules/datastore-core/src/keytransform.js"),u=new s(i.SHARDING_FN),c=new s(i.README_FN);class l{constructor(e,t){this.child=new a(e,{convert:this._convertKey.bind(this),invert:this._invertKey.bind(this)}),this.shard=t}open(e){this.child.open(e)}_convertKey(e){const t=e.toString();if(t===u.toString()||t===c.toString())return e;const n=new s(this.shard.fun(t));return n.child(e)}_invertKey(e){const t=e.toString();return t===u.toString()||t===c.toString()?e:s.withNamespaces(e.list().slice(1))}static createOrOpen(e,t,n){l.create(e,t,t=>{if(t&&"datastore exists"!==t.message)return n(t);l.open(e,n)})}static open(e,t){r([t=>i.readShardFun("/",e,t),(t,n)=>{n(null,new l(e,t))}],t)}static create(e,n,r){e.has(u,(s,a)=>{if(s)return r(s);if(!a){const s="function"==typeof e.putRaw?e.putRaw.bind(e):e.put.bind(e);return o([e=>s(u,t.from(n.toString()+"\n"),e),e=>s(c,t.from(i.readme),e)],e=>r(e))}i.readShardFun("/",e,(e,t)=>{if(e)return r(e);const o=(t||"").toString(),s=n.toString();if(o!==s)return r(new Error(`specified fun ${s} does not match repo shard fun ${o}`));r(new Error("datastore exists"))})})}put(e,t,n){this.child.put(e,t,n)}get(e,t){this.child.get(e,t)}has(e,t){this.child.has(e,t)}delete(e,t){this.child.delete(e,t)}batch(){return this.child.batch()}query(e){const t={keysOnly:e.keysOnly,offset:e.offset,limit:e.limit,filters:[(e,t)=>t(null,e.key.toString()!==u.toString()),(e,t)=>t(null,e.key.toString()!==c.toString())]};if(null!=e.prefix&&t.filters.push((t,n)=>{n(null,this._invertKey(t.key).toString().startsWith(e.prefix))}),null!=e.filters){const n=e.filters.map(e=>(t,n)=>{e(Object.assign({},t,{key:this._invertKey(t.key)}),n)});t.filters=t.filters.concat(n)}return null!=e.orders&&(t.orders=e.orders.map(e=>(t,n)=>{t.forEach(e=>{e.key=this._invertKey(e.key)}),e(t,(e,t)=>{if(e)return n(e);t.forEach(e=>{e.key=this._convertKey(e.key)}),n(null,t)})})),this.child.query(t)}close(e){this.child.close(e)}}e.exports=l}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/datastore-core/src/tiered.js":function(e,t,n){"use strict";const r=n("./node_modules/async/each.js"),o=n("./node_modules/async/whilst.js"),s=n("./node_modules/interface-datastore/src/index.js").Errors;class i{constructor(e){this.stores=e.slice()}open(e){r(this.stores,(e,t)=>{e.open(t)},t=>{if(t)return e(s.dbOpenFailedError());e()})}put(e,t,n){r(this.stores,(n,r)=>{n.put(e,t,r)},e=>{if(e)return n(s.dbWriteFailedError());n()})}get(e,t){const n=this.stores.length;let r=!1,i=0;o(()=>!r&&i<n,t=>{const n=this.stores[i++];n.get(e,(e,n)=>{if(null==e)return r=!0,t(null,n);t()})},(e,n)=>{if(e||!n)return t(s.notFoundError());t(null,n)})}has(e,t){const n=this.stores.length;let r=!1,s=0;o(()=>!r&&s<n,t=>{const n=this.stores[s++];n.has(e,(e,n)=>{if(null==e)return r=!0,t(null,n);t()})},t)}delete(e,t){r(this.stores,(t,n)=>{t.delete(e,n)},e=>{if(e)return t(s.dbDeleteFailedError());t()})}close(e){r(this.stores,(e,t)=>{e.close(t)},e)}batch(){const e=this.stores.map(e=>e.batch());return{put:(t,n)=>{e.forEach(e=>e.put(t,n))},delete:t=>{e.forEach(e=>e.delete(t))},commit:t=>{r(e,(e,t)=>{e.commit(t)},t)}}}query(e){return this.stores[this.stores.length-1].query(e)}}e.exports=i},"./node_modules/datastore-level/src/index.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/pull-stream/index.js"),o=n("./node_modules/levelup/lib/levelup.js"),s=n("./node_modules/interface-datastore/src/index.js").utils.asyncFilter,i=n("./node_modules/interface-datastore/src/index.js").utils.asyncSort,a=n("./node_modules/interface-datastore/src/index.js").Key,u=n("./node_modules/interface-datastore/src/index.js").Errors,c=n("./node_modules/encoding-down/index.js");class l{constructor(e,t){let r;t&&t.db?(r=t.db,delete t.db):r=n("./node_modules/level-js/index.js"),this.db=o(c(r(e),{valueEncoding:"binary"}),Object.assign({},t,{compression:!1}),e=>{if(e)throw e})}open(e){this.db.open(t=>{if(t)return e(u.dbOpenFailedError(t));e()})}put(e,t,n){this.db.put(e.toString(),t,e=>{if(e)return n(u.dbWriteFailedError(e));n()})}get(e,t){this.db.get(e.toString(),(e,n)=>{if(e)return t(u.notFoundError(e));t(null,n)})}has(e,t){this.db.get(e.toString(),(e,n)=>{if(e)return e.notFound?void t(null,!1):void t(e);t(null,!0)})}delete(e,t){this.db.del(e.toString(),e=>{if(e)return t(u.dbDeleteFailedError(e));t()})}close(e){this.db.close(e)}batch(){const e=[];return{put:(t,n)=>{e.push({type:"put",key:t.toString(),value:n})},delete:t=>{e.push({type:"del",key:t.toString()})},commit:t=>{this.db.batch(e,t)}}}query(e){let n=!0;null!=e.keysOnly&&(n=!e.keysOnly);const o=this.db.db.iterator({keys:!0,values:n,keyAsBuffer:!0}),u=(e,r)=>{if(e)return o.end(t=>{r(t||e)});o.next((e,s,i)=>{if(e)return r(e);if(null==e&&null==s&&null==i)return o.end(e=>{r(e||!0)});const u={key:new a(s,!1)};n&&(u.value=t.from(i)),r(null,u)})};let c=[u],l=[];if(null!=e.prefix){const t=e.prefix;l.push((e,n)=>n(null,e.key.toString().startsWith(t)))}if(null!=e.filters&&(l=l.concat(e.filters)),c=c.concat(l.map(e=>s(e))),null!=e.orders&&(c=c.concat(e.orders.map(e=>i(e)))),null!=e.offset){let t=0;c.push(r.filter(()=>t++>=e.offset))}return null!=e.limit&&c.push(r.take(e.limit)),r.apply(null,c)}}e.exports=l}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/debug/src/browser.js":function(e,t,n){(function(r){function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function s(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&"%c"===e&&(o=++r)}),t.splice(o,0,n)}function i(...e){return"object"==typeof console&&console.log&&console.log(...e)}function a(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}}function u(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=Object({NODE_ENV:"development"}).DEBUG),e}function c(){try{return localStorage}catch(e){}}t.log=i,t.formatArgs=s,t.save=a,t.load=u,t.useColors=o,t.storage=c(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n("./node_modules/debug/src/common.js")(t);const{formatters:l}=e.exports;l.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/debug/src/common.js":function(e,t,n){function r(e){function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){let n;function i(...e){if(!i.enabled)return;const t=i,o=Number(new Date),s=o-(n||o);t.diff=s,t.prev=n,t.curr=o,n=o,e[0]=r.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return n;a++;const s=r.formatters[o];if("function"==typeof s){const r=e[a];n=s.call(t,r),e.splice(a,1),a--}return n}),r.formatArgs.call(t,e);const u=t.log||r.log;u.apply(t,e)}return i.namespace=e,i.enabled=r.enabled(e),i.useColors=r.useColors(),i.color=t(e),i.destroy=o,i.extend=s,"function"==typeof r.init&&r.init(i),r.instances.push(i),i}function o(){const e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function s(e,t){return r(this.namespace+(void 0===t?":":t)+e)}function i(e){let t;r.save(e),r.names=[],r.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(t=0;t<o;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){const e=r.instances[t];e.enabled=r.enabled(e.namespace)}}function a(){const e=[...r.names.map(c),...r.skips.map(c).map(e=>"-"+e)].join(",");return r.enable(""),e}function u(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1}function c(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function l(e){return e instanceof Error?e.stack||e.message:e}return r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=i,r.enabled=u,r.humanize=n("./node_modules/ms/index.js"),Object.keys(e).forEach(t=>{r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}e.exports=r},"./node_modules/deferred-leveldown/deferred-iterator.js":function(e,t,n){var r=n("./node_modules/util/util.js"),o=n("./node_modules/deferred-leveldown/node_modules/abstract-leveldown/index.js").AbstractIterator;function s(e){o.call(this,e),this._options=e,this._iterator=null,this._operations=[]}r.inherits(s,o),s.prototype.setDb=function(e){var t=this._iterator=e.iterator(this._options);this._operations.forEach(function(e){t[e.method].apply(t,e.args)})},s.prototype._operation=function(e,t){if(this._iterator)return this._iterator[e].apply(this._iterator,t);this._operations.push({method:e,args:t})},"next end".split(" ").forEach(function(e){s.prototype["_"+e]=function(){this._operation(e,arguments)}}),e.exports=s},"./node_modules/deferred-leveldown/deferred-leveldown.js":function(e,t,n){var r=n("./node_modules/util/util.js"),o=n("./node_modules/deferred-leveldown/node_modules/abstract-leveldown/index.js").AbstractLevelDOWN,s=n("./node_modules/deferred-leveldown/deferred-iterator.js"),i="put get del batch".split(" ");function a(e){o.call(this,""),this._db=e,this._operations=[],this._iterators=[],c(this)}function u(e){i.concat("iterator").forEach(function(t){e["_"+t]=function(){return this._db[t].apply(this._db,arguments)}}),e._db.approximateSize&&(e.approximateSize=function(){return this._db.approximateSize.apply(this._db,arguments)})}function c(e){i.forEach(function(t){e["_"+t]=function(){this._operations.push({method:t,args:arguments})}}),"function"==typeof e._db.approximateSize&&(e.approximateSize=function(){this._operations.push({method:"approximateSize",args:arguments})}),e._iterator=function(e){var t=new s(e);return this._iterators.push(t),t}}r.inherits(a,o),a.prototype._open=function(e,t){var n=this;this._db.open(e,function(e){if(e)return t(e);n._operations.forEach(function(e){n._db[e.method].apply(n._db,e.args)}),n._operations=[],n._iterators.forEach(function(e){e.setDb(n._db)}),n._iterators=[],u(n),t()})},a.prototype._close=function(e){var t=this;this._db.close(function(n){if(n)return e(n);c(t),e()})},a.prototype._serializeKey=function(e){return e},a.prototype._serializeValue=function(e){return e},e.exports=a,e.exports.DeferredIterator=s},"./node_modules/deferred-leveldown/node_modules/abstract-leveldown/abstract-chained-batch.js":function(e,t,n){(function(t){function n(e){this._db=e,this._operations=[],this._written=!1}n.prototype._serializeKey=function(e){return this._db._serializeKey(e)},n.prototype._serializeValue=function(e){return this._db._serializeValue(e)},n.prototype._checkWritten=function(){if(this._written)throw new Error("write() already called on this batch")},n.prototype.put=function(e,t){this._checkWritten();var n=this._db._checkKey(e,"key");if(n)throw n;return e=this._serializeKey(e),t=this._serializeValue(t),this._put(e,t),this},n.prototype._put=function(e,t){this._operations.push({type:"put",key:e,value:t})},n.prototype.del=function(e){this._checkWritten();var t=this._db._checkKey(e,"key");if(t)throw t;return e=this._serializeKey(e),this._del(e),this},n.prototype._del=function(e){this._operations.push({type:"del",key:e})},n.prototype.clear=function(){return this._checkWritten(),this._operations=[],this._clear(),this},n.prototype._clear=function e(){},n.prototype.write=function(e,n){if(this._checkWritten(),"function"==typeof e&&(n=e),"function"!=typeof n)throw new Error("write() requires a callback argument");return"object"!=typeof e&&(e={}),this._written=!0,"function"==typeof this._write?this._write(n):"function"==typeof this._db._batch?this._db._batch(this._operations,e,n):void t.nextTick(n)},e.exports=n}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/deferred-leveldown/node_modules/abstract-leveldown/abstract-iterator.js":function(e,t,n){(function(t){function n(e){this.db=e,this._ended=!1,this._nexting=!1}n.prototype.next=function(e){var n=this;if("function"!=typeof e)throw new Error("next() requires a callback argument");return n._ended?(t.nextTick(e,new Error("cannot call next() after end()")),n):n._nexting?(t.nextTick(e,new Error("cannot call next() before previous next() has completed")),n):(n._nexting=!0,n._next(function(){n._nexting=!1,e.apply(null,arguments)}),n)},n.prototype._next=function(e){t.nextTick(e)},n.prototype.end=function(e){if("function"!=typeof e)throw new Error("end() requires a callback argument");if(this._ended)return t.nextTick(e,new Error("end() already called on iterator"));this._ended=!0,this._end(e)},n.prototype._end=function(e){t.nextTick(e)},e.exports=n}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/deferred-leveldown/node_modules/abstract-leveldown/abstract-leveldown.js":function(e,t,n){(function(t,r){const o=n("./node_modules/xtend/immutable.js"),s=n("./node_modules/deferred-leveldown/node_modules/abstract-leveldown/abstract-iterator.js"),i=n("./node_modules/deferred-leveldown/node_modules/abstract-leveldown/abstract-chained-batch.js"),a=Object.prototype.hasOwnProperty,u="start end gt gte lt lte".split(" ");function c(e){if(!arguments.length||void 0===e)throw new Error("constructor requires at least a location argument");if("string"!=typeof e)throw new Error("constructor requires a location string argument");this.location=e,this.status="new"}function l(e){var t={};for(var n in e)a.call(e,n)&&(f(n)&&d(e[n])||(t[n]=e[n]));return t}function f(e){return-1!==u.indexOf(e)}function d(e){return""===e||null==e||h(e)}function h(e){return r.isBuffer(e)&&0===e.length}c.prototype.open=function(e,t){var n=this,r=this.status;if("function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("open() requires a callback argument");"object"!=typeof e&&(e={}),e.createIfMissing=!1!==e.createIfMissing,e.errorIfExists=!!e.errorIfExists,this.status="opening",this._open(e,function(e){if(e)return n.status=r,t(e);n.status="open",t()})},c.prototype._open=function(e,n){t.nextTick(n)},c.prototype.close=function(e){var t=this,n=this.status;if("function"!=typeof e)throw new Error("close() requires a callback argument");this.status="closing",this._close(function(r){if(r)return t.status=n,e(r);t.status="closed",e()})},c.prototype._close=function(e){t.nextTick(e)},c.prototype.get=function(e,n,r){if("function"==typeof n&&(r=n),"function"!=typeof r)throw new Error("get() requires a callback argument");var o=this._checkKey(e,"key");if(o)return t.nextTick(r,o);e=this._serializeKey(e),"object"!=typeof n&&(n={}),n.asBuffer=!1!==n.asBuffer,this._get(e,n,r)},c.prototype._get=function(e,n,r){t.nextTick(function(){r(new Error("NotFound"))})},c.prototype.put=function(e,n,r,o){if("function"==typeof r&&(o=r),"function"!=typeof o)throw new Error("put() requires a callback argument");var s=this._checkKey(e,"key");if(s)return t.nextTick(o,s);e=this._serializeKey(e),n=this._serializeValue(n),"object"!=typeof r&&(r={}),this._put(e,n,r,o)},c.prototype._put=function(e,n,r,o){t.nextTick(o)},c.prototype.del=function(e,n,r){if("function"==typeof n&&(r=n),"function"!=typeof r)throw new Error("del() requires a callback argument");var o=this._checkKey(e,"key");if(o)return t.nextTick(r,o);e=this._serializeKey(e),"object"!=typeof n&&(n={}),this._del(e,n,r)},c.prototype._del=function(e,n,r){t.nextTick(r)},c.prototype.batch=function(e,n,r){if(!arguments.length)return this._chainedBatch();if("function"==typeof n&&(r=n),"function"==typeof e&&(r=e),"function"!=typeof r)throw new Error("batch(array) requires a callback argument");if(!Array.isArray(e))return t.nextTick(r,new Error("batch(array) requires an array argument"));n&&"object"==typeof n||(n={});for(var s=new Array(e.length),i=0;i<e.length;i++){if("object"!=typeof e[i]||null===e[i])return t.nextTick(r,new Error("batch(array) element must be an object and not `null`"));var a=o(e[i]);if("put"!==a.type&&"del"!==a.type)return t.nextTick(r,new Error("`type` must be 'put' or 'del'"));var u=this._checkKey(a.key,"key");if(u)return t.nextTick(r,u);a.key=this._serializeKey(a.key),"put"===a.type&&(a.value=this._serializeValue(a.value)),s[i]=a}this._batch(s,n,r)},c.prototype._batch=function(e,n,r){t.nextTick(r)},c.prototype._setupIteratorOptions=function(e){return(e=l(e)).reverse=!!e.reverse,e.keys=!1!==e.keys,e.values=!1!==e.values,e.limit="limit"in e?e.limit:-1,e.keyAsBuffer=!1!==e.keyAsBuffer,e.valueAsBuffer=!1!==e.valueAsBuffer,e},c.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),e=this._setupIteratorOptions(e),this._iterator(e)},c.prototype._iterator=function(e){return new s(this)},c.prototype._chainedBatch=function(){return new i(this)},c.prototype._serializeKey=function(e){return r.isBuffer(e)?e:String(e)},c.prototype._serializeValue=function(e){return null==e?"":r.isBuffer(e)||t.browser?e:String(e)},c.prototype._checkKey=function(e,t){return null===e||void 0===e?new Error(t+" cannot be `null` or `undefined`"):r.isBuffer(e)&&0===e.length?new Error(t+" cannot be an empty Buffer"):""===String(e)?new Error(t+" cannot be an empty String"):void 0},e.exports=c}).call(this,n("./node_modules/process/browser.js"),n("./node_modules/buffer/index.js").Buffer)},"./node_modules/deferred-leveldown/node_modules/abstract-leveldown/index.js":function(e,t,n){t.AbstractLevelDOWN=n("./node_modules/deferred-leveldown/node_modules/abstract-leveldown/abstract-leveldown.js"),t.AbstractIterator=n("./node_modules/deferred-leveldown/node_modules/abstract-leveldown/abstract-iterator.js"),t.AbstractChainedBatch=n("./node_modules/deferred-leveldown/node_modules/abstract-leveldown/abstract-chained-batch.js")},"./node_modules/encoding-down/index.js":function(e,t,n){"use strict";var r=n("./node_modules/abstract-leveldown/index.js").AbstractLevelDOWN,o=n("./node_modules/abstract-leveldown/index.js").AbstractChainedBatch,s=n("./node_modules/abstract-leveldown/index.js").AbstractIterator,i=n("./node_modules/inherits/inherits_browser.js"),a=n("./node_modules/xtend/immutable.js"),u=n("./node_modules/level-codec/index.js"),c=n("./node_modules/level-errors/errors.js").EncodingError;function l(e,t){if(!(this instanceof l))return new l(e,t);r.call(this,""),void 0===(t=t||{}).keyEncoding&&(t.keyEncoding="utf8"),void 0===t.valueEncoding&&(t.valueEncoding="utf8"),this.db=e,this.codec=new u(t)}function f(e,t){s.call(this,e),this.codec=e.codec,this.keys=t.keys,this.values=t.values,this.opts=this.codec.encodeLtgt(t),this.it=e.db.iterator(this.opts)}function d(e,t){o.call(this,e),this.codec=e.codec,this.batch=e.db.batch()}e.exports=l.default=l,i(l,r),l.prototype._serializeKey=l.prototype._serializeValue=function(e){return e},l.prototype._open=function(e,t){this.db.open(e,t)},l.prototype._close=function(e){this.db.close(e)},l.prototype._put=function(e,t,n,r){e=this.codec.encodeKey(e,n),t=this.codec.encodeValue(t,n),this.db.put(e,t,n,r)},l.prototype._get=function(e,t,n){var r=this;e=this.codec.encodeKey(e,t),t.asBuffer=this.codec.valueAsBuffer(t),this.db.get(e,t,function(e,o){if(e)return n(e);try{o=r.codec.decodeValue(o,t)}catch(e){return n(new c(e))}n(null,o)})},l.prototype._del=function(e,t,n){e=this.codec.encodeKey(e,t),this.db.del(e,t,n)},l.prototype._chainedBatch=function(){return new d(this)},l.prototype._batch=function(e,t,n){e=this.codec.encodeBatch(e,t),this.db.batch(e,t,n)},l.prototype._iterator=function(e){return e.keyAsBuffer=this.codec.keyAsBuffer(e),e.valueAsBuffer=this.codec.valueAsBuffer(e),new f(this,e)},l.prototype._setupIteratorOptions=function(e){return(e=a(e)).reverse=!!e.reverse,e.keys=!1!==e.keys,e.values=!1!==e.values,e.limit="limit"in e?e.limit:-1,e.keyAsBuffer=!1!==e.keyAsBuffer,e.valueAsBuffer=!1!==e.valueAsBuffer,e},l.prototype.approximateSize=function(e,t,n,r){return this.db.approximateSize(e,t,n,r)},i(f,s),f.prototype._next=function(e){var t=this;this.it.next(function(n,r,o){if(n)return e(n);try{r=t.keys&&void 0!==r?t.codec.decodeKey(r,t.opts):void 0,o=t.values&&void 0!==o?t.codec.decodeValue(o,t.opts):void 0}catch(n){return e(new c(n))}e(null,r,o)})},f.prototype._end=function(e){this.it.end(e)},i(d,o),d.prototype._put=function(e,t){e=this.codec.encodeKey(e),t=this.codec.encodeValue(t),this.batch.put(e,t)},d.prototype._del=function(e){e=this.codec.encodeKey(e),this.batch.del(e)},d.prototype._clear=function(){this.batch.clear()},d.prototype._write=function(e,t){this.batch.write(e,t)}},"./node_modules/err-code/index.js":function(e,t,n){"use strict";function r(e,t,n){var r=e instanceof Error?e:new Error(e),o;if("object"==typeof t?n=t:null!=t&&(r.code=t),n)for(o in n)r[o]=n[o];return r}e.exports=r},"./node_modules/errno/custom.js":function(e,t,n){var r=n("./node_modules/prr/prr.js");function o(e,t,n){t&&"string"!=typeof t&&(t=t.message||t.name),r(this,{type:e,name:e,cause:"string"!=typeof t?t:n,message:t},"ewr")}function s(e,t){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),o.call(this,"CustomError",e,t)}function i(e,t,n){var r=function(n,s){o.call(this,t,n,s),"FilesystemError"==t&&(this.code=this.cause.code,this.path=this.cause.path,this.errno=this.cause.errno,this.message=(e.errno[this.cause.errno]?e.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")),Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,r)};return r.prototype=n?new n:new s,r}s.prototype=new Error,e.exports=function(e){var t=function(t,n){return i(e,t,n)};return{CustomError:s,FilesystemError:t("FilesystemError"),createError:t}}},"./node_modules/errno/errno.js":function(e,t,n){var r=e.exports.all=[{errno:-2,code:"ENOENT",description:"no such file or directory"},{errno:-1,code:"UNKNOWN",description:"unknown error"},{errno:0,code:"OK",description:"success"},{errno:1,code:"EOF",description:"end of file"},{errno:2,code:"EADDRINFO",description:"getaddrinfo error"},{errno:3,code:"EACCES",description:"permission denied"},{errno:4,code:"EAGAIN",description:"resource temporarily unavailable"},{errno:5,code:"EADDRINUSE",description:"address already in use"},{errno:6,code:"EADDRNOTAVAIL",description:"address not available"},{errno:7,code:"EAFNOSUPPORT",description:"address family not supported"},{errno:8,code:"EALREADY",description:"connection already in progress"},{errno:9,code:"EBADF",description:"bad file descriptor"},{errno:10,code:"EBUSY",description:"resource busy or locked"},{errno:11,code:"ECONNABORTED",description:"software caused connection abort"},{errno:12,code:"ECONNREFUSED",description:"connection refused"},{errno:13,code:"ECONNRESET",description:"connection reset by peer"},{errno:14,code:"EDESTADDRREQ",description:"destination address required"},{errno:15,code:"EFAULT",description:"bad address in system call argument"},{errno:16,code:"EHOSTUNREACH",description:"host is unreachable"},{errno:17,code:"EINTR",description:"interrupted system call"},{errno:18,code:"EINVAL",description:"invalid argument"},{errno:19,code:"EISCONN",description:"socket is already connected"},{errno:20,code:"EMFILE",description:"too many open files"},{errno:21,code:"EMSGSIZE",description:"message too long"},{errno:22,code:"ENETDOWN",description:"network is down"},{errno:23,code:"ENETUNREACH",description:"network is unreachable"},{errno:24,code:"ENFILE",description:"file table overflow"},{errno:25,code:"ENOBUFS",description:"no buffer space available"},{errno:26,code:"ENOMEM",description:"not enough memory"},{errno:27,code:"ENOTDIR",description:"not a directory"},{errno:28,code:"EISDIR",description:"illegal operation on a directory"},{errno:29,code:"ENONET",description:"machine is not on the network"},{errno:31,code:"ENOTCONN",description:"socket is not connected"},{errno:32,code:"ENOTSOCK",description:"socket operation on non-socket"},{errno:33,code:"ENOTSUP",description:"operation not supported on socket"},{errno:34,code:"ENOENT",description:"no such file or directory"},{errno:35,code:"ENOSYS",description:"function not implemented"},{errno:36,code:"EPIPE",description:"broken pipe"},{errno:37,code:"EPROTO",description:"protocol error"},{errno:38,code:"EPROTONOSUPPORT",description:"protocol not supported"},{errno:39,code:"EPROTOTYPE",description:"protocol wrong type for socket"},{errno:40,code:"ETIMEDOUT",description:"connection timed out"},{errno:41,code:"ECHARSET",description:"invalid Unicode character"},{errno:42,code:"EAIFAMNOSUPPORT",description:"address family for hostname not supported"},{errno:44,code:"EAISERVICE",description:"servname not supported for ai_socktype"},{errno:45,code:"EAISOCKTYPE",description:"ai_socktype not supported"},{errno:46,code:"ESHUTDOWN",description:"cannot send after transport endpoint shutdown"},{errno:47,code:"EEXIST",description:"file already exists"},{errno:48,code:"ESRCH",description:"no such process"},{errno:49,code:"ENAMETOOLONG",description:"name too long"},{errno:50,code:"EPERM",description:"operation not permitted"},{errno:51,code:"ELOOP",description:"too many symbolic links encountered"},{errno:52,code:"EXDEV",description:"cross-device link not permitted"},{errno:53,code:"ENOTEMPTY",description:"directory not empty"},{errno:54,code:"ENOSPC",description:"no space left on device"},{errno:55,code:"EIO",description:"i/o error"},{errno:56,code:"EROFS",description:"read-only file system"},{errno:57,code:"ENODEV",description:"no such device"},{errno:58,code:"ESPIPE",description:"invalid seek"},{errno:59,code:"ECANCELED",description:"operation canceled"}];e.exports.errno={},e.exports.code={},r.forEach(function(t){e.exports.errno[t.errno]=t,e.exports.code[t.code]=t}),e.exports.custom=n("./node_modules/errno/custom.js")(e.exports),e.exports.create=e.exports.custom.createError},"./node_modules/events/events.js":function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function o(e){return"number"==typeof e}function s(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,o,a,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(i(n=this._events[e]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(s(n))for(a=Array.prototype.slice.call(arguments,1),o=(c=n.slice()).length,u=0;u<o;u++)c[u].apply(this,a);return!0},n.prototype.addListener=function(e,t){var o;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?s(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,s(this._events[e])&&!this._events[e].warned&&(o=i(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function o(){this.removeListener(e,o),n||(n=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},n.prototype.removeListener=function(e,t){var n,o,i,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(s(n)){for(a=i;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){o=a;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},"./node_modules/idb-readable-stream/index.js":function(e,t,n){"use strict";var r=n("./node_modules/stream-browserify/index.js"),o=n("./node_modules/xtend/immutable.js");function s(e,t,n){if("object"!=typeof e)throw new TypeError("db must be an object");if("string"!=typeof t)throw new TypeError("storeName must be a string");if(null==n&&(n={}),"object"!=typeof n)throw new TypeError("opts must be an object");var s=new r.Transform(o(n,{objectMode:!0,transform:function(e,t,n){n(null,e)}}));n=o({snapshot:!1},n);var i=null;function a(){var r,o,u,c,l=n.direction||"next",f=n.range||{},d;r=f.lower,o=f.upper,u=!!f.lowerOpen,c=!!f.upperOpen,i&&("next"===l?(u=!0,r=i):(c=!0,o=i)),r&&o?d=IDBKeyRange.bound(r,o,u,c):r?d=IDBKeyRange.lowerBound(r,u):o&&(d=IDBKeyRange.upperBound(o,c));var h=e.transaction(t,"readonly"),p=h.objectStore(t);s._cursorsOpened++;var m=p.openCursor(d,n.direction);function b(e){try{e.continue()}catch(e){"TransactionInactiveError"!==e.name||n.snapshot?s.emit("error",e):a()}}m.onsuccess=function(){var e=m.result;if(e){i=e.key;var t=s.write({key:e.key,value:e.value});n.snapshot||t?b(e):s.once("drain",function(){b(e)})}else s.end()},h.onabort=function(){s.emit("error",h.error)},h.onerror=function(){s.emit("error",h.error)}}return s._cursorsOpened=0,a(),s}e.exports=s},"./node_modules/ieee754/index.js":function(e,t){t.read=function(e,t,n,r,o){var s,i,a=8*o-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=n?o-1:0,d=n?-1:1,h=e[t+f];for(f+=d,s=h&(1<<-l)-1,h>>=-l,l+=a;l>0;s=256*s+e[t+f],f+=d,l-=8);for(i=s&(1<<-l)-1,s>>=-l,l+=r;l>0;i=256*i+e[t+f],f+=d,l-=8);if(0===s)s=1-c;else{if(s===u)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,r),s-=c}return(h?-1:1)*i*Math.pow(2,s-r)},t.write=function(e,t,n,r,o,s){var i,a,u,c=8*s-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:s-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),(t+=i+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(i++,u/=2),i+f>=l?(a=0,i=l):i+f>=1?(a=(t*u-1)*Math.pow(2,o),i+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),i=0));o>=8;e[n+h]=255&a,h+=p,a/=256,o-=8);for(i=i<<o|a,c+=o;c>0;e[n+h]=255&i,h+=p,i/=256,c-=8);e[n+h-p]|=128*m}},"./node_modules/inherits/inherits_browser.js":function(e,t){"function"==typeof Object.create?e.exports=function e(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function e(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}},"./node_modules/interface-datastore/src/errors.js":function(e,t,n){"use strict";const r=n("./node_modules/err-code/index.js");e.exports.dbOpenFailedError=(e=>(e=e||new Error("Cannot open database"),r(e,"ERR_DB_OPEN_FAILED"))),e.exports.dbDeleteFailedError=(e=>(e=e||new Error("Delete failed"),r(e,"ERR_DB_DELETE_FAILED"))),e.exports.dbWriteFailedError=(e=>(e=e||new Error("Write failed"),r(e,"ERR_DB_WRITE_FAILED"))),e.exports.notFoundError=(e=>(e=e||new Error("Not Found"),r(e,"ERR_NOT_FOUND")))},"./node_modules/interface-datastore/src/index.js":function(e,t,n){"use strict";const r=n("./node_modules/interface-datastore/src/key.js"),o=n("./node_modules/interface-datastore/src/memory.js"),s=n("./node_modules/interface-datastore/src/utils.js"),i=n("./node_modules/interface-datastore/src/errors.js");t.Key=r,t.MemoryDatastore=o,t.utils=s,t.Errors=i},"./node_modules/interface-datastore/src/key.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/uuid/v4.js"),o=n("./node_modules/class-is/index.js"),s="/",i=t.from(s),a=i[0];class u{constructor(e,n){if("string"==typeof e?this._buf=t.from(e):t.isBuffer(e)&&(this._buf=e),null==n&&(n=!0),n&&this.clean(),0===this._buf.length||this._buf[0]!==a)throw new Error(`Invalid key: ${this.toString()}`)}toString(e){return this._buf.toString(e||"utf8")}toBuffer(){return this._buf}get[Symbol.toStringTag](){return`[Key ${this.toString()}]`}static withNamespaces(e){return new f(e.join(s))}static random(){return new f(r().replace(/-/g,""))}clean(){for(this._buf&&0!==this._buf.length||(this._buf=t.from(s)),this._buf[0]!==a&&(this._buf=t.concat([i,this._buf]));this._buf.length>1&&this._buf[this._buf.length-1]===a;)this._buf=this._buf.slice(0,-1)}less(e){const t=this.list(),n=e.list();for(let e=0;e<t.length;e++){if(n.length<e+1)return!1;const r=t[e],o=n[e];if(r<o)return!0;if(r>o)return!1}return t.length<n.length}reverse(){return u.withNamespaces(this.list().slice().reverse())}namespaces(){return this.list()}baseNamespace(){const e=this.namespaces();return e[e.length-1]}list(){return this.toString().split(s).slice(1)}type(){return c(this.baseNamespace())}name(){return l(this.baseNamespace())}instance(e){return new f(this.toString()+":"+e)}path(){let e=this.parent().toString();return e.endsWith(s)||(e+=s),e+=this.type(),new f(e)}parent(){const e=this.list();return 1===e.length?new f(s):new f(e.slice(0,-1).join(s))}child(e){return this.toString()===s?e:e.toString()===s?this:new f(this.toString()+e.toString(),!1)}isAncestorOf(e){return e.toString()!==this.toString()&&e.toString().startsWith(this.toString())}isDecendantOf(e){return e.toString()!==this.toString()&&this.toString().startsWith(e.toString())}isTopLevel(){return 1===this.list().length}}function c(e){const t=e.split(":");return t.length<2?"":t.slice(0,-1).join(":")}function l(e){const t=e.split(":");return t[t.length-1]}const f=o(u,{className:"Key",symbolName:"@ipfs/interface-datastore/key"});e.exports=f}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/interface-datastore/src/memory.js":function(e,t,n){"use strict";const r=n("./node_modules/pull-stream/index.js"),o=n("./node_modules/async/setImmediate.js"),s=n("./node_modules/interface-datastore/src/utils.js").asyncFilter,i=n("./node_modules/interface-datastore/src/utils.js").asyncSort,a=n("./node_modules/interface-datastore/src/key.js"),u=n("./node_modules/interface-datastore/src/errors.js");class c{constructor(){this.data={}}open(e){o(e)}put(e,t,n){this.data[e.toString()]=t,o(n)}get(e,t){this.has(e,(n,r)=>n?t(n):r?void t(null,this.data[e.toString()]):t(u.notFoundError()))}has(e,t){o(()=>{t(null,void 0!==this.data[e.toString()])})}delete(e,t){delete this.data[e.toString()],o(()=>{t()})}batch(){let e=[],t=[];return{put(t,n){e.push([t,n])},delete(e){t.push(e)},commit:n=>{e.forEach(e=>{this.data[e[0].toString()]=e[1]}),e=[],t.forEach(e=>{delete this.data[e.toString()]}),t=[],o(n)}}}query(e){let t=[r.keys(this.data),r.map(e=>({key:new a(e),value:this.data[e]}))],n=[];if(null!=e.prefix){const t=e.prefix;n.push((e,n)=>n(null,e.key.toString().startsWith(t)))}if(null!=e.filters&&(n=n.concat(e.filters)),t=t.concat(n.map(e=>s(e))),null!=e.orders&&(t=t.concat(e.orders.map(e=>i(e)))),null!=e.offset){let n=0;t.push(r.filter(()=>n++>=e.offset))}return null!=e.limit&&t.push(r.take(e.limit)),!0===e.keysOnly&&t.push(r.map(e=>({key:e.key}))),r.apply(null,t)}close(e){o(e)}}e.exports=c},"./node_modules/interface-datastore/src/utils.js":function(e,t,n){"use strict";const r=n("./node_modules/pull-stream/index.js"),o=n("./node_modules/pull-defer/source.js"),s=n("./node_modules/path-browserify/index.js"),i=n("./node_modules/os-browserify/browser.js"),a=n("./node_modules/uuid/v4.js");t.asyncFilter=function(e){let t=!1,n,r;return function(o){return function s(i,a){if(r)return a(r);i?(r=i,o(i,t?()=>{t?n=a:a(i)}:a)):o(null,(o,i)=>{o?a(o):r?a(r):(t=!0,e(i,(e,o)=>{t=!1,r?(a(r),n(r)):e?s(e,a):o?a(null,i):s(null,a)}))})}}},t.asyncSort=function(e){const t=o(),n=r.collect((n,o)=>{if(n)return t.abort(n);e(o,(e,n)=>{if(e)return t.abort(e);t.resolve(r.values(o))})});return function(e){return n(e),t}},t.replaceStartWith=function(e,t){const n=new RegExp("^"+t);return e.replace(n,"")},t.tmpdir=(()=>s.join(i.tmpdir(),a()))},"./node_modules/ipfs-block-service/src/index.js":function(e,t,n){"use strict";const r=n("./node_modules/async/map.js");class o{constructor(e){this._repo=e,this._bitswap=null}setExchange(e){this._bitswap=e}unsetExchange(){this._bitswap=null}hasExchange(){return null!=this._bitswap}put(e,t){this.hasExchange()?this._bitswap.put(e,t):this._repo.blocks.put(e,t)}putMany(e,t){this.hasExchange()?this._bitswap.putMany(e,t):this._repo.blocks.putMany(e,t)}get(e,t){this.hasExchange()?this._bitswap.get(e,t):this._repo.blocks.get(e,t)}getMany(e,t){Array.isArray(e)?this.hasExchange()?this._bitswap.getMany(e,t):r(e,(e,t)=>this._repo.blocks.get(e,t),t):t(new Error("first arg must be an array of cids"))}delete(e,t){this._repo.blocks.delete(e,t)}}e.exports=o},"./node_modules/ipfs-block/src/index.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/cids/src/index.js"),o=n("./node_modules/class-is/index.js");class s{constructor(e,n){if(!e||!t.isBuffer(e))throw new Error("first argument  must be a buffer");if(!n||!r.isCID(n))throw new Error("second argument must be a CID");this._data=e,this._cid=n}get data(){return this._data}set data(e){throw new Error("Tried to change an immutable block")}get cid(){return this._cid}set cid(e){throw new Error("Tried to change an immutable block")}}e.exports=o(s,{className:"Block",symbolName:"@ipfs/js-ipfs-block/block"})}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/ipfs-repo/src/api-addr.js":function(e,t,n){"use strict";const r=n("./node_modules/interface-datastore/src/index.js").Key,o=n("./node_modules/safe-buffer/index.js").Buffer,s=new r("api");e.exports=(e=>({get(t){e.get(s,(e,n)=>t(e,n&&n.toString()))},set(t,n){e.put(s,o.from(t.toString()),n)},delete(t){e.delete(s,t)}}))},"./node_modules/ipfs-repo/src/backends.js":function(e,t,n){"use strict";t.create=function e(t,n,r){const o=r.storageBackends[t],s=Object.assign({},r.storageBackendOptions[t]||{});return new o(n,s)}},"./node_modules/ipfs-repo/src/blockstore.js":function(e,t,n){"use strict";const r=n("./node_modules/datastore-core/src/index.js"),o=r.ShardingDatastore,s=n("./node_modules/interface-datastore/src/index.js").Key,i=n("./node_modules/base32.js/base32.js"),a=n("./node_modules/ipfs-block/src/index.js"),u=n("./node_modules/async/setImmediate.js"),c=n("./node_modules/async/reject.js"),l=n("./node_modules/cids/src/index.js"),f=n("./node_modules/pull-stream/index.js"),d=e=>{const t=new i.Encoder;return new s("/"+t.write(e).finalize(),!1)},h=e=>d(e.buffer);function p(e,t,n){if(t.sharding){const t=new r.shard.NextToLast(2);o.createOrOpen(e,t,n)}else u(()=>n(null,e))}function m(e){return{query(t,n){f(e.query(t),f.collect(n))},get(t,n){if(!l.isCID(t))return u(()=>{n(new Error("Not a valid cid"))});const r=h(t);e.get(r,(o,s)=>{if(o){if("ERR_NOT_FOUND"===o.code){const s=b(t);if(!s)return n(o);const i=h(s);return e.get(i,(o,s)=>{if(o)return n(o);e.put(r,s,e=>{if(e)return n(e);n(null,new a(s,t))})})}return n(o)}n(null,new a(s,t))})},put(t,n){if(!a.isBlock(t))return u(()=>{n(new Error("invalid block"))});const r=h(t.cid);e.has(r,(o,s)=>o?n(o):s?n():void e.put(r,t.data,n))},putMany(t,n){const r=t.map(e=>({key:h(e.cid),block:e})),o=e.batch();c(r,(t,n)=>e.has(t.key,n),(e,t)=>{if(e)return n(e);t.forEach(e=>{o.put(e.key,e.block.data)}),o.commit(n)})},has(t,n){if(!l.isCID(t))return u(()=>{n(new Error("Not a valid cid"))});e.has(h(t),(r,o)=>{if(r)return n(r);if(o)return n(null,!0);const s=b(t);if(!s)return n(null,!1);e.has(h(s),n)})},delete(t,n){if(!l.isCID(t))return u(()=>{n(new Error("Not a valid cid"))});e.delete(h(t),n)},close(t){e.close(t)}}}function b(e){try{return 0===e.version?e.toV1():e.toV0()}catch(e){return null}}e.exports=((e,t,n)=>{p(e,t,(e,t)=>{if(e)return n(e);n(null,m(t))})})},"./node_modules/ipfs-repo/src/config.js":function(e,t,n){"use strict";const r=n("./node_modules/interface-datastore/src/index.js").Key,o=n("./node_modules/async/queue.js"),s=n("./node_modules/async/waterfall.js"),i=n("./node_modules/lodash.get/index.js"),a=n("./node_modules/lodash.set/index.js"),u=n("./node_modules/lodash.has/index.js"),c=n("./node_modules/safe-buffer/index.js").Buffer,l=new r("config");e.exports=(e=>{const t=o(r,1),n={get(t,n){"function"==typeof t&&(n=t,t=void 0),t||(t=void 0),e.get(l,(e,r)=>{if(e)return n(e);let o;try{o=JSON.parse(r.toString())}catch(e){return n(e)}if(void 0!==t&&!u(o,t))return n(new Error("Key "+t+" does not exist in config"));const s=void 0!==t?i(o,t):o;n(null,s)})},set(e,n,r){if("function"==typeof n)r=n,n=e,e=void 0;else if(!e||"string"!=typeof e)return r(new Error("Invalid key type"));if(void 0===n||c.isBuffer(n))return r(new Error("Invalid value type"));t.push({key:e,value:n},r)},exists(t){e.has(l,t)}};return n;function r(e,t){const r=e.key,o=e.value;r?s([e=>n.get(e),(e,t)=>t(null,a(e,r,o)),f],t):f(o,t)}function f(t,n){const r=c.from(JSON.stringify(t,null,2));e.put(l,r,n)}})},"./node_modules/ipfs-repo/src/constants.js":function(e,t,n){"use strict";e.exports={repoVersion:7}},"./node_modules/ipfs-repo/src/default-datastore.js":function(e,t,n){"use strict";e.exports={Spec:{type:"mount",mounts:[{mountpoint:"/blocks",type:"measure",prefix:"flatfs.datastore",child:{type:"flatfs",path:"blocks",sync:!0,shardFunc:"/repo/flatfs/shard/v1/next-to-last/2"}},{mountpoint:"/",type:"measure",prefix:"leveldb.datastore",child:{type:"levelds",path:"datastore",compression:"none"}}]}}},"./node_modules/ipfs-repo/src/default-options-browser.js":function(e,t,n){"use strict";e.exports={lock:"memory",storageBackends:{root:n("./node_modules/datastore-level/src/index.js"),blocks:n("./node_modules/datastore-level/src/index.js"),keys:n("./node_modules/datastore-level/src/index.js"),datastore:n("./node_modules/datastore-level/src/index.js")},storageBackendOptions:{root:{extension:""},blocks:{sharding:!1},keys:{sharding:!1}}}},"./node_modules/ipfs-repo/src/errors/index.js":function(e,t,n){"use strict";t.ERR_REPO_NOT_INITIALIZED="ERR_REPO_NOT_INITIALIZED"},"./node_modules/ipfs-repo/src/index.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/async/waterfall.js"),o=n("./node_modules/async/series.js"),s=n("./node_modules/async/parallel.js"),i=n("./node_modules/async/each.js"),a=n("./node_modules/lodash.get/index.js"),u=n("./node_modules/assert/assert.js"),c=n("./node_modules/path-browserify/index.js"),l=n("./node_modules/debug/src/browser.js"),f=n("./node_modules/big.js/big.js"),d=n("./node_modules/pull-stream/index.js"),h=n("./node_modules/ipfs-repo/src/backends.js"),p=n("./node_modules/ipfs-repo/src/version.js"),m=n("./node_modules/ipfs-repo/src/config.js"),b=n("./node_modules/ipfs-repo/src/spec.js"),y=n("./node_modules/ipfs-repo/src/api-addr.js"),g=n("./node_modules/ipfs-repo/src/blockstore.js"),_=n("./node_modules/ipfs-repo/src/default-options-browser.js"),v=n("./node_modules/ipfs-repo/src/default-datastore.js"),k=n("./node_modules/ipfs-repo/src/errors/index.js"),w=l("repo"),x=Number.MAX_SAFE_INTEGER,j={memory:n("./node_modules/ipfs-repo/src/lock-memory.js"),fs:n("./node_modules/ipfs-repo/src/lock-memory.js")},S=n("./node_modules/ipfs-repo/src/constants.js").repoVersion;class E{constructor(e,t){u.strictEqual(typeof e,"string","missing repoPath"),this.options=N(t),this.closed=!0,this.path=e,this._locker=this._getLocker(),this.root=h.create("root",this.path,this.options),this.version=p(this.root),this.config=m(this.root),this.spec=b(this.root),this.apiAddr=y(this.root)}init(e,t){w("initializing at: %s",this.path),o([e=>this.root.open(T(e)),t=>this.config.set(B(e),t),t=>this.spec.set(C(e),t),e=>this.version.set(S,e)],t)}open(e){this.closed?(w("opening at: %s",this.path),r([e=>this.root.open(T(e)),e=>this._isInitialized(e),e=>this._openLock(this.path,e),(e,t)=>{w("aquired repo.lock"),this.lockfile=e,t()},e=>{w("creating datastore"),this.datastore=h.create("datastore",c.join(this.path,"datastore"),this.options),w("creating blocks");const t=h.create("blocks",c.join(this.path,"blocks"),this.options);g(t,this.options.storageBackendOptions.blocks,e)},(e,t)=>{this.blocks=e,t()},e=>{w("creating keystore"),this.keys=h.create("keys",c.join(this.path,"keys"),this.options),e()},e=>{this.closed=!1,w("all opened"),e()}],t=>{t&&this.lockfile?this._closeLock(n=>{n?w("error removing lock",n):this.lockfile=null,e(t)}):e(t)})):t(()=>e(new Error("repo is already open")))}_getLocker(){return"string"==typeof this.options.lock?(u(j[this.options.lock],"Unknown lock type: "+this.options.lock),j[this.options.lock]):(u(this.options.lock,"No lock provided"),this.options.lock)}_openLock(e,t){this._locker.lock(e,(e,n)=>{if(e)return t(e,null);u.strictEqual(typeof n.close,"function","Locks must have a close method"),t(null,n)})}_closeLock(e){if(this.lockfile)return this.lockfile.close(e);e()}_isInitialized(e){w("init check"),s({config:e=>this.config.exists(e),spec:e=>this.spec.exists(e),version:e=>this.version.check(S,e)},(t,n)=>{if(w("init",t,n),t&&!n.config)return e(Object.assign(new Error("repo is not initialized yet"),{code:k.ERR_REPO_NOT_INITIALIZED,path:this.path}));e(t)})}close(e){if(this.closed)return e(new Error("repo is already closed"));w("closing at: %s",this.path),o([e=>this.apiAddr.delete(I(e)),e=>{i([this.blocks,this.keys,this.datastore],(e,t)=>e.close(t),e)},e=>{w("unlocking"),this.closed=!0,this._closeLock(e)},e=>{this.lockfile=null,e()}],t=>e(t))}exists(e){this.version.exists(e)}stat(e,t){"function"==typeof e&&(t=e,e={}),e=Object.assign({},{human:!1},e),s({storageMax:e=>this.config.get("Datastore.StorageMax",(t,n)=>{e(null,new f(t?x:n))}),version:e=>this.version.get(e),blocks:e=>this.blocks.query({},(t,n)=>{const r=new f((n=n||[]).length);let o=new f(0);n.forEach(e=>{o=o.plus(e.value.byteLength).plus(e.key._buf.byteLength)}),e(t,{count:r,size:o})}),datastore:e=>A(this.datastore,e),keys:e=>A(this.keys,e)},(n,r)=>{if(n)return t(n);let o=r.blocks.size.plus(r.datastore).plus(r.keys);e.human&&(o=o.div(1048576)),t(null,{repoPath:this.path,storageMax:r.storageMax,version:r.version,numObjects:r.blocks.count,repoSize:o})})}}function A(e,t){d(e.query({}),d.reduce((e,t)=>e.plus(t.value.byteLength).plus(t.key._buf.byteLength),new f(0),t))}function O(e,t){return n=>{t(n&&!e(n)?n:null)}}function T(e){return O(e=>"Already open"===e.message,e)}function I(e){return O(e=>e&&(e.code===k.ERR_REPO_NOT_INITIALIZED||e.message.startsWith("ENOENT")),e)}function N(e){const t=Object.assign({},_,e);return t.storageBackends=Object.assign({},_.storageBackends,t.storageBackends),t.storageBackendOptions=Object.assign({},_.storageBackendOptions,t.storageBackendOptions),t}function B(e){return e.datastore=Object.assign({},v,a(e,"datastore",{})),e}function C(e){const t=Object.assign({},v.Spec,a(e,"datastore.Spec",{}));return{type:t.type,mounts:t.mounts.map(e=>({mountpoint:e.mountpoint,type:e.child.type,path:e.child.path,shardFunc:e.child.shardFunc}))}}e.exports=E,e.exports.repoVersion=S,e.exports.errors=k}).call(this,n("./node_modules/timers-browserify/main.js").setImmediate)},"./node_modules/ipfs-repo/src/lock-memory.js":function(e,t,n){"use strict";const r=n("./node_modules/debug/src/browser.js"),o=n("./node_modules/async/setImmediate.js"),s=r("repo:lock"),i="repo.lock",a={};t.lock=((e,t)=>{const n=e+"/"+i;s("locking %s",n),a[n]=!0;const r={close(e){a[n]&&delete a[n],o(e)}};o(()=>{t(null,r)})}),t.locked=((e,t)=>{const n=e+"/"+i;s("checking lock: %s");const r=a[n];o(()=>{t(null,r)})})},"./node_modules/ipfs-repo/src/spec.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/interface-datastore/src/index.js").Key,o=n("./node_modules/sort-keys/index.js"),s=new r("datastore_spec");e.exports=(e=>({exists(t){e.has(s,t)},get(t){e.get(s,(e,n)=>{if(e)return t(e);t(null,JSON.parse(n.toString()))})},set(n,r){e.put(s,t.from(JSON.stringify(o(n,{deep:!0}))),r)}}))}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/ipfs-repo/src/version.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/interface-datastore/src/index.js").Key,o=n("./node_modules/debug/src/browser.js"),s=o("repo:version"),i=new r("version");e.exports=(e=>({exists(t){e.has(i,t)},get(t){e.get(i,(e,n)=>{if(e)return t(e);t(null,parseInt(n.toString().trim(),10))})},set(n,r){e.put(i,t.from(String(n)),r)},check(e,t){this.get((n,r)=>{if(n)return t(n);s("comparing version: %s and %s",r,e);const o=6===r&&7===e||6===e&&7===r;if(r!==e&&!o)return t(new Error(`ipfs repo needs migration: expected version v${e}, found version v${r}`));t()})}}))}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/ipld-dag-cbor/src/index.js":function(e,t,n){"use strict";t.util=n("./node_modules/ipld-dag-cbor/src/util.js"),t.resolver=n("./node_modules/ipld-dag-cbor/src/resolver.js")},"./node_modules/ipld-dag-cbor/src/resolver.js":function(e,t,n){"use strict";(function(r){const o=n("./node_modules/ipld-dag-cbor/src/util.js"),s=n("./node_modules/traverse/index.js"),i=n("./node_modules/cids/src/index.js");function a(e,t){return t=t||"/",0===Object.keys(e).length?[]:s(e).reduce(function(e,n){i.isCID(n)&&this.update(void 0);const r=this.path.join(t);return""!==r&&e.push({path:r,value:n}),e},[])}(t=e.exports).multicodec="dag-cbor",t.defaultHashAlg="sha2-256",t.resolve=((e,t,n)=>{"function"==typeof t&&(n=t,t=void 0),o.deserialize(e,(e,o)=>{if(e)return n(e);if(!t||"/"===t)return n(null,{value:o,remainderPath:""});const i=t.split("/"),a=s(o).get(i);if(void 0!==a)return n(null,{value:a,remainderPath:""});let u,c=i.length;for(let e=0;e<c;e++){const e=i.shift();if(Array.isArray(o)&&!r.isBuffer(o)&&(u=o[Number(e)]),!o[e])return u?(i.unshift(e),n(null,{value:u,remainderPath:i.join("/")})):n(new Error("path not available at root"));o=u=o[e]}})}),t.tree=((e,t,n)=>{"function"==typeof t&&(n=t,t=void 0),t=t||{},o.deserialize(e,(e,t)=>{if(e)return n(e);const r=a(t),o=r.map(e=>e.path);n(null,o)})}),t.isLink=((e,n,r)=>{t.resolve(e,n,(e,t)=>e?r(e):t.remainderPath.length>0?r(new Error("path out of scope")):void(i.isCID(t.value)?r(null,t.value):r(null,!1)))})}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/ipld-dag-cbor/src/util.js":function(e,t,n){"use strict";(function(r){const o=n("./node_modules/borc/src/index.js"),s=n("./node_modules/multihashing-async/src/index.js"),i=n("./node_modules/cids/src/index.js"),a=n("./node_modules/async/waterfall.js"),u=n("./node_modules/async/setImmediate.js"),c=n("./node_modules/is-circular/index.js"),l=n("./node_modules/ipld-dag-cbor/src/resolver.js"),f=42;function d(e){return"string"==typeof e?e=new i(e).buffer:i.isCID(e)&&(e=e.buffer),new o.Tagged(f,r.concat([r.from("00","hex"),e]))}const h=new o.Decoder({tags:{[f]:e=>(e=e.slice(1),new i(e))}});function p(e){let t;try{t=c(e)}catch(e){t=!1}if(t)throw new Error("The object passed has circular references");function n(e){if(!e||r.isBuffer(e)||"string"==typeof e)return e;if(Array.isArray(e))return e.map(n);if(i.isCID(e))return d(e);const t=Object.keys(e);if(1===t.length&&"/"===t[0])return d(e["/"]);if(t.length>0){let r={};return t.forEach(t=>{"object"==typeof e[t]?r[t]=n(e[t]):r[t]=e[t]}),r}return e}return n(e)}(t=e.exports).serialize=((e,t)=>{let n;try{const r=p(e);n=o.encode(r)}catch(e){return u(()=>t(e))}u(()=>t(null,n))}),t.deserialize=((e,t)=>{let n;try{n=h.decodeFirst(e)}catch(e){return u(()=>t(e))}u(()=>t(null,n))}),t.cid=((e,n,r)=>{"function"==typeof n&&(r=n,n={});const o=(n=n||{}).hashAlg||l.defaultHashAlg,u=void 0===n.version?1:n.version;a([n=>t.serialize(e,n),(e,t)=>s(e,o,t),(e,t)=>t(null,new i(u,l.multicodec,e))],r)})}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/ipld-dag-pb/src/dag-link/create.js":function(e,t,n){"use strict";const r=n("./node_modules/ipld-dag-pb/src/dag-link/index.js");function o(e,t,n,o){const s=new r(e,t,n);o(null,s)}e.exports=o},"./node_modules/ipld-dag-pb/src/dag-link/index.js":function(e,t,n){"use strict";(function(r){const o=n("./node_modules/cids/src/index.js"),s=n("./node_modules/assert/assert.js"),i=n("./node_modules/class-is/index.js");class a{constructor(e,t,n){s(n,"A link requires a cid to point to"),this._name=e||"",this._nameBuf=null,this._size=t,this._cid=new o(n)}toString(){return`DAGLink <${this._cid.toBaseEncodedString()} - name: "${this.name}", size: ${this.size}>`}toJSON(){return this._json||(this._json=Object.freeze({name:this.name,size:this.size,cid:this._cid.toBaseEncodedString()})),Object.assign({},this._json)}get name(){return this._name}get nameAsBuffer(){return null!==this._nameBuf?this._nameBuf:(this._nameBuf=r.from(this._name),this._nameBuf)}set name(e){throw new Error("Can't set property: 'name' is immutable")}get size(){return this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}get cid(){return this._cid}set cid(e){throw new Error("Can't set property: 'cid' is immutable")}}(t=e.exports=i(a,{className:"DAGLink",symbolName:"@ipld/js-ipld-dag-pb/daglink"})).create=n("./node_modules/ipld-dag-pb/src/dag-link/create.js"),t.util=n("./node_modules/ipld-dag-pb/src/dag-link/util.js")}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/ipld-dag-pb/src/dag-link/util.js":function(e,t,n){"use strict";const r=n("./node_modules/ipld-dag-pb/src/dag-link/index.js");function o(e){return new r(e.name?e.name:e.Name,e.size?e.size:e.Size,e.hash||e.Hash||e.multihash||e.cid)}(t=e.exports).createDagLinkFromB58EncodedHash=o},"./node_modules/ipld-dag-pb/src/dag-node/addLink.js":function(e,t,n){"use strict";const r=n("./node_modules/ipld-dag-pb/src/dag-node/util.js"),o=r.cloneLinks,s=r.cloneData,i=r.toDAGLink,a=n("./node_modules/ipld-dag-pb/src/dag-link/index.js"),u=n("./node_modules/ipld-dag-pb/src/dag-node/index.js"),c=n("./node_modules/ipld-dag-pb/src/dag-node/create.js");function l(e,t){if(a.isDAGLink(e))return t(null,e);if(u.isDAGNode(e))return i(e,{},t);try{t(null,new a(e.name,e.size,e.multihash||e.hash||e.cid))}catch(e){return t(e)}}function f(e,t,n){const r=o(e),i=s(e);l(t,(e,t)=>{if(e)return n(e);r.push(t),c(i,r,n)})}e.exports=f},"./node_modules/ipld-dag-pb/src/dag-node/clone.js":function(e,t,n){"use strict";const r=n("./node_modules/ipld-dag-pb/src/dag-node/util.js"),o=r.cloneLinks,s=r.cloneData,i=n("./node_modules/ipld-dag-pb/src/dag-node/create.js");function a(e,t){const n=s(e),r=o(e);i(n,r,t)}e.exports=a},"./node_modules/ipld-dag-pb/src/dag-node/create.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/stable/stable.js"),{serialize:o}=n("./node_modules/ipld-dag-pb/src/util.js"),s=n("./node_modules/ipld-dag-pb/src/dag-node/util.js"),i=s.linkSort,a=n("./node_modules/ipld-dag-pb/src/dag-node/index.js"),u=n("./node_modules/ipld-dag-pb/src/dag-link/index.js");function c(e,n,s){if("function"==typeof e?(s=e,e=void 0):"string"==typeof e&&(e=t.from(e)),"function"==typeof n&&(s=n,n=[]),!t.isBuffer(e))return s(new Error("Passed 'data' is not a buffer or a string!"));n=n.map(e=>u.isDAGLink(e)?e:u.util.createDagLinkFromB58EncodedHash(e)),n=r(n,i),o({data:e,links:n},(t,r)=>{if(t)return s(t);s(null,new a(e,n,r.length))})}e.exports=c}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/ipld-dag-pb/src/dag-node/index.js":function(e,t,n){"use strict";(function(r){const o=n("./node_modules/assert/assert.js"),s=n("./node_modules/class-is/index.js");class i{constructor(e,t,n){0!==n&&o(n,"A DAGNode requires it's serialized size"),this._data=e||r.alloc(0),this._links=t||[],this._serializedSize=n}toJSON(){return this._json||(this._json=Object.freeze({data:this.data,links:this.links.map(e=>e.toJSON()),size:this.size})),Object.assign({},this._json)}toString(){return`DAGNode <data: "${this.data.toString("base64")}", links: ${this.links.length}, size: ${this.size}>`}get data(){return this._data}set data(e){throw new Error("Can't set property: 'data' is immutable")}get links(){return this._links}set links(e){throw new Error("Can't set property: 'links' is immutable")}get size(){return void 0===this._size&&(this._size=this.links.reduce((e,t)=>e+t.size,this._serializedSize)),this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}}(t=e.exports=s(i,{className:"DAGNode",symbolName:"@ipld/js-ipld-dag-pb/dagnode"})).create=n("./node_modules/ipld-dag-pb/src/dag-node/create.js"),t.clone=n("./node_modules/ipld-dag-pb/src/dag-node/clone.js"),t.addLink=n("./node_modules/ipld-dag-pb/src/dag-node/addLink.js"),t.rmLink=n("./node_modules/ipld-dag-pb/src/dag-node/rmLink.js")}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/ipld-dag-pb/src/dag-node/rmLink.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/ipld-dag-pb/src/dag-node/util.js"),o=r.cloneLinks,s=r.cloneData,i=n("./node_modules/ipld-dag-pb/src/dag-node/create.js"),a=n("./node_modules/cids/src/index.js");function u(e,n,r){const u=s(e);let c=o(e);if("string"==typeof n)c=c.filter(e=>e.name!==n);else{if(!t.isBuffer(n)&&!a.isCID(n))return r(new Error("second arg needs to be a name or CID"),null);c=c.filter(e=>!e.cid.equals(n))}i(u,c,r)}e.exports=u}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/ipld-dag-pb/src/dag-node/util.js":function(e,t,n){"use strict";(function(r){const o=n("./node_modules/ipld-dag-pb/src/dag-link/index.js"),{cid:s}=n("./node_modules/ipld-dag-pb/src/util.js");function i(e){let t;return e.data&&e.data.length>0?(t=r.alloc(e.data.length),e.data.copy(t)):t=r.alloc(0),t}function a(e){return e.links.slice()}function u(e,t){return r.compare(e.nameAsBuffer,t.nameAsBuffer)}function c(e,t,n){"function"==typeof t&&(n=t,t={}),s(e,t,(r,s)=>{if(r)return n(r);n(null,new o(t.name||"",e.size,s))})}(t=e.exports).cloneData=i,t.cloneLinks=a,t.linkSort=u,t.toDAGLink=c}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/ipld-dag-pb/src/dag.proto.js":function(e,t,n){"use strict";e.exports="// An IPFS MerkleDAG Link\nmessage PBLink {\n\n  // multihash of the target object\n  optional bytes Hash = 1;\n\n  // utf string name. should be unique per object\n  optional string Name = 2;\n\n  // cumulative size of target object\n  optional uint64 Tsize = 3;\n}\n\n// An IPFS MerkleDAG Node\nmessage PBNode {\n\n  // refs to other objects\n  repeated PBLink Links = 2;\n\n  // opaque user data\n  optional bytes Data = 1;\n}"},"./node_modules/ipld-dag-pb/src/index.js":function(e,t,n){"use strict";t.DAGNode=n("./node_modules/ipld-dag-pb/src/dag-node/index.js"),t.DAGLink=n("./node_modules/ipld-dag-pb/src/dag-link/index.js"),t.resolver=n("./node_modules/ipld-dag-pb/src/resolver.js"),t.util=n("./node_modules/ipld-dag-pb/src/util.js")},"./node_modules/ipld-dag-pb/src/resolver.js":function(e,t,n){"use strict";const r=n("./node_modules/async/waterfall.js"),o=n("./node_modules/cids/src/index.js"),s=n("./node_modules/ipld-dag-pb/src/util.js");(t=e.exports).multicodec="dag-pb",t.defaultHashAlg="sha2-256",t.resolve=((e,t,n)=>{r([t=>s.deserialize(e,t),(e,r)=>{if(!t)return n(null,{value:e,remainderPath:""});const o=t.split("/");if("Links"===o[0]){let t="";if(!o[1])return r(null,{value:e.links.map(e=>e.toJSON()),remainderPath:""});const n={};e.links.forEach((e,t)=>{const r=e.toJSON();n[t]=n[r.name]={cid:r.cid,name:r.name,size:r.size}});let s=n[o[1]];"Hash"===o[2]?s={"/":s.cid}:"Tsize"===o[2]?s=s.size:"Name"===o[2]&&(s=s.name),r(null,{value:s,remainderPath:t=o.slice(3).join("/")})}else if("Data"===o[0])r(null,{value:e.data,remainderPath:""});else{const t={};e.links.forEach((e,n)=>{const r=e.toJSON();t[r.name]={cid:r.cid,name:r.name,size:r.size}});const n=t[o[0]];if(n)return r(null,{value:{"/":n.cid},remainderPath:o.slice(1).join("/")});r(new Error("path not available"))}}],n)}),t.tree=((e,t,n)=>{"function"==typeof t&&(n=t,t={}),t=t||{},s.deserialize(e,(e,t)=>{if(e)return n(e);const r=[];r.push("Links"),t.links.forEach((e,t)=>{r.push(`Links/${t}/Name`),r.push(`Links/${t}/Tsize`),r.push(`Links/${t}/Hash`)}),r.push("Data"),n(null,r)})}),t.isLink=((e,n,r)=>{t.resolve(e,n,(e,t)=>{if(e)return r(e);if(t.remainderPath.length>0)return r(new Error("path out of scope"));if("object"==typeof t.value&&t.value["/"]){let n;try{n=o.isCID(new o(t.value["/"]))}catch(e){n=!1}if(n)return r(null,t.value)}r(null,!1)})})},"./node_modules/ipld-dag-pb/src/util.js":function(e,t,n){"use strict";(function(r,o){const s=n("./node_modules/cids/src/index.js"),i=n("./node_modules/protons/src/index.js"),a=i(n("./node_modules/ipld-dag-pb/src/dag.proto.js")),u=n("./node_modules/ipld-dag-pb/src/resolver.js"),c=n("./node_modules/ipld-dag-pb/src/dag-link/index.js"),l=n("./node_modules/ipld-dag-pb/src/dag-node/index.js"),f=n("./node_modules/multihashing-async/src/index.js"),d=n("./node_modules/async/waterfall.js");function h(e,t,n){"function"==typeof t&&(n=t,t={});const o=(t=t||{}).hashAlg||u.defaultHashAlg;let i=t.version;void 0===i&&(i="sha2-256"===o?0:1),d([t=>{if(r.isBuffer(e))return t(null,e);p(e,t)},(e,t)=>f(e,o,t),(e,t)=>t(null,new s(i,u.multicodec,e))],n)}function p(e,t){let n,{data:r,links:o=[]}=e;!l.isDAGNode(e)&&o&&(o=o.map(e=>c.isDAGLink(e)?e:c.util.createDagLinkFromB58EncodedHash(e)));try{n=a.PBNode.encode(b({data:r,links:o}))}catch(e){return t(e)}t(null,n)}function m(e,t){const n=a.PBNode.decode(e),s=n.Links.map(e=>new c(e.Name,e.Tsize,e.Hash)),i=null==n.Data?r.alloc(0):n.Data;o(()=>t(null,new l(i,s,e.length)))}function b(e){const t={};return e.data&&e.data.length>0?t.Data=e.data:t.Data=null,e.links&&e.links.length>0?t.Links=e.links.map(e=>({Hash:e.cid.buffer,Name:e.name,Tsize:e.size})):t.Links=null,t}(t=e.exports).serialize=p,t.deserialize=m,t.cid=h}).call(this,n("./node_modules/buffer/index.js").Buffer,n("./node_modules/timers-browserify/main.js").setImmediate)},"./node_modules/ipld-raw/src/index.js":function(e,t,n){"use strict";const r=n("./node_modules/cids/src/index.js"),o=n("./node_modules/multihashing-async/src/index.js");e.exports={resolver:{multicodec:"raw",defaultHashAlg:"sha2-256",resolve:(e,t,n)=>{n(null,{value:e,remainderPath:""})},tree:(e,t,n)=>{"function"==typeof t&&(n=t),n(null,[])}},util:{deserialize:(e,t)=>{t(null,e)},serialize:(e,t)=>{t(null,e)},cid:(e,t,n)=>{"function"==typeof t&&(n=t,t={});const s=(t=t||{}).hashAlg||"sha2-256",i=void 0===t.version?1:t.version;o(e,s,(e,t)=>{if(e)return n(e);n(null,new r(i,"raw",t))})}}}},"./node_modules/is-circular/index.js":function(e,t,n){var r=n("./node_modules/is-circular/lib/node.js");function o(e){if(!(e instanceof Object))throw new TypeError('"obj" must be an object (or inherit from it)');return s(e)}function s(e,t){for(var n in t=new r(e,t),e){var o=e[n];if(o instanceof Object&&(t.contains(o)||s(o,t)))return!0}return!1}e.exports=o},"./node_modules/is-circular/lib/node.js":function(e,t){function n(e,t){this.value=e,this.next=t}e.exports=n,n.prototype.contains=function(e){for(var t=this;t;){if(t.value===e)return!0;t=t.next}return!1}},"./node_modules/is-plain-obj/index.js":function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===r.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},"./node_modules/is-promise/index.js":function(e,t){function n(e){return e&&"function"==typeof e.then}e.exports=n},"./node_modules/isarray/index.js":function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"./node_modules/js-sha3/src/sha3.js":function(e,t,n){(function(r,o){var s;!function(){"use strict";var i="input is invalid type",a="object"==typeof window,u=a?window:{};u.JS_SHA3_NO_WINDOW&&(a=!1);var c=!a&&"object"==typeof self,l;!u.JS_SHA3_NO_NODE_JS&&"object"==typeof r&&r.versions&&r.versions.node?u=o:c&&(u=self);var f=!u.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,d=n("./node_modules/webpack/buildin/amd-options.js"),h=!u.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),m=[31,7936,2031616,520093696],b=[4,1024,262144,67108864],y=[1,256,65536,16777216],g=[6,1536,393216,100663296],_=[0,8,16,24],v=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],k=[224,256,384,512],w=[128,256],x=["hex","buffer","arrayBuffer","array","digest"],j={128:168,256:136};!u.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!h||!u.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var S=function(e,t,n){return function(r){return new K(e,t,e).update(r)[n]()}},E=function(e,t,n){return function(r,o){return new K(e,t,o).update(r)[n]()}},A=function(e,t,n){return function(t,r,o,s){return F["cshake"+e].update(t,r,o,s)[n]()}},O=function(e,t,n){return function(t,r,o,s){return F["kmac"+e].update(t,r,o,s)[n]()}},T=function(e,t,n,r){for(var o=0;o<x.length;++o){var s=x[o];e[s]=t(n,r,s)}return e},I=function(e,t){var n=S(e,t,"hex");return n.create=function(){return new K(e,t,e)},n.update=function(e){return n.create().update(e)},T(n,S,e,t)},N,B,C,R=[{name:"keccak",padding:y,bits:k,createMethod:I},{name:"sha3",padding:g,bits:k,createMethod:I},{name:"shake",padding:m,bits:w,createMethod:function(e,t){var n=E(e,t,"hex");return n.create=function(n){return new K(e,t,n)},n.update=function(e,t){return n.create(t).update(e)},T(n,E,e,t)}},{name:"cshake",padding:b,bits:w,createMethod:function(e,t){var n=j[e],r=A(e,t,"hex");return r.create=function(r,o,s){return o||s?new K(e,t,r).bytepad([o,s],n):F["shake"+e].create(r)},r.update=function(e,t,n,o){return r.create(t,n,o).update(e)},T(r,A,e,t)}},{name:"kmac",padding:b,bits:w,createMethod:function(e,t){var n=j[e],r=O(e,t,"hex");return r.create=function(r,o,s){return new $(e,t,o).bytepad(["KMAC",s],n).bytepad([r],n)},r.update=function(e,t,n,o){return r.create(e,n,o).update(t)},T(r,O,e,t)}}],F={},P=[],M=0;M<R.length;++M)for(var L=R[M],U=L.bits,D=0;D<U.length;++D){var z=L.name+"_"+U[D];if(P.push(z),F[z]=L.createMethod(U[D],L.padding),"sha3"!==L.name){var q=L.name+U[D];P.push(q),F[q]=F[z]}}function K(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function $(e,t,n){K.call(this,e,t,n)}K.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw i;if(null===e)throw i;if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw i;t=!0}for(var r=this.blocks,o=this.byteCount,s=e.length,a=this.blockCount,u=0,c=this.s,l,f;u<s;){if(this.reset)for(this.reset=!1,r[0]=this.block,l=1;l<a+1;++l)r[l]=0;if(t)for(l=this.start;u<s&&l<o;++u)r[l>>2]|=e[u]<<_[3&l++];else for(l=this.start;u<s&&l<o;++u)(f=e.charCodeAt(u))<128?r[l>>2]|=f<<_[3&l++]:f<2048?(r[l>>2]|=(192|f>>6)<<_[3&l++],r[l>>2]|=(128|63&f)<<_[3&l++]):f<55296||f>=57344?(r[l>>2]|=(224|f>>12)<<_[3&l++],r[l>>2]|=(128|f>>6&63)<<_[3&l++],r[l>>2]|=(128|63&f)<<_[3&l++]):(f=65536+((1023&f)<<10|1023&e.charCodeAt(++u)),r[l>>2]|=(240|f>>18)<<_[3&l++],r[l>>2]|=(128|f>>12&63)<<_[3&l++],r[l>>2]|=(128|f>>6&63)<<_[3&l++],r[l>>2]|=(128|63&f)<<_[3&l++]);if(this.lastByteIndex=l,l>=o){for(this.start=l-o,this.block=r[a],l=0;l<a;++l)c[l]^=r[l];H(c),this.reset=!0}else this.start=l}return this}},K.prototype.encode=function(e,t){var n=255&e,r=1,o=[n];for(n=255&(e>>=8);n>0;)o.unshift(n),n=255&(e>>=8),++r;return t?o.push(r):o.unshift(r),this.update(o),o.length},K.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw i;if(null===e)throw i;if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw i;t=!0}var r=0,o=e.length;if(t)r=o;else for(var s=0;s<e.length;++s){var a=e.charCodeAt(s);a<128?r+=1:a<2048?r+=2:a<55296||a>=57344?r+=3:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++s)),r+=4)}return r+=this.encode(8*r),this.update(e),r},K.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r<e.length;++r)n+=this.encodeString(e[r]);var o=t-n%t,s=[];return s.length=o,this.update(s),this},K.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];H(r)}},K.prototype.toString=K.prototype.hex=function(){this.finalize();for(var e=this.blockCount,t=this.s,n=this.outputBlocks,r=this.extraBytes,o=0,s=0,i="",a;s<n;){for(o=0;o<e&&s<n;++o,++s)a=t[o],i+=p[a>>4&15]+p[15&a]+p[a>>12&15]+p[a>>8&15]+p[a>>20&15]+p[a>>16&15]+p[a>>28&15]+p[a>>24&15];s%e==0&&(H(t),o=0)}return r&&(a=t[o],i+=p[a>>4&15]+p[15&a],r>1&&(i+=p[a>>12&15]+p[a>>8&15]),r>2&&(i+=p[a>>20&15]+p[a>>16&15])),i},K.prototype.arrayBuffer=function(){this.finalize();var e=this.blockCount,t=this.s,n=this.outputBlocks,r=this.extraBytes,o=0,s=0,i=this.outputBits>>3,a;a=r?new ArrayBuffer(n+1<<2):new ArrayBuffer(i);for(var u=new Uint32Array(a);s<n;){for(o=0;o<e&&s<n;++o,++s)u[s]=t[o];s%e==0&&H(t)}return r&&(u[o]=t[o],a=a.slice(0,i)),a},K.prototype.buffer=K.prototype.arrayBuffer,K.prototype.digest=K.prototype.array=function(){this.finalize();for(var e=this.blockCount,t=this.s,n=this.outputBlocks,r=this.extraBytes,o=0,s=0,i=[],a,u;s<n;){for(o=0;o<e&&s<n;++o,++s)a=s<<2,u=t[o],i[a]=255&u,i[a+1]=u>>8&255,i[a+2]=u>>16&255,i[a+3]=u>>24&255;s%e==0&&H(t)}return r&&(a=s<<2,u=t[o],i[a]=255&u,r>1&&(i[a+1]=u>>8&255),r>2&&(i[a+2]=u>>16&255)),i},$.prototype=new K,$.prototype.finalize=function(){return this.encode(this.outputBits,!0),K.prototype.finalize.call(this)};var H=function(e){var t,n,r,o,s,i,a,u,c,l,f,d,h,p,m,b,y,g,_,k,w,x,j,S,E,A,O,T,I,N,B,C,R,F,P,M,L,U,D,z,q,K,$,H,W,G,Y,V,J,Z,X,Q,ee,te,ne,re,oe,se,ie,ae,ue,ce,le;for(r=0;r<48;r+=2)o=e[0]^e[10]^e[20]^e[30]^e[40],s=e[1]^e[11]^e[21]^e[31]^e[41],i=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(i<<1|a>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(a<<1|i>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=o^(u<<1|c>>>31),n=s^(c<<1|u>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=i^(l<<1|f>>>31),n=a^(f<<1|l>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=u^(d<<1|h>>>31),n=c^(h<<1|d>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=l^(o<<1|s>>>31),n=f^(s<<1|o>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,p=e[0],m=e[1],G=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,T=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,$=e[41]<<18|e[40]>>>14,F=e[2]<<1|e[3]>>>31,P=e[3]<<1|e[2]>>>31,b=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,V=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,N=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,M=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,_=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,C=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,oe=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,D=e[27]<<25|e[26]>>>7,k=e[36]<<21|e[37]>>>11,w=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,H=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,O=e[19]<<20|e[18]>>>12,se=e[29]<<7|e[28]>>>25,ie=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,j=e[49]<<14|e[48]>>>18,e[0]=p^~b&g,e[1]=m^~y&_,e[10]=S^~A&T,e[11]=E^~O&I,e[20]=F^~M&U,e[21]=P^~L&D,e[30]=H^~G&V,e[31]=W^~Y&J,e[40]=te^~re&se,e[41]=ne^~oe&ie,e[2]=b^~g&k,e[3]=y^~_&w,e[12]=A^~T&N,e[13]=O^~I&B,e[22]=M^~U&z,e[23]=L^~D&q,e[32]=G^~V&Z,e[33]=Y^~J&X,e[42]=re^~se&ae,e[43]=oe^~ie&ue,e[4]=g^~k&x,e[5]=_^~w&j,e[14]=T^~N&C,e[15]=I^~B&R,e[24]=U^~z&K,e[25]=D^~q&$,e[34]=V^~Z&Q,e[35]=J^~X&ee,e[44]=se^~ae&ce,e[45]=ie^~ue&le,e[6]=k^~x&p,e[7]=w^~j&m,e[16]=N^~C&S,e[17]=B^~R&E,e[26]=z^~K&F,e[27]=q^~$&P,e[36]=Z^~Q&H,e[37]=X^~ee&W,e[46]=ae^~ce&te,e[47]=ue^~le&ne,e[8]=x^~p&b,e[9]=j^~m&y,e[18]=C^~S&A,e[19]=R^~E&O,e[28]=K^~F&M,e[29]=$^~P&L,e[38]=Q^~H&G,e[39]=ee^~W&Y,e[48]=ce^~te&re,e[49]=le^~ne&oe,e[0]^=v[r],e[1]^=v[r+1]};if(f)e.exports=F;else{for(M=0;M<P.length;++M)u[P[M]]=F[P[M]];d&&(void 0===(s=function(){return F}.call(t,n,t,e))||(e.exports=s))}}()}).call(this,n("./node_modules/process/browser.js"),n("./node_modules/webpack/buildin/global.js"))},"./node_modules/left-pad/index.js":function(e,t,n){"use strict";e.exports=o;var r=[""," ","  ","   ","    ","     ","      ","       ","        ","         "];function o(e,t,n){if((t-=(e+="").length)<=0)return e;if(n||0===n||(n=" ")," "===(n+="")&&t<10)return r[t]+e;for(var o="";1&t&&(o+=n),t>>=1;)n+=n;return o+e}},"./node_modules/level-codec/index.js":function(e,t,n){var r=n("./node_modules/level-codec/lib/encodings.js");function o(e){if(!(this instanceof o))return new o(e);this.opts=e||{},this.encodings=r}e.exports=o,o.prototype._encoding=function(e){return"string"==typeof e&&(e=r[e]),e||(e=r.id),e},o.prototype._keyEncoding=function(e,t){return this._encoding(t&&t.keyEncoding||e&&e.keyEncoding||this.opts.keyEncoding)},o.prototype._valueEncoding=function(e,t){return this._encoding(t&&(t.valueEncoding||t.encoding)||e&&(e.valueEncoding||e.encoding)||this.opts.valueEncoding||this.opts.encoding)},o.prototype.encodeKey=function(e,t,n){return this._keyEncoding(t,n).encode(e)},o.prototype.encodeValue=function(e,t,n){return this._valueEncoding(t,n).encode(e)},o.prototype.decodeKey=function(e,t){return this._keyEncoding(t).decode(e)},o.prototype.decodeValue=function(e,t){return this._valueEncoding(t).decode(e)},o.prototype.encodeBatch=function(e,t){var n=this;return e.map(function(e){var r={type:e.type,key:n.encodeKey(e.key,t,e)};return n.keyAsBuffer(t,e)&&(r.keyEncoding="binary"),e.prefix&&(r.prefix=e.prefix),"value"in e&&(r.value=n.encodeValue(e.value,t,e),n.valueAsBuffer(t,e)&&(r.valueEncoding="binary")),r})};var s=["lt","gt","lte","gte","start","end"];o.prototype.encodeLtgt=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=s.indexOf(r)>-1?t.encodeKey(e[r],e):e[r]}),n},o.prototype.createStreamDecoder=function(e){var t=this;return e.keys&&e.values?function(n,r){return{key:t.decodeKey(n,e),value:t.decodeValue(r,e)}}:e.keys?function(n){return t.decodeKey(n,e)}:e.values?function(n,r){return t.decodeValue(r,e)}:function(){}},o.prototype.keyAsBuffer=function(e){return this._keyEncoding(e).buffer},o.prototype.valueAsBuffer=function(e){return this._valueEncoding(e).buffer}},"./node_modules/level-codec/lib/encodings.js":function(e,t,n){(function(e){var n;function r(e){return e}function o(t){return void 0===t||null===t||e.isBuffer(t)}t.utf8=t["utf-8"]={encode:function(e){return o(e)?e:String(e)},decode:r,buffer:!1,type:"utf8"},t.json={encode:JSON.stringify,decode:JSON.parse,buffer:!1,type:"json"},t.binary={encode:function(t){return o(t)?t:e.from(t)},decode:r,buffer:!0,type:"binary"},t.none={encode:r,decode:r,buffer:!1,type:"id"},t.id=t.none,["hex","ascii","base64","ucs2","ucs-2","utf16le","utf-16le"].forEach(function(n){t[n]={encode:function(t){return o(t)?t:e.from(t,n)},decode:function(e){return e.toString(n)},buffer:!0,type:n}})}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/level-errors/errors.js":function(e,t,n){var r=n("./node_modules/errno/errno.js").create,o=r("LevelUPError"),s=r("NotFoundError",o);s.prototype.notFound=!0,s.prototype.status=404,e.exports={LevelUPError:o,InitializationError:r("InitializationError",o),OpenError:r("OpenError",o),ReadError:r("ReadError",o),WriteError:r("WriteError",o),NotFoundError:s,EncodingError:r("EncodingError",o)}},"./node_modules/level-iterator-stream/index.js":function(e,t,n){var r=n("./node_modules/inherits/inherits_browser.js"),o=n("./node_modules/readable-stream/readable-browser.js").Readable,s=n("./node_modules/xtend/immutable.js");function i(e,t){if(!(this instanceof i))return new i(e,t);t=t||{},o.call(this,s(t,{objectMode:!0})),this._iterator=e,this._destroyed=!1,this._options=t,this.on("end",this._cleanup.bind(this))}e.exports=i,r(i,o),i.prototype._read=function(){var e=this,t=this._options;this._destroyed||this._iterator.next(function(n,r,o){if(!e._destroyed)return n?e.emit("error",n):void(void 0===r&&void 0===o?e.push(null):!1!==t.keys&&!1===t.values?e.push(r):!1===t.keys&&!1!==t.values?e.push(o):e.push({key:r,value:o}))})},i.prototype.destroy=i.prototype._cleanup=function(){var e=this;this._destroyed||(this._destroyed=!0,this._iterator.end(function(t){if(t)return e.emit("error",t);e.emit("close")}))}},"./node_modules/level-js/index.js":function(e,t,n){(function(t,r){e.exports=u;var o=n("./node_modules/level-js/node_modules/abstract-leveldown/index.js").AbstractLevelDOWN,s=n("./node_modules/util/util.js"),i=n("./node_modules/level-js/iterator.js"),a=n("./node_modules/xtend/immutable.js");function u(e){if(!(this instanceof u))return new u(e);o.call(this,e)}s.inherits(u,o),u.prototype._open=function(e,t){var n=this;if(this._idbOpts=a({storeName:this.location,keyEncoding:"none",valueEncoding:"none"},e),this._idbOpts.idb)s(this._idbOpts.idb);else{var r=indexedDB.open(this.location);r.onerror=o,r.onsuccess=function(){s(r.result)}}function o(e){t(e.target.error)}function s(r){n._db=r;var o=n._db.objectStoreNames.contains(n._idbOpts.storeName);if(e.errorIfExists&&o)return n._db.close(),void t(new Error("store already exists"));if(!e.createIfMissing&&!o)return n._db.close(),void t(new Error("store does not exist"));if(e.createIfMissing&&!o){n._db.close();var s=indexedDB.open(n.location,n._db.version+1);return s.onerror=function(e){t(e.target.error)},s.onupgradeneeded=function(){var e;s.result.createObjectStore(n._idbOpts.storeName,n._idbOpts)},void(s.onsuccess=function(){n._db=s.result,t(null,n)})}t(null,n)}},u.prototype._get=function(e,n,r){var o=e;"binary"!==(n=a(this._idbOpts,n)).keyEncoding||Array.isArray(e)||(e=Array.prototype.slice.call(e));var s=this._db.transaction(this._idbOpts.storeName),i=s.objectStore(this._idbOpts.storeName).openCursor(IDBKeyRange.only(e));s.onabort=function(){r(s.error)},i.onsuccess=function(){var e=i.result;if(e){var s=e.value;if(s instanceof Uint8Array&&(s=new t(s)),"binary"!==n.valueEncoding||t.isBuffer(s)||(s=new t(s)),n.asBuffer&&!t.isBuffer(s))if(null==s)s=new t(0);else if("string"==typeof s)s=new t(s);else if("boolean"==typeof s)s=new t(String(s));else if("number"==typeof s)s=new t(String(s));else if(Array.isArray(s))s=new t(String(s));else{if(!(s instanceof Uint8Array))return void r(new TypeError("can't coerce `"+s.constructor.name+"` into a Buffer"));s=new t(s)}r(null,s,o)}else r(new Error("NotFound"))}},u.prototype._del=function(e,t,n){"binary"!==(t=a(this._idbOpts,t)).keyEncoding||Array.isArray(e)||(e=Array.prototype.slice.call(e));var r="readwrite";!0===t.sync&&(r="readwriteflush");var o=this._db.transaction(this._idbOpts.storeName,r),s=o.objectStore(this._idbOpts.storeName).delete(e);o.onabort=function(){n(o.error)},o.oncomplete=function(){n()}},u.prototype._put=function(e,t,n,r){"binary"!==(n=a(this._idbOpts,n)).keyEncoding||Array.isArray(e)||(e=Array.prototype.slice.call(e));var o="readwrite";!0===n.sync&&(o="readwriteflush");var s=this._db.transaction(this._idbOpts.storeName,o),i=s.objectStore(this._idbOpts.storeName).put(t,e);s.onabort=function(){r(s.error)},s.oncomplete=function(){r()}},u.prototype._iterator=function(e){return new i(this,e)},u.prototype._batch=function(e,t,n){if(0===e.length)return r.nextTick(n);var o="readwrite";!0===t.sync&&(o="readwriteflush");var s=this._db.transaction(this._idbOpts.storeName,o),i=s.objectStore(this._idbOpts.storeName);s.onabort=function(){n(s.error)},s.oncomplete=function(){n()},e.forEach(function(e){var n;"binary"!==a(t,e).keyEncoding||Array.isArray(e.key)||(e.key=Array.prototype.slice.call(e.key)),"del"===e.type?i.delete(e.key):i.put(e.value,e.key)})},u.prototype._close=function(e){this._db.close(),r.nextTick(e)},u.prototype._approximateSize=function(e,t,n){var o=new Error("Not implemented");if(!n)throw o;r.nextTick(function(){n(o)})},u.destroy=function(e,t){var n;if(null!=e&&"object"==typeof e)n=a({location:e.location,storeName:e.location},e._idbOpts);else{if("string"!=typeof e)throw new TypeError("location must be a string or an object");n={location:e,storeName:e}}if("string"!=typeof n.location)throw new TypeError("location must be a string");if("string"!=typeof n.storeName)throw new TypeError("db.storeName must be a string");var r=indexedDB.open(n.location);r.onerror=function(e){t(e.target.error)},r.onsuccess=function(){var e=r.result;function o(e){var n=indexedDB.deleteDatabase(e);n.onerror=function(e){t(e.target.error)},n.onsuccess=function(){t()}}if(e.close(),0!==e.objectStoreNames.length)if(e.objectStoreNames.contains(n.storeName)){var s=indexedDB.open(n.location,e.version+1);s.onerror=function(e){t(e.target.error)},s.onupgradeneeded=function(){(e=s.result).deleteObjectStore(n.storeName)},s.onsuccess=function(){(e=s.result).close(),0===e.objectStoreNames.length?o(n.location):t()}}else t();else o(n.location)}}}).call(this,n("./node_modules/buffer/index.js").Buffer,n("./node_modules/process/browser.js"))},"./node_modules/level-js/iterator.js":function(e,t,n){(function(t,r){var o=n("./node_modules/util/util.js"),s=n("./node_modules/level-js/node_modules/abstract-leveldown/index.js").AbstractIterator,i=n("./node_modules/ltgt/index.js"),a=n("./node_modules/idb-readable-stream/index.js"),u=n("./node_modules/stream-browserify/index.js"),c=n("./node_modules/xtend/immutable.js"),l=u.Writable;function f(e,t){if(this._db=e._db,this._idbOpts=e._idbOpts,s.call(this,e),this._options=c({snapshot:!0},this._idbOpts,t),this._limit=this._options.limit,null!=this._limit&&-1!==this._limit||(this._limit=1/0),"number"!=typeof this._limit)throw new TypeError("options.limit must be a number");0!==this._limit&&(this._count=0,this._startCursor(this._options))}e.exports=f,o.inherits(f,s),f.prototype._startCursor=function(e){e=c(this._options,e);var t=this,n=null,r=i.lowerBound(e),o=i.upperBound(e),s=i.lowerBoundExclusive(e),u=i.upperBoundExclusive(e),f=e.reverse?"prev":"next";if(r&&("binary"!==e.keyEncoding||Array.isArray(r)||(r=Array.prototype.slice.call(r))),o&&("binary"!==e.keyEncoding||Array.isArray(o)||(o=Array.prototype.slice.call(o))),r&&o)try{n=IDBKeyRange.bound(r,o,s,u)}catch(e){return void(this._keyRangeError=!0)}else r?n=IDBKeyRange.lowerBound(r,s):o&&(n=IDBKeyRange.upperBound(o,u));this._reader=a(this._db,this._idbOpts.storeName,c(e,{range:n,direction:f})),this._reader.on("error",function(e){var n=t._callback;t._callback=!1,n?n(e):t._readNext=function(t){t(e)}}),this._reader.pipe(new l({objectMode:!0,write:function(e,n,r){if(t._count++>=t._limit)return t._reader.pause(),t._reader.unpipe(this),r(),void this.end();var o=t._callback;t._callback=!1,o?t._processItem(e,function(e,t,n){r(e),o(e,t,n)}):t._readNext=function(n){t._processItem(e,function(e,t,o){r(e),n(e,t,o)})}}})).on("finish",function(){var e=t._callback;t._callback=!1,e?e():t._readNext=function(e){e()}})},f.prototype._processItem=function(e,n){if("function"!=typeof n)throw new TypeError("cb must be a function");var r=e.key,o=e.value;if(o instanceof Uint8Array&&(o=new t(o)),"binary"===this._options.keyEncoding&&Array.isArray(r)&&(r=new t(r)),"binary"!==this._options.valueEncoding||t.isBuffer(o)||(o=new t(o)),this._options.keyAsBuffer&&!t.isBuffer(r))if(null==r)r=new t(0);else if("string"==typeof r)r=new t(r);else if("boolean"==typeof r)r=new t(String(r));else if("number"==typeof r)r=new t(String(r));else if(Array.isArray(r))r=new t(String(r));else{if(!(r instanceof Uint8Array))throw new TypeError("can't coerce `"+r.constructor.name+"` into a Buffer");r=new t(r)}if(this._options.valueAsBuffer&&!t.isBuffer(o))if(null==o)o=new t(0);else if("string"==typeof o)o=new t(o);else if("boolean"==typeof o)o=new t(String(o));else if("number"==typeof o)o=new t(String(o));else if(Array.isArray(o))o=new t(String(o));else{if(!(o instanceof Uint8Array))throw new TypeError("can't coerce `"+o.constructor.name+"` into a Buffer");o=new t(o)}n(null,r,o)},f.prototype._next=function(e){if(this._callback)throw new Error("callback already exists");if(this._keyRangeError||0===this._limit)e();else{var t=this._readNext;this._readNext=!1,t?r.nextTick(function(){t(e)}):this._callback=e}}}).call(this,n("./node_modules/buffer/index.js").Buffer,n("./node_modules/process/browser.js"))},"./node_modules/level-js/node_modules/abstract-leveldown/abstract-chained-batch.js":function(e,t,n){(function(t){function n(e){this._db=e,this._operations=[],this._written=!1}n.prototype._checkWritten=function(){if(this._written)throw new Error("write() already called on this batch")},n.prototype.put=function(e,t){this._checkWritten();var n=this._db._checkKey(e,"key",this._db._isBuffer);if(n)throw n;return this._db._isBuffer(e)||(e=String(e)),this._db._isBuffer(t)||(t=String(t)),"function"==typeof this._put?this._put(e,t):this._operations.push({type:"put",key:e,value:t}),this},n.prototype.del=function(e){this._checkWritten();var t=this._db._checkKey(e,"key",this._db._isBuffer);if(t)throw t;return this._db._isBuffer(e)||(e=String(e)),"function"==typeof this._del?this._del(e):this._operations.push({type:"del",key:e}),this},n.prototype.clear=function(){return this._checkWritten(),this._operations=[],"function"==typeof this._clear&&this._clear(),this},n.prototype.write=function(e,n){if(this._checkWritten(),"function"==typeof e&&(n=e),"function"!=typeof n)throw new Error("write() requires a callback argument");return"object"!=typeof e&&(e={}),this._written=!0,"function"==typeof this._write?this._write(n):"function"==typeof this._db._batch?this._db._batch(this._operations,e,n):void t.nextTick(n)},e.exports=n}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/level-js/node_modules/abstract-leveldown/abstract-iterator.js":function(e,t,n){(function(t){function n(e){this.db=e,this._ended=!1,this._nexting=!1}n.prototype.next=function(e){var n=this;if("function"!=typeof e)throw new Error("next() requires a callback argument");return n._ended?e(new Error("cannot call next() after end()")):n._nexting?e(new Error("cannot call next() before previous next() has completed")):(n._nexting=!0,"function"==typeof n._next?n._next(function(){n._nexting=!1,e.apply(null,arguments)}):void t.nextTick(function(){n._nexting=!1,e()}))},n.prototype.end=function(e){if("function"!=typeof e)throw new Error("end() requires a callback argument");return this._ended?e(new Error("end() already called on iterator")):(this._ended=!0,"function"==typeof this._end?this._end(e):void t.nextTick(e))},e.exports=n}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/level-js/node_modules/abstract-leveldown/abstract-leveldown.js":function(e,t,n){(function(t,r){var o=n("./node_modules/xtend/immutable.js"),s=n("./node_modules/level-js/node_modules/abstract-leveldown/abstract-iterator.js"),i=n("./node_modules/level-js/node_modules/abstract-leveldown/abstract-chained-batch.js");function a(e){if(!arguments.length||void 0===e)throw new Error("constructor requires at least a location argument");if("string"!=typeof e)throw new Error("constructor requires a location string argument");this.location=e,this.status="new"}a.prototype.open=function(e,n){var r=this,o=this.status;if("function"==typeof e&&(n=e),"function"!=typeof n)throw new Error("open() requires a callback argument");"object"!=typeof e&&(e={}),e.createIfMissing=0!=e.createIfMissing,e.errorIfExists=!!e.errorIfExists,"function"==typeof this._open?(this.status="opening",this._open(e,function(e){if(e)return r.status=o,n(e);r.status="open",n()})):(this.status="open",t.nextTick(n))},a.prototype.close=function(e){var n=this,r=this.status;if("function"!=typeof e)throw new Error("close() requires a callback argument");"function"==typeof this._close?(this.status="closing",this._close(function(t){if(t)return n.status=r,e(t);n.status="closed",e()})):(this.status="closed",t.nextTick(e))},a.prototype.get=function(e,n,r){var o;if("function"==typeof n&&(r=n),"function"!=typeof r)throw new Error("get() requires a callback argument");return(o=this._checkKey(e,"key",this._isBuffer))?r(o):(this._isBuffer(e)||(e=String(e)),"object"!=typeof n&&(n={}),n.asBuffer=0!=n.asBuffer,"function"==typeof this._get?this._get(e,n,r):void t.nextTick(function(){r(new Error("NotFound"))}))},a.prototype.put=function(e,n,r,o){var s;if("function"==typeof r&&(o=r),"function"!=typeof o)throw new Error("put() requires a callback argument");return(s=this._checkKey(e,"key",this._isBuffer))?o(s):(this._isBuffer(e)||(e=String(e)),null==n||this._isBuffer(n)||t.browser||(n=String(n)),"object"!=typeof r&&(r={}),"function"==typeof this._put?this._put(e,n,r,o):void t.nextTick(o))},a.prototype.del=function(e,n,r){var o;if("function"==typeof n&&(r=n),"function"!=typeof r)throw new Error("del() requires a callback argument");return(o=this._checkKey(e,"key",this._isBuffer))?r(o):(this._isBuffer(e)||(e=String(e)),"object"!=typeof n&&(n={}),"function"==typeof this._del?this._del(e,n,r):void t.nextTick(r))},a.prototype.batch=function(e,n,r){if(!arguments.length)return this._chainedBatch();if("function"==typeof n&&(r=n),"function"==typeof e&&(r=e),"function"!=typeof r)throw new Error("batch(array) requires a callback argument");if(!Array.isArray(e))return r(new Error("batch(array) requires an array argument"));n&&"object"==typeof n||(n={});for(var o=0,s=e.length,i,a;o<s;o++)if("object"==typeof(i=e[o])){if(a=this._checkKey(i.type,"type",this._isBuffer))return r(a);if(a=this._checkKey(i.key,"key",this._isBuffer))return r(a)}if("function"==typeof this._batch)return this._batch(e,n,r);t.nextTick(r)},a.prototype.approximateSize=function(e,n,r){if(null==e||null==n||"function"==typeof e||"function"==typeof n)throw new Error("approximateSize() requires valid `start`, `end` and `callback` arguments");if("function"!=typeof r)throw new Error("approximateSize() requires a callback argument");if(this._isBuffer(e)||(e=String(e)),this._isBuffer(n)||(n=String(n)),"function"==typeof this._approximateSize)return this._approximateSize(e,n,r);t.nextTick(function(){r(null,0)})},a.prototype._setupIteratorOptions=function(e){var t=this;return e=o(e),["start","end","gt","gte","lt","lte"].forEach(function(n){e[n]&&t._isBuffer(e[n])&&0===e[n].length&&delete e[n]}),e.reverse=!!e.reverse,e.keys=0!=e.keys,e.values=0!=e.values,e.limit="limit"in e?e.limit:-1,e.keyAsBuffer=0!=e.keyAsBuffer,e.valueAsBuffer=0!=e.valueAsBuffer,e},a.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),e=this._setupIteratorOptions(e),"function"==typeof this._iterator?this._iterator(e):new s(this)},a.prototype._chainedBatch=function(){return new i(this)},a.prototype._isBuffer=function(e){return r.isBuffer(e)},a.prototype._checkKey=function(e,t){if(null===e||void 0===e)return new Error(t+" cannot be `null` or `undefined`");if(this._isBuffer(e)){if(0===e.length)return new Error(t+" cannot be an empty Buffer")}else if(""===String(e))return new Error(t+" cannot be an empty String")},e.exports=a}).call(this,n("./node_modules/process/browser.js"),n("./node_modules/buffer/index.js").Buffer)},"./node_modules/level-js/node_modules/abstract-leveldown/index.js":function(e,t,n){t.AbstractLevelDOWN=n("./node_modules/level-js/node_modules/abstract-leveldown/abstract-leveldown.js"),t.AbstractIterator=n("./node_modules/level-js/node_modules/abstract-leveldown/abstract-iterator.js"),t.AbstractChainedBatch=n("./node_modules/level-js/node_modules/abstract-leveldown/abstract-chained-batch.js"),t.isLevelDOWN=n("./node_modules/level-js/node_modules/abstract-leveldown/is-leveldown.js")},"./node_modules/level-js/node_modules/abstract-leveldown/is-leveldown.js":function(e,t,n){var r=n("./node_modules/level-js/node_modules/abstract-leveldown/abstract-leveldown.js");function o(e){return!(!e||"object"!=typeof e)&&Object.keys(r.prototype).filter(function(e){return"_"!=e[0]&&"approximateSize"!=e}).every(function(t){return"function"==typeof e[t]})}e.exports=o},"./node_modules/levelup/lib/batch.js":function(e,t,n){var r=n("./node_modules/levelup/node_modules/level-errors/errors.js").WriteError,o=n("./node_modules/levelup/lib/promisify.js");function s(e){this._levelup=e,this.batch=e.db.batch(),this.ops=[],this.length=0}s.prototype.put=function(e,t){try{this.batch.put(e,t)}catch(e){throw new r(e)}return this.ops.push({type:"put",key:e,value:t}),this.length++,this},s.prototype.del=function(e){try{this.batch.del(e)}catch(e){throw new r(e)}return this.ops.push({type:"del",key:e}),this.length++,this},s.prototype.clear=function(){try{this.batch.clear()}catch(e){throw new r(e)}return this.ops=[],this.length=0,this},s.prototype.write=function(e){var t=this._levelup,n=this.ops,s;e||(s=(e=o()).promise);try{this.batch.write(function(o){if(o)return e(new r(o));t.emit("batch",n),e()})}catch(e){throw new r(e)}return s},e.exports=s},"./node_modules/levelup/lib/levelup.js":function(e,t,n){(function(t){var r=n("./node_modules/events/events.js").EventEmitter,o=n("./node_modules/util/util.js").inherits,s=n("./node_modules/xtend/immutable.js"),i=n("./node_modules/deferred-leveldown/deferred-leveldown.js"),a=n("./node_modules/level-iterator-stream/index.js"),u=n("./node_modules/levelup/lib/batch.js"),c=n("./node_modules/levelup/node_modules/level-errors/errors.js"),l=n("./node_modules/assert/assert.js"),f=n("./node_modules/levelup/lib/promisify.js"),d=c.WriteError,h=c.ReadError,p=c.NotFoundError,m=c.OpenError,b=c.InitializationError;function y(e,n,o){if(!(this instanceof y))return new y(e,n,o);var s;if(r.call(this),this.setMaxListeners(1/0),"function"==typeof n&&(o=n,n={}),n=n||{},!e||"object"!=typeof e){if(s=new b("First argument must be an abstract-leveldown compliant store"),"function"==typeof o)return t.nextTick(o,s);throw s}l.equal(typeof e.status,"string",".status required, old abstract-leveldown"),this.options=_(n),this._db=e,this.db=new i(e),this.open(o)}function g(e,t){return"function"==typeof e?e:t}function _(e){return"object"==typeof e&&null!==e?e:{}}function v(e,n){if(!e._isOpening()&&!e.isOpen())return t.nextTick(n,new h("Database is not open")),!0}y.prototype.emit=r.prototype.emit,y.prototype.once=r.prototype.once,o(y,r),y.prototype.open=function(e){var n=this,r;return e||(r=(e=f()).promise),this.isOpen()?(t.nextTick(e,null,n),r):this._isOpening()?(this.once("open",function(){e(null,n)}),r):(this.emit("opening"),this.db.open(this.options,function(t){if(t)return e(new m(t));n.db=n._db,e(null,n),n.emit("open"),n.emit("ready")}),r)},y.prototype.close=function(e){var n=this,r;return e||(r=(e=f()).promise),this.isOpen()?(this.db.close(function(){n.emit("closed"),e.apply(null,arguments)}),this.emit("closing"),this.db=new i(this._db)):this.isClosed()?t.nextTick(e):"closing"===this.db.status?this.once("closed",e):this._isOpening()&&this.once("open",function(){n.close(e)}),r},y.prototype.isOpen=function(){return"open"===this.db.status},y.prototype._isOpening=function(){return"opening"===this.db.status},y.prototype.isClosed=function(){return/^clos|new/.test(this.db.status)},y.prototype.get=function(e,t,n){if(null===e||void 0===e)throw new h("get() requires a key argument");var r;return(n=g(t,n))||(r=(n=f()).promise),v(this,n)?r:(t=_(t),this.db.get(e,t,function(t,r){if(t)return t=/notfound/i.test(t)||t.notFound?new p("Key not found in database ["+e+"]",t):new h(t),n(t);n(null,r)}),r)},y.prototype.put=function(e,t,n,r){if(null===e||void 0===e)throw new d("put() requires a key argument");var o=this,s;return(r=g(n,r))||(s=(r=f()).promise),v(this,r)?s:(n=_(n),this.db.put(e,t,n,function(n){if(n)return r(new d(n));o.emit("put",e,t),r()}),s)},y.prototype.del=function(e,t,n){if(null===e||void 0===e)throw new d("del() requires a key argument");var r=this,o;return(n=g(t,n))||(o=(n=f()).promise),v(this,n)?o:(t=_(t),this.db.del(e,t,function(t){if(t)return n(new d(t));r.emit("del",e),n()}),o)},y.prototype.batch=function(e,t,n){if(!arguments.length)return new u(this);if(!Array.isArray(e))throw new d("batch() requires an array argument");var r=this,o;return(n=g(t,n))||(o=(n=f()).promise),v(this,n)?o:(t=_(t),e=e.map(function(e){return e.type||void 0===e.key||void 0===e.value||(e.type="put"),e}),this.db.batch(e,t,function(t){if(t)return n(new d(t));r.emit("batch",e),n()}),o)},y.prototype.readStream=y.prototype.createReadStream=function(e){return"number"!=typeof(e=s({keys:!0,values:!0},e)).limit&&(e.limit=-1),new a(this.db.iterator(e),e)},y.prototype.keyStream=y.prototype.createKeyStream=function(e){return this.createReadStream(s(e,{keys:!0,values:!1}))},y.prototype.valueStream=y.prototype.createValueStream=function(e){return this.createReadStream(s(e,{keys:!1,values:!0}))},y.prototype.toString=function(){return"LevelUP"},y.errors=c,e.exports=y.default=y}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/levelup/lib/promisify.js":function(e,t){function n(){var e,t=new Promise(function(t,n){e=function e(r,o){r?n(r):t(o)}});return e.promise=t,e}e.exports=n},"./node_modules/levelup/node_modules/level-errors/errors.js":function(e,t,n){var r=n("./node_modules/errno/errno.js").create,o=r("LevelUPError"),s=r("NotFoundError",o);s.prototype.notFound=!0,s.prototype.status=404,e.exports={LevelUPError:o,InitializationError:r("InitializationError",o),OpenError:r("OpenError",o),ReadError:r("ReadError",o),WriteError:r("WriteError",o),NotFoundError:s,EncodingError:r("EncodingError",o)}},"./node_modules/lodash.get/index.js":function(e,t,n){(function(t){var n="Expected a function",r="__lodash_hash_undefined__",o=1/0,s="[object Function]",i="[object GeneratorFunction]",a="[object Symbol]",u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,l=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/[\\^$.*+?()[\]{}|]/g,h=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,m="object"==typeof t&&t&&t.Object===Object&&t,b="object"==typeof self&&self&&self.Object===Object&&self,y=m||b||Function("return this")();function g(e,t){return null==e?void 0:e[t]}function _(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}var v=Array.prototype,k=Function.prototype,w=Object.prototype,x=y["__core-js_shared__"],j=(S=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",S,E=k.toString,A=w.hasOwnProperty,O=w.toString,T=RegExp("^"+E.call(A).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=y.Symbol,N=v.splice,B=ie(y,"Map"),C=ie(Object,"create"),R=I?I.prototype:void 0,F=R?R.toString:void 0;function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function M(){this.__data__=C?C(null):{}}function L(e){return this.has(e)&&delete this.__data__[e]}function U(e){var t=this.__data__;if(C){var n=t[e];return n===r?void 0:n}return A.call(t,e)?t[e]:void 0}function D(e){var t=this.__data__;return C?void 0!==t[e]:A.call(t,e)}function z(e,t){var n;return this.__data__[e]=C&&void 0===t?r:t,this}function q(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function K(){this.__data__=[]}function $(e){var t=this.__data__,n=ee(t,e),r;return!(n<0)&&(n==t.length-1?t.pop():N.call(t,n,1),!0)}function H(e){var t=this.__data__,n=ee(t,e);return n<0?void 0:t[n][1]}function W(e){return ee(this.__data__,e)>-1}function G(e,t){var n=this.__data__,r=ee(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function Y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function V(){this.__data__={hash:new P,map:new(B||q),string:new P}}function J(e){return se(this,e).delete(e)}function Z(e){return se(this,e).get(e)}function X(e){return se(this,e).has(e)}function Q(e,t){return se(this,e).set(e,t),this}function ee(e,t){for(var n=e.length;n--;)if(pe(e[n][0],t))return n;return-1}function te(e,t){for(var n=0,r=(t=ae(t,e)?[t]:oe(t)).length;null!=e&&n<r;)e=e[fe(t[n++])];return n&&n==r?e:void 0}function ne(e){return!(!ye(e)||ce(e))&&(be(e)||_(e)?T:p).test(de(e));var t}function re(e){if("string"==typeof e)return e;if(_e(e))return F?F.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}function oe(e){return me(e)?e:le(e)}function se(e,t){var n=e.__data__;return ue(t)?n["string"==typeof t?"string":"hash"]:n.map}function ie(e,t){var n=g(e,t);return ne(n)?n:void 0}function ae(e,t){if(me(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!_e(e))||(c.test(e)||!u.test(e)||null!=t&&e in Object(t))}function ue(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ce(e){return!!j&&j in e}P.prototype.clear=M,P.prototype.delete=L,P.prototype.get=U,P.prototype.has=D,P.prototype.set=z,q.prototype.clear=K,q.prototype.delete=$,q.prototype.get=H,q.prototype.has=W,q.prototype.set=G,Y.prototype.clear=V,Y.prototype.delete=J,Y.prototype.get=Z,Y.prototype.has=X,Y.prototype.set=Q;var le=he(function(e){e=ve(e);var t=[];return l.test(e)&&t.push(""),e.replace(f,function(e,n,r,o){t.push(r?o.replace(h,"$1"):n||e)}),t});function fe(e){if("string"==typeof e||_e(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}function de(e){if(null!=e){try{return E.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function he(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(n);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var i=e.apply(this,n);return r.cache=s.set(o,i),i};return r.cache=new(he.Cache||Y),r}function pe(e,t){return e===t||e!=e&&t!=t}he.Cache=Y;var me=Array.isArray;function be(e){var t=ye(e)?O.call(e):"";return t==s||t==i}function ye(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ge(e){return!!e&&"object"==typeof e}function _e(e){return"symbol"==typeof e||ge(e)&&O.call(e)==a}function ve(e){return null==e?"":re(e)}function ke(e,t,n){var r=null==e?void 0:te(e,t);return void 0===r?n:r}e.exports=ke}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/lodash.has/index.js":function(e,t,n){(function(t){var n="Expected a function",r="__lodash_hash_undefined__",o=1/0,s=9007199254740991,i="[object Arguments]",a="[object Function]",u="[object GeneratorFunction]",c="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f=/^\w*$/,d=/^\./,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/[\\^$.*+?()[\]{}|]/g,m=/\\(\\)?/g,b=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,g="object"==typeof t&&t&&t.Object===Object&&t,_="object"==typeof self&&self&&self.Object===Object&&self,v=g||_||Function("return this")();function k(e,t){return null==e?void 0:e[t]}function w(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}var x=Array.prototype,j=Function.prototype,S=Object.prototype,E=v["__core-js_shared__"],A=(O=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",O,T=j.toString,I=S.hasOwnProperty,N=S.toString,B=RegExp("^"+T.call(I).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=v.Symbol,R=S.propertyIsEnumerable,F=x.splice,P=le(v,"Map"),M=le(Object,"create"),L=C?C.prototype:void 0,U=L?L.toString:void 0;function D(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function z(){this.__data__=M?M(null):{}}function q(e){return this.has(e)&&delete this.__data__[e]}function K(e){var t=this.__data__;if(M){var n=t[e];return n===r?void 0:n}return I.call(t,e)?t[e]:void 0}function $(e){var t=this.__data__;return M?void 0!==t[e]:I.call(t,e)}function H(e,t){var n;return this.__data__[e]=M&&void 0===t?r:t,this}function W(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function G(){this.__data__=[]}function Y(e){var t=this.__data__,n=oe(t,e),r;return!(n<0)&&(n==t.length-1?t.pop():F.call(t,n,1),!0)}function V(e){var t=this.__data__,n=oe(t,e);return n<0?void 0:t[n][1]}function J(e){return oe(this.__data__,e)>-1}function Z(e,t){var n=this.__data__,r=oe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function X(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(){this.__data__={hash:new D,map:new(P||W),string:new D}}function ee(e){return ce(this,e).delete(e)}function te(e){return ce(this,e).get(e)}function ne(e){return ce(this,e).has(e)}function re(e,t){return ce(this,e).set(e,t),this}function oe(e,t){for(var n=e.length;n--;)if(ve(e[n][0],t))return n;return-1}function se(e,t){return null!=e&&I.call(e,t)}function ie(e){return!(!Ae(e)||me(e))&&(Se(e)||w(e)?B:b).test(ge(e));var t}function ae(e){if("string"==typeof e)return e;if(Te(e))return U?U.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}function ue(e){return we(e)?e:be(e)}function ce(e,t){var n=e.__data__;return pe(t)?n["string"==typeof t?"string":"hash"]:n.map}function le(e,t){var n=k(e,t);return ie(n)?n:void 0}function fe(e,t,n){for(var r,o=-1,s=(t=he(t,e)?[t]:ue(t)).length;++o<s;){var i=ye(t[o]);if(!(r=null!=e&&n(e,i)))break;e=e[i]}return r||!!(s=e?e.length:0)&&Ee(s)&&de(i,s)&&(we(e)||ke(e));var s}function de(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||y.test(e))&&e>-1&&e%1==0&&e<t}function he(e,t){if(we(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Te(e))||(f.test(e)||!l.test(e)||null!=t&&e in Object(t))}function pe(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function me(e){return!!A&&A in e}D.prototype.clear=z,D.prototype.delete=q,D.prototype.get=K,D.prototype.has=$,D.prototype.set=H,W.prototype.clear=G,W.prototype.delete=Y,W.prototype.get=V,W.prototype.has=J,W.prototype.set=Z,X.prototype.clear=Q,X.prototype.delete=ee,X.prototype.get=te,X.prototype.has=ne,X.prototype.set=re;var be=_e(function(e){e=Ie(e);var t=[];return d.test(e)&&t.push(""),e.replace(h,function(e,n,r,o){t.push(r?o.replace(m,"$1"):n||e)}),t});function ye(e){if("string"==typeof e||Te(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}function ge(e){if(null!=e){try{return T.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function _e(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(n);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var i=e.apply(this,n);return r.cache=s.set(o,i),i};return r.cache=new(_e.Cache||X),r}function ve(e,t){return e===t||e!=e&&t!=t}function ke(e){return je(e)&&I.call(e,"callee")&&(!R.call(e,"callee")||N.call(e)==i)}_e.Cache=X;var we=Array.isArray;function xe(e){return null!=e&&Ee(e.length)&&!Se(e)}function je(e){return Oe(e)&&xe(e)}function Se(e){var t=Ae(e)?N.call(e):"";return t==a||t==u}function Ee(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function Ae(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Oe(e){return!!e&&"object"==typeof e}function Te(e){return"symbol"==typeof e||Oe(e)&&N.call(e)==c}function Ie(e){return null==e?"":ae(e)}function Ne(e,t){return null!=e&&fe(e,t,se)}e.exports=Ne}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/lodash.set/index.js":function(e,t,n){(function(t){var n="Expected a function",r="__lodash_hash_undefined__",o=1/0,s=9007199254740991,i="[object Function]",a="[object GeneratorFunction]",u="[object Symbol]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,f=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/[\\^$.*+?()[\]{}|]/g,p=/\\(\\)?/g,m=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,y="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,_=y||g||Function("return this")();function v(e,t){return null==e?void 0:e[t]}function k(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}var w=Array.prototype,x=Function.prototype,j=Object.prototype,S=_["__core-js_shared__"],E=(A=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",A,O=x.toString,T=j.hasOwnProperty,I=j.toString,N=RegExp("^"+O.call(T).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=_.Symbol,C=w.splice,R=ce(_,"Map"),F=ce(Object,"create"),P=B?B.prototype:void 0,M=P?P.toString:void 0;function L(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function U(){this.__data__=F?F(null):{}}function D(e){return this.has(e)&&delete this.__data__[e]}function z(e){var t=this.__data__;if(F){var n=t[e];return n===r?void 0:n}return T.call(t,e)?t[e]:void 0}function q(e){var t=this.__data__;return F?void 0!==t[e]:T.call(t,e)}function K(e,t){var n;return this.__data__[e]=F&&void 0===t?r:t,this}function $(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function H(){this.__data__=[]}function W(e){var t=this.__data__,n=re(t,e),r;return!(n<0)&&(n==t.length-1?t.pop():C.call(t,n,1),!0)}function G(e){var t=this.__data__,n=re(t,e);return n<0?void 0:t[n][1]}function Y(e){return re(this.__data__,e)>-1}function V(e,t){var n=this.__data__,r=re(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function J(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(){this.__data__={hash:new L,map:new(R||$),string:new L}}function X(e){return ue(this,e).delete(e)}function Q(e){return ue(this,e).get(e)}function ee(e){return ue(this,e).has(e)}function te(e,t){return ue(this,e).set(e,t),this}function ne(e,t,n){var r=e[t];T.call(e,t)&&ge(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function re(e,t){for(var n=e.length;n--;)if(ge(e[n][0],t))return n;return-1}function oe(e){return!(!ke(e)||he(e))&&(ve(e)||k(e)?N:m).test(be(e));var t}function se(e,t,n,r){if(!ke(e))return e;for(var o=-1,s=(t=fe(t,e)?[t]:ae(t)).length,i=s-1,a=e;null!=a&&++o<s;){var u=me(t[o]),c=n;if(o!=i){var l=a[u];void 0===(c=r?r(l,u,a):void 0)&&(c=ke(l)?l:le(t[o+1])?[]:{})}ne(a,u,c),a=a[u]}return e}function ie(e){if("string"==typeof e)return e;if(xe(e))return M?M.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}function ae(e){return _e(e)?e:pe(e)}function ue(e,t){var n=e.__data__;return de(t)?n["string"==typeof t?"string":"hash"]:n.map}function ce(e,t){var n=v(e,t);return oe(n)?n:void 0}function le(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||b.test(e))&&e>-1&&e%1==0&&e<t}function fe(e,t){if(_e(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!xe(e))||(l.test(e)||!c.test(e)||null!=t&&e in Object(t))}function de(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function he(e){return!!E&&E in e}L.prototype.clear=U,L.prototype.delete=D,L.prototype.get=z,L.prototype.has=q,L.prototype.set=K,$.prototype.clear=H,$.prototype.delete=W,$.prototype.get=G,$.prototype.has=Y,$.prototype.set=V,J.prototype.clear=Z,J.prototype.delete=X,J.prototype.get=Q,J.prototype.has=ee,J.prototype.set=te;var pe=ye(function(e){e=je(e);var t=[];return f.test(e)&&t.push(""),e.replace(d,function(e,n,r,o){t.push(r?o.replace(p,"$1"):n||e)}),t});function me(e){if("string"==typeof e||xe(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}function be(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ye(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(n);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var i=e.apply(this,n);return r.cache=s.set(o,i),i};return r.cache=new(ye.Cache||J),r}function ge(e,t){return e===t||e!=e&&t!=t}ye.Cache=J;var _e=Array.isArray;function ve(e){var t=ke(e)?I.call(e):"";return t==i||t==a}function ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function we(e){return!!e&&"object"==typeof e}function xe(e){return"symbol"==typeof e||we(e)&&I.call(e)==u}function je(e){return null==e?"":ie(e)}function Se(e,t,n){return null==e?e:se(e,t,n)}e.exports=Se}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/lodash/_Symbol.js":function(e,t,n){var r,o=n("./node_modules/lodash/_root.js").Symbol;e.exports=o},"./node_modules/lodash/_arrayLikeKeys.js":function(e,t,n){var r=n("./node_modules/lodash/_baseTimes.js"),o=n("./node_modules/lodash/isArguments.js"),s=n("./node_modules/lodash/isArray.js"),i=n("./node_modules/lodash/isBuffer.js"),a=n("./node_modules/lodash/_isIndex.js"),u=n("./node_modules/lodash/isTypedArray.js"),c,l=Object.prototype.hasOwnProperty;function f(e,t){var n=s(e),c=!n&&o(e),f=!n&&!c&&i(e),d=!n&&!c&&!f&&u(e),h=n||c||f||d,p=h?r(e.length,String):[],m=p.length;for(var b in e)!t&&!l.call(e,b)||h&&("length"==b||f&&("offset"==b||"parent"==b)||d&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||a(b,m))||p.push(b);return p}e.exports=f},"./node_modules/lodash/_arrayMap.js":function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}e.exports=n},"./node_modules/lodash/_baseFindIndex.js":function(e,t){function n(e,t,n,r){for(var o=e.length,s=n+(r?1:-1);r?s--:++s<o;)if(t(e[s],s,e))return s;return-1}e.exports=n},"./node_modules/lodash/_baseGetTag.js":function(e,t,n){var r=n("./node_modules/lodash/_Symbol.js"),o=n("./node_modules/lodash/_getRawTag.js"),s=n("./node_modules/lodash/_objectToString.js"),i="[object Null]",a="[object Undefined]",u=r?r.toStringTag:void 0;function c(e){return null==e?void 0===e?a:i:u&&u in Object(e)?o(e):s(e)}e.exports=c},"./node_modules/lodash/_baseIndexOf.js":function(e,t,n){var r=n("./node_modules/lodash/_baseFindIndex.js"),o=n("./node_modules/lodash/_baseIsNaN.js"),s=n("./node_modules/lodash/_strictIndexOf.js");function i(e,t,n){return t==t?s(e,t,n):r(e,o,n)}e.exports=i},"./node_modules/lodash/_baseIsArguments.js":function(e,t,n){var r=n("./node_modules/lodash/_baseGetTag.js"),o=n("./node_modules/lodash/isObjectLike.js"),s="[object Arguments]";function i(e){return o(e)&&r(e)==s}e.exports=i},"./node_modules/lodash/_baseIsNaN.js":function(e,t){function n(e){return e!=e}e.exports=n},"./node_modules/lodash/_baseIsTypedArray.js":function(e,t,n){var r=n("./node_modules/lodash/_baseGetTag.js"),o=n("./node_modules/lodash/isLength.js"),s=n("./node_modules/lodash/isObjectLike.js"),i="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",p="[object Object]",m="[object RegExp]",b="[object Set]",y="[object String]",g="[object WeakMap]",_="[object ArrayBuffer]",v="[object DataView]",k,w="[object Float64Array]",x="[object Int8Array]",j="[object Int16Array]",S="[object Int32Array]",E="[object Uint8Array]",A="[object Uint8ClampedArray]",O="[object Uint16Array]",T="[object Uint32Array]",I={};function N(e){return s(e)&&o(e.length)&&!!I[r(e)]}I["[object Float32Array]"]=I[w]=I[x]=I[j]=I[S]=I[E]=I[A]=I[O]=I[T]=!0,I[i]=I[a]=I[_]=I[u]=I[v]=I[c]=I[l]=I[f]=I[d]=I[h]=I[p]=I[m]=I[b]=I[y]=I[g]=!1,e.exports=N},"./node_modules/lodash/_baseKeys.js":function(e,t,n){var r=n("./node_modules/lodash/_isPrototype.js"),o=n("./node_modules/lodash/_nativeKeys.js"),s,i=Object.prototype.hasOwnProperty;function a(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=a},"./node_modules/lodash/_baseProperty.js":function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},"./node_modules/lodash/_baseTimes.js":function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},"./node_modules/lodash/_baseUnary.js":function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},"./node_modules/lodash/_freeGlobal.js":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/lodash/_getRawTag.js":function(e,t,n){var r=n("./node_modules/lodash/_Symbol.js"),o=Object.prototype,s=o.hasOwnProperty,i=o.toString,a=r?r.toStringTag:void 0;function u(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[a]=n:delete e[a]),o}e.exports=u},"./node_modules/lodash/_isIndex.js":function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function o(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}e.exports=o},"./node_modules/lodash/_isPrototype.js":function(e,t){var n=Object.prototype;function r(e){var t=e&&e.constructor,r;return e===("function"==typeof t&&t.prototype||n)}e.exports=r},"./node_modules/lodash/_nativeKeys.js":function(e,t,n){var r,o=n("./node_modules/lodash/_overArg.js")(Object.keys,Object);e.exports=o},"./node_modules/lodash/_nodeUtil.js":function(e,t,n){(function(e){var r=n("./node_modules/lodash/_freeGlobal.js"),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,i,a=s&&s.exports===o&&r.process,u=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/lodash/_objectToString.js":function(e,t){var n,r=Object.prototype.toString;function o(e){return r.call(e)}e.exports=o},"./node_modules/lodash/_overArg.js":function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},"./node_modules/lodash/_root.js":function(e,t,n){var r=n("./node_modules/lodash/_freeGlobal.js"),o="object"==typeof self&&self&&self.Object===Object&&self,s=r||o||Function("return this")();e.exports=s},"./node_modules/lodash/_strictIndexOf.js":function(e,t){function n(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}e.exports=n},"./node_modules/lodash/isArguments.js":function(e,t,n){var r=n("./node_modules/lodash/_baseIsArguments.js"),o=n("./node_modules/lodash/isObjectLike.js"),s=Object.prototype,i=s.hasOwnProperty,a=s.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},"./node_modules/lodash/isArray.js":function(e,t){var n=Array.isArray;e.exports=n},"./node_modules/lodash/isArrayLike.js":function(e,t,n){var r=n("./node_modules/lodash/isFunction.js"),o=n("./node_modules/lodash/isLength.js");function s(e){return null!=e&&o(e.length)&&!r(e)}e.exports=s},"./node_modules/lodash/isBuffer.js":function(e,t,n){(function(e){var r=n("./node_modules/lodash/_root.js"),o=n("./node_modules/lodash/stubFalse.js"),s=t&&!t.nodeType&&t,i=s&&"object"==typeof e&&e&&!e.nodeType&&e,a,u=i&&i.exports===s?r.Buffer:void 0,c,l=(u?u.isBuffer:void 0)||o;e.exports=l}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/lodash/isFunction.js":function(e,t,n){var r=n("./node_modules/lodash/_baseGetTag.js"),o=n("./node_modules/lodash/isObject.js"),s="[object AsyncFunction]",i="[object Function]",a="[object GeneratorFunction]",u="[object Proxy]";function c(e){if(!o(e))return!1;var t=r(e);return t==i||t==a||t==s||t==u}e.exports=c},"./node_modules/lodash/isLength.js":function(e,t){var n=9007199254740991;function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}e.exports=r},"./node_modules/lodash/isObject.js":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"./node_modules/lodash/isObjectLike.js":function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},"./node_modules/lodash/isTypedArray.js":function(e,t,n){var r=n("./node_modules/lodash/_baseIsTypedArray.js"),o=n("./node_modules/lodash/_baseUnary.js"),s=n("./node_modules/lodash/_nodeUtil.js"),i=s&&s.isTypedArray,a=i?o(i):r;e.exports=a},"./node_modules/lodash/keys.js":function(e,t,n){var r=n("./node_modules/lodash/_arrayLikeKeys.js"),o=n("./node_modules/lodash/_baseKeys.js"),s=n("./node_modules/lodash/isArrayLike.js");function i(e){return s(e)?r(e):o(e)}e.exports=i},"./node_modules/lodash/noop.js":function(e,t){function n(){}e.exports=n},"./node_modules/lodash/stubFalse.js":function(e,t){function n(){return!1}e.exports=n},"./node_modules/ltgt/index.js":function(e,t,n){(function(e){function n(e){return void 0!==e&&""!==e}function r(e,t){return Object.hasOwnProperty.call(e,t)}function o(e,t){return Object.hasOwnProperty.call(e,t)&&t}t.compare=function(t,n){if(e.isBuffer(t)){for(var r=Math.min(t.length,n.length),o=0;o<r;o++){var s=t[o]-n[o];if(s)return s}return t.length-n.length}return t<n?-1:t>n?1:0};var s=t.lowerBoundKey=function(e){return o(e,"gt")||o(e,"gte")||o(e,"min")||(e.reverse?o(e,"end"):o(e,"start"))||void 0},i=t.lowerBound=function(e,t){var n=s(e);return n?e[n]:t},a=t.lowerBoundInclusive=function(e){return!r(e,"gt")},u=t.upperBoundInclusive=function(e){return!r(e,"lt")},c=t.lowerBoundExclusive=function(e){return!a(e)},l=t.upperBoundExclusive=function(e){return!u(e)},f=t.upperBoundKey=function(e){return o(e,"lt")||o(e,"lte")||o(e,"max")||(e.reverse?o(e,"start"):o(e,"end"))||void 0},d=t.upperBound=function(e,t){var n=f(e);return n?e[n]:t};function h(e){return e}t.start=function(e,t){return e.reverse?d(e,t):i(e,t)},t.end=function(e,t){return e.reverse?i(e,t):d(e,t)},t.startInclusive=function(e){return e.reverse?u(e):a(e)},t.endInclusive=function(e){return e.reverse?a(e):u(e)},t.toLtgt=function(e,n,o,s,i){n=n||{},o=o||h;var a=arguments.length>3,u=t.lowerBoundKey(e),c=t.upperBoundKey(e);return u?"gt"===u?n.gt=o(e.gt,!1):n.gte=o(e[u],!1):a&&(n.gte=o(s,!1)),c?"lt"===c?n.lt=o(e.lt,!0):n.lte=o(e[c],!0):a&&(n.lte=o(i,!0)),null!=e.reverse&&(n.reverse=!!e.reverse),r(n,"max")&&delete n.max,r(n,"min")&&delete n.min,r(n,"start")&&delete n.start,r(n,"end")&&delete n.end,n},t.contains=function(e,r,o){o=o||t.compare;var s=i(e),a;if(n(s)&&((a=o(r,s))<0||0===a&&c(e)))return!1;var u=d(e),a;if(n(u)&&((a=o(r,u))>0||0===a&&l(e)))return!1;return!0},t.filter=function(e,n){return function(r){return t.contains(e,r,n)}}}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/merge-options/index.js":function(e,t,n){"use strict";const r=n("./node_modules/is-plain-obj/index.js"),o=Object.prototype.hasOwnProperty,s=Object.propertyIsEnumerable,i=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}),a=this,u={concatArrays:!1},c=e=>{const t=[];for(const n in e)o.call(e,n)&&t.push(n);if(Object.getOwnPropertySymbols){const n=Object.getOwnPropertySymbols(e);for(let r=0;r<n.length;r++)s.call(e,n[r])&&t.push(n[r])}return t};function l(e){return Array.isArray(e)?f(e):r(e)?d(e):e}function f(e){const t=e.slice(0,0);return c(e).forEach(n=>{i(t,n,l(e[n]))}),t}function d(e){const t=null===Object.getPrototypeOf(e)?Object.create(null):{};return c(e).forEach(n=>{i(t,n,l(e[n]))}),t}const h=(e,t,n,r)=>(n.forEach(n=>{n in e&&e[n]!==Object.getPrototypeOf(e)?i(e,n,m(e[n],t[n],r)):i(e,n,l(t[n]))}),e),p=(e,t,n)=>{let r=e.slice(0,0),s=0;return[e,t].forEach(t=>{const a=[];for(let n=0;n<t.length;n++)o.call(t,n)&&(a.push(String(n)),i(r,s++,t===e?t[n]:l(t[n])));r=h(r,t,c(t).filter(e=>-1===a.indexOf(e)),n)}),r};function m(e,t,n){return n.concatArrays&&Array.isArray(e)&&Array.isArray(t)?p(e,t,n):r(t)&&r(e)?h(e,t,c(t),n):l(t)}e.exports=function(){const e=m(l(u),this!==a&&this||{},u);let t={foobar:{}};for(let n=0;n<arguments.length;n++){const o=arguments[n];if(void 0!==o){if(!r(o))throw new TypeError("`"+o+"` is not an Option Object");t=m(t,{foobar:o},e)}}return t.foobar}},"./node_modules/ms/index.js":function(e,t){var n=1e3,r=60*n,o=60*r,s=24*o,i=7*s,a=365.25*s;function u(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var u=parseFloat(t[1]),c;switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*a;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*s;case"hours":case"hour":case"hrs":case"hr":case"h":return u*o;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}}}function c(e){var t=Math.abs(e);return t>=s?Math.round(e/s)+"d":t>=o?Math.round(e/o)+"h":t>=r?Math.round(e/r)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}function l(e){var t=Math.abs(e);return t>=s?f(e,t,s,"day"):t>=o?f(e,t,o,"hour"):t>=r?f(e,t,r,"minute"):t>=n?f(e,t,n,"second"):e+" ms"}function f(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return u(e);if("number"===n&&!1===isNaN(e))return t.long?l(e):c(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"./node_modules/multibase/src/base.js":function(e,t,n){"use strict";class r{constructor(e,t,n,r){this.name=e,this.code=t,this.alphabet=r,n&&r&&(this.engine=n(r))}encode(e){return this.engine.encode(e)}decode(e){return this.engine.decode(e)}isImplemented(){return this.engine}}e.exports=r},"./node_modules/multibase/src/base16.js":function(e,t,n){"use strict";(function(t){e.exports=function e(n){return{encode:e=>"string"==typeof e?t.from(e).toString("hex"):e.toString("hex"),decode(e){for(let t of e)if(n.indexOf(t)<0)throw new Error("invalid base16 character");return t.from(e,"hex")}}}}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/multibase/src/base32.js":function(e,t,n){"use strict";(function(t){function n(e,t){let n=(e=e.replace(new RegExp("=","g"),"")).length,r=0,o=0,s=0,i=new Uint8Array(5*n/8|0);for(let a=0;a<n;a++)o=o<<5|t.indexOf(e[a]),(r+=5)>=8&&(i[s++]=o>>>r-8&255,r-=8);return i.buffer}function r(e,t){let n=e.byteLength,r=new Uint8Array(e),o=t.indexOf("=")===t.length-1;o&&(t=t.substring(0,t.length-2));let s=0,i=0,a="";for(let e=0;e<n;e++)for(i=i<<8|r[e],s+=8;s>=5;)a+=t[i>>>s-5&31],s-=5;if(s>0&&(a+=t[i<<5-s&31]),o)for(;a.length%8!=0;)a+="=";return a}e.exports=function e(o){return{encode:e=>r("string"==typeof e?t.from(e):e,o),decode(e){for(let t of e)if(o.indexOf(t)<0)throw new Error("invalid base32 character");return n(e,o)}}}}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/multibase/src/base64.js":function(e,t,n){"use strict";(function(t){e.exports=function e(n){const r=n.indexOf("=")>-1,o=n.indexOf("-")>-1&&n.indexOf("_")>-1;return{encode(e){let n="";n="string"==typeof e?t.from(e).toString("base64"):e.toString("base64"),o&&(n=n.replace(/\+/g,"-").replace(/\//g,"_"));const s=n.indexOf("=");return s>0&&!r&&(n=n.substring(0,s)),n},decode(e){for(let t of e)if(n.indexOf(t)<0)throw new Error("invalid base64 character");return t.from(e,"base64")}}}}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/multibase/src/constants.js":function(e,t,n){"use strict";const r=n("./node_modules/multibase/src/base.js"),o=n("./node_modules/base-x/index.js"),s=n("./node_modules/multibase/src/base16.js"),i=n("./node_modules/multibase/src/base32.js"),a=n("./node_modules/multibase/src/base64.js"),u=[["base1","1","","1"],["base2","0",o,"01"],["base8","7",o,"01234567"],["base10","9",o,"0123456789"],["base16","f",s,"0123456789abcdef"],["base32","b",i,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",i,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",i,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",i,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",i,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",o,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",o,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],c=u.reduce((e,t)=>(e[t[0]]=new r(t[0],t[1],t[2],t[3]),e),{}),l=u.reduce((e,t)=>(e[t[1]]=c[t[0]],e),{});e.exports={names:c,codes:l}},"./node_modules/multibase/src/index.js":function(e,t,n){"use strict";(function(r){const o=n("./node_modules/multibase/src/constants.js");(t=e.exports=i).encode=a,t.decode=u,t.isEncoded=c,t.names=Object.freeze(Object.keys(o.names)),t.codes=Object.freeze(Object.keys(o.codes));const s=new Error("Unsupported encoding");function i(e,t){if(!t)throw new Error("requires an encoded buffer");const n=f(e),o=r.from(n.code),s=n.name;return l(s,t),r.concat([o,t])}function a(e,t){const n=f(e),o=n.name;return i(o,r.from(n.encode(t)))}function u(e){r.isBuffer(e)&&(e=e.toString());const t=e.substring(0,1);"string"==typeof(e=e.substring(1,e.length))&&(e=r.from(e));const n=f(t);return r.from(n.decode(e.toString()))}function c(e){if(r.isBuffer(e)&&(e=e.toString()),"[object String]"!==Object.prototype.toString.call(e))return!1;const t=e.substring(0,1);try{const e=f(t);return e.name}catch(e){return!1}}function l(e,t){const n=f(e);n.decode(t.toString())}function f(e){let t;if(o.names[e])t=o.names[e];else{if(!o.codes[e])throw s;t=o.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/multicodec/src/base-table.js":function(e,t,n){"use strict";(function(n){(t=e.exports).raw=n.from("55","hex"),t.base1=n.from("01","hex"),t.base2=n.from("00","hex"),t.base8=n.from("07","hex"),t.base10=n.from("09","hex"),t.cbor=n.from("51","hex"),t.protobuf=n.from("50","hex"),t.rlp=n.from("60","hex"),t.bencode=n.from("63","hex"),t.multicodec=n.from("30","hex"),t.multihash=n.from("31","hex"),t.multiaddr=n.from("32","hex"),t.multibase=n.from("33","hex"),t.md4=n.from("d4","hex"),t.md5=n.from("d5","hex"),t.sha1=n.from("11","hex"),t["sha2-256"]=n.from("12","hex"),t["sha2-512"]=n.from("13","hex"),t["dbl-sha2-256"]=n.from("56","hex"),t["sha3-224"]=n.from("17","hex"),t["sha3-256"]=n.from("16","hex"),t["sha3-384"]=n.from("15","hex"),t["sha3-512"]=n.from("14","hex"),t["shake-128"]=n.from("18","hex"),t["shake-256"]=n.from("19","hex"),t["keccak-224"]=n.from("1a","hex"),t["keccak-256"]=n.from("1b","hex"),t["keccak-384"]=n.from("1c","hex"),t["keccak-512"]=n.from("1d","hex"),t.murmur3=n.from("22","hex"),t["blake2b-8"]=n.from("b201","hex"),t["blake2b-16"]=n.from("b202","hex"),t["blake2b-24"]=n.from("b203","hex"),t["blake2b-32"]=n.from("b204","hex"),t["blake2b-40"]=n.from("b205","hex"),t["blake2b-48"]=n.from("b206","hex"),t["blake2b-56"]=n.from("b207","hex"),t["blake2b-64"]=n.from("b208","hex"),t["blake2b-72"]=n.from("b209","hex"),t["blake2b-80"]=n.from("b20a","hex"),t["blake2b-88"]=n.from("b20b","hex"),t["blake2b-96"]=n.from("b20c","hex"),t["blake2b-104"]=n.from("b20d","hex"),t["blake2b-112"]=n.from("b20e","hex"),t["blake2b-120"]=n.from("b20f","hex"),t["blake2b-128"]=n.from("b210","hex"),t["blake2b-136"]=n.from("b211","hex"),t["blake2b-144"]=n.from("b212","hex"),t["blake2b-152"]=n.from("b213","hex"),t["blake2b-160"]=n.from("b214","hex"),t["blake2b-168"]=n.from("b215","hex"),t["blake2b-176"]=n.from("b216","hex"),t["blake2b-184"]=n.from("b217","hex"),t["blake2b-192"]=n.from("b218","hex"),t["blake2b-200"]=n.from("b219","hex"),t["blake2b-208"]=n.from("b21a","hex"),t["blake2b-216"]=n.from("b21b","hex"),t["blake2b-224"]=n.from("b21c","hex"),t["blake2b-232"]=n.from("b21d","hex"),t["blake2b-240"]=n.from("b21e","hex"),t["blake2b-248"]=n.from("b21f","hex"),t["blake2b-256"]=n.from("b220","hex"),t["blake2b-264"]=n.from("b221","hex"),t["blake2b-272"]=n.from("b222","hex"),t["blake2b-280"]=n.from("b223","hex"),t["blake2b-288"]=n.from("b224","hex"),t["blake2b-296"]=n.from("b225","hex"),t["blake2b-304"]=n.from("b226","hex"),t["blake2b-312"]=n.from("b227","hex"),t["blake2b-320"]=n.from("b228","hex"),t["blake2b-328"]=n.from("b229","hex"),t["blake2b-336"]=n.from("b22a","hex"),t["blake2b-344"]=n.from("b22b","hex"),t["blake2b-352"]=n.from("b22c","hex"),t["blake2b-360"]=n.from("b22d","hex"),t["blake2b-368"]=n.from("b22e","hex"),t["blake2b-376"]=n.from("b22f","hex"),t["blake2b-384"]=n.from("b230","hex"),t["blake2b-392"]=n.from("b231","hex"),t["blake2b-400"]=n.from("b232","hex"),t["blake2b-408"]=n.from("b233","hex"),t["blake2b-416"]=n.from("b234","hex"),t["blake2b-424"]=n.from("b235","hex"),t["blake2b-432"]=n.from("b236","hex"),t["blake2b-440"]=n.from("b237","hex"),t["blake2b-448"]=n.from("b238","hex"),t["blake2b-456"]=n.from("b239","hex"),t["blake2b-464"]=n.from("b23a","hex"),t["blake2b-472"]=n.from("b23b","hex"),t["blake2b-480"]=n.from("b23c","hex"),t["blake2b-488"]=n.from("b23d","hex"),t["blake2b-496"]=n.from("b23e","hex"),t["blake2b-504"]=n.from("b23f","hex"),t["blake2b-512"]=n.from("b240","hex"),t["blake2s-8"]=n.from("b241","hex"),t["blake2s-16"]=n.from("b242","hex"),t["blake2s-24"]=n.from("b243","hex"),t["blake2s-32"]=n.from("b244","hex"),t["blake2s-40"]=n.from("b245","hex"),t["blake2s-48"]=n.from("b246","hex"),t["blake2s-56"]=n.from("b247","hex"),t["blake2s-64"]=n.from("b248","hex"),t["blake2s-72"]=n.from("b249","hex"),t["blake2s-80"]=n.from("b24a","hex"),t["blake2s-88"]=n.from("b24b","hex"),t["blake2s-96"]=n.from("b24c","hex"),t["blake2s-104"]=n.from("b24d","hex"),t["blake2s-112"]=n.from("b24e","hex"),t["blake2s-120"]=n.from("b24f","hex"),t["blake2s-128"]=n.from("b250","hex"),t["blake2s-136"]=n.from("b251","hex"),t["blake2s-144"]=n.from("b252","hex"),t["blake2s-152"]=n.from("b253","hex"),t["blake2s-160"]=n.from("b254","hex"),t["blake2s-168"]=n.from("b255","hex"),t["blake2s-176"]=n.from("b256","hex"),t["blake2s-184"]=n.from("b257","hex"),t["blake2s-192"]=n.from("b258","hex"),t["blake2s-200"]=n.from("b259","hex"),t["blake2s-208"]=n.from("b25a","hex"),t["blake2s-216"]=n.from("b25b","hex"),t["blake2s-224"]=n.from("b25c","hex"),t["blake2s-232"]=n.from("b25d","hex"),t["blake2s-240"]=n.from("b25e","hex"),t["blake2s-248"]=n.from("b25f","hex"),t["blake2s-256"]=n.from("b260","hex"),t["skein256-8"]=n.from("b301","hex"),t["skein256-16"]=n.from("b302","hex"),t["skein256-24"]=n.from("b303","hex"),t["skein256-32"]=n.from("b304","hex"),t["skein256-40"]=n.from("b305","hex"),t["skein256-48"]=n.from("b306","hex"),t["skein256-56"]=n.from("b307","hex"),t["skein256-64"]=n.from("b308","hex"),t["skein256-72"]=n.from("b309","hex"),t["skein256-80"]=n.from("b30a","hex"),t["skein256-88"]=n.from("b30b","hex"),t["skein256-96"]=n.from("b30c","hex"),t["skein256-104"]=n.from("b30d","hex"),t["skein256-112"]=n.from("b30e","hex"),t["skein256-120"]=n.from("b30f","hex"),t["skein256-128"]=n.from("b310","hex"),t["skein256-136"]=n.from("b311","hex"),t["skein256-144"]=n.from("b312","hex"),t["skein256-152"]=n.from("b313","hex"),t["skein256-160"]=n.from("b314","hex"),t["skein256-168"]=n.from("b315","hex"),t["skein256-176"]=n.from("b316","hex"),t["skein256-184"]=n.from("b317","hex"),t["skein256-192"]=n.from("b318","hex"),t["skein256-200"]=n.from("b319","hex"),t["skein256-208"]=n.from("b31a","hex"),t["skein256-216"]=n.from("b31b","hex"),t["skein256-224"]=n.from("b31c","hex"),t["skein256-232"]=n.from("b31d","hex"),t["skein256-240"]=n.from("b31e","hex"),t["skein256-248"]=n.from("b31f","hex"),t["skein256-256"]=n.from("b320","hex"),t["skein512-8"]=n.from("b321","hex"),t["skein512-16"]=n.from("b322","hex"),t["skein512-24"]=n.from("b323","hex"),t["skein512-32"]=n.from("b324","hex"),t["skein512-40"]=n.from("b325","hex"),t["skein512-48"]=n.from("b326","hex"),t["skein512-56"]=n.from("b327","hex"),t["skein512-64"]=n.from("b328","hex"),t["skein512-72"]=n.from("b329","hex"),t["skein512-80"]=n.from("b32a","hex"),t["skein512-88"]=n.from("b32b","hex"),t["skein512-96"]=n.from("b32c","hex"),t["skein512-104"]=n.from("b32d","hex"),t["skein512-112"]=n.from("b32e","hex"),t["skein512-120"]=n.from("b32f","hex"),t["skein512-128"]=n.from("b330","hex"),t["skein512-136"]=n.from("b331","hex"),t["skein512-144"]=n.from("b332","hex"),t["skein512-152"]=n.from("b333","hex"),t["skein512-160"]=n.from("b334","hex"),t["skein512-168"]=n.from("b335","hex"),t["skein512-176"]=n.from("b336","hex"),t["skein512-184"]=n.from("b337","hex"),t["skein512-192"]=n.from("b338","hex"),t["skein512-200"]=n.from("b339","hex"),t["skein512-208"]=n.from("b33a","hex"),t["skein512-216"]=n.from("b33b","hex"),t["skein512-224"]=n.from("b33c","hex"),t["skein512-232"]=n.from("b33d","hex"),t["skein512-240"]=n.from("b33e","hex"),t["skein512-248"]=n.from("b33f","hex"),t["skein512-256"]=n.from("b340","hex"),t["skein512-264"]=n.from("b341","hex"),t["skein512-272"]=n.from("b342","hex"),t["skein512-280"]=n.from("b343","hex"),t["skein512-288"]=n.from("b344","hex"),t["skein512-296"]=n.from("b345","hex"),t["skein512-304"]=n.from("b346","hex"),t["skein512-312"]=n.from("b347","hex"),t["skein512-320"]=n.from("b348","hex"),t["skein512-328"]=n.from("b349","hex"),t["skein512-336"]=n.from("b34a","hex"),t["skein512-344"]=n.from("b34b","hex"),t["skein512-352"]=n.from("b34c","hex"),t["skein512-360"]=n.from("b34d","hex"),t["skein512-368"]=n.from("b34e","hex"),t["skein512-376"]=n.from("b34f","hex"),t["skein512-384"]=n.from("b350","hex"),t["skein512-392"]=n.from("b351","hex"),t["skein512-400"]=n.from("b352","hex"),t["skein512-408"]=n.from("b353","hex"),t["skein512-416"]=n.from("b354","hex"),t["skein512-424"]=n.from("b355","hex"),t["skein512-432"]=n.from("b356","hex"),t["skein512-440"]=n.from("b357","hex"),t["skein512-448"]=n.from("b358","hex"),t["skein512-456"]=n.from("b359","hex"),t["skein512-464"]=n.from("b35a","hex"),t["skein512-472"]=n.from("b35b","hex"),t["skein512-480"]=n.from("b35c","hex"),t["skein512-488"]=n.from("b35d","hex"),t["skein512-496"]=n.from("b35e","hex"),t["skein512-504"]=n.from("b35f","hex"),t["skein512-512"]=n.from("b360","hex"),t["skein1024-8"]=n.from("b361","hex"),t["skein1024-16"]=n.from("b362","hex"),t["skein1024-24"]=n.from("b363","hex"),t["skein1024-32"]=n.from("b364","hex"),t["skein1024-40"]=n.from("b365","hex"),t["skein1024-48"]=n.from("b366","hex"),t["skein1024-56"]=n.from("b367","hex"),t["skein1024-64"]=n.from("b368","hex"),t["skein1024-72"]=n.from("b369","hex"),t["skein1024-80"]=n.from("b36a","hex"),t["skein1024-88"]=n.from("b36b","hex"),t["skein1024-96"]=n.from("b36c","hex"),t["skein1024-104"]=n.from("b36d","hex"),t["skein1024-112"]=n.from("b36e","hex"),t["skein1024-120"]=n.from("b36f","hex"),t["skein1024-128"]=n.from("b370","hex"),t["skein1024-136"]=n.from("b371","hex"),t["skein1024-144"]=n.from("b372","hex"),t["skein1024-152"]=n.from("b373","hex"),t["skein1024-160"]=n.from("b374","hex"),t["skein1024-168"]=n.from("b375","hex"),t["skein1024-176"]=n.from("b376","hex"),t["skein1024-184"]=n.from("b377","hex"),t["skein1024-192"]=n.from("b378","hex"),t["skein1024-200"]=n.from("b379","hex"),t["skein1024-208"]=n.from("b37a","hex"),t["skein1024-216"]=n.from("b37b","hex"),t["skein1024-224"]=n.from("b37c","hex"),t["skein1024-232"]=n.from("b37d","hex"),t["skein1024-240"]=n.from("b37e","hex"),t["skein1024-248"]=n.from("b37f","hex"),t["skein1024-256"]=n.from("b380","hex"),t["skein1024-264"]=n.from("b381","hex"),t["skein1024-272"]=n.from("b382","hex"),t["skein1024-280"]=n.from("b383","hex"),t["skein1024-288"]=n.from("b384","hex"),t["skein1024-296"]=n.from("b385","hex"),t["skein1024-304"]=n.from("b386","hex"),t["skein1024-312"]=n.from("b387","hex"),t["skein1024-320"]=n.from("b388","hex"),t["skein1024-328"]=n.from("b389","hex"),t["skein1024-336"]=n.from("b38a","hex"),t["skein1024-344"]=n.from("b38b","hex"),t["skein1024-352"]=n.from("b38c","hex"),t["skein1024-360"]=n.from("b38d","hex"),t["skein1024-368"]=n.from("b38e","hex"),t["skein1024-376"]=n.from("b38f","hex"),t["skein1024-384"]=n.from("b390","hex"),t["skein1024-392"]=n.from("b391","hex"),t["skein1024-400"]=n.from("b392","hex"),t["skein1024-408"]=n.from("b393","hex"),t["skein1024-416"]=n.from("b394","hex"),t["skein1024-424"]=n.from("b395","hex"),t["skein1024-432"]=n.from("b396","hex"),t["skein1024-440"]=n.from("b397","hex"),t["skein1024-448"]=n.from("b398","hex"),t["skein1024-456"]=n.from("b399","hex"),t["skein1024-464"]=n.from("b39a","hex"),t["skein1024-472"]=n.from("b39b","hex"),t["skein1024-480"]=n.from("b39c","hex"),t["skein1024-488"]=n.from("b39d","hex"),t["skein1024-496"]=n.from("b39e","hex"),t["skein1024-504"]=n.from("b39f","hex"),t["skein1024-512"]=n.from("b3a0","hex"),t["skein1024-520"]=n.from("b3a1","hex"),t["skein1024-528"]=n.from("b3a2","hex"),t["skein1024-536"]=n.from("b3a3","hex"),t["skein1024-544"]=n.from("b3a4","hex"),t["skein1024-552"]=n.from("b3a5","hex"),t["skein1024-560"]=n.from("b3a6","hex"),t["skein1024-568"]=n.from("b3a7","hex"),t["skein1024-576"]=n.from("b3a8","hex"),t["skein1024-584"]=n.from("b3a9","hex"),t["skein1024-592"]=n.from("b3aa","hex"),t["skein1024-600"]=n.from("b3ab","hex"),t["skein1024-608"]=n.from("b3ac","hex"),t["skein1024-616"]=n.from("b3ad","hex"),t["skein1024-624"]=n.from("b3ae","hex"),t["skein1024-632"]=n.from("b3af","hex"),t["skein1024-640"]=n.from("b3b0","hex"),t["skein1024-648"]=n.from("b3b1","hex"),t["skein1024-656"]=n.from("b3b2","hex"),t["skein1024-664"]=n.from("b3b3","hex"),t["skein1024-672"]=n.from("b3b4","hex"),t["skein1024-680"]=n.from("b3b5","hex"),t["skein1024-688"]=n.from("b3b6","hex"),t["skein1024-696"]=n.from("b3b7","hex"),t["skein1024-704"]=n.from("b3b8","hex"),t["skein1024-712"]=n.from("b3b9","hex"),t["skein1024-720"]=n.from("b3ba","hex"),t["skein1024-728"]=n.from("b3bb","hex"),t["skein1024-736"]=n.from("b3bc","hex"),t["skein1024-744"]=n.from("b3bd","hex"),t["skein1024-752"]=n.from("b3be","hex"),t["skein1024-760"]=n.from("b3bf","hex"),t["skein1024-768"]=n.from("b3c0","hex"),t["skein1024-776"]=n.from("b3c1","hex"),t["skein1024-784"]=n.from("b3c2","hex"),t["skein1024-792"]=n.from("b3c3","hex"),t["skein1024-800"]=n.from("b3c4","hex"),t["skein1024-808"]=n.from("b3c5","hex"),t["skein1024-816"]=n.from("b3c6","hex"),t["skein1024-824"]=n.from("b3c7","hex"),t["skein1024-832"]=n.from("b3c8","hex"),t["skein1024-840"]=n.from("b3c9","hex"),t["skein1024-848"]=n.from("b3ca","hex"),t["skein1024-856"]=n.from("b3cb","hex"),t["skein1024-864"]=n.from("b3cc","hex"),t["skein1024-872"]=n.from("b3cd","hex"),t["skein1024-880"]=n.from("b3ce","hex"),t["skein1024-888"]=n.from("b3cf","hex"),t["skein1024-896"]=n.from("b3d0","hex"),t["skein1024-904"]=n.from("b3d1","hex"),t["skein1024-912"]=n.from("b3d2","hex"),t["skein1024-920"]=n.from("b3d3","hex"),t["skein1024-928"]=n.from("b3d4","hex"),t["skein1024-936"]=n.from("b3d5","hex"),t["skein1024-944"]=n.from("b3d6","hex"),t["skein1024-952"]=n.from("b3d7","hex"),t["skein1024-960"]=n.from("b3d8","hex"),t["skein1024-968"]=n.from("b3d9","hex"),t["skein1024-976"]=n.from("b3da","hex"),t["skein1024-984"]=n.from("b3db","hex"),t["skein1024-992"]=n.from("b3dc","hex"),t["skein1024-1000"]=n.from("b3dd","hex"),t["skein1024-1008"]=n.from("b3de","hex"),t["skein1024-1016"]=n.from("b3df","hex"),t["skein1024-1024"]=n.from("b3e0","hex"),t.ip4=n.from("04","hex"),t.ip6=n.from("29","hex"),t.tcp=n.from("06","hex"),t.udp=n.from("0111","hex"),t.dccp=n.from("21","hex"),t.sctp=n.from("84","hex"),t.udt=n.from("012d","hex"),t.utp=n.from("012e","hex"),t.ipfs=n.from("01a5","hex"),t.http=n.from("01e0","hex"),t.https=n.from("01bb","hex"),t.quic=n.from("01cc","hex"),t.ws=n.from("01dd","hex"),t.onion=n.from("01bc","hex"),t["p2p-circuit"]=n.from("0122","hex"),t["git-raw"]=n.from("78","hex"),t["dag-pb"]=n.from("70","hex"),t["dag-cbor"]=n.from("71","hex"),t["git-raw"]=n.from("78","hex"),t["eth-block"]=n.from("90","hex"),t["eth-block-list"]=n.from("91","hex"),t["eth-tx-trie"]=n.from("92","hex"),t["eth-tx"]=n.from("93","hex"),t["eth-tx-receipt-trie"]=n.from("94","hex"),t["eth-tx-receipt"]=n.from("95","hex"),t["eth-state-trie"]=n.from("96","hex"),t["eth-account-snapshot"]=n.from("97","hex"),t["eth-storage-trie"]=n.from("98","hex"),t["bitcoin-block"]=n.from("b0","hex"),t["bitcoin-tx"]=n.from("b1","hex"),t["zcash-block"]=n.from("c0","hex"),t["zcash-tx"]=n.from("c1","hex"),t["stellar-block"]=n.from("d0","hex"),t["stellar-tx"]=n.from("d1","hex"),t["torrent-info"]=n.from("7b","hex"),t["torrent-file"]=n.from("7c","hex"),t["ed25519-pub"]=n.from("ed","hex")}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/multicodec/src/index.js":function(e,t,n){"use strict";(function(r){const o=n("./node_modules/varint/index.js"),s=n("./node_modules/multicodec/src/varint-table.js"),i=n("./node_modules/multicodec/src/name-table.js"),a=n("./node_modules/multicodec/src/util.js");(t=e.exports).addPrefix=((e,t)=>{let n;if(r.isBuffer(e))n=a.varintBufferEncode(e);else{if(!s[e])throw new Error("multicodec not recognized");n=s[e]}return r.concat([n,t])}),t.rmPrefix=(e=>(o.decode(e),e.slice(o.decode.bytes))),t.getCodec=(e=>{const t=a.varintBufferDecode(e),n=i[t.toString("hex")];if(void 0===n)throw new Error("Code `0x"+t.toString("hex")+"` not found");return n}),t.getCodeVarint=(e=>{const t=s[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t}),t.addCodec=((e,t)=>{s[e]=a.varintBufferEncode(t),i[t.toString("hex")]=e})}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/multicodec/src/name-table.js":function(e,t,n){"use strict";const r=n("./node_modules/multicodec/src/base-table.js"),o={};e.exports=o;for(let e in r){let t;o[r[e].toString("hex")]=e}},"./node_modules/multicodec/src/util.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/varint/index.js");function o(e){return parseInt(e.toString("hex"),16)}function s(e){let n=e.toString(16);return n.length%2==1&&(n="0"+n),t.from(n,"hex")}function i(e){return t.from(r.encode(o(e)))}function a(e){return s(r.decode(e))}e.exports={numberToBuffer:s,bufferToNumber:o,varintBufferEncode:i,varintBufferDecode:a}}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/multicodec/src/varint-table.js":function(e,t,n){"use strict";const r=n("./node_modules/multicodec/src/base-table.js"),o=n("./node_modules/multicodec/src/util.js").varintBufferEncode,s={};e.exports=s;for(let e in r){let t=r[e];s[e]=o(t)}},"./node_modules/multihashes/src/constants.js":function(e,t,n){"use strict";t.names=Object.freeze({id:0,sha1:17,"sha2-256":18,"sha2-512":19,"dbl-sha2-256":86,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"murmur3-128":34,"murmur3-32":35,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"Skein256-8":45825,"Skein256-16":45826,"Skein256-24":45827,"Skein256-32":45828,"Skein256-40":45829,"Skein256-48":45830,"Skein256-56":45831,"Skein256-64":45832,"Skein256-72":45833,"Skein256-80":45834,"Skein256-88":45835,"Skein256-96":45836,"Skein256-104":45837,"Skein256-112":45838,"Skein256-120":45839,"Skein256-128":45840,"Skein256-136":45841,"Skein256-144":45842,"Skein256-152":45843,"Skein256-160":45844,"Skein256-168":45845,"Skein256-176":45846,"Skein256-184":45847,"Skein256-192":45848,"Skein256-200":45849,"Skein256-208":45850,"Skein256-216":45851,"Skein256-224":45852,"Skein256-232":45853,"Skein256-240":45854,"Skein256-248":45855,"Skein256-256":45856,"Skein512-8":45857,"Skein512-16":45858,"Skein512-24":45859,"Skein512-32":45860,"Skein512-40":45861,"Skein512-48":45862,"Skein512-56":45863,"Skein512-64":45864,"Skein512-72":45865,"Skein512-80":45866,"Skein512-88":45867,"Skein512-96":45868,"Skein512-104":45869,"Skein512-112":45870,"Skein512-120":45871,"Skein512-128":45872,"Skein512-136":45873,"Skein512-144":45874,"Skein512-152":45875,"Skein512-160":45876,"Skein512-168":45877,"Skein512-176":45878,"Skein512-184":45879,"Skein512-192":45880,"Skein512-200":45881,"Skein512-208":45882,"Skein512-216":45883,"Skein512-224":45884,"Skein512-232":45885,"Skein512-240":45886,"Skein512-248":45887,"Skein512-256":45888,"Skein512-264":45889,"Skein512-272":45890,"Skein512-280":45891,"Skein512-288":45892,"Skein512-296":45893,"Skein512-304":45894,"Skein512-312":45895,"Skein512-320":45896,"Skein512-328":45897,"Skein512-336":45898,"Skein512-344":45899,"Skein512-352":45900,"Skein512-360":45901,"Skein512-368":45902,"Skein512-376":45903,"Skein512-384":45904,"Skein512-392":45905,"Skein512-400":45906,"Skein512-408":45907,"Skein512-416":45908,"Skein512-424":45909,"Skein512-432":45910,"Skein512-440":45911,"Skein512-448":45912,"Skein512-456":45913,"Skein512-464":45914,"Skein512-472":45915,"Skein512-480":45916,"Skein512-488":45917,"Skein512-496":45918,"Skein512-504":45919,"Skein512-512":45920,"Skein1024-8":45921,"Skein1024-16":45922,"Skein1024-24":45923,"Skein1024-32":45924,"Skein1024-40":45925,"Skein1024-48":45926,"Skein1024-56":45927,"Skein1024-64":45928,"Skein1024-72":45929,"Skein1024-80":45930,"Skein1024-88":45931,"Skein1024-96":45932,"Skein1024-104":45933,"Skein1024-112":45934,"Skein1024-120":45935,"Skein1024-128":45936,"Skein1024-136":45937,"Skein1024-144":45938,"Skein1024-152":45939,"Skein1024-160":45940,"Skein1024-168":45941,"Skein1024-176":45942,"Skein1024-184":45943,"Skein1024-192":45944,"Skein1024-200":45945,"Skein1024-208":45946,"Skein1024-216":45947,"Skein1024-224":45948,"Skein1024-232":45949,"Skein1024-240":45950,"Skein1024-248":45951,"Skein1024-256":45952,"Skein1024-264":45953,"Skein1024-272":45954,"Skein1024-280":45955,"Skein1024-288":45956,"Skein1024-296":45957,"Skein1024-304":45958,"Skein1024-312":45959,"Skein1024-320":45960,"Skein1024-328":45961,"Skein1024-336":45962,"Skein1024-344":45963,"Skein1024-352":45964,"Skein1024-360":45965,"Skein1024-368":45966,"Skein1024-376":45967,"Skein1024-384":45968,"Skein1024-392":45969,"Skein1024-400":45970,"Skein1024-408":45971,"Skein1024-416":45972,"Skein1024-424":45973,"Skein1024-432":45974,"Skein1024-440":45975,"Skein1024-448":45976,"Skein1024-456":45977,"Skein1024-464":45978,"Skein1024-472":45979,"Skein1024-480":45980,"Skein1024-488":45981,"Skein1024-496":45982,"Skein1024-504":45983,"Skein1024-512":45984,"Skein1024-520":45985,"Skein1024-528":45986,"Skein1024-536":45987,"Skein1024-544":45988,"Skein1024-552":45989,"Skein1024-560":45990,"Skein1024-568":45991,"Skein1024-576":45992,"Skein1024-584":45993,"Skein1024-592":45994,"Skein1024-600":45995,"Skein1024-608":45996,"Skein1024-616":45997,"Skein1024-624":45998,"Skein1024-632":45999,"Skein1024-640":46e3,"Skein1024-648":46001,"Skein1024-656":46002,"Skein1024-664":46003,"Skein1024-672":46004,"Skein1024-680":46005,"Skein1024-688":46006,"Skein1024-696":46007,"Skein1024-704":46008,"Skein1024-712":46009,"Skein1024-720":46010,"Skein1024-728":46011,"Skein1024-736":46012,"Skein1024-744":46013,"Skein1024-752":46014,"Skein1024-760":46015,"Skein1024-768":46016,"Skein1024-776":46017,"Skein1024-784":46018,"Skein1024-792":46019,"Skein1024-800":46020,"Skein1024-808":46021,"Skein1024-816":46022,"Skein1024-824":46023,"Skein1024-832":46024,"Skein1024-840":46025,"Skein1024-848":46026,"Skein1024-856":46027,"Skein1024-864":46028,"Skein1024-872":46029,"Skein1024-880":46030,"Skein1024-888":46031,"Skein1024-896":46032,"Skein1024-904":46033,"Skein1024-912":46034,"Skein1024-920":46035,"Skein1024-928":46036,"Skein1024-936":46037,"Skein1024-944":46038,"Skein1024-952":46039,"Skein1024-960":46040,"Skein1024-968":46041,"Skein1024-976":46042,"Skein1024-984":46043,"Skein1024-992":46044,"Skein1024-1000":46045,"Skein1024-1008":46046,"Skein1024-1016":46047,"Skein1024-1024":46048}),t.codes=Object.freeze({17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"Skein256-8",45826:"Skein256-16",45827:"Skein256-24",45828:"Skein256-32",45829:"Skein256-40",45830:"Skein256-48",45831:"Skein256-56",45832:"Skein256-64",45833:"Skein256-72",45834:"Skein256-80",45835:"Skein256-88",45836:"Skein256-96",45837:"Skein256-104",45838:"Skein256-112",45839:"Skein256-120",45840:"Skein256-128",45841:"Skein256-136",45842:"Skein256-144",45843:"Skein256-152",45844:"Skein256-160",45845:"Skein256-168",45846:"Skein256-176",45847:"Skein256-184",45848:"Skein256-192",45849:"Skein256-200",45850:"Skein256-208",45851:"Skein256-216",45852:"Skein256-224",45853:"Skein256-232",45854:"Skein256-240",45855:"Skein256-248",45856:"Skein256-256",45857:"Skein512-8",45858:"Skein512-16",45859:"Skein512-24",45860:"Skein512-32",45861:"Skein512-40",45862:"Skein512-48",45863:"Skein512-56",45864:"Skein512-64",45865:"Skein512-72",45866:"Skein512-80",45867:"Skein512-88",45868:"Skein512-96",45869:"Skein512-104",45870:"Skein512-112",45871:"Skein512-120",45872:"Skein512-128",45873:"Skein512-136",45874:"Skein512-144",45875:"Skein512-152",45876:"Skein512-160",45877:"Skein512-168",45878:"Skein512-176",45879:"Skein512-184",45880:"Skein512-192",45881:"Skein512-200",45882:"Skein512-208",45883:"Skein512-216",45884:"Skein512-224",45885:"Skein512-232",45886:"Skein512-240",45887:"Skein512-248",45888:"Skein512-256",45889:"Skein512-264",45890:"Skein512-272",45891:"Skein512-280",45892:"Skein512-288",45893:"Skein512-296",45894:"Skein512-304",45895:"Skein512-312",45896:"Skein512-320",45897:"Skein512-328",45898:"Skein512-336",45899:"Skein512-344",45900:"Skein512-352",45901:"Skein512-360",45902:"Skein512-368",45903:"Skein512-376",45904:"Skein512-384",45905:"Skein512-392",45906:"Skein512-400",45907:"Skein512-408",45908:"Skein512-416",45909:"Skein512-424",45910:"Skein512-432",45911:"Skein512-440",45912:"Skein512-448",45913:"Skein512-456",45914:"Skein512-464",45915:"Skein512-472",45916:"Skein512-480",45917:"Skein512-488",45918:"Skein512-496",45919:"Skein512-504",45920:"Skein512-512",45921:"Skein1024-8",45922:"Skein1024-16",45923:"Skein1024-24",45924:"Skein1024-32",45925:"Skein1024-40",45926:"Skein1024-48",45927:"Skein1024-56",45928:"Skein1024-64",45929:"Skein1024-72",45930:"Skein1024-80",45931:"Skein1024-88",45932:"Skein1024-96",45933:"Skein1024-104",45934:"Skein1024-112",45935:"Skein1024-120",45936:"Skein1024-128",45937:"Skein1024-136",45938:"Skein1024-144",45939:"Skein1024-152",45940:"Skein1024-160",45941:"Skein1024-168",45942:"Skein1024-176",45943:"Skein1024-184",45944:"Skein1024-192",45945:"Skein1024-200",45946:"Skein1024-208",45947:"Skein1024-216",45948:"Skein1024-224",45949:"Skein1024-232",45950:"Skein1024-240",45951:"Skein1024-248",45952:"Skein1024-256",45953:"Skein1024-264",45954:"Skein1024-272",45955:"Skein1024-280",45956:"Skein1024-288",45957:"Skein1024-296",45958:"Skein1024-304",45959:"Skein1024-312",45960:"Skein1024-320",45961:"Skein1024-328",45962:"Skein1024-336",45963:"Skein1024-344",45964:"Skein1024-352",45965:"Skein1024-360",45966:"Skein1024-368",45967:"Skein1024-376",45968:"Skein1024-384",45969:"Skein1024-392",45970:"Skein1024-400",45971:"Skein1024-408",45972:"Skein1024-416",45973:"Skein1024-424",45974:"Skein1024-432",45975:"Skein1024-440",45976:"Skein1024-448",45977:"Skein1024-456",45978:"Skein1024-464",45979:"Skein1024-472",45980:"Skein1024-480",45981:"Skein1024-488",45982:"Skein1024-496",45983:"Skein1024-504",45984:"Skein1024-512",45985:"Skein1024-520",45986:"Skein1024-528",45987:"Skein1024-536",45988:"Skein1024-544",45989:"Skein1024-552",45990:"Skein1024-560",45991:"Skein1024-568",45992:"Skein1024-576",45993:"Skein1024-584",45994:"Skein1024-592",45995:"Skein1024-600",45996:"Skein1024-608",45997:"Skein1024-616",45998:"Skein1024-624",45999:"Skein1024-632",46000:"Skein1024-640",46001:"Skein1024-648",46002:"Skein1024-656",46003:"Skein1024-664",46004:"Skein1024-672",46005:"Skein1024-680",46006:"Skein1024-688",46007:"Skein1024-696",46008:"Skein1024-704",46009:"Skein1024-712",46010:"Skein1024-720",46011:"Skein1024-728",46012:"Skein1024-736",46013:"Skein1024-744",46014:"Skein1024-752",46015:"Skein1024-760",46016:"Skein1024-768",46017:"Skein1024-776",46018:"Skein1024-784",46019:"Skein1024-792",46020:"Skein1024-800",46021:"Skein1024-808",46022:"Skein1024-816",46023:"Skein1024-824",46024:"Skein1024-832",46025:"Skein1024-840",46026:"Skein1024-848",46027:"Skein1024-856",46028:"Skein1024-864",46029:"Skein1024-872",46030:"Skein1024-880",46031:"Skein1024-888",46032:"Skein1024-896",46033:"Skein1024-904",46034:"Skein1024-912",46035:"Skein1024-920",46036:"Skein1024-928",46037:"Skein1024-936",46038:"Skein1024-944",46039:"Skein1024-952",46040:"Skein1024-960",46041:"Skein1024-968",46042:"Skein1024-976",46043:"Skein1024-984",46044:"Skein1024-992",46045:"Skein1024-1000",46046:"Skein1024-1008",46047:"Skein1024-1016",46048:"Skein1024-1024"}),t.defaultLengths=Object.freeze({17:20,18:32,19:64,86:32,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,45569:1,45570:2,45571:3,45572:4,45573:5,45574:6,45575:7,45576:8,45577:9,45578:10,45579:11,45580:12,45581:13,45582:14,45583:15,45584:16,45585:17,45586:18,45587:19,45588:20,45589:21,45590:22,45591:23,45592:24,45593:25,45594:26,45595:27,45596:28,45597:29,45598:30,45599:31,45600:32,45601:33,45602:34,45603:35,45604:36,45605:37,45606:38,45607:39,45608:40,45609:41,45610:42,45611:43,45612:44,45613:45,45614:46,45615:47,45616:48,45617:49,45618:50,45619:51,45620:52,45621:53,45622:54,45623:55,45624:56,45625:57,45626:58,45627:59,45628:60,45629:61,45630:62,45631:63,45632:64,45633:1,45634:2,45635:3,45636:4,45637:5,45638:6,45639:7,45640:8,45641:9,45642:10,45643:11,45644:12,45645:13,45646:14,45647:15,45648:16,45649:17,45650:18,45651:19,45652:20,45653:21,45654:22,45655:23,45656:24,45657:25,45658:26,45659:27,45660:28,45661:29,45662:30,45663:31,45664:32,45825:1,45826:2,45827:3,45828:4,45829:5,45830:6,45831:7,45832:8,45833:9,45834:10,45835:11,45836:12,45837:13,45838:14,45839:15,45840:16,45841:17,45842:18,45843:19,45844:20,45845:21,45846:22,45847:23,45848:24,45849:25,45850:26,45851:27,45852:28,45853:29,45854:30,45855:31,45856:32,45857:1,45858:2,45859:3,45860:4,45861:5,45862:6,45863:7,45864:8,45865:9,45866:10,45867:11,45868:12,45869:13,45870:14,45871:15,45872:16,45873:17,45874:18,45875:19,45876:20,45877:21,45878:22,45879:23,45880:24,45881:25,45882:26,45883:27,45884:28,45885:29,45886:30,45887:31,45888:32,45889:33,45890:34,45891:35,45892:36,45893:37,45894:38,45895:39,45896:40,45897:41,45898:42,45899:43,45900:44,45901:45,45902:46,45903:47,45904:48,45905:49,45906:50,45907:51,45908:52,45909:53,45910:54,45911:55,45912:56,45913:57,45914:58,45915:59,45916:60,45917:61,45918:62,45919:63,45920:64,45921:1,45922:2,45923:3,45924:4,45925:5,45926:6,45927:7,45928:8,45929:9,45930:10,45931:11,45932:12,45933:13,45934:14,45935:15,45936:16,45937:17,45938:18,45939:19,45940:20,45941:21,45942:22,45943:23,45944:24,45945:25,45946:26,45947:27,45948:28,45949:29,45950:30,45951:31,45952:32,45953:33,45954:34,45955:35,45956:36,45957:37,45958:38,45959:39,45960:40,45961:41,45962:42,45963:43,45964:44,45965:45,45966:46,45967:47,45968:48,45969:49,45970:50,45971:51,45972:52,45973:53,45974:54,45975:55,45976:56,45977:57,45978:58,45979:59,45980:60,45981:61,45982:62,45983:63,45984:64,45985:65,45986:66,45987:67,45988:68,45989:69,45990:70,45991:71,45992:72,45993:73,45994:74,45995:75,45996:76,45997:77,45998:78,45999:79,46000:80,46001:81,46002:82,46003:83,46004:84,46005:85,46006:86,46007:87,46008:88,46009:89,46010:90,46011:91,46012:92,46013:93,46014:94,46015:95,46016:96,46017:97,46018:98,46019:99,46020:100,46021:101,46022:102,46023:103,46024:104,46025:105,46026:106,46027:107,46028:108,46029:109,46030:110,46031:111,46032:112,46033:113,46034:114,46035:115,46036:116,46037:117,46038:118,46039:119,46040:120,46041:121,46042:122,46043:123,46044:124,46045:125,46046:126,46047:127,46048:128})},"./node_modules/multihashes/src/index.js":function(e,t,n){"use strict";(function(e){const r=n("./node_modules/bs58/index.js"),o=n("./node_modules/multihashes/src/constants.js");t.names=o.names,t.codes=o.codes,t.defaultLengths=o.defaultLengths;const s=n("./node_modules/varint/index.js");function i(e){t.decode(e)}t.toHexString=function t(n){if(!e.isBuffer(n))throw new Error("must be passed a buffer");return n.toString("hex")},t.fromHexString=function t(n){return e.from(n,"hex")},t.toB58String=function t(n){if(!e.isBuffer(n))throw new Error("must be passed a buffer");return r.encode(n)},t.fromB58String=function t(n){let o=n;return e.isBuffer(n)&&(o=n.toString()),e.from(r.decode(o))},t.decode=function n(r){if(!e.isBuffer(r))throw new Error("multihash must be a Buffer");if(r.length<3)throw new Error("multihash too short. must be > 3 bytes.");let i=s.decode(r);if(!t.isValidCode(i))throw new Error(`multihash unknown function code: 0x${i.toString(16)}`);r=r.slice(s.decode.bytes);let a=s.decode(r);if(a<1)throw new Error(`multihash invalid length: 0x${a.toString(16)}`);if((r=r.slice(s.decode.bytes)).length!==a)throw new Error(`multihash length inconsistent: 0x${r.toString("hex")}`);return{code:i,name:o.codes[i],length:a,digest:r}},t.encode=function n(r,o,i){if(!r||!o)throw new Error("multihash encode requires at least two args: digest, code");const a=t.coerceCode(o);if(!e.isBuffer(r))throw new Error("digest should be a Buffer");if(null==i&&(i=r.length),i&&r.length!==i)throw new Error("digest length should be equal to specified length.");return e.concat([e.from(s.encode(a)),e.from(s.encode(i)),r])},t.coerceCode=function e(n){let r=n;if("string"==typeof n){if(!o.names[n])throw new Error(`Unrecognized hash function named: ${n}`);r=o.names[n]}if("number"!=typeof r)throw new Error(`Hash function code should be a number. Got: ${r}`);if(!o.codes[r]&&!t.isAppCode(r))throw new Error(`Unrecognized function code: ${r}`);return r},t.isAppCode=function e(t){return t>0&&t<16},t.isValidCode=function e(n){return!!t.isAppCode(n)||!!o.codes[n]},t.validate=i,t.prefix=function e(t){return i(t),t.slice(0,2)}}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/multihashing-async/src/blake.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/blakejs/index.js"),o=n("./node_modules/multihashing-async/src/utils.js").toCallback,s=45569,i=45633,a={init:r.blake2bInit,update:r.blake2bUpdate,digest:r.blake2bFinal},u={init:r.blake2sInit,update:r.blake2sUpdate,digest:r.blake2sFinal},c=(e,n)=>o(r=>{const o=n.init(e,null);return n.update(o,r),t.from(n.digest(o))});e.exports=(e=>{for(let t=0;t<64;t++)e[s+t]=c(t+1,a);for(let t=0;t<32;t++)e[i+t]=c(t+1,u)})}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/multihashing-async/src/crypto-sha1-2-browser.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/nodeify/index.js"),o=s();function s(){return self.crypto?self.crypto.subtle||self.crypto.webkitSubtle:self.msCrypto?self.msCrypto.subtle:void 0}function i(e){if(!o)throw new Error("Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context");return(n,s)=>{const i=o.digest({name:e},n);if("function"!=typeof i.then)return i.onerror=(()=>{s(new Error(`hashing data using ${e}`))}),void(i.oncomplete=(e=>{s(null,e.target.result)}));r(i.then(e=>t.from(new Uint8Array(e))),s)}}function a(e,t){i("SHA-1")(e,t)}function u(e,t){i("SHA-256")(e,t)}function c(e,t){i("SHA-512")(e,t)}e.exports={sha1:a,sha2256:u,sha2512:c}}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/multihashing-async/src/crypto.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/js-sha3/src/sha3.js"),o=n("./node_modules/murmurhash3js/index.js"),s=n("./node_modules/multihashing-async/src/utils.js"),i=n("./node_modules/multihashing-async/src/crypto-sha1-2-browser.js"),a=s.toCallback,u=s.toBuf,c=s.fromString,l=s.fromNumberTo32BitBuf,f=(e,n)=>{i.sha2256(e,(e,r)=>{e&&n(e),i.sha2256(t.from(r),n)})};e.exports={sha1:i.sha1,sha2256:i.sha2256,sha2512:i.sha2512,sha3512:a(u(r.sha3_512)),sha3384:a(u(r.sha3_384)),sha3256:a(u(r.sha3_256)),sha3224:a(u(r.sha3_224)),shake128:a(u(r.shake_128,128)),shake256:a(u(r.shake_256,256)),keccak224:a(u(r.keccak_224)),keccak256:a(u(r.keccak_256)),keccak384:a(u(r.keccak_384)),keccak512:a(u(r.keccak_512)),murmur3128:a(u(c(o.x64.hash128))),murmur332:a(l(c(o.x86.hash32))),addBlake:n("./node_modules/multihashing-async/src/blake.js"),dblSha2256:f}}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/multihashing-async/src/index.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/multihashes/src/index.js"),o=n("./node_modules/multihashing-async/src/crypto.js");function s(e,t,n,o){if("function"==typeof n&&(o=n,n=void 0),!o)throw new Error("Missing callback");s.digest(e,t,n,(e,s)=>{if(e)return o(e);o(null,r.encode(s,t,n))})}e.exports=s,s.Buffer=t,s.multihash=r,s.digest=function(e,t,n,r){if("function"==typeof n&&(r=n,n=void 0),!r)throw new Error("Missing callback");let o=r,i;n&&(o=((e,t)=>{if(e)return r(e);r(null,t.slice(0,n))}));try{i=s.createHash(t)}catch(e){return o(e)}i(e,o)},s.createHash=function(e){if(e=r.coerceCode(e),!s.functions[e])throw new Error("multihash function "+e+" not yet supported");return s.functions[e]},s.functions={17:o.sha1,18:o.sha2256,19:o.sha2512,20:o.sha3512,21:o.sha3384,22:o.sha3256,23:o.sha3224,24:o.shake128,25:o.shake256,26:o.keccak224,27:o.keccak256,28:o.keccak384,29:o.keccak512,34:o.murmur3128,35:o.murmur332,86:o.dblSha2256},o.addBlake(s.functions)}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/multihashing-async/src/utils.js":function(e,t,n){"use strict";(function(e){const r=n("./node_modules/async/setImmediate.js");t.toCallback=(e=>(function(t,n){const o=(e,t)=>r(()=>{n(e,t)});let s;try{s=e(t)}catch(e){return void o(e)}o(null,s)})),t.toBuf=((t,n)=>r=>{let o=t(r,n);return e.from(o,"hex")}),t.fromString=((t,n)=>r=>{const o=e.isBuffer(r)?r.toString():r;return t(o,n)}),t.fromNumberTo32BitBuf=((t,n)=>r=>{let o=t(r,n);const s=new Array(4);for(let e=0;e<4;e++)s[e]=255&o,o>>=8;return e.from(s)})}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/murmurhash3js/index.js":function(e,t,n){e.exports=n("./node_modules/murmurhash3js/lib/murmurHash3js.js")},"./node_modules/murmurhash3js/lib/murmurHash3js.js":function(e,t,n){!function(n,r){"use strict";var o={version:"3.0.1",x86:{},x64:{}};function s(e,t){return(65535&e)*t+(((e>>>16)*t&65535)<<16)}function i(e,t){return e<<t|e>>>32-t}function a(e){return e=s(e^=e>>>16,2246822507),e=s(e^=e>>>13,3266489909),e^=e>>>16}function u(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function c(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function l(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function f(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function d(e,t){return[e[0]^t[0],e[1]^t[1]]}function h(e){return e=d(e=c(e=d(e=c(e=d(e,[0,e[0]>>>1]),[4283543511,3981806797]),[0,e[0]>>>1]),[3301882366,444984403]),[0,e[0]>>>1])}o.x86.hash32=function(e,t){e=e||"",t=t||0;for(var n=e.length%4,r=e.length-n,o=t,u=0,c=3432918353,l=461845907,f=0;f<r;f+=4)o=s(o=i(o^=u=s(u=i(u=s(u=255&e.charCodeAt(f)|(255&e.charCodeAt(f+1))<<8|(255&e.charCodeAt(f+2))<<16|(255&e.charCodeAt(f+3))<<24,c),15),l),13),5)+3864292196;switch(u=0,n){case 3:u^=(255&e.charCodeAt(f+2))<<16;case 2:u^=(255&e.charCodeAt(f+1))<<8;case 1:o^=u=s(u=i(u=s(u^=255&e.charCodeAt(f),c),15),l)}return(o=a(o^=e.length))>>>0},o.x86.hash128=function(e,t){e=e||"",t=t||0;for(var n=e.length%16,r=e.length-n,o=t,u=t,c=t,l=t,f=0,d=0,h=0,p=0,m=597399067,b=2869860233,y=951274213,g=2716044179,_=0;_<r;_+=16)f=255&e.charCodeAt(_)|(255&e.charCodeAt(_+1))<<8|(255&e.charCodeAt(_+2))<<16|(255&e.charCodeAt(_+3))<<24,d=255&e.charCodeAt(_+4)|(255&e.charCodeAt(_+5))<<8|(255&e.charCodeAt(_+6))<<16|(255&e.charCodeAt(_+7))<<24,h=255&e.charCodeAt(_+8)|(255&e.charCodeAt(_+9))<<8|(255&e.charCodeAt(_+10))<<16|(255&e.charCodeAt(_+11))<<24,p=255&e.charCodeAt(_+12)|(255&e.charCodeAt(_+13))<<8|(255&e.charCodeAt(_+14))<<16|(255&e.charCodeAt(_+15))<<24,o=i(o^=f=s(f=i(f=s(f,m),15),b),19),o=s(o+=u,5)+1444728091,u=i(u^=d=s(d=i(d=s(d,b),16),y),17),u=s(u+=c,5)+197830471,c=i(c^=h=s(h=i(h=s(h,y),17),g),15),c=s(c+=l,5)+2530024501,l=i(l^=p=s(p=i(p=s(p,g),18),m),13),l=s(l+=o,5)+850148119;switch(f=0,d=0,h=0,p=0,n){case 15:p^=e.charCodeAt(_+14)<<16;case 14:p^=e.charCodeAt(_+13)<<8;case 13:l^=p=s(p=i(p=s(p^=e.charCodeAt(_+12),g),18),m);case 12:h^=e.charCodeAt(_+11)<<24;case 11:h^=e.charCodeAt(_+10)<<16;case 10:h^=e.charCodeAt(_+9)<<8;case 9:c^=h=s(h=i(h=s(h^=e.charCodeAt(_+8),y),17),g);case 8:d^=e.charCodeAt(_+7)<<24;case 7:d^=e.charCodeAt(_+6)<<16;case 6:d^=e.charCodeAt(_+5)<<8;case 5:u^=d=s(d=i(d=s(d^=e.charCodeAt(_+4),b),16),y);case 4:f^=e.charCodeAt(_+3)<<24;case 3:f^=e.charCodeAt(_+2)<<16;case 2:f^=e.charCodeAt(_+1)<<8;case 1:o^=f=s(f=i(f=s(f^=e.charCodeAt(_),m),15),b)}return o^=e.length,o+=u^=e.length,o+=c^=e.length,u+=o+=l^=e.length,c+=o,l+=o,o=a(o),o+=u=a(u),o+=c=a(c),u+=o+=l=a(l),c+=o,l+=o,("00000000"+(o>>>0).toString(16)).slice(-8)+("00000000"+(u>>>0).toString(16)).slice(-8)+("00000000"+(c>>>0).toString(16)).slice(-8)+("00000000"+(l>>>0).toString(16)).slice(-8)},o.x64.hash128=function(e,t){e=e||"",t=t||0;for(var n=e.length%16,r=e.length-n,o=[0,t],s=[0,t],i=[0,0],a=[0,0],p=[2277735313,289559509],m=[1291169091,658871167],b=0;b<r;b+=16)i=[255&e.charCodeAt(b+4)|(255&e.charCodeAt(b+5))<<8|(255&e.charCodeAt(b+6))<<16|(255&e.charCodeAt(b+7))<<24,255&e.charCodeAt(b)|(255&e.charCodeAt(b+1))<<8|(255&e.charCodeAt(b+2))<<16|(255&e.charCodeAt(b+3))<<24],a=[255&e.charCodeAt(b+12)|(255&e.charCodeAt(b+13))<<8|(255&e.charCodeAt(b+14))<<16|(255&e.charCodeAt(b+15))<<24,255&e.charCodeAt(b+8)|(255&e.charCodeAt(b+9))<<8|(255&e.charCodeAt(b+10))<<16|(255&e.charCodeAt(b+11))<<24],o=u(c(o=u(o=l(o=d(o,i=c(i=l(i=c(i,p),31),m)),27),s),[0,5]),[0,1390208809]),s=u(c(s=u(s=l(s=d(s,a=c(a=l(a=c(a,m),33),p)),31),o),[0,5]),[0,944331445]);switch(i=[0,0],a=[0,0],n){case 15:a=d(a,f([0,e.charCodeAt(b+14)],48));case 14:a=d(a,f([0,e.charCodeAt(b+13)],40));case 13:a=d(a,f([0,e.charCodeAt(b+12)],32));case 12:a=d(a,f([0,e.charCodeAt(b+11)],24));case 11:a=d(a,f([0,e.charCodeAt(b+10)],16));case 10:a=d(a,f([0,e.charCodeAt(b+9)],8));case 9:s=d(s,a=c(a=l(a=c(a=d(a,[0,e.charCodeAt(b+8)]),m),33),p));case 8:i=d(i,f([0,e.charCodeAt(b+7)],56));case 7:i=d(i,f([0,e.charCodeAt(b+6)],48));case 6:i=d(i,f([0,e.charCodeAt(b+5)],40));case 5:i=d(i,f([0,e.charCodeAt(b+4)],32));case 4:i=d(i,f([0,e.charCodeAt(b+3)],24));case 3:i=d(i,f([0,e.charCodeAt(b+2)],16));case 2:i=d(i,f([0,e.charCodeAt(b+1)],8));case 1:o=d(o,i=c(i=l(i=c(i=d(i,[0,e.charCodeAt(b)]),p),31),m))}return o=d(o,[0,e.length]),s=u(s=d(s,[0,e.length]),o=u(o,s)),o=h(o),s=u(s=h(s),o=u(o,s)),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)},e.exports&&(t=e.exports=o),t.murmurHash3=o}(this)},"./node_modules/node-libs-browser/node_modules/punycode/punycode.js":function(e,t,n){(function(e,r){var o;!function(s){var i=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,u="object"==typeof r&&r;u.global!==u&&u.window!==u&&u.self!==u||(s=u);var c,l=2147483647,f=36,d=1,h=26,p=38,m=700,b=72,y=128,g="-",_=/^xn--/,v=/[^\x20-\x7E]/,k=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=f-d,j=Math.floor,S=String.fromCharCode,E;function A(e){throw new RangeError(w[e])}function O(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function T(e,t){var n=e.split("@"),r="",o,s;return n.length>1&&(r=n[0]+"@",e=n[1]),r+O((e=e.replace(k,".")).split("."),t).join(".")}function I(e){for(var t=[],n=0,r=e.length,o,s;n<r;)(o=e.charCodeAt(n++))>=55296&&o<=56319&&n<r?56320==(64512&(s=e.charCodeAt(n++)))?t.push(((1023&o)<<10)+(1023&s)+65536):(t.push(o),n--):t.push(o);return t}function N(e){return O(e,function(e){var t="";return e>65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function B(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:f}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function R(e,t,n){var r=0;for(e=n?j(e/m):e>>1,e+=j(e/t);e>x*h>>1;r+=f)e=j(e/x);return j(r+(x+1)*e/(e+p))}function F(e){var t=[],n=e.length,r,o=0,s=y,i=b,a,u,c,p,m,_,v,k,w;for((a=e.lastIndexOf(g))<0&&(a=0),u=0;u<a;++u)e.charCodeAt(u)>=128&&A("not-basic"),t.push(e.charCodeAt(u));for(c=a>0?a+1:0;c<n;){for(p=o,m=1,_=f;c>=n&&A("invalid-input"),((v=B(e.charCodeAt(c++)))>=f||v>j((l-o)/m))&&A("overflow"),o+=v*m,!(v<(k=_<=i?d:_>=i+h?h:_-i));_+=f)m>j(l/(w=f-k))&&A("overflow"),m*=w;i=R(o-p,r=t.length+1,0==p),j(o/r)>l-s&&A("overflow"),s+=j(o/r),o%=r,t.splice(o++,0,s)}return N(t)}function P(e){var t,n,r,o,s,i,a,u,c,p,m,_=[],v,k,w,x;for(v=(e=I(e)).length,t=y,n=0,s=b,i=0;i<v;++i)(m=e[i])<128&&_.push(S(m));for(r=o=_.length,o&&_.push(g);r<v;){for(a=l,i=0;i<v;++i)(m=e[i])>=t&&m<a&&(a=m);for(a-t>j((l-n)/(k=r+1))&&A("overflow"),n+=(a-t)*k,t=a,i=0;i<v;++i)if((m=e[i])<t&&++n>l&&A("overflow"),m==t){for(u=n,c=f;!(u<(p=c<=s?d:c>=s+h?h:c-s));c+=f)x=u-p,w=f-p,_.push(S(C(p+x%w,0))),u=j(x/w);_.push(S(C(u,0))),s=R(n,k,r==o),n=0,++r}++n,++t}return _.join("")}function M(e){return T(e,function(e){return _.test(e)?F(e.slice(4).toLowerCase()):e})}function L(e){return T(e,function(e){return v.test(e)?"xn--"+P(e):e})}c={version:"1.4.1",ucs2:{decode:I,encode:N},decode:F,encode:P,toASCII:L,toUnicode:M},void 0===(o=function(){return c}.call(t,n,t,e))||(e.exports=o)}(this)}).call(this,n("./node_modules/webpack/buildin/module.js")(e),n("./node_modules/webpack/buildin/global.js"))},"./node_modules/nodeify/index.js":function(e,t,n){(function(t,r){var o=n("./node_modules/promise/index.js"),s=n("./node_modules/is-promise/index.js"),i;function a(e,t){return"function"!=typeof t?e:e.then(function(e){i(function(){t(null,e)})},function(e){i(function(){t(e)})})}function u(e){return a(this,e)}function c(e){if(e&&s(e)){e.nodeify=u;var t=e.then;return e.then=function(){return c(t.apply(this,arguments))},e}"function"==typeof e?e.prototype.nodeify=u:o.prototype.nodeify=u}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),c(this)}i="function"==typeof t?t:"object"==typeof r&&r&&r.nextTick?r.nextTick:function(e){setTimeout(e,0)},e.exports=a,a.extend=c,a.Promise=l,l.prototype=Object.create(o.prototype),l.prototype.constructor=l}).call(this,n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/process/browser.js"))},"./node_modules/os-browserify/browser.js":function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}},"./node_modules/path-browserify/index.js":function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return r.exec(e).slice(1)};function s(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var i=o>=0?arguments[o]:e.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,r="/"===i.charAt(0))}return t=n(s(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),o="/"===i(e,-1);return(e=n(s(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(s(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),s=r(n.split("/")),i=Math.min(o.length,s.length),a=i,u=0;u<i;u++)if(o[u]!==s[u]){a=u;break}for(var c=[],u=a;u<o.length;u++)c.push("..");return(c=c.concat(s.slice(a))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=o(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},t.basename=function(e,t){var n=o(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return o(e)[3]};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/process-nextick-args/index.js":function(e,t,n){"use strict";(function(t){function n(e,n,r,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var s=arguments.length,i,a;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function t(){e.call(null,n)});case 3:return t.nextTick(function t(){e.call(null,n,r)});case 4:return t.nextTick(function t(){e.call(null,n,r,o)});default:for(i=new Array(s-1),a=0;a<i.length;)i[a++]=arguments[a];return t.nextTick(function t(){e.apply(null,i)})}}!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:n}:e.exports=t}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/process/browser.js":function(e,t){var n=e.exports={},r,o;function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function u(e){if(o===clearTimeout)return clearTimeout(e);if((o===i||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{o="function"==typeof clearTimeout?clearTimeout:i}catch(e){o=i}}();var c=[],l=!1,f,d=-1;function h(){l&&f&&(l=!1,f.length?c=f.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=a(h);l=!0;for(var t=c.length;t;){for(f=c,c=[];++d<t;)f&&f[d].run();d=-1,t=c.length}f=null,l=!1,u(e)}}function m(e,t){this.fun=e,this.array=t}function b(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||l||a(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=b,n.addListener=b,n.once=b,n.off=b,n.removeListener=b,n.removeAllListeners=b,n.emit=b,n.prependListener=b,n.prependOnceListener=b,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},"./node_modules/promise/index.js":function(e,t,n){(function(t){var r=n("./node_modules/is-promise/index.js"),o;o="function"==typeof setImediate?setImediate:"object"==typeof t&&t&&t.nextTick?t.nextTick:function(e){setTimeout(e,0)};var s=[];function i(e){if(!(this instanceof i))return"function"==typeof e?new i(e):a();var t=!1,n=!1,u,c=[],l=!1;function f(e){c.length?(l=!0,c.shift()(e||!1)):l=!1}function d(e,r){return new i(function(s){function i(t){var i=n?e:r;if("function"==typeof i){function a(){var e;try{e=i(u)}catch(e){return s.reject(e),f()}s.fulfill(e),f(!0)}t?a():o(a)}else n?(s.fulfill(u),f(t)):(s.reject(u),f(t))}c.push(i),t&&!l&&f()})}this.then=d,function(){function o(e){t||(r(e)?e.then(o,i):(t=n=!0,u=e,f()))}function i(e){t||(t=!0,n=!1,u=e,f())}for(var a={fulfill:o,reject:i},c=0;c<s.length;c++)s[c](this,a);if("function"==typeof e)try{e(a)}catch(e){a.reject(e)}}()}function a(){var e,t=new i(function(t){e=t});return{resolver:e,promise:t}}e.exports=i,i.use=function(e){s.push(e)}}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/protocol-buffers-schema/index.js":function(e,t,n){var r=n("./node_modules/protocol-buffers-schema/parse.js"),o=n("./node_modules/protocol-buffers-schema/stringify.js");e.exports=r,e.exports.parse=r,e.exports.stringify=o},"./node_modules/protocol-buffers-schema/parse.js":function(e,t,n){var r=n("./node_modules/protocol-buffers-schema/tokenize.js"),o=536870911,s=["int32","int64","uint32","uint64","sint32","sint64","bool","fixed64","sfixed64","double","fixed32","sfixed32","float"],i=function(e){for(var t={};e.length;)switch(e[0]){case"[":case",":e.shift();var n=e.shift();if("("===n&&(n=e.shift(),e.shift()),"="!==e[0])throw new Error("Unexpected token in field options: "+e[0]);if(e.shift(),"]"===e[0])throw new Error("Unexpected ] in field option");t[n]=e.shift();break;case"]":return e.shift(),t;default:throw new Error("Unexpected token in field options: "+e[0])}throw new Error("No closing tag for field options")},a=function(e){for(var t={name:null,type:null,tag:-1,map:null,oneof:null,required:!1,repeated:!1,options:{}};e.length;)switch(e[0]){case"=":e.shift(),t.tag=Number(e.shift());break;case"map":if(t.type="map",t.map={from:null,to:null},e.shift(),"<"!==e[0])throw new Error("Unexpected token in map type: "+e[0]);if(e.shift(),t.map.from=e.shift(),","!==e[0])throw new Error("Unexpected token in map type: "+e[0]);if(e.shift(),t.map.to=e.shift(),">"!==e[0])throw new Error("Unexpected token in map type: "+e[0]);e.shift(),t.name=e.shift();break;case"repeated":case"required":case"optional":var n=e.shift();t.required="required"===n,t.repeated="repeated"===n,t.type=e.shift(),t.name=e.shift();break;case"[":t.options=i(e);break;case";":if(null===t.name)throw new Error("Missing field name");if(null===t.type)throw new Error("Missing type in message field: "+t.name);if(-1===t.tag)throw new Error("Missing tag number in message field: "+t.name);return e.shift(),t;default:throw new Error("Unexpected token in message field: "+e[0])}throw new Error("No ; found for message field")},u=function(e){for(var t={enums:[],messages:[],fields:[],extends:[],extensions:null};e.length;)switch(e[0]){case"map":case"repeated":case"optional":case"required":t.fields.push(a(e));break;case"enum":t.enums.push(m(e));break;case"message":t.messages.push(f(e));break;case"extensions":t.extensions=l(e);break;case"oneof":e.shift();var n=e.shift();if("{"!==e[0])throw new Error("Unexpected token in oneof: "+e[0]);for(e.shift();"}"!==e[0];){e.unshift("optional");var r=a(e);r.oneof=n,t.fields.push(r)}e.shift();break;case"extend":t.extends.push(c(e));break;case";":e.shift();break;case"reserved":case"option":for(e.shift();";"!==e[0];)e.shift();break;default:e.unshift("optional"),t.fields.push(a(e))}return t},c=function(e){var t;return{name:e[1],message:f(e)}},l=function(e){e.shift();var t=Number(e.shift());if(isNaN(t))throw new Error("Invalid from in extensions definition");if("to"!==e.shift())throw new Error("Expected keyword 'to' in extensions definition");var n=e.shift();if("max"===n&&(n=536870911),n=Number(n),isNaN(n))throw new Error("Invalid to in extensions definition");if(";"!==e.shift())throw new Error("Missing ; in extensions definition");return{from:t,to:n}},f=function(e){e.shift();var t=1,n=[],r={name:e.shift(),enums:[],extends:[],messages:[],fields:[]};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);for(e.shift();e.length;){if("{"===e[0]?t++:"}"===e[0]&&t--,!t)return e.shift(),n=u(n),r.enums=n.enums,r.messages=n.messages,r.fields=n.fields,r.extends=n.extends,r.extensions=n.extensions,r;n.push(e.shift())}if(t)throw new Error("No closing tag for message")},d=function(e){e.shift();var t=e.shift();if(";"!==e[0])throw new Error("Expected ; but found "+e[0]);return e.shift(),t},h=function(e){if(e.shift(),"="!==e[0])throw new Error("Expected = but found "+e[0]);e.shift();var t=e.shift();switch(t){case'"proto2"':t=2;break;case'"proto3"':t=3;break;default:throw new Error("Expected protobuf syntax version but found "+t)}if(";"!==e[0])throw new Error("Expected ; but found "+e[0]);return e.shift(),t},p=function(e){if(e.length<4)throw new Error("Invalid enum value: "+e.slice(0,3).join(" "));if("="!==e[1])throw new Error("Expected = but found "+e[1]);if(";"!==e[3]&&"["!==e[3])throw new Error("Expected ; or [ but found "+e[1]);var t=e.shift();e.shift();var n={value:null,options:{}};return n.value=Number(e.shift()),"["===e[0]&&(n.options=i(e)),e.shift(),{name:t,val:n}},m=function(e){e.shift();var t={},n={name:e.shift(),values:{},options:{}};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);for(e.shift();e.length;){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),n;if("option"!==e[0]){var r=p(e);n.values[r.name]=r.val}else t=b(e),n.options[t.name]=t.value}throw new Error("No closing tag for enum")},b=function(e){for(var t=null,n=null,r=function(e){return"true"===e||"false"!==e&&e.replace(/^"+|"+$/gm,"")};e.length;){if(";"===e[0])return e.shift(),{name:t,value:n};switch(e[0]){case"option":e.shift();var o="("===e[0];if(o&&e.shift(),t=e.shift(),o){if(")"!==e[0])throw new Error("Expected ) but found "+e[0]);e.shift()}"."===e[0][0]&&(t+=e.shift());break;case"=":if(e.shift(),null===t)throw new Error("Expected key for option with value: "+e[0]);if(n=r(e.shift()),"optimize_for"===t&&!/^(SPEED|CODE_SIZE|LITE_RUNTIME)$/.test(n))throw new Error("Unexpected value for option optimize_for: "+n);"{"===n&&(n=y(e));break;default:throw new Error("Unexpected token in option: "+e[0])}}},y=function(e){for(var t=function(e){return"true"===e||"false"!==e&&e.replace(/^"+|"+$/gm,"")},n={};e.length;){if("}"===e[0])return e.shift(),n;var r="("===e[0];r&&e.shift();var o=e.shift();if(r){if(")"!==e[0])throw new Error("Expected ) but found "+e[0]);e.shift()}var s=null;switch(e[0]){case":":if(void 0!==n[o])throw new Error("Duplicate option map key "+o);e.shift(),"{"===(s=t(e.shift()))&&(s=y(e)),n[o]=s,";"===e[0]&&e.shift();break;case"{":if(e.shift(),s=y(e),void 0===n[o]&&(n[o]=[]),!Array.isArray(n[o]))throw new Error("Duplicate option map key "+o);n[o].push(s);break;default:throw new Error("Unexpected token in option map: "+e[0])}}throw new Error("No closing tag for option map")},g=function(e){e.shift();var t=e.shift().replace(/^"+|"+$/gm,"");if(";"!==e[0])throw new Error("Unexpected token: "+e[0]+'. Expected ";"');return e.shift(),t},_=function(e){e.shift();var t={name:e.shift(),methods:[],options:{}};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);for(e.shift();e.length;){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),t;switch(e[0]){case"option":var n=b(e);if(void 0!==t.options[n.name])throw new Error("Duplicate option "+n.name);t.options[n.name]=n.value;break;case"rpc":t.methods.push(v(e));break;default:throw new Error("Unexpected token in service: "+e[0])}}throw new Error("No closing tag for service")},v=function(e){e.shift();var t={name:e.shift(),input_type:null,output_type:null,client_streaming:!1,server_streaming:!1,options:{}};if("("!==e[0])throw new Error("Expected ( but found "+e[0]);if(e.shift(),"stream"===e[0]&&(e.shift(),t.client_streaming=!0),t.input_type=e.shift(),")"!==e[0])throw new Error("Expected ) but found "+e[0]);if(e.shift(),"returns"!==e[0])throw new Error("Expected returns but found "+e[0]);if(e.shift(),"("!==e[0])throw new Error("Expected ( but found "+e[0]);if(e.shift(),"stream"===e[0]&&(e.shift(),t.server_streaming=!0),t.output_type=e.shift(),")"!==e[0])throw new Error("Expected ) but found "+e[0]);if(e.shift(),";"===e[0])return e.shift(),t;if("{"!==e[0])throw new Error("Expected { but found "+e[0]);for(e.shift();e.length;){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),t;if("option"!==e[0])throw new Error("Unexpected token in rpc options: "+e[0]);var n=b(e);if(void 0!==t.options[n.name])throw new Error("Duplicate option "+n.name);t.options[n.name]=n.value}throw new Error("No closing tag for rpc")},k=function(e){for(var t=r(e.toString()),n=0;n<t.length;n++){var o;if(/^("|')([^'"]*)$/.test(t[n]))for(o=1===t[n].length?n+1:n;o<t.length;o++)if(/^([^'"]*)("|')$/.test(t[o])){t=t.slice(0,n).concat(t.slice(n,o+1).join("")).concat(t.slice(o+1));break}}for(var i={syntax:3,package:null,imports:[],enums:[],messages:[],options:{},extends:[]},a=!0;t.length;){switch(t[0]){case"package":i.package=d(t);break;case"syntax":if(!a)throw new Error("Protobuf syntax version should be first thing in file");i.syntax=h(t);break;case"message":i.messages.push(f(t));break;case"enum":i.enums.push(m(t));break;case"option":var u=b(t);if(i.options[u.name])throw new Error("Duplicate option "+u.name);i.options[u.name]=u.value;break;case"import":i.imports.push(g(t));break;case"extend":i.extends.push(c(t));break;case"service":i.services||(i.services=[]),i.services.push(_(t));break;default:throw new Error("Unexpected token: "+t[0])}a=!1}return i.extends.forEach(function(e){i.messages.forEach(function(t){t.name===e.name&&e.message.fields.forEach(function(e){if(!t.extensions||e.tag<t.extensions.from||e.tag>t.extensions.to)throw new Error(t.name+" does not declare "+e.tag+" as an extension number");t.fields.push(e)})})}),i.messages.forEach(function(e){e.fields.forEach(function(t){var n,r,o,a;function u(e){return e.name===t.type}function c(e){return e.name===o}if(t.options&&"true"===t.options.packed&&-1===s.indexOf(t.type)){if(-1===t.type.indexOf(".")){if(e.enums&&e.enums.some(u))return}else{if((n=t.type.split(".")).length>2)throw new Error("what is this?");if(r=n[0],o=n[1],i.messages.some(function(e){if(e.name===r)return a=e,e}),a&&a.enums&&a.enums.some(c))return}throw new Error("Fields of type "+t.type+' cannot be declared [packed=true]. Only repeated fields of primitive numeric types (types which use the varint, 32-bit, or 64-bit wire types) can be declared "packed". See https://developers.google.com/protocol-buffers/docs/encoding#optional')}})}),i};e.exports=k},"./node_modules/protocol-buffers-schema/stringify.js":function(e,t){var n=function(e,t){var n=e.repeated?"repeated":e.required?"required":"optional";"map"===e.type&&(n="map<"+e.map.from+","+e.map.to+">"),e.oneof&&(n="");var r=Object.keys(e.options||{}).map(function(t){return t+" = "+e.options[t]}).join(",");return r&&(r=" ["+r+"]"),t.push((n?n+" ":"")+("map"===e.map?"":e.type+" ")+e.name+" = "+e.tag+r+";"),t},r=function(e,t){t.push("message "+e.name+" {"),e.enums||(e.enums=[]),e.enums.forEach(function(e){t.push(o(e,[]))}),e.messages||(e.messages=[]),e.messages.forEach(function(e){t.push(r(e,[]))});var s={};return e.fields||(e.fields=[]),e.fields.forEach(function(e){e.oneof?(s[e.oneof]||(s[e.oneof]=[]),s[e.oneof].push(n(e,[]))):t.push(n(e,[]))}),Object.keys(s).forEach(function(e){s[e].unshift("oneof "+e+" {"),s[e].push("}"),t.push(s[e])}),t.push("}",""),t},o=function(e,t){t.push("enum "+e.name+" {"),e.options||(e.options={});var n=i(e.options,[]);return n.length>1&&t.push(n.slice(0,-1)),Object.keys(e.values).map(function(n){var r=s(e.values[n]);t.push([n+" = "+r+";"])}),t.push("}",""),t},s=function(e,t){var n=Object.keys(e.options||{}).map(function(t){return t+" = "+e.options[t]}).join(","),r;return n&&(n=" ["+n+"]"),e.value+n},i=function(e,t){var n=Object.keys(e);return n.forEach(function(n){var r=e[n];~n.indexOf(".")&&(n="("+n+")");var o=typeof r;"object"===o?(r=a(r,[])).length&&t.push("option "+n+" = {",r,"};"):("string"===o&&"optimize_for"!==n&&(r='"'+r+'"'),t.push("option "+n+" = "+r+";"))}),n.length>0&&t.push(""),t},a=function(e,t){var n;return Object.keys(e).forEach(function(n){var r=e[n],o=typeof r;"object"===o?Array.isArray(r)?r.forEach(function(e){(e=a(e,[])).length&&t.push(n+" {",e,"}")}):(r=a(r,[])).length&&t.push(n+" {",r,"}"):("string"===o&&(r='"'+r+'"'),t.push(n+": "+r))}),t},u=function(e,t){return t.push("service "+e.name+" {"),e.options||(e.options={}),i(e.options,t),e.methods||(e.methods=[]),e.methods.forEach(function(e){t.push(c(e,[]))}),t.push("}",""),t},c=function(e,t){var n="rpc "+e.name+"(";e.client_streaming&&(n+="stream "),n+=e.input_type+") returns (",e.server_streaming&&(n+="stream "),n+=e.output_type+")",e.options||(e.options={});var r=i(e.options,[]);return r.length>1?t.push(n+" {",r.slice(0,-1),"}"):t.push(n+";"),t},l=function(e){return function(t){return Array.isArray(t)?t.map(l(e+"  ")).join("\n"):e+t}};e.exports=function(e){var t=[];return t.push('syntax = "proto'+e.syntax+'";',""),e.package&&t.push("package "+e.package+";",""),e.options||(e.options={}),i(e.options,t),e.enums||(e.enums=[]),e.enums.forEach(function(e){o(e,t)}),e.messages||(e.messages=[]),e.messages.forEach(function(e){r(e,t)}),e.services&&e.services.forEach(function(e){u(e,t)}),t.map(l("")).join("\n")}},"./node_modules/protocol-buffers-schema/tokenize.js":function(e,t){e.exports=function(e){var t=function(e){var t=e.indexOf("//");return t>-1?e.slice(0,t):e},n=function(){var e=!1;return function(t){return"/*"===t?(e=!0,!1):"*/"===t?(e=!1,!1):!e}},r=function(e){return e.trim()};return e.replace(/([;,{}()=:[\]<>]|\/\*|\*\/)/g," $1 ").split(/\n/).map(r).filter(Boolean).map(t).map(r).filter(Boolean).join("\n").split(/\s+|\n+/gm).filter(n())}},"./node_modules/protons/src/compile/decode.js":function(e,t,n){"use strict";var r=n("./node_modules/varint/index.js"),o=n("./node_modules/protons/src/compile/utils.js").defined;function s(e,t,n){for(var s=[],u={},c=[],l=[],f=0;f<n.length;f++){var d=e.fields[f];u[d.tag]=f;var h=d.options&&d.options.default,p=t(d.type,e.id,!1);l[f]=[h,p&&p.values],e.fields[f].packed=d.repeated&&d.options&&d.options.packed&&"false"!==d.options.packed,d.required&&s.push(d.name),d.oneof&&c.push(d.name)}function m(e,t,n,o,s,i){var a=t.name;if(t.oneof)for(var u=Object.keys(n),l=0;l<u.length;l++)c.indexOf(u[l])>-1&&delete n[u[l]];if(e.message){var f=r.decode(o,s);s+=r.decode.bytes;var d=e.decode(o,s,s+f);t.map?(n[a]=n[a]||{},n[a][d.key]=d.value):t.repeated?(n[a]=n[a]||[],n[a].push(d)):n[a]=d}else t.repeated?(n[a]=n[a]||[],n[a].push(e.decode(o,s))):n[a]=e.decode(o,s);return s+=e.decode.bytes}return function t(f,d,h){if(null==d&&(d=0),null==h&&(h=f.length),!(h<=f.length&&d<=f.length))throw new Error("Decoded message is not valid");for(var p=d,b={},y;;){if(h<=d){var g="",_=0,v,k;for(_=0;_<s.length;_++)if(g=s[_],!o(b[g]))throw new Error("Decoded message is not valid, missing required field: "+g);for(_=0;_<n.length;_++)if(y=e.fields[_],k=l[_][0],v=l[_][1],g=y.name,!o(b[g])){var w=!1;if(y.oneof)for(var x=Object.keys(b),j=0;j<x.length;j++)if(c.indexOf(x[j])>-1){w=!0;break}w||(v?y.repeated?b[g]=[]:(k=k&&v[k]?v[k].value:v[Object.keys(v)[0]].value,b[g]=parseInt(k||0,10)):b[g]=a(y,k))}return t.bytes=d-p,b}var S=r.decode(f,d);d+=r.decode.bytes;var E,A=u[S>>3];if(null!=A){var O=n[A];if((y=e.fields[A]).packed){var T=r.decode(f,d);for(T+=d+=r.decode.bytes;d<T;)d=m(O,y,b,f,d,A)}else d=m(O,y,b,f,d,A)}else d=i(7&S,f,d)}}}var i=function(e,t,n){switch(e){case 0:return r.decode(t,n),n+r.decode.bytes;case 1:return n+8;case 2:var o=r.decode(t,n);return n+r.decode.bytes+o;case 3:case 4:throw new Error("Groups are not supported");case 5:return n+4;default:throw new Error("Unknown wire type: "+e)}},a=function(e,t){if(e.map)return{};if(e.repeated)return[];switch(e.type){case"string":return null!=t?t:"";case"bool":return"true"===t;case"float":case"double":case"sfixed32":case"fixed32":case"varint":case"enum":case"uint64":case"uint32":case"int64":case"int32":case"sint64":case"sint32":return parseInt(t||0,10);default:return null}};e.exports=s},"./node_modules/protons/src/compile/encode.js":function(e,t,n){"use strict";(function(t){var r=n("./node_modules/protons/src/compile/utils.js").defined,o=n("./node_modules/varint/index.js");function s(e,n,s,i,a){for(var u=Object.keys(i),c=s.length,l={},f=0;f<c;f++){l[f]={p:o.encode(e.fields[f].tag<<3|2),h:o.encode(e.fields[f].tag<<3|s[f].type)};var d=e.fields[f];e.fields[f].packed=d.repeated&&d.options&&d.options.packed&&"false"!==d.options.packed}function h(e,t,n,r,s,i){var a=0;if(!s)for(a=0;a<n.length;a++)e[t++]=n[a];return r.message&&(o.encode(r.encodingLength(i),e,t),t+=o.encode.bytes),r.encode(i,e,t),t+r.encode.bytes}return function n(f,d,p){null==p&&(p=0),null==d&&(d=t.allocUnsafe(a(f)));var m=p,b=Object.keys(f),y=0,g=!1;for(y=0;y<u.length;y++){var _=u[y],v=i[y];if(b.indexOf(v)>-1){if(g)throw new Error("only one of the properties defined in oneof "+_+" can be set");g=!0}}for(y=0;y<c;y++){var k=s[y],w=e.fields[y],x=f[w.name],j=0;if(r(x)){var S=l[y].p,E=l[y].h,A=w.packed,O;if(w.map){var T=Object.keys(x);for(j=0;j<T.length;j++)T[j]={key:T[j],value:x[T[j]]};x=T}if(A){var I=0;for(j=0;j<x.length;j++)r(x[j])&&(I+=k.encodingLength(x[j]));if(I){for(j=0;j<E.length;j++)d[p++]=S[j];o.encode(I,d,p),p+=o.encode.bytes}}if(w.repeated)for(j=0;j<x.length;j++)O=x[j],r(O)&&(p=h(d,p,E,k,A,O));else p=h(d,p,E,k,A,x)}else if(w.required)throw new Error(w.name+" is required")}return n.bytes=p-m,d}}e.exports=s}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/protons/src/compile/encoding-length.js":function(e,t,n){"use strict";var r=n("./node_modules/protons/src/compile/utils.js").defined,o=n("./node_modules/varint/index.js");function s(e,t,n){for(var s=Object.keys(n),i=t.length,a=new Array(i),u=0;u<e.fields.length;u++){a[u]=o.encodingLength(e.fields[u].tag<<3|t[u].type);var c=e.fields[u];e.fields[u].packed=c.repeated&&c.options&&c.options.packed&&"false"!==c.options.packed}return function u(c){var l=0,f=0,d=0;for(f=0;f<s.length;f++){var h=s[f],p=n[h],m=!1;for(d=0;d<p.length;d++)if(r(c[p[d]])){if(m)throw new Error("only one of the properties defined in oneof "+h+" can be set");m=!0}}for(f=0;f<i;f++){var b=t[f],y=e.fields[f],g=c[y.name],_=a[f],v;if(r(g)){if(y.map){var k=Object.keys(g);for(d=0;d<k.length;d++)k[d]={key:k[d],value:g[k[d]]};g=k}if(y.packed){var w=0;for(d=0;d<g.length;d++)r(g[d])&&(w+=v=b.encodingLength(g[d]),b.message&&(w+=o.encodingLength(v)));w&&(l+=_+w+o.encodingLength(w))}else if(y.repeated)for(d=0;d<g.length;d++)r(g[d])&&(l+=_+(v=b.encodingLength(g[d]))+(b.message?o.encodingLength(v):0));else l+=_+(v=b.encodingLength(g))+(b.message?o.encodingLength(v):0)}else if(y.required)throw new Error(y.name+" is required")}return l}}e.exports=s},"./node_modules/protons/src/compile/encodings.js":function(e,t,n){"use strict";var r=n("./node_modules/varint/index.js"),o=n("./node_modules/signed-varint/index.js"),s=n("./node_modules/safe-buffer/index.js").Buffer,i=function(e,t,n,r){return t.bytes=n.bytes=0,{type:e,encode:t,decode:n,encodingLength:r}},a,u,c,l,f;t.make=i,t.bytes=(u=function(e){return s.isBuffer(e)?e.length:s.byteLength(e)},i(2,l=function(e,t,n){var o=n,i=u(e);return r.encode(i,t,n),n+=r.encode.bytes,s.isBuffer(e)?e.copy(t,n):t.write(e,n,i),n+=i,l.bytes=n-o,t},f=function(e,t){var n=t,o=r.decode(e,t);t+=r.decode.bytes;var s=e.slice(t,t+o);return t+=s.length,f.bytes=t-n,s},function(e){var t=u(e);return r.encodingLength(t)+t})),t.string=function(){var e,t=function(e,n,o){var i=o,a=s.byteLength(e);return r.encode(a,n,o,"utf-8"),o+=r.encode.bytes,n.write(e,o,a),o+=a,t.bytes=o-i,n},n=function(e,t){var o=t,s=r.decode(e,t);t+=r.decode.bytes;var i=e.toString("utf-8",t,t+s);return t+=s,n.bytes=t-o,i};return i(2,t,n,function(e){var t=s.byteLength(e);return r.encodingLength(t)+t})}(),t.bool=function(){var e,t=function(e,n,r){return n[r]=e?1:0,t.bytes=1,n},n=function(e,t){var r=e[t]>0;return n.bytes=1,r};return i(0,t,n,function(e){return 1})}(),t.int32=function(){var e=function(t,n){var o=r.decode(t,n);return e.bytes=r.decode.bytes,o>2147483647?o-4294967296:o},t=function(e,n,o){return r.encode(e<0?e+4294967296:e,n,o),t.bytes=r.encode.bytes,n},n=function(e){return r.encodingLength(e<0?e+4294967296:e)};return i(0,r.encode,e,n)}(),t.int64=function(){var e=function(t,n){var o=r.decode(t,n);if(o>=Math.pow(2,63)){for(var i=9;255===t[n+i-1];)i--;i=i||9;var a=s.allocUnsafe(i);t.copy(a,0,n,n+i),a[i-1]=127&a[i-1],o=-1*r.decode(a,0),e.bytes=10}else e.bytes=r.decode.bytes;return o},t=function(e,n,o){if(e<0){var s=o+9;for(r.encode(-1*e,n,o),n[o+=r.encode.bytes-1]=128|n[o];o<s-1;)n[++o]=255;n[s]=1,t.bytes=10}else r.encode(e,n,o),t.bytes=r.encode.bytes;return n},n;return i(0,t,e,function(e){return e<0?10:r.encodingLength(e)})}(),t.sint32=t.sint64=i(0,o.encode,o.decode,o.encodingLength),t.uint32=t.uint64=t.enum=t.varint=i(0,r.encode,r.decode,r.encodingLength),t.fixed64=t.sfixed64=function(){var e,t=function(e,n,r){return e.copy(n,r),t.bytes=8,n},n=function(e,t){var r=e.slice(t,t+8);return n.bytes=8,r};return i(1,t,n,function(e){return 8})}(),t.double=function(){var e,t=function(e,n,r){return n.writeDoubleLE(e,r),t.bytes=8,n},n=function(e,t){var r=e.readDoubleLE(t);return n.bytes=8,r};return i(1,t,n,function(e){return 8})}(),t.fixed32=function(){var e,t=function(e,n,r){return n.writeUInt32LE(e,r),t.bytes=4,n},n=function(e,t){var r=e.readUInt32LE(t);return n.bytes=4,r};return i(5,t,n,function(e){return 4})}(),t.sfixed32=function(){var e,t=function(e,n,r){return n.writeInt32LE(e,r),t.bytes=4,n},n=function(e,t){var r=e.readInt32LE(t);return n.bytes=4,r};return i(5,t,n,function(e){return 4})}(),t.float=function(){var e,t=function(e,n,r){return n.writeFloatLE(e,r),t.bytes=4,n},n=function(e,t){var r=e.readFloatLE(t);return n.bytes=4,r};return i(5,t,n,function(e){return 4})}()},"./node_modules/protons/src/compile/index.js":function(e,t,n){"use strict";var r=n("./node_modules/protons/src/compile/encodings.js"),o=n("./node_modules/protons/src/compile/decode.js"),s=n("./node_modules/protons/src/compile/encode.js"),i=n("./node_modules/protons/src/compile/encoding-length.js"),a=n("./node_modules/varint/index.js"),u=function(e){if(!e)return null;var t={};return Object.keys(e).forEach(function(n){t[n]=e[n].value}),t};e.exports=function(e,t){var n={},c={},l={},f=function(e,t){e.enums&&e.enums.forEach(function(e){e.id=t+(t?".":"")+e.name,c[e.id]=e,f(e,e.id)}),e.messages&&e.messages.forEach(function(r){r.id=t+(t?".":"")+r.name,n[r.id]=r,r.fields.forEach(function(r){if(r.map){var o="Map_"+r.map.from+"_"+r.map.to,s={name:o,enums:[],messages:[],fields:[{name:"key",type:r.map.from,tag:1,repeated:!1,required:!0},{name:"value",type:r.map.to,tag:2,repeated:!1,required:!1}],extensions:null,id:t+(t?".":"")+o};n[s.id]||(n[s.id]=s,e.messages.push(s)),r.type=o,r.repeated=!0}}),f(r,r.id)})};f(e,"");var d=function(e){var t=Object.keys(e.values||[]).map(function(t){return parseInt(e.values[t].value,10)}),n=function e(n,r,o){if(!t.length||-1===t.indexOf(n))throw new Error("Invalid enum value: "+n);return a.encode(n,r,o),e.bytes=a.encode.bytes,r},o=function e(n,r){var o=a.decode(n,r);if(!t.length||-1===t.indexOf(o))throw new Error("Invalid enum value: "+o);return e.bytes=a.decode.bytes,o};return r.make(0,n,o,a.encodingLength)},h=function(e,t){e.messages.forEach(function(n){t[n.name]=p(n.name,e.id)}),e.enums.forEach(function(e){t[e.name]=u(e.values)}),t.type=2,t.message=!0,t.name=e.name;var n={};e.fields.forEach(function(e){e.oneof&&(n[e.oneof]||(n[e.oneof]=[]),n[e.oneof].push(e.name))});var r=e.fields.map(function(t){return p(t.type,e.id)}),a=i(e,r,n),c=s(e,p,r,n,a),l=o(e,p,r);return c.bytes=l.bytes=0,t.buffer=!0,t.encode=c,t.decode=l,t.encodingLength=a,t},p=function(e,o,s){if(t&&t[e])return t[e];if(r[e])return r[e];var i=(o?o+"."+e:e).split(".").map(function(t,n,r){return r.slice(0,n).concat(e).join(".")}).reverse().reduce(function(e,t){return e||n[t]||c[t]},null),a;if(!1===s)return i;if(!i)throw new Error("Could not resolve "+e);return i.values?d(i):l[i.id]||h(i,l[i.id]={})};return(e.enums||[]).concat((e.messages||[]).map(function(e){return p(e.id)}))}},"./node_modules/protons/src/compile/utils.js":function(e,t,n){"use strict";t.defined=function(e){return null!==e&&void 0!==e&&("number"!=typeof e||!isNaN(e))}},"./node_modules/protons/src/index.js":function(e,t,n){"use strict";(function(t){var r=n("./node_modules/protocol-buffers-schema/index.js"),o=n("./node_modules/protons/src/compile/index.js"),s=function(e){if(!e)return null;var t={};return Object.keys(e).forEach(function(n){t[n]=e[n].value}),t};e.exports=function(e,n){if(n||(n={}),!e)throw new Error("Pass in a .proto string or a protobuf-schema parsed object");var i="object"!=typeof e||t.isBuffer(e)?r.parse(e):e,a=function(){var e=this;o(i,n.encodings||{}).forEach(function(t){e[t.name]=s(t.values)||t})};return a.prototype.toString=function(){return r.stringify(i)},a.prototype.toJSON=function(){return i},new a}}).call(this,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/prr/prr.js":function(e,t,n){var r,o,s;r="prr",o=this,s=function(){var e="function"==typeof Object.defineProperty?function(e,t,n){return Object.defineProperty(e,t,n),e}:function(e,t,n){return e[t]=n.value,e},t=function(e,t){var n="object"==typeof t,r=!n&&"string"==typeof t,o=function(e){return n?!!t[e]:!!r&&t.indexOf(e[0])>-1};return{enumerable:o("enumerable"),configurable:o("configurable"),writable:o("writable"),value:e}},n;return function(n,r,o,s){var i;if(s=t(o,s),"object"==typeof r){for(i in r)Object.hasOwnProperty.call(r,i)&&(s.value=r[i],e(n,i,s));return n}return e(n,r,s)}},e.exports?e.exports=s():o.prr=s()},"./node_modules/pull-defer/duplex.js":function(e,t,n){var r=n("./node_modules/pull-defer/source.js"),o=n("./node_modules/pull-defer/sink.js");e.exports=function(){var e=r(),t=o();return{source:e,sink:t,resolve:function(n){e.resolve(n.source),t.resolve(n.sink)}}}},"./node_modules/pull-defer/index.js":function(e,t,n){t.source=n("./node_modules/pull-defer/source.js"),t.through=n("./node_modules/pull-defer/through.js"),t.sink=n("./node_modules/pull-defer/sink.js"),t.duplex=n("./node_modules/pull-defer/duplex.js")},"./node_modules/pull-defer/sink.js":function(e,t){e.exports=function(e){var t,n=!1;function r(r){if(!r)throw new Error("must be passed a readable");t=r,n&&e(t)}return r.resolve=r.ready=r.start=function(o){return n=!0,e=o||e,t&&e(t),r},r}},"./node_modules/pull-defer/source.js":function(e,t){e.exports=function(){var e,t,n,r,o=function(o,s){e?e(o,s):o?(r=o,n=s):t=s};return o.resolve=function(o){if(e)throw new Error("already resolved");if(!(e=o))throw new Error("no read cannot resolve!"+e);t&&o(null,t),n&&o(r,n)},o.abort=function(e){o.resolve(function(t,n){n(e||!0)})},o}},"./node_modules/pull-defer/through.js":function(e,t){e.exports=function(){var e,t,n,r,o;function s(s){return o?o(s):(e=s,function(e,o){t?t(e,o):(r=e,n=o)})}return s.resolve=function(s){if(o)throw new Error("already resolved");if(!(o=s))throw new Error("resolve *must* be passed a transform stream");e&&(t=o(e),n&&t(r,n))},s}},"./node_modules/pull-many/index.js":function(e,t){e.exports=function(e){var t=!!e,n=(e||[]).map(i),r=0,o,s;function i(e){return{ready:!1,reading:!1,ended:!1,read:e,data:null}}function a(){if(s){u();var e=n.length,i=s;if(0===e&&(o||t))return s=null,void i(o||!0);for(var a=0;a<e;a++){var c=n[(r+a)%e];if(c.ready&&!c.ended){var l=c.data;return c.ready=!1,c.data=null,r++,s=null,i(null,l)}}}}function u(){for(var e=n.length;e--;)n[e].ended&&n.splice(e,1)}function c(){for(var e=n.length;e--;)!function(t){if(e>n.length)throw new Error("this should never happen");if(!(t.reading||t.ended||t.ready)){t.reading=!0;var r=!0;t.read(o,function e(n,s){t.data=s,t.ready=!0,t.reading=!1,!0===n||o?t.ended=!0:n&&(o=t.ended=n),o&&!n&&t.read(o,e),r||a()}),r=!1}}(n[e]);a()}function l(e,t){o=o||e,s=t,c()}return l.add=function(e){if(!e)return t=!0,c();n.push(i(e)),c()},l.cap=function(e){l.add(null)},l}},"./node_modules/pull-stream/index.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/sources/index.js"),o=n("./node_modules/pull-stream/sinks/index.js"),s=n("./node_modules/pull-stream/throughs/index.js");for(var i in(t=e.exports=n("./node_modules/pull-stream/pull.js")).pull=t,r)t[i]=r[i];for(var i in s)t[i]=s[i];for(var i in o)t[i]=o[i]},"./node_modules/pull-stream/pull.js":function(e,t,n){"use strict";e.exports=function e(t){var n=arguments.length;if("function"==typeof t&&1===t.length){for(var r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return function(t){if(null==r)throw new TypeError("partial sink should only be called once!");var o=r;switch(r=null,n){case 1:return e(t,o[0]);case 2:return e(t,o[0],o[1]);case 3:return e(t,o[0],o[1],o[2]);case 4:return e(t,o[0],o[1],o[2],o[3]);default:return o.unshift(t),e.apply(null,o)}}}var s=t;s&&"function"==typeof s.source&&(s=s.source);for(var o=1;o<n;o++){var i=arguments[o];"function"==typeof i?s=i(s):i&&"object"==typeof i&&(i.sink(s),s=i.source)}return s}},"./node_modules/pull-stream/sinks/collect.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/sinks/reduce.js");e.exports=function e(t){return r(function(e,t){return e.push(t),e},[],t)}},"./node_modules/pull-stream/sinks/concat.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/sinks/reduce.js");e.exports=function e(t){return r(function(e,t){return e+t},"",t)}},"./node_modules/pull-stream/sinks/drain.js":function(e,t,n){"use strict";e.exports=function e(t,n){var r,o;function s(e){if(r=e,o)return s.abort();!function e(){for(var s=!0,i=!1;s;)if(i=!1,r(null,function(a,u){if(i=!0,a=a||o){if(s=!1,n)n(!0===a?null:a);else if(a&&!0!==a)throw a}else t&&!1===t(u)||o?(s=!1,r(o||!0,n||function(){})):s||e()}),!i)return void(s=!1)}()}return s.abort=function(e,t){if("function"==typeof e&&(t=e,e=!0),o=e||!0,r)return r(o,t||function(){})},s}},"./node_modules/pull-stream/sinks/find.js":function(e,t,n){"use strict";function r(e){return e}var o=n("./node_modules/pull-stream/util/prop.js"),s=n("./node_modules/pull-stream/sinks/drain.js");e.exports=function e(t,n){var i=!1;return n?t=o(t)||r:(n=t,t=r),s(function(e){if(t(e))return i=!0,n(null,e),!1},function(e){i||n(!0===e?null:e,null)})}},"./node_modules/pull-stream/sinks/index.js":function(e,t,n){"use strict";e.exports={drain:n("./node_modules/pull-stream/sinks/drain.js"),onEnd:n("./node_modules/pull-stream/sinks/on-end.js"),log:n("./node_modules/pull-stream/sinks/log.js"),find:n("./node_modules/pull-stream/sinks/find.js"),reduce:n("./node_modules/pull-stream/sinks/reduce.js"),collect:n("./node_modules/pull-stream/sinks/collect.js"),concat:n("./node_modules/pull-stream/sinks/concat.js")}},"./node_modules/pull-stream/sinks/log.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/sinks/drain.js");e.exports=function e(t){return r(function(e){console.log(e)},t)}},"./node_modules/pull-stream/sinks/on-end.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/sinks/drain.js");e.exports=function e(t){return r(null,t)}},"./node_modules/pull-stream/sinks/reduce.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/sinks/drain.js");e.exports=function e(t,n,o){o||(o=n,n=null);var s=r(function(e){n=t(n,e)},function(e){o(e,n)});return 2===arguments.length?function(e){e(null,function(t,r){if(t)return o(!0===t?null:t);n=r,s(e)})}:s}},"./node_modules/pull-stream/sources/count.js":function(e,t,n){"use strict";e.exports=function e(t){var n=0;return t=t||1/0,function(e,r){return e?r&&r(e):n>t?r(!0):void r(null,n++)}}},"./node_modules/pull-stream/sources/empty.js":function(e,t,n){"use strict";e.exports=function e(){return function(e,t){t(!0)}}},"./node_modules/pull-stream/sources/error.js":function(e,t,n){"use strict";e.exports=function e(t){return function(e,n){n(t)}}},"./node_modules/pull-stream/sources/index.js":function(e,t,n){"use strict";e.exports={keys:n("./node_modules/pull-stream/sources/keys.js"),once:n("./node_modules/pull-stream/sources/once.js"),values:n("./node_modules/pull-stream/sources/values.js"),count:n("./node_modules/pull-stream/sources/count.js"),infinite:n("./node_modules/pull-stream/sources/infinite.js"),empty:n("./node_modules/pull-stream/sources/empty.js"),error:n("./node_modules/pull-stream/sources/error.js")}},"./node_modules/pull-stream/sources/infinite.js":function(e,t,n){"use strict";e.exports=function e(t){return t=t||Math.random,function(e,n){return e?n&&n(e):n(null,t())}}},"./node_modules/pull-stream/sources/keys.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/sources/values.js");e.exports=function(e){return r(Object.keys(e))}},"./node_modules/pull-stream/sources/once.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/util/abort-cb.js");e.exports=function e(t,n){return function(e,o){if(e)return r(o,e,n);if(null!=t){var s=t;t=null,o(null,s)}else o(!0)}}},"./node_modules/pull-stream/sources/values.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/util/abort-cb.js");e.exports=function e(t,n){if(!t)return function(e,t){return e?r(t,e,n):t(!0)};Array.isArray(t)||(t=Object.keys(t).map(function(e){return t[e]}));var o=0;return function(e,s){if(e)return r(s,e,n);o>=t.length?s(!0):s(null,t[o++])}}},"./node_modules/pull-stream/throughs/async-map.js":function(e,t,n){"use strict";function r(e){return e}var o=n("./node_modules/pull-stream/util/prop.js");e.exports=function e(t){if(!t)return r;t=o(t);var n=!1,s,i;return function(e){return function r(o,a){if(i)return a(i);o?(i=o,e(o,n?function(e){n?s=a:a(o)}:function(e){a(o)})):e(null,function(e,o){e?a(e):i?a(i):(n=!0,t(o,function(e,t){n=!1,i?(a(i),s&&s(i)):e?r(e,a):a(null,t)}))})}}}},"./node_modules/pull-stream/throughs/filter-not.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/util/tester.js"),o=n("./node_modules/pull-stream/throughs/filter.js");e.exports=function e(t){return t=r(t),o(function(e){return!t(e)})}},"./node_modules/pull-stream/throughs/filter.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/util/tester.js");e.exports=function e(t){return t=r(t),function(e){return function n(r,o){for(var s,i=!0;i;)i=!1,s=!0,e(r,function(e,r){if(!e&&!t(r))return s?i=!0:n(e,o);o(e,r)}),s=!1}}}},"./node_modules/pull-stream/throughs/flatten.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/sources/values.js"),o=n("./node_modules/pull-stream/sources/once.js");e.exports=function e(){return function(e){var t;return function(n,s){function i(){t(null,function(t,n){!0===t?a():t?e(!0,function(e){s(t)}):s(null,n)})}function a(){t=null,e(null,function(e,n){if(e)return s(e);Array.isArray(n)||n&&"object"==typeof n?n=r(n):"function"!=typeof n&&(n=o(n)),t=n,i()})}n?t?t(n,function(t){e(t||n,s)}):e(n,s):t?i():a()}}}},"./node_modules/pull-stream/throughs/index.js":function(e,t,n){"use strict";e.exports={map:n("./node_modules/pull-stream/throughs/map.js"),asyncMap:n("./node_modules/pull-stream/throughs/async-map.js"),filter:n("./node_modules/pull-stream/throughs/filter.js"),filterNot:n("./node_modules/pull-stream/throughs/filter-not.js"),through:n("./node_modules/pull-stream/throughs/through.js"),take:n("./node_modules/pull-stream/throughs/take.js"),unique:n("./node_modules/pull-stream/throughs/unique.js"),nonUnique:n("./node_modules/pull-stream/throughs/non-unique.js"),flatten:n("./node_modules/pull-stream/throughs/flatten.js")}},"./node_modules/pull-stream/throughs/map.js":function(e,t,n){"use strict";function r(e){return e}var o=n("./node_modules/pull-stream/util/prop.js");e.exports=function e(t){return t?(t=o(t),function(e){return function(n,r){e(n,function(n,o){try{o=n?null:t(o)}catch(t){return e(t,function(){return r(t)})}r(n,o)})}}):r}},"./node_modules/pull-stream/throughs/non-unique.js":function(e,t,n){"use strict";var r=n("./node_modules/pull-stream/throughs/unique.js");e.exports=function e(t){return r(t,!0)}},"./node_modules/pull-stream/throughs/take.js":function(e,t,n){"use strict";e.exports=function e(t,n){var r=(n=n||{}).last||!1,o=!1;if("number"==typeof t){r=!0;var s=t;t=function(){return--s}}return function(e){function n(t){e(!0,function(e){r=!1,t(e||!0)})}return function(s,i){o&&!s?r?n(i):i(o):(o=s)?e(o,i):e(null,function(e,s){(o=o||e)?i(o):t(s)?i(null,s):(o=!0,r?i(null,s):n(i))})}}}},"./node_modules/pull-stream/throughs/through.js":function(e,t,n){"use strict";e.exports=function e(t,n){var r=!1;function o(e){!r&&n&&(r=!0,n(!0===e?null:e))}return function(e){return function(n,r){return n&&o(n),e(n,function(e,n){e?o(e):t&&t(n),r(e,n)})}}}},"./node_modules/pull-stream/throughs/unique.js":function(e,t,n){"use strict";function r(e){return e}var o=n("./node_modules/pull-stream/util/prop.js"),s=n("./node_modules/pull-stream/throughs/filter.js");e.exports=function e(t,n){t=o(t)||r;var i={};return s(function(e){var r=t(e);return i[r]?!!n:(i[r]=!0,!n)})}},"./node_modules/pull-stream/util/abort-cb.js":function(e,t){e.exports=function e(t,n,r){t(n),r&&r(!0===n?null:n)}},"./node_modules/pull-stream/util/prop.js":function(e,t){e.exports=function e(t){return t&&("string"==typeof t?function(e){return e[t]}:"object"==typeof t&&"function"==typeof t.exec?function(e){var n=t.exec(e);return n&&n[0]}:t)}},"./node_modules/pull-stream/util/tester.js":function(e,t,n){var r=n("./node_modules/pull-stream/util/prop.js");function o(e){return e}e.exports=function e(t){return"object"==typeof t&&"function"==typeof t.test?function(e){return t.test(e)}:r(t)||o}},"./node_modules/pull-traverse/index.js":function(e,t){var n=t.once=function(e){return function(t,n){if(t)return n(t);if(null!=e){var r=e;e=null,n(null,r)}else n(!0)}},r=t.depthFirst=function(e,t){var r=[],o;return r.unshift(n(e)),function e(n,s){return r.length?o?s(o):void r[0](n,function(n,i){if(n){if(!0!==n){for(o=n,r.shift();r.length;)r.shift()(n,function(){});return s(n)}return r.shift(),e(null,s)}r.unshift(t(i)),s(n,i)}):s(!0)}},o=t.widthFirst=function(e,t){var r=[];return r.push(n(e)),function e(n,o){if(!r.length)return o(!0);r[0](n,function(n,s){if(n)return r.shift(),e(null,o);r.push(t(s)),o(n,s)})}},s=t.leafFirst=function(e,t){var r=[],o=[];return r.push(n(e)),function e(n,s){r[0](n,function(n,i){if(n)return r.shift(),o.length?s(null,o.shift()):s(!0);r.unshift(t(i)),o.unshift(i),e(null,s)})}}},"./node_modules/querystring-es3/decode.js":function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,s){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(t);var u=1e3;s&&"number"==typeof s.maxKeys&&(u=s.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var f=e[l].replace(a,"%20"),d=f.indexOf(n),h,p,m,b;d>=0?(h=f.substr(0,d),p=f.substr(d+1)):(h=f,p=""),m=decodeURIComponent(h),b=decodeURIComponent(p),r(i,m)?o(i[m])?i[m].push(b):i[m]=[i[m],b]:i[m]=b}return i};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},"./node_modules/querystring-es3/encode.js":function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?s(i(e),function(i){var a=encodeURIComponent(r(i))+n;return o(e[i])?s(e[i],function(e){return a+encodeURIComponent(r(e))}).join(t):a+encodeURIComponent(r(e[i]))}).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},"./node_modules/querystring-es3/index.js":function(e,t,n){"use strict";t.decode=t.parse=n("./node_modules/querystring-es3/decode.js"),t.encode=t.stringify=n("./node_modules/querystring-es3/encode.js")},"./node_modules/readable-stream/duplex-browser.js":function(e,t,n){e.exports=n("./node_modules/readable-stream/lib/_stream_duplex.js")},"./node_modules/readable-stream/lib/_stream_duplex.js":function(e,t,n){"use strict";var r=n("./node_modules/process-nextick-args/index.js"),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var s=n("./node_modules/core-util-is/lib/util.js");s.inherits=n("./node_modules/inherits/inherits_browser.js");var i=n("./node_modules/readable-stream/lib/_stream_readable.js"),a=n("./node_modules/readable-stream/lib/_stream_writable.js");s.inherits(f,i);for(var u=o(a.prototype),c=0;c<u.length;c++){var l=u[c];f.prototype[l]||(f.prototype[l]=a.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);i.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},"./node_modules/readable-stream/lib/_stream_passthrough.js":function(e,t,n){"use strict";e.exports=s;var r=n("./node_modules/readable-stream/lib/_stream_transform.js"),o=n("./node_modules/core-util-is/lib/util.js");function s(e){if(!(this instanceof s))return new s(e);r.call(this,e)}o.inherits=n("./node_modules/inherits/inherits_browser.js"),o.inherits(s,r),s.prototype._transform=function(e,t,n){n(null,e)}},"./node_modules/readable-stream/lib/_stream_readable.js":function(e,t,n){"use strict";(function(t,r){var o=n("./node_modules/process-nextick-args/index.js");e.exports=x;var s=n("./node_modules/isarray/index.js"),i;x.ReadableState=w;var a=n("./node_modules/events/events.js").EventEmitter,u=function(e,t){return e.listeners(t).length},c=n("./node_modules/readable-stream/lib/internal/streams/stream-browser.js"),l=n("./node_modules/safe-buffer/index.js").Buffer,f=t.Uint8Array||function(){};function d(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof f}var p=n("./node_modules/core-util-is/lib/util.js");p.inherits=n("./node_modules/inherits/inherits_browser.js");var m=n(1),b=void 0;b=m&&m.debuglog?m.debuglog("stream"):function(){};var y=n("./node_modules/readable-stream/lib/internal/streams/BufferList.js"),g=n("./node_modules/readable-stream/lib/internal/streams/destroy.js"),_;p.inherits(x,c);var v=["error","close","destroy","pause","resume"];function k(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function w(e,t){i=i||n("./node_modules/readable-stream/lib/_stream_duplex.js"),e=e||{};var r=t instanceof i;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(_||(_=n("./node_modules/string_decoder/lib/string_decoder.js").StringDecoder),this.decoder=new _(e.encoding),this.encoding=e.encoding)}function x(e){if(i=i||n("./node_modules/readable-stream/lib/_stream_duplex.js"),!(this instanceof x))return new x(e);this._readableState=new w(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function j(e,t,n,r,o){var s=e._readableState,i;null===t?(s.reading=!1,N(e,s)):(o||(i=E(s,t)),i?e.emit("error",i):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=d(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?S(e,s,t,!1):R(e,s)):S(e,s,t,!1))):r||(s.reading=!1));return A(s)}function S(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&B(e)),R(e,t)}function E(e,t){var n;return h(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function A(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}Object.defineProperty(x.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=g.destroy,x.prototype._undestroy=g.undestroy,x.prototype._destroy=function(e,t){this.push(null),t(e)},x.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),j(this,e,t,!1,r)},x.prototype.unshift=function(e){return j(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){return _||(_=n("./node_modules/string_decoder/lib/string_decoder.js").StringDecoder),this._readableState.decoder=new _(e),this._readableState.encoding=e,this};var O=8388608;function T(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function I(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=T(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function N(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,B(e)}}function B(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(b("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(C,e):C(e))}function C(e){b("emit readable"),e.emit("readable"),D(e)}function R(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(F,e,t))}function F(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(b("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function P(e){return function(){var t=e._readableState;b("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(e,"data")&&(t.flowing=!0,D(e))}}function M(e){b("readable nexttick read 0"),e.read(0)}function L(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(U,e,t))}function U(e,t){t.reading||(b("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(b("flow",t.flowing);t.flowing&&null!==e.read(););}function z(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=q(e,t.buffer,t.decoder),n);var n}function q(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?K(e,t):$(e,t),r}function K(e,t){var n=t.head,r=1,o=n.data;for(e-=o.length;n=n.next;){var s=n.data,i=e>s.length?s.length:e;if(i===s.length?o+=s:o+=s.slice(0,e),0===(e-=i)){i===s.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(i));break}++r}return t.length-=r,o}function $(e,t){var n=l.allocUnsafe(e),r=t.head,o=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var s=r.data,i=e>s.length?s.length:e;if(s.copy(n,n.length-e,0,i),0===(e-=i)){i===s.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(i));break}++o}return t.length-=o,n}function H(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(W,t,e))}function W(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function G(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}x.prototype.read=function(e){b("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return b("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?H(this):B(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&H(this),null;var r=t.needReadable,o;return b("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&b("length less than watermark",r=!0),t.ended||t.reading?b("reading or ended",r=!1):r&&(b("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=I(n,t))),null===(o=e>0?z(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&H(this)),null!==o&&this.emit("data",o),o},x.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(e,t){var n=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,b("pipe count=%d opts=%j",s.pipesCount,t);var i,a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:v;function c(e,t){b("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,h())}function l(){b("onend"),e.end()}s.endEmitted?o.nextTick(a):n.once("end",a),e.on("unpipe",c);var f=P(n);e.on("drain",f);var d=!1;function h(){b("cleanup"),e.removeListener("close",g),e.removeListener("finish",_),e.removeListener("drain",f),e.removeListener("error",y),e.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",v),n.removeListener("data",m),d=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||f()}var p=!1;function m(t){var r;b("ondata"),p=!1,!1!==e.write(t)||p||((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==G(s.pipes,e))&&!d&&(b("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function y(t){b("onerror",t),v(),e.removeListener("error",y),0===u(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",_),v()}function _(){b("onfinish"),e.removeListener("close",g),v()}function v(){b("unpipe"),n.unpipe(e)}return n.on("data",m),k(e,"error",y),e.once("close",g),e.once("finish",_),e.emit("pipe",n),s.flowing||(b("pipe resume"),n.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<o;s++)r[s].emit("unpipe",this,n);return this}var i=G(t.pipes,e);return-1===i?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},x.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&B(this):o.nextTick(M,this))}return n},x.prototype.addListener=x.prototype.on,x.prototype.resume=function(){var e=this._readableState;return e.flowing||(b("resume"),e.flowing=!0,L(this,e)),this},x.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this},x.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",function(){if(b("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){var s;(b("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!n.objectMode||null!==o&&void 0!==o)&&((n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause())))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var s=0;s<v.length;s++)e.on(v[s],this.emit.bind(this,v[s]));return this._read=function(t){b("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),x._fromList=z}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/readable-stream/lib/_stream_transform.js":function(e,t,n){"use strict";e.exports=i;var r=n("./node_modules/readable-stream/lib/_stream_duplex.js"),o=n("./node_modules/core-util-is/lib/util.js");function s(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function i(e){if(!(this instanceof i))return new i(e);r.call(this,e),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){u(e,t,n)}):u(this,null,null)}function u(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=n("./node_modules/inherits/inherits_browser.js"),o.inherits(i,r),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},i.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},i.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},i.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},i.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},"./node_modules/readable-stream/lib/_stream_writable.js":function(e,t,n){"use strict";(function(t,r,o){var s=n("./node_modules/process-nextick-args/index.js");function i(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){L(t,e)}}e.exports=k;var u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:s.nextTick,c;k.WritableState=v;var l=n("./node_modules/core-util-is/lib/util.js");l.inherits=n("./node_modules/inherits/inherits_browser.js");var f={deprecate:n("./node_modules/util-deprecate/browser.js")},d=n("./node_modules/readable-stream/lib/internal/streams/stream-browser.js"),h=n("./node_modules/safe-buffer/index.js").Buffer,p=o.Uint8Array||function(){};function m(e){return h.from(e)}function b(e){return h.isBuffer(e)||e instanceof p}var y=n("./node_modules/readable-stream/lib/internal/streams/destroy.js"),g;function _(){}function v(e,t){c=c||n("./node_modules/readable-stream/lib/_stream_duplex.js"),e=e||{};var r=t instanceof c;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,s=e.writableHighWaterMark,i=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(s||0===s)?s:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){T(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function k(e){if(c=c||n("./node_modules/readable-stream/lib/_stream_duplex.js"),!(g.call(k,this)||this instanceof c))return new k(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function w(e,t){var n=new Error("write after end");e.emit("error",n),s.nextTick(t,n)}function x(e,t,n,r){var o=!0,i=!1;return null===n?i=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),s.nextTick(r,i),o=!1),o}function j(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n)),t}function S(e,t,n,r,o,s){if(!n){var i=j(t,r,o);r!==i&&(n=!0,o="buffer",r=i)}var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,a,r,o,s);return u}function E(e,t,n,r,o,s,i){t.writelen=r,t.writecb=i,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,s,t.onwrite),t.sync=!1}function A(e,t,n,r,o){--t.pendingcb,n?(s.nextTick(o,r),s.nextTick(P,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),P(e,t))}function O(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function T(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(O(n),t)A(e,n,r,t,o);else{var s=C(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||B(e,n),r?u(I,e,n,s,o):I(e,n,s,o)}}function I(e,t,n,r){n||N(e,t),t.pendingcb--,r(),P(e,t)}function N(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function B(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var i=0,u=!0;n;)o[i]=n,n.isBuf||(u=!1),n=n.next,i+=1;o.allBuffers=u,E(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback,d;if(E(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function R(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),P(e,t)})}function F(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,s.nextTick(R,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function P(e,t){var n=C(t);return n&&(F(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}function M(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?s.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function L(e,t,n){var r=e.entry;for(e.entry=null;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}l.inherits(k,d),v.prototype.getBuffer=function e(){for(var t=this.bufferedRequest,n=[];t;)n.push(t),t=t.next;return n},function(){try{Object.defineProperty(v.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!g.call(this,e)||this===k&&(e&&e._writableState instanceof v)}})):g=function(e){return e instanceof this},k.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},k.prototype.write=function(e,t,n){var r=this._writableState,o=!1,s=!r.objectMode&&b(e);return s&&!h.isBuffer(e)&&(e=m(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=_),r.ended?w(this,n):(s||x(this,r,e,n))&&(r.pendingcb++,o=S(this,r,s,e,t,n)),o},k.prototype.cork=function(){var e;this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||B(this,e))},k.prototype.setDefaultEncoding=function e(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},k.prototype._writev=null,k.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||M(this,r,n)},Object.defineProperty(k.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=y.destroy,k.prototype._undestroy=y.undestroy,k.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n("./node_modules/process/browser.js"),n("./node_modules/timers-browserify/main.js").setImmediate,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/readable-stream/lib/internal/streams/BufferList.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n("./node_modules/safe-buffer/index.js").Buffer,s=n(2);function i(e,t,n){e.copy(t,n)}e.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function e(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function e(t){var n={data:t,next:this.head};0===this.length&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function e(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},e.prototype.clear=function e(){this.head=this.tail=null,this.length=0},e.prototype.join=function e(t){if(0===this.length)return"";for(var n=this.head,r=""+n.data;n=n.next;)r+=t+n.data;return r},e.prototype.concat=function e(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var n=o.allocUnsafe(t>>>0),r=this.head,s=0;r;)i(r.data,n,s),s+=r.data.length,r=r.next;return n},e}(),s&&s.inspect&&s.inspect.custom&&(e.exports.prototype[s.inspect.custom]=function(){var e=s.inspect({length:this.length});return this.constructor.name+" "+e})},"./node_modules/readable-stream/lib/internal/streams/destroy.js":function(e,t,n){"use strict";var r=n("./node_modules/process-nextick-args/index.js");function o(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)}function s(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(e,t){e.emit("error",t)}e.exports={destroy:o,undestroy:s}},"./node_modules/readable-stream/lib/internal/streams/stream-browser.js":function(e,t,n){e.exports=n("./node_modules/events/events.js").EventEmitter},"./node_modules/readable-stream/passthrough.js":function(e,t,n){e.exports=n("./node_modules/readable-stream/readable-browser.js").PassThrough},"./node_modules/readable-stream/readable-browser.js":function(e,t,n){(t=e.exports=n("./node_modules/readable-stream/lib/_stream_readable.js")).Stream=t,t.Readable=t,t.Writable=n("./node_modules/readable-stream/lib/_stream_writable.js"),t.Duplex=n("./node_modules/readable-stream/lib/_stream_duplex.js"),t.Transform=n("./node_modules/readable-stream/lib/_stream_transform.js"),t.PassThrough=n("./node_modules/readable-stream/lib/_stream_passthrough.js")},"./node_modules/readable-stream/transform.js":function(e,t,n){e.exports=n("./node_modules/readable-stream/readable-browser.js").Transform},"./node_modules/readable-stream/writable-browser.js":function(e,t,n){e.exports=n("./node_modules/readable-stream/lib/_stream_writable.js")},"./node_modules/safe-buffer/index.js":function(e,t,n){var r=n("./node_modules/buffer/index.js"),o=r.Buffer;function s(e,t){for(var n in e)t[n]=e[n]}function i(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(s(r,t),t.Buffer=i),s(o,i),i.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},i.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},"./node_modules/setimmediate/setImmediate.js":function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r=1,o={},s=!1,i=e.document,a,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?h():p()?m():e.MessageChannel?b():i&&"onreadystatechange"in i.createElement("script")?y():g(),u.setImmediate=c,u.clearImmediate=l}function c(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var s={callback:e,args:t};return o[r]=s,a(r),r++}function l(e){delete o[e]}function f(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function d(e){if(s)setTimeout(d,0,e);else{var t=o[e];if(t){s=!0;try{f(t)}finally{l(e),s=!1}}}}function h(){a=function(e){t.nextTick(function(){d(e)})}}function p(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}function m(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&d(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),a=function(n){e.postMessage(t+n,"*")}}function b(){var e=new MessageChannel;e.port1.onmessage=function(e){var t;d(e.data)},a=function(t){e.port2.postMessage(t)}}function y(){var e=i.documentElement;a=function(t){var n=i.createElement("script");n.onreadystatechange=function(){d(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}function g(){a=function(e){setTimeout(d,0,e)}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/signed-varint/index.js":function(e,t,n){var r=n("./node_modules/varint/index.js");t.encode=function e(t,n,o){t=t>=0?2*t:-2*t-1;var s=r.encode(t,n,o);return e.bytes=r.encode.bytes,s},t.decode=function e(t,n){var o=r.decode(t,n);return e.bytes=r.decode.bytes,1&o?(o+1)/-2:o/2},t.encodingLength=function(e){return r.encodingLength(e>=0?2*e:-2*e-1)}},"./node_modules/sort-keys/index.js":function(e,t,n){"use strict";const r=n("./node_modules/is-plain-obj/index.js");e.exports=((e,t)=>{if(!r(e))throw new TypeError("Expected a plain object");if("function"==typeof(t=t||{}))throw new TypeError("Specify the compare function as an option instead");const n=t.deep,o=[],s=[],i=e=>{const a=o.indexOf(e);if(-1!==a)return s[a];const u={},c=Object.keys(e).sort(t.compare);o.push(e),s.push(u);for(let t=0;t<c.length;t++){const o=c[t],s=e[o];if(n&&Array.isArray(s)){const e=[];for(let t=0;t<s.length;t++)e[t]=r(s[t])?i(s[t]):s[t];u[o]=e}else u[o]=n&&r(s)?i(s):s}return u};return i(e)})},"./node_modules/stable/stable.js":function(e,t,n){var r,o;r=this,o=function(){"use strict";var e=function(e,n){return t(e.slice(),n)};function t(e,t){"function"!=typeof t&&(t=function(e,t){return String(e).localeCompare(t)});var r=e.length;if(r<=1)return e;for(var o=new Array(r),s=1;s<r;s*=2){n(e,t,s,o);var i=e;e=o,o=i}return e}e.inplace=function(e,r){var o=t(e,r);return o!==e&&n(o,null,e.length,e),e};var n=function(e,t,n,r){var o=e.length,s=0,i=2*n,a,u,c,l,f;for(a=0;a<o;a+=i)for(c=(u=a+n)+n,u>o&&(u=o),c>o&&(c=o),l=a,f=u;;)if(l<u&&f<c)t(e[l],e[f])<=0?r[s++]=e[l++]:r[s++]=e[f++];else if(l<u)r[s++]=e[l++];else{if(!(f<c))break;r[s++]=e[f++]}};return e},e.exports=o()},"./node_modules/stream-browserify/index.js":function(e,t,n){e.exports=s;var r=n("./node_modules/events/events.js").EventEmitter,o;function s(){r.call(this)}n("./node_modules/inherits/inherits_browser.js")(s,r),s.Readable=n("./node_modules/readable-stream/readable-browser.js"),s.Writable=n("./node_modules/readable-stream/writable-browser.js"),s.Duplex=n("./node_modules/readable-stream/duplex-browser.js"),s.Transform=n("./node_modules/readable-stream/transform.js"),s.PassThrough=n("./node_modules/readable-stream/passthrough.js"),s.Stream=s,s.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function s(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",s),e._isStdio||t&&!1===t.end||(n.on("end",a),n.on("close",u));var i=!1;function a(){i||(i=!0,e.end())}function u(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",o),e.removeListener("drain",s),n.removeListener("end",a),n.removeListener("close",u),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",c),e.on("error",c),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},"./node_modules/string_decoder/lib/string_decoder.js":function(e,t,n){"use strict";var r=n("./node_modules/safe-buffer/index.js").Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function i(e){var t=s(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=i(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=b,this.end=y,t=3;break;default:return this.write=g,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,n){var r=t.length-1;if(r<n)return 0;var o=u(t[r]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--r<n||-2===o?0:(o=u(t[r]))>=0?(o>0&&(e.lastNeed=o-2),o):--r<n||-2===o?0:(o=u(t[r]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}function l(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,n=l(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function d(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function b(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=h,a.prototype.text=d,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},"./node_modules/timers-browserify/main.js":function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function s(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new s(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new s(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function t(){e._onTimeout&&e._onTimeout()},t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/traverse/index.js":function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(u){var c,l={},f=!0,d={node:n?s(u):u,node_:u,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){d.isRoot||(d.parent.node[d.key]=e),d.node=e,t&&(f=!1)},delete:function(e){delete d.parent.node[d.key],e&&(f=!1)},remove:function(e){p(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],e&&(f=!1)},keys:null,before:function(e){l.before=e},after:function(e){l.after=e},pre:function(e){l.pre=e},post:function(e){l.post=e},stop:function(){a=!1},block:function(){f=!1}};if(!a)return d;function h(){if("object"==typeof d.node&&null!==d.node){d.keys&&d.node_===d.node||(d.keys=i(d.node)),d.isLeaf=0==d.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===u){d.circular=o[e];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}h();var y=t.call(d,d.node);return void 0!==y&&d.update&&d.update(y),l.before&&l.before.call(d,d.node),f?("object"!=typeof d.node||null===d.node||d.circular||(o.push(d),h(),m(d.keys,function(t,o){r.push(t),l.pre&&l.pre.call(d,d.node[t],t);var s=e(d.node[t]);n&&b.call(d.node,t)&&(d.node[t]=s.node),s.isLast=o==d.keys.length-1,s.isFirst=0==o,l.post&&l.post.call(d,s),r.pop()}),o.pop()),l.after&&l.after.call(d,d.node),d):d}(e).node}function s(e){if("object"==typeof e&&null!==e){var t;if(p(e))t=[];else if(u(e))t=new Date(e.getTime?e.getTime():e);else if(c(e))t=new RegExp(e);else if(l(e))t={message:e.message};else if(f(e))t=new Boolean(e);else if(d(e))t=new Number(e);else if(h(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return m(i(e),function(n){t[n]=e[n]}),t}return e}r.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!b.call(t,r)){t=void 0;break}t=t[r]}return t},r.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!b.call(t,r))return!1;t=t[r]}return!0},r.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];b.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},r.prototype.map=function(e){return o(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach(function(t){this.isRoot&&n||(r=e.call(this,r,t))}),r},r.prototype.paths=function(){var e=[];return this.forEach(function(t){e.push(this.path)}),e},r.prototype.nodes=function(){var e=[];return this.forEach(function(t){e.push(this.node)}),e},r.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if("object"==typeof r&&null!==r){var a=s(r);return e.push(r),t.push(a),m(i(r),function(e){a[e]=n(r[e])}),e.pop(),t.pop(),a}return r}(this.value)};var i=Object.keys||function e(t){var n=[];for(var r in t)n.push(r);return n};function a(e){return Object.prototype.toString.call(e)}function u(e){return"[object Date]"===a(e)}function c(e){return"[object RegExp]"===a(e)}function l(e){return"[object Error]"===a(e)}function f(e){return"[object Boolean]"===a(e)}function d(e){return"[object Number]"===a(e)}function h(e){return"[object String]"===a(e)}var p=Array.isArray||function e(t){return"[object Array]"===Object.prototype.toString.call(t)},m=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};m(i(r.prototype),function(e){n[e]=function(t){var n=[].slice.call(arguments,1),o=new r(t);return o[e].apply(o,n)}});var b=Object.hasOwnProperty||function(e,t){return t in e}},"./node_modules/url/url.js":function(e,t,n){"use strict";var r=n("./node_modules/node-libs-browser/node_modules/punycode/punycode.js"),o=n("./node_modules/url/util.js");function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=k,t.resolve=x,t.resolveObject=j,t.format=w,t.Url=s;var i=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(l),d=["%","/","?",";","#"].concat(f),h=["/","?","#"],p=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n("./node_modules/querystring-es3/index.js");function k(e,t,n){if(e&&o.isObject(e)&&e instanceof s)return e;var r=new s;return r.parse(e,t,n),r}function w(e){return o.isString(e)&&(e=k(e)),e instanceof s?e.format():s.prototype.format.call(e)}function x(e,t){return k(e,!1,!0).resolve(t)}function j(e,t){return e?k(e,!1,!0).resolveObject(t):t}s.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var s=e.indexOf("?"),a=-1!==s&&s<e.indexOf("#")?"?":"#",c=e.split(a),l=/\\/g;c[0]=c[0].replace(l,"/");var p=e=c.join(a);if(p=p.trim(),!n&&1===e.split("#").length){var k=u.exec(p);if(k)return this.path=p,this.href=p,this.pathname=k[1],k[2]?(this.search=k[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=i.exec(p);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,p=p.substr(w.length)}if(n||w||p.match(/^\/\/[^@\/]+@[^@\/]+/)){var j="//"===p.substr(0,2);!j||w&&g[w]||(p=p.substr(2),this.slashes=!0)}if(!g[w]&&(j||w&&!_[w])){for(var S=-1,E=0,A,O;E<h.length;E++){var T;-1!==(T=p.indexOf(h[E]))&&(-1===S||T<S)&&(S=T)}-1!==(O=-1===S?p.lastIndexOf("@"):p.lastIndexOf("@",S))&&(A=p.slice(0,O),p=p.slice(O+1),this.auth=decodeURIComponent(A)),S=-1;for(var E=0;E<d.length;E++){var T;-1!==(T=p.indexOf(d[E]))&&(-1===S||T<S)&&(S=T)}-1===S&&(S=p.length),this.host=p.slice(0,S),p=p.slice(S),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var N=this.hostname.split(/\./),E=0,B=N.length;E<B;E++){var C=N[E];if(C&&!C.match(m)){for(var R="",F=0,P=C.length;F<P;F++)C.charCodeAt(F)>127?R+="x":R+=C[F];if(!R.match(m)){var M=N.slice(0,E),L=N.slice(E+1),U=C.match(b);U&&(M.push(U[1]),L.unshift(U[2])),L.length&&(p="/"+L.join(".")+p),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=r.toASCII(this.hostname));var D=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+D,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==p[0]&&(p="/"+p))}if(!y[x])for(var E=0,B=f.length;E<B;E++){var q=f[E];if(-1!==p.indexOf(q)){var K=encodeURIComponent(q);K===q&&(K=escape(q)),p=p.split(q).join(K)}}var $=p.indexOf("#");-1!==$&&(this.hash=p.substr($),p=p.slice(0,$));var H=p.indexOf("?");if(-1!==H?(this.search=p.substr(H),this.query=p.substr(H+1),t&&(this.query=v.parse(this.query)),p=p.slice(0,H)):t&&(this.search="",this.query={}),p&&(this.pathname=p),_[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var D=this.pathname||"",W=this.search||"";this.path=D+W}return this.href=this.format(),this},s.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",s=!1,i="";this.host?s=e+this.host:this.hostname&&(s=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(i=v.stringify(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||_[t])&&!1!==s?(s="//"+(s||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):s||(s=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+s+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+r},s.prototype.resolve=function(e){return this.resolveObject(k(e,!1,!0)).format()},s.prototype.resolveObject=function(e){if(o.isString(e)){var t=new s;t.parse(e,!1,!0),e=t}for(var n=new s,r=Object.keys(this),i=0;i<r.length;i++){var a=r[i];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(n[l]=e[l])}return _[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!_[e.protocol]){for(var f=Object.keys(e),d=0;d<f.length;d++){var h=f[d];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",b=n.search||"";n.path=m+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),k=v||y||n.host&&e.pathname,w=k,x=n.pathname&&n.pathname.split("/")||[],p=e.pathname&&e.pathname.split("/")||[],j=n.protocol&&!_[n.protocol];if(j&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),k=k&&(""===p[0]||""===x[0])),v)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=p;else if(p.length)x||(x=[]),x.pop(),x=x.concat(p),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){var S;if(j)n.hostname=n.host=x.shift(),(S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=S.shift(),n.host=n.hostname=S.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=x.slice(-1)[0],A=(n.host||e.host||x.length>1)&&("."===E||".."===E)||""===E,O=0,T=x.length;T>=0;T--)"."===(E=x[T])?x.splice(T,1):".."===E?(x.splice(T,1),O++):O&&(x.splice(T,1),O--);if(!k&&!w)for(;O--;O)x.unshift("..");!k||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),A&&"/"!==x.join("/").substr(-1)&&x.push("");var I=""===x[0]||x[0]&&"/"===x[0].charAt(0),S;j&&(n.hostname=n.host=I?"":x.length?x.shift():"",(S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=S.shift(),n.host=n.hostname=S.shift()));return(k=k||n.host&&x.length)&&!I&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},s.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},"./node_modules/url/util.js":function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},"./node_modules/util-deprecate/browser.js":function(e,t,n){(function(t){function n(e,t){if(r("noDeprecation"))return e;var n=!1;function o(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return o}function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/util/support/isBufferBrowser.js":function(e,t){e.exports=function e(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},"./node_modules/util/util.js":function(e,t,n){(function(e,r){var o=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,s=r.length,i=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=s)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),u=r[n];n<s;u=r[++n])_(u)||!E(u)?i+=" "+u:i+=" "+a(u);return i},t.deprecate=function(n,o){if(j(e.process))return function(){return t.deprecate(n,o).apply(this,arguments)};if(!0===r.noDeprecation)return n;var s=!1;function i(){if(!s){if(r.throwDeprecation)throw new Error(o);r.traceDeprecation?console.trace(o):console.error(o),s=!0}return n.apply(this,arguments)}return i};var s={},i;function a(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(n)?r.showHidden=n:n&&t._extend(r,n),j(r.showHidden)&&(r.showHidden=!1),j(r.depth)&&(r.depth=2),j(r.colors)&&(r.colors=!1),j(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),f(r,e,r.depth)}function u(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function c(e,t){return e}function l(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function f(e,n,r){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return w(o)||(o=f(e,o,r)),o}var s=d(e,n);if(s)return s;var i=Object.keys(n),a=l(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(n)),O(n)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return h(n);if(0===i.length){if(T(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(S(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(A(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return h(n)}var c="",g=!1,_=["{","}"],v,k;(y(n)&&(g=!0,_=["[","]"]),T(n))&&(c=" [Function"+(n.name?": "+n.name:"")+"]");return S(n)&&(c=" "+RegExp.prototype.toString.call(n)),A(n)&&(c=" "+Date.prototype.toUTCString.call(n)),O(n)&&(c=" "+h(n)),0!==i.length||g&&0!=n.length?r<0?S(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),k=g?p(e,n,r,a,i):i.map(function(t){return m(e,n,r,a,t,g)}),e.seen.pop(),b(k,c,_)):_[0]+c+_[1]}function d(e,t){if(j(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return k(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o){for(var s=[],i=0,a=t.length;i<a;++i)F(t,String(i))?s.push(m(e,t,n,r,String(i),!0)):s.push("");return o.forEach(function(o){o.match(/^\d+$/)||s.push(m(e,t,n,r,o,!0))}),s}function m(e,t,n,r,o,s){var i,a,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),F(r,o)||(i="["+o+"]"),a||(e.seen.indexOf(u.value)<0?(a=_(n)?f(e,u.value,null):f(e,u.value,n-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return"   "+e}).join("\n")):a=e.stylize("[Circular]","special")),j(i)){if(s&&o.match(/^\d+$/))return a;(i=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+a}function b(e,t,n){var r=0,o;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function y(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function _(e){return null===e}function v(e){return null==e}function k(e){return"number"==typeof e}function w(e){return"string"==typeof e}function x(e){return"symbol"==typeof e}function j(e){return void 0===e}function S(e){return E(e)&&"[object RegExp]"===N(e)}function E(e){return"object"==typeof e&&null!==e}function A(e){return E(e)&&"[object Date]"===N(e)}function O(e){return E(e)&&("[object Error]"===N(e)||e instanceof Error)}function T(e){return"function"==typeof e}function I(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function N(e){return Object.prototype.toString.call(e)}function B(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(j(i)&&(i=Object({NODE_ENV:"development"}).NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=y,t.isBoolean=g,t.isNull=_,t.isNullOrUndefined=v,t.isNumber=k,t.isString=w,t.isSymbol=x,t.isUndefined=j,t.isRegExp=S,t.isObject=E,t.isDate=A,t.isError=O,t.isFunction=T,t.isPrimitive=I,t.isBuffer=n("./node_modules/util/support/isBufferBrowser.js");var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var e=new Date,t=[B(e.getHours()),B(e.getMinutes()),B(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",R(),t.format.apply(t,arguments))},t.inherits=n("./node_modules/inherits/inherits_browser.js"),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/uuid/lib/bytesToUuid.js":function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);function o(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}e.exports=o},"./node_modules/uuid/lib/rng-browser.js":function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function e(){return n(r),r}}else{var o=new Array(16);e.exports=function e(){for(var t=0,n;t<16;t++)0==(3&t)&&(n=4294967296*Math.random()),o[t]=n>>>((3&t)<<3)&255;return o}}},"./node_modules/uuid/v4.js":function(e,t,n){var r=n("./node_modules/uuid/lib/rng-browser.js"),o=n("./node_modules/uuid/lib/bytesToUuid.js");function s(e,t,n){var s=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;a<16;++a)t[s+a]=i[a];return t||o(i)}e.exports=s},"./node_modules/varint/decode.js":function(e,t){e.exports=o;var n=128,r=127;function o(e,t){var s=0,t,i=0,a=t=t||0,u,c=e.length;do{if(a>=c)throw o.bytes=0,new RangeError("Could not decode varint");u=e[a++],s+=i<28?(u&r)<<i:(u&r)*Math.pow(2,i),i+=7}while(u>=n);return o.bytes=a-t,s}},"./node_modules/varint/encode.js":function(e,t){e.exports=i;var n=128,r=127,o=-128,s=Math.pow(2,31);function i(e,t,r){t=t||[];for(var a=r=r||0;e>=s;)t[r++]=255&e|n,e/=128;for(;e&o;)t[r++]=255&e|n,e>>>=7;return t[r]=0|e,i.bytes=r-a+1,t}},"./node_modules/varint/index.js":function(e,t,n){e.exports={encode:n("./node_modules/varint/encode.js"),decode:n("./node_modules/varint/decode.js"),encodingLength:n("./node_modules/varint/length.js")}},"./node_modules/varint/length.js":function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),o=Math.pow(2,21),s=Math.pow(2,28),i=Math.pow(2,35),a=Math.pow(2,42),u=Math.pow(2,49),c=Math.pow(2,56),l=Math.pow(2,63);e.exports=function(e){return e<n?1:e<r?2:e<o?3:e<s?4:e<i?5:e<a?6:e<u?7:e<c?8:e<l?9:10}},"./node_modules/webpack/buildin/amd-options.js":function(e,t){(function(t){e.exports=t}).call(this,{})},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./node_modules/xtend/immutable.js":function(e,t){e.exports=r;var n=Object.prototype.hasOwnProperty;function r(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e}},"./src/index.js":function(e,t,n){"use strict";(function(t){const r=n("./node_modules/ipfs-block/src/index.js"),o=n("./node_modules/pull-stream/index.js"),s=n("./node_modules/cids/src/index.js"),i=n("./node_modules/async/doUntil.js"),a=n("./node_modules/ipfs-repo/src/index.js"),u=n("./node_modules/ipfs-block-service/src/index.js"),c=n("./node_modules/path-browserify/index.js").join,l=n("./node_modules/path-browserify/index.js").sep,f=n("./node_modules/pull-defer/index.js").source,d=n("./node_modules/pull-traverse/index.js"),h=n("./node_modules/async/map.js"),p=n("./node_modules/async/series.js"),m=n("./node_modules/async/waterfall.js"),b=n("./node_modules/interface-datastore/src/index.js").MemoryDatastore,y=n("./node_modules/merge-options/index.js"),g=n("./node_modules/ipld-dag-cbor/src/index.js"),_=n("./node_modules/ipld-dag-pb/src/index.js"),v=n("./node_modules/ipld-raw/src/index.js");function k(){}class w{constructor(e){const t=y(w.defaultOptions,e);if(!t.blockService)throw new Error("Missing blockservice");this.bs=t.blockService,this.resolvers={},this.support={},this.support.add=((e,t,n)=>{if(this.resolvers[e])throw new Error('Resolver already exists for codec "'+e+'"');this.resolvers[e]={resolver:t,util:n}}),this.support.load=t.loadFormat||((e,t)=>{t(new Error(`No resolver found for codec "${e}"`))}),this.support.rm=(e=>{this.resolvers[e]&&delete this.resolvers[e]});for(const e of t.formats){const{resolver:t,util:n}=e,r=t.multicodec;this.support.add(r,t,n)}}get(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n={}),"string"==typeof t&&(t=c("/",t).substr(1).split(l).join("/")),""===t||!t)return this._get(e,(t,n)=>{if(t)return r(t);r(null,{value:n,remainderPath:"",cid:e})});let o;i(n=>{this._getFormat(e.codec,(r,s)=>{if(r)return n(r);this.bs.get(e,(e,r)=>{if(e)return n(e);s.resolver.resolve(r.data,t,(e,r)=>{if(e)return n(e);o=r.value,t=r.remainderPath,n()})})})},()=>{const r=!t||""===t||"/"===t,s=o&&!w._maybeCID(o);return r&&s||n.localResolve?(e=w._maybeCID(o)||e,!0):((o=w._maybeCID(o))&&(e=o),!1)},(n,s)=>n?r(n):r(null,{value:o,remainderPath:t,cid:e}))}getStream(e,t,n){const r=f();return this.get(e,t,n,(e,t)=>{if(e)return r.resolve(o.error(e));r.resolve(o.values([t]))}),r}getMany(e,t){if(!Array.isArray(e))return t(new Error("Argument must be an array of CIDs"));this.bs.getMany(e,(e,n)=>{if(e)return t(e);h(n,(e,t)=>{this._getFormat(e.cid.codec,(n,r)=>{if(n)return t(n);r.util.deserialize(e.data,t)})},t)})}put(e,n,r){return"function"==typeof n?(r=n,t(()=>r(new Error("IPLDResolver.put requires options")))):(r=r||k,n.cid&&s.isCID(n.cid)?n.onlyHash?t(()=>r(null,n.cid)):this._put(n.cid,e,r):void this._getFormat(n.format,(t,o)=>{if(t)return r(t);o.util.cid(e,n,(t,o)=>t?r(t):n.onlyHash?r(null,o):void this._put(o,e,r))}))}treeStream(e,t,n){let r;return"object"==typeof t&&(n=t,t=void 0),(n=n||{}).recursive||(r=f(),m([t=>this._getFormat(e.codec,t),(t,n)=>this.bs.get(e,(e,r)=>{if(e)return n(e);n(null,t,r)}),(e,t,n)=>e.resolver.tree(t.data,n)],(e,t)=>{if(e)return r.abort(e),r;r.resolve(o.values(t))})),n.recursive&&(r=o(d.widthFirst({basePath:null,cid:e},e=>{if("string"==typeof e)return o.empty();const t=f(),n=e.cid;return m([e=>this._getFormat(n.codec,e),(e,t)=>this.bs.get(n,(n,r)=>{if(n)return t(n);t(null,e,r)}),(e,t,n)=>e.resolver.tree(t.data,(r,o)=>{if(r)return n(r);h(o,(n,r)=>{e.resolver.isLink(t.data,n,(e,t)=>{if(e)return r(e);r(null,{path:n,link:t})})},n)})],(n,r)=>{if(n)return t.abort(n),t;t.resolve(o.values(r.map(t=>{const n=e.basePath?e.basePath+"/"+t.path:t.path;return t.link?{basePath:n,cid:w._maybeCID(t.link)}:n})))}),t}),o.map(e=>"string"==typeof e?e:e.basePath),o.filter(Boolean))),t?o(r,o.map(e=>{if(0===e.indexOf(t))return e=e.slice(t.length+1)}),o.filter(Boolean)):r}remove(e,t){this.bs.delete(e,t)}_get(e,t){m([t=>this._getFormat(e.codec,t),(t,n)=>this.bs.get(e,(e,r)=>{if(e)return n(e);n(null,t,r)}),(e,t,n)=>{e.util.deserialize(t.data,(e,t)=>{if(e)return n(e);n(null,t)})}],t)}_getFormat(e,t){if(this.resolvers[e])return t(null,this.resolvers[e]);this.support.load(e,(n,r)=>{if(n)return t(n);this.resolvers[e]=r,t(null,r)})}_put(e,t,n){n=n||k,m([t=>this._getFormat(e.codec,t),(e,n)=>e.util.serialize(t,n),(t,n)=>this.bs.put(new r(t,e),n)],t=>{if(t)return n(t);n(null,e)})}static _maybeCID(e){return s.isCID(e)?e:e&&void 0!==e["/"]?new s(e["/"]):null}}w.defaultOptions={formats:[g,_,v]},w.inMemory=function(e){const t=new a("in-memory",{storageBackends:{root:b,blocks:b,datastore:b},lock:"memory"}),n=new u(t);p([e=>t.init({},e),e=>t.open(e)],t=>{if(t)return e(t);e(null,new w({blockService:n}))})},e.exports=w}).call(this,n("./node_modules/timers-browserify/main.js").setImmediate)},0:function(e,t,n){e.exports=n("./src/index.js")},1:function(e,t){},2:function(e,t){}});
  //# sourceMappingURL=index.min.js.map