UNPKG

bt-tools

Version:
9 lines 73.2 kB
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.BtTools=r():t.BtTools=r()}(self,function(){return(()=>{var e={9742:(t,r)=>{"use strict";r.byteLength=function(t){var r=c(t),t=r[0],r=r[1];return 3*(t+r)/4-r},r.toByteArray=function(t){var r,e,n=c(t),o=n[0],n=n[1],i=new s(function(t,r){return 3*(t+r)/4-r}(o,n)),a=0,u=0<n?o-4:o;for(e=0;e<u;e+=4)r=f[t.charCodeAt(e)]<<18|f[t.charCodeAt(e+1)]<<12|f[t.charCodeAt(e+2)]<<6|f[t.charCodeAt(e+3)],i[a++]=r>>16&255,i[a++]=r>>8&255,i[a++]=255&r;2===n&&(r=f[t.charCodeAt(e)]<<2|f[t.charCodeAt(e+1)]>>4,i[a++]=255&r);1===n&&(r=f[t.charCodeAt(e)]<<10|f[t.charCodeAt(e+1)]<<4|f[t.charCodeAt(e+2)]>>2,i[a++]=r>>8&255,i[a++]=255&r);return i},r.fromByteArray=function(t){for(var r,e=t.length,n=e%3,o=[],i=0,a=e-n;i<a;i+=16383)o.push(function(t,r,e){for(var n,o=[],i=r;i<e;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(function(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}(n));return o.join("")}(t,i,a<i+16383?a:i+16383));1==n?(r=t[e-1],o.push(u[r>>2]+u[r<<4&63]+"==")):2==n&&(r=(t[e-2]<<8)+t[e-1],o.push(u[r>>10]+u[r>>4&63]+u[r<<2&63]+"="));return o.join("")};for(var u=[],f=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=e.length;n<o;++n)u[n]=e[n],f[e.charCodeAt(n)]=n;function c(t){var r=t.length;if(0<r%4)throw new Error("Invalid string. Length must be a multiple of 4");t=t.indexOf("=");return[t=-1===t?r:t,t===r?0:4-t%4]}f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},8764:(t,e,r)=>{"use strict";var u=r(9742),i=r(645),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */e.lW=h,e.h2=50;var n=2147483647;function o(t){if(n<t)throw new RangeError('The value "'+t+'" is invalid for option "size"');t=new Uint8Array(t);return Object.setPrototypeOf(t,h.prototype),t}function h(t,r,e){if("number"!=typeof t)return a(t,r,e);if("string"==typeof r)throw new TypeError('The "string" argument must be of type string. Received type number');return s(t)}function a(t,r,e){if("string"==typeof t)return function(t,r){"string"==typeof r&&""!==r||(r="utf8");if(!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=0|g(t,r),n=o(e),r=n.write(t,r);r!==e&&(n=n.slice(0,r));return n}(t,r);if(ArrayBuffer.isView(t))return function(t){if(U(t,Uint8Array)){var r=new Uint8Array(t);return l(r.buffer,r.byteOffset,r.byteLength)}return c(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(U(t,ArrayBuffer)||t&&U(t.buffer,ArrayBuffer))return l(t,r,e);if("undefined"!=typeof SharedArrayBuffer&&(U(t,SharedArrayBuffer)||t&&U(t.buffer,SharedArrayBuffer)))return l(t,r,e);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return h.from(n,r,e);n=function(t){if(h.isBuffer(t)){var r=0|p(t.length),e=o(r);return 0===e.length?e:(t.copy(e,0,0,r),e)}if(void 0!==t.length)return"number"!=typeof t.length||O(t.length)?o(0):c(t);if("Buffer"===t.type&&Array.isArray(t.data))return c(t.data)}(t);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return h.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function s(t){return f(t),o(t<0?0:0|p(t))}function c(t){for(var r=t.length<0?0:0|p(t.length),e=o(r),n=0;n<r;n+=1)e[n]=255&t[n];return e}function l(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');e=void 0===r&&void 0===e?new Uint8Array(t):void 0===e?new Uint8Array(t,r):new Uint8Array(t,r,e);return Object.setPrototypeOf(e,h.prototype),e}function p(t){if(n<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|t}function g(t,r){if(h.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||U(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===e)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return I(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return R(t).length;default:if(o)return n?-1:I(t).length;r=(""+r).toLowerCase(),o=!0}}function d(t,r,e){var n,o,i,a=!1;if((r=void 0===r||r<0?0:r)>this.length)return"";if((e=void 0===e||e>this.length?this.length:e)<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return function(t,r,e){var n=t.length;(!r||r<0)&&(r=0);(!e||e<0||n<e)&&(e=n);for(var o="",i=r;i<e;++i)o+=L[t[i]];return o}(this,r,e);case"utf8":case"utf-8":return E(this,r,e);case"ascii":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(127&t[o]);return n}(this,r,e);case"latin1":case"binary":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(t[o]);return n}(this,r,e);case"base64":return n=this,i=e,0===(o=r)&&i===n.length?u.fromByteArray(n):u.fromByteArray(n.slice(o,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,r,e){for(var n=t.slice(r,e),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,r,e);default:if(a)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function y(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function v(t,r,e,n,o){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):2147483647<e?e=2147483647:e<-2147483648&&(e=-2147483648),(e=(e=O(e=+e)?o?0:t.length-1:e)<0?t.length+e:e)>=t.length){if(o)return-1;e=t.length-1}else if(e<0){if(!o)return-1;e=0}if("string"==typeof r&&(r=h.from(r,n)),h.isBuffer(r))return 0===r.length?-1:w(t,r,e,n,o);if("number"==typeof r)return r&=255,"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,r,e):w(t,[r],e,n,o);throw new TypeError("val must be string, number or Buffer")}function w(t,r,e,n,o){var i=1,a=t.length,u=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;a/=i=2,u/=2,e/=2}function f(t,r){return 1===i?t[r]:t.readUInt16BE(r*i)}if(o)for(var s=-1,c=e;c<a;c++)if(f(t,c)===f(r,-1===s?0:c-s)){if(c-(s=-1===s?c:s)+1===u)return s*i}else-1!==s&&(c-=c-s),s=-1;else for(c=e=a<e+u?a-u:e;0<=c;c--){for(var h=!0,l=0;l<u;l++)if(f(t,c+l)!==f(r,l)){h=!1;break}if(h)return c}return-1}function m(t,r,e,n){return M(function(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}(r),t,e,n)}function b(t,r,e,n){return M(function(t,r){for(var e,n,o=[],i=0;i<t.length&&!((r-=2)<0);++i)n=t.charCodeAt(i),e=n>>8,n=n%256,o.push(n),o.push(e);return o}(r,t.length-e),t,e,n)}function E(t,r,e){e=Math.min(t.length,e);for(var n=[],o=r;o<e;){var i,a,u,f,s=t[o],c=null,h=239<s?4:223<s?3:191<s?2:1;if(o+h<=e)switch(h){case 1:s<128&&(c=s);break;case 2:128==(192&(i=t[o+1]))&&127<(f=(31&s)<<6|63&i)&&(c=f);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&2047<(f=(15&s)<<12|(63&i)<<6|63&a)&&(f<55296||57343<f)&&(c=f);break;case 4:i=t[o+1],a=t[o+2],u=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&65535<(f=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&u)&&f<1114112&&(c=f)}null===c?(c=65533,h=1):65535<c&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=h}return function(t){var r=t.length;if(r<=A)return String.fromCharCode.apply(String,t);var e="",n=0;for(;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=A));return e}(n)}(h.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=a,Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(t,r,e){return r=r,e=e,f(t=t),!(t<=0)&&void 0!==r?"string"==typeof e?o(t).fill(r,e):o(t).fill(r):o(t)},h.allocUnsafe=s,h.allocUnsafeSlow=s,h.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==h.prototype},h.compare=function(t,r){if(U(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),U(r,Uint8Array)&&(r=h.from(r,r.offset,r.byteLength)),!h.isBuffer(t)||!h.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var e=t.length,n=r.length,o=0,i=Math.min(e,n);o<i;++o)if(t[o]!==r[o]){e=t[o],n=r[o];break}return e<n?-1:n<e?1:0},h.isEncoding=function(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}},h.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);if(void 0===r)for(o=r=0;o<t.length;++o)r+=t[o].length;for(var e=h.allocUnsafe(r),n=0,o=0;o<t.length;++o){var i=t[o];if(U(i,Uint8Array))n+i.length>e.length?h.from(i).copy(e,n):Uint8Array.prototype.set.call(e,i,n);else{if(!h.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(e,n)}n+=i.length}return e},h.byteLength=g,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)y(this,r,r+1);return this},h.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)y(this,r,r+3),y(this,r+1,r+2);return this},h.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)y(this,r,r+7),y(this,r+1,r+6),y(this,r+2,r+5),y(this,r+3,r+4);return this},h.prototype.toLocaleString=h.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?E(this,0,t):d.apply(this,arguments)},h.prototype.equals=function(t){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===h.compare(this,t)},h.prototype.inspect=function(){var t="",r=e.h2,t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim();return this.length>r&&(t+=" ... "),"<Buffer "+t+">"},r&&(h.prototype[r]=h.prototype.inspect),h.prototype.compare=function(t,r,e,n,o){if(U(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),(r=void 0===r?0:r)<0||e>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(o<=n&&e<=r)return 0;if(o<=n)return-1;if(e<=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(e>>>=0)-(r>>>=0),u=Math.min(i,a),f=this.slice(n,o),s=t.slice(r,e),c=0;c<u;++c)if(f[c]!==s[c]){i=f[c],a=s[c];break}return i<a?-1:a<i?1:0},h.prototype.includes=function(t,r,e){return-1!==this.indexOf(t,r,e)},h.prototype.indexOf=function(t,r,e){return v(this,t,r,e,!0)},h.prototype.lastIndexOf=function(t,r,e){return v(this,t,r,e,!1)},h.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r>>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var o=this.length-r;if((void 0===e||o<e)&&(e=o),0<t.length&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var i,a,u,f=!1;;)switch(n){case"hex":return function(t,r,e,n){e=Number(e)||0;var o=t.length-e;(!n||o<(n=Number(n)))&&(n=o),(o=r.length)/2<n&&(n=o/2);for(var i=0;i<n;++i){var a=parseInt(r.substr(2*i,2),16);if(O(a))return i;t[e+i]=a}return i}(this,t,r,e);case"utf8":case"utf-8":return a=r,u=e,M(I(t,(i=this).length-a),i,a,u);case"ascii":case"latin1":case"binary":return m(this,t,r,e);case"base64":return i=this,a=r,u=e,M(R(t),i,a,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b(this,t,r,e);default:if(f)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function B(t,r,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(e<t+r)throw new RangeError("Trying to access beyond buffer length")}function x(t,r,e,n,o,i){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<r||r<i)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}function T(t,r,e,n){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function P(t,r,e,n,o){return r=+r,e>>>=0,o||T(t,0,e,4),i.write(t,r,e,n,23,4),e+4}function C(t,r,e,n,o){return r=+r,e>>>=0,o||T(t,0,e,8),i.write(t,r,e,n,52,8),e+8}h.prototype.slice=function(t,r){var e=this.length;(t=~~t)<0?(t+=e)<0&&(t=0):e<t&&(t=e),(r=void 0===r?e:~~r)<0?(r+=e)<0&&(r=0):e<r&&(r=e);r=this.subarray(t,r=r<t?t:r);return Object.setPrototypeOf(r,h.prototype),r},h.prototype.readUintLE=h.prototype.readUIntLE=function(t,r,e){t>>>=0,r>>>=0,e||B(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n},h.prototype.readUintBE=h.prototype.readUIntBE=function(t,r,e){t>>>=0,r>>>=0,e||B(t,r,this.length);for(var n=this[t+--r],o=1;0<r&&(o*=256);)n+=this[t+--r]*o;return n},h.prototype.readUint8=h.prototype.readUInt8=function(t,r){return t>>>=0,r||B(t,1,this.length),this[t]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(t,r){return t>>>=0,r||B(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(t,r){return t>>>=0,r||B(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(t,r){return t>>>=0,r||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(t,r){return t>>>=0,r||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||B(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return(o*=128)<=n&&(n-=Math.pow(2,8*r)),n},h.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||B(t,r,this.length);for(var n=r,o=1,i=this[t+--n];0<n&&(o*=256);)i+=this[t+--n]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*r)),i},h.prototype.readInt8=function(t,r){return t>>>=0,r||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,r){t>>>=0,r||B(t,2,this.length);t=this[t]|this[t+1]<<8;return 32768&t?4294901760|t:t},h.prototype.readInt16BE=function(t,r){t>>>=0,r||B(t,2,this.length);t=this[t+1]|this[t]<<8;return 32768&t?4294901760|t:t},h.prototype.readInt32LE=function(t,r){return t>>>=0,r||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,r){return t>>>=0,r||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,r){return t>>>=0,r||B(t,4,this.length),i.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,r){return t>>>=0,r||B(t,4,this.length),i.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,r){return t>>>=0,r||B(t,8,this.length),i.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,r){return t>>>=0,r||B(t,8,this.length),i.read(this,t,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(t,r,e,n){t=+t,r>>>=0,e>>>=0,n||x(this,t,r,e,Math.pow(2,8*e)-1,0);var o=1,i=0;for(this[r]=255&t;++i<e&&(o*=256);)this[r+i]=t/o&255;return r+e},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(t,r,e,n){t=+t,r>>>=0,e>>>=0,n||x(this,t,r,e,Math.pow(2,8*e)-1,0);var o=e-1,i=1;for(this[r+o]=255&t;0<=--o&&(i*=256);)this[r+o]=t/i&255;return r+e},h.prototype.writeUint8=h.prototype.writeUInt8=function(t,r,e){return t=+t,r>>>=0,e||x(this,t,r,1,255,0),this[r]=255&t,r+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(t,r,e){return t=+t,r>>>=0,e||x(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(t,r,e){return t=+t,r>>>=0,e||x(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(t,r,e){return t=+t,r>>>=0,e||x(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(t,r,e){return t=+t,r>>>=0,e||x(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},h.prototype.writeIntLE=function(t,r,e,n){t=+t,r>>>=0,n||x(this,t,r,e,(n=Math.pow(2,8*e-1))-1,-n);var o=0,i=1,a=0;for(this[r]=255&t;++o<e&&(i*=256);)t<0&&0===a&&0!==this[r+o-1]&&(a=1),this[r+o]=(t/i>>0)-a&255;return r+e},h.prototype.writeIntBE=function(t,r,e,n){t=+t,r>>>=0,n||x(this,t,r,e,(n=Math.pow(2,8*e-1))-1,-n);var o=e-1,i=1,a=0;for(this[r+o]=255&t;0<=--o&&(i*=256);)t<0&&0===a&&0!==this[r+o+1]&&(a=1),this[r+o]=(t/i>>0)-a&255;return r+e},h.prototype.writeInt8=function(t,r,e){return t=+t,r>>>=0,e||x(this,t,r,1,127,-128),this[r]=255&(t=t<0?255+t+1:t),r+1},h.prototype.writeInt16LE=function(t,r,e){return t=+t,r>>>=0,e||x(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},h.prototype.writeInt16BE=function(t,r,e){return t=+t,r>>>=0,e||x(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},h.prototype.writeInt32LE=function(t,r,e){return t=+t,r>>>=0,e||x(this,t,r,4,2147483647,-2147483648),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},h.prototype.writeInt32BE=function(t,r,e){return t=+t,r>>>=0,e||x(this,t,r,4,2147483647,-2147483648),this[r]=(t=t<0?4294967295+t+1:t)>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},h.prototype.writeFloatLE=function(t,r,e){return P(this,t,r,!0,e)},h.prototype.writeFloatBE=function(t,r,e){return P(this,t,r,!1,e)},h.prototype.writeDoubleLE=function(t,r,e){return C(this,t,r,!0,e)},h.prototype.writeDoubleBE=function(t,r,e){return C(this,t,r,!1,e)},h.prototype.copy=function(t,r,e,n){if(!h.isBuffer(t))throw new TypeError("argument should be a Buffer");if(e=e||0,n||0===n||(n=this.length),r>=t.length&&(r=t.length),(n=0<n&&n<e?e:n)===e)return 0;if(0===t.length||0===this.length)return 0;if((r=r||0)<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length);var o=(n=t.length-r<n-e?t.length-r+e:n)-e;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(r,e,n):Uint8Array.prototype.set.call(t,this.subarray(e,n),r),o},h.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var o;1===t.length&&(o=t.charCodeAt(0),("utf8"===n&&o<128||"latin1"===n)&&(t=o))}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;var i;if(r>>>=0,e=void 0===e?this.length:e>>>0,"number"==typeof(t=t||0))for(i=r;i<e;++i)this[i]=t;else{var a=h.isBuffer(t)?t:h.from(t,n),u=a.length;if(0===u)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<e-r;++i)this[i+r]=a[i%u]}return this};var S=/[^+/0-9A-Za-z-_]/g;function I(t,r){var e;r=r||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if(55295<(e=t.charCodeAt(a))&&e<57344){if(!o){if(56319<e){-1<(r-=3)&&i.push(239,191,189);continue}if(a+1===n){-1<(r-=3)&&i.push(239,191,189);continue}o=e;continue}if(e<56320){-1<(r-=3)&&i.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&-1<(r-=3)&&i.push(239,191,189);if(o=null,e<128){if(--r<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return i}function R(t){return u.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function M(t,r,e,n){for(var o=0;o<n&&!(o+e>=r.length||o>=t.length);++o)r[o+e]=t[o];return o}function U(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}function O(t){return t!=t}var L=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=16*e,o=0;o<16;++o)r[n+o]=t[e]+t[o];return r}()},3099:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:(t,r,e)=>{var n=e(111);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},5787:t=>{t.exports=function(t,r,e){if(!(t instanceof r))throw TypeError("Incorrect "+(e?e+" ":"")+"invocation");return t}},9670:(t,r,e)=>{var n=e(111);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},1318:(t,r,e)=>{var f=e(5656),s=e(7466),c=e(1400),e=function(u){return function(t,r,e){var n,o=f(t),i=s(o.length),a=c(e,i);if(u&&r!=r){for(;a<i;)if((n=o[a++])!=n)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===r)return u||a||0;return!u&&-1}};t.exports={includes:e(!0),indexOf:e(!1)}},7072:(t,r,e)=>{var o=e(5112)("iterator"),i=!1;try{var n=0,a={next:function(){return{done:!!n++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,r){if(!r&&!i)return!1;var e=!1;try{var n={};n[o]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch(t){}return e}},4326:t=>{var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},648:(t,r,e)=>{var n=e(1694),o=e(4326),i=e(5112)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(t=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),i))?t:a?o(r):"Object"==(t=o(r))&&"function"==typeof r.callee?"Arguments":t}},9920:(t,r,e)=>{var u=e(6656),f=e(3887),s=e(1236),c=e(3070);t.exports=function(t,r){for(var e=f(r),n=c.f,o=s.f,i=0;i<e.length;i++){var a=e[i];u(t,a)||n(t,a,o(r,a))}}},8880:(t,r,e)=>{var n=e(9781),o=e(3070),i=e(9114);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},9114:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},9781:(t,r,e)=>{e=e(7293);t.exports=!e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:(t,r,e)=>{var n=e(7854),e=e(111),o=n.document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},7871:t=>{t.exports="object"==typeof window},6833:(t,r,e)=>{e=e(8113);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(e)},5268:(t,r,e)=>{var n=e(4326),e=e(7854);t.exports="process"==n(e.process)},1036:(t,r,e)=>{e=e(8113);t.exports=/web0s(?!.*chrome)/i.test(e)},8113:(t,r,e)=>{e=e(5005);t.exports=e("navigator","userAgent")||""},7392:(t,r,e)=>{var n,o,i=e(7854),e=e(8113),i=i.process,i=i&&i.versions,i=i&&i.v8;i?o=(n=i.split("."))[0]<4?1:n[0]+n[1]:e&&(!(n=e.match(/Edge\/(\d+)/))||74<=n[1])&&(n=e.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,r,e)=>{var s=e(7854),c=e(1236).f,h=e(8880),l=e(1320),p=e(3505),g=e(9920),d=e(4705);t.exports=function(t,r){var e,n,o,i=t.target,a=t.global,u=t.stat,f=a?s:u?s[i]||p(i,{}):(s[i]||{}).prototype;if(f)for(e in r){if(n=r[e],o=t.noTargetGet?(o=c(f,e))&&o.value:f[e],!d(a?e:i+(u?".":"#")+e,t.forced)&&void 0!==o){if(typeof n==typeof o)continue;g(n,o)}(t.sham||o&&o.sham)&&h(n,"sham",!0),l(f,e,n,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9974:(t,r,e)=>{var i=e(3099);t.exports=function(n,o,t){if(i(n),void 0===o)return n;switch(t){case 0:return function(){return n.call(o)};case 1:return function(t){return n.call(o,t)};case 2:return function(t,r){return n.call(o,t,r)};case 3:return function(t,r,e){return n.call(o,t,r,e)}}return function(){return n.apply(o,arguments)}}},5005:(t,r,e)=>{function n(t){return"function"==typeof t?t:void 0}var o=e(857),i=e(7854);t.exports=function(t,r){return arguments.length<2?n(o[t])||n(i[t]):o[t]&&o[t][r]||i[t]&&i[t][r]}},1246:(t,r,e)=>{var n=e(648),o=e(7497),i=e(5112)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},7854:(t,r,e)=>{function n(t){return t&&t.Math==Math&&t}t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||function(){return this}()||Function("return this")()},6656:(t,r,e)=>{var n=e(7908),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,r){return o.call(n(t),r)}},3501:t=>{t.exports={}},842:(t,r,e)=>{var n=e(7854);t.exports=function(t,r){var e=n.console;e&&e.error&&(1===arguments.length?e.error(t):e.error(t,r))}},490:(t,r,e)=>{e=e(5005);t.exports=e("document","documentElement")},4664:(t,r,e)=>{var n=e(9781),o=e(7293),i=e(317);t.exports=!n&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},8361:(t,r,e)=>{var n=e(7293),o=e(4326),i="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},2788:(t,r,e)=>{var e=e(5465),n=Function.toString;"function"!=typeof e.inspectSource&&(e.inspectSource=function(t){return n.call(t)}),t.exports=e.inspectSource},9909:(t,r,e)=>{var n,o,i,a,u,f,s,c,h=e(8536),l=e(7854),p=e(111),g=e(8880),d=e(6656),y=e(5465),v=e(6200),e=e(3501),w="Object already initialized",l=l.WeakMap;s=h||y.state?(n=y.state||(y.state=new l),o=n.get,i=n.has,a=n.set,u=function(t,r){if(i.call(n,t))throw new TypeError(w);return r.facade=t,a.call(n,t,r),r},f=function(t){return o.call(n,t)||{}},function(t){return i.call(n,t)}):(e[c=v("state")]=!0,u=function(t,r){if(d(t,c))throw new TypeError(w);return r.facade=t,g(t,c,r),r},f=function(t){return d(t,c)?t[c]:{}},function(t){return d(t,c)}),t.exports={set:u,get:f,has:s,enforce:function(t){return s(t)?f(t):u(t,{})},getterFor:function(e){return function(t){var r;if(!p(t)||(r=f(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},7659:(t,r,e)=>{var n=e(5112),o=e(7497),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},4705:(t,r,e)=>{var n=e(7293),o=/#|\.prototype\./,e=function(t,r){t=a[i(t)];return t==f||t!=u&&("function"==typeof r?n(r):!!r)},i=e.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";t.exports=e},111:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:t=>{t.exports=!1},408:(t,r,e)=>{function y(t,r){this.stopped=t,this.result=r}var v=e(9670),w=e(7659),m=e(7466),b=e(9974),E=e(1246),A=e(9212);t.exports=function(t,r,e){function n(t){return i&&A(i),new y(!0,t)}function o(t){return l?(v(t),g?d(t[0],t[1],n):d(t[0],t[1])):g?d(t,n):d(t)}var i,a,u,f,s,c,h=e&&e.that,l=!(!e||!e.AS_ENTRIES),p=!(!e||!e.IS_ITERATOR),g=!(!e||!e.INTERRUPTED),d=b(r,h,1+l+g);if(p)i=t;else{if("function"!=typeof(p=E(t)))throw TypeError("Target is not iterable");if(w(p)){for(a=0,u=m(t.length);a<u;a++)if((f=o(t[a]))&&f instanceof y)return f;return new y(!1)}i=p.call(t)}for(s=i.next;!(c=s.call(i)).done;){try{f=o(c.value)}catch(t){throw A(i),t}if("object"==typeof f&&f&&f instanceof y)return f}return new y(!1)}},9212:(t,r,e)=>{var n=e(9670);t.exports=function(t){var r=t.return;if(void 0!==r)return n(r.call(t)).value}},7497:t=>{t.exports={}},5948:(t,r,e)=>{var n,o,i,a,u,f,s,c,h=e(7854),l=e(1236).f,p=e(261).set,g=e(6833),d=e(1036),y=e(5268),v=h.MutationObserver||h.WebKitMutationObserver,w=h.document,m=h.process,e=h.Promise,l=l(h,"queueMicrotask"),l=l&&l.value;l||(n=function(){var t,r;for(y&&(t=m.domain)&&t.exit();o;){r=o.fn,o=o.next;try{r()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},a=g||y||d||!v||!w?e&&e.resolve?((s=e.resolve(void 0)).constructor=e,c=s.then,function(){c.call(s,n)}):y?function(){m.nextTick(n)}:function(){p.call(h,n)}:(u=!0,f=w.createTextNode(""),new v(n).observe(f,{characterData:!0}),function(){f.data=u=!u})),t.exports=l||function(t){t={fn:t,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},3366:(t,r,e)=>{e=e(7854);t.exports=e.Promise},133:(t,r,e)=>{var n=e(7392),e=e(7293);t.exports=!!Object.getOwnPropertySymbols&&!e(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},8536:(t,r,e)=>{var n=e(7854),e=e(2788),n=n.WeakMap;t.exports="function"==typeof n&&/native code/.test(e(n))},8523:(t,r,e)=>{"use strict";function n(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=o(e),this.reject=o(n)}var o=e(3099);t.exports.f=function(t){return new n(t)}},3070:(t,r,e)=>{var n=e(9781),o=e(4664),i=e(9670),a=e(7593),u=Object.defineProperty;r.f=n?u:function(t,r,e){if(i(t),r=a(r,!0),i(e),o)try{return u(t,r,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},1236:(t,r,e)=>{var n=e(9781),o=e(5296),i=e(9114),a=e(5656),u=e(7593),f=e(6656),s=e(4664),c=Object.getOwnPropertyDescriptor;r.f=n?c:function(t,r){if(t=a(t),r=u(r,!0),s)try{return c(t,r)}catch(t){}if(f(t,r))return i(!o.f.call(t,r),t[r])}},8006:(t,r,e)=>{var n=e(6324),o=e(748).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:(t,r)=>{r.f=Object.getOwnPropertySymbols},6324:(t,r,e)=>{var a=e(6656),u=e(5656),f=e(1318).indexOf,s=e(3501);t.exports=function(t,r){var e,n=u(t),o=0,i=[];for(e in n)!a(s,e)&&a(n,e)&&i.push(e);for(;r.length>o;)a(n,e=r[o++])&&(~f(i,e)||i.push(e));return i}},5296:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){t=n(this,t);return!!t&&t.enumerable}:e},7674:(t,r,e)=>{var o=e(9670),i=e(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,n=!1,t={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),n=t instanceof Array}catch(t){}return function(t,r){return o(t),i(r),n?e.call(t,r):t.__proto__=r,t}}():void 0)},288:(t,r,e)=>{"use strict";var n=e(1694),o=e(648);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},3887:(t,r,e)=>{var n=e(5005),o=e(8006),i=e(5181),a=e(9670);t.exports=n("Reflect","ownKeys")||function(t){var r=o.f(a(t)),e=i.f;return e?r.concat(e(t)):r}},857:(t,r,e)=>{e=e(7854);t.exports=e},2534:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:(t,r,e)=>{var n=e(9670),o=e(111),i=e(8523);t.exports=function(t,r){if(n(t),o(r)&&r.constructor===t)return r;t=i.f(t);return(0,t.resolve)(r),t.promise}},2248:(t,r,e)=>{var o=e(1320);t.exports=function(t,r,e){for(var n in r)o(t,n,r[n],e);return t}},1320:(t,r,e)=>{var u=e(7854),f=e(8880),s=e(6656),c=e(3505),n=e(2788),e=e(9909),o=e.get,h=e.enforce,l=String(String).split("String");(t.exports=function(t,r,e,n){var o=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet;"function"==typeof e&&("string"!=typeof r||s(e,"name")||f(e,"name",r),(n=h(e)).source||(n.source=l.join("string"==typeof r?r:""))),t!==u?(o?!a&&t[r]&&(i=!0):delete t[r],i?t[r]=e:f(t,r,e)):i?t[r]=e:c(r,e)})(Function.prototype,"toString",function(){return"function"==typeof this&&o(this).source||n(this)})},4488:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:(t,r,e)=>{var n=e(7854),o=e(8880);t.exports=function(r,e){try{o(n,r,e)}catch(t){n[r]=e}return e}},6340:(t,r,e)=>{"use strict";var n=e(5005),o=e(3070),i=e(5112),a=e(9781),u=i("species");t.exports=function(t){var r=n(t),t=o.f;a&&r&&!r[u]&&t(r,u,{configurable:!0,get:function(){return this}})}},8003:(t,r,e)=>{var n=e(3070).f,o=e(6656),i=e(5112)("toStringTag");t.exports=function(t,r,e){t&&!o(t=e?t:t.prototype,i)&&n(t,i,{configurable:!0,value:r})}},6200:(t,r,e)=>{var n=e(2309),o=e(9711),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:(t,r,e)=>{var n=e(7854),o=e(3505),e="__core-js_shared__",e=n[e]||o(e,{});t.exports=e},2309:(t,r,e)=>{var n=e(1913),o=e(5465);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.15.2",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:(t,r,e)=>{var n=e(9670),o=e(3099),i=e(5112)("species");t.exports=function(t,r){var e,t=n(t).constructor;return void 0===t||null==(e=n(t)[i])?r:o(e)}},261:(t,r,e)=>{function n(t){var r;E.hasOwnProperty(t)&&(r=E[t],delete E[t],r())}function o(t){return function(){n(t)}}function i(t){n(t.data)}var a,u=e(7854),f=e(7293),s=e(9974),c=e(490),h=e(317),l=e(6833),p=e(5268),g=u.location,d=u.setImmediate,y=u.clearImmediate,v=u.process,w=u.MessageChannel,m=u.Dispatch,b=0,E={},A="onreadystatechange",e=function(t){u.postMessage(t+"",g.protocol+"//"+g.host)};d&&y||(d=function(t){for(var r=[],e=1;e<arguments.length;)r.push(arguments[e++]);return E[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,r)},a(b),b},y=function(t){delete E[t]},p?a=function(t){v.nextTick(o(t))}:m&&m.now?a=function(t){m.now(o(t))}:w&&!l?(w=(l=new w).port2,l.port1.onmessage=i,a=s(w.postMessage,w,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts&&g&&"file:"!==g.protocol&&!f(e)?(a=e,u.addEventListener("message",i,!1)):a=A in h("script")?function(t){c.appendChild(h("script"))[A]=function(){c.removeChild(this),n(t)}}:function(t){setTimeout(o(t),0)}),t.exports={set:d,clear:y}},1400:(t,r,e)=>{var n=e(9958),o=Math.max,i=Math.min;t.exports=function(t,r){t=n(t);return t<0?o(t+r,0):i(t,r)}},5656:(t,r,e)=>{var n=e(8361),o=e(4488);t.exports=function(t){return n(o(t))}},9958:t=>{var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?e:r)(t)}},7466:(t,r,e)=>{var n=e(9958),o=Math.min;t.exports=function(t){return 0<t?o(n(t),9007199254740991):0}},7908:(t,r,e)=>{var n=e(4488);t.exports=function(t){return Object(n(t))}},7593:(t,r,e)=>{var o=e(111);t.exports=function(t,r){if(!o(t))return t;var e,n;if(r&&"function"==typeof(e=t.toString)&&!o(n=e.call(t)))return n;if("function"==typeof(e=t.valueOf)&&!o(n=e.call(t)))return n;if(!r&&"function"==typeof(e=t.toString)&&!o(n=e.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},1694:(t,r,e)=>{var n={};n[e(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},9711:t=>{var r=0,e=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+e).toString(36)}},3307:(t,r,e)=>{e=e(133);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:(t,r,e)=>{var n=e(7854),o=e(2309),i=e(6656),a=e(9711),u=e(133),e=e(3307),f=o("wks"),s=n.Symbol,c=e?s:s&&s.withoutSetter||a;t.exports=function(t){return i(f,t)&&(u||"string"==typeof f[t])||(u&&i(s,t)?f[t]=s[t]:f[t]=c("Symbol."+t)),f[t]}},1539:(t,r,e)=>{var n=e(1694),o=e(1320),e=e(288);n||o(Object.prototype,"toString",e,{unsafe:!0})},8674:(t,r,e)=>{"use strict";function g(t){var r;return!(!A(t)||"function"!=typeof(r=t.then))&&r}function o(h,l){var p;h.notified||(h.notified=!0,p=h.reactions,R(function(){for(var t=h.value,r=1==h.state,e=0;p.length>e;){var n,o,i,a=p[e++],u=r?a.ok:a.fail,f=a.resolve,s=a.reject,c=a.domain;try{u?(r||(2===h.rejection&&it(h),h.rejection=1),!0===u?n=t:(c&&c.enter(),n=u(t),c&&(c.exit(),i=!0)),n===a.promise?s(Q("Promise-chain cycle")):(o=g(n))?o.call(n,f,s):f(n)):s(t)}catch(t){c&&!i&&c.exit(),s(t)}}h.reactions=[],h.notified=!1,l&&!h.rejection&&nt(h)}))}function i(t,r,e){var n,o;G?((n=W.createEvent("Event")).promise=r,n.reason=e,n.initEvent(t,!1,!0),p.dispatchEvent(n)):n={promise:r,reason:e},!tt&&(o=p["on"+t])?o(n):t===rt&&U("Unhandled promise rejection",e)}function a(r,e,n){return function(t){r(e,t,n)}}function u(t,r,e){t.done||(t.done=!0,(t=e?e:t).value=r,t.state=2,o(t,!0))}var n,f,s,c,h=e(2109),l=e(1913),p=e(7854),d=e(5005),y=e(3366),v=e(1320),w=e(2248),m=e(7674),b=e(8003),E=e(6340),A=e(111),B=e(3099),x=e(5787),T=e(2788),P=e(408),C=e(7072),S=e(6707),I=e(261).set,R=e(5948),M=e(9478),U=e(842),O=e(8523),L=e(2534),_=e(9909),j=e(4705),N=e(5112),k=e(7871),F=e(5268),D=e(7392),z=N("species"),Y="Promise",H=_.get,K=_.set,J=_.getterFor(Y),_=y&&y.prototype,V=y,q=_,Q=p.TypeError,W=p.document,$=p.process,Z=O.f,X=Z,G=!!(W&&W.createEvent&&p.dispatchEvent),tt="function"==typeof PromiseRejectionEvent,rt="unhandledrejection",et=!1,j=j(Y,function(){var t=T(V),r=t!==String(V);if(!r&&66===D)return!0;if(l&&!q.finally)return!0;if(51<=D&&/native code/.test(t))return!1;var e=new V(function(t){t(1)}),t=function(t){t(function(){},function(){})};return(e.constructor={})[z]=t,!(et=e.then(function(){})instanceof t)||!r&&k&&!tt}),C=j||!C(function(t){V.all(t).catch(function(){})}),nt=function(o){I.call(p,function(){var t,r=o.facade,e=o.value,n=ot(o);if(n&&(t=L(function(){F?$.emit("unhandledRejection",e,r):i(rt,r,e)}),o.rejection=F||ot(o)?2:1,t.error))throw t.value})},ot=function(t){return 1!==t.rejection&&!t.parent},it=function(r){I.call(p,function(){var t=r.facade;F?$.emit("rejectionHandled",t):i("rejectionhandled",t,r.value)})},at=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Q("Promise can't be resolved itself");var n=g(t);n?R(function(){var r={done:!1};try{n.call(t,a(at,r,e),a(u,r,e))}catch(t){u(r,t,e)}}):(e.value=t,e.state=1,o(e,!1))}catch(t){u({done:!1},t,e)}}};if(j&&(q=(V=function(t){x(this,V,Y),B(t),n.call(this);var r=H(this);try{t(a(at,r),a(u,r))}catch(t){u(r,t)}}).prototype,(n=function(t){K(this,{type:Y,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=w(q,{then:function(t,r){var e=J(this),n=Z(S(this,V));return n.ok="function"!=typeof t||t,n.fail="function"==typeof r&&r,n.domain=F?$.domain:void 0,e.parent=!0,e.reactions.push(n),0!=e.state&&o(e,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),f=function(){var t=new n,r=H(t);this.promise=t,this.resolve=a(at,r),this.reject=a(u,r)},O.f=Z=function(t){return t===V||t===s?new f:X(t)},!l&&"function"==typeof y&&_!==Object.prototype)){c=_.then,et||(v(_,"then",function(t,r){var e=this;return new V(function(t,r){c.call(e,t,r)}).then(t,r)},{unsafe:!0}),v(_,"catch",q.catch,{unsafe:!0}));try{delete _.constructor}catch(t){}m&&m(_,q)}h({global:!0,wrap:!0,forced:j},{Promise:V}),b(V,Y,!1,!0),E(Y),s=d(Y),h({target:Y,stat:!0,forced:j},{reject:function(t){var r=Z(this);return r.reject.call(void 0,t),r.promise}}),h({target:Y,stat:!0,forced:l||j},{resolve:function(t){return M(l&&this===s?V:this,t)}}),h({target:Y,stat:!0,forced:C},{all:function(t){var u=this,r=Z(u),f=r.resolve,s=r.reject,e=L(function(){var n=B(u.resolve),o=[],i=0,a=1;P(t,function(t){var r=i++,e=!1;o.push(void 0),a++,n.call(u,t).then(function(t){e||(e=!0,o[r]=t,--a||f(o))},s)}),--a||f(o)});return e.error&&s(e.value),r.promise},race:function(t){var e=this,n=Z(e),o=n.reject,r=L(function(){var r=B(e.resolve);P(t,function(t){r.call(e,t).then(n.resolve,o)})});return r.error&&o(r.value),n.promise}})},5987:t=>{"use strict";var p={single_source_shortest_paths:function(t,r,e){var n={},o={};o[r]=0;var i,a,u,f,s,c,h,l=p.PriorityQueue.make();for(l.push(r,0);!l.empty();)for(u in a=(i=l.pop()).value,f=i.cost,s=t[a]||{})s.hasOwnProperty(u)&&(c=f+s[u],h=o[u],(void 0===o[u]||c<h)&&(o[u]=c,l.push(u,c),n[u]=a));if(void 0===e||void 0!==o[e])return n;e=["Could not find a path from ",r," to ",e,"."].join("");throw new Error(e)},extract_shortest_path_from_predecessor_list:function(t,r){for(var e=[],n=r;n;)e.push(n),t[n],n=t[n];return e.reverse(),e},find_path:function(t,r,e){r=p.single_source_shortest_paths(t,r,e);return p.extract_shortest_path_from_predecessor_list(r,e)},PriorityQueue:{make:function(t){var r,e=p.PriorityQueue,n={};for(r in t=t||{},e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n.queue=[],n.sorter=t.sorter||e.default_sorter,n},default_sorter:function(t,r){return t.cost-r.cost},push:function(t,r){this.queue.push({value:t,cost:r}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=p},645:(t,r)=>{ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ r.read=function(t,r,e,n,o){var i,a,u=8*o-n-1,f=(1<<u)-1,s=f>>1,c=-7,h=e?o-1:0,l=e?-1:1,e=t[r+h];for(h+=l,i=e&(1<<-c)-1,e>>=-c,c+=u;0<c;i=256*i+t[r+h],h+=l,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;0<c;a=256*a+t[r+h],h+=l,c-=8);if(0===i)i=1-s;else{if(i===f)return a?NaN:1/0*(e?-1:1);a+=Math.pow(2,n),i-=s}return(e?-1:1)*a*Math.pow(2,i-n)},r.write=function(t,r,e,n,o,i){var a,u,f=8*i-o-1,s=(1<<f)-1,c=s>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:i-1,p=n?1:-1,i=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,a=s):(a=Math.floor(Math.log(r)/Math.LN2),r*(n=Math.pow(2,-a))<1&&(a--,n*=2),2<=(r+=1<=a+c?h/n:h*Math.pow(2,1-c))*n&&(a++,n/=2),s<=a+c?(u=0,a=s):1<=a+c?(u=(r*n-1)*Math.pow(2,o),a+=c):(u=r*Math.pow(2,c-1)*Math.pow(2,o),a=0));8<=o;t[e+l]=255&u,l+=p,u/=256,o-=8);for(a=a<<o|u,f+=o;0<f;t[e+l]=255&a,l+=p,a/=256,f-=8);t[e+l-p]|=128*i}},5826:t=>{var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},2592:(t,r,e)=>{var f=e(7138),s=e(5115),n=e(6907),o=e(3005);function i(n,o,i,a,r){var t=[].slice.call(arguments,1),e=t.length,t="function"==typeof t[e-1];if(!t&&!f())throw new Error("Callback required as last argument");if(!t){if(e<1)throw new Error("Too few arguments provided");return 1===e?(i=o,o=a=void 0):2!==e||o.getContext||(a=i,i=o,o=void 0),new Promise(function(t,r){try{var e=s.create(i,a);t(n(e,o,a))}catch(t){r(t)}})}if(e<2)throw new Error("Too few arguments provided");2===e?(r=i,i=o,o=a=void 0):3===e&&(o.getContext&&void 0===r?(r=a,a=void 0):(r=a,a=i,i=o,o=void 0));try{var u=s.create(i,a);r(null,n(u,o,a))}catch(t){r(t)}}r.create=s.create,r.toCanvas=i.bind(null,n.render),r.toDataURL=i.bind(null,n.renderToDataURL),r.toString=i.bind(null,function(t,r,e){return o.render(t,e)})},7138:t=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},1845:(t,a,r)=>{var i=r(242).getSymbolSize;a.getRowColCoords=function(t){if(1===t)return[];for(var r=Math.floor(t/7)+2,t=i(t),e=145===t?26:2*Math.ceil((t-13)/(2*r-2)),n=[t-7],o=1;o<r-1;o++)n[o]=n[o-1]-e;return n.push(6),n.reverse()},a.getPositions=function(t){for(var r=[],e=a.getRowColCoords(t),n=e.length,o=0;o<n;o++)for(var i=0;i<n;i++)0===o&&0===i||0===o&&i===n-1||o===n-1&&0===i||r.push([e[o],e[i]]);return r}},8260:(t,r,e)=>{var n=e(6910),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(t){this.mode=n.ALPHANUMERIC,this.data=t}i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){for(var r=0;r+2<=this.data.length;r+=2){var e=45*o.indexOf(this.data[r]);e+=o.indexOf(this.data[r+1]),t.put(e,11)}this.data.length%2&&t.put(o.indexOf(this.data[r]),6)},t.exports=i},7245:t=>{function r(){this.buffer=[],this.length=0}r.prototype={get:function(t){var r=Math.floor(t/8);return 1==(this.buffer[r]>>>7-t%8&1)},put:function(t,r){for(var e=0;e<r;e++)this.putBit(1==(t>>>r-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}},t.exports=r},3280:(t,r,e)=>{var n=e(9131);function o(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=n.alloc(t*t),this.reservedBit=n.alloc(t*t)}o.prototype.set=function(t,r,e,n){r=t*this.size+r;this.data[r]=e,n&&(this.reservedBit[r]=!0)},o.prototype.get=function(t,r){return this.data[t*this.size+r]},o.prototype.xor=function(t,r,e){this.data[t*this.size+r]^=e},o.prototype.isReserved=function(t,r){return this.reservedBit[t*this.size+r]},t.exports=o},3424:(t,r,e)=>{var n=e(9131),o=e(6910);function i(t){this.mode=o.BYTE,this.data=n.from(t)}i.getBitsLength=function(t){return 8*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){for(var r=0,e=this.data.length;r<e;r++)t.put(this.data[r],8)},t.exports=i},5393:(t,r,e)=>{var n=e(4908),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];r.getBlocksCount=function(t,r){switch(r){case n.L:return o[4*(t-1)+0];case n.M:return o[4*(t-1)+1];case n.Q:return o[4*(t-1)+2];case n.H:return o[4*(t-1)+3];default:return}},r.getTotalCodewordsCount=function(t,r){switch(r){case n.L:return i[4*(t-1)+0];case n.M:return i[4*(t-1)+1];case n.Q:return i[4*(t-1)+2];case n.H:return i[4*(t-1)+3];default:return}}},4908:(t,e)=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&0<=t.bit&&t.bit<4},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return r}}},6526:(t,r,e)=>{var n=e(242).getSymbolSize;r.getPositions=function(t){t=n(t);return[[0,0],[t-7,0],[0,t-7]]}},1642:(t,r,e)=>{var n=e(242),o=n.getBCHDigit(1335);r.getEncodedBits=function(t,r){for(var r=t.bit<<3|r,e=r<<10;0<=n.getBCHDigit(e)-o;)e^=1335<<n.getBCHDigit(e)-o;return 21522^(r<<10|e)}},9729:(t,r,e)=>{var e=e(9131),n=e.alloc(512),o=e.alloc(256);!function(){for(var t=1,r=0;r<255;r++)n[r]=t,o[t]=r,256&(t<<=1)&&(t^=285);for(r=255;r<512;r++)n[r]=n[r-255]}(),r.log=function(t){if(t<1)throw new Error("log("+t+")");return o[t]},r.exp=function(t){return n[t]},r.mul=function(t,r){return 0===t||0===r?0:n[o[t]+o[r]]}},5442:(t,r,e)=>{var n=e(6910),o=e(242);function i(t){this.mode=n.KANJI,this.data=t}i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){for(var r=0;r<this.data.length;r++){var e=o.toSJIS(this.data[r]);if(33088<=e&&e<=40956)e-=33088;else{if(!(57408<=e&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[r]+"\nMake sure your charset is UTF-8");e-=49472}t.put(e=192*(e>>>8&255)+(255&e),13)}},t.exports=i},7126:(t,u)=>{u.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var c=3,a=3,f=40,o=10;u.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&0<=t&&t<=7},u.from=function(t){return u.isValid(t)?parseInt(t,10):void 0},u.getPenaltyN1=function(t){for(var r=t.size,e=0,n=0,o=0,i=null,a=null,u=0;u<r;u++){for(var n=o=0,i=a=null,f=0;f<r;f++){var s=t.get(u,f);s===i?n++:(5<=n&&(e+=c+(n-5)),i=s,n=1),(s=t.get(f,u))===a?o++:(5<=o&&(e+=c+(o-5)),a=s,o=1)}5<=n&&(e+=c+(n-5)),5<=o&&(e+=c+(o-5))}return e},u.getPenaltyN2=function(t){for(var r=t.size