(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90],{4177:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=s(e),u=i[0],a=i[1],f=new o((u+a)*3/4-a),c=0,l=a>0?u-4:u;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],f[c++]=t>>16&255,f[c++]=t>>8&255,f[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,f[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,f[c++]=t>>8&255,f[c++]=255&t),f},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],u=0,a=n-o;u<a;u+=16383)i.push(function(e,t,n){for(var o,i=[],u=t;u<n;u+=3)i.push(r[(o=(e[u]<<16&16711680)+(e[u+1]<<8&65280)+(255&e[u+2]))>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,u,u+16383>a?a:u+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=i.length;u<a;++u)r[u]=i[u],n[i.charCodeAt(u)]=u;function s(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},7376:function(e,t,r){"use strict";var n=r(4177),o=r(4045),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function u(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=u(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(P(e,Uint8Array)){var t=new Uint8Array(e);return h(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(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);var o=function(e){if(a.isBuffer(e)){var t,r=0|p(e.length),n=u(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?u(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 a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(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 c(e){return f(e),u(e<0?0:0|p(e))}function l(e){for(var t=e.length<0?0:0|p(e.length),r=u(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}function p(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(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);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return x(e).length;default:if(o)return n?-1:L(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,r){var o,i,u=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=C[e[i]];return o}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}(this,t,r);case"base64":return o=t,i=r,0===o&&i===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(o,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,t,r);default:if(u)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),u=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,o){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,o){var i,u=1,a=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;u=2,a/=2,s/=2,r/=2}function f(e,t){return 1===u?e[t]:e.readUInt16BE(t*u)}if(o){var c=-1;for(i=r;i<a;i++)if(f(e,i)===f(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===s)return c*u}else -1!==c&&(i-=i-c),c=-1}else for(r+s>a&&(r=a-s),i=r;i>=0;i--){for(var l=!0,h=0;h<s;h++)if(f(e,i+h)!==f(t,h)){l=!1;break}if(l)return i}return -1}function b(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,u,a,s,f=e[o],c=null,l=f>239?4:f>223?3:f>191?2:1;if(o+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&f)<<6|63&i)>127&&(c=s);break;case 3:i=e[o+1],u=e[o+2],(192&i)==128&&(192&u)==128&&(s=(15&f)<<12|(63&i)<<6|63&u)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=e[o+1],u=e[o+2],a=e[o+3],(192&i)==128&&(192&u)==128&&(192&a)==128&&(s=(15&f)<<18|(63&i)<<12|(63&u)<<6|63&a)>65535&&s<1114112&&(c=s)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=l}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function E(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,o,i){if(!a.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(r+n>e.length)throw RangeError("Index out of range")}function S(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function T(e,t,r,n,i){return t=+t,r>>>=0,i||S(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function A(e,t,r,n,i){return t=+t,r>>>=0,i||S(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}t.lW=a,t.h2=50,a.TYPED_ARRAY_SUPPORT=function(){try{var 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}}(),a.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(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(f(e),e<=0)?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(P(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},a.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}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=a.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(P(i,Uint8Array))o+i.length>n.length?a.from(i).copy(n,o):Uint8Array.prototype.set.call(n,i,o);else if(a.isBuffer(i))i.copy(n,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=i.length}return n},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var 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},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,o){if(P(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.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===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,u=r-t,s=Math.min(i,u),f=this.slice(n,o),c=e.slice(t,r),l=0;l<s;++l)if(f[l]!==c[l]){i=f[l],u=c[l];break}return i<u?-1:u<i?1:0},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,u,a,s,f,c,l,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var u=0;u<n;++u){var a=parseInt(t.substr(2*u,2),16);if(a!=a)break;e[r+u]=a}return u}(this,e,t,r);case"utf8":case"utf-8":return o=t,i=r,O(L(e,this.length-o),this,o,i);case"ascii":case"latin1":case"binary":return u=t,a=r,O(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,u,a);case"base64":return s=t,f=r,O(x(e),this,s,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,l=r,O(function(e,t){for(var r,n,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(e,this.length-c),this,c,l);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.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]},a.prototype.readUint32BE=a.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])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(e,t){return(e>>>=0,t||E(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.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},a.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]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),o.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),o.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),o.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),o.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var i=1,u=0;for(this[t]=255&e;++u<r&&(i*=256);)this[t+u]=e/i&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var i=r-1,u=1;for(this[t+i]=255&e;--i>=0&&(u*=256);)this[t+i]=e/u&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||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},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||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},a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var i=0,u=1,a=0;for(this[t]=255&e;++i<r&&(u*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/u>>0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var i=r-1,u=1,a=0;for(this[t+i]=255&e;--i>=0&&(u*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/u>>0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||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},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||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},a.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return A(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return A(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var u=a.isBuffer(e)?e:a.from(e,n),s=u.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=u[o%s]}return this};var R=/[^+/0-9A-Za-z-_]/g;function L(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],u=0;u<n;++u){if((r=e.charCodeAt(u))>55295&&r<57344){if(!o){if(r>56319||u+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function x(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var C=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},4045:function(e,t){t.read=function(e,t,r,n,o){var i,u,a=8*o-n-1,s=(1<<a)-1,f=s>>1,c=-7,l=r?o-1:0,h=r?-1:1,p=e[t+l];for(l+=h,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+e[t+l],l+=h,c-=8);for(u=i&(1<<-c)-1,i>>=-c,c+=n;c>0;u=256*u+e[t+l],l+=h,c-=8);if(0===i)i=1-f;else{if(i===s)return u?NaN:1/0*(p?-1:1);u+=Math.pow(2,n),i-=f}return(p?-1:1)*u*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var u,a,s,f=8*i-o-1,c=(1<<f)-1,l=c>>1,h=23===o?5960464477539062e-23:0,p=n?0:i-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,u=c):(u=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-u))<1&&(u--,s*=2),u+l>=1?t+=h/s:t+=h*Math.pow(2,1-l),t*s>=2&&(u++,s/=2),u+l>=c?(a=0,u=c):u+l>=1?(a=(t*s-1)*Math.pow(2,o),u+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;e[r+p]=255&a,p+=d,a/=256,o-=8);for(u=u<<o|a,f+=o;f>0;e[r+p]=255&u,p+=d,u/=256,f-=8);e[r+p-d]|=128*g}},2972:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return o}});let n=r(951);function o(e){let{reason:t,children:r}=e;if("undefined"==typeof window)throw new n.BailoutToCSRError(t);return r}},9111:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return i}});let n=r(7573),o=r(2399);function i(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let r=(0,o.getExpectedRequestStore)("next/dynamic css"),i=[];if(r.reactLoadableManifest&&t){let e=r.reactLoadableManifest;for(let r of t){if(!e[r])continue;let t=e[r].files.filter(e=>e.endsWith(".css"));i.push(...t)}}return 0===i.length?null:(0,n.jsx)(n.Fragment,{children:i.map(e=>(0,n.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:r.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},2607:function(e,t,r){"use strict";r.d(t,{G:function(){return l},Z:function(){return h}});var n=r(7653);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e);var r=t.prototype;return r.getColumns=function(){var e=this.props,t=e.children,r=e.columnsCount,o=Array.from({length:r},function(){return[]});return n.Children.forEach(t,function(e,t){e&&n.isValidElement(e)&&o[t%r].push(e)}),o},r.renderColumns=function(){var e=this.props.gutter;return this.getColumns().map(function(t,r){return n.createElement("div",{key:r,style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:e}},t.map(function(e){return e}))})},r.render=function(){var e=this.props,t=e.gutter,r=e.className,i=e.style;return n.createElement("div",{style:o({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:t},i),className:r},this.renderColumns())},t}(n.Component);u.propTypes={},u.defaultProps={columnsCount:3,gutter:"0",className:null,style:{}};var a="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,s=function(){var e=(0,n.useState)(!1),t=e[0],r=e[1];return a(function(){r(!0)},[]),t},f=function(){var e=s(),t=(0,n.useState)(0),r=t[0],o=t[1],i=(0,n.useCallback)(function(){e&&o(window.innerWidth)},[e]);return a(function(){if(e)return window.addEventListener("resize",i),i(),function(){return window.removeEventListener("resize",i)}},[e,i]),r},c=function(e){var t=e.columnsCountBreakPoints,r=void 0===t?{350:1,750:2,900:3}:t,o=e.children,i=e.className,u=e.style,a=f(),s=(0,n.useMemo)(function(){var e=Object.keys(r).sort(function(e,t){return e-t}),t=e.length>0?r[e[0]]:1;return e.forEach(function(e){e<a&&(t=r[e])}),t},[a,r]);return n.createElement("div",{className:void 0===i?null:i,style:void 0===u?null:u},n.Children.map(o,function(e,t){return n.cloneElement(e,{key:t,columnsCount:s})}))};c.propTypes={};var l=c,h=u},7002:function(e,t,r){"use strict";var n=r(7653),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,u=n.useEffect,a=n.useLayoutEffect,s=n.useDebugValue;function f(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,c=n[1];return a(function(){o.value=r,o.getSnapshot=t,f(o)&&c({inst:o})},[e,r,t]),u(function(){return f(o)&&c({inst:o}),e(function(){f(o)&&c({inst:o})})},[e]),s(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},209:function(e,t,r){"use strict";var n=r(7653),o=r(6250),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=o.useSyncExternalStore,a=n.useRef,s=n.useEffect,f=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var l=a(null);if(null===l.current){var h={hasValue:!1,value:null};l.current=h}else h=l.current;var p=u(e,(l=f(function(){function e(e){if(!s){if(s=!0,u=e,e=n(e),void 0!==o&&h.hasValue){var t=h.value;if(o(t,e))return a=t}return a=e}if(t=a,i(u,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(u=e,a=r)}var u,a,s=!1,f=void 0===r?null:r;return[function(){return e(t())},null===f?void 0:function(){return e(f())}]},[t,r,n,o]))[0],l[1]);return s(function(){h.hasValue=!0,h.value=p},[p]),c(p),p}},6250:function(e,t,r){"use strict";e.exports=r(7002)},8678:function(e,t,r){"use strict";e.exports=r(209)},13:function(e){"use strict";e.exports=function(){}},9323:function(){},1362:function(){},8571:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}}();var s=[],f=!1,c=-1;function l(){f&&n&&(f=!1,n.length?s=n.concat(s):c=-1,s.length&&h())}function h(){if(!f){var e=a(l);f=!0;for(var t=s.length;t;){for(n=s,s=[];++c<t;)n&&n[c].run();c=-1,t=s.length}n=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new p(e,t)),1!==s.length||f||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=d,o.addListener=d,o.once=d,o.off=d,o.removeListener=d,o.removeAllListeners=d,o.emit=d,o.prependListener=d,o.prependOnceListener=d,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},230:function(e,t,r){"use strict";function n(e){var t=!1;return{promise:new Promise(function(r,n){e.then(function(e){return!t&&r(e)}).catch(function(e){return!t&&n(e)})}),cancel:function(){t=!0}}}r.d(t,{Z:function(){return n}})},5522:function(e,t,r){"use strict";r.d(t,{ZP:function(){return i}});var n=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},o=n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n([],["onCopy","onCut","onPaste"],!0),["onCompositionEnd","onCompositionStart","onCompositionUpdate"],!0),["onFocus","onBlur"],!0),["onInput","onInvalid","onReset","onSubmit"],!0),["onLoad","onError"],!0),["onKeyDown","onKeyPress","onKeyUp"],!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),["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],!0),["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],!0),["onSelect"],!0),["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],!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 i(e,t){var r={};return o.forEach(function(n){var o=e[n];o&&(t?r[n]=function(e){return o(e,t(n))}:r[n]=o)}),r}},4820:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(7573),o=r(7653),i=r(5522),u=r(230),a=r(607),s=r(8179),f=r(13),c=Object.prototype.hasOwnProperty;function l(e,t,r){for(r of e.keys())if(h(r,t))return r}function h(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&h(e[n],t[n]););return -1===n}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if((o=n)&&"object"==typeof o&&!(o=l(t,o))||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if((o=n[0])&&"object"==typeof o&&!(o=l(t,o))||!h(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return -1===n}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return -1===n}if(!r||"object"==typeof e){for(r in n=0,e)if(c.call(e,r)&&++n&&!c.call(t,r)||!(r in t)||!h(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!=e&&t!=t}var p=r(784),d=r(6262),g=r(9547);class y{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(e){this.pdfDocument=e}setViewer(e){this.pdfViewer=e}setExternalLinkRel(e){this.externalLinkRel=e}setExternalLinkTarget(e){this.externalLinkTarget=e}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return(0,s.Z)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(e){(0,s.Z)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=e}get rotation(){return 0}set rotation(e){}goToDestination(e){return new Promise(t=>{(0,s.Z)(this.pdfDocument,"PDF document not loaded."),(0,s.Z)(e,"Destination is not specified."),"string"==typeof e?this.pdfDocument.getDestination(e).then(t):Array.isArray(e)?t(e):e.then(t)}).then(e=>{(0,s.Z)(Array.isArray(e),`"${e}" is not a valid destination array.`);let t=e[0];new Promise(e=>{(0,s.Z)(this.pdfDocument,"PDF document not loaded."),t instanceof Object?this.pdfDocument.getPageIndex(t).then(t=>{e(t)}).catch(()=>{(0,s.Z)(!1,`"${t}" is not a valid page reference.`)}):"number"==typeof t?e(t):(0,s.Z)(!1,`"${t}" is not a valid destination reference.`)}).then(t=>{let r=t+1;(0,s.Z)(this.pdfViewer,"PDF viewer is not initialized."),(0,s.Z)(r>=1&&r<=this.pagesCount,`"${r}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:e,pageIndex:t,pageNumber:r})})})}navigateTo(e){this.goToDestination(e)}goToPage(e){(0,s.Z)(this.pdfViewer,"PDF viewer is not initialized."),(0,s.Z)(e>=1&&e<=this.pagesCount,`"${e}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:e-1,pageNumber:e})}addLinkAttributes(e,t,r){e.href=t,e.rel=this.externalLinkRel||"noopener noreferrer nofollow",e.target=r?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}var v={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},m=r(5625),b=r(207),E=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let{PDFDataRangeTransport:w}=p,S=(e,t)=>{switch(t){case v.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case v.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."))}};function T(e){return"object"==typeof e&&null!==e&&("data"in e||"range"in e||"url"in e)}var A=(0,o.forwardRef)(function(e,t){var{children:r,className:c,error:l="Failed to load PDF file.",externalLinkRel:v,externalLinkTarget:A,file:R,inputRef:L,imageResourcesPath:x,loading:O="Loading PDF…",noData:P="No PDF file specified.",onItemClick:C,onLoadError:j,onLoadProgress:B,onLoadSuccess:U,onPassword:D=S,onSourceError:k,onSourceSuccess:I,options:M,renderMode:Z,rotate:_}=e,N=E(e,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);let[V,F]=(0,b.Z)(),{value:z,error:G}=V,[J,W]=(0,b.Z)(),{value:H,error:q}=J,$=(0,o.useRef)(new y),X=(0,o.useRef)([]),Y=(0,o.useRef)(void 0),K=(0,o.useRef)(void 0);R&&R!==Y.current&&T(R)&&(f(!h(R,Y.current),'File prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.'),Y.current=R),M&&M!==K.current&&(f(!h(M,K.current),'Options prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.'),K.current=M);let Q=(0,o.useRef)({scrollPageIntoView:e=>{let{dest:t,pageNumber:r,pageIndex:n=r-1}=e;if(C){C({dest:t,pageIndex:n,pageNumber:r});return}let o=X.current[n];if(o){o.scrollIntoView();return}f(!1,"An internal link leading to page ".concat(r," 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,o.useImperativeHandle)(t,()=>({linkService:$,pages:X,viewer:Q}),[]),(0,o.useEffect)(function(){F({type:"RESET"})},[R,F]);let ee=(0,o.useCallback)(()=>{var e,t,r,n;return e=this,t=void 0,r=void 0,n=function*(){if(!R)return null;if("string"==typeof R)return(0,m.gJ)(R)?{data:(0,m.us)(R)}:((0,m.tN)(),{url:R});if(R instanceof w)return{range:R};if((0,m.eP)(R))return{data:R};if(m.jU&&(0,m.Lj)(R))return{data:yield(0,m.eR)(R)};if((0,s.Z)("object"==typeof R,"Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,s.Z)(T(R),"Invalid parameter object: need either .data, .range or .url"),"url"in R&&"string"==typeof R.url){if((0,m.gJ)(R.url)){let{url:e}=R,t=E(R,["url"]);return Object.assign({data:(0,m.us)(e)},t)}(0,m.tN)()}return R},new(r||(r=Promise))(function(o,i){function u(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(u,a)}s((n=n.apply(e,t||[])).next())})},[R]);(0,o.useEffect)(()=>{let e=(0,u.Z)(ee());return e.promise.then(e=>{F({type:"RESOLVE",value:e})}).catch(e=>{F({type:"REJECT",error:e})}),()=>{(0,m.LJ)(e)}},[ee,F]),(0,o.useEffect)(()=>{if(void 0!==z){if(!1===z){G&&(f(!1,G.toString()),k&&k(G));return}I&&I()}},[z]),(0,o.useEffect)(function(){W({type:"RESET"})},[W,z]),(0,o.useEffect)(function(){if(!z)return;let e=M?Object.assign(Object.assign({},z),M):z,t=p.Me(e);B&&(t.onProgress=B),D&&(t.onPassword=D);let r=t.promise.then(e=>{W({type:"RESOLVE",value:e})}).catch(e=>{t.destroyed||W({type:"REJECT",error:e})});return()=>{r.finally(()=>t.destroy())}},[M,W,z]),(0,o.useEffect)(()=>{if(void 0!==H){if(!1===H){q&&(f(!1,q.toString()),j&&j(q));return}H&&(U&&U(H),X.current=Array(H.numPages),$.current.setDocument(H))}},[H]),(0,o.useEffect)(function(){$.current.setViewer(Q.current),$.current.setExternalLinkRel(v),$.current.setExternalLinkTarget(A)},[v,A]);let et=(0,o.useCallback)((e,t)=>{X.current[e]=t},[]),er=(0,o.useCallback)(e=>{delete X.current[e]},[]),en=(0,o.useMemo)(()=>({imageResourcesPath:x,linkService:$.current,onItemClick:C,pdf:H,registerPage:et,renderMode:Z,rotate:_,unregisterPage:er}),[x,C,H,et,Z,_,er]),eo=(0,o.useMemo)(()=>(0,i.ZP)(N,()=>H),[N,H]);return(0,n.jsx)("div",Object.assign({className:(0,a.Z)("react-pdf__Document",c),ref:L,style:{"--scale-factor":"1"}},eo,{children:R?null==H?(0,n.jsx)(g.Z,{type:"loading",children:"function"==typeof O?O():O}):!1===H?(0,n.jsx)(g.Z,{type:"error",children:"function"==typeof l?l():l}):(0,n.jsx)(d.Z.Provider,{value:en,children:r}):(0,n.jsx)(g.Z,{type:"no-data",children:"function"==typeof P?P():P})}))})},6262:function(e,t,r){"use strict";let n=(0,r(7653).createContext)(null);t.Z=n},9547:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(7573);function o({children:e,type:t}){return(0,n.jsx)("div",{className:`react-pdf__message react-pdf__message--${t}`,children:e})}},7776:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(7573),o=r(7653),i=r(230),u=r(5522),a=r(607);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.filter(Boolean);return r.length<=1?r[0]||null:function(e){r.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}var f=r(8179),c=r(13);let l=(0,o.createContext)(null);var h=r(9547),p=r(784);let d={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},g=/^H(\d+)$/;function y(e){return"children"in e}function v(e){return!!y(e)&&1===e.children.length&&0 in e.children&&"id"in e.children[0]}function m({className:e,node:t}){let r=(0,o.useMemo)(()=>t?Object.assign(Object.assign({},function(e){let t={};if(y(e)){let{role:r}=e,n=r.match(g);if(n)t.role="heading",t["aria-level"]=Number(n[1]);else if(r in d){let e=d[r];e&&(t.role=e)}}return t}(t)),function e(t){let r={};if(y(t)){if(void 0!==t.alt&&(r["aria-label"]=t.alt),void 0!==t.lang&&(r.lang=t.lang),v(t)){let[n]=t.children;if(n){let t=e(n);return Object.assign(Object.assign({},r),t)}}}else"id"in t&&(r["aria-owns"]=t.id);return r}(t)):null,[t]),i=(0,o.useMemo)(()=>!y(t)||v(t)?null:t.children.map((e,t)=>(0,n.jsx)(m,{node:e},t)),[t]);return(0,n.jsx)("span",Object.assign({className:e},r,{children:i}))}function b(){return(0,o.useContext)(l)}var E=r(207),w=r(5625);function S(){let e=b();(0,f.Z)(e,"Unable to find Page context.");let{onGetStructTreeError:t,onGetStructTreeSuccess:r}=e,[u,a]=(0,E.Z)(),{value:s,error:l}=u,{customTextRenderer:h,page:p}=e;return((0,o.useEffect)(function(){a({type:"RESET"})},[a,p]),(0,o.useEffect)(function(){if(h||!p)return;let e=(0,i.Z)(p.getStructTree());return e.promise.then(e=>{a({type:"RESOLVE",value:e})}).catch(e=>{a({type:"REJECT",error:e})}),()=>(0,w.LJ)(e)},[h,p,a]),(0,o.useEffect)(()=>{if(void 0!==s){if(!1===s){l&&(c(!1,l.toString()),t&&t(l));return}s&&r&&r(s)}},[s]),s)?(0,n.jsx)(m,{className:"react-pdf__Page__structTree structTree",node:s}):null}let T=p.bM;function A(e){let t=b();(0,f.Z)(t,"Unable to find Page context.");let{_className:r,canvasBackground:i,devicePixelRatio:u=(0,w.x_)(),onRenderError:a,onRenderSuccess:l,page:h,renderForms:p,renderTextLayer:d,rotate:g,scale:y}=Object.assign(Object.assign({},t),e),{canvasRef:v}=e;(0,f.Z)(h,"Attempted to render page canvas, but no page was specified.");let m=(0,o.useRef)(null);function E(e){!(0,w.DE)(e)&&(c(!1,e.toString()),a&&a(e))}let A=(0,o.useMemo)(()=>h.getViewport({scale:y*u,rotation:g}),[u,h,g,y]),R=(0,o.useMemo)(()=>h.getViewport({scale:y,rotation:g}),[h,g,y]);(0,o.useEffect)(function(){if(!h)return;h.cleanup();let{current:e}=m;if(!e)return;e.width=A.width,e.height=A.height,e.style.width="".concat(Math.floor(R.width),"px"),e.style.height="".concat(Math.floor(R.height),"px"),e.style.visibility="hidden";let t={annotationMode:p?T.ENABLE_FORMS:T.ENABLE,canvasContext:e.getContext("2d",{alpha:!1}),viewport:A};i&&(t.background=i);let r=h.render(t);return r.promise.then(()=>{e.style.visibility="",h&&l&&l((0,w.XZ)(h,y))}).catch(E),()=>(0,w.LJ)(r)},[i,h,p,A,R]);let L=(0,o.useCallback)(()=>{let{current:e}=m;e&&(e.width=0,e.height=0)},[]);return(0,o.useEffect)(()=>L,[L]),(0,n.jsx)("canvas",{className:"".concat(r,"__canvas"),dir:"ltr",ref:s(v,m),style:{display:"block",userSelect:"none"},children:d?(0,n.jsx)(S,{}):null})}function R(){let e=b();(0,f.Z)(e,"Unable to find Page context.");let{customTextRenderer:t,onGetTextError:r,onGetTextSuccess:u,onRenderTextLayerError:s,onRenderTextLayerSuccess:l,page:h,pageIndex:d,pageNumber:g,rotate:y,scale:v}=e;(0,f.Z)(h,"Attempted to load page text content, but no page was specified.");let[m,S]=(0,E.Z)(),{value:T,error:A}=m,R=(0,o.useRef)(null),L=(0,o.useRef)(void 0);c(1===Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10),"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer"),(0,o.useEffect)(function(){S({type:"RESET"})},[h,S]),(0,o.useEffect)(function(){if(!h)return;let e=(0,i.Z)(h.getTextContent());return e.promise.then(e=>{S({type:"RESOLVE",value:e})}).catch(e=>{S({type:"REJECT",error:e})}),()=>(0,w.LJ)(e)},[h,S]),(0,o.useEffect)(()=>{if(void 0!==T){if(!1===T){A&&(c(!1,A.toString()),r&&r(A));return}T&&u&&u(T)}},[T]);let x=(0,o.useCallback)(()=>{l&&l()},[l]),O=(0,o.useCallback)(e=>{c(!1,e.toString()),s&&s(e)},[s]),P=(0,o.useMemo)(()=>h.getViewport({scale:v,rotation:y}),[h,y,v]);return(0,o.useLayoutEffect)(function(){if(!h||!T)return;let{current:e}=R;if(!e)return;e.innerHTML="";let r=h.streamTextContent({includeMarkedContent:!0}),n=new p.AB({container:e,textContentSource:r,viewport:P});return n.render().then(()=>{let r=document.createElement("div");r.className="endOfContent",e.append(r),L.current=r;let n=e.querySelectorAll('[role="presentation"]');if(t){let e=0;T.items.forEach((r,o)=>{if(!("str"in r))return;let i=n[e];if(!i)return;let u=t(Object.assign({pageIndex:d,pageNumber:g,itemIndex:o},r));i.innerHTML=u,e+=r.str&&r.hasEOL?2:1})}x()}).catch(O),()=>(0,w.LJ)(n)},[t,O,x,h,d,g,T,P]),(0,n.jsx)("div",{className:(0,a.Z)("react-pdf__Page__textContent","textLayer"),onMouseUp:function(){let e=L.current;e&&e.classList.remove("active")},onMouseDown:function(){let e=L.current;e&&e.classList.add("active")},ref:R})}var L=r(6262);function x(){return(0,o.useContext)(L.Z)}function O(){let e=x(),t=b();(0,f.Z)(t,"Unable to find Page context.");let{imageResourcesPath:r,linkService:u,onGetAnnotationsError:s,onGetAnnotationsSuccess:l,onRenderAnnotationLayerError:h,onRenderAnnotationLayerSuccess:d,page:g,pdf:y,renderForms:v,rotate:m,scale:S=1}=Object.assign(Object.assign({},e),t);(0,f.Z)(y,"Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."),(0,f.Z)(g,"Attempted to load page annotations, but no page was specified."),(0,f.Z)(u,"Attempted to load page annotations, but no linkService was specified.");let[T,A]=(0,E.Z)(),{value:R,error:L}=T,O=(0,o.useRef)(null);c(1===Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10),"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations"),(0,o.useEffect)(function(){A({type:"RESET"})},[A,g]),(0,o.useEffect)(function(){if(!g)return;let e=(0,i.Z)(g.getAnnotations());return e.promise.then(e=>{A({type:"RESOLVE",value:e})}).catch(e=>{A({type:"REJECT",error:e})}),()=>{(0,w.LJ)(e)}},[A,g]),(0,o.useEffect)(()=>{if(void 0!==R){if(!1===R){L&&(c(!1,L.toString()),s&&s(L));return}R&&l&&l(R)}},[R]);let P=(0,o.useMemo)(()=>g.getViewport({scale:S,rotation:m}),[g,m,S]);return(0,o.useEffect)(function(){if(!y||!g||!u||!R)return;let{current:e}=O;if(!e)return;let t=P.clone({dontFlip:!0}),n={annotations:R,annotationStorage:y.annotationStorage,div:e,imageResourcesPath:r,linkService:u,page:g,renderForms:v,viewport:t};e.innerHTML="";try{new p.sO({accessibilityManager:null,annotationCanvasMap:null,annotationEditorUIManager:null,div:e,l10n:null,page:g,viewport:t}).render(n),d&&d()}catch(e){c(!1,"".concat(e)),h&&h(e)}return()=>{}},[R,r,u,g,y,v,P]),(0,n.jsx)("div",{className:(0,a.Z)("react-pdf__Page__annotations","annotationLayer"),ref:O})}var P=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function C(e){let t=Object.assign(Object.assign({},x()),e),{_className:r="react-pdf__Page",_enableRegisterUnregisterPage:p=!0,canvasBackground:d,canvasRef:g,children:y,className:v,customRenderer:m,customTextRenderer:b,devicePixelRatio:S,error:T="Failed to load the page.",height:L,inputRef:C,loading:j="Loading page…",noData:B="No page specified.",onGetAnnotationsError:U,onGetAnnotationsSuccess:D,onGetStructTreeError:k,onGetStructTreeSuccess:I,onGetTextError:M,onGetTextSuccess:Z,onLoadError:_,onLoadSuccess:N,onRenderAnnotationLayerError:V,onRenderAnnotationLayerSuccess:F,onRenderError:z,onRenderSuccess:G,onRenderTextLayerError:J,onRenderTextLayerSuccess:W,pageIndex:H,pageNumber:q,pdf:$,registerPage:X,renderAnnotationLayer:Y=!0,renderForms:K=!1,renderMode:Q="canvas",renderTextLayer:ee=!0,rotate:et,scale:er=1,unregisterPage:en,width:eo}=t,ei=P(t,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),[eu,ea]=(0,E.Z)(),{value:es,error:ef}=eu,ec=(0,o.useRef)(null);(0,f.Z)($,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");let el=(0,w.T8)(q)?q-1:null!=H?H:null,eh=null!=q?q:(0,w.T8)(H)?H+1:null,ep=null!=et?et:es?es.rotate:null,ed=(0,o.useMemo)(()=>{if(!es)return null;let e=1,t=null!=er?er:1;if(eo||L){let t=es.getViewport({scale:1,rotation:ep});eo?e=eo/t.width:L&&(e=L/t.height)}return t*e},[L,es,ep,er,eo]);(0,o.useEffect)(function(){return()=>{(0,w.T8)(el)&&p&&en&&en(el)}},[p,$,el,en]),(0,o.useEffect)(function(){ea({type:"RESET"})},[ea,$,el]),(0,o.useEffect)(function(){if(!$||!eh)return;let e=(0,i.Z)($.getPage(eh));return e.promise.then(e=>{ea({type:"RESOLVE",value:e})}).catch(e=>{ea({type:"REJECT",error:e})}),()=>(0,w.LJ)(e)},[ea,$,eh]),(0,o.useEffect)(()=>{if(void 0!==es){if(!1===es){ef&&(c(!1,ef.toString()),_&&_(ef));return}!function(){if(N){if(!es||!ed)return;N((0,w.XZ)(es,ed))}if(p&&X){if(!(0,w.T8)(el)||!ec.current)return;X(el,ec.current)}}()}},[es,ed]);let eg=(0,o.useMemo)(()=>es&&(0,w.T8)(el)&&eh&&(0,w.T8)(ep)&&(0,w.T8)(ed)?{_className:r,canvasBackground:d,customTextRenderer:b,devicePixelRatio:S,onGetAnnotationsError:U,onGetAnnotationsSuccess:D,onGetStructTreeError:k,onGetStructTreeSuccess:I,onGetTextError:M,onGetTextSuccess:Z,onRenderAnnotationLayerError:V,onRenderAnnotationLayerSuccess:F,onRenderError:z,onRenderSuccess:G,onRenderTextLayerError:J,onRenderTextLayerSuccess:W,page:es,pageIndex:el,pageNumber:eh,renderForms:K,renderTextLayer:ee,rotate:ep,scale:ed}:null,[r,d,b,S,U,D,k,I,M,Z,V,F,z,G,J,W,es,el,eh,K,ee,ep,ed]),ey=(0,o.useMemo)(()=>(0,u.ZP)(ei,()=>es?ed?(0,w.XZ)(es,ed):void 0:es),[ei,es,ed]),ev="".concat(el,"@").concat(ed,"/").concat(ep);return(0,n.jsx)("div",Object.assign({className:(0,a.Z)(r,v),"data-page-number":eh,ref:s(C,ec),style:{"--scale-factor":"".concat(ed),backgroundColor:d||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},ey,{children:eh?null===$||null==es?(0,n.jsx)(h.Z,{type:"loading",children:"function"==typeof j?j():j}):!1===$||!1===es?(0,n.jsx)(h.Z,{type:"error",children:"function"==typeof T?T():T}):(0,n.jsxs)(l.Provider,{value:eg,children:[function(){switch(Q){case"custom":return(0,f.Z)(m,'renderMode was set to "custom", but no customRenderer was passed.'),(0,n.jsx)(m,{},"".concat(ev,"_custom"));case"none":return null;default:return(0,n.jsx)(A,{canvasRef:g},"".concat(ev,"_canvas"))}}(),ee?(0,n.jsx)(R,{},"".concat(ev,"_text")):null,Y?(0,n.jsx)(O,{},"".concat(ev,"_annotations")):null,y]}):(0,n.jsx)(h.Z,{type:"no-data",children:"function"==typeof B?B():B})}))}},207:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(7653);function o(e,t){switch(t.type){case"RESOLVE":return{value:t.value,error:void 0};case"REJECT":return{value:!1,error:t.error};case"RESET":return{value:void 0,error:void 0};default:return e}}function i(){return(0,n.useReducer)(o,{value:void 0,error:void 0})}},5625:function(e,t,r){"use strict";r.d(t,{DE:function(){return y},LJ:function(){return d},Lj:function(){return f},T8:function(){return a},XZ:function(){return g},eP:function(){return s},eR:function(){return v},gJ:function(){return c},jU:function(){return i},tN:function(){return p},us:function(){return l},x_:function(){return h}});var n=r(8179),o=r(13);let i="undefined"!=typeof window,u=i&&"file:"===window.location.protocol;function a(e){return null!=e}function s(e){return e instanceof ArrayBuffer}function f(e){return(0,n.Z)(i,"isBlob can only be used in a browser environment"),e instanceof Blob}function c(e){return"string"==typeof e&&/^data:/.test(e)}function l(e){(0,n.Z)(c(e),"Invalid data URI.");let[t="",r=""]=e.split(",");return -1!==t.split(";").indexOf("base64")?atob(r):unescape(r)}function h(){return i&&window.devicePixelRatio||1}function p(){o(!u,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.")}function d(e){(null==e?void 0:e.cancel)&&e.cancel()}function g(e,t){return Object.defineProperty(e,"width",{get(){return this.view[2]*t},configurable:!0}),Object.defineProperty(e,"height",{get(){return this.view[3]*t},configurable:!0}),Object.defineProperty(e,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(e,"originalHeight",{get(){return this.view[3]},configurable:!0}),e}function y(e){return"RenderingCancelledException"===e.name}function v(e){return new Promise((t,r)=>{let n=new FileReader;n.onload=()=>{if(!n.result)return r(Error("Error while reading a file."));t(n.result)},n.onerror=e=>{if(!e.target)return r(Error("Error while reading a file."));let{error:t}=e.target;if(!t)return r(Error("Error while reading a file."));switch(t.code){case t.NOT_FOUND_ERR:return r(Error("Error while reading a file: File not found."));case t.SECURITY_ERR:return r(Error("Error while reading a file: Security error."));case t.ABORT_ERR:return r(Error("Error while reading a file: Aborted."));default:return r(Error("Error while reading a file."))}},n.readAsArrayBuffer(e)})}},8179:function(e,t,r){"use strict";function n(e,t){if(!e)throw Error("Invariant failed")}r.d(t,{Z:function(){return n}})},526:function(e,t,r){"use strict";function n(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[r,n]of e)if(!Object.is(n,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||!Object.is(e[n],t[n]))return!1;return!0}r.d(t,{X:function(){return n}})},2421:function(e,t,r){"use strict";r.d(t,{F:function(){return l}});var n=r(7653),o=r(8678);let i=e=>{let t;let r=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},t,o),r.forEach(r=>r(t,e))}},o=()=>t,i={setState:n,getState:o,getInitialState:()=>u,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},u=t=e(n,o,i);return i},u=e=>e?i(e):i,{useDebugValue:a}=n,{useSyncExternalStoreWithSelector:s}=o,f=e=>e,c=(e,t)=>{let r=u(e),n=(e,n=t)=>(function(e,t=f,r){let n=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return a(n),n})(r,e,n);return Object.assign(n,r),n},l=(e,t)=>e?c(e,t):c}}]);