@latticexyz/explorer 2.2.22-ab837ceb49fa77cc29487bb9df0c487975b37afe → 2.2.22-fb2745a7b2d4735a67adffa69e70ec7d1085f4da
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.
- package/.next/standalone/packages/explorer/.next/BUILD_ID +1 -1
- package/.next/standalone/packages/explorer/.next/app-build-manifest.json +34 -34
- package/.next/standalone/packages/explorer/.next/app-path-routes-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/build-manifest.json +2 -2
- package/.next/standalone/packages/explorer/.next/prerender-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js +5 -5
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js +2 -2
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.rsc +1 -1
- package/.next/standalone/packages/explorer/.next/server/app-paths-manifest.json +3 -3
- package/.next/standalone/packages/explorer/.next/server/middleware-build-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages/404.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages/500.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/{5173-7b5a55cae0bf7274.js → 5173-90de78d3a35f9e3c.js} +3 -3
- package/.next/standalone/packages/explorer/.next/static/chunks/{7491-31e65081a6311ac1.js → 7491-bf568202d4823314.js} +2 -2
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/{page-2bd665da66400f71.js → page-6b7eec55a4e4307d.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/{page-ee7b6a4afb4e244a.js → page-509fd0b5bdb9d21c.js} +1 -1
- package/package.json +10 -10
- /package/.next/standalone/packages/explorer/.next/static/{dmSpykvmWfCWef9ExW2Yb → dR9ym8mxi22Waj3b-YhPX}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/explorer/.next/static/{dmSpykvmWfCWef9ExW2Yb → dR9ym8mxi22Waj3b-YhPX}/_ssgManifest.js +0 -0
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/let r=(0,n(47605).Z)("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]])},20775:function(e,t,n){let r=n(61490),o=n(23427),i=n(18462),a=n(52822);function s(e,t,n,i,a){let s=[].slice.call(arguments,1),c=s.length,u="function"==typeof s[c-1];if(!u&&!r())throw Error("Callback required as last argument");if(u){if(c<2)throw Error("Too few arguments provided");2===c?(a=n,n=t,t=i=void 0):3===c&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=n,n=t,t=void 0))}else{if(c<1)throw Error("Too few arguments provided");return 1===c?(n=t,t=i=void 0):2!==c||t.getContext||(i=n,n=t,t=void 0),new Promise(function(r,a){try{let a=o.create(n,i);r(e(a,t,i))}catch(e){a(e)}})}try{let r=o.create(n,i);a(null,e(r,t,i))}catch(e){a(e)}}t.create=o.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return a.render(e,n)})},61490:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},97927:function(e,t,n){let r=n(66903).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7];for(let e=1;e<t-1;e++)i[e]=i[e-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){let n=[],r=t.getRowColCoords(e),o=r.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)(0!==e||0!==t)&&(0!==e||t!==o-1)&&(e!==o-1||0!==t)&&n.push([r[e],r[t]]);return n}},1944:function(e,t,n){let r=n(51493),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},52077:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},47937:function(e){function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){let o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},61066:function(e,t,n){let r=n(51493);function o(e){this.mode=r.BYTE,"string"==typeof e?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=o},28371:function(e,t,n){let r=n(87301),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[(e-1)*4+0];case r.M:return o[(e-1)*4+1];case r.Q:return o[(e-1)*4+2];case r.H:return o[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[(e-1)*4+0];case r.M:return i[(e-1)*4+1];case r.Q:return i[(e-1)*4+2];case r.H:return i[(e-1)*4+3];default:return}}},87301:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},66162:function(e,t,n){let r=n(66903).getSymbolSize;t.getPositions=function(e){let t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},38280:function(e,t,n){let r=n(66903),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){let n=e.bit<<3|t,i=n<<10;for(;r.getBCHDigit(i)-o>=0;)i^=1335<<r.getBCHDigit(i)-o;return(n<<10|i)^21522}},77226:function(e,t){let n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.log=function(e){if(e<1)throw Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},23769:function(e,t,n){let r=n(51493),o=n(66903);function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n=(n>>>8&255)*192+(255&n),e.put(n,13)}},e.exports=i},48159:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let n={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,r=0,o=0,i=0,a=null,s=null;for(let c=0;c<t;c++){o=i=0,a=s=null;for(let u=0;u<t;u++){let t=e.get(c,u);t===a?o++:(o>=5&&(r+=n.N1+(o-5)),a=t,o=1),(t=e.get(u,c))===s?i++:(i>=5&&(r+=n.N1+(i-5)),s=t,i=1)}o>=5&&(r+=n.N1+(o-5)),i>=5&&(r+=n.N1+(i-5))}return r},t.getPenaltyN2=function(e){let t=e.size,r=0;for(let n=0;n<t-1;n++)for(let o=0;o<t-1;o++){let t=e.get(n,o)+e.get(n,o+1)+e.get(n+1,o)+e.get(n+1,o+1);(4===t||0===t)&&r++}return r*n.N2},t.getPenaltyN3=function(e){let t=e.size,r=0,o=0,i=0;for(let n=0;n<t;n++){o=i=0;for(let a=0;a<t;a++)o=o<<1&2047|e.get(n,a),a>=10&&(1488===o||93===o)&&r++,i=i<<1&2047|e.get(a,n),a>=10&&(1488===i||93===i)&&r++}return r*n.N3},t.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let n=0;n<r;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/r/5)-10)*n.N4},t.applyMask=function(e,n){let r=n.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)n.isReserved(i,o)||n.xor(i,o,function(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,i,o))},t.getBestMask=function(e,n){let r=Object.keys(t.Patterns).length,o=0,i=1/0;for(let a=0;a<r;a++){n(a),t.applyMask(a,e);let r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),r<i&&(i=r,o=a)}return o}},51493:function(e,t,n){let r=n(57735),o=n(98173);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!r.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},99866:function(e,t,n){let r=n(51493);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n;for(t=0;t+3<=this.data.length;t+=3)n=parseInt(this.data.substr(t,3),10),e.put(n,10);let r=this.data.length-t;r>0&&(n=parseInt(this.data.substr(t),10),e.put(n,3*r+1))},e.exports=o},86656:function(e,t,n){let r=n(77226);t.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<t.length;i++)n[o+i]^=r.mul(e[o],t[i]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){let e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]));return n}},23427:function(e,t,n){let r=n(66903),o=n(87301),i=n(52077),a=n(47937),s=n(97927),c=n(66162),u=n(48159),l=n(28371),d=n(12662),f=n(50643),p=n(38280),h=n(51493),m=n(23528);function y(e,t,n){let r,o;let i=e.size,a=p.getEncodedBits(t,n);for(r=0;r<15;r++)o=(a>>r&1)==1,r<6?e.set(r,8,o,!0):r<8?e.set(r+1,8,o,!0):e.set(i-15+r,8,o,!0),r<8?e.set(8,i-r-1,o,!0):r<9?e.set(8,15-r-1+1,o,!0):e.set(8,15-r-1,o,!0);e.set(i-8,8,1,!0)}t.create=function(e,t){let n,p;if(void 0===e||""===e)throw Error("No input text");let b=o.M;return void 0!==t&&(b=o.from(t.errorCorrectionLevel,o.M),n=f.from(t.version),p=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),function(e,t,n,o){let p;if(Array.isArray(e))p=m.fromArray(e);else if("string"==typeof e){let r=t;if(!r){let t=m.rawSplit(e);r=f.getBestVersionForData(t,n)}p=m.fromString(e,r||40)}else throw Error("Invalid data");let b=f.getBestVersionForData(p,n);if(!b)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<b)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+b+".\n")}else t=b;let w=function(e,t,n){let o=new i;n.forEach(function(t){o.put(t.mode.bit,4),o.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(o)});let a=(r.getSymbolTotalCodewords(e)-l.getTotalCodewordsCount(e,t))*8;for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);let s=(a-o.getLengthInBits())/8;for(let e=0;e<s;e++)o.put(e%2?17:236,8);return function(e,t,n){let o,i;let a=r.getSymbolTotalCodewords(t),s=a-l.getTotalCodewordsCount(t,n),c=l.getBlocksCount(t,n),u=a%c,f=c-u,p=Math.floor(a/c),h=Math.floor(s/c),m=h+1,y=p-h,b=new d(y),w=0,g=Array(c),A=Array(c),v=0,x=new Uint8Array(e.buffer);for(let e=0;e<c;e++){let t=e<f?h:m;g[e]=x.slice(w,w+t),A[e]=b.encode(g[e]),w+=t,v=Math.max(v,t)}let C=new Uint8Array(a),E=0;for(o=0;o<v;o++)for(i=0;i<c;i++)o<g[i].length&&(C[E++]=g[i][o]);for(o=0;o<y;o++)for(i=0;i<c;i++)C[E++]=A[i][o];return C}(o,e,t)}(t,n,p),g=new a(r.getSymbolSize(t));return function(e,t){let n=e.size,r=c.getPositions(t);for(let t=0;t<r.length;t++){let o=r[t][0],i=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1)&&!(n<=o+t))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,i+r,!0,!0):e.set(o+t,i+r,!1,!0))}}(g,t),function(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(g),function(e,t){let n=s.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(g,t),y(g,n,0),t>=7&&function(e,t){let n,r,o;let i=e.size,a=f.getEncodedBits(t);for(let t=0;t<18;t++)n=Math.floor(t/3),r=t%3+i-8-3,o=(a>>t&1)==1,e.set(n,r,o,!0),e.set(r,n,o,!0)}(g,t),function(e,t){let n=e.size,r=-1,o=n-1,i=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,s-n)){let r=!1;a<t.length&&(r=(t[a]>>>i&1)==1),e.set(o,s-n,r),-1==--i&&(a++,i=7)}if((o+=r)<0||n<=o){o-=r,r=-r;break}}}(g,w),isNaN(o)&&(o=u.getBestMask(g,y.bind(null,g,n))),u.applyMask(o,g),y(g,n,o),{modules:g,version:t,errorCorrectionLevel:n,maskPattern:o,segments:p}}(e,n,b,p)}},12662:function(e,t,n){let r=n(86656);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){let e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},98173:function(e,t){let n="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",o="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(r,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(o,"g"),t.NUMERIC=RegExp(n,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let i=RegExp("^"+r+"$"),a=RegExp("^"+n+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},23528:function(e,t,n){let r=n(51493),o=n(99866),i=n(1944),a=n(61066),s=n(23769),c=n(98173),u=n(66903),l=n(20543);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){let r;let o=[];for(;null!==(r=e.exec(n));)o.push({data:r[0],index:r.index,mode:t,length:r[0].length});return o}function p(e){let t,n;let o=f(c.NUMERIC,r.NUMERIC,e),i=f(c.ALPHANUMERIC,r.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=f(c.BYTE,r.BYTE,e),n=f(c.KANJI,r.KANJI,e)):(t=f(c.BYTE_KANJI,r.BYTE,e),n=[]),o.concat(i,t,n).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function h(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return a.getBitsLength(e)}}function m(e,t){let n;let c=r.getBestModeForData(e);if((n=r.from(t,c))!==r.BYTE&&n.bit<c.bit)throw Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(c));switch(n!==r.KANJI||u.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new i(e);case r.KANJI:return new s(e);case r.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e},[])},t.fromString=function(e,n){let o=function(e,t){let n={},o={start:{}},i=["start"];for(let a=0;a<e.length;a++){let s=e[a],c=[];for(let e=0;e<s.length;e++){let u=s[e],l=""+a+e;c.push(l),n[l]={node:u,lastCount:0},o[l]={};for(let e=0;e<i.length;e++){let a=i[e];n[a]&&n[a].node.mode===u.mode?(o[a][l]=h(n[a].lastCount+u.length,u.mode)-h(n[a].lastCount,u.mode),n[a].lastCount+=u.length):(n[a]&&(n[a].lastCount=u.length),o[a][l]=h(u.length,u.mode)+4+r.getCharCountIndicator(u.mode,t))}}i=c}for(let e=0;e<i.length;e++)o[i[e]].end=0;return{map:o,table:n}}(function(e){let t=[];for(let n=0;n<e.length;n++){let o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(p(e,u.isKanjiModeEnabled())),n),i=l.find_path(o.map,"start","end"),a=[];for(let e=1;e<i.length-1;e++)a.push(o.table[i[e]].node);return t.fromArray(a.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(p(e,u.isKanjiModeEnabled()))}},66903:function(e,t){let n;let r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},57735:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},50643:function(e,t,n){let r=n(66903),o=n(28371),i=n(87301),a=n(51493),s=n(57735),c=r.getBCHDigit(7973);function u(e,t){return a.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);let i=(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t))*8;if(n===a.MIXED)return i;let c=i-u(n,e);switch(n){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){let r;let o=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(function(e,t){let n=0;return e.forEach(function(e){let r=u(e.mode,t);n+=r+e.getBitsLength()}),n}(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-c>=0;)t^=7973<<r.getBCHDigit(t)-c;return e<<12|t}},18462:function(e,t,n){let r=n(17426);t.render=function(e,t,n){var o;let i=n,a=t;void 0!==i||t&&t.getContext||(i=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),i=r.getOptions(i);let s=r.getImageWidth(e.modules.size,i),c=a.getContext("2d"),u=c.createImageData(s,s);return r.qrToImageData(u.data,e,i),o=a,c.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=s,o.width=s,o.style.height=s+"px",o.style.width=s+"px",c.putImageData(u,0,0),a},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});let i=t.render(e,n,o),a=o.type||"image/png",s=o.rendererOpts||{};return i.toDataURL(a,s.quality)}},52822:function(e,t,n){let r=n(17426);function o(e,t){let n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){let a=r.getOptions(t),s=e.modules.size,c=e.modules.data,u=s+2*a.margin,l=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+o(a.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,a=!1,s=0;for(let c=0;c<e.length;c++){let u=Math.floor(c%t),l=Math.floor(c/t);u||a||(a=!0),e[c]?(s++,c>0&&u>0&&e[c-1]||(r+=a?i("M",u+n,.5+l+n):i("m",o,0),o=0,a=!1),u+1<t&&e[c+1]||(r+=i("h",s),s=0)):o++}return r}(c,s,a.margin)+'"/>',f='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+('viewBox="0 0 '+u)+" "+u+'" shape-rendering="crispEdges">'+l+d+"</svg>\n";return"function"==typeof n&&n(null,f),f}},17426:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){let r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){let o=n.modules.size,i=n.modules.data,a=t.getScale(o,r),s=Math.floor((o+2*r.margin)*a),c=r.margin*a,u=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let l=(t*s+n)*4,d=r.color.light;t>=c&&n>=c&&t<s-c&&n<s-c&&(d=u[i[Math.floor((t-c)/a)*o+Math.floor((n-c)/a)]?1:0]),e[l++]=d.r,e[l++]=d.g,e[l++]=d.b,e[l]=d.a}}},83521:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(52401),o=n(46760),i=n(73839),a=n(262),s=(0,n(16199)._)(),c=function(){},u=o.forwardRef(function(e,t){var n=o.useRef(null),i=o.useState({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:c}),u=i[0],l=i[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,y=e.shards,b=e.sideCar,w=e.noIsolation,g=e.inert,A=e.allowPinchZoom,v=e.as,x=e.gapMode,C=(0,r._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=(0,a.q)([n,t]),B=(0,r.pi)((0,r.pi)({},C),u);return o.createElement(o.Fragment,null,m&&o.createElement(b,{sideCar:s,removeScrollBar:h,shards:y,noIsolation:w,inert:g,setCallbacks:l,allowPinchZoom:!!A,lockRef:n,gapMode:x}),d?o.cloneElement(o.Children.only(f),(0,r.pi)((0,r.pi)({},B),{ref:E})):o.createElement(void 0===v?"div":v,(0,r.pi)({},B,{className:p,ref:E}),f))});u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},u.classNames={fullWidth:i.zi,zeroRight:i.pF};var l=n(32565),d=n(68770),f=n(23359),p=!1;if("undefined"!=typeof window)try{var h=Object.defineProperty({},"passive",{get:function(){return p=!0,!0}});window.addEventListener("test",h,h),window.removeEventListener("test",h,h)}catch(e){p=!1}var m=!!p&&{passive:!1},y=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},b=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),w(e,r)){var o=g(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},w=function(e,t){return"v"===e?y(t,"overflowY"):y(t,"overflowX")},g=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},A=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=a*r,c=n.target,u=t.contains(c),l=!1,d=s>0,f=0,p=0;do{var h=g(e,c),m=h[0],y=h[1]-h[2]-a*m;(m||y)&&w(e,c)&&(f+=y,p+=m),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return d&&(o&&1>Math.abs(f)||!o&&s>f)?l=!0:!d&&(o&&1>Math.abs(p)||!o&&-s>p)&&(l=!0),l},v=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},x=function(e){return[e.deltaX,e.deltaY]},C=function(e){return e&&"current"in e?e.current:e},E=0,B=[],k=(0,l.L)(s,function(e){var t=o.useRef([]),n=o.useRef([0,0]),i=o.useRef(),a=o.useState(E++)[0],s=o.useState(f.Ws)[0],c=o.useRef(e);o.useEffect(function(){c.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,r.ev)([e.lockRef.current],(e.shards||[]).map(C),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var r,o=v(e),a=n.current,s="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],l=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=b(d,l);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=b(d,l)),!f)return!1;if(!i.current&&"changedTouches"in e&&(s||u)&&(i.current=r),!r)return!0;var p=i.current||r;return A(p,t,e,"h"===p?s:u,!0)},[]),l=o.useCallback(function(e){if(B.length&&B[B.length-1]===s){var n="deltaY"in e?x(e):v(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(c.current.shards||[]).map(C).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!c.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),p=o.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),h=o.useCallback(function(e){n.current=v(e),i.current=void 0},[]),y=o.useCallback(function(t){p(t.type,x(t),t.target,u(t,e.lockRef.current))},[]),w=o.useCallback(function(t){p(t.type,v(t),t.target,u(t,e.lockRef.current))},[]);o.useEffect(function(){return B.push(s),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:w}),document.addEventListener("wheel",l,m),document.addEventListener("touchmove",l,m),document.addEventListener("touchstart",h,m),function(){B=B.filter(function(e){return e!==s}),document.removeEventListener("wheel",l,m),document.removeEventListener("touchmove",l,m),document.removeEventListener("touchstart",h,m)}},[]);var g=e.removeScrollBar,k=e.inert;return o.createElement(o.Fragment,null,k?o.createElement(s,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,g?o.createElement(d.jp,{gapMode:e.gapMode}):null)}),I=o.forwardRef(function(e,t){return o.createElement(u,(0,r.pi)({},e,{ref:t,sideCar:k}))});I.classNames=u.classNames;var P=I},40299:function(e,t,n){var r;!function(o,i){"use strict";var a="function",s="undefined",c="object",u="string",l="major",d="model",f="name",p="type",h="vendor",m="version",y="architecture",b="console",w="mobile",g="tablet",A="smarttv",v="wearable",x="embedded",C="Amazon",E="Apple",B="ASUS",k="BlackBerry",I="Browser",P="Chrome",M="Firefox",N="Google",O="Huawei",S="Microsoft",R="Motorola",F="Opera",T="Samsung",D="Sharp",L="Sony",U="Xiaomi",Q="Zebra",q="Facebook",G="Chromium OS",z="Mac OS",W=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},j=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},H=function(e,t){return typeof e===u&&-1!==Z(t).indexOf(Z(e))},Z=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},V=function(e,t){for(var n,r,o,s,u,l,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(n=r=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(o=0;o<p.length;o++)l=u[++r],typeof(s=p[o])===c&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):void 0:this[s[0]]=l?s[1].call(this,l,s[2]):void 0:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):void 0):this[s]=l||i;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(H(t[n][r],e))return"?"===n?i:n}else if(H(t[n],e))return"?"===n?i:n;return e},Y={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,m],[/opios[\/ ]+([\w\.]+)/i],[m,[f,F+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[f,F+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[f,F]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,m],[/\bddg\/([\w\.]+)/i],[m,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[f,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[f,"Smart Lenovo "+I]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+I],m],[/\bfocus\/([\w\.]+)/i],[m,[f,M+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[f,F+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[f,F+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[f,"MIUI "+I]],[/fxios\/([-\w\.]+)/i],[m,[f,M]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+I]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+I],m],[/samsungbrowser\/([\w\.]+)/i],[m,[f,T+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],m],[/metasr[\/ ]?([\d\.]+)/i],[m,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,m],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,q],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[f,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,P+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[f,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[m,J,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[f,M+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,m],[/(cobalt)\/([\w\.]+)/i],[f,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,Z]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,"",Z]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,Z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[h,T],[p,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[h,T],[p,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[h,E],[p,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[h,E],[p,g]],[/(macintosh);/i],[d,[h,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[h,D],[p,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[h,O],[p,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[h,O],[p,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[h,U],[p,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[h,U],[p,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[h,"OPPO"],[p,w]],[/\b(opd2\d{3}a?) bui/i],[d,[h,"OPPO"],[p,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[h,"Vivo"],[p,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[h,"Realme"],[p,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[h,R],[p,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[h,R],[p,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[h,"LG"],[p,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[h,"LG"],[p,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[h,"Lenovo"],[p,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[h,"Nokia"],[p,w]],[/(pixel c)\b/i],[d,[h,N],[p,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[h,N],[p,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[h,L],[p,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[h,L],[p,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[h,"OnePlus"],[p,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[h,C],[p,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[h,C],[p,w]],[/(playbook);[-\w\),; ]+(rim)/i],[d,h,[p,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[h,k],[p,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[h,B],[p,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[h,B],[p,w]],[/(nexus 9)/i],[d,[h,"HTC"],[p,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[d,/_/g," "],[p,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[h,"Acer"],[p,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[h,"Meizu"],[p,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[h,"Ulefone"],[p,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,d,[p,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,d,[p,g]],[/(surface duo)/i],[d,[h,S],[p,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[h,"Fairphone"],[p,w]],[/(u304aa)/i],[d,[h,"AT&T"],[p,w]],[/\bsie-(\w*)/i],[d,[h,"Siemens"],[p,w]],[/\b(rct\w+) b/i],[d,[h,"RCA"],[p,g]],[/\b(venue[\d ]{2,7}) b/i],[d,[h,"Dell"],[p,g]],[/\b(q(?:mv|ta)\w+) b/i],[d,[h,"Verizon"],[p,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[h,"Barnes & Noble"],[p,g]],[/\b(tm\d{3}\w+) b/i],[d,[h,"NuVision"],[p,g]],[/\b(k88) b/i],[d,[h,"ZTE"],[p,g]],[/\b(nx\d{3}j) b/i],[d,[h,"ZTE"],[p,w]],[/\b(gen\d{3}) b.+49h/i],[d,[h,"Swiss"],[p,w]],[/\b(zur\d{3}) b/i],[d,[h,"Swiss"],[p,g]],[/\b((zeki)?tb.*\b) b/i],[d,[h,"Zeki"],[p,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],d,[p,g]],[/\b(ns-?\w{0,9}) b/i],[d,[h,"Insignia"],[p,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[h,"NextBook"],[p,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],d,[p,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],d,[p,w]],[/\b(ph-1) /i],[d,[h,"Essential"],[p,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[h,"Envizen"],[p,g]],[/\b(trio[-\w\. ]+) b/i],[d,[h,"MachSpeed"],[p,g]],[/\btu_(1491) b/i],[d,[h,"Rotor"],[p,g]],[/(shield[\w ]+) b/i],[d,[h,"Nvidia"],[p,g]],[/(sprint) (\w+)/i],[h,d,[p,w]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[h,S],[p,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[h,Q],[p,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[h,Q],[p,w]],[/smart-tv.+(samsung)/i],[h,[p,A]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[h,T],[p,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[p,A]],[/(apple) ?tv/i],[h,[d,E+" TV"],[p,A]],[/crkey/i],[[d,P+"cast"],[h,N],[p,A]],[/droid.+aft(\w+)( bui|\))/i],[d,[h,C],[p,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[h,D],[p,A]],[/(bravia[\w ]+)( bui|\))/i],[d,[h,L],[p,A]],[/(mitv-\w{5}) bui/i],[d,[h,U],[p,A]],[/Hbbtv.*(technisat) (.*);/i],[h,d,[p,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,K],[d,K],[p,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,d,[p,b]],[/droid.+; (shield) bui/i],[d,[h,"Nvidia"],[p,b]],[/(playstation [345portablevi]+)/i],[d,[h,L],[p,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[h,S],[p,b]],[/((pebble))app/i],[h,d,[p,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[h,E],[p,v]],[/droid.+; (glass) \d/i],[d,[h,N],[p,v]],[/droid.+; (wt63?0{2,3})\)/i],[d,[h,Q],[p,v]],[/(quest( \d| pro)?)/i],[d,[h,q],[p,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,x]],[/(aeobc)\b/i],[d,[h,C],[p,x]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,w]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[m,J,Y]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,J,Y],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,z],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,m],[/\(bb(10);/i],[m,[f,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[f,M+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[f,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,G],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,m],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,m]]},$=function(e,t){if(typeof e===c&&(t=e,e=i),!(this instanceof $))return new $(e,t).getResult();var n=typeof o!==s&&o.navigator?o.navigator:i,r=e||(n&&n.userAgent?n.userAgent:""),b=n&&n.userAgentData?n.userAgentData:i,A=t?W(X,t):X,v=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=i,t[m]=i,V.call(t,r,A.browser),t[l]=typeof(e=t[m])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:i,v&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[y]=i,V.call(e,r,A.cpu),e},this.getDevice=function(){var e={};return e[h]=i,e[d]=i,e[p]=i,V.call(e,r,A.device),v&&!e[p]&&b&&b.mobile&&(e[p]=w),v&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[p]=g),e},this.getEngine=function(){var e={};return e[f]=i,e[m]=i,V.call(e,r,A.engine),e},this.getOS=function(){var e={};return e[f]=i,e[m]=i,V.call(e,r,A.os),v&&!e[f]&&b&&b.platform&&"Unknown"!=b.platform&&(e[f]=b.platform.replace(/chrome os/i,G).replace(/macos/i,z)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>500?K(e,500):e,this},this.setUA(r),this};$.VERSION="1.0.38",$.BROWSER=j([f,m,l]),$.CPU=j([y]),$.DEVICE=j([d,h,p,b,w,A,g,v,x]),$.ENGINE=$.OS=j([f,m]),typeof t!==s?(e.exports&&(t=e.exports=$),t.UAParser=$):n.amdO?i!==(r=(function(){return $}).call(t,n,t,e))&&(e.exports=r):typeof o!==s&&(o.UAParser=$);var _=typeof o!==s&&(o.jQuery||o.Zepto);if(_&&!_.ua){var ee=new $;_.ua=ee.getResult(),_.ua.get=function(){return ee.getUA()},_.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)_.ua[n]=t[n]}}}("object"==typeof window?window:this)},89871:function(e,t,n){"use strict";n.d(t,{secp256k1:function(){return eC}});var r={};n.r(r),n.d(r,{Fy:function(){return N},uw:function(){return h},gk:function(){return p},Dd:function(){return O},dQ:function(){return S},ci:function(){return y},bytesToNumberBE:function(){return x},ty:function(){return C},eV:function(){return I},n$:function(){return T},ql:function(){return k},hexToBytes:function(){return v},Z2:function(){return M},_t:function(){return f},H9:function(){return U},tL:function(){return E},S5:function(){return B},uz:function(){return b},FF:function(){return L}});var o=n(1824),i=n(89675),a=n(93872);class s extends a.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,i.z3)(e);let n=(0,a.O0)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,o=new Uint8Array(r);o.set(n.length>r?e.create().update(n).digest():n);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),o.fill(0)}update(e){return(0,i.$h)(this),this.iHash.update(e),this}digestInto(e){(0,i.$h)(this),(0,i.gk)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:n,finished:r,destroyed:o,blockLen:i,outputLen:a}=this;return e.finished=r,e.destroyed=o,e.blockLen=i,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let c=(e,t,n)=>new s(e,t).update(n).digest();c.create=(e,t)=>new s(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let u=BigInt(0),l=BigInt(1),d=BigInt(2);function f(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function p(e){if(!f(e))throw Error("Uint8Array expected")}function h(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}let m=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function y(e){p(e);let t="";for(let n=0;n<e.length;n++)t+=m[e[n]];return t}function b(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function w(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?u:BigInt("0x"+e)}let g={_0:48,_9:57,A:65,F:70,a:97,f:102};function A(e){return e>=g._0&&e<=g._9?e-g._0:e>=g.A&&e<=g.F?e-(g.A-10):e>=g.a&&e<=g.f?e-(g.a-10):void 0}function v(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,n=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let t=0,o=0;t<n;t++,o+=2){let n=A(e.charCodeAt(o)),i=A(e.charCodeAt(o+1));if(void 0===n||void 0===i)throw Error('hex string expected, got non-hex character "'+(e[o]+e[o+1])+'" at index '+o);r[t]=16*n+i}return r}function x(e){return w(y(e))}function C(e){return p(e),w(y(Uint8Array.from(e).reverse()))}function E(e,t){return v(e.toString(16).padStart(2*t,"0"))}function B(e,t){return E(e,t).reverse()}function k(e,t,n){let r;if("string"==typeof t)try{r=v(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(f(t))r=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let o=r.length;if("number"==typeof n&&o!==n)throw Error(e+" of length "+n+" expected, got "+o);return r}function I(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];p(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let o=e[t];n.set(o,r),r+=o.length}return n}let P=e=>"bigint"==typeof e&&u<=e;function M(e,t,n){return P(e)&&P(t)&&P(n)&&t<=e&&e<n}function N(e,t,n,r){if(!M(t,n,r))throw Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function O(e){let t;for(t=0;e>u;e>>=l,t+=1);return t}let S=e=>(d<<BigInt(e-1))-l,R=e=>new Uint8Array(e),F=e=>Uint8Array.from(e);function T(e,t,n){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof n)throw Error("hmacFn must be a function");let r=R(e),o=R(e),i=0,a=()=>{r.fill(1),o.fill(0),i=0},s=(...e)=>n(o,r,...e),c=(e=R())=>{o=s(F([0]),e),r=s(),0!==e.length&&(o=s(F([1]),e),r=s())},u=()=>{if(i++>=1e3)throw Error("drbg: tried 1000 values");let e=0,n=[];for(;e<t;){let t=(r=s()).slice();n.push(t),e+=r.length}return I(...n)};return(e,t)=>{let n;for(a(),c(e);!(n=t(u()));)c();return a(),n}}let D={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||f(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function L(e,t,n={}){let r=(t,n,r)=>{let o=D[n];if("function"!=typeof o)throw Error("invalid validator function");let i=e[t];if((!r||void 0!==i)&&!o(i,e))throw Error("param "+String(t)+" is invalid. Expected "+n+", got "+i)};for(let[e,n]of Object.entries(t))r(e,n,!1);for(let[e,t]of Object.entries(n))r(e,t,!0);return e}function U(e){let t=new WeakMap;return(n,...r)=>{let o=t.get(n);if(void 0!==o)return o;let i=e(n,...r);return t.set(n,i),i}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let Q=BigInt(0),q=BigInt(1),G=BigInt(2),z=BigInt(3),W=BigInt(4),j=BigInt(5),H=BigInt(8);function Z(e,t){let n=e%t;return n>=Q?n:t+n}function K(e,t,n){let r=e;for(;t-- >Q;)r*=r,r%=n;return r}function V(e,t){if(e===Q)throw Error("invert: expected non-zero number");if(t<=Q)throw Error("invert: expected positive modulus, got "+t);let n=Z(e,t),r=t,o=Q,i=q,a=q,s=Q;for(;n!==Q;){let e=r/n,t=r%n,c=o-a*e,u=i-s*e;r=n,n=t,o=a,i=s,a=c,s=u}if(r!==q)throw Error("invert: does not exist");return Z(o,t)}let J=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Y(e,t){let n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function X(e,t,n=!1,r={}){let o;if(e<=Q)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:i,nByteLength:a}=Y(e,t);if(a>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let s=Object.freeze({ORDER:e,isLE:n,BITS:i,BYTES:a,MASK:S(i),ZERO:Q,ONE:q,create:t=>Z(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return Q<=t&&t<e},is0:e=>e===Q,isOdd:e=>(e&q)===q,neg:t=>Z(-t,e),eql:(e,t)=>e===t,sqr:t=>Z(t*t,e),add:(t,n)=>Z(t+n,e),sub:(t,n)=>Z(t-n,e),mul:(t,n)=>Z(t*n,e),pow:(e,t)=>(function(e,t,n){if(n<Q)throw Error("invalid exponent, negatives unsupported");if(n===Q)return e.ONE;if(n===q)return t;let r=e.ONE,o=t;for(;n>Q;)n&q&&(r=e.mul(r,o)),o=e.sqr(o),n>>=q;return r})(s,e,t),div:(t,n)=>Z(t*V(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>V(t,e),sqrt:r.sqrt||(t=>(o||(o=function(e){if(e%W===z){let t=(e+q)/W;return function(e,n){let r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw Error("Cannot find square root");return r}}if(e%H===j){let t=(e-j)/H;return function(e,n){let r=e.mul(n,G),o=e.pow(r,t),i=e.mul(n,o),a=e.mul(e.mul(i,G),o),s=e.mul(i,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),n))throw Error("Cannot find square root");return s}}return function(e){let t,n,r;let o=(e-q)/G;for(t=e-q,n=0;t%G===Q;t/=G,n++);for(r=G;r<e&&function(e,t,n){if(t<Q)throw Error("invalid exponent, negatives unsupported");if(n<=Q)throw Error("invalid modulus");if(n===q)return Q;let r=q;for(;t>Q;)t&q&&(r=r*e%n),e=e*e%n,t>>=q;return r}(r,o,e)!==e-q;r++)if(r>1e3)throw Error("Cannot find square root: likely non-prime P");if(1===n){let t=(e+q)/W;return function(e,n){let r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw Error("Cannot find square root");return r}}let i=(t+q)/G;return function(e,a){if(e.pow(a,o)===e.neg(e.ONE))throw Error("Cannot find square root");let s=n,c=e.pow(e.mul(e.ONE,r),t),u=e.pow(a,i),l=e.pow(a,t);for(;!e.eql(l,e.ONE);){if(e.eql(l,e.ZERO))return e.ZERO;let t=1;for(let n=e.sqr(l);t<s&&!e.eql(n,e.ONE);t++)n=e.sqr(n);let n=e.pow(c,q<<BigInt(s-t-1));c=e.sqr(n),u=e.mul(u,n),l=e.mul(l,c),s=t}return u}}(e)}(e)),o(s,t))),invertBatch:e=>(function(e,t){let n=Array(t.length),r=t.reduce((t,r,o)=>e.is0(r)?t:(n[o]=t,e.mul(t,r)),e.ONE),o=e.inv(r);return t.reduceRight((t,r,o)=>e.is0(r)?t:(n[o]=e.mul(t,n[o]),e.mul(t,r)),o),n})(s,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?B(e,a):E(e,a),fromBytes:e=>{if(e.length!==a)throw Error("Field.fromBytes: expected "+a+" bytes, got "+e.length);return n?C(e):x(e)}});return Object.freeze(s)}function $(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function _(e){let t=$(e);return t+Math.ceil(t/2)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let ee=BigInt(0),et=BigInt(1);function en(e,t){let n=t.negate();return e?n:t}function er(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function eo(e,t){return er(e,t),{windows:Math.ceil(t/e)+1,windowSize:2**(e-1)}}let ei=new WeakMap,ea=new WeakMap;function es(e){return ea.get(e)||1}function ec(e){return L(e.Fp,J.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),L(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Y(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function eu(e){void 0!==e.lowS&&h("lowS",e.lowS),void 0!==e.prehash&&h("prehash",e.prehash)}let{bytesToNumberBE:el,hexToBytes:ed}=r;class ef extends Error{constructor(e=""){super(e)}}let ep={Err:ef,_tlv:{encode:(e,t)=>{let{Err:n}=ep;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");let r=t.length/2,o=b(r);if(o.length/2&128)throw new n("tlv.encode: long form length too big");let i=r>127?b(o.length/2|128):"";return b(e)+i+o+t},decode(e,t){let{Err:n}=ep,r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");let o=t[r++],i=0;if(128&o){let e=127&o;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");let a=t.subarray(r,r+e);if(a.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===a[0])throw new n("tlv.decode(long): zero leftmost byte");for(let e of a)i=i<<8|e;if(r+=e,i<128)throw new n("tlv.decode(long): not minimal encoding")}else i=o;let a=t.subarray(r,r+i);if(a.length!==i)throw new n("tlv.decode: wrong value length");return{v:a,l:t.subarray(r+i)}}},_int:{encode(e){let{Err:t}=ep;if(e<eh)throw new t("integer: negative integers are not allowed");let n=b(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){let{Err:t}=ep;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return el(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=ep,o="string"==typeof e?ed(e):e;p(o);let{v:i,l:a}=r.decode(48,o);if(a.length)throw new t("invalid signature: left bytes after parsing");let{v:s,l:c}=r.decode(2,i),{v:u,l:l}=r.decode(2,c);if(l.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(s),s:n.decode(u)}},hexFromSig(e){let{_tlv:t,_int:n}=ep,r=t.encode(2,n.encode(e.r)),o=t.encode(2,n.encode(e.s));return t.encode(48,r+o)}},eh=BigInt(0),em=BigInt(1),ey=(BigInt(2),BigInt(3));BigInt(4);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let eb=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ew=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),eg=BigInt(1),eA=BigInt(2),ev=(e,t)=>(e+t/eA)/t,ex=X(eb,void 0,void 0,{sqrt:function(e){let t=BigInt(3),n=BigInt(6),r=BigInt(11),o=BigInt(22),i=BigInt(23),a=BigInt(44),s=BigInt(88),c=e*e*e%eb,u=c*c*e%eb,l=K(u,t,eb)*u%eb,d=K(l,t,eb)*u%eb,f=K(d,eA,eb)*c%eb,p=K(f,r,eb)*f%eb,h=K(p,o,eb)*p%eb,m=K(h,a,eb)*h%eb,y=K(m,s,eb)*m%eb,b=K(y,a,eb)*h%eb,w=K(b,t,eb)*u%eb,g=K(w,i,eb)*p%eb,A=K(g,n,eb)*c%eb,v=K(A,eA,eb);if(!ex.eql(ex.sqr(v),e))throw Error("Cannot find square root");return v}}),eC=function(e,t){let n=t=>(function(e){let t=function(e){let t=ec(e);return L(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:r}=t,o=n.BYTES+1,i=2*n.BYTES+1;function a(e){return Z(e,r)}let{ProjectivePoint:s,normPrivateKeyToScalar:c,weierstrassEquation:u,isWithinCurveOrder:l}=function(e){var t;let n=function(e){let t=ec(e);L(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:n,Fp:r,a:o}=t;if(n){if(!r.eql(o,r.ZERO))throw Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=n,o=X(n.n,n.nBitLength),i=n.toBytes||((e,t,n)=>{let o=t.toAffine();return I(Uint8Array.from([4]),r.toBytes(o.x),r.toBytes(o.y))}),a=n.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function s(e){let{a:t,b:o}=n,i=r.sqr(e),a=r.mul(i,e);return r.add(r.add(a,r.mul(e,t)),o)}if(!r.eql(r.sqr(n.Gy),s(n.Gx)))throw Error("bad generator point: equation left != right");function c(e){let t;let{allowedPrivateKeyLengths:r,nByteLength:o,wrapPrivateKey:i,n:a}=n;if(r&&"bigint"!=typeof e){if(f(e)&&(e=y(e)),"string"!=typeof e||!r.includes(e.length))throw Error("invalid private key");e=e.padStart(2*o,"0")}try{t="bigint"==typeof e?e:x(k("private key",e,o))}catch(t){throw Error("invalid private key, expected hex or "+o+" bytes, got "+typeof e)}return i&&(t=Z(t,a)),N("private key",t,em,a),t}function u(e){if(!(e instanceof p))throw Error("ProjectivePoint expected")}let l=U((e,t)=>{let{px:n,py:o,pz:i}=e;if(r.eql(i,r.ONE))return{x:n,y:o};let a=e.is0();null==t&&(t=a?r.ONE:r.inv(i));let s=r.mul(n,t),c=r.mul(o,t),u=r.mul(i,t);if(a)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw Error("invZ was invalid");return{x:s,y:c}}),d=U(e=>{if(e.is0()){if(n.allowInfinityPoint&&!r.is0(e.py))return;throw Error("bad point: ZERO")}let{x:t,y:o}=e.toAffine();if(!r.isValid(t)||!r.isValid(o))throw Error("bad point: x or y not FE");let i=r.sqr(o),a=s(t);if(!r.eql(i,a))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class p{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required");Object.freeze(this)}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof p)throw Error("projective point not allowed");let o=e=>r.eql(e,r.ZERO);return o(t)&&o(n)?p.ZERO:new p(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(p.fromAffine)}static fromHex(e){let t=p.fromAffine(a(k("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return p.BASE.multiply(c(e))}static msm(e,t){return function(e,t,n,r){if(!function(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw Error("invalid point at index "+n)})}(n,e),!function(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+n)})}(r,t),n.length!==r.length)throw Error("arrays of points and scalars must have equal length");let o=e.ZERO,i=O(BigInt(n.length)),a=i>12?i-3:i>4?i-2:i?2:1,s=(1<<a)-1,c=Array(s+1).fill(o),u=Math.floor((t.BITS-1)/a)*a,l=o;for(let e=u;e>=0;e-=a){c.fill(o);for(let t=0;t<r.length;t++){let o=Number(r[t]>>BigInt(e)&BigInt(s));c[o]=c[o].add(n[t])}let t=o;for(let e=c.length-1,n=o;e>0;e--)n=n.add(c[e]),t=t.add(n);if(l=l.add(t),0!==e)for(let e=0;e<a;e++)l=l.double()}return l}(p,o,e,t)}_setWindowSize(e){b.setWindowSize(this,e)}assertValidity(){d(this)}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){u(e);let{px:t,py:n,pz:o}=this,{px:i,py:a,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(i,o)),l=r.eql(r.mul(n,s),r.mul(a,o));return c&&l}negate(){return new p(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:t}=n,o=r.mul(t,ey),{px:i,py:a,pz:s}=this,c=r.ZERO,u=r.ZERO,l=r.ZERO,d=r.mul(i,i),f=r.mul(a,a),h=r.mul(s,s),m=r.mul(i,a);return m=r.add(m,m),l=r.mul(i,s),l=r.add(l,l),c=r.mul(e,l),u=r.mul(o,h),u=r.add(c,u),c=r.sub(f,u),u=r.add(f,u),u=r.mul(c,u),c=r.mul(m,c),l=r.mul(o,l),h=r.mul(e,h),m=r.sub(d,h),m=r.mul(e,m),m=r.add(m,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,h),d=r.mul(d,m),u=r.add(u,d),h=r.mul(a,s),h=r.add(h,h),d=r.mul(h,m),c=r.sub(c,d),l=r.mul(h,f),l=r.add(l,l),new p(c,u,l=r.add(l,l))}add(e){u(e);let{px:t,py:o,pz:i}=this,{px:a,py:s,pz:c}=e,l=r.ZERO,d=r.ZERO,f=r.ZERO,h=n.a,m=r.mul(n.b,ey),y=r.mul(t,a),b=r.mul(o,s),w=r.mul(i,c),g=r.add(t,o),A=r.add(a,s);g=r.mul(g,A),A=r.add(y,b),g=r.sub(g,A),A=r.add(t,i);let v=r.add(a,c);return A=r.mul(A,v),v=r.add(y,w),A=r.sub(A,v),v=r.add(o,i),l=r.add(s,c),v=r.mul(v,l),l=r.add(b,w),v=r.sub(v,l),f=r.mul(h,A),l=r.mul(m,w),f=r.add(l,f),l=r.sub(b,f),f=r.add(b,f),d=r.mul(l,f),b=r.add(y,y),b=r.add(b,y),w=r.mul(h,w),A=r.mul(m,A),b=r.add(b,w),w=r.sub(y,w),w=r.mul(h,w),A=r.add(A,w),y=r.mul(b,A),d=r.add(d,y),y=r.mul(v,A),l=r.mul(g,l),l=r.sub(l,y),y=r.mul(g,b),f=r.mul(v,f),new p(l,d,f=r.add(f,y))}subtract(e){return this.add(e.negate())}is0(){return this.equals(p.ZERO)}wNAF(e){return b.wNAFCached(this,e,p.normalizeZ)}multiplyUnsafe(e){let{endo:t,n:o}=n;N("scalar",e,eh,o);let i=p.ZERO;if(e===eh)return i;if(this.is0()||e===em)return this;if(!t||b.hasPrecomputes(this))return b.wNAFCachedUnsafe(this,e,p.normalizeZ);let{k1neg:a,k1:s,k2neg:c,k2:u}=t.splitScalar(e),l=i,d=i,f=this;for(;s>eh||u>eh;)s&em&&(l=l.add(f)),u&em&&(d=d.add(f)),f=f.double(),s>>=em,u>>=em;return a&&(l=l.negate()),c&&(d=d.negate()),d=new p(r.mul(d.px,t.beta),d.py,d.pz),l.add(d)}multiply(e){let t,o;let{endo:i,n:a}=n;if(N("scalar",e,em,a),i){let{k1neg:n,k1:a,k2neg:s,k2:c}=i.splitScalar(e),{p:u,f:l}=this.wNAF(a),{p:d,f:f}=this.wNAF(c);u=b.constTimeNegate(n,u),d=b.constTimeNegate(s,d),d=new p(r.mul(d.px,i.beta),d.py,d.pz),t=u.add(d),o=l.add(f)}else{let{p:n,f:r}=this.wNAF(e);t=n,o=r}return p.normalizeZ([t,o])[0]}multiplyAndAddUnsafe(e,t,n){let r=p.BASE,o=(e,t)=>t!==eh&&t!==em&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),i=o(this,t).add(o(e,n));return i.is0()?void 0:i}toAffine(e){return l(this,e)}isTorsionFree(){let{h:e,isTorsionFree:t}=n;if(e===em)return!0;if(t)return t(p,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:t}=n;return e===em?this:t?t(p,this):this.multiplyUnsafe(n.h)}toRawBytes(e=!0){return h("isCompressed",e),this.assertValidity(),i(p,this,e)}toHex(e=!0){return h("isCompressed",e),y(this.toRawBytes(e))}}p.BASE=new p(n.Gx,n.Gy,r.ONE),p.ZERO=new p(r.ZERO,r.ONE,r.ZERO);let m=n.nBitLength,b=(t=n.endo?Math.ceil(m/2):m,{constTimeNegate:en,hasPrecomputes:e=>1!==es(e),unsafeLadder(e,t,n=p.ZERO){let r=e;for(;t>ee;)t&et&&(n=n.add(r)),r=r.double(),t>>=et;return n},precomputeWindow(e,n){let{windows:r,windowSize:o}=eo(n,t),i=[],a=e,s=a;for(let e=0;e<r;e++){s=a,i.push(s);for(let e=1;e<o;e++)s=s.add(a),i.push(s);a=s.double()}return i},wNAF(e,n,r){let{windows:o,windowSize:i}=eo(e,t),a=p.ZERO,s=p.BASE,c=BigInt(2**e-1),u=2**e,l=BigInt(e);for(let e=0;e<o;e++){let t=e*i,o=Number(r&c);r>>=l,o>i&&(o-=u,r+=et);let d=t+Math.abs(o)-1,f=e%2!=0,p=o<0;0===o?s=s.add(en(f,n[t])):a=a.add(en(p,n[d]))}return{p:a,f:s}},wNAFUnsafe(e,n,r,o=p.ZERO){let{windows:i,windowSize:a}=eo(e,t),s=BigInt(2**e-1),c=2**e,u=BigInt(e);for(let e=0;e<i;e++){let t=e*a;if(r===ee)break;let i=Number(r&s);if(r>>=u,i>a&&(i-=c,r+=et),0===i)continue;let l=n[t+Math.abs(i)-1];i<0&&(l=l.negate()),o=o.add(l)}return o},getPrecomputes(e,t,n){let r=ei.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&ei.set(t,n(r))),r},wNAFCached(e,t,n){let r=es(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)},wNAFCachedUnsafe(e,t,n,r){let o=es(e);return 1===o?this.unsafeLadder(e,t,r):this.wNAFUnsafe(o,this.getPrecomputes(o,e,n),t,r)},setWindowSize(e,n){er(n,t),ea.set(e,n),ei.delete(e)}});return{CURVE:n,ProjectivePoint:p,normPrivateKeyToScalar:c,weierstrassEquation:s,isWithinCurveOrder:function(e){return M(e,em,n.n)}}}({...t,toBytes(e,t,r){let o=t.toAffine(),i=n.toBytes(o.x),a=I;return(h("isCompressed",r),r)?a(Uint8Array.from([t.hasEvenY()?2:3]),i):a(Uint8Array.from([4]),i,n.toBytes(o.y))},fromBytes(e){let t=e.length,r=e[0],a=e.subarray(1);if(t===o&&(2===r||3===r)){let e;let t=x(a);if(!M(t,em,n.ORDER))throw Error("Point is not on curve");let o=u(t);try{e=n.sqrt(o)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&r)==1!=((e&em)===em)&&(e=n.neg(e)),{x:t,y:e}}if(t===i&&4===r)return{x:n.fromBytes(a.subarray(0,n.BYTES)),y:n.fromBytes(a.subarray(n.BYTES,2*n.BYTES))};throw Error("invalid Point, expected length of "+o+", or uncompressed "+i+", got "+t)}}),d=e=>y(E(e,t.nByteLength)),p=(e,t,n)=>x(e.slice(t,n));class m{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){let n=t.nByteLength;return new m(p(e=k("compactSignature",e,2*n),0,n),p(e,n,2*n))}static fromDER(e){let{r:t,s:n}=ep.toSig(k("DER",e));return new m(t,n)}assertValidity(){N("r",this.r,em,r),N("s",this.s,em,r)}addRecoveryBit(e){return new m(this.r,this.s,e)}recoverPublicKey(e){let{r:o,s:i,recovery:c}=this,u=g(k("msgHash",e));if(null==c||![0,1,2,3].includes(c))throw Error("recovery id invalid");let l=2===c||3===c?o+t.n:o;if(l>=n.ORDER)throw Error("recovery id 2 or 3 invalid");let f=(1&c)==0?"02":"03",p=s.fromHex(f+d(l)),h=V(l,r),m=a(-u*h),y=a(i*h),b=s.BASE.multiplyAndAddUnsafe(p,m,y);if(!b)throw Error("point at infinify");return b.assertValidity(),b}hasHighS(){return this.s>r>>em}normalizeS(){return this.hasHighS()?new m(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return v(this.toDERHex())}toDERHex(){return ep.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return v(this.toCompactHex())}toCompactHex(){return d(this.r)+d(this.s)}}function b(e){let t=f(e),n="string"==typeof e,r=(t||n)&&e.length;return t?r===o||r===i:n?r===2*o||r===2*i:e instanceof s}let w=t.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let n=x(e),r=8*e.length-t.nBitLength;return r>0?n>>BigInt(r):n},g=t.bits2int_modN||function(e){return a(w(e))},A=S(t.nBitLength);function P(e){return N("num < 2^"+t.nBitLength,e,eh,A),E(e,t.nByteLength)}let R={lowS:t.lowS,prehash:!1},F={lowS:t.lowS,prehash:!1};return s.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return s.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,n=!0){if(b(e))throw Error("first arg must be private key");if(!b(t))throw Error("second arg must be public key");return s.fromHex(t).multiply(c(e)).toRawBytes(n)},sign:function(e,o,i=R){let{seed:u,k2sig:d}=function(e,o,i=R){if(["recovered","canonical"].some(e=>e in i))throw Error("sign() legacy options not supported");let{hash:u,randomBytes:d}=t,{lowS:f,prehash:p,extraEntropy:h}=i;null==f&&(f=!0),e=k("msgHash",e),eu(i),p&&(e=k("prehashed msgHash",u(e)));let y=g(e),b=c(o),A=[P(b),P(y)];if(null!=h&&!1!==h){let e=!0===h?d(n.BYTES):h;A.push(k("extraEntropy",e))}return{seed:I(...A),k2sig:function(e){let t=w(e);if(!l(t))return;let n=V(t,r),o=s.BASE.multiply(t).toAffine(),i=a(o.x);if(i===eh)return;let c=a(n*a(y+i*b));if(c===eh)return;let u=(o.x===i?0:2)|Number(o.y&em),d=c;if(f&&c>r>>em)d=c>r>>em?a(-c):c,u^=1;return new m(i,d,u)}}}(e,o,i);return T(t.hash.outputLen,t.nByteLength,t.hmac)(u,d)},verify:function(e,n,o,i=F){let c,u;n=k("msgHash",n),o=k("publicKey",o);let{lowS:l,prehash:d,format:p}=i;if(eu(i),"strict"in i)throw Error("options.strict was renamed to lowS");if(void 0!==p&&"compact"!==p&&"der"!==p)throw Error("format must be compact or der");let h="string"==typeof e||f(e),y=!h&&!p&&"object"==typeof e&&null!==e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!h&&!y)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(y&&(u=new m(e.r,e.s)),h){try{"compact"!==p&&(u=m.fromDER(e))}catch(e){if(!(e instanceof ep.Err))throw e}u||"der"===p||(u=m.fromCompact(e))}c=s.fromHex(o)}catch(e){return!1}if(!u||l&&u.hasHighS())return!1;d&&(n=t.hash(n));let{r:b,s:w}=u,A=g(n),v=V(w,r),x=a(A*v),C=a(b*v),E=s.BASE.multiplyAndAddUnsafe(c,x,C)?.toAffine();return!!E&&a(E.x)===b},ProjectivePoint:s,Signature:m,utils:{isValidPrivateKey(e){try{return c(e),!0}catch(e){return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{let e=_(t.n);return function(e,t,n=!1){let r=e.length,o=$(t),i=_(t);if(r<16||r<i||r>1024)throw Error("expected "+i+"-1024 bytes of input, got "+r);let a=Z(n?C(e):x(e),t-q)+q;return n?B(a,o):E(a,o)}(t.randomBytes(e),t.n)},precompute:(e=8,t=s.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,hash:t,hmac:(e,...n)=>c(t,e,(0,a.eV)(...n)),randomBytes:a.O6});return{...n(t),create:n}}({a:BigInt(0),b:BigInt(7),Fp:ex,n:ew,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-eg*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=BigInt("0x100000000000000000000000000000000"),i=ev(t*e,ew),a=ev(-n*e,ew),s=Z(e-i*t-a*r,ew),c=Z(-i*n-a*t,ew),u=s>o,l=c>o;if(u&&(s=ew-s),l&&(c=ew-c),s>o||c>o)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:s,k2neg:l,k2:c}}}},o.JQ);BigInt(0),eC.ProjectivePoint},16442:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(2446),o={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},i=o.blue,a=function(){let{accentColor:e=i.accentColor,accentColorForeground:t=i.accentColorForeground,...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,r.w)(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}}};a.accentColors=o},2446:function(e,t,n){"use strict";n.d(t,{w:function(){return s}});var r='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',o={rounded:'SFRounded, ui-rounded, "SF Pro Rounded", '.concat(r),system:r},i={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},a={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},s=e=>{let{borderRadius:t="large",fontStack:n="rounded",overlayBlur:r="none"}=e;return{blurs:{modalOverlay:a[r].modalOverlay},fonts:{body:o[n]},radii:{actionButton:i[t].actionButton,connectButton:i[t].connectButton,menuButton:i[t].connectButton,modal:i[t].modal,modalMobile:i[t].modalMobile}}}},13189:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r='{\n "connect_wallet": {\n "label": "Connect Wallet",\n "wrong_network": {\n "label": "Wrong network"\n }\n },\n\n "intro": {\n "title": "What is a Wallet?",\n "description": "A wallet is used to send, receive, store, and display digital assets. It\'s also a new way to log in, without needing to create new accounts and passwords on every website.",\n "digital_asset": {\n "title": "A Home for your Digital Assets",\n "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."\n },\n "login": {\n "title": "A New Way to Log In",\n "description": "Instead of creating new accounts and passwords on every website, just connect your wallet."\n },\n "get": {\n "label": "Get a Wallet"\n },\n "learn_more": {\n "label": "Learn More"\n }\n },\n\n "sign_in": {\n "label": "Verify your account",\n "description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",\n "message": {\n "send": "Sign message",\n "preparing": "Preparing message...",\n "cancel": "Cancel",\n "preparing_error": "Error preparing message, please retry!"\n },\n "signature": {\n "waiting": "Waiting for signature...",\n "verifying": "Verifying signature...",\n "signing_error": "Error signing message, please retry!",\n "verifying_error": "Error verifying signature, please retry!",\n "oops_error": "Oops, something went wrong!"\n }\n },\n\n "connect": {\n "label": "Connect",\n "title": "Connect a Wallet",\n "new_to_ethereum": {\n "description": "New to Ethereum wallets?",\n "learn_more": {\n "label": "Learn More"\n }\n },\n "learn_more": {\n "label": "Learn more"\n },\n "recent": "Recent",\n "status": {\n "opening": "Opening %{wallet}...",\n "connecting": "Connecting",\n "connect_mobile": "Continue in %{wallet}",\n "not_installed": "%{wallet} is not installed",\n "not_available": "%{wallet} is not available",\n "confirm": "Confirm connection in the extension",\n "confirm_mobile": "Accept connection request in the wallet"\n },\n "secondary_action": {\n "get": {\n "description": "Don\'t have %{wallet}?",\n "label": "GET"\n },\n "install": {\n "label": "INSTALL"\n },\n "retry": {\n "label": "RETRY"\n }\n },\n "walletconnect": {\n "description": {\n "full": "Need the official WalletConnect modal?",\n "compact": "Need the WalletConnect modal?"\n },\n "open": {\n "label": "OPEN"\n }\n }\n },\n\n "connect_scan": {\n "title": "Scan with %{wallet}",\n "fallback_title": "Scan with your phone"\n },\n\n "connector_group": {\n "installed": "Installed",\n "recommended": "Recommended",\n "other": "Other",\n "popular": "Popular",\n "more": "More",\n "others": "Others"\n },\n\n "get": {\n "title": "Get a Wallet",\n "action": {\n "label": "GET"\n },\n "mobile": {\n "description": "Mobile Wallet"\n },\n "extension": {\n "description": "Browser Extension"\n },\n "mobile_and_extension": {\n "description": "Mobile Wallet and Extension"\n },\n "mobile_and_desktop": {\n "description": "Mobile and Desktop Wallet"\n },\n "looking_for": {\n "title": "Not what you\'re looking for?",\n "mobile": {\n "description": "Select a wallet on the main screen to get started with a different wallet provider."\n },\n "desktop": {\n "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.",\n "wide_description": "Select a wallet on the left to get started with a different wallet provider."\n }\n }\n },\n\n "get_options": {\n "title": "Get started with %{wallet}",\n "short_title": "Get %{wallet}",\n "mobile": {\n "title": "%{wallet} for Mobile",\n "description": "Use the mobile wallet to explore the world of Ethereum.",\n "download": {\n "label": "Get the app"\n }\n },\n "extension": {\n "title": "%{wallet} for %{browser}",\n "description": "Access your wallet right from your favorite web browser.",\n "download": {\n "label": "Add to %{browser}"\n }\n },\n "desktop": {\n "title": "%{wallet} for %{platform}",\n "description": "Access your wallet natively from your powerful desktop.",\n "download": {\n "label": "Add to %{platform}"\n }\n }\n },\n\n "get_mobile": {\n "title": "Install %{wallet}",\n "description": "Scan with your phone to download on iOS or Android",\n "continue": {\n "label": "Continue"\n }\n },\n\n "get_instructions": {\n "mobile": {\n "connect": {\n "label": "Connect"\n },\n "learn_more": {\n "label": "Learn More"\n }\n },\n "extension": {\n "refresh": {\n "label": "Refresh"\n },\n "learn_more": {\n "label": "Learn More"\n }\n },\n "desktop": {\n "connect": {\n "label": "Connect"\n },\n "learn_more": {\n "label": "Learn More"\n }\n }\n },\n\n "chains": {\n "title": "Switch Networks",\n "wrong_network": "Wrong network detected, switch or disconnect to continue.",\n "confirm": "Confirm in Wallet",\n "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",\n "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",\n "disconnect": "Disconnect",\n "connected": "Connected"\n },\n\n "profile": {\n "disconnect": {\n "label": "Disconnect"\n },\n "copy_address": {\n "label": "Copy Address",\n "copied": "Copied!"\n },\n "explorer": {\n "label": "View more on explorer"\n },\n "transactions": {\n "description": "%{appName} transactions will appear here...",\n "description_fallback": "Your transactions will appear here...",\n "recent": {\n "title": "Recent Transactions"\n },\n "clear": {\n "label": "Clear All"\n }\n }\n },\n\n "wallet_connectors": {\n "argent": {\n "qr_code": {\n "step1": {\n "description": "Put Argent on your home screen for faster access to your wallet.",\n "title": "Open the Argent app"\n },\n "step2": {\n "description": "Create a wallet and username, or import an existing wallet.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the Scan QR button"\n }\n }\n },\n\n "bifrost": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.",\n "title": "Open the Bifrost Wallet app"\n },\n "step2": {\n "description": "Create or import a wallet using your recovery phrase.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n }\n },\n\n "bitget": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Bitget Wallet on your home screen for quicker access.",\n "title": "Open the Bitget Wallet app"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",\n "title": "Install the Bitget Wallet extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "bitski": {\n "extension": {\n "step1": {\n "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.",\n "title": "Install the Bitski extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "bitverse": {\n "qr_code": {\n "step1": {\n "title": "Open the Bitverse Wallet app",\n "description": "Add Bitverse Wallet to your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the QR icon and scan",\n "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n }\n }\n },\n\n "bloom": {\n "desktop": {\n "step1": {\n "title": "Open the Bloom Wallet app",\n "description": "We recommend putting Bloom Wallet on your home screen for quicker access."\n },\n "step2": {\n "description": "Create or import a wallet using your recovery phrase.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you have a wallet, click on Connect to connect via Bloom. A connection prompt in the app will appear for you to confirm the connection.",\n "title": "Click on Connect"\n }\n }\n },\n\n "bybit": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Bybit on your home screen for faster access to your wallet.",\n "title": "Open the Bybit app"\n },\n "step2": {\n "description": "You can easily backup your wallet using our backup feature on your phone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "Click at the top right of your browser and pin Bybit Wallet for easy access.",\n "title": "Install the Bybit Wallet extension"\n },\n "step2": {\n "description": "Create a new wallet or import an existing one.",\n "title": "Create or Import a wallet"\n },\n "step3": {\n "description": "Once you set up Bybit Wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "binance": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Binance on your home screen for faster access to your wallet.",\n "title": "Open the Binance app"\n },\n "step2": {\n "description": "You can easily backup your wallet using our backup feature on your phone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the WalletConnect button"\n }\n }\n },\n\n "coin98": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",\n "title": "Open the Coin98 Wallet app"\n },\n "step2": {\n "description": "You can easily backup your wallet using our backup feature on your phone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the WalletConnect button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.",\n "title": "Install the Coin98 Wallet extension"\n },\n "step2": {\n "description": "Create a new wallet or import an existing one.",\n "title": "Create or Import a wallet"\n },\n "step3": {\n "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "coinbase": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.",\n "title": "Open the Coinbase Wallet app"\n },\n "step2": {\n "description": "You can easily backup your wallet using the cloud backup feature.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",\n "title": "Install the Coinbase Wallet extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "compass": {\n "extension": {\n "step1": {\n "description": "We recommend pinning Compass Wallet to your taskbar for quicker access to your wallet.",\n "title": "Install the Compass Wallet extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "core": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Core on your home screen for faster access to your wallet.",\n "title": "Open the Core app"\n },\n "step2": {\n "description": "You can easily backup your wallet using our backup feature on your phone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the WalletConnect button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.",\n "title": "Install the Core extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "fox": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting FoxWallet on your home screen for quicker access.",\n "title": "Open the FoxWallet app"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n }\n },\n\n "frontier": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Frontier Wallet on your home screen for quicker access.",\n "title": "Open the Frontier Wallet app"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",\n "title": "Install the Frontier Wallet extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "im_token": {\n "qr_code": {\n "step1": {\n "title": "Open the imToken app",\n "description": "Put imToken app on your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap Scanner Icon in top right corner",\n "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n }\n }\n },\n\n "iopay": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting ioPay on your home screen for faster access to your wallet.",\n "title": "Open the ioPay app"\n },\n "step2": {\n "description": "You can easily backup your wallet using our backup feature on your phone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the WalletConnect button"\n }\n }\n },\n\n "kaikas": {\n "extension": {\n "step1": {\n "description": "We recommend pinning Kaikas to your taskbar for quicker access to your wallet.",\n "title": "Install the Kaikas extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n },\n "qr_code": {\n "step1": {\n "title": "Open the Kaikas app",\n "description": "Put Kaikas app on your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap Scanner Icon in top right corner",\n "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n }\n }\n },\n\n "kaia": {\n "extension": {\n "step1": {\n "description": "We recommend pinning Kaia to your taskbar for quicker access to your wallet.",\n "title": "Install the Kaia extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n },\n "qr_code": {\n "step1": {\n "title": "Open the Kaia app",\n "description": "Put Kaia app on your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap Scanner Icon in top right corner",\n "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n }\n }\n },\n\n "kraken": {\n "qr_code": {\n "step1": {\n "title": "Open the Kraken Wallet app",\n "description": "Add Kraken Wallet to your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the QR icon and scan",\n "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n }\n }\n },\n\n "kresus": {\n "qr_code": {\n "step1": {\n "title": "Open the Kresus Wallet app",\n "description": "Add Kresus Wallet to your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the QR icon and scan",\n "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n }\n }\n },\n\n "magicEden": {\n "extension": {\n "step1": {\n "title": "Install the Magic Eden extension",\n "description": "We recommend pinning Magic Eden to your taskbar for easier access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "metamask": {\n "qr_code": {\n "step1": {\n "title": "Open the MetaMask app",\n "description": "We recommend putting MetaMask on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n },\n\n "extension": {\n "step1": {\n "title": "Install the MetaMask extension",\n "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "nestwallet": {\n "extension": {\n "step1": {\n "title": "Install the NestWallet extension",\n "description": "We recommend pinning NestWallet to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "okx": {\n "qr_code": {\n "step1": {\n "title": "Open the OKX Wallet app",\n "description": "We recommend putting OKX Wallet on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n },\n\n "extension": {\n "step1": {\n "title": "Install the OKX Wallet extension",\n "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "omni": {\n "qr_code": {\n "step1": {\n "title": "Open the Omni app",\n "description": "Add Omni to your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the QR icon and scan",\n "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."\n }\n }\n },\n\n "1inch": {\n "qr_code": {\n "step1": {\n "description": "Put 1inch Wallet on your home screen for faster access to your wallet.",\n "title": "Open the 1inch Wallet app"\n },\n "step2": {\n "description": "Create a wallet and username, or import an existing wallet.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the Scan QR button"\n }\n }\n },\n\n "token_pocket": {\n "qr_code": {\n "step1": {\n "title": "Open the TokenPocket app",\n "description": "We recommend putting TokenPocket on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n },\n\n "extension": {\n "step1": {\n "title": "Install the TokenPocket extension",\n "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "trust": {\n "qr_code": {\n "step1": {\n "title": "Open the Trust Wallet app",\n "description": "Put Trust Wallet on your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap WalletConnect in Settings",\n "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n }\n },\n\n "extension": {\n "step1": {\n "title": "Install the Trust Wallet extension",\n "description": "Click at the top right of your browser and pin Trust Wallet for easy access."\n },\n "step2": {\n "title": "Create or Import a wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "uniswap": {\n "qr_code": {\n "step1": {\n "title": "Open the Uniswap app",\n "description": "Add Uniswap Wallet to your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the QR icon and scan",\n "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n }\n }\n },\n\n "zerion": {\n "qr_code": {\n "step1": {\n "title": "Open the Zerion app",\n "description": "We recommend putting Zerion on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n },\n\n "extension": {\n "step1": {\n "title": "Install the Zerion extension",\n "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "rainbow": {\n "qr_code": {\n "step1": {\n "title": "Open the Rainbow app",\n "description": "We recommend putting Rainbow on your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "You can easily backup your wallet using our backup feature on your phone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n }\n },\n\n "enkrypt": {\n "extension": {\n "step1": {\n "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",\n "title": "Install the Enkrypt Wallet extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "frame": {\n "extension": {\n "step1": {\n "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.",\n "title": "Install Frame & the companion extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "one_key": {\n "extension": {\n "step1": {\n "title": "Install the OneKey Wallet extension",\n "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "phantom": {\n "extension": {\n "step1": {\n "title": "Install the Phantom extension",\n "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "rabby": {\n "extension": {\n "step1": {\n "title": "Install the Rabby extension",\n "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "ronin": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Ronin Wallet on your home screen for quicker access.",\n "title": "Open the Ronin Wallet app"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "We recommend pinning Ronin Wallet to your taskbar for quicker access to your wallet.",\n "title": "Install the Ronin Wallet extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "ramper": {\n "extension": {\n "step1": {\n "title": "Install the Ramper extension",\n "description": "We recommend pinning Ramper to your taskbar for easier access to your wallet."\n },\n "step2": {\n "title": "Create a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "safeheron": {\n "extension": {\n "step1": {\n "title": "Install the Core extension",\n "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "taho": {\n "extension": {\n "step1": {\n "title": "Install the Taho extension",\n "description": "We recommend pinning Taho to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "talisman": {\n "extension": {\n "step1": {\n "title": "Install the Talisman extension",\n "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import an Ethereum Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "xdefi": {\n "extension": {\n "step1": {\n "title": "Install the XDEFI Wallet extension",\n "description": "We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "zeal": {\n "qr_code": {\n "step1": {\n "title": "Open the Zeal app",\n "description": "Add Zeal Wallet to your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the QR icon and scan",\n "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n }\n },\n "extension": {\n "step1": {\n "title": "Install the Zeal extension",\n "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "safepal": {\n "extension": {\n "step1": {\n "title": "Install the SafePal Wallet extension",\n "description": "Click at the top right of your browser and pin SafePal Wallet for easy access."\n },\n "step2": {\n "title": "Create or Import a wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Open the SafePal Wallet app",\n "description": "Put SafePal Wallet on your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap WalletConnect in Settings",\n "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n }\n }\n },\n\n "desig": {\n "extension": {\n "step1": {\n "title": "Install the Desig extension",\n "description": "We recommend pinning Desig to your taskbar for easier access to your wallet."\n },\n "step2": {\n "title": "Create a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "subwallet": {\n "extension": {\n "step1": {\n "title": "Install the SubWallet extension",\n "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Open the SubWallet app",\n "description": "We recommend putting SubWallet on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n }\n },\n\n "clv": {\n "extension": {\n "step1": {\n "title": "Install the CLV Wallet extension",\n "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Open the CLV Wallet app",\n "description": "We recommend putting CLV Wallet on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n }\n },\n\n "okto": {\n "qr_code": {\n "step1": {\n "title": "Open the Okto app",\n "description": "Add Okto to your home screen for quick access"\n },\n "step2": {\n "title": "Create an MPC Wallet",\n "description": "Create an account and generate a wallet"\n },\n "step3": {\n "title": "Tap WalletConnect in Settings",\n "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect."\n }\n }\n },\n\n "ledger": {\n "desktop": {\n "step1": {\n "title": "Open the Ledger Live app",\n "description": "We recommend putting Ledger Live on your home screen for quicker access."\n },\n "step2": {\n "title": "Set up your Ledger",\n "description": "Set up a new Ledger or connect to an existing one."\n },\n "step3": {\n "title": "Connect",\n "description": "A connection prompt will appear for you to connect your wallet."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Open the Ledger Live app",\n "description": "We recommend putting Ledger Live on your home screen for quicker access."\n },\n "step2": {\n "title": "Set up your Ledger",\n "description": "You can either sync with the desktop app or connect your Ledger."\n },\n "step3": {\n "title": "Scan the code",\n "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."\n }\n }\n },\n\n "valora": {\n "qr_code": {\n "step1": {\n "title": "Open the Valora app",\n "description": "We recommend putting Valora on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or import a wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n }\n }\n }\n}\n'},77202:function(e,t,n){"use strict";n.d(t,{R:function(){return s},m:function(){return a}});var r=n(66714),o=n(39887),i=n(28066),a=class extends o.F{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){this.#n=(0,i.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#r({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});let t="pending"===this.state.status,n=!this.#n.canStart();try{if(!t){this.#r({type:"pending",variables:e,isPaused:n}),await this.#t.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#r({type:"pending",context:t,variables:e,isPaused:n})}let r=await this.#n.start();return await this.#t.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#t.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#r({type:"success",data:r}),r}catch(t){try{throw await this.#t.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#t.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#r({type:"error",error:t})}}finally{this.#t.runNext(this)}}#r(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.V.batch(()=>{this.#e.forEach(t=>{t.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},28103:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(46760),o=n(77202),i=n(66714),a=n(52360),s=n(31843),c=class extends a.l{#o;#i=void 0;#a;#s;constructor(e,t){super(),this.#o=e,this.setOptions(t),this.bindMethods(),this.#c()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#o.defaultMutationOptions(e),(0,s.VS)(this.options,t)||this.#o.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.Ym)(t.mutationKey)!==(0,s.Ym)(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(e){this.#c(),this.#u(e)}getCurrentResult(){return this.#i}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#c(),this.#u()}mutate(e,t){return this.#s=t,this.#a?.removeObserver(this),this.#a=this.#o.getMutationCache().build(this.#o,this.options),this.#a.addObserver(this),this.#a.execute(e)}#c(){let e=this.#a?.state??(0,o.R)();this.#i={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#u(e){i.V.batch(()=>{if(this.#s&&this.hasListeners()){let t=this.#i.variables,n=this.#i.context;e?.type==="success"?(this.#s.onSuccess?.(e.data,t,n),this.#s.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#s.onError?.(e.error,t,n),this.#s.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#i)})})}},u=n(86655),l=n(24589);function d(e,t){let n=(0,u.NL)(t),[o]=r.useState(()=>new c(n,e));r.useEffect(()=>{o.setOptions(e)},[o,e]);let a=r.useSyncExternalStore(r.useCallback(e=>o.subscribe(i.V.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),s=r.useCallback((e,t)=>{o.mutate(e,t).catch(l.Z)},[o]);if(a.error&&(0,l.L)(o.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}},54444:function(e,t,n){"use strict";function r(e){let t=e.state.current,n=e.state.connections.get(t),r=n?.accounts,o=r?.[0],i=e.chains.find(e=>e.id===n?.chainId),a=e.state.status;switch(a){case"connected":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:a};case"reconnecting":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!!o,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:a};case"connecting":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:a};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:a}}}n.d(t,{D:function(){return r}})},81605:function(e,t,n){"use strict";n.d(t,{e:function(){return c}});var r=n(54622),o=n(45491),i=n(20320),a=n(67543),s=n(47609);async function c(e,t={}){let n;if(t.connector){let{connector:r}=t;if("reconnecting"===e.state.status&&!r.getAccounts&&!r.getChainId)throw new s.$S({connector:r});let[o,i]=await Promise.all([r.getAccounts(),r.getChainId()]);n={accounts:o,chainId:i,connector:r}}else n=e.state.connections.get(e.state.current);if(!n)throw new s.aH;let c=t.chainId??n.chainId,u=await n.connector.getChainId();if(u!==n.chainId)throw new s.XZ({connectionChainId:n.chainId,connectorChainId:u});let l=n.connector;if(l.getClient)return l.getClient({chainId:c});let d=(0,i.T)(t.account??n.accounts[0]);if(d.address=(0,a.K)(d.address),t.account&&!n.accounts.some(e=>e.toLowerCase()===d.address.toLowerCase()))throw new s.JK({address:d.address,connector:l});let f=e.chains.find(e=>e.id===c),p=await n.connector.getProvider({chainId:c});return(0,r.e)({account:d,chain:f,name:"Connector Client",transport:e=>(function(e,t={}){let{key:n="custom",methods:r,name:i="Custom Provider",retryDelay:a}=t;return({retryCount:s})=>(0,o.q)({key:n,methods:r,name:i,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:a,type:"custom"})})(p)({...e,retryCount:0})})}},69737:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(74396),o=n(16272);function i(e,t){let{chainId:n,...i}=t,a=e.getClient({chainId:n});return(0,o.s)(a,r.L,"readContract")(i)}},73279:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(94269),o=n(16272),i=n(81605);async function a(e,t){let n;let{abi:a,chainId:s,connector:c,...u}=t;n=t.account?t.account:(await (0,i.e)(e,{chainId:s,connector:c})).account;let l=e.getClient({chainId:s}),d=(0,o.s)(l,r.a,"simulateContract"),{result:f,request:p}=await d({...u,abi:a,account:n});return{chainId:l.chain.id,result:f,request:{__mode:"prepared",...p,chainId:s}}}},78325:function(e,t,n){"use strict";n.d(t,{e:function(){return c}});var r=n(28649),o=n(24770),i=n(74422),a=n(26395),s=n(16272);async function c(e,t){let{chainId:n,timeout:c=0,...u}=t,l=e.getClient({chainId:n}),d=(0,s.s)(l,o.e,"waitForTransactionReceipt"),f=await d({...u,timeout:c});if("reverted"===f.status){let e=(0,s.s)(l,i.f,"getTransaction"),t=await e({hash:f.transactionHash}),n=(0,s.s)(l,a.R,"call"),o=await n({...t,gasPrice:"eip1559"!==t.type?t.gasPrice:void 0,maxFeePerGas:"eip1559"===t.type?t.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===t.type?t.maxPriorityFeePerGas:void 0});throw Error(o?.data?(0,r.rR)(`0x${o.data.substring(138)}`):"unknown reason")}return{...f,chainId:l.chain.id}}},9211:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r=n(11191),o=n(54444);function i(e,t){let{onChange:n}=t;return e.subscribe(()=>(0,o.D)(e),n,{equalityFn(e,t){let{connector:n,...o}=e,{connector:i,...a}=t;return(0,r.v)(o,a)&&n?.id===i?.id&&n?.uid===i?.uid}})}},47609:function(e,t,n){"use strict";n.d(t,{$S:function(){return u},JK:function(){return s},X4:function(){return o},XZ:function(){return c},aH:function(){return a},wi:function(){return i}});var r=n(71996);class o extends r.G{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class i extends r.G{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class a extends r.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class s extends r.G{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class c extends r.G{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class u extends r.G{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uuid`. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}},63740:function(e,t,n){"use strict";n.d(t,{M:function(){return o},O:function(){return i}});var r=n(71996);class o extends r.G{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class i extends r.G{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}},11191:function(e,t,n){"use strict";n.d(t,{v:function(){return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){let r,o;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)&&Array.isArray(n)){if((r=t.length)!==n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();let i=Object.keys(t);if((r=i.length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){let r=i[o];if(r&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}}})},18773:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});class r extends Error{constructor(e,t={}){let n=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.0.6"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}}},30281:function(e,t,n){"use strict";n.d(t,{F:function(){return i},Hk:function(){return a},a_:function(){return o}});var r=n(18773);class o extends r.G{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class i extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class a extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}},96235:function(e,t,n){"use strict";n.d(t,{TT:function(){return i},_D:function(){return s},aZ:function(){return c},jO:function(){return o},zL:function(){return a}});var r=n(18773);class o extends r.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class i extends r.G{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class a extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class s extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class c extends r.G{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},57319:function(e,t,n){"use strict";n.d(t,{H6:function(){return a},Vs:function(){return i},wn:function(){return o}});var r=n(18773);class o extends r.G{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class i extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class a extends r.G{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}},29052:function(e,t,n){"use strict";n.d(t,{Dt:function(){return E},EC:function(){return A},N0:function(){return h},PI:function(){return w},QM:function(){return x},SA:function(){return a},Wg:function(){return C},_c:function(){return i},a4:function(){return b},c3:function(){return c},g1:function(){return m},l$:function(){return f},rh:function(){return d},wA:function(){return u}});var r=n(41923);let o=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function i(e){return o.test(e)}function a(e){return(0,r.Zw)(o,e)}let s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function c(e){return s.test(e)}function u(e){return(0,r.Zw)(s,e)}let l=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function d(e){return l.test(e)}function f(e){return(0,r.Zw)(l,e)}let p=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function h(e){return p.test(e)}function m(e){return(0,r.Zw)(p,e)}let y=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function b(e){return y.test(e)}function w(e){return(0,r.Zw)(y,e)}let g=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function A(e){return g.test(e)}let v=/^receive\(\) external payable$/;function x(e){return v.test(e)}let C=new Set(["indexed"]),E=new Set(["calldata","memory","storage"])},31991:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(41923),o=n(30281),i=n(96235),a=n(57319),s=n(18773);class c extends s.G{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}var u=n(29052),l=n(34468);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,u.N0)(n))continue;let o=(0,u.g1)(n);if(!o)throw new a.wn({signature:n,type:"struct"});let i=o.properties.split(";"),s=[],c=i.length;for(let e=0;e<c;e++){let t=i[e].trim();if(!t)continue;let n=(0,l.C$)(t,{type:"struct"});s.push(n)}if(!s.length)throw new a.H6({signature:n});t[o.name]=s}let s={},d=Object.entries(t),p=d.length;for(let e=0;e<p;e++){let[n,a]=d[e];s[n]=function e(t,n,a=new Set){let s=[],u=t.length;for(let d=0;d<u;d++){let u=t[d];if(r.cN.test(u.type))s.push(u);else{let t=(0,r.Zw)(f,u.type);if(!t?.type)throw new i.aZ({abiParameter:u});let{array:d,type:p}=t;if(p in n){if(a.has(p))throw new c({type:p});s.push({...u,type:`tuple${d??""}`,components:e(n[p]??[],n,new Set([...a,p]))})}else if((0,l.uN)(p))s.push(u);else throw new o.F({type:p})}}return s}(a,t)}return s}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},34468:function(e,t,n){"use strict";n.d(t,{uN:function(){return b},C$:function(){return m},cK:function(){return d}});var r=n(41923),o=n(30281),i=n(96235),a=n(57319),s=n(18773);class c extends s.G{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let u=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);var l=n(29052);function d(e,t={}){if((0,l.rh)(e)){let n=(0,l.l$)(e);if(!n)throw new a.wn({signature:e,type:"function"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{modifiers:l.Dt,structs:t,type:"function"}));let s=[];if(n.returns){let e=y(n.returns),r=e.length;for(let n=0;n<r;n++)s.push(m(e[n],{modifiers:l.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:o,outputs:s}}if((0,l.c3)(e)){let n=(0,l.wA)(e);if(!n)throw new a.wn({signature:e,type:"event"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{modifiers:l.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:o}}if((0,l._c)(e)){let n=(0,l.SA)(e);if(!n)throw new a.wn({signature:e,type:"error"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:o}}if((0,l.a4)(e)){let n=(0,l.PI)(e);if(!n)throw new a.wn({signature:e,type:"constructor"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:o}}if((0,l.EC)(e))return{type:"fallback"};if((0,l.QM)(e))return{type:"receive",stateMutability:"payable"};throw new a.Vs({signature:e})}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^u?int$/;function m(e,t){var n,a,s;let c;let d=(n=t?.type)?`${n}:${e}`:e;if(u.has(d))return u.get(d);let g=r.cN.test(e),A=(0,r.Zw)(g?p:f,e);if(!A)throw new i.jO({param:e});if(A.name&&("address"===(a=A.name)||"bool"===a||"function"===a||"string"===a||"tuple"===a||r.eL.test(a)||r.lh.test(a)||w.test(a)))throw new i.TT({param:e,name:A.name});let v=A.name?{name:A.name}:{},x="indexed"===A.modifier?{indexed:!0}:{},C=t?.structs??{},E={};if(g){c="tuple";let e=y(A.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(m(e[r],{structs:C}));E={components:t}}else if(A.type in C)c="tuple",E={components:C[A.type]};else if(h.test(A.type))c=`${A.type}256`;else if(c=A.type,t?.type!=="struct"&&!b(c))throw new o.Hk({type:c});if(A.modifier){if(!t?.modifiers?.has?.(A.modifier))throw new i.zL({param:e,type:t?.type,modifier:A.modifier});if(l.Dt.has(A.modifier)&&(s=c,!A.array&&"bytes"!==s&&"string"!==s&&"tuple"!==s))throw new i._D({param:e,type:t?.type,modifier:A.modifier})}let B={type:`${c}${A.array??""}`,...v,...x,...E};return u.set(d,B),B}function y(e,t=[],n="",r=0){let o=e.trim().length;for(let i=0;i<o;i++){let o=e[i],a=e.slice(i+1);switch(o){case",":return 0===r?y(a,[...t,n.trim()]):y(a,t,`${n}${o}`,r);case"(":return y(a,t,`${n}${o}`,r+1);case")":return y(a,t,`${n}${o}`,r-1);default:return y(a,t,`${n}${o}`,r)}}if(""===n)return t;if(0!==r)throw new c({current:n,depth:r});return t.push(n.trim()),t}function b(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.eL.test(e)||r.lh.test(e)}let w=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/},41923:function(e,t,n){"use strict";function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{Zw:function(){return r},cN:function(){return a},eL:function(){return o},lh:function(){return i}});let o=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,a=/^\(.+?\).*?$/},56066:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});class r extends Error{constructor(e,t={}){let n=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.0.8"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}}},19397:function(e,t,n){"use strict";n.d(t,{F:function(){return o},Hk:function(){return i}});var r=n(56066);class o extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class i extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}},51728:function(e,t,n){"use strict";n.d(t,{$r:function(){return o},TT:function(){return a},_D:function(){return c},aZ:function(){return u},jO:function(){return i},zL:function(){return s}});var r=n(56066);class o extends r.G{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class i extends r.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class a extends r.G{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class s extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class c extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class u extends r.G{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},61182:function(e,t,n){"use strict";n.d(t,{H6:function(){return a},Vs:function(){return i},wn:function(){return o}});var r=n(56066);class o extends r.G{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class i extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class a extends r.G{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}},62953:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var r=n(80335),o=n(5304),i=n(47468);function a(e){let t=(0,o.D)(e),n=[],a=e.length;for(let o=0;o<a;o++){let a=e[o];(0,r.N0)(a)||n.push((0,i.cK)(a,t))}return n}},80335:function(e,t,n){"use strict";n.d(t,{Dt:function(){return k},EC:function(){return A},LY:function(){return E},N0:function(){return h},PI:function(){return w},QM:function(){return C},SA:function(){return a},Wg:function(){return B},_c:function(){return i},a4:function(){return b},c3:function(){return c},g1:function(){return m},l$:function(){return f},qm:function(){return v},rh:function(){return d},wA:function(){return u}});var r=n(74503);let o=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function i(e){return o.test(e)}function a(e){return(0,r.Zw)(o,e)}let s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function c(e){return s.test(e)}function u(e){return(0,r.Zw)(s,e)}let l=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function d(e){return l.test(e)}function f(e){return(0,r.Zw)(l,e)}let p=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function h(e){return p.test(e)}function m(e){return(0,r.Zw)(p,e)}let y=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function b(e){return y.test(e)}function w(e){return(0,r.Zw)(y,e)}let g=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function A(e){return g.test(e)}function v(e){return(0,r.Zw)(g,e)}let x=/^receive\(\) external payable$/;function C(e){return x.test(e)}let E=new Set(["memory","indexed","storage","calldata"]),B=new Set(["indexed"]),k=new Set(["calldata","memory","storage"])},5304:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(74503),o=n(19397),i=n(51728),a=n(61182),s=n(56066);class c extends s.G{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}var u=n(80335),l=n(47468);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,u.N0)(n))continue;let o=(0,u.g1)(n);if(!o)throw new a.wn({signature:n,type:"struct"});let i=o.properties.split(";"),s=[],c=i.length;for(let e=0;e<c;e++){let t=i[e].trim();if(!t)continue;let n=(0,l.C$)(t,{type:"struct"});s.push(n)}if(!s.length)throw new a.H6({signature:n});t[o.name]=s}let s={},d=Object.entries(t),p=d.length;for(let e=0;e<p;e++){let[n,a]=d[e];s[n]=function e(t,n,a=new Set){let s=[],u=t.length;for(let d=0;d<u;d++){let u=t[d];if(r.cN.test(u.type))s.push(u);else{let t=(0,r.Zw)(f,u.type);if(!t?.type)throw new i.aZ({abiParameter:u});let{array:d,type:p}=t;if(p in n){if(a.has(p))throw new c({type:p});s.push({...u,type:`tuple${d??""}`,components:e(n[p]??[],n,new Set([...a,p]))})}else if((0,l.uN)(p))s.push(u);else throw new o.F({type:p})}}return s}(a,t)}return s}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},47468:function(e,t,n){"use strict";n.d(t,{uN:function(){return b},C$:function(){return m},cK:function(){return d},Q4:function(){return y}});var r=n(74503),o=n(19397),i=n(51728),a=n(61182),s=n(56066);class c extends s.G{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let u=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);var l=n(80335);function d(e,t={}){if((0,l.rh)(e))return function(e,t={}){let n=(0,l.l$)(e);if(!n)throw new a.wn({signature:e,type:"function"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{modifiers:l.Dt,structs:t,type:"function"}));let s=[];if(n.returns){let e=y(n.returns),r=e.length;for(let n=0;n<r;n++)s.push(m(e[n],{modifiers:l.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:o,outputs:s}}(e,t);if((0,l.c3)(e))return function(e,t={}){let n=(0,l.wA)(e);if(!n)throw new a.wn({signature:e,type:"event"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{modifiers:l.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:o}}(e,t);if((0,l._c)(e))return function(e,t={}){let n=(0,l.SA)(e);if(!n)throw new a.wn({signature:e,type:"error"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:o}}(e,t);if((0,l.a4)(e))return function(e,t={}){let n=(0,l.PI)(e);if(!n)throw new a.wn({signature:e,type:"constructor"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:o}}(e,t);if((0,l.EC)(e))return function(e){let t=(0,l.qm)(e);if(!t)throw new a.wn({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}(e);if((0,l.QM)(e))return{type:"receive",stateMutability:"payable"};throw new a.Vs({signature:e})}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^u?int$/;function m(e,t){var n,a;let s;let c=function(e,t,n){let r="";if(n)for(let e of Object.entries(n)){if(!e)continue;let t="";for(let n of e[1])t+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${e[0]}{${t}})`}return t?`${t}:${e}${r}`:e}(e,t?.type,t?.structs);if(u.has(c))return u.get(c);let d=r.cN.test(e),g=(0,r.Zw)(d?p:f,e);if(!g)throw new i.jO({param:e});if(g.name&&("address"===(n=g.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||r.eL.test(n)||r.lh.test(n)||w.test(n)))throw new i.TT({param:e,name:g.name});let A=g.name?{name:g.name}:{},v="indexed"===g.modifier?{indexed:!0}:{},x=t?.structs??{},C={};if(d){s="tuple";let e=y(g.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(m(e[r],{structs:x}));C={components:t}}else if(g.type in x)s="tuple",C={components:x[g.type]};else if(h.test(g.type))s=`${g.type}256`;else if(s=g.type,t?.type!=="struct"&&!b(s))throw new o.Hk({type:s});if(g.modifier){if(!t?.modifiers?.has?.(g.modifier))throw new i.zL({param:e,type:t?.type,modifier:g.modifier});if(l.Dt.has(g.modifier)&&(a=s,!g.array&&"bytes"!==a&&"string"!==a&&"tuple"!==a))throw new i._D({param:e,type:t?.type,modifier:g.modifier})}let E={type:`${s}${g.array??""}`,...A,...v,...C};return u.set(c,E),E}function y(e,t=[],n="",r=0){let o=e.trim().length;for(let i=0;i<o;i++){let o=e[i],a=e.slice(i+1);switch(o){case",":return 0===r?y(a,[...t,n.trim()]):y(a,t,`${n}${o}`,r);case"(":return y(a,t,`${n}${o}`,r+1);case")":return y(a,t,`${n}${o}`,r-1);default:return y(a,t,`${n}${o}`,r)}}if(""===n)return t;if(0!==r)throw new c({current:n,depth:r});return t.push(n.trim()),t}function b(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.eL.test(e)||r.lh.test(e)}let w=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/},20320:function(e,t,n){"use strict";function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{T:function(){return r}})},45984:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(67543),o=n(42330);function i(e){let t=(0,o.w)(`0x${e.substring(4)}`).substring(26);return(0,r.x)(`0x${t}`)}},19471:function(e,t,n){"use strict";n.d(t,{r:function(){return E}});var r=n(74396),o=n(17670);class i extends o.G{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}class a extends o.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class s extends o.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class c extends o.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}let u=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,l=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,d=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,f=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function p(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e})}}function h(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function m({uri:e,gatewayUrls:t}){let n=d.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};let r=h(t?.ipfs,"https://ipfs.io"),o=h(t?.arweave,"https://arweave.net"),i=e.match(u),{protocol:a,subpath:c,target:p,subtarget:m=""}=i?.groups||{},y="ipns:/"===a||"ipns/"===c,b="ipfs:/"===a||"ipfs/"===c||l.test(e);if(e.startsWith("http")&&!y&&!b){let n=e;return t?.arweave&&(n=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((y||b)&&p)return{uri:`${r}/${y?"ipns":"ipfs"}/${p}${m}`,isOnChain:!1,isEncoded:!1};if("ar:/"===a&&p)return{uri:`${o}/${p}${m||""}`,isOnChain:!1,isEncoded:!1};let w=e.replace(f,"");if(w.startsWith("<svg")&&(w=`data:image/svg+xml;base64,${btoa(w)}`),w.startsWith("data:")||w.startsWith("{"))return{uri:w,isOnChain:!0,isEncoded:!1};throw new s({uri:e})}function y(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new i({data:e});return e.image||e.image_url||e.image_data}async function b({gatewayUrls:e,uri:t}){try{let n=await fetch(t).then(e=>e.json());return await w({gatewayUrls:e,uri:y(n)})}catch{throw new s({uri:t})}}async function w({gatewayUrls:e,uri:t}){let{uri:n,isOnChain:r}=m({uri:t,gatewayUrls:e});if(r||await p(n))return n;throw new s({uri:t})}async function g(e,{nft:t}){if("erc721"===t.namespace)return(0,r.L)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,r.L)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new c({namespace:t.namespace})}async function A(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?v(e,{gatewayUrls:t,record:n}):w({uri:n,gatewayUrls:t})}async function v(e,{gatewayUrls:t,record:n}){let r=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[n,r,o]=t.split("/"),[i,s]=n.split(":"),[c,u]=r.split(":");if(!i||"eip155"!==i.toLowerCase())throw new a({reason:"Only EIP-155 supported"});if(!s)throw new a({reason:"Chain ID not found"});if(!u)throw new a({reason:"Contract address not found"});if(!o)throw new a({reason:"Token ID not found"});if(!c)throw new a({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s),namespace:c.toLowerCase(),contractAddress:u,tokenID:o}}(n),{uri:o,isOnChain:i,isEncoded:s}=m({uri:await g(e,{nft:r}),gatewayUrls:t});if(i&&(o.includes("data:application/json;base64,")||o.startsWith("{")))return w({uri:y(JSON.parse(s?atob(o.replace("data:application/json;base64,","")):o)),gatewayUrls:t});let c=r.tokenID;return"erc1155"===r.namespace&&(c=c.replace("0x","").padStart(64,"0")),b({gatewayUrls:t,uri:o.replace(/(?:0x)?{id}/,c)})}var x=n(13505),C=n(69881);async function E(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:o,gatewayUrls:i,strict:a,universalResolverAddress:s}){let c=await (0,x.s)(e,C.g,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:o,universalResolverAddress:s,gatewayUrls:i,strict:a});if(!c)return null;try{return await A(e,{record:c,gatewayUrls:r})}catch{return null}}},64313:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var r=n(87867),o=n(29745),i=n(80913),a=n(31030),s=n(49578),c=n(13505),u=n(74396);async function l(e,{address:t,blockNumber:n,blockTag:l,gatewayUrls:d,strict:f,universalResolverAddress:p}){let h=p;if(!h){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");h=(0,o.L)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}let m=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let o={address:h,abi:r.du,functionName:"reverse",args:[(0,i.NC)((0,s.T)(m))],blockNumber:n,blockTag:l},a=(0,c.s)(e,u.L,"readContract"),[f,p]=d?await a({...o,args:[...o.args,d]}):await a(o);if(t.toLowerCase()!==p.toLowerCase())return null;return f}catch(e){if(f)throw e;if((0,a.c)(e,"reverse"))return null;throw e}}},69881:function(e,t,n){"use strict";n.d(t,{g:function(){return p}});var r=n(87867),o=n(3518),i=n(11649),a=n(29745),s=n(80913),c=n(31030),u=n(58451),l=n(49578),d=n(13505),f=n(74396);async function p(e,{blockNumber:t,blockTag:n,name:p,key:h,gatewayUrls:m,strict:y,universalResolverAddress:b}){let w=b;if(!w){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");w=(0,a.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a={address:w,abi:r.k3,functionName:"resolve",args:[(0,s.NC)((0,l.T)(p)),(0,i.R)({abi:r.nZ,functionName:"text",args:[(0,u.V)(p),h]})],blockNumber:t,blockTag:n},c=(0,d.s)(e,f.L,"readContract"),y=m?await c({...a,args:[...a.args,m]}):await c(a);if("0x"===y[0])return null;let b=(0,o.k)({abi:r.nZ,functionName:"text",data:y[0]});return""===b?null:b}catch(e){if(y)throw e;if((0,c.c)(e,"resolve"))return null;throw e}}},26395:function(e,t,n){"use strict";n.d(t,{R:function(){return v}});var r=n(62953),o=n(20320),i=n(87867),a=n(4402),s=n(17670),c=n(19002),u=n(60796),l=n(3518),d=n(81956),f=n(11649),p=n(29745),h=n(80913),m=n(32810),y=n(77839),b=n(47734),w=n(42933),g=n(56177),A=n(88519);async function v(e,t){let{account:i=e.account,batch:l=!!e.batch?.multicall,blockNumber:f,blockTag:p="latest",accessList:w,blobs:v,code:C,data:E,factory:B,factoryData:k,gas:I,gasPrice:P,maxFeePerBlobGas:M,maxFeePerGas:N,maxPriorityFeePerGas:O,nonce:S,to:R,value:F,stateOverride:T,...D}=t,L=i?(0,o.T)(i):void 0;if(C&&(B||k))throw new s.G("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(C&&R)throw new s.G("Cannot provide both `code` & `to` as parameters.");let U=C&&E,Q=B&&k&&R&&E,q=U||Q,G=U?function(e){let{code:t,data:n}=e;return(0,d.w)({abi:(0,r.V)(["constructor(bytes, bytes)"]),bytecode:a.NO,args:[t,n]})}({code:C,data:E}):Q?function(e){let{data:t,factory:n,factoryData:o,to:i}=e;return(0,d.w)({abi:(0,r.V)(["constructor(address, bytes, address, bytes)"]),bytecode:a.pG,args:[i,t,n,o]})}({data:E,factory:B,factoryData:k,to:R}):E;try{(0,A.F)(t);let n=(f?(0,h.eC)(f):void 0)||p,r=(0,g.mF)(T),o=e.chain?.formatters?.transactionRequest?.format,i=(o||b.tG)({...(0,y.K)(D,{format:o}),from:L?.address,accessList:w,blobs:v,data:G,gas:I,gasPrice:P,maxFeePerBlobGas:M,maxFeePerGas:N,maxPriorityFeePerGas:O,nonce:S,to:q?void 0:R,value:F});if(l&&function({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!n&&!(Object.values(r).filter(e=>void 0!==e).length>0)}({request:i})&&!r)try{return await x(e,{...i,blockNumber:f,blockTag:p})}catch(e){if(!(e instanceof c.pZ)&&!(e instanceof c.mm))throw e}let a=await e.request({method:"eth_call",params:r?[i,n,r]:[i,n]});if("0x"===a)return{data:void 0};return{data:a}}catch(a){let r=function(e){if(!(e instanceof s.G))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(a),{offchainLookup:o,offchainLookupSignature:i}=await n.e(6367).then(n.bind(n,36367));if(!1!==e.ccipRead&&r?.slice(0,10)===i&&R)return{data:await o(e,{data:r,to:R})};if(q&&r?.slice(0,10)==="0x101bb98d")throw new u.Mo({factory:B});throw(0,m.P)(a,{...t,account:L,chain:e.chain})}}async function x(e,t){let{batchSize:n=1024,wait:r=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:o,blockTag:a="latest",data:s,multicallAddress:d,to:m}=t,y=d;if(!y){if(!e.chain)throw new c.pZ;y=(0,p.L)({blockNumber:o,chain:e.chain,contract:"multicall3"})}let b=(o?(0,h.eC)(o):void 0)||a,{schedule:g}=(0,w.S)({id:`${e.uid}.${b}`,wait:r,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*n,fn:async t=>{let n=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),r=(0,f.R)({abi:i.F8,args:[n],functionName:"aggregate3"}),o=await e.request({method:"eth_call",params:[{data:r,to:y},b]});return(0,l.k)({abi:i.F8,args:[n],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:A,success:v}]=await g({data:s,to:m});if(!v)throw new u.VQ({data:A});return"0x"===A?{data:void 0}:{data:A}}},12967:function(e,t,n){"use strict";n.d(t,{C:function(){return u},X:function(){return c}});var r=n(2449),o=n(13505),i=n(27320),a=n(45976),s=n(73910);async function c(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:c=e.chain,request:u,type:l="eip1559"}=t||{},d=await (async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:n,client:e,request:u}):c?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new r.Fz;let f=10**(d.toString().split(".")[1]?.length??0),p=e=>e*BigInt(Math.ceil(d*f))/BigInt(f),h=n||await (0,o.s)(e,a.Q,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas){let t=await c.fees.estimateFeesPerGas({block:n,client:e,multiply:p,request:u,type:l});if(null!==t)return t}if("eip1559"===l){if("bigint"!=typeof h.baseFeePerGas)throw new r.e5;let t="bigint"==typeof u?.maxPriorityFeePerGas?u.maxPriorityFeePerGas:await (0,i.h)(e,{block:h,chain:c,request:u}),n=p(h.baseFeePerGas);return{maxFeePerGas:u?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:u?.gasPrice??p(await (0,o.s)(e,s.o,"getGasPrice")({}))}}},66883:function(e,t,n){"use strict";n.d(t,{Q:function(){return g}});var r=n(20320),o=n(17670),i=n(2761),a=n(80913),s=n(1598),c=n(55246),u=n(82865);class l extends o.G{constructor(e,{account:t,docsPath:n,chain:r,data:o,gas:i,gasPrice:a,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:p,value:h}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,u.xr)({from:t?.address,to:p,value:void 0!==h&&`${(0,s.d)(h)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:i,gasPrice:void 0!==a&&`${(0,c.o)(a)} gwei`,maxFeePerGas:void 0!==l&&`${(0,c.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,c.o)(d)} gwei`,nonce:f})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var d=n(90309),f=n(89741),p=n(77839),h=n(47734),m=n(56177),y=n(88519),b=n(48823),w=n(94547);async function g(e,t){let{account:n=e.account}=t,s=n?(0,r.T)(n):void 0;try{let{accessList:n,authorizationList:r,blobs:u,blobVersionedHashes:l,blockNumber:d,blockTag:f,data:g,gas:A,gasPrice:v,maxFeePerBlobGas:x,maxFeePerGas:C,maxPriorityFeePerGas:E,nonce:B,value:k,stateOverride:I,...P}=await (0,b.ZE)(e,{...t,parameters:s?.type==="local"?void 0:["blobVersionedHashes"]}),M=(d?(0,a.eC)(d):void 0)||f,N=(0,m.mF)(I),O=await (async()=>P.to?P.to:r&&r.length>0?await (0,i.z)({authorization:r[0]}).catch(()=>{throw new o.G("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,y.F)(t);let S=e.chain?.formatters?.transactionRequest?.format,R=(S||h.tG)({...(0,p.K)(P,{format:S}),from:s?.address,accessList:n,authorizationList:r,blobs:u,blobVersionedHashes:l,data:g,gas:A,gasPrice:v,maxFeePerBlobGas:x,maxFeePerGas:C,maxPriorityFeePerGas:E,nonce:B,to:O,value:k});function c(t){let{block:n,request:r,rpcStateOverride:o}=t;return e.request({method:"eth_estimateGas",params:o?[r,n??"latest",o]:n?[r,n]:[r]})}let F=BigInt(await c({block:M,request:R,rpcStateOverride:N}));if(r){let t=await (0,w.s)(e,{address:R.from}),n=await Promise.all(r.map(async e=>{let{contractAddress:n}=e,r=await c({block:M,request:{authorizationList:void 0,data:g,from:s?.address,to:n,value:(0,a.eC)(t)},rpcStateOverride:N}).catch(()=>100000n);return 2n*BigInt(r)}));F+=n.reduce((e,t)=>e+t,0n)}return F}catch(n){throw function(e,{docsPath:t,...n}){return new l((()=>{let t=(0,f.k)(e,n);return t instanceof d.cj?e:t})(),{docsPath:t,...n})}(n,{...t,account:s,chain:e.chain})}}},27320:function(e,t,n){"use strict";n.d(t,{_:function(){return c},h:function(){return u}});var r=n(2449),o=n(28649),i=n(13505),a=n(45976),s=n(73910);async function c(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:c=e.chain,request:u}=t||{};try{let t=c?.fees?.maxPriorityFeePerGas??c?.fees?.defaultPriorityFee;if("function"==typeof t){let r=n||await (0,i.s)(e,a.Q,"getBlock")({}),o=await t({block:r,client:e,request:u});if(null===o)throw Error();return o}if(void 0!==t)return t;let r=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,o.y_)(r)}catch{let[t,o]=await Promise.all([n?Promise.resolve(n):(0,i.s)(e,a.Q,"getBlock")({}),(0,i.s)(e,s.o,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new r.e5;let c=o-t.baseFeePerGas;if(c<0n)return 0n;return c}}},94547:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var r=n(80913);async function o(e,{address:t,blockNumber:n,blockTag:o="latest"}){let i=n?(0,r.eC)(n):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,i||o]}))}},45976:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var r=n(24625),o=n(80913),i=n(55535);async function a(e,{blockHash:t,blockNumber:n,blockTag:a,includeTransactions:s}={}){let c=s??!1,u=void 0!==n?(0,o.eC)(n):void 0,l=null;if(!(l=t?await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[u||(a??"latest"),c]},{dedupe:!!u})))throw new r.f({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||i.Z)(l)}},99175:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(28649);async function o(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,r.ly)(t)}},73910:function(e,t,n){"use strict";async function r(e){return BigInt(await e.request({method:"eth_gasPrice"}))}n.d(t,{o:function(){return r}})},11238:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(28649),o=n(80913);async function i(e,{address:t,blockTag:n="latest",blockNumber:i}){let a=await e.request({method:"eth_getTransactionCount",params:[t,i?(0,o.eC)(i):n]},{dedupe:!!i});return(0,r.ly)(a)}},75456:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(82865),o=n(67328);async function i(e,{hash:t}){let n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new r.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||o.fA)(n)}},62550:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(87867),o=n(11681),i=n(17670),a=n(60796),s=n(3518),c=n(11649),u=n(29745),l=n(30003),d=n(13505),f=n(74396);async function p(e,t){let{allowFailure:n=!0,batchSize:p,blockNumber:h,blockTag:m,multicallAddress:y,stateOverride:b}=t,w=t.contracts,g=p??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),A=y;if(!A){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");A=(0,u.L)({blockNumber:h,chain:e.chain,contract:"multicall3"})}let v=[[]],x=0,C=0;for(let e=0;e<w.length;e++){let{abi:t,address:r,args:o,functionName:i}=w[e];try{let e=(0,c.R)({abi:t,args:o,functionName:i});C+=(e.length-2)/2,g>0&&C>g&&v[x].length>0&&(x++,C=(e.length-2)/2,v[x]=[]),v[x]=[...v[x],{allowFailure:!0,callData:e,target:r}]}catch(a){let e=(0,l.S)(a,{abi:t,address:r,args:o,docsPath:"/docs/contract/multicall",functionName:i});if(!n)throw e;v[x]=[...v[x],{allowFailure:!0,callData:"0x",target:r}]}}let E=await Promise.allSettled(v.map(t=>(0,d.s)(e,f.L,"readContract")({abi:r.F8,address:A,args:[t],blockNumber:h,blockTag:m,functionName:"aggregate3",stateOverride:b}))),B=[];for(let e=0;e<E.length;e++){let t=E[e];if("rejected"===t.status){if(!n)throw t.reason;for(let n=0;n<v[e].length;n++)B.push({status:"failure",error:t.reason,result:void 0});continue}let r=t.value;for(let t=0;t<r.length;t++){let{returnData:i,success:c}=r[t],{callData:u}=v[e][t],{abi:d,address:f,functionName:p,args:h}=w[B.length];try{if("0x"===u)throw new o.wb;if(!c)throw new a.VQ({data:i});let e=(0,s.k)({abi:d,args:h,data:i,functionName:p});B.push(n?{result:e,status:"success"}:e)}catch(t){let e=(0,l.S)(t,{abi:d,address:f,args:h,docsPath:"/docs/contract/multicall",functionName:p});if(!n)throw e;B.push({error:e,result:void 0,status:"failure"})}}}if(B.length!==w.length)throw new i.G("multicall results mismatch");return B}},74396:function(e,t,n){"use strict";n.d(t,{L:function(){return c}});var r=n(3518),o=n(11649),i=n(30003),a=n(13505),s=n(26395);async function c(e,t){let{abi:n,address:c,args:u,functionName:l,...d}=t,f=(0,o.R)({abi:n,args:u,functionName:l});try{let{data:t}=await (0,a.s)(e,s.R,"call")({...d,data:f,to:c});return(0,r.k)({abi:n,args:u,functionName:l,data:t||"0x"})}catch(e){throw(0,i.S)(e,{abi:n,address:c,args:u,docsPath:"/docs/contract/readContract",functionName:l})}}},94269:function(e,t,n){"use strict";n.d(t,{a:function(){return u}});var r=n(20320),o=n(3518),i=n(11649),a=n(30003),s=n(13505),c=n(26395);async function u(e,t){let{abi:n,address:u,args:l,dataSuffix:d,functionName:f,...p}=t,h=p.account?(0,r.T)(p.account):e.account,m=(0,i.R)({abi:n,args:l,functionName:f});try{let{data:r}=await (0,s.s)(e,c.R,"call")({batch:!1,data:`${m}${d?d.replace("0x",""):""}`,to:u,...p,account:h}),i=(0,o.k)({abi:n,args:l,functionName:f,data:r||"0x"}),a=n.filter(e=>"name"in e&&e.name===t.functionName);return{result:i,request:{abi:a,address:u,args:l,dataSuffix:d,functionName:f,...p,account:h}}}catch(e){throw(0,a.S)(e,{abi:n,address:u,args:l,docsPath:"/docs/contract/simulateContract",functionName:f,sender:h?.address})}}},24770:function(e,t,n){"use strict";n.d(t,{e:function(){return h}});var r=n(24625),o=n(82865),i=n(13505),a=n(57977),s=n(57707),c=n(6955),u=n(48920),l=n(45976),d=n(74422),f=n(75456),p=n(94972);async function h(e,{confirmations:t=1,hash:n,onReplaced:h,pollingInterval:m=e.pollingInterval,retryCount:y=6,retryDelay:b=({count:e})=>200*~~(1<<e),timeout:w=18e4}){let g,A,v;let x=(0,u.P)(["waitForTransactionReceipt",e.uid,n]),C=!1,{promise:E,resolve:B,reject:k}=(0,s.n)(),I=w?setTimeout(()=>k(new o.mc({hash:n})),w):void 0,P=(0,a.N7)(x,{onReplaced:h,resolve:B,reject:k},a=>{let s=(0,i.s)(e,p.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:m,async onBlockNumber(u){let p=e=>{clearTimeout(I),s(),e(),P()},h=u;if(!C)try{if(v){if(t>1&&(!v.blockNumber||h-v.blockNumber+1n<t))return;p(()=>a.resolve(v));return}if(g||(C=!0,await (0,c.J)(async()=>{(g=await (0,i.s)(e,d.f,"getTransaction")({hash:n})).blockNumber&&(h=g.blockNumber)},{delay:b,retryCount:y}),C=!1),v=await (0,i.s)(e,f.a,"getTransactionReceipt")({hash:n}),t>1&&(!v.blockNumber||h-v.blockNumber+1n<t))return;p(()=>a.resolve(v))}catch(n){if(n instanceof o.Bh||n instanceof o.Yb){if(!g){C=!1;return}try{A=g,C=!0;let n=await (0,c.J)(()=>(0,i.s)(e,l.Q,"getBlock")({blockNumber:h,includeTransactions:!0}),{delay:b,retryCount:y,shouldRetry:({error:e})=>e instanceof r.f});C=!1;let o=n.transactions.find(({from:e,nonce:t})=>e===A.from&&t===A.nonce);if(!o||(v=await (0,i.s)(e,f.a,"getTransactionReceipt")({hash:o.hash}),t>1&&(!v.blockNumber||h-v.blockNumber+1n<t)))return;let s="replaced";o.to===A.to&&o.value===A.value&&o.input===A.input?s="repriced":o.from===o.to&&0n===o.value&&(s="cancelled"),p(()=>{a.onReplaced?.({reason:s,replacedTransaction:A,transaction:o,transactionReceipt:v}),a.resolve(v)})}catch(e){p(()=>a.reject(e))}}else p(()=>a.reject(n))}}})});return E}},94972:function(e,t,n){"use strict";n.d(t,{q:function(){return u}});var r=n(28649),o=n(13505),i=n(57977),a=n(92657),s=n(48920),c=n(96842);function u(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:u,onError:l,poll:d,pollingInterval:f=e.pollingInterval}){let p;return(void 0!==d?d:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{let r=(0,s.P)(["watchBlockNumber",e.uid,t,n,f]);return(0,i.N7)(r,{onBlockNumber:u,onError:l},r=>(0,a.$)(async()=>{try{let t=await (0,o.s)(e,c.z,"getBlockNumber")({cacheTime:0});if(p){if(t===p)return;if(t-p>1&&n)for(let e=p+1n;e<t;e++)r.onBlockNumber(e,p),p=e}(!p||t>p)&&(r.onBlockNumber(t,p),p=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:f}))})():(()=>{let o=(0,s.P)(["watchBlockNumber",e.uid,t,n]);return(0,i.N7)(o,{onBlockNumber:u,onError:l},t=>{let n=!0,o=()=>n=!1;return(async()=>{try{let i=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:a}=await i.subscribe({params:["newHeads"],onData(e){if(!n)return;let o=(0,r.y_)(e.result?.number);t.onBlockNumber(o,p),p=o},onError(e){t.onError?.(e)}});o=a,n||o()}catch(e){l?.(e)}})(),()=>o()})})()}},8575:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(13505),o=n(57977),i=n(92657),a=n(48920),s=n(45976);function c(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:c=!1,onBlock:u,onError:l,includeTransactions:d,poll:f,pollingInterval:p=e.pollingInterval}){let h,m,y,b;let w=void 0!==f?f:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type),g=d??!1;return w?(()=>{let d=(0,a.P)(["watchBlocks",e.uid,t,n,c,g,p]);return(0,o.N7)(d,{onBlock:u,onError:l},o=>(0,i.$)(async()=>{try{let i=await (0,r.s)(e,s.Q,"getBlock")({blockTag:t,includeTransactions:g});if(i.number&&h?.number){if(i.number===h.number)return;if(i.number-h.number>1&&n)for(let t=h?.number+1n;t<i.number;t++){let n=await (0,r.s)(e,s.Q,"getBlock")({blockNumber:t,includeTransactions:g});o.onBlock(n,h),h=n}}(!h?.number||"pending"===t&&!i?.number||i.number&&i.number>h.number)&&(o.onBlock(i,h),h=i)}catch(e){o.onError?.(e)}},{emitOnBegin:c,interval:p}))})():(m=!0,y=!0,b=()=>m=!1,(async()=>{try{c&&(0,r.s)(e,s.Q,"getBlock")({blockTag:t,includeTransactions:g}).then(e=>{m&&y&&(u(e,void 0),y=!1)});let n=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await n.subscribe({params:["newHeads"],async onData(t){if(!m)return;let n=await (0,r.s)(e,s.Q,"getBlock")({blockNumber:t.blockNumber,includeTransactions:g}).catch(()=>{});m&&(u(n,h),y=!1,h=n)},onError(e){l?.(e)}});b=o,m||b()}catch(e){l?.(e)}})(),()=>b())}},48823:function(e,t,n){"use strict";n.d(t,{QZ:function(){return b},ZE:function(){return g}});var r=n(20320),o=n(12967),i=n(66883),a=n(45976),s=n(11238),c=n(2449),u=n(98492),l=n(91983),d=n(58482),f=n(34330),p=n(13505),h=n(88519),m=n(4643),y=n(99175);let b=["blobVersionedHashes","chainId","fees","gas","nonce","type"],w=new Map;async function g(e,t){let n,g;let{account:A=e.account,blobs:v,chain:x,gas:C,kzg:E,nonce:B,nonceManager:k,parameters:I=b,type:P}=t,M=A?(0,r.T)(A):A,N={...t,...M?{from:M?.address}:{}};async function O(){return n||(n=await (0,p.s)(e,a.Q,"getBlock")({blockTag:"latest"}))}async function S(){return g||(x?x.id:void 0!==t.chainId?t.chainId:g=await (0,p.s)(e,y.L,"getChainId")({}))}if((I.includes("blobVersionedHashes")||I.includes("sidecars"))&&v&&E){let e=(0,u.P)({blobs:v,kzg:E});if(I.includes("blobVersionedHashes")){let t=(0,d.C)({commitments:e,to:"hex"});N.blobVersionedHashes=t}if(I.includes("sidecars")){let t=(0,l.y)({blobs:v,commitments:e,kzg:E}),n=(0,f.j)({blobs:v,commitments:e,proofs:t,to:"hex"});N.sidecars=n}}if(I.includes("chainId")&&(N.chainId=await S()),(I.includes("fees")||I.includes("type"))&&void 0===P)try{N.type=(0,m.l)(N)}catch{let t=w.get(e.uid);if(void 0===t){let n=await O();t="bigint"==typeof n?.baseFeePerGas,w.set(e.uid,t)}N.type=t?"eip1559":"legacy"}if(I.includes("fees")){if("legacy"!==N.type&&"eip2930"!==N.type){if(void 0===N.maxFeePerGas||void 0===N.maxPriorityFeePerGas){let n=await O(),{maxFeePerGas:r,maxPriorityFeePerGas:i}=await (0,o.C)(e,{block:n,chain:x,request:N});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<i)throw new c.ld({maxPriorityFeePerGas:i});N.maxPriorityFeePerGas=i,N.maxFeePerGas=r}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new c.e5;if(void 0===t.gasPrice){let t=await O(),{gasPrice:n}=await (0,o.C)(e,{block:t,chain:x,request:N,type:"legacy"});N.gasPrice=n}}}if(I.includes("gas")&&void 0===C&&(N.gas=await (0,p.s)(e,i.Q,"estimateGas")({...N,account:M?{address:M.address,type:"json-rpc"}:M})),I.includes("nonce")&&void 0===B&&M){if(k){let t=await S();N.nonce=await k.consume({address:M.address,chainId:t,client:e})}else N.nonce=await (0,p.s)(e,s.K,"getTransactionCount")({address:M.address,blockTag:"pending"})}return(0,h.F)(N),delete N.parameters,N}},95678:function(e,t,n){"use strict";async function r(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}n.d(t,{p:function(){return r}})},25490:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});let r=(0,n(37517).a)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},54622:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(20320),o=n(95143);function i(e){let{batch:t,cacheTime:n=e.pollingInterval??4e3,ccipRead:i,key:a="base",name:s="Base Client",pollingInterval:c=4e3,type:u="base"}=e,l=e.chain,d=e.account?(0,r.T)(e.account):void 0,{config:f,request:p,value:h}=e.transport({chain:l,pollingInterval:c}),m={account:d,batch:t,cacheTime:n,ccipRead:i,chain:l,key:a,name:s,pollingInterval:c,request:p,transport:{...f,...h},type:u,uid:(0,o.h)()};return Object.assign(m,{extend:function e(t){return n=>{let r=n(t);for(let e in m)delete r[e];let o={...t,...r};return Object.assign(o,{extend:e(o)})}}(m)})}},45491:function(e,t,n){"use strict";n.d(t,{q:function(){return d}});var r=n(17670),o=n(14984),i=n(25884),a=n(80913);let s=new(n(95021)).k(8192);var c=n(6955),u=n(48920),l=n(95143);function d({key:e,methods:t,name:n,request:d,retryCount:f=3,retryDelay:p=150,timeout:h,type:m},y){return{config:{key:e,methods:t,name:n,request:d,retryCount:f,retryDelay:p,timeout:h,type:m},request:function(e,t={}){return async(n,l={})=>{let{dedupe:d=!1,methods:f,retryDelay:p=150,retryCount:h=3,uid:m}={...t,...l},{method:y}=n;if(f?.exclude?.includes(y)||f?.include&&!f.include.includes(y))throw new i.gS(Error("method not supported"),{method:y});let b=d?(0,a.$G)(`${m}.${(0,u.P)(n)}`):void 0;return function(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(s.get(n))return s.get(n);let r=e().finally(()=>s.delete(n));return s.set(n,r),r}(()=>(0,c.J)(async()=>{try{return await e(n)}catch(e){switch(e.code){case i.s7.code:throw new i.s7(e);case i.B.code:throw new i.B(e);case i.LX.code:throw new i.LX(e,{method:n.method});case i.nY.code:throw new i.nY(e);case i.XS.code:throw new i.XS(e);case i.yR.code:throw new i.yR(e);case i.Og.code:throw new i.Og(e);case i.pT.code:throw new i.pT(e);case i.KB.code:throw new i.KB(e);case i.gS.code:throw new i.gS(e,{method:n.method});case i.Pv.code:throw new i.Pv(e);case i.GD.code:throw new i.GD(e);case i.ab.code:throw new i.ab(e);case i.PE.code:throw new i.PE(e);case i.Ts.code:throw new i.Ts(e);case i.u5.code:throw new i.u5(e);case i.I0.code:throw new i.I0(e);case i.x3.code:throw new i.x3(e);case 5e3:throw new i.ab(e);default:if(e instanceof r.G)throw e;throw new i.ir(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof o.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e)}return~~(1<<e)*p},retryCount:h,shouldRetry:({error:e})=>"code"in e&&"number"==typeof e.code?-1===e.code||e.code===i.Pv.code||e.code===i.XS.code:!(e instanceof o.Gg)||!e.status||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status}),{enabled:d,id:b})}}(d,{methods:t,retryCount:f,retryDelay:p,uid:(0,l.h)()}),value:y}}},87867:function(e,t,n){"use strict";n.d(t,{$o:function(){return u},F8:function(){return r},X$:function(){return c},du:function(){return a},k3:function(){return i},nZ:function(){return s}});let r=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],o=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],i=[...o,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],a=[...o,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],s=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],u=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}]},4402:function(e,t,n){"use strict";n.d(t,{NO:function(){return r},ST:function(){return i},pG:function(){return o}});let r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",o="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",i="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},11696:function(e,t,n){"use strict";n.d(t,{$:function(){return r},Up:function(){return o},hZ:function(){return i}});let r={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},o={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},i={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},39701:function(e,t,n){"use strict";n.d(t,{Y:function(){return i},o:function(){return o}});var r=n(17670);class o extends r.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class i extends r.G{constructor({docsPath:e,metaMessages:t,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}},24625:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(17670);class o extends r.G{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}},60796:function(e,t,n){"use strict";n.d(t,{cg:function(){return b},uq:function(){return w},Lu:function(){return g},Dk:function(){return A},Mo:function(){return v},VQ:function(){return x}});var r=n(20320),o=n(11696),i=n(5654),a=n(97327),s=n(48920);function c({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((e,n)=>`${r&&e.name?`${e.name}: `:""}${"object"==typeof t[n]?(0,s.P)(t[n]):t[n]}`).join(", ")})`}var u=n(78137),l=n(1598),d=n(55246),f=n(11681),p=n(17670),h=n(14832),m=n(82865),y=n(48475);class b extends p.G{constructor(e,{account:t,docsPath:n,chain:o,data:i,gas:a,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:f,to:p,value:y,stateOverride:b}){let w=t?(0,r.T)(t):void 0,g=(0,m.xr)({from:w?.address,to:p,value:void 0!==y&&`${(0,l.d)(y)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==s&&`${(0,d.o)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,nonce:f});b&&(g+=`
|
|
6
|
+
*/let r=(0,n(47605).Z)("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]])},20775:function(e,t,n){let r=n(61490),o=n(23427),i=n(18462),a=n(52822);function s(e,t,n,i,a){let s=[].slice.call(arguments,1),c=s.length,u="function"==typeof s[c-1];if(!u&&!r())throw Error("Callback required as last argument");if(u){if(c<2)throw Error("Too few arguments provided");2===c?(a=n,n=t,t=i=void 0):3===c&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=n,n=t,t=void 0))}else{if(c<1)throw Error("Too few arguments provided");return 1===c?(n=t,t=i=void 0):2!==c||t.getContext||(i=n,n=t,t=void 0),new Promise(function(r,a){try{let a=o.create(n,i);r(e(a,t,i))}catch(e){a(e)}})}try{let r=o.create(n,i);a(null,e(r,t,i))}catch(e){a(e)}}t.create=o.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return a.render(e,n)})},61490:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},97927:function(e,t,n){let r=n(66903).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7];for(let e=1;e<t-1;e++)i[e]=i[e-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){let n=[],r=t.getRowColCoords(e),o=r.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)(0!==e||0!==t)&&(0!==e||t!==o-1)&&(e!==o-1||0!==t)&&n.push([r[e],r[t]]);return n}},1944:function(e,t,n){let r=n(51493),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},52077:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},47937:function(e){function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){let o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},61066:function(e,t,n){let r=n(51493);function o(e){this.mode=r.BYTE,"string"==typeof e?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=o},28371:function(e,t,n){let r=n(87301),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[(e-1)*4+0];case r.M:return o[(e-1)*4+1];case r.Q:return o[(e-1)*4+2];case r.H:return o[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[(e-1)*4+0];case r.M:return i[(e-1)*4+1];case r.Q:return i[(e-1)*4+2];case r.H:return i[(e-1)*4+3];default:return}}},87301:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},66162:function(e,t,n){let r=n(66903).getSymbolSize;t.getPositions=function(e){let t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},38280:function(e,t,n){let r=n(66903),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){let n=e.bit<<3|t,i=n<<10;for(;r.getBCHDigit(i)-o>=0;)i^=1335<<r.getBCHDigit(i)-o;return(n<<10|i)^21522}},77226:function(e,t){let n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.log=function(e){if(e<1)throw Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},23769:function(e,t,n){let r=n(51493),o=n(66903);function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n=(n>>>8&255)*192+(255&n),e.put(n,13)}},e.exports=i},48159:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let n={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,r=0,o=0,i=0,a=null,s=null;for(let c=0;c<t;c++){o=i=0,a=s=null;for(let u=0;u<t;u++){let t=e.get(c,u);t===a?o++:(o>=5&&(r+=n.N1+(o-5)),a=t,o=1),(t=e.get(u,c))===s?i++:(i>=5&&(r+=n.N1+(i-5)),s=t,i=1)}o>=5&&(r+=n.N1+(o-5)),i>=5&&(r+=n.N1+(i-5))}return r},t.getPenaltyN2=function(e){let t=e.size,r=0;for(let n=0;n<t-1;n++)for(let o=0;o<t-1;o++){let t=e.get(n,o)+e.get(n,o+1)+e.get(n+1,o)+e.get(n+1,o+1);(4===t||0===t)&&r++}return r*n.N2},t.getPenaltyN3=function(e){let t=e.size,r=0,o=0,i=0;for(let n=0;n<t;n++){o=i=0;for(let a=0;a<t;a++)o=o<<1&2047|e.get(n,a),a>=10&&(1488===o||93===o)&&r++,i=i<<1&2047|e.get(a,n),a>=10&&(1488===i||93===i)&&r++}return r*n.N3},t.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let n=0;n<r;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/r/5)-10)*n.N4},t.applyMask=function(e,n){let r=n.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)n.isReserved(i,o)||n.xor(i,o,function(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,i,o))},t.getBestMask=function(e,n){let r=Object.keys(t.Patterns).length,o=0,i=1/0;for(let a=0;a<r;a++){n(a),t.applyMask(a,e);let r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),r<i&&(i=r,o=a)}return o}},51493:function(e,t,n){let r=n(57735),o=n(98173);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!r.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},99866:function(e,t,n){let r=n(51493);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n;for(t=0;t+3<=this.data.length;t+=3)n=parseInt(this.data.substr(t,3),10),e.put(n,10);let r=this.data.length-t;r>0&&(n=parseInt(this.data.substr(t),10),e.put(n,3*r+1))},e.exports=o},86656:function(e,t,n){let r=n(77226);t.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<t.length;i++)n[o+i]^=r.mul(e[o],t[i]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){let e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]));return n}},23427:function(e,t,n){let r=n(66903),o=n(87301),i=n(52077),a=n(47937),s=n(97927),c=n(66162),u=n(48159),l=n(28371),d=n(12662),f=n(50643),p=n(38280),h=n(51493),m=n(23528);function y(e,t,n){let r,o;let i=e.size,a=p.getEncodedBits(t,n);for(r=0;r<15;r++)o=(a>>r&1)==1,r<6?e.set(r,8,o,!0):r<8?e.set(r+1,8,o,!0):e.set(i-15+r,8,o,!0),r<8?e.set(8,i-r-1,o,!0):r<9?e.set(8,15-r-1+1,o,!0):e.set(8,15-r-1,o,!0);e.set(i-8,8,1,!0)}t.create=function(e,t){let n,p;if(void 0===e||""===e)throw Error("No input text");let b=o.M;return void 0!==t&&(b=o.from(t.errorCorrectionLevel,o.M),n=f.from(t.version),p=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),function(e,t,n,o){let p;if(Array.isArray(e))p=m.fromArray(e);else if("string"==typeof e){let r=t;if(!r){let t=m.rawSplit(e);r=f.getBestVersionForData(t,n)}p=m.fromString(e,r||40)}else throw Error("Invalid data");let b=f.getBestVersionForData(p,n);if(!b)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<b)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+b+".\n")}else t=b;let w=function(e,t,n){let o=new i;n.forEach(function(t){o.put(t.mode.bit,4),o.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(o)});let a=(r.getSymbolTotalCodewords(e)-l.getTotalCodewordsCount(e,t))*8;for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);let s=(a-o.getLengthInBits())/8;for(let e=0;e<s;e++)o.put(e%2?17:236,8);return function(e,t,n){let o,i;let a=r.getSymbolTotalCodewords(t),s=a-l.getTotalCodewordsCount(t,n),c=l.getBlocksCount(t,n),u=a%c,f=c-u,p=Math.floor(a/c),h=Math.floor(s/c),m=h+1,y=p-h,b=new d(y),w=0,g=Array(c),A=Array(c),v=0,x=new Uint8Array(e.buffer);for(let e=0;e<c;e++){let t=e<f?h:m;g[e]=x.slice(w,w+t),A[e]=b.encode(g[e]),w+=t,v=Math.max(v,t)}let C=new Uint8Array(a),E=0;for(o=0;o<v;o++)for(i=0;i<c;i++)o<g[i].length&&(C[E++]=g[i][o]);for(o=0;o<y;o++)for(i=0;i<c;i++)C[E++]=A[i][o];return C}(o,e,t)}(t,n,p),g=new a(r.getSymbolSize(t));return function(e,t){let n=e.size,r=c.getPositions(t);for(let t=0;t<r.length;t++){let o=r[t][0],i=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1)&&!(n<=o+t))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,i+r,!0,!0):e.set(o+t,i+r,!1,!0))}}(g,t),function(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(g),function(e,t){let n=s.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(g,t),y(g,n,0),t>=7&&function(e,t){let n,r,o;let i=e.size,a=f.getEncodedBits(t);for(let t=0;t<18;t++)n=Math.floor(t/3),r=t%3+i-8-3,o=(a>>t&1)==1,e.set(n,r,o,!0),e.set(r,n,o,!0)}(g,t),function(e,t){let n=e.size,r=-1,o=n-1,i=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,s-n)){let r=!1;a<t.length&&(r=(t[a]>>>i&1)==1),e.set(o,s-n,r),-1==--i&&(a++,i=7)}if((o+=r)<0||n<=o){o-=r,r=-r;break}}}(g,w),isNaN(o)&&(o=u.getBestMask(g,y.bind(null,g,n))),u.applyMask(o,g),y(g,n,o),{modules:g,version:t,errorCorrectionLevel:n,maskPattern:o,segments:p}}(e,n,b,p)}},12662:function(e,t,n){let r=n(86656);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){let e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},98173:function(e,t){let n="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",o="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(r,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(o,"g"),t.NUMERIC=RegExp(n,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let i=RegExp("^"+r+"$"),a=RegExp("^"+n+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},23528:function(e,t,n){let r=n(51493),o=n(99866),i=n(1944),a=n(61066),s=n(23769),c=n(98173),u=n(66903),l=n(20543);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){let r;let o=[];for(;null!==(r=e.exec(n));)o.push({data:r[0],index:r.index,mode:t,length:r[0].length});return o}function p(e){let t,n;let o=f(c.NUMERIC,r.NUMERIC,e),i=f(c.ALPHANUMERIC,r.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=f(c.BYTE,r.BYTE,e),n=f(c.KANJI,r.KANJI,e)):(t=f(c.BYTE_KANJI,r.BYTE,e),n=[]),o.concat(i,t,n).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function h(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return a.getBitsLength(e)}}function m(e,t){let n;let c=r.getBestModeForData(e);if((n=r.from(t,c))!==r.BYTE&&n.bit<c.bit)throw Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(c));switch(n!==r.KANJI||u.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new i(e);case r.KANJI:return new s(e);case r.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e},[])},t.fromString=function(e,n){let o=function(e,t){let n={},o={start:{}},i=["start"];for(let a=0;a<e.length;a++){let s=e[a],c=[];for(let e=0;e<s.length;e++){let u=s[e],l=""+a+e;c.push(l),n[l]={node:u,lastCount:0},o[l]={};for(let e=0;e<i.length;e++){let a=i[e];n[a]&&n[a].node.mode===u.mode?(o[a][l]=h(n[a].lastCount+u.length,u.mode)-h(n[a].lastCount,u.mode),n[a].lastCount+=u.length):(n[a]&&(n[a].lastCount=u.length),o[a][l]=h(u.length,u.mode)+4+r.getCharCountIndicator(u.mode,t))}}i=c}for(let e=0;e<i.length;e++)o[i[e]].end=0;return{map:o,table:n}}(function(e){let t=[];for(let n=0;n<e.length;n++){let o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(p(e,u.isKanjiModeEnabled())),n),i=l.find_path(o.map,"start","end"),a=[];for(let e=1;e<i.length-1;e++)a.push(o.table[i[e]].node);return t.fromArray(a.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(p(e,u.isKanjiModeEnabled()))}},66903:function(e,t){let n;let r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},57735:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},50643:function(e,t,n){let r=n(66903),o=n(28371),i=n(87301),a=n(51493),s=n(57735),c=r.getBCHDigit(7973);function u(e,t){return a.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);let i=(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t))*8;if(n===a.MIXED)return i;let c=i-u(n,e);switch(n){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){let r;let o=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(function(e,t){let n=0;return e.forEach(function(e){let r=u(e.mode,t);n+=r+e.getBitsLength()}),n}(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-c>=0;)t^=7973<<r.getBCHDigit(t)-c;return e<<12|t}},18462:function(e,t,n){let r=n(17426);t.render=function(e,t,n){var o;let i=n,a=t;void 0!==i||t&&t.getContext||(i=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),i=r.getOptions(i);let s=r.getImageWidth(e.modules.size,i),c=a.getContext("2d"),u=c.createImageData(s,s);return r.qrToImageData(u.data,e,i),o=a,c.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=s,o.width=s,o.style.height=s+"px",o.style.width=s+"px",c.putImageData(u,0,0),a},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});let i=t.render(e,n,o),a=o.type||"image/png",s=o.rendererOpts||{};return i.toDataURL(a,s.quality)}},52822:function(e,t,n){let r=n(17426);function o(e,t){let n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){let a=r.getOptions(t),s=e.modules.size,c=e.modules.data,u=s+2*a.margin,l=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+o(a.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,a=!1,s=0;for(let c=0;c<e.length;c++){let u=Math.floor(c%t),l=Math.floor(c/t);u||a||(a=!0),e[c]?(s++,c>0&&u>0&&e[c-1]||(r+=a?i("M",u+n,.5+l+n):i("m",o,0),o=0,a=!1),u+1<t&&e[c+1]||(r+=i("h",s),s=0)):o++}return r}(c,s,a.margin)+'"/>',f='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+('viewBox="0 0 '+u)+" "+u+'" shape-rendering="crispEdges">'+l+d+"</svg>\n";return"function"==typeof n&&n(null,f),f}},17426:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){let r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){let o=n.modules.size,i=n.modules.data,a=t.getScale(o,r),s=Math.floor((o+2*r.margin)*a),c=r.margin*a,u=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let l=(t*s+n)*4,d=r.color.light;t>=c&&n>=c&&t<s-c&&n<s-c&&(d=u[i[Math.floor((t-c)/a)*o+Math.floor((n-c)/a)]?1:0]),e[l++]=d.r,e[l++]=d.g,e[l++]=d.b,e[l]=d.a}}},83521:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(52401),o=n(46760),i=n(73839),a=n(262),s=(0,n(16199)._)(),c=function(){},u=o.forwardRef(function(e,t){var n=o.useRef(null),i=o.useState({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:c}),u=i[0],l=i[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,y=e.shards,b=e.sideCar,w=e.noIsolation,g=e.inert,A=e.allowPinchZoom,v=e.as,x=e.gapMode,C=(0,r._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=(0,a.q)([n,t]),B=(0,r.pi)((0,r.pi)({},C),u);return o.createElement(o.Fragment,null,m&&o.createElement(b,{sideCar:s,removeScrollBar:h,shards:y,noIsolation:w,inert:g,setCallbacks:l,allowPinchZoom:!!A,lockRef:n,gapMode:x}),d?o.cloneElement(o.Children.only(f),(0,r.pi)((0,r.pi)({},B),{ref:E})):o.createElement(void 0===v?"div":v,(0,r.pi)({},B,{className:p,ref:E}),f))});u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},u.classNames={fullWidth:i.zi,zeroRight:i.pF};var l=n(32565),d=n(68770),f=n(23359),p=!1;if("undefined"!=typeof window)try{var h=Object.defineProperty({},"passive",{get:function(){return p=!0,!0}});window.addEventListener("test",h,h),window.removeEventListener("test",h,h)}catch(e){p=!1}var m=!!p&&{passive:!1},y=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},b=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),w(e,r)){var o=g(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},w=function(e,t){return"v"===e?y(t,"overflowY"):y(t,"overflowX")},g=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},A=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=a*r,c=n.target,u=t.contains(c),l=!1,d=s>0,f=0,p=0;do{var h=g(e,c),m=h[0],y=h[1]-h[2]-a*m;(m||y)&&w(e,c)&&(f+=y,p+=m),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return d&&(o&&1>Math.abs(f)||!o&&s>f)?l=!0:!d&&(o&&1>Math.abs(p)||!o&&-s>p)&&(l=!0),l},v=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},x=function(e){return[e.deltaX,e.deltaY]},C=function(e){return e&&"current"in e?e.current:e},E=0,B=[],k=(0,l.L)(s,function(e){var t=o.useRef([]),n=o.useRef([0,0]),i=o.useRef(),a=o.useState(E++)[0],s=o.useState(f.Ws)[0],c=o.useRef(e);o.useEffect(function(){c.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,r.ev)([e.lockRef.current],(e.shards||[]).map(C),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var r,o=v(e),a=n.current,s="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],l=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=b(d,l);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=b(d,l)),!f)return!1;if(!i.current&&"changedTouches"in e&&(s||u)&&(i.current=r),!r)return!0;var p=i.current||r;return A(p,t,e,"h"===p?s:u,!0)},[]),l=o.useCallback(function(e){if(B.length&&B[B.length-1]===s){var n="deltaY"in e?x(e):v(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(c.current.shards||[]).map(C).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!c.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),p=o.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),h=o.useCallback(function(e){n.current=v(e),i.current=void 0},[]),y=o.useCallback(function(t){p(t.type,x(t),t.target,u(t,e.lockRef.current))},[]),w=o.useCallback(function(t){p(t.type,v(t),t.target,u(t,e.lockRef.current))},[]);o.useEffect(function(){return B.push(s),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:w}),document.addEventListener("wheel",l,m),document.addEventListener("touchmove",l,m),document.addEventListener("touchstart",h,m),function(){B=B.filter(function(e){return e!==s}),document.removeEventListener("wheel",l,m),document.removeEventListener("touchmove",l,m),document.removeEventListener("touchstart",h,m)}},[]);var g=e.removeScrollBar,k=e.inert;return o.createElement(o.Fragment,null,k?o.createElement(s,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,g?o.createElement(d.jp,{gapMode:e.gapMode}):null)}),I=o.forwardRef(function(e,t){return o.createElement(u,(0,r.pi)({},e,{ref:t,sideCar:k}))});I.classNames=u.classNames;var P=I},40299:function(e,t,n){var r;!function(o,i){"use strict";var a="function",s="undefined",c="object",u="string",l="major",d="model",f="name",p="type",h="vendor",m="version",y="architecture",b="console",w="mobile",g="tablet",A="smarttv",v="wearable",x="embedded",C="Amazon",E="Apple",B="ASUS",k="BlackBerry",I="Browser",P="Chrome",M="Firefox",N="Google",O="Huawei",S="Microsoft",R="Motorola",F="Opera",T="Samsung",D="Sharp",L="Sony",U="Xiaomi",Q="Zebra",q="Facebook",G="Chromium OS",z="Mac OS",W=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},j=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},H=function(e,t){return typeof e===u&&-1!==Z(t).indexOf(Z(e))},Z=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},V=function(e,t){for(var n,r,o,s,u,l,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(n=r=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(o=0;o<p.length;o++)l=u[++r],typeof(s=p[o])===c&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):void 0:this[s[0]]=l?s[1].call(this,l,s[2]):void 0:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):void 0):this[s]=l||i;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(H(t[n][r],e))return"?"===n?i:n}else if(H(t[n],e))return"?"===n?i:n;return e},Y={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,m],[/opios[\/ ]+([\w\.]+)/i],[m,[f,F+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[f,F+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[f,F]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,m],[/\bddg\/([\w\.]+)/i],[m,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[f,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[f,"Smart Lenovo "+I]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+I],m],[/\bfocus\/([\w\.]+)/i],[m,[f,M+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[f,F+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[f,F+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[f,"MIUI "+I]],[/fxios\/([-\w\.]+)/i],[m,[f,M]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+I]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+I],m],[/samsungbrowser\/([\w\.]+)/i],[m,[f,T+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],m],[/metasr[\/ ]?([\d\.]+)/i],[m,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,m],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,q],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[f,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,P+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[f,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[m,J,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[f,M+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,m],[/(cobalt)\/([\w\.]+)/i],[f,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,Z]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,"",Z]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,Z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[h,T],[p,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[h,T],[p,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[h,E],[p,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[h,E],[p,g]],[/(macintosh);/i],[d,[h,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[h,D],[p,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[h,O],[p,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[h,O],[p,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[h,U],[p,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[h,U],[p,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[h,"OPPO"],[p,w]],[/\b(opd2\d{3}a?) bui/i],[d,[h,"OPPO"],[p,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[h,"Vivo"],[p,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[h,"Realme"],[p,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[h,R],[p,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[h,R],[p,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[h,"LG"],[p,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[h,"LG"],[p,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[h,"Lenovo"],[p,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[h,"Nokia"],[p,w]],[/(pixel c)\b/i],[d,[h,N],[p,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[h,N],[p,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[h,L],[p,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[h,L],[p,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[h,"OnePlus"],[p,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[h,C],[p,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[h,C],[p,w]],[/(playbook);[-\w\),; ]+(rim)/i],[d,h,[p,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[h,k],[p,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[h,B],[p,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[h,B],[p,w]],[/(nexus 9)/i],[d,[h,"HTC"],[p,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[d,/_/g," "],[p,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[h,"Acer"],[p,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[h,"Meizu"],[p,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[h,"Ulefone"],[p,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,d,[p,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,d,[p,g]],[/(surface duo)/i],[d,[h,S],[p,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[h,"Fairphone"],[p,w]],[/(u304aa)/i],[d,[h,"AT&T"],[p,w]],[/\bsie-(\w*)/i],[d,[h,"Siemens"],[p,w]],[/\b(rct\w+) b/i],[d,[h,"RCA"],[p,g]],[/\b(venue[\d ]{2,7}) b/i],[d,[h,"Dell"],[p,g]],[/\b(q(?:mv|ta)\w+) b/i],[d,[h,"Verizon"],[p,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[h,"Barnes & Noble"],[p,g]],[/\b(tm\d{3}\w+) b/i],[d,[h,"NuVision"],[p,g]],[/\b(k88) b/i],[d,[h,"ZTE"],[p,g]],[/\b(nx\d{3}j) b/i],[d,[h,"ZTE"],[p,w]],[/\b(gen\d{3}) b.+49h/i],[d,[h,"Swiss"],[p,w]],[/\b(zur\d{3}) b/i],[d,[h,"Swiss"],[p,g]],[/\b((zeki)?tb.*\b) b/i],[d,[h,"Zeki"],[p,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],d,[p,g]],[/\b(ns-?\w{0,9}) b/i],[d,[h,"Insignia"],[p,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[h,"NextBook"],[p,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],d,[p,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],d,[p,w]],[/\b(ph-1) /i],[d,[h,"Essential"],[p,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[h,"Envizen"],[p,g]],[/\b(trio[-\w\. ]+) b/i],[d,[h,"MachSpeed"],[p,g]],[/\btu_(1491) b/i],[d,[h,"Rotor"],[p,g]],[/(shield[\w ]+) b/i],[d,[h,"Nvidia"],[p,g]],[/(sprint) (\w+)/i],[h,d,[p,w]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[h,S],[p,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[h,Q],[p,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[h,Q],[p,w]],[/smart-tv.+(samsung)/i],[h,[p,A]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[h,T],[p,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[p,A]],[/(apple) ?tv/i],[h,[d,E+" TV"],[p,A]],[/crkey/i],[[d,P+"cast"],[h,N],[p,A]],[/droid.+aft(\w+)( bui|\))/i],[d,[h,C],[p,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[h,D],[p,A]],[/(bravia[\w ]+)( bui|\))/i],[d,[h,L],[p,A]],[/(mitv-\w{5}) bui/i],[d,[h,U],[p,A]],[/Hbbtv.*(technisat) (.*);/i],[h,d,[p,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,K],[d,K],[p,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,d,[p,b]],[/droid.+; (shield) bui/i],[d,[h,"Nvidia"],[p,b]],[/(playstation [345portablevi]+)/i],[d,[h,L],[p,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[h,S],[p,b]],[/((pebble))app/i],[h,d,[p,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[h,E],[p,v]],[/droid.+; (glass) \d/i],[d,[h,N],[p,v]],[/droid.+; (wt63?0{2,3})\)/i],[d,[h,Q],[p,v]],[/(quest( \d| pro)?)/i],[d,[h,q],[p,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,x]],[/(aeobc)\b/i],[d,[h,C],[p,x]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,w]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[m,J,Y]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,J,Y],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,z],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,m],[/\(bb(10);/i],[m,[f,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[f,M+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[f,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,G],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,m],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,m]]},$=function(e,t){if(typeof e===c&&(t=e,e=i),!(this instanceof $))return new $(e,t).getResult();var n=typeof o!==s&&o.navigator?o.navigator:i,r=e||(n&&n.userAgent?n.userAgent:""),b=n&&n.userAgentData?n.userAgentData:i,A=t?W(X,t):X,v=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=i,t[m]=i,V.call(t,r,A.browser),t[l]=typeof(e=t[m])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:i,v&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[y]=i,V.call(e,r,A.cpu),e},this.getDevice=function(){var e={};return e[h]=i,e[d]=i,e[p]=i,V.call(e,r,A.device),v&&!e[p]&&b&&b.mobile&&(e[p]=w),v&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[p]=g),e},this.getEngine=function(){var e={};return e[f]=i,e[m]=i,V.call(e,r,A.engine),e},this.getOS=function(){var e={};return e[f]=i,e[m]=i,V.call(e,r,A.os),v&&!e[f]&&b&&b.platform&&"Unknown"!=b.platform&&(e[f]=b.platform.replace(/chrome os/i,G).replace(/macos/i,z)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>500?K(e,500):e,this},this.setUA(r),this};$.VERSION="1.0.38",$.BROWSER=j([f,m,l]),$.CPU=j([y]),$.DEVICE=j([d,h,p,b,w,A,g,v,x]),$.ENGINE=$.OS=j([f,m]),typeof t!==s?(e.exports&&(t=e.exports=$),t.UAParser=$):n.amdO?i!==(r=(function(){return $}).call(t,n,t,e))&&(e.exports=r):typeof o!==s&&(o.UAParser=$);var _=typeof o!==s&&(o.jQuery||o.Zepto);if(_&&!_.ua){var ee=new $;_.ua=ee.getResult(),_.ua.get=function(){return ee.getUA()},_.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)_.ua[n]=t[n]}}}("object"==typeof window?window:this)},89871:function(e,t,n){"use strict";n.d(t,{secp256k1:function(){return eC}});var r={};n.r(r),n.d(r,{Fy:function(){return N},uw:function(){return h},gk:function(){return p},Dd:function(){return O},dQ:function(){return S},ci:function(){return y},bytesToNumberBE:function(){return x},ty:function(){return C},eV:function(){return I},n$:function(){return T},ql:function(){return k},hexToBytes:function(){return v},Z2:function(){return M},_t:function(){return f},H9:function(){return U},tL:function(){return E},S5:function(){return B},uz:function(){return b},FF:function(){return L}});var o=n(1824),i=n(89675),a=n(93872);class s extends a.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,i.z3)(e);let n=(0,a.O0)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,o=new Uint8Array(r);o.set(n.length>r?e.create().update(n).digest():n);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),o.fill(0)}update(e){return(0,i.$h)(this),this.iHash.update(e),this}digestInto(e){(0,i.$h)(this),(0,i.gk)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:n,finished:r,destroyed:o,blockLen:i,outputLen:a}=this;return e.finished=r,e.destroyed=o,e.blockLen=i,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let c=(e,t,n)=>new s(e,t).update(n).digest();c.create=(e,t)=>new s(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let u=BigInt(0),l=BigInt(1),d=BigInt(2);function f(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function p(e){if(!f(e))throw Error("Uint8Array expected")}function h(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}let m=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function y(e){p(e);let t="";for(let n=0;n<e.length;n++)t+=m[e[n]];return t}function b(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function w(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?u:BigInt("0x"+e)}let g={_0:48,_9:57,A:65,F:70,a:97,f:102};function A(e){return e>=g._0&&e<=g._9?e-g._0:e>=g.A&&e<=g.F?e-(g.A-10):e>=g.a&&e<=g.f?e-(g.a-10):void 0}function v(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,n=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let t=0,o=0;t<n;t++,o+=2){let n=A(e.charCodeAt(o)),i=A(e.charCodeAt(o+1));if(void 0===n||void 0===i)throw Error('hex string expected, got non-hex character "'+(e[o]+e[o+1])+'" at index '+o);r[t]=16*n+i}return r}function x(e){return w(y(e))}function C(e){return p(e),w(y(Uint8Array.from(e).reverse()))}function E(e,t){return v(e.toString(16).padStart(2*t,"0"))}function B(e,t){return E(e,t).reverse()}function k(e,t,n){let r;if("string"==typeof t)try{r=v(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(f(t))r=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let o=r.length;if("number"==typeof n&&o!==n)throw Error(e+" of length "+n+" expected, got "+o);return r}function I(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];p(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let o=e[t];n.set(o,r),r+=o.length}return n}let P=e=>"bigint"==typeof e&&u<=e;function M(e,t,n){return P(e)&&P(t)&&P(n)&&t<=e&&e<n}function N(e,t,n,r){if(!M(t,n,r))throw Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function O(e){let t;for(t=0;e>u;e>>=l,t+=1);return t}let S=e=>(d<<BigInt(e-1))-l,R=e=>new Uint8Array(e),F=e=>Uint8Array.from(e);function T(e,t,n){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof n)throw Error("hmacFn must be a function");let r=R(e),o=R(e),i=0,a=()=>{r.fill(1),o.fill(0),i=0},s=(...e)=>n(o,r,...e),c=(e=R())=>{o=s(F([0]),e),r=s(),0!==e.length&&(o=s(F([1]),e),r=s())},u=()=>{if(i++>=1e3)throw Error("drbg: tried 1000 values");let e=0,n=[];for(;e<t;){let t=(r=s()).slice();n.push(t),e+=r.length}return I(...n)};return(e,t)=>{let n;for(a(),c(e);!(n=t(u()));)c();return a(),n}}let D={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||f(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function L(e,t,n={}){let r=(t,n,r)=>{let o=D[n];if("function"!=typeof o)throw Error("invalid validator function");let i=e[t];if((!r||void 0!==i)&&!o(i,e))throw Error("param "+String(t)+" is invalid. Expected "+n+", got "+i)};for(let[e,n]of Object.entries(t))r(e,n,!1);for(let[e,t]of Object.entries(n))r(e,t,!0);return e}function U(e){let t=new WeakMap;return(n,...r)=>{let o=t.get(n);if(void 0!==o)return o;let i=e(n,...r);return t.set(n,i),i}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let Q=BigInt(0),q=BigInt(1),G=BigInt(2),z=BigInt(3),W=BigInt(4),j=BigInt(5),H=BigInt(8);function Z(e,t){let n=e%t;return n>=Q?n:t+n}function K(e,t,n){let r=e;for(;t-- >Q;)r*=r,r%=n;return r}function V(e,t){if(e===Q)throw Error("invert: expected non-zero number");if(t<=Q)throw Error("invert: expected positive modulus, got "+t);let n=Z(e,t),r=t,o=Q,i=q,a=q,s=Q;for(;n!==Q;){let e=r/n,t=r%n,c=o-a*e,u=i-s*e;r=n,n=t,o=a,i=s,a=c,s=u}if(r!==q)throw Error("invert: does not exist");return Z(o,t)}let J=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Y(e,t){let n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function X(e,t,n=!1,r={}){let o;if(e<=Q)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:i,nByteLength:a}=Y(e,t);if(a>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let s=Object.freeze({ORDER:e,isLE:n,BITS:i,BYTES:a,MASK:S(i),ZERO:Q,ONE:q,create:t=>Z(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return Q<=t&&t<e},is0:e=>e===Q,isOdd:e=>(e&q)===q,neg:t=>Z(-t,e),eql:(e,t)=>e===t,sqr:t=>Z(t*t,e),add:(t,n)=>Z(t+n,e),sub:(t,n)=>Z(t-n,e),mul:(t,n)=>Z(t*n,e),pow:(e,t)=>(function(e,t,n){if(n<Q)throw Error("invalid exponent, negatives unsupported");if(n===Q)return e.ONE;if(n===q)return t;let r=e.ONE,o=t;for(;n>Q;)n&q&&(r=e.mul(r,o)),o=e.sqr(o),n>>=q;return r})(s,e,t),div:(t,n)=>Z(t*V(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>V(t,e),sqrt:r.sqrt||(t=>(o||(o=function(e){if(e%W===z){let t=(e+q)/W;return function(e,n){let r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw Error("Cannot find square root");return r}}if(e%H===j){let t=(e-j)/H;return function(e,n){let r=e.mul(n,G),o=e.pow(r,t),i=e.mul(n,o),a=e.mul(e.mul(i,G),o),s=e.mul(i,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),n))throw Error("Cannot find square root");return s}}return function(e){let t,n,r;let o=(e-q)/G;for(t=e-q,n=0;t%G===Q;t/=G,n++);for(r=G;r<e&&function(e,t,n){if(t<Q)throw Error("invalid exponent, negatives unsupported");if(n<=Q)throw Error("invalid modulus");if(n===q)return Q;let r=q;for(;t>Q;)t&q&&(r=r*e%n),e=e*e%n,t>>=q;return r}(r,o,e)!==e-q;r++)if(r>1e3)throw Error("Cannot find square root: likely non-prime P");if(1===n){let t=(e+q)/W;return function(e,n){let r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw Error("Cannot find square root");return r}}let i=(t+q)/G;return function(e,a){if(e.pow(a,o)===e.neg(e.ONE))throw Error("Cannot find square root");let s=n,c=e.pow(e.mul(e.ONE,r),t),u=e.pow(a,i),l=e.pow(a,t);for(;!e.eql(l,e.ONE);){if(e.eql(l,e.ZERO))return e.ZERO;let t=1;for(let n=e.sqr(l);t<s&&!e.eql(n,e.ONE);t++)n=e.sqr(n);let n=e.pow(c,q<<BigInt(s-t-1));c=e.sqr(n),u=e.mul(u,n),l=e.mul(l,c),s=t}return u}}(e)}(e)),o(s,t))),invertBatch:e=>(function(e,t){let n=Array(t.length),r=t.reduce((t,r,o)=>e.is0(r)?t:(n[o]=t,e.mul(t,r)),e.ONE),o=e.inv(r);return t.reduceRight((t,r,o)=>e.is0(r)?t:(n[o]=e.mul(t,n[o]),e.mul(t,r)),o),n})(s,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?B(e,a):E(e,a),fromBytes:e=>{if(e.length!==a)throw Error("Field.fromBytes: expected "+a+" bytes, got "+e.length);return n?C(e):x(e)}});return Object.freeze(s)}function $(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function _(e){let t=$(e);return t+Math.ceil(t/2)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let ee=BigInt(0),et=BigInt(1);function en(e,t){let n=t.negate();return e?n:t}function er(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function eo(e,t){return er(e,t),{windows:Math.ceil(t/e)+1,windowSize:2**(e-1)}}let ei=new WeakMap,ea=new WeakMap;function es(e){return ea.get(e)||1}function ec(e){return L(e.Fp,J.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),L(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Y(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function eu(e){void 0!==e.lowS&&h("lowS",e.lowS),void 0!==e.prehash&&h("prehash",e.prehash)}let{bytesToNumberBE:el,hexToBytes:ed}=r;class ef extends Error{constructor(e=""){super(e)}}let ep={Err:ef,_tlv:{encode:(e,t)=>{let{Err:n}=ep;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");let r=t.length/2,o=b(r);if(o.length/2&128)throw new n("tlv.encode: long form length too big");let i=r>127?b(o.length/2|128):"";return b(e)+i+o+t},decode(e,t){let{Err:n}=ep,r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");let o=t[r++],i=0;if(128&o){let e=127&o;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");let a=t.subarray(r,r+e);if(a.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===a[0])throw new n("tlv.decode(long): zero leftmost byte");for(let e of a)i=i<<8|e;if(r+=e,i<128)throw new n("tlv.decode(long): not minimal encoding")}else i=o;let a=t.subarray(r,r+i);if(a.length!==i)throw new n("tlv.decode: wrong value length");return{v:a,l:t.subarray(r+i)}}},_int:{encode(e){let{Err:t}=ep;if(e<eh)throw new t("integer: negative integers are not allowed");let n=b(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){let{Err:t}=ep;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return el(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=ep,o="string"==typeof e?ed(e):e;p(o);let{v:i,l:a}=r.decode(48,o);if(a.length)throw new t("invalid signature: left bytes after parsing");let{v:s,l:c}=r.decode(2,i),{v:u,l:l}=r.decode(2,c);if(l.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(s),s:n.decode(u)}},hexFromSig(e){let{_tlv:t,_int:n}=ep,r=t.encode(2,n.encode(e.r)),o=t.encode(2,n.encode(e.s));return t.encode(48,r+o)}},eh=BigInt(0),em=BigInt(1),ey=(BigInt(2),BigInt(3));BigInt(4);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let eb=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ew=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),eg=BigInt(1),eA=BigInt(2),ev=(e,t)=>(e+t/eA)/t,ex=X(eb,void 0,void 0,{sqrt:function(e){let t=BigInt(3),n=BigInt(6),r=BigInt(11),o=BigInt(22),i=BigInt(23),a=BigInt(44),s=BigInt(88),c=e*e*e%eb,u=c*c*e%eb,l=K(u,t,eb)*u%eb,d=K(l,t,eb)*u%eb,f=K(d,eA,eb)*c%eb,p=K(f,r,eb)*f%eb,h=K(p,o,eb)*p%eb,m=K(h,a,eb)*h%eb,y=K(m,s,eb)*m%eb,b=K(y,a,eb)*h%eb,w=K(b,t,eb)*u%eb,g=K(w,i,eb)*p%eb,A=K(g,n,eb)*c%eb,v=K(A,eA,eb);if(!ex.eql(ex.sqr(v),e))throw Error("Cannot find square root");return v}}),eC=function(e,t){let n=t=>(function(e){let t=function(e){let t=ec(e);return L(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:r}=t,o=n.BYTES+1,i=2*n.BYTES+1;function a(e){return Z(e,r)}let{ProjectivePoint:s,normPrivateKeyToScalar:c,weierstrassEquation:u,isWithinCurveOrder:l}=function(e){var t;let n=function(e){let t=ec(e);L(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:n,Fp:r,a:o}=t;if(n){if(!r.eql(o,r.ZERO))throw Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=n,o=X(n.n,n.nBitLength),i=n.toBytes||((e,t,n)=>{let o=t.toAffine();return I(Uint8Array.from([4]),r.toBytes(o.x),r.toBytes(o.y))}),a=n.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function s(e){let{a:t,b:o}=n,i=r.sqr(e),a=r.mul(i,e);return r.add(r.add(a,r.mul(e,t)),o)}if(!r.eql(r.sqr(n.Gy),s(n.Gx)))throw Error("bad generator point: equation left != right");function c(e){let t;let{allowedPrivateKeyLengths:r,nByteLength:o,wrapPrivateKey:i,n:a}=n;if(r&&"bigint"!=typeof e){if(f(e)&&(e=y(e)),"string"!=typeof e||!r.includes(e.length))throw Error("invalid private key");e=e.padStart(2*o,"0")}try{t="bigint"==typeof e?e:x(k("private key",e,o))}catch(t){throw Error("invalid private key, expected hex or "+o+" bytes, got "+typeof e)}return i&&(t=Z(t,a)),N("private key",t,em,a),t}function u(e){if(!(e instanceof p))throw Error("ProjectivePoint expected")}let l=U((e,t)=>{let{px:n,py:o,pz:i}=e;if(r.eql(i,r.ONE))return{x:n,y:o};let a=e.is0();null==t&&(t=a?r.ONE:r.inv(i));let s=r.mul(n,t),c=r.mul(o,t),u=r.mul(i,t);if(a)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw Error("invZ was invalid");return{x:s,y:c}}),d=U(e=>{if(e.is0()){if(n.allowInfinityPoint&&!r.is0(e.py))return;throw Error("bad point: ZERO")}let{x:t,y:o}=e.toAffine();if(!r.isValid(t)||!r.isValid(o))throw Error("bad point: x or y not FE");let i=r.sqr(o),a=s(t);if(!r.eql(i,a))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class p{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required");Object.freeze(this)}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof p)throw Error("projective point not allowed");let o=e=>r.eql(e,r.ZERO);return o(t)&&o(n)?p.ZERO:new p(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(p.fromAffine)}static fromHex(e){let t=p.fromAffine(a(k("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return p.BASE.multiply(c(e))}static msm(e,t){return function(e,t,n,r){if(!function(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw Error("invalid point at index "+n)})}(n,e),!function(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+n)})}(r,t),n.length!==r.length)throw Error("arrays of points and scalars must have equal length");let o=e.ZERO,i=O(BigInt(n.length)),a=i>12?i-3:i>4?i-2:i?2:1,s=(1<<a)-1,c=Array(s+1).fill(o),u=Math.floor((t.BITS-1)/a)*a,l=o;for(let e=u;e>=0;e-=a){c.fill(o);for(let t=0;t<r.length;t++){let o=Number(r[t]>>BigInt(e)&BigInt(s));c[o]=c[o].add(n[t])}let t=o;for(let e=c.length-1,n=o;e>0;e--)n=n.add(c[e]),t=t.add(n);if(l=l.add(t),0!==e)for(let e=0;e<a;e++)l=l.double()}return l}(p,o,e,t)}_setWindowSize(e){b.setWindowSize(this,e)}assertValidity(){d(this)}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){u(e);let{px:t,py:n,pz:o}=this,{px:i,py:a,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(i,o)),l=r.eql(r.mul(n,s),r.mul(a,o));return c&&l}negate(){return new p(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:t}=n,o=r.mul(t,ey),{px:i,py:a,pz:s}=this,c=r.ZERO,u=r.ZERO,l=r.ZERO,d=r.mul(i,i),f=r.mul(a,a),h=r.mul(s,s),m=r.mul(i,a);return m=r.add(m,m),l=r.mul(i,s),l=r.add(l,l),c=r.mul(e,l),u=r.mul(o,h),u=r.add(c,u),c=r.sub(f,u),u=r.add(f,u),u=r.mul(c,u),c=r.mul(m,c),l=r.mul(o,l),h=r.mul(e,h),m=r.sub(d,h),m=r.mul(e,m),m=r.add(m,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,h),d=r.mul(d,m),u=r.add(u,d),h=r.mul(a,s),h=r.add(h,h),d=r.mul(h,m),c=r.sub(c,d),l=r.mul(h,f),l=r.add(l,l),new p(c,u,l=r.add(l,l))}add(e){u(e);let{px:t,py:o,pz:i}=this,{px:a,py:s,pz:c}=e,l=r.ZERO,d=r.ZERO,f=r.ZERO,h=n.a,m=r.mul(n.b,ey),y=r.mul(t,a),b=r.mul(o,s),w=r.mul(i,c),g=r.add(t,o),A=r.add(a,s);g=r.mul(g,A),A=r.add(y,b),g=r.sub(g,A),A=r.add(t,i);let v=r.add(a,c);return A=r.mul(A,v),v=r.add(y,w),A=r.sub(A,v),v=r.add(o,i),l=r.add(s,c),v=r.mul(v,l),l=r.add(b,w),v=r.sub(v,l),f=r.mul(h,A),l=r.mul(m,w),f=r.add(l,f),l=r.sub(b,f),f=r.add(b,f),d=r.mul(l,f),b=r.add(y,y),b=r.add(b,y),w=r.mul(h,w),A=r.mul(m,A),b=r.add(b,w),w=r.sub(y,w),w=r.mul(h,w),A=r.add(A,w),y=r.mul(b,A),d=r.add(d,y),y=r.mul(v,A),l=r.mul(g,l),l=r.sub(l,y),y=r.mul(g,b),f=r.mul(v,f),new p(l,d,f=r.add(f,y))}subtract(e){return this.add(e.negate())}is0(){return this.equals(p.ZERO)}wNAF(e){return b.wNAFCached(this,e,p.normalizeZ)}multiplyUnsafe(e){let{endo:t,n:o}=n;N("scalar",e,eh,o);let i=p.ZERO;if(e===eh)return i;if(this.is0()||e===em)return this;if(!t||b.hasPrecomputes(this))return b.wNAFCachedUnsafe(this,e,p.normalizeZ);let{k1neg:a,k1:s,k2neg:c,k2:u}=t.splitScalar(e),l=i,d=i,f=this;for(;s>eh||u>eh;)s&em&&(l=l.add(f)),u&em&&(d=d.add(f)),f=f.double(),s>>=em,u>>=em;return a&&(l=l.negate()),c&&(d=d.negate()),d=new p(r.mul(d.px,t.beta),d.py,d.pz),l.add(d)}multiply(e){let t,o;let{endo:i,n:a}=n;if(N("scalar",e,em,a),i){let{k1neg:n,k1:a,k2neg:s,k2:c}=i.splitScalar(e),{p:u,f:l}=this.wNAF(a),{p:d,f:f}=this.wNAF(c);u=b.constTimeNegate(n,u),d=b.constTimeNegate(s,d),d=new p(r.mul(d.px,i.beta),d.py,d.pz),t=u.add(d),o=l.add(f)}else{let{p:n,f:r}=this.wNAF(e);t=n,o=r}return p.normalizeZ([t,o])[0]}multiplyAndAddUnsafe(e,t,n){let r=p.BASE,o=(e,t)=>t!==eh&&t!==em&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),i=o(this,t).add(o(e,n));return i.is0()?void 0:i}toAffine(e){return l(this,e)}isTorsionFree(){let{h:e,isTorsionFree:t}=n;if(e===em)return!0;if(t)return t(p,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:t}=n;return e===em?this:t?t(p,this):this.multiplyUnsafe(n.h)}toRawBytes(e=!0){return h("isCompressed",e),this.assertValidity(),i(p,this,e)}toHex(e=!0){return h("isCompressed",e),y(this.toRawBytes(e))}}p.BASE=new p(n.Gx,n.Gy,r.ONE),p.ZERO=new p(r.ZERO,r.ONE,r.ZERO);let m=n.nBitLength,b=(t=n.endo?Math.ceil(m/2):m,{constTimeNegate:en,hasPrecomputes:e=>1!==es(e),unsafeLadder(e,t,n=p.ZERO){let r=e;for(;t>ee;)t&et&&(n=n.add(r)),r=r.double(),t>>=et;return n},precomputeWindow(e,n){let{windows:r,windowSize:o}=eo(n,t),i=[],a=e,s=a;for(let e=0;e<r;e++){s=a,i.push(s);for(let e=1;e<o;e++)s=s.add(a),i.push(s);a=s.double()}return i},wNAF(e,n,r){let{windows:o,windowSize:i}=eo(e,t),a=p.ZERO,s=p.BASE,c=BigInt(2**e-1),u=2**e,l=BigInt(e);for(let e=0;e<o;e++){let t=e*i,o=Number(r&c);r>>=l,o>i&&(o-=u,r+=et);let d=t+Math.abs(o)-1,f=e%2!=0,p=o<0;0===o?s=s.add(en(f,n[t])):a=a.add(en(p,n[d]))}return{p:a,f:s}},wNAFUnsafe(e,n,r,o=p.ZERO){let{windows:i,windowSize:a}=eo(e,t),s=BigInt(2**e-1),c=2**e,u=BigInt(e);for(let e=0;e<i;e++){let t=e*a;if(r===ee)break;let i=Number(r&s);if(r>>=u,i>a&&(i-=c,r+=et),0===i)continue;let l=n[t+Math.abs(i)-1];i<0&&(l=l.negate()),o=o.add(l)}return o},getPrecomputes(e,t,n){let r=ei.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&ei.set(t,n(r))),r},wNAFCached(e,t,n){let r=es(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)},wNAFCachedUnsafe(e,t,n,r){let o=es(e);return 1===o?this.unsafeLadder(e,t,r):this.wNAFUnsafe(o,this.getPrecomputes(o,e,n),t,r)},setWindowSize(e,n){er(n,t),ea.set(e,n),ei.delete(e)}});return{CURVE:n,ProjectivePoint:p,normPrivateKeyToScalar:c,weierstrassEquation:s,isWithinCurveOrder:function(e){return M(e,em,n.n)}}}({...t,toBytes(e,t,r){let o=t.toAffine(),i=n.toBytes(o.x),a=I;return(h("isCompressed",r),r)?a(Uint8Array.from([t.hasEvenY()?2:3]),i):a(Uint8Array.from([4]),i,n.toBytes(o.y))},fromBytes(e){let t=e.length,r=e[0],a=e.subarray(1);if(t===o&&(2===r||3===r)){let e;let t=x(a);if(!M(t,em,n.ORDER))throw Error("Point is not on curve");let o=u(t);try{e=n.sqrt(o)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&r)==1!=((e&em)===em)&&(e=n.neg(e)),{x:t,y:e}}if(t===i&&4===r)return{x:n.fromBytes(a.subarray(0,n.BYTES)),y:n.fromBytes(a.subarray(n.BYTES,2*n.BYTES))};throw Error("invalid Point, expected length of "+o+", or uncompressed "+i+", got "+t)}}),d=e=>y(E(e,t.nByteLength)),p=(e,t,n)=>x(e.slice(t,n));class m{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){let n=t.nByteLength;return new m(p(e=k("compactSignature",e,2*n),0,n),p(e,n,2*n))}static fromDER(e){let{r:t,s:n}=ep.toSig(k("DER",e));return new m(t,n)}assertValidity(){N("r",this.r,em,r),N("s",this.s,em,r)}addRecoveryBit(e){return new m(this.r,this.s,e)}recoverPublicKey(e){let{r:o,s:i,recovery:c}=this,u=g(k("msgHash",e));if(null==c||![0,1,2,3].includes(c))throw Error("recovery id invalid");let l=2===c||3===c?o+t.n:o;if(l>=n.ORDER)throw Error("recovery id 2 or 3 invalid");let f=(1&c)==0?"02":"03",p=s.fromHex(f+d(l)),h=V(l,r),m=a(-u*h),y=a(i*h),b=s.BASE.multiplyAndAddUnsafe(p,m,y);if(!b)throw Error("point at infinify");return b.assertValidity(),b}hasHighS(){return this.s>r>>em}normalizeS(){return this.hasHighS()?new m(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return v(this.toDERHex())}toDERHex(){return ep.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return v(this.toCompactHex())}toCompactHex(){return d(this.r)+d(this.s)}}function b(e){let t=f(e),n="string"==typeof e,r=(t||n)&&e.length;return t?r===o||r===i:n?r===2*o||r===2*i:e instanceof s}let w=t.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let n=x(e),r=8*e.length-t.nBitLength;return r>0?n>>BigInt(r):n},g=t.bits2int_modN||function(e){return a(w(e))},A=S(t.nBitLength);function P(e){return N("num < 2^"+t.nBitLength,e,eh,A),E(e,t.nByteLength)}let R={lowS:t.lowS,prehash:!1},F={lowS:t.lowS,prehash:!1};return s.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return s.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,n=!0){if(b(e))throw Error("first arg must be private key");if(!b(t))throw Error("second arg must be public key");return s.fromHex(t).multiply(c(e)).toRawBytes(n)},sign:function(e,o,i=R){let{seed:u,k2sig:d}=function(e,o,i=R){if(["recovered","canonical"].some(e=>e in i))throw Error("sign() legacy options not supported");let{hash:u,randomBytes:d}=t,{lowS:f,prehash:p,extraEntropy:h}=i;null==f&&(f=!0),e=k("msgHash",e),eu(i),p&&(e=k("prehashed msgHash",u(e)));let y=g(e),b=c(o),A=[P(b),P(y)];if(null!=h&&!1!==h){let e=!0===h?d(n.BYTES):h;A.push(k("extraEntropy",e))}return{seed:I(...A),k2sig:function(e){let t=w(e);if(!l(t))return;let n=V(t,r),o=s.BASE.multiply(t).toAffine(),i=a(o.x);if(i===eh)return;let c=a(n*a(y+i*b));if(c===eh)return;let u=(o.x===i?0:2)|Number(o.y&em),d=c;if(f&&c>r>>em)d=c>r>>em?a(-c):c,u^=1;return new m(i,d,u)}}}(e,o,i);return T(t.hash.outputLen,t.nByteLength,t.hmac)(u,d)},verify:function(e,n,o,i=F){let c,u;n=k("msgHash",n),o=k("publicKey",o);let{lowS:l,prehash:d,format:p}=i;if(eu(i),"strict"in i)throw Error("options.strict was renamed to lowS");if(void 0!==p&&"compact"!==p&&"der"!==p)throw Error("format must be compact or der");let h="string"==typeof e||f(e),y=!h&&!p&&"object"==typeof e&&null!==e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!h&&!y)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(y&&(u=new m(e.r,e.s)),h){try{"compact"!==p&&(u=m.fromDER(e))}catch(e){if(!(e instanceof ep.Err))throw e}u||"der"===p||(u=m.fromCompact(e))}c=s.fromHex(o)}catch(e){return!1}if(!u||l&&u.hasHighS())return!1;d&&(n=t.hash(n));let{r:b,s:w}=u,A=g(n),v=V(w,r),x=a(A*v),C=a(b*v),E=s.BASE.multiplyAndAddUnsafe(c,x,C)?.toAffine();return!!E&&a(E.x)===b},ProjectivePoint:s,Signature:m,utils:{isValidPrivateKey(e){try{return c(e),!0}catch(e){return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{let e=_(t.n);return function(e,t,n=!1){let r=e.length,o=$(t),i=_(t);if(r<16||r<i||r>1024)throw Error("expected "+i+"-1024 bytes of input, got "+r);let a=Z(n?C(e):x(e),t-q)+q;return n?B(a,o):E(a,o)}(t.randomBytes(e),t.n)},precompute:(e=8,t=s.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,hash:t,hmac:(e,...n)=>c(t,e,(0,a.eV)(...n)),randomBytes:a.O6});return{...n(t),create:n}}({a:BigInt(0),b:BigInt(7),Fp:ex,n:ew,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-eg*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=BigInt("0x100000000000000000000000000000000"),i=ev(t*e,ew),a=ev(-n*e,ew),s=Z(e-i*t-a*r,ew),c=Z(-i*n-a*t,ew),u=s>o,l=c>o;if(u&&(s=ew-s),l&&(c=ew-c),s>o||c>o)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:s,k2neg:l,k2:c}}}},o.JQ);BigInt(0),eC.ProjectivePoint},16442:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(2446),o={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},i=o.blue,a=function(){let{accentColor:e=i.accentColor,accentColorForeground:t=i.accentColorForeground,...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,r.w)(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}}};a.accentColors=o},2446:function(e,t,n){"use strict";n.d(t,{w:function(){return s}});var r='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',o={rounded:'SFRounded, ui-rounded, "SF Pro Rounded", '.concat(r),system:r},i={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},a={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},s=e=>{let{borderRadius:t="large",fontStack:n="rounded",overlayBlur:r="none"}=e;return{blurs:{modalOverlay:a[r].modalOverlay},fonts:{body:o[n]},radii:{actionButton:i[t].actionButton,connectButton:i[t].connectButton,menuButton:i[t].connectButton,modal:i[t].modal,modalMobile:i[t].modalMobile}}}},13189:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r='{\n "connect_wallet": {\n "label": "Connect Wallet",\n "wrong_network": {\n "label": "Wrong network"\n }\n },\n\n "intro": {\n "title": "What is a Wallet?",\n "description": "A wallet is used to send, receive, store, and display digital assets. It\'s also a new way to log in, without needing to create new accounts and passwords on every website.",\n "digital_asset": {\n "title": "A Home for your Digital Assets",\n "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."\n },\n "login": {\n "title": "A New Way to Log In",\n "description": "Instead of creating new accounts and passwords on every website, just connect your wallet."\n },\n "get": {\n "label": "Get a Wallet"\n },\n "learn_more": {\n "label": "Learn More"\n }\n },\n\n "sign_in": {\n "label": "Verify your account",\n "description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",\n "message": {\n "send": "Sign message",\n "preparing": "Preparing message...",\n "cancel": "Cancel",\n "preparing_error": "Error preparing message, please retry!"\n },\n "signature": {\n "waiting": "Waiting for signature...",\n "verifying": "Verifying signature...",\n "signing_error": "Error signing message, please retry!",\n "verifying_error": "Error verifying signature, please retry!",\n "oops_error": "Oops, something went wrong!"\n }\n },\n\n "connect": {\n "label": "Connect",\n "title": "Connect a Wallet",\n "new_to_ethereum": {\n "description": "New to Ethereum wallets?",\n "learn_more": {\n "label": "Learn More"\n }\n },\n "learn_more": {\n "label": "Learn more"\n },\n "recent": "Recent",\n "status": {\n "opening": "Opening %{wallet}...",\n "connecting": "Connecting",\n "connect_mobile": "Continue in %{wallet}",\n "not_installed": "%{wallet} is not installed",\n "not_available": "%{wallet} is not available",\n "confirm": "Confirm connection in the extension",\n "confirm_mobile": "Accept connection request in the wallet"\n },\n "secondary_action": {\n "get": {\n "description": "Don\'t have %{wallet}?",\n "label": "GET"\n },\n "install": {\n "label": "INSTALL"\n },\n "retry": {\n "label": "RETRY"\n }\n },\n "walletconnect": {\n "description": {\n "full": "Need the official WalletConnect modal?",\n "compact": "Need the WalletConnect modal?"\n },\n "open": {\n "label": "OPEN"\n }\n }\n },\n\n "connect_scan": {\n "title": "Scan with %{wallet}",\n "fallback_title": "Scan with your phone"\n },\n\n "connector_group": {\n "installed": "Installed",\n "recommended": "Recommended",\n "other": "Other",\n "popular": "Popular",\n "more": "More",\n "others": "Others"\n },\n\n "get": {\n "title": "Get a Wallet",\n "action": {\n "label": "GET"\n },\n "mobile": {\n "description": "Mobile Wallet"\n },\n "extension": {\n "description": "Browser Extension"\n },\n "mobile_and_extension": {\n "description": "Mobile Wallet and Extension"\n },\n "mobile_and_desktop": {\n "description": "Mobile and Desktop Wallet"\n },\n "looking_for": {\n "title": "Not what you\'re looking for?",\n "mobile": {\n "description": "Select a wallet on the main screen to get started with a different wallet provider."\n },\n "desktop": {\n "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.",\n "wide_description": "Select a wallet on the left to get started with a different wallet provider."\n }\n }\n },\n\n "get_options": {\n "title": "Get started with %{wallet}",\n "short_title": "Get %{wallet}",\n "mobile": {\n "title": "%{wallet} for Mobile",\n "description": "Use the mobile wallet to explore the world of Ethereum.",\n "download": {\n "label": "Get the app"\n }\n },\n "extension": {\n "title": "%{wallet} for %{browser}",\n "description": "Access your wallet right from your favorite web browser.",\n "download": {\n "label": "Add to %{browser}"\n }\n },\n "desktop": {\n "title": "%{wallet} for %{platform}",\n "description": "Access your wallet natively from your powerful desktop.",\n "download": {\n "label": "Add to %{platform}"\n }\n }\n },\n\n "get_mobile": {\n "title": "Install %{wallet}",\n "description": "Scan with your phone to download on iOS or Android",\n "continue": {\n "label": "Continue"\n }\n },\n\n "get_instructions": {\n "mobile": {\n "connect": {\n "label": "Connect"\n },\n "learn_more": {\n "label": "Learn More"\n }\n },\n "extension": {\n "refresh": {\n "label": "Refresh"\n },\n "learn_more": {\n "label": "Learn More"\n }\n },\n "desktop": {\n "connect": {\n "label": "Connect"\n },\n "learn_more": {\n "label": "Learn More"\n }\n }\n },\n\n "chains": {\n "title": "Switch Networks",\n "wrong_network": "Wrong network detected, switch or disconnect to continue.",\n "confirm": "Confirm in Wallet",\n "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",\n "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",\n "disconnect": "Disconnect",\n "connected": "Connected"\n },\n\n "profile": {\n "disconnect": {\n "label": "Disconnect"\n },\n "copy_address": {\n "label": "Copy Address",\n "copied": "Copied!"\n },\n "explorer": {\n "label": "View more on explorer"\n },\n "transactions": {\n "description": "%{appName} transactions will appear here...",\n "description_fallback": "Your transactions will appear here...",\n "recent": {\n "title": "Recent Transactions"\n },\n "clear": {\n "label": "Clear All"\n }\n }\n },\n\n "wallet_connectors": {\n "argent": {\n "qr_code": {\n "step1": {\n "description": "Put Argent on your home screen for faster access to your wallet.",\n "title": "Open the Argent app"\n },\n "step2": {\n "description": "Create a wallet and username, or import an existing wallet.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the Scan QR button"\n }\n }\n },\n\n "bifrost": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.",\n "title": "Open the Bifrost Wallet app"\n },\n "step2": {\n "description": "Create or import a wallet using your recovery phrase.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n }\n },\n\n "bitget": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Bitget Wallet on your home screen for quicker access.",\n "title": "Open the Bitget Wallet app"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",\n "title": "Install the Bitget Wallet extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "bitski": {\n "extension": {\n "step1": {\n "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.",\n "title": "Install the Bitski extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "bitverse": {\n "qr_code": {\n "step1": {\n "title": "Open the Bitverse Wallet app",\n "description": "Add Bitverse Wallet to your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the QR icon and scan",\n "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n }\n }\n },\n\n "bloom": {\n "desktop": {\n "step1": {\n "title": "Open the Bloom Wallet app",\n "description": "We recommend putting Bloom Wallet on your home screen for quicker access."\n },\n "step2": {\n "description": "Create or import a wallet using your recovery phrase.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you have a wallet, click on Connect to connect via Bloom. A connection prompt in the app will appear for you to confirm the connection.",\n "title": "Click on Connect"\n }\n }\n },\n\n "bybit": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Bybit on your home screen for faster access to your wallet.",\n "title": "Open the Bybit app"\n },\n "step2": {\n "description": "You can easily backup your wallet using our backup feature on your phone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "Click at the top right of your browser and pin Bybit Wallet for easy access.",\n "title": "Install the Bybit Wallet extension"\n },\n "step2": {\n "description": "Create a new wallet or import an existing one.",\n "title": "Create or Import a wallet"\n },\n "step3": {\n "description": "Once you set up Bybit Wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "binance": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Binance on your home screen for faster access to your wallet.",\n "title": "Open the Binance app"\n },\n "step2": {\n "description": "You can easily backup your wallet using our backup feature on your phone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the WalletConnect button"\n }\n }\n },\n\n "coin98": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",\n "title": "Open the Coin98 Wallet app"\n },\n "step2": {\n "description": "You can easily backup your wallet using our backup feature on your phone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the WalletConnect button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.",\n "title": "Install the Coin98 Wallet extension"\n },\n "step2": {\n "description": "Create a new wallet or import an existing one.",\n "title": "Create or Import a wallet"\n },\n "step3": {\n "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "coinbase": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.",\n "title": "Open the Coinbase Wallet app"\n },\n "step2": {\n "description": "You can easily backup your wallet using the cloud backup feature.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",\n "title": "Install the Coinbase Wallet extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "compass": {\n "extension": {\n "step1": {\n "description": "We recommend pinning Compass Wallet to your taskbar for quicker access to your wallet.",\n "title": "Install the Compass Wallet extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "core": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Core on your home screen for faster access to your wallet.",\n "title": "Open the Core app"\n },\n "step2": {\n "description": "You can easily backup your wallet using our backup feature on your phone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the WalletConnect button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.",\n "title": "Install the Core extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "fox": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting FoxWallet on your home screen for quicker access.",\n "title": "Open the FoxWallet app"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n }\n },\n\n "frontier": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Frontier Wallet on your home screen for quicker access.",\n "title": "Open the Frontier Wallet app"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",\n "title": "Install the Frontier Wallet extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "im_token": {\n "qr_code": {\n "step1": {\n "title": "Open the imToken app",\n "description": "Put imToken app on your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap Scanner Icon in top right corner",\n "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n }\n }\n },\n\n "iopay": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting ioPay on your home screen for faster access to your wallet.",\n "title": "Open the ioPay app"\n },\n "step2": {\n "description": "You can easily backup your wallet using our backup feature on your phone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the WalletConnect button"\n }\n }\n },\n\n "kaikas": {\n "extension": {\n "step1": {\n "description": "We recommend pinning Kaikas to your taskbar for quicker access to your wallet.",\n "title": "Install the Kaikas extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n },\n "qr_code": {\n "step1": {\n "title": "Open the Kaikas app",\n "description": "Put Kaikas app on your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap Scanner Icon in top right corner",\n "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n }\n }\n },\n\n "kaia": {\n "extension": {\n "step1": {\n "description": "We recommend pinning Kaia to your taskbar for quicker access to your wallet.",\n "title": "Install the Kaia extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n },\n "qr_code": {\n "step1": {\n "title": "Open the Kaia app",\n "description": "Put Kaia app on your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap Scanner Icon in top right corner",\n "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n }\n }\n },\n\n "kraken": {\n "qr_code": {\n "step1": {\n "title": "Open the Kraken Wallet app",\n "description": "Add Kraken Wallet to your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the QR icon and scan",\n "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n }\n }\n },\n\n "kresus": {\n "qr_code": {\n "step1": {\n "title": "Open the Kresus Wallet app",\n "description": "Add Kresus Wallet to your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the QR icon and scan",\n "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n }\n }\n },\n\n "magicEden": {\n "extension": {\n "step1": {\n "title": "Install the Magic Eden extension",\n "description": "We recommend pinning Magic Eden to your taskbar for easier access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "metamask": {\n "qr_code": {\n "step1": {\n "title": "Open the MetaMask app",\n "description": "We recommend putting MetaMask on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n },\n\n "extension": {\n "step1": {\n "title": "Install the MetaMask extension",\n "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "nestwallet": {\n "extension": {\n "step1": {\n "title": "Install the NestWallet extension",\n "description": "We recommend pinning NestWallet to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "okx": {\n "qr_code": {\n "step1": {\n "title": "Open the OKX Wallet app",\n "description": "We recommend putting OKX Wallet on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n },\n\n "extension": {\n "step1": {\n "title": "Install the OKX Wallet extension",\n "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "omni": {\n "qr_code": {\n "step1": {\n "title": "Open the Omni app",\n "description": "Add Omni to your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the QR icon and scan",\n "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."\n }\n }\n },\n\n "1inch": {\n "qr_code": {\n "step1": {\n "description": "Put 1inch Wallet on your home screen for faster access to your wallet.",\n "title": "Open the 1inch Wallet app"\n },\n "step2": {\n "description": "Create a wallet and username, or import an existing wallet.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the Scan QR button"\n }\n }\n },\n\n "token_pocket": {\n "qr_code": {\n "step1": {\n "title": "Open the TokenPocket app",\n "description": "We recommend putting TokenPocket on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n },\n\n "extension": {\n "step1": {\n "title": "Install the TokenPocket extension",\n "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "trust": {\n "qr_code": {\n "step1": {\n "title": "Open the Trust Wallet app",\n "description": "Put Trust Wallet on your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap WalletConnect in Settings",\n "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n }\n },\n\n "extension": {\n "step1": {\n "title": "Install the Trust Wallet extension",\n "description": "Click at the top right of your browser and pin Trust Wallet for easy access."\n },\n "step2": {\n "title": "Create or Import a wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "uniswap": {\n "qr_code": {\n "step1": {\n "title": "Open the Uniswap app",\n "description": "Add Uniswap Wallet to your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the QR icon and scan",\n "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n }\n }\n },\n\n "zerion": {\n "qr_code": {\n "step1": {\n "title": "Open the Zerion app",\n "description": "We recommend putting Zerion on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n },\n\n "extension": {\n "step1": {\n "title": "Install the Zerion extension",\n "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "rainbow": {\n "qr_code": {\n "step1": {\n "title": "Open the Rainbow app",\n "description": "We recommend putting Rainbow on your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "You can easily backup your wallet using our backup feature on your phone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n }\n },\n\n "enkrypt": {\n "extension": {\n "step1": {\n "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",\n "title": "Install the Enkrypt Wallet extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "frame": {\n "extension": {\n "step1": {\n "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.",\n "title": "Install Frame & the companion extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "one_key": {\n "extension": {\n "step1": {\n "title": "Install the OneKey Wallet extension",\n "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "phantom": {\n "extension": {\n "step1": {\n "title": "Install the Phantom extension",\n "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "rabby": {\n "extension": {\n "step1": {\n "title": "Install the Rabby extension",\n "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "ronin": {\n "qr_code": {\n "step1": {\n "description": "We recommend putting Ronin Wallet on your home screen for quicker access.",\n "title": "Open the Ronin Wallet app"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n "title": "Tap the scan button"\n }\n },\n\n "extension": {\n "step1": {\n "description": "We recommend pinning Ronin Wallet to your taskbar for quicker access to your wallet.",\n "title": "Install the Ronin Wallet extension"\n },\n "step2": {\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n "title": "Create or Import a Wallet"\n },\n "step3": {\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n "title": "Refresh your browser"\n }\n }\n },\n\n "ramper": {\n "extension": {\n "step1": {\n "title": "Install the Ramper extension",\n "description": "We recommend pinning Ramper to your taskbar for easier access to your wallet."\n },\n "step2": {\n "title": "Create a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "safeheron": {\n "extension": {\n "step1": {\n "title": "Install the Core extension",\n "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "taho": {\n "extension": {\n "step1": {\n "title": "Install the Taho extension",\n "description": "We recommend pinning Taho to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "talisman": {\n "extension": {\n "step1": {\n "title": "Install the Talisman extension",\n "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import an Ethereum Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "xdefi": {\n "extension": {\n "step1": {\n "title": "Install the XDEFI Wallet extension",\n "description": "We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "zeal": {\n "qr_code": {\n "step1": {\n "title": "Open the Zeal app",\n "description": "Add Zeal Wallet to your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the QR icon and scan",\n "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n }\n },\n "extension": {\n "step1": {\n "title": "Install the Zeal extension",\n "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "safepal": {\n "extension": {\n "step1": {\n "title": "Install the SafePal Wallet extension",\n "description": "Click at the top right of your browser and pin SafePal Wallet for easy access."\n },\n "step2": {\n "title": "Create or Import a wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Open the SafePal Wallet app",\n "description": "Put SafePal Wallet on your home screen for faster access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap WalletConnect in Settings",\n "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n }\n }\n },\n\n "desig": {\n "extension": {\n "step1": {\n "title": "Install the Desig extension",\n "description": "We recommend pinning Desig to your taskbar for easier access to your wallet."\n },\n "step2": {\n "title": "Create a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n }\n },\n\n "subwallet": {\n "extension": {\n "step1": {\n "title": "Install the SubWallet extension",\n "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Open the SubWallet app",\n "description": "We recommend putting SubWallet on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n }\n },\n\n "clv": {\n "extension": {\n "step1": {\n "title": "Install the CLV Wallet extension",\n "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Refresh your browser",\n "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Open the CLV Wallet app",\n "description": "We recommend putting CLV Wallet on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or Import a Wallet",\n "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n }\n },\n\n "okto": {\n "qr_code": {\n "step1": {\n "title": "Open the Okto app",\n "description": "Add Okto to your home screen for quick access"\n },\n "step2": {\n "title": "Create an MPC Wallet",\n "description": "Create an account and generate a wallet"\n },\n "step3": {\n "title": "Tap WalletConnect in Settings",\n "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect."\n }\n }\n },\n\n "ledger": {\n "desktop": {\n "step1": {\n "title": "Open the Ledger Live app",\n "description": "We recommend putting Ledger Live on your home screen for quicker access."\n },\n "step2": {\n "title": "Set up your Ledger",\n "description": "Set up a new Ledger or connect to an existing one."\n },\n "step3": {\n "title": "Connect",\n "description": "A connection prompt will appear for you to connect your wallet."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Open the Ledger Live app",\n "description": "We recommend putting Ledger Live on your home screen for quicker access."\n },\n "step2": {\n "title": "Set up your Ledger",\n "description": "You can either sync with the desktop app or connect your Ledger."\n },\n "step3": {\n "title": "Scan the code",\n "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."\n }\n }\n },\n\n "valora": {\n "qr_code": {\n "step1": {\n "title": "Open the Valora app",\n "description": "We recommend putting Valora on your home screen for quicker access."\n },\n "step2": {\n "title": "Create or import a wallet",\n "description": "Create a new wallet or import an existing one."\n },\n "step3": {\n "title": "Tap the scan button",\n "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n }\n }\n }\n }\n}\n'},77202:function(e,t,n){"use strict";n.d(t,{R:function(){return s},m:function(){return a}});var r=n(66714),o=n(39887),i=n(28066),a=class extends o.F{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){this.#n=(0,i.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#r({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});let t="pending"===this.state.status,n=!this.#n.canStart();try{if(!t){this.#r({type:"pending",variables:e,isPaused:n}),await this.#t.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#r({type:"pending",context:t,variables:e,isPaused:n})}let r=await this.#n.start();return await this.#t.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#t.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#r({type:"success",data:r}),r}catch(t){try{throw await this.#t.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#t.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#r({type:"error",error:t})}}finally{this.#t.runNext(this)}}#r(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.V.batch(()=>{this.#e.forEach(t=>{t.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},28103:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(46760),o=n(77202),i=n(66714),a=n(52360),s=n(31843),c=class extends a.l{#o;#i=void 0;#a;#s;constructor(e,t){super(),this.#o=e,this.setOptions(t),this.bindMethods(),this.#c()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#o.defaultMutationOptions(e),(0,s.VS)(this.options,t)||this.#o.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.Ym)(t.mutationKey)!==(0,s.Ym)(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(e){this.#c(),this.#u(e)}getCurrentResult(){return this.#i}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#c(),this.#u()}mutate(e,t){return this.#s=t,this.#a?.removeObserver(this),this.#a=this.#o.getMutationCache().build(this.#o,this.options),this.#a.addObserver(this),this.#a.execute(e)}#c(){let e=this.#a?.state??(0,o.R)();this.#i={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#u(e){i.V.batch(()=>{if(this.#s&&this.hasListeners()){let t=this.#i.variables,n=this.#i.context;e?.type==="success"?(this.#s.onSuccess?.(e.data,t,n),this.#s.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#s.onError?.(e.error,t,n),this.#s.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#i)})})}},u=n(86655),l=n(24589);function d(e,t){let n=(0,u.NL)(t),[o]=r.useState(()=>new c(n,e));r.useEffect(()=>{o.setOptions(e)},[o,e]);let a=r.useSyncExternalStore(r.useCallback(e=>o.subscribe(i.V.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),s=r.useCallback((e,t)=>{o.mutate(e,t).catch(l.Z)},[o]);if(a.error&&(0,l.L)(o.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}},54444:function(e,t,n){"use strict";function r(e){let t=e.state.current,n=e.state.connections.get(t),r=n?.accounts,o=r?.[0],i=e.chains.find(e=>e.id===n?.chainId),a=e.state.status;switch(a){case"connected":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:a};case"reconnecting":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!!o,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:a};case"connecting":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:a};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:a}}}n.d(t,{D:function(){return r}})},81605:function(e,t,n){"use strict";n.d(t,{e:function(){return c}});var r=n(54622),o=n(45491),i=n(20320),a=n(67543),s=n(47609);async function c(e,t={}){let n;if(t.connector){let{connector:r}=t;if("reconnecting"===e.state.status&&!r.getAccounts&&!r.getChainId)throw new s.$S({connector:r});let[o,i]=await Promise.all([r.getAccounts(),r.getChainId()]);n={accounts:o,chainId:i,connector:r}}else n=e.state.connections.get(e.state.current);if(!n)throw new s.aH;let c=t.chainId??n.chainId,u=await n.connector.getChainId();if(u!==n.chainId)throw new s.XZ({connectionChainId:n.chainId,connectorChainId:u});let l=n.connector;if(l.getClient)return l.getClient({chainId:c});let d=(0,i.T)(t.account??n.accounts[0]);if(d.address=(0,a.K)(d.address),t.account&&!n.accounts.some(e=>e.toLowerCase()===d.address.toLowerCase()))throw new s.JK({address:d.address,connector:l});let f=e.chains.find(e=>e.id===c),p=await n.connector.getProvider({chainId:c});return(0,r.e)({account:d,chain:f,name:"Connector Client",transport:e=>(function(e,t={}){let{key:n="custom",methods:r,name:i="Custom Provider",retryDelay:a}=t;return({retryCount:s})=>(0,o.q)({key:n,methods:r,name:i,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:a,type:"custom"})})(p)({...e,retryCount:0})})}},69737:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(74396),o=n(16272);function i(e,t){let{chainId:n,...i}=t,a=e.getClient({chainId:n});return(0,o.s)(a,r.L,"readContract")(i)}},73279:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(94269),o=n(16272),i=n(81605);async function a(e,t){let n;let{abi:a,chainId:s,connector:c,...u}=t;n=t.account?t.account:(await (0,i.e)(e,{chainId:s,connector:c})).account;let l=e.getClient({chainId:s}),d=(0,o.s)(l,r.a,"simulateContract"),{result:f,request:p}=await d({...u,abi:a,account:n});return{chainId:l.chain.id,result:f,request:{__mode:"prepared",...p,chainId:s}}}},78325:function(e,t,n){"use strict";n.d(t,{e:function(){return c}});var r=n(28649),o=n(24770),i=n(74422),a=n(26395),s=n(16272);async function c(e,t){let{chainId:n,timeout:c=0,...u}=t,l=e.getClient({chainId:n}),d=(0,s.s)(l,o.e,"waitForTransactionReceipt"),f=await d({...u,timeout:c});if("reverted"===f.status){let e=(0,s.s)(l,i.f,"getTransaction"),t=await e({hash:f.transactionHash}),n=(0,s.s)(l,a.R,"call"),o=await n({...t,gasPrice:"eip1559"!==t.type?t.gasPrice:void 0,maxFeePerGas:"eip1559"===t.type?t.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===t.type?t.maxPriorityFeePerGas:void 0});throw Error(o?.data?(0,r.rR)(`0x${o.data.substring(138)}`):"unknown reason")}return{...f,chainId:l.chain.id}}},9211:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r=n(11191),o=n(54444);function i(e,t){let{onChange:n}=t;return e.subscribe(()=>(0,o.D)(e),n,{equalityFn(e,t){let{connector:n,...o}=e,{connector:i,...a}=t;return(0,r.v)(o,a)&&n?.id===i?.id&&n?.uid===i?.uid}})}},47609:function(e,t,n){"use strict";n.d(t,{$S:function(){return u},JK:function(){return s},X4:function(){return o},XZ:function(){return c},aH:function(){return a},wi:function(){return i}});var r=n(71996);class o extends r.G{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class i extends r.G{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class a extends r.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class s extends r.G{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class c extends r.G{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class u extends r.G{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uuid`. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}},63740:function(e,t,n){"use strict";n.d(t,{M:function(){return o},O:function(){return i}});var r=n(71996);class o extends r.G{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class i extends r.G{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}},11191:function(e,t,n){"use strict";n.d(t,{v:function(){return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){let r,o;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)&&Array.isArray(n)){if((r=t.length)!==n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();let i=Object.keys(t);if((r=i.length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){let r=i[o];if(r&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}}})},18773:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});class r extends Error{constructor(e,t={}){let n=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.0.6"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}}},30281:function(e,t,n){"use strict";n.d(t,{F:function(){return i},Hk:function(){return a},a_:function(){return o}});var r=n(18773);class o extends r.G{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class i extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class a extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}},96235:function(e,t,n){"use strict";n.d(t,{TT:function(){return i},_D:function(){return s},aZ:function(){return c},jO:function(){return o},zL:function(){return a}});var r=n(18773);class o extends r.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class i extends r.G{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class a extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class s extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class c extends r.G{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},57319:function(e,t,n){"use strict";n.d(t,{H6:function(){return a},Vs:function(){return i},wn:function(){return o}});var r=n(18773);class o extends r.G{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class i extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class a extends r.G{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}},29052:function(e,t,n){"use strict";n.d(t,{Dt:function(){return E},EC:function(){return A},N0:function(){return h},PI:function(){return w},QM:function(){return x},SA:function(){return a},Wg:function(){return C},_c:function(){return i},a4:function(){return b},c3:function(){return c},g1:function(){return m},l$:function(){return f},rh:function(){return d},wA:function(){return u}});var r=n(41923);let o=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function i(e){return o.test(e)}function a(e){return(0,r.Zw)(o,e)}let s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function c(e){return s.test(e)}function u(e){return(0,r.Zw)(s,e)}let l=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function d(e){return l.test(e)}function f(e){return(0,r.Zw)(l,e)}let p=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function h(e){return p.test(e)}function m(e){return(0,r.Zw)(p,e)}let y=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function b(e){return y.test(e)}function w(e){return(0,r.Zw)(y,e)}let g=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function A(e){return g.test(e)}let v=/^receive\(\) external payable$/;function x(e){return v.test(e)}let C=new Set(["indexed"]),E=new Set(["calldata","memory","storage"])},31991:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(41923),o=n(30281),i=n(96235),a=n(57319),s=n(18773);class c extends s.G{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}var u=n(29052),l=n(34468);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,u.N0)(n))continue;let o=(0,u.g1)(n);if(!o)throw new a.wn({signature:n,type:"struct"});let i=o.properties.split(";"),s=[],c=i.length;for(let e=0;e<c;e++){let t=i[e].trim();if(!t)continue;let n=(0,l.C$)(t,{type:"struct"});s.push(n)}if(!s.length)throw new a.H6({signature:n});t[o.name]=s}let s={},d=Object.entries(t),p=d.length;for(let e=0;e<p;e++){let[n,a]=d[e];s[n]=function e(t,n,a=new Set){let s=[],u=t.length;for(let d=0;d<u;d++){let u=t[d];if(r.cN.test(u.type))s.push(u);else{let t=(0,r.Zw)(f,u.type);if(!t?.type)throw new i.aZ({abiParameter:u});let{array:d,type:p}=t;if(p in n){if(a.has(p))throw new c({type:p});s.push({...u,type:`tuple${d??""}`,components:e(n[p]??[],n,new Set([...a,p]))})}else if((0,l.uN)(p))s.push(u);else throw new o.F({type:p})}}return s}(a,t)}return s}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},34468:function(e,t,n){"use strict";n.d(t,{uN:function(){return b},C$:function(){return m},cK:function(){return d}});var r=n(41923),o=n(30281),i=n(96235),a=n(57319),s=n(18773);class c extends s.G{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let u=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);var l=n(29052);function d(e,t={}){if((0,l.rh)(e)){let n=(0,l.l$)(e);if(!n)throw new a.wn({signature:e,type:"function"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{modifiers:l.Dt,structs:t,type:"function"}));let s=[];if(n.returns){let e=y(n.returns),r=e.length;for(let n=0;n<r;n++)s.push(m(e[n],{modifiers:l.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:o,outputs:s}}if((0,l.c3)(e)){let n=(0,l.wA)(e);if(!n)throw new a.wn({signature:e,type:"event"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{modifiers:l.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:o}}if((0,l._c)(e)){let n=(0,l.SA)(e);if(!n)throw new a.wn({signature:e,type:"error"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:o}}if((0,l.a4)(e)){let n=(0,l.PI)(e);if(!n)throw new a.wn({signature:e,type:"constructor"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:o}}if((0,l.EC)(e))return{type:"fallback"};if((0,l.QM)(e))return{type:"receive",stateMutability:"payable"};throw new a.Vs({signature:e})}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^u?int$/;function m(e,t){var n,a,s;let c;let d=(n=t?.type)?`${n}:${e}`:e;if(u.has(d))return u.get(d);let g=r.cN.test(e),A=(0,r.Zw)(g?p:f,e);if(!A)throw new i.jO({param:e});if(A.name&&("address"===(a=A.name)||"bool"===a||"function"===a||"string"===a||"tuple"===a||r.eL.test(a)||r.lh.test(a)||w.test(a)))throw new i.TT({param:e,name:A.name});let v=A.name?{name:A.name}:{},x="indexed"===A.modifier?{indexed:!0}:{},C=t?.structs??{},E={};if(g){c="tuple";let e=y(A.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(m(e[r],{structs:C}));E={components:t}}else if(A.type in C)c="tuple",E={components:C[A.type]};else if(h.test(A.type))c=`${A.type}256`;else if(c=A.type,t?.type!=="struct"&&!b(c))throw new o.Hk({type:c});if(A.modifier){if(!t?.modifiers?.has?.(A.modifier))throw new i.zL({param:e,type:t?.type,modifier:A.modifier});if(l.Dt.has(A.modifier)&&(s=c,!A.array&&"bytes"!==s&&"string"!==s&&"tuple"!==s))throw new i._D({param:e,type:t?.type,modifier:A.modifier})}let B={type:`${c}${A.array??""}`,...v,...x,...E};return u.set(d,B),B}function y(e,t=[],n="",r=0){let o=e.trim().length;for(let i=0;i<o;i++){let o=e[i],a=e.slice(i+1);switch(o){case",":return 0===r?y(a,[...t,n.trim()]):y(a,t,`${n}${o}`,r);case"(":return y(a,t,`${n}${o}`,r+1);case")":return y(a,t,`${n}${o}`,r-1);default:return y(a,t,`${n}${o}`,r)}}if(""===n)return t;if(0!==r)throw new c({current:n,depth:r});return t.push(n.trim()),t}function b(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.eL.test(e)||r.lh.test(e)}let w=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/},41923:function(e,t,n){"use strict";function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{Zw:function(){return r},cN:function(){return a},eL:function(){return o},lh:function(){return i}});let o=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,a=/^\(.+?\).*?$/},56066:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});class r extends Error{constructor(e,t={}){let n=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.0.8"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}}},19397:function(e,t,n){"use strict";n.d(t,{F:function(){return o},Hk:function(){return i}});var r=n(56066);class o extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class i extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}},51728:function(e,t,n){"use strict";n.d(t,{$r:function(){return o},TT:function(){return a},_D:function(){return c},aZ:function(){return u},jO:function(){return i},zL:function(){return s}});var r=n(56066);class o extends r.G{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class i extends r.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class a extends r.G{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class s extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class c extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class u extends r.G{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},61182:function(e,t,n){"use strict";n.d(t,{H6:function(){return a},Vs:function(){return i},wn:function(){return o}});var r=n(56066);class o extends r.G{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class i extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class a extends r.G{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}},62953:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var r=n(80335),o=n(5304),i=n(47468);function a(e){let t=(0,o.D)(e),n=[],a=e.length;for(let o=0;o<a;o++){let a=e[o];(0,r.N0)(a)||n.push((0,i.cK)(a,t))}return n}},80335:function(e,t,n){"use strict";n.d(t,{Dt:function(){return k},EC:function(){return A},LY:function(){return E},N0:function(){return h},PI:function(){return w},QM:function(){return C},SA:function(){return a},Wg:function(){return B},_c:function(){return i},a4:function(){return b},c3:function(){return c},g1:function(){return m},l$:function(){return f},qm:function(){return v},rh:function(){return d},wA:function(){return u}});var r=n(74503);let o=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function i(e){return o.test(e)}function a(e){return(0,r.Zw)(o,e)}let s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function c(e){return s.test(e)}function u(e){return(0,r.Zw)(s,e)}let l=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function d(e){return l.test(e)}function f(e){return(0,r.Zw)(l,e)}let p=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function h(e){return p.test(e)}function m(e){return(0,r.Zw)(p,e)}let y=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function b(e){return y.test(e)}function w(e){return(0,r.Zw)(y,e)}let g=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function A(e){return g.test(e)}function v(e){return(0,r.Zw)(g,e)}let x=/^receive\(\) external payable$/;function C(e){return x.test(e)}let E=new Set(["memory","indexed","storage","calldata"]),B=new Set(["indexed"]),k=new Set(["calldata","memory","storage"])},5304:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(74503),o=n(19397),i=n(51728),a=n(61182),s=n(56066);class c extends s.G{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}var u=n(80335),l=n(47468);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,u.N0)(n))continue;let o=(0,u.g1)(n);if(!o)throw new a.wn({signature:n,type:"struct"});let i=o.properties.split(";"),s=[],c=i.length;for(let e=0;e<c;e++){let t=i[e].trim();if(!t)continue;let n=(0,l.C$)(t,{type:"struct"});s.push(n)}if(!s.length)throw new a.H6({signature:n});t[o.name]=s}let s={},d=Object.entries(t),p=d.length;for(let e=0;e<p;e++){let[n,a]=d[e];s[n]=function e(t,n,a=new Set){let s=[],u=t.length;for(let d=0;d<u;d++){let u=t[d];if(r.cN.test(u.type))s.push(u);else{let t=(0,r.Zw)(f,u.type);if(!t?.type)throw new i.aZ({abiParameter:u});let{array:d,type:p}=t;if(p in n){if(a.has(p))throw new c({type:p});s.push({...u,type:`tuple${d??""}`,components:e(n[p]??[],n,new Set([...a,p]))})}else if((0,l.uN)(p))s.push(u);else throw new o.F({type:p})}}return s}(a,t)}return s}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},47468:function(e,t,n){"use strict";n.d(t,{uN:function(){return b},C$:function(){return m},cK:function(){return d},Q4:function(){return y}});var r=n(74503),o=n(19397),i=n(51728),a=n(61182),s=n(56066);class c extends s.G{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let u=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);var l=n(80335);function d(e,t={}){if((0,l.rh)(e))return function(e,t={}){let n=(0,l.l$)(e);if(!n)throw new a.wn({signature:e,type:"function"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{modifiers:l.Dt,structs:t,type:"function"}));let s=[];if(n.returns){let e=y(n.returns),r=e.length;for(let n=0;n<r;n++)s.push(m(e[n],{modifiers:l.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:o,outputs:s}}(e,t);if((0,l.c3)(e))return function(e,t={}){let n=(0,l.wA)(e);if(!n)throw new a.wn({signature:e,type:"event"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{modifiers:l.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:o}}(e,t);if((0,l._c)(e))return function(e,t={}){let n=(0,l.SA)(e);if(!n)throw new a.wn({signature:e,type:"error"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:o}}(e,t);if((0,l.a4)(e))return function(e,t={}){let n=(0,l.PI)(e);if(!n)throw new a.wn({signature:e,type:"constructor"});let r=y(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(m(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:o}}(e,t);if((0,l.EC)(e))return function(e){let t=(0,l.qm)(e);if(!t)throw new a.wn({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}(e);if((0,l.QM)(e))return{type:"receive",stateMutability:"payable"};throw new a.Vs({signature:e})}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^u?int$/;function m(e,t){var n,a;let s;let c=function(e,t,n){let r="";if(n)for(let e of Object.entries(n)){if(!e)continue;let t="";for(let n of e[1])t+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${e[0]}{${t}})`}return t?`${t}:${e}${r}`:e}(e,t?.type,t?.structs);if(u.has(c))return u.get(c);let d=r.cN.test(e),g=(0,r.Zw)(d?p:f,e);if(!g)throw new i.jO({param:e});if(g.name&&("address"===(n=g.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||r.eL.test(n)||r.lh.test(n)||w.test(n)))throw new i.TT({param:e,name:g.name});let A=g.name?{name:g.name}:{},v="indexed"===g.modifier?{indexed:!0}:{},x=t?.structs??{},C={};if(d){s="tuple";let e=y(g.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(m(e[r],{structs:x}));C={components:t}}else if(g.type in x)s="tuple",C={components:x[g.type]};else if(h.test(g.type))s=`${g.type}256`;else if(s=g.type,t?.type!=="struct"&&!b(s))throw new o.Hk({type:s});if(g.modifier){if(!t?.modifiers?.has?.(g.modifier))throw new i.zL({param:e,type:t?.type,modifier:g.modifier});if(l.Dt.has(g.modifier)&&(a=s,!g.array&&"bytes"!==a&&"string"!==a&&"tuple"!==a))throw new i._D({param:e,type:t?.type,modifier:g.modifier})}let E={type:`${s}${g.array??""}`,...A,...v,...C};return u.set(c,E),E}function y(e,t=[],n="",r=0){let o=e.trim().length;for(let i=0;i<o;i++){let o=e[i],a=e.slice(i+1);switch(o){case",":return 0===r?y(a,[...t,n.trim()]):y(a,t,`${n}${o}`,r);case"(":return y(a,t,`${n}${o}`,r+1);case")":return y(a,t,`${n}${o}`,r-1);default:return y(a,t,`${n}${o}`,r)}}if(""===n)return t;if(0!==r)throw new c({current:n,depth:r});return t.push(n.trim()),t}function b(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.eL.test(e)||r.lh.test(e)}let w=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/},20320:function(e,t,n){"use strict";function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{T:function(){return r}})},45984:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(67543),o=n(42330);function i(e){let t=(0,o.w)(`0x${e.substring(4)}`).substring(26);return(0,r.x)(`0x${t}`)}},19471:function(e,t,n){"use strict";n.d(t,{r:function(){return E}});var r=n(74396),o=n(17670);class i extends o.G{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}class a extends o.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class s extends o.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class c extends o.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}let u=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,l=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,d=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,f=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function p(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e})}}function h(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function m({uri:e,gatewayUrls:t}){let n=d.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};let r=h(t?.ipfs,"https://ipfs.io"),o=h(t?.arweave,"https://arweave.net"),i=e.match(u),{protocol:a,subpath:c,target:p,subtarget:m=""}=i?.groups||{},y="ipns:/"===a||"ipns/"===c,b="ipfs:/"===a||"ipfs/"===c||l.test(e);if(e.startsWith("http")&&!y&&!b){let n=e;return t?.arweave&&(n=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((y||b)&&p)return{uri:`${r}/${y?"ipns":"ipfs"}/${p}${m}`,isOnChain:!1,isEncoded:!1};if("ar:/"===a&&p)return{uri:`${o}/${p}${m||""}`,isOnChain:!1,isEncoded:!1};let w=e.replace(f,"");if(w.startsWith("<svg")&&(w=`data:image/svg+xml;base64,${btoa(w)}`),w.startsWith("data:")||w.startsWith("{"))return{uri:w,isOnChain:!0,isEncoded:!1};throw new s({uri:e})}function y(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new i({data:e});return e.image||e.image_url||e.image_data}async function b({gatewayUrls:e,uri:t}){try{let n=await fetch(t).then(e=>e.json());return await w({gatewayUrls:e,uri:y(n)})}catch{throw new s({uri:t})}}async function w({gatewayUrls:e,uri:t}){let{uri:n,isOnChain:r}=m({uri:t,gatewayUrls:e});if(r||await p(n))return n;throw new s({uri:t})}async function g(e,{nft:t}){if("erc721"===t.namespace)return(0,r.L)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,r.L)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new c({namespace:t.namespace})}async function A(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?v(e,{gatewayUrls:t,record:n}):w({uri:n,gatewayUrls:t})}async function v(e,{gatewayUrls:t,record:n}){let r=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[n,r,o]=t.split("/"),[i,s]=n.split(":"),[c,u]=r.split(":");if(!i||"eip155"!==i.toLowerCase())throw new a({reason:"Only EIP-155 supported"});if(!s)throw new a({reason:"Chain ID not found"});if(!u)throw new a({reason:"Contract address not found"});if(!o)throw new a({reason:"Token ID not found"});if(!c)throw new a({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s),namespace:c.toLowerCase(),contractAddress:u,tokenID:o}}(n),{uri:o,isOnChain:i,isEncoded:s}=m({uri:await g(e,{nft:r}),gatewayUrls:t});if(i&&(o.includes("data:application/json;base64,")||o.startsWith("{")))return w({uri:y(JSON.parse(s?atob(o.replace("data:application/json;base64,","")):o)),gatewayUrls:t});let c=r.tokenID;return"erc1155"===r.namespace&&(c=c.replace("0x","").padStart(64,"0")),b({gatewayUrls:t,uri:o.replace(/(?:0x)?{id}/,c)})}var x=n(13505),C=n(69881);async function E(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:o,gatewayUrls:i,strict:a,universalResolverAddress:s}){let c=await (0,x.s)(e,C.g,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:o,universalResolverAddress:s,gatewayUrls:i,strict:a});if(!c)return null;try{return await A(e,{record:c,gatewayUrls:r})}catch{return null}}},64313:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var r=n(87867),o=n(29745),i=n(80913),a=n(31030),s=n(49578),c=n(13505),u=n(74396);async function l(e,{address:t,blockNumber:n,blockTag:l,gatewayUrls:d,strict:f,universalResolverAddress:p}){let h=p;if(!h){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");h=(0,o.L)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}let m=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let o={address:h,abi:r.du,functionName:"reverse",args:[(0,i.NC)((0,s.T)(m))],blockNumber:n,blockTag:l},a=(0,c.s)(e,u.L,"readContract"),[f,p]=d?await a({...o,args:[...o.args,d]}):await a(o);if(t.toLowerCase()!==p.toLowerCase())return null;return f}catch(e){if(f)throw e;if((0,a.c)(e,"reverse"))return null;throw e}}},69881:function(e,t,n){"use strict";n.d(t,{g:function(){return p}});var r=n(87867),o=n(3518),i=n(11649),a=n(29745),s=n(80913),c=n(31030),u=n(58451),l=n(49578),d=n(13505),f=n(74396);async function p(e,{blockNumber:t,blockTag:n,name:p,key:h,gatewayUrls:m,strict:y,universalResolverAddress:b}){let w=b;if(!w){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");w=(0,a.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a={address:w,abi:r.k3,functionName:"resolve",args:[(0,s.NC)((0,l.T)(p)),(0,i.R)({abi:r.nZ,functionName:"text",args:[(0,u.V)(p),h]})],blockNumber:t,blockTag:n},c=(0,d.s)(e,f.L,"readContract"),y=m?await c({...a,args:[...a.args,m]}):await c(a);if("0x"===y[0])return null;let b=(0,o.k)({abi:r.nZ,functionName:"text",data:y[0]});return""===b?null:b}catch(e){if(y)throw e;if((0,c.c)(e,"resolve"))return null;throw e}}},26395:function(e,t,n){"use strict";n.d(t,{R:function(){return v}});var r=n(62953),o=n(20320),i=n(87867),a=n(4402),s=n(17670),c=n(19002),u=n(60796),l=n(3518),d=n(81956),f=n(11649),p=n(29745),h=n(80913),m=n(32810),y=n(77839),b=n(47734),w=n(42933),g=n(56177),A=n(88519);async function v(e,t){let{account:i=e.account,batch:l=!!e.batch?.multicall,blockNumber:f,blockTag:p="latest",accessList:w,blobs:v,code:C,data:E,factory:B,factoryData:k,gas:I,gasPrice:P,maxFeePerBlobGas:M,maxFeePerGas:N,maxPriorityFeePerGas:O,nonce:S,to:R,value:F,stateOverride:T,...D}=t,L=i?(0,o.T)(i):void 0;if(C&&(B||k))throw new s.G("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(C&&R)throw new s.G("Cannot provide both `code` & `to` as parameters.");let U=C&&E,Q=B&&k&&R&&E,q=U||Q,G=U?function(e){let{code:t,data:n}=e;return(0,d.w)({abi:(0,r.V)(["constructor(bytes, bytes)"]),bytecode:a.NO,args:[t,n]})}({code:C,data:E}):Q?function(e){let{data:t,factory:n,factoryData:o,to:i}=e;return(0,d.w)({abi:(0,r.V)(["constructor(address, bytes, address, bytes)"]),bytecode:a.pG,args:[i,t,n,o]})}({data:E,factory:B,factoryData:k,to:R}):E;try{(0,A.F)(t);let n=(f?(0,h.eC)(f):void 0)||p,r=(0,g.mF)(T),o=e.chain?.formatters?.transactionRequest?.format,i=(o||b.tG)({...(0,y.K)(D,{format:o}),from:L?.address,accessList:w,blobs:v,data:G,gas:I,gasPrice:P,maxFeePerBlobGas:M,maxFeePerGas:N,maxPriorityFeePerGas:O,nonce:S,to:q?void 0:R,value:F});if(l&&function({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!n&&!(Object.values(r).filter(e=>void 0!==e).length>0)}({request:i})&&!r)try{return await x(e,{...i,blockNumber:f,blockTag:p})}catch(e){if(!(e instanceof c.pZ)&&!(e instanceof c.mm))throw e}let a=await e.request({method:"eth_call",params:r?[i,n,r]:[i,n]});if("0x"===a)return{data:void 0};return{data:a}}catch(a){let r=function(e){if(!(e instanceof s.G))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(a),{offchainLookup:o,offchainLookupSignature:i}=await n.e(6367).then(n.bind(n,36367));if(!1!==e.ccipRead&&r?.slice(0,10)===i&&R)return{data:await o(e,{data:r,to:R})};if(q&&r?.slice(0,10)==="0x101bb98d")throw new u.Mo({factory:B});throw(0,m.P)(a,{...t,account:L,chain:e.chain})}}async function x(e,t){let{batchSize:n=1024,wait:r=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:o,blockTag:a="latest",data:s,multicallAddress:d,to:m}=t,y=d;if(!y){if(!e.chain)throw new c.pZ;y=(0,p.L)({blockNumber:o,chain:e.chain,contract:"multicall3"})}let b=(o?(0,h.eC)(o):void 0)||a,{schedule:g}=(0,w.S)({id:`${e.uid}.${b}`,wait:r,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*n,fn:async t=>{let n=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),r=(0,f.R)({abi:i.F8,args:[n],functionName:"aggregate3"}),o=await e.request({method:"eth_call",params:[{data:r,to:y},b]});return(0,l.k)({abi:i.F8,args:[n],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:A,success:v}]=await g({data:s,to:m});if(!v)throw new u.VQ({data:A});return"0x"===A?{data:void 0}:{data:A}}},12967:function(e,t,n){"use strict";n.d(t,{C:function(){return u},X:function(){return c}});var r=n(2449),o=n(13505),i=n(27320),a=n(45976),s=n(5144);async function c(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:c=e.chain,request:u,type:l="eip1559"}=t||{},d=await (async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:n,client:e,request:u}):c?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new r.Fz;let f=10**(d.toString().split(".")[1]?.length??0),p=e=>e*BigInt(Math.ceil(d*f))/BigInt(f),h=n||await (0,o.s)(e,a.Q,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas){let t=await c.fees.estimateFeesPerGas({block:n,client:e,multiply:p,request:u,type:l});if(null!==t)return t}if("eip1559"===l){if("bigint"!=typeof h.baseFeePerGas)throw new r.e5;let t="bigint"==typeof u?.maxPriorityFeePerGas?u.maxPriorityFeePerGas:await (0,i.h)(e,{block:h,chain:c,request:u}),n=p(h.baseFeePerGas);return{maxFeePerGas:u?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:u?.gasPrice??p(await (0,o.s)(e,s.o,"getGasPrice")({}))}}},66883:function(e,t,n){"use strict";n.d(t,{Q:function(){return g}});var r=n(20320),o=n(17670),i=n(2761),a=n(80913),s=n(1598),c=n(55246),u=n(82865);class l extends o.G{constructor(e,{account:t,docsPath:n,chain:r,data:o,gas:i,gasPrice:a,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:p,value:h}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,u.xr)({from:t?.address,to:p,value:void 0!==h&&`${(0,s.d)(h)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:i,gasPrice:void 0!==a&&`${(0,c.o)(a)} gwei`,maxFeePerGas:void 0!==l&&`${(0,c.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,c.o)(d)} gwei`,nonce:f})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var d=n(90309),f=n(89741),p=n(77839),h=n(47734),m=n(56177),y=n(88519),b=n(48823),w=n(94547);async function g(e,t){let{account:n=e.account}=t,s=n?(0,r.T)(n):void 0;try{let{accessList:n,authorizationList:r,blobs:u,blobVersionedHashes:l,blockNumber:d,blockTag:f,data:g,gas:A,gasPrice:v,maxFeePerBlobGas:x,maxFeePerGas:C,maxPriorityFeePerGas:E,nonce:B,value:k,stateOverride:I,...P}=await (0,b.ZE)(e,{...t,parameters:s?.type==="local"?void 0:["blobVersionedHashes"]}),M=(d?(0,a.eC)(d):void 0)||f,N=(0,m.mF)(I),O=await (async()=>P.to?P.to:r&&r.length>0?await (0,i.z)({authorization:r[0]}).catch(()=>{throw new o.G("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,y.F)(t);let S=e.chain?.formatters?.transactionRequest?.format,R=(S||h.tG)({...(0,p.K)(P,{format:S}),from:s?.address,accessList:n,authorizationList:r,blobs:u,blobVersionedHashes:l,data:g,gas:A,gasPrice:v,maxFeePerBlobGas:x,maxFeePerGas:C,maxPriorityFeePerGas:E,nonce:B,to:O,value:k});function c(t){let{block:n,request:r,rpcStateOverride:o}=t;return e.request({method:"eth_estimateGas",params:o?[r,n??"latest",o]:n?[r,n]:[r]})}let F=BigInt(await c({block:M,request:R,rpcStateOverride:N}));if(r){let t=await (0,w.s)(e,{address:R.from}),n=await Promise.all(r.map(async e=>{let{contractAddress:n}=e,r=await c({block:M,request:{authorizationList:void 0,data:g,from:s?.address,to:n,value:(0,a.eC)(t)},rpcStateOverride:N}).catch(()=>100000n);return 2n*BigInt(r)}));F+=n.reduce((e,t)=>e+t,0n)}return F}catch(n){throw function(e,{docsPath:t,...n}){return new l((()=>{let t=(0,f.k)(e,n);return t instanceof d.cj?e:t})(),{docsPath:t,...n})}(n,{...t,account:s,chain:e.chain})}}},27320:function(e,t,n){"use strict";n.d(t,{_:function(){return c},h:function(){return u}});var r=n(2449),o=n(28649),i=n(13505),a=n(45976),s=n(5144);async function c(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:c=e.chain,request:u}=t||{};try{let t=c?.fees?.maxPriorityFeePerGas??c?.fees?.defaultPriorityFee;if("function"==typeof t){let r=n||await (0,i.s)(e,a.Q,"getBlock")({}),o=await t({block:r,client:e,request:u});if(null===o)throw Error();return o}if(void 0!==t)return t;let r=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,o.y_)(r)}catch{let[t,o]=await Promise.all([n?Promise.resolve(n):(0,i.s)(e,a.Q,"getBlock")({}),(0,i.s)(e,s.o,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new r.e5;let c=o-t.baseFeePerGas;if(c<0n)return 0n;return c}}},94547:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var r=n(80913);async function o(e,{address:t,blockNumber:n,blockTag:o="latest"}){let i=n?(0,r.eC)(n):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,i||o]}))}},45976:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var r=n(24625),o=n(80913),i=n(55535);async function a(e,{blockHash:t,blockNumber:n,blockTag:a,includeTransactions:s}={}){let c=s??!1,u=void 0!==n?(0,o.eC)(n):void 0,l=null;if(!(l=t?await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[u||(a??"latest"),c]},{dedupe:!!u})))throw new r.f({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||i.Z)(l)}},99175:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(28649);async function o(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,r.ly)(t)}},5144:function(e,t,n){"use strict";async function r(e){return BigInt(await e.request({method:"eth_gasPrice"}))}n.d(t,{o:function(){return r}})},11238:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(28649),o=n(80913);async function i(e,{address:t,blockTag:n="latest",blockNumber:i}){let a=await e.request({method:"eth_getTransactionCount",params:[t,i?(0,o.eC)(i):n]},{dedupe:!!i});return(0,r.ly)(a)}},75456:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(82865),o=n(67328);async function i(e,{hash:t}){let n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new r.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||o.fA)(n)}},62550:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(87867),o=n(11681),i=n(17670),a=n(60796),s=n(3518),c=n(11649),u=n(29745),l=n(30003),d=n(13505),f=n(74396);async function p(e,t){let{allowFailure:n=!0,batchSize:p,blockNumber:h,blockTag:m,multicallAddress:y,stateOverride:b}=t,w=t.contracts,g=p??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),A=y;if(!A){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");A=(0,u.L)({blockNumber:h,chain:e.chain,contract:"multicall3"})}let v=[[]],x=0,C=0;for(let e=0;e<w.length;e++){let{abi:t,address:r,args:o,functionName:i}=w[e];try{let e=(0,c.R)({abi:t,args:o,functionName:i});C+=(e.length-2)/2,g>0&&C>g&&v[x].length>0&&(x++,C=(e.length-2)/2,v[x]=[]),v[x]=[...v[x],{allowFailure:!0,callData:e,target:r}]}catch(a){let e=(0,l.S)(a,{abi:t,address:r,args:o,docsPath:"/docs/contract/multicall",functionName:i});if(!n)throw e;v[x]=[...v[x],{allowFailure:!0,callData:"0x",target:r}]}}let E=await Promise.allSettled(v.map(t=>(0,d.s)(e,f.L,"readContract")({abi:r.F8,address:A,args:[t],blockNumber:h,blockTag:m,functionName:"aggregate3",stateOverride:b}))),B=[];for(let e=0;e<E.length;e++){let t=E[e];if("rejected"===t.status){if(!n)throw t.reason;for(let n=0;n<v[e].length;n++)B.push({status:"failure",error:t.reason,result:void 0});continue}let r=t.value;for(let t=0;t<r.length;t++){let{returnData:i,success:c}=r[t],{callData:u}=v[e][t],{abi:d,address:f,functionName:p,args:h}=w[B.length];try{if("0x"===u)throw new o.wb;if(!c)throw new a.VQ({data:i});let e=(0,s.k)({abi:d,args:h,data:i,functionName:p});B.push(n?{result:e,status:"success"}:e)}catch(t){let e=(0,l.S)(t,{abi:d,address:f,args:h,docsPath:"/docs/contract/multicall",functionName:p});if(!n)throw e;B.push({error:e,result:void 0,status:"failure"})}}}if(B.length!==w.length)throw new i.G("multicall results mismatch");return B}},74396:function(e,t,n){"use strict";n.d(t,{L:function(){return c}});var r=n(3518),o=n(11649),i=n(30003),a=n(13505),s=n(26395);async function c(e,t){let{abi:n,address:c,args:u,functionName:l,...d}=t,f=(0,o.R)({abi:n,args:u,functionName:l});try{let{data:t}=await (0,a.s)(e,s.R,"call")({...d,data:f,to:c});return(0,r.k)({abi:n,args:u,functionName:l,data:t||"0x"})}catch(e){throw(0,i.S)(e,{abi:n,address:c,args:u,docsPath:"/docs/contract/readContract",functionName:l})}}},94269:function(e,t,n){"use strict";n.d(t,{a:function(){return u}});var r=n(20320),o=n(3518),i=n(11649),a=n(30003),s=n(13505),c=n(26395);async function u(e,t){let{abi:n,address:u,args:l,dataSuffix:d,functionName:f,...p}=t,h=p.account?(0,r.T)(p.account):e.account,m=(0,i.R)({abi:n,args:l,functionName:f});try{let{data:r}=await (0,s.s)(e,c.R,"call")({batch:!1,data:`${m}${d?d.replace("0x",""):""}`,to:u,...p,account:h}),i=(0,o.k)({abi:n,args:l,functionName:f,data:r||"0x"}),a=n.filter(e=>"name"in e&&e.name===t.functionName);return{result:i,request:{abi:a,address:u,args:l,dataSuffix:d,functionName:f,...p,account:h}}}catch(e){throw(0,a.S)(e,{abi:n,address:u,args:l,docsPath:"/docs/contract/simulateContract",functionName:f,sender:h?.address})}}},24770:function(e,t,n){"use strict";n.d(t,{e:function(){return h}});var r=n(24625),o=n(82865),i=n(13505),a=n(57977),s=n(57707),c=n(6955),u=n(48920),l=n(45976),d=n(74422),f=n(75456),p=n(94972);async function h(e,{confirmations:t=1,hash:n,onReplaced:h,pollingInterval:m=e.pollingInterval,retryCount:y=6,retryDelay:b=({count:e})=>200*~~(1<<e),timeout:w=18e4}){let g,A,v;let x=(0,u.P)(["waitForTransactionReceipt",e.uid,n]),C=!1,{promise:E,resolve:B,reject:k}=(0,s.n)(),I=w?setTimeout(()=>k(new o.mc({hash:n})),w):void 0,P=(0,a.N7)(x,{onReplaced:h,resolve:B,reject:k},a=>{let s=(0,i.s)(e,p.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:m,async onBlockNumber(u){let p=e=>{clearTimeout(I),s(),e(),P()},h=u;if(!C)try{if(v){if(t>1&&(!v.blockNumber||h-v.blockNumber+1n<t))return;p(()=>a.resolve(v));return}if(g||(C=!0,await (0,c.J)(async()=>{(g=await (0,i.s)(e,d.f,"getTransaction")({hash:n})).blockNumber&&(h=g.blockNumber)},{delay:b,retryCount:y}),C=!1),v=await (0,i.s)(e,f.a,"getTransactionReceipt")({hash:n}),t>1&&(!v.blockNumber||h-v.blockNumber+1n<t))return;p(()=>a.resolve(v))}catch(n){if(n instanceof o.Bh||n instanceof o.Yb){if(!g){C=!1;return}try{A=g,C=!0;let n=await (0,c.J)(()=>(0,i.s)(e,l.Q,"getBlock")({blockNumber:h,includeTransactions:!0}),{delay:b,retryCount:y,shouldRetry:({error:e})=>e instanceof r.f});C=!1;let o=n.transactions.find(({from:e,nonce:t})=>e===A.from&&t===A.nonce);if(!o||(v=await (0,i.s)(e,f.a,"getTransactionReceipt")({hash:o.hash}),t>1&&(!v.blockNumber||h-v.blockNumber+1n<t)))return;let s="replaced";o.to===A.to&&o.value===A.value&&o.input===A.input?s="repriced":o.from===o.to&&0n===o.value&&(s="cancelled"),p(()=>{a.onReplaced?.({reason:s,replacedTransaction:A,transaction:o,transactionReceipt:v}),a.resolve(v)})}catch(e){p(()=>a.reject(e))}}else p(()=>a.reject(n))}}})});return E}},94972:function(e,t,n){"use strict";n.d(t,{q:function(){return u}});var r=n(28649),o=n(13505),i=n(57977),a=n(92657),s=n(48920),c=n(96842);function u(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:u,onError:l,poll:d,pollingInterval:f=e.pollingInterval}){let p;return(void 0!==d?d:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{let r=(0,s.P)(["watchBlockNumber",e.uid,t,n,f]);return(0,i.N7)(r,{onBlockNumber:u,onError:l},r=>(0,a.$)(async()=>{try{let t=await (0,o.s)(e,c.z,"getBlockNumber")({cacheTime:0});if(p){if(t===p)return;if(t-p>1&&n)for(let e=p+1n;e<t;e++)r.onBlockNumber(e,p),p=e}(!p||t>p)&&(r.onBlockNumber(t,p),p=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:f}))})():(()=>{let o=(0,s.P)(["watchBlockNumber",e.uid,t,n]);return(0,i.N7)(o,{onBlockNumber:u,onError:l},t=>{let n=!0,o=()=>n=!1;return(async()=>{try{let i=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:a}=await i.subscribe({params:["newHeads"],onData(e){if(!n)return;let o=(0,r.y_)(e.result?.number);t.onBlockNumber(o,p),p=o},onError(e){t.onError?.(e)}});o=a,n||o()}catch(e){l?.(e)}})(),()=>o()})})()}},8575:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(13505),o=n(57977),i=n(92657),a=n(48920),s=n(45976);function c(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:c=!1,onBlock:u,onError:l,includeTransactions:d,poll:f,pollingInterval:p=e.pollingInterval}){let h,m,y,b;let w=void 0!==f?f:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type),g=d??!1;return w?(()=>{let d=(0,a.P)(["watchBlocks",e.uid,t,n,c,g,p]);return(0,o.N7)(d,{onBlock:u,onError:l},o=>(0,i.$)(async()=>{try{let i=await (0,r.s)(e,s.Q,"getBlock")({blockTag:t,includeTransactions:g});if(i.number&&h?.number){if(i.number===h.number)return;if(i.number-h.number>1&&n)for(let t=h?.number+1n;t<i.number;t++){let n=await (0,r.s)(e,s.Q,"getBlock")({blockNumber:t,includeTransactions:g});o.onBlock(n,h),h=n}}(!h?.number||"pending"===t&&!i?.number||i.number&&i.number>h.number)&&(o.onBlock(i,h),h=i)}catch(e){o.onError?.(e)}},{emitOnBegin:c,interval:p}))})():(m=!0,y=!0,b=()=>m=!1,(async()=>{try{c&&(0,r.s)(e,s.Q,"getBlock")({blockTag:t,includeTransactions:g}).then(e=>{m&&y&&(u(e,void 0),y=!1)});let n=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await n.subscribe({params:["newHeads"],async onData(t){if(!m)return;let n=await (0,r.s)(e,s.Q,"getBlock")({blockNumber:t.blockNumber,includeTransactions:g}).catch(()=>{});m&&(u(n,h),y=!1,h=n)},onError(e){l?.(e)}});b=o,m||b()}catch(e){l?.(e)}})(),()=>b())}},48823:function(e,t,n){"use strict";n.d(t,{QZ:function(){return b},ZE:function(){return g}});var r=n(20320),o=n(12967),i=n(66883),a=n(45976),s=n(11238),c=n(2449),u=n(98492),l=n(91983),d=n(58482),f=n(34330),p=n(13505),h=n(88519),m=n(4643),y=n(99175);let b=["blobVersionedHashes","chainId","fees","gas","nonce","type"],w=new Map;async function g(e,t){let n,g;let{account:A=e.account,blobs:v,chain:x,gas:C,kzg:E,nonce:B,nonceManager:k,parameters:I=b,type:P}=t,M=A?(0,r.T)(A):A,N={...t,...M?{from:M?.address}:{}};async function O(){return n||(n=await (0,p.s)(e,a.Q,"getBlock")({blockTag:"latest"}))}async function S(){return g||(x?x.id:void 0!==t.chainId?t.chainId:g=await (0,p.s)(e,y.L,"getChainId")({}))}if((I.includes("blobVersionedHashes")||I.includes("sidecars"))&&v&&E){let e=(0,u.P)({blobs:v,kzg:E});if(I.includes("blobVersionedHashes")){let t=(0,d.C)({commitments:e,to:"hex"});N.blobVersionedHashes=t}if(I.includes("sidecars")){let t=(0,l.y)({blobs:v,commitments:e,kzg:E}),n=(0,f.j)({blobs:v,commitments:e,proofs:t,to:"hex"});N.sidecars=n}}if(I.includes("chainId")&&(N.chainId=await S()),(I.includes("fees")||I.includes("type"))&&void 0===P)try{N.type=(0,m.l)(N)}catch{let t=w.get(e.uid);if(void 0===t){let n=await O();t="bigint"==typeof n?.baseFeePerGas,w.set(e.uid,t)}N.type=t?"eip1559":"legacy"}if(I.includes("fees")){if("legacy"!==N.type&&"eip2930"!==N.type){if(void 0===N.maxFeePerGas||void 0===N.maxPriorityFeePerGas){let n=await O(),{maxFeePerGas:r,maxPriorityFeePerGas:i}=await (0,o.C)(e,{block:n,chain:x,request:N});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<i)throw new c.ld({maxPriorityFeePerGas:i});N.maxPriorityFeePerGas=i,N.maxFeePerGas=r}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new c.e5;if(void 0===t.gasPrice){let t=await O(),{gasPrice:n}=await (0,o.C)(e,{block:t,chain:x,request:N,type:"legacy"});N.gasPrice=n}}}if(I.includes("gas")&&void 0===C&&(N.gas=await (0,p.s)(e,i.Q,"estimateGas")({...N,account:M?{address:M.address,type:"json-rpc"}:M})),I.includes("nonce")&&void 0===B&&M){if(k){let t=await S();N.nonce=await k.consume({address:M.address,chainId:t,client:e})}else N.nonce=await (0,p.s)(e,s.K,"getTransactionCount")({address:M.address,blockTag:"pending"})}return(0,h.F)(N),delete N.parameters,N}},95678:function(e,t,n){"use strict";async function r(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}n.d(t,{p:function(){return r}})},25490:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});let r=(0,n(37517).a)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},54622:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(20320),o=n(95143);function i(e){let{batch:t,cacheTime:n=e.pollingInterval??4e3,ccipRead:i,key:a="base",name:s="Base Client",pollingInterval:c=4e3,type:u="base"}=e,l=e.chain,d=e.account?(0,r.T)(e.account):void 0,{config:f,request:p,value:h}=e.transport({chain:l,pollingInterval:c}),m={account:d,batch:t,cacheTime:n,ccipRead:i,chain:l,key:a,name:s,pollingInterval:c,request:p,transport:{...f,...h},type:u,uid:(0,o.h)()};return Object.assign(m,{extend:function e(t){return n=>{let r=n(t);for(let e in m)delete r[e];let o={...t,...r};return Object.assign(o,{extend:e(o)})}}(m)})}},45491:function(e,t,n){"use strict";n.d(t,{q:function(){return d}});var r=n(17670),o=n(14984),i=n(25884),a=n(80913);let s=new(n(95021)).k(8192);var c=n(6955),u=n(48920),l=n(95143);function d({key:e,methods:t,name:n,request:d,retryCount:f=3,retryDelay:p=150,timeout:h,type:m},y){return{config:{key:e,methods:t,name:n,request:d,retryCount:f,retryDelay:p,timeout:h,type:m},request:function(e,t={}){return async(n,l={})=>{let{dedupe:d=!1,methods:f,retryDelay:p=150,retryCount:h=3,uid:m}={...t,...l},{method:y}=n;if(f?.exclude?.includes(y)||f?.include&&!f.include.includes(y))throw new i.gS(Error("method not supported"),{method:y});let b=d?(0,a.$G)(`${m}.${(0,u.P)(n)}`):void 0;return function(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(s.get(n))return s.get(n);let r=e().finally(()=>s.delete(n));return s.set(n,r),r}(()=>(0,c.J)(async()=>{try{return await e(n)}catch(e){switch(e.code){case i.s7.code:throw new i.s7(e);case i.B.code:throw new i.B(e);case i.LX.code:throw new i.LX(e,{method:n.method});case i.nY.code:throw new i.nY(e);case i.XS.code:throw new i.XS(e);case i.yR.code:throw new i.yR(e);case i.Og.code:throw new i.Og(e);case i.pT.code:throw new i.pT(e);case i.KB.code:throw new i.KB(e);case i.gS.code:throw new i.gS(e,{method:n.method});case i.Pv.code:throw new i.Pv(e);case i.GD.code:throw new i.GD(e);case i.ab.code:throw new i.ab(e);case i.PE.code:throw new i.PE(e);case i.Ts.code:throw new i.Ts(e);case i.u5.code:throw new i.u5(e);case i.I0.code:throw new i.I0(e);case i.x3.code:throw new i.x3(e);case 5e3:throw new i.ab(e);default:if(e instanceof r.G)throw e;throw new i.ir(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof o.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e)}return~~(1<<e)*p},retryCount:h,shouldRetry:({error:e})=>"code"in e&&"number"==typeof e.code?-1===e.code||e.code===i.Pv.code||e.code===i.XS.code:!(e instanceof o.Gg)||!e.status||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status}),{enabled:d,id:b})}}(d,{methods:t,retryCount:f,retryDelay:p,uid:(0,l.h)()}),value:y}}},87867:function(e,t,n){"use strict";n.d(t,{$o:function(){return u},F8:function(){return r},X$:function(){return c},du:function(){return a},k3:function(){return i},nZ:function(){return s}});let r=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],o=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],i=[...o,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],a=[...o,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],s=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],u=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}]},4402:function(e,t,n){"use strict";n.d(t,{NO:function(){return r},ST:function(){return i},pG:function(){return o}});let r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",o="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",i="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},11696:function(e,t,n){"use strict";n.d(t,{$:function(){return r},Up:function(){return o},hZ:function(){return i}});let r={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},o={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},i={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},39701:function(e,t,n){"use strict";n.d(t,{Y:function(){return i},o:function(){return o}});var r=n(17670);class o extends r.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class i extends r.G{constructor({docsPath:e,metaMessages:t,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}},24625:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(17670);class o extends r.G{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}},60796:function(e,t,n){"use strict";n.d(t,{cg:function(){return b},uq:function(){return w},Lu:function(){return g},Dk:function(){return A},Mo:function(){return v},VQ:function(){return x}});var r=n(20320),o=n(11696),i=n(5654),a=n(97327),s=n(48920);function c({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((e,n)=>`${r&&e.name?`${e.name}: `:""}${"object"==typeof t[n]?(0,s.P)(t[n]):t[n]}`).join(", ")})`}var u=n(78137),l=n(1598),d=n(55246),f=n(11681),p=n(17670),h=n(14832),m=n(82865),y=n(48475);class b extends p.G{constructor(e,{account:t,docsPath:n,chain:o,data:i,gas:a,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:f,to:p,value:y,stateOverride:b}){let w=t?(0,r.T)(t):void 0,g=(0,m.xr)({from:w?.address,to:p,value:void 0!==y&&`${(0,l.d)(y)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==s&&`${(0,d.o)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,nonce:f});b&&(g+=`
|
|
7
7
|
${(0,h.Bj)(b)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",g].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class w extends p.G{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:o,functionName:i,sender:s}){let l=(0,u.mE)({abi:t,args:n,name:i}),d=l?c({abiItem:l,args:n,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,a.t)(l,{includeName:!0}):void 0,p=(0,m.xr)({address:r&&(0,y.C)(r),function:f,args:d&&"()"!==d&&`${[...Array(i?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:s});super(e.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],p&&"Contract Call:",p].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=i,this.sender=s}}class g extends p.G{constructor({abi:e,data:t,functionName:n,message:r}){let s,u,l,d,p;if(t&&"0x"!==t)try{let{abiItem:n,errorName:r,args:s}=p=(0,i.p)({abi:e,data:t});if("Error"===r)l=s[0];else if("Panic"===r){let[e]=s;l=o.$[e]}else{let e=n?(0,a.t)(n,{includeName:!0}):void 0,t=n&&s?c({abiItem:n,args:s,includeFunctionName:!1,includeName:!1}):void 0;u=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){s=e}else r&&(l=r);s instanceof f.yP&&(d=s.signature,u=[`Unable to decode signature "${d}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(l&&"execution reverted"!==l||d?[`The contract function "${n}" reverted with the following ${d?"signature":"reason"}:`,l||d].join("\n"):`The contract function "${n}" reverted.`,{cause:s,metaMessages:u,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=p,this.raw=t,this.reason=l,this.signature=d}}class A extends p.G{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class v extends p.G{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class x extends p.G{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},2449:function(e,t,n){"use strict";n.d(t,{Fz:function(){return i},e5:function(){return a},ld:function(){return s}});var r=n(55246),o=n(17670);class i extends o.G{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class a extends o.G{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class s extends o.G{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,r.o)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}},14984:function(e,t,n){"use strict";n.d(t,{Cc:function(){return u},Gg:function(){return a},W5:function(){return l},bs:function(){return c},c9:function(){return s}});var r=n(48920),o=n(17670),i=n(48475);class a extends o.G{constructor({body:e,cause:t,details:n,headers:o,status:a,url:s}){super("HTTP request failed.",{cause:t,details:n,metaMessages:[a&&`Status: ${a}`,`URL: ${(0,i.G)(s)}`,e&&`Request body: ${(0,r.P)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=o,this.status=a,this.url=s}}class s extends o.G{constructor({body:e,cause:t,details:n,url:o}){super("WebSocket request failed.",{cause:t,details:n,metaMessages:[`URL: ${(0,i.G)(o)}`,e&&`Request body: ${(0,r.P)(e)}`].filter(Boolean),name:"WebSocketRequestError"})}}class c extends o.G{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,i.G)(n)}`,`Request body: ${(0,r.P)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data}}class u extends o.G{constructor({url:e}={}){super("The socket has been closed.",{metaMessages:[e&&`URL: ${(0,i.G)(e)}`].filter(Boolean),name:"SocketClosedError"})}}class l extends o.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,i.G)(t)}`,`Request body: ${(0,r.P)(e)}`],name:"TimeoutError"})}}},25884:function(e,t,n){"use strict";n.d(t,{B:function(){return c},GD:function(){return w},I0:function(){return C},KB:function(){return m},LX:function(){return u},Og:function(){return p},PE:function(){return A},Pv:function(){return b},Ts:function(){return v},XS:function(){return d},ab:function(){return g},gS:function(){return y},ir:function(){return B},nY:function(){return l},pT:function(){return h},s7:function(){return s},u5:function(){return x},x3:function(){return E},yR:function(){return f}});var r=n(17670),o=n(14984);class i extends r.G{constructor(e,{code:t,docsPath:n,metaMessages:r,name:i,shortMessage:a}){super(a,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages,name:i||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=i||e.name,this.code=e instanceof o.bs?e.code:t??-1}}class a extends i{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class s extends i{constructor(e){super(e,{code:s.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class c extends i{constructor(e){super(e,{code:c.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class u extends i{constructor(e,{method:t}={}){super(e,{code:u.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends i{constructor(e){super(e,{code:l.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends i{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends i{constructor(e){super(e,{code:f.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class p extends i{constructor(e){super(e,{code:p.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class h extends i{constructor(e){super(e,{code:h.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends i{constructor(e){super(e,{code:m.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class y extends i{constructor(e,{method:t}={}){super(e,{code:y.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class b extends i{constructor(e){super(e,{code:b.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class w extends i{constructor(e){super(e,{code:w.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class g extends a{constructor(e){super(e,{code:g.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class A extends a{constructor(e){super(e,{code:A.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class v extends a{constructor(e,{method:t}={}){super(e,{code:v.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class x extends a{constructor(e){super(e,{code:x.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class C extends a{constructor(e){super(e,{code:C.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class E extends a{constructor(e){super(e,{code:E.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class B extends i{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},14832:function(e,t,n){"use strict";n.d(t,{Bj:function(){return s},Nc:function(){return o},Z8:function(){return i}});var r=n(17670);class o extends r.G{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class i extends r.G{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function a(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n}
|
|
8
8
|
`,"")}function s(e){return e.reduce((e,{address:t,...n})=>{let r=`${e} ${t}:
|
|
9
9
|
`;return n.nonce&&(r+=` nonce: ${n.nonce}
|
|
10
10
|
`),n.balance&&(r+=` balance: ${n.balance}
|
|
11
11
|
`),n.code&&(r+=` code: ${n.code}
|
|
12
12
|
`),n.state&&(r+=" state:\n"+a(n.state)),n.stateDiff&&(r+=" stateDiff:\n"+a(n.stateDiff)),r}," State Override:\n").slice(0,-1)}},48475:function(e,t,n){"use strict";n.d(t,{C:function(){return r},G:function(){return o}});let r=e=>e,o=e=>e},98302:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var r=n(34094),o=n(43153),i=n(80913),a=n(66881),s=n(42330);function c(e){let{chainId:t,contractAddress:n,nonce:c,to:u}=e,l=(0,s.w)((0,r.SM)(["0x05",(0,a.LV)([t?(0,i.eC)(t):"0x",n,c?(0,i.eC)(c):"0x"])]));return"bytes"===u?(0,o.nr)(l):l}},2761:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(31727),o=n(98302);async function i(e){let{authorization:t,signature:n}=e;return(0,r.R)({hash:(0,o.t)(t),signature:n??t})}},67582:function(e,t,n){"use strict";n.d(t,{r:function(){return m}});var r=n(11681),o=n(67543),i=n(27714),a=n(81567),s=n(65628),c=n(15690),u=n(2949),l=n(28649),d=n(80913);function f(e,t={}){void 0!==t.size&&(0,l.Yf)(e,{size:t.size});let n=(0,d.ci)(e,t);return(0,l.ly)(n,t)}var p=n(43153),h=n(49877);function m(e,t){let n="string"==typeof t?(0,p.nr)(t):t,m=(0,i.q)(n);if(0===(0,a.d)(n)&&e.length>0)throw new r.wb;if((0,a.d)(t)&&32>(0,a.d)(t))throw new r.xB({data:"string"==typeof t?t:(0,d.ci)(t),params:e,size:(0,a.d)(t)});let b=0,w=[];for(let t=0;t<e.length;++t){let n=e[t];m.setPosition(b);let[i,a]=function e(t,n,{staticPosition:i}){let a=(0,h.S)(n.type);if(a){let[r,o]=a;return function(t,n,{length:r,staticPosition:o}){if(!r){let r=o+f(t.readBytes(32)),i=r+32;t.setPosition(r);let a=f(t.readBytes(32)),s=y(n),c=0,u=[];for(let r=0;r<a;++r){t.setPosition(i+(s?32*r:c));let[o,a]=e(t,n,{staticPosition:i});c+=a,u.push(o)}return t.setPosition(o+32),[u,32]}if(y(n)){let i=o+f(t.readBytes(32)),a=[];for(let o=0;o<r;++o){t.setPosition(i+32*o);let[r]=e(t,n,{staticPosition:i});a.push(r)}return t.setPosition(o+32),[a,32]}let i=0,a=[];for(let s=0;s<r;++s){let[r,s]=e(t,n,{staticPosition:o+i});i+=s,a.push(r)}return[a,i]}(t,{...n,type:o},{length:r,staticPosition:i})}if("tuple"===n.type)return function(t,n,{staticPosition:r}){let o=0===n.components.length||n.components.some(({name:e})=>!e),i=o?[]:{},a=0;if(y(n)){let s=r+f(t.readBytes(32));for(let r=0;r<n.components.length;++r){let c=n.components[r];t.setPosition(s+a);let[u,l]=e(t,c,{staticPosition:s});a+=l,i[o?r:c?.name]=u}return t.setPosition(r+32),[i,32]}for(let s=0;s<n.components.length;++s){let c=n.components[s],[u,l]=e(t,c,{staticPosition:r});i[o?s:c?.name]=u,a+=l}return[i,a]}(t,n,{staticPosition:i});if("address"===n.type)return function(e){let t=e.readBytes(32);return[(0,o.x)((0,d.ci)((0,s.T4)(t,-20))),32]}(t);if("bool"===n.type)return[function(e,t={}){let n=e;if(void 0!==t.size&&((0,l.Yf)(n,{size:t.size}),n=(0,c.f)(n)),n.length>1||n[0]>1)throw new u.yr(n);return!!n[0]}(t.readBytes(32),{size:32}),32];if(n.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,o]=t.type.split("bytes");if(!o){let t=f(e.readBytes(32));e.setPosition(n+t);let r=f(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let o=e.readBytes(r);return e.setPosition(n+32),[(0,d.ci)(o),32]}return[(0,d.ci)(e.readBytes(Number.parseInt(o),32)),32]}(t,n,{staticPosition:i});if(n.type.startsWith("uint")||n.type.startsWith("int"))return function(e,t){let n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256"),o=e.readBytes(32);return[r>48?function(e,t={}){void 0!==t.size&&(0,l.Yf)(e,{size:t.size});let n=(0,d.ci)(e,t);return(0,l.y_)(n,t)}(o,{signed:n}):f(o,{signed:n}),32]}(t,n);if("string"===n.type)return function(e,{staticPosition:t}){let n=f(e.readBytes(32));e.setPosition(t+n);let r=f(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let o=e.readBytes(r,32),i=function(e,t={}){let n=e;return void 0!==t.size&&((0,l.Yf)(n,{size:t.size}),n=(0,c.f)(n,{dir:"right"})),new TextDecoder().decode(n)}((0,c.f)(o));return e.setPosition(t+32),[i,32]}(t,{staticPosition:i});throw new r.CI(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(m,n,{staticPosition:0});b+=a,w.push(i)}return w}function y(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(y);let n=(0,h.S)(e.type);return!!(n&&y({...e,type:n[1]}))}},5654:function(e,t,n){"use strict";n.d(t,{p:function(){return u}});var r=n(11696),o=n(11681),i=n(65628),a=n(40055),s=n(67582),c=n(97327);function u(e){let{abi:t,data:n}=e,u=(0,i.tP)(n,0,4);if("0x"===u)throw new o.wb;let l=[...t||[],r.Up,r.hZ].find(e=>"error"===e.type&&u===(0,a.C)((0,c.t)(e)));if(!l)throw new o.yP(u,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,s.r)(l.inputs,(0,i.tP)(n,4)):void 0,errorName:l.name}}},31182:function(e,t,n){"use strict";n.d(t,{F:function(){return l}});var r=n(11681),o=n(81567),i=n(37821),a=n(71015),s=n(67582),c=n(97327);let u="/docs/contract/decodeEventLog";function l(e){let{abi:t,data:n,strict:l,topics:d}=e,f=l??!0,[p,...h]=d;if(!p)throw new r.FM({docsPath:u});let m=1===t.length?t[0]:t.find(e=>"event"===e.type&&p===(0,i.n)((0,c.t)(e)));if(!(m&&"name"in m)||"event"!==m.type)throw new r.lC(p,{docsPath:u});let{name:y,inputs:b}=m,w=b?.some(e=>!("name"in e&&e.name)),g=w?[]:{},A=b.filter(e=>"indexed"in e&&e.indexed);for(let e=0;e<A.length;e++){let t=A[e],n=h[e];if(!n)throw new r.Gy({abiItem:m,param:t});g[w?e:t.name||e]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,s.r)([e],t)||[])[0]}({param:t,value:n})}let v=b.filter(e=>!("indexed"in e&&e.indexed));if(v.length>0){if(n&&"0x"!==n)try{let e=(0,s.r)(v,n);if(e){if(w)g=[...g,...e];else for(let t=0;t<v.length;t++)g[v[t].name]=e[t]}}catch(e){if(f){if(e instanceof r.xB||e instanceof a.lQ)throw new r.SM({abiItem:m,data:n,params:v,size:(0,o.d)(n)});throw e}}else if(f)throw new r.SM({abiItem:m,data:"0x",params:v,size:0})}return{eventName:y,args:Object.values(g).length>0?g:void 0}}},3518:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var r=n(11681),o=n(67582),i=n(78137);let a="/docs/contract/decodeFunctionResult";function s(e){let{abi:t,args:n,functionName:s,data:c}=e,u=t[0];if(s){let e=(0,i.mE)({abi:t,args:n,name:s});if(!e)throw new r.xL(s,{docsPath:a});u=e}if("function"!==u.type)throw new r.xL(void 0,{docsPath:a});if(!u.outputs)throw new r.MX(u.name,{docsPath:a});let l=(0,o.r)(u.outputs,c);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},49877:function(e,t,n){"use strict";n.d(t,{E:function(){return h},S:function(){return y}});var r=n(11681),o=n(41709),i=n(17670),a=n(2949),s=n(91462),c=n(34094),u=n(12910),l=n(81567),d=n(65628),f=n(80913),p=n(30902);function h(e,t){if(e.length!==t.length)throw new r.fs({expectedLength:e.length,givenLength:t.length});let n=m(function({params:e,values:t}){let n=[];for(let h=0;h<e.length;h++)n.push(function e({param:t,value:n}){let h=y(t.type);if(h){let[o,i]=h;return function(t,{length:n,param:o}){let i=null===n;if(!Array.isArray(t))throw new r.hn(t);if(!i&&t.length!==n)throw new r.gr({expectedLength:n,givenLength:t.length,type:`${o.type}[${n}]`});let a=!1,s=[];for(let n=0;n<t.length;n++){let r=e({param:o,value:t[n]});r.dynamic&&(a=!0),s.push(r)}if(i||a){let e=m(s);if(i){let t=(0,f.eC)(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?(0,c.zo)([t,e]):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,c.zo)(s.map(({encoded:e})=>e))}}(n,{length:o,param:{...t,type:i}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,o=[];for(let i=0;i<n.components.length;i++){let a=n.components[i],s=Array.isArray(t)?i:a.name,c=e({param:a,value:t[s]});o.push(c),c.dynamic&&(r=!0)}return{dynamic:r,encoded:r?m(o):(0,c.zo)(o.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,s.U)(e))throw new o.b({address:e});return{dynamic:!1,encoded:(0,u.gc)(e.toLowerCase())}}(n);if("bool"===t.type)return function(e){if("boolean"!=typeof e)throw new i.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,u.gc)((0,f.C4)(e))}}(n);if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,r="256"]=p.lh.exec(t.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new a.J5({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,f.eC)(e,{size:32,signed:t})}}(n,{signed:e,size:Number(r)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,n]=t.type.split("bytes"),o=(0,l.d)(e);if(!n){let t=e;return o%32!=0&&(t=(0,u.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,c.zo)([(0,u.gc)((0,f.eC)(o,{size:32})),t])}}if(o!==Number.parseInt(n))throw new r.M4({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:(0,u.gc)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){let t=(0,f.$G)(e),n=Math.ceil((0,l.d)(t)/32),r=[];for(let e=0;e<n;e++)r.push((0,u.gc)((0,d.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,c.zo)([(0,u.gc)((0,f.eC)((0,l.d)(t),{size:32})),...r])}}(n);throw new r.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[h],value:t[h]}));return n}({params:e,values:t}));return 0===n.length?"0x":n}function m(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:o}=e[n];r?t+=32:t+=(0,l.d)(o)}let n=[],r=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:s}=e[i];a?(n.push((0,f.eC)(t+o,{size:32})),r.push(s),o+=(0,l.d)(s)):n.push(s)}return(0,c.zo)([...n,...r])}function y(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},81956:function(e,t,n){"use strict";n.d(t,{w:function(){return s}});var r=n(11681),o=n(34094),i=n(49877);let a="/docs/contract/encodeDeployData";function s(e){let{abi:t,args:n,bytecode:s}=e;if(!n||0===n.length)return s;let c=t.find(e=>"type"in e&&"constructor"===e.type);if(!c)throw new r.fM({docsPath:a});if(!("inputs"in c)||!c.inputs||0===c.inputs.length)throw new r.cO({docsPath:a});let u=(0,i.E)(c.inputs,n);return(0,o.SM)([s,u])}},11649:function(e,t,n){"use strict";n.d(t,{R:function(){return l}});var r=n(34094),o=n(49877),i=n(11681),a=n(40055),s=n(97327),c=n(78137);let u="/docs/contract/encodeFunctionData";function l(e){let{args:t}=e,{abi:n,functionName:l}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:n,functionName:r}=e,o=t[0];if(r){let e=(0,c.mE)({abi:t,args:n,name:r});if(!e)throw new i.xL(r,{docsPath:u});o=e}if("function"!==o.type)throw new i.xL(void 0,{docsPath:u});return{abi:[o],functionName:(0,a.C)((0,s.t)(o))}}(e),d=n[0],f="inputs"in d&&d.inputs?(0,o.E)(d.inputs,t??[]):void 0;return(0,r.SM)([l,f??"0x"])}},78137:function(e,t,n){"use strict";n.d(t,{mE:function(){return c}});var r=n(11681),o=n(658),i=n(91462),a=n(37821),s=n(40055);function c(e){let t;let{abi:n,args:c=[],name:u}=e,l=(0,o.v)(u,{strict:!1}),d=n.filter(e=>l?"function"===e.type?(0,s.C)(e)===u:"event"===e.type&&(0,a.n)(e)===u:"name"in e&&e.name===u);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if("inputs"in e){if(!c||0===c.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===c.length&&c.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,o=n.type;switch(o){case"address":return(0,i.U)(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===o&&"components"in n)return Object.values(n.components).every((n,r)=>e(Object.values(t)[r],n));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(o))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:o.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(t&&"inputs"in t&&t.inputs){let n=function e(t,n,r){for(let o in t){let a=t[o],s=n[o];if("tuple"===a.type&&"tuple"===s.type&&"components"in a&&"components"in s)return e(a.components,s.components,r[o]);let c=[a.type,s.type];if(c.includes("address")&&c.includes("bytes20")||(c.includes("address")&&c.includes("string")||c.includes("address")&&c.includes("bytes"))&&(0,i.U)(r[o],{strict:!1}))return c}}(e.inputs,t.inputs,c);if(n)throw new r.S4({abiItem:e,type:n[0]},{abiItem:t,type:n[1]})}t=e}}return t||d[0]}}},18492:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var r=n(11681),o=n(39278),i=n(43153),a=n(42330),s=n(37821),c=n(31182);function u(e){let{abi:t,args:n,logs:u,strict:l=!0}=e,d=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return u.map(e=>{try{let r=t.find(t=>"event"===t.type&&e.topics[0]===(0,s.n)(t));if(!r)return null;let u=(0,c.F)({...e,abi:[r],strict:l});if(d&&!d.includes(u.eventName)||!function(e){let{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function s(e,t,n){try{if("address"===e.type)return(0,o.E)(t,n);if("string"===e.type||"bytes"===e.type)return(0,a.w)((0,i.O0)(t))===n;return t===n}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((e,r)=>{if(null==e)return!0;let o=n[r];return!!o&&(Array.isArray(e)?e:[e]).some(e=>s(o,e,t[r]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof r||Array.isArray(r))&&Object.entries(r).every(([e,r])=>{if(null==r)return!0;let o=n.find(t=>t.name===e);return!!o&&(Array.isArray(r)?r:[r]).some(n=>s(o,n,t[e]))})}({args:u.args,inputs:r.inputs,matchArgs:n}))return null;return{...u,...e}}catch(o){let t,n;if(o instanceof r.lC)return null;if(o instanceof r.SM||o instanceof r.Gy){if(l)return null;t=o.abiItem.name,n=o.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return{...e,args:n?[]:{},eventName:t}}}).filter(Boolean)}},39278:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});var r=n(41709),o=n(91462);function i(e,t){if(!(0,o.U)(e,{strict:!1}))throw new r.b({address:e});if(!(0,o.U)(t,{strict:!1}))throw new r.b({address:t});return e.toLowerCase()===t.toLowerCase()}},29745:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(19002);function o({blockNumber:e,chain:t,contract:n}){let o=t?.contracts?.[n];if(!o)throw new r.mm({chain:t,contract:{name:n}});if(e&&o.blockCreated&&o.blockCreated>e)throw new r.mm({blockNumber:e,chain:t,contract:{name:n,blockCreated:o.blockCreated}});return o.address}},4039:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(658);function o(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,r.v)(t)?t:null}},31030:function(e,t,n){"use strict";n.d(t,{c:function(){return a}});var r=n(11696),o=n(17670),i=n(60796);function a(e,t){if(!(e instanceof o.G))return!1;let n=e.walk(e=>e instanceof i.Lu);return n instanceof i.Lu&&(!!(n.data?.errorName==="ResolverNotFound"||n.data?.errorName==="ResolverWildcardNotSupported"||n.data?.errorName==="ResolverNotContract"||n.data?.errorName==="ResolverError"||n.data?.errorName==="HttpError"||n.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&n.reason===r.$[50])}},58451:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var r=n(34094),o=n(43153),i=n(80913),a=n(42330),s=n(4039);function c(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,i.ci)(t);let n=e.split(".");for(let e=n.length-1;e>=0;e-=1){let i=(0,s.i)(n[e]),c=i?(0,o.O0)(i):(0,a.w)((0,o.qX)(n[e]),"bytes");t=(0,a.w)((0,r.zo)([t,c]),"bytes")}return(0,i.ci)(t)}},99580:function(e,t,n){"use strict";let r,o,i,a,s,c,u,l,d,f,p,h,m,y,b;n.d(t,{F:function(){return H}});let w=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function g(e){var t;let n;return t=function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),o=1,i=[0,1];for(let e=1;e<r;e++)i.push(o+=n());let a=n(),s=t;t+=a;let c=0,u=0;function l(){return 0==c&&(u=u<<8|e[t++],c=8),u>>--c&1}let d=2147483648-1,f=0;for(let e=0;e<31;e++)f=f<<1|l();let p=[],h=0,m=2147483648;for(;;){let e=Math.floor(((f-h+1)*o-1)/m),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e<i[r]?n=r:t=r}if(0==t)break;p.push(t);let a=h+Math.floor(m*i[t]/o),s=h+Math.floor(m*i[t+1]/o)-1;for(;((a^s)&1073741824)==0;)f=f<<1&d|l(),a=a<<1&d,s=s<<1&d|1;for(;a&~s&536870912;)f=1073741824&f|f<<1&d>>>1|l(),a=a<<1^1073741824,s=(1073741824^s)<<1|1073741825;h=a,m=1+s-a}let y=r-4;return p.map(t=>{switch(t-y){case 3:return y+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return y+256+(e[s++]<<8|e[s++]);case 1:return y+e[s++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,n)=>t[e.charCodeAt(0)]=n);let n=e.length,r=new Uint8Array(6*n>>3);for(let o=0,i=0,a=0,s=0;o<n;o++)s=s<<6|t[e.charCodeAt(o)],(a+=6)>=8&&(r[i++]=s>>(a-=8));return r}(e)),n=0,()=>t[n++]}function A(e,t=0){let n=[];for(;;){let r=e(),o=e();if(!o)break;t+=r;for(let e=0;e<o;e++)n.push(t+e);t+=o+1}return n}function v(e){return C(()=>{let t=A(e);if(t.length)return t})}function x(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(function(e,t){let n=1+t(),r=t(),o=C(t);return E(o.length,1+e,t).flatMap((e,t)=>{let[i,...a]=e;return Array(o[t]).fill().map((e,t)=>{let o=t*r;return[i+t*n,a.map(e=>e+o)]})})}(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(E(1+e(),1+n,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function C(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function E(e,t,n){let r=Array(e).fill().map(()=>[]);for(let o=0;o<t;o++)(function(e,t){let n=Array(e);for(let o=0,i=0;o<e;o++){var r;n[o]=i+=1&(r=t())?~r>>1:r>>1}return n})(e,n).forEach((e,t)=>r[t].push(e));return r}function B(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function k(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let n=[];for(let r=0;r<t;)n.push(String.fromCodePoint(...e.slice(r,r+=4096)));return n.join("")}function I(e,t){let n=e.length,r=n-t.length;for(let o=0;0==r&&o<n;o++)r=e[o]-t[o];return r}function P(e){return e>>24&255}function M(e){return 16777215&e}function N(e){return e>=44032&&e<55204}function O(e){r||function(){let e=g("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");for(let[t,n]of(r=new Map(v(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),o=new Set(A(e)),i=new Map,a=new Map,x(e))){if(!o.has(t)&&2==n.length){let[e,r]=n,o=a.get(e);o||(o=new Map,a.set(e,o)),o.set(r,t)}i.set(t,n.reverse())}}();let t=[],n=[],s=!1;function c(e){let n=r.get(e);n&&(s=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(N(r)){let e=r-44032,t=e/588|0,n=e%588/28|0,o=e%28;c(4352+t),c(4449+n),o>0&&c(4519+o)}else{let e=i.get(r);e?n.push(...e):c(r)}if(!n.length)break;r=n.pop()}if(s&&t.length>1){let e=P(t[0]);for(let n=1;n<t.length;n++){let r=P(t[n]);if(0==r||e<=r){e=r;continue}let o=n-1;for(;;){let n=t[o+1];if(t[o+1]=t[o],t[o]=n,!o||(e=P(t[--o]))<=r)break}e=P(t[n])}}return t}function S(e){return function(e){let t=[],n=[],r=-1,o=0;for(let i of e){let e=P(i),s=M(i);if(-1==r)0==e?r=s:t.push(s);else if(o>0&&o>=e)0==e?(t.push(r,...n),n.length=0,r=s):n.push(s),o=e;else{let i=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;if(N(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let n=a.get(e);return n&&(n=n.get(t))?n:-1}}(r,s);i>=0?r=i:0==o&&0==e?(t.push(r),r=s):(n.push(s),o=e)}}return r>=0&&t.push(r,...n),t}(O(e))}let R=e=>Array.from(e);function F(e,t){return e.P.has(t)||e.Q.has(t)}class T extends Array{get is_emoji(){return!0}}function D(){let e,t;if(s)return;let n=g("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"),r=()=>A(n),o=()=>new Set(r()),i=(e,t)=>t.forEach(t=>e.add(t));s=new Map(x(n)),c=o(),u=r(),l=new Set(r().map(e=>u[e])),u=new Set(u),d=o(),o();let a=v(n),w=n(),E=()=>{let e=new Set;return r().forEach(t=>i(e,a[t])),i(e,r()),e};f=C(e=>{let t=C(n).map(e=>e+96);if(t.length){let r=e>=w;return t[0]-=32,t=k(t),r&&(t=`Restricted[${t}]`),{N:t,P:E(),Q:E(),M:!n(),R:r}}}),p=o(),h=new Map;let B=r().concat(R(p)).sort((e,t)=>e-t);for(let{V:e,M:t}of(B.forEach((e,t)=>{let r=n(),o=B[t]=r?B[t-r]:{V:[],M:new Map};o.V.push(e),p.has(e)||h.set(e,o)}),new Set(h.values()))){let n=[];for(let t of e){let e=f.filter(e=>F(e,t)),r=n.find(({G:t})=>e.some(e=>t.has(e)));r||(r={G:new Set,V:[]},n.push(r)),r.V.push(t),i(r.G,e)}let r=n.flatMap(e=>R(e.G));for(let{G:e,V:o}of n){let n=new Set(r.filter(t=>!e.has(t)));for(let e of o)t.set(e,n)}}m=new Set;let P=new Set,N=e=>m.has(e)?P.add(e):m.add(e);for(let e of f){for(let t of e.P)N(t);for(let t of e.Q)N(t)}for(let e of m)h.has(e)||P.has(e)||h.set(e,1);for(let r of(i(m,O(m).map(M)),y=(e=[],t=A(n),function t({S:n,B:r},o,i){if(!(4&n)||i!==o[o.length-1])for(let a of(2&n&&(i=o[o.length-1]),1&n&&e.push(o),r))for(let e of a.Q)t(a,[...o,e],i)}(function e(r){return{S:n(),B:C(()=>{let r=A(n).map(e=>t[e]);if(r.length)return e(r)}),Q:r}}([]),[]),e).map(e=>T.from(e)).sort(I),b=new Map,y)){let e=[b];for(let t of r){let n=e.map(e=>{let n=e.get(t);return n||(n=new Map,e.set(t,n)),n});65039===t?e.push(...n):e=n}for(let t of e)t.V=r}}function L(e){return(q(e)?"":`${U(Q([e]))} `)+B(e)}function U(e){return`"${e}"\u200E`}function Q(e,t=1/0,n=B){var r;let o=[];r=e[0],D(),u.has(r)&&o.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let i=0,a=e.length;for(let t=0;t<a;t++){let r=e[t];q(r)&&(o.push(k(e.slice(i,t))),o.push(n(r)),i=t+1)}return o.push(k(e.slice(i,a))),o.join("")}function q(e){return D(),d.has(e)}function G(e){return Error(`disallowed character: ${L(e)}`)}function z(e,t){let n=L(t),r=f.find(e=>e.P.has(t));return r&&(n=`${r.N} ${n}`),Error(`illegal mixture: ${e.N} + ${n}`)}function W(e){return Error(`illegal placement: ${e}`)}function j(e){return e.filter(e=>65039!=e)}function H(e){var t;return(t=function(e,t,n){if(!e)return[];D();let r=0;return e.split(".").map(e=>{let o=function(e){let t=[];for(let n=0,r=e.length;n<r;){let r=e.codePointAt(n);n+=r<65536?1:2,t.push(r)}return t}(e),i={input:o,offset:r};r+=o.length+1;try{let e,r=i.tokens=function(e,t,n){let r=[],o=[];for(e=e.slice().reverse();e.length;){let i=function(e,t){let n,r=b,o=e.length;for(;o&&(r=r.get(e[--o]));){let{V:t}=r;t&&(n=t,e.length=o)}return n}(e);if(i)o.length&&(r.push(t(o)),o=[]),r.push(n(i));else{let t=e.pop();if(m.has(t))o.push(t);else{let e=s.get(t);if(e)o.push(...e);else if(!c.has(t))throw G(t)}}}return o.length&&r.push(t(o)),r}(o,t,n),a=r.length;if(!a)throw Error("empty label");let d=i.output=r.flat();if(!function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}(d),!(i.emoji=a>1||r[0].is_emoji)&&d.every(e=>e<128))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error(`invalid label extension: "${k(e.slice(0,4))}"`)}(d),e="ASCII";else{let t=r.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(u.has(d[0]))throw W("leading combining mark");for(let e=1;e<a;e++){let t=r[e];if(!t.is_emoji&&u.has(t[0]))throw W(`emoji + combining mark: "${k(r[e-1])} + ${Q([t[0]])}"`)}!function(e){let t=e[0],n=w.get(t);if(n)throw W(`leading ${n}`);let r=e.length,o=-1;for(let i=1;i<r;i++){t=e[i];let r=w.get(t);if(r){if(o==i)throw W(`${n} + ${r}`);o=i+1,n=r}}if(o==r)throw W(`trailing ${n}`)}(d);let n=R(new Set(t)),[o]=function(e){let t=f;for(let n of e){let e=t.filter(e=>F(e,n));if(!e.length){if(f.some(e=>F(e,n)))throw z(t[0],n);throw G(n)}if(t=e,1==e.length)break}return t}(n);(function(e,t){for(let n of t)if(!F(e,n))throw z(e,n);if(e.M){let e=O(t).map(M);for(let t=1,n=e.length;t<n;t++)if(l.has(e[t])){let r=t+1;for(let o;r<n&&l.has(o=e[r]);r++)for(let n=t;n<r;n++)if(e[n]==o)throw Error(`duplicate non-spacing marks: ${L(o)}`);if(r-t>4)throw Error(`excessive non-spacing marks: ${U(Q(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}})(o,t),function(e,t){let n;let r=[];for(let e of t){let t=h.get(e);if(1===t)return;if(t){let r=t.M.get(e);if(!(n=n?n.filter(e=>r.has(e)):R(r)).length)return}else r.push(e)}if(n){for(let t of n)if(r.every(e=>F(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(o,n),e=o.N}else e="Emoji"}i.type=e}catch(e){i.error=e}return i})}(e,S,j)).map(({input:e,error:n,output:r})=>{if(n){let r=n.message;throw Error(1==t.length?r:`Invalid label ${U(Q(e,63))}: ${r}`)}return k(r)}).join(".")}},49578:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(43153),o=n(80913),i=n(42330),a=n(4039);function s(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let n=new Uint8Array((0,r.qX)(t).byteLength+2),s=0,c=t.split(".");for(let e=0;e<c.length;e++){let t=(0,r.qX)(c[e]);if(t.byteLength>255){var u;t=(0,r.qX)((u=function(e){let t=new Uint8Array(32).fill(0);return e?(0,a.i)(e)||(0,i.w)((0,r.qX)(e)):(0,o.ci)(t)}(c[e]),`[${u.slice(2)}]`))}n[s]=t.length,n.set(t,s+1),s+=t.length+1}return n.byteLength!==s+1?n.slice(0,s+1):n}},32810:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r=n(60796),o=n(90309),i=n(89741);function a(e,{docsPath:t,...n}){let a=(()=>{let t=(0,i.k)(e,n);return t instanceof o.cj?e:t})();return new r.cg(a,{docsPath:t,...n})}},30003:function(e,t,n){"use strict";n.d(t,{S:function(){return c}});var r=n(11681),o=n(17670),i=n(60796),a=n(14984),s=n(25884);function c(e,{abi:t,address:n,args:c,docsPath:u,functionName:l,sender:d}){let f=e instanceof i.VQ?e:e instanceof o.G?e.walk(e=>"data"in e)||e.walk():{},{code:p,data:h,details:m,message:y,shortMessage:b}=f,w=e instanceof r.wb?new i.Dk({functionName:l}):[3,s.XS.code].includes(p)&&(h||m||y||b)?new i.Lu({abi:t,data:"object"==typeof h?h.data:h,functionName:l,message:f instanceof a.bs?m:b??y}):e;return new i.uq(w,{abi:t,args:c,contractAddress:n,docsPath:u,functionName:l,sender:d})}},89741:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(17670),o=n(90309);function i(e,t){let n=(e.details||"").toLowerCase(),i=e instanceof r.G?e.walk(e=>e?.code===o.M_.code):e;return i instanceof r.G?new o.M_({cause:e,message:i.details}):o.M_.nodeMessage.test(n)?new o.M_({cause:e,message:e.details}):o.Hh.nodeMessage.test(n)?new o.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas}):o.G$.nodeMessage.test(n)?new o.G$({cause:e,maxFeePerGas:t?.maxFeePerGas}):o.ZI.nodeMessage.test(n)?new o.ZI({cause:e,nonce:t?.nonce}):o.vU.nodeMessage.test(n)?new o.vU({cause:e,nonce:t?.nonce}):o.se.nodeMessage.test(n)?new o.se({cause:e,nonce:t?.nonce}):o.C_.nodeMessage.test(n)?new o.C_({cause:e}):o.WF.nodeMessage.test(n)?new o.WF({cause:e,gas:t?.gas}):o.dR.nodeMessage.test(n)?new o.dR({cause:e,gas:t?.gas}):o.pZ.nodeMessage.test(n)?new o.pZ({cause:e}):o.cs.nodeMessage.test(n)?new o.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new o.cj({cause:e})}},77839:function(e,t,n){"use strict";function r(e,{format:t}){if(!t)return{};let n={};return!function t(r){for(let o of Object.keys(r))o in e&&(n[o]=e[o]),r[o]&&"object"==typeof r[o]&&!Array.isArray(r[o])&&t(r[o])}(t(e||{})),n}n.d(t,{K:function(){return r}})},47734:function(e,t,n){"use strict";n.d(t,{tG:function(){return i}});var r=n(80913);let o={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function i(e){let t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.contractAddress,r:e.r,s:e.s,chainId:(0,r.eC)(e.chainId),nonce:(0,r.eC)(e.nonce),...void 0!==e.yParity?{yParity:(0,r.eC)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,r.eC)(e.v)}:{}}))),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>(0,r.ci)(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,r.eC)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,r.eC)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,r.eC)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,r.eC)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,r.eC)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,r.eC)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=o[e.type]),void 0!==e.value&&(t.value=(0,r.eC)(e.value)),t}},37821:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});let r=n(80275).r},57977:function(e,t,n){"use strict";n.d(t,{N7:function(){return a}});let r=new Map,o=new Map,i=0;function a(e,t,n){let a=++i,s=()=>r.get(e)||[],c=()=>{let t=s();r.set(e,t.filter(e=>e.id!==a))},u=()=>{let t=s();if(!t.some(e=>e.id===a))return;let n=o.get(e);1===t.length&&n&&n(),c()},l=s();if(r.set(e,[...l,{id:a,fns:t}]),l&&l.length>0)return u;let d={};for(let e in t)d[e]=(...t)=>{let n=s();if(0!==n.length)for(let r of n)r.fns[e]?.(...t)};let f=n(d);return"function"==typeof f&&o.set(e,f),u}},92657:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(5133);function o(e,{emitOnBegin:t,initialWaitTime:n,interval:o}){let i=!0,a=()=>i=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));let c=await n?.(s)??o;await (0,r.D)(c);let u=async()=>{i&&(await e({unpoll:a}),await (0,r.D)(o),u())};u()})(),a}},42933:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(57707);let o=new Map;function i({fn:e,id:t,shouldSplitBatch:n,wait:i=0,sort:a}){let s=async()=>{let t=l();c();let n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{a&&Array.isArray(e)&&e.sort(a);for(let n=0;n<t.length;n++){let{resolve:r}=t[n];r?.([e[n],e])}}).catch(e=>{for(let n=0;n<t.length;n++){let{reject:r}=t[n];r?.(e)}})},c=()=>o.delete(t),u=()=>l().map(({args:e})=>e),l=()=>o.get(t)||[],d=e=>o.set(t,[...l(),e]);return{flush:c,async schedule(e){let{promise:t,resolve:o,reject:a}=(0,r.n)();return(n?.([...u(),e])&&s(),l().length>0)?d({args:e,resolve:o,reject:a}):(d({args:e,resolve:o,reject:a}),setTimeout(s,i)),t}}}},57707:function(e,t,n){"use strict";function r(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}n.d(t,{n:function(){return r}})},6955:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(5133);function o(e,{delay:t=100,retryCount:n=2,shouldRetry:o=()=>!0}={}){return new Promise((i,a)=>{let s=async({count:c=0}={})=>{let u=async({error:e})=>{let n="function"==typeof t?t({count:c,error:e}):t;n&&await (0,r.D)(n),s({count:c+1})};try{let t=await e();i(t)}catch(e){if(c<n&&await o({count:c,error:e}))return u({error:e});a(e)}};s()})}},30902:function(e,t,n){"use strict";n.d(t,{Ow:function(){return r},eL:function(){return o},lh:function(){return i}});let r=/^(.*)\[([0-9]*)\]$/,o=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},44962:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(42330),o=n(34094),i=n(81567),a=n(80913);function s(e,t){return(0,r.w)(function(e){let t="string"==typeof e?(0,a.$G)(e):"string"==typeof e.raw?e.raw:(0,a.ci)(e.raw),n=(0,a.$G)(`\x19Ethereum Signed Message:
|
|
13
|
-
${(0,i.d)(t)}`);return(0,o.zo)([n,t])}(e),t)}},7390:function(e,t,n){"use strict";n.d(t,{Jv:function(){return b}});var r=n(49877),o=n(34094),i=n(80913),a=n(42330),s=n(11681),c=n(41709),u=n(48920),l=n(17670);class d extends l.G{constructor({domain:e}){super(`Invalid domain "${(0,u.P)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class f extends l.G{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class p extends l.G{constructor({type:e}){super(`Struct type "${e}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var h=n(91462),m=n(81567),y=n(30902);function b(e){let{domain:t={},message:n,primaryType:r}=e,u={EIP712Domain:function({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}({domain:t}),...e.types};!function(e){let{domain:t,message:n,primaryType:r,types:o}=e,a=(e,t)=>{for(let n of e){let{name:e,type:r}=n,u=t[e],l=r.match(y.lh);if(l&&("number"==typeof u||"bigint"==typeof u)){let[e,t,n]=l;(0,i.eC)(u,{signed:"int"===t,size:Number.parseInt(n)/8})}if("address"===r&&"string"==typeof u&&!(0,h.U)(u))throw new c.b({address:u});let d=r.match(y.eL);if(d){let[e,t]=d;if(t&&(0,m.d)(u)!==Number.parseInt(t))throw new s.KY({expectedSize:Number.parseInt(t),givenSize:(0,m.d)(u)})}let f=o[r];f&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new p({type:e})}(r),a(f,u))}};if(o.EIP712Domain&&t){if("object"!=typeof t)throw new d({domain:t});a(o.EIP712Domain,t)}if("EIP712Domain"!==r){if(o[r])a(o[r],n);else throw new f({primaryType:r,types:o})}}({domain:t,message:n,primaryType:r,types:u});let l=["0x1901"];return t&&l.push(function({domain:e,types:t}){return w({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:u})),"EIP712Domain"!==r&&l.push(w({data:n,primaryType:r,types:u})),(0,a.w)((0,o.zo)(l))}function w({data:e,primaryType:t,types:n}){let o=function e({data:t,primaryType:n,types:o}){let s=[{type:"bytes32"}],c=[function({primaryType:e,types:t}){let n=(0,i.NC)(function({primaryType:e,types:t}){let n="",r=function e({primaryType:t,types:n},r=new Set){let o=t.match(/^\w*/u),i=o?.[0];if(r.has(i)||void 0===n[i])return r;for(let t of(r.add(i),n[i]))e({primaryType:t.type,types:n},r);return r}({primaryType:e,types:t});for(let o of(r.delete(e),[e,...Array.from(r).sort()]))n+=`${o}(${t[o].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return n}({primaryType:e,types:t}));return(0,a.w)(n)}({primaryType:n,types:o})];for(let u of o[n]){let[n,l]=function t({types:n,name:o,type:s,value:c}){if(void 0!==n[s])return[{type:"bytes32"},(0,a.w)(e({data:c,primaryType:s,types:n}))];if("bytes"===s){let e=c.length%2?"0":"";return c=`0x${e+c.slice(2)}`,[{type:"bytes32"},(0,a.w)(c)]}if("string"===s)return[{type:"bytes32"},(0,a.w)((0,i.NC)(c))];if(s.lastIndexOf("]")===s.length-1){let e=s.slice(0,s.lastIndexOf("[")),i=c.map(r=>t({name:o,type:e,types:n,value:r}));return[{type:"bytes32"},(0,a.w)((0,r.E)(i.map(([e])=>e),i.map(([,e])=>e)))]}return[{type:s},c]}({types:o,name:u.name,type:u.type,value:t[u.name]});s.push(n),c.push(l)}return(0,r.E)(s,c)}({data:e,primaryType:t,types:n});return(0,a.w)(o)}},31727:function(e,t,n){"use strict";n.d(t,{R:function(){return u}});var r=n(45984),o=n(658),i=n(28649),a=n(80913);async function s({hash:e,signature:t}){let r=(0,o.v)(e)?e:(0,a.NC)(e),{secp256k1:s}=await Promise.resolve().then(n.bind(n,89871)),u=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:n,v:r,yParity:o}=t,a=c(Number(o??r));return new s.Signature((0,i.y_)(e),(0,i.y_)(n)).addRecoveryBit(a)}let e=(0,o.v)(t)?t:(0,a.NC)(t),n=c((0,i.ly)(`0x${e.slice(130)}`));return s.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(n)})().recoverPublicKey(r.substring(2)).toHex(!1);return`0x${u}`}function c(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function u({hash:e,signature:t}){return(0,r.y)(await s({hash:e,signature:t}))}},25594:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var r=n(89871),o=n(28649),i=n(43153);function a({r:e,s:t,to:n="hex",v:a,yParity:s}){let c=(()=>{if(0===s||1===s)return s;if(a&&(27n===a||28n===a||a>=35n))return a%2n===0n?1:0;throw Error("Invalid `v` or `yParity` value")})(),u=`0x${new r.secp256k1.Signature((0,o.y_)(e),(0,o.y_)(t)).toCompactHex()}${0===c?"1b":"1c"}`;return"hex"===n?u:(0,i.nr)(u)}},56177:function(e,t,n){"use strict";n.d(t,{mF:function(){return u}});var r=n(41709),o=n(39190),i=n(14832),a=n(91462),s=n(80913);function c(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:n})=>{if(66!==t.length)throw new o.W_({size:t.length,targetSize:66,type:"hex"});if(66!==n.length)throw new o.W_({size:n.length,targetSize:66,type:"hex"});return e[t]=n,e},{})}function u(e){if(!e)return;let t={};for(let{address:n,...o}of e){if(!(0,a.U)(n,{strict:!1}))throw new r.b({address:n});if(t[n])throw new i.Nc({address:n});t[n]=function(e){let{balance:t,nonce:n,state:r,stateDiff:o,code:a}=e,u={};if(void 0!==a&&(u.code=a),void 0!==t&&(u.balance=(0,s.eC)(t)),void 0!==n&&(u.nonce=(0,s.eC)(n)),void 0!==r&&(u.state=c(r)),void 0!==o){if(u.state)throw new i.Z8;u.stateDiff=c(o)}return u}(o)}return t}},88519:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var r=n(20320),o=n(86720),i=n(41709),a=n(90309),s=n(82865),c=n(91462);function u(e){let{account:t,gasPrice:n,maxFeePerGas:u,maxPriorityFeePerGas:l,to:d}=e,f=t?(0,r.T)(t):void 0;if(f&&!(0,c.U)(f.address))throw new i.b({address:f.address});if(d&&!(0,c.U)(d))throw new i.b({address:d});if(void 0!==n&&(void 0!==u||void 0!==l))throw new s.xY;if(u&&u>o.zL)throw new a.Hh({maxFeePerGas:u});if(l&&u&&l>u)throw new a.cs({maxFeePerGas:u,maxPriorityFeePerGas:l})}},95143:function(e,t,n){"use strict";let r;n.d(t,{h:function(){return i}});let o=256;function i(e=11){if(!r||o+e>512){r="",o=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(o,o+++e)}},5133:function(e,t,n){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}n.d(t,{D:function(){return r}})},33193:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var r=n(9211),o=n(54444),i=n(49224),a=n(11191),s=n(46760),c=n(23064);let u=e=>"object"==typeof e&&!Array.isArray(e);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.Z)(e);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.v,o=(0,s.useRef)([]),i=(0,c.useSyncExternalStoreWithSelector)(e,t,n,e=>e,(e,t)=>{if(u(e)&&u(t)&&o.current.length){for(let n of o.current)if(!r(e[n],t[n]))return!1;return!0}return r(e,t)});if(u(i)){let e={...i},t={};for(let[n,r]of Object.entries(e))t={...t,[n]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(n)||o.current.push(n),r)}};return Object.defineProperties(e,t),e}return i}(e=>(0,r.u)(t,{onChange:e}),()=>(0,o.D)(t))}},37437:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});var r=n(9211),o=n(46760),i=n(49224);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onConnect:t,onDisconnect:n}=e,a=(0,i.Z)(e);(0,o.useEffect)(()=>(0,r.u)(a,{onChange(e,r){if(("reconnecting"===r.status||"connecting"===r.status&&void 0===r.address)&&"connected"===e.status){let{address:n,addresses:o,chain:i,chainId:a,connector:s}=e,c="reconnecting"===r.status||void 0===r.status;null==t||t({address:n,addresses:o,chain:i,chainId:a,connector:s,isReconnected:c})}else"connected"===r.status&&"disconnected"===e.status&&(null==n||n())}}),[a,t,n])}},69146:function(e,t,n){"use strict";n.d(t,{K:function(){return v}});var r=n(60796),o=n(28649),i=n(15690),a=n(94732),s=n(94547),c=n(16272),u=n(82928);function l(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(u.Bd[e])}var d=n(62550);async function f(e,t){let{allowFailure:n=!0,chainId:r,contracts:o,...i}=t,a=e.getClient({chainId:r});return(0,c.s)(a,d.A,"multicall")({allowFailure:n,contracts:o,...i})}var p=n(69737);async function h(e,t){let{allowFailure:n=!0,blockNumber:o,blockTag:i,...a}=t,s=t.contracts;try{let t={};for(let[n,r]of s.entries()){let o=r.chainId??e.state.chainId;t[o]||(t[o]=[]),t[o]?.push({contract:r,index:n})}let r=(await Promise.all(Object.entries(t).map(([t,r])=>f(e,{...a,allowFailure:n,blockNumber:o,blockTag:i,chainId:Number.parseInt(t),contracts:r.map(({contract:e})=>e)})))).flat(),c=Object.values(t).flatMap(e=>e.map(({index:e})=>e));return r.reduce((e,t,n)=>(e&&(e[c[n]]=t),e),[])}catch(a){if(a instanceof r.uq)throw a;let t=()=>s.map(t=>(0,p.L)(e,{...t,blockNumber:o,blockTag:i}));if(n)return(await Promise.allSettled(t())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(t())}}async function m(e,t){let{address:n,blockNumber:u,blockTag:d,chainId:f,token:p,unit:h="ether"}=t;if(p)try{return y(e,{balanceAddress:n,chainId:f,symbolType:"string",tokenAddress:p})}catch(t){if(t instanceof r.uq){let t=await y(e,{balanceAddress:n,chainId:f,symbolType:"bytes32",tokenAddress:p}),r=(0,o.rR)((0,i.f)(t.symbol,{dir:"right"}));return{...t,symbol:r}}throw t}let m=e.getClient({chainId:f}),b=(0,c.s)(m,s.s,"getBalance"),w=await b(u?{address:n,blockNumber:u}:{address:n,blockTag:d}),g=e.chains.find(e=>e.id===f)??m.chain;return{decimals:g.nativeCurrency.decimals,formatted:(0,a.b)(w,l(h)),symbol:g.nativeCurrency.symbol,value:w}}async function y(e,t){let{balanceAddress:n,chainId:r,symbolType:o,tokenAddress:i,unit:s}=t,c={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:o}]}],address:i},[u,d,f]=await h(e,{allowFailure:!1,contracts:[{...c,functionName:"balanceOf",args:[n],chainId:r},{...c,functionName:"decimals",chainId:r},{...c,functionName:"symbol",chainId:r}]}),p=(0,a.b)(u??"0",l(s??d));return{decimals:d,formatted:p,symbol:f,value:u}}var b=n(65796),w=n(30517),g=n(24773),A=n(49224);function v(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,query:o={}}=n,i=(0,A.Z)(n),a=(0,g.x)({config:i}),s=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,...o}=t[1];if(!n)throw Error("address is required");return await m(e,{...o,address:n})??null},queryKey:function(e={}){return["balance",(0,b.OP)(e)]}(t)}}(i,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:a}),c=!!(r&&(null===(t=o.enabled)||void 0===t||t));return(0,w.aM)({...o,...s,enabled:c})}},48355:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var r=n(28103),o=n(47609);async function i(e,t){let n;if((n="function"==typeof t.connector?e._internal.connectors.setup(t.connector):t.connector).uid===e.state.current)throw new o.wi;try{e.setState(e=>({...e,status:"connecting"})),n.emitter.emit("message",{type:"connecting"});let r=await n.connect({chainId:t.chainId}),o=r.accounts;return n.emitter.off("connect",e._internal.events.connect),n.emitter.on("change",e._internal.events.change),n.emitter.on("disconnect",e._internal.events.disconnect),await e.storage?.setItem("recentConnectorId",n.id),e.setState(e=>({...e,connections:new Map(e.connections).set(n.uid,{accounts:o,chainId:r.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:o,chainId:r.chainId}}catch(t){throw e.setState(e=>({...e,status:e.current?"connected":"disconnected"})),t}}var a=n(46760),s=n(49224),c=n(47801);function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,s.Z)(e),{mutate:o,mutateAsync:u,...l}=(0,r.D)({...t,mutationFn:e=>i(n,e),mutationKey:["connect"]});return(0,a.useEffect)(()=>n.subscribe(e=>{let{status:t}=e;return t},(e,t)=>{"connected"===t&&"disconnected"===e&&l.reset()}),[n,l.reset]),{...l,connect:o,connectAsync:u,connectors:(0,c.Y)({config:n})}}},47801:function(e,t,n){"use strict";n.d(t,{Y:function(){return c}});var r=n(11191);let o=[];function i(e){let t=e.connectors;return(0,r.v)(o,t)?o:(o=t,t)}var a=n(46760),s=n(49224);function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.Z)(e);return(0,a.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.connectors.subscribe((e,t)=>{n(Object.values(e),t)})})(t,{onChange:e}),()=>i(t),()=>i(t))}},88758:function(e,t,n){"use strict";n.d(t,{q:function(){return l}});var r=n(28103);async function o(e,t={}){let n;if(t.connector)n=t.connector;else{let{connections:t,current:r}=e.state,o=t.get(r);n=o?.connector}let r=e.state.connections;n&&(await n.disconnect(),n.emitter.off("change",e._internal.events.change),n.emitter.off("disconnect",e._internal.events.disconnect),n.emitter.on("connect",e._internal.events.connect),r.delete(n.uid)),e.setState(e=>{if(0===r.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=r.values().next().value;return{...e,connections:new Map(r),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let n=e.state.connections.get(t)?.connector;if(!n)return;await e.storage?.setItem("recentConnectorId",n.id)}}var i=n(49224),a=n(11191);let s=[];function c(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,a.v)(s,t)?s:(s=t,t)}var u=n(46760);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,i.Z)(e),{mutate:s,mutateAsync:l,...d}=(0,r.D)({...t,mutationFn:e=>o(n,e),mutationKey:["disconnect"]});return{...d,connectors:(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.Z)(e);return(0,u.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>c(e),n,{equalityFn:a.v})})(t,{onChange:e}),()=>c(t),()=>c(t))})({config:n}).map(e=>e.connector),disconnect:s,disconnectAsync:l}}},17933:function(e,t,n){"use strict";n.d(t,{c:function(){return u}});var r=n(19471),o=n(16272),i=n(65796),a=n(30517),s=n(24773),c=n(49224);function u(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:u,query:l={}}=n,d=(0,c.Z)(n),f=(0,s.x)({config:d}),p=function(e,t={}){return{async queryFn({queryKey:t}){let{name:n,scopeKey:i,...a}=t[1];if(!n)throw Error("name is required");return function(e,t){let{chainId:n,...i}=t,a=e.getClient({chainId:n});return(0,o.s)(a,r.r,"getEnsAvatar")(i)}(e,{...a,name:n})},queryKey:function(e={}){return["ensAvatar",(0,i.OP)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),h=!!(u&&(null===(t=l.enabled)||void 0===t||t));return(0,a.aM)({...l,...p,enabled:h})}},73217:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var r=n(64313),o=n(16272),i=n(65796),a=n(30517),s=n(24773),c=n(49224);function u(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:u,query:l={}}=n,d=(0,c.Z)(n),f=(0,s.x)({config:d}),p=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:i,...a}=t[1];if(!n)throw Error("address is required");return function(e,t){let{chainId:n,...i}=t,a=e.getClient({chainId:n});return(0,o.s)(a,r.w,"getEnsName")(i)}(e,{...a,address:n})},queryKey:function(e={}){return["ensName",(0,i.OP)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),h=!!(u&&(null===(t=l.enabled)||void 0===t||t));return(0,a.aM)({...l,...p,enabled:h})}},4443:function(e,t,n){"use strict";n.d(t,{t:function(){return t8}});var r=n(87867),o=n(3518),i=n(11649),a=n(29745),s=n(15690),c=n(80913),u=n(31030),l=n(58451),d=n(49578),f=n(13505),p=n(74396);async function h(e,{blockNumber:t,blockTag:n,coinType:h,name:m,gatewayUrls:y,strict:b,universalResolverAddress:w}){let g=w;if(!g){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");g=(0,a.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a=(0,i.R)({abi:r.X$,functionName:"addr",...null!=h?{args:[(0,l.V)(m),BigInt(h)]}:{args:[(0,l.V)(m)]}}),u={address:g,abi:r.k3,functionName:"resolve",args:[(0,c.NC)((0,d.T)(m)),a],blockNumber:t,blockTag:n},b=(0,f.s)(e,p.L,"readContract"),w=y?await b({...u,args:[...u.args,y]}):await b(u);if("0x"===w[0])return null;let A=(0,o.k)({abi:r.X$,args:null!=h?[(0,l.V)(m),BigInt(h)]:void 0,functionName:"addr",data:w[0]});if("0x"===A||"0x00"===(0,s.f)(A))return null;return A}catch(e){if(b)throw e;if((0,u.c)(e,"resolve"))return null;throw e}}var m=n(19471),y=n(64313);async function b(e,{blockNumber:t,blockTag:n,name:r,universalResolverAddress:o}){let i=o;if(!i){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");i=(0,a.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}let[s]=await (0,f.s)(e,p.L,"readContract")({address:i,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,c.NC)((0,d.T)(r))],blockNumber:t,blockTag:n});return s}var w=n(69881),g=n(26395),A=n(20320),v=n(32810),x=n(77839),C=n(47734),E=n(88519);async function B(e,t){let{account:n=e.account,blockNumber:r,blockTag:o="latest",blobs:i,data:a,gas:s,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,to:p,value:h,...m}=t,y=n?(0,A.T)(n):void 0;try{(0,E.F)(t);let n=r?(0,c.eC)(r):void 0,b=e.chain?.formatters?.transactionRequest?.format,w=(b||C.tG)({...(0,x.K)(m,{format:b}),from:y?.address,blobs:i,data:a,gas:s,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,to:p,value:h}),g=await e.request({method:"eth_createAccessList",params:[w,n||o]});return{accessList:g.accessList,gasUsed:BigInt(g.gasUsed)}}catch(n){throw(0,v.P)(n,{...t,account:y,chain:e.chain})}}function k(e,{method:t}){let n={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:r,status:o,transport:i})=>{"success"===o&&t===e&&(n[r]=i.request)}),t=>n[t]||e.request}async function I(e){let t=k(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}var P=n(11681),M=n(17670);class N extends M.G{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var O=n(43153),S=n(42330),R=n(37821),F=n(49877),T=n(97327),D=n(78137);let L="/docs/contract/encodeEventTopics";function U(e){let{abi:t,eventName:n,args:r}=e,o=t[0];if(n){let e=(0,D.mE)({abi:t,name:n});if(!e)throw new P.mv(n,{docsPath:L});o=e}if("event"!==o.type)throw new P.mv(void 0,{docsPath:L});let i=(0,T.t)(o),a=(0,R.n)(i),s=[];if(r&&"inputs"in o){let e=o.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(s=e?.map((e,n)=>Array.isArray(t[n])?t[n].map((r,o)=>Q({param:e,value:t[n][o]})):void 0!==t[n]&&null!==t[n]?Q({param:e,value:t[n]}):null)??[])}return[a,...s]}function Q({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,S.w)((0,O.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new N(e.type);return(0,F.E)([e],[t])}async function q(e,t){let{address:n,abi:r,args:o,eventName:i,fromBlock:a,strict:s,toBlock:u}=t,l=k(e,{method:"eth_newFilter"}),d=i?U({abi:r,args:o,eventName:i}):void 0,f=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"==typeof a?(0,c.eC)(a):a,toBlock:"bigint"==typeof u?(0,c.eC)(u):u,topics:d}]});return{abi:r,args:o,eventName:i,id:f,request:l(f),strict:!!s,type:"event"}}async function G(e,{address:t,args:n,event:r,events:o,fromBlock:i,strict:a,toBlock:s}={}){let u=o??(r?[r]:void 0),l=k(e,{method:"eth_newFilter"}),d=[];u&&(d=[u.flatMap(e=>U({abi:[e],eventName:e.name,args:n}))],r&&(d=d[0]));let f=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof i?(0,c.eC)(i):i,toBlock:"bigint"==typeof s?(0,c.eC)(s):s,...d.length?{topics:d}:{}}]});return{abi:u,args:n,eventName:r?r.name:void 0,fromBlock:i,id:f,request:l(f),strict:!!a,toBlock:s,type:"event"}}async function z(e){let t=k(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}var W=n(30003),j=n(66883);async function H(e,t){let{abi:n,address:r,args:o,functionName:a,dataSuffix:s,...c}=t,u=(0,i.R)({abi:n,args:o,functionName:a});try{return await (0,f.s)(e,j.Q,"estimateGas")({data:`${u}${s?s.replace("0x",""):""}`,to:r,...c})}catch(t){let e=c.account?(0,A.T)(c.account):void 0;throw(0,W.S)(t,{abi:n,address:r,args:o,docsPath:"/docs/contract/estimateContractGas",functionName:a,sender:e?.address})}}var Z=n(12967),K=n(27320),V=n(94547);async function J(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}var Y=n(45976),X=n(96842),$=n(28649);async function _(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){let o;let i=void 0!==n?(0,c.eC)(n):void 0;return o=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||r]},{dedupe:!!i}),(0,$.ly)(o)}var ee=n(99175);async function et(e,{address:t,blockNumber:n,blockTag:r="latest"}){let o=void 0!==n?(0,c.eC)(n):void 0,i=await e.request({method:"eth_getCode",params:[t,o||r]},{dedupe:!!o});if("0x"!==i)return i}var en=n(18492),er=n(47445);async function eo(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:i,events:a,args:s,strict:u}={}){let l=a??(i?[i]:void 0),d=[];l&&(d=[l.flatMap(e=>U({abi:[e],eventName:e.name,args:a?void 0:s}))],i&&(d=d[0]));let f=(n?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:n}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof r?(0,c.eC)(r):r,toBlock:"bigint"==typeof o?(0,c.eC)(o):o}]})).map(e=>(0,er.U)(e));return l?(0,en.h)({abi:l,args:s,logs:f,strict:u??!1}):f}async function ei(e,t){let{abi:n,address:r,args:o,blockHash:i,eventName:a,fromBlock:s,toBlock:c,strict:u}=t,l=a?(0,D.mE)({abi:n,name:a}):void 0,d=l?void 0:n.filter(e=>"event"===e.type);return(0,f.s)(e,eo,"getLogs")({address:r,args:o,blockHash:i,event:l,events:d,fromBlock:s,toBlock:c,strict:u})}class ea extends M.G{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function es(e,t){let{address:n,factory:r,factoryData:o}=t;try{let[t,i,a,s,c,u,l]=await (0,f.s)(e,p.L,"readContract")({abi:ec,address:n,functionName:"eip712Domain",factory:r,factoryData:o});return{domain:{name:i,version:a,chainId:Number(s),verifyingContract:c,salt:u},extensions:l,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new ea({address:n});throw e}}let ec=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function eu(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:o}){var i;let a=n?(0,c.eC)(n):void 0;return{baseFeePerGas:(i=await e.request({method:"eth_feeHistory",params:[(0,c.eC)(t),a||r,o]},{dedupe:!!a})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:i.gasUsedRatio,oldestBlock:BigInt(i.oldestBlock),reward:i.reward?.map(e=>e.map(e=>BigInt(e)))}}async function el(e,{filter:t}){let n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof r[0])return r;let o=r.map(e=>(0,er.U)(e));return"abi"in t&&t.abi?(0,en.h)({abi:t.abi,logs:o,strict:n}):o}async function ed(e,{filter:t}){let n=t.strict??!1,r=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,er.U)(e));return t.abi?(0,en.h)({abi:t.abi,logs:r,strict:n}):r}var ef=n(73910);async function ep(e,{address:t,blockNumber:n,blockTag:r,storageKeys:o}){var i;let a=void 0!==n?(0,c.eC)(n):void 0;return{...i=await e.request({method:"eth_getProof",params:[t,o,a||(r??"latest")]}),balance:i.balance?BigInt(i.balance):void 0,nonce:i.nonce?(0,$.ly)(i.nonce):void 0,storageProof:i.storageProof?i.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}}async function eh(e,{address:t,blockNumber:n,blockTag:r="latest",slot:o}){let i=void 0!==n?(0,c.eC)(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,i||r]})}var em=n(74422),ey=n(4801),eb=n(11238),ew=n(75456),eg=n(62550);class eA extends Error{constructor(e,t={}){let n=(()=>{if(t.cause instanceof eA){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause?.message?t.cause.message:t.details})(),r=t.cause instanceof eA&&t.cause.docsPath||t.docsPath,o=`https://oxlib.sh${r??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...n||r?["",n?`Details: ${n}`:void 0,r?`See: ${o}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"ox@0.1.1"}),this.cause=t.cause,this.details=n,this.docs=o,this.docsPath=r,this.shortMessage=e}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,n):n?null:t}(this,e)}}function ev(e,t){if(eR(e)>t)throw new eL({givenSize:eR(e),maxSize:t})}function ex(e,t={}){let{dir:n,size:r=32}=t;if(0===r)return e;let o=e.replace("0x","");if(o.length>2*r)throw new eQ({size:Math.ceil(o.length/2),targetSize:r,type:"Hex"});return`0x${o["right"===n?"padEnd":"padStart"](2*r,"0")}`}let eC=new TextEncoder,eE=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function eB(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function ek(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?(ev(n,t.size),eN(n,t.size)):n}function eI(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=eE[e[t]];let r=`0x${n}`;return"number"==typeof t.size?(ev(r,t.size),eO(r,t.size)):r}function eP(e,t={}){let n;let{signed:r,size:o}=t,i=BigInt(e);o?n=r?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let a="bigint"==typeof n&&r?-n-1n:0;if(n&&i>n||i<a){let t="bigint"==typeof e?"n":"";throw new eF({max:n?`${n}${t}`:void 0,min:`${a}${t}`,signed:r,size:o,value:`${e}${t}`})}let s=(r&&i<0?(1n<<BigInt(8*o))+BigInt(i):i).toString(16),c=`0x${s}`;return o?eN(c,o):c}function eM(e,t={}){return eI(eC.encode(e),t)}function eN(e,t){return ex(e,{dir:"left",size:t})}function eO(e,t){return ex(e,{dir:"right",size:t})}function eS(e,t,n,r={}){let{strict:o}=r;!function(e,t){if("number"==typeof t&&t>0&&t>eR(e)-1)throw new eU({offset:t,position:"start",size:eR(e)})}(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return o&&function(e,t,n){if("number"==typeof t&&"number"==typeof n&&eR(e)!==n-t)throw new eU({offset:n,position:"end",size:eR(e)})}(i,t,n),i}function eR(e){return Math.ceil((e.length-2)/2)}class eF extends eA{constructor({max:e,min:t,signed:n,size:r,value:o}){super(`Number \`${o}\` is not in safe${r?` ${8*r}-bit`:""}${n?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class eT extends eA{constructor(e){super(`Value \`${"object"==typeof e?JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"#__bigint":t,void 0):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class eD extends eA{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class eL extends eA{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class eU extends eA{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class eQ extends eA{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function eq(e){return{address:e.address,amount:eP(e.amount),index:eP(e.index),validatorIndex:eP(e.validatorIndex)}}var eG=n(60796),ez=n(90309),eW=n(89741),ej=n(55535),eH=n(56177);async function eZ(e,t){let{blockNumber:n,blockTag:r="latest",blocks:a,returnFullTransactions:s,traceTransfers:u,validation:l}=t;try{let t=[];for(let e of a){var d;let n=e.blockOverrides?(d=e.blockOverrides,{..."bigint"==typeof d.baseFeePerGas&&{baseFeePerGas:eP(d.baseFeePerGas)},..."bigint"==typeof d.blobBaseFee&&{blobBaseFee:eP(d.blobBaseFee)},..."string"==typeof d.feeRecipient&&{feeRecipient:d.feeRecipient},..."bigint"==typeof d.gasLimit&&{gasLimit:eP(d.gasLimit)},..."bigint"==typeof d.number&&{number:eP(d.number)},..."bigint"==typeof d.prevRandao&&{prevRandao:eP(d.prevRandao)},..."bigint"==typeof d.time&&{time:eP(d.time)},...d.withdrawals&&{withdrawals:d.withdrawals.map(eq)}}):void 0,r=e.calls.map(e=>{let t=e.account?(0,A.T)(e.account):void 0,n={...e,data:e.abi?(0,i.R)(e):e.data,from:e.from??t?.address};return(0,E.F)(n),(0,C.tG)(n)}),o=e.stateOverrides?(0,eH.mF)(e.stateOverrides):void 0;t.push({blockOverrides:n,calls:r,stateOverrides:o})}let f=n?(0,c.eC)(n):void 0;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:s,traceTransfers:u,validation:l},f||r]})).map((e,t)=>({...(0,ej.Z)(e),calls:e.calls.map((e,n)=>{let{abi:r,args:i,functionName:s,to:c}=a[t].calls[n],u=e.error?.data??e.returnData,l=BigInt(e.gasUsed),d=e.logs?.map(e=>er.U(e)),f="0x1"===e.status?"success":"failure",p=r&&"success"===f?(0,o.k)({abi:r,data:u,functionName:s}):null,h=(()=>{let t;if("success"!==f&&(e.error?.data==="0x"?t=new P.wb:e.error&&(t=new eG.VQ(e.error)),t))return(0,W.S)(t,{abi:r??[],address:c,args:i,functionName:s??"<unknown>"})})();return{data:u,gasUsed:l,logs:d,status:f,..."success"===f?{result:p}:{error:h}}})}))}catch(t){let e=(0,eW.k)(t,{});if(e instanceof ez.cj)throw t;throw e}}var eK=n(30281),eV=n(29052),eJ=n(31991),eY=n(34468),eX=n(41923);let e$=/^tuple(?<array>(\[(\d*)\])*)$/;function e_(e){let t="",n=e.length;for(let r=0;r<n;r++)t+=function e(t){let n=t.type;if(e$.test(t.type)&&"components"in t){n="(";let r=t.components.length;for(let o=0;o<r;o++)n+=e(t.components[o]),o<r-1&&(n+=", ");let o=(0,eX.Zw)(e$,t.type);return n+=`)${o?.array??""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n} indexed`),t.name)?`${n} ${t.name}`:n}(e[r]),r!==n-1&&(t+=", ");return t}function e0(e){return"function"===e.type?`function ${e.name}(${e_(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs.length?` returns (${e_(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${e_(e.inputs)})`:"error"===e.type?`error ${e.name}(${e_(e.inputs)})`:"constructor"===e.type?`constructor(${e_(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback()":"receive() external payable"}var e1=n(59400);let e6={zero:48,nine:57,A:65,F:70,a:97,f:102};function e2(e){return e>=e6.zero&&e<=e6.nine?e-e6.zero:e>=e6.A&&e<=e6.F?e-(e6.A-10):e>=e6.a&&e<=e6.f?e-(e6.a-10):void 0}let e5=new TextEncoder;class e3 extends eA{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class e8 extends eA{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}function e4(e,t={}){let{as:n="string"==typeof e?"Hex":"Bytes"}=t,r=(0,e1.fr)(e instanceof Uint8Array?e:"string"==typeof e?function(e,t={}){let{size:n}=t,r=e;n&&(ev(e,n),r=eO(e,n));let o=r.slice(2);o.length%2&&(o=`0${o}`);let i=o.length/2,a=new Uint8Array(i);for(let e=0,t=0;e<i;e++){let n=e2(o.charCodeAt(t++)),r=e2(o.charCodeAt(t++));if(void 0===n||void 0===r)throw new eA(`Invalid byte sequence ("${o[t-2]}${o[t-1]}" in "${o}").`);a[e]=16*n+r}return a}(e):e instanceof Uint8Array?e:new Uint8Array(e));return"Bytes"===n?r:eI(r)}class e9 extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}let e7={checksum:new e9(8192)}.checksum,te=/^0x[a-fA-F0-9]{40}$/;function tt(e,t={}){let{strict:n=!0}=t;if(!te.test(e))throw new tr({address:e,cause:new to});if(n){if(e.toLowerCase()===e)return;if(function(e){if(e7.has(e))return e7.get(e);tt(e,{strict:!1});let t=e.substring(2).toLowerCase(),n=e4(function(e,t={}){let{size:n}=t,r=e5.encode(e);return"number"==typeof n?(!function(e,t){if(e.length>t)throw new e3({givenSize:e.length,maxSize:t})}(r,n),function(e,t={}){let{dir:n,size:r=32}=t;if(0===r)return e;if(e.length>r)throw new e8({size:e.length,targetSize:r,type:"Bytes"});let o=new Uint8Array(r);for(let t=0;t<r;t++){let i="right"===n;o[i?t:r-t-1]=e[i?t:e.length-t-1]}return o}(r,{dir:"right",size:n})):r}(t),{as:"Bytes"}),r=t.split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&r[e]&&(r[e]=r[e].toUpperCase()),(15&n[e>>1])>=8&&r[e+1]&&(r[e+1]=r[e+1].toUpperCase());let o=`0x${r.join("")}`;return e7.set(e,o),o}(e)!==e)throw new tr({address:e,cause:new ti})}}function tn(e,t={}){let{strict:n=!0}=t??{};try{return tt(e,{strict:n}),!0}catch{return!1}}class tr extends eA{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class to extends eA{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class ti extends eA{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function ta(e){let t=!0,n="",r=0,o="",i=!1;for(let a=0;a<e.length;a++){let s=e[a];if(["(",")",","].includes(s)&&(t=!0),"("===s&&r++,")"===s&&r--,t){if(0===r){if(" "===s&&["event","function","error",""].includes(o))o="";else if(o+=s,")"===s){i=!0;break}continue}if(" "===s){","!==e[a-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}o+=s,n+=s}}if(!i)throw new eA("Unable to normalize signature.");return o}function ts(e,t={}){let{prepare:n=!0}=t,r=Array.isArray(e)||"string"==typeof e?function(e){let t;if("string"==typeof e)t=(0,eY.cK)(e);else{let n=(0,eJ.D)(e),r=e.length;for(let o=0;o<r;o++){let r=e[o];if(!(0,eV.N0)(r)){t=(0,eY.cK)(r,n);break}}}if(!t)throw new eK.a_({signature:e});return t}(e):e;return{...r,...n?{hash:tu(r)}:{}}}function tc(e){return eS(tu(e),0,4)}function tu(e){return"string"!=typeof e&&"hash"in e&&e.hash?e.hash:e4(eM(ta("string"==typeof e?e:e0(e))))}class tl extends eA{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${ta(e0(e.abiItem))}\`, and`,`\`${t.type}\` in \`${ta(e0(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class td extends eA{constructor({name:e,data:t,type:n="item"}){super(`ABI ${n}${e?` with name "${e}"`:t?` with data "${t}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}let tf=/^(.*)\[([0-9]*)\]$/,tp=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,th=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function tm(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:o}=e[n];r?t+=32:t+=eR(o)}let n=[],r=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:s}=e[i];a?(n.push(eP(t+o,{size:32})),r.push(s),o+=eR(s)):n.push(s)}return eB(...n,...r)}function ty(e,t,n){let{checksumAddress:r=!1}=n??{};if(e.length!==t.length)throw new tA({expectedLength:e.length,givenLength:t.length});let o=tm(function({checksumAddress:e,parameters:t,values:n}){let r=[];for(let o=0;o<t.length;o++)r.push(function e({checksumAddress:t=!1,parameter:n,value:r}){let o=function(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}(n.type);if(o){let[i,a]=o;return function(t,n){let{checksumAddress:r,length:o,parameter:i}=n,a=null===o;if(!Array.isArray(t))throw new tv(t);if(!a&&t.length!==o)throw new tw({expectedLength:o,givenLength:t.length,type:`${i.type}[${o}]`});let s=!1,c=[];for(let n=0;n<t.length;n++){let o=e({checksumAddress:r,parameter:i,value:t[n]});o.dynamic&&(s=!0),c.push(o)}if(a||s){let e=tm(c);if(a){let t=eP(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?eB(t,e):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:eB(...c.map(({encoded:e})=>e))}}(r,{checksumAddress:t,length:i,parameter:{...n,type:a}})}if("tuple"===n.type)return function(t,n){let{checksumAddress:r,parameter:o}=n,i=!1,a=[];for(let n=0;n<o.components.length;n++){let s=o.components[n],c=Array.isArray(t)?n:s.name,u=e({checksumAddress:r,parameter:s,value:t[c]});a.push(u),u.dynamic&&(i=!0)}return{dynamic:i,encoded:i?tm(a):eB(...a.map(({encoded:e})=>e))}}(r,{checksumAddress:t,parameter:n});if("address"===n.type)return function(e,t){let{checksum:n=!1}=t;return tt(e,{strict:n}),{dynamic:!1,encoded:eN(e.toLowerCase())}}(r,{checksum:t});if("bool"===n.type)return function(e){if("boolean"!=typeof e)throw new eA(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:eN(ek(e))}}(r);if(n.type.startsWith("uint")||n.type.startsWith("int")){let e=n.type.startsWith("int"),[,,t="256"]=th.exec(n.type)??[];return function(e,{signed:t,size:n}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new eF({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:eP(e,{size:32,signed:t})}}(r,{signed:e,size:Number(t)})}if(n.type.startsWith("bytes"))return function(e,{type:t}){let[,n]=t.split("bytes"),r=eR(e);if(!n){let t=e;return r%32!=0&&(t=eO(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:eB(eN(eP(r,{size:32})),t)}}if(r!==Number.parseInt(n))throw new tg({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:eO(e)}}(r,{type:n.type});if("string"===n.type)return function(e){let t=eM(e),n=Math.ceil(eR(t)/32),r=[];for(let e=0;e<n;e++)r.push(eO(eS(t,32*e,(e+1)*32)));return{dynamic:!0,encoded:eB(eO(eP(eR(t),{size:32})),...r)}}(r);throw new tx(n.type)}({checksumAddress:e,parameter:t[o],value:n[o]}));return r}({checksumAddress:r,parameters:e,values:t}));return 0===o.length?"0x":o}function tb(e,t){if(e.length!==t.length)throw new tA({expectedLength:e.length,givenLength:t.length});let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r];n.push(tb.encode(o,i))}return eB(...n)}(tb||(tb={})).encode=function e(t,n,r=!1){if("address"===t)return tt(n),eN(n.toLowerCase(),r?32:0);if("string"===t)return eM(n);if("bytes"===t)return n;if("bool"===t)return eN(ek(n),r?32:1);let o=t.match(th);if(o){let[e,t,i="256"]=o,a=Number.parseInt(i)/8;return eP(n,{size:r?32:a,signed:"int"===t})}let i=t.match(tp);if(i){let[e,t]=i;if(Number.parseInt(t)!==(n.length-2)/2)throw new tg({expectedSize:Number.parseInt(t),value:n});return eO(n,r?32:0)}let a=t.match(tf);if(a&&Array.isArray(n)){let[t,r]=a,o=[];for(let t=0;t<n.length;t++)o.push(e(r,n[t],!0));return 0===o.length?"0x":eB(...o)}throw new tx(t)};class tw extends eA{constructor({expectedLength:e,givenLength:t,type:n}){super(`Array length mismatch for type \`${n}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class tg extends eA{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${eR(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class tA extends eA{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch.
|
|
13
|
+
${(0,i.d)(t)}`);return(0,o.zo)([n,t])}(e),t)}},7390:function(e,t,n){"use strict";n.d(t,{Jv:function(){return b}});var r=n(49877),o=n(34094),i=n(80913),a=n(42330),s=n(11681),c=n(41709),u=n(48920),l=n(17670);class d extends l.G{constructor({domain:e}){super(`Invalid domain "${(0,u.P)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class f extends l.G{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class p extends l.G{constructor({type:e}){super(`Struct type "${e}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var h=n(91462),m=n(81567),y=n(30902);function b(e){let{domain:t={},message:n,primaryType:r}=e,u={EIP712Domain:function({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}({domain:t}),...e.types};!function(e){let{domain:t,message:n,primaryType:r,types:o}=e,a=(e,t)=>{for(let n of e){let{name:e,type:r}=n,u=t[e],l=r.match(y.lh);if(l&&("number"==typeof u||"bigint"==typeof u)){let[e,t,n]=l;(0,i.eC)(u,{signed:"int"===t,size:Number.parseInt(n)/8})}if("address"===r&&"string"==typeof u&&!(0,h.U)(u))throw new c.b({address:u});let d=r.match(y.eL);if(d){let[e,t]=d;if(t&&(0,m.d)(u)!==Number.parseInt(t))throw new s.KY({expectedSize:Number.parseInt(t),givenSize:(0,m.d)(u)})}let f=o[r];f&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new p({type:e})}(r),a(f,u))}};if(o.EIP712Domain&&t){if("object"!=typeof t)throw new d({domain:t});a(o.EIP712Domain,t)}if("EIP712Domain"!==r){if(o[r])a(o[r],n);else throw new f({primaryType:r,types:o})}}({domain:t,message:n,primaryType:r,types:u});let l=["0x1901"];return t&&l.push(function({domain:e,types:t}){return w({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:u})),"EIP712Domain"!==r&&l.push(w({data:n,primaryType:r,types:u})),(0,a.w)((0,o.zo)(l))}function w({data:e,primaryType:t,types:n}){let o=function e({data:t,primaryType:n,types:o}){let s=[{type:"bytes32"}],c=[function({primaryType:e,types:t}){let n=(0,i.NC)(function({primaryType:e,types:t}){let n="",r=function e({primaryType:t,types:n},r=new Set){let o=t.match(/^\w*/u),i=o?.[0];if(r.has(i)||void 0===n[i])return r;for(let t of(r.add(i),n[i]))e({primaryType:t.type,types:n},r);return r}({primaryType:e,types:t});for(let o of(r.delete(e),[e,...Array.from(r).sort()]))n+=`${o}(${t[o].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return n}({primaryType:e,types:t}));return(0,a.w)(n)}({primaryType:n,types:o})];for(let u of o[n]){let[n,l]=function t({types:n,name:o,type:s,value:c}){if(void 0!==n[s])return[{type:"bytes32"},(0,a.w)(e({data:c,primaryType:s,types:n}))];if("bytes"===s){let e=c.length%2?"0":"";return c=`0x${e+c.slice(2)}`,[{type:"bytes32"},(0,a.w)(c)]}if("string"===s)return[{type:"bytes32"},(0,a.w)((0,i.NC)(c))];if(s.lastIndexOf("]")===s.length-1){let e=s.slice(0,s.lastIndexOf("[")),i=c.map(r=>t({name:o,type:e,types:n,value:r}));return[{type:"bytes32"},(0,a.w)((0,r.E)(i.map(([e])=>e),i.map(([,e])=>e)))]}return[{type:s},c]}({types:o,name:u.name,type:u.type,value:t[u.name]});s.push(n),c.push(l)}return(0,r.E)(s,c)}({data:e,primaryType:t,types:n});return(0,a.w)(o)}},31727:function(e,t,n){"use strict";n.d(t,{R:function(){return u}});var r=n(45984),o=n(658),i=n(28649),a=n(80913);async function s({hash:e,signature:t}){let r=(0,o.v)(e)?e:(0,a.NC)(e),{secp256k1:s}=await Promise.resolve().then(n.bind(n,89871)),u=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:n,v:r,yParity:o}=t,a=c(Number(o??r));return new s.Signature((0,i.y_)(e),(0,i.y_)(n)).addRecoveryBit(a)}let e=(0,o.v)(t)?t:(0,a.NC)(t),n=c((0,i.ly)(`0x${e.slice(130)}`));return s.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(n)})().recoverPublicKey(r.substring(2)).toHex(!1);return`0x${u}`}function c(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function u({hash:e,signature:t}){return(0,r.y)(await s({hash:e,signature:t}))}},25594:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var r=n(89871),o=n(28649),i=n(43153);function a({r:e,s:t,to:n="hex",v:a,yParity:s}){let c=(()=>{if(0===s||1===s)return s;if(a&&(27n===a||28n===a||a>=35n))return a%2n===0n?1:0;throw Error("Invalid `v` or `yParity` value")})(),u=`0x${new r.secp256k1.Signature((0,o.y_)(e),(0,o.y_)(t)).toCompactHex()}${0===c?"1b":"1c"}`;return"hex"===n?u:(0,i.nr)(u)}},56177:function(e,t,n){"use strict";n.d(t,{mF:function(){return u}});var r=n(41709),o=n(39190),i=n(14832),a=n(91462),s=n(80913);function c(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:n})=>{if(66!==t.length)throw new o.W_({size:t.length,targetSize:66,type:"hex"});if(66!==n.length)throw new o.W_({size:n.length,targetSize:66,type:"hex"});return e[t]=n,e},{})}function u(e){if(!e)return;let t={};for(let{address:n,...o}of e){if(!(0,a.U)(n,{strict:!1}))throw new r.b({address:n});if(t[n])throw new i.Nc({address:n});t[n]=function(e){let{balance:t,nonce:n,state:r,stateDiff:o,code:a}=e,u={};if(void 0!==a&&(u.code=a),void 0!==t&&(u.balance=(0,s.eC)(t)),void 0!==n&&(u.nonce=(0,s.eC)(n)),void 0!==r&&(u.state=c(r)),void 0!==o){if(u.state)throw new i.Z8;u.stateDiff=c(o)}return u}(o)}return t}},88519:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var r=n(20320),o=n(86720),i=n(41709),a=n(90309),s=n(82865),c=n(91462);function u(e){let{account:t,gasPrice:n,maxFeePerGas:u,maxPriorityFeePerGas:l,to:d}=e,f=t?(0,r.T)(t):void 0;if(f&&!(0,c.U)(f.address))throw new i.b({address:f.address});if(d&&!(0,c.U)(d))throw new i.b({address:d});if(void 0!==n&&(void 0!==u||void 0!==l))throw new s.xY;if(u&&u>o.zL)throw new a.Hh({maxFeePerGas:u});if(l&&u&&l>u)throw new a.cs({maxFeePerGas:u,maxPriorityFeePerGas:l})}},95143:function(e,t,n){"use strict";let r;n.d(t,{h:function(){return i}});let o=256;function i(e=11){if(!r||o+e>512){r="",o=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(o,o+++e)}},5133:function(e,t,n){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}n.d(t,{D:function(){return r}})},33193:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var r=n(9211),o=n(54444),i=n(49224),a=n(11191),s=n(46760),c=n(23064);let u=e=>"object"==typeof e&&!Array.isArray(e);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.Z)(e);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.v,o=(0,s.useRef)([]),i=(0,c.useSyncExternalStoreWithSelector)(e,t,n,e=>e,(e,t)=>{if(u(e)&&u(t)&&o.current.length){for(let n of o.current)if(!r(e[n],t[n]))return!1;return!0}return r(e,t)});if(u(i)){let e={...i},t={};for(let[n,r]of Object.entries(e))t={...t,[n]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(n)||o.current.push(n),r)}};return Object.defineProperties(e,t),e}return i}(e=>(0,r.u)(t,{onChange:e}),()=>(0,o.D)(t))}},37437:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});var r=n(9211),o=n(46760),i=n(49224);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onConnect:t,onDisconnect:n}=e,a=(0,i.Z)(e);(0,o.useEffect)(()=>(0,r.u)(a,{onChange(e,r){if(("reconnecting"===r.status||"connecting"===r.status&&void 0===r.address)&&"connected"===e.status){let{address:n,addresses:o,chain:i,chainId:a,connector:s}=e,c="reconnecting"===r.status||void 0===r.status;null==t||t({address:n,addresses:o,chain:i,chainId:a,connector:s,isReconnected:c})}else"connected"===r.status&&"disconnected"===e.status&&(null==n||n())}}),[a,t,n])}},69146:function(e,t,n){"use strict";n.d(t,{K:function(){return v}});var r=n(60796),o=n(28649),i=n(15690),a=n(94732),s=n(94547),c=n(16272),u=n(82928);function l(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(u.Bd[e])}var d=n(62550);async function f(e,t){let{allowFailure:n=!0,chainId:r,contracts:o,...i}=t,a=e.getClient({chainId:r});return(0,c.s)(a,d.A,"multicall")({allowFailure:n,contracts:o,...i})}var p=n(69737);async function h(e,t){let{allowFailure:n=!0,blockNumber:o,blockTag:i,...a}=t,s=t.contracts;try{let t={};for(let[n,r]of s.entries()){let o=r.chainId??e.state.chainId;t[o]||(t[o]=[]),t[o]?.push({contract:r,index:n})}let r=(await Promise.all(Object.entries(t).map(([t,r])=>f(e,{...a,allowFailure:n,blockNumber:o,blockTag:i,chainId:Number.parseInt(t),contracts:r.map(({contract:e})=>e)})))).flat(),c=Object.values(t).flatMap(e=>e.map(({index:e})=>e));return r.reduce((e,t,n)=>(e&&(e[c[n]]=t),e),[])}catch(a){if(a instanceof r.uq)throw a;let t=()=>s.map(t=>(0,p.L)(e,{...t,blockNumber:o,blockTag:i}));if(n)return(await Promise.allSettled(t())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(t())}}async function m(e,t){let{address:n,blockNumber:u,blockTag:d,chainId:f,token:p,unit:h="ether"}=t;if(p)try{return y(e,{balanceAddress:n,chainId:f,symbolType:"string",tokenAddress:p})}catch(t){if(t instanceof r.uq){let t=await y(e,{balanceAddress:n,chainId:f,symbolType:"bytes32",tokenAddress:p}),r=(0,o.rR)((0,i.f)(t.symbol,{dir:"right"}));return{...t,symbol:r}}throw t}let m=e.getClient({chainId:f}),b=(0,c.s)(m,s.s,"getBalance"),w=await b(u?{address:n,blockNumber:u}:{address:n,blockTag:d}),g=e.chains.find(e=>e.id===f)??m.chain;return{decimals:g.nativeCurrency.decimals,formatted:(0,a.b)(w,l(h)),symbol:g.nativeCurrency.symbol,value:w}}async function y(e,t){let{balanceAddress:n,chainId:r,symbolType:o,tokenAddress:i,unit:s}=t,c={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:o}]}],address:i},[u,d,f]=await h(e,{allowFailure:!1,contracts:[{...c,functionName:"balanceOf",args:[n],chainId:r},{...c,functionName:"decimals",chainId:r},{...c,functionName:"symbol",chainId:r}]}),p=(0,a.b)(u??"0",l(s??d));return{decimals:d,formatted:p,symbol:f,value:u}}var b=n(65796),w=n(30517),g=n(24773),A=n(49224);function v(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,query:o={}}=n,i=(0,A.Z)(n),a=(0,g.x)({config:i}),s=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,...o}=t[1];if(!n)throw Error("address is required");return await m(e,{...o,address:n})??null},queryKey:function(e={}){return["balance",(0,b.OP)(e)]}(t)}}(i,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:a}),c=!!(r&&(null===(t=o.enabled)||void 0===t||t));return(0,w.aM)({...o,...s,enabled:c})}},48355:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var r=n(28103),o=n(47609);async function i(e,t){let n;if((n="function"==typeof t.connector?e._internal.connectors.setup(t.connector):t.connector).uid===e.state.current)throw new o.wi;try{e.setState(e=>({...e,status:"connecting"})),n.emitter.emit("message",{type:"connecting"});let r=await n.connect({chainId:t.chainId}),o=r.accounts;return n.emitter.off("connect",e._internal.events.connect),n.emitter.on("change",e._internal.events.change),n.emitter.on("disconnect",e._internal.events.disconnect),await e.storage?.setItem("recentConnectorId",n.id),e.setState(e=>({...e,connections:new Map(e.connections).set(n.uid,{accounts:o,chainId:r.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:o,chainId:r.chainId}}catch(t){throw e.setState(e=>({...e,status:e.current?"connected":"disconnected"})),t}}var a=n(46760),s=n(49224),c=n(47801);function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,s.Z)(e),{mutate:o,mutateAsync:u,...l}=(0,r.D)({...t,mutationFn:e=>i(n,e),mutationKey:["connect"]});return(0,a.useEffect)(()=>n.subscribe(e=>{let{status:t}=e;return t},(e,t)=>{"connected"===t&&"disconnected"===e&&l.reset()}),[n,l.reset]),{...l,connect:o,connectAsync:u,connectors:(0,c.Y)({config:n})}}},47801:function(e,t,n){"use strict";n.d(t,{Y:function(){return c}});var r=n(11191);let o=[];function i(e){let t=e.connectors;return(0,r.v)(o,t)?o:(o=t,t)}var a=n(46760),s=n(49224);function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.Z)(e);return(0,a.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.connectors.subscribe((e,t)=>{n(Object.values(e),t)})})(t,{onChange:e}),()=>i(t),()=>i(t))}},88758:function(e,t,n){"use strict";n.d(t,{q:function(){return l}});var r=n(28103);async function o(e,t={}){let n;if(t.connector)n=t.connector;else{let{connections:t,current:r}=e.state,o=t.get(r);n=o?.connector}let r=e.state.connections;n&&(await n.disconnect(),n.emitter.off("change",e._internal.events.change),n.emitter.off("disconnect",e._internal.events.disconnect),n.emitter.on("connect",e._internal.events.connect),r.delete(n.uid)),e.setState(e=>{if(0===r.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=r.values().next().value;return{...e,connections:new Map(r),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let n=e.state.connections.get(t)?.connector;if(!n)return;await e.storage?.setItem("recentConnectorId",n.id)}}var i=n(49224),a=n(11191);let s=[];function c(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,a.v)(s,t)?s:(s=t,t)}var u=n(46760);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,i.Z)(e),{mutate:s,mutateAsync:l,...d}=(0,r.D)({...t,mutationFn:e=>o(n,e),mutationKey:["disconnect"]});return{...d,connectors:(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.Z)(e);return(0,u.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>c(e),n,{equalityFn:a.v})})(t,{onChange:e}),()=>c(t),()=>c(t))})({config:n}).map(e=>e.connector),disconnect:s,disconnectAsync:l}}},17933:function(e,t,n){"use strict";n.d(t,{c:function(){return u}});var r=n(19471),o=n(16272),i=n(65796),a=n(30517),s=n(24773),c=n(49224);function u(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:u,query:l={}}=n,d=(0,c.Z)(n),f=(0,s.x)({config:d}),p=function(e,t={}){return{async queryFn({queryKey:t}){let{name:n,scopeKey:i,...a}=t[1];if(!n)throw Error("name is required");return function(e,t){let{chainId:n,...i}=t,a=e.getClient({chainId:n});return(0,o.s)(a,r.r,"getEnsAvatar")(i)}(e,{...a,name:n})},queryKey:function(e={}){return["ensAvatar",(0,i.OP)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),h=!!(u&&(null===(t=l.enabled)||void 0===t||t));return(0,a.aM)({...l,...p,enabled:h})}},73217:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var r=n(64313),o=n(16272),i=n(65796),a=n(30517),s=n(24773),c=n(49224);function u(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:u,query:l={}}=n,d=(0,c.Z)(n),f=(0,s.x)({config:d}),p=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:i,...a}=t[1];if(!n)throw Error("address is required");return function(e,t){let{chainId:n,...i}=t,a=e.getClient({chainId:n});return(0,o.s)(a,r.w,"getEnsName")(i)}(e,{...a,address:n})},queryKey:function(e={}){return["ensName",(0,i.OP)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),h=!!(u&&(null===(t=l.enabled)||void 0===t||t));return(0,a.aM)({...l,...p,enabled:h})}},4443:function(e,t,n){"use strict";n.d(t,{t:function(){return t8}});var r=n(87867),o=n(3518),i=n(11649),a=n(29745),s=n(15690),c=n(80913),u=n(31030),l=n(58451),d=n(49578),f=n(13505),p=n(74396);async function h(e,{blockNumber:t,blockTag:n,coinType:h,name:m,gatewayUrls:y,strict:b,universalResolverAddress:w}){let g=w;if(!g){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");g=(0,a.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a=(0,i.R)({abi:r.X$,functionName:"addr",...null!=h?{args:[(0,l.V)(m),BigInt(h)]}:{args:[(0,l.V)(m)]}}),u={address:g,abi:r.k3,functionName:"resolve",args:[(0,c.NC)((0,d.T)(m)),a],blockNumber:t,blockTag:n},b=(0,f.s)(e,p.L,"readContract"),w=y?await b({...u,args:[...u.args,y]}):await b(u);if("0x"===w[0])return null;let A=(0,o.k)({abi:r.X$,args:null!=h?[(0,l.V)(m),BigInt(h)]:void 0,functionName:"addr",data:w[0]});if("0x"===A||"0x00"===(0,s.f)(A))return null;return A}catch(e){if(b)throw e;if((0,u.c)(e,"resolve"))return null;throw e}}var m=n(19471),y=n(64313);async function b(e,{blockNumber:t,blockTag:n,name:r,universalResolverAddress:o}){let i=o;if(!i){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");i=(0,a.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}let[s]=await (0,f.s)(e,p.L,"readContract")({address:i,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,c.NC)((0,d.T)(r))],blockNumber:t,blockTag:n});return s}var w=n(69881),g=n(26395),A=n(20320),v=n(32810),x=n(77839),C=n(47734),E=n(88519);async function B(e,t){let{account:n=e.account,blockNumber:r,blockTag:o="latest",blobs:i,data:a,gas:s,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,to:p,value:h,...m}=t,y=n?(0,A.T)(n):void 0;try{(0,E.F)(t);let n=r?(0,c.eC)(r):void 0,b=e.chain?.formatters?.transactionRequest?.format,w=(b||C.tG)({...(0,x.K)(m,{format:b}),from:y?.address,blobs:i,data:a,gas:s,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,to:p,value:h}),g=await e.request({method:"eth_createAccessList",params:[w,n||o]});return{accessList:g.accessList,gasUsed:BigInt(g.gasUsed)}}catch(n){throw(0,v.P)(n,{...t,account:y,chain:e.chain})}}function k(e,{method:t}){let n={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:r,status:o,transport:i})=>{"success"===o&&t===e&&(n[r]=i.request)}),t=>n[t]||e.request}async function I(e){let t=k(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}var P=n(11681),M=n(17670);class N extends M.G{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var O=n(43153),S=n(42330),R=n(37821),F=n(49877),T=n(97327),D=n(78137);let L="/docs/contract/encodeEventTopics";function U(e){let{abi:t,eventName:n,args:r}=e,o=t[0];if(n){let e=(0,D.mE)({abi:t,name:n});if(!e)throw new P.mv(n,{docsPath:L});o=e}if("event"!==o.type)throw new P.mv(void 0,{docsPath:L});let i=(0,T.t)(o),a=(0,R.n)(i),s=[];if(r&&"inputs"in o){let e=o.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(s=e?.map((e,n)=>Array.isArray(t[n])?t[n].map((r,o)=>Q({param:e,value:t[n][o]})):void 0!==t[n]&&null!==t[n]?Q({param:e,value:t[n]}):null)??[])}return[a,...s]}function Q({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,S.w)((0,O.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new N(e.type);return(0,F.E)([e],[t])}async function q(e,t){let{address:n,abi:r,args:o,eventName:i,fromBlock:a,strict:s,toBlock:u}=t,l=k(e,{method:"eth_newFilter"}),d=i?U({abi:r,args:o,eventName:i}):void 0,f=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"==typeof a?(0,c.eC)(a):a,toBlock:"bigint"==typeof u?(0,c.eC)(u):u,topics:d}]});return{abi:r,args:o,eventName:i,id:f,request:l(f),strict:!!s,type:"event"}}async function G(e,{address:t,args:n,event:r,events:o,fromBlock:i,strict:a,toBlock:s}={}){let u=o??(r?[r]:void 0),l=k(e,{method:"eth_newFilter"}),d=[];u&&(d=[u.flatMap(e=>U({abi:[e],eventName:e.name,args:n}))],r&&(d=d[0]));let f=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof i?(0,c.eC)(i):i,toBlock:"bigint"==typeof s?(0,c.eC)(s):s,...d.length?{topics:d}:{}}]});return{abi:u,args:n,eventName:r?r.name:void 0,fromBlock:i,id:f,request:l(f),strict:!!a,toBlock:s,type:"event"}}async function z(e){let t=k(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}var W=n(30003),j=n(66883);async function H(e,t){let{abi:n,address:r,args:o,functionName:a,dataSuffix:s,...c}=t,u=(0,i.R)({abi:n,args:o,functionName:a});try{return await (0,f.s)(e,j.Q,"estimateGas")({data:`${u}${s?s.replace("0x",""):""}`,to:r,...c})}catch(t){let e=c.account?(0,A.T)(c.account):void 0;throw(0,W.S)(t,{abi:n,address:r,args:o,docsPath:"/docs/contract/estimateContractGas",functionName:a,sender:e?.address})}}var Z=n(12967),K=n(27320),V=n(94547);async function J(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}var Y=n(45976),X=n(96842),$=n(28649);async function _(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){let o;let i=void 0!==n?(0,c.eC)(n):void 0;return o=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||r]},{dedupe:!!i}),(0,$.ly)(o)}var ee=n(99175);async function et(e,{address:t,blockNumber:n,blockTag:r="latest"}){let o=void 0!==n?(0,c.eC)(n):void 0,i=await e.request({method:"eth_getCode",params:[t,o||r]},{dedupe:!!o});if("0x"!==i)return i}var en=n(18492),er=n(47445);async function eo(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:i,events:a,args:s,strict:u}={}){let l=a??(i?[i]:void 0),d=[];l&&(d=[l.flatMap(e=>U({abi:[e],eventName:e.name,args:a?void 0:s}))],i&&(d=d[0]));let f=(n?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:n}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof r?(0,c.eC)(r):r,toBlock:"bigint"==typeof o?(0,c.eC)(o):o}]})).map(e=>(0,er.U)(e));return l?(0,en.h)({abi:l,args:s,logs:f,strict:u??!1}):f}async function ei(e,t){let{abi:n,address:r,args:o,blockHash:i,eventName:a,fromBlock:s,toBlock:c,strict:u}=t,l=a?(0,D.mE)({abi:n,name:a}):void 0,d=l?void 0:n.filter(e=>"event"===e.type);return(0,f.s)(e,eo,"getLogs")({address:r,args:o,blockHash:i,event:l,events:d,fromBlock:s,toBlock:c,strict:u})}class ea extends M.G{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function es(e,t){let{address:n,factory:r,factoryData:o}=t;try{let[t,i,a,s,c,u,l]=await (0,f.s)(e,p.L,"readContract")({abi:ec,address:n,functionName:"eip712Domain",factory:r,factoryData:o});return{domain:{name:i,version:a,chainId:Number(s),verifyingContract:c,salt:u},extensions:l,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new ea({address:n});throw e}}let ec=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function eu(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:o}){var i;let a=n?(0,c.eC)(n):void 0;return{baseFeePerGas:(i=await e.request({method:"eth_feeHistory",params:[(0,c.eC)(t),a||r,o]},{dedupe:!!a})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:i.gasUsedRatio,oldestBlock:BigInt(i.oldestBlock),reward:i.reward?.map(e=>e.map(e=>BigInt(e)))}}async function el(e,{filter:t}){let n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof r[0])return r;let o=r.map(e=>(0,er.U)(e));return"abi"in t&&t.abi?(0,en.h)({abi:t.abi,logs:o,strict:n}):o}async function ed(e,{filter:t}){let n=t.strict??!1,r=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,er.U)(e));return t.abi?(0,en.h)({abi:t.abi,logs:r,strict:n}):r}var ef=n(5144);async function ep(e,{address:t,blockNumber:n,blockTag:r,storageKeys:o}){var i;let a=void 0!==n?(0,c.eC)(n):void 0;return{...i=await e.request({method:"eth_getProof",params:[t,o,a||(r??"latest")]}),balance:i.balance?BigInt(i.balance):void 0,nonce:i.nonce?(0,$.ly)(i.nonce):void 0,storageProof:i.storageProof?i.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}}async function eh(e,{address:t,blockNumber:n,blockTag:r="latest",slot:o}){let i=void 0!==n?(0,c.eC)(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,i||r]})}var em=n(74422),ey=n(4801),eb=n(11238),ew=n(75456),eg=n(62550);class eA extends Error{constructor(e,t={}){let n=(()=>{if(t.cause instanceof eA){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause?.message?t.cause.message:t.details})(),r=t.cause instanceof eA&&t.cause.docsPath||t.docsPath,o=`https://oxlib.sh${r??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...n||r?["",n?`Details: ${n}`:void 0,r?`See: ${o}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"ox@0.1.1"}),this.cause=t.cause,this.details=n,this.docs=o,this.docsPath=r,this.shortMessage=e}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,n):n?null:t}(this,e)}}function ev(e,t){if(eR(e)>t)throw new eL({givenSize:eR(e),maxSize:t})}function ex(e,t={}){let{dir:n,size:r=32}=t;if(0===r)return e;let o=e.replace("0x","");if(o.length>2*r)throw new eQ({size:Math.ceil(o.length/2),targetSize:r,type:"Hex"});return`0x${o["right"===n?"padEnd":"padStart"](2*r,"0")}`}let eC=new TextEncoder,eE=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function eB(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function ek(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?(ev(n,t.size),eN(n,t.size)):n}function eI(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=eE[e[t]];let r=`0x${n}`;return"number"==typeof t.size?(ev(r,t.size),eO(r,t.size)):r}function eP(e,t={}){let n;let{signed:r,size:o}=t,i=BigInt(e);o?n=r?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let a="bigint"==typeof n&&r?-n-1n:0;if(n&&i>n||i<a){let t="bigint"==typeof e?"n":"";throw new eF({max:n?`${n}${t}`:void 0,min:`${a}${t}`,signed:r,size:o,value:`${e}${t}`})}let s=(r&&i<0?(1n<<BigInt(8*o))+BigInt(i):i).toString(16),c=`0x${s}`;return o?eN(c,o):c}function eM(e,t={}){return eI(eC.encode(e),t)}function eN(e,t){return ex(e,{dir:"left",size:t})}function eO(e,t){return ex(e,{dir:"right",size:t})}function eS(e,t,n,r={}){let{strict:o}=r;!function(e,t){if("number"==typeof t&&t>0&&t>eR(e)-1)throw new eU({offset:t,position:"start",size:eR(e)})}(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return o&&function(e,t,n){if("number"==typeof t&&"number"==typeof n&&eR(e)!==n-t)throw new eU({offset:n,position:"end",size:eR(e)})}(i,t,n),i}function eR(e){return Math.ceil((e.length-2)/2)}class eF extends eA{constructor({max:e,min:t,signed:n,size:r,value:o}){super(`Number \`${o}\` is not in safe${r?` ${8*r}-bit`:""}${n?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class eT extends eA{constructor(e){super(`Value \`${"object"==typeof e?JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"#__bigint":t,void 0):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class eD extends eA{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class eL extends eA{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class eU extends eA{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class eQ extends eA{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function eq(e){return{address:e.address,amount:eP(e.amount),index:eP(e.index),validatorIndex:eP(e.validatorIndex)}}var eG=n(60796),ez=n(90309),eW=n(89741),ej=n(55535),eH=n(56177);async function eZ(e,t){let{blockNumber:n,blockTag:r="latest",blocks:a,returnFullTransactions:s,traceTransfers:u,validation:l}=t;try{let t=[];for(let e of a){var d;let n=e.blockOverrides?(d=e.blockOverrides,{..."bigint"==typeof d.baseFeePerGas&&{baseFeePerGas:eP(d.baseFeePerGas)},..."bigint"==typeof d.blobBaseFee&&{blobBaseFee:eP(d.blobBaseFee)},..."string"==typeof d.feeRecipient&&{feeRecipient:d.feeRecipient},..."bigint"==typeof d.gasLimit&&{gasLimit:eP(d.gasLimit)},..."bigint"==typeof d.number&&{number:eP(d.number)},..."bigint"==typeof d.prevRandao&&{prevRandao:eP(d.prevRandao)},..."bigint"==typeof d.time&&{time:eP(d.time)},...d.withdrawals&&{withdrawals:d.withdrawals.map(eq)}}):void 0,r=e.calls.map(e=>{let t=e.account?(0,A.T)(e.account):void 0,n={...e,data:e.abi?(0,i.R)(e):e.data,from:e.from??t?.address};return(0,E.F)(n),(0,C.tG)(n)}),o=e.stateOverrides?(0,eH.mF)(e.stateOverrides):void 0;t.push({blockOverrides:n,calls:r,stateOverrides:o})}let f=n?(0,c.eC)(n):void 0;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:s,traceTransfers:u,validation:l},f||r]})).map((e,t)=>({...(0,ej.Z)(e),calls:e.calls.map((e,n)=>{let{abi:r,args:i,functionName:s,to:c}=a[t].calls[n],u=e.error?.data??e.returnData,l=BigInt(e.gasUsed),d=e.logs?.map(e=>er.U(e)),f="0x1"===e.status?"success":"failure",p=r&&"success"===f?(0,o.k)({abi:r,data:u,functionName:s}):null,h=(()=>{let t;if("success"!==f&&(e.error?.data==="0x"?t=new P.wb:e.error&&(t=new eG.VQ(e.error)),t))return(0,W.S)(t,{abi:r??[],address:c,args:i,functionName:s??"<unknown>"})})();return{data:u,gasUsed:l,logs:d,status:f,..."success"===f?{result:p}:{error:h}}})}))}catch(t){let e=(0,eW.k)(t,{});if(e instanceof ez.cj)throw t;throw e}}var eK=n(30281),eV=n(29052),eJ=n(31991),eY=n(34468),eX=n(41923);let e$=/^tuple(?<array>(\[(\d*)\])*)$/;function e_(e){let t="",n=e.length;for(let r=0;r<n;r++)t+=function e(t){let n=t.type;if(e$.test(t.type)&&"components"in t){n="(";let r=t.components.length;for(let o=0;o<r;o++)n+=e(t.components[o]),o<r-1&&(n+=", ");let o=(0,eX.Zw)(e$,t.type);return n+=`)${o?.array??""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n} indexed`),t.name)?`${n} ${t.name}`:n}(e[r]),r!==n-1&&(t+=", ");return t}function e0(e){return"function"===e.type?`function ${e.name}(${e_(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs.length?` returns (${e_(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${e_(e.inputs)})`:"error"===e.type?`error ${e.name}(${e_(e.inputs)})`:"constructor"===e.type?`constructor(${e_(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback()":"receive() external payable"}var e1=n(59400);let e6={zero:48,nine:57,A:65,F:70,a:97,f:102};function e2(e){return e>=e6.zero&&e<=e6.nine?e-e6.zero:e>=e6.A&&e<=e6.F?e-(e6.A-10):e>=e6.a&&e<=e6.f?e-(e6.a-10):void 0}let e5=new TextEncoder;class e3 extends eA{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class e8 extends eA{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}function e4(e,t={}){let{as:n="string"==typeof e?"Hex":"Bytes"}=t,r=(0,e1.fr)(e instanceof Uint8Array?e:"string"==typeof e?function(e,t={}){let{size:n}=t,r=e;n&&(ev(e,n),r=eO(e,n));let o=r.slice(2);o.length%2&&(o=`0${o}`);let i=o.length/2,a=new Uint8Array(i);for(let e=0,t=0;e<i;e++){let n=e2(o.charCodeAt(t++)),r=e2(o.charCodeAt(t++));if(void 0===n||void 0===r)throw new eA(`Invalid byte sequence ("${o[t-2]}${o[t-1]}" in "${o}").`);a[e]=16*n+r}return a}(e):e instanceof Uint8Array?e:new Uint8Array(e));return"Bytes"===n?r:eI(r)}class e9 extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}let e7={checksum:new e9(8192)}.checksum,te=/^0x[a-fA-F0-9]{40}$/;function tt(e,t={}){let{strict:n=!0}=t;if(!te.test(e))throw new tr({address:e,cause:new to});if(n){if(e.toLowerCase()===e)return;if(function(e){if(e7.has(e))return e7.get(e);tt(e,{strict:!1});let t=e.substring(2).toLowerCase(),n=e4(function(e,t={}){let{size:n}=t,r=e5.encode(e);return"number"==typeof n?(!function(e,t){if(e.length>t)throw new e3({givenSize:e.length,maxSize:t})}(r,n),function(e,t={}){let{dir:n,size:r=32}=t;if(0===r)return e;if(e.length>r)throw new e8({size:e.length,targetSize:r,type:"Bytes"});let o=new Uint8Array(r);for(let t=0;t<r;t++){let i="right"===n;o[i?t:r-t-1]=e[i?t:e.length-t-1]}return o}(r,{dir:"right",size:n})):r}(t),{as:"Bytes"}),r=t.split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&r[e]&&(r[e]=r[e].toUpperCase()),(15&n[e>>1])>=8&&r[e+1]&&(r[e+1]=r[e+1].toUpperCase());let o=`0x${r.join("")}`;return e7.set(e,o),o}(e)!==e)throw new tr({address:e,cause:new ti})}}function tn(e,t={}){let{strict:n=!0}=t??{};try{return tt(e,{strict:n}),!0}catch{return!1}}class tr extends eA{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class to extends eA{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class ti extends eA{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function ta(e){let t=!0,n="",r=0,o="",i=!1;for(let a=0;a<e.length;a++){let s=e[a];if(["(",")",","].includes(s)&&(t=!0),"("===s&&r++,")"===s&&r--,t){if(0===r){if(" "===s&&["event","function","error",""].includes(o))o="";else if(o+=s,")"===s){i=!0;break}continue}if(" "===s){","!==e[a-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}o+=s,n+=s}}if(!i)throw new eA("Unable to normalize signature.");return o}function ts(e,t={}){let{prepare:n=!0}=t,r=Array.isArray(e)||"string"==typeof e?function(e){let t;if("string"==typeof e)t=(0,eY.cK)(e);else{let n=(0,eJ.D)(e),r=e.length;for(let o=0;o<r;o++){let r=e[o];if(!(0,eV.N0)(r)){t=(0,eY.cK)(r,n);break}}}if(!t)throw new eK.a_({signature:e});return t}(e):e;return{...r,...n?{hash:tu(r)}:{}}}function tc(e){return eS(tu(e),0,4)}function tu(e){return"string"!=typeof e&&"hash"in e&&e.hash?e.hash:e4(eM(ta("string"==typeof e?e:e0(e))))}class tl extends eA{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${ta(e0(e.abiItem))}\`, and`,`\`${t.type}\` in \`${ta(e0(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class td extends eA{constructor({name:e,data:t,type:n="item"}){super(`ABI ${n}${e?` with name "${e}"`:t?` with data "${t}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}let tf=/^(.*)\[([0-9]*)\]$/,tp=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,th=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function tm(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:o}=e[n];r?t+=32:t+=eR(o)}let n=[],r=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:s}=e[i];a?(n.push(eP(t+o,{size:32})),r.push(s),o+=eR(s)):n.push(s)}return eB(...n,...r)}function ty(e,t,n){let{checksumAddress:r=!1}=n??{};if(e.length!==t.length)throw new tA({expectedLength:e.length,givenLength:t.length});let o=tm(function({checksumAddress:e,parameters:t,values:n}){let r=[];for(let o=0;o<t.length;o++)r.push(function e({checksumAddress:t=!1,parameter:n,value:r}){let o=function(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}(n.type);if(o){let[i,a]=o;return function(t,n){let{checksumAddress:r,length:o,parameter:i}=n,a=null===o;if(!Array.isArray(t))throw new tv(t);if(!a&&t.length!==o)throw new tw({expectedLength:o,givenLength:t.length,type:`${i.type}[${o}]`});let s=!1,c=[];for(let n=0;n<t.length;n++){let o=e({checksumAddress:r,parameter:i,value:t[n]});o.dynamic&&(s=!0),c.push(o)}if(a||s){let e=tm(c);if(a){let t=eP(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?eB(t,e):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:eB(...c.map(({encoded:e})=>e))}}(r,{checksumAddress:t,length:i,parameter:{...n,type:a}})}if("tuple"===n.type)return function(t,n){let{checksumAddress:r,parameter:o}=n,i=!1,a=[];for(let n=0;n<o.components.length;n++){let s=o.components[n],c=Array.isArray(t)?n:s.name,u=e({checksumAddress:r,parameter:s,value:t[c]});a.push(u),u.dynamic&&(i=!0)}return{dynamic:i,encoded:i?tm(a):eB(...a.map(({encoded:e})=>e))}}(r,{checksumAddress:t,parameter:n});if("address"===n.type)return function(e,t){let{checksum:n=!1}=t;return tt(e,{strict:n}),{dynamic:!1,encoded:eN(e.toLowerCase())}}(r,{checksum:t});if("bool"===n.type)return function(e){if("boolean"!=typeof e)throw new eA(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:eN(ek(e))}}(r);if(n.type.startsWith("uint")||n.type.startsWith("int")){let e=n.type.startsWith("int"),[,,t="256"]=th.exec(n.type)??[];return function(e,{signed:t,size:n}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new eF({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:eP(e,{size:32,signed:t})}}(r,{signed:e,size:Number(t)})}if(n.type.startsWith("bytes"))return function(e,{type:t}){let[,n]=t.split("bytes"),r=eR(e);if(!n){let t=e;return r%32!=0&&(t=eO(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:eB(eN(eP(r,{size:32})),t)}}if(r!==Number.parseInt(n))throw new tg({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:eO(e)}}(r,{type:n.type});if("string"===n.type)return function(e){let t=eM(e),n=Math.ceil(eR(t)/32),r=[];for(let e=0;e<n;e++)r.push(eO(eS(t,32*e,(e+1)*32)));return{dynamic:!0,encoded:eB(eO(eP(eR(t),{size:32})),...r)}}(r);throw new tx(n.type)}({checksumAddress:e,parameter:t[o],value:n[o]}));return r}({checksumAddress:r,parameters:e,values:t}));return 0===o.length?"0x":o}function tb(e,t){if(e.length!==t.length)throw new tA({expectedLength:e.length,givenLength:t.length});let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r];n.push(tb.encode(o,i))}return eB(...n)}(tb||(tb={})).encode=function e(t,n,r=!1){if("address"===t)return tt(n),eN(n.toLowerCase(),r?32:0);if("string"===t)return eM(n);if("bytes"===t)return n;if("bool"===t)return eN(ek(n),r?32:1);let o=t.match(th);if(o){let[e,t,i="256"]=o,a=Number.parseInt(i)/8;return eP(n,{size:r?32:a,signed:"int"===t})}let i=t.match(tp);if(i){let[e,t]=i;if(Number.parseInt(t)!==(n.length-2)/2)throw new tg({expectedSize:Number.parseInt(t),value:n});return eO(n,r?32:0)}let a=t.match(tf);if(a&&Array.isArray(n)){let[t,r]=a,o=[];for(let t=0;t<n.length;t++)o.push(e(r,n[t],!0));return 0===o.length?"0x":eB(...o)}throw new tx(t)};class tw extends eA{constructor({expectedLength:e,givenLength:t,type:n}){super(`Array length mismatch for type \`${n}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class tg extends eA{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${eR(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class tA extends eA{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch.
|
|
14
14
|
Expected length (parameters): ${e}
|
|
15
15
|
Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class tv extends eA{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class tx extends eA{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function tC(e,t={}){return ts(e,t)}let tE="0x0000000000000000000000000000000000000000";var tB=n(4402);async function tk(e,t){let{blockNumber:n,blockTag:r,calls:o,stateOverrides:a,traceAssetChanges:s,traceTransfers:c,validation:u}=t,l=t.account?(0,A.T)(t.account):void 0;if(s&&!l)throw new M.G("`account` is required when `traceAssetChanges` is true");let d=l?function(e,t){let{bytecode:n,args:r}=t;return eB(n,e.inputs?.length&&r?.length?ty(e.inputs,r):"0x")}(ts("constructor(bytes, bytes)"),{bytecode:tB.NO,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",function(e,...t){let{overloads:n}=e,r=n?function(e,t,n){let r=function(e,t,n){let r;let{args:o=[],prepare:i=!0}=n??{},a=function(e,t={}){let{strict:n=!1}=t;try{return!function(e,t={}){let{strict:n=!1}=t;if(!e||"string"!=typeof e)throw new eT(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new eD(e)}(e,{strict:n}),!0}catch{return!1}}(t,{strict:!1}),s=e.filter(e=>a?"function"===e.type||"error"===e.type?tc(e)===eS(t,0,4):"event"===e.type&&tu(e)===t:"name"in e&&e.name===t);if(0===s.length)throw new td({name:t});if(1===s.length)return{...s[0],...i?{hash:tu(s[0])}:{}};for(let e of s)if("inputs"in e){if(!o||0===o.length){if(!e.inputs||0===e.inputs.length)return{...e,...i?{hash:tu(e)}:{}};continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===o.length&&o.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,o=n.type;switch(o){case"address":return tn(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===o&&"components"in n)return Object.values(n.components).every((n,r)=>e(Object.values(t)[r],n));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(o))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:o.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(r&&"inputs"in r&&r.inputs){let t=function e(t,n,r){for(let o in t){let i=t[o],a=n[o];if("tuple"===i.type&&"tuple"===a.type&&"components"in i&&"components"in a)return e(i.components,a.components,r[o]);let s=[i.type,a.type];if(s.includes("address")&&s.includes("bytes20")||(s.includes("address")&&s.includes("string")||s.includes("address")&&s.includes("bytes"))&&tn(r[o],{strict:!1}))return s}}(e.inputs,r.inputs,o);if(t)throw new tl({abiItem:e,type:t[0]},{abiItem:r,type:t[1]})}r=e}}let c=(()=>{if(r)return r;let[e,...t]=s;return{...e,overloads:t}})();if(!c)throw new td({name:t});return{...c,...i?{hash:tu(c)}:{}}}(e,t,n);if("function"!==r.type)throw new td({name:t,type:"function"});return r}([e,...n],e.name,{args:t[0]}):e,o=tc(r),i=t.length>0?ty(r.inputs,t[0]):void 0;return i?eB(o,i):o}(tC("function getBalance(address)"),[l.address])]}):void 0,f=s?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;let{accessList:n}=await B(e,{account:l.address,...t,data:t.abi?(0,i.R)(t):t.data});return n.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>e.flat().filter(Boolean)):[],p=a?.map(e=>e.address===l?.address?{...e,nonce:0}:e),h=await eZ(e,{blockNumber:n,blockTag:r,blocks:[...s?[{calls:[{data:d}],stateOverrides:a},{calls:f.map((e,t)=>({abi:[tC("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:e,from:tE,nonce:t})),stateOverrides:[{address:tE,nonce:0}]}]:[],{calls:[...o,{}].map((e,t)=>({...e,from:l?.address,nonce:t})),stateOverrides:p},...s?[{calls:[{data:d}]},{calls:f.map((e,t)=>({abi:[tC("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:e,from:tE,nonce:t})),stateOverrides:[{address:tE,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[tC("function decimals() returns (uint256)")],functionName:"decimals",from:tE,nonce:t})),stateOverrides:[{address:tE,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[tC("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:tE,nonce:t})),stateOverrides:[{address:tE,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[tC("function symbol() returns (string)")],functionName:"symbol",from:tE,nonce:t})),stateOverrides:[{address:tE,nonce:0}]}]:[]],traceTransfers:c,validation:u}),m=s?h[2]:h[0],[y,b,,w,g,v,x,C]=s?h:[],{calls:E,...k}=m,I=E.slice(0,-1)??[],P=[...y?.calls??[],...b?.calls??[]].map(e=>"success"===e.status?(0,$.y_)(e.data):null),N=[...w?.calls??[],...g?.calls??[]].map(e=>"success"===e.status?(0,$.y_)(e.data):null),O=(v?.calls??[]).map(e=>"success"===e.status?e.result:null),S=(C?.calls??[]).map(e=>"success"===e.status?e.result:null),R=(x?.calls??[]).map(e=>"success"===e.status?e.result:null),F=[];for(let[e,t]of N.entries()){let n=P[e];if("bigint"!=typeof t||"bigint"!=typeof n)continue;let r=O[e-1],o=S[e-1],i=R[e-1],a=0===e?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:f[e-1],decimals:i||r?Number(r??1):void 0,symbol:o??void 0};F.some(e=>e.token.address===a.address)||F.push({token:a,value:{pre:n,post:t,diff:t-n}})}return{assetChanges:F,block:k,results:I}}var tI=n(94269);async function tP(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}var tM=n(44962),tN=n(81956),tO=n(67543),tS=n(39278),tR=n(658);let tF="0x6492649264926492649264926492649264926492649264926492649264926492";var tT=n(65628),tD=n(31727),tL=n(34094),tU=n(25594);async function tQ(e,t){let{address:n,factory:o,factoryData:a,hash:s,signature:u,universalSignatureVerifierAddress:l=e.chain?.contracts?.universalSignatureVerifier?.address,...d}=t,p=(0,tR.v)(u)?u:"object"==typeof u&&"r"in u&&"s"in u?(0,tU.V)(u):(0,c.ci)(u),h=await (async()=>o||a?(0,tT.p5)(p,-32)===tF?p:function(e){let{address:t,data:n,signature:r,to:o="hex"}=e,i=(0,tL.SM)([(0,F.E)([{type:"address"},{type:"bytes"},{type:"bytes"}],[t,n,r]),tF]);return"hex"===o?i:(0,O.nr)(i)}({address:o,data:a,signature:p}):p)();try{let t=l?{to:l,data:(0,i.R)({abi:r.$o,functionName:"isValidSig",args:[n,s,h]}),...d}:{data:(0,tN.w)({abi:r.$o,args:[n,s,h],bytecode:tB.ST}),...d},{data:o}=await (0,f.s)(e,g.R,"call")(t);return(0,$.XA)(o??"0x0")}catch(e){try{if((0,tS.E)((0,tO.K)(n),await (0,tD.R)({hash:s,signature:u})))return!0}catch{}if(e instanceof eG.cg)return!1;throw e}}async function tq(e,{address:t,message:n,factory:r,factoryData:o,signature:i,...a}){return tQ(e,{address:t,factory:r,factoryData:o,hash:(0,tM.r)(n),signature:i,...a})}var tG=n(7390);async function tz(e,t){let{address:n,factory:r,factoryData:o,signature:i,message:a,primaryType:s,types:c,domain:u,...l}=t;return tQ(e,{address:n,factory:r,factoryData:o,hash:(0,tG.Jv)({message:a,primaryType:s,types:c,domain:u}),signature:i,...l})}var tW=n(24770),tj=n(94972),tH=n(8575),tZ=n(25884),tK=n(31182),tV=n(57977),tJ=n(92657),tY=n(48920);let tX=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,t$=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;async function t_(e,t){let{address:n,domain:r,message:o,nonce:i,scheme:a,signature:s,time:c=new Date,...u}=t,l=function(e){let{scheme:t,statement:n,...r}=e.match(tX)?.groups??{},{chainId:o,expirationTime:i,issuedAt:a,notBefore:s,requestId:c,...u}=e.match(t$)?.groups??{},l=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...u,...o?{chainId:Number(o)}:{},...i?{expirationTime:new Date(i)}:{},...a?{issuedAt:new Date(a)}:{},...s?{notBefore:new Date(s)}:{},...c?{requestId:c}:{},...l?{resources:l}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}(o);if(!l.address||!function(e){let{address:t,domain:n,message:r,nonce:o,scheme:i,time:a=new Date}=e;if(n&&r.domain!==n||o&&r.nonce!==o||i&&r.scheme!==i||r.expirationTime&&a>=r.expirationTime||r.notBefore&&a<r.notBefore)return!1;try{if(!r.address||t&&!(0,tS.E)(r.address,t))return!1}catch{return!1}return!0}({address:n,domain:r,message:l,nonce:i,scheme:a,time:c}))return!1;let d=(0,tM.r)(o);return tQ(e,{address:l.address,hash:d,signature:s,...u})}var t0=n(48823),t1=n(95678);function t6(e){return{call:t=>(0,g.R)(e,t),createAccessList:t=>B(e,t),createBlockFilter:()=>I(e),createContractEventFilter:t=>q(e,t),createEventFilter:t=>G(e,t),createPendingTransactionFilter:()=>z(e),estimateContractGas:t=>H(e,t),estimateGas:t=>(0,j.Q)(e,t),getBalance:t=>(0,V.s)(e,t),getBlobBaseFee:()=>J(e),getBlock:t=>(0,Y.Q)(e,t),getBlockNumber:t=>(0,X.z)(e,t),getBlockTransactionCount:t=>_(e,t),getBytecode:t=>et(e,t),getChainId:()=>(0,ee.L)(e),getCode:t=>et(e,t),getContractEvents:t=>ei(e,t),getEip712Domain:t=>es(e,t),getEnsAddress:t=>h(e,t),getEnsAvatar:t=>(0,m.r)(e,t),getEnsName:t=>(0,y.w)(e,t),getEnsResolver:t=>b(e,t),getEnsText:t=>(0,w.g)(e,t),getFeeHistory:t=>eu(e,t),estimateFeesPerGas:t=>(0,Z.X)(e,t),getFilterChanges:t=>el(e,t),getFilterLogs:t=>ed(e,t),getGasPrice:()=>(0,ef.o)(e),getLogs:t=>eo(e,t),getProof:t=>ep(e,t),estimateMaxPriorityFeePerGas:t=>(0,K._)(e,t),getStorageAt:t=>eh(e,t),getTransaction:t=>(0,em.f)(e,t),getTransactionConfirmations:t=>(0,ey.a)(e,t),getTransactionCount:t=>(0,eb.K)(e,t),getTransactionReceipt:t=>(0,ew.a)(e,t),multicall:t=>(0,eg.A)(e,t),prepareTransactionRequest:t=>(0,t0.ZE)(e,t),readContract:t=>(0,p.L)(e,t),sendRawTransaction:t=>(0,t1.p)(e,t),simulate:t=>eZ(e,t),simulateBlocks:t=>eZ(e,t),simulateCalls:t=>tk(e,t),simulateContract:t=>(0,tI.a)(e,t),verifyMessage:t=>tq(e,t),verifySiweMessage:t=>t_(e,t),verifyTypedData:t=>tz(e,t),uninstallFilter:t=>tP(e,t),waitForTransactionReceipt:t=>(0,tW.e)(e,t),watchBlocks:t=>(0,tH.p)(e,t),watchBlockNumber:t=>(0,tj.q)(e,t),watchContractEvent:t=>(function(e,t){let{abi:n,address:r,args:o,batch:i=!0,eventName:a,fromBlock:s,onError:c,onLogs:u,poll:l,pollingInterval:d=e.pollingInterval,strict:p}=t;return(void 0!==l?l:"bigint"==typeof s||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{let t=p??!1,l=(0,tY.P)(["watchContractEvent",r,o,i,e.uid,a,d,t,s]);return(0,tV.N7)(l,{onLogs:u,onError:c},c=>{let u,l;void 0!==s&&(u=s-1n);let p=!1,h=(0,tJ.$)(async()=>{if(!p){try{l=await (0,f.s)(e,q,"createContractEventFilter")({abi:n,address:r,args:o,eventName:a,strict:t,fromBlock:s})}catch{}p=!0;return}try{let s;if(l)s=await (0,f.s)(e,el,"getFilterChanges")({filter:l});else{let i=await (0,f.s)(e,X.z,"getBlockNumber")({});s=u&&u<i?await (0,f.s)(e,ei,"getContractEvents")({abi:n,address:r,args:o,eventName:a,fromBlock:u+1n,toBlock:i,strict:t}):[],u=i}if(0===s.length)return;if(i)c.onLogs(s);else for(let e of s)c.onLogs([e])}catch(e){l&&e instanceof tZ.yR&&(p=!1),c.onError?.(e)}},{emitOnBegin:!0,interval:d});return async()=>{l&&await (0,f.s)(e,tP,"uninstallFilter")({filter:l}),h()}})})():(()=>{let t=(0,tY.P)(["watchContractEvent",r,o,i,e.uid,a,d,p??!1]),s=!0,l=()=>s=!1;return(0,tV.N7)(t,{onLogs:u,onError:c},t=>((async()=>{try{let i=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),c=a?U({abi:n,eventName:a,args:o}):[],{unsubscribe:u}=await i.subscribe({params:["logs",{address:r,topics:c}],onData(e){if(!s)return;let r=e.result;try{let{eventName:e,args:o}=(0,tK.F)({abi:n,data:r.data,topics:r.topics,strict:p}),i=(0,er.U)(r,{args:o,eventName:e});t.onLogs([i])}catch(i){let e,n;if(i instanceof P.SM||i instanceof P.Gy){if(p)return;e=i.abiItem.name,n=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let o=(0,er.U)(r,{args:n?[]:{},eventName:e});t.onLogs([o])}},onError(e){t.onError?.(e)}});l=u,s||l()}catch(e){c?.(e)}})(),()=>l()))})()})(e,t),watchEvent:t=>(function(e,{address:t,args:n,batch:r=!0,event:o,events:i,fromBlock:a,onError:s,onLogs:c,poll:u,pollingInterval:l=e.pollingInterval,strict:d}){let p,h;let m=void 0!==u?u:"bigint"==typeof a||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type),y=d??!1;return m?(()=>{let u=(0,tY.P)(["watchEvent",t,n,r,e.uid,o,l,a]);return(0,tV.N7)(u,{onLogs:c,onError:s},s=>{let c,u;void 0!==a&&(c=a-1n);let d=!1,p=(0,tJ.$)(async()=>{if(!d){try{u=await (0,f.s)(e,G,"createEventFilter")({address:t,args:n,event:o,events:i,strict:y,fromBlock:a})}catch{}d=!0;return}try{let a;if(u)a=await (0,f.s)(e,el,"getFilterChanges")({filter:u});else{let r=await (0,f.s)(e,X.z,"getBlockNumber")({});a=c&&c!==r?await (0,f.s)(e,eo,"getLogs")({address:t,args:n,event:o,events:i,fromBlock:c+1n,toBlock:r}):[],c=r}if(0===a.length)return;if(r)s.onLogs(a);else for(let e of a)s.onLogs([e])}catch(e){u&&e instanceof tZ.yR&&(d=!1),s.onError?.(e)}},{emitOnBegin:!0,interval:l});return async()=>{u&&await (0,f.s)(e,tP,"uninstallFilter")({filter:u}),p()}})})():(p=!0,h=()=>p=!1,(async()=>{try{let r=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),a=i??(o?[o]:void 0),u=[];a&&(u=[a.flatMap(e=>U({abi:[e],eventName:e.name,args:n}))],o&&(u=u[0]));let{unsubscribe:l}=await r.subscribe({params:["logs",{address:t,topics:u}],onData(e){if(!p)return;let t=e.result;try{let{eventName:e,args:n}=(0,tK.F)({abi:a??[],data:t.data,topics:t.topics,strict:y}),r=(0,er.U)(t,{args:n,eventName:e});c([r])}catch(o){let e,n;if(o instanceof P.SM||o instanceof P.Gy){if(d)return;e=o.abiItem.name,n=o.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let r=(0,er.U)(t,{args:n?[]:{},eventName:e});c([r])}},onError(e){s?.(e)}});h=l,p||h()}catch(e){s?.(e)}})(),()=>h())})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:n,onTransactions:r,poll:o,pollingInterval:i=e.pollingInterval}){let a,s;return(void 0!==o?o:"webSocket"!==e.transport.type)?(()=>{let o=(0,tY.P)(["watchPendingTransactions",e.uid,t,i]);return(0,tV.N7)(o,{onTransactions:r,onError:n},n=>{let r;let o=(0,tJ.$)(async()=>{try{if(!r)try{r=await (0,f.s)(e,z,"createPendingTransactionFilter")({});return}catch(e){throw o(),e}let i=await (0,f.s)(e,el,"getFilterChanges")({filter:r});if(0===i.length)return;if(t)n.onTransactions(i);else for(let e of i)n.onTransactions([e])}catch(e){n.onError?.(e)}},{emitOnBegin:!0,interval:i});return async()=>{r&&await (0,f.s)(e,tP,"uninstallFilter")({filter:r}),o()}})})():(a=!0,s=()=>a=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!a)return;let t=e.result;r([t])},onError(e){n?.(e)}});s=t,a||s()}catch(e){n?.(e)}})(),()=>s())})(e,t)}}function t2(e,t={}){let n=function(e,t={}){let n;try{n=e.getClient(t)}catch{}return n}(e,t);return n?.extend(t6)}var t5=n(23064),t3=n(49224);function t8(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,t3.Z)(e);return(0,t5.useSyncExternalStoreWithSelector)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>t2(e),n,{equalityFn:(e,t)=>e?.uid===t?.uid})})(t,{onChange:e}),()=>t2(t,e),()=>t2(t,e),e=>e,(e,t)=>(null==e?void 0:e.uid)===(null==t?void 0:t.uid))}},9607:function(e,t,n){"use strict";n.d(t,{Q:function(){return f}});var r=n(28103),o=n(20320),i=n(39701),a=n(80913);async function s(e,{account:t=e.account,message:n}){if(!t)throw new i.o({docsPath:"/docs/actions/wallet/signMessage"});let r=(0,o.T)(t);if(r.signMessage)return r.signMessage({message:n});let s="string"==typeof n?(0,a.$G)(n):n.raw instanceof Uint8Array?(0,a.NC)(n.raw):n.raw;return e.request({method:"personal_sign",params:[s,r.address]},{retryCount:0})}var c=n(16272),u=n(81605);async function l(e,t){let n;let{account:r,connector:o,...i}=t;return n="object"==typeof r&&"local"===r.type?e.getClient():await (0,u.e)(e,{account:r,connector:o}),(0,c.s)(n,s,"signMessage")({...i,...r?{account:r}:{}})}var d=n(49224);function f(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:n}=t,o=(e=(0,d.Z)(t),{mutationFn:t=>l(e,t),mutationKey:["signMessage"]}),{mutate:i,mutateAsync:a,...s}=(0,r.D)({...n,...o});return{...s,signMessage:i,signMessageAsync:a}}},49770:function(e,t,n){"use strict";n.d(t,{o:function(){return f}});var r=n(28103),o=n(47609),i=n(63740);async function a(e,t){let{addEthereumChainParameter:n,chainId:r}=t,a=e.state.connections.get(t.connector?.uid??e.state.current);if(a){let e=a.connector;if(!e.switchChain)throw new i.O({connector:e});return await e.switchChain({addEthereumChainParameter:n,chainId:r})}let s=e.chains.find(e=>e.id===r);if(!s)throw new o.X4;return e.setState(e=>({...e,chainId:r})),s}var s=n(11191);let c=[];function u(e){let t=e.chains;return(0,s.v)(c,t)?c:(c=t,t)}var l=n(46760),d=n(49224);function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,d.Z)(e),{mutate:o,mutateAsync:i,...s}=(0,r.D)({...t,mutationFn:e=>a(n,e),mutationKey:["switchChain"]});return{...s,chains:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,d.Z)(e);return(0,l.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.chains.subscribe((e,t)=>{n(e,t)})})(t,{onChange:e}),()=>u(t),()=>u(t))}({config:n}),switchChain:o,switchChainAsync:i}}}}]);
|