@xswap-link/sdk
Version:
JavaScript SDK for XSwap platform
1 lines • 3.67 MB
JavaScript
"use strict";var XPay=(()=>{var Jvt=Object.create;var lO=Object.defineProperty;var Yvt=Object.getOwnPropertyDescriptor;var Xvt=Object.getOwnPropertyNames;var Qvt=Object.getPrototypeOf,eCt=Object.prototype.hasOwnProperty;var E=(t,e)=>()=>(t&&(e=t(t=0)),e);var Se=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ue=(t,e)=>{for(var r in e)lO(t,r,{get:e[r],enumerable:!0})},cO=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Xvt(e))!eCt.call(t,o)&&o!==r&&lO(t,o,{get:()=>e[o],enumerable:!(n=Yvt(e,o))||n.enumerable});return t},Ja=(t,e,r)=>(cO(t,e,"default"),r&&cO(r,e,"default")),q=(t,e,r)=>(r=t!=null?Jvt(Qvt(t)):{},cO(e||!t||!t.__esModule?lO(r,"default",{value:t,enumerable:!0}):r,t)),_f=t=>cO(lO({},"__esModule",{value:!0}),t);var vhe=Se(uO=>{"use strict";l();uO.byteLength=rCt;uO.toByteArray=oCt;uO.fromByteArray=aCt;var kf=[],S0=[],tCt=typeof Uint8Array<"u"?Uint8Array:Array,cJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(b7=0,whe=cJ.length;b7<whe;++b7)kf[b7]=cJ[b7],S0[cJ.charCodeAt(b7)]=b7;var b7,whe;S0[45]=62;S0[95]=63;function xhe(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function rCt(t){var e=xhe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function nCt(t,e,r){return(e+r)*3/4-r}function oCt(t){var e,r=xhe(t),n=r[0],o=r[1],i=new tCt(nCt(t,n,o)),s=0,a=o>0?n-4:n,c;for(c=0;c<a;c+=4)e=S0[t.charCodeAt(c)]<<18|S0[t.charCodeAt(c+1)]<<12|S0[t.charCodeAt(c+2)]<<6|S0[t.charCodeAt(c+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return o===2&&(e=S0[t.charCodeAt(c)]<<2|S0[t.charCodeAt(c+1)]>>4,i[s++]=e&255),o===1&&(e=S0[t.charCodeAt(c)]<<10|S0[t.charCodeAt(c+1)]<<4|S0[t.charCodeAt(c+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function iCt(t){return kf[t>>18&63]+kf[t>>12&63]+kf[t>>6&63]+kf[t&63]}function sCt(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(iCt(n));return o.join("")}function aCt(t){for(var e,r=t.length,n=r%3,o=[],i=16383,s=0,a=r-n;s<a;s+=i)o.push(sCt(t,s,s+i>a?a:s+i));return n===1?(e=t[r-1],o.push(kf[e>>2]+kf[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(kf[e>>10]+kf[e>>4&63]+kf[e<<2&63]+"=")),o.join("")}});var Che=Se(lJ=>{"use strict";l();lJ.read=function(t,e,r,n,o){var i,s,a=o*8-n-1,c=(1<<a)-1,u=c>>1,f=-7,d=r?o-1:0,p=r?-1:1,h=t[e+d];for(d+=p,i=h&(1<<-f)-1,h>>=-f,f+=a;f>0;i=i*256+t[e+d],d+=p,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=n;f>0;s=s*256+t[e+d],d+=p,f-=8);if(i===0)i=1-u;else{if(i===c)return s?NaN:(h?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-u}return(h?-1:1)*s*Math.pow(2,i-n)};lJ.write=function(t,e,r,n,o,i){var s,a,c,u=i*8-o-1,f=(1<<u)-1,d=f>>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,m=n?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+d>=1?e+=p/c:e+=p*Math.pow(2,1-d),e*c>=2&&(s++,c/=2),s+d>=f?(a=0,s=f):s+d>=1?(a=(e*c-1)*Math.pow(2,o),s=s+d):(a=e*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;t[r+h]=a&255,h+=m,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;t[r+h]=s&255,h+=m,s/=256,u-=8);t[r+h-m]|=g*128}});var x7=Se(Lb=>{"use strict";l();var uJ=vhe(),Tb=Che(),Ehe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Lb.Buffer=Te;Lb.SlowBuffer=pCt;Lb.INSPECT_MAX_BYTES=50;var fO=2147483647;Lb.kMaxLength=fO;Te.TYPED_ARRAY_SUPPORT=cCt();!Te.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function cCt(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(Te.prototype,"parent",{enumerable:!0,get:function(){if(Te.isBuffer(this))return this.buffer}});Object.defineProperty(Te.prototype,"offset",{enumerable:!0,get:function(){if(Te.isBuffer(this))return this.byteOffset}});function q4(t){if(t>fO)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,Te.prototype),e}function Te(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return hJ(t)}return khe(t,e,r)}Te.poolSize=8192;function khe(t,e,r){if(typeof t=="string")return uCt(t,e);if(ArrayBuffer.isView(t))return fCt(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Tf(t,ArrayBuffer)||t&&Tf(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Tf(t,SharedArrayBuffer)||t&&Tf(t.buffer,SharedArrayBuffer)))return dJ(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return Te.from(n,e,r);let o=dCt(t);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return Te.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}Te.from=function(t,e,r){return khe(t,e,r)};Object.setPrototypeOf(Te.prototype,Uint8Array.prototype);Object.setPrototypeOf(Te,Uint8Array);function The(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function lCt(t,e,r){return The(t),t<=0?q4(t):e!==void 0?typeof r=="string"?q4(t).fill(e,r):q4(t).fill(e):q4(t)}Te.alloc=function(t,e,r){return lCt(t,e,r)};function hJ(t){return The(t),q4(t<0?0:mJ(t)|0)}Te.allocUnsafe=function(t){return hJ(t)};Te.allocUnsafeSlow=function(t){return hJ(t)};function uCt(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Te.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Ihe(t,e)|0,n=q4(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function fJ(t){let e=t.length<0?0:mJ(t.length)|0,r=q4(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function fCt(t){if(Tf(t,Uint8Array)){let e=new Uint8Array(t);return dJ(e.buffer,e.byteOffset,e.byteLength)}return fJ(t)}function dJ(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,Te.prototype),n}function dCt(t){if(Te.isBuffer(t)){let e=mJ(t.length)|0,r=q4(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||yJ(t.length)?q4(0):fJ(t);if(t.type==="Buffer"&&Array.isArray(t.data))return fJ(t.data)}function mJ(t){if(t>=fO)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+fO.toString(16)+" bytes");return t|0}function pCt(t){return+t!=t&&(t=0),Te.alloc(+t)}Te.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Te.prototype};Te.compare=function(e,r){if(Tf(e,Uint8Array)&&(e=Te.from(e,e.offset,e.byteLength)),Tf(r,Uint8Array)&&(r=Te.from(r,r.offset,r.byteLength)),!Te.isBuffer(e)||!Te.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,o=r.length;for(let i=0,s=Math.min(n,o);i<s;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};Te.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}};Te.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Te.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let o=Te.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){let s=e[n];if(Tf(s,Uint8Array))i+s.length>o.length?(Te.isBuffer(s)||(s=Te.from(s)),s.copy(o,i)):Uint8Array.prototype.set.call(o,s,i);else if(Te.isBuffer(s))s.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return o};function Ihe(t,e){if(Te.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Tf(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return pJ(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Dhe(t).length;default:if(o)return n?-1:pJ(t).length;e=(""+e).toLowerCase(),o=!0}}Te.byteLength=Ihe;function hCt(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return SCt(this,e,r);case"utf8":case"utf-8":return Nhe(this,e,r);case"ascii":return CCt(this,e,r);case"latin1":case"binary":return ECt(this,e,r);case"base64":return xCt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ACt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}Te.prototype._isBuffer=!0;function w7(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}Te.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)w7(this,r,r+1);return this};Te.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)w7(this,r,r+3),w7(this,r+1,r+2);return this};Te.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)w7(this,r,r+7),w7(this,r+1,r+6),w7(this,r+2,r+5),w7(this,r+3,r+4);return this};Te.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Nhe(this,0,e):hCt.apply(this,arguments)};Te.prototype.toLocaleString=Te.prototype.toString;Te.prototype.equals=function(e){if(!Te.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:Te.compare(this,e)===0};Te.prototype.inspect=function(){let e="",r=Lb.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Ehe&&(Te.prototype[Ehe]=Te.prototype.inspect);Te.prototype.compare=function(e,r,n,o,i){if(Tf(e,Uint8Array)&&(e=Te.from(e,e.offset,e.byteLength)),!Te.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;let s=i-o,a=n-r,c=Math.min(s,a),u=this.slice(o,i),f=e.slice(r,n);for(let d=0;d<c;++d)if(u[d]!==f[d]){s=u[d],a=f[d];break}return s<a?-1:a<s?1:0};function Lhe(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,yJ(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=Te.from(e,n)),Te.isBuffer(e))return e.length===0?-1:She(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):She(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function She(t,e,r,n,o){let i=1,s=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,s/=2,a/=2,r/=2}function c(f,d){return i===1?f[d]:f.readUInt16BE(d*i)}let u;if(o){let f=-1;for(u=r;u<s;u++)if(c(t,u)===c(e,f===-1?0:u-f)){if(f===-1&&(f=u),u-f+1===a)return f*i}else f!==-1&&(u-=u-f),f=-1}else for(r+a>s&&(r=s-a),u=r;u>=0;u--){let f=!0;for(let d=0;d<a;d++)if(c(t,u+d)!==c(e,d)){f=!1;break}if(f)return u}return-1}Te.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};Te.prototype.indexOf=function(e,r,n){return Lhe(this,e,r,n,!0)};Te.prototype.lastIndexOf=function(e,r,n){return Lhe(this,e,r,n,!1)};function mCt(t,e,r,n){r=Number(r)||0;let o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;let i=e.length;n>i/2&&(n=i/2);let s;for(s=0;s<n;++s){let a=parseInt(e.substr(s*2,2),16);if(yJ(a))return s;t[r+s]=a}return s}function gCt(t,e,r,n){return dO(pJ(e,t.length-r),t,r,n)}function yCt(t,e,r,n){return dO(ICt(e),t,r,n)}function bCt(t,e,r,n){return dO(Dhe(e),t,r,n)}function wCt(t,e,r,n){return dO(LCt(e,t.length-r),t,r,n)}Te.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let s=!1;for(;;)switch(o){case"hex":return mCt(this,e,r,n);case"utf8":case"utf-8":return gCt(this,e,r,n);case"ascii":case"latin1":case"binary":return yCt(this,e,r,n);case"base64":return bCt(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wCt(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}};Te.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xCt(t,e,r){return e===0&&r===t.length?uJ.fromByteArray(t):uJ.fromByteArray(t.slice(e,r))}function Nhe(t,e,r){r=Math.min(t.length,r);let n=[],o=e;for(;o<r;){let i=t[o],s=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){let c,u,f,d;switch(a){case 1:i<128&&(s=i);break;case 2:c=t[o+1],(c&192)===128&&(d=(i&31)<<6|c&63,d>127&&(s=d));break;case 3:c=t[o+1],u=t[o+2],(c&192)===128&&(u&192)===128&&(d=(i&15)<<12|(c&63)<<6|u&63,d>2047&&(d<55296||d>57343)&&(s=d));break;case 4:c=t[o+1],u=t[o+2],f=t[o+3],(c&192)===128&&(u&192)===128&&(f&192)===128&&(d=(i&15)<<18|(c&63)<<12|(u&63)<<6|f&63,d>65535&&d<1114112&&(s=d))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),o+=a}return vCt(n)}var Ahe=4096;function vCt(t){let e=t.length;if(e<=Ahe)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Ahe));return r}function CCt(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function ECt(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function SCt(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let o="";for(let i=e;i<r;++i)o+=NCt[t[i]];return o}function ACt(t,e,r){let n=t.slice(e,r),o="";for(let i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}Te.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let o=this.subarray(e,r);return Object.setPrototypeOf(o,Te.prototype),o};function va(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}Te.prototype.readUintLE=Te.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||va(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return o};Te.prototype.readUintBE=Te.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||va(e,r,this.length);let o=this[e+--r],i=1;for(;r>0&&(i*=256);)o+=this[e+--r]*i;return o};Te.prototype.readUint8=Te.prototype.readUInt8=function(e,r){return e=e>>>0,r||va(e,1,this.length),this[e]};Te.prototype.readUint16LE=Te.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||va(e,2,this.length),this[e]|this[e+1]<<8};Te.prototype.readUint16BE=Te.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||va(e,2,this.length),this[e]<<8|this[e+1]};Te.prototype.readUint32LE=Te.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||va(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Te.prototype.readUint32BE=Te.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||va(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Te.prototype.readBigUInt64LE=Bh(function(e){e=e>>>0,Ib(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&wA(e,this.length-8);let o=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))});Te.prototype.readBigUInt64BE=Bh(function(e){e=e>>>0,Ib(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&wA(e,this.length-8);let o=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(i)});Te.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||va(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};Te.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||va(e,r,this.length);let o=r,i=1,s=this[e+--o];for(;o>0&&(i*=256);)s+=this[e+--o]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s};Te.prototype.readInt8=function(e,r){return e=e>>>0,r||va(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};Te.prototype.readInt16LE=function(e,r){e=e>>>0,r||va(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};Te.prototype.readInt16BE=function(e,r){e=e>>>0,r||va(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};Te.prototype.readInt32LE=function(e,r){return e=e>>>0,r||va(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Te.prototype.readInt32BE=function(e,r){return e=e>>>0,r||va(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Te.prototype.readBigInt64LE=Bh(function(e){e=e>>>0,Ib(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&wA(e,this.length-8);let o=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});Te.prototype.readBigInt64BE=Bh(function(e){e=e>>>0,Ib(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&wA(e,this.length-8);let o=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});Te.prototype.readFloatLE=function(e,r){return e=e>>>0,r||va(e,4,this.length),Tb.read(this,e,!0,23,4)};Te.prototype.readFloatBE=function(e,r){return e=e>>>0,r||va(e,4,this.length),Tb.read(this,e,!1,23,4)};Te.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||va(e,8,this.length),Tb.read(this,e,!0,52,8)};Te.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||va(e,8,this.length),Tb.read(this,e,!1,52,8)};function cl(t,e,r,n,o,i){if(!Te.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}Te.prototype.writeUintLE=Te.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;cl(this,e,r,n,a,0)}let i=1,s=0;for(this[r]=e&255;++s<n&&(i*=256);)this[r+s]=e/i&255;return r+n};Te.prototype.writeUintBE=Te.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;cl(this,e,r,n,a,0)}let i=n-1,s=1;for(this[r+i]=e&255;--i>=0&&(s*=256);)this[r+i]=e/s&255;return r+n};Te.prototype.writeUint8=Te.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||cl(this,e,r,1,255,0),this[r]=e&255,r+1};Te.prototype.writeUint16LE=Te.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||cl(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};Te.prototype.writeUint16BE=Te.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||cl(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};Te.prototype.writeUint32LE=Te.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||cl(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};Te.prototype.writeUint32BE=Te.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||cl(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Mhe(t,e,r,n,o){Bhe(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function Rhe(t,e,r,n,o){Bhe(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i=i>>8,t[r+6]=i,i=i>>8,t[r+5]=i,i=i>>8,t[r+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}Te.prototype.writeBigUInt64LE=Bh(function(e,r=0){return Mhe(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});Te.prototype.writeBigUInt64BE=Bh(function(e,r=0){return Rhe(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});Te.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let c=Math.pow(2,8*n-1);cl(this,e,r,n,c-1,-c)}let i=0,s=1,a=0;for(this[r]=e&255;++i<n&&(s*=256);)e<0&&a===0&&this[r+i-1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};Te.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let c=Math.pow(2,8*n-1);cl(this,e,r,n,c-1,-c)}let i=n-1,s=1,a=0;for(this[r+i]=e&255;--i>=0&&(s*=256);)e<0&&a===0&&this[r+i+1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};Te.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||cl(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};Te.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||cl(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};Te.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||cl(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};Te.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||cl(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};Te.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||cl(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};Te.prototype.writeBigInt64LE=Bh(function(e,r=0){return Mhe(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Te.prototype.writeBigInt64BE=Bh(function(e,r=0){return Rhe(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ohe(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Phe(t,e,r,n,o){return e=+e,r=r>>>0,o||Ohe(t,e,r,4,34028234663852886e22,-34028234663852886e22),Tb.write(t,e,r,n,23,4),r+4}Te.prototype.writeFloatLE=function(e,r,n){return Phe(this,e,r,!0,n)};Te.prototype.writeFloatBE=function(e,r,n){return Phe(this,e,r,!1,n)};function zhe(t,e,r,n,o){return e=+e,r=r>>>0,o||Ohe(t,e,r,8,17976931348623157e292,-17976931348623157e292),Tb.write(t,e,r,n,52,8),r+8}Te.prototype.writeDoubleLE=function(e,r,n){return zhe(this,e,r,!0,n)};Te.prototype.writeDoubleBE=function(e,r,n){return zhe(this,e,r,!1,n)};Te.prototype.copy=function(e,r,n,o){if(!Te.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);let i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};Te.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!Te.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){let s=e.charCodeAt(0);(o==="utf8"&&s<128||o==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let i;if(typeof e=="number")for(i=r;i<n;++i)this[i]=e;else{let s=Te.isBuffer(e)?e:Te.from(e,o),a=s.length;if(a===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-r;++i)this[i+r]=s[i%a]}return this};var kb={};function gJ(t,e,r){kb[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}gJ("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);gJ("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);gJ("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=_he(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=_he(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);function _he(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function _Ct(t,e,r){Ib(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&wA(e,t.length-(r+1))}function Bhe(t,e,r,n,o,i){if(t>r||t<e){let s=typeof e=="bigint"?"n":"",a;throw i>3?e===0||e===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(i+1)*8}${s}`:a=`>= -(2${s} ** ${(i+1)*8-1}${s}) and < 2 ** ${(i+1)*8-1}${s}`:a=`>= ${e}${s} and <= ${r}${s}`,new kb.ERR_OUT_OF_RANGE("value",a,t)}_Ct(n,o,i)}function Ib(t,e){if(typeof t!="number")throw new kb.ERR_INVALID_ARG_TYPE(e,"number",t)}function wA(t,e,r){throw Math.floor(t)!==t?(Ib(t,r),new kb.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new kb.ERR_BUFFER_OUT_OF_BOUNDS:new kb.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var kCt=/[^+/0-9A-Za-z-_]/g;function TCt(t){if(t=t.split("=")[0],t=t.trim().replace(kCt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function pJ(t,e){e=e||1/0;let r,n=t.length,o=null,i=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function ICt(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function LCt(t,e){let r,n,o,i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Dhe(t){return uJ.toByteArray(TCt(t))}function dO(t,e,r,n){let o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function Tf(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function yJ(t){return t!==t}var NCt=(function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e})();function Bh(t){return typeof BigInt>"u"?MCt:t}function MCt(){throw new Error("BigInt not supported")}});var Uhe,l=E(()=>{"use strict";Uhe=q(x7());typeof globalThis.Buffer>"u"&&(globalThis.Buffer=Uhe.Buffer)});var Yhe=Se(Zr=>{"use strict";l();var xA=Symbol.for("react.element"),RCt=Symbol.for("react.portal"),OCt=Symbol.for("react.fragment"),PCt=Symbol.for("react.strict_mode"),zCt=Symbol.for("react.profiler"),BCt=Symbol.for("react.provider"),DCt=Symbol.for("react.context"),UCt=Symbol.for("react.forward_ref"),FCt=Symbol.for("react.suspense"),jCt=Symbol.for("react.memo"),HCt=Symbol.for("react.lazy"),Fhe=Symbol.iterator;function WCt(t){return t===null||typeof t!="object"?null:(t=Fhe&&t[Fhe]||t["@@iterator"],typeof t=="function"?t:null)}var Whe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vhe=Object.assign,qhe={};function Nb(t,e,r){this.props=t,this.context=e,this.refs=qhe,this.updater=r||Whe}Nb.prototype.isReactComponent={};Nb.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Nb.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function $he(){}$he.prototype=Nb.prototype;function wJ(t,e,r){this.props=t,this.context=e,this.refs=qhe,this.updater=r||Whe}var xJ=wJ.prototype=new $he;xJ.constructor=wJ;Vhe(xJ,Nb.prototype);xJ.isPureReactComponent=!0;var jhe=Array.isArray,Khe=Object.prototype.hasOwnProperty,vJ={current:null},Ghe={key:!0,ref:!0,__self:!0,__source:!0};function Zhe(t,e,r){var n,o={},i=null,s=null;if(e!=null)for(n in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(i=""+e.key),e)Khe.call(e,n)&&!Ghe.hasOwnProperty(n)&&(o[n]=e[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1<a){for(var c=Array(a),u=0;u<a;u++)c[u]=arguments[u+2];o.children=c}if(t&&t.defaultProps)for(n in a=t.defaultProps,a)o[n]===void 0&&(o[n]=a[n]);return{$$typeof:xA,type:t,key:i,ref:s,props:o,_owner:vJ.current}}function VCt(t,e){return{$$typeof:xA,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function CJ(t){return typeof t=="object"&&t!==null&&t.$$typeof===xA}function qCt(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var Hhe=/\/+/g;function bJ(t,e){return typeof t=="object"&&t!==null&&t.key!=null?qCt(""+t.key):e.toString(36)}function hO(t,e,r,n,o){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case xA:case RCt:s=!0}}if(s)return s=t,o=o(s),t=n===""?"."+bJ(s,0):n,jhe(o)?(r="",t!=null&&(r=t.replace(Hhe,"$&/")+"/"),hO(o,e,r,"",function(u){return u})):o!=null&&(CJ(o)&&(o=VCt(o,r+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Hhe,"$&/")+"/")+t)),e.push(o)),1;if(s=0,n=n===""?".":n+":",jhe(t))for(var a=0;a<t.length;a++){i=t[a];var c=n+bJ(i,a);s+=hO(i,e,r,c,o)}else if(c=WCt(t),typeof c=="function")for(t=c.call(t),a=0;!(i=t.next()).done;)i=i.value,c=n+bJ(i,a++),s+=hO(i,e,r,c,o);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return s}function pO(t,e,r){if(t==null)return t;var n=[],o=0;return hO(t,n,"","",function(i){return e.call(r,i,o++)}),n}function $Ct(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var _1={current:null},mO={transition:null},KCt={ReactCurrentDispatcher:_1,ReactCurrentBatchConfig:mO,ReactCurrentOwner:vJ};function Jhe(){throw Error("act(...) is not supported in production builds of React.")}Zr.Children={map:pO,forEach:function(t,e,r){pO(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return pO(t,function(){e++}),e},toArray:function(t){return pO(t,function(e){return e})||[]},only:function(t){if(!CJ(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Zr.Component=Nb;Zr.Fragment=OCt;Zr.Profiler=zCt;Zr.PureComponent=wJ;Zr.StrictMode=PCt;Zr.Suspense=FCt;Zr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KCt;Zr.act=Jhe;Zr.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=Vhe({},t.props),o=t.key,i=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,s=vJ.current),e.key!==void 0&&(o=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(c in e)Khe.call(e,c)&&!Ghe.hasOwnProperty(c)&&(n[c]=e[c]===void 0&&a!==void 0?a[c]:e[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){a=Array(c);for(var u=0;u<c;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:xA,type:t.type,key:o,ref:i,props:n,_owner:s}};Zr.createContext=function(t){return t={$$typeof:DCt,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:BCt,_context:t},t.Consumer=t};Zr.createElement=Zhe;Zr.createFactory=function(t){var e=Zhe.bind(null,t);return e.type=t,e};Zr.createRef=function(){return{current:null}};Zr.forwardRef=function(t){return{$$typeof:UCt,render:t}};Zr.isValidElement=CJ;Zr.lazy=function(t){return{$$typeof:HCt,_payload:{_status:-1,_result:t},_init:$Ct}};Zr.memo=function(t,e){return{$$typeof:jCt,type:t,compare:e===void 0?null:e}};Zr.startTransition=function(t){var e=mO.transition;mO.transition={};try{t()}finally{mO.transition=e}};Zr.unstable_act=Jhe;Zr.useCallback=function(t,e){return _1.current.useCallback(t,e)};Zr.useContext=function(t){return _1.current.useContext(t)};Zr.useDebugValue=function(){};Zr.useDeferredValue=function(t){return _1.current.useDeferredValue(t)};Zr.useEffect=function(t,e){return _1.current.useEffect(t,e)};Zr.useId=function(){return _1.current.useId()};Zr.useImperativeHandle=function(t,e,r){return _1.current.useImperativeHandle(t,e,r)};Zr.useInsertionEffect=function(t,e){return _1.current.useInsertionEffect(t,e)};Zr.useLayoutEffect=function(t,e){return _1.current.useLayoutEffect(t,e)};Zr.useMemo=function(t,e){return _1.current.useMemo(t,e)};Zr.useReducer=function(t,e,r){return _1.current.useReducer(t,e,r)};Zr.useRef=function(t){return _1.current.useRef(t)};Zr.useState=function(t){return _1.current.useState(t)};Zr.useSyncExternalStore=function(t,e,r){return _1.current.useSyncExternalStore(t,e,r)};Zr.useTransition=function(){return _1.current.useTransition()};Zr.version="18.3.1"});var Fe=Se((GEr,Xhe)=>{"use strict";l();Xhe.exports=Yhe()});var eme=Se(gO=>{"use strict";l();var GCt=Fe(),ZCt=Symbol.for("react.element"),JCt=Symbol.for("react.fragment"),YCt=Object.prototype.hasOwnProperty,XCt=GCt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,QCt={key:!0,ref:!0,__self:!0,__source:!0};function Qhe(t,e,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(s=e.ref);for(n in e)YCt.call(e,n)&&!QCt.hasOwnProperty(n)&&(o[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)o[n]===void 0&&(o[n]=e[n]);return{$$typeof:ZCt,type:t,key:i,ref:s,props:o,_owner:XCt.current}}gO.Fragment=JCt;gO.jsx=Qhe;gO.jsxs=Qhe});var te=Se((XEr,tme)=>{"use strict";l();tme.exports=eme()});var v7,ome=E(()=>{"use strict";l();v7=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});function A0(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function Zs(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function ao(t,...e){if(!A0(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function Mb(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Zs(t.outputLen),Zs(t.blockLen)}function _0(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Rb(t,e){ao(t);let r=e.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function C7(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function Ca(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function Ob(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ku(t,e){return t<<32-e|t>>>e}function ame(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function eEt(t){for(let e=0;e<t.length;e++)t[e]=ame(t[e]);return t}function hs(t){if(ao(t),cme)return t.toHex();let e="";for(let r=0;r<t.length;r++)e+=tEt[t[r]];return e}function ime(t){if(t>=$4._0&&t<=$4._9)return t-$4._0;if(t>=$4.A&&t<=$4.F)return t-($4.A-10);if(t>=$4.a&&t<=$4.f)return t-($4.a-10)}function Gu(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);if(cme)return Uint8Array.fromHex(t);let e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);let n=new Uint8Array(r);for(let o=0,i=0;o<r;o++,i+=2){let s=ime(t.charCodeAt(i)),a=ime(t.charCodeAt(i+1));if(s===void 0||a===void 0){let c=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+i)}n[o]=s*16+a}return n}function Pb(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}function u2(t){return typeof t=="string"&&(t=Pb(t)),ao(t),t}function EJ(t){return typeof t=="string"&&(t=Pb(t)),ao(t),t}function ms(...t){let e=0;for(let n=0;n<t.length;n++){let o=t[n];ao(o),e+=o.length}let r=new Uint8Array(e);for(let n=0,o=0;n<t.length;n++){let i=t[n];r.set(i,o),o+=i.length}return r}function lme(t,e){if(e!==void 0&&{}.toString.call(e)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(t,e)}function vA(t){let e=n=>t().update(u2(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function ume(t){let e=(n,o)=>t(o).update(u2(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}function K4(t=32){if(v7&&typeof v7.getRandomValues=="function")return v7.getRandomValues(new Uint8Array(t));if(v7&&typeof v7.randomBytes=="function")return Uint8Array.from(v7.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}var sme,Lf,Nf,cme,tEt,$4,If,k1=E(()=>{"use strict";l();ome();sme=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;Lf=sme?t=>t:t=>ame(t);Nf=sme?t=>t:eEt,cme=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",tEt=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));$4={_0:48,_9:57,A:65,F:70,a:97,f:102};If=class{}});function rEt(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);let o=BigInt(32),i=BigInt(4294967295),s=Number(r>>o&i),a=Number(r&i),c=n?4:0,u=n?0:4;t.setUint32(e+c,s,n),t.setUint32(e+u,a,n)}function fme(t,e,r){return t&e^~t&r}function dme(t,e,r){return t&e^t&r^e&r}var CA,G4,Ya,pme=E(()=>{"use strict";l();k1();CA=class extends If{constructor(e,r,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(e),this.view=Ob(this.buffer)}update(e){_0(this),e=u2(e),ao(e);let{view:r,buffer:n,blockLen:o}=this,i=e.length;for(let s=0;s<i;){let a=Math.min(o-this.pos,i-s);if(a===o){let c=Ob(e);for(;o<=i-s;s+=o)this.process(c,s);continue}n.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){_0(this),Rb(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:o,isLE:i}=this,{pos:s}=this;r[s++]=128,Ca(this.buffer.subarray(s)),this.padOffset>o-s&&(this.process(n,0),s=0);for(let d=s;d<o;d++)r[d]=0;rEt(n,o-8,BigInt(this.length*8),i),this.process(n,0);let a=Ob(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");let u=c/4,f=this.get();if(u>f.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<u;d++)a.setUint32(4*d,f[d],i)}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:r,buffer:n,length:o,finished:i,destroyed:s,pos:a}=this;return e.destroyed=s,e.finished=i,e.length=o,e.pos=a,o%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},G4=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ya=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});function SJ(t,e=!1){return e?{h:Number(t&yO),l:Number(t>>hme&yO)}:{h:Number(t>>hme&yO)|0,l:Number(t&yO)|0}}function bO(t,e=!1){let r=t.length,n=new Uint32Array(r),o=new Uint32Array(r);for(let i=0;i<r;i++){let{h:s,l:a}=SJ(t[i],e);[n[i],o[i]]=[s,a]}return[n,o]}function f2(t,e,r,n){let o=(e>>>0)+(n>>>0);return{h:t+r+(o/2**32|0)|0,l:o|0}}var yO,hme,AJ,_J,Mf,Rf,E7,S7,mme,gme,yme,bme,wme,xme,EA,SA,vme,Cme,Eme,Sme,wO=E(()=>{"use strict";l();yO=BigInt(4294967295),hme=BigInt(32);AJ=(t,e,r)=>t>>>r,_J=(t,e,r)=>t<<32-r|e>>>r,Mf=(t,e,r)=>t>>>r|e<<32-r,Rf=(t,e,r)=>t<<32-r|e>>>r,E7=(t,e,r)=>t<<64-r|e>>>r-32,S7=(t,e,r)=>t>>>r-32|e<<64-r,mme=(t,e)=>e,gme=(t,e)=>t,yme=(t,e,r)=>t<<r|e>>>32-r,bme=(t,e,r)=>e<<r|t>>>32-r,wme=(t,e,r)=>e<<r-32|t>>>64-r,xme=(t,e,r)=>t<<r-32|e>>>64-r;EA=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),SA=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,vme=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Cme=(t,e,r,n,o)=>e+r+n+o+(t/2**32|0)|0,Eme=(t,e,r,n,o)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(o>>>0),Sme=(t,e,r,n,o,i)=>e+r+n+o+i+(t/2**32|0)|0});var nEt,Dh,xO,_me,oEt,iEt,Uh,Fh,vO,AA,jh,A7=E(()=>{"use strict";l();pme();wO();k1();nEt=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Dh=new Uint32Array(64),xO=class extends CA{constructor(e=32){super(64,e,8,!1),this.A=G4[0]|0,this.B=G4[1]|0,this.C=G4[2]|0,this.D=G4[3]|0,this.E=G4[4]|0,this.F=G4[5]|0,this.G=G4[6]|0,this.H=G4[7]|0}get(){let{A:e,B:r,C:n,D:o,E:i,F:s,G:a,H:c}=this;return[e,r,n,o,i,s,a,c]}set(e,r,n,o,i,s,a,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=o|0,this.E=i|0,this.F=s|0,this.G=a|0,this.H=c|0}process(e,r){for(let d=0;d<16;d++,r+=4)Dh[d]=e.getUint32(r,!1);for(let d=16;d<64;d++){let p=Dh[d-15],h=Dh[d-2],m=Ku(p,7)^Ku(p,18)^p>>>3,g=Ku(h,17)^Ku(h,19)^h>>>10;Dh[d]=g+Dh[d-7]+m+Dh[d-16]|0}let{A:n,B:o,C:i,D:s,E:a,F:c,G:u,H:f}=this;for(let d=0;d<64;d++){let p=Ku(a,6)^Ku(a,11)^Ku(a,25),h=f+p+fme(a,c,u)+nEt[d]+Dh[d]|0,g=(Ku(n,2)^Ku(n,13)^Ku(n,22))+dme(n,o,i)|0;f=u,u=c,c=a,a=s+h|0,s=i,i=o,o=n,n=h+g|0}n=n+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,f=f+this.H|0,this.set(n,o,i,s,a,c,u,f)}roundClean(){Ca(Dh)}destroy(){this.set(0,0,0,0,0,0,0,0),Ca(this.buffer)}},_me=bO(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),oEt=_me[0],iEt=_me[1],Uh=new Uint32Array(80),Fh=new Uint32Array(80),vO=class extends CA{constructor(e=64){super(128,e,16,!1),this.Ah=Ya[0]|0,this.Al=Ya[1]|0,this.Bh=Ya[2]|0,this.Bl=Ya[3]|0,this.Ch=Ya[4]|0,this.Cl=Ya[5]|0,this.Dh=Ya[6]|0,this.Dl=Ya[7]|0,this.Eh=Ya[8]|0,this.El=Ya[9]|0,this.Fh=Ya[10]|0,this.Fl=Ya[11]|0,this.Gh=Ya[12]|0,this.Gl=Ya[13]|0,this.Hh=Ya[14]|0,this.Hl=Ya[15]|0}get(){let{Ah:e,Al:r,Bh:n,Bl:o,Ch:i,Cl:s,Dh:a,Dl:c,Eh:u,El:f,Fh:d,Fl:p,Gh:h,Gl:m,Hh:g,Hl:y}=this;return[e,r,n,o,i,s,a,c,u,f,d,p,h,m,g,y]}set(e,r,n,o,i,s,a,c,u,f,d,p,h,m,g,y){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=s|0,this.Dh=a|0,this.Dl=c|0,this.Eh=u|0,this.El=f|0,this.Fh=d|0,this.Fl=p|0,this.Gh=h|0,this.Gl=m|0,this.Hh=g|0,this.Hl=y|0}process(e,r){for(let S=0;S<16;S++,r+=4)Uh[S]=e.getUint32(r),Fh[S]=e.getUint32(r+=4);for(let S=16;S<80;S++){let L=Uh[S-15]|0,O=Fh[S-15]|0,z=Mf(L,O,1)^Mf(L,O,8)^AJ(L,O,7),T=Rf(L,O,1)^Rf(L,O,8)^_J(L,O,7),k=Uh[S-2]|0,_=Fh[S-2]|0,D=Mf(k,_,19)^E7(k,_,61)^AJ(k,_,6),N=Rf(k,_,19)^S7(k,_,61)^_J(k,_,6),U=vme(T,N,Fh[S-7],Fh[S-16]),I=Cme(U,z,D,Uh[S-7],Uh[S-16]);Uh[S]=I|0,Fh[S]=U|0}let{Ah:n,Al:o,Bh:i,Bl:s,Ch:a,Cl:c,Dh:u,Dl:f,Eh:d,El:p,Fh:h,Fl:m,Gh:g,Gl:y,Hh:w,Hl:x}=this;for(let S=0;S<80;S++){let L=Mf(d,p,14)^Mf(d,p,18)^E7(d,p,41),O=Rf(d,p,14)^Rf(d,p,18)^S7(d,p,41),z=d&h^~d&g,T=p&m^~p&y,k=Eme(x,O,T,iEt[S],Fh[S]),_=Sme(k,w,L,z,oEt[S],Uh[S]),D=k|0,N=Mf(n,o,28)^E7(n,o,34)^E7(n,o,39),U=Rf(n,o,28)^S7(n,o,34)^S7(n,o,39),I=n&i^n&a^i&a,b=o&s^o&c^s&c;w=g|0,x=y|0,g=h|0,y=m|0,h=d|0,m=p|0,{h:d,l:p}=f2(u|0,f|0,_|0,D|0),u=a|0,f=c|0,a=i|0,c=s|0,i=n|0,s=o|0;let v=EA(D,U,b);n=SA(v,_,N,I),o=v|0}({h:n,l:o}=f2(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:s}=f2(this.Bh|0,this.Bl|0,i|0,s|0),{h:a,l:c}=f2(this.Ch|0,this.Cl|0,a|0,c|0),{h:u,l:f}=f2(this.Dh|0,this.Dl|0,u|0,f|0),{h:d,l:p}=f2(this.Eh|0,this.El|0,d|0,p|0),{h,l:m}=f2(this.Fh|0,this.Fl|0,h|0,m|0),{h:g,l:y}=f2(this.Gh|0,this.Gl|0,g|0,y|0),{h:w,l:x}=f2(this.Hh|0,this.Hl|0,w|0,x|0),this.set(n,o,i,s,a,c,u,f,d,p,h,m,g,y,w,x)}roundClean(){Ca(Uh,Fh)}destroy(){Ca(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},AA=vA(()=>new xO),jh=vA(()=>new vO)});function Z4(t,e=""){if(typeof t!="boolean"){let r=e&&`"${e}"`;throw new Error(r+"expected boolean, got type="+typeof t)}return t}function d2(t,e,r=""){let n=A0(t),o=t?.length,i=e!==void 0;if(!n||i&&o!==e){let s=r&&`"${r}" `,a=i?` of length ${e}`:"",c=n?`length=${o}`:`type=${typeof t}`;throw new Error(s+"expected Uint8Array"+a+", got "+c)}return t}function _A(t){let e=t.toString(16);return e.length&1?"0"+e:e}function kme(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return t===""?IJ:BigInt("0x"+t)}function zb(t){return kme(hs(t))}function J4(t){return ao(t),kme(hs(Uint8Array.from(t).reverse()))}function CO(t,e){return Gu(t.toString(16).padStart(e*2,"0"))}function LJ(t,e){return CO(t,e).reverse()}function yo(t,e,r){let n;if(typeof e=="string")try{n=Gu(e)}catch(i){throw new Error(t+" must be hex string or Uint8Array, cause: "+i)}else if(A0(e))n=Uint8Array.from(e);else throw new Error(t+" must be hex string or Uint8Array");let o=n.length;if(typeof r=="number"&&o!==r)throw new Error(t+" of length "+r+" expected, got "+o);return n}function Tme(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return r===0}function NJ(t){return Uint8Array.from(t)}function Ime(t,e,r){return kJ(t)&&kJ(e)&&kJ(r)&&e<=t&&t<r}function kA(t,e,r,n){if(!Ime(e,r,n))throw new Error("expected valid "+t+": "+r+" <= n < "+n+", got "+e)}function EO(t){let e;for(e=0;t>IJ;t>>=TJ,e+=1);return e}function Lme(t,e,r){if(typeof t!="number"||t<2)throw new Error("hashLen must b