1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8952],{95766:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=u(e),a=i[0],s=i[1],c=new o((a+s)*3/4-s),f=0,l=s>0?a-4:a;for(n=0;n<l;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[f++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,s=r-o;a<s;a+=16383)i.push(function(e,t,r){for(var o,i=[],a=t;a<r;a+=3)i.push(n[(o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===o?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48834:function(e,t,n){"use strict";/*! 2 * The buffer module from node.js, for the browser. 3 * 4 * @author Feross Aboukhadijeh <https://feross.org> 5 * @license MIT 6 */let r=n(95766),o=n(62333),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let n=0|d(e,t),r=a(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(_(e,Uint8Array)){let t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(_(e,ArrayBuffer)||e&&_(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(_(e,SharedArrayBuffer)||e&&_(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);let o=function(e){var t;if(s.isBuffer(e)){let t=0|h(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return c(e),a(e<0?0:0|h(e))}function l(e){let t=e.length<0?0:0|h(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){let r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}function h(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||_(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(o)return r?-1:L(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=j[e[r]];return o}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}(this,t,n);case"base64":var i,a;return i=t,a=n,0===i&&a===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){let r=e.slice(t,n),o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}(this,t,n);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function y(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){var i;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(i=n=+n)!=i&&(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=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){let i,a=1,s=e.length,u=t.length;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;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===u)return r*a}else -1!==r&&(i-=i-r),r=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){let n=!0;for(let r=0;r<u;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return -1}function b(e,t,n){n=Math.min(e.length,n);let r=[],o=t;for(;o<n;){let t=e[o],i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,u;switch(a){case 1:t<128&&(i=t);break;case 2:(192&(n=e[o+1]))==128&&(u=(31&t)<<6|63&n)>127&&(i=u);break;case 3:n=e[o+1],r=e[o+2],(192&n)==128&&(192&r)==128&&(u=(15&t)<<12|(63&n)<<6|63&r)>
vendor: 15,500 bytes, line 6
62047&&(u<55296||u>57343)&&(i=u);break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],(192&n)==128&&(192&r)==128&&(192&s)==128&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s)>65535&&u<1114112&&(i=u)}}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 function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function E(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,o,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function R(e,t,n,r,o){I(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function k(e,t,n,r,o){I(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function P(e,t,n,r,o,i){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function O(e,t,n,r,i){return t=+t,n>>>=0,i||P(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,i){return t=+t,n>>>=0,i||P(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return f(e)},s.allocUnsafeSlow=function(e){return f(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).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}},s.concat=function(e,t){let n;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){let t=e[n];if(_(t,Uint8Array))o+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else if(s.isBuffer(t))t.copy(r,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=t.length}return r},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):g.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,o){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;let i=o-r,a=n-t,u=Math.min(i,a),c=this.slice(r,o),f=e.slice(t,n);for(let e=0;e<u;++e)if(c[e]!==f[e]){i=c[e],a=f[e];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){var o,i,a,s,u,c,f,l;if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let h=!1;for(;;)switch(r){case"hex":return function(e,t,n,r){let o;n=Number(n)||0;let i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;let a=t.length;for(r>a/2&&(r=a/2),o=0;o<r;++o){let r=parseInt(t.substr(2*o,2),16);if(r!=r)break;e[n+o]=r}return o}(this,e,t,n);case"utf8":case"utf-8":return o=t,i=n,D(L(e,this.length-o),this,o,i);case"ascii":case"latin1":case"binary":return a=t,s=n,D(function(e){let t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,a,s);case"base64":return u=t,c=n,D(U(e),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=t,l=n,D(function(e,t){let n,r;let o=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,o.push(n%256),o.push(r);return o}(e,this.length-f),this,f,l);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=N(function(e){T(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&Z(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+16777216*this[++e],o=this[++e]+256*this[++e]+65536*this[++e]+16777216*n;return BigInt(r)+(BigInt(o)<<BigInt(32))}),s.prototype.readBigUInt64BE=N(function(e){T(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&Z(e,this.length-8);let r=16777216*t+65536*this[++e]+256*this[++e]+this[++e],o=16777216*this[++e]+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||E(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=N(function(e){T(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&Z(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),s.prototype.readBigInt64BE=N(function(e){T(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&Z(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;w(this,e,t,n,r,0)}let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;w(this,e,t,n,r,0)}let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=N(function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=N(function(e,t=0){return k(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);w(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);w(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=N(function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=N(function(e,t=0){return k(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,n){return O(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return O(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},s.prototype.fill=function(e,t,n,r){let o;if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){let t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{let i=s.isBuffer(e)?e:s.from(e,r),a=i.length;
6if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};let x={};function A(e,t,n){x[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function B(e){let t="",n=e.length,r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function I(e,t,n,r,o,i){if(e>n||e<t){let r;let o="bigint"==typeof t?"n":"";throw r=i>3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:`>= ${t}${o} and <= ${n}${o}`,new x.ERR_OUT_OF_RANGE("value",r,e)}T(o,"offset"),(void 0===r[o]||void 0===r[o+i])&&Z(o,r.length-(i+1))}function T(e,t){if("number"!=typeof e)throw new x.ERR_INVALID_ARG_TYPE(t,"number",e)}function Z(e,t,n){if(Math.floor(e)!==e)throw T(e,n),new x.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new x.ERR_BUFFER_OUT_OF_BOUNDS;throw new x.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}A("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),A("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),A("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>4294967296?o=B(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=B(o)),o+="n"),r+=` It must be ${t}. Received ${o}`},RangeError);let C=/[^+/0-9A-Za-z-_]/g;function L(e,t){let n;t=t||1/0;let r=e.length,o=null,i=[];for(let a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319||a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return i}function U(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length)&&!(o>=e.length);++o)t[o+n]=e[o];return o}function _(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let j=function(){let e="0123456789abcdef",t=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function N(e){return"undefined"==typeof BigInt?M:e}function M(){throw Error("BigInt not supported")}},62333:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,c=u>>1,f=-7,l=n?o-1:0,p=n?-1:1,h=e[t+l];for(l+=p,i=h&(1<<-f)-1,h>>=-f,f+=s;f>0;i=256*i+e[t+l],l+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=r;f>0;a=256*a+e[t+l],l+=p,f-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,f=(1<<c)-1,l=f>>1,p=23===o?5960464477539062e-23:0,h=r?0:i-1,d=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+l>=1?t+=p/u:t+=p*Math.pow(2,1-l),t*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*u-1)*Math.pow(2,o),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+h]=255&a,h+=d,a/=256,c-=8);e[n+h-d]|=128*g}},38398:function(e,t,n){!function(){var t={452:function(e){"use strict";e.exports=n(50176)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,o),a=!1}finally{a&&delete r[e]}return i.exports}o.ab="//";var i={};!function(){var e,t=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function r(e){"string"==typeof e&&(e=m(e));var r,o,i,a,s,u,c,f,l,p=(o=(r=e).auth,i=r.hostname,a=r.protocol||"",s=r.pathname||"",u=r.hash||"",c=r.query||"",f=!1,o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",r.host?f=o+r.host:i&&(f=o+(~i.indexOf(":")?"["+i+"]":i),r.port&&(f+=":"+r.port)),c&&"object"==typeof c&&(c=t.encode(c)),l=r.search||c&&"?"+c||"",a&&":"!==a.substr(-1)&&(a+=":"),r.slashes||(!a||n.test(a))&&!1!==f?(f="//"+(f||""),s&&"/"!==s[0]&&(s="/"+s)):f||(f=""),u&&"#"!==u[0]&&(u="#"+u),l&&"?"!==l[0]&&(l="?"+l),{protocol:a,host:f,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:l=l.replace("#","%23"),hash:u});return""+p.protocol+p.host+p.pathname+p.search+p.hash}var a="http://",s=a+"w.w",u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function f(e,t){var n="string"==typeof e?m(e):e;e="object"==typeof e?r(e):e;var o=m(t),i="";n.protocol&&!n.slashes&&(i=n.protocol,e=e.replace(n.protocol,""),i+="/"===t[0]||"/"===e[0]?"/":""),i&&o.protocol&&(i="",o.slashes||(i=o.protocol,t=t.replace(o.protocol,"")));var f=e.match(u);f&&!o.protocol&&(e=e.substr((i=f[1]+(f[2]||"")).length),/^\/\/[^/]/.test(t)&&(i=i.slice(0,-1)));var l=new URL(e,s+"/"),p=new URL(t,l).toString().replace(s,""),h=o.protocol||n.protocol;return h+=n.slashes||o.slashes?"//":"",!i&&h?p=p.replace(a,h):i&&(p=p.replace(a,"")),c.test(p)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),i&&(p=i+("/"===p[0]?p.substr(1):p)),p}function l(){}l.prototype.parse=m,l.prototype.format=r,l.prototype.resolve=f,l.prototype.resolveObject=f;var p=/^https?|ftp|gopher|file/,h=/^(.*?)([#?].*)/,d=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,y=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function m(e,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!1),e&&"object"==typeof e&&e instanceof l)return e;var i=(e=e.trim()).match(h);
6e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),y.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(d),u=g.test(e),c="";a&&(p.test(a[1])||(c=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(u=!1,p.test(a[1])?(c=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(c=a[1],e="/"+a[3]));var f,m=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),v=m&&m[1],b=new l,E="",w="";try{f=new URL(e)}catch(t){E=t,c||o||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{f=new URL(e,s)}catch(e){return b.protocol=c,b.href=c,b}}b.slashes=u&&!w,b.host="w.w"===f.host?"":f.host,b.hostname="w.w"===f.hostname?"":f.hostname.replace(/(\[|\])/g,""),b.protocol=E?c||null:f.protocol,b.search=f.search.replace(/\\/g,"%5C"),b.hash=f.hash.replace(/\\/g,"%5C");var R=e.split("#");!b.search&&~R[0].indexOf("?")&&(b.search="?"),b.hash||""!==R[1]||(b.hash="#"),b.query=n?t.decode(f.search.substr(1)):b.search.substr(1),b.pathname=w+(a?f.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):f.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),E&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),c&&!p.test(c)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[f.username,f.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=f.port,v&&!b.host.endsWith(v)&&(b.host+=v,b.port=v.slice(1)),b.href=w?""+b.pathname+b.search+b.hash:r(b);var k=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~k.indexOf(e)||(b[e]=b[e]||null)}),b}i.parse=m,i.format=r,i.resolve=f,i.resolveObject=function(e,t){return m(f(e,t))},i.Url=l}(),e.exports=i}()},50176:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,n,r,o){n=n||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(n);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var c=0;c<u;++c){var f,l,p,h,d=e[c].replace(a,"%20"),g=d.indexOf(r);(g>=0?(f=d.substr(0,g),l=d.substr(g+1)):(f=d,l=""),p=decodeURIComponent(f),h=decodeURIComponent(l),Object.prototype.hasOwnProperty.call(i,p))?t(i[p])?i[p].push(h):i[p]=[i[p],h]:i[p]=h}return i};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=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,i,a,s){return(i=i||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?r(o(e),function(o){var s=encodeURIComponent(t(o))+a;return n(e[o])?r(e[o],function(e){return s+encodeURIComponent(t(e))}).join(i):s+encodeURIComponent(t(e[o]))}).join(i):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(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 o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//";var o={};o.decode=o.parse=r(815),o.encode=o.stringify=r(577),e.exports=o}()},68262:function(e,t,n){"use strict";var r=n(23586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
6:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},13980:function(e,t,n){e.exports=n(68262)()},23586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},22329:function(e,t,n){"use strict";n.d(t,{BB:function(){return ea},T3:function(){return eZ},v0:function(){return o}});var r,o=n(31755),i=n(7896),a=n(59740),s=n(86522),u=n(9249),c=n(87371),f=n(80753),l=n(88960);function p(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,l.Z)(e,t)}function h(e,t){if(t&&("object"==(0,s.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,f.Z)(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=n(56666),y=n(2784),m=n(13980),v=n.n(m),b=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},E=["onKeyDown","onKeyPress","onKeyUp"],w=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],R=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],k=b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b([],["onCopy","onCut","onPaste"],!0),["onCompositionEnd","onCompositionStart","onCompositionUpdate"],!0),["onFocus","onBlur"],!0),["onInput","onInvalid","onReset","onSubmit"],!0),["onLoad","onError"],!0),E,!0),["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],!0),w,!0),["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],!0),["onSelect"],!0),R,!0),["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],!0),["onScroll"],!0),["onWheel"],!0),["onAnimationStart","onAnimationEnd","onAnimationIteration"],!0),["onTransitionEnd"],!0),["onChange"],!0),["onToggle"],!0);function P(e,t){var n={};return k.forEach(function(r){var o=e[r];o&&(t?n[r]=function(e){return o(e,t(r))}:n[r]=o)}),n}function O(e){var t=!1;return{promise:new Promise(function(n,r){e.then(function(e){return!t&&n(e)}).catch(function(e){return!t&&r(e)})}),cancel:function(){t=!0}}}function S(){return Array.prototype.slice.call(arguments).reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return"string"==typeof e}).join(" ")}var x=n(10362),A=function(e,t){},B=(0,y.createContext)(null);function I(e){var t=e.children,n=e.type;return y.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(n)},t)}I.propTypes={children:v().node,type:v().oneOf(["error","loading","no-data"]).isRequired};var T=function(){function e(){(0,u.Z)(this,e),this.externalLinkTarget=null,this.externalLinkRel=null}return(0,c.Z)(e,[{key:"setDocument",value:function(e){this.pdfDocument=e}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setExternalLinkRel",value:function(e){this.externalLinkRel=e}},{key:"setExternalLinkTarget",value:function(e){this.externalLinkTarget=e}},{key:"setHistory",value:function(){}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return 0},set:function(e){}},{key:"goToDestination",value:function(e){var t=this;new Promise(function(n){"string"==typeof e?t.pdfDocument.getDestination(e).then(n):Array.isArray(e)?n(e):e.then(n)}).then(function(n){(0,x.Z)(Array.isArray(n),'"'.concat(n,'" is not a valid destination array.'));var r=n[0];new Promise(function(e){r instanceof Object?t.pdfDocument.getPageIndex(r).then(function(t){e(t)}).catch(function(){(0,x.Z)(!1,'"'.concat(r,'" is not a valid page reference.'))}):"number"==typeof r?e(r):(0,x.Z)(!1,'"'.concat(r,'" is not a valid destination reference.'))}).then(function(n){var r=n+1;(0,x.Z)(r>=1&&r<=t.pagesCount,'"'.concat(r,'" is not a valid page number.')),t.pdfViewer.scrollPageIntoView({dest:e,pageIndex:n,pageNumber:r})})})}},{key:"navigateTo",value:function(e){this.goToDestination(e)}},{key:"goToPage",value:function(){}},{key:"addLinkAttributes",value:function(e,t,n){e.href=t,e.rel=this.externalLinkRel||"noopener noreferrer nofollow",e.target=n?"_blank":this.externalLinkTarget||""}},{key:"getDestinationHash",value:function(){return"#"}},{key:"getAnchorUrl",value:function(){return"#"}},{key:"setHash",value:function(){}},{key:"executeNamedAction",value:function(){}},{key:"cachePageRef",value:function(){}},{key:"isPageVisible",value:function(){return!0}},{key:"isPageCached",value:function(){return!0}}]),e}(),Z={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},C=n(12215),L="undefined"!=typeof window,U=L&&"file:"===window.location.protocol;function D(e){return void 0!==e}function _(e){return D(e)&&null!==e}function j(e){return"string"==typeof e&&/^data:/.test(e)}function N(e){(0,x.Z)(j(e),"Invalid data URI.");var t=e.split(","),n=(0,C.Z)(t,2),r=n[0],o=n[1];return -1!==r.split(";").indexOf("base64")?atob(o):unescape(o)}var M="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function F(){A(!U,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ".concat(M))}function q(e){e&&e.cancel&&e.cancel()}function V(e,t){return Object.defineProperty(e,"width",{get:function(){return this.view[2]*t},configurable:!0}),Object.defineProperty(e,"height",{get:function(){return this.view[3]*t},configurable:!0}),Object.defineProperty(e,"originalWidth",{get:function(){return this.view[2]},configurable:!0}),Object.defineProperty(e,"originalHeight",{get:function(){return this.view[3]},configurable:!0}),e}
6function $(e){return"RenderingCancelledException"===e.name}var G=n(51171),W=(r={},[].concat((0,G.Z)(w),(0,G.Z)(R),(0,G.Z)(E)).forEach(function(e){r[e]=v().func}),r),z=[v().string,v().instanceOf(ArrayBuffer),v().shape({data:v().oneOfType([v().object,v().string]),httpHeaders:v().object,range:v().object,url:v().string,withCredentials:v().bool})];"undefined"!=typeof File&&z.push(v().instanceOf(File)),"undefined"!=typeof Blob&&z.push(v().instanceOf(Blob));var H=v().oneOfType([v().string,v().arrayOf(v().string)]),K=v().oneOfType(z),Y=v().instanceOf(T);v().oneOf(["_self","_blank","_parent","_top"]);var X=v().shape({_transport:v().shape({fontLoader:v().object.isRequired}).isRequired,commonObjs:v().shape({_objs:v().object.isRequired}).isRequired,getAnnotations:v().func.isRequired,getTextContent:v().func.isRequired,getViewport:v().func.isRequired,render:v().func.isRequired}),J=v().oneOfType([v().shape({getDestination:v().func.isRequired,getOutline:v().func.isRequired,getPage:v().func.isRequired,numPages:v().number.isRequired}),v().bool]),Q=v().oneOfType([v().func,v().shape({current:v().any})]),ee=v().oneOf(["canvas","none","svg"]),et=v().oneOf([0,90,180,270]),en=["url"];function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach(function(t){(0,g.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ei=o.PDFDataRangeTransport,ea=function(e){p(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=d(r);return e=t?Reflect.construct(n,arguments,d(this).constructor):n.apply(this,arguments),h(this,e)});function r(){var e;(0,u.Z)(this,r);for(var t=arguments.length,i=Array(t),c=0;c<t;c++)i[c]=arguments[c];return e=n.call.apply(n,[this].concat(i)),(0,g.Z)((0,f.Z)(e),"state",{pdf:null}),(0,g.Z)((0,f.Z)(e),"viewer",{scrollPageIntoView:function(t){var n=t.dest,r=t.pageIndex,o=t.pageNumber,i=e.props.onItemClick;if(i){i({dest:n,pageIndex:r,pageNumber:o});return}var a=e.pages[r];if(a){a.scrollIntoView();return}A(!1,"An internal link leading to page ".concat(o," was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>."))}}),(0,g.Z)((0,f.Z)(e),"linkService",new T),(0,g.Z)((0,f.Z)(e),"loadDocument",function(){q(e.runningTask),e.loadingTask&&e.loadingTask.destroy();var t=O(e.findDocumentSource());e.runningTask=t,t.promise.then(function(t){if(e.onSourceSuccess(),t){e.setState(function(e){return e.pdf?{pdf:null}:null});var n=e.props,r=n.options,i=n.onLoadProgress,a=n.onPassword;e.loadingTask=o.getDocument(eo(eo({},t),r)),e.loadingTask.onPassword=a,i&&(e.loadingTask.onProgress=i);var s=O(e.loadingTask.promise);e.runningTask=s,s.promise.then(function(t){e.setState(function(e){return e.pdf&&e.pdf.fingerprint===t.fingerprint?null:{pdf:t}},e.onLoadSuccess)}).catch(function(t){e.onLoadError(t)})}}).catch(function(t){e.onSourceError(t)})}),(0,g.Z)((0,f.Z)(e),"setupLinkService",function(){var t=e.props,n=t.externalLinkRel,r=t.externalLinkTarget;e.linkService.setViewer(e.viewer),e.linkService.setExternalLinkRel(n),e.linkService.setExternalLinkTarget(r)}),(0,g.Z)((0,f.Z)(e),"onSourceSuccess",function(){var t=e.props.onSourceSuccess;t&&t()}),(0,g.Z)((0,f.Z)(e),"onSourceError",function(t){A(t);var n=e.props.onSourceError;n&&n(t)}),(0,g.Z)((0,f.Z)(e),"onLoadSuccess",function(){var t=e.props.onLoadSuccess,n=e.state.pdf;t&&t(n),e.pages=Array(n.numPages),e.linkService.setDocument(n)}),(0,g.Z)((0,f.Z)(e),"onLoadError",function(t){e.setState({pdf:!1}),A(t);var n=e.props.onLoadError;n&&n(t)}),(0,g.Z)((0,f.Z)(e),"findDocumentSource",function(){return new Promise(function(t){var n=e.props.file;if(n||t(null),"string"==typeof n&&(j(n)&&t({data:N(n)}),F(),t({url:n})),n instanceof ei&&t({range:n}),n instanceof ArrayBuffer&&t({data:n}),L&&((0,x.Z)(L,"isBlob can only be used in a browser environment"),n instanceof Blob||((0,x.Z)(L,"isFile can only be used in a browser environment"),n instanceof File))){new Promise(function(e,t){var r=new FileReader;return r.onload=function(){return e(new Uint8Array(r.result))},r.onerror=function(e){switch(e.target.error.code){case e.target.error.NOT_FOUND_ERR:return t(Error("Error while reading a file: File not found."));case e.target.error.NOT_READABLE_ERR:return t(Error("Error while reading a file: File not readable."));case e.target.error.SECURITY_ERR:return t(Error("Error while reading a file: Security error."));case e.target.error.ABORT_ERR:return t(Error("Error while reading a file: Aborted."));default:return t(Error("Error while reading a file."))}},r.readAsArrayBuffer(n),null}).then(function(e){t({data:e})});return}if((0,x.Z)("object"===(0,s.Z)(n),"Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,x.Z)(n.url||n.data||n.range,"Invalid parameter object: need either .data, .range or .url"),"string"==typeof n.url){if(j(n.url)){var r=n.url,o=(0,a.Z)(n,en);t(eo({data:N(r)},o))}F()}t(n)})}),(0,g.Z)((0,f.Z)(e),"registerPage",function(t,n){e.pages[t]=n}),(0,g.Z)((0,f.Z)(e),"unregisterPage",function(t){delete e.pages[t]}),e}
6return(0,c.Z)(r,[{key:"componentDidMount",value:function(){this.loadDocument(),this.setupLinkService()}},{key:"componentDidUpdate",value:function(e){this.props.file!==e.file&&this.loadDocument()}},{key:"componentWillUnmount",value:function(){q(this.runningTask),this.loadingTask&&this.loadingTask.destroy()}},{key:"childContext",get:function(){var e=this.linkService,t=this.registerPage,n=this.unregisterPage,r=this.props,o=r.imageResourcesPath,i=r.renderMode,a=r.rotate;return{imageResourcesPath:o,linkService:e,pdf:this.state.pdf,registerPage:t,renderMode:i,rotate:a,unregisterPage:n}}},{key:"eventProps",get:function(){var e=this;return P(this.props,function(){return e.state.pdf})}},{key:"renderChildren",value:function(){var e=this.props.children;return y.createElement(B.Provider,{value:this.childContext},e)}},{key:"renderContent",value:function(){var e=this.props.file,t=this.state.pdf;if(!e){var n=this.props.noData;return y.createElement(I,{type:"no-data"},"function"==typeof n?n():n)}if(null===t){var r=this.props.loading;return y.createElement(I,{type:"loading"},"function"==typeof r?r():r)}if(!1===t){var o=this.props.error;return y.createElement(I,{type:"error"},"function"==typeof o?o():o)}return this.renderChildren()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.inputRef;return y.createElement("div",(0,i.Z)({className:S("react-pdf__Document",t),ref:n},this.eventProps),this.renderContent())}}]),r}(y.PureComponent);ea.defaultProps={error:"Failed to load PDF file.",loading:"Loading PDFâ¦",noData:"No PDF file specified.",onPassword:function(e,t){switch(t){case Z.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case Z.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."))}}};var es=v().oneOfType([v().func,v().node]);ea.propTypes=eo(eo({},W),{},{children:v().node,className:H,error:es,externalLinkRel:v().string,externalLinkTarget:v().string,file:K,imageResourcesPath:v().string,inputRef:Q,loading:es,noData:es,onItemClick:v().func,onLoadError:v().func,onLoadProgress:v().func,onLoadSuccess:v().func,onPassword:v().func,onSourceError:v().func,onSourceSuccess:v().func,rotate:v().number});var eu=(0,y.createContext)(null),ec=function(){function e(t){var n=t.num,r=t.gen;(0,u.Z)(this,e),this.num=n,this.gen=r}return(0,c.Z)(e,[{key:"toString",value:function(){var e="".concat(this.num,"R");return 0!==this.gen&&(e+=this.gen),e}}]),e}(),ef=["item"],el=function(e){p(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=d(r);return e=t?Reflect.construct(n,arguments,d(this).constructor):n.apply(this,arguments),h(this,e)});function r(){var e;(0,u.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=n.call.apply(n,[this].concat(o)),(0,g.Z)((0,f.Z)(e),"getDestination",function(){return new Promise(function(t,n){var r=e.props,o=r.item,i=r.pdf;return D(e.destination)||("string"==typeof o.dest?i.getDestination(o.dest).then(t).catch(n):t(o.dest)),e.destination}).then(function(t){return e.destination=t,t})}),(0,g.Z)((0,f.Z)(e),"getPageIndex",function(){return new Promise(function(t,n){var r=e.props.pdf;D(e.pageIndex)&&t(e.pageIndex),e.getDestination().then(function(e){if(e){var o=(0,C.Z)(e,1)[0];r.getPageIndex(new ec(o)).then(t).catch(n)}})}).then(function(t){return e.pageIndex=t,e.pageIndex})}),(0,g.Z)((0,f.Z)(e),"getPageNumber",function(){return new Promise(function(t,n){D(e.pageNumber)&&t(e.pageNumber),e.getPageIndex().then(function(e){t(e+1)}).catch(n)}).then(function(t){return e.pageNumber=t,t})}),(0,g.Z)((0,f.Z)(e),"onClick",function(t){var n=e.props.onClick;return t.preventDefault(),!!n&&Promise.all([e.getDestination(),e.getPageIndex(),e.getPageNumber()]).then(function(e){var t=(0,C.Z)(e,3);n({dest:t[0],pageIndex:t[1],pageNumber:t[2]})})}),e}return(0,c.Z)(r,[{key:"renderSubitems",value:function(){var e=this.props,t=e.item,n=(0,a.Z)(e,ef);if(!t.items||!t.items.length)return null;var o=t.items;return y.createElement("ul",null,o.map(function(e,t){return y.createElement(r,(0,i.Z)({key:"string"==typeof e.destination?e.destination:t,item:e},n))}))}},{key:"render",value:function(){var e=this.props.item;return y.createElement("li",null,y.createElement("a",{href:"#",onClick:this.onClick},e.title),this.renderSubitems())}}]),r}
6(y.PureComponent),ep=v().oneOfType([v().string,v().arrayOf(v().any)]);el.propTypes={item:v().shape({dest:ep,items:v().arrayOf(v().shape({dest:ep,title:v().string})),title:v().string}).isRequired,onClick:v().func,pdf:J.isRequired};var eh=function(e){return y.createElement(B.Consumer,null,function(t){return y.createElement(eu.Consumer,null,function(n){return y.createElement(el,(0,i.Z)({},t,n,e))})})};function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eg(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(Boolean);return n.length<=1?n[0]||null:function(e){n.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}(function(e){p(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=d(r);return e=t?Reflect.construct(n,arguments,d(this).constructor):n.apply(this,arguments),h(this,e)});function r(){var e;(0,u.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=n.call.apply(n,[this].concat(o)),(0,g.Z)((0,f.Z)(e),"state",{outline:null}),(0,g.Z)((0,f.Z)(e),"loadOutline",function(){var t=e.props.pdf;e.setState(function(e){return e.outline?{outline:null}:null});var n=O(t.getOutline());e.runningTask=n,n.promise.then(function(t){e.setState({outline:t},e.onLoadSuccess)}).catch(function(t){e.onLoadError(t)})}),(0,g.Z)((0,f.Z)(e),"onLoadSuccess",function(){var t=e.props.onLoadSuccess,n=e.state.outline;t&&t(n)}),(0,g.Z)((0,f.Z)(e),"onLoadError",function(t){e.setState({outline:!1}),A(t);var n=e.props.onLoadError;n&&n(t)}),(0,g.Z)((0,f.Z)(e),"onItemClick",function(t){var n=t.dest,r=t.pageIndex,o=t.pageNumber,i=e.props.onItemClick;i&&i({dest:n,pageIndex:r,pageNumber:o})}),e}return(0,c.Z)(r,[{key:"componentDidMount",value:function(){var e=this.props.pdf;(0,x.Z)(e,"Attempted to load an outline, but no document was specified."),this.loadOutline()}},{key:"componentDidUpdate",value:function(e){var t=this.props.pdf;e.pdf&&t!==e.pdf&&this.loadOutline()}},{key:"componentWillUnmount",value:function(){q(this.runningTask)}},{key:"childContext",get:function(){return{onClick:this.onItemClick}}},{key:"eventProps",get:function(){var e=this;return P(this.props,function(){return e.state.outline})}},{key:"renderOutline",value:function(){var e=this.state.outline;return y.createElement("ul",null,e.map(function(e,t){return y.createElement(eh,{key:"string"==typeof e.destination?e.destination:t,item:e})}))}},{key:"render",value:function(){var e=this.props.pdf,t=this.state.outline;if(!e||!t)return null;var n=this.props,r=n.className,o=n.inputRef;return y.createElement("div",(0,i.Z)({className:S("react-pdf__Outline",r),ref:o},this.eventProps),y.createElement(eu.Provider,{value:this.childContext},this.renderOutline()))}}]),r})(y.PureComponent).propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach(function(t){(0,g.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({className:H,inputRef:Q,onItemClick:v().func,onLoadError:v().func,onLoadSuccess:v().func,pdf:J},W);var ey=(0,y.createContext)(null),em=o.AnnotationMode,ev=function(e){p(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=d(r);return e=t?Reflect.construct(n,arguments,d(this).constructor):n.apply(this,arguments),h(this,e)});function r(){var e;(0,u.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=n.call.apply(n,[this].concat(o)),(0,g.Z)((0,f.Z)(e),"canvasElement",(0,y.createRef)()),(0,g.Z)((0,f.Z)(e),"onRenderSuccess",function(){e.renderer=null;var t=e.props,n=t.onRenderSuccess,r=t.page,o=t.scale;n&&n(V(r,o))}),(0,g.Z)((0,f.Z)(e),"onRenderError",function(t){if(!$(t)){A(t);var n=e.props.onRenderError;n&&n(t)}}),(0,g.Z)((0,f.Z)(e),"drawPageOnCanvas",function(){var t=e.canvasElement.current;if(!t)return null;var n=(0,f.Z)(e),r=n.renderViewport,o=n.viewport,i=e.props,a=i.canvasBackgroun
6d,s=i.page,u=i.renderForms;t.width=r.width,t.height=r.height,t.style.width="".concat(Math.floor(o.width),"px"),t.style.height="".concat(Math.floor(o.height),"px");var c={annotationMode:u?em.ENABLE_FORMS:em.ENABLE,get canvasContext(){return t.getContext("2d")},viewport:r};return a&&(c.background=a),e.cancelRenderingTask(),e.renderer=s.render(c),e.renderer.promise.then(e.onRenderSuccess).catch(e.onRenderError)}),e}return(0,c.Z)(r,[{key:"componentDidMount",value:function(){this.drawPageOnCanvas()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.canvasBackground,r=t.page,o=t.renderForms;(n!==e.canvasBackground||o!==e.renderForms)&&(r.cleanup(),this.drawPageOnCanvas())}},{key:"componentWillUnmount",value:function(){this.cancelRenderingTask();var e=this.canvasElement.current;e&&(e.width=0,e.height=0)}},{key:"cancelRenderingTask",value:function(){this.renderer&&(this.renderer.cancel(),this.renderer=null)}},{key:"renderViewport",get:function(){var e=this.props,t=e.page,n=e.rotate,r=e.scale,o=L&&window.devicePixelRatio||1;return t.getViewport({scale:r*o,rotation:n})}},{key:"viewport",get:function(){var e=this.props,t=e.page,n=e.rotate,r=e.scale;return t.getViewport({scale:r,rotation:n})}},{key:"render",value:function(){var e=this.props.canvasRef;return y.createElement("canvas",{className:"react-pdf__Page__canvas",dir:"ltr",ref:eg(e,this.canvasElement),style:{display:"block",userSelect:"none"}})}}]),r}(y.PureComponent);function eb(e){return y.createElement(ey.Consumer,null,function(t){return y.createElement(ev,(0,i.Z)({},t,e))})}ev.propTypes={canvasBackground:v().string,canvasRef:Q,onRenderError:v().func,onRenderSuccess:v().func,page:X.isRequired,renderForms:v().bool,rotate:et,scale:v().number.isRequired};var eE=function(e){p(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=d(r);return e=t?Reflect.construct(n,arguments,d(this).constructor):n.apply(this,arguments),h(this,e)});function r(){var e;(0,u.Z)(this,r);for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];return e=n.call.apply(n,[this].concat(i)),(0,g.Z)((0,f.Z)(e),"state",{svg:null}),(0,g.Z)((0,f.Z)(e),"onRenderSuccess",function(){e.renderer=null;var t=e.props,n=t.onRenderSuccess,r=t.page,o=t.scale;n&&n(V(r,o))}),(0,g.Z)((0,f.Z)(e),"onRenderError",function(t){if(!$(t)){A(t);var n=e.props.onRenderError;n&&n(t)}}),(0,g.Z)((0,f.Z)(e),"renderSVG",function(){var t=e.props.page;return e.renderer=t.getOperatorList(),e.renderer.then(function(n){var r=new o.SVGGraphics(t.commonObjs,t.objs);e.renderer=r.getSVG(n,e.viewport).then(function(t){e.setState({svg:t},e.onRenderSuccess)}).catch(e.onRenderError)}).catch(e.onRenderError)}),(0,g.Z)((0,f.Z)(e),"drawPageOnContainer",function(t){var n=e.state.svg;if(t&&n){t.firstElementChild||t.appendChild(n);var r=e.viewport,o=r.width,i=r.height;n.setAttribute("width",o),n.setAttribute("height",i)}}),e}return(0,c.Z)(r,[{key:"componentDidMount",value:function(){this.renderSVG()}},{key:"viewport",get:function(){var e=this.props,t=e.page,n=e.rotate,r=e.scale;return t.getViewport({scale:r,rotation:n})}},{key:"render",value:function(){var e=this,t=this.viewport,n=t.width,r=t.height;return y.createElement("div",{className:"react-pdf__Page__svg",ref:function(t){return e.drawPageOnContainer(t)},style:{display:"block",backgroundColor:"white",overflow:"hidden",width:n,height:r,userSelect:"none"}})}}]),r}(y.PureComponent);function ew(e){return y.createElement(ey.Consumer,null,function(t){return y.createElement(eE,(0,i.Z)({},t,e))})}eE.propTypes={onRenderError:v().func,onRenderSuccess:v().func,page:X.isRequired,rotate:et,scale:v().number.isRequired};var eR=function(e){p(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=d(r);return e=t?Reflect.construct(n,arguments,d(this).constructor):n.apply(this,arguments),h(this,e)});function r(){var e;(0,u.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=n.call.apply(n,[this].concat(o)),(0,g.Z)((0,f.Z)(e),"itemElement",(0,y.createRef)()),(0,g.Z)((0,f.Z)(e),"getElementWidth",function(t){var n=(0,f.Z)(e).sideways;return t.getBoundingClientRect()[n?"height":"width"]}),e}
6return(0,c.Z)(r,[{key:"componentDidMount",value:function(){this.alignTextItem()}},{key:"componentDidUpdate",value:function(){this.alignTextItem()}},{key:"unrotatedViewport",get:function(){var e=this.props,t=e.page,n=e.scale;return t.getViewport({scale:n})}},{key:"rotate",get:function(){var e=this.props,t=e.page;return e.rotate-t.rotate}},{key:"sideways",get:function(){return this.rotate%180!=0}},{key:"defaultSideways",get:function(){return this.unrotatedViewport.rotation%180!=0}},{key:"fontSize",get:function(){var e=this.props.transform,t=this.defaultSideways,n=(0,C.Z)(e,2),r=n[0],o=n[1];return t?o:r}},{key:"top",get:function(){var e=this.props.transform,t=this.unrotatedViewport,n=this.defaultSideways,r=(0,C.Z)(e,6),o=r[2],i=r[3],a=r[4],s=r[5],u=(0,C.Z)(t.viewBox,4),c=u[1],f=u[3];return n?a+o+c:f-(s+i)}},{key:"left",get:function(){var e=this.props.transform,t=this.unrotatedViewport,n=this.defaultSideways,r=(0,C.Z)(e,6),o=r[4],i=r[5],a=(0,C.Z)(t.viewBox,1)[0];return n?i-a:o-a}},{key:"getFontData",value:function(e){var t=this.props.page;return new Promise(function(n){t.commonObjs.get(e,n)})}},{key:"alignTextItem",value:function(){var e=this,t=this.itemElement.current;if(t){t.style.transform="";var n=this.props,r=n.fontName,o=n.scale,i=n.width;t.style.fontFamily="".concat(r,", sans-serif"),this.getFontData(r).then(function(n){var a=n?n.fallbackName:"sans-serif";t.style.fontFamily="".concat(r,", ").concat(a);var s=e.getElementWidth(t),u="scaleX(".concat(i*o/s,")"),c=n?n.ascent:0;c&&(u+=" translateY(".concat((1-c)*100,"%)")),t.style.transform=u,t.style.WebkitTransform=u})}}},{key:"render",value:function(){var e=this.fontSize,t=this.top,n=this.left,r=this.props,o=r.customTextRenderer,i=r.scale,a=r.
6str;return y.createElement("span",{ref:this.itemElement,style:{height:"1em",fontFamily:"sans-serif",fontSize:"".concat(e*i,"px"),position:"absolute",top:"".concat(t*i,"px"),left:"".concat(n*i,"px"),transformOrigin:"left bottom",whiteSpace:"pre",pointerEvents:"all"}},o?o(this.props):a)}}]),r}(y.PureComponent);function ek(e){return y.createElement(ey.Consumer,null,function(t){return y.createElement(eR,(0,i.Z)({},t,e))})}eR.propTypes={customTextRenderer:v().func,fontName:v().string.isRequired,itemIndex:v().number.isRequired,page:X.isRequired,rotate:et,scale:v().number,str:v().string.isRequired,transform:v().arrayOf(v().number).isRequired,width:v().number.isRequired};var eP=function(e){p(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=d(r);return e=t?Reflect.construct(n,arguments,d(this).constructor):n.apply(this,arguments),h(this,e)});function r(){var e;(0,u.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=n.call.apply(n,[this].concat(o)),(0,g.Z)((0,f.Z)(e),"state",{textItems:null}),(0,g.Z)((0,f.Z)(e),"loadTextItems",function(){var t=O(e.props.page.getTextContent());e.runningTask=t,t.promise.then(function(t){var n=t.items;e.setState({textItems:n},e.onLoadSuccess)}).catch(function(t){e.onLoadError(t)})}),(0,g.Z)((0,f.Z)(e),"onLoadSuccess",function(){var t=e.props.onGetTextSuccess,n=e.state.textItems;t&&t(n)}),(0,g.Z)((0,f.Z)(e),"onLoadError",function(t){e.setState({textItems:!1}),A(t);var n=e.props.onGetTextError;n&&n(t)}),e}return(0,c.Z)(r,[{key:"componentDidMount",value:function(){var e=this.props.page;(0,x.Z)(e,"Attempted to load page text content, but no page was specified."),this.loadTextItems()}},{key:"componentDidUpdate",value:function(e){var t=this.props.page;e.page&&t!==e.page&&this.loadTextItems()}},{key:"componentWillUnmount",value:function(){q(this.runningTask)}},{key:"unrotatedViewport",get:function(){var e=this.props,t=e.page,n=e.scale;return t.getViewport({scale:n})}},{key:"rotate",get:function(){var e=this.props,t=e.page;return e.rotate-t.rotate}},{key:"renderTextItems",value:function(){var e=this.state.textItems;return e?e.map(function(e,t){return y.createElement(ek,(0,i.Z)({key:t,itemIndex:t},e))}):null}},{key:"render",value:function(){var e=this.unrotatedViewport,t=this.rotate;return y.createElement("div",{className:"react-pdf__Page__textContent",style:{position:"absolute",top:"50%",left:"50%",width:"".concat(e.width,"px"),height:"".concat(e.height,"px"),color:"transparent",transform:"translate(-50%, -50%) rotate(".concat(t,"deg)"),WebkitTransform:"translate(-50%, -50%) rotate(".concat(t,"deg)"),pointerEvents:"none"}},this.renderTextItems())}}]),r}(y.PureComponent);function eO(e){return y.createElement(ey.Consumer,null,function(t){return y.createElement(eP,(0,i.Z)({},t,e))})}eP.propTypes={onGetTextError:v().func,onGetTextSuccess:v().func,page:X.isRequired,rotate:et,scale:v().number};var eS=function(e){p(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=d(r);return e=t?Reflect.construct(n,arguments,d(this).constructor):n.apply(this,arguments),h(this,e)});function r(){var e;(0,u.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=n.call.apply(n,[this].concat(o)),(0,g.Z)((0,f.Z)(e),"state",{annotations:null}),(0,g.Z)((0,f.Z)(e),"layerElement",(0,y.createRef)()),(0,g.Z)((0,f.Z)(e),"loadAnnotations",function(){var t=O(e.props.page.getAnnotations());e.runningTask=t,t.promise.then(function(t){e.setState({annotations:t},e.onLoadSuccess)}).catch(function(t){e.onLoadError(t)})}),(0,g.Z)((0,f.Z)(e),"onLoadSuccess",function(){var t=e.props.onGetAnnotationsSuccess,n=e.state.annotations;t&&t(n)}),(0,g.Z)((0,f.Z)(e),"onLoadError",function(t){e.setState({annotations:!1}),A(t);var n=e.props.onGetAnnotationsError;n&&n(t)}),(0,g.Z)((0,f.Z)(e),"onRenderSuccess",function(){var t=e.props.onRenderAnnotationLayerSuccess;t&&t()}),(0,g.Z)((0,f.Z)(e),"onRenderError",function(t){A(t);var n=e.props.onRenderAnnotationLayerError;n&&n(t)}),e}
6return(0,c.Z)(r,[{key:"componentDidMount",value:function(){var e=this.props.page;(0,x.Z)(e,"Attempted to load page annotations, but no page was specified."),this.loadAnnotations()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.page,r=t.renderForms;(e.page&&n!==e.page||r!==e.renderForms)&&this.loadAnnotations()}},{key:"componentWillUnmount",value:function(){q(this.runningTask)}},{key:"viewport",get:function(){var e=this.props,t=e.page,n=e.rotate,r=e.scale;return t.getViewport({scale:r,rotation:n})}},{key:"renderAnnotationLayer",value:function(){var e=this.state.annotations;if(e){var t=this.props,n=t.imageResourcesPath,r=t.linkService,i=t.page,a=t.renderForms,s=this.viewport.clone({dontFlip:!0}),u={annotations:e,div:this.layerElement.current,imageResourcesPath:n,linkService:r,page:i,renderForms:a,viewport:s};this.layerElement.current.innerHTML="";try{o.AnnotationLayer.render(u),this.onRenderSuccess()}catch(e){this.onRenderError(e)}}}},{key:"render",value:function(){return y.createElement("div",{className:"react-pdf__Page__annotations annotationLayer",ref:this.layerElement},this.renderAnnotationLayer())}}]),r}(y.PureComponent);eS.propTypes={imageResourcesPath:v().string,linkService:Y.isRequired,onGetAnnotationsError:v().func,onGetAnnotationsSuccess:v().func,onRenderAnnotationLayerError:v().func,onRenderAnnotationLayerSuccess:v().func,page:X,renderForms:v().bool,rotate:et,scale:v().number};var ex=function(e){return y.createElement(B.Consumer,null,function(t){return y.createElement(ey.Consumer,null,function(n){return y.createElement(eS,(0,i.Z)({},t,n,e))})})};function eA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eA(Object(n),!0).forEach(function(t){(0,g.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eI=function(e){p(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=d(r);return e=t?Reflect.construct(n,arguments,d(this).constructor):n.apply(this,arguments),h(this,e)});function r(){var e;(0,u.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=n.call.apply(n,[this].concat(o)),(0,g.Z)((0,f.Z)(e),"state",{page:null}),(0,g.Z)((0,f.Z)(e),"pageElement",(0,y.createRef)()),(0,g.Z)((0,f.Z)(e),"onLoadSuccess",function(){var t=e.props,n=t.onLoadSuccess,r=t.registerPage,o=e.state.page;n&&n(V(o,e.scale)),r&&r(e.pageIndex,e.pageElement.current)}),(0,g.Z)((0,f.Z)(e),"onLoadError",function(t){e.setState({page:!1}),A(t);var n=e.props.onLoadError;n&&n(t)}),(0,g.Z)((0,f.Z)(e),"loadPage",function(){var t=e.props.pdf,n=e.getPageNumber();if(n){e.setState(function(e){return e.page?{page:null}:null});var r=O(t.getPage(n));e.runningTask=r,r.promise.then(function(t){e.setState({page:t},e.onLoadSuccess)}).catch(function(t){e.onLoadError(t)})}}),e}return(0,c.Z)(r,[{key:"componentDidMount",value:function(){var e=this.props.pdf;(0,x.Z)(e,"Attempted to load a page, but no document was specified."),this.loadPage()}},{key:"componentDidUpdate",value:function(e){var t=this.props.pdf;if(e.pdf&&t!==e.pdf||this.getPageNumber()!==this.getPageNumber(e)){var n=this.props.unregisterPage;n&&n(this.getPageIndex(e)),this.loadPage()}}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterPage;e&&e(this.pageIndex),q(this.runningTask)}},{key:"childContext",get:function(){var e=this.state.page;if(!e)return{};var t=this.props,n=t.canvasBackground,r=t.customTextRenderer,o=t.onGetAnnotationsError,i=t.onGetAnnotationsSuccess,a=t.onGetTextError,s=t.onGetTextSuccess,u=t.onRenderAnnotationLayerError,c=t.onRenderAnnotationLayerSuccess,f=t.onRenderError,l=t.onRenderSuccess,p=t.renderForms,h=t.renderInteractiveForms;
6return{canvasBackground:n,customTextRenderer:r,onGetAnnotationsError:o,onGetAnnotationsSuccess:i,onGetTextError:a,onGetTextSuccess:s,onRenderAnnotationLayerError:u,onRenderAnnotationLayerSuccess:c,onRenderError:f,onRenderSuccess:l,page:e,renderForms:null!=p?p:h,rotate:this.rotate,scale:this.scale}}},{key:"getPageIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return _(e.pageNumber)?e.pageNumber-1:_(e.pageIndex)?e.pageIndex:null}},{key:"getPageNumber",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return _(e.pageNumber)?e.pageNumber:_(e.pageIndex)?e.pageIndex+1:null}},{key:"pageIndex",get:function(){return this.getPageIndex()}},{key:"pageNumber",get:function(){return this.getPageNumber()}},{key:"rotate",get:function(){var e=this.props.rotate;if(_(e))return e;var t=this.state.page;return t?t.rotate:null}},{key:"scale",get:function(){var e=this.state.page;if(!e)return null;var t=this.props,n=t.scale,r=t.width,o=t.height,i=this.rotate,a=1;if(r||o){var s=e.getViewport({scale:1,rotation:i});a=r?r/s.width:o/s.height}return(null===n?1:n)*a}},{key:"eventProps",get:function(){var e=this;return P(this.props,function(){var t=e.state.page;return t?V(t,e.scale):t})}},{key:"pageKey",get:function(){var e=this.state.page;return"".concat(e.pageIndex,"@").concat(this.scale,"/").concat(this.rotate)}},{key:"pageKeyNoScale",get:function(){var e=this.state.page;return"".concat(e.pageIndex,"/").concat(this.rotate)}},{key:"renderMainLayer",value:function(){var e=this.props,t=e.canvasRef;switch(e.renderMode){case"none":return null;case"svg":return y.createElement(ew,{key:"".concat(this.pageKeyNoScale,"_svg")});default:return y.createElement(eb,{key:"".concat(this.pageKey,"_canvas"),canvasRef:t})}}},{key:"renderTextLayer",value:function(){return this.props.renderTextLayer?y.createElement(eO,{key:"".concat(this.pageKey,"_text")}):null}},{key:"renderAnnotationLayer",value:function(){return this.props.renderAnnotationLayer?y.createElement(ex,{key:"".concat(this.pageKey,"_annotations")}):null}},{key:"renderChildren",value:function(){var e=this.props.children;return y.createElement(ey.Provider,{value:this.childContext},this.renderMainLayer(),this.renderTextLayer(),this.renderAnnotationLayer(),e)}},{key:"renderContent",value:function(){var e=this.pageNumber,t=this.props.pdf,n=this.state.page;if(!e){var r=this.props.noData;return y.createElement(I,{type:"no-data"},"function"==typeof r?r():r)}if(null===t||null===n){var o=this.props.loading;return y.createElement(I,{type:"loading"},"function"==typeof o?o():o)}if(!1===t||!1===n){var i=this.props.error;return y.createElement(I,{type:"error"},"function"==typeof i?i():i)}return this.renderChildren()}},{key:"render",value:function(){var e=this.pageNumber,t=this.props,n=t.className,r=t.inputRef;return y.createElement("div",(0,i.Z)({className:S("react-pdf__Page",n),"data-page-number":e,ref:eg(r,this.pageElement),style:{position:"relative"}},this.eventProps),this.renderContent())}}]),r}(y.PureComponent);eI.defaultProps={error:"Failed to load the page.",loading:"Loading pageâ¦",noData:"No page specified.",renderAnnotationLayer:!0,renderForms:!1,renderMode:"canvas",renderTextLayer:!0,scale:1};var eT=v().oneOfType([v().func,v().node]);eI.propTypes=eB(eB({},W),{},{canvasBackground:v().string,children:v().node,className:H,customTextRenderer:v().func,error:eT,height:v().number,imageResourcesPath:v().string,inputRef:Q,loading:eT,noData:eT,onGetTextError:v().func,onGetTextSuccess:v().func,onLoadError:v().func,onLoadSuccess:v().func,onRenderError:v().func,onRenderSuccess:v().func,pageIndex:function(e,t,n){var r=e[t],o=e.pageNumber,i=e.pdf;if(!D(i))return null;if(D(r)){if("number"!=typeof r)return Error("`".concat(t,"` of type `").concat((0,s.Z)(r),"` supplied to `").concat(n,"`, expected `number`."));if(r<0)return Error("Expected `".concat(t,"` to be greater or equal to 0."));var a=i.numPages;if(r+1>a)return Error("Expected `".concat(t,"` to be less or equal to ").concat(a-1,"."))}else if(!D(o))return Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(n,"`."));return null},pageNumber:function(e,t,n){var r=e[t],o=e.pageIndex,i=e.pdf;if(!D(i))return null;if(D(r)){if("number"!=typeof r)return Error("`".concat(t,"` of type `").concat((0,s.Z)(r),"` supplied to `").concat(n,"`, expected `number`."));if(r<1)return Error("Expected `".concat(t,"` to be greater or equal to 1."));var a=i.numPages;if(r>a)return Error("Expected `".concat(t,"` to be less or equal to ").concat(a,"."))}
6else if(!D(o))return Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(n,"`."));return null},pdf:J,registerPage:v().func,renderAnnotationLayer:v().bool,renderForms:v().bool,renderInteractiveForms:v().bool,renderMode:ee,renderTextLayer:v().bool,rotate:et,scale:v().number,unregisterPage:v().func,width:v().number});var eZ=y.forwardRef(function(e,t){return y.createElement(B.Consumer,null,function(n){return y.createElement(eI,(0,i.Z)({ref:t},n,e))})});A(!U,"Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ".concat(M)),o.GlobalWorkerOptions.workerSrc="pdf.worker.js"},10362:function(e,t,n){"use strict";function r(e,t){if(!e)throw Error("Invariant failed")}n.d(t,{Z:function(){return r}})}}]); 7//# sourceMappingURL=8952-3a6f848836914a1c.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.