@multiversx/sdk-dapp 2.8.2 → 2.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/UI/ScamPhishingAlert/ScamPhishingAlert.js +1 -1
  2. package/UI/ScamPhishingAlert/index.js +1 -1
  3. package/UI/ScamPhishingAlert/scamPhishingStyles.js +1 -1
  4. package/UI/index.js +1 -1
  5. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  6. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  7. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.d.ts +1 -0
  8. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  9. package/UI/ledger/LedgerLoginContainer/LedgerConnect.d.ts +2 -0
  10. package/UI/ledger/LedgerLoginContainer/LedgerConnect.js +1 -1
  11. package/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.d.ts +2 -0
  12. package/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.js +1 -1
  13. package/UI/ledger/LedgerLoginContainer/LedgerLoading/index.js +1 -1
  14. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  15. package/UI/ledger/index.js +1 -1
  16. package/UI/pages/UnlockPage/index.js +1 -1
  17. package/UI/pages/index.js +1 -1
  18. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  19. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  20. package/UI/walletConnect/index.js +1 -1
  21. package/UI/walletConnect/types.d.ts +1 -0
  22. package/__chunks__/chunk-2AL5B426.js +2 -0
  23. package/__chunks__/{chunk-BWVJ6UWD.js → chunk-4KJ3K4N2.js} +2 -2
  24. package/__chunks__/{chunk-BEMRDNUN.js → chunk-6ATSOJLJ.js} +2 -2
  25. package/__chunks__/chunk-7A3YEKYD.js +2 -0
  26. package/__chunks__/{chunk-HR3MPAXI.js → chunk-EO7PQVL5.js} +7 -5
  27. package/__chunks__/{chunk-MYRVMVPS.js → chunk-FUFSVKPE.js} +2 -2
  28. package/__chunks__/{chunk-STR6RVDD.js → chunk-GCAYZMIA.js} +2 -2
  29. package/__chunks__/chunk-JZKZMOAT.js +2 -0
  30. package/__chunks__/{chunk-QVR6ILJY.js → chunk-OOWD2UVN.js} +3 -3
  31. package/__chunks__/chunk-SKQFVP4A.js +2 -0
  32. package/__chunks__/{chunk-O2BIDGUY.js → chunk-XTN47CAH.js} +2 -2
  33. package/__chunks__/{chunk-LDA3WK6Z.js → chunk-ZLV3NX7P.js} +2 -2
  34. package/__commonjs/UI/ScamPhishingAlert/ScamPhishingAlert.js +5 -3
  35. package/__commonjs/UI/ScamPhishingAlert/index.js +5 -3
  36. package/__commonjs/UI/ScamPhishingAlert/scamPhishingStyles.js +7 -5
  37. package/__commonjs/UI/index.js +75 -73
  38. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +18 -16
  39. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +6 -6
  40. package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +2 -2
  41. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerConnect.js +3 -3
  42. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.js +3 -3
  43. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoading/index.js +3 -3
  44. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +17 -15
  45. package/__commonjs/UI/ledger/index.js +18 -16
  46. package/__commonjs/UI/pages/UnlockPage/index.js +24 -22
  47. package/__commonjs/UI/pages/index.js +24 -22
  48. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +12 -10
  49. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +11 -9
  50. package/__commonjs/UI/walletConnect/index.js +12 -10
  51. package/__commonjs/UI/walletConnect/types.js +1 -1
  52. package/package.json +1 -1
  53. package/__chunks__/chunk-3W2EMKHA.js +0 -2
  54. package/__chunks__/chunk-4ZLY6RKY.js +0 -2
  55. package/__chunks__/chunk-5JDH4CVH.js +0 -2
  56. package/__chunks__/chunk-JMDJZFGV.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var Ro=Object.create;var H=Object.defineProperty;var zo=Object.getOwnPropertyDescriptor;var Do=Object.getOwnPropertyNames;var jo=Object.getPrototypeOf,Wo=Object.prototype.hasOwnProperty;var Xo=(e,o)=>()=>(e&&(o=e(e=0)),o);var q=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),Po=(e,o)=>{for(var n in o)H(e,n,{get:o[n],enumerable:!0})},to=(e,o,n,_)=>{if(o&&typeof o=="object"||typeof o=="function")for(let p of Do(o))!Wo.call(e,p)&&p!==n&&H(e,p,{get:()=>o[p],enumerable:!(_=zo(o,p))||_.enumerable});return e};var M=(e,o,n)=>(n=e!=null?Ro(jo(e)):{},to(o||!e||!e.__esModule?H(n,"default",{value:e,enumerable:!0}):n,e)),Ho=e=>to(H({},"__esModule",{value:!0}),e);var io=q(G=>{"use strict";g();G.byteLength=Go;G.toByteArray=Vo;G.fromByteArray=Qo;var y=[],b=[],qo=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(T=0,mo=Q.length;T<mo;++T)y[T]=Q[T],b[Q.charCodeAt(T)]=T;var T,mo;b["-".charCodeAt(0)]=62;b["_".charCodeAt(0)]=63;function co(e){var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=o);var _=n===o?0:4-n%4;return[n,_]}function Go(e){var o=co(e),n=o[0],_=o[1];return(n+_)*3/4-_}function Yo(e,o,n){return(o+n)*3/4-n}function Vo(e){var o,n=co(e),_=n[0],p=n[1],a=new qo(Yo(e,_,p)),r=0,m=p>0?_-4:_,c;for(c=0;c<m;c+=4)o=b[e.charCodeAt(c)]<<18|b[e.charCodeAt(c+1)]<<12|b[e.charCodeAt(c+2)]<<6|b[e.charCodeAt(c+3)],a[r++]=o>>16&255,a[r++]=o>>8&255,a[r++]=o&255;return p===2&&(o=b[e.charCodeAt(c)]<<2|b[e.charCodeAt(c+1)]>>4,a[r++]=o&255),p===1&&(o=b[e.charCodeAt(c)]<<10|b[e.charCodeAt(c+1)]<<4|b[e.charCodeAt(c+2)]>>2,a[r++]=o>>8&255,a[r++]=o&255),a}function Jo(e){return y[e>>18&63]+y[e>>12&63]+y[e>>6&63]+y[e&63]}function Oo(e,o,n){for(var _,p=[],a=o;a<n;a+=3)_=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),p.push(Jo(_));return p.join("")}function Qo(e){for(var o,n=e.length,_=n%3,p=[],a=16383,r=0,m=n-_;r<m;r+=a)p.push(Oo(e,r,r+a>m?m:r+a));return _===1?(o=e[n-1],p.push(y[o>>2]+y[o<<4&63]+"==")):_===2&&(o=(e[n-2]<<8)+e[n-1],p.push(y[o>>10]+y[o>>4&63]+y[o<<2&63]+"=")),p.join("")}});var lo=q(K=>{g();K.read=function(e,o,n,_,p){var a,r,m=p*8-_-1,c=(1<<m)-1,i=c>>1,l=-7,d=n?p-1:0,x=n?-1:1,u=e[o+d];for(d+=x,a=u&(1<<-l)-1,u>>=-l,l+=m;l>0;a=a*256+e[o+d],d+=x,l-=8);for(r=a&(1<<-l)-1,a>>=-l,l+=_;l>0;r=r*256+e[o+d],d+=x,l-=8);if(a===0)a=1-i;else{if(a===c)return r?NaN:(u?-1:1)*(1/0);r=r+Math.pow(2,_),a=a-i}return(u?-1:1)*r*Math.pow(2,a-_)};K.write=function(e,o,n,_,p,a){var r,m,c,i=a*8-p-1,l=(1<<i)-1,d=l>>1,x=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=_?0:a-1,U=_?1:-1,Mo=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(m=isNaN(o)?1:0,r=l):(r=Math.floor(Math.log(o)/Math.LN2),o*(c=Math.pow(2,-r))<1&&(r--,c*=2),r+d>=1?o+=x/c:o+=x*Math.pow(2,1-d),o*c>=2&&(r++,c/=2),r+d>=l?(m=0,r=l):r+d>=1?(m=(o*c-1)*Math.pow(2,p),r=r+d):(m=o*Math.pow(2,d-1)*Math.pow(2,p),r=0));p>=8;e[n+u]=m&255,u+=U,m/=256,p-=8);for(r=r<<p|m,i+=p;i>0;e[n+u]=r&255,u+=U,r/=256,i-=8);e[n+u-U]|=Mo*128}});var So=q(z=>{"use strict";g();var Z=io(),R=lo(),so=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;z.Buffer=t;z.SlowBuffer=en;z.INSPECT_MAX_BYTES=50;var Y=2147483647;z.kMaxLength=Y;t.TYPED_ARRAY_SUPPORT=Ko();!t.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 Ko(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),e.foo()===42}catch(n){return!1}}Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(!!t.isBuffer(this))return this.buffer}});Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(!!t.isBuffer(this))return this.byteOffset}});function B(e){if(e>Y)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,t.prototype),o}function t(e,o,n){if(typeof e=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return eo(e)}return ho(e,o,n)}t.poolSize=8192;function ho(e,o,n){if(typeof e=="string")return $o(e,o);if(ArrayBuffer.isView(e))return on(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(k(e,ArrayBuffer)||e&&k(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(k(e,SharedArrayBuffer)||e&&k(e.buffer,SharedArrayBuffer)))return oo(e,o,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _=e.valueOf&&e.valueOf();if(_!=null&&_!==e)return t.from(_,o,n);var p=nn(e);if(p)return p;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return t.from(e[Symbol.toPrimitive]("string"),o,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}t.from=function(e,o,n){return ho(e,o,n)};Object.setPrototypeOf(t.prototype,Uint8Array.prototype);Object.setPrototypeOf(t,Uint8Array);function uo(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Zo(e,o,n){return uo(e),e<=0?B(e):o!==void 0?typeof n=="string"?B(e).fill(o,n):B(e).fill(o):B(e)}t.alloc=function(e,o,n){return Zo(e,o,n)};function eo(e){return uo(e),B(e<0?0:_o(e)|0)}t.allocUnsafe=function(e){return eo(e)};t.allocUnsafeSlow=function(e){return eo(e)};function $o(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!t.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var n=bo(e,o)|0,_=B(n),p=_.write(e,o);return p!==n&&(_=_.slice(0,p)),_}function $(e){for(var o=e.length<0?0:_o(e.length)|0,n=B(o),_=0;_<o;_+=1)n[_]=e[_]&255;return n}function on(e){if(k(e,Uint8Array)){var o=new Uint8Array(e);return oo(o.buffer,o.byteOffset,o.byteLength)}return $(e)}function oo(e,o,n){if(o<0||e.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<o+(n||0))throw new RangeError('"length" is outside of buffer bounds');var _;return o===void 0&&n===void 0?_=new Uint8Array(e):n===void 0?_=new Uint8Array(e,o):_=new Uint8Array(e,o,n),Object.setPrototypeOf(_,t.prototype),_}function nn(e){if(t.isBuffer(e)){var o=_o(e.length)|0,n=B(o);return n.length===0||e.copy(n,0,0,o),n}if(e.length!==void 0)return typeof e.length!="number"||po(e.length)?B(0):$(e);if(e.type==="Buffer"&&Array.isArray(e.data))return $(e.data)}function _o(e){if(e>=Y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y.toString(16)+" bytes");return e|0}function en(e){return+e!=e&&(e=0),t.alloc(+e)}t.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==t.prototype};t.compare=function(o,n){if(k(o,Uint8Array)&&(o=t.from(o,o.offset,o.byteLength)),k(n,Uint8Array)&&(n=t.from(n,n.offset,n.byteLength)),!t.isBuffer(o)||!t.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===n)return 0;for(var _=o.length,p=n.length,a=0,r=Math.min(_,p);a<r;++a)if(o[a]!==n[a]){_=o[a],p=n[a];break}return _<p?-1:p<_?1:0};t.isEncoding=function(o){switch(String(o).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}};t.concat=function(o,n){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return t.alloc(0);var _;if(n===void 0)for(n=0,_=0;_<o.length;++_)n+=o[_].length;var p=t.allocUnsafe(n),a=0;for(_=0;_<o.length;++_){var r=o[_];if(k(r,Uint8Array))a+r.length>p.length?t.from(r).copy(p,a):Uint8Array.prototype.set.call(p,r,a);else if(t.isBuffer(r))r.copy(p,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=r.length}return p};function bo(e,o){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||k(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&n===0)return 0;for(var p=!1;;)switch(o){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return no(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Eo(e).length;default:if(p)return _?-1:no(e).length;o=(""+o).toLowerCase(),p=!0}}t.byteLength=bo;function _n(e,o,n){var _=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,o>>>=0,n<=o))return"";for(e||(e="utf8");;)switch(e){case"hex":return gn(this,o,n);case"utf8":case"utf-8":return wo(this,o,n);case"ascii":return ln(this,o,n);case"latin1":case"binary":return sn(this,o,n);case"base64":return cn(this,o,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fn(this,o,n);default:if(_)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),_=!0}}t.prototype._isBuffer=!0;function C(e,o,n){var _=e[o];e[o]=e[n],e[n]=_}t.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<o;n+=2)C(this,n,n+1);return this};t.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<o;n+=4)C(this,n,n+3),C(this,n+1,n+2);return this};t.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<o;n+=8)C(this,n,n+7),C(this,n+1,n+6),C(this,n+2,n+5),C(this,n+3,n+4);return this};t.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?wo(this,0,o):_n.apply(this,arguments)};t.prototype.toLocaleString=t.prototype.toString;t.prototype.equals=function(o){if(!t.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:t.compare(this,o)===0};t.prototype.inspect=function(){var o="",n=z.INSPECT_MAX_BYTES;return o=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(o+=" ... "),"<Buffer "+o+">"};so&&(t.prototype[so]=t.prototype.inspect);t.prototype.compare=function(o,n,_,p,a){if(k(o,Uint8Array)&&(o=t.from(o,o.offset,o.byteLength)),!t.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(n===void 0&&(n=0),_===void 0&&(_=o?o.length:0),p===void 0&&(p=0),a===void 0&&(a=this.length),n<0||_>o.length||p<0||a>this.length)throw new RangeError("out of range index");if(p>=a&&n>=_)return 0;if(p>=a)return-1;if(n>=_)return 1;if(n>>>=0,_>>>=0,p>>>=0,a>>>=0,this===o)return 0;for(var r=a-p,m=_-n,c=Math.min(r,m),i=this.slice(p,a),l=o.slice(n,_),d=0;d<c;++d)if(i[d]!==l[d]){r=i[d],m=l[d];break}return r<m?-1:m<r?1:0};function xo(e,o,n,_,p){if(e.length===0)return-1;if(typeof n=="string"?(_=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,po(n)&&(n=p?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(p)return-1;n=e.length-1}else if(n<0)if(p)n=0;else return-1;if(typeof o=="string"&&(o=t.from(o,_)),t.isBuffer(o))return o.length===0?-1:go(e,o,n,_,p);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(e,o,n):Uint8Array.prototype.lastIndexOf.call(e,o,n):go(e,[o],n,_,p);throw new TypeError("val must be string, number or Buffer")}function go(e,o,n,_,p){var a=1,r=e.length,m=o.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(e.length<2||o.length<2)return-1;a=2,r/=2,m/=2,n/=2}function c(u,U){return a===1?u[U]:u.readUInt16BE(U*a)}var i;if(p){var l=-1;for(i=n;i<r;i++)if(c(e,i)===c(o,l===-1?0:i-l)){if(l===-1&&(l=i),i-l+1===m)return l*a}else l!==-1&&(i-=i-l),l=-1}else for(n+m>r&&(n=r-m),i=n;i>=0;i--){for(var d=!0,x=0;x<m;x++)if(c(e,i+x)!==c(o,x)){d=!1;break}if(d)return i}return-1}t.prototype.includes=function(o,n,_){return this.indexOf(o,n,_)!==-1};t.prototype.indexOf=function(o,n,_){return xo(this,o,n,_,!0)};t.prototype.lastIndexOf=function(o,n,_){return xo(this,o,n,_,!1)};function pn(e,o,n,_){n=Number(n)||0;var p=e.length-n;_?(_=Number(_),_>p&&(_=p)):_=p;var a=o.length;_>a/2&&(_=a/2);for(var r=0;r<_;++r){var m=parseInt(o.substr(r*2,2),16);if(po(m))return r;e[n+r]=m}return r}function an(e,o,n,_){return V(no(o,e.length-n),e,n,_)}function rn(e,o,n,_){return V(bn(o),e,n,_)}function tn(e,o,n,_){return V(Eo(o),e,n,_)}function mn(e,o,n,_){return V(xn(o,e.length-n),e,n,_)}t.prototype.write=function(o,n,_,p){if(n===void 0)p="utf8",_=this.length,n=0;else if(_===void 0&&typeof n=="string")p=n,_=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(_)?(_=_>>>0,p===void 0&&(p="utf8")):(p=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-n;if((_===void 0||_>a)&&(_=a),o.length>0&&(_<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");for(var r=!1;;)switch(p){case"hex":return pn(this,o,n,_);case"utf8":case"utf-8":return an(this,o,n,_);case"ascii":case"latin1":case"binary":return rn(this,o,n,_);case"base64":return tn(this,o,n,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mn(this,o,n,_);default:if(r)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),r=!0}};t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function cn(e,o,n){return o===0&&n===e.length?Z.fromByteArray(e):Z.fromByteArray(e.slice(o,n))}function wo(e,o,n){n=Math.min(e.length,n);for(var _=[],p=o;p<n;){var a=e[p],r=null,m=a>239?4:a>223?3:a>191?2:1;if(p+m<=n){var c,i,l,d;switch(m){case 1:a<128&&(r=a);break;case 2:c=e[p+1],(c&192)===128&&(d=(a&31)<<6|c&63,d>127&&(r=d));break;case 3:c=e[p+1],i=e[p+2],(c&192)===128&&(i&192)===128&&(d=(a&15)<<12|(c&63)<<6|i&63,d>2047&&(d<55296||d>57343)&&(r=d));break;case 4:c=e[p+1],i=e[p+2],l=e[p+3],(c&192)===128&&(i&192)===128&&(l&192)===128&&(d=(a&15)<<18|(c&63)<<12|(i&63)<<6|l&63,d>65535&&d<1114112&&(r=d))}}r===null?(r=65533,m=1):r>65535&&(r-=65536,_.push(r>>>10&1023|55296),r=56320|r&1023),_.push(r),p+=m}return dn(_)}var fo=4096;function dn(e){var o=e.length;if(o<=fo)return String.fromCharCode.apply(String,e);for(var n="",_=0;_<o;)n+=String.fromCharCode.apply(String,e.slice(_,_+=fo));return n}function ln(e,o,n){var _="";n=Math.min(e.length,n);for(var p=o;p<n;++p)_+=String.fromCharCode(e[p]&127);return _}function sn(e,o,n){var _="";n=Math.min(e.length,n);for(var p=o;p<n;++p)_+=String.fromCharCode(e[p]);return _}function gn(e,o,n){var _=e.length;(!o||o<0)&&(o=0),(!n||n<0||n>_)&&(n=_);for(var p="",a=o;a<n;++a)p+=wn[e[a]];return p}function fn(e,o,n){for(var _=e.slice(o,n),p="",a=0;a<_.length-1;a+=2)p+=String.fromCharCode(_[a]+_[a+1]*256);return p}t.prototype.slice=function(o,n){var _=this.length;o=~~o,n=n===void 0?_:~~n,o<0?(o+=_,o<0&&(o=0)):o>_&&(o=_),n<0?(n+=_,n<0&&(n=0)):n>_&&(n=_),n<o&&(n=o);var p=this.subarray(o,n);return Object.setPrototypeOf(p,t.prototype),p};function f(e,o,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+o>n)throw new RangeError("Trying to access beyond buffer length")}t.prototype.readUintLE=t.prototype.readUIntLE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=this[o],a=1,r=0;++r<n&&(a*=256);)p+=this[o+r]*a;return p};t.prototype.readUintBE=t.prototype.readUIntBE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=this[o+--n],a=1;n>0&&(a*=256);)p+=this[o+--n]*a;return p};t.prototype.readUint8=t.prototype.readUInt8=function(o,n){return o=o>>>0,n||f(o,1,this.length),this[o]};t.prototype.readUint16LE=t.prototype.readUInt16LE=function(o,n){return o=o>>>0,n||f(o,2,this.length),this[o]|this[o+1]<<8};t.prototype.readUint16BE=t.prototype.readUInt16BE=function(o,n){return o=o>>>0,n||f(o,2,this.length),this[o]<<8|this[o+1]};t.prototype.readUint32LE=t.prototype.readUInt32LE=function(o,n){return o=o>>>0,n||f(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};t.prototype.readUint32BE=t.prototype.readUInt32BE=function(o,n){return o=o>>>0,n||f(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};t.prototype.readIntLE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=this[o],a=1,r=0;++r<n&&(a*=256);)p+=this[o+r]*a;return a*=128,p>=a&&(p-=Math.pow(2,8*n)),p};t.prototype.readIntBE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=n,a=1,r=this[o+--p];p>0&&(a*=256);)r+=this[o+--p]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*n)),r};t.prototype.readInt8=function(o,n){return o=o>>>0,n||f(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};t.prototype.readInt16LE=function(o,n){o=o>>>0,n||f(o,2,this.length);var _=this[o]|this[o+1]<<8;return _&32768?_|4294901760:_};t.prototype.readInt16BE=function(o,n){o=o>>>0,n||f(o,2,this.length);var _=this[o+1]|this[o]<<8;return _&32768?_|4294901760:_};t.prototype.readInt32LE=function(o,n){return o=o>>>0,n||f(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};t.prototype.readInt32BE=function(o,n){return o=o>>>0,n||f(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};t.prototype.readFloatLE=function(o,n){return o=o>>>0,n||f(o,4,this.length),R.read(this,o,!0,23,4)};t.prototype.readFloatBE=function(o,n){return o=o>>>0,n||f(o,4,this.length),R.read(this,o,!1,23,4)};t.prototype.readDoubleLE=function(o,n){return o=o>>>0,n||f(o,8,this.length),R.read(this,o,!0,52,8)};t.prototype.readDoubleBE=function(o,n){return o=o>>>0,n||f(o,8,this.length),R.read(this,o,!1,52,8)};function h(e,o,n,_,p,a){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>p||o<a)throw new RangeError('"value" argument is out of bounds');if(n+_>e.length)throw new RangeError("Index out of range")}t.prototype.writeUintLE=t.prototype.writeUIntLE=function(o,n,_,p){if(o=+o,n=n>>>0,_=_>>>0,!p){var a=Math.pow(2,8*_)-1;h(this,o,n,_,a,0)}var r=1,m=0;for(this[n]=o&255;++m<_&&(r*=256);)this[n+m]=o/r&255;return n+_};t.prototype.writeUintBE=t.prototype.writeUIntBE=function(o,n,_,p){if(o=+o,n=n>>>0,_=_>>>0,!p){var a=Math.pow(2,8*_)-1;h(this,o,n,_,a,0)}var r=_-1,m=1;for(this[n+r]=o&255;--r>=0&&(m*=256);)this[n+r]=o/m&255;return n+_};t.prototype.writeUint8=t.prototype.writeUInt8=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,1,255,0),this[n]=o&255,n+1};t.prototype.writeUint16LE=t.prototype.writeUInt16LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,65535,0),this[n]=o&255,this[n+1]=o>>>8,n+2};t.prototype.writeUint16BE=t.prototype.writeUInt16BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,65535,0),this[n]=o>>>8,this[n+1]=o&255,n+2};t.prototype.writeUint32LE=t.prototype.writeUInt32LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,4294967295,0),this[n+3]=o>>>24,this[n+2]=o>>>16,this[n+1]=o>>>8,this[n]=o&255,n+4};t.prototype.writeUint32BE=t.prototype.writeUInt32BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,4294967295,0),this[n]=o>>>24,this[n+1]=o>>>16,this[n+2]=o>>>8,this[n+3]=o&255,n+4};t.prototype.writeIntLE=function(o,n,_,p){if(o=+o,n=n>>>0,!p){var a=Math.pow(2,8*_-1);h(this,o,n,_,a-1,-a)}var r=0,m=1,c=0;for(this[n]=o&255;++r<_&&(m*=256);)o<0&&c===0&&this[n+r-1]!==0&&(c=1),this[n+r]=(o/m>>0)-c&255;return n+_};t.prototype.writeIntBE=function(o,n,_,p){if(o=+o,n=n>>>0,!p){var a=Math.pow(2,8*_-1);h(this,o,n,_,a-1,-a)}var r=_-1,m=1,c=0;for(this[n+r]=o&255;--r>=0&&(m*=256);)o<0&&c===0&&this[n+r+1]!==0&&(c=1),this[n+r]=(o/m>>0)-c&255;return n+_};t.prototype.writeInt8=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,1,127,-128),o<0&&(o=255+o+1),this[n]=o&255,n+1};t.prototype.writeInt16LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,32767,-32768),this[n]=o&255,this[n+1]=o>>>8,n+2};t.prototype.writeInt16BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,32767,-32768),this[n]=o>>>8,this[n+1]=o&255,n+2};t.prototype.writeInt32LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,2147483647,-2147483648),this[n]=o&255,this[n+1]=o>>>8,this[n+2]=o>>>16,this[n+3]=o>>>24,n+4};t.prototype.writeInt32BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[n]=o>>>24,this[n+1]=o>>>16,this[n+2]=o>>>8,this[n+3]=o&255,n+4};function yo(e,o,n,_,p,a){if(n+_>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ko(e,o,n,_,p){return o=+o,n=n>>>0,p||yo(e,o,n,4,34028234663852886e22,-34028234663852886e22),R.write(e,o,n,_,23,4),n+4}t.prototype.writeFloatLE=function(o,n,_){return ko(this,o,n,!0,_)};t.prototype.writeFloatBE=function(o,n,_){return ko(this,o,n,!1,_)};function vo(e,o,n,_,p){return o=+o,n=n>>>0,p||yo(e,o,n,8,17976931348623157e292,-17976931348623157e292),R.write(e,o,n,_,52,8),n+8}t.prototype.writeDoubleLE=function(o,n,_){return vo(this,o,n,!0,_)};t.prototype.writeDoubleBE=function(o,n,_){return vo(this,o,n,!1,_)};t.prototype.copy=function(o,n,_,p){if(!t.isBuffer(o))throw new TypeError("argument should be a Buffer");if(_||(_=0),!p&&p!==0&&(p=this.length),n>=o.length&&(n=o.length),n||(n=0),p>0&&p<_&&(p=_),p===_||o.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),o.length-n<p-_&&(p=o.length-n+_);var a=p-_;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,_,p):Uint8Array.prototype.set.call(o,this.subarray(_,p),n),a};t.prototype.fill=function(o,n,_,p){if(typeof o=="string"){if(typeof n=="string"?(p=n,n=0,_=this.length):typeof _=="string"&&(p=_,_=this.length),p!==void 0&&typeof p!="string")throw new TypeError("encoding must be a string");if(typeof p=="string"&&!t.isEncoding(p))throw new TypeError("Unknown encoding: "+p);if(o.length===1){var a=o.charCodeAt(0);(p==="utf8"&&a<128||p==="latin1")&&(o=a)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(n<0||this.length<n||this.length<_)throw new RangeError("Out of range index");if(_<=n)return this;n=n>>>0,_=_===void 0?this.length:_>>>0,o||(o=0);var r;if(typeof o=="number")for(r=n;r<_;++r)this[r]=o;else{var m=t.isBuffer(o)?o:t.from(o,p),c=m.length;if(c===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(r=0;r<_-n;++r)this[r+n]=m[r%c]}return this};var hn=/[^+/0-9A-Za-z-_]/g;function un(e){if(e=e.split("=")[0],e=e.trim().replace(hn,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function no(e,o){o=o||1/0;for(var n,_=e.length,p=null,a=[],r=0;r<_;++r){if(n=e.charCodeAt(r),n>55295&&n<57344){if(!p){if(n>56319){(o-=3)>-1&&a.push(239,191,189);continue}else if(r+1===_){(o-=3)>-1&&a.push(239,191,189);continue}p=n;continue}if(n<56320){(o-=3)>-1&&a.push(239,191,189),p=n;continue}n=(p-55296<<10|n-56320)+65536}else p&&(o-=3)>-1&&a.push(239,191,189);if(p=null,n<128){if((o-=1)<0)break;a.push(n)}else if(n<2048){if((o-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((o-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((o-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return a}function bn(e){for(var o=[],n=0;n<e.length;++n)o.push(e.charCodeAt(n)&255);return o}function xn(e,o){for(var n,_,p,a=[],r=0;r<e.length&&!((o-=2)<0);++r)n=e.charCodeAt(r),_=n>>8,p=n%256,a.push(p),a.push(_);return a}function Eo(e){return Z.toByteArray(un(e))}function V(e,o,n,_){for(var p=0;p<_&&!(p+n>=o.length||p>=e.length);++p)o[p+n]=e[p];return p}function k(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function po(e){return e!==e}var wn=function(){for(var e="0123456789abcdef",o=new Array(256),n=0;n<16;++n)for(var _=n*16,p=0;p<16;++p)o[_+p]=e[n]+e[p];return o}()});var Io=q((Cn,Lo)=>{g();var s=Lo.exports={},v,E;function ao(){throw new Error("setTimeout has not been defined")}function ro(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?v=setTimeout:v=ao}catch(e){v=ao}try{typeof clearTimeout=="function"?E=clearTimeout:E=ro}catch(e){E=ro}})();function Fo(e){if(v===setTimeout)return setTimeout(e,0);if((v===ao||!v)&&setTimeout)return v=setTimeout,setTimeout(e,0);try{return v(e,0)}catch(o){try{return v.call(null,e,0)}catch(n){return v.call(this,e,0)}}}function yn(e){if(E===clearTimeout)return clearTimeout(e);if((E===ro||!E)&&clearTimeout)return E=clearTimeout,clearTimeout(e);try{return E(e)}catch(o){try{return E.call(null,e)}catch(n){return E.call(this,e)}}}var A=[],D=!1,N,J=-1;function kn(){!D||!N||(D=!1,N.length?A=N.concat(A):J=-1,A.length&&Bo())}function Bo(){if(!D){var e=Fo(kn);D=!0;for(var o=A.length;o;){for(N=A,A=[];++J<o;)N&&N[J].run();J=-1,o=A.length}N=null,D=!1,yn(e)}}s.nextTick=function(e){var o=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)o[n-1]=arguments[n];A.push(new Ao(e,o)),A.length===1&&!D&&Fo(Bo)};function Ao(e,o){this.fun=e,this.array=o}Ao.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function L(){}s.on=L;s.addListener=L;s.once=L;s.off=L;s.removeListener=L;s.removeAllListeners=L;s.emit=L;s.prependListener=L;s.prependOnceListener=L;s.listeners=function(e){return[]};s.binding=function(e){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(e){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var S,F,Nn,g=Xo(()=>{S=M(So()),F=M(Io()),Nn=function(e){function o(){var _=this||self;return delete e.prototype.__magic__,_}if(typeof globalThis=="object")return globalThis;if(this)return o();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:o});var n=__magic__;return n}(Object)});var Bn={};Po(Bn,{LedgerLoading:()=>Fn});module.exports=Ho(Bn);g();var W=M(require("react")),Uo=require("@fortawesome/free-solid-svg-icons"),O=M(require("classnames"));g();var j=M(require("react")),Co=require("@fortawesome/react-fontawesome"),X=M(require("classnames"));g();var vn=`.dapp-core-component__main__link-style {
1
+ "use strict";var Ro=Object.create;var q=Object.defineProperty;var zo=Object.getOwnPropertyDescriptor;var Do=Object.getOwnPropertyNames;var jo=Object.getPrototypeOf,Wo=Object.prototype.hasOwnProperty;var Xo=(e,o)=>()=>(e&&(o=e(e=0)),o);var G=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),Po=(e,o)=>{for(var n in o)q(e,n,{get:o[n],enumerable:!0})},to=(e,o,n,_)=>{if(o&&typeof o=="object"||typeof o=="function")for(let p of Do(o))!Wo.call(e,p)&&p!==n&&q(e,p,{get:()=>o[p],enumerable:!(_=zo(o,p))||_.enumerable});return e};var M=(e,o,n)=>(n=e!=null?Ro(jo(e)):{},to(o||!e||!e.__esModule?q(n,"default",{value:e,enumerable:!0}):n,e)),Ho=e=>to(q({},"__esModule",{value:!0}),e);var io=G(Y=>{"use strict";g();Y.byteLength=Go;Y.toByteArray=Vo;Y.fromByteArray=Qo;var y=[],b=[],qo=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(T=0,mo=Q.length;T<mo;++T)y[T]=Q[T],b[Q.charCodeAt(T)]=T;var T,mo;b["-".charCodeAt(0)]=62;b["_".charCodeAt(0)]=63;function co(e){var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=o);var _=n===o?0:4-n%4;return[n,_]}function Go(e){var o=co(e),n=o[0],_=o[1];return(n+_)*3/4-_}function Yo(e,o,n){return(o+n)*3/4-n}function Vo(e){var o,n=co(e),_=n[0],p=n[1],a=new qo(Yo(e,_,p)),r=0,m=p>0?_-4:_,c;for(c=0;c<m;c+=4)o=b[e.charCodeAt(c)]<<18|b[e.charCodeAt(c+1)]<<12|b[e.charCodeAt(c+2)]<<6|b[e.charCodeAt(c+3)],a[r++]=o>>16&255,a[r++]=o>>8&255,a[r++]=o&255;return p===2&&(o=b[e.charCodeAt(c)]<<2|b[e.charCodeAt(c+1)]>>4,a[r++]=o&255),p===1&&(o=b[e.charCodeAt(c)]<<10|b[e.charCodeAt(c+1)]<<4|b[e.charCodeAt(c+2)]>>2,a[r++]=o>>8&255,a[r++]=o&255),a}function Jo(e){return y[e>>18&63]+y[e>>12&63]+y[e>>6&63]+y[e&63]}function Oo(e,o,n){for(var _,p=[],a=o;a<n;a+=3)_=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),p.push(Jo(_));return p.join("")}function Qo(e){for(var o,n=e.length,_=n%3,p=[],a=16383,r=0,m=n-_;r<m;r+=a)p.push(Oo(e,r,r+a>m?m:r+a));return _===1?(o=e[n-1],p.push(y[o>>2]+y[o<<4&63]+"==")):_===2&&(o=(e[n-2]<<8)+e[n-1],p.push(y[o>>10]+y[o>>4&63]+y[o<<2&63]+"=")),p.join("")}});var lo=G(K=>{g();K.read=function(e,o,n,_,p){var a,r,m=p*8-_-1,c=(1<<m)-1,i=c>>1,l=-7,d=n?p-1:0,x=n?-1:1,u=e[o+d];for(d+=x,a=u&(1<<-l)-1,u>>=-l,l+=m;l>0;a=a*256+e[o+d],d+=x,l-=8);for(r=a&(1<<-l)-1,a>>=-l,l+=_;l>0;r=r*256+e[o+d],d+=x,l-=8);if(a===0)a=1-i;else{if(a===c)return r?NaN:(u?-1:1)*(1/0);r=r+Math.pow(2,_),a=a-i}return(u?-1:1)*r*Math.pow(2,a-_)};K.write=function(e,o,n,_,p,a){var r,m,c,i=a*8-p-1,l=(1<<i)-1,d=l>>1,x=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=_?0:a-1,U=_?1:-1,Mo=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(m=isNaN(o)?1:0,r=l):(r=Math.floor(Math.log(o)/Math.LN2),o*(c=Math.pow(2,-r))<1&&(r--,c*=2),r+d>=1?o+=x/c:o+=x*Math.pow(2,1-d),o*c>=2&&(r++,c/=2),r+d>=l?(m=0,r=l):r+d>=1?(m=(o*c-1)*Math.pow(2,p),r=r+d):(m=o*Math.pow(2,d-1)*Math.pow(2,p),r=0));p>=8;e[n+u]=m&255,u+=U,m/=256,p-=8);for(r=r<<p|m,i+=p;i>0;e[n+u]=r&255,u+=U,r/=256,i-=8);e[n+u-U]|=Mo*128}});var So=G(z=>{"use strict";g();var Z=io(),R=lo(),so=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;z.Buffer=t;z.SlowBuffer=en;z.INSPECT_MAX_BYTES=50;var V=2147483647;z.kMaxLength=V;t.TYPED_ARRAY_SUPPORT=Ko();!t.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 Ko(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),e.foo()===42}catch(n){return!1}}Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(!!t.isBuffer(this))return this.buffer}});Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(!!t.isBuffer(this))return this.byteOffset}});function B(e){if(e>V)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,t.prototype),o}function t(e,o,n){if(typeof e=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return eo(e)}return ho(e,o,n)}t.poolSize=8192;function ho(e,o,n){if(typeof e=="string")return $o(e,o);if(ArrayBuffer.isView(e))return on(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(k(e,ArrayBuffer)||e&&k(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(k(e,SharedArrayBuffer)||e&&k(e.buffer,SharedArrayBuffer)))return oo(e,o,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _=e.valueOf&&e.valueOf();if(_!=null&&_!==e)return t.from(_,o,n);var p=nn(e);if(p)return p;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return t.from(e[Symbol.toPrimitive]("string"),o,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}t.from=function(e,o,n){return ho(e,o,n)};Object.setPrototypeOf(t.prototype,Uint8Array.prototype);Object.setPrototypeOf(t,Uint8Array);function uo(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Zo(e,o,n){return uo(e),e<=0?B(e):o!==void 0?typeof n=="string"?B(e).fill(o,n):B(e).fill(o):B(e)}t.alloc=function(e,o,n){return Zo(e,o,n)};function eo(e){return uo(e),B(e<0?0:_o(e)|0)}t.allocUnsafe=function(e){return eo(e)};t.allocUnsafeSlow=function(e){return eo(e)};function $o(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!t.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var n=bo(e,o)|0,_=B(n),p=_.write(e,o);return p!==n&&(_=_.slice(0,p)),_}function $(e){for(var o=e.length<0?0:_o(e.length)|0,n=B(o),_=0;_<o;_+=1)n[_]=e[_]&255;return n}function on(e){if(k(e,Uint8Array)){var o=new Uint8Array(e);return oo(o.buffer,o.byteOffset,o.byteLength)}return $(e)}function oo(e,o,n){if(o<0||e.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<o+(n||0))throw new RangeError('"length" is outside of buffer bounds');var _;return o===void 0&&n===void 0?_=new Uint8Array(e):n===void 0?_=new Uint8Array(e,o):_=new Uint8Array(e,o,n),Object.setPrototypeOf(_,t.prototype),_}function nn(e){if(t.isBuffer(e)){var o=_o(e.length)|0,n=B(o);return n.length===0||e.copy(n,0,0,o),n}if(e.length!==void 0)return typeof e.length!="number"||po(e.length)?B(0):$(e);if(e.type==="Buffer"&&Array.isArray(e.data))return $(e.data)}function _o(e){if(e>=V)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V.toString(16)+" bytes");return e|0}function en(e){return+e!=e&&(e=0),t.alloc(+e)}t.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==t.prototype};t.compare=function(o,n){if(k(o,Uint8Array)&&(o=t.from(o,o.offset,o.byteLength)),k(n,Uint8Array)&&(n=t.from(n,n.offset,n.byteLength)),!t.isBuffer(o)||!t.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===n)return 0;for(var _=o.length,p=n.length,a=0,r=Math.min(_,p);a<r;++a)if(o[a]!==n[a]){_=o[a],p=n[a];break}return _<p?-1:p<_?1:0};t.isEncoding=function(o){switch(String(o).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}};t.concat=function(o,n){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return t.alloc(0);var _;if(n===void 0)for(n=0,_=0;_<o.length;++_)n+=o[_].length;var p=t.allocUnsafe(n),a=0;for(_=0;_<o.length;++_){var r=o[_];if(k(r,Uint8Array))a+r.length>p.length?t.from(r).copy(p,a):Uint8Array.prototype.set.call(p,r,a);else if(t.isBuffer(r))r.copy(p,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=r.length}return p};function bo(e,o){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||k(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&n===0)return 0;for(var p=!1;;)switch(o){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return no(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Eo(e).length;default:if(p)return _?-1:no(e).length;o=(""+o).toLowerCase(),p=!0}}t.byteLength=bo;function _n(e,o,n){var _=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,o>>>=0,n<=o))return"";for(e||(e="utf8");;)switch(e){case"hex":return gn(this,o,n);case"utf8":case"utf-8":return wo(this,o,n);case"ascii":return ln(this,o,n);case"latin1":case"binary":return sn(this,o,n);case"base64":return cn(this,o,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fn(this,o,n);default:if(_)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),_=!0}}t.prototype._isBuffer=!0;function C(e,o,n){var _=e[o];e[o]=e[n],e[n]=_}t.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<o;n+=2)C(this,n,n+1);return this};t.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<o;n+=4)C(this,n,n+3),C(this,n+1,n+2);return this};t.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<o;n+=8)C(this,n,n+7),C(this,n+1,n+6),C(this,n+2,n+5),C(this,n+3,n+4);return this};t.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?wo(this,0,o):_n.apply(this,arguments)};t.prototype.toLocaleString=t.prototype.toString;t.prototype.equals=function(o){if(!t.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:t.compare(this,o)===0};t.prototype.inspect=function(){var o="",n=z.INSPECT_MAX_BYTES;return o=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(o+=" ... "),"<Buffer "+o+">"};so&&(t.prototype[so]=t.prototype.inspect);t.prototype.compare=function(o,n,_,p,a){if(k(o,Uint8Array)&&(o=t.from(o,o.offset,o.byteLength)),!t.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(n===void 0&&(n=0),_===void 0&&(_=o?o.length:0),p===void 0&&(p=0),a===void 0&&(a=this.length),n<0||_>o.length||p<0||a>this.length)throw new RangeError("out of range index");if(p>=a&&n>=_)return 0;if(p>=a)return-1;if(n>=_)return 1;if(n>>>=0,_>>>=0,p>>>=0,a>>>=0,this===o)return 0;for(var r=a-p,m=_-n,c=Math.min(r,m),i=this.slice(p,a),l=o.slice(n,_),d=0;d<c;++d)if(i[d]!==l[d]){r=i[d],m=l[d];break}return r<m?-1:m<r?1:0};function xo(e,o,n,_,p){if(e.length===0)return-1;if(typeof n=="string"?(_=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,po(n)&&(n=p?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(p)return-1;n=e.length-1}else if(n<0)if(p)n=0;else return-1;if(typeof o=="string"&&(o=t.from(o,_)),t.isBuffer(o))return o.length===0?-1:go(e,o,n,_,p);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(e,o,n):Uint8Array.prototype.lastIndexOf.call(e,o,n):go(e,[o],n,_,p);throw new TypeError("val must be string, number or Buffer")}function go(e,o,n,_,p){var a=1,r=e.length,m=o.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(e.length<2||o.length<2)return-1;a=2,r/=2,m/=2,n/=2}function c(u,U){return a===1?u[U]:u.readUInt16BE(U*a)}var i;if(p){var l=-1;for(i=n;i<r;i++)if(c(e,i)===c(o,l===-1?0:i-l)){if(l===-1&&(l=i),i-l+1===m)return l*a}else l!==-1&&(i-=i-l),l=-1}else for(n+m>r&&(n=r-m),i=n;i>=0;i--){for(var d=!0,x=0;x<m;x++)if(c(e,i+x)!==c(o,x)){d=!1;break}if(d)return i}return-1}t.prototype.includes=function(o,n,_){return this.indexOf(o,n,_)!==-1};t.prototype.indexOf=function(o,n,_){return xo(this,o,n,_,!0)};t.prototype.lastIndexOf=function(o,n,_){return xo(this,o,n,_,!1)};function pn(e,o,n,_){n=Number(n)||0;var p=e.length-n;_?(_=Number(_),_>p&&(_=p)):_=p;var a=o.length;_>a/2&&(_=a/2);for(var r=0;r<_;++r){var m=parseInt(o.substr(r*2,2),16);if(po(m))return r;e[n+r]=m}return r}function an(e,o,n,_){return J(no(o,e.length-n),e,n,_)}function rn(e,o,n,_){return J(bn(o),e,n,_)}function tn(e,o,n,_){return J(Eo(o),e,n,_)}function mn(e,o,n,_){return J(xn(o,e.length-n),e,n,_)}t.prototype.write=function(o,n,_,p){if(n===void 0)p="utf8",_=this.length,n=0;else if(_===void 0&&typeof n=="string")p=n,_=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(_)?(_=_>>>0,p===void 0&&(p="utf8")):(p=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-n;if((_===void 0||_>a)&&(_=a),o.length>0&&(_<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");for(var r=!1;;)switch(p){case"hex":return pn(this,o,n,_);case"utf8":case"utf-8":return an(this,o,n,_);case"ascii":case"latin1":case"binary":return rn(this,o,n,_);case"base64":return tn(this,o,n,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mn(this,o,n,_);default:if(r)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),r=!0}};t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function cn(e,o,n){return o===0&&n===e.length?Z.fromByteArray(e):Z.fromByteArray(e.slice(o,n))}function wo(e,o,n){n=Math.min(e.length,n);for(var _=[],p=o;p<n;){var a=e[p],r=null,m=a>239?4:a>223?3:a>191?2:1;if(p+m<=n){var c,i,l,d;switch(m){case 1:a<128&&(r=a);break;case 2:c=e[p+1],(c&192)===128&&(d=(a&31)<<6|c&63,d>127&&(r=d));break;case 3:c=e[p+1],i=e[p+2],(c&192)===128&&(i&192)===128&&(d=(a&15)<<12|(c&63)<<6|i&63,d>2047&&(d<55296||d>57343)&&(r=d));break;case 4:c=e[p+1],i=e[p+2],l=e[p+3],(c&192)===128&&(i&192)===128&&(l&192)===128&&(d=(a&15)<<18|(c&63)<<12|(i&63)<<6|l&63,d>65535&&d<1114112&&(r=d))}}r===null?(r=65533,m=1):r>65535&&(r-=65536,_.push(r>>>10&1023|55296),r=56320|r&1023),_.push(r),p+=m}return dn(_)}var fo=4096;function dn(e){var o=e.length;if(o<=fo)return String.fromCharCode.apply(String,e);for(var n="",_=0;_<o;)n+=String.fromCharCode.apply(String,e.slice(_,_+=fo));return n}function ln(e,o,n){var _="";n=Math.min(e.length,n);for(var p=o;p<n;++p)_+=String.fromCharCode(e[p]&127);return _}function sn(e,o,n){var _="";n=Math.min(e.length,n);for(var p=o;p<n;++p)_+=String.fromCharCode(e[p]);return _}function gn(e,o,n){var _=e.length;(!o||o<0)&&(o=0),(!n||n<0||n>_)&&(n=_);for(var p="",a=o;a<n;++a)p+=wn[e[a]];return p}function fn(e,o,n){for(var _=e.slice(o,n),p="",a=0;a<_.length-1;a+=2)p+=String.fromCharCode(_[a]+_[a+1]*256);return p}t.prototype.slice=function(o,n){var _=this.length;o=~~o,n=n===void 0?_:~~n,o<0?(o+=_,o<0&&(o=0)):o>_&&(o=_),n<0?(n+=_,n<0&&(n=0)):n>_&&(n=_),n<o&&(n=o);var p=this.subarray(o,n);return Object.setPrototypeOf(p,t.prototype),p};function f(e,o,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+o>n)throw new RangeError("Trying to access beyond buffer length")}t.prototype.readUintLE=t.prototype.readUIntLE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=this[o],a=1,r=0;++r<n&&(a*=256);)p+=this[o+r]*a;return p};t.prototype.readUintBE=t.prototype.readUIntBE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=this[o+--n],a=1;n>0&&(a*=256);)p+=this[o+--n]*a;return p};t.prototype.readUint8=t.prototype.readUInt8=function(o,n){return o=o>>>0,n||f(o,1,this.length),this[o]};t.prototype.readUint16LE=t.prototype.readUInt16LE=function(o,n){return o=o>>>0,n||f(o,2,this.length),this[o]|this[o+1]<<8};t.prototype.readUint16BE=t.prototype.readUInt16BE=function(o,n){return o=o>>>0,n||f(o,2,this.length),this[o]<<8|this[o+1]};t.prototype.readUint32LE=t.prototype.readUInt32LE=function(o,n){return o=o>>>0,n||f(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};t.prototype.readUint32BE=t.prototype.readUInt32BE=function(o,n){return o=o>>>0,n||f(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};t.prototype.readIntLE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=this[o],a=1,r=0;++r<n&&(a*=256);)p+=this[o+r]*a;return a*=128,p>=a&&(p-=Math.pow(2,8*n)),p};t.prototype.readIntBE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=n,a=1,r=this[o+--p];p>0&&(a*=256);)r+=this[o+--p]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*n)),r};t.prototype.readInt8=function(o,n){return o=o>>>0,n||f(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};t.prototype.readInt16LE=function(o,n){o=o>>>0,n||f(o,2,this.length);var _=this[o]|this[o+1]<<8;return _&32768?_|4294901760:_};t.prototype.readInt16BE=function(o,n){o=o>>>0,n||f(o,2,this.length);var _=this[o+1]|this[o]<<8;return _&32768?_|4294901760:_};t.prototype.readInt32LE=function(o,n){return o=o>>>0,n||f(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};t.prototype.readInt32BE=function(o,n){return o=o>>>0,n||f(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};t.prototype.readFloatLE=function(o,n){return o=o>>>0,n||f(o,4,this.length),R.read(this,o,!0,23,4)};t.prototype.readFloatBE=function(o,n){return o=o>>>0,n||f(o,4,this.length),R.read(this,o,!1,23,4)};t.prototype.readDoubleLE=function(o,n){return o=o>>>0,n||f(o,8,this.length),R.read(this,o,!0,52,8)};t.prototype.readDoubleBE=function(o,n){return o=o>>>0,n||f(o,8,this.length),R.read(this,o,!1,52,8)};function h(e,o,n,_,p,a){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>p||o<a)throw new RangeError('"value" argument is out of bounds');if(n+_>e.length)throw new RangeError("Index out of range")}t.prototype.writeUintLE=t.prototype.writeUIntLE=function(o,n,_,p){if(o=+o,n=n>>>0,_=_>>>0,!p){var a=Math.pow(2,8*_)-1;h(this,o,n,_,a,0)}var r=1,m=0;for(this[n]=o&255;++m<_&&(r*=256);)this[n+m]=o/r&255;return n+_};t.prototype.writeUintBE=t.prototype.writeUIntBE=function(o,n,_,p){if(o=+o,n=n>>>0,_=_>>>0,!p){var a=Math.pow(2,8*_)-1;h(this,o,n,_,a,0)}var r=_-1,m=1;for(this[n+r]=o&255;--r>=0&&(m*=256);)this[n+r]=o/m&255;return n+_};t.prototype.writeUint8=t.prototype.writeUInt8=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,1,255,0),this[n]=o&255,n+1};t.prototype.writeUint16LE=t.prototype.writeUInt16LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,65535,0),this[n]=o&255,this[n+1]=o>>>8,n+2};t.prototype.writeUint16BE=t.prototype.writeUInt16BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,65535,0),this[n]=o>>>8,this[n+1]=o&255,n+2};t.prototype.writeUint32LE=t.prototype.writeUInt32LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,4294967295,0),this[n+3]=o>>>24,this[n+2]=o>>>16,this[n+1]=o>>>8,this[n]=o&255,n+4};t.prototype.writeUint32BE=t.prototype.writeUInt32BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,4294967295,0),this[n]=o>>>24,this[n+1]=o>>>16,this[n+2]=o>>>8,this[n+3]=o&255,n+4};t.prototype.writeIntLE=function(o,n,_,p){if(o=+o,n=n>>>0,!p){var a=Math.pow(2,8*_-1);h(this,o,n,_,a-1,-a)}var r=0,m=1,c=0;for(this[n]=o&255;++r<_&&(m*=256);)o<0&&c===0&&this[n+r-1]!==0&&(c=1),this[n+r]=(o/m>>0)-c&255;return n+_};t.prototype.writeIntBE=function(o,n,_,p){if(o=+o,n=n>>>0,!p){var a=Math.pow(2,8*_-1);h(this,o,n,_,a-1,-a)}var r=_-1,m=1,c=0;for(this[n+r]=o&255;--r>=0&&(m*=256);)o<0&&c===0&&this[n+r+1]!==0&&(c=1),this[n+r]=(o/m>>0)-c&255;return n+_};t.prototype.writeInt8=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,1,127,-128),o<0&&(o=255+o+1),this[n]=o&255,n+1};t.prototype.writeInt16LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,32767,-32768),this[n]=o&255,this[n+1]=o>>>8,n+2};t.prototype.writeInt16BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,32767,-32768),this[n]=o>>>8,this[n+1]=o&255,n+2};t.prototype.writeInt32LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,2147483647,-2147483648),this[n]=o&255,this[n+1]=o>>>8,this[n+2]=o>>>16,this[n+3]=o>>>24,n+4};t.prototype.writeInt32BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[n]=o>>>24,this[n+1]=o>>>16,this[n+2]=o>>>8,this[n+3]=o&255,n+4};function yo(e,o,n,_,p,a){if(n+_>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ko(e,o,n,_,p){return o=+o,n=n>>>0,p||yo(e,o,n,4,34028234663852886e22,-34028234663852886e22),R.write(e,o,n,_,23,4),n+4}t.prototype.writeFloatLE=function(o,n,_){return ko(this,o,n,!0,_)};t.prototype.writeFloatBE=function(o,n,_){return ko(this,o,n,!1,_)};function vo(e,o,n,_,p){return o=+o,n=n>>>0,p||yo(e,o,n,8,17976931348623157e292,-17976931348623157e292),R.write(e,o,n,_,52,8),n+8}t.prototype.writeDoubleLE=function(o,n,_){return vo(this,o,n,!0,_)};t.prototype.writeDoubleBE=function(o,n,_){return vo(this,o,n,!1,_)};t.prototype.copy=function(o,n,_,p){if(!t.isBuffer(o))throw new TypeError("argument should be a Buffer");if(_||(_=0),!p&&p!==0&&(p=this.length),n>=o.length&&(n=o.length),n||(n=0),p>0&&p<_&&(p=_),p===_||o.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),o.length-n<p-_&&(p=o.length-n+_);var a=p-_;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,_,p):Uint8Array.prototype.set.call(o,this.subarray(_,p),n),a};t.prototype.fill=function(o,n,_,p){if(typeof o=="string"){if(typeof n=="string"?(p=n,n=0,_=this.length):typeof _=="string"&&(p=_,_=this.length),p!==void 0&&typeof p!="string")throw new TypeError("encoding must be a string");if(typeof p=="string"&&!t.isEncoding(p))throw new TypeError("Unknown encoding: "+p);if(o.length===1){var a=o.charCodeAt(0);(p==="utf8"&&a<128||p==="latin1")&&(o=a)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(n<0||this.length<n||this.length<_)throw new RangeError("Out of range index");if(_<=n)return this;n=n>>>0,_=_===void 0?this.length:_>>>0,o||(o=0);var r;if(typeof o=="number")for(r=n;r<_;++r)this[r]=o;else{var m=t.isBuffer(o)?o:t.from(o,p),c=m.length;if(c===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(r=0;r<_-n;++r)this[r+n]=m[r%c]}return this};var hn=/[^+/0-9A-Za-z-_]/g;function un(e){if(e=e.split("=")[0],e=e.trim().replace(hn,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function no(e,o){o=o||1/0;for(var n,_=e.length,p=null,a=[],r=0;r<_;++r){if(n=e.charCodeAt(r),n>55295&&n<57344){if(!p){if(n>56319){(o-=3)>-1&&a.push(239,191,189);continue}else if(r+1===_){(o-=3)>-1&&a.push(239,191,189);continue}p=n;continue}if(n<56320){(o-=3)>-1&&a.push(239,191,189),p=n;continue}n=(p-55296<<10|n-56320)+65536}else p&&(o-=3)>-1&&a.push(239,191,189);if(p=null,n<128){if((o-=1)<0)break;a.push(n)}else if(n<2048){if((o-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((o-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((o-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return a}function bn(e){for(var o=[],n=0;n<e.length;++n)o.push(e.charCodeAt(n)&255);return o}function xn(e,o){for(var n,_,p,a=[],r=0;r<e.length&&!((o-=2)<0);++r)n=e.charCodeAt(r),_=n>>8,p=n%256,a.push(p),a.push(_);return a}function Eo(e){return Z.toByteArray(un(e))}function J(e,o,n,_){for(var p=0;p<_&&!(p+n>=o.length||p>=e.length);++p)o[p+n]=e[p];return p}function k(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function po(e){return e!==e}var wn=function(){for(var e="0123456789abcdef",o=new Array(256),n=0;n<16;++n)for(var _=n*16,p=0;p<16;++p)o[_+p]=e[n]+e[p];return o}()});var Io=G((Cn,Lo)=>{g();var s=Lo.exports={},v,E;function ao(){throw new Error("setTimeout has not been defined")}function ro(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?v=setTimeout:v=ao}catch(e){v=ao}try{typeof clearTimeout=="function"?E=clearTimeout:E=ro}catch(e){E=ro}})();function Fo(e){if(v===setTimeout)return setTimeout(e,0);if((v===ao||!v)&&setTimeout)return v=setTimeout,setTimeout(e,0);try{return v(e,0)}catch(o){try{return v.call(null,e,0)}catch(n){return v.call(this,e,0)}}}function yn(e){if(E===clearTimeout)return clearTimeout(e);if((E===ro||!E)&&clearTimeout)return E=clearTimeout,clearTimeout(e);try{return E(e)}catch(o){try{return E.call(null,e)}catch(n){return E.call(this,e)}}}var A=[],D=!1,N,O=-1;function kn(){!D||!N||(D=!1,N.length?A=N.concat(A):O=-1,A.length&&Bo())}function Bo(){if(!D){var e=Fo(kn);D=!0;for(var o=A.length;o;){for(N=A,A=[];++O<o;)N&&N[O].run();O=-1,o=A.length}N=null,D=!1,yn(e)}}s.nextTick=function(e){var o=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)o[n-1]=arguments[n];A.push(new Ao(e,o)),A.length===1&&!D&&Fo(Bo)};function Ao(e,o){this.fun=e,this.array=o}Ao.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function L(){}s.on=L;s.addListener=L;s.once=L;s.off=L;s.removeListener=L;s.removeAllListeners=L;s.emit=L;s.prependListener=L;s.prependOnceListener=L;s.listeners=function(e){return[]};s.binding=function(e){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(e){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var S,F,Nn,g=Xo(()=>{S=M(So()),F=M(Io()),Nn=function(e){function o(){var _=this||self;return delete e.prototype.__magic__,_}if(typeof globalThis=="object")return globalThis;if(this)return o();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:o});var n=__magic__;return n}(Object)});var Bn={};Po(Bn,{LedgerLoading:()=>Fn});module.exports=Ho(Bn);g();var W=M(require("react")),Uo=require("@fortawesome/free-solid-svg-icons"),X=M(require("classnames"));g();var j=M(require("react")),Co=require("@fortawesome/react-fontawesome"),P=M(require("classnames"));g();var vn=`.dapp-core-component__main__link-style {
2
2
  color: #1392ff;
3
3
  }
4
4
 
@@ -2698,7 +2698,7 @@ a.dapp-core-component__main__side-link::after {
2698
2698
 
2699
2699
  .dapp-core-component__pageStateStyles__state {
2700
2700
  color: inherit;
2701
- }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(En));var To={wrapper:"dapp-core-component__pageStateStyles__wrapper",state:"dapp-core-component__pageStateStyles__state"};var No=({icon:e,title:o,action:n,iconClass:_,dataTestId:p,description:a,iconBgClass:r,iconSize:m="5x",className:c="dapp-page-state"})=>{let i={wrapper:(0,X.default)(To.state,w.mAuto,w.p4,w.textCenter,c),iconContainer:(0,X.default)(w.iconState,w.mxAuto,{[r!=null?r:""]:Boolean(r)}),iconClass:(0,X.default)(_!=null&&_),title:(0,X.default)(w.h4,w.my4),description:w.mb3};return j.default.createElement("div",{className:i.wrapper,"data-testid":p},e&&j.default.createElement("span",{className:i.iconContainer},j.default.createElement(Co.FontAwesomeIcon,{icon:e,className:i.iconClass,size:m})),o&&j.default.createElement("p",{className:i.title},o),a&&j.default.createElement("div",{className:i.description},a),n)};g();var Sn=`.dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper {
2701
+ }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(En));var To={wrapper:"dapp-core-component__pageStateStyles__wrapper",state:"dapp-core-component__pageStateStyles__state"};var No=({icon:e,title:o,action:n,iconClass:_,dataTestId:p,description:a,iconBgClass:r,iconSize:m="5x",className:c="dapp-page-state"})=>{let i={wrapper:(0,P.default)(To.state,w.mAuto,w.p4,w.textCenter,c),iconContainer:(0,P.default)(w.iconState,w.mxAuto,{[r!=null?r:""]:Boolean(r)}),iconClass:(0,P.default)(_!=null&&_),title:(0,P.default)(w.h4,w.my4),description:w.mb3};return j.default.createElement("div",{className:i.wrapper,"data-testid":p},e&&j.default.createElement("span",{className:i.iconContainer},j.default.createElement(Co.FontAwesomeIcon,{icon:e,className:i.iconClass,size:m})),o&&j.default.createElement("p",{className:i.title},o),a&&j.default.createElement("div",{className:i.description},a),n)};g();var Sn=`.dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper {
2702
2702
  text-align: center;
2703
2703
  padding: 40px 16px 0;
2704
2704
  }
@@ -2715,7 +2715,7 @@ a.dapp-core-component__main__side-link::after {
2715
2715
  }
2716
2716
  .dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper .dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner {
2717
2717
  margin: 120px 0;
2718
- }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Sn));var P={"ledger-loading-wrapper":"dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper",ledgerLoadingWrapper:"dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper","ledger-loading-heading":"dapp-core-component__ledgerLoadingStyles__ledger-loading-heading",ledgerLoadingHeading:"dapp-core-component__ledgerLoadingStyles__ledger-loading-heading","ledger-loading-description":"dapp-core-component__ledgerLoadingStyles__ledger-loading-description",ledgerLoadingDescription:"dapp-core-component__ledgerLoadingStyles__ledger-loading-description","ledger-loading-spinner":"dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner",ledgerLoadingSpinner:"dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner"};var Fn=({customSpinnerComponent:e,ledgerLoadingClassNames:o,customContentComponent:n})=>{let{ledgerModalSubtitleClassName:_,ledgerModalTitleClassName:p}=o||{};return W.default.createElement("div",{className:P.ledgerLoadingWrapper},W.default.createElement("div",{className:(0,O.default)(P.ledgerLoadingHeading,p)},"Waiting for device..."),W.default.createElement("p",{className:(0,O.default)(P.ledgerLoadingDescription,_)},"It may take a few seconds..."),n,W.default.createElement("div",{className:P.ledgerLoadingSpinner},e||W.default.createElement(No,{iconSize:"10x",icon:Uo.faCircleNotch,iconClass:(0,O.default)("fa-spin",w.textPrimary)})))};0&&(module.exports={LedgerLoading});
2718
+ }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Sn));var H={"ledger-loading-wrapper":"dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper",ledgerLoadingWrapper:"dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper","ledger-loading-heading":"dapp-core-component__ledgerLoadingStyles__ledger-loading-heading",ledgerLoadingHeading:"dapp-core-component__ledgerLoadingStyles__ledger-loading-heading","ledger-loading-description":"dapp-core-component__ledgerLoadingStyles__ledger-loading-description",ledgerLoadingDescription:"dapp-core-component__ledgerLoadingStyles__ledger-loading-description","ledger-loading-spinner":"dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner",ledgerLoadingSpinner:"dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner"};var Fn=({customSpinnerComponent:e,ledgerLoadingClassNames:o,customContentComponent:n})=>{let{ledgerModalSubtitleClassName:_,ledgerModalTitleClassName:p,ledgerLoadingWrapper:a,ledgerLoadingSpinner:r}=o||{};return W.default.createElement("div",{className:(0,X.default)(H.ledgerLoadingWrapper,a)},W.default.createElement("div",{className:(0,X.default)(H.ledgerLoadingHeading,p)},"Waiting for device..."),W.default.createElement("p",{className:(0,X.default)(H.ledgerLoadingDescription,_)},"It may take a few seconds..."),n,W.default.createElement("div",{className:(0,X.default)(H.ledgerLoadingSpinner,r)},e||W.default.createElement(No,{iconSize:"10x",icon:Uo.faCircleNotch,iconClass:(0,X.default)("fa-spin",w.textPrimary)})))};0&&(module.exports={LedgerLoading});
2719
2719
  /*!
2720
2720
  * The buffer module from node.js, for the browser.
2721
2721
  *
@@ -1,4 +1,4 @@
1
- "use strict";var Ro=Object.create;var H=Object.defineProperty;var zo=Object.getOwnPropertyDescriptor;var Do=Object.getOwnPropertyNames;var jo=Object.getPrototypeOf,Wo=Object.prototype.hasOwnProperty;var Xo=(e,o)=>()=>(e&&(o=e(e=0)),o);var q=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),Po=(e,o)=>{for(var n in o)H(e,n,{get:o[n],enumerable:!0})},to=(e,o,n,_)=>{if(o&&typeof o=="object"||typeof o=="function")for(let p of Do(o))!Wo.call(e,p)&&p!==n&&H(e,p,{get:()=>o[p],enumerable:!(_=zo(o,p))||_.enumerable});return e};var M=(e,o,n)=>(n=e!=null?Ro(jo(e)):{},to(o||!e||!e.__esModule?H(n,"default",{value:e,enumerable:!0}):n,e)),Ho=e=>to(H({},"__esModule",{value:!0}),e);var io=q(G=>{"use strict";s();G.byteLength=Go;G.toByteArray=Vo;G.fromByteArray=Qo;var y=[],b=[],qo=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(T=0,mo=Q.length;T<mo;++T)y[T]=Q[T],b[Q.charCodeAt(T)]=T;var T,mo;b["-".charCodeAt(0)]=62;b["_".charCodeAt(0)]=63;function co(e){var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=o);var _=n===o?0:4-n%4;return[n,_]}function Go(e){var o=co(e),n=o[0],_=o[1];return(n+_)*3/4-_}function Yo(e,o,n){return(o+n)*3/4-n}function Vo(e){var o,n=co(e),_=n[0],p=n[1],a=new qo(Yo(e,_,p)),r=0,m=p>0?_-4:_,c;for(c=0;c<m;c+=4)o=b[e.charCodeAt(c)]<<18|b[e.charCodeAt(c+1)]<<12|b[e.charCodeAt(c+2)]<<6|b[e.charCodeAt(c+3)],a[r++]=o>>16&255,a[r++]=o>>8&255,a[r++]=o&255;return p===2&&(o=b[e.charCodeAt(c)]<<2|b[e.charCodeAt(c+1)]>>4,a[r++]=o&255),p===1&&(o=b[e.charCodeAt(c)]<<10|b[e.charCodeAt(c+1)]<<4|b[e.charCodeAt(c+2)]>>2,a[r++]=o>>8&255,a[r++]=o&255),a}function Jo(e){return y[e>>18&63]+y[e>>12&63]+y[e>>6&63]+y[e&63]}function Oo(e,o,n){for(var _,p=[],a=o;a<n;a+=3)_=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),p.push(Jo(_));return p.join("")}function Qo(e){for(var o,n=e.length,_=n%3,p=[],a=16383,r=0,m=n-_;r<m;r+=a)p.push(Oo(e,r,r+a>m?m:r+a));return _===1?(o=e[n-1],p.push(y[o>>2]+y[o<<4&63]+"==")):_===2&&(o=(e[n-2]<<8)+e[n-1],p.push(y[o>>10]+y[o>>4&63]+y[o<<2&63]+"=")),p.join("")}});var lo=q(K=>{s();K.read=function(e,o,n,_,p){var a,r,m=p*8-_-1,c=(1<<m)-1,i=c>>1,l=-7,d=n?p-1:0,x=n?-1:1,u=e[o+d];for(d+=x,a=u&(1<<-l)-1,u>>=-l,l+=m;l>0;a=a*256+e[o+d],d+=x,l-=8);for(r=a&(1<<-l)-1,a>>=-l,l+=_;l>0;r=r*256+e[o+d],d+=x,l-=8);if(a===0)a=1-i;else{if(a===c)return r?NaN:(u?-1:1)*(1/0);r=r+Math.pow(2,_),a=a-i}return(u?-1:1)*r*Math.pow(2,a-_)};K.write=function(e,o,n,_,p,a){var r,m,c,i=a*8-p-1,l=(1<<i)-1,d=l>>1,x=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=_?0:a-1,U=_?1:-1,Mo=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(m=isNaN(o)?1:0,r=l):(r=Math.floor(Math.log(o)/Math.LN2),o*(c=Math.pow(2,-r))<1&&(r--,c*=2),r+d>=1?o+=x/c:o+=x*Math.pow(2,1-d),o*c>=2&&(r++,c/=2),r+d>=l?(m=0,r=l):r+d>=1?(m=(o*c-1)*Math.pow(2,p),r=r+d):(m=o*Math.pow(2,d-1)*Math.pow(2,p),r=0));p>=8;e[n+u]=m&255,u+=U,m/=256,p-=8);for(r=r<<p|m,i+=p;i>0;e[n+u]=r&255,u+=U,r/=256,i-=8);e[n+u-U]|=Mo*128}});var So=q(z=>{"use strict";s();var Z=io(),R=lo(),so=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;z.Buffer=t;z.SlowBuffer=en;z.INSPECT_MAX_BYTES=50;var Y=2147483647;z.kMaxLength=Y;t.TYPED_ARRAY_SUPPORT=Ko();!t.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 Ko(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),e.foo()===42}catch(n){return!1}}Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(!!t.isBuffer(this))return this.buffer}});Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(!!t.isBuffer(this))return this.byteOffset}});function A(e){if(e>Y)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,t.prototype),o}function t(e,o,n){if(typeof e=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return eo(e)}return ho(e,o,n)}t.poolSize=8192;function ho(e,o,n){if(typeof e=="string")return $o(e,o);if(ArrayBuffer.isView(e))return on(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(E(e,ArrayBuffer)||e&&E(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(E(e,SharedArrayBuffer)||e&&E(e.buffer,SharedArrayBuffer)))return oo(e,o,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _=e.valueOf&&e.valueOf();if(_!=null&&_!==e)return t.from(_,o,n);var p=nn(e);if(p)return p;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return t.from(e[Symbol.toPrimitive]("string"),o,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}t.from=function(e,o,n){return ho(e,o,n)};Object.setPrototypeOf(t.prototype,Uint8Array.prototype);Object.setPrototypeOf(t,Uint8Array);function uo(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Zo(e,o,n){return uo(e),e<=0?A(e):o!==void 0?typeof n=="string"?A(e).fill(o,n):A(e).fill(o):A(e)}t.alloc=function(e,o,n){return Zo(e,o,n)};function eo(e){return uo(e),A(e<0?0:_o(e)|0)}t.allocUnsafe=function(e){return eo(e)};t.allocUnsafeSlow=function(e){return eo(e)};function $o(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!t.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var n=bo(e,o)|0,_=A(n),p=_.write(e,o);return p!==n&&(_=_.slice(0,p)),_}function $(e){for(var o=e.length<0?0:_o(e.length)|0,n=A(o),_=0;_<o;_+=1)n[_]=e[_]&255;return n}function on(e){if(E(e,Uint8Array)){var o=new Uint8Array(e);return oo(o.buffer,o.byteOffset,o.byteLength)}return $(e)}function oo(e,o,n){if(o<0||e.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<o+(n||0))throw new RangeError('"length" is outside of buffer bounds');var _;return o===void 0&&n===void 0?_=new Uint8Array(e):n===void 0?_=new Uint8Array(e,o):_=new Uint8Array(e,o,n),Object.setPrototypeOf(_,t.prototype),_}function nn(e){if(t.isBuffer(e)){var o=_o(e.length)|0,n=A(o);return n.length===0||e.copy(n,0,0,o),n}if(e.length!==void 0)return typeof e.length!="number"||po(e.length)?A(0):$(e);if(e.type==="Buffer"&&Array.isArray(e.data))return $(e.data)}function _o(e){if(e>=Y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y.toString(16)+" bytes");return e|0}function en(e){return+e!=e&&(e=0),t.alloc(+e)}t.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==t.prototype};t.compare=function(o,n){if(E(o,Uint8Array)&&(o=t.from(o,o.offset,o.byteLength)),E(n,Uint8Array)&&(n=t.from(n,n.offset,n.byteLength)),!t.isBuffer(o)||!t.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===n)return 0;for(var _=o.length,p=n.length,a=0,r=Math.min(_,p);a<r;++a)if(o[a]!==n[a]){_=o[a],p=n[a];break}return _<p?-1:p<_?1:0};t.isEncoding=function(o){switch(String(o).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}};t.concat=function(o,n){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return t.alloc(0);var _;if(n===void 0)for(n=0,_=0;_<o.length;++_)n+=o[_].length;var p=t.allocUnsafe(n),a=0;for(_=0;_<o.length;++_){var r=o[_];if(E(r,Uint8Array))a+r.length>p.length?t.from(r).copy(p,a):Uint8Array.prototype.set.call(p,r,a);else if(t.isBuffer(r))r.copy(p,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=r.length}return p};function bo(e,o){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||E(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&n===0)return 0;for(var p=!1;;)switch(o){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return no(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Eo(e).length;default:if(p)return _?-1:no(e).length;o=(""+o).toLowerCase(),p=!0}}t.byteLength=bo;function _n(e,o,n){var _=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,o>>>=0,n<=o))return"";for(e||(e="utf8");;)switch(e){case"hex":return gn(this,o,n);case"utf8":case"utf-8":return wo(this,o,n);case"ascii":return ln(this,o,n);case"latin1":case"binary":return sn(this,o,n);case"base64":return cn(this,o,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fn(this,o,n);default:if(_)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),_=!0}}t.prototype._isBuffer=!0;function C(e,o,n){var _=e[o];e[o]=e[n],e[n]=_}t.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<o;n+=2)C(this,n,n+1);return this};t.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<o;n+=4)C(this,n,n+3),C(this,n+1,n+2);return this};t.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<o;n+=8)C(this,n,n+7),C(this,n+1,n+6),C(this,n+2,n+5),C(this,n+3,n+4);return this};t.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?wo(this,0,o):_n.apply(this,arguments)};t.prototype.toLocaleString=t.prototype.toString;t.prototype.equals=function(o){if(!t.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:t.compare(this,o)===0};t.prototype.inspect=function(){var o="",n=z.INSPECT_MAX_BYTES;return o=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(o+=" ... "),"<Buffer "+o+">"};so&&(t.prototype[so]=t.prototype.inspect);t.prototype.compare=function(o,n,_,p,a){if(E(o,Uint8Array)&&(o=t.from(o,o.offset,o.byteLength)),!t.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(n===void 0&&(n=0),_===void 0&&(_=o?o.length:0),p===void 0&&(p=0),a===void 0&&(a=this.length),n<0||_>o.length||p<0||a>this.length)throw new RangeError("out of range index");if(p>=a&&n>=_)return 0;if(p>=a)return-1;if(n>=_)return 1;if(n>>>=0,_>>>=0,p>>>=0,a>>>=0,this===o)return 0;for(var r=a-p,m=_-n,c=Math.min(r,m),i=this.slice(p,a),l=o.slice(n,_),d=0;d<c;++d)if(i[d]!==l[d]){r=i[d],m=l[d];break}return r<m?-1:m<r?1:0};function xo(e,o,n,_,p){if(e.length===0)return-1;if(typeof n=="string"?(_=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,po(n)&&(n=p?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(p)return-1;n=e.length-1}else if(n<0)if(p)n=0;else return-1;if(typeof o=="string"&&(o=t.from(o,_)),t.isBuffer(o))return o.length===0?-1:go(e,o,n,_,p);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(e,o,n):Uint8Array.prototype.lastIndexOf.call(e,o,n):go(e,[o],n,_,p);throw new TypeError("val must be string, number or Buffer")}function go(e,o,n,_,p){var a=1,r=e.length,m=o.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(e.length<2||o.length<2)return-1;a=2,r/=2,m/=2,n/=2}function c(u,U){return a===1?u[U]:u.readUInt16BE(U*a)}var i;if(p){var l=-1;for(i=n;i<r;i++)if(c(e,i)===c(o,l===-1?0:i-l)){if(l===-1&&(l=i),i-l+1===m)return l*a}else l!==-1&&(i-=i-l),l=-1}else for(n+m>r&&(n=r-m),i=n;i>=0;i--){for(var d=!0,x=0;x<m;x++)if(c(e,i+x)!==c(o,x)){d=!1;break}if(d)return i}return-1}t.prototype.includes=function(o,n,_){return this.indexOf(o,n,_)!==-1};t.prototype.indexOf=function(o,n,_){return xo(this,o,n,_,!0)};t.prototype.lastIndexOf=function(o,n,_){return xo(this,o,n,_,!1)};function pn(e,o,n,_){n=Number(n)||0;var p=e.length-n;_?(_=Number(_),_>p&&(_=p)):_=p;var a=o.length;_>a/2&&(_=a/2);for(var r=0;r<_;++r){var m=parseInt(o.substr(r*2,2),16);if(po(m))return r;e[n+r]=m}return r}function an(e,o,n,_){return V(no(o,e.length-n),e,n,_)}function rn(e,o,n,_){return V(bn(o),e,n,_)}function tn(e,o,n,_){return V(Eo(o),e,n,_)}function mn(e,o,n,_){return V(xn(o,e.length-n),e,n,_)}t.prototype.write=function(o,n,_,p){if(n===void 0)p="utf8",_=this.length,n=0;else if(_===void 0&&typeof n=="string")p=n,_=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(_)?(_=_>>>0,p===void 0&&(p="utf8")):(p=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-n;if((_===void 0||_>a)&&(_=a),o.length>0&&(_<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");for(var r=!1;;)switch(p){case"hex":return pn(this,o,n,_);case"utf8":case"utf-8":return an(this,o,n,_);case"ascii":case"latin1":case"binary":return rn(this,o,n,_);case"base64":return tn(this,o,n,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mn(this,o,n,_);default:if(r)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),r=!0}};t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function cn(e,o,n){return o===0&&n===e.length?Z.fromByteArray(e):Z.fromByteArray(e.slice(o,n))}function wo(e,o,n){n=Math.min(e.length,n);for(var _=[],p=o;p<n;){var a=e[p],r=null,m=a>239?4:a>223?3:a>191?2:1;if(p+m<=n){var c,i,l,d;switch(m){case 1:a<128&&(r=a);break;case 2:c=e[p+1],(c&192)===128&&(d=(a&31)<<6|c&63,d>127&&(r=d));break;case 3:c=e[p+1],i=e[p+2],(c&192)===128&&(i&192)===128&&(d=(a&15)<<12|(c&63)<<6|i&63,d>2047&&(d<55296||d>57343)&&(r=d));break;case 4:c=e[p+1],i=e[p+2],l=e[p+3],(c&192)===128&&(i&192)===128&&(l&192)===128&&(d=(a&15)<<18|(c&63)<<12|(i&63)<<6|l&63,d>65535&&d<1114112&&(r=d))}}r===null?(r=65533,m=1):r>65535&&(r-=65536,_.push(r>>>10&1023|55296),r=56320|r&1023),_.push(r),p+=m}return dn(_)}var fo=4096;function dn(e){var o=e.length;if(o<=fo)return String.fromCharCode.apply(String,e);for(var n="",_=0;_<o;)n+=String.fromCharCode.apply(String,e.slice(_,_+=fo));return n}function ln(e,o,n){var _="";n=Math.min(e.length,n);for(var p=o;p<n;++p)_+=String.fromCharCode(e[p]&127);return _}function sn(e,o,n){var _="";n=Math.min(e.length,n);for(var p=o;p<n;++p)_+=String.fromCharCode(e[p]);return _}function gn(e,o,n){var _=e.length;(!o||o<0)&&(o=0),(!n||n<0||n>_)&&(n=_);for(var p="",a=o;a<n;++a)p+=wn[e[a]];return p}function fn(e,o,n){for(var _=e.slice(o,n),p="",a=0;a<_.length-1;a+=2)p+=String.fromCharCode(_[a]+_[a+1]*256);return p}t.prototype.slice=function(o,n){var _=this.length;o=~~o,n=n===void 0?_:~~n,o<0?(o+=_,o<0&&(o=0)):o>_&&(o=_),n<0?(n+=_,n<0&&(n=0)):n>_&&(n=_),n<o&&(n=o);var p=this.subarray(o,n);return Object.setPrototypeOf(p,t.prototype),p};function f(e,o,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+o>n)throw new RangeError("Trying to access beyond buffer length")}t.prototype.readUintLE=t.prototype.readUIntLE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=this[o],a=1,r=0;++r<n&&(a*=256);)p+=this[o+r]*a;return p};t.prototype.readUintBE=t.prototype.readUIntBE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=this[o+--n],a=1;n>0&&(a*=256);)p+=this[o+--n]*a;return p};t.prototype.readUint8=t.prototype.readUInt8=function(o,n){return o=o>>>0,n||f(o,1,this.length),this[o]};t.prototype.readUint16LE=t.prototype.readUInt16LE=function(o,n){return o=o>>>0,n||f(o,2,this.length),this[o]|this[o+1]<<8};t.prototype.readUint16BE=t.prototype.readUInt16BE=function(o,n){return o=o>>>0,n||f(o,2,this.length),this[o]<<8|this[o+1]};t.prototype.readUint32LE=t.prototype.readUInt32LE=function(o,n){return o=o>>>0,n||f(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};t.prototype.readUint32BE=t.prototype.readUInt32BE=function(o,n){return o=o>>>0,n||f(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};t.prototype.readIntLE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=this[o],a=1,r=0;++r<n&&(a*=256);)p+=this[o+r]*a;return a*=128,p>=a&&(p-=Math.pow(2,8*n)),p};t.prototype.readIntBE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=n,a=1,r=this[o+--p];p>0&&(a*=256);)r+=this[o+--p]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*n)),r};t.prototype.readInt8=function(o,n){return o=o>>>0,n||f(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};t.prototype.readInt16LE=function(o,n){o=o>>>0,n||f(o,2,this.length);var _=this[o]|this[o+1]<<8;return _&32768?_|4294901760:_};t.prototype.readInt16BE=function(o,n){o=o>>>0,n||f(o,2,this.length);var _=this[o+1]|this[o]<<8;return _&32768?_|4294901760:_};t.prototype.readInt32LE=function(o,n){return o=o>>>0,n||f(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};t.prototype.readInt32BE=function(o,n){return o=o>>>0,n||f(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};t.prototype.readFloatLE=function(o,n){return o=o>>>0,n||f(o,4,this.length),R.read(this,o,!0,23,4)};t.prototype.readFloatBE=function(o,n){return o=o>>>0,n||f(o,4,this.length),R.read(this,o,!1,23,4)};t.prototype.readDoubleLE=function(o,n){return o=o>>>0,n||f(o,8,this.length),R.read(this,o,!0,52,8)};t.prototype.readDoubleBE=function(o,n){return o=o>>>0,n||f(o,8,this.length),R.read(this,o,!1,52,8)};function h(e,o,n,_,p,a){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>p||o<a)throw new RangeError('"value" argument is out of bounds');if(n+_>e.length)throw new RangeError("Index out of range")}t.prototype.writeUintLE=t.prototype.writeUIntLE=function(o,n,_,p){if(o=+o,n=n>>>0,_=_>>>0,!p){var a=Math.pow(2,8*_)-1;h(this,o,n,_,a,0)}var r=1,m=0;for(this[n]=o&255;++m<_&&(r*=256);)this[n+m]=o/r&255;return n+_};t.prototype.writeUintBE=t.prototype.writeUIntBE=function(o,n,_,p){if(o=+o,n=n>>>0,_=_>>>0,!p){var a=Math.pow(2,8*_)-1;h(this,o,n,_,a,0)}var r=_-1,m=1;for(this[n+r]=o&255;--r>=0&&(m*=256);)this[n+r]=o/m&255;return n+_};t.prototype.writeUint8=t.prototype.writeUInt8=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,1,255,0),this[n]=o&255,n+1};t.prototype.writeUint16LE=t.prototype.writeUInt16LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,65535,0),this[n]=o&255,this[n+1]=o>>>8,n+2};t.prototype.writeUint16BE=t.prototype.writeUInt16BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,65535,0),this[n]=o>>>8,this[n+1]=o&255,n+2};t.prototype.writeUint32LE=t.prototype.writeUInt32LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,4294967295,0),this[n+3]=o>>>24,this[n+2]=o>>>16,this[n+1]=o>>>8,this[n]=o&255,n+4};t.prototype.writeUint32BE=t.prototype.writeUInt32BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,4294967295,0),this[n]=o>>>24,this[n+1]=o>>>16,this[n+2]=o>>>8,this[n+3]=o&255,n+4};t.prototype.writeIntLE=function(o,n,_,p){if(o=+o,n=n>>>0,!p){var a=Math.pow(2,8*_-1);h(this,o,n,_,a-1,-a)}var r=0,m=1,c=0;for(this[n]=o&255;++r<_&&(m*=256);)o<0&&c===0&&this[n+r-1]!==0&&(c=1),this[n+r]=(o/m>>0)-c&255;return n+_};t.prototype.writeIntBE=function(o,n,_,p){if(o=+o,n=n>>>0,!p){var a=Math.pow(2,8*_-1);h(this,o,n,_,a-1,-a)}var r=_-1,m=1,c=0;for(this[n+r]=o&255;--r>=0&&(m*=256);)o<0&&c===0&&this[n+r+1]!==0&&(c=1),this[n+r]=(o/m>>0)-c&255;return n+_};t.prototype.writeInt8=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,1,127,-128),o<0&&(o=255+o+1),this[n]=o&255,n+1};t.prototype.writeInt16LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,32767,-32768),this[n]=o&255,this[n+1]=o>>>8,n+2};t.prototype.writeInt16BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,32767,-32768),this[n]=o>>>8,this[n+1]=o&255,n+2};t.prototype.writeInt32LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,2147483647,-2147483648),this[n]=o&255,this[n+1]=o>>>8,this[n+2]=o>>>16,this[n+3]=o>>>24,n+4};t.prototype.writeInt32BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[n]=o>>>24,this[n+1]=o>>>16,this[n+2]=o>>>8,this[n+3]=o&255,n+4};function yo(e,o,n,_,p,a){if(n+_>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ko(e,o,n,_,p){return o=+o,n=n>>>0,p||yo(e,o,n,4,34028234663852886e22,-34028234663852886e22),R.write(e,o,n,_,23,4),n+4}t.prototype.writeFloatLE=function(o,n,_){return ko(this,o,n,!0,_)};t.prototype.writeFloatBE=function(o,n,_){return ko(this,o,n,!1,_)};function vo(e,o,n,_,p){return o=+o,n=n>>>0,p||yo(e,o,n,8,17976931348623157e292,-17976931348623157e292),R.write(e,o,n,_,52,8),n+8}t.prototype.writeDoubleLE=function(o,n,_){return vo(this,o,n,!0,_)};t.prototype.writeDoubleBE=function(o,n,_){return vo(this,o,n,!1,_)};t.prototype.copy=function(o,n,_,p){if(!t.isBuffer(o))throw new TypeError("argument should be a Buffer");if(_||(_=0),!p&&p!==0&&(p=this.length),n>=o.length&&(n=o.length),n||(n=0),p>0&&p<_&&(p=_),p===_||o.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),o.length-n<p-_&&(p=o.length-n+_);var a=p-_;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,_,p):Uint8Array.prototype.set.call(o,this.subarray(_,p),n),a};t.prototype.fill=function(o,n,_,p){if(typeof o=="string"){if(typeof n=="string"?(p=n,n=0,_=this.length):typeof _=="string"&&(p=_,_=this.length),p!==void 0&&typeof p!="string")throw new TypeError("encoding must be a string");if(typeof p=="string"&&!t.isEncoding(p))throw new TypeError("Unknown encoding: "+p);if(o.length===1){var a=o.charCodeAt(0);(p==="utf8"&&a<128||p==="latin1")&&(o=a)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(n<0||this.length<n||this.length<_)throw new RangeError("Out of range index");if(_<=n)return this;n=n>>>0,_=_===void 0?this.length:_>>>0,o||(o=0);var r;if(typeof o=="number")for(r=n;r<_;++r)this[r]=o;else{var m=t.isBuffer(o)?o:t.from(o,p),c=m.length;if(c===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(r=0;r<_-n;++r)this[r+n]=m[r%c]}return this};var hn=/[^+/0-9A-Za-z-_]/g;function un(e){if(e=e.split("=")[0],e=e.trim().replace(hn,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function no(e,o){o=o||1/0;for(var n,_=e.length,p=null,a=[],r=0;r<_;++r){if(n=e.charCodeAt(r),n>55295&&n<57344){if(!p){if(n>56319){(o-=3)>-1&&a.push(239,191,189);continue}else if(r+1===_){(o-=3)>-1&&a.push(239,191,189);continue}p=n;continue}if(n<56320){(o-=3)>-1&&a.push(239,191,189),p=n;continue}n=(p-55296<<10|n-56320)+65536}else p&&(o-=3)>-1&&a.push(239,191,189);if(p=null,n<128){if((o-=1)<0)break;a.push(n)}else if(n<2048){if((o-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((o-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((o-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return a}function bn(e){for(var o=[],n=0;n<e.length;++n)o.push(e.charCodeAt(n)&255);return o}function xn(e,o){for(var n,_,p,a=[],r=0;r<e.length&&!((o-=2)<0);++r)n=e.charCodeAt(r),_=n>>8,p=n%256,a.push(p),a.push(_);return a}function Eo(e){return Z.toByteArray(un(e))}function V(e,o,n,_){for(var p=0;p<_&&!(p+n>=o.length||p>=e.length);++p)o[p+n]=e[p];return p}function E(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function po(e){return e!==e}var wn=function(){for(var e="0123456789abcdef",o=new Array(256),n=0;n<16;++n)for(var _=n*16,p=0;p<16;++p)o[_+p]=e[n]+e[p];return o}()});var Io=q((Cn,Lo)=>{s();var g=Lo.exports={},S,F;function ao(){throw new Error("setTimeout has not been defined")}function ro(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?S=setTimeout:S=ao}catch(e){S=ao}try{typeof clearTimeout=="function"?F=clearTimeout:F=ro}catch(e){F=ro}})();function Fo(e){if(S===setTimeout)return setTimeout(e,0);if((S===ao||!S)&&setTimeout)return S=setTimeout,setTimeout(e,0);try{return S(e,0)}catch(o){try{return S.call(null,e,0)}catch(n){return S.call(this,e,0)}}}function yn(e){if(F===clearTimeout)return clearTimeout(e);if((F===ro||!F)&&clearTimeout)return F=clearTimeout,clearTimeout(e);try{return F(e)}catch(o){try{return F.call(null,e)}catch(n){return F.call(this,e)}}}var L=[],D=!1,N,J=-1;function kn(){!D||!N||(D=!1,N.length?L=N.concat(L):J=-1,L.length&&Bo())}function Bo(){if(!D){var e=Fo(kn);D=!0;for(var o=L.length;o;){for(N=L,L=[];++J<o;)N&&N[J].run();J=-1,o=L.length}N=null,D=!1,yn(e)}}g.nextTick=function(e){var o=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)o[n-1]=arguments[n];L.push(new Ao(e,o)),L.length===1&&!D&&Fo(Bo)};function Ao(e,o){this.fun=e,this.array=o}Ao.prototype.run=function(){this.fun.apply(null,this.array)};g.title="browser";g.browser=!0;g.env={};g.argv=[];g.version="";g.versions={};function I(){}g.on=I;g.addListener=I;g.once=I;g.off=I;g.removeListener=I;g.removeAllListeners=I;g.emit=I;g.prependListener=I;g.prependOnceListener=I;g.listeners=function(e){return[]};g.binding=function(e){throw new Error("process.binding is not supported")};g.cwd=function(){return"/"};g.chdir=function(e){throw new Error("process.chdir is not supported")};g.umask=function(){return 0}});var k,v,Nn,s=Xo(()=>{k=M(So()),v=M(Io()),Nn=function(e){function o(){var _=this||self;return delete e.prototype.__magic__,_}if(typeof globalThis=="object")return globalThis;if(this)return o();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:o});var n=__magic__;return n}(Object)});var Bn={};Po(Bn,{LedgerLoading:()=>Fn});module.exports=Ho(Bn);s();s();var W=M(require("react")),Uo=require("@fortawesome/free-solid-svg-icons"),O=M(require("classnames"));s();var j=M(require("react")),Co=require("@fortawesome/react-fontawesome"),X=M(require("classnames"));s();var vn=`.dapp-core-component__main__link-style {
1
+ "use strict";var Ro=Object.create;var q=Object.defineProperty;var zo=Object.getOwnPropertyDescriptor;var Do=Object.getOwnPropertyNames;var jo=Object.getPrototypeOf,Wo=Object.prototype.hasOwnProperty;var Xo=(e,o)=>()=>(e&&(o=e(e=0)),o);var G=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),Po=(e,o)=>{for(var n in o)q(e,n,{get:o[n],enumerable:!0})},to=(e,o,n,_)=>{if(o&&typeof o=="object"||typeof o=="function")for(let p of Do(o))!Wo.call(e,p)&&p!==n&&q(e,p,{get:()=>o[p],enumerable:!(_=zo(o,p))||_.enumerable});return e};var M=(e,o,n)=>(n=e!=null?Ro(jo(e)):{},to(o||!e||!e.__esModule?q(n,"default",{value:e,enumerable:!0}):n,e)),Ho=e=>to(q({},"__esModule",{value:!0}),e);var io=G(Y=>{"use strict";s();Y.byteLength=Go;Y.toByteArray=Vo;Y.fromByteArray=Qo;var y=[],b=[],qo=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(T=0,mo=Q.length;T<mo;++T)y[T]=Q[T],b[Q.charCodeAt(T)]=T;var T,mo;b["-".charCodeAt(0)]=62;b["_".charCodeAt(0)]=63;function co(e){var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=o);var _=n===o?0:4-n%4;return[n,_]}function Go(e){var o=co(e),n=o[0],_=o[1];return(n+_)*3/4-_}function Yo(e,o,n){return(o+n)*3/4-n}function Vo(e){var o,n=co(e),_=n[0],p=n[1],a=new qo(Yo(e,_,p)),r=0,m=p>0?_-4:_,c;for(c=0;c<m;c+=4)o=b[e.charCodeAt(c)]<<18|b[e.charCodeAt(c+1)]<<12|b[e.charCodeAt(c+2)]<<6|b[e.charCodeAt(c+3)],a[r++]=o>>16&255,a[r++]=o>>8&255,a[r++]=o&255;return p===2&&(o=b[e.charCodeAt(c)]<<2|b[e.charCodeAt(c+1)]>>4,a[r++]=o&255),p===1&&(o=b[e.charCodeAt(c)]<<10|b[e.charCodeAt(c+1)]<<4|b[e.charCodeAt(c+2)]>>2,a[r++]=o>>8&255,a[r++]=o&255),a}function Jo(e){return y[e>>18&63]+y[e>>12&63]+y[e>>6&63]+y[e&63]}function Oo(e,o,n){for(var _,p=[],a=o;a<n;a+=3)_=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),p.push(Jo(_));return p.join("")}function Qo(e){for(var o,n=e.length,_=n%3,p=[],a=16383,r=0,m=n-_;r<m;r+=a)p.push(Oo(e,r,r+a>m?m:r+a));return _===1?(o=e[n-1],p.push(y[o>>2]+y[o<<4&63]+"==")):_===2&&(o=(e[n-2]<<8)+e[n-1],p.push(y[o>>10]+y[o>>4&63]+y[o<<2&63]+"=")),p.join("")}});var lo=G(K=>{s();K.read=function(e,o,n,_,p){var a,r,m=p*8-_-1,c=(1<<m)-1,i=c>>1,l=-7,d=n?p-1:0,x=n?-1:1,u=e[o+d];for(d+=x,a=u&(1<<-l)-1,u>>=-l,l+=m;l>0;a=a*256+e[o+d],d+=x,l-=8);for(r=a&(1<<-l)-1,a>>=-l,l+=_;l>0;r=r*256+e[o+d],d+=x,l-=8);if(a===0)a=1-i;else{if(a===c)return r?NaN:(u?-1:1)*(1/0);r=r+Math.pow(2,_),a=a-i}return(u?-1:1)*r*Math.pow(2,a-_)};K.write=function(e,o,n,_,p,a){var r,m,c,i=a*8-p-1,l=(1<<i)-1,d=l>>1,x=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=_?0:a-1,U=_?1:-1,Mo=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(m=isNaN(o)?1:0,r=l):(r=Math.floor(Math.log(o)/Math.LN2),o*(c=Math.pow(2,-r))<1&&(r--,c*=2),r+d>=1?o+=x/c:o+=x*Math.pow(2,1-d),o*c>=2&&(r++,c/=2),r+d>=l?(m=0,r=l):r+d>=1?(m=(o*c-1)*Math.pow(2,p),r=r+d):(m=o*Math.pow(2,d-1)*Math.pow(2,p),r=0));p>=8;e[n+u]=m&255,u+=U,m/=256,p-=8);for(r=r<<p|m,i+=p;i>0;e[n+u]=r&255,u+=U,r/=256,i-=8);e[n+u-U]|=Mo*128}});var So=G(z=>{"use strict";s();var Z=io(),R=lo(),so=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;z.Buffer=t;z.SlowBuffer=en;z.INSPECT_MAX_BYTES=50;var V=2147483647;z.kMaxLength=V;t.TYPED_ARRAY_SUPPORT=Ko();!t.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 Ko(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),e.foo()===42}catch(n){return!1}}Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(!!t.isBuffer(this))return this.buffer}});Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(!!t.isBuffer(this))return this.byteOffset}});function A(e){if(e>V)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,t.prototype),o}function t(e,o,n){if(typeof e=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return eo(e)}return ho(e,o,n)}t.poolSize=8192;function ho(e,o,n){if(typeof e=="string")return $o(e,o);if(ArrayBuffer.isView(e))return on(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(E(e,ArrayBuffer)||e&&E(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(E(e,SharedArrayBuffer)||e&&E(e.buffer,SharedArrayBuffer)))return oo(e,o,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _=e.valueOf&&e.valueOf();if(_!=null&&_!==e)return t.from(_,o,n);var p=nn(e);if(p)return p;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return t.from(e[Symbol.toPrimitive]("string"),o,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}t.from=function(e,o,n){return ho(e,o,n)};Object.setPrototypeOf(t.prototype,Uint8Array.prototype);Object.setPrototypeOf(t,Uint8Array);function uo(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Zo(e,o,n){return uo(e),e<=0?A(e):o!==void 0?typeof n=="string"?A(e).fill(o,n):A(e).fill(o):A(e)}t.alloc=function(e,o,n){return Zo(e,o,n)};function eo(e){return uo(e),A(e<0?0:_o(e)|0)}t.allocUnsafe=function(e){return eo(e)};t.allocUnsafeSlow=function(e){return eo(e)};function $o(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!t.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var n=bo(e,o)|0,_=A(n),p=_.write(e,o);return p!==n&&(_=_.slice(0,p)),_}function $(e){for(var o=e.length<0?0:_o(e.length)|0,n=A(o),_=0;_<o;_+=1)n[_]=e[_]&255;return n}function on(e){if(E(e,Uint8Array)){var o=new Uint8Array(e);return oo(o.buffer,o.byteOffset,o.byteLength)}return $(e)}function oo(e,o,n){if(o<0||e.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<o+(n||0))throw new RangeError('"length" is outside of buffer bounds');var _;return o===void 0&&n===void 0?_=new Uint8Array(e):n===void 0?_=new Uint8Array(e,o):_=new Uint8Array(e,o,n),Object.setPrototypeOf(_,t.prototype),_}function nn(e){if(t.isBuffer(e)){var o=_o(e.length)|0,n=A(o);return n.length===0||e.copy(n,0,0,o),n}if(e.length!==void 0)return typeof e.length!="number"||po(e.length)?A(0):$(e);if(e.type==="Buffer"&&Array.isArray(e.data))return $(e.data)}function _o(e){if(e>=V)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V.toString(16)+" bytes");return e|0}function en(e){return+e!=e&&(e=0),t.alloc(+e)}t.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==t.prototype};t.compare=function(o,n){if(E(o,Uint8Array)&&(o=t.from(o,o.offset,o.byteLength)),E(n,Uint8Array)&&(n=t.from(n,n.offset,n.byteLength)),!t.isBuffer(o)||!t.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===n)return 0;for(var _=o.length,p=n.length,a=0,r=Math.min(_,p);a<r;++a)if(o[a]!==n[a]){_=o[a],p=n[a];break}return _<p?-1:p<_?1:0};t.isEncoding=function(o){switch(String(o).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}};t.concat=function(o,n){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return t.alloc(0);var _;if(n===void 0)for(n=0,_=0;_<o.length;++_)n+=o[_].length;var p=t.allocUnsafe(n),a=0;for(_=0;_<o.length;++_){var r=o[_];if(E(r,Uint8Array))a+r.length>p.length?t.from(r).copy(p,a):Uint8Array.prototype.set.call(p,r,a);else if(t.isBuffer(r))r.copy(p,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=r.length}return p};function bo(e,o){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||E(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&n===0)return 0;for(var p=!1;;)switch(o){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return no(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Eo(e).length;default:if(p)return _?-1:no(e).length;o=(""+o).toLowerCase(),p=!0}}t.byteLength=bo;function _n(e,o,n){var _=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,o>>>=0,n<=o))return"";for(e||(e="utf8");;)switch(e){case"hex":return gn(this,o,n);case"utf8":case"utf-8":return wo(this,o,n);case"ascii":return ln(this,o,n);case"latin1":case"binary":return sn(this,o,n);case"base64":return cn(this,o,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fn(this,o,n);default:if(_)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),_=!0}}t.prototype._isBuffer=!0;function C(e,o,n){var _=e[o];e[o]=e[n],e[n]=_}t.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<o;n+=2)C(this,n,n+1);return this};t.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<o;n+=4)C(this,n,n+3),C(this,n+1,n+2);return this};t.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<o;n+=8)C(this,n,n+7),C(this,n+1,n+6),C(this,n+2,n+5),C(this,n+3,n+4);return this};t.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?wo(this,0,o):_n.apply(this,arguments)};t.prototype.toLocaleString=t.prototype.toString;t.prototype.equals=function(o){if(!t.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:t.compare(this,o)===0};t.prototype.inspect=function(){var o="",n=z.INSPECT_MAX_BYTES;return o=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(o+=" ... "),"<Buffer "+o+">"};so&&(t.prototype[so]=t.prototype.inspect);t.prototype.compare=function(o,n,_,p,a){if(E(o,Uint8Array)&&(o=t.from(o,o.offset,o.byteLength)),!t.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(n===void 0&&(n=0),_===void 0&&(_=o?o.length:0),p===void 0&&(p=0),a===void 0&&(a=this.length),n<0||_>o.length||p<0||a>this.length)throw new RangeError("out of range index");if(p>=a&&n>=_)return 0;if(p>=a)return-1;if(n>=_)return 1;if(n>>>=0,_>>>=0,p>>>=0,a>>>=0,this===o)return 0;for(var r=a-p,m=_-n,c=Math.min(r,m),i=this.slice(p,a),l=o.slice(n,_),d=0;d<c;++d)if(i[d]!==l[d]){r=i[d],m=l[d];break}return r<m?-1:m<r?1:0};function xo(e,o,n,_,p){if(e.length===0)return-1;if(typeof n=="string"?(_=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,po(n)&&(n=p?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(p)return-1;n=e.length-1}else if(n<0)if(p)n=0;else return-1;if(typeof o=="string"&&(o=t.from(o,_)),t.isBuffer(o))return o.length===0?-1:go(e,o,n,_,p);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(e,o,n):Uint8Array.prototype.lastIndexOf.call(e,o,n):go(e,[o],n,_,p);throw new TypeError("val must be string, number or Buffer")}function go(e,o,n,_,p){var a=1,r=e.length,m=o.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(e.length<2||o.length<2)return-1;a=2,r/=2,m/=2,n/=2}function c(u,U){return a===1?u[U]:u.readUInt16BE(U*a)}var i;if(p){var l=-1;for(i=n;i<r;i++)if(c(e,i)===c(o,l===-1?0:i-l)){if(l===-1&&(l=i),i-l+1===m)return l*a}else l!==-1&&(i-=i-l),l=-1}else for(n+m>r&&(n=r-m),i=n;i>=0;i--){for(var d=!0,x=0;x<m;x++)if(c(e,i+x)!==c(o,x)){d=!1;break}if(d)return i}return-1}t.prototype.includes=function(o,n,_){return this.indexOf(o,n,_)!==-1};t.prototype.indexOf=function(o,n,_){return xo(this,o,n,_,!0)};t.prototype.lastIndexOf=function(o,n,_){return xo(this,o,n,_,!1)};function pn(e,o,n,_){n=Number(n)||0;var p=e.length-n;_?(_=Number(_),_>p&&(_=p)):_=p;var a=o.length;_>a/2&&(_=a/2);for(var r=0;r<_;++r){var m=parseInt(o.substr(r*2,2),16);if(po(m))return r;e[n+r]=m}return r}function an(e,o,n,_){return J(no(o,e.length-n),e,n,_)}function rn(e,o,n,_){return J(bn(o),e,n,_)}function tn(e,o,n,_){return J(Eo(o),e,n,_)}function mn(e,o,n,_){return J(xn(o,e.length-n),e,n,_)}t.prototype.write=function(o,n,_,p){if(n===void 0)p="utf8",_=this.length,n=0;else if(_===void 0&&typeof n=="string")p=n,_=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(_)?(_=_>>>0,p===void 0&&(p="utf8")):(p=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-n;if((_===void 0||_>a)&&(_=a),o.length>0&&(_<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");for(var r=!1;;)switch(p){case"hex":return pn(this,o,n,_);case"utf8":case"utf-8":return an(this,o,n,_);case"ascii":case"latin1":case"binary":return rn(this,o,n,_);case"base64":return tn(this,o,n,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mn(this,o,n,_);default:if(r)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),r=!0}};t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function cn(e,o,n){return o===0&&n===e.length?Z.fromByteArray(e):Z.fromByteArray(e.slice(o,n))}function wo(e,o,n){n=Math.min(e.length,n);for(var _=[],p=o;p<n;){var a=e[p],r=null,m=a>239?4:a>223?3:a>191?2:1;if(p+m<=n){var c,i,l,d;switch(m){case 1:a<128&&(r=a);break;case 2:c=e[p+1],(c&192)===128&&(d=(a&31)<<6|c&63,d>127&&(r=d));break;case 3:c=e[p+1],i=e[p+2],(c&192)===128&&(i&192)===128&&(d=(a&15)<<12|(c&63)<<6|i&63,d>2047&&(d<55296||d>57343)&&(r=d));break;case 4:c=e[p+1],i=e[p+2],l=e[p+3],(c&192)===128&&(i&192)===128&&(l&192)===128&&(d=(a&15)<<18|(c&63)<<12|(i&63)<<6|l&63,d>65535&&d<1114112&&(r=d))}}r===null?(r=65533,m=1):r>65535&&(r-=65536,_.push(r>>>10&1023|55296),r=56320|r&1023),_.push(r),p+=m}return dn(_)}var fo=4096;function dn(e){var o=e.length;if(o<=fo)return String.fromCharCode.apply(String,e);for(var n="",_=0;_<o;)n+=String.fromCharCode.apply(String,e.slice(_,_+=fo));return n}function ln(e,o,n){var _="";n=Math.min(e.length,n);for(var p=o;p<n;++p)_+=String.fromCharCode(e[p]&127);return _}function sn(e,o,n){var _="";n=Math.min(e.length,n);for(var p=o;p<n;++p)_+=String.fromCharCode(e[p]);return _}function gn(e,o,n){var _=e.length;(!o||o<0)&&(o=0),(!n||n<0||n>_)&&(n=_);for(var p="",a=o;a<n;++a)p+=wn[e[a]];return p}function fn(e,o,n){for(var _=e.slice(o,n),p="",a=0;a<_.length-1;a+=2)p+=String.fromCharCode(_[a]+_[a+1]*256);return p}t.prototype.slice=function(o,n){var _=this.length;o=~~o,n=n===void 0?_:~~n,o<0?(o+=_,o<0&&(o=0)):o>_&&(o=_),n<0?(n+=_,n<0&&(n=0)):n>_&&(n=_),n<o&&(n=o);var p=this.subarray(o,n);return Object.setPrototypeOf(p,t.prototype),p};function f(e,o,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+o>n)throw new RangeError("Trying to access beyond buffer length")}t.prototype.readUintLE=t.prototype.readUIntLE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=this[o],a=1,r=0;++r<n&&(a*=256);)p+=this[o+r]*a;return p};t.prototype.readUintBE=t.prototype.readUIntBE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=this[o+--n],a=1;n>0&&(a*=256);)p+=this[o+--n]*a;return p};t.prototype.readUint8=t.prototype.readUInt8=function(o,n){return o=o>>>0,n||f(o,1,this.length),this[o]};t.prototype.readUint16LE=t.prototype.readUInt16LE=function(o,n){return o=o>>>0,n||f(o,2,this.length),this[o]|this[o+1]<<8};t.prototype.readUint16BE=t.prototype.readUInt16BE=function(o,n){return o=o>>>0,n||f(o,2,this.length),this[o]<<8|this[o+1]};t.prototype.readUint32LE=t.prototype.readUInt32LE=function(o,n){return o=o>>>0,n||f(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};t.prototype.readUint32BE=t.prototype.readUInt32BE=function(o,n){return o=o>>>0,n||f(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};t.prototype.readIntLE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=this[o],a=1,r=0;++r<n&&(a*=256);)p+=this[o+r]*a;return a*=128,p>=a&&(p-=Math.pow(2,8*n)),p};t.prototype.readIntBE=function(o,n,_){o=o>>>0,n=n>>>0,_||f(o,n,this.length);for(var p=n,a=1,r=this[o+--p];p>0&&(a*=256);)r+=this[o+--p]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*n)),r};t.prototype.readInt8=function(o,n){return o=o>>>0,n||f(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};t.prototype.readInt16LE=function(o,n){o=o>>>0,n||f(o,2,this.length);var _=this[o]|this[o+1]<<8;return _&32768?_|4294901760:_};t.prototype.readInt16BE=function(o,n){o=o>>>0,n||f(o,2,this.length);var _=this[o+1]|this[o]<<8;return _&32768?_|4294901760:_};t.prototype.readInt32LE=function(o,n){return o=o>>>0,n||f(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};t.prototype.readInt32BE=function(o,n){return o=o>>>0,n||f(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};t.prototype.readFloatLE=function(o,n){return o=o>>>0,n||f(o,4,this.length),R.read(this,o,!0,23,4)};t.prototype.readFloatBE=function(o,n){return o=o>>>0,n||f(o,4,this.length),R.read(this,o,!1,23,4)};t.prototype.readDoubleLE=function(o,n){return o=o>>>0,n||f(o,8,this.length),R.read(this,o,!0,52,8)};t.prototype.readDoubleBE=function(o,n){return o=o>>>0,n||f(o,8,this.length),R.read(this,o,!1,52,8)};function h(e,o,n,_,p,a){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>p||o<a)throw new RangeError('"value" argument is out of bounds');if(n+_>e.length)throw new RangeError("Index out of range")}t.prototype.writeUintLE=t.prototype.writeUIntLE=function(o,n,_,p){if(o=+o,n=n>>>0,_=_>>>0,!p){var a=Math.pow(2,8*_)-1;h(this,o,n,_,a,0)}var r=1,m=0;for(this[n]=o&255;++m<_&&(r*=256);)this[n+m]=o/r&255;return n+_};t.prototype.writeUintBE=t.prototype.writeUIntBE=function(o,n,_,p){if(o=+o,n=n>>>0,_=_>>>0,!p){var a=Math.pow(2,8*_)-1;h(this,o,n,_,a,0)}var r=_-1,m=1;for(this[n+r]=o&255;--r>=0&&(m*=256);)this[n+r]=o/m&255;return n+_};t.prototype.writeUint8=t.prototype.writeUInt8=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,1,255,0),this[n]=o&255,n+1};t.prototype.writeUint16LE=t.prototype.writeUInt16LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,65535,0),this[n]=o&255,this[n+1]=o>>>8,n+2};t.prototype.writeUint16BE=t.prototype.writeUInt16BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,65535,0),this[n]=o>>>8,this[n+1]=o&255,n+2};t.prototype.writeUint32LE=t.prototype.writeUInt32LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,4294967295,0),this[n+3]=o>>>24,this[n+2]=o>>>16,this[n+1]=o>>>8,this[n]=o&255,n+4};t.prototype.writeUint32BE=t.prototype.writeUInt32BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,4294967295,0),this[n]=o>>>24,this[n+1]=o>>>16,this[n+2]=o>>>8,this[n+3]=o&255,n+4};t.prototype.writeIntLE=function(o,n,_,p){if(o=+o,n=n>>>0,!p){var a=Math.pow(2,8*_-1);h(this,o,n,_,a-1,-a)}var r=0,m=1,c=0;for(this[n]=o&255;++r<_&&(m*=256);)o<0&&c===0&&this[n+r-1]!==0&&(c=1),this[n+r]=(o/m>>0)-c&255;return n+_};t.prototype.writeIntBE=function(o,n,_,p){if(o=+o,n=n>>>0,!p){var a=Math.pow(2,8*_-1);h(this,o,n,_,a-1,-a)}var r=_-1,m=1,c=0;for(this[n+r]=o&255;--r>=0&&(m*=256);)o<0&&c===0&&this[n+r+1]!==0&&(c=1),this[n+r]=(o/m>>0)-c&255;return n+_};t.prototype.writeInt8=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,1,127,-128),o<0&&(o=255+o+1),this[n]=o&255,n+1};t.prototype.writeInt16LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,32767,-32768),this[n]=o&255,this[n+1]=o>>>8,n+2};t.prototype.writeInt16BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,2,32767,-32768),this[n]=o>>>8,this[n+1]=o&255,n+2};t.prototype.writeInt32LE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,2147483647,-2147483648),this[n]=o&255,this[n+1]=o>>>8,this[n+2]=o>>>16,this[n+3]=o>>>24,n+4};t.prototype.writeInt32BE=function(o,n,_){return o=+o,n=n>>>0,_||h(this,o,n,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[n]=o>>>24,this[n+1]=o>>>16,this[n+2]=o>>>8,this[n+3]=o&255,n+4};function yo(e,o,n,_,p,a){if(n+_>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ko(e,o,n,_,p){return o=+o,n=n>>>0,p||yo(e,o,n,4,34028234663852886e22,-34028234663852886e22),R.write(e,o,n,_,23,4),n+4}t.prototype.writeFloatLE=function(o,n,_){return ko(this,o,n,!0,_)};t.prototype.writeFloatBE=function(o,n,_){return ko(this,o,n,!1,_)};function vo(e,o,n,_,p){return o=+o,n=n>>>0,p||yo(e,o,n,8,17976931348623157e292,-17976931348623157e292),R.write(e,o,n,_,52,8),n+8}t.prototype.writeDoubleLE=function(o,n,_){return vo(this,o,n,!0,_)};t.prototype.writeDoubleBE=function(o,n,_){return vo(this,o,n,!1,_)};t.prototype.copy=function(o,n,_,p){if(!t.isBuffer(o))throw new TypeError("argument should be a Buffer");if(_||(_=0),!p&&p!==0&&(p=this.length),n>=o.length&&(n=o.length),n||(n=0),p>0&&p<_&&(p=_),p===_||o.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),o.length-n<p-_&&(p=o.length-n+_);var a=p-_;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,_,p):Uint8Array.prototype.set.call(o,this.subarray(_,p),n),a};t.prototype.fill=function(o,n,_,p){if(typeof o=="string"){if(typeof n=="string"?(p=n,n=0,_=this.length):typeof _=="string"&&(p=_,_=this.length),p!==void 0&&typeof p!="string")throw new TypeError("encoding must be a string");if(typeof p=="string"&&!t.isEncoding(p))throw new TypeError("Unknown encoding: "+p);if(o.length===1){var a=o.charCodeAt(0);(p==="utf8"&&a<128||p==="latin1")&&(o=a)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(n<0||this.length<n||this.length<_)throw new RangeError("Out of range index");if(_<=n)return this;n=n>>>0,_=_===void 0?this.length:_>>>0,o||(o=0);var r;if(typeof o=="number")for(r=n;r<_;++r)this[r]=o;else{var m=t.isBuffer(o)?o:t.from(o,p),c=m.length;if(c===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(r=0;r<_-n;++r)this[r+n]=m[r%c]}return this};var hn=/[^+/0-9A-Za-z-_]/g;function un(e){if(e=e.split("=")[0],e=e.trim().replace(hn,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function no(e,o){o=o||1/0;for(var n,_=e.length,p=null,a=[],r=0;r<_;++r){if(n=e.charCodeAt(r),n>55295&&n<57344){if(!p){if(n>56319){(o-=3)>-1&&a.push(239,191,189);continue}else if(r+1===_){(o-=3)>-1&&a.push(239,191,189);continue}p=n;continue}if(n<56320){(o-=3)>-1&&a.push(239,191,189),p=n;continue}n=(p-55296<<10|n-56320)+65536}else p&&(o-=3)>-1&&a.push(239,191,189);if(p=null,n<128){if((o-=1)<0)break;a.push(n)}else if(n<2048){if((o-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((o-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((o-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return a}function bn(e){for(var o=[],n=0;n<e.length;++n)o.push(e.charCodeAt(n)&255);return o}function xn(e,o){for(var n,_,p,a=[],r=0;r<e.length&&!((o-=2)<0);++r)n=e.charCodeAt(r),_=n>>8,p=n%256,a.push(p),a.push(_);return a}function Eo(e){return Z.toByteArray(un(e))}function J(e,o,n,_){for(var p=0;p<_&&!(p+n>=o.length||p>=e.length);++p)o[p+n]=e[p];return p}function E(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function po(e){return e!==e}var wn=function(){for(var e="0123456789abcdef",o=new Array(256),n=0;n<16;++n)for(var _=n*16,p=0;p<16;++p)o[_+p]=e[n]+e[p];return o}()});var Io=G((Cn,Lo)=>{s();var g=Lo.exports={},S,F;function ao(){throw new Error("setTimeout has not been defined")}function ro(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?S=setTimeout:S=ao}catch(e){S=ao}try{typeof clearTimeout=="function"?F=clearTimeout:F=ro}catch(e){F=ro}})();function Fo(e){if(S===setTimeout)return setTimeout(e,0);if((S===ao||!S)&&setTimeout)return S=setTimeout,setTimeout(e,0);try{return S(e,0)}catch(o){try{return S.call(null,e,0)}catch(n){return S.call(this,e,0)}}}function yn(e){if(F===clearTimeout)return clearTimeout(e);if((F===ro||!F)&&clearTimeout)return F=clearTimeout,clearTimeout(e);try{return F(e)}catch(o){try{return F.call(null,e)}catch(n){return F.call(this,e)}}}var L=[],D=!1,N,O=-1;function kn(){!D||!N||(D=!1,N.length?L=N.concat(L):O=-1,L.length&&Bo())}function Bo(){if(!D){var e=Fo(kn);D=!0;for(var o=L.length;o;){for(N=L,L=[];++O<o;)N&&N[O].run();O=-1,o=L.length}N=null,D=!1,yn(e)}}g.nextTick=function(e){var o=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)o[n-1]=arguments[n];L.push(new Ao(e,o)),L.length===1&&!D&&Fo(Bo)};function Ao(e,o){this.fun=e,this.array=o}Ao.prototype.run=function(){this.fun.apply(null,this.array)};g.title="browser";g.browser=!0;g.env={};g.argv=[];g.version="";g.versions={};function I(){}g.on=I;g.addListener=I;g.once=I;g.off=I;g.removeListener=I;g.removeAllListeners=I;g.emit=I;g.prependListener=I;g.prependOnceListener=I;g.listeners=function(e){return[]};g.binding=function(e){throw new Error("process.binding is not supported")};g.cwd=function(){return"/"};g.chdir=function(e){throw new Error("process.chdir is not supported")};g.umask=function(){return 0}});var k,v,Nn,s=Xo(()=>{k=M(So()),v=M(Io()),Nn=function(e){function o(){var _=this||self;return delete e.prototype.__magic__,_}if(typeof globalThis=="object")return globalThis;if(this)return o();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:o});var n=__magic__;return n}(Object)});var Bn={};Po(Bn,{LedgerLoading:()=>Fn});module.exports=Ho(Bn);s();s();var W=M(require("react")),Uo=require("@fortawesome/free-solid-svg-icons"),X=M(require("classnames"));s();var j=M(require("react")),Co=require("@fortawesome/react-fontawesome"),P=M(require("classnames"));s();var vn=`.dapp-core-component__main__link-style {
2
2
  color: #1392ff;
3
3
  }
4
4
 
@@ -2698,7 +2698,7 @@ a.dapp-core-component__main__side-link::after {
2698
2698
 
2699
2699
  .dapp-core-component__pageStateStyles__state {
2700
2700
  color: inherit;
2701
- }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(En));var To={wrapper:"dapp-core-component__pageStateStyles__wrapper",state:"dapp-core-component__pageStateStyles__state"};var No=({icon:e,title:o,action:n,iconClass:_,dataTestId:p,description:a,iconBgClass:r,iconSize:m="5x",className:c="dapp-page-state"})=>{let i={wrapper:(0,X.default)(To.state,w.mAuto,w.p4,w.textCenter,c),iconContainer:(0,X.default)(w.iconState,w.mxAuto,{[r!=null?r:""]:Boolean(r)}),iconClass:(0,X.default)(_!=null&&_),title:(0,X.default)(w.h4,w.my4),description:w.mb3};return j.default.createElement("div",{className:i.wrapper,"data-testid":p},e&&j.default.createElement("span",{className:i.iconContainer},j.default.createElement(Co.FontAwesomeIcon,{icon:e,className:i.iconClass,size:m})),o&&j.default.createElement("p",{className:i.title},o),a&&j.default.createElement("div",{className:i.description},a),n)};s();var Sn=`.dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper {
2701
+ }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(En));var To={wrapper:"dapp-core-component__pageStateStyles__wrapper",state:"dapp-core-component__pageStateStyles__state"};var No=({icon:e,title:o,action:n,iconClass:_,dataTestId:p,description:a,iconBgClass:r,iconSize:m="5x",className:c="dapp-page-state"})=>{let i={wrapper:(0,P.default)(To.state,w.mAuto,w.p4,w.textCenter,c),iconContainer:(0,P.default)(w.iconState,w.mxAuto,{[r!=null?r:""]:Boolean(r)}),iconClass:(0,P.default)(_!=null&&_),title:(0,P.default)(w.h4,w.my4),description:w.mb3};return j.default.createElement("div",{className:i.wrapper,"data-testid":p},e&&j.default.createElement("span",{className:i.iconContainer},j.default.createElement(Co.FontAwesomeIcon,{icon:e,className:i.iconClass,size:m})),o&&j.default.createElement("p",{className:i.title},o),a&&j.default.createElement("div",{className:i.description},a),n)};s();var Sn=`.dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper {
2702
2702
  text-align: center;
2703
2703
  padding: 40px 16px 0;
2704
2704
  }
@@ -2715,7 +2715,7 @@ a.dapp-core-component__main__side-link::after {
2715
2715
  }
2716
2716
  .dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper .dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner {
2717
2717
  margin: 120px 0;
2718
- }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Sn));var P={"ledger-loading-wrapper":"dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper",ledgerLoadingWrapper:"dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper","ledger-loading-heading":"dapp-core-component__ledgerLoadingStyles__ledger-loading-heading",ledgerLoadingHeading:"dapp-core-component__ledgerLoadingStyles__ledger-loading-heading","ledger-loading-description":"dapp-core-component__ledgerLoadingStyles__ledger-loading-description",ledgerLoadingDescription:"dapp-core-component__ledgerLoadingStyles__ledger-loading-description","ledger-loading-spinner":"dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner",ledgerLoadingSpinner:"dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner"};var Fn=({customSpinnerComponent:e,ledgerLoadingClassNames:o,customContentComponent:n})=>{let{ledgerModalSubtitleClassName:_,ledgerModalTitleClassName:p}=o||{};return W.default.createElement("div",{className:P.ledgerLoadingWrapper},W.default.createElement("div",{className:(0,O.default)(P.ledgerLoadingHeading,p)},"Waiting for device..."),W.default.createElement("p",{className:(0,O.default)(P.ledgerLoadingDescription,_)},"It may take a few seconds..."),n,W.default.createElement("div",{className:P.ledgerLoadingSpinner},e||W.default.createElement(No,{iconSize:"10x",icon:Uo.faCircleNotch,iconClass:(0,O.default)("fa-spin",w.textPrimary)})))};0&&(module.exports={LedgerLoading});
2718
+ }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Sn));var H={"ledger-loading-wrapper":"dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper",ledgerLoadingWrapper:"dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper","ledger-loading-heading":"dapp-core-component__ledgerLoadingStyles__ledger-loading-heading",ledgerLoadingHeading:"dapp-core-component__ledgerLoadingStyles__ledger-loading-heading","ledger-loading-description":"dapp-core-component__ledgerLoadingStyles__ledger-loading-description",ledgerLoadingDescription:"dapp-core-component__ledgerLoadingStyles__ledger-loading-description","ledger-loading-spinner":"dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner",ledgerLoadingSpinner:"dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner"};var Fn=({customSpinnerComponent:e,ledgerLoadingClassNames:o,customContentComponent:n})=>{let{ledgerModalSubtitleClassName:_,ledgerModalTitleClassName:p,ledgerLoadingWrapper:a,ledgerLoadingSpinner:r}=o||{};return W.default.createElement("div",{className:(0,X.default)(H.ledgerLoadingWrapper,a)},W.default.createElement("div",{className:(0,X.default)(H.ledgerLoadingHeading,p)},"Waiting for device..."),W.default.createElement("p",{className:(0,X.default)(H.ledgerLoadingDescription,_)},"It may take a few seconds..."),n,W.default.createElement("div",{className:(0,X.default)(H.ledgerLoadingSpinner,r)},e||W.default.createElement(No,{iconSize:"10x",icon:Uo.faCircleNotch,iconClass:(0,X.default)("fa-spin",w.textPrimary)})))};0&&(module.exports={LedgerLoading});
2719
2719
  /*!
2720
2720
  * The buffer module from node.js, for the browser.
2721
2721
  *